@qoretechnologies/reqore 0.20.3 → 0.20.6
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/.github/workflows/beta_release.yml +3 -3
- package/__tests__/modal.test.tsx +3 -8
- package/__tests__/panel.test.tsx +3 -3
- package/dist/components/Breadcrumbs/index.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/index.js +0 -1
- package/dist/components/Breadcrumbs/index.js.map +1 -1
- package/dist/components/Breadcrumbs/item.d.ts.map +1 -1
- package/dist/components/Breadcrumbs/item.js +0 -1
- package/dist/components/Breadcrumbs/item.js.map +1 -1
- package/dist/components/Drawer/index.d.ts.map +1 -1
- package/dist/components/Drawer/index.js +0 -1
- package/dist/components/Drawer/index.js.map +1 -1
- package/dist/components/Menu/index.d.ts +2 -2
- package/dist/components/Menu/index.d.ts.map +1 -1
- package/dist/components/Panel/index.d.ts +2 -2
- package/dist/components/Panel/index.d.ts.map +1 -1
- package/dist/components/Panel/index.js +6 -6
- package/dist/components/Panel/index.js.map +1 -1
- package/dist/components/Table/index.d.ts +2 -2
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Tabs/list.d.ts.map +1 -1
- package/dist/components/Tabs/list.js +0 -1
- package/dist/components/Tabs/list.js.map +1 -1
- package/dist/helpers/colors.d.ts +1 -0
- package/dist/helpers/colors.d.ts.map +1 -1
- package/dist/helpers/colors.js +14 -2
- package/dist/helpers/colors.js.map +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -9
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/Breadcrumbs/index.tsx +0 -2
- package/src/components/Breadcrumbs/item.tsx +0 -2
- package/src/components/Drawer/index.tsx +0 -2
- package/src/components/Menu/index.tsx +2 -2
- package/src/components/Panel/index.tsx +8 -8
- package/src/components/Table/index.tsx +2 -2
- package/src/components/Tabs/list.tsx +0 -2
- package/src/helpers/colors.ts +17 -2
- package/src/index.tsx +0 -2
- package/src/stories/Panel/Panel.stories.tsx +1 -1
- package/tests.json +1 -1
- package/tsconfig.prod.json +26 -0
- package/dist/components/Modal/actions.d.ts +0 -6
- package/dist/components/Modal/actions.d.ts.map +0 -1
- package/dist/components/Modal/actions.js +0 -49
- package/dist/components/Modal/actions.js.map +0 -1
- package/dist/components/Modal/content.d.ts +0 -6
- package/dist/components/Modal/content.d.ts.map +0 -1
- package/dist/components/Modal/content.js +0 -25
- package/dist/components/Modal/content.js.map +0 -1
- package/src/components/Modal/actions.tsx +0 -26
- package/src/components/Modal/content.tsx +0 -11
package/dist/index.js
CHANGED
|
@@ -11,8 +11,8 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
11
11
|
o[k2] = m[k];
|
|
12
12
|
}));
|
|
13
13
|
exports.__esModule = true;
|
|
14
|
-
exports.ReqoreTag = exports.ReqoreTabsList = exports.ReqoreTabsListItem = exports.ReqoreTabsContent = exports.ReqoreTabs = exports.ReqoreTable = exports.ReqoreSidebar = exports.ReqoreRadioGroup = exports.ReqorePopover = exports.ReqoreParagraph = exports.ReqoreP = exports.ReqorePanel = exports.ReqoreNotification = exports.ReqoreNotificationsWrapper = exports.ReqoreNavbarItem = exports.ReqoreNavbarGroup = exports.ReqoreNavbarDivider = exports.ReqoreHeader = exports.ReqoreFooter = exports.
|
|
15
|
-
exports.useLatestZIndex = exports.ReqoreThemeContext = exports.ReqoreContext = exports.ReqoreUIProvider = exports.ReqoreNotifications = exports.ReqoreColors = exports.ReqoreTree =
|
|
14
|
+
exports.ReqoreTimeAgo = exports.ReqoreTextarea = exports.ReqoreTagGroup = exports.ReqoreTag = exports.ReqoreTabsList = exports.ReqoreTabsListItem = exports.ReqoreTabsContent = exports.ReqoreTabs = exports.ReqoreTable = exports.ReqoreSidebar = exports.ReqoreRadioGroup = exports.ReqorePopover = exports.ReqoreParagraph = exports.ReqoreP = exports.ReqorePanel = exports.ReqoreNotification = exports.ReqoreNotificationsWrapper = exports.ReqoreNavbarItem = exports.ReqoreNavbarGroup = exports.ReqoreNavbarDivider = exports.ReqoreHeader = exports.ReqoreFooter = exports.ReqoreModal = exports.ReqoreMessage = exports.ReqoreMenuItem = exports.ReqoreMenuDivider = exports.ReqoreMenu = exports.ReqoreLayoutContent = exports.ReqoreInput = exports.ReqoreIcon = exports.ReqoreH6 = exports.ReqoreH5 = exports.ReqoreH4 = exports.ReqoreH3 = exports.ReqoreH2 = exports.ReqoreH1 = exports.ReqoreDropdownItem = exports.ReqoreDropdownDivider = exports.ReqoreDropdown = exports.ReqoreDrawer = exports.ReqoreControlGroup = exports.ReqoreContent = exports.ReqoreCommentFeed = exports.ReqoreComment = exports.ReqoreColumn = exports.ReqoreColumns = exports.ReqoreCheckbox = exports.ReqoreButton = exports.ReqoreBreadcrumbsItem = exports.ReqoreBreadcrumbs = void 0;
|
|
15
|
+
exports.useLatestZIndex = exports.ReqoreThemeContext = exports.ReqoreContext = exports.ReqoreUIProvider = exports.ReqoreNotifications = exports.ReqoreColors = exports.ReqoreTree = void 0;
|
|
16
16
|
var Breadcrumbs_1 = require("./components/Breadcrumbs");
|
|
17
17
|
__createBinding(exports, Breadcrumbs_1, "default", "ReqoreBreadcrumbs");
|
|
18
18
|
var item_1 = require("./components/Breadcrumbs/item");
|
|
@@ -63,11 +63,6 @@ var Message_1 = require("./components/Message");
|
|
|
63
63
|
__createBinding(exports, Message_1, "default", "ReqoreMessage");
|
|
64
64
|
var Modal_1 = require("./components/Modal");
|
|
65
65
|
__createBinding(exports, Modal_1, "ReqoreModal");
|
|
66
|
-
var actions_1 = require("./components/Modal/actions");
|
|
67
|
-
__createBinding(exports, actions_1, "ReqoreModalActions");
|
|
68
|
-
__createBinding(exports, actions_1, "ReqoreModalActionsGroup");
|
|
69
|
-
var content_2 = require("./components/Modal/content");
|
|
70
|
-
__createBinding(exports, content_2, "ReqoreModalContent");
|
|
71
66
|
var Navbar_1 = require("./components/Navbar");
|
|
72
67
|
__createBinding(exports, Navbar_1, "ReqoreFooter");
|
|
73
68
|
__createBinding(exports, Navbar_1, "ReqoreHeader");
|
|
@@ -96,8 +91,8 @@ var Table_1 = require("./components/Table");
|
|
|
96
91
|
__createBinding(exports, Table_1, "default", "ReqoreTable");
|
|
97
92
|
var Tabs_1 = require("./components/Tabs");
|
|
98
93
|
__createBinding(exports, Tabs_1, "default", "ReqoreTabs");
|
|
99
|
-
var
|
|
100
|
-
__createBinding(exports,
|
|
94
|
+
var content_2 = require("./components/Tabs/content");
|
|
95
|
+
__createBinding(exports, content_2, "default", "ReqoreTabsContent");
|
|
101
96
|
var item_5 = require("./components/Tabs/item");
|
|
102
97
|
__createBinding(exports, item_5, "default", "ReqoreTabsListItem");
|
|
103
98
|
var list_1 = require("./components/Tabs/list");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,wDAAwE;AAA/D,wEAA4B;AACrC,sDAAiF;AAAxE,qEAAgC;AACzC,8CAA8D;AAArD,8DAAuB;AAChC,kDAAkE;AAAzD,kEAAyB;AAClC,gDAAqD;AAA5C,qDAAa;AACtB,sDAA2D;AAAlD,mDAAY;AACrB,gDAAqD;AAA5C,qDAAa;AACtB,wDAA6D;AAApD,6DAAiB;AAC1B,gDAAgE;AAAvD,gEAAwB;AACjC,0DAA0E;AAAjE,0EAA6B;AACtC,8CAAmD;AAA1C,mDAAY;AACrB,kDAAkE;AAAzD,kEAAyB;AAClC,mDAAuF;AAA9E,0DAAqB;AAAE,uDAAkB;AAClD,8CAAiG;AAAxF,+CAAQ;AAAE,+CAAQ;AAAE,+CAAQ;AAAE,+CAAQ;AAAE,+CAAQ;AAAE,+CAAQ;AACnE,0CAA0D;AAAjD,0DAAqB;AAC9B,4CAA4D;AAAnD,4DAAsB;AAC/B,uDAA6E;AAApE,sEAA8B;AACvC,0CAA0D;AAAjD,0DAAqB;AAC9B,qDAAyE;AAAhE,oEAA4B;AACrC,+CAAmE;AAA1D,8DAAyB;AAClC,gDAAgE;AAAvD,gEAAwB;AACjC,4CAAiD;AAAxC,iDAAW;AACpB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,wDAAwE;AAA/D,wEAA4B;AACrC,sDAAiF;AAAxE,qEAAgC;AACzC,8CAA8D;AAArD,8DAAuB;AAChC,kDAAkE;AAAzD,kEAAyB;AAClC,gDAAqD;AAA5C,qDAAa;AACtB,sDAA2D;AAAlD,mDAAY;AACrB,gDAAqD;AAA5C,qDAAa;AACtB,wDAA6D;AAApD,6DAAiB;AAC1B,gDAAgE;AAAvD,gEAAwB;AACjC,0DAA0E;AAAjE,0EAA6B;AACtC,8CAAmD;AAA1C,mDAAY;AACrB,kDAAkE;AAAzD,kEAAyB;AAClC,mDAAuF;AAA9E,0DAAqB;AAAE,uDAAkB;AAClD,8CAAiG;AAAxF,+CAAQ;AAAE,+CAAQ;AAAE,+CAAQ;AAAE,+CAAQ;AAAE,+CAAQ;AAAE,+CAAQ;AACnE,0CAA0D;AAAjD,0DAAqB;AAC9B,4CAA4D;AAAnD,4DAAsB;AAC/B,uDAA6E;AAApE,sEAA8B;AACvC,0CAA0D;AAAjD,0DAAqB;AAC9B,qDAAyE;AAAhE,oEAA4B;AACrC,+CAAmE;AAA1D,8DAAyB;AAClC,gDAAgE;AAAvD,gEAAwB;AACjC,4CAAiD;AAAxC,iDAAW;AACpB,8CAAiE;AAAxD,mDAAY;AAAE,mDAAY;AACnC,uDAA6E;AAApE,sEAA8B;AACvC,mDAAyE;AAAhE,kEAA4B;AACrC,iDAAuE;AAA9D,gEAA2B;AACpC,4DAAmF;AAA1E,mFAAqC;AAC9C,wEAAwF;AAA/E,0EAA6B;AACtC,4CAAiD;AAAxC,iDAAW;AACpB,oDAA6E;AAApE,iDAAO;AAAE,oEAA0B;AAC5C,gDAAgE;AAAvD,gEAAwB;AACjC,sDAAsE;AAA7D,sEAA2B;AACpC,gDAAgE;AAAvD,gEAAwB;AACjC,4CAA4D;AAAnD,4DAAsB;AAC/B,0CAA0D;AAAjD,0DAAqB;AAC9B,qDAAyE;AAAhE,oEAA4B;AACrC,+CAAuE;AAA9D,kEAA6B;AACtC,+CAAmE;AAA1D,8DAAyB;AAClC,wCAAwD;AAA/C,wDAAoB;AAC7B,gDAAmE;AAA1D,+DAAyB;AAClC,kDAAkE;AAAzD,kEAAyB;AAClC,gDAAgE;AAAvD,gEAAwB;AACjC,0CAA+C;AAAtC,+CAAU;AACnB,6CAA4D;AAAnD,6DAAsB;AAC/B,8DAA6E;AAApE,6EAA8B;AACvC,sDAAsE;AAA7D,sEAA2B;AACpC,yDAAmE;AAA1D,sEAAwB;AACjC,uDAAuE;AAA9D,0EAA6B;AACtC,2DAAqE;AAA5D,0EAA0B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qoretechnologies/reqore",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.6",
|
|
4
4
|
"description": "ReQore is a highly theme-able and modular UI library for React",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"test": "./node_modules/.bin/jest",
|
|
9
9
|
"test:watch": "./node_modules/.bin/jest --watch",
|
|
10
10
|
"test:ci": "./node_modules/.bin/jest --silent --json --outputFile=tests.json",
|
|
11
|
-
"build": "./node_modules/typescript/bin/tsc",
|
|
11
|
+
"build": "./node_modules/typescript/bin/tsc --project tsconfig.prod.json",
|
|
12
12
|
"build:test": "./node_modules/typescript/bin/tsc --noEmit",
|
|
13
13
|
"storybook": "start-storybook -p 6007 --no-dll",
|
|
14
14
|
"build-storybook": "build-storybook"
|
|
@@ -145,8 +145,6 @@ const getTransformedItems = (
|
|
|
145
145
|
let stop = false;
|
|
146
146
|
let newItems = [...items];
|
|
147
147
|
|
|
148
|
-
console.log(getBreadcrumbsLength(newItems, size), width);
|
|
149
|
-
|
|
150
148
|
while (getBreadcrumbsLength(newItems, size) > width && !stop) {
|
|
151
149
|
if (isArray(newItems[1])) {
|
|
152
150
|
newItems[1].push(newItems[2] as IReqoreBreadcrumbItem);
|
|
@@ -127,8 +127,6 @@ const ReqoreBreadcrumbsItem = forwardRef(
|
|
|
127
127
|
const combinedRef = useCombinedRefs(innerRef, ref);
|
|
128
128
|
const theme = useReqoreTheme('breadcrumbs', customTheme);
|
|
129
129
|
|
|
130
|
-
console.log(combinedRef, tooltip);
|
|
131
|
-
|
|
132
130
|
useTooltip(combinedRef?.current, tooltip);
|
|
133
131
|
|
|
134
132
|
return (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
import styled, { css } from 'styled-components';
|
|
3
|
-
import { IReqoreIntent, IReqoreTheme } from '../../constants/theme';
|
|
3
|
+
import { IReqoreCustomTheme, IReqoreIntent, IReqoreTheme } from '../../constants/theme';
|
|
4
4
|
import ReqoreThemeProvider from '../../containers/ThemeProvider';
|
|
5
5
|
import { changeLightness } from '../../helpers/colors';
|
|
6
6
|
import { useReqoreTheme } from '../../hooks/useTheme';
|
|
@@ -11,7 +11,7 @@ export interface IReqoreMenuProps extends IReqoreComponent, React.HTMLAttributes
|
|
|
11
11
|
position?: 'left' | 'right';
|
|
12
12
|
width?: string;
|
|
13
13
|
maxHeight?: string;
|
|
14
|
-
customTheme?:
|
|
14
|
+
customTheme?: IReqoreCustomTheme;
|
|
15
15
|
intent?: IReqoreIntent;
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -4,7 +4,7 @@ import { forwardRef, ReactElement, useCallback, useMemo, useState } from 'react'
|
|
|
4
4
|
import { useUpdateEffect } from 'react-use';
|
|
5
5
|
import styled, { css } from 'styled-components';
|
|
6
6
|
import { RADIUS_FROM_SIZE } from '../../constants/sizes';
|
|
7
|
-
import { IReqoreIntent, IReqoreTheme } from '../../constants/theme';
|
|
7
|
+
import { IReqoreCustomTheme, IReqoreIntent, IReqoreTheme } from '../../constants/theme';
|
|
8
8
|
import ReqoreThemeProvider from '../../containers/ThemeProvider';
|
|
9
9
|
import {
|
|
10
10
|
changeDarkness,
|
|
@@ -45,7 +45,7 @@ export interface IReqorePanelProps extends React.HTMLAttributes<HTMLDivElement>
|
|
|
45
45
|
rounded?: boolean;
|
|
46
46
|
actions?: IReqorePanelAction[];
|
|
47
47
|
bottomActions?: IReqorePanelBottomAction[];
|
|
48
|
-
customTheme?:
|
|
48
|
+
customTheme?: IReqoreCustomTheme;
|
|
49
49
|
intent?: IReqoreIntent;
|
|
50
50
|
flat?: boolean;
|
|
51
51
|
unMountContentOnCollapse?: boolean;
|
|
@@ -63,12 +63,12 @@ export interface IStyledPanel extends IReqorePanelProps {
|
|
|
63
63
|
|
|
64
64
|
export const StyledPanel = styled.div<IStyledPanel>`
|
|
65
65
|
background-color: ${({ theme, opacity = 1 }: IStyledPanel) =>
|
|
66
|
-
changeDarkness(
|
|
66
|
+
rgba(changeDarkness(getMainBackgroundColor(theme), 0.03), opacity)};
|
|
67
67
|
border-radius: ${({ rounded }) => (rounded ? RADIUS_FROM_SIZE.normal : 0)}px;
|
|
68
68
|
border: ${({ theme, flat, opacity = 1 }) =>
|
|
69
69
|
flat
|
|
70
70
|
? undefined
|
|
71
|
-
: `1px solid ${changeLightness(
|
|
71
|
+
: `1px solid ${rgba(changeLightness(getMainBackgroundColor(theme), 0.2), opacity)}`};
|
|
72
72
|
color: ${({ theme }) => getReadableColor(theme, undefined, undefined, true)};
|
|
73
73
|
overflow: hidden;
|
|
74
74
|
display: flex;
|
|
@@ -89,14 +89,14 @@ export const StyledPanel = styled.div<IStyledPanel>`
|
|
|
89
89
|
export const StyledPanelTitle = styled.div<IStyledPanel>`
|
|
90
90
|
display: flex;
|
|
91
91
|
background-color: ${({ theme, opacity = 1 }: IStyledPanel) =>
|
|
92
|
-
changeLightness(
|
|
92
|
+
rgba(changeLightness(getMainBackgroundColor(theme), 0.07), opacity)};
|
|
93
93
|
justify-content: space-between;
|
|
94
94
|
height: 40px;
|
|
95
95
|
align-items: center;
|
|
96
96
|
padding: 0 5px 0 15px;
|
|
97
97
|
border-bottom: ${({ theme, isCollapsed, flat, opacity = 1 }) =>
|
|
98
98
|
!isCollapsed && !flat
|
|
99
|
-
? `1px solid ${changeLightness(
|
|
99
|
+
? `1px solid ${rgba(changeLightness(getMainBackgroundColor(theme), 0.2), opacity)}`
|
|
100
100
|
: null};
|
|
101
101
|
transition: background-color 0.2s ease-out;
|
|
102
102
|
overflow: hidden;
|
|
@@ -108,7 +108,7 @@ export const StyledPanelTitle = styled.div<IStyledPanel>`
|
|
|
108
108
|
cursor: pointer;
|
|
109
109
|
&:hover {
|
|
110
110
|
background-color: ${({ theme, opacity = 1 }: IStyledPanel) =>
|
|
111
|
-
changeLightness(
|
|
111
|
+
rgba(changeLightness(getMainBackgroundColor(theme), 0.1), opacity)};
|
|
112
112
|
}
|
|
113
113
|
`}
|
|
114
114
|
`;
|
|
@@ -118,7 +118,7 @@ export const StyledPanelBottomActions = styled(StyledPanelTitle)`
|
|
|
118
118
|
border-bottom: 0;
|
|
119
119
|
border-top: ${({ theme, flat, opacity = 1 }) =>
|
|
120
120
|
!flat
|
|
121
|
-
? `1px solid ${changeLightness(
|
|
121
|
+
? `1px solid ${rgba(changeLightness(getMainBackgroundColor(theme), 0.2), opacity)}`
|
|
122
122
|
: null};
|
|
123
123
|
`;
|
|
124
124
|
|
|
@@ -4,7 +4,7 @@ import React, { useState } from 'react';
|
|
|
4
4
|
import { useUpdateEffect } from 'react-use';
|
|
5
5
|
import styled, { css } from 'styled-components';
|
|
6
6
|
import { TABLE_SIZE_TO_PX, TSizes } from '../../constants/sizes';
|
|
7
|
-
import { IReqoreIntent, IReqoreTheme } from '../../constants/theme';
|
|
7
|
+
import { IReqoreCustomTheme, IReqoreIntent, IReqoreTheme } from '../../constants/theme';
|
|
8
8
|
import ReqoreThemeProvider from '../../containers/ThemeProvider';
|
|
9
9
|
import { changeLightness, getReadableColor } from '../../helpers/colors';
|
|
10
10
|
import { useReqoreTheme } from '../../hooks/useTheme';
|
|
@@ -68,7 +68,7 @@ export interface IReqoreTableProps extends React.HTMLAttributes<HTMLDivElement>
|
|
|
68
68
|
onSelectedChange?: (selected?: any[]) => void;
|
|
69
69
|
selectToggleTooltip?: string;
|
|
70
70
|
onRowClick?: IReqoreTableRowClick;
|
|
71
|
-
customTheme?:
|
|
71
|
+
customTheme?: IReqoreCustomTheme;
|
|
72
72
|
intent?: IReqoreIntent;
|
|
73
73
|
rounded?: boolean;
|
|
74
74
|
flat?: boolean;
|
|
@@ -106,8 +106,6 @@ const getTransformedItems = (
|
|
|
106
106
|
}
|
|
107
107
|
let newItems = [...items];
|
|
108
108
|
|
|
109
|
-
console.log('SIZES', getTabsLength(newItems, type, activeTab, tabsSize), size);
|
|
110
|
-
|
|
111
109
|
while (getTabsLength(newItems, type, activeTab, tabsSize) > size && newItems.length > 1) {
|
|
112
110
|
if (isArray(newItems[newItems.length - 1])) {
|
|
113
111
|
(newItems[newItems.length - 1] as IReqoreTabsListItem[]).unshift(
|
package/src/helpers/colors.ts
CHANGED
|
@@ -36,6 +36,14 @@ export const getReadableColorFrom = (
|
|
|
36
36
|
return readableColor(from, returnIfLight, returnIfDark, false);
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
+
export const percentToHexAlpha = (p: number) => {
|
|
40
|
+
const percent = Math.max(0, Math.min(100, p)); // bound percent from 0 to 100
|
|
41
|
+
const intValue = Math.round((percent / 100) * 255); // map percent to nearest integer (0 - 255)
|
|
42
|
+
const hexValue = intValue.toString(16); // get hexadecimal representation
|
|
43
|
+
|
|
44
|
+
return hexValue.padStart(2, '0').toUpperCase(); // format with leading 0 and upper case characters
|
|
45
|
+
};
|
|
46
|
+
|
|
39
47
|
export const shouldDarken = (mainColor: string) => {
|
|
40
48
|
const contrast = getColorByBgColor(mainColor);
|
|
41
49
|
|
|
@@ -47,8 +55,15 @@ export const getMainColor: (theme: IReqoreTheme, component: string) => string =
|
|
|
47
55
|
component
|
|
48
56
|
) => theme[component]?.main || theme.main;
|
|
49
57
|
|
|
50
|
-
export const
|
|
51
|
-
|
|
58
|
+
//export const changeBasedOnContrast = (color: string, lightness?: number): string =>
|
|
59
|
+
|
|
60
|
+
export const changeLightness = (color: string, lightness?: number): string => {
|
|
61
|
+
return lightness
|
|
62
|
+
? shouldDarken(color)
|
|
63
|
+
? darken(lightness, color)
|
|
64
|
+
: lighten(lightness, color)
|
|
65
|
+
: color;
|
|
66
|
+
};
|
|
52
67
|
|
|
53
68
|
export const changeDarkness = (color: string, lightness?: number): string =>
|
|
54
69
|
lightness ? (shouldDarken(color) ? lighten(lightness, color) : darken(lightness, color)) : color;
|
package/src/index.tsx
CHANGED
|
@@ -20,8 +20,6 @@ export { default as ReqoreMenuDivider } from './components/Menu/divider';
|
|
|
20
20
|
export { default as ReqoreMenuItem } from './components/Menu/item';
|
|
21
21
|
export { default as ReqoreMessage } from './components/Message';
|
|
22
22
|
export { ReqoreModal } from './components/Modal';
|
|
23
|
-
export { ReqoreModalActions, ReqoreModalActionsGroup } from './components/Modal/actions';
|
|
24
|
-
export { ReqoreModalContent } from './components/Modal/content';
|
|
25
23
|
export { ReqoreFooter, ReqoreHeader } from './components/Navbar';
|
|
26
24
|
export { default as ReqoreNavbarDivider } from './components/Navbar/divider';
|
|
27
25
|
export { default as ReqoreNavbarGroup } from './components/Navbar/group';
|
package/tests.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"numFailedTestSuites":0,"numFailedTests":0,"numPassedTestSuites":23,"numPassedTests":90,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":23,"numTotalTests":90,"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":1662619771327,"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":1662619782601,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/table.test.tsx","startTime":1662619771777,"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":1662619783801,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/tabs.test.tsx","startTime":1662619782621,"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":1662619784934,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/sidebar.test.tsx","startTime":1662619783817,"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 filterable <Dropdown /> and filters items correctly","location":null,"status":"passed","title":"Renders filterable <Dropdown /> and filters items correctly"}],"endTime":1662619786128,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/dropdown.test.tsx","startTime":1662619784952,"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":1662619786997,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/notifications.test.tsx","startTime":1662619786139,"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":1662619787823,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/button.test.tsx","startTime":1662619787018,"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"}],"endTime":1662619788393,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/tag.test.tsx","startTime":1662619787833,"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":1662619789137,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/modal.test.tsx","startTime":1662619788404,"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":1662619789813,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/drawer.test.tsx","startTime":1662619789148,"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"}],"endTime":1662619790321,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/panel.test.tsx","startTime":1662619789823,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders basic <Tree /> properly","location":null,"status":"passed","title":"Renders basic <Tree /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Shows types for <Tree /> properly","location":null,"status":"passed","title":"Shows types for <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":"Renders <Tree /> with clickable items","location":null,"status":"passed","title":"Renders <Tree /> with clickable items"}],"endTime":1662619791335,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/tree.test.tsx","startTime":1662619790330,"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"}],"endTime":1662619791855,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/popover.test.tsx","startTime":1662619791352,"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":1662619792295,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/menu.test.tsx","startTime":1662619791864,"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":1662619792898,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/input.test.tsx","startTime":1662619792304,"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":1662619793356,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/breadcrumbs.test.tsx","startTime":1662619792907,"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":1662619793822,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/textarea.test.tsx","startTime":1662619793365,"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":1662619794315,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/messages.test.tsx","startTime":1662619793832,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Checkbox /> properly","location":null,"status":"passed","title":"Renders <Checkbox /> properly"}],"endTime":1662619794708,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/radiogroup.test.tsx","startTime":1662619794324,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders Layout properly","location":null,"status":"passed","title":"Renders Layout properly"}],"endTime":1662619795132,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/layout.test.tsx","startTime":1662619794717,"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":1662619796210,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/icon.test.tsx","startTime":1662619795141,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders Navbar properly","location":null,"status":"passed","title":"Renders Navbar properly"}],"endTime":1662619796646,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/navbar.test.tsx","startTime":1662619796232,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Checkbox /> properly","location":null,"status":"passed","title":"Renders <Checkbox /> properly"}],"endTime":1662619797104,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/checkbox.test.tsx","startTime":1662619796657,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <TimeAgo /> data properly","location":null,"status":"passed","title":"Renders <TimeAgo /> data properly"}],"endTime":1662619797473,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/timeAgo.test.tsx","startTime":1662619797112,"status":"passed","summary":""}],"wasInterrupted":false}
|
|
1
|
+
{"numFailedTestSuites":0,"numFailedTests":0,"numPassedTestSuites":23,"numPassedTests":90,"numPendingTestSuites":0,"numPendingTests":0,"numRuntimeErrorTestSuites":0,"numTodoTests":0,"numTotalTestSuites":23,"numTotalTests":90,"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":1662634447236,"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":1662634458454,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/table.test.tsx","startTime":1662634447672,"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":1662634459638,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/tabs.test.tsx","startTime":1662634458478,"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":1662634460715,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/sidebar.test.tsx","startTime":1662634459653,"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 filterable <Dropdown /> and filters items correctly","location":null,"status":"passed","title":"Renders filterable <Dropdown /> and filters items correctly"}],"endTime":1662634461893,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/dropdown.test.tsx","startTime":1662634460727,"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":1662634462746,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/notifications.test.tsx","startTime":1662634461906,"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":1662634463552,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/button.test.tsx","startTime":1662634462765,"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"}],"endTime":1662634464123,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/tag.test.tsx","startTime":1662634463566,"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":1662634464853,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/modal.test.tsx","startTime":1662634464132,"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":1662634465509,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/drawer.test.tsx","startTime":1662634464862,"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"}],"endTime":1662634466027,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/panel.test.tsx","startTime":1662634465522,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders basic <Tree /> properly","location":null,"status":"passed","title":"Renders basic <Tree /> properly"},{"ancestorTitles":[],"failureMessages":[],"fullName":"Shows types for <Tree /> properly","location":null,"status":"passed","title":"Shows types for <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":"Renders <Tree /> with clickable items","location":null,"status":"passed","title":"Renders <Tree /> with clickable items"}],"endTime":1662634467016,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/tree.test.tsx","startTime":1662634466041,"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"}],"endTime":1662634467525,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/popover.test.tsx","startTime":1662634467033,"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":1662634467943,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/menu.test.tsx","startTime":1662634467533,"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":1662634468518,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/input.test.tsx","startTime":1662634467960,"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":1662634468956,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/breadcrumbs.test.tsx","startTime":1662634468532,"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":1662634469428,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/textarea.test.tsx","startTime":1662634468964,"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":1662634469903,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/messages.test.tsx","startTime":1662634469436,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Checkbox /> properly","location":null,"status":"passed","title":"Renders <Checkbox /> properly"}],"endTime":1662634470300,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/radiogroup.test.tsx","startTime":1662634469919,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders Layout properly","location":null,"status":"passed","title":"Renders Layout properly"}],"endTime":1662634470739,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/layout.test.tsx","startTime":1662634470317,"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":1662634471810,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/icon.test.tsx","startTime":1662634470748,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders Navbar properly","location":null,"status":"passed","title":"Renders Navbar properly"}],"endTime":1662634472249,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/navbar.test.tsx","startTime":1662634471822,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <Checkbox /> properly","location":null,"status":"passed","title":"Renders <Checkbox /> properly"}],"endTime":1662634472711,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/checkbox.test.tsx","startTime":1662634472261,"status":"passed","summary":""},{"assertionResults":[{"ancestorTitles":[],"failureMessages":[],"fullName":"Renders <TimeAgo /> data properly","location":null,"status":"passed","title":"Renders <TimeAgo /> data properly"}],"endTime":1662634473087,"message":"","name":"/home/runner/work/reqore/reqore/__tests__/timeAgo.test.tsx","startTime":1662634472725,"status":"passed","summary":""}],"wasInterrupted":false}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"lib": ["es2017", "es2018", "es2019", "es2020", "es2021", "DOM"],
|
|
4
|
+
"module": "commonjs",
|
|
5
|
+
"sourceMap": true,
|
|
6
|
+
"moduleResolution": "node",
|
|
7
|
+
"strict": false,
|
|
8
|
+
"noUnusedLocals": true,
|
|
9
|
+
"noImplicitAny": false,
|
|
10
|
+
"noImplicitReturns": true,
|
|
11
|
+
"noUnusedParameters": true,
|
|
12
|
+
"strictNullChecks": false,
|
|
13
|
+
"experimentalDecorators": true,
|
|
14
|
+
"allowSyntheticDefaultImports": true,
|
|
15
|
+
"declaration": true,
|
|
16
|
+
"declarationMap": true,
|
|
17
|
+
"esModuleInterop": true,
|
|
18
|
+
"skipLibCheck": true,
|
|
19
|
+
"resolveJsonModule": true,
|
|
20
|
+
"jsx": "react-jsx",
|
|
21
|
+
"types": ["node", "react", "react-dom", "jest"],
|
|
22
|
+
"outDir": "dist"
|
|
23
|
+
},
|
|
24
|
+
"exclude": ["node_modules", "./src/stories/*", "./src/mock/*", "__tests__/*"],
|
|
25
|
+
"include": ["./src/**/*.ts", "./src/**/*.tsx"]
|
|
26
|
+
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { IReqoreNavbarProps } from '../Navbar';
|
|
3
|
-
import { IReqoreNavbarGroupProps } from '../Navbar/group';
|
|
4
|
-
export declare const ReqoreModalActionsGroup: ({ children, className, ...rest }: IReqoreNavbarGroupProps) => JSX.Element;
|
|
5
|
-
export declare const ReqoreModalActions: ({ children, className, ...rest }: IReqoreNavbarProps) => JSX.Element;
|
|
6
|
-
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/actions.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAgB,MAAM,WAAW,CAAC;AAC7D,OAA0B,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAS7E,eAAO,MAAM,uBAAuB,qCAIjC,uBAAuB,gBAIzB,CAAC;AAEF,eAAO,MAAM,kBAAkB,qCAAsC,kBAAkB,gBAItF,CAAC"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __assign = (this && this.__assign) || function () {
|
|
7
|
-
__assign = Object.assign || function(t) {
|
|
8
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9
|
-
s = arguments[i];
|
|
10
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
11
|
-
t[p] = s[p];
|
|
12
|
-
}
|
|
13
|
-
return t;
|
|
14
|
-
};
|
|
15
|
-
return __assign.apply(this, arguments);
|
|
16
|
-
};
|
|
17
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
18
|
-
var t = {};
|
|
19
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
20
|
-
t[p] = s[p];
|
|
21
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
22
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
23
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
24
|
-
t[p[i]] = s[p[i]];
|
|
25
|
-
}
|
|
26
|
-
return t;
|
|
27
|
-
};
|
|
28
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
29
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
|
-
};
|
|
31
|
-
exports.__esModule = true;
|
|
32
|
-
exports.ReqoreModalActions = exports.ReqoreModalActionsGroup = void 0;
|
|
33
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
34
|
-
var styled_components_1 = __importDefault(require("styled-components"));
|
|
35
|
-
var Navbar_1 = require("../Navbar");
|
|
36
|
-
var group_1 = __importDefault(require("../Navbar/group"));
|
|
37
|
-
var StyledActions = (0, styled_components_1["default"])(Navbar_1.StyledNavbar)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: transparent;\n border: 0;\n box-shadow: none;\n padding: 0;\n"], ["\n background-color: transparent;\n border: 0;\n box-shadow: none;\n padding: 0;\n"])));
|
|
38
|
-
var ReqoreModalActionsGroup = function (_a) {
|
|
39
|
-
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
40
|
-
return ((0, jsx_runtime_1.jsx)(group_1["default"], __assign({}, rest, { className: "".concat(className || '', " reqore-modal-actions-group") }, { children: children })));
|
|
41
|
-
};
|
|
42
|
-
exports.ReqoreModalActionsGroup = ReqoreModalActionsGroup;
|
|
43
|
-
var ReqoreModalActions = function (_a) {
|
|
44
|
-
var children = _a.children, className = _a.className, rest = __rest(_a, ["children", "className"]);
|
|
45
|
-
return ((0, jsx_runtime_1.jsx)(StyledActions, __assign({}, rest, { className: "".concat(className || '', " reqore-modal-actions") }, { children: children })));
|
|
46
|
-
};
|
|
47
|
-
exports.ReqoreModalActions = ReqoreModalActions;
|
|
48
|
-
var templateObject_1;
|
|
49
|
-
//# sourceMappingURL=actions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"actions.js","sourceRoot":"","sources":["../../../src/components/Modal/actions.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wEAAuC;AACvC,oCAA6D;AAC7D,0DAA6E;AAE7E,IAAM,aAAa,GAAG,IAAA,8BAAM,EAAC,qBAAY,CAAC,2JAAA,wFAKzC,IAAA,CAAC;AAEK,IAAM,uBAAuB,GAAG,UAAC,EAId;IAHxB,IAAA,QAAQ,cAAA,EACR,SAAS,eAAA,EACN,IAAI,cAH+B,yBAIvC,CADQ;IACsB,OAAA,CAC7B,uBAAC,kBAAiB,eAAK,IAAI,IAAE,SAAS,EAAE,UAAG,SAAS,IAAI,EAAE,gCAA6B,gBACpF,QAAQ,IACS,CACrB,CAAA;CAAA,CAAC;AARW,QAAA,uBAAuB,2BAQlC;AAEK,IAAM,kBAAkB,GAAG,UAAC,EAAoD;IAAlD,IAAA,QAAQ,cAAA,EAAE,SAAS,eAAA,EAAK,IAAI,cAA9B,yBAAgC,CAAF;IAA2B,OAAA,CAC1F,uBAAC,aAAa,eAAK,IAAI,IAAE,SAAS,EAAE,UAAG,SAAS,IAAI,EAAE,0BAAuB,gBAC1E,QAAQ,IACK,CACjB,CAAA;CAAA,CAAC;AAJW,QAAA,kBAAkB,sBAI7B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../src/components/Modal/content.tsx"],"names":[],"mappings":";AAEA,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,EAAE,GAAG,CAAC;CAChB;AAED,eAAO,MAAM,kBAAkB,iBAAkB,mBAAmB,gBAInE,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
|
-
exports.__esModule = true;
|
|
17
|
-
exports.ReqoreModalContent = void 0;
|
|
18
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
-
var react_scrollbar_1 = __importDefault(require("react-scrollbar"));
|
|
20
|
-
var ReqoreModalContent = function (_a) {
|
|
21
|
-
var children = _a.children;
|
|
22
|
-
return ((0, jsx_runtime_1.jsx)(react_scrollbar_1["default"], __assign({ horizontal: 'false', className: 'reqore-modal-content' }, { children: children })));
|
|
23
|
-
};
|
|
24
|
-
exports.ReqoreModalContent = ReqoreModalContent;
|
|
25
|
-
//# sourceMappingURL=content.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"content.js","sourceRoot":"","sources":["../../../src/components/Modal/content.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,oEAAqC;AAM9B,IAAM,kBAAkB,GAAG,UAAC,EAAiC;QAA/B,QAAQ,cAAA;IAA4B,OAAA,CACvE,uBAAC,4BAAM,aAAC,UAAU,EAAC,OAAO,EAAC,SAAS,EAAC,sBAAsB,gBACxD,QAAQ,IACF,CACV;AAJwE,CAIxE,CAAC;AAJW,QAAA,kBAAkB,sBAI7B"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import { IReqoreNavbarProps, StyledNavbar } from '../Navbar';
|
|
3
|
-
import ReqoreNavbarGroup, { IReqoreNavbarGroupProps } from '../Navbar/group';
|
|
4
|
-
|
|
5
|
-
const StyledActions = styled(StyledNavbar)`
|
|
6
|
-
background-color: transparent;
|
|
7
|
-
border: 0;
|
|
8
|
-
box-shadow: none;
|
|
9
|
-
padding: 0;
|
|
10
|
-
`;
|
|
11
|
-
|
|
12
|
-
export const ReqoreModalActionsGroup = ({
|
|
13
|
-
children,
|
|
14
|
-
className,
|
|
15
|
-
...rest
|
|
16
|
-
}: IReqoreNavbarGroupProps) => (
|
|
17
|
-
<ReqoreNavbarGroup {...rest} className={`${className || ''} reqore-modal-actions-group`}>
|
|
18
|
-
{children}
|
|
19
|
-
</ReqoreNavbarGroup>
|
|
20
|
-
);
|
|
21
|
-
|
|
22
|
-
export const ReqoreModalActions = ({ children, className, ...rest }: IReqoreNavbarProps) => (
|
|
23
|
-
<StyledActions {...rest} className={`${className || ''} reqore-modal-actions`}>
|
|
24
|
-
{children}
|
|
25
|
-
</StyledActions>
|
|
26
|
-
);
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import Scroll from 'react-scrollbar';
|
|
2
|
-
|
|
3
|
-
export interface IReqoreModalContent {
|
|
4
|
-
children?: any;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export const ReqoreModalContent = ({ children }: IReqoreModalContent) => (
|
|
8
|
-
<Scroll horizontal='false' className='reqore-modal-content'>
|
|
9
|
-
{children}
|
|
10
|
-
</Scroll>
|
|
11
|
-
);
|