@qoretechnologies/reqore 0.27.3 → 0.27.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Breadcrumbs/item.d.ts +1 -1
- package/dist/components/Breadcrumbs/item.d.ts.map +1 -1
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +2 -2
- package/dist/components/Button/index.js.map +1 -1
- package/dist/components/Checkbox/index.d.ts +1 -1
- package/dist/components/Checkbox/index.d.ts.map +1 -1
- package/dist/components/Content/index.d.ts +3 -3
- package/dist/components/Content/index.d.ts.map +1 -1
- package/dist/components/Content/index.js +1 -1
- package/dist/components/Content/index.js.map +1 -1
- package/dist/components/Content/wrapper.d.ts +3 -3
- package/dist/components/Content/wrapper.d.ts.map +1 -1
- package/dist/components/Content/wrapper.js +1 -1
- package/dist/components/Content/wrapper.js.map +1 -1
- package/dist/components/Effect/index.d.ts +2 -1
- package/dist/components/Effect/index.d.ts.map +1 -1
- package/dist/components/Effect/index.js +22 -17
- package/dist/components/Effect/index.js.map +1 -1
- package/dist/components/Input/index.d.ts +1 -1
- package/dist/components/Input/index.d.ts.map +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/Input/index.js.map +1 -1
- package/dist/components/Menu/divider.d.ts +3 -3
- package/dist/components/Menu/divider.d.ts.map +1 -1
- package/dist/components/Menu/divider.js +7 -3
- package/dist/components/Menu/divider.js.map +1 -1
- package/dist/components/Menu/item.d.ts.map +1 -1
- package/dist/components/Menu/item.js.map +1 -1
- package/dist/components/Message/index.d.ts.map +1 -1
- package/dist/components/Message/index.js +1 -1
- package/dist/components/Message/index.js.map +1 -1
- package/dist/components/Navbar/divider.d.ts +1 -1
- package/dist/components/Navbar/divider.d.ts.map +1 -1
- package/dist/components/Navbar/divider.js.map +1 -1
- package/dist/components/Navbar/group.d.ts +1 -1
- package/dist/components/Navbar/group.d.ts.map +1 -1
- package/dist/components/Navbar/group.js.map +1 -1
- package/dist/components/Navbar/index.d.ts +2 -2
- package/dist/components/Navbar/index.d.ts.map +1 -1
- package/dist/components/Navbar/index.js +3 -3
- package/dist/components/Navbar/index.js.map +1 -1
- package/dist/components/Navbar/item.d.ts +1 -1
- package/dist/components/Navbar/item.d.ts.map +1 -1
- package/dist/components/Notifications/index.d.ts.map +1 -1
- package/dist/components/Notifications/index.js.map +1 -1
- package/dist/components/Notifications/notification.d.ts.map +1 -1
- package/dist/components/Notifications/notification.js.map +1 -1
- package/dist/components/Panel/index.d.ts +1 -1
- package/dist/components/Panel/index.d.ts.map +1 -1
- package/dist/components/Panel/index.js +17 -6
- package/dist/components/Panel/index.js.map +1 -1
- package/dist/components/Tabs/item.d.ts +1 -1
- package/dist/components/Tabs/item.d.ts.map +1 -1
- package/dist/components/Tag/index.d.ts +1 -1
- package/dist/components/Tag/index.d.ts.map +1 -1
- package/dist/components/Textarea/index.d.ts +1 -1
- package/dist/components/Textarea/index.d.ts.map +1 -1
- package/dist/components/Textarea/index.js +1 -1
- package/dist/components/Textarea/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Breadcrumbs/item.tsx +1 -1
- package/src/components/Button/index.tsx +6 -1
- package/src/components/Checkbox/index.tsx +1 -1
- package/src/components/Content/index.tsx +8 -13
- package/src/components/Content/wrapper.tsx +7 -8
- package/src/components/Effect/index.tsx +40 -5
- package/src/components/Input/index.tsx +5 -1
- package/src/components/Menu/divider.tsx +8 -5
- package/src/components/Menu/index.tsx +1 -1
- package/src/components/Menu/item.tsx +4 -1
- package/src/components/Message/index.tsx +8 -1
- package/src/components/Navbar/divider.tsx +2 -3
- package/src/components/Navbar/group.tsx +3 -7
- package/src/components/Navbar/index.tsx +8 -8
- package/src/components/Navbar/item.tsx +1 -1
- package/src/components/Notifications/index.tsx +13 -12
- package/src/components/Notifications/notification.tsx +4 -1
- package/src/components/Panel/index.tsx +31 -15
- package/src/components/Tabs/item.tsx +1 -1
- package/src/components/Tag/index.tsx +1 -1
- package/src/components/Textarea/index.tsx +5 -1
- package/src/stories/Menu/Menu.stories.tsx +1 -0
- package/src/stories/Message/Message.stories.tsx +3 -2
- package/src/stories/Panel/Panel.stories.tsx +1 -1
- package/tests.json +1 -1
|
@@ -132,7 +132,7 @@ export const StyledInput = styled(StyledEffect)<IReqoreInputStyle>`
|
|
|
132
132
|
}
|
|
133
133
|
`;
|
|
134
134
|
|
|
135
|
-
const ReqoreInput = forwardRef(
|
|
135
|
+
const ReqoreInput = forwardRef<HTMLDivElement, IReqoreInputProps>(
|
|
136
136
|
(
|
|
137
137
|
{
|
|
138
138
|
tooltip,
|
|
@@ -181,6 +181,10 @@ const ReqoreInput = forwardRef(
|
|
|
181
181
|
)}
|
|
182
182
|
<StyledInput
|
|
183
183
|
{...rest}
|
|
184
|
+
effect={{
|
|
185
|
+
interactive: !rest?.disabled && !readOnly,
|
|
186
|
+
...rest?.effect,
|
|
187
|
+
}}
|
|
184
188
|
as='input'
|
|
185
189
|
theme={theme}
|
|
186
190
|
_size={size}
|
|
@@ -1,28 +1,31 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
+
import { PADDING_FROM_SIZE } from '../../constants/sizes';
|
|
3
4
|
import { getReadableColor } from '../../helpers/colors';
|
|
4
|
-
import { IWithReqoreEffect } from '../../types/global';
|
|
5
|
+
import { IWithReqoreEffect, IWithReqoreSize } from '../../types/global';
|
|
5
6
|
import { IReqoreEffect, StyledTextEffect } from '../Effect';
|
|
6
7
|
|
|
7
8
|
export interface IReqoreMenuDividerProps
|
|
8
9
|
extends React.HTMLAttributes<HTMLDivElement>,
|
|
9
|
-
IWithReqoreEffect
|
|
10
|
+
IWithReqoreEffect,
|
|
11
|
+
IWithReqoreSize {
|
|
10
12
|
label?: string;
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
const StyledMenuDivider = styled(StyledTextEffect)`
|
|
14
16
|
width: 100%;
|
|
15
|
-
padding:
|
|
17
|
+
padding: ${({ size }) => `${PADDING_FROM_SIZE[size]}px 0`};
|
|
16
18
|
background-color: ${({ theme }) => theme.main};
|
|
17
19
|
|
|
18
20
|
color: ${({ theme }) => getReadableColor(theme, undefined, undefined)};
|
|
19
21
|
`;
|
|
20
22
|
|
|
21
|
-
const ReqoreMenuDivider = forwardRef(
|
|
22
|
-
({ label, className, effect, ...rest }: IReqoreMenuDividerProps, ref: any) => (
|
|
23
|
+
const ReqoreMenuDivider = forwardRef<HTMLDivElement, IReqoreMenuDividerProps>(
|
|
24
|
+
({ label, className, effect, size = 'normal', ...rest }: IReqoreMenuDividerProps, ref: any) => (
|
|
23
25
|
<StyledMenuDivider
|
|
24
26
|
as='div'
|
|
25
27
|
{...rest}
|
|
28
|
+
size={size}
|
|
26
29
|
className={`${className || ''} reqore-menu-divider`}
|
|
27
30
|
ref={ref}
|
|
28
31
|
effect={
|
|
@@ -33,7 +33,10 @@ export interface IReqoreMenuItemRightIconStyle {
|
|
|
33
33
|
intent?: TReqoreIntent;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
const ReqoreMenuItem: React.FC<IReqoreMenuItemProps> = forwardRef
|
|
36
|
+
const ReqoreMenuItem: React.FC<IReqoreMenuItemProps> = forwardRef<
|
|
37
|
+
HTMLDivElement,
|
|
38
|
+
IReqoreMenuItemProps
|
|
39
|
+
>(
|
|
37
40
|
(
|
|
38
41
|
{
|
|
39
42
|
children,
|
|
@@ -45,7 +45,10 @@ export interface IReqoreNotificationStyle extends IReqoreMessageProps {
|
|
|
45
45
|
timeout?: number;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
const ReqoreMessage: React.FC<IReqoreMessageProps> = forwardRef
|
|
48
|
+
const ReqoreMessage: React.FC<IReqoreMessageProps> = forwardRef<
|
|
49
|
+
HTMLDivElement,
|
|
50
|
+
IReqoreMessageProps
|
|
51
|
+
>(
|
|
49
52
|
(
|
|
50
53
|
{
|
|
51
54
|
intent,
|
|
@@ -103,6 +106,10 @@ const ReqoreMessage: React.FC<IReqoreMessageProps> = forwardRef(
|
|
|
103
106
|
<ReqoreThemeProvider>
|
|
104
107
|
<StyledReqoreNotification
|
|
105
108
|
{...rest}
|
|
109
|
+
effect={{
|
|
110
|
+
interactive: !!onClick,
|
|
111
|
+
...rest?.effect,
|
|
112
|
+
}}
|
|
106
113
|
as={animated.div}
|
|
107
114
|
key={`${duration}${intent}${title}${children}`}
|
|
108
115
|
intent={intent}
|
|
@@ -3,8 +3,7 @@ import styled from 'styled-components';
|
|
|
3
3
|
import { IReqoreTheme } from '../../constants/theme';
|
|
4
4
|
import { getReadableColor } from '../../helpers/colors';
|
|
5
5
|
|
|
6
|
-
export interface IReqoreNavbarDividerProps
|
|
7
|
-
extends React.HTMLAttributes<HTMLDivElement> {
|
|
6
|
+
export interface IReqoreNavbarDividerProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
8
7
|
type?: 'header' | 'footer';
|
|
9
8
|
theme?: IReqoreTheme;
|
|
10
9
|
}
|
|
@@ -37,7 +36,7 @@ const StyledNavbarDivider = styled.div<{
|
|
|
37
36
|
}
|
|
38
37
|
`;
|
|
39
38
|
|
|
40
|
-
const ReqoreNavbarDivider = forwardRef(
|
|
39
|
+
const ReqoreNavbarDivider = forwardRef<HTMLDivElement, IReqoreNavbarDividerProps>(
|
|
41
40
|
({ type, ...rest }: IReqoreNavbarDividerProps, ref: any) => (
|
|
42
41
|
<StyledNavbarDivider
|
|
43
42
|
{...rest}
|
|
@@ -2,8 +2,7 @@ import React, { forwardRef } from 'react';
|
|
|
2
2
|
import styled, { css } from 'styled-components';
|
|
3
3
|
import { IReqoreTheme } from '../../constants/theme';
|
|
4
4
|
|
|
5
|
-
export interface IReqoreNavbarGroupProps
|
|
6
|
-
extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
export interface IReqoreNavbarGroupProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
7
6
|
position?: 'right' | 'left';
|
|
8
7
|
type?: 'footer' | 'header';
|
|
9
8
|
children?: any;
|
|
@@ -26,11 +25,8 @@ export const StyledNavbarGroup = styled.div<IReqoreNavbarGroupStyle>`
|
|
|
26
25
|
`}
|
|
27
26
|
`;
|
|
28
27
|
|
|
29
|
-
const ReqoreNavbarGroup = forwardRef(
|
|
30
|
-
(
|
|
31
|
-
{ position = 'left', children, type, ...rest }: IReqoreNavbarGroupProps,
|
|
32
|
-
ref: any
|
|
33
|
-
) => (
|
|
28
|
+
const ReqoreNavbarGroup = forwardRef<HTMLDivElement, IReqoreNavbarGroupProps>(
|
|
29
|
+
({ position = 'left', children, type, ...rest }: IReqoreNavbarGroupProps, ref: any) => (
|
|
34
30
|
<StyledNavbarGroup
|
|
35
31
|
{...rest}
|
|
36
32
|
className={`${rest.className || ''} reqore-navbar-group`}
|
|
@@ -37,7 +37,7 @@ export const StyledNavbar = styled.div<IReqoreNavbarStyle>`
|
|
|
37
37
|
!flat
|
|
38
38
|
? css`
|
|
39
39
|
box-shadow: rgba(31, 26, 34, 0.05) 0px ${type === 'header' ? '2px' : '-2px'} 6px;
|
|
40
|
-
|
|
40
|
+
|
|
41
41
|
border-${type === 'header' ? 'bottom' : 'top'}: 1px solid ${
|
|
42
42
|
theme[type]?.border || darken(0.05, getMainColor(theme, type))
|
|
43
43
|
};
|
|
@@ -45,7 +45,7 @@ export const StyledNavbar = styled.div<IReqoreNavbarStyle>`
|
|
|
45
45
|
: undefined}
|
|
46
46
|
`;
|
|
47
47
|
|
|
48
|
-
const ReqoreNavbar = forwardRef(
|
|
48
|
+
const ReqoreNavbar = forwardRef<HTMLDivElement, IReqoreNavbarProps>(
|
|
49
49
|
({ position = 'top', children, type, customTheme, ...rest }: IReqoreNavbarProps, ref: any) => {
|
|
50
50
|
const theme = useReqoreTheme(type, customTheme);
|
|
51
51
|
|
|
@@ -72,10 +72,10 @@ const ReqoreNavbar = forwardRef(
|
|
|
72
72
|
}
|
|
73
73
|
);
|
|
74
74
|
|
|
75
|
-
export const ReqoreHeader = forwardRef
|
|
76
|
-
<ReqoreNavbar {...props} type='header' ref={ref} />
|
|
77
|
-
)
|
|
75
|
+
export const ReqoreHeader = forwardRef<HTMLDivElement, IReqoreNavbarProps>(
|
|
76
|
+
(props: IReqoreNavbarProps, ref: any) => <ReqoreNavbar {...props} type='header' ref={ref} />
|
|
77
|
+
);
|
|
78
78
|
|
|
79
|
-
export const ReqoreFooter = forwardRef
|
|
80
|
-
<ReqoreNavbar {...props} type='footer' ref={ref} />
|
|
81
|
-
)
|
|
79
|
+
export const ReqoreFooter = forwardRef<HTMLDivElement, IReqoreNavbarProps>(
|
|
80
|
+
(props: IReqoreNavbarProps, ref: any) => <ReqoreNavbar {...props} type='footer' ref={ref} />
|
|
81
|
+
);
|
|
@@ -70,7 +70,7 @@ const StyledNavbarItem = styled.div<IReqoreNavbarItemStyle>`
|
|
|
70
70
|
`}
|
|
71
71
|
`;
|
|
72
72
|
|
|
73
|
-
const ReqoreNavbarItem = forwardRef(
|
|
73
|
+
const ReqoreNavbarItem = forwardRef<HTMLDivElement, IReqoreNavbarItemProps>(
|
|
74
74
|
(
|
|
75
75
|
{ interactive, children, type, disabled, active, ...rest }: IReqoreNavbarItemProps,
|
|
76
76
|
ref: any
|
|
@@ -40,17 +40,18 @@ const StyledNotificationsWrapper = styled.div<IReqoreNotificationsStyle>`
|
|
|
40
40
|
}}
|
|
41
41
|
`;
|
|
42
42
|
|
|
43
|
-
const ReqoreNotificationsWrapper: React.FC<IReqoreNotificationsWrapperProps> = forwardRef
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
43
|
+
const ReqoreNotificationsWrapper: React.FC<IReqoreNotificationsWrapperProps> = forwardRef<
|
|
44
|
+
HTMLDivElement,
|
|
45
|
+
IReqoreNotificationsWrapperProps
|
|
46
|
+
>(({ children, position = 'TOP' }, ref: any) => (
|
|
47
|
+
<StyledNotificationsWrapper
|
|
48
|
+
positions={position
|
|
49
|
+
.split(' ')
|
|
50
|
+
.map((p: IReqoreNotificationsPosition | string): string => p.toLowerCase())}
|
|
51
|
+
ref={ref}
|
|
52
|
+
>
|
|
53
|
+
{children}
|
|
54
|
+
</StyledNotificationsWrapper>
|
|
55
|
+
));
|
|
55
56
|
|
|
56
57
|
export default ReqoreNotificationsWrapper;
|
|
@@ -195,7 +195,10 @@ export const typeToIcon: { [type: string]: IReqoreIconName } = {
|
|
|
195
195
|
muted: 'Forbid2Line',
|
|
196
196
|
};
|
|
197
197
|
|
|
198
|
-
const ReqoreNotification: React.FC<IReqoreNotificationProps> = forwardRef
|
|
198
|
+
const ReqoreNotification: React.FC<IReqoreNotificationProps> = forwardRef<
|
|
199
|
+
HTMLDivElement,
|
|
200
|
+
IReqoreNotificationProps
|
|
201
|
+
>(
|
|
199
202
|
(
|
|
200
203
|
{
|
|
201
204
|
type,
|
|
@@ -108,7 +108,7 @@ export const StyledPanel = styled(StyledEffect)<IStyledPanel>`
|
|
|
108
108
|
transition: 0.2s ease-in-out;
|
|
109
109
|
flex: auto;
|
|
110
110
|
|
|
111
|
-
${({ interactive, theme, opacity = 1,
|
|
111
|
+
${({ interactive, theme, opacity = 1, flat, intent }) =>
|
|
112
112
|
interactive
|
|
113
113
|
? css`
|
|
114
114
|
cursor: pointer;
|
|
@@ -121,17 +121,13 @@ export const StyledPanel = styled(StyledEffect)<IStyledPanel>`
|
|
|
121
121
|
|
|
122
122
|
border-color: ${flat && !intent
|
|
123
123
|
? undefined
|
|
124
|
-
: `${
|
|
125
|
-
|
|
126
|
-
?
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
),
|
|
132
|
-
opacity
|
|
133
|
-
)
|
|
134
|
-
}`};
|
|
124
|
+
: `${rgba(
|
|
125
|
+
changeLightness(
|
|
126
|
+
intent ? theme.intents[intent] : getMainBackgroundColor(theme),
|
|
127
|
+
0.3
|
|
128
|
+
),
|
|
129
|
+
opacity
|
|
130
|
+
)}`};
|
|
135
131
|
|
|
136
132
|
${StyledCollectionItemContent}:after {
|
|
137
133
|
background: linear-gradient(
|
|
@@ -225,7 +221,7 @@ export const StyledPanelTitleHeader = styled.div`
|
|
|
225
221
|
padding-right: 5px;
|
|
226
222
|
`;
|
|
227
223
|
|
|
228
|
-
export const ReqorePanel = forwardRef(
|
|
224
|
+
export const ReqorePanel = forwardRef<HTMLDivElement, IReqorePanelProps>(
|
|
229
225
|
(
|
|
230
226
|
{
|
|
231
227
|
children,
|
|
@@ -256,7 +252,13 @@ export const ReqorePanel = forwardRef(
|
|
|
256
252
|
ref
|
|
257
253
|
) => {
|
|
258
254
|
const [_isCollapsed, setIsCollapsed] = useState(isCollapsed || false);
|
|
259
|
-
const theme = useReqoreTheme(
|
|
255
|
+
const theme = useReqoreTheme(
|
|
256
|
+
'main',
|
|
257
|
+
customTheme ||
|
|
258
|
+
(contentEffect?.gradient && minimal
|
|
259
|
+
? { main: Object.values(contentEffect.gradient.colors)[0] }
|
|
260
|
+
: undefined)
|
|
261
|
+
);
|
|
260
262
|
const { targetRef } = useCombinedRefs(ref);
|
|
261
263
|
|
|
262
264
|
useTooltip(targetRef.current, tooltip);
|
|
@@ -373,6 +375,20 @@ export const ReqorePanel = forwardRef(
|
|
|
373
375
|
rest.onContextMenu
|
|
374
376
|
);
|
|
375
377
|
|
|
378
|
+
const transformedContentEffect: IReqoreEffect = useMemo(() => {
|
|
379
|
+
const newContentEffect: IReqoreEffect = { ...contentEffect };
|
|
380
|
+
|
|
381
|
+
if (newContentEffect?.gradient) {
|
|
382
|
+
newContentEffect.gradient.borderColor = intent
|
|
383
|
+
? theme.intents[intent]
|
|
384
|
+
: newContentEffect.gradient.borderColor;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
newContentEffect.interactive = interactive;
|
|
388
|
+
|
|
389
|
+
return newContentEffect;
|
|
390
|
+
}, [intent, theme, contentEffect, interactive]);
|
|
391
|
+
|
|
376
392
|
return (
|
|
377
393
|
<StyledPanel
|
|
378
394
|
{...rest}
|
|
@@ -385,7 +401,7 @@ export const ReqorePanel = forwardRef(
|
|
|
385
401
|
className={`${className || ''} reqore-panel`}
|
|
386
402
|
interactive={interactive}
|
|
387
403
|
theme={theme}
|
|
388
|
-
effect={
|
|
404
|
+
effect={transformedContentEffect}
|
|
389
405
|
>
|
|
390
406
|
{hasTitleBar && (
|
|
391
407
|
<StyledPanelTitle
|
|
@@ -118,7 +118,7 @@ export const StyledTextarea = styled(StyledEffect)<IReqoreTextareaStyle>`
|
|
|
118
118
|
}
|
|
119
119
|
`;
|
|
120
120
|
|
|
121
|
-
const ReqoreInput = forwardRef(
|
|
121
|
+
const ReqoreInput = forwardRef<HTMLTextAreaElement, IReqoreTextareaProps>(
|
|
122
122
|
(
|
|
123
123
|
{
|
|
124
124
|
width,
|
|
@@ -152,6 +152,10 @@ const ReqoreInput = forwardRef(
|
|
|
152
152
|
>
|
|
153
153
|
<StyledTextarea
|
|
154
154
|
{...rest}
|
|
155
|
+
effect={{
|
|
156
|
+
interactive: !rest?.disabled && !rest.readOnly,
|
|
157
|
+
...rest?.effect,
|
|
158
|
+
}}
|
|
155
159
|
as='textarea'
|
|
156
160
|
className={`${className || ''} reqore-control reqore-textarea`}
|
|
157
161
|
_size={size}
|
|
@@ -46,6 +46,7 @@ const Template: Story<IReqoreMenuProps> = (args) => {
|
|
|
46
46
|
Selected success
|
|
47
47
|
</ReqoreMenuItem>
|
|
48
48
|
<ReqoreMenuItem icon='Save3Fill'>Save</ReqoreMenuItem>
|
|
49
|
+
<ReqoreMenuDivider label='BIG Divider' size='huge' />
|
|
49
50
|
<ReqoreMenuItem
|
|
50
51
|
icon='ChatPollFill'
|
|
51
52
|
onClick={() => alert('Item clicked')}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react/types-6-0';
|
|
2
|
+
import { noop } from 'lodash';
|
|
2
3
|
import ReqoreMessage, { IReqoreMessageProps } from '../../components/Message';
|
|
3
|
-
import {
|
|
4
|
+
import { FlatArg, IntentArg, SizeArg, argManager } from '../utils/args';
|
|
4
5
|
|
|
5
6
|
const { createArg } = argManager<IReqoreMessageProps>();
|
|
6
7
|
|
|
@@ -28,7 +29,7 @@ export default {
|
|
|
28
29
|
const Template: Story<IReqoreMessageProps> = (args: IReqoreMessageProps) => {
|
|
29
30
|
return (
|
|
30
31
|
<>
|
|
31
|
-
<ReqoreMessage {...args}>
|
|
32
|
+
<ReqoreMessage {...args} onClick={noop}>
|
|
32
33
|
In to am attended desirous raptures declared diverted confined at. Collected instantly
|
|
33
34
|
remaining up certainly to necessary as. Over walk dull into son boy door went new. At or
|
|
34
35
|
happiness commanded daughters as. Is handsome an declared at received in extended vicinity
|
|
@@ -159,12 +159,12 @@ Minimal.args = {
|
|
|
159
159
|
export const WithEffect: Story<IReqorePanelProps> = Template.bind({});
|
|
160
160
|
WithEffect.args = {
|
|
161
161
|
minimal: true,
|
|
162
|
-
flat: true,
|
|
163
162
|
contentEffect: {
|
|
164
163
|
gradient: {
|
|
165
164
|
type: 'radial',
|
|
166
165
|
shape: 'ellipse',
|
|
167
166
|
colors: { 0: '#670079', 100: '#180222' },
|
|
167
|
+
//borderColor: '#fff349',
|
|
168
168
|
},
|
|
169
169
|
},
|
|
170
170
|
headerEffect: {
|
package/tests.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"numFailedTestSuites":0,"numFailedTests":0,"numPassedTestSuites":25,"numPassedTests":104,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":25,"numTotalTests":104,"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":1671536627978,"success":true,"testResults":[{"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":1671536641098,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/table.test.tsx","startTime":1671536628410,"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":"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":"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":1671536642397,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/tabs.test.tsx","startTime":1671536641118,"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 children are empty","location":null,"status":"passed","title":"Renders disabled <Dropdown /> when children are empty"},{"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":1671536644318,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/dropdown.test.tsx","startTime":1671536642419,"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":1671536645329,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/sidebar.test.tsx","startTime":1671536644332,"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 delay","location":null,"status":"passed","title":"Shows the popover after a delay"},{"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":"Shows the hoverStay popover after a delay and stays, ","location":null,"status":"passed","title":"Shows the hoverStay popover after a delay and stays, "}],"endTime":1671536646383,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/popover.test.tsx","startTime":1671536645346,"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":1671536647242,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/notifications.test.tsx","startTime":1671536646394,"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":1671536647908,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/tag.test.tsx","startTime":1671536647252,"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"}],"endTime":1671536648566,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/panel.test.tsx","startTime":1671536647916,"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"}],"endTime":1671536649732,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/button.test.tsx","startTime":1671536648577,"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 /> "}],"endTime":1671536650790,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/modal.test.tsx","startTime":1671536649742,"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":1671536651442,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/drawer.test.tsx","startTime":1671536650799,"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":1671536652791,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/tree.test.tsx","startTime":1671536651459,"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":1671536654166,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/collection.test.tsx","startTime":1671536652800,"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":1671536654751,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/menu.test.tsx","startTime":1671536654175,"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":1671536655365,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/input.test.tsx","startTime":1671536654760,"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":1671536655839,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/breadcrumbs.test.tsx","startTime":1671536655373,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ReqoreEffect /> properly","location":null,"status":"passed","title":"Renders <ReqoreEffect /> 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":1671536656227,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/effect.test.tsx","startTime":1671536655848,"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":1671536657252,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/textarea.test.tsx","startTime":1671536656243,"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":1671536657769,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/messages.test.tsx","startTime":1671536657264,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Checkbox /> properly","location":null,"status":"passed","title":"Renders <Checkbox /> properly"}],"endTime":1671536658206,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/radiogroup.test.tsx","startTime":1671536657778,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders Layout properly","location":null,"status":"passed","title":"Renders Layout properly"}],"endTime":1671536658651,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/layout.test.tsx","startTime":1671536658215,"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":1671536659375,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/icon.test.tsx","startTime":1671536658661,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders Navbar properly","location":null,"status":"passed","title":"Renders Navbar properly"}],"endTime":1671536659766,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/navbar.test.tsx","startTime":1671536659384,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Checkbox /> properly","location":null,"status":"passed","title":"Renders <Checkbox /> properly"}],"endTime":1671536660187,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/checkbox.test.tsx","startTime":1671536659774,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <TimeAgo /> data properly","location":null,"status":"passed","title":"Renders <TimeAgo /> data properly"}],"endTime":1671536660556,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/timeAgo.test.tsx","startTime":1671536660196,"status":"passed","summary":""}],"wasInterrupted":false}
|
|
1
|
+
{"numFailedTestSuites":0,"numFailedTests":0,"numPassedTestSuites":25,"numPassedTests":104,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":25,"numTotalTests":104,"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":1671622801631,"success":true,"testResults":[{"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":1671622814050,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/table.test.tsx","startTime":1671622802057,"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":"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":"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":1671622815299,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/tabs.test.tsx","startTime":1671622814068,"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 children are empty","location":null,"status":"passed","title":"Renders disabled <Dropdown /> when children are empty"},{"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":1671622817144,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/dropdown.test.tsx","startTime":1671622815319,"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":1671622818115,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/sidebar.test.tsx","startTime":1671622817157,"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 delay","location":null,"status":"passed","title":"Shows the popover after a delay"},{"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":"Shows the hoverStay popover after a delay and stays, ","location":null,"status":"passed","title":"Shows the hoverStay popover after a delay and stays, "}],"endTime":1671622819113,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/popover.test.tsx","startTime":1671622818130,"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":1671622819933,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/notifications.test.tsx","startTime":1671622819124,"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":1671622820541,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/tag.test.tsx","startTime":1671622819942,"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"}],"endTime":1671622821159,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/panel.test.tsx","startTime":1671622820550,"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"}],"endTime":1671622822245,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/button.test.tsx","startTime":1671622821167,"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 /> "}],"endTime":1671622823231,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/modal.test.tsx","startTime":1671622822253,"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":1671622823850,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/drawer.test.tsx","startTime":1671622823240,"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":1671622825136,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/tree.test.tsx","startTime":1671622823859,"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":1671622826473,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/collection.test.tsx","startTime":1671622825152,"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":1671622827083,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/menu.test.tsx","startTime":1671622826481,"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":1671622828005,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/input.test.tsx","startTime":1671622827133,"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":1671622828445,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/breadcrumbs.test.tsx","startTime":1671622828015,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <ReqoreEffect /> properly","location":null,"status":"passed","title":"Renders <ReqoreEffect /> 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":1671622828807,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/effect.test.tsx","startTime":1671622828460,"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":1671622829277,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/textarea.test.tsx","startTime":1671622828815,"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":1671622829735,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/messages.test.tsx","startTime":1671622829285,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Checkbox /> properly","location":null,"status":"passed","title":"Renders <Checkbox /> properly"}],"endTime":1671622830112,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/radiogroup.test.tsx","startTime":1671622829743,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders Layout properly","location":null,"status":"passed","title":"Renders Layout properly"}],"endTime":1671622830525,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/layout.test.tsx","startTime":1671622830120,"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":1671622831167,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/icon.test.tsx","startTime":1671622830539,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders Navbar properly","location":null,"status":"passed","title":"Renders Navbar properly"}],"endTime":1671622831525,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/navbar.test.tsx","startTime":1671622831175,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Checkbox /> properly","location":null,"status":"passed","title":"Renders <Checkbox /> properly"}],"endTime":1671622831931,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/checkbox.test.tsx","startTime":1671622831533,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <TimeAgo /> data properly","location":null,"status":"passed","title":"Renders <TimeAgo /> data properly"}],"endTime":1671622832293,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/timeAgo.test.tsx","startTime":1671622831946,"status":"passed","summary":""}],"wasInterrupted":false}
|