@qoretechnologies/reqore 0.31.0 → 0.31.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/__tests__/collection.test.tsx +9 -2
- package/dist/components/Collection/index.d.ts +11 -2
- package/dist/components/Collection/index.d.ts.map +1 -1
- package/dist/components/Collection/index.js +13 -28
- package/dist/components/Collection/index.js.map +1 -1
- package/dist/components/Collection/item.d.ts +1 -0
- package/dist/components/Collection/item.d.ts.map +1 -1
- package/dist/components/Collection/item.js +1 -1
- package/dist/components/Collection/item.js.map +1 -1
- package/dist/components/Panel/index.d.ts +4 -2
- package/dist/components/Panel/index.d.ts.map +1 -1
- package/dist/components/Panel/index.js +9 -10
- package/dist/components/Panel/index.js.map +1 -1
- package/dist/types/global.d.ts +11 -0
- package/dist/types/global.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/Collection/index.tsx +48 -12
- package/src/components/Collection/item.tsx +2 -0
- package/src/components/Panel/index.tsx +18 -20
- package/src/mock/collectionData.tsx +2 -1
- package/src/stories/Collection/Collection.stories.tsx +45 -0
- package/src/stories/Panel/Panel.stories.tsx +17 -0
- package/src/types/global.ts +12 -0
- package/tests.json +1 -1
|
@@ -26,7 +26,7 @@ test('<Collection /> items can be filtered', () => {
|
|
|
26
26
|
);
|
|
27
27
|
|
|
28
28
|
fireEvent.change(document.querySelector('.reqore-input')!, {
|
|
29
|
-
target: { value: '
|
|
29
|
+
target: { value: 'I have' },
|
|
30
30
|
});
|
|
31
31
|
|
|
32
32
|
expect(document.querySelectorAll('.reqore-collection-item').length).toBe(2);
|
|
@@ -37,6 +37,13 @@ test('<Collection /> items can be filtered', () => {
|
|
|
37
37
|
|
|
38
38
|
expect(document.querySelectorAll('.reqore-collection-item').length).toBe(0);
|
|
39
39
|
expect(document.querySelectorAll('.reqore-message').length).toBe(1);
|
|
40
|
+
|
|
41
|
+
fireEvent.change(document.querySelector('.reqore-input')!, {
|
|
42
|
+
target: { value: 'secret' },
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
expect(document.querySelectorAll('.reqore-collection-item').length).toBe(1);
|
|
46
|
+
expect(document.querySelectorAll('.reqore-message').length).toBe(0);
|
|
40
47
|
});
|
|
41
48
|
|
|
42
49
|
test('<Collection /> shows no data message when empty', () => {
|
|
@@ -62,7 +69,7 @@ test('<Collection /> can be sorted', () => {
|
|
|
62
69
|
|
|
63
70
|
const firstItem = document.querySelector('.reqore-collection-item');
|
|
64
71
|
// Expect the title of the first item to be "Expandable item"
|
|
65
|
-
expect(firstItem?.querySelector('h3')?.textContent).toBe(
|
|
72
|
+
expect(firstItem?.querySelector('h3')?.textContent).toBe(undefined);
|
|
66
73
|
|
|
67
74
|
fireEvent.click(document.querySelectorAll('.reqore-button')[1]);
|
|
68
75
|
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IReqoreIconName } from '../../types/icons';
|
|
3
3
|
import { IReqoreColumnsProps } from '../Columns';
|
|
4
|
-
import {
|
|
4
|
+
import { IReqoreInputProps } from '../Input';
|
|
5
|
+
import { IReqorePanelAction, IReqorePanelProps } from '../Panel';
|
|
5
6
|
import { IReqoreCollectionItemProps } from './item';
|
|
6
7
|
export interface IReqoreCollectionProps extends Pick<IReqorePanelProps, 'size' | 'intent' | 'customTheme' | 'actions' | 'bottomActions' | 'label' | 'headerSize' | 'badge' | 'icon' | 'flat' | 'minimal' | 'transparent' | 'fluid'>, IReqoreColumnsProps {
|
|
7
8
|
items?: IReqoreCollectionItemProps[];
|
|
9
|
+
inputProps?: IReqoreInputProps;
|
|
10
|
+
sortButtonProps?: IReqorePanelAction;
|
|
11
|
+
displayButtonProps?: IReqorePanelAction;
|
|
8
12
|
stacked?: boolean;
|
|
9
13
|
rounded?: boolean;
|
|
10
14
|
height?: string;
|
|
@@ -15,8 +19,13 @@ export interface IReqoreCollectionProps extends Pick<IReqorePanelProps, 'size' |
|
|
|
15
19
|
showAs?: 'list' | 'grid';
|
|
16
20
|
showSelectedFirst?: boolean;
|
|
17
21
|
selectedIcon?: IReqoreIconName;
|
|
22
|
+
childrenBefore?: React.ReactNode;
|
|
23
|
+
childrenAfter?: React.ReactNode;
|
|
18
24
|
emptyMessage?: string;
|
|
25
|
+
sortButtonTooltip?: (sort?: 'asc' | 'desc') => string;
|
|
26
|
+
displayButtonTooltip?: (display?: 'list' | 'grid') => string;
|
|
27
|
+
inputPlaceholder?: (items?: IReqoreCollectionItemProps[]) => string;
|
|
19
28
|
}
|
|
20
29
|
export declare const StyledCollectionWrapper: any;
|
|
21
|
-
export declare const ReqoreCollection: ({ items, columnsGap, stacked, rounded, fill,
|
|
30
|
+
export declare const ReqoreCollection: ({ items, columnsGap, stacked, rounded, fill, maxItemHeight, filterable, sortable, showSelectedFirst, inputProps, sortButtonProps, displayButtonProps, headerSize, showAs, selectedIcon, flat, minimal, transparent, childrenBefore, childrenAfter, emptyMessage, sortButtonTooltip, displayButtonTooltip, inputPlaceholder, ...rest }: IReqoreCollectionProps) => JSX.Element;
|
|
22
31
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Collection/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Collection/index.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAiB,MAAM,YAAY,CAAC;AAChE,OAAoB,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE1D,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAoC,MAAM,UAAU,CAAC;AAGnG,OAAO,EAAE,0BAA0B,EAAwB,MAAM,QAAQ,CAAC;AAE1E,MAAM,WAAW,sBACf,SAAQ,IAAI,CACR,iBAAiB,EACf,MAAM,GACN,QAAQ,GACR,aAA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= require("react");
|
|
69
69
|
var react_use_1 = require("react-use");
|
|
70
70
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
71
|
+
var sizes_1 = require("../../constants/sizes");
|
|
71
72
|
var Columns_1 = require("../Columns");
|
|
72
73
|
var Input_1 = __importDefault(require("../Input"));
|
|
73
74
|
var Message_1 = __importDefault(require("../Message"));
|
|
74
75
|
var Panel_1 = require("../Panel");
|
|
76
|
+
var Spacer_1 = require("../Spacer");
|
|
75
77
|
var helpers_1 = require("../Table/helpers");
|
|
76
78
|
var item_1 = require("./item");
|
|
77
|
-
exports.StyledCollectionWrapper = (0, styled_components_1["default"])(Columns_1.StyledColumns)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: ", ";\n\n ", "\n\n overflow:
|
|
79
|
+
exports.StyledCollectionWrapper = (0, styled_components_1["default"])(Columns_1.StyledColumns)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n height: ", ";\n\n ", "\n\n overflow: auto;\n position: relative;\n"], ["\n height: ", ";\n\n ", "\n\n overflow: auto;\n position: relative;\n"])), function (_a) {
|
|
78
80
|
var height = _a.height;
|
|
79
|
-
return (height ? "".concat(height
|
|
81
|
+
return (height ? "".concat(height) : 'auto');
|
|
80
82
|
}, function (_a) {
|
|
81
83
|
var rounded = _a.rounded, stacked = _a.stacked;
|
|
82
84
|
return (!rounded || stacked) && (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n border-radius: ", ";\n "], ["\n border-radius: ", ";\n "])), stacked && rounded ? '10px' : undefined);
|
|
83
85
|
});
|
|
84
86
|
var ReqoreCollection = function (_a) {
|
|
85
|
-
var items = _a.items, _b = _a.columnsGap, columnsGap = _b === void 0 ? '10px' : _b, stacked = _a.stacked, _c = _a.rounded, rounded = _c === void 0 ? true : _c, fill = _a.fill,
|
|
86
|
-
var
|
|
87
|
-
var
|
|
88
|
-
var
|
|
87
|
+
var items = _a.items, _b = _a.columnsGap, columnsGap = _b === void 0 ? '10px' : _b, stacked = _a.stacked, _c = _a.rounded, rounded = _c === void 0 ? true : _c, fill = _a.fill, maxItemHeight = _a.maxItemHeight, filterable = _a.filterable, sortable = _a.sortable, showSelectedFirst = _a.showSelectedFirst, inputProps = _a.inputProps, sortButtonProps = _a.sortButtonProps, displayButtonProps = _a.displayButtonProps, _d = _a.headerSize, headerSize = _d === void 0 ? 2 : _d, _e = _a.showAs, showAs = _e === void 0 ? 'grid' : _e, selectedIcon = _a.selectedIcon, _f = _a.flat, flat = _f === void 0 ? true : _f, minimal = _a.minimal, _g = _a.transparent, transparent = _g === void 0 ? true : _g, childrenBefore = _a.childrenBefore, childrenAfter = _a.childrenAfter, _h = _a.emptyMessage, emptyMessage = _h === void 0 ? 'No data in this collection, try changing your search query or filters' : _h, _j = _a.sortButtonTooltip, sortButtonTooltip = _j === void 0 ? function (sort) { return (sort === 'desc' ? 'Sort ascending' : 'Sort descending'); } : _j, _k = _a.displayButtonTooltip, displayButtonTooltip = _k === void 0 ? function (display) { return (display === 'grid' ? 'Show as list' : 'Show as grid'); } : _k, _l = _a.inputPlaceholder, inputPlaceholder = _l === void 0 ? function (items) { return "Filter ".concat((0, lodash_1.size)(items), " items"); } : _l, rest = __rest(_a, ["items", "columnsGap", "stacked", "rounded", "fill", "maxItemHeight", "filterable", "sortable", "showSelectedFirst", "inputProps", "sortButtonProps", "displayButtonProps", "headerSize", "showAs", "selectedIcon", "flat", "minimal", "transparent", "childrenBefore", "childrenAfter", "emptyMessage", "sortButtonTooltip", "displayButtonTooltip", "inputPlaceholder"]);
|
|
88
|
+
var _m = (0, react_2.useState)(showAs), _showAs = _m[0], setShowAs = _m[1];
|
|
89
|
+
var _o = (0, react_2.useState)('asc'), sort = _o[0], setSort = _o[1];
|
|
90
|
+
var _p = (0, react_2.useState)(''), query = _p[0], setQuery = _p[1];
|
|
89
91
|
(0, react_use_1.useUpdateEffect)(function () {
|
|
90
92
|
setShowAs(showAs);
|
|
91
93
|
}, [showAs]);
|
|
@@ -121,7 +123,7 @@ var ReqoreCollection = function (_a) {
|
|
|
121
123
|
}
|
|
122
124
|
return sortedItems.filter(function (item) {
|
|
123
125
|
var _a, _b;
|
|
124
|
-
var text = "".concat(item.label).concat((_a = item.content) === null || _a === void 0 ? void 0 : _a.toString()).concat((_b = item.expandedContent) === null || _b === void 0 ? void 0 : _b.toString());
|
|
126
|
+
var text = "".concat(item.label).concat((_a = item.content) === null || _a === void 0 ? void 0 : _a.toString()).concat((_b = item.expandedContent) === null || _b === void 0 ? void 0 : _b.toString()).concat(item.searchString || '');
|
|
125
127
|
if (!text) {
|
|
126
128
|
return false;
|
|
127
129
|
}
|
|
@@ -137,40 +139,23 @@ var ReqoreCollection = function (_a) {
|
|
|
137
139
|
var toolbarGroup = {
|
|
138
140
|
responsive: false,
|
|
139
141
|
group: [
|
|
140
|
-
{
|
|
141
|
-
icon: _showAs === 'grid' ? 'ListOrdered' : 'GridLine',
|
|
142
|
-
onClick: function () { return setShowAs(_showAs === 'grid' ? 'list' : 'grid'); },
|
|
143
|
-
tooltip: _showAs === 'grid' ? 'Show as list' : 'Show as grid',
|
|
144
|
-
disabled: !(0, lodash_1.size)(finalItems)
|
|
145
|
-
},
|
|
142
|
+
__assign({ icon: _showAs === 'grid' ? 'ListOrdered' : 'GridLine', onClick: function () { return setShowAs(_showAs === 'grid' ? 'list' : 'grid'); }, tooltip: displayButtonTooltip(_showAs), disabled: !(0, lodash_1.size)(finalItems) }, displayButtonProps),
|
|
146
143
|
]
|
|
147
144
|
};
|
|
148
145
|
if (sortable) {
|
|
149
|
-
toolbarGroup.group.push({
|
|
150
|
-
icon: sort === 'desc' ? 'SortDesc' : 'SortAsc',
|
|
151
|
-
onClick: function () { return setSort(sort === 'desc' ? 'asc' : 'desc'); },
|
|
152
|
-
tooltip: sort === 'desc' ? 'Sort ascending' : 'Sort descending',
|
|
153
|
-
disabled: !(0, lodash_1.size)(finalItems)
|
|
154
|
-
});
|
|
146
|
+
toolbarGroup.group.push(__assign({ icon: sort === 'desc' ? 'SortDesc' : 'SortAsc', onClick: function () { return setSort(sort === 'desc' ? 'asc' : 'desc'); }, tooltip: sortButtonTooltip(sort), disabled: !(0, lodash_1.size)(finalItems) }, sortButtonProps));
|
|
155
147
|
}
|
|
156
148
|
if (filterable) {
|
|
157
149
|
actions = __spreadArray(__spreadArray([], actions, true), [
|
|
158
150
|
{
|
|
159
151
|
as: Input_1["default"],
|
|
160
|
-
props: {
|
|
161
|
-
placeholder: "Filter ".concat((0, lodash_1.size)(items), " items"),
|
|
162
|
-
onClearClick: function () { return setQuery(''); },
|
|
163
|
-
onChange: handleQueryChange,
|
|
164
|
-
value: query,
|
|
165
|
-
icon: 'Search2Line',
|
|
166
|
-
minimal: false
|
|
167
|
-
}
|
|
152
|
+
props: __assign({ placeholder: inputPlaceholder(finalItems), onClearClick: function () { return setQuery(''); }, onChange: handleQueryChange, value: query, icon: 'Search2Line', minimal: false }, inputProps)
|
|
168
153
|
},
|
|
169
154
|
], false);
|
|
170
155
|
}
|
|
171
156
|
return __spreadArray(__spreadArray([], actions, true), [toolbarGroup], false);
|
|
172
157
|
}, [filterable, handleQueryChange, query, rest.actions, _showAs, sort, sortable, finalItems]);
|
|
173
|
-
return ((0, jsx_runtime_1.
|
|
158
|
+
return ((0, jsx_runtime_1.jsxs)(Panel_1.ReqorePanel, __assign({}, rest, { headerSize: headerSize, style: __assign({}, rest.style), fill: fill, padded: true, transparent: transparent, minimal: minimal, flat: flat, actions: finalActions, className: "reqore-collection ".concat(rest.className || '') }, { children: [childrenBefore ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [childrenBefore, (0, jsx_runtime_1.jsx)(Spacer_1.ReqoreVerticalSpacer, { height: sizes_1.PADDING_FROM_SIZE[rest.size || 'normal'] })] })) : null, !(0, lodash_1.size)(finalItems) ? ((0, jsx_runtime_1.jsx)(Message_1["default"], __assign({ flat: true, icon: 'Search2Line' }, { children: emptyMessage }))) : ((0, jsx_runtime_1.jsx)(exports.StyledCollectionWrapper, __assign({ columns: _showAs === 'grid' ? 'auto-fit' : 1, columnsGap: stacked ? '0px' : columnsGap, rounded: rounded, stacked: stacked }, rest, { children: finalItems === null || finalItems === void 0 ? void 0 : finalItems.map(function (item, index) { return ((0, react_1.createElement)(item_1.ReqoreCollectionItem, __assign({ size: rest.size }, item, { icon: item.icon || (item.selected ? selectedIcon : undefined), key: index, rounded: !stacked, maxContentHeight: maxItemHeight }))); }) }))), childrenAfter ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Spacer_1.ReqoreVerticalSpacer, { height: sizes_1.PADDING_FROM_SIZE[rest.size || 'normal'] }), childrenAfter] })) : null] })));
|
|
174
159
|
};
|
|
175
160
|
exports.ReqoreCollection = ReqoreCollection;
|
|
176
161
|
var templateObject_1, templateObject_2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Collection/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAA8B;AAC9B,+BAA0C;AAC1C,uCAA4C;AAC5C,qEAAgD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Collection/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAA8B;AAC9B,+BAA0C;AAC1C,uCAA4C;AAC5C,qEAAgD;AAChD,+CAA0D;AAE1D,sCAAgE;AAChE,mDAA0D;AAC1D,uDAAuC;AACvC,kCAAmG;AACnG,oCAAiD;AACjD,4CAAiD;AACjD,+BAA0E;AA4C7D,QAAA,uBAAuB,GAAG,IAAA,8BAAM,EAAC,uBAAa,CAAC,8IAAA,cAChD,EAA+C,SAEvD,EAIC,gDAIJ,KAVW,UAAC,EAAU;QAAR,MA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C,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC,EAC7D,GAAG,EAAE,KAAK,EACV,OAAO,EAAE,CAAC,OAAO,EACjB,gBAAgB,EAAE,aAAa,IAC/B,CACH,EATiC,CASjC,CAAC,IACsB,CAC3B,EACA,aAAa,CAAC,CAAC,CAAC,CACf,6DACE,uBAAC,6BAAoB,IAAC,MAAM,EAAE,yBAAiB,CAAC,IAAI,CAAC,IAAI,IAAI,QAAQ,CAAC,GAAI,EACzE,aAAa,IACb,CACJ,CAAC,CAAC,CAAC,IAAI,KACI,CACf,CAAC;AACJ,CAAC,CAAC;AA5LW,QAAA,gBAAgB,oBA4L3B"}
|
|
@@ -12,6 +12,7 @@ export interface IReqoreCollectionItemProps extends Omit<IReqorePanelProps, 'chi
|
|
|
12
12
|
tags?: IReqoreTagProps[];
|
|
13
13
|
maxContentHeight?: number;
|
|
14
14
|
showContentFade?: boolean;
|
|
15
|
+
searchString?: string;
|
|
15
16
|
}
|
|
16
17
|
export declare const StyledCollectionItemContent: any;
|
|
17
18
|
export declare const ReqoreCollectionItem: ({ flat, minimal, style, content, actions, tags, expandable, expandedContent, expandedActions, maxContentHeight, showContentFade, ...rest }: IReqoreCollectionItemProps) => JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../../src/components/Collection/item.tsx"],"names":[],"mappings":";AASA,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACxB,iBAAiB,EAElB,MAAM,UAAU,CAAC;AAGlB,OAAkB,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AAGpD,MAAM,WAAW,0BACf,SAAQ,IAAI,CACV,iBAAiB,EACf,UAAU,GACV,SAAS,GACT,aAAa,GACb,kBAAkB,GAClB,aAAa,GACb,0BAA0B,GAC1B,eAAe,CAClB;IACD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,GAAG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BvC,CAAC;AAEF,eAAO,MAAM,oBAAoB,+IAa9B,0BAA0B,gBAoL5B,CAAC"}
|
|
@@ -166,7 +166,7 @@ var ReqoreCollectionItem = function (_a) {
|
|
|
166
166
|
: (0, lodash_1.size)(actions)
|
|
167
167
|
? actions
|
|
168
168
|
: undefined;
|
|
169
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [position && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { style: __assign({}, originalDimensions.current) }), (0, jsx_runtime_1.jsx)(Drawer_1.StyledBackdrop, { zIndex: getAndIncreaseZIndex(), blur: 5, closable: true, onClick: handleItemClick })] })), (0, jsx_runtime_1.jsxs)(Panel_1.ReqorePanel, __assign({ flat: flat, ref: ref, minimal: minimal }, rest, { bottomActions: isSelected ? expandedActions : undefined, style: __assign(__assign(__assign(__assign({}, style), { position: position, zIndex: isSelected ? getAndIncreaseZIndex() : undefined }), dimensions), { transformOrigin: 'center' }), contentStyle: __assign(__assign({}, rest.contentStyle), { display: 'flex', flexFlow: 'column', justifyContent: 'space-between' }), onClick: (expandable && !isSelected) || rest.onClick ? handleItemClick : undefined, actions: actualActions, className: "reqore-collection-item ".concat(rest.className || '') }, { children: [(0, jsx_runtime_1.jsx)(exports.StyledCollectionItemContent, __assign({ theme: theme, opacity: rest.transparent ? 0 : rest.opacity, providedHeight: isSelected ? undefined : maxContentHeight, isSelected: isSelected, contentOverflows: !rest.transparent &&
|
|
169
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [position && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { style: __assign({}, originalDimensions.current) }), (0, jsx_runtime_1.jsx)(Drawer_1.StyledBackdrop, { zIndex: getAndIncreaseZIndex(), blur: 5, closable: true, onClick: handleItemClick })] })), (0, jsx_runtime_1.jsxs)(Panel_1.ReqorePanel, __assign({ flat: flat, ref: ref, minimal: minimal }, rest, { responsiveActions: false, bottomActions: isSelected ? expandedActions : undefined, style: __assign(__assign(__assign(__assign({}, style), { position: position, zIndex: isSelected ? getAndIncreaseZIndex() : undefined }), dimensions), { transformOrigin: 'center' }), contentStyle: __assign(__assign({}, rest.contentStyle), { display: 'flex', flexFlow: 'column', justifyContent: 'space-between' }), onClick: (expandable && !isSelected) || rest.onClick ? handleItemClick : undefined, actions: actualActions, className: "reqore-collection-item ".concat(rest.className || '') }, { children: [(0, jsx_runtime_1.jsx)(exports.StyledCollectionItemContent, __assign({ theme: theme, opacity: rest.transparent ? 0 : rest.opacity, providedHeight: isSelected ? undefined : maxContentHeight, isSelected: isSelected, contentOverflows: !rest.transparent &&
|
|
170
170
|
!rest.contentEffect &&
|
|
171
171
|
!isSelected &&
|
|
172
172
|
(sizes === null || sizes === void 0 ? void 0 : sizes.height) > maxContentHeight &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.js","sourceRoot":"","sources":["../../../src/components/Collection/item.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAmC;AACnC,qCAAgC;AAChC,+BAAgE;AAChE,uCAAoD;AACpD,qEAAgD;AAChD,8EAAwD;AACxD,+CAA8E;AAC9E,iDAAsD;AACtD,oCAA2C;AAC3C,kCAKkB;AAClB,0CAAuC;AACvC,oCAAyC;AACzC,+CAAoD;AACpD,uDAA0C;
|
|
1
|
+
{"version":3,"file":"item.js","sourceRoot":"","sources":["../../../src/components/Collection/item.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAmC;AACnC,qCAAgC;AAChC,+BAAgE;AAChE,uCAAoD;AACpD,qEAAgD;AAChD,8EAAwD;AACxD,+CAA8E;AAC9E,iDAAsD;AACtD,oCAA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,EAAE,KAAK,IAAK,OAAA,CAC9B,uBAAC,gBAAS,eAAiB,QAAQ,GAAnB,KAAK,CAAkB,CACxC,EAF+B,CAE/B,CAAC,IACa,IAChB,CACJ,CAAC,CAAC,CAAC,IAAI,KACI,IACb,CACJ,CAAC;IACJ,CAAC,CAAC;IAEF,OAAO,aAAa,EAAE,CAAC;AACzB,CAAC,CAAC;AAjMW,QAAA,oBAAoB,wBAiM/B"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { TSizes } from '../../constants/sizes';
|
|
3
3
|
import { IReqoreTheme } from '../../constants/theme';
|
|
4
|
-
import { IReqoreIntent, IWithReqoreCustomTheme, IWithReqoreFlat, IWithReqoreFluid, IWithReqoreSize, IWithReqoreTooltip } from '../../types/global';
|
|
4
|
+
import { IReqoreIntent, IWithReqoreCustomTheme, IWithReqoreFlat, IWithReqoreFluid, IWithReqoreIconImage, IWithReqoreSize, IWithReqoreTooltip } from '../../types/global';
|
|
5
5
|
import { IReqoreIconName } from '../../types/icons';
|
|
6
6
|
import { IReqoreButtonProps, TReqoreBadge } from '../Button';
|
|
7
7
|
import { IReqoreDropdownItem } from '../Dropdown/list';
|
|
8
8
|
import { IReqoreEffect, TReqoreEffectColor } from '../Effect';
|
|
9
|
+
import { IReqoreIconProps } from '../Icon';
|
|
9
10
|
export interface IReqorePanelAction extends IReqoreButtonProps, IWithReqoreTooltip, IReqoreIntent {
|
|
10
11
|
label?: string | number;
|
|
11
12
|
onClick?: () => void;
|
|
@@ -25,10 +26,11 @@ export interface IReqorePanelContent {
|
|
|
25
26
|
}
|
|
26
27
|
export type TReqorePanelActions = IReqorePanelAction[];
|
|
27
28
|
export type TReqorePanelBottomActions = IReqorePanelBottomAction[];
|
|
28
|
-
export interface IReqorePanelProps extends IWithReqoreSize, IWithReqoreCustomTheme, IWithReqoreFlat, IReqoreIntent, IWithReqoreTooltip, IWithReqoreFluid, React.HTMLAttributes<HTMLDivElement> {
|
|
29
|
+
export interface IReqorePanelProps extends IWithReqoreSize, IWithReqoreCustomTheme, IWithReqoreFlat, IReqoreIntent, IWithReqoreTooltip, IWithReqoreFluid, IWithReqoreIconImage, React.HTMLAttributes<HTMLDivElement> {
|
|
29
30
|
as?: any;
|
|
30
31
|
children?: any;
|
|
31
32
|
icon?: IReqoreIconName;
|
|
33
|
+
iconProps?: IReqoreIconProps;
|
|
32
34
|
label?: string | ReactElement<any>;
|
|
33
35
|
badge?: TReqoreBadge | TReqoreBadge[];
|
|
34
36
|
collapsible?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/index.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Panel/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAA8C,MAAM,OAAO,CAAC;AAGjF,OAAO,EAOL,MAAM,EACP,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAYrD,OAAO,EACL,aAAa,EACb,sBAAsB,EACtB,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,eAAe,EACf,kBAAkB,EACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAqB,EAAe,kBAAkB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAIxF,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,aAAa,EAAgB,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE5E,OAAmB,EAAE,gBAAgB,EAAqB,MAAM,SAAS,CAAC;AAE1E,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB,EAAE,kBAAkB,EAAE,aAAa;IAC/F,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,C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C,EAAE,mBAAmB,CAAC;IAC9B,aAAa,CAAC,EAAE,yBAAyB,CAAC;IAC1C,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,gBAAgB,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACnD,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACnC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAC/B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED,MAAM,WAAW,YAAa,SAAQ,iBAAiB;IACrD,KAAK,EAAE,YAAY,CAAC;IACpB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,eAAO,MAAM,WAAW,KA0EvB,CAAC;AAEF,eAAO,MAAM,gBAAgB,KAmC5B,CAAC;AAEF,eAAO,MAAM,wBAAwB,KAQpC,CAAC;AAEF,eAAO,MAAM,kBAAkB,KAkB9B,CAAC;AAEF,eAAO,MAAM,sBAAsB,KAQlC,CAAC;AAEF,eAAO,MAAM,WAAW,8GA+ZvB,CAAC"}
|
|
@@ -74,7 +74,6 @@ var Dropdown_1 = __importDefault(require("../Dropdown"));
|
|
|
74
74
|
var Effect_1 = require("../Effect");
|
|
75
75
|
var Header_1 = require("../Header");
|
|
76
76
|
var Icon_1 = __importStar(require("../Icon"));
|
|
77
|
-
var Spacer_1 = require("../Spacer");
|
|
78
77
|
exports.StyledPanel = (0, styled_components_1["default"])(Effect_1.StyledEffect)(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n background-color: ", ";\n border-radius: ", "px;\n border: ", ";\n color: ", ";\n overflow: hidden;\n display: flex;\n flex-flow: column;\n position: relative;\n backdrop-filter: ", ";\n transition: 0.2s ease-in-out;\n width: ", ";\n max-width: 100%;\n flex: ", ";\n\n ", "\n\n ", "\n"], ["\n background-color: ", ";\n border-radius: ", "px;\n border: ", ";\n color: ", ";\n overflow: hidden;\n display: flex;\n flex-flow: column;\n position: relative;\n backdrop-filter: ", ";\n transition: 0.2s ease-in-out;\n width: ", ";\n max-width: 100%;\n flex: ", ";\n\n ", "\n\n ", "\n"])), function (_a) {
|
|
79
78
|
var theme = _a.theme, _b = _a.opacity, opacity = _b === void 0 ? 1 : _b;
|
|
80
79
|
return (0, polished_1.rgba)((0, colors_1.changeDarkness)((0, colors_1.getMainBackgroundColor)(theme), 0.03), opacity);
|
|
@@ -111,7 +110,7 @@ exports.StyledPanel = (0, styled_components_1["default"])(Effect_1.StyledEffect)
|
|
|
111
110
|
return !isCollapsed && fill
|
|
112
111
|
? (0, styled_components_1.css)(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n height: 100%;\n flex: 1;\n "], ["\n height: 100%;\n flex: 1;\n "]))) : undefined;
|
|
113
112
|
});
|
|
114
|
-
exports.StyledPanelTitle = styled_components_1["default"].div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: flex;\n background-color: ", ";\n justify-content: space-between;\n min-height: 20px;\n align-items: center;\n padding: ", ";\n border-bottom: ", ";\n transition: background-color 0.2s ease-out;\n overflow: hidden;\n flex: 0 0 auto;\n\n > div > ", " {\n transform: scale(", ");\n }\n\n ", "\n"], ["\n display: flex;\n background-color: ", ";\n justify-content: space-between;\n min-height: 20px;\n align-items: center;\n padding: ", ";\n border-bottom: ", ";\n transition: background-color 0.2s ease-out;\n overflow: hidden;\n flex: 0 0 auto;\n\n > div > ", " {\n transform: scale(", ");\n }\n\n ", "\n"])), function (_a) {
|
|
113
|
+
exports.StyledPanelTitle = styled_components_1["default"].div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n display: flex;\n background-color: ", ";\n justify-content: space-between;\n min-height: 20px;\n align-items: center;\n padding: ", ";\n border-bottom: ", ";\n transition: background-color 0.2s ease-out;\n overflow: hidden;\n flex: 0 0 auto;\n gap: ", "px;\n\n > div > ", " {\n transform: scale(", ");\n }\n\n ", "\n"], ["\n display: flex;\n background-color: ", ";\n justify-content: space-between;\n min-height: 20px;\n align-items: center;\n padding: ", ";\n border-bottom: ", ";\n transition: background-color 0.2s ease-out;\n overflow: hidden;\n flex: 0 0 auto;\n gap: ", "px;\n\n > div > ", " {\n transform: scale(", ");\n }\n\n ", "\n"])), function (_a) {
|
|
115
114
|
var theme = _a.theme, _b = _a.opacity, opacity = _b === void 0 ? 1 : _b;
|
|
116
115
|
return (0, polished_1.rgba)((0, colors_1.changeLightness)((0, colors_1.getMainBackgroundColor)(theme), 0.03), opacity);
|
|
117
116
|
}, function (_a) {
|
|
@@ -122,7 +121,7 @@ exports.StyledPanelTitle = styled_components_1["default"].div(templateObject_6 |
|
|
|
122
121
|
return !isCollapsed && !flat
|
|
123
122
|
? "1px solid ".concat((0, polished_1.rgba)((0, colors_1.changeLightness)((0, colors_1.getMainBackgroundColor)(theme), 0.2), opacity))
|
|
124
123
|
: null;
|
|
125
|
-
}, Icon_1.StyledIconWrapper, styles_1.INACTIVE_ICON_SCALE, function (_a) {
|
|
124
|
+
}, sizes_1.GAP_FROM_SIZE.normal, Icon_1.StyledIconWrapper, styles_1.INACTIVE_ICON_SCALE, function (_a) {
|
|
126
125
|
var collapsible = _a.collapsible;
|
|
127
126
|
return collapsible && (0, styled_components_1.css)(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n cursor: pointer;\n &:hover {\n > div > ", " {\n transform: scale(", ");\n }\n\n background-color: ", ";\n }\n "], ["\n cursor: pointer;\n &:hover {\n > div > ", " {\n transform: scale(", ");\n }\n\n background-color: ", ";\n }\n "])), Icon_1.StyledIconWrapper, styles_1.ACTIVE_ICON_SCALE, function (_a) {
|
|
128
127
|
var theme = _a.theme, _b = _a.opacity, opacity = _b === void 0 ? 1 : _b;
|
|
@@ -158,10 +157,10 @@ exports.StyledPanelContent = styled_components_1["default"].div(templateObject_8
|
|
|
158
157
|
var size = _a.size;
|
|
159
158
|
return sizes_1.TEXT_FROM_SIZE[size];
|
|
160
159
|
});
|
|
161
|
-
exports.StyledPanelTitleHeader = styled_components_1["default"].div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n
|
|
160
|
+
exports.StyledPanelTitleHeader = styled_components_1["default"].div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n flex: 1 1 auto;\n width: 100%;\n overflow: hidden;\n min-width: 100px;\n"], ["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n flex: 1 1 auto;\n width: 100%;\n overflow: hidden;\n min-width: 100px;\n"])));
|
|
162
161
|
exports.ReqorePanel = (0, react_2.forwardRef)(function (_a, ref) {
|
|
163
|
-
var children = _a.children, label = _a.label, collapsible = _a.collapsible, onClose = _a.onClose, _b = _a.rounded, rounded = _b === void 0 ? true : _b, _c = _a.actions, actions = _c === void 0 ? [] : _c, _d = _a.bottomActions, bottomActions = _d === void 0 ? [] : _d, isCollapsed = _a.isCollapsed, customTheme = _a.customTheme, icon = _a.icon, intent = _a.intent, className = _a.className, flat = _a.flat, _e = _a.unMountContentOnCollapse, unMountContentOnCollapse = _e === void 0 ? true : _e, onCollapseChange = _a.onCollapseChange, _f = _a.padded, padded = _f === void 0 ? true : _f, contentStyle = _a.contentStyle, contentEffect = _a.contentEffect, _g = _a.headerEffect, headerEffect = _g === void 0 ? {} : _g, headerSize = _a.headerSize, contentSize = _a.contentSize, minimal = _a.minimal, tooltip = _a.tooltip, badge = _a.badge, iconColor = _a.iconColor, fluid = _a.fluid,
|
|
164
|
-
var
|
|
162
|
+
var children = _a.children, label = _a.label, collapsible = _a.collapsible, onClose = _a.onClose, _b = _a.rounded, rounded = _b === void 0 ? true : _b, _c = _a.actions, actions = _c === void 0 ? [] : _c, _d = _a.bottomActions, bottomActions = _d === void 0 ? [] : _d, isCollapsed = _a.isCollapsed, customTheme = _a.customTheme, icon = _a.icon, iconImage = _a.iconImage, intent = _a.intent, className = _a.className, flat = _a.flat, _e = _a.unMountContentOnCollapse, unMountContentOnCollapse = _e === void 0 ? true : _e, onCollapseChange = _a.onCollapseChange, _f = _a.padded, padded = _f === void 0 ? true : _f, contentStyle = _a.contentStyle, contentEffect = _a.contentEffect, _g = _a.headerEffect, headerEffect = _g === void 0 ? {} : _g, headerSize = _a.headerSize, contentSize = _a.contentSize, minimal = _a.minimal, tooltip = _a.tooltip, badge = _a.badge, iconColor = _a.iconColor, _h = _a.iconProps, iconProps = _h === void 0 ? {} : _h, fluid = _a.fluid, _j = _a.responsiveActions, responsiveActions = _j === void 0 ? true : _j, _k = _a.size, panelSize = _k === void 0 ? 'normal' : _k, rest = __rest(_a, ["children", "label", "collapsible", "onClose", "rounded", "actions", "bottomActions", "isCollapsed", "customTheme", "icon", "iconImage", "intent", "className", "flat", "unMountContentOnCollapse", "onCollapseChange", "padded", "contentStyle", "contentEffect", "headerEffect", "headerSize", "contentSize", "minimal", "tooltip", "badge", "iconColor", "iconProps", "fluid", "responsiveActions", "size"]);
|
|
163
|
+
var _l = (0, react_2.useState)(isCollapsed || false), _isCollapsed = _l[0], setIsCollapsed = _l[1];
|
|
165
164
|
var theme = (0, useTheme_1.useReqoreTheme)('main', customTheme ||
|
|
166
165
|
((contentEffect === null || contentEffect === void 0 ? void 0 : contentEffect.gradient) && minimal
|
|
167
166
|
? { main: Object.values(contentEffect.gradient.colors)[0] }
|
|
@@ -262,10 +261,10 @@ exports.ReqorePanel = (0, react_2.forwardRef)(function (_a, ref) {
|
|
|
262
261
|
}, [intent, theme, contentEffect, interactive]);
|
|
263
262
|
var opacity = rest.transparent ? 0 : rest.opacity;
|
|
264
263
|
var noHorizontalPadding = opacity === 0 && flat && !intent;
|
|
265
|
-
return ((0, jsx_runtime_1.jsxs)(exports.StyledPanel, __assign({}, rest, { as: rest.as || 'div', ref: targetRef, isCollapsed: _isCollapsed, rounded: rounded, flat: flat, intent: intent, className: "".concat(className || '', " reqore-panel"), interactive: interactive, theme: theme, effect: transformedContentEffect, opacity: opacity, fluid: fluid }, { children: [hasTitleBar && ((0, jsx_runtime_1.jsxs)(exports.StyledPanelTitle, __assign({ flat: flat, isCollapsed: _isCollapsed, collapsible: collapsible, className: 'reqore-panel-title', onClick: handleCollapseClick, theme: theme, size: contentSize || panelSize, opacity: opacity !== null && opacity !== void 0 ? opacity : (minimal ? 0 : 1), noHorizontalPadding: noHorizontalPadding }, { children: [hasTitleHeader && ((0, jsx_runtime_1.jsxs)(exports.StyledPanelTitleHeader, { children: [icon
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
264
|
+
return ((0, jsx_runtime_1.jsxs)(exports.StyledPanel, __assign({}, rest, { as: rest.as || 'div', ref: targetRef, isCollapsed: _isCollapsed, rounded: rounded, flat: flat, intent: intent, className: "".concat(className || '', " reqore-panel"), interactive: interactive, theme: theme, effect: transformedContentEffect, opacity: opacity, fluid: fluid }, { children: [hasTitleBar && ((0, jsx_runtime_1.jsxs)(exports.StyledPanelTitle, __assign({ flat: flat, isCollapsed: _isCollapsed, collapsible: collapsible, className: 'reqore-panel-title', onClick: handleCollapseClick, theme: theme, size: contentSize || panelSize, opacity: opacity !== null && opacity !== void 0 ? opacity : (minimal ? 0 : 1), noHorizontalPadding: noHorizontalPadding }, { children: [hasTitleHeader && ((0, jsx_runtime_1.jsxs)(exports.StyledPanelTitleHeader, { children: [icon || iconImage ? ((0, jsx_runtime_1.jsx)(Icon_1["default"], __assign({ size: "".concat(sizes_1.ICON_FROM_HEADER_SIZE[headerSize || sizes_1.HEADER_SIZE_TO_NUMBER[panelSize]], "px"), icon: icon, image: iconImage, margin: 'right', color: iconColor }, iconProps))) : null, typeof label === 'string' ? ((0, jsx_runtime_1.jsx)(Header_1.ReqoreHeading, __assign({ size: headerSize || panelSize, customTheme: theme, effect: __assign({ noWrap: true }, headerEffect) }, { children: label }))) : (label), badge || badge === 0 ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(Button_1.ButtonBadge, { color: (0, colors_1.changeLightness)(theme.main, 0.18), size: (0, utils_1.getOneHigherSize)(panelSize), content: badge }) })) : null] })), hasResponsiveActions(actions) && ((0, jsx_runtime_1.jsx)(ControlGroup_1["default"], __assign({ responsive: responsiveActions, fluid: responsiveActions, horizontalAlign: 'flex-end', customTheme: theme, size: panelSize }, { children: actions.map(renderResponsiveActions) }))), collapsible || onClose || hasNonResponsiveActions(actions) ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)(ControlGroup_1["default"], __assign({ fixed: true, horizontalAlign: 'flex-end', size: panelSize }, { children: [actions.map(renderNonResponsiveActions), collapsible && ((0, jsx_runtime_1.jsx)(Button_1["default"], { customTheme: theme, icon: _isCollapsed ? 'ArrowDownSLine' : 'ArrowUpSLine', onClick: handleCollapseClick, tooltip: _isCollapsed ? 'Expand' : 'Collapse', fixed: true })), onClose && ((0, jsx_runtime_1.jsx)(Button_1["default"], { fixed: true, customTheme: theme, icon: 'CloseLine', onClick: function (e) {
|
|
265
|
+
e.stopPropagation();
|
|
266
|
+
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
267
|
+
} }))] })) })) : null] }))), !_isCollapsed || (_isCollapsed && !unMountContentOnCollapse) ? ((0, jsx_runtime_1.jsx)(exports.StyledPanelContent, __assign({ as: 'div', className: 'reqore-panel-content', hasLabel: !!label, isCollapsed: _isCollapsed, style: contentStyle, padded: padded, minimal: minimal, size: contentSize || panelSize, noHorizontalPadding: noHorizontalPadding }, { children: children }))) : null, hasBottomActions && !_isCollapsed ? ((0, jsx_runtime_1.jsxs)(exports.StyledPanelBottomActions, __assign({ flat: flat, className: 'reqore-panel-bottom-actions', theme: theme, opacity: opacity !== null && opacity !== void 0 ? opacity : (minimal ? 0 : 1), size: contentSize || panelSize, noHorizontalPadding: noHorizontalPadding }, { children: [hasNonResponsiveActions(leftBottomActions) ? ((0, jsx_runtime_1.jsx)(ControlGroup_1["default"], __assign({ size: panelSize }, { children: leftBottomActions.map(renderNonResponsiveActions) }))) : null, hasResponsiveActions(leftBottomActions) && ((0, jsx_runtime_1.jsx)(ControlGroup_1["default"], __assign({ fluid: responsiveActions, responsive: responsiveActions, customTheme: theme, size: panelSize }, { children: leftBottomActions.map(renderResponsiveActions) }))), hasResponsiveActions(rightBottomActions) && ((0, jsx_runtime_1.jsx)(ControlGroup_1["default"], __assign({ fluid: responsiveActions, horizontalAlign: 'flex-end', responsive: responsiveActions, customTheme: theme, size: panelSize }, { children: rightBottomActions.map(renderResponsiveActions) }))), hasNonResponsiveActions(rightBottomActions) ? ((0, jsx_runtime_1.jsx)(ControlGroup_1["default"], __assign({ horizontalAlign: 'flex-end', size: panelSize }, { children: rightBottomActions.map(renderNonResponsiveActions) }))) : null] }))) : null] })));
|
|
269
268
|
});
|
|
270
269
|
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9;
|
|
271
270
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Panel/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAA8B;AAC9B,qCAAwC;AACxC,+BAAiF;AACjF,uCAA4C;AAC5C,qEAAgD;AAChD,+CAQ+B;AAE/B,+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AC,CAAC,CAAC,CAAC,CAAC,CAAC,EACrC,IAAI,EAAE,WAAW,IAAI,SAAS,EAC9B,mBAAmB,EAAE,mBAAmB,iBAEvC,uBAAuB,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAC5C,uBAAC,yBAAkB,aAAC,IAAI,EAAE,SAAS,gBAChC,iBAAiB,CAAC,GAAG,CAAC,0BAA0B,CAAC,IAC/B,CACtB,CAAC,CAAC,CAAC,IAAI,EACP,oBAAoB,CAAC,iBAAiB,CAAC,IAAI,CAC1C,uBAAC,yBAAkB,aACjB,KAAK,EAAE,iBAAiB,EACxB,UAAU,EAAE,iBAAiB,EAC7B,WAAW,EAAE,KAAK,EAClB,IAAI,EAAE,SAAS,gBAEd,iBAAiB,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAC5B,CACtB,EACA,oBAAoB,CAAC,kBAAkB,CAAC,IAAI,CAC3C,uBAAC,yBAAkB,aACjB,KAAK,EAAE,iBAAiB,EACxB,eAAe,EAAC,UAAU,EAC1B,UAAU,EAAE,iBAAiB,EAC7B,WAAW,EAAE,KAAK,EAClB,IAAI,EAAE,SAAS,gBAEd,kBAAkB,CAAC,GAAG,CAAC,uBAAuB,CAAC,IAC7B,CACtB,EACA,uBAAuB,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,CAC7C,uBAAC,yBAAkB,aAAC,eAAe,EAAC,UAAU,EAAC,IAAI,EAAE,SAAS,gBAC3D,kBAAkB,CAAC,GAAG,CAAC,0BAA0B,CAAC,IAChC,CACtB,CAAC,CAAC,CAAC,IAAI,KACiB,CAC5B,CAAC,CAAC,CAAC,IAAI,KACI,CACf,CAAC;AACJ,CAAC,CACF,CAAC"}
|
package/dist/types/global.d.ts
CHANGED
|
@@ -129,6 +129,17 @@ export interface IWithReqoreFluid {
|
|
|
129
129
|
*/
|
|
130
130
|
fluid?: boolean;
|
|
131
131
|
}
|
|
132
|
+
export interface IWithReqoreIconImage {
|
|
133
|
+
/**
|
|
134
|
+
* Use image as the icon for this component
|
|
135
|
+
* @default undefined
|
|
136
|
+
* @type string
|
|
137
|
+
* @example
|
|
138
|
+
* <ReqoreInput iconImage="...your image URL" />
|
|
139
|
+
*
|
|
140
|
+
*/
|
|
141
|
+
iconImage?: string;
|
|
142
|
+
}
|
|
132
143
|
export interface IWithReqoreFixed {
|
|
133
144
|
/**
|
|
134
145
|
* If true, the component will be fixed in fluid containers
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global.d.ts","sourceRoot":"","sources":["../../src/types/global.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,MAAM,WAAW,gBAAgB;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,eAAe;IAC9B;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B;;;;;;;;;OASG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,aAAa;IAC5B;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,EAAE,aAAa,CAAC;CACxB;AAED,MAAM,WAAW,sBAAsB;IACrC;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC;CAClC;AAED,MAAM,WAAW,kBAAkB;IACjC;;;;;;;;;;OAUG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,cAAc,CAAC;CACnC;AAED,MAAM,WAAW,eAAe;IAC9B;;;;;;;;;;OAUG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WA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 -2,11 +2,13 @@ import { size } from 'lodash';
|
|
|
2
2
|
import { useMemo, useState } from 'react';
|
|
3
3
|
import { useUpdateEffect } from 'react-use';
|
|
4
4
|
import styled, { css } from 'styled-components';
|
|
5
|
+
import { PADDING_FROM_SIZE } from '../../constants/sizes';
|
|
5
6
|
import { IReqoreIconName } from '../../types/icons';
|
|
6
7
|
import { IReqoreColumnsProps, StyledColumns } from '../Columns';
|
|
7
|
-
import ReqoreInput from '../Input';
|
|
8
|
+
import ReqoreInput, { IReqoreInputProps } from '../Input';
|
|
8
9
|
import ReqoreMessage from '../Message';
|
|
9
10
|
import { IReqorePanelAction, IReqorePanelProps, ReqorePanel, TReqorePanelActions } from '../Panel';
|
|
11
|
+
import { ReqoreVerticalSpacer } from '../Spacer';
|
|
10
12
|
import { sortTableData } from '../Table/helpers';
|
|
11
13
|
import { IReqoreCollectionItemProps, ReqoreCollectionItem } from './item';
|
|
12
14
|
|
|
@@ -29,6 +31,9 @@ export interface IReqoreCollectionProps
|
|
|
29
31
|
>,
|
|
30
32
|
IReqoreColumnsProps {
|
|
31
33
|
items?: IReqoreCollectionItemProps[];
|
|
34
|
+
inputProps?: IReqoreInputProps;
|
|
35
|
+
sortButtonProps?: IReqorePanelAction;
|
|
36
|
+
displayButtonProps?: IReqorePanelAction;
|
|
32
37
|
stacked?: boolean;
|
|
33
38
|
rounded?: boolean;
|
|
34
39
|
height?: string;
|
|
@@ -39,11 +44,18 @@ export interface IReqoreCollectionProps
|
|
|
39
44
|
showAs?: 'list' | 'grid';
|
|
40
45
|
showSelectedFirst?: boolean;
|
|
41
46
|
selectedIcon?: IReqoreIconName;
|
|
47
|
+
|
|
48
|
+
childrenBefore?: React.ReactNode;
|
|
49
|
+
childrenAfter?: React.ReactNode;
|
|
50
|
+
|
|
42
51
|
emptyMessage?: string;
|
|
52
|
+
sortButtonTooltip?: (sort?: 'asc' | 'desc') => string;
|
|
53
|
+
displayButtonTooltip?: (display?: 'list' | 'grid') => string;
|
|
54
|
+
inputPlaceholder?: (items?: IReqoreCollectionItemProps[]) => string;
|
|
43
55
|
}
|
|
44
56
|
|
|
45
57
|
export const StyledCollectionWrapper = styled(StyledColumns)`
|
|
46
|
-
height: ${({ height }) => (height ? `${height}
|
|
58
|
+
height: ${({ height }) => (height ? `${height}` : 'auto')};
|
|
47
59
|
|
|
48
60
|
${({ rounded, stacked }: IReqoreCollectionProps) =>
|
|
49
61
|
(!rounded || stacked) &&
|
|
@@ -51,7 +63,7 @@ export const StyledCollectionWrapper = styled(StyledColumns)`
|
|
|
51
63
|
border-radius: ${stacked && rounded ? '10px' : undefined};
|
|
52
64
|
`}
|
|
53
65
|
|
|
54
|
-
overflow:
|
|
66
|
+
overflow: auto;
|
|
55
67
|
position: relative;
|
|
56
68
|
`;
|
|
57
69
|
|
|
@@ -61,18 +73,25 @@ export const ReqoreCollection = ({
|
|
|
61
73
|
stacked,
|
|
62
74
|
rounded = true,
|
|
63
75
|
fill,
|
|
64
|
-
height,
|
|
65
76
|
maxItemHeight,
|
|
66
77
|
filterable,
|
|
67
78
|
sortable,
|
|
68
79
|
showSelectedFirst,
|
|
80
|
+
inputProps,
|
|
81
|
+
sortButtonProps,
|
|
82
|
+
displayButtonProps,
|
|
69
83
|
headerSize = 2,
|
|
70
84
|
showAs = 'grid',
|
|
71
85
|
selectedIcon,
|
|
72
86
|
flat = true,
|
|
73
87
|
minimal,
|
|
74
88
|
transparent = true,
|
|
89
|
+
childrenBefore,
|
|
90
|
+
childrenAfter,
|
|
75
91
|
emptyMessage = 'No data in this collection, try changing your search query or filters',
|
|
92
|
+
sortButtonTooltip = (sort) => (sort === 'desc' ? 'Sort ascending' : 'Sort descending'),
|
|
93
|
+
displayButtonTooltip = (display) => (display === 'grid' ? 'Show as list' : 'Show as grid'),
|
|
94
|
+
inputPlaceholder = (items) => `Filter ${size(items)} items`,
|
|
76
95
|
...rest
|
|
77
96
|
}: IReqoreCollectionProps) => {
|
|
78
97
|
const [_showAs, setShowAs] = useState<'list' | 'grid'>(showAs);
|
|
@@ -119,7 +138,9 @@ export const ReqoreCollection = ({
|
|
|
119
138
|
}
|
|
120
139
|
|
|
121
140
|
return sortedItems.filter((item) => {
|
|
122
|
-
const text = `${item.label}${item.content?.toString()}${item.expandedContent?.toString()}
|
|
141
|
+
const text = `${item.label}${item.content?.toString()}${item.expandedContent?.toString()}${
|
|
142
|
+
item.searchString || ''
|
|
143
|
+
}`;
|
|
123
144
|
|
|
124
145
|
if (!text) {
|
|
125
146
|
return false;
|
|
@@ -143,8 +164,9 @@ export const ReqoreCollection = ({
|
|
|
143
164
|
{
|
|
144
165
|
icon: _showAs === 'grid' ? 'ListOrdered' : 'GridLine',
|
|
145
166
|
onClick: () => setShowAs(_showAs === 'grid' ? 'list' : 'grid'),
|
|
146
|
-
tooltip: _showAs
|
|
167
|
+
tooltip: displayButtonTooltip(_showAs),
|
|
147
168
|
disabled: !size(finalItems),
|
|
169
|
+
...displayButtonProps,
|
|
148
170
|
},
|
|
149
171
|
],
|
|
150
172
|
};
|
|
@@ -153,8 +175,9 @@ export const ReqoreCollection = ({
|
|
|
153
175
|
toolbarGroup.group.push({
|
|
154
176
|
icon: sort === 'desc' ? 'SortDesc' : 'SortAsc',
|
|
155
177
|
onClick: () => setSort(sort === 'desc' ? 'asc' : 'desc'),
|
|
156
|
-
tooltip: sort
|
|
178
|
+
tooltip: sortButtonTooltip(sort),
|
|
157
179
|
disabled: !size(finalItems),
|
|
180
|
+
...sortButtonProps,
|
|
158
181
|
});
|
|
159
182
|
}
|
|
160
183
|
|
|
@@ -164,12 +187,13 @@ export const ReqoreCollection = ({
|
|
|
164
187
|
{
|
|
165
188
|
as: ReqoreInput,
|
|
166
189
|
props: {
|
|
167
|
-
placeholder:
|
|
190
|
+
placeholder: inputPlaceholder(finalItems),
|
|
168
191
|
onClearClick: () => setQuery(''),
|
|
169
192
|
onChange: handleQueryChange,
|
|
170
193
|
value: query,
|
|
171
194
|
icon: 'Search2Line',
|
|
172
195
|
minimal: false,
|
|
196
|
+
...inputProps,
|
|
173
197
|
},
|
|
174
198
|
},
|
|
175
199
|
];
|
|
@@ -184,7 +208,6 @@ export const ReqoreCollection = ({
|
|
|
184
208
|
headerSize={headerSize}
|
|
185
209
|
style={{
|
|
186
210
|
...rest.style,
|
|
187
|
-
height: height ?? undefined,
|
|
188
211
|
}}
|
|
189
212
|
fill={fill}
|
|
190
213
|
padded
|
|
@@ -194,8 +217,14 @@ export const ReqoreCollection = ({
|
|
|
194
217
|
actions={finalActions}
|
|
195
218
|
className={`reqore-collection ${rest.className || ''}`}
|
|
196
219
|
>
|
|
220
|
+
{childrenBefore ? (
|
|
221
|
+
<>
|
|
222
|
+
{childrenBefore}
|
|
223
|
+
<ReqoreVerticalSpacer height={PADDING_FROM_SIZE[rest.size || 'normal']} />
|
|
224
|
+
</>
|
|
225
|
+
) : null}
|
|
197
226
|
{!size(finalItems) ? (
|
|
198
|
-
<ReqoreMessage
|
|
227
|
+
<ReqoreMessage flat icon='Search2Line'>
|
|
199
228
|
{emptyMessage}
|
|
200
229
|
</ReqoreMessage>
|
|
201
230
|
) : (
|
|
@@ -206,17 +235,24 @@ export const ReqoreCollection = ({
|
|
|
206
235
|
stacked={stacked}
|
|
207
236
|
{...rest}
|
|
208
237
|
>
|
|
209
|
-
{finalItems?.map((item) => (
|
|
238
|
+
{finalItems?.map((item, index) => (
|
|
210
239
|
<ReqoreCollectionItem
|
|
240
|
+
size={rest.size}
|
|
211
241
|
{...item}
|
|
212
242
|
icon={item.icon || (item.selected ? selectedIcon : undefined)}
|
|
213
|
-
key={
|
|
243
|
+
key={index}
|
|
214
244
|
rounded={!stacked}
|
|
215
245
|
maxContentHeight={maxItemHeight}
|
|
216
246
|
/>
|
|
217
247
|
))}
|
|
218
248
|
</StyledCollectionWrapper>
|
|
219
249
|
)}
|
|
250
|
+
{childrenAfter ? (
|
|
251
|
+
<>
|
|
252
|
+
<ReqoreVerticalSpacer height={PADDING_FROM_SIZE[rest.size || 'normal']} />
|
|
253
|
+
{childrenAfter}
|
|
254
|
+
</>
|
|
255
|
+
) : null}
|
|
220
256
|
</ReqorePanel>
|
|
221
257
|
);
|
|
222
258
|
};
|
|
@@ -39,6 +39,7 @@ export interface IReqoreCollectionItemProps
|
|
|
39
39
|
tags?: IReqoreTagProps[];
|
|
40
40
|
maxContentHeight?: number;
|
|
41
41
|
showContentFade?: boolean;
|
|
42
|
+
searchString?: string;
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
export const StyledCollectionItemContent = styled.div`
|
|
@@ -205,6 +206,7 @@ export const ReqoreCollectionItem = ({
|
|
|
205
206
|
ref={ref}
|
|
206
207
|
minimal={minimal}
|
|
207
208
|
{...rest}
|
|
209
|
+
responsiveActions={false}
|
|
208
210
|
bottomActions={isSelected ? expandedActions : undefined}
|
|
209
211
|
style={{
|
|
210
212
|
...style,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { size } from 'lodash';
|
|
2
2
|
import { darken, rgba } from 'polished';
|
|
3
|
-
import {
|
|
3
|
+
import { ReactElement, forwardRef, useCallback, useMemo, useState } from 'react';
|
|
4
4
|
import { useUpdateEffect } from 'react-use';
|
|
5
5
|
import styled, { css } from 'styled-components';
|
|
6
6
|
import {
|
|
@@ -29,6 +29,7 @@ import {
|
|
|
29
29
|
IWithReqoreCustomTheme,
|
|
30
30
|
IWithReqoreFlat,
|
|
31
31
|
IWithReqoreFluid,
|
|
32
|
+
IWithReqoreIconImage,
|
|
32
33
|
IWithReqoreSize,
|
|
33
34
|
IWithReqoreTooltip,
|
|
34
35
|
} from '../../types/global';
|
|
@@ -40,8 +41,7 @@ import ReqoreDropdown from '../Dropdown';
|
|
|
40
41
|
import { IReqoreDropdownItem } from '../Dropdown/list';
|
|
41
42
|
import { IReqoreEffect, StyledEffect, TReqoreEffectColor } from '../Effect';
|
|
42
43
|
import { ReqoreHeading } from '../Header';
|
|
43
|
-
import ReqoreIcon, { StyledIconWrapper } from '../Icon';
|
|
44
|
-
import { ReqoreHorizontalSpacer, ReqoreSpacer } from '../Spacer';
|
|
44
|
+
import ReqoreIcon, { IReqoreIconProps, StyledIconWrapper } from '../Icon';
|
|
45
45
|
|
|
46
46
|
export interface IReqorePanelAction extends IReqoreButtonProps, IWithReqoreTooltip, IReqoreIntent {
|
|
47
47
|
label?: string | number;
|
|
@@ -72,10 +72,12 @@ export interface IReqorePanelProps
|
|
|
72
72
|
IReqoreIntent,
|
|
73
73
|
IWithReqoreTooltip,
|
|
74
74
|
IWithReqoreFluid,
|
|
75
|
+
IWithReqoreIconImage,
|
|
75
76
|
React.HTMLAttributes<HTMLDivElement> {
|
|
76
77
|
as?: any;
|
|
77
78
|
children?: any;
|
|
78
79
|
icon?: IReqoreIconName;
|
|
80
|
+
iconProps?: IReqoreIconProps;
|
|
79
81
|
label?: string | ReactElement<any>;
|
|
80
82
|
badge?: TReqoreBadge | TReqoreBadge[];
|
|
81
83
|
collapsible?: boolean;
|
|
@@ -198,6 +200,7 @@ export const StyledPanelTitle = styled.div<IStyledPanel>`
|
|
|
198
200
|
transition: background-color 0.2s ease-out;
|
|
199
201
|
overflow: hidden;
|
|
200
202
|
flex: 0 0 auto;
|
|
203
|
+
gap: ${GAP_FROM_SIZE.normal}px;
|
|
201
204
|
|
|
202
205
|
> div > ${StyledIconWrapper} {
|
|
203
206
|
transform: scale(${INACTIVE_ICON_SCALE});
|
|
@@ -252,7 +255,6 @@ export const StyledPanelTitleHeader = styled.div`
|
|
|
252
255
|
display: flex;
|
|
253
256
|
justify-content: flex-start;
|
|
254
257
|
align-items: center;
|
|
255
|
-
padding-right: 5px;
|
|
256
258
|
flex: 1 1 auto;
|
|
257
259
|
width: 100%;
|
|
258
260
|
overflow: hidden;
|
|
@@ -272,6 +274,7 @@ export const ReqorePanel = forwardRef<HTMLDivElement, IReqorePanelProps>(
|
|
|
272
274
|
isCollapsed,
|
|
273
275
|
customTheme,
|
|
274
276
|
icon,
|
|
277
|
+
iconImage,
|
|
275
278
|
intent,
|
|
276
279
|
className,
|
|
277
280
|
flat,
|
|
@@ -287,6 +290,7 @@ export const ReqorePanel = forwardRef<HTMLDivElement, IReqorePanelProps>(
|
|
|
287
290
|
tooltip,
|
|
288
291
|
badge,
|
|
289
292
|
iconColor,
|
|
293
|
+
iconProps = {},
|
|
290
294
|
fluid,
|
|
291
295
|
responsiveActions = true,
|
|
292
296
|
size: panelSize = 'normal',
|
|
@@ -535,16 +539,18 @@ export const ReqorePanel = forwardRef<HTMLDivElement, IReqorePanelProps>(
|
|
|
535
539
|
>
|
|
536
540
|
{hasTitleHeader && (
|
|
537
541
|
<StyledPanelTitleHeader>
|
|
538
|
-
{icon
|
|
542
|
+
{icon || iconImage ? (
|
|
539
543
|
<ReqoreIcon
|
|
540
544
|
size={`${
|
|
541
545
|
ICON_FROM_HEADER_SIZE[headerSize || HEADER_SIZE_TO_NUMBER[panelSize]]
|
|
542
546
|
}px`}
|
|
543
547
|
icon={icon}
|
|
548
|
+
image={iconImage}
|
|
544
549
|
margin='right'
|
|
545
550
|
color={iconColor}
|
|
551
|
+
{...iconProps}
|
|
546
552
|
/>
|
|
547
|
-
)}
|
|
553
|
+
) : null}
|
|
548
554
|
{typeof label === 'string' ? (
|
|
549
555
|
<ReqoreHeading
|
|
550
556
|
size={headerSize || panelSize}
|
|
@@ -566,7 +572,6 @@ export const ReqorePanel = forwardRef<HTMLDivElement, IReqorePanelProps>(
|
|
|
566
572
|
size={getOneHigherSize(panelSize)}
|
|
567
573
|
content={badge}
|
|
568
574
|
/>
|
|
569
|
-
<ReqoreSpacer width={PADDING_FROM_SIZE.normal} />
|
|
570
575
|
</>
|
|
571
576
|
) : null}
|
|
572
577
|
</StyledPanelTitleHeader>
|
|
@@ -584,7 +589,6 @@ export const ReqorePanel = forwardRef<HTMLDivElement, IReqorePanelProps>(
|
|
|
584
589
|
)}
|
|
585
590
|
{collapsible || onClose || hasNonResponsiveActions(actions) ? (
|
|
586
591
|
<>
|
|
587
|
-
<ReqoreHorizontalSpacer width={GAP_FROM_SIZE.normal} />
|
|
588
592
|
<ReqoreControlGroup fixed horizontalAlign='flex-end' size={panelSize}>
|
|
589
593
|
{actions.map(renderNonResponsiveActions)}
|
|
590
594
|
{collapsible && (
|
|
@@ -637,12 +641,9 @@ export const ReqorePanel = forwardRef<HTMLDivElement, IReqorePanelProps>(
|
|
|
637
641
|
noHorizontalPadding={noHorizontalPadding}
|
|
638
642
|
>
|
|
639
643
|
{hasNonResponsiveActions(leftBottomActions) ? (
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
</ReqoreControlGroup>
|
|
644
|
-
<ReqoreHorizontalSpacer width={GAP_FROM_SIZE.normal} />
|
|
645
|
-
</>
|
|
644
|
+
<ReqoreControlGroup size={panelSize}>
|
|
645
|
+
{leftBottomActions.map(renderNonResponsiveActions)}
|
|
646
|
+
</ReqoreControlGroup>
|
|
646
647
|
) : null}
|
|
647
648
|
{hasResponsiveActions(leftBottomActions) && (
|
|
648
649
|
<ReqoreControlGroup
|
|
@@ -666,12 +667,9 @@ export const ReqorePanel = forwardRef<HTMLDivElement, IReqorePanelProps>(
|
|
|
666
667
|
</ReqoreControlGroup>
|
|
667
668
|
)}
|
|
668
669
|
{hasNonResponsiveActions(rightBottomActions) ? (
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
{rightBottomActions.map(renderNonResponsiveActions)}
|
|
673
|
-
</ReqoreControlGroup>
|
|
674
|
-
</>
|
|
670
|
+
<ReqoreControlGroup horizontalAlign='flex-end' size={panelSize}>
|
|
671
|
+
{rightBottomActions.map(renderNonResponsiveActions)}
|
|
672
|
+
</ReqoreControlGroup>
|
|
675
673
|
) : null}
|
|
676
674
|
</StyledPanelBottomActions>
|
|
677
675
|
) : null}
|
|
@@ -60,6 +60,7 @@ export default [
|
|
|
60
60
|
'Hello I am a test item content and I am very long so I will wrap to the next line and I will be very long',
|
|
61
61
|
minimal: false,
|
|
62
62
|
badge: 0,
|
|
63
|
+
searchString: 'secret',
|
|
63
64
|
},
|
|
64
65
|
{
|
|
65
66
|
icon: 'ZcoolLine',
|
|
@@ -93,6 +94,7 @@ export default [
|
|
|
93
94
|
label: 'Item with custom content when expanded',
|
|
94
95
|
tooltip: 'Expandable item with custom content',
|
|
95
96
|
selected: true,
|
|
97
|
+
badge: '2km',
|
|
96
98
|
content:
|
|
97
99
|
'Hello I am a test item content and I am very long so I will wrap to the next line and I will be very long. Hello I am a test item content and I am very long so I will wrap to the next line and I will be very long. Hello I am a test item content and I am very long so I will wrap to the next line and I will be very long. Hello I am a test item content and I am very long so I will wrap to the next line and I will be very long. Hello I am a test item content and I am very long so I will wrap to the next line and I will be very long. Hello I am a test item content and I am very long so I will wrap to the next line and I will be very long',
|
|
98
100
|
expandable: true,
|
|
@@ -282,7 +284,6 @@ export default [
|
|
|
282
284
|
expandable: true,
|
|
283
285
|
},
|
|
284
286
|
{
|
|
285
|
-
label: 'I have bottom actions',
|
|
286
287
|
content:
|
|
287
288
|
'Hello I am a test item content and I am very long so I will wrap to the next line and I will be very long',
|
|
288
289
|
expandedActions: [
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
|
+
import { ReqoreButton, ReqoreControlGroup } from '../..';
|
|
2
3
|
import { IReqoreCollectionProps, ReqoreCollection } from '../../components/Collection';
|
|
3
4
|
import { IReqoreColumnsProps } from '../../components/Columns';
|
|
4
5
|
import items from '../../mock/collectionData';
|
|
@@ -112,3 +113,47 @@ SelectedFirst.args = {
|
|
|
112
113
|
items,
|
|
113
114
|
showSelectedFirst: true,
|
|
114
115
|
};
|
|
116
|
+
|
|
117
|
+
export const CustomPropsAndTexts = Template.bind({});
|
|
118
|
+
CustomPropsAndTexts.args = {
|
|
119
|
+
label: 'Collection of items',
|
|
120
|
+
items,
|
|
121
|
+
inputProps: {
|
|
122
|
+
effect: {
|
|
123
|
+
gradient: { colors: 'warning' },
|
|
124
|
+
},
|
|
125
|
+
minimal: true,
|
|
126
|
+
},
|
|
127
|
+
inputPlaceholder: (items) => `Search in ${items.length} crazy items`,
|
|
128
|
+
sortButtonTooltip: (sort) => `Seradit ${sort === 'asc' ? 'vzestupne' : 'sestupne'}`,
|
|
129
|
+
displayButtonTooltip: (display) => `Zobrazit ${display === 'list' ? 'v liste' : 'v mriezke'}`,
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
export const ChildrenBeforeAndAfter = Template.bind({});
|
|
133
|
+
ChildrenBeforeAndAfter.args = {
|
|
134
|
+
label: 'Collection of items',
|
|
135
|
+
items,
|
|
136
|
+
childrenBefore: (
|
|
137
|
+
<ReqoreControlGroup horizontalAlign='center' fluid>
|
|
138
|
+
<ReqoreButton fluid> I could be a filter of some kind</ReqoreButton>
|
|
139
|
+
</ReqoreControlGroup>
|
|
140
|
+
),
|
|
141
|
+
childrenAfter: (
|
|
142
|
+
<ReqoreControlGroup horizontalAlign='center' fluid>
|
|
143
|
+
<ReqoreControlGroup fluid={false} fixed>
|
|
144
|
+
<ReqoreButton fixed textAlign='center'>
|
|
145
|
+
1
|
|
146
|
+
</ReqoreButton>
|
|
147
|
+
<ReqoreButton fixed textAlign='center'>
|
|
148
|
+
2
|
|
149
|
+
</ReqoreButton>
|
|
150
|
+
<ReqoreButton fixed textAlign='center'>
|
|
151
|
+
3
|
|
152
|
+
</ReqoreButton>
|
|
153
|
+
<ReqoreButton fixed textAlign='center'>
|
|
154
|
+
4
|
|
155
|
+
</ReqoreButton>
|
|
156
|
+
</ReqoreControlGroup>
|
|
157
|
+
</ReqoreControlGroup>
|
|
158
|
+
),
|
|
159
|
+
};
|
|
@@ -346,6 +346,23 @@ Size.args = {
|
|
|
346
346
|
size: 'small',
|
|
347
347
|
};
|
|
348
348
|
|
|
349
|
+
export const NoActions: Story<IReqorePanelProps> = Template.bind({});
|
|
350
|
+
NoActions.args = {
|
|
351
|
+
collapsible: false,
|
|
352
|
+
actions: [],
|
|
353
|
+
label:
|
|
354
|
+
'This is a really long title that should stretch all the way to the right of the panel, all the way to the end and not end in the middle',
|
|
355
|
+
};
|
|
356
|
+
|
|
357
|
+
export const ImageAsIcon: Story<IReqorePanelProps> = Template.bind({});
|
|
358
|
+
ImageAsIcon.args = {
|
|
359
|
+
iconImage:
|
|
360
|
+
'https://avatars.githubusercontent.com/u/44835090?s=400&u=371120ce0755102d2e432f11ad9aa0378c871b45&v=4',
|
|
361
|
+
iconProps: {
|
|
362
|
+
size: '30px',
|
|
363
|
+
},
|
|
364
|
+
};
|
|
365
|
+
|
|
349
366
|
export const ContentSize: Story<IReqorePanelProps> = Template.bind({});
|
|
350
367
|
ContentSize.args = {
|
|
351
368
|
contentSize: 'big',
|
package/src/types/global.ts
CHANGED
|
@@ -140,6 +140,18 @@ export interface IWithReqoreFluid {
|
|
|
140
140
|
fluid?: boolean;
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
+
export interface IWithReqoreIconImage {
|
|
144
|
+
/**
|
|
145
|
+
* Use image as the icon for this component
|
|
146
|
+
* @default undefined
|
|
147
|
+
* @type string
|
|
148
|
+
* @example
|
|
149
|
+
* <ReqoreInput iconImage="...your image URL" />
|
|
150
|
+
*
|
|
151
|
+
*/
|
|
152
|
+
iconImage?: string;
|
|
153
|
+
}
|
|
154
|
+
|
|
143
155
|
export interface IWithReqoreFixed {
|
|
144
156
|
/**
|
|
145
157
|
* If true, the component will be fixed in fluid containers
|
package/tests.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"numFailedTestSuites":0,"numFailedTests":0,"numPassedTestSuites":27,"numPassedTests":132,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":27,"numTotalTests":132,"openHandles":[],"snapshot":{"added":0,"didUpdate":false,"failure":false,"filesAdded":0,"filesRemoved":0,"filesRemovedList":[],"filesUnmatched":0,"filesUpdated":0,"matched":0,"total":0,"unchecked":0,"uncheckedKeysByFile":[],"unmatched":0,"updated":0},"startTime":1676025450867,"success":true,"testResults":[{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders empty <ReqoreMultiSelect />","location":null,"status":"passed","title":"Renders empty <ReqoreMultiSelect />"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ReqoreMultiSelect /> with default value","location":null,"status":"passed","title":"Renders <ReqoreMultiSelect /> with default value"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ReqoreMultiSelect /> with default value, items can be removed","location":null,"status":"passed","title":"Renders <ReqoreMultiSelect /> with default value, items can be removed"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders disabled <ReqoreMultiSelect /> when items are empty and items CANNOT be created","location":null,"status":"passed","title":"Renders disabled <ReqoreMultiSelect /> when items are empty and items CANNOT be created"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders empty <ReqoreMultiSelect /> when items are empty and items CAN be created","location":null,"status":"passed","title":"Renders empty <ReqoreMultiSelect /> when items are empty and items CAN be created"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ReqoreMultiSelect /> and selects / deselects items from the list","location":null,"status":"passed","title":"Renders <ReqoreMultiSelect /> and selects / deselects items from the list"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ReqoreMultiSelect /> and items can be searched, opens up the list","location":null,"status":"passed","title":"Renders <ReqoreMultiSelect /> and items can be searched, opens up the list"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ReqoreMultiSelect /> and items can be searched and created, opens up the list","location":null,"status":"passed","title":"Renders <ReqoreMultiSelect /> and items can be searched and created, opens up the list"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ReqoreMultiSelect /> and items can be searched and created using the ENTER key, opens up the list","location":null,"status":"passed","title":"Renders <ReqoreMultiSelect /> and items can be searched and created using the ENTER key, opens up the list"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ReqoreMultiSelect /> and does not create new item on ENTER when not focused","location":null,"status":"passed","title":"Renders <ReqoreMultiSelect /> and does not create new item on ENTER when not focused"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ReqoreMultiSelect /> and deselects an item using the ENTER key","location":null,"status":"passed","title":"Renders <ReqoreMultiSelect /> and deselects an item using the ENTER key"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ReqoreMultiSelect /> and calls onValueChange when value changes","location":null,"status":"passed","title":"Renders <ReqoreMultiSelect /> and calls onValueChange when value changes"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ReqoreMultiSelect /> and calls onItemClick when an item is clicked","location":null,"status":"passed","title":"Renders <ReqoreMultiSelect /> and calls onItemClick when an item is clicked"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ReqoreMultiSelect /> and calls onItemAdded when an item is added","location":null,"status":"passed","title":"Renders <ReqoreMultiSelect /> and calls onItemAdded when an item is added"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ReqoreMultiSelect /> and calls onItemRemoved when an item is removed","location":null,"status":"passed","title":"Renders <ReqoreMultiSelect /> and calls onItemRemoved when an item is removed"}],"endTime":1676025471439,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/multiselect.test.tsx","startTime":1676025451494,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders full <Tabs /> properly","location":null,"status":"passed","title":"Renders full <Tabs /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders shortened <Tabs /> properly","location":null,"status":"passed","title":"Renders shortened <Tabs /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Can select hidden <Tabs /> when shortened","location":null,"status":"passed","title":"Can select hidden <Tabs /> when shortened"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Default active tab can be specified","location":null,"status":"passed","title":"Default active tab can be specified"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Changes tab and runs callback","location":null,"status":"passed","title":"Changes tab and runs callback"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Does not change tab and run callback when disabled","location":null,"status":"passed","title":"Does not change tab and run callback when disabled"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Does not change tab when mounted and active tab is set","location":null,"status":"passed","title":"Does not change tab when mounted and active tab is set"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Changes tab programatically and runs callback","location":null,"status":"passed","title":"Changes tab programatically and runs callback"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Closable tab can be closed if not disabled","location":null,"status":"passed","title":"Closable tab can be closed if not disabled"}],"endTime":1676025474502,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/tabs.test.tsx","startTime":1676025471476,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders basic <Table /> properly","location":null,"status":"passed","title":"Renders basic <Table /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Table /> with grouped columns properly","location":null,"status":"passed","title":"Renders <Table /> with grouped columns properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Table /> with custom content","location":null,"status":"passed","title":"Renders <Table /> with custom content"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Table /> with predefined content","location":null,"status":"passed","title":"Renders <Table /> with predefined content"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Sorting on <Table /> works properly","location":null,"status":"passed","title":"Sorting on <Table /> works properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Rows on <Table /> can be selected","location":null,"status":"passed","title":"Rows on <Table /> can be selected"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Rows on <Table /> cannot be selected if _selectId is missing","location":null,"status":"passed","title":"Rows on <Table /> cannot be selected if _selectId is missing"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Rows on <Table /> are all selected/deselected when clicking on header","location":null,"status":"passed","title":"Rows on <Table /> are all selected/deselected when clicking on header"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Cells on <Table /> are interactive","location":null,"status":"passed","title":"Cells on <Table /> are interactive"}],"endTime":1676025480381,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/table.test.tsx","startTime":1676025474522,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Dropdown /> properly","location":null,"status":"passed","title":"Renders <Dropdown /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders disabled <Dropdown /> when items are empty","location":null,"status":"passed","title":"Renders disabled <Dropdown /> when items are empty"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders disabled <Dropdown /> when items are not empty & disabled prop is true","location":null,"status":"passed","title":"Renders disabled <Dropdown /> when items are not empty & disabled prop is true"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Dropdown /> with custom component and custom handler","location":null,"status":"passed","title":"Renders <Dropdown /> with custom component and custom handler"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Dropdown /> is opened by default","location":null,"status":"passed","title":"Renders <Dropdown /> is opened by default"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Dropdown /> and calls a function on item click","location":null,"status":"passed","title":"Renders <Dropdown /> and calls a function on item click"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders filterable <Dropdown /> and filters items correctly","location":null,"status":"passed","title":"Renders filterable <Dropdown /> and filters items correctly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Dropdown /> and updates its items when state changes","location":null,"status":"passed","title":"Renders <Dropdown /> and updates its items when state changes"}],"endTime":1676025483480,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/dropdown.test.tsx","startTime":1676025480403,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Shows popover on hover, hides on leave","location":null,"status":"passed","title":"Shows popover on hover, hides on leave"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Shows popover on click, hides only on click away","location":null,"status":"passed","title":"Shows popover on click, hides only on click away"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Shows custom content","location":null,"status":"passed","title":"Shows custom content"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Runs callback function","location":null,"status":"passed","title":"Runs callback function"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Shows the popover after a local delay, ignoring global delay","location":null,"status":"passed","title":"Shows the popover after a local delay, ignoring global delay"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Shows the popover after a global delay","location":null,"status":"passed","title":"Shows the popover after a global delay"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Shows the popover with blur","location":null,"status":"passed","title":"Shows the popover with blur"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Does not show the popover with delay if time not reached","location":null,"status":"passed","title":"Does not show the popover with delay if time not reached"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Shows the hoverStay popover after a delay and stays, ","location":null,"status":"passed","title":"Shows the hoverStay popover after a delay and stays, "},{"ancestorTitles":[],"failureMessages":[],"fullName":"Correctly passes popover data for non-opened popover","location":null,"status":"passed","title":"Correctly passes popover data for non-opened popover"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Correctly passes popover data for opened popover","location":null,"status":"passed","title":"Correctly passes popover data for opened popover"}],"endTime":1676025485593,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/popover.test.tsx","startTime":1676025483496,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders basic <Panel /> properly","location":null,"status":"passed","title":"Renders basic <Panel /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders basic <Panel /> with title properly","location":null,"status":"passed","title":"Renders basic <Panel /> with title properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders basic <Panel /> that is collapsed by default and can be expanded","location":null,"status":"passed","title":"Renders basic <Panel /> that is collapsed by default and can be expanded"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders closable <Panel /> properly","location":null,"status":"passed","title":"Renders closable <Panel /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Panel /> with actions","location":null,"status":"passed","title":"Renders <Panel /> with actions"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Panel /> without actions group if all actins are not shown","location":null,"status":"passed","title":"Renders <Panel /> without actions group if all actins are not shown"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Panel /> without title & bottom actions if all actions are not shown, there is no icon, title & is not collapsible","location":null,"status":"passed","title":"Renders <Panel /> without title & bottom actions if all actions are not shown, there is no icon, title & is not collapsible"}],"endTime":1676025487197,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/panel.test.tsx","startTime":1676025485608,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders sidebar","location":null,"status":"passed","title":"Renders sidebar"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Sidebar can be collapsed","location":null,"status":"passed","title":"Sidebar can be collapsed"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Can open submenu manually","location":null,"status":"passed","title":"Can open submenu manually"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Submenu opens automatically if path matches","location":null,"status":"passed","title":"Submenu opens automatically if path matches"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Bookmarks can be added and removed","location":null,"status":"passed","title":"Bookmarks can be added and removed"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Bookmarks clicks are not propagated through","location":null,"status":"passed","title":"Bookmarks clicks are not propagated through"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders item as <p> element with onClick","location":null,"status":"passed","title":"Renders item as <p> element with onClick"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders floating sidebar with item as <p> element with onClick, closes on item click","location":null,"status":"passed","title":"Renders floating sidebar with item as <p> element with onClick, closes on item click"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders custom item at the top","location":null,"status":"passed","title":"Renders custom item at the top"}],"endTime":1676025489147,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/sidebar.test.tsx","startTime":1676025487220,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders basic <Modal /> properly","location":null,"status":"passed","title":"Renders basic <Modal /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Does not renders <Modal /> if its not open","location":null,"status":"passed","title":"Does not renders <Modal /> if its not open"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Modal /> with custom dimensions","location":null,"status":"passed","title":"Renders <Modal /> with custom dimensions"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders confirmation <Modal /> ","location":null,"status":"passed","title":"Renders confirmation <Modal /> "},{"ancestorTitles":[],"failureMessages":[],"fullName":"Always renders confirmation <Modal /> properly above a normal modal","location":null,"status":"passed","title":"Always renders confirmation <Modal /> properly above a normal modal"}],"endTime":1676025491329,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/modal.test.tsx","startTime":1676025489161,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Button /> properly","location":null,"status":"passed","title":"Renders <Button /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Button /> with size properly","location":null,"status":"passed","title":"Renders <Button /> with size properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Button /> with icon properly","location":null,"status":"passed","title":"Renders <Button /> with icon properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Button /> with intent properly","location":null,"status":"passed","title":"Renders <Button /> with intent properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Button /> with right icon properly","location":null,"status":"passed","title":"Renders <Button /> with right icon properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Button /> with icon and right icon properly","location":null,"status":"passed","title":"Renders <Button /> with icon and right icon properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Button /> with onClick function","location":null,"status":"passed","title":"Renders <Button /> with onClick function"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Button /> with a 0 badge","location":null,"status":"passed","title":"Renders <Button /> with a 0 badge"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Button /> with a string badge","location":null,"status":"passed","title":"Renders <Button /> with a string badge"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Button /> with a Tag props badge","location":null,"status":"passed","title":"Renders <Button /> with a Tag props badge"}],"endTime":1676025493616,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/button.test.tsx","startTime":1676025491358,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Adds notifications and dismisses them automatically","location":null,"status":"passed","title":"Adds notifications and dismisses them automatically"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Adds a notification and updates it","location":null,"status":"passed","title":"Adds a notification and updates it"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Notification has a click event","location":null,"status":"passed","title":"Notification has a click event"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Notification has a close event","location":null,"status":"passed","title":"Notification has a close event"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Notification has a finish event","location":null,"status":"passed","title":"Notification has a finish event"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Maximum of 5 notifications is shown at once","location":null,"status":"passed","title":"Maximum of 5 notifications is shown at once"}],"endTime":1676025495191,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/notifications.test.tsx","startTime":1676025493638,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Tag /> properly","location":null,"status":"passed","title":"Renders <Tag /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Tag /> group properly","location":null,"status":"passed","title":"Renders <Tag /> group properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Tag /> without remove button if disabled","location":null,"status":"passed","title":"Renders <Tag /> without remove button if disabled"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Fires onClick and onRemoveClick <Tag /> events","location":null,"status":"passed","title":"Fires onClick and onRemoveClick <Tag /> events"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Tag /> with the label key","location":null,"status":"passed","title":"Renders <Tag /> with the label key"}],"endTime":1676025497472,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/tag.test.tsx","startTime":1676025495232,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Does not render <Drawer /> if not open","location":null,"status":"passed","title":"Does not render <Drawer /> if not open"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders opened <Drawer /> properly","location":null,"status":"passed","title":"Renders opened <Drawer /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders hidable <Drawer /> properly","location":null,"status":"passed","title":"Renders hidable <Drawer /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders closable <Drawer /> properly","location":null,"status":"passed","title":"Renders closable <Drawer /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Drawer /> with interactive backdrop","location":null,"status":"passed","title":"Renders <Drawer /> with interactive backdrop"}],"endTime":1676025499186,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/drawer.test.tsx","startTime":1676025497485,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders basic <Tree /> properly","location":null,"status":"passed","title":"Renders basic <Tree /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Shows textarea for <Tree /> properly","location":null,"status":"passed","title":"Shows textarea for <Tree /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"<Tree /> items can be expanded and collapsed","location":null,"status":"passed","title":"<Tree /> items can be expanded and collapsed"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Shows types for <Tree /> properly","location":null,"status":"passed","title":"Shows types for <Tree /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Tree /> with clickable items","location":null,"status":"passed","title":"Renders <Tree /> with clickable items"}],"endTime":1676025501873,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/tree.test.tsx","startTime":1676025499200,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders basic <Collection /> properly","location":null,"status":"passed","title":"Renders basic <Collection /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"<Collection /> items can be filtered","location":null,"status":"passed","title":"<Collection /> items can be filtered"},{"ancestorTitles":[],"failureMessages":[],"fullName":"<Collection /> shows no data message when empty","location":null,"status":"passed","title":"<Collection /> shows no data message when empty"},{"ancestorTitles":[],"failureMessages":[],"fullName":"<Collection /> can be sorted","location":null,"status":"passed","title":"<Collection /> can be sorted"}],"endTime":1676025504978,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/collection.test.tsx","startTime":1676025501887,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Menu /> properly","location":null,"status":"passed","title":"Renders <Menu /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"<Menu /> item can be clicked","location":null,"status":"passed","title":"<Menu /> item can be clicked"},{"ancestorTitles":[],"failureMessages":[],"fullName":"<Menu /> item has right clickable button","location":null,"status":"passed","title":"<Menu /> item has right clickable button"}],"endTime":1676025506278,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/menu.test.tsx","startTime":1676025504992,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Input /> properly","location":null,"status":"passed","title":"Renders <Input /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Input /> with clear button properly","location":null,"status":"passed","title":"Renders <Input /> with clear button properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Disabled <Input /> cannot be cleared","location":null,"status":"passed","title":"Disabled <Input /> cannot be cleared"}],"endTime":1676025507479,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/input.test.tsx","startTime":1676025506301,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders full <Breadcrumbs /> properly","location":null,"status":"passed","title":"Renders full <Breadcrumbs /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders shortened <Breadcrumbs /> properly","location":null,"status":"passed","title":"Renders shortened <Breadcrumbs /> properly"}],"endTime":1676025508544,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/breadcrumbs.test.tsx","startTime":1676025507502,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ReqoreEffect /> properly","location":null,"status":"passed","title":"Renders <ReqoreEffect /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ReqoreTextEffect /> properly","location":null,"status":"passed","title":"Renders <ReqoreTextEffect /> properly"}],"endTime":1676025509512,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/effect.test.tsx","startTime":1676025508556,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <TextArea /> properly","location":null,"status":"passed","title":"Renders <TextArea /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <TextArea /> with clear button properly","location":null,"status":"passed","title":"Renders <TextArea /> with clear button properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Disabled <TextArea /> cannot be cleared","location":null,"status":"passed","title":"Disabled <TextArea /> cannot be cleared"}],"endTime":1676025510649,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/textarea.test.tsx","startTime":1676025509525,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Message /> properly","location":null,"status":"passed","title":"Renders <Message /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Runs onFinish on message after duration","location":null,"status":"passed","title":"Runs onFinish on message after duration"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Runs onClose when closed","location":null,"status":"passed","title":"Runs onClose when closed"}],"endTime":1676025512260,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/messages.test.tsx","startTime":1676025510674,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Checkbox /> properly","location":null,"status":"passed","title":"Renders <Checkbox /> properly"}],"endTime":1676025513243,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/radiogroup.test.tsx","startTime":1676025512277,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders Layout properly","location":null,"status":"passed","title":"Renders Layout properly"}],"endTime":1676025514201,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/layout.test.tsx","startTime":1676025513256,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Icon /> properly","location":null,"status":"passed","title":"Renders <Icon /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders empty <Icon /> if icon does not exist","location":null,"status":"passed","title":"Renders empty <Icon /> if icon does not exist"}],"endTime":1676025515567,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/icon.test.tsx","startTime":1676025514213,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Checkbox /> properly","location":null,"status":"passed","title":"Renders <Checkbox /> properly"}],"endTime":1676025516629,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/checkbox.test.tsx","startTime":1676025515579,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders Navbar properly","location":null,"status":"passed","title":"Renders Navbar properly"}],"endTime":1676025517575,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/navbar.test.tsx","startTime":1676025516659,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ControlGroup /> properly","location":null,"status":"passed","title":"Renders <ControlGroup /> properly"}],"endTime":1676025519806,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/control_group.test.tsx","startTime":1676025517662,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <TimeAgo /> data properly","location":null,"status":"passed","title":"Renders <TimeAgo /> data properly"}],"endTime":1676025521075,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/timeAgo.test.tsx","startTime":1676025519821,"status":"passed","summary":""}],"wasInterrupted":false}
|
|
1
|
+
{"numFailedTestSuites":0,"numFailedTests":0,"numPassedTestSuites":27,"numPassedTests":132,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":27,"numTotalTests":132,"openHandles":[],"snapshot":{"added":0,"didUpdate":false,"failure":false,"filesAdded":0,"filesRemoved":0,"filesRemovedList":[],"filesUnmatched":0,"filesUpdated":0,"matched":0,"total":0,"unchecked":0,"uncheckedKeysByFile":[],"unmatched":0,"updated":0},"startTime":1676154472798,"success":true,"testResults":[{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders empty <ReqoreMultiSelect />","location":null,"status":"passed","title":"Renders empty <ReqoreMultiSelect />"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ReqoreMultiSelect /> with default value","location":null,"status":"passed","title":"Renders <ReqoreMultiSelect /> with default value"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ReqoreMultiSelect /> with default value, items can be removed","location":null,"status":"passed","title":"Renders <ReqoreMultiSelect /> with default value, items can be removed"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders disabled <ReqoreMultiSelect /> when items are empty and items CANNOT be created","location":null,"status":"passed","title":"Renders disabled <ReqoreMultiSelect /> when items are empty and items CANNOT be created"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders empty <ReqoreMultiSelect /> when items are empty and items CAN be created","location":null,"status":"passed","title":"Renders empty <ReqoreMultiSelect /> when items are empty and items CAN be created"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ReqoreMultiSelect /> and selects / deselects items from the list","location":null,"status":"passed","title":"Renders <ReqoreMultiSelect /> and selects / deselects items from the list"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ReqoreMultiSelect /> and items can be searched, opens up the list","location":null,"status":"passed","title":"Renders <ReqoreMultiSelect /> and items can be searched, opens up the list"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ReqoreMultiSelect /> and items can be searched and created, opens up the list","location":null,"status":"passed","title":"Renders <ReqoreMultiSelect /> and items can be searched and created, opens up the list"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ReqoreMultiSelect /> and items can be searched and created using the ENTER key, opens up the list","location":null,"status":"passed","title":"Renders <ReqoreMultiSelect /> and items can be searched and created using the ENTER key, opens up the list"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ReqoreMultiSelect /> and does not create new item on ENTER when not focused","location":null,"status":"passed","title":"Renders <ReqoreMultiSelect /> and does not create new item on ENTER when not focused"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ReqoreMultiSelect /> and deselects an item using the ENTER key","location":null,"status":"passed","title":"Renders <ReqoreMultiSelect /> and deselects an item using the ENTER key"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ReqoreMultiSelect /> and calls onValueChange when value changes","location":null,"status":"passed","title":"Renders <ReqoreMultiSelect /> and calls onValueChange when value changes"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ReqoreMultiSelect /> and calls onItemClick when an item is clicked","location":null,"status":"passed","title":"Renders <ReqoreMultiSelect /> and calls onItemClick when an item is clicked"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ReqoreMultiSelect /> and calls onItemAdded when an item is added","location":null,"status":"passed","title":"Renders <ReqoreMultiSelect /> and calls onItemAdded when an item is added"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ReqoreMultiSelect /> and calls onItemRemoved when an item is removed","location":null,"status":"passed","title":"Renders <ReqoreMultiSelect /> and calls onItemRemoved when an item is removed"}],"endTime":1676154487865,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/multiselect.test.tsx","startTime":1676154473227,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders full <Tabs /> properly","location":null,"status":"passed","title":"Renders full <Tabs /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders shortened <Tabs /> properly","location":null,"status":"passed","title":"Renders shortened <Tabs /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Can select hidden <Tabs /> when shortened","location":null,"status":"passed","title":"Can select hidden <Tabs /> when shortened"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Default active tab can be specified","location":null,"status":"passed","title":"Default active tab can be specified"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Changes tab and runs callback","location":null,"status":"passed","title":"Changes tab and runs callback"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Does not change tab and run callback when disabled","location":null,"status":"passed","title":"Does not change tab and run callback when disabled"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Does not change tab when mounted and active tab is set","location":null,"status":"passed","title":"Does not change tab when mounted and active tab is set"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Changes tab programatically and runs callback","location":null,"status":"passed","title":"Changes tab programatically and runs callback"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Closable tab can be closed if not disabled","location":null,"status":"passed","title":"Closable tab can be closed if not disabled"}],"endTime":1676154489824,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/tabs.test.tsx","startTime":1676154487885,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders basic <Table /> properly","location":null,"status":"passed","title":"Renders basic <Table /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Table /> with grouped columns properly","location":null,"status":"passed","title":"Renders <Table /> with grouped columns properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Table /> with custom content","location":null,"status":"passed","title":"Renders <Table /> with custom content"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Table /> with predefined content","location":null,"status":"passed","title":"Renders <Table /> with predefined content"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Sorting on <Table /> works properly","location":null,"status":"passed","title":"Sorting on <Table /> works properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Rows on <Table /> can be selected","location":null,"status":"passed","title":"Rows on <Table /> can be selected"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Rows on <Table /> cannot be selected if _selectId is missing","location":null,"status":"passed","title":"Rows on <Table /> cannot be selected if _selectId is missing"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Rows on <Table /> are all selected/deselected when clicking on header","location":null,"status":"passed","title":"Rows on <Table /> are all selected/deselected when clicking on header"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Cells on <Table /> are interactive","location":null,"status":"passed","title":"Cells on <Table /> are interactive"}],"endTime":1676154493642,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/table.test.tsx","startTime":1676154489840,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Dropdown /> properly","location":null,"status":"passed","title":"Renders <Dropdown /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders disabled <Dropdown /> when items are empty","location":null,"status":"passed","title":"Renders disabled <Dropdown /> when items are empty"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders disabled <Dropdown /> when items are not empty & disabled prop is true","location":null,"status":"passed","title":"Renders disabled <Dropdown /> when items are not empty & disabled prop is true"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Dropdown /> with custom component and custom handler","location":null,"status":"passed","title":"Renders <Dropdown /> with custom component and custom handler"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Dropdown /> is opened by default","location":null,"status":"passed","title":"Renders <Dropdown /> is opened by default"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Dropdown /> and calls a function on item click","location":null,"status":"passed","title":"Renders <Dropdown /> and calls a function on item click"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders filterable <Dropdown /> and filters items correctly","location":null,"status":"passed","title":"Renders filterable <Dropdown /> and filters items correctly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Dropdown /> and updates its items when state changes","location":null,"status":"passed","title":"Renders <Dropdown /> and updates its items when state changes"}],"endTime":1676154495731,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/dropdown.test.tsx","startTime":1676154493661,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Shows popover on hover, hides on leave","location":null,"status":"passed","title":"Shows popover on hover, hides on leave"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Shows popover on click, hides only on click away","location":null,"status":"passed","title":"Shows popover on click, hides only on click away"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Shows custom content","location":null,"status":"passed","title":"Shows custom content"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Runs callback function","location":null,"status":"passed","title":"Runs callback function"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Shows the popover after a local delay, ignoring global delay","location":null,"status":"passed","title":"Shows the popover after a local delay, ignoring global delay"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Shows the popover after a global delay","location":null,"status":"passed","title":"Shows the popover after a global delay"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Shows the popover with blur","location":null,"status":"passed","title":"Shows the popover with blur"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Does not show the popover with delay if time not reached","location":null,"status":"passed","title":"Does not show the popover with delay if time not reached"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Shows the hoverStay popover after a delay and stays, ","location":null,"status":"passed","title":"Shows the hoverStay popover after a delay and stays, "},{"ancestorTitles":[],"failureMessages":[],"fullName":"Correctly passes popover data for non-opened popover","location":null,"status":"passed","title":"Correctly passes popover data for non-opened popover"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Correctly passes popover data for opened popover","location":null,"status":"passed","title":"Correctly passes popover data for opened popover"}],"endTime":1676154497229,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/popover.test.tsx","startTime":1676154495743,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders basic <Panel /> properly","location":null,"status":"passed","title":"Renders basic <Panel /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders basic <Panel /> with title properly","location":null,"status":"passed","title":"Renders basic <Panel /> with title properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders basic <Panel /> that is collapsed by default and can be expanded","location":null,"status":"passed","title":"Renders basic <Panel /> that is collapsed by default and can be expanded"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders closable <Panel /> properly","location":null,"status":"passed","title":"Renders closable <Panel /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Panel /> with actions","location":null,"status":"passed","title":"Renders <Panel /> with actions"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Panel /> without actions group if all actins are not shown","location":null,"status":"passed","title":"Renders <Panel /> without actions group if all actins are not shown"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Panel /> without title & bottom actions if all actions are not shown, there is no icon, title & is not collapsible","location":null,"status":"passed","title":"Renders <Panel /> without title & bottom actions if all actions are not shown, there is no icon, title & is not collapsible"}],"endTime":1676154498309,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/panel.test.tsx","startTime":1676154497240,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders sidebar","location":null,"status":"passed","title":"Renders sidebar"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Sidebar can be collapsed","location":null,"status":"passed","title":"Sidebar can be collapsed"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Can open submenu manually","location":null,"status":"passed","title":"Can open submenu manually"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Submenu opens automatically if path matches","location":null,"status":"passed","title":"Submenu opens automatically if path matches"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Bookmarks can be added and removed","location":null,"status":"passed","title":"Bookmarks can be added and removed"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Bookmarks clicks are not propagated through","location":null,"status":"passed","title":"Bookmarks clicks are not propagated through"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders item as <p> element with onClick","location":null,"status":"passed","title":"Renders item as <p> element with onClick"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders floating sidebar with item as <p> element with onClick, closes on item click","location":null,"status":"passed","title":"Renders floating sidebar with item as <p> element with onClick, closes on item click"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders custom item at the top","location":null,"status":"passed","title":"Renders custom item at the top"}],"endTime":1676154499608,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/sidebar.test.tsx","startTime":1676154498321,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders basic <Modal /> properly","location":null,"status":"passed","title":"Renders basic <Modal /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Does not renders <Modal /> if its not open","location":null,"status":"passed","title":"Does not renders <Modal /> if its not open"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Modal /> with custom dimensions","location":null,"status":"passed","title":"Renders <Modal /> with custom dimensions"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders confirmation <Modal /> ","location":null,"status":"passed","title":"Renders confirmation <Modal /> "},{"ancestorTitles":[],"failureMessages":[],"fullName":"Always renders confirmation <Modal /> properly above a normal modal","location":null,"status":"passed","title":"Always renders confirmation <Modal /> properly above a normal modal"}],"endTime":1676154501173,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/modal.test.tsx","startTime":1676154499619,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Button /> properly","location":null,"status":"passed","title":"Renders <Button /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Button /> with size properly","location":null,"status":"passed","title":"Renders <Button /> with size properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Button /> with icon properly","location":null,"status":"passed","title":"Renders <Button /> with icon properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Button /> with intent properly","location":null,"status":"passed","title":"Renders <Button /> with intent properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Button /> with right icon properly","location":null,"status":"passed","title":"Renders <Button /> with right icon properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Button /> with icon and right icon properly","location":null,"status":"passed","title":"Renders <Button /> with icon and right icon properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Button /> with onClick function","location":null,"status":"passed","title":"Renders <Button /> with onClick function"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Button /> with a 0 badge","location":null,"status":"passed","title":"Renders <Button /> with a 0 badge"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Button /> with a string badge","location":null,"status":"passed","title":"Renders <Button /> with a string badge"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Button /> with a Tag props badge","location":null,"status":"passed","title":"Renders <Button /> with a Tag props badge"}],"endTime":1676154502788,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/button.test.tsx","startTime":1676154501188,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Adds notifications and dismisses them automatically","location":null,"status":"passed","title":"Adds notifications and dismisses them automatically"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Adds a notification and updates it","location":null,"status":"passed","title":"Adds a notification and updates it"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Notification has a click event","location":null,"status":"passed","title":"Notification has a click event"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Notification has a close event","location":null,"status":"passed","title":"Notification has a close event"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Notification has a finish event","location":null,"status":"passed","title":"Notification has a finish event"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Maximum of 5 notifications is shown at once","location":null,"status":"passed","title":"Maximum of 5 notifications is shown at once"}],"endTime":1676154503865,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/notifications.test.tsx","startTime":1676154502803,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Tag /> properly","location":null,"status":"passed","title":"Renders <Tag /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Tag /> group properly","location":null,"status":"passed","title":"Renders <Tag /> group properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Tag /> without remove button if disabled","location":null,"status":"passed","title":"Renders <Tag /> without remove button if disabled"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Fires onClick and onRemoveClick <Tag /> events","location":null,"status":"passed","title":"Fires onClick and onRemoveClick <Tag /> events"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Tag /> with the label key","location":null,"status":"passed","title":"Renders <Tag /> with the label key"}],"endTime":1676154505146,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/tag.test.tsx","startTime":1676154503893,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Does not render <Drawer /> if not open","location":null,"status":"passed","title":"Does not render <Drawer /> if not open"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders opened <Drawer /> properly","location":null,"status":"passed","title":"Renders opened <Drawer /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders hidable <Drawer /> properly","location":null,"status":"passed","title":"Renders hidable <Drawer /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders closable <Drawer /> properly","location":null,"status":"passed","title":"Renders closable <Drawer /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Drawer /> with interactive backdrop","location":null,"status":"passed","title":"Renders <Drawer /> with interactive backdrop"}],"endTime":1676154506128,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/drawer.test.tsx","startTime":1676154505157,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders basic <Tree /> properly","location":null,"status":"passed","title":"Renders basic <Tree /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Shows textarea for <Tree /> properly","location":null,"status":"passed","title":"Shows textarea for <Tree /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"<Tree /> items can be expanded and collapsed","location":null,"status":"passed","title":"<Tree /> items can be expanded and collapsed"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Shows types for <Tree /> properly","location":null,"status":"passed","title":"Shows types for <Tree /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Tree /> with clickable items","location":null,"status":"passed","title":"Renders <Tree /> with clickable items"}],"endTime":1676154508013,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/tree.test.tsx","startTime":1676154506144,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders basic <Collection /> properly","location":null,"status":"passed","title":"Renders basic <Collection /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"<Collection /> items can be filtered","location":null,"status":"passed","title":"<Collection /> items can be filtered"},{"ancestorTitles":[],"failureMessages":[],"fullName":"<Collection /> shows no data message when empty","location":null,"status":"passed","title":"<Collection /> shows no data message when empty"},{"ancestorTitles":[],"failureMessages":[],"fullName":"<Collection /> can be sorted","location":null,"status":"passed","title":"<Collection /> can be sorted"}],"endTime":1676154510326,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/collection.test.tsx","startTime":1676154508023,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Menu /> properly","location":null,"status":"passed","title":"Renders <Menu /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"<Menu /> item can be clicked","location":null,"status":"passed","title":"<Menu /> item can be clicked"},{"ancestorTitles":[],"failureMessages":[],"fullName":"<Menu /> item has right clickable button","location":null,"status":"passed","title":"<Menu /> item has right clickable button"}],"endTime":1676154511188,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/menu.test.tsx","startTime":1676154510336,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Input /> properly","location":null,"status":"passed","title":"Renders <Input /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Input /> with clear button properly","location":null,"status":"passed","title":"Renders <Input /> with clear button properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Disabled <Input /> cannot be cleared","location":null,"status":"passed","title":"Disabled <Input /> cannot be cleared"}],"endTime":1676154512362,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/input.test.tsx","startTime":1676154511197,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders full <Breadcrumbs /> properly","location":null,"status":"passed","title":"Renders full <Breadcrumbs /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders shortened <Breadcrumbs /> properly","location":null,"status":"passed","title":"Renders shortened <Breadcrumbs /> properly"}],"endTime":1676154513100,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/breadcrumbs.test.tsx","startTime":1676154512373,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ReqoreEffect /> properly","location":null,"status":"passed","title":"Renders <ReqoreEffect /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ReqoreTextEffect /> properly","location":null,"status":"passed","title":"Renders <ReqoreTextEffect /> properly"}],"endTime":1676154513774,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/effect.test.tsx","startTime":1676154513118,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <TextArea /> properly","location":null,"status":"passed","title":"Renders <TextArea /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <TextArea /> with clear button properly","location":null,"status":"passed","title":"Renders <TextArea /> with clear button properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Disabled <TextArea /> cannot be cleared","location":null,"status":"passed","title":"Disabled <TextArea /> cannot be cleared"}],"endTime":1676154514530,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/textarea.test.tsx","startTime":1676154513791,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Message /> properly","location":null,"status":"passed","title":"Renders <Message /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Runs onFinish on message after duration","location":null,"status":"passed","title":"Runs onFinish on message after duration"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Runs onClose when closed","location":null,"status":"passed","title":"Runs onClose when closed"}],"endTime":1676154515607,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/messages.test.tsx","startTime":1676154514539,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Checkbox /> properly","location":null,"status":"passed","title":"Renders <Checkbox /> properly"}],"endTime":1676154516269,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/radiogroup.test.tsx","startTime":1676154515616,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders Layout properly","location":null,"status":"passed","title":"Renders Layout properly"}],"endTime":1676154516924,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/layout.test.tsx","startTime":1676154516286,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Icon /> properly","location":null,"status":"passed","title":"Renders <Icon /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders empty <Icon /> if icon does not exist","location":null,"status":"passed","title":"Renders empty <Icon /> if icon does not exist"}],"endTime":1676154517871,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/icon.test.tsx","startTime":1676154516933,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Checkbox /> properly","location":null,"status":"passed","title":"Renders <Checkbox /> properly"}],"endTime":1676154518594,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/checkbox.test.tsx","startTime":1676154517885,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders Navbar properly","location":null,"status":"passed","title":"Renders Navbar properly"}],"endTime":1676154519210,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/navbar.test.tsx","startTime":1676154518603,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ControlGroup /> properly","location":null,"status":"passed","title":"Renders <ControlGroup /> properly"}],"endTime":1676154520248,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/control_group.test.tsx","startTime":1676154519218,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <TimeAgo /> data properly","location":null,"status":"passed","title":"Renders <TimeAgo /> data properly"}],"endTime":1676154521167,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/timeAgo.test.tsx","startTime":1676154520257,"status":"passed","summary":""}],"wasInterrupted":false}
|