@epilot/base-elements 3.2.0 → 3.2.2
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/CHANGELOG.md +1136 -0
- package/dist/Accordion/Accordion.d.ts +1 -3
- package/dist/Accordion/Accordion.js +8 -7
- package/dist/Accordion/Accordion.js.map +1 -1
- package/dist/Accordion/AccordionActions.d.ts +1 -3
- package/dist/Accordion/AccordionActions.js +8 -7
- package/dist/Accordion/AccordionActions.js.map +1 -1
- package/dist/Accordion/AccordionDetails.d.ts +1 -3
- package/dist/Accordion/AccordionDetails.js +8 -7
- package/dist/Accordion/AccordionDetails.js.map +1 -1
- package/dist/Accordion/AccordionSummary.d.ts +2 -2
- package/dist/Accordion/AccordionSummary.js +4 -4
- package/dist/Accordion/AccordionSummary.js.map +1 -1
- package/dist/Accordion/types.d.ts +8 -49
- package/dist/AppBar/index.d.ts +1 -2
- package/dist/AppBar/index.js +11 -3
- package/dist/AppBar/index.js.map +1 -1
- package/dist/Autocomplete/Autocomplete.d.ts +3 -3
- package/dist/Autocomplete/Autocomplete.js +15 -26
- package/dist/Autocomplete/Autocomplete.js.map +1 -1
- package/dist/Autocomplete/index.d.ts +1 -1
- package/dist/Autocomplete/index.js +1 -3
- package/dist/Autocomplete/index.js.map +1 -1
- package/dist/Autocomplete/styles.d.ts +1 -1
- package/dist/Autocomplete/styles.js.map +1 -1
- package/dist/Autocomplete/types.d.ts +11 -23
- package/dist/AutocompleteX/AutocompleteX.d.ts +1 -2
- package/dist/AutocompleteX/AutocompleteX.js +8 -1
- package/dist/AutocompleteX/AutocompleteX.js.map +1 -1
- package/dist/AutocompleteX/index.d.ts +1 -1
- package/dist/AutocompleteX/index.js +1 -3
- package/dist/AutocompleteX/index.js.map +1 -1
- package/dist/AutocompleteX/types.d.ts +4 -1
- package/dist/Avatar/Avatar.d.ts +2 -2
- package/dist/Avatar/Avatar.js +4 -6
- package/dist/Avatar/Avatar.js.map +1 -1
- package/dist/Avatar/AvatarGroup.d.ts +2 -2
- package/dist/Avatar/AvatarGroup.js +6 -4
- package/dist/Avatar/AvatarGroup.js.map +1 -1
- package/dist/Avatar/index.d.ts +2 -2
- package/dist/Avatar/index.js +2 -5
- package/dist/Avatar/index.js.map +1 -1
- package/dist/Avatar/types.d.ts +2 -38
- package/dist/Badge/Badge.d.ts +2 -3
- package/dist/Badge/Badge.js +3 -6
- package/dist/Badge/Badge.js.map +1 -1
- package/dist/Box/index.d.ts +1 -2
- package/dist/Box/index.js +10 -3
- package/dist/Box/index.js.map +1 -1
- package/dist/Breadcrumbs/index.d.ts +1 -2
- package/dist/Breadcrumbs/index.js +9 -4
- package/dist/Breadcrumbs/index.js.map +1 -1
- package/dist/Button/index.d.ts +1 -2
- package/dist/Button/index.js +10 -3
- package/dist/Button/index.js.map +1 -1
- package/dist/ButtonGroup/ButtonGroup.d.ts +2 -3
- package/dist/ButtonGroup/ButtonGroup.js +3 -6
- package/dist/ButtonGroup/ButtonGroup.js.map +1 -1
- package/dist/ButtonGroup/types.d.ts +2 -37
- package/dist/Card/index.d.ts +1 -2
- package/dist/Card/index.js +15 -3
- package/dist/Card/index.js.map +1 -1
- package/dist/Checkbox/Checkbox.js +15 -12
- package/dist/Checkbox/Checkbox.js.map +1 -1
- package/dist/Chip/Chip.d.ts +3 -3
- package/dist/Chip/Chip.js +6 -6
- package/dist/Chip/Chip.js.map +1 -1
- package/dist/Chip/RandomColoredChip.d.ts +3 -3
- package/dist/Chip/RandomColoredChip.js +5 -5
- package/dist/Chip/RandomColoredChip.js.map +1 -1
- package/dist/CssBaseline/index.d.ts +2 -3
- package/dist/CssBaseline/index.js +11 -5
- package/dist/CssBaseline/index.js.map +1 -1
- package/dist/Drawer360/ActionFooter.d.ts +2 -1
- package/dist/Drawer360/ActionFooter.js +18 -9
- package/dist/Drawer360/ActionFooter.js.map +1 -1
- package/dist/Drawer360/DiscardDialog.js +2 -2
- package/dist/Drawer360/DiscardDialog.js.map +1 -1
- package/dist/Drawer360/Drawer360.d.ts +3 -2
- package/dist/Drawer360/Drawer360.js +26 -10
- package/dist/Drawer360/Drawer360.js.map +1 -1
- package/dist/Drawer360/types.d.ts +2 -0
- package/dist/Grid/index.d.ts +2 -2
- package/dist/Grid/index.js +10 -3
- package/dist/Grid/index.js.map +1 -1
- package/dist/Icon/Icon.js +2 -2
- package/dist/Icon/Icon.js.map +1 -1
- package/dist/Icon/types.d.ts +4 -3
- package/dist/IconButtonWithText/IconButtonWithText.d.ts +2 -3
- package/dist/IconButtonWithText/IconButtonWithText.js +4 -3
- package/dist/IconButtonWithText/IconButtonWithText.js.map +1 -1
- package/dist/IconButtonWithText/types.d.ts +5 -7
- package/dist/Notification/Notification.js +5 -2
- package/dist/Notification/Notification.js.map +1 -1
- package/dist/Pickers/DateTimePicker.js.map +1 -1
- package/dist/Radio/Radio.js +11 -8
- package/dist/Radio/Radio.js.map +1 -1
- package/dist/Skeleton/index.d.ts +1 -2
- package/dist/Skeleton/index.js +9 -3
- package/dist/Skeleton/index.js.map +1 -1
- package/dist/Stepper/MobileStepper.d.ts +2 -3
- package/dist/Stepper/MobileStepper.js +3 -5
- package/dist/Stepper/MobileStepper.js.map +1 -1
- package/dist/Stepper/Stepper.d.ts +4 -7
- package/dist/Stepper/Stepper.js +12 -23
- package/dist/Stepper/Stepper.js.map +1 -1
- package/dist/Stepper/types.d.ts +2 -6
- package/dist/TableColumnSettings/TableColumnSettingsStyles.d.ts +1 -1
- package/dist/TableColumnSettings/TableColumnSettingsStyles.js.map +1 -1
- package/dist/Tabs/Tabs.d.ts +6 -10
- package/dist/Tabs/Tabs.js +22 -36
- package/dist/Tabs/Tabs.js.map +1 -1
- package/dist/Tabs/types.d.ts +2 -6
- package/dist/TextField/InlineTextField.js +1 -1
- package/dist/TextField/InlineTextField.js.map +1 -1
- package/dist/ThemeProvider/fonts.d.ts +3 -4
- package/dist/ThemeProvider/fonts.js +8 -1
- package/dist/ThemeProvider/fonts.js.map +1 -1
- package/dist/ThemeProvider/mapping.js +15 -0
- package/dist/ThemeProvider/mapping.js.map +1 -1
- package/dist/Tooltip/Tooltip.d.ts +2 -2
- package/dist/Tooltip/Tooltip.js +4 -4
- package/dist/Tooltip/Tooltip.js.map +1 -1
- package/dist/Typography/Typography.d.ts +42 -12
- package/dist/Typography/Typography.js +32 -46
- package/dist/Typography/Typography.js.map +1 -1
- package/dist/Typography/index.d.ts +1 -2
- package/dist/bundle.js +86 -82
- package/dist/bundle.js.map +1 -1
- package/dist/context/ClassPrefixContext.d.ts +6 -8
- package/dist/context/ClassPrefixContext.js +4 -5
- package/dist/context/ClassPrefixContext.js.map +1 -1
- package/dist/index.d.ts +20 -14
- package/dist/index.js +26 -14
- package/dist/index.js.map +1 -1
- package/dist/styles/styles.d.ts +1 -3
- package/dist/styles/styles.js.map +1 -1
- package/package.json +2 -2
- package/dist/AppBar/AppBar.d.ts +0 -4
- package/dist/AppBar/AppBar.js +0 -17
- package/dist/AppBar/AppBar.js.map +0 -1
- package/dist/AppBar/types.d.ts +0 -3
- package/dist/AppBar/types.js +0 -3
- package/dist/AppBar/types.js.map +0 -1
- package/dist/Box/Box.d.ts +0 -3
- package/dist/Box/Box.js +0 -12
- package/dist/Box/Box.js.map +0 -1
- package/dist/Box/types.d.ts +0 -2
- package/dist/Box/types.js +0 -3
- package/dist/Box/types.js.map +0 -1
- package/dist/Breadcrumbs/Breadcrumbs.d.ts +0 -3
- package/dist/Breadcrumbs/Breadcrumbs.js +0 -11
- package/dist/Breadcrumbs/Breadcrumbs.js.map +0 -1
- package/dist/Breadcrumbs/types.d.ts +0 -2
- package/dist/Breadcrumbs/types.js +0 -3
- package/dist/Breadcrumbs/types.js.map +0 -1
- package/dist/Button/Button.d.ts +0 -2
- package/dist/Button/Button.js +0 -6
- package/dist/Button/Button.js.map +0 -1
- package/dist/Button/types.d.ts +0 -2
- package/dist/Button/types.js +0 -3
- package/dist/Button/types.js.map +0 -1
- package/dist/Card/Card.d.ts +0 -8
- package/dist/Card/Card.js +0 -37
- package/dist/Card/Card.js.map +0 -1
- package/dist/Card/types.d.ts +0 -7
- package/dist/Card/types.js +0 -3
- package/dist/Card/types.js.map +0 -1
- package/dist/EntityItem/EntityAttributes.d.ts +0 -9
- package/dist/EntityItem/EntityAttributes.js +0 -83
- package/dist/EntityItem/EntityAttributes.js.map +0 -1
- package/dist/EntityItem/EntityItem.d.ts +0 -3
- package/dist/EntityItem/EntityItem.js +0 -134
- package/dist/EntityItem/EntityItem.js.map +0 -1
- package/dist/EntityItem/EntityMenu.d.ts +0 -3
- package/dist/EntityItem/EntityMenu.js +0 -48
- package/dist/EntityItem/EntityMenu.js.map +0 -1
- package/dist/EntityItem/index.d.ts +0 -2
- package/dist/EntityItem/index.js +0 -6
- package/dist/EntityItem/index.js.map +0 -1
- package/dist/EntityItem/types.d.ts +0 -38
- package/dist/EntityItem/types.js +0 -3
- package/dist/EntityItem/types.js.map +0 -1
- package/dist/Grid/Grid.d.ts +0 -3
- package/dist/Grid/Grid.js +0 -11
- package/dist/Grid/Grid.js.map +0 -1
- package/dist/Grid/types.d.ts +0 -2
- package/dist/Grid/types.js +0 -3
- package/dist/Grid/types.js.map +0 -1
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
declare const ClassPrefixContext: React.Context<string>;
|
|
3
|
-
|
|
4
|
-
children: React.ReactNode;
|
|
1
|
+
import React, { ComponentProps } from 'react';
|
|
2
|
+
export declare const ClassPrefixContext: React.Context<string>;
|
|
3
|
+
declare type ClassPrefixProviderProps = Omit<ComponentProps<typeof ClassPrefixContext.Provider>, 'value'> & {
|
|
5
4
|
classPrefix: string;
|
|
6
|
-
}
|
|
7
|
-
declare const ClassPrefixProvider: ({
|
|
8
|
-
export {
|
|
9
|
-
export { ClassPrefixContext };
|
|
5
|
+
};
|
|
6
|
+
export declare const ClassPrefixProvider: ({ classPrefix, ...props }: ClassPrefixProviderProps) => JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
exports.__esModule = true;
|
|
3
|
-
exports.
|
|
3
|
+
exports.ClassPrefixProvider = exports.ClassPrefixContext = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
var defaultState = '';
|
|
7
|
-
|
|
8
|
-
exports.ClassPrefixContext = ClassPrefixContext;
|
|
7
|
+
exports.ClassPrefixContext = react_1["default"].createContext(defaultState);
|
|
9
8
|
var ClassPrefixProvider = function (_a) {
|
|
10
|
-
var
|
|
9
|
+
var classPrefix = _a.classPrefix, props = tslib_1.__rest(_a, ["classPrefix"]);
|
|
11
10
|
var prefix = classPrefix ? classPrefix + "-" : '';
|
|
12
|
-
return
|
|
11
|
+
return react_1["default"].createElement(exports.ClassPrefixContext.Provider, tslib_1.__assign({ value: prefix }, props));
|
|
13
12
|
};
|
|
14
13
|
exports.ClassPrefixProvider = ClassPrefixProvider;
|
|
15
14
|
//# sourceMappingURL=ClassPrefixContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClassPrefixContext.js","sourceRoot":"","sources":["../../src/context/ClassPrefixContext.tsx"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"ClassPrefixContext.js","sourceRoot":"","sources":["../../src/context/ClassPrefixContext.tsx"],"names":[],"mappings":";;;;AAAA,wDAA6C;AAE7C,IAAM,YAAY,GAAG,EAAE,CAAA;AAEV,QAAA,kBAAkB,GAAG,kBAAK,CAAC,aAAa,CAAC,YAAY,CAAC,CAAA;AAO5D,IAAM,mBAAmB,GAAG,UAAC,EAGT;IAFzB,IAAA,WAAW,iBAAA,EACR,KAAK,sBAF0B,eAGnC,CADS;IAER,IAAM,MAAM,GAAG,WAAW,CAAC,CAAC,CAAI,WAAW,MAAG,CAAC,CAAC,CAAC,EAAE,CAAA;IAEnD,OAAO,iCAAC,0BAAkB,CAAC,QAAQ,qBAAC,KAAK,EAAE,MAAM,IAAM,KAAK,EAAI,CAAA;AAClE,CAAC,CAAA;AAPY,QAAA,mBAAmB,uBAO/B"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
export * from './styles';
|
|
1
2
|
export * from './Accordion';
|
|
2
|
-
export * from './Skeleton';
|
|
3
3
|
export * from './AppBar';
|
|
4
4
|
export * from './Avatar';
|
|
5
5
|
export * from './Autocomplete';
|
|
@@ -9,48 +9,54 @@ export * from './Box';
|
|
|
9
9
|
export * from './Breadcrumbs';
|
|
10
10
|
export * from './Button';
|
|
11
11
|
export * from './ButtonGroup';
|
|
12
|
-
export * from './
|
|
12
|
+
export * from './Drawer';
|
|
13
13
|
export * from './Card';
|
|
14
14
|
export * from './Checkbox';
|
|
15
15
|
export * from './Chip';
|
|
16
16
|
export * from './CssBaseline';
|
|
17
17
|
export * from './Collapse';
|
|
18
|
-
export * from './Drawer360';
|
|
19
18
|
export * from './Dialog';
|
|
20
19
|
export * from './Divider';
|
|
20
|
+
export * from './Drawer360';
|
|
21
21
|
export * from './FeedbackMessage';
|
|
22
22
|
export * from './Form';
|
|
23
23
|
export * from './Grid';
|
|
24
24
|
export * from './Hidden';
|
|
25
25
|
export * from './Icon';
|
|
26
|
+
export * from './IconButtonWithText';
|
|
27
|
+
export * from './IconButton';
|
|
28
|
+
export * from './Image';
|
|
26
29
|
export * from './Link';
|
|
27
30
|
export * from './List';
|
|
28
31
|
export * from './Menu';
|
|
29
32
|
export * from './Notification';
|
|
33
|
+
export * from './Pagination';
|
|
30
34
|
export * from './Paper';
|
|
35
|
+
export * from './Pickers';
|
|
36
|
+
export * from './Popover';
|
|
31
37
|
export * from './Progress';
|
|
32
38
|
export * from './Radio';
|
|
39
|
+
export * from './Rating';
|
|
33
40
|
export * from './Select';
|
|
34
41
|
export * from './Slide';
|
|
35
42
|
export * from './Snackbar';
|
|
36
43
|
export * from './Spacing';
|
|
37
44
|
export * from './Stepper';
|
|
38
|
-
export * from './
|
|
45
|
+
export * from './Skeleton';
|
|
39
46
|
export * from './Switch';
|
|
47
|
+
export * from './Table';
|
|
48
|
+
export * from './TableColumnSettings';
|
|
40
49
|
export * from './Tabs';
|
|
41
50
|
export * from './TextField';
|
|
42
51
|
export * from './ThemeProvider';
|
|
43
52
|
export * from './ToggleButton';
|
|
44
53
|
export * from './ToggleButtonGroup';
|
|
45
|
-
export * from './Typography';
|
|
46
|
-
export * from './Rating';
|
|
47
|
-
export * from './Image';
|
|
48
|
-
export * from './Pickers';
|
|
49
|
-
export * from './Popover';
|
|
50
|
-
export * from './Drawer';
|
|
51
54
|
export * from './Tooltip';
|
|
52
|
-
export * from './
|
|
53
|
-
export * from './Pagination';
|
|
54
|
-
export * from './IconButton';
|
|
55
|
-
export * from './TableColumnSettings';
|
|
55
|
+
export * from './Typography';
|
|
56
56
|
export * from 'react-beautiful-dnd';
|
|
57
|
+
/**
|
|
58
|
+
* The classnames utility is used in base-elements
|
|
59
|
+
* and can be useful working alongside base-elements components,
|
|
60
|
+
* also exported as clsx as an alias.
|
|
61
|
+
*/
|
|
62
|
+
export { default as classNames, default as clsx } from 'classnames';
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
exports.__esModule = true;
|
|
3
|
+
exports.clsx = exports.classNames = void 0;
|
|
3
4
|
var tslib_1 = require("tslib");
|
|
5
|
+
/* Utilities */
|
|
6
|
+
tslib_1.__exportStar(require("./styles"), exports);
|
|
7
|
+
/* Components */
|
|
4
8
|
tslib_1.__exportStar(require("./Accordion"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./Skeleton"), exports);
|
|
6
9
|
tslib_1.__exportStar(require("./AppBar"), exports);
|
|
7
10
|
tslib_1.__exportStar(require("./Avatar"), exports);
|
|
8
11
|
tslib_1.__exportStar(require("./Autocomplete"), exports);
|
|
@@ -12,49 +15,58 @@ tslib_1.__exportStar(require("./Box"), exports);
|
|
|
12
15
|
tslib_1.__exportStar(require("./Breadcrumbs"), exports);
|
|
13
16
|
tslib_1.__exportStar(require("./Button"), exports);
|
|
14
17
|
tslib_1.__exportStar(require("./ButtonGroup"), exports);
|
|
15
|
-
tslib_1.__exportStar(require("./
|
|
18
|
+
tslib_1.__exportStar(require("./Drawer"), exports);
|
|
16
19
|
tslib_1.__exportStar(require("./Card"), exports);
|
|
17
20
|
tslib_1.__exportStar(require("./Checkbox"), exports);
|
|
18
21
|
tslib_1.__exportStar(require("./Chip"), exports);
|
|
19
22
|
tslib_1.__exportStar(require("./CssBaseline"), exports);
|
|
20
23
|
tslib_1.__exportStar(require("./Collapse"), exports);
|
|
21
|
-
tslib_1.__exportStar(require("./Drawer360"), exports);
|
|
22
24
|
tslib_1.__exportStar(require("./Dialog"), exports);
|
|
23
25
|
tslib_1.__exportStar(require("./Divider"), exports);
|
|
26
|
+
tslib_1.__exportStar(require("./Drawer360"), exports);
|
|
24
27
|
tslib_1.__exportStar(require("./FeedbackMessage"), exports);
|
|
25
28
|
tslib_1.__exportStar(require("./Form"), exports);
|
|
26
29
|
tslib_1.__exportStar(require("./Grid"), exports);
|
|
27
30
|
tslib_1.__exportStar(require("./Hidden"), exports);
|
|
28
31
|
tslib_1.__exportStar(require("./Icon"), exports);
|
|
32
|
+
tslib_1.__exportStar(require("./IconButtonWithText"), exports);
|
|
33
|
+
tslib_1.__exportStar(require("./IconButton"), exports);
|
|
34
|
+
tslib_1.__exportStar(require("./Image"), exports);
|
|
29
35
|
tslib_1.__exportStar(require("./Link"), exports);
|
|
30
36
|
tslib_1.__exportStar(require("./List"), exports);
|
|
31
37
|
tslib_1.__exportStar(require("./Menu"), exports);
|
|
32
38
|
tslib_1.__exportStar(require("./Notification"), exports);
|
|
39
|
+
tslib_1.__exportStar(require("./Pagination"), exports);
|
|
33
40
|
tslib_1.__exportStar(require("./Paper"), exports);
|
|
41
|
+
tslib_1.__exportStar(require("./Pickers"), exports);
|
|
42
|
+
tslib_1.__exportStar(require("./Popover"), exports);
|
|
34
43
|
tslib_1.__exportStar(require("./Progress"), exports);
|
|
35
44
|
tslib_1.__exportStar(require("./Radio"), exports);
|
|
45
|
+
tslib_1.__exportStar(require("./Rating"), exports);
|
|
36
46
|
tslib_1.__exportStar(require("./Select"), exports);
|
|
37
47
|
tslib_1.__exportStar(require("./Slide"), exports);
|
|
38
48
|
tslib_1.__exportStar(require("./Snackbar"), exports);
|
|
39
49
|
tslib_1.__exportStar(require("./Spacing"), exports);
|
|
40
50
|
tslib_1.__exportStar(require("./Stepper"), exports);
|
|
41
|
-
tslib_1.__exportStar(require("./
|
|
51
|
+
tslib_1.__exportStar(require("./Skeleton"), exports);
|
|
42
52
|
tslib_1.__exportStar(require("./Switch"), exports);
|
|
53
|
+
tslib_1.__exportStar(require("./Table"), exports);
|
|
54
|
+
tslib_1.__exportStar(require("./TableColumnSettings"), exports);
|
|
43
55
|
tslib_1.__exportStar(require("./Tabs"), exports);
|
|
44
56
|
tslib_1.__exportStar(require("./TextField"), exports);
|
|
45
57
|
tslib_1.__exportStar(require("./ThemeProvider"), exports);
|
|
46
58
|
tslib_1.__exportStar(require("./ToggleButton"), exports);
|
|
47
59
|
tslib_1.__exportStar(require("./ToggleButtonGroup"), exports);
|
|
48
|
-
tslib_1.__exportStar(require("./Typography"), exports);
|
|
49
|
-
tslib_1.__exportStar(require("./Rating"), exports);
|
|
50
|
-
tslib_1.__exportStar(require("./Image"), exports);
|
|
51
|
-
tslib_1.__exportStar(require("./Pickers"), exports);
|
|
52
|
-
tslib_1.__exportStar(require("./Popover"), exports);
|
|
53
|
-
tslib_1.__exportStar(require("./Drawer"), exports);
|
|
54
60
|
tslib_1.__exportStar(require("./Tooltip"), exports);
|
|
55
|
-
tslib_1.__exportStar(require("./
|
|
56
|
-
|
|
57
|
-
tslib_1.__exportStar(require("./IconButton"), exports);
|
|
58
|
-
tslib_1.__exportStar(require("./TableColumnSettings"), exports);
|
|
61
|
+
tslib_1.__exportStar(require("./Typography"), exports);
|
|
62
|
+
/* Utilities */
|
|
59
63
|
tslib_1.__exportStar(require("react-beautiful-dnd"), exports);
|
|
64
|
+
/**
|
|
65
|
+
* The classnames utility is used in base-elements
|
|
66
|
+
* and can be useful working alongside base-elements components,
|
|
67
|
+
* also exported as clsx as an alias.
|
|
68
|
+
*/
|
|
69
|
+
var classnames_1 = require("classnames");
|
|
70
|
+
tslib_1.__createBinding(exports, classnames_1, "default", "classNames");
|
|
71
|
+
tslib_1.__createBinding(exports, classnames_1, "default", "clsx");
|
|
60
72
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,eAAe;AACf,mDAAwB;AACxB,gBAAgB;AAChB,sDAA2B;AAC3B,mDAAwB;AACxB,mDAAwB;AACxB,yDAA8B;AAC9B,0DAA+B;AAC/B,kDAAuB;AACvB,gDAAqB;AACrB,wDAA6B;AAC7B,mDAAwB;AACxB,wDAA6B;AAC7B,mDAAwB;AACxB,iDAAsB;AACtB,qDAA0B;AAC1B,iDAAsB;AACtB,wDAA6B;AAC7B,qDAA0B;AAC1B,mDAAwB;AACxB,oDAAyB;AACzB,sDAA2B;AAC3B,4DAAiC;AACjC,iDAAsB;AACtB,iDAAsB;AACtB,mDAAwB;AACxB,iDAAsB;AACtB,+DAAoC;AACpC,uDAA4B;AAC5B,kDAAuB;AACvB,iDAAsB;AACtB,iDAAsB;AACtB,iDAAsB;AACtB,yDAA8B;AAC9B,uDAA4B;AAC5B,kDAAuB;AACvB,oDAAyB;AACzB,oDAAyB;AACzB,qDAA0B;AAC1B,kDAAuB;AACvB,mDAAwB;AACxB,mDAAwB;AACxB,kDAAuB;AACvB,qDAA0B;AAC1B,oDAAyB;AACzB,oDAAyB;AACzB,qDAA0B;AAC1B,mDAAwB;AACxB,kDAAuB;AACvB,gEAAqC;AACrC,iDAAsB;AACtB,sDAA2B;AAC3B,0DAA+B;AAC/B,yDAA8B;AAC9B,8DAAmC;AACnC,oDAAyB;AACzB,uDAA4B;AAC5B,eAAe;AACf,8DAAmC;AACnC;;;;GAIG;AACH,yCAAmE;AAA1D,wEAAqB;AAAE,kEAAe"}
|
package/dist/styles/styles.d.ts
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { createStyles, makeStyles, useTheme, withStyles, getContrastRatio, rgbToHex, hexToRgb } from '@material-ui/core';
|
|
3
|
-
export declare type Theme = MuiTheme;
|
|
1
|
+
export { createStyles, makeStyles, useTheme, withStyles, getContrastRatio, rgbToHex, hexToRgb, Theme } from '@material-ui/core';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../src/styles/styles.ts"],"names":[],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../src/styles/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,0CAS0B;AARxB,iDAAY;AACZ,+CAAU;AACV,6CAAQ;AACR,+CAAU;AACV,qDAAgB;AAChB,6CAAQ;AACR,6CAAQ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/base-elements",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.2",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "epilot GmbH",
|
|
6
6
|
"email": "info@epilot.cloud",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
},
|
|
95
95
|
"dependencies": {
|
|
96
96
|
"@date-io/date-fns": "1.3.13",
|
|
97
|
-
"@material-ui/core": "
|
|
97
|
+
"@material-ui/core": "4.12.4",
|
|
98
98
|
"@material-ui/icons": ">=4",
|
|
99
99
|
"@material-ui/lab": "^4.0.0-alpha.56",
|
|
100
100
|
"@material-ui/pickers": "3.3.10",
|
package/dist/AppBar/AppBar.d.ts
DELETED
package/dist/AppBar/AppBar.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.Toolbar = exports.AppBar = 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 AppBar(props) {
|
|
8
|
-
var children = props.children, rest = tslib_1.__rest(props, ["children"]);
|
|
9
|
-
return react_1["default"].createElement(core_1.AppBar, tslib_1.__assign({}, rest), children);
|
|
10
|
-
}
|
|
11
|
-
exports.AppBar = AppBar;
|
|
12
|
-
function Toolbar(props) {
|
|
13
|
-
var children = props.children, rest = tslib_1.__rest(props, ["children"]);
|
|
14
|
-
return react_1["default"].createElement(core_1.Toolbar, tslib_1.__assign({}, rest), children);
|
|
15
|
-
}
|
|
16
|
-
exports.Toolbar = Toolbar;
|
|
17
|
-
//# sourceMappingURL=AppBar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AppBar.js","sourceRoot":"","sources":["../../src/AppBar/AppBar.tsx"],"names":[],"mappings":";;;;AAAA,0CAA8E;AAC9E,wDAAyB;AAIzB,SAAgB,MAAM,CAAC,KAAkB;IAC/B,IAAA,QAAQ,GAAc,KAAK,SAAnB,EAAK,IAAI,kBAAK,KAAK,EAA7B,YAAqB,CAAF,CAAU;IAEnC,OAAO,iCAAC,aAAS,uBAAK,IAAI,GAAG,QAAQ,CAAa,CAAA;AACpD,CAAC;AAJD,wBAIC;AAED,SAAgB,OAAO,CAAC,KAAmB;IACjC,IAAA,QAAQ,GAAc,KAAK,SAAnB,EAAK,IAAI,kBAAK,KAAK,EAA7B,YAAqB,CAAF,CAAU;IAEnC,OAAO,iCAAC,cAAU,uBAAK,IAAI,GAAG,QAAQ,CAAc,CAAA;AACtD,CAAC;AAJD,0BAIC"}
|
package/dist/AppBar/types.d.ts
DELETED
package/dist/AppBar/types.js
DELETED
package/dist/AppBar/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/AppBar/types.ts"],"names":[],"mappings":""}
|
package/dist/Box/Box.d.ts
DELETED
package/dist/Box/Box.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.Box = 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 Box(props) {
|
|
8
|
-
var children = props.children, rest = tslib_1.__rest(props, ["children"]);
|
|
9
|
-
return react_1["default"].createElement(core_1.Box, tslib_1.__assign({}, rest), children);
|
|
10
|
-
}
|
|
11
|
-
exports.Box = Box;
|
|
12
|
-
//# sourceMappingURL=Box.js.map
|
package/dist/Box/Box.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Box.js","sourceRoot":"","sources":["../../src/Box/Box.tsx"],"names":[],"mappings":";;;;AAAA,0CAAiD;AACjD,wDAAyB;AAIzB,SAAgB,GAAG,CAAC,KAAe;IACzB,IAAA,QAAQ,GAAc,KAAK,SAAnB,EAAK,IAAI,kBAAK,KAAK,EAA7B,YAAqB,CAAF,CAAU;IAEnC,OAAO,iCAAC,UAAM,uBAAK,IAAI,GAAG,QAAQ,CAAU,CAAA;AAC9C,CAAC;AAJD,kBAIC"}
|
package/dist/Box/types.d.ts
DELETED
package/dist/Box/types.js
DELETED
package/dist/Box/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/Box/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.Breadcrumbs = 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 Breadcrumbs(props) {
|
|
8
|
-
return react_1["default"].createElement(core_1.Breadcrumbs, tslib_1.__assign({}, props));
|
|
9
|
-
}
|
|
10
|
-
exports.Breadcrumbs = Breadcrumbs;
|
|
11
|
-
//# sourceMappingURL=Breadcrumbs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Breadcrumbs.js","sourceRoot":"","sources":["../../src/Breadcrumbs/Breadcrumbs.tsx"],"names":[],"mappings":";;;;AAAA,0CAAgE;AAChE,wDAAyB;AAIzB,SAAgB,WAAW,CAAC,KAAuB;IACjD,OAAO,iCAAC,kBAAa,uBAAK,KAAK,EAAI,CAAA;AACrC,CAAC;AAFD,kCAEC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/Breadcrumbs/types.ts"],"names":[],"mappings":""}
|
package/dist/Button/Button.d.ts
DELETED
package/dist/Button/Button.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../src/Button/Button.tsx"],"names":[],"mappings":";;;AAAA,0CAA0C;AAEjC,iBAFA,aAAM,CAEA"}
|
package/dist/Button/types.d.ts
DELETED
package/dist/Button/types.js
DELETED
package/dist/Button/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/Button/types.ts"],"names":[],"mappings":""}
|
package/dist/Card/Card.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CardProps, CardActionAreaProps, CardActionsProps, CardContentProps, CardHeaderProps, CardMediaProps } from './types';
|
|
3
|
-
export declare function Card(props: CardProps): JSX.Element;
|
|
4
|
-
export declare function CardActionArea(props: CardActionAreaProps): JSX.Element;
|
|
5
|
-
export declare function CardActions(props: CardActionsProps): JSX.Element;
|
|
6
|
-
export declare function CardContent(props: CardContentProps): JSX.Element;
|
|
7
|
-
export declare function CardHeader(props: CardHeaderProps): JSX.Element;
|
|
8
|
-
export declare function CardMedia(props: CardMediaProps): JSX.Element;
|
package/dist/Card/Card.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.CardMedia = exports.CardHeader = exports.CardContent = exports.CardActions = exports.CardActionArea = exports.Card = 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 Card(props) {
|
|
8
|
-
var children = props.children, rest = tslib_1.__rest(props, ["children"]);
|
|
9
|
-
return react_1["default"].createElement(core_1.Card, tslib_1.__assign({}, rest), children);
|
|
10
|
-
}
|
|
11
|
-
exports.Card = Card;
|
|
12
|
-
function CardActionArea(props) {
|
|
13
|
-
var children = props.children, rest = tslib_1.__rest(props, ["children"]);
|
|
14
|
-
return react_1["default"].createElement(core_1.CardActionArea, tslib_1.__assign({}, rest), children);
|
|
15
|
-
}
|
|
16
|
-
exports.CardActionArea = CardActionArea;
|
|
17
|
-
function CardActions(props) {
|
|
18
|
-
var children = props.children, rest = tslib_1.__rest(props, ["children"]);
|
|
19
|
-
return react_1["default"].createElement(core_1.CardActions, tslib_1.__assign({}, rest), children);
|
|
20
|
-
}
|
|
21
|
-
exports.CardActions = CardActions;
|
|
22
|
-
function CardContent(props) {
|
|
23
|
-
var children = props.children, rest = tslib_1.__rest(props, ["children"]);
|
|
24
|
-
return react_1["default"].createElement(core_1.CardContent, tslib_1.__assign({}, rest), children);
|
|
25
|
-
}
|
|
26
|
-
exports.CardContent = CardContent;
|
|
27
|
-
function CardHeader(props) {
|
|
28
|
-
var children = props.children, rest = tslib_1.__rest(props, ["children"]);
|
|
29
|
-
return react_1["default"].createElement(core_1.CardHeader, tslib_1.__assign({}, rest), children);
|
|
30
|
-
}
|
|
31
|
-
exports.CardHeader = CardHeader;
|
|
32
|
-
function CardMedia(props) {
|
|
33
|
-
var children = props.children, rest = tslib_1.__rest(props, ["children"]);
|
|
34
|
-
return react_1["default"].createElement(core_1.CardMedia, tslib_1.__assign({}, rest), children);
|
|
35
|
-
}
|
|
36
|
-
exports.CardMedia = CardMedia;
|
|
37
|
-
//# sourceMappingURL=Card.js.map
|
package/dist/Card/Card.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Card.js","sourceRoot":"","sources":["../../src/Card/Card.tsx"],"names":[],"mappings":";;;;AAAA,0CAO0B;AAC1B,wDAAyB;AAWzB,SAAgB,IAAI,CAAC,KAAgB;IAC3B,IAAA,QAAQ,GAAc,KAAK,SAAnB,EAAK,IAAI,kBAAK,KAAK,EAA7B,YAAqB,CAAF,CAAU;IAEnC,OAAO,iCAAC,WAAO,uBAAK,IAAI,GAAG,QAAQ,CAAW,CAAA;AAChD,CAAC;AAJD,oBAIC;AAED,SAAgB,cAAc,CAAC,KAA0B;IAC/C,IAAA,QAAQ,GAAc,KAAK,SAAnB,EAAK,IAAI,kBAAK,KAAK,EAA7B,YAAqB,CAAF,CAAU;IAEnC,OAAO,iCAAC,qBAAiB,uBAAK,IAAI,GAAG,QAAQ,CAAqB,CAAA;AACpE,CAAC;AAJD,wCAIC;AAED,SAAgB,WAAW,CAAC,KAAuB;IACzC,IAAA,QAAQ,GAAc,KAAK,SAAnB,EAAK,IAAI,kBAAK,KAAK,EAA7B,YAAqB,CAAF,CAAU;IAEnC,OAAO,iCAAC,kBAAc,uBAAK,IAAI,GAAG,QAAQ,CAAkB,CAAA;AAC9D,CAAC;AAJD,kCAIC;AAED,SAAgB,WAAW,CAAC,KAAuB;IACzC,IAAA,QAAQ,GAAc,KAAK,SAAnB,EAAK,IAAI,kBAAK,KAAK,EAA7B,YAAqB,CAAF,CAAU;IAEnC,OAAO,iCAAC,kBAAc,uBAAK,IAAI,GAAG,QAAQ,CAAkB,CAAA;AAC9D,CAAC;AAJD,kCAIC;AAED,SAAgB,UAAU,CAAC,KAAsB;IACvC,IAAA,QAAQ,GAAc,KAAK,SAAnB,EAAK,IAAI,kBAAK,KAAK,EAA7B,YAAqB,CAAF,CAAU;IAEnC,OAAO,iCAAC,iBAAa,uBAAK,IAAI,GAAG,QAAQ,CAAiB,CAAA;AAC5D,CAAC;AAJD,gCAIC;AAED,SAAgB,SAAS,CAAC,KAAqB;IACrC,IAAA,QAAQ,GAAc,KAAK,SAAnB,EAAK,IAAI,kBAAK,KAAK,EAA7B,YAAqB,CAAF,CAAU;IAEnC,OAAO,iCAAC,gBAAY,uBAAK,IAAI,GAAG,QAAQ,CAAgB,CAAA;AAC1D,CAAC;AAJD,8BAIC"}
|
package/dist/Card/types.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { CardActionAreaProps as MuiCardActionAreaProps, CardActionsProps as MuiCardActionsProps, CardContentProps as MuiCardContentProps, CardProps as MuiCardProps, CardMediaProps as MuiCardMediaProps, CardHeaderProps as MuiCardHeaderProps } from '@material-ui/core';
|
|
2
|
-
export declare type CardProps = MuiCardProps;
|
|
3
|
-
export declare type CardActionAreaProps = MuiCardActionAreaProps;
|
|
4
|
-
export declare type CardActionsProps = MuiCardActionsProps;
|
|
5
|
-
export declare type CardContentProps = MuiCardContentProps;
|
|
6
|
-
export declare type CardHeaderProps = MuiCardHeaderProps;
|
|
7
|
-
export declare type CardMediaProps = MuiCardMediaProps;
|
package/dist/Card/types.js
DELETED
package/dist/Card/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/Card/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { EntityItemProps } from './types';
|
|
3
|
-
interface EntityAttributesProps {
|
|
4
|
-
attributePriorities: EntityItemProps['attributePriorities'];
|
|
5
|
-
attributes: EntityItemProps['attributes'];
|
|
6
|
-
collapsible?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const EntityAttributes: React.MemoExoticComponent<({ attributePriorities, attributes, collapsible }: EntityAttributesProps) => JSX.Element | null>;
|
|
9
|
-
export {};
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
exports.__esModule = true;
|
|
3
|
-
exports.EntityAttributes = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var core_1 = require("@material-ui/core");
|
|
6
|
-
var lodash_1 = require("lodash");
|
|
7
|
-
var react_1 = tslib_1.__importStar(require("react"));
|
|
8
|
-
var Grid_1 = require("../Grid");
|
|
9
|
-
var Typography_1 = require("../Typography");
|
|
10
|
-
var useStyles = core_1.makeStyles(function (theme) {
|
|
11
|
-
return core_1.createStyles({
|
|
12
|
-
entityField: {
|
|
13
|
-
display: 'flex',
|
|
14
|
-
flexDirection: 'column',
|
|
15
|
-
padding: '0 8px',
|
|
16
|
-
alignItems: 'flex-start',
|
|
17
|
-
whiteSpace: 'nowrap'
|
|
18
|
-
},
|
|
19
|
-
attributeKey: {
|
|
20
|
-
color: theme.palette.text.hint
|
|
21
|
-
},
|
|
22
|
-
attributeValue: {
|
|
23
|
-
fontWeight: theme.typography.fontWeightMedium
|
|
24
|
-
},
|
|
25
|
-
gridUnwrapped: {
|
|
26
|
-
flexWrap: 'nowrap',
|
|
27
|
-
justifyContent: 'end'
|
|
28
|
-
},
|
|
29
|
-
gridContainerSpaced: {
|
|
30
|
-
justifyContent: 'space-evenly'
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
|
-
exports.EntityAttributes = react_1.memo(function (_a) {
|
|
35
|
-
var attributePriorities = _a.attributePriorities, attributes = _a.attributes, collapsible = _a.collapsible;
|
|
36
|
-
var classes = useStyles();
|
|
37
|
-
var validAttributes = attributes === null || attributes === void 0 ? void 0 : attributes.filter(function (attr) { return !lodash_1.isNil(attr.value); });
|
|
38
|
-
if (!(validAttributes === null || validAttributes === void 0 ? void 0 : validAttributes.length)) {
|
|
39
|
-
return null;
|
|
40
|
-
}
|
|
41
|
-
var _b = getSortAttributes(validAttributes, attributePriorities), ordered = _b.ordered, remaining = _b.remaining;
|
|
42
|
-
return (react_1["default"].createElement(Grid_1.Grid, { className: collapsible ? classes.gridContainerSpaced : classes.gridUnwrapped, container: true },
|
|
43
|
-
react_1["default"].createElement(EntityAttributeList, { attributeList: ordered, collapsible: collapsible }),
|
|
44
|
-
Boolean(remaining.length) &&
|
|
45
|
-
(collapsible || (!collapsible && !(attributePriorities === null || attributePriorities === void 0 ? void 0 : attributePriorities.length))) && (react_1["default"].createElement(EntityAttributeList, { attributeList: remaining, collapsible: collapsible }))));
|
|
46
|
-
});
|
|
47
|
-
var EntityAttributeList = react_1.memo(function (_a) {
|
|
48
|
-
var attributeList = _a.attributeList, collapsible = _a.collapsible;
|
|
49
|
-
var classes = useStyles();
|
|
50
|
-
return (react_1["default"].createElement(react_1["default"].Fragment, null, attributeList === null || attributeList === void 0 ? void 0 : attributeList.map(function (attribute) {
|
|
51
|
-
switch (attribute === null || attribute === void 0 ? void 0 : attribute.type) {
|
|
52
|
-
case 'string':
|
|
53
|
-
return (react_1["default"].createElement(Grid_1.Grid, { className: classes.entityField, item: true, key: attribute.name, sm: collapsible ? 4 : undefined },
|
|
54
|
-
react_1["default"].createElement(Typography_1.SmallText, { className: classes.attributeKey }, attribute.label),
|
|
55
|
-
react_1["default"].createElement(Typography_1.BodyText, { className: classes.attributeValue }, attribute.value)));
|
|
56
|
-
default:
|
|
57
|
-
return null;
|
|
58
|
-
}
|
|
59
|
-
})));
|
|
60
|
-
});
|
|
61
|
-
exports.EntityAttributes.displayName = 'EntityAttributes';
|
|
62
|
-
EntityAttributeList.displayName = 'EntityAttributeList';
|
|
63
|
-
// TODO: write tests for this
|
|
64
|
-
function getSortAttributes(attributes, attributePriorities) {
|
|
65
|
-
if (attributePriorities === null || attributePriorities === void 0 ? void 0 : attributePriorities.length) {
|
|
66
|
-
var ordered = [];
|
|
67
|
-
var remaining = [];
|
|
68
|
-
for (var i = 0; i < attributes.length; i++) {
|
|
69
|
-
var index = attributePriorities.indexOf(attributes[i].name);
|
|
70
|
-
if (index !== -1) {
|
|
71
|
-
ordered.splice(index, 0, attributes[i]);
|
|
72
|
-
}
|
|
73
|
-
else {
|
|
74
|
-
remaining.push(attributes[i]);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
return { ordered: ordered, remaining: remaining };
|
|
78
|
-
}
|
|
79
|
-
else {
|
|
80
|
-
return { ordered: [], remaining: attributes };
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
//# sourceMappingURL=EntityAttributes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EntityAttributes.js","sourceRoot":"","sources":["../../src/EntityItem/EntityAttributes.tsx"],"names":[],"mappings":";;;;AAAA,0CAA4D;AAC5D,iCAA8B;AAC9B,qDAAmC;AAEnC,gCAA8B;AAE9B,4CAAmD;AAanD,IAAM,SAAS,GAAG,iBAAU,CAAC,UAAC,KAAY;IACxC,OAAA,mBAAY,CAAC;QACX,WAAW,EAAE;YACX,OAAO,EAAE,MAAM;YACf,aAAa,EAAE,QAAQ;YACvB,OAAO,EAAE,OAAO;YAChB,UAAU,EAAE,YAAY;YACxB,UAAU,EAAE,QAAQ;SACrB;QACD,YAAY,EAAE;YACZ,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI;SAC/B;QACD,cAAc,EAAE;YACd,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC,gBAAgB;SAC9C;QACD,aAAa,EAAE;YACb,QAAQ,EAAE,QAAQ;YAClB,cAAc,EAAE,KAAK;SACtB;QACD,mBAAmB,EAAE;YACnB,cAAc,EAAE,cAAc;SAC/B;KACF,CAAC;AArBF,CAqBE,CACH,CAAA;AAEY,QAAA,gBAAgB,GAAG,YAAI,CAClC,UAAC,EAAuE;QAArE,mBAAmB,yBAAA,EAAE,UAAU,gBAAA,EAAE,WAAW,iBAAA;IAC7C,IAAM,OAAO,GAAG,SAAS,EAAE,CAAA;IAC3B,IAAM,eAAe,GAAG,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,MAAM,CAAC,UAAA,IAAI,IAAI,OAAA,CAAC,cAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAlB,CAAkB,CAAC,CAAA;IAEtE,IAAI,EAAC,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,MAAM,CAAA,EAAE;QAC5B,OAAO,IAAI,CAAA;KACZ;IACK,IAAA,KAAyB,iBAAiB,CAC9C,eAAe,EACf,mBAAmB,CACpB,EAHO,OAAO,aAAA,EAAE,SAAS,eAGzB,CAAA;IAED,OAAO,CACL,iCAAC,WAAI,IACH,SAAS,EACP,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC,OAAO,CAAC,aAAa,EAEnE,SAAS;QAET,iCAAC,mBAAmB,IAClB,aAAa,EAAE,OAAO,EACtB,WAAW,EAAE,WAAW,GACxB;QACD,OAAO,CAAC,SAAS,CAAC,MAAM,CAAC;YACxB,CAAC,WAAW,IAAI,CAAC,CAAC,WAAW,IAAI,EAAC,mBAAmB,aAAnB,mBAAmB,uBAAnB,mBAAmB,CAAE,MAAM,CAAA,CAAC,CAAC,IAAI,CACjE,iCAAC,mBAAmB,IAClB,aAAa,EAAE,SAAS,EACxB,WAAW,EAAE,WAAW,GACxB,CACH,CACE,CACR,CAAA;AACH,CAAC,CACF,CAAA;AAED,IAAM,mBAAmB,GAAG,YAAI,CAC9B,UAAC,EAMA;QALC,aAAa,mBAAA,EACb,WAAW,iBAAA;IAKX,IAAM,OAAO,GAAG,SAAS,EAAE,CAAA;IAE3B,OAAO,CACL,oEACG,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,GAAG,CAAC,UAAC,SAA8B;QACjD,QAAQ,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,IAAI,EAAE;YACvB,KAAK,QAAQ;gBACX,OAAO,CACL,iCAAC,WAAI,IACH,SAAS,EAAE,OAAO,CAAC,WAAW,EAC9B,IAAI,QACJ,GAAG,EAAE,SAAS,CAAC,IAAI,EACnB,EAAE,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;oBAE/B,iCAAC,sBAAS,IAAC,SAAS,EAAE,OAAO,CAAC,YAAY,IACvC,SAAS,CAAC,KAAK,CACN;oBACZ,iCAAC,qBAAQ,IAAC,SAAS,EAAE,OAAO,CAAC,cAAc,IACxC,SAAS,CAAC,KAAK,CACP,CACN,CACR,CAAA;YACH;gBACE,OAAO,IAAI,CAAA;SACd;IACH,CAAC,EACA,CACJ,CAAA;AACH,CAAC,CACF,CAAA;AAED,wBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAA;AACjD,mBAAmB,CAAC,WAAW,GAAG,qBAAqB,CAAA;AAEvD,6BAA6B;AAC7B,SAAS,iBAAiB,CACxB,UAAsC,EACtC,mBAAmC;IAEnC,IAAI,mBAAmB,aAAnB,mBAAmB,uBAAnB,mBAAmB,CAAE,MAAM,EAAE;QAC/B,IAAM,OAAO,GAA+B,EAAE,CAAA;QAC9C,IAAM,SAAS,GAA+B,EAAE,CAAA;QAEhD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAC1C,IAAM,KAAK,GAAG,mBAAmB,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAA;YAE7D,IAAI,KAAK,KAAK,CAAC,CAAC,EAAE;gBAChB,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAAA;aACxC;iBAAM;gBACL,SAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAA;aAC9B;SACF;QAED,OAAO,EAAE,OAAO,SAAA,EAAE,SAAS,WAAA,EAAE,CAAA;KAC9B;SAAM;QACL,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,SAAS,EAAE,UAAU,EAAE,CAAA;KAC9C;AACH,CAAC"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { EntityItemProps } from './types';
|
|
3
|
-
export declare const EntityItem: React.MemoExoticComponent<({ avatarIcon, attributes, attributePriorities, collapsible, className, id, menuProps, onClick, relationTags, title, tags, url, style }: EntityItemProps) => JSX.Element>;
|