@onewelcome/react-lib-components 0.1.7-alpha → 0.1.10-alpha
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/DataGrid/DataGrid.d.ts +32 -0
- package/dist/DataGrid/DataGridActions/DataGridActions.d.ts +14 -0
- package/dist/DataGrid/DataGridActions/DataGridColumnsToggle.d.ts +13 -0
- package/dist/DataGrid/DataGridBody/DataGridBody.d.ts +17 -0
- package/dist/DataGrid/DataGridBody/DataGridCell.d.ts +10 -0
- package/dist/DataGrid/DataGridBody/DataGridRow.d.ts +9 -0
- package/dist/DataGrid/DataGridHeader/DataGridHeader.d.ts +11 -0
- package/dist/DataGrid/DataGridHeader/DataGridHeaderCell.d.ts +10 -0
- package/dist/DataGrid/datagrid.interfaces.d.ts +13 -0
- package/dist/Form/Select/Option.d.ts +9 -4
- package/dist/Form/Select/Select.d.ts +8 -2
- package/dist/Form/Wrapper/SelectWrapper/SelectWrapper.d.ts +1 -1
- package/dist/Icon/Icon.d.ts +1 -0
- package/dist/Skeleton/Skeleton.d.ts +7 -0
- package/dist/_BaseStyling_/BaseStyling.d.ts +2 -0
- package/dist/index.d.ts +6 -0
- package/dist/react-lib-components.cjs.development.js +1082 -279
- package/dist/react-lib-components.cjs.development.js.map +1 -1
- package/dist/react-lib-components.cjs.production.min.js +1 -1
- package/dist/react-lib-components.cjs.production.min.js.map +1 -1
- package/dist/react-lib-components.esm.js +1079 -280
- package/dist/react-lib-components.esm.js.map +1 -1
- package/package.json +11 -13
- package/src/ContextMenu/ContextMenu.tsx +16 -1
- package/src/DataGrid/DataGrid.module.scss +25 -0
- package/src/DataGrid/DataGrid.test.tsx +421 -0
- package/src/DataGrid/DataGrid.tsx +157 -0
- package/src/DataGrid/DataGridActions/DataGridActions.module.scss +35 -0
- package/src/DataGrid/DataGridActions/DataGridActions.test.tsx +184 -0
- package/src/DataGrid/DataGridActions/DataGridActions.tsx +109 -0
- package/src/DataGrid/DataGridActions/DataGridColumnsToggle.module.scss +41 -0
- package/src/DataGrid/DataGridActions/DataGridColumnsToggle.test.tsx +83 -0
- package/src/DataGrid/DataGridActions/DataGridColumnsToggle.tsx +88 -0
- package/src/DataGrid/DataGridBody/DataGridBody.module.scss +10 -0
- package/src/DataGrid/DataGridBody/DataGridBody.test.tsx +123 -0
- package/src/DataGrid/DataGridBody/DataGridBody.tsx +80 -0
- package/src/DataGrid/DataGridBody/DataGridCell.module.scss +33 -0
- package/src/DataGrid/DataGridBody/DataGridCell.test.tsx +74 -0
- package/src/DataGrid/DataGridBody/DataGridCell.tsx +58 -0
- package/src/DataGrid/DataGridBody/DataGridRow.module.scss +7 -0
- package/src/DataGrid/DataGridBody/DataGridRow.test.tsx +101 -0
- package/src/DataGrid/DataGridBody/DataGridRow.tsx +42 -0
- package/src/DataGrid/DataGridBody/__snapshots__/DataGridBody.test.tsx.snap +258 -0
- package/src/DataGrid/DataGridHeader/DataGridHeader.module.scss +26 -0
- package/src/DataGrid/DataGridHeader/DataGridHeader.test.tsx +255 -0
- package/src/DataGrid/DataGridHeader/DataGridHeader.tsx +103 -0
- package/src/DataGrid/DataGridHeader/DataGridHeaderCell.module.scss +68 -0
- package/src/DataGrid/DataGridHeader/DataGridHeaderCell.test.tsx +128 -0
- package/src/DataGrid/DataGridHeader/DataGridHeaderCell.tsx +72 -0
- package/src/DataGrid/datagrid.interfaces.ts +14 -0
- package/src/Form/Select/Option.tsx +39 -21
- package/src/Form/Select/Select.module.scss +1 -1
- package/src/Form/Select/Select.test.tsx +235 -56
- package/src/Form/Select/Select.tsx +194 -34
- package/src/Form/Toggle/Toggle.module.scss +1 -0
- package/src/Form/Wrapper/SelectWrapper/SelectWrapper.test.tsx +44 -0
- package/src/Form/Wrapper/SelectWrapper/SelectWrapper.tsx +4 -2
- package/src/Form/Wrapper/Wrapper/Wrapper.module.scss +1 -0
- package/src/Icon/Icon.module.scss +4 -0
- package/src/Icon/Icon.tsx +1 -0
- package/src/Notifications/BaseModal/BaseModal.module.scss +1 -1
- package/src/Notifications/BaseModal/BaseModal.test.tsx +2 -1
- package/src/Notifications/Dialog/Dialog.module.scss +1 -1
- package/src/Notifications/Snackbar/SnackbarContainer/SnackbarContainer.module.scss +1 -1
- package/src/Notifications/Snackbar/SnackbarItem/SnackbarItem.module.scss +1 -1
- package/src/Pagination/Pagination.module.scss +74 -74
- package/src/Pagination/Pagination.tsx +22 -8
- package/src/Skeleton/Skeleton.module.scss +20 -0
- package/src/Skeleton/Skeleton.test.tsx +96 -0
- package/src/Skeleton/Skeleton.tsx +29 -0
- package/src/_BaseStyling_/BaseStyling.tsx +10 -6
- package/src/index.ts +7 -0
|
@@ -4,117 +4,117 @@
|
|
|
4
4
|
color: var(--greyed-out);
|
|
5
5
|
display: flex;
|
|
6
6
|
flex-direction: column;
|
|
7
|
-
}
|
|
8
7
|
|
|
9
|
-
.form-element {
|
|
10
|
-
|
|
8
|
+
.form-element {
|
|
9
|
+
height: 2.5rem;
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
button {
|
|
12
|
+
min-height: 2.5rem;
|
|
13
|
+
}
|
|
14
14
|
}
|
|
15
|
-
}
|
|
16
15
|
|
|
17
|
-
.total {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
span > span {
|
|
24
|
-
font-weight: 700;
|
|
25
|
-
font-family: var(--font-family);
|
|
26
|
-
font-size: var(--font-size);
|
|
27
|
-
margin-left: 0.25rem;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
16
|
+
.total {
|
|
17
|
+
flex: 1 0 auto;
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: center;
|
|
30
21
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
22
|
+
span > span {
|
|
23
|
+
font-weight: 700;
|
|
24
|
+
font-family: var(--font-family);
|
|
25
|
+
font-size: var(--font-size);
|
|
26
|
+
margin-left: 0.25rem;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
37
29
|
|
|
38
|
-
.
|
|
39
|
-
|
|
30
|
+
.pagination {
|
|
31
|
+
flex: 1 0 auto;
|
|
40
32
|
display: flex;
|
|
41
33
|
align-items: center;
|
|
34
|
+
justify-content: center;
|
|
35
|
+
margin-top: 1rem;
|
|
42
36
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
37
|
+
.previous,
|
|
38
|
+
.next {
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
|
|
42
|
+
button {
|
|
43
|
+
margin: 0.25rem;
|
|
44
|
+
}
|
|
46
45
|
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
button span:before {
|
|
47
|
+
font-size: 0.75rem;
|
|
48
|
+
}
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
}
|
|
52
51
|
|
|
53
|
-
.per-page {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}
|
|
52
|
+
.per-page {
|
|
53
|
+
display: none;
|
|
54
|
+
align-items: center;
|
|
55
|
+
}
|
|
57
56
|
|
|
58
|
-
.page {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
57
|
+
.page {
|
|
58
|
+
display: flex;
|
|
59
|
+
align-items: center;
|
|
60
|
+
flex-basis: min-content;
|
|
61
|
+
}
|
|
63
62
|
|
|
64
|
-
.page-size-select {
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
.page-size-select {
|
|
64
|
+
border-color: #fff;
|
|
65
|
+
margin: 0 0.25rem;
|
|
67
66
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
67
|
+
button {
|
|
68
|
+
min-width: 3.4375rem;
|
|
69
|
+
padding: 0;
|
|
71
70
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
71
|
+
div[data-display] {
|
|
72
|
+
left: 0.5rem;
|
|
73
|
+
}
|
|
75
74
|
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
div:not([data-display]) {
|
|
76
|
+
right: 0.5rem;
|
|
77
|
+
}
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
-
}
|
|
81
80
|
|
|
82
|
-
.current-value-input {
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
.current-value-input {
|
|
82
|
+
margin: 0 0.25rem 0 0;
|
|
83
|
+
padding: 0;
|
|
85
84
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
85
|
+
input {
|
|
86
|
+
border-radius: var(--input-border-radius);
|
|
87
|
+
padding: 0 1rem;
|
|
88
|
+
width: auto;
|
|
89
|
+
text-align: center;
|
|
90
|
+
}
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
@media screen and (min-width: 30em) {
|
|
95
95
|
.pagination-wrapper {
|
|
96
96
|
flex-direction: row;
|
|
97
|
-
}
|
|
98
97
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
98
|
+
.total {
|
|
99
|
+
justify-content: flex-start;
|
|
100
|
+
}
|
|
102
101
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
102
|
+
.pagination {
|
|
103
|
+
margin-top: 0;
|
|
104
|
+
justify-content: flex-end;
|
|
106
105
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
106
|
+
.previous,
|
|
107
|
+
.next {
|
|
108
|
+
button {
|
|
109
|
+
margin: 0 0.5rem;
|
|
110
|
+
}
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
@media screen and (min-width: 48em) {
|
|
117
|
-
.per-page {
|
|
117
|
+
.pagination-wrapper .per-page {
|
|
118
118
|
display: flex;
|
|
119
119
|
}
|
|
120
120
|
}
|
|
@@ -53,7 +53,15 @@ export const Pagination = React.forwardRef<HTMLDivElement, Props>(
|
|
|
53
53
|
) => {
|
|
54
54
|
/** We use an internal state variable, because we don't want to fire onCurrentPageChange whenever onChange fires on the input. Rather, only when the Enter key is pressed. */
|
|
55
55
|
const [internalCurrentPage, setInternalCurrentPage] = useState(currentPage?.toString() || '1');
|
|
56
|
-
const calculateAmountOfPages = () =>
|
|
56
|
+
const calculateAmountOfPages = () => {
|
|
57
|
+
if (!totalElements) return 1;
|
|
58
|
+
|
|
59
|
+
if (Math.ceil(totalElements / pageSize) < 1) {
|
|
60
|
+
return 1;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
return Math.ceil(totalElements / pageSize);
|
|
64
|
+
};
|
|
57
65
|
|
|
58
66
|
const onEnterListener = (event: React.KeyboardEvent<HTMLInputElement>) => {
|
|
59
67
|
if (event.code === 'Enter') {
|
|
@@ -102,7 +110,11 @@ export const Pagination = React.forwardRef<HTMLDivElement, Props>(
|
|
|
102
110
|
}
|
|
103
111
|
|
|
104
112
|
if (string.includes('%2')) {
|
|
105
|
-
return
|
|
113
|
+
return (
|
|
114
|
+
<div key={string}>
|
|
115
|
+
<strong>{string.replace('%2', amountOfPages.toString())}</strong>
|
|
116
|
+
</div>
|
|
117
|
+
);
|
|
106
118
|
}
|
|
107
119
|
|
|
108
120
|
return <div key={string}>{string} </div>;
|
|
@@ -135,7 +147,7 @@ export const Pagination = React.forwardRef<HTMLDivElement, Props>(
|
|
|
135
147
|
</div>
|
|
136
148
|
)}
|
|
137
149
|
<div className={classes['pagination']}>
|
|
138
|
-
{
|
|
150
|
+
{pageSize && (
|
|
139
151
|
<div className={classes['per-page']}>
|
|
140
152
|
<Label id="page-size-select-label">{translate.itemsPerPage}</Label>
|
|
141
153
|
<Select
|
|
@@ -151,7 +163,7 @@ export const Pagination = React.forwardRef<HTMLDivElement, Props>(
|
|
|
151
163
|
</div>
|
|
152
164
|
)}
|
|
153
165
|
<Fragment>
|
|
154
|
-
{((currentPage && currentPage > 2) || (currentPage && currentPage > 1)) && (
|
|
166
|
+
{!!((currentPage && currentPage > 2) || (currentPage && currentPage > 1)) && (
|
|
155
167
|
<div className={classes['previous']}>
|
|
156
168
|
{currentPage > 2 && (
|
|
157
169
|
<IconButton
|
|
@@ -173,12 +185,14 @@ export const Pagination = React.forwardRef<HTMLDivElement, Props>(
|
|
|
173
185
|
)}
|
|
174
186
|
</div>
|
|
175
187
|
)}
|
|
176
|
-
{totalElements && (
|
|
188
|
+
{totalElements && calculateAmountOfPages() && (
|
|
177
189
|
<div className={classes['page']}>{renderCurrentPageTranslation()}</div>
|
|
178
190
|
)}
|
|
179
191
|
<div className={classes['next']}>
|
|
180
|
-
{(
|
|
181
|
-
(currentPage && !
|
|
192
|
+
{!!(
|
|
193
|
+
(currentPage !== undefined && currentPage < calculateAmountOfPages()!) ||
|
|
194
|
+
(currentPage !== undefined && !totalElements)
|
|
195
|
+
) && (
|
|
182
196
|
<IconButton
|
|
183
197
|
title="next"
|
|
184
198
|
onClick={() => onPageChangeHandler(currentPage + 1)}
|
|
@@ -187,7 +201,7 @@ export const Pagination = React.forwardRef<HTMLDivElement, Props>(
|
|
|
187
201
|
<Icon icon={Icons.ChevronRight} />
|
|
188
202
|
</IconButton>
|
|
189
203
|
)}
|
|
190
|
-
{currentPage && totalElements && currentPage < calculateAmountOfPages()! - 1 && (
|
|
204
|
+
{!!(currentPage && totalElements && currentPage < calculateAmountOfPages()! - 1) && (
|
|
191
205
|
<IconButton
|
|
192
206
|
title="last"
|
|
193
207
|
onClick={() => onPageChangeHandler(totalElements / pageSize)}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@import '../mixins.module.scss';
|
|
2
|
+
|
|
3
|
+
.skeleton {
|
|
4
|
+
display: block;
|
|
5
|
+
height: auto;
|
|
6
|
+
@include skeletonLoading();
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.no-height::before {
|
|
10
|
+
content: ' ';
|
|
11
|
+
white-space: pre-wrap;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.text {
|
|
15
|
+
border-radius: 0.5rem;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.circular {
|
|
19
|
+
border-radius: 50%;
|
|
20
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import React, { useEffect, useRef } from 'react';
|
|
2
|
+
import { Skeleton, Props } from './Skeleton';
|
|
3
|
+
import { render } from '@testing-library/react';
|
|
4
|
+
|
|
5
|
+
const defaultParams: Props = {};
|
|
6
|
+
|
|
7
|
+
const createSkeleton = (params?: (defaultParams: Props) => Props) => {
|
|
8
|
+
let parameters: Props = defaultParams;
|
|
9
|
+
if (params) {
|
|
10
|
+
parameters = params(defaultParams);
|
|
11
|
+
}
|
|
12
|
+
const queries = render(<Skeleton {...parameters} data-testid="skeleton" />);
|
|
13
|
+
const skeleton = queries.getByTestId('skeleton');
|
|
14
|
+
|
|
15
|
+
return {
|
|
16
|
+
...queries,
|
|
17
|
+
skeleton,
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
describe('Skeleton should render', () => {
|
|
22
|
+
it('renders without crashing', () => {
|
|
23
|
+
const { skeleton } = createSkeleton();
|
|
24
|
+
|
|
25
|
+
expect(skeleton).toHaveClass('skeleton text no-height', { exact: true });
|
|
26
|
+
|
|
27
|
+
expect(skeleton).toBeDefined();
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
it('renders with properties passed', () => {
|
|
31
|
+
const testClass = 'testclass';
|
|
32
|
+
const { skeleton } = createSkeleton((defaultParams) => ({
|
|
33
|
+
...defaultParams,
|
|
34
|
+
className: testClass,
|
|
35
|
+
}));
|
|
36
|
+
|
|
37
|
+
expect(skeleton).toHaveClass(`skeleton text no-height ${testClass}`, { exact: true });
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
it('renders text variant with width and height', () => {
|
|
41
|
+
const width = '10rem';
|
|
42
|
+
const height = 10;
|
|
43
|
+
const { skeleton } = createSkeleton((defaultParams) => ({
|
|
44
|
+
...defaultParams,
|
|
45
|
+
variant: 'text',
|
|
46
|
+
width,
|
|
47
|
+
height,
|
|
48
|
+
}));
|
|
49
|
+
|
|
50
|
+
expect(skeleton).toHaveClass(`skeleton text`, { exact: true });
|
|
51
|
+
expect(skeleton).toHaveStyle({ width, height: '10px' });
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
it('renders rectangle variant', () => {
|
|
55
|
+
const { skeleton } = createSkeleton((defaultParams) => ({
|
|
56
|
+
...defaultParams,
|
|
57
|
+
variant: 'rectangle',
|
|
58
|
+
}));
|
|
59
|
+
|
|
60
|
+
expect(skeleton).toHaveClass(`skeleton no-height`, { exact: true });
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
it('renders circular variant', () => {
|
|
64
|
+
const { skeleton } = createSkeleton((defaultParams) => ({
|
|
65
|
+
...defaultParams,
|
|
66
|
+
variant: 'circular',
|
|
67
|
+
}));
|
|
68
|
+
|
|
69
|
+
expect(skeleton).toHaveClass(`skeleton no-height circular`, { exact: true });
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
describe('ref should work', () => {
|
|
74
|
+
it('should give back the proper data prop, this also checks if the component propagates ...rest properly', () => {
|
|
75
|
+
const ExampleComponent = ({
|
|
76
|
+
propagateRef,
|
|
77
|
+
}: {
|
|
78
|
+
propagateRef: (ref: React.RefObject<HTMLElement>) => void;
|
|
79
|
+
}) => {
|
|
80
|
+
const ref = useRef(null);
|
|
81
|
+
|
|
82
|
+
useEffect(() => {
|
|
83
|
+
propagateRef(ref);
|
|
84
|
+
}, [ref]);
|
|
85
|
+
|
|
86
|
+
return <Skeleton {...defaultParams} data-ref="testing" ref={ref} />;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
const refCheck = (ref: React.RefObject<HTMLElement>) => {
|
|
90
|
+
expect(ref.current).toHaveAttribute('data-ref', 'testing');
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
const container = document.createElement('tbody');
|
|
94
|
+
render(<ExampleComponent propagateRef={refCheck} />, { container });
|
|
95
|
+
});
|
|
96
|
+
});
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React, { ComponentPropsWithRef } from 'react';
|
|
2
|
+
import classes from './Skeleton.module.scss';
|
|
3
|
+
|
|
4
|
+
export interface Props extends Omit<ComponentPropsWithRef<'div'>, 'children'> {
|
|
5
|
+
variant?: 'circular' | 'rectangle' | 'text';
|
|
6
|
+
height?: number | string;
|
|
7
|
+
width?: number | string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export const Skeleton = React.forwardRef<HTMLDivElement, Props>(
|
|
11
|
+
({ variant = 'text', height, width, className, style, ...rest }: Props, ref) => {
|
|
12
|
+
const classNames = [classes['skeleton']];
|
|
13
|
+
!height && classNames.push(classes['no-height']);
|
|
14
|
+
variant === 'text' && classNames.push(classes['text']);
|
|
15
|
+
variant === 'circular' && classNames.push(classes['circular']);
|
|
16
|
+
className && classNames.push(className);
|
|
17
|
+
|
|
18
|
+
return (
|
|
19
|
+
<span
|
|
20
|
+
{...rest}
|
|
21
|
+
aria-busy="true"
|
|
22
|
+
aria-hidden="true"
|
|
23
|
+
ref={ref}
|
|
24
|
+
style={{ ...style, width, height }}
|
|
25
|
+
className={classNames.join(' ')}
|
|
26
|
+
></span>
|
|
27
|
+
);
|
|
28
|
+
}
|
|
29
|
+
);
|
|
@@ -26,6 +26,8 @@ interface CSSProperties {
|
|
|
26
26
|
snackbarSuccessBackgroundColor?: string;
|
|
27
27
|
snackbarErrorBackgroundColor?: string;
|
|
28
28
|
snackbarBorderRadius?: string;
|
|
29
|
+
dataGridRowBackgroundColor?: string;
|
|
30
|
+
dataGridRowHoverBackgroundColor?: string;
|
|
29
31
|
tabsBackgroundColor?: string;
|
|
30
32
|
tabBorderWidth?: string;
|
|
31
33
|
tabBorderStyle?: string;
|
|
@@ -66,22 +68,24 @@ export const BaseStyling = ({ children, properties = {} }: Props) => {
|
|
|
66
68
|
buttonBorderWidth: '2px',
|
|
67
69
|
buttonFontSize: '1rem',
|
|
68
70
|
buttonBorderStyle: 'solid',
|
|
69
|
-
buttonFillTextColor: '#
|
|
70
|
-
buttonFillBackgroundColor: '#
|
|
71
|
-
buttonOutlineHoverTextColor: '#
|
|
71
|
+
buttonFillTextColor: '#fff',
|
|
72
|
+
buttonFillBackgroundColor: '#fff',
|
|
73
|
+
buttonOutlineHoverTextColor: '#fff',
|
|
72
74
|
inputBorderColor: '#e9e9eb',
|
|
73
75
|
inputBorderRadius: '8px',
|
|
74
76
|
inputBorderWidth: '1px',
|
|
75
77
|
inputBorderStyle: 'solid',
|
|
76
|
-
inputBackgroundColor: '#
|
|
78
|
+
inputBackgroundColor: '#fff',
|
|
77
79
|
modalShadowColor: 'rgba(0, 0, 0, 0.16)',
|
|
78
|
-
modalBackgroundColor: '#
|
|
79
|
-
modalHeaderBackgroundColor: '#
|
|
80
|
+
modalBackgroundColor: '#f5f8f8',
|
|
81
|
+
modalHeaderBackgroundColor: '#fff',
|
|
80
82
|
snackbarTextColor: '#fff',
|
|
81
83
|
snackbarInfoBackgroundColor: '#003b5e',
|
|
82
84
|
snackbarSuccessBackgroundColor: '#008a28',
|
|
83
85
|
snackbarErrorBackgroundColor: '#e22a1d',
|
|
84
86
|
snackbarBorderRadius: '8px',
|
|
87
|
+
dataGridRowBackgroundColor: 'transparent',
|
|
88
|
+
dataGridRowHoverBackgroundColor: '#f5e6f0',
|
|
85
89
|
tabsBackgroundColor: '#FFF',
|
|
86
90
|
tabBorderWidth: '2px',
|
|
87
91
|
tabBorderStyle: 'solid',
|
package/src/index.ts
CHANGED
|
@@ -14,6 +14,7 @@ export { Tile, Props as TileProps } from './Tiles/Tile';
|
|
|
14
14
|
export { Tiles, Props as TilesProps } from './Tiles/Tiles';
|
|
15
15
|
export { Tooltip, Props as TooltipProps } from './Tooltip/Tooltip';
|
|
16
16
|
export { Typography, Variant, Props as TypographyProps } from './Typography/Typography';
|
|
17
|
+
export { Skeleton, Props as SkeletonProps } from './Skeleton/Skeleton';
|
|
17
18
|
export {
|
|
18
19
|
Pagination,
|
|
19
20
|
Props as PaginationProps,
|
|
@@ -97,3 +98,9 @@ export {
|
|
|
97
98
|
Props as BaseWizardStepsProps,
|
|
98
99
|
Step as WizardStep,
|
|
99
100
|
} from './Wizard/BaseWizardSteps/BaseWizardSteps';
|
|
101
|
+
|
|
102
|
+
/** DataGrid */
|
|
103
|
+
export { HeaderCell } from './DataGrid/datagrid.interfaces';
|
|
104
|
+
export { DataGrid, Props as DataGridProps } from './DataGrid/DataGrid';
|
|
105
|
+
export { DataGridRow, Props as DataGridRowProps } from './DataGrid/DataGridBody/DataGridRow';
|
|
106
|
+
export { DataGridCell, Props as DataGridCellProps } from './DataGrid/DataGridBody/DataGridCell';
|