@innovaccer/design-system 2.13.4-6 → 2.13.4-7
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/core/components/atoms/button/Button.tsx +1 -1
- package/core/components/atoms/progressBar/__stories__/WithAnimation.story.jsx +29 -0
- package/core/components/atoms/progressRing/__stories__/WithAnimation.story.tsx +29 -0
- package/core/components/organisms/horizontalNav/HorizontalNav.tsx +11 -4
- package/core/components/organisms/horizontalNav/__stories__/default.story.jsx +2 -2
- package/core/components/organisms/horizontalNav/__stories__/index.story.jsx +4 -18
- package/core/components/organisms/horizontalNav/__stories__/withCount.story.jsx +2 -2
- package/core/components/organisms/horizontalNav/__stories__/withIcon.story.jsx +2 -2
- package/core/components/organisms/horizontalNav/__tests__/HorizontalNav.test.tsx +24 -4
- package/core/components/organisms/horizontalNav/__tests__/__snapshots__/HorizontalNav.test.tsx.snap +9 -6
- package/core/components/organisms/navigation/__tests__/__snapshots__/Navigation.test.tsx.snap +36 -24
- package/core/components/organisms/table/__stories__/Filtering.story.jsx +1 -1
- package/core/components/organisms/table/__stories__/NestedTableWithNestedCard.story.jsx +44 -0
- package/core/components/organisms/table/__stories__/TableAsDescriptionList.story.jsx +25 -1
- package/core/components/organisms/table/__stories__/asyncTable.story.jsx +4 -2
- package/core/components/organisms/table/__stories__/syncTable.story.jsx +3 -2
- package/core/components/organisms/table/__stories__/variants/nestedRows.story.jsx +4 -2
- package/core/components/organisms/table/__stories__/variants/showHead.story.jsx +119 -1
- package/core/components/organisms/table/__stories__/variants/showMenu.story.jsx +61 -0
- package/core/components/organisms/table/__stories__/variants/size.story.jsx +62 -0
- package/core/components/organisms/table/__stories__/variants/syncLoaderSchema.story.jsx +0 -1
- package/core/components/organisms/table/__stories__/variants/type.story.jsx +69 -0
- package/core/components/organisms/table/__stories__/variants/withCheckbox.story.jsx +69 -0
- package/core/components/organisms/table/__stories__/variants/withEditableCell.story.jsx +4 -2
- package/core/components/organisms/table/__stories__/variants/withHeader.story.jsx +135 -2
- package/core/components/organisms/table/__stories__/variants/withPagination.story.jsx +90 -0
- package/core/components/patterns/table/{Table with Header → TableWithHeader}/style.css +0 -0
- package/core/components/patterns/table/{Table with Header/tableWithHeader.story.jsx → TableWithHeader/tableWithHeader.story.jsx} +2 -2
- package/core/utils/navigationHelper.tsx +8 -0
- package/css/dist/index.css +61 -15
- package/css/dist/index.css.map +1 -1
- package/css/src/components/ProgressBar.css +1 -1
- package/css/src/components/button.css +27 -6
- package/css/src/components/horizontalNav.css +26 -4
- package/css/src/components/input.css +5 -2
- package/css/src/components/progressRing.css +1 -1
- package/css/src/components/textarea.css +1 -1
- package/dist/core/utils/navigationHelper.d.ts +2 -0
- package/dist/index.esm.js +15 -7
- package/dist/index.js +15 -7
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.br +0 -0
- package/dist/index.umd.js.gz +0 -0
- package/docs/src/pages/patterns/layouts/images/layout-1.png +0 -0
- package/docs/src/pages/patterns/layouts/images/layout-10.png +0 -0
- package/docs/src/pages/patterns/layouts/images/layout-11.png +0 -0
- package/docs/src/pages/patterns/layouts/images/layout-12.png +0 -0
- package/docs/src/pages/patterns/layouts/images/layout-13.png +0 -0
- package/docs/src/pages/patterns/layouts/images/layout-14.png +0 -0
- package/docs/src/pages/patterns/layouts/images/layout-15.png +0 -0
- package/docs/src/pages/patterns/layouts/images/layout-2.png +0 -0
- package/docs/src/pages/patterns/layouts/images/layout-3.png +0 -0
- package/docs/src/pages/patterns/layouts/images/layout-4.png +0 -0
- package/docs/src/pages/patterns/layouts/images/layout-5.png +0 -0
- package/docs/src/pages/patterns/layouts/images/layout-6.png +0 -0
- package/docs/src/pages/patterns/layouts/images/layout-7.png +0 -0
- package/docs/src/pages/patterns/layouts/images/layout-8.png +0 -0
- package/docs/src/pages/patterns/layouts/images/layout-9.png +0 -0
- package/docs/src/pages/patterns/layouts/usage.mdx +29 -26
- package/package.json +1 -1
- package/docs/src/pages/patterns/layouts/images/layouts-1.png +0 -0
- package/docs/src/pages/patterns/layouts/images/layouts-10.png +0 -0
- package/docs/src/pages/patterns/layouts/images/layouts-11.png +0 -0
- package/docs/src/pages/patterns/layouts/images/layouts-12.png +0 -0
- package/docs/src/pages/patterns/layouts/images/layouts-13.jpg +0 -0
- package/docs/src/pages/patterns/layouts/images/layouts-14.png +0 -0
- package/docs/src/pages/patterns/layouts/images/layouts-15.jpg +0 -0
- package/docs/src/pages/patterns/layouts/images/layouts-16.png +0 -0
- package/docs/src/pages/patterns/layouts/images/layouts-17.jpg +0 -0
- package/docs/src/pages/patterns/layouts/images/layouts-2.png +0 -0
- package/docs/src/pages/patterns/layouts/images/layouts-3.png +0 -0
- package/docs/src/pages/patterns/layouts/images/layouts-4.jpg +0 -0
- package/docs/src/pages/patterns/layouts/images/layouts-5.png +0 -0
- package/docs/src/pages/patterns/layouts/images/layouts-6.jpg +0 -0
- package/docs/src/pages/patterns/layouts/images/layouts-7.jpg +0 -0
- package/docs/src/pages/patterns/layouts/images/layouts-8.png +0 -0
- package/docs/src/pages/patterns/layouts/images/layouts-9.png +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import ProgressBar from '../ProgressBar';
|
|
3
|
+
|
|
4
|
+
const customCode = `() => {
|
|
5
|
+
const [progress, setProgress] = React.useState(0);
|
|
6
|
+
|
|
7
|
+
React.useEffect(() => {
|
|
8
|
+
const interval = setInterval(() => {
|
|
9
|
+
setProgress(progress + 25);
|
|
10
|
+
}, 1000);
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
return <ProgressBar value={progress} max={100} />;
|
|
14
|
+
}`;
|
|
15
|
+
|
|
16
|
+
export const withAnimation = () => <></>;
|
|
17
|
+
|
|
18
|
+
export default {
|
|
19
|
+
title: 'Components/ProgressBar/With Animation',
|
|
20
|
+
component: ProgressBar,
|
|
21
|
+
parameters: {
|
|
22
|
+
docs: {
|
|
23
|
+
docPage: {
|
|
24
|
+
customCode,
|
|
25
|
+
title: 'ProgressBar',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import ProgressBar from '../ProgressRing';
|
|
3
|
+
|
|
4
|
+
const customCode = `() => {
|
|
5
|
+
const [progress, setProgress] = React.useState(0);
|
|
6
|
+
|
|
7
|
+
React.useEffect(() => {
|
|
8
|
+
const interval = setInterval(() => {
|
|
9
|
+
setProgress(progress + 25);
|
|
10
|
+
}, 1000);
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
return <ProgressRing value={progress} max={100} />;
|
|
14
|
+
}`;
|
|
15
|
+
|
|
16
|
+
export const withAnimation = () => <></>;
|
|
17
|
+
|
|
18
|
+
export default {
|
|
19
|
+
title: 'Components/ProgressRing/With Animation',
|
|
20
|
+
component: ProgressBar,
|
|
21
|
+
parameters: {
|
|
22
|
+
docs: {
|
|
23
|
+
docPage: {
|
|
24
|
+
customCode,
|
|
25
|
+
title: 'ProgressRing',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
};
|
|
@@ -3,7 +3,13 @@ import classNames from 'classnames';
|
|
|
3
3
|
import { Text, Icon, Pills } from '@/index';
|
|
4
4
|
import { VerticalNavProps } from '@/index.type';
|
|
5
5
|
import { extractBaseProps, BaseProps } from '@/utils/types';
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
getTextColor,
|
|
8
|
+
getHorizontalIconAppearance,
|
|
9
|
+
getPillsAppearance,
|
|
10
|
+
isMenuActive,
|
|
11
|
+
Menu,
|
|
12
|
+
} from '@/utils/navigationHelper';
|
|
7
13
|
|
|
8
14
|
export type HorizontalNavProps = BaseProps & Pick<VerticalNavProps, 'menus' | 'active' | 'onClick'>;
|
|
9
15
|
export type Align = 'left' | 'center';
|
|
@@ -50,7 +56,7 @@ export const HorizontalNav = (props: HorizontalNavProps) => {
|
|
|
50
56
|
<Icon
|
|
51
57
|
className="mr-3"
|
|
52
58
|
name={menu.icon}
|
|
53
|
-
appearance={
|
|
59
|
+
appearance={getHorizontalIconAppearance(isActive, menu.disabled)}
|
|
54
60
|
data-test="DesignSystem-HorizontalNav--Icon"
|
|
55
61
|
/>
|
|
56
62
|
);
|
|
@@ -64,6 +70,7 @@ export const HorizontalNav = (props: HorizontalNavProps) => {
|
|
|
64
70
|
|
|
65
71
|
const menuClasses = classNames({
|
|
66
72
|
'HorizontalNav-menu': true,
|
|
73
|
+
'HorizontalNav-menu--default': !isActive,
|
|
67
74
|
['HorizontalNav-menu--active']: isActive,
|
|
68
75
|
['HorizontalNav-menu--disabled']: menu.disabled,
|
|
69
76
|
});
|
|
@@ -71,10 +78,10 @@ export const HorizontalNav = (props: HorizontalNavProps) => {
|
|
|
71
78
|
return (
|
|
72
79
|
// TODO(a11y)
|
|
73
80
|
// eslint-disable-next-line
|
|
74
|
-
<div data-test="DesignSystem-HorizontalNav" key={index} className={menuClasses} onClick={onClickHandler(menu)}>
|
|
81
|
+
<div tabIndex={0} data-test="DesignSystem-HorizontalNav" key={index} className={menuClasses} onClick={onClickHandler(menu)}>
|
|
75
82
|
{renderIcon(menu, isActive)}
|
|
76
83
|
<Text
|
|
77
|
-
|
|
84
|
+
color={getTextColor(isActive, menu.disabled)}
|
|
78
85
|
data-test="DesignSystem-HorizontalNav--Text"
|
|
79
86
|
className="HorizontalNav-menuText"
|
|
80
87
|
>
|
|
@@ -24,7 +24,7 @@ export const defaultHorizontalNavigation = () => {
|
|
|
24
24
|
};
|
|
25
25
|
|
|
26
26
|
return (
|
|
27
|
-
<div className="d-flex align-items-center py-6
|
|
27
|
+
<div className="d-flex align-items-center py-6 bg-secondary-lightest">
|
|
28
28
|
<HorizontalNav className="w-100 justify-content-center" menus={data} active={active} onClick={onClickHandler} />
|
|
29
29
|
</div>
|
|
30
30
|
);
|
|
@@ -52,7 +52,7 @@ const customCode = `() => {
|
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
return (
|
|
55
|
-
<div className="d-flex align-items-center py-6
|
|
55
|
+
<div className="d-flex align-items-center py-6 bg-secondary-lightest">
|
|
56
56
|
<HorizontalNav
|
|
57
57
|
className="w-100 justify-content-center"
|
|
58
58
|
menus={data}
|
|
@@ -32,15 +32,8 @@ export const all = () => {
|
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
return (
|
|
35
|
-
<div style={{ height: '200px'
|
|
36
|
-
<div
|
|
37
|
-
style={{
|
|
38
|
-
background: 'white',
|
|
39
|
-
padding: 'var(--spacing-m)',
|
|
40
|
-
borderTop: 'var(--border)',
|
|
41
|
-
borderBottom: 'var(--border)',
|
|
42
|
-
}}
|
|
43
|
-
>
|
|
35
|
+
<div className="bg-secondary-lightest" style={{ height: '200px' }}>
|
|
36
|
+
<div className="bg-light border-top border-bottom p-3">
|
|
44
37
|
<HorizontalNav className="w-100 justify-content-center" menus={data} active={active} onClick={onClickHandler} />
|
|
45
38
|
</div>
|
|
46
39
|
</div>
|
|
@@ -76,15 +69,8 @@ const customCode = `() => {
|
|
|
76
69
|
};
|
|
77
70
|
|
|
78
71
|
return (
|
|
79
|
-
<div style={{ height: '200px'
|
|
80
|
-
<div
|
|
81
|
-
style={{
|
|
82
|
-
background: 'white',
|
|
83
|
-
padding: 'var(--spacing-m)',
|
|
84
|
-
borderTop: 'var(--border)',
|
|
85
|
-
borderBottom: 'var(--border)'
|
|
86
|
-
}}
|
|
87
|
-
>
|
|
72
|
+
<div className="bg-secondary-lightest" style={{ height: '200px' }}>
|
|
73
|
+
<div className="bg-light border-top border-bottom p-3">
|
|
88
74
|
<HorizontalNav
|
|
89
75
|
className="w-100 justify-content-center"
|
|
90
76
|
menus={data}
|
|
@@ -31,7 +31,7 @@ export const horizontalNavigationWithCount = () => {
|
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
return (
|
|
34
|
-
<div className="d-flex align-items-center py-6
|
|
34
|
+
<div className="d-flex align-items-center py-6 bg-secondary-lightest">
|
|
35
35
|
<HorizontalNav className="w-100 justify-content-center" menus={data} active={active} onClick={onClickHandler} />
|
|
36
36
|
</div>
|
|
37
37
|
);
|
|
@@ -66,7 +66,7 @@ const customCode = `() => {
|
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
return (
|
|
69
|
-
<div className="d-flex align-items-center py-6
|
|
69
|
+
<div className="d-flex align-items-center py-6 bg-secondary-lightest">
|
|
70
70
|
<HorizontalNav
|
|
71
71
|
className="w-100 justify-content-center"
|
|
72
72
|
menus={data}
|
|
@@ -31,7 +31,7 @@ export const horizontalNavigationWithIcon = () => {
|
|
|
31
31
|
};
|
|
32
32
|
|
|
33
33
|
return (
|
|
34
|
-
<div className="d-flex align-items-center py-6
|
|
34
|
+
<div className="d-flex align-items-center py-6 bg-secondary-lightest">
|
|
35
35
|
<HorizontalNav className="w-100 justify-content-center" menus={data} active={active} onClick={onClickHandler} />
|
|
36
36
|
</div>
|
|
37
37
|
);
|
|
@@ -66,7 +66,7 @@ const customCode = `() => {
|
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
return (
|
|
69
|
-
<div className="d-flex align-items-center py-6
|
|
69
|
+
<div className="d-flex align-items-center py-6 bg-secondary-lightest">
|
|
70
70
|
<HorizontalNav
|
|
71
71
|
className="w-100 justify-content-center"
|
|
72
72
|
menus={data}
|
|
@@ -122,7 +122,7 @@ describe('Horizontal Navigation component with prop: menus', () => {
|
|
|
122
122
|
it('renders menus with disabled menu', () => {
|
|
123
123
|
const { getAllByTestId } = render(<HorizontalNav menus={menus} />);
|
|
124
124
|
const disabledMenu = getAllByTestId('DesignSystem-HorizontalNav--Text')[disabledIndex];
|
|
125
|
-
expect(disabledMenu).toHaveClass('
|
|
125
|
+
expect(disabledMenu).toHaveClass('color-inverse-lightest');
|
|
126
126
|
});
|
|
127
127
|
|
|
128
128
|
it('renders iconMenus with disabled menu', () => {
|
|
@@ -144,13 +144,13 @@ describe('Horizontal Navigation component active menu', () => {
|
|
|
144
144
|
it('renders menus with active menu', () => {
|
|
145
145
|
const { getAllByTestId } = render(<HorizontalNav menus={menus} active={active} />);
|
|
146
146
|
const activeMenu = getAllByTestId('DesignSystem-HorizontalNav--Text')[activeIndex];
|
|
147
|
-
expect(activeMenu).toHaveClass('
|
|
147
|
+
expect(activeMenu).toHaveClass('color-primary-dark');
|
|
148
148
|
});
|
|
149
149
|
|
|
150
150
|
it('renders iconMenus with active menu', () => {
|
|
151
151
|
const { getAllByTestId } = render(<HorizontalNav menus={iconMenus} active={active} />);
|
|
152
152
|
const activeMenu = getAllByTestId('DesignSystem-HorizontalNav--Icon')[activeIndex];
|
|
153
|
-
expect(activeMenu).toHaveClass('Icon--
|
|
153
|
+
expect(activeMenu).toHaveClass('Icon--primaryDark');
|
|
154
154
|
});
|
|
155
155
|
|
|
156
156
|
it('renders countMenus with active menu', () => {
|
|
@@ -162,7 +162,7 @@ describe('Horizontal Navigation component active menu', () => {
|
|
|
162
162
|
it('renders active menu with link', () => {
|
|
163
163
|
const { getAllByTestId } = render(<HorizontalNav menus={menus} active={{ link: '/patient360' }} />);
|
|
164
164
|
const activeMenu = getAllByTestId('DesignSystem-HorizontalNav--Text')[activeIndex];
|
|
165
|
-
expect(activeMenu).toHaveClass('
|
|
165
|
+
expect(activeMenu).toHaveClass('color-primary-dark');
|
|
166
166
|
});
|
|
167
167
|
});
|
|
168
168
|
|
|
@@ -177,3 +177,23 @@ describe('Horizontal Navigation component prop: onClick', () => {
|
|
|
177
177
|
expect(onClick).toHaveBeenCalledWith(menus[stepClicked]);
|
|
178
178
|
});
|
|
179
179
|
});
|
|
180
|
+
|
|
181
|
+
describe('Horizontal Navigation component css classes', () => {
|
|
182
|
+
it('renders text with disabled state ', () => {
|
|
183
|
+
const { getAllByTestId } = render(<HorizontalNav menus={menus} />);
|
|
184
|
+
const disabledMenu = getAllByTestId('DesignSystem-HorizontalNav--Text')[2];
|
|
185
|
+
expect(disabledMenu).toHaveClass('color-inverse-lightest');
|
|
186
|
+
});
|
|
187
|
+
|
|
188
|
+
it('renders text with default state ', () => {
|
|
189
|
+
const { getAllByTestId } = render(<HorizontalNav menus={menus} />);
|
|
190
|
+
const defaultMenu = getAllByTestId('DesignSystem-HorizontalNav--Text')[0];
|
|
191
|
+
expect(defaultMenu).toHaveClass('color-inverse');
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
it('renders text with active state ', () => {
|
|
195
|
+
const { getAllByTestId } = render(<HorizontalNav menus={menus} active={{ link: '/patient360' }} />);
|
|
196
|
+
const activeMenu = getAllByTestId('DesignSystem-HorizontalNav--Text')[0];
|
|
197
|
+
expect(activeMenu).toHaveClass('color-primary-dark');
|
|
198
|
+
});
|
|
199
|
+
});
|
package/core/components/organisms/horizontalNav/__tests__/__snapshots__/HorizontalNav.test.tsx.snap
CHANGED
|
@@ -11,9 +11,10 @@ exports[`Horizontal Navigation component
|
|
|
11
11
|
<div
|
|
12
12
|
class="HorizontalNav-menu HorizontalNav-menu--active"
|
|
13
13
|
data-test="DesignSystem-HorizontalNav"
|
|
14
|
+
tabindex="0"
|
|
14
15
|
>
|
|
15
16
|
<i
|
|
16
|
-
class="material-icons material-icons-round Icon Icon--
|
|
17
|
+
class="material-icons material-icons-round Icon Icon--primaryDark mr-3"
|
|
17
18
|
data-test="DesignSystem-HorizontalNav--Icon"
|
|
18
19
|
role="button"
|
|
19
20
|
style="font-size: 16px; width: 16px;"
|
|
@@ -21,15 +22,16 @@ exports[`Horizontal Navigation component
|
|
|
21
22
|
events_round
|
|
22
23
|
</i>
|
|
23
24
|
<span
|
|
24
|
-
class="Text Text--
|
|
25
|
+
class="Text Text--regular color-primary-dark HorizontalNav-menuText"
|
|
25
26
|
data-test="DesignSystem-HorizontalNav--Text"
|
|
26
27
|
>
|
|
27
28
|
Tab #1
|
|
28
29
|
</span>
|
|
29
30
|
</div>
|
|
30
31
|
<div
|
|
31
|
-
class="HorizontalNav-menu"
|
|
32
|
+
class="HorizontalNav-menu HorizontalNav-menu--default"
|
|
32
33
|
data-test="DesignSystem-HorizontalNav"
|
|
34
|
+
tabindex="0"
|
|
33
35
|
>
|
|
34
36
|
<span
|
|
35
37
|
class="Pills Badge--secondary HorizontalNav-pills"
|
|
@@ -38,18 +40,19 @@ exports[`Horizontal Navigation component
|
|
|
38
40
|
10
|
|
39
41
|
</span>
|
|
40
42
|
<span
|
|
41
|
-
class="Text Text--
|
|
43
|
+
class="Text Text--regular color-inverse HorizontalNav-menuText"
|
|
42
44
|
data-test="DesignSystem-HorizontalNav--Text"
|
|
43
45
|
>
|
|
44
46
|
Tab #2
|
|
45
47
|
</span>
|
|
46
48
|
</div>
|
|
47
49
|
<div
|
|
48
|
-
class="HorizontalNav-menu HorizontalNav-menu--disabled"
|
|
50
|
+
class="HorizontalNav-menu HorizontalNav-menu--default HorizontalNav-menu--disabled"
|
|
49
51
|
data-test="DesignSystem-HorizontalNav"
|
|
52
|
+
tabindex="0"
|
|
50
53
|
>
|
|
51
54
|
<span
|
|
52
|
-
class="Text Text--
|
|
55
|
+
class="Text Text--regular color-inverse-lightest HorizontalNav-menuText"
|
|
53
56
|
data-test="DesignSystem-HorizontalNav--Text"
|
|
54
57
|
>
|
|
55
58
|
Tab #3
|
package/core/components/organisms/navigation/__tests__/__snapshots__/Navigation.test.tsx.snap
CHANGED
|
@@ -14,8 +14,9 @@ Object {
|
|
|
14
14
|
class="HorizontalNav"
|
|
15
15
|
>
|
|
16
16
|
<div
|
|
17
|
-
class="HorizontalNav-menu"
|
|
17
|
+
class="HorizontalNav-menu HorizontalNav-menu--default"
|
|
18
18
|
data-test="DesignSystem-HorizontalNav"
|
|
19
|
+
tabindex="0"
|
|
19
20
|
>
|
|
20
21
|
<span
|
|
21
22
|
class="Pills Badge--secondary HorizontalNav-pills"
|
|
@@ -24,15 +25,16 @@ Object {
|
|
|
24
25
|
1
|
|
25
26
|
</span>
|
|
26
27
|
<span
|
|
27
|
-
class="Text Text--
|
|
28
|
+
class="Text Text--regular color-inverse HorizontalNav-menuText"
|
|
28
29
|
data-test="DesignSystem-HorizontalNav--Text"
|
|
29
30
|
>
|
|
30
31
|
Tab #1
|
|
31
32
|
</span>
|
|
32
33
|
</div>
|
|
33
34
|
<div
|
|
34
|
-
class="HorizontalNav-menu"
|
|
35
|
+
class="HorizontalNav-menu HorizontalNav-menu--default"
|
|
35
36
|
data-test="DesignSystem-HorizontalNav"
|
|
37
|
+
tabindex="0"
|
|
36
38
|
>
|
|
37
39
|
<span
|
|
38
40
|
class="Pills Badge--secondary HorizontalNav-pills"
|
|
@@ -41,15 +43,16 @@ Object {
|
|
|
41
43
|
2
|
|
42
44
|
</span>
|
|
43
45
|
<span
|
|
44
|
-
class="Text Text--
|
|
46
|
+
class="Text Text--regular color-inverse HorizontalNav-menuText"
|
|
45
47
|
data-test="DesignSystem-HorizontalNav--Text"
|
|
46
48
|
>
|
|
47
49
|
Tab #2
|
|
48
50
|
</span>
|
|
49
51
|
</div>
|
|
50
52
|
<div
|
|
51
|
-
class="HorizontalNav-menu"
|
|
53
|
+
class="HorizontalNav-menu HorizontalNav-menu--default"
|
|
52
54
|
data-test="DesignSystem-HorizontalNav"
|
|
55
|
+
tabindex="0"
|
|
53
56
|
>
|
|
54
57
|
<span
|
|
55
58
|
class="Pills Badge--secondary HorizontalNav-pills"
|
|
@@ -58,7 +61,7 @@ Object {
|
|
|
58
61
|
3
|
|
59
62
|
</span>
|
|
60
63
|
<span
|
|
61
|
-
class="Text Text--
|
|
64
|
+
class="Text Text--regular color-inverse HorizontalNav-menuText"
|
|
62
65
|
data-test="DesignSystem-HorizontalNav--Text"
|
|
63
66
|
>
|
|
64
67
|
Tab #3
|
|
@@ -76,8 +79,9 @@ Object {
|
|
|
76
79
|
class="HorizontalNav"
|
|
77
80
|
>
|
|
78
81
|
<div
|
|
79
|
-
class="HorizontalNav-menu"
|
|
82
|
+
class="HorizontalNav-menu HorizontalNav-menu--default"
|
|
80
83
|
data-test="DesignSystem-HorizontalNav"
|
|
84
|
+
tabindex="0"
|
|
81
85
|
>
|
|
82
86
|
<span
|
|
83
87
|
class="Pills Badge--secondary HorizontalNav-pills"
|
|
@@ -86,15 +90,16 @@ Object {
|
|
|
86
90
|
1
|
|
87
91
|
</span>
|
|
88
92
|
<span
|
|
89
|
-
class="Text Text--
|
|
93
|
+
class="Text Text--regular color-inverse HorizontalNav-menuText"
|
|
90
94
|
data-test="DesignSystem-HorizontalNav--Text"
|
|
91
95
|
>
|
|
92
96
|
Tab #1
|
|
93
97
|
</span>
|
|
94
98
|
</div>
|
|
95
99
|
<div
|
|
96
|
-
class="HorizontalNav-menu"
|
|
100
|
+
class="HorizontalNav-menu HorizontalNav-menu--default"
|
|
97
101
|
data-test="DesignSystem-HorizontalNav"
|
|
102
|
+
tabindex="0"
|
|
98
103
|
>
|
|
99
104
|
<span
|
|
100
105
|
class="Pills Badge--secondary HorizontalNav-pills"
|
|
@@ -103,15 +108,16 @@ Object {
|
|
|
103
108
|
2
|
|
104
109
|
</span>
|
|
105
110
|
<span
|
|
106
|
-
class="Text Text--
|
|
111
|
+
class="Text Text--regular color-inverse HorizontalNav-menuText"
|
|
107
112
|
data-test="DesignSystem-HorizontalNav--Text"
|
|
108
113
|
>
|
|
109
114
|
Tab #2
|
|
110
115
|
</span>
|
|
111
116
|
</div>
|
|
112
117
|
<div
|
|
113
|
-
class="HorizontalNav-menu"
|
|
118
|
+
class="HorizontalNav-menu HorizontalNav-menu--default"
|
|
114
119
|
data-test="DesignSystem-HorizontalNav"
|
|
120
|
+
tabindex="0"
|
|
115
121
|
>
|
|
116
122
|
<span
|
|
117
123
|
class="Pills Badge--secondary HorizontalNav-pills"
|
|
@@ -120,7 +126,7 @@ Object {
|
|
|
120
126
|
3
|
|
121
127
|
</span>
|
|
122
128
|
<span
|
|
123
|
-
class="Text Text--
|
|
129
|
+
class="Text Text--regular color-inverse HorizontalNav-menuText"
|
|
124
130
|
data-test="DesignSystem-HorizontalNav--Text"
|
|
125
131
|
>
|
|
126
132
|
Tab #3
|
|
@@ -197,8 +203,9 @@ Object {
|
|
|
197
203
|
class="HorizontalNav"
|
|
198
204
|
>
|
|
199
205
|
<div
|
|
200
|
-
class="HorizontalNav-menu"
|
|
206
|
+
class="HorizontalNav-menu HorizontalNav-menu--default"
|
|
201
207
|
data-test="DesignSystem-HorizontalNav"
|
|
208
|
+
tabindex="0"
|
|
202
209
|
>
|
|
203
210
|
<span
|
|
204
211
|
class="Pills Badge--secondary HorizontalNav-pills"
|
|
@@ -207,15 +214,16 @@ Object {
|
|
|
207
214
|
1
|
|
208
215
|
</span>
|
|
209
216
|
<span
|
|
210
|
-
class="Text Text--
|
|
217
|
+
class="Text Text--regular color-inverse HorizontalNav-menuText"
|
|
211
218
|
data-test="DesignSystem-HorizontalNav--Text"
|
|
212
219
|
>
|
|
213
220
|
Tab #1
|
|
214
221
|
</span>
|
|
215
222
|
</div>
|
|
216
223
|
<div
|
|
217
|
-
class="HorizontalNav-menu"
|
|
224
|
+
class="HorizontalNav-menu HorizontalNav-menu--default"
|
|
218
225
|
data-test="DesignSystem-HorizontalNav"
|
|
226
|
+
tabindex="0"
|
|
219
227
|
>
|
|
220
228
|
<span
|
|
221
229
|
class="Pills Badge--secondary HorizontalNav-pills"
|
|
@@ -224,15 +232,16 @@ Object {
|
|
|
224
232
|
2
|
|
225
233
|
</span>
|
|
226
234
|
<span
|
|
227
|
-
class="Text Text--
|
|
235
|
+
class="Text Text--regular color-inverse HorizontalNav-menuText"
|
|
228
236
|
data-test="DesignSystem-HorizontalNav--Text"
|
|
229
237
|
>
|
|
230
238
|
Tab #2
|
|
231
239
|
</span>
|
|
232
240
|
</div>
|
|
233
241
|
<div
|
|
234
|
-
class="HorizontalNav-menu"
|
|
242
|
+
class="HorizontalNav-menu HorizontalNav-menu--default"
|
|
235
243
|
data-test="DesignSystem-HorizontalNav"
|
|
244
|
+
tabindex="0"
|
|
236
245
|
>
|
|
237
246
|
<span
|
|
238
247
|
class="Pills Badge--secondary HorizontalNav-pills"
|
|
@@ -241,7 +250,7 @@ Object {
|
|
|
241
250
|
3
|
|
242
251
|
</span>
|
|
243
252
|
<span
|
|
244
|
-
class="Text Text--
|
|
253
|
+
class="Text Text--regular color-inverse HorizontalNav-menuText"
|
|
245
254
|
data-test="DesignSystem-HorizontalNav--Text"
|
|
246
255
|
>
|
|
247
256
|
Tab #3
|
|
@@ -259,8 +268,9 @@ Object {
|
|
|
259
268
|
class="HorizontalNav"
|
|
260
269
|
>
|
|
261
270
|
<div
|
|
262
|
-
class="HorizontalNav-menu"
|
|
271
|
+
class="HorizontalNav-menu HorizontalNav-menu--default"
|
|
263
272
|
data-test="DesignSystem-HorizontalNav"
|
|
273
|
+
tabindex="0"
|
|
264
274
|
>
|
|
265
275
|
<span
|
|
266
276
|
class="Pills Badge--secondary HorizontalNav-pills"
|
|
@@ -269,15 +279,16 @@ Object {
|
|
|
269
279
|
1
|
|
270
280
|
</span>
|
|
271
281
|
<span
|
|
272
|
-
class="Text Text--
|
|
282
|
+
class="Text Text--regular color-inverse HorizontalNav-menuText"
|
|
273
283
|
data-test="DesignSystem-HorizontalNav--Text"
|
|
274
284
|
>
|
|
275
285
|
Tab #1
|
|
276
286
|
</span>
|
|
277
287
|
</div>
|
|
278
288
|
<div
|
|
279
|
-
class="HorizontalNav-menu"
|
|
289
|
+
class="HorizontalNav-menu HorizontalNav-menu--default"
|
|
280
290
|
data-test="DesignSystem-HorizontalNav"
|
|
291
|
+
tabindex="0"
|
|
281
292
|
>
|
|
282
293
|
<span
|
|
283
294
|
class="Pills Badge--secondary HorizontalNav-pills"
|
|
@@ -286,15 +297,16 @@ Object {
|
|
|
286
297
|
2
|
|
287
298
|
</span>
|
|
288
299
|
<span
|
|
289
|
-
class="Text Text--
|
|
300
|
+
class="Text Text--regular color-inverse HorizontalNav-menuText"
|
|
290
301
|
data-test="DesignSystem-HorizontalNav--Text"
|
|
291
302
|
>
|
|
292
303
|
Tab #2
|
|
293
304
|
</span>
|
|
294
305
|
</div>
|
|
295
306
|
<div
|
|
296
|
-
class="HorizontalNav-menu"
|
|
307
|
+
class="HorizontalNav-menu HorizontalNav-menu--default"
|
|
297
308
|
data-test="DesignSystem-HorizontalNav"
|
|
309
|
+
tabindex="0"
|
|
298
310
|
>
|
|
299
311
|
<span
|
|
300
312
|
class="Pills Badge--secondary HorizontalNav-pills"
|
|
@@ -303,7 +315,7 @@ Object {
|
|
|
303
315
|
3
|
|
304
316
|
</span>
|
|
305
317
|
<span
|
|
306
|
-
class="Text Text--
|
|
318
|
+
class="Text Text--regular color-inverse HorizontalNav-menuText"
|
|
307
319
|
data-test="DesignSystem-HorizontalNav--Text"
|
|
308
320
|
>
|
|
309
321
|
Tab #3
|
|
@@ -36,6 +36,28 @@ export const nestedTableWithNestedCards = () => {
|
|
|
36
36
|
statusType: 'Done',
|
|
37
37
|
className: 'Executed',
|
|
38
38
|
},
|
|
39
|
+
{
|
|
40
|
+
firstName: 'Randy',
|
|
41
|
+
lastName: 'Boatwright',
|
|
42
|
+
lastRun: 'Yesterday 4:26 PM',
|
|
43
|
+
name: 'Risk Analysis',
|
|
44
|
+
type: 'Batch Execution',
|
|
45
|
+
status: 'Completed',
|
|
46
|
+
statusType: 'Done',
|
|
47
|
+
className: 'Executed',
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
firstName: 'Rolando',
|
|
51
|
+
lastName: 'Cyples',
|
|
52
|
+
lastRun: 'Yesterday 7:34 AM',
|
|
53
|
+
name: 'Quality',
|
|
54
|
+
type: 'Test Function',
|
|
55
|
+
status: 'Failed',
|
|
56
|
+
statusType: 'Error',
|
|
57
|
+
errorCode: 2204,
|
|
58
|
+
className: 'File not found',
|
|
59
|
+
errorMessage: 'Cannot fetch files',
|
|
60
|
+
},
|
|
39
61
|
];
|
|
40
62
|
|
|
41
63
|
const schema = [
|
|
@@ -178,6 +200,28 @@ const customCode = `() => {
|
|
|
178
200
|
statusType: "Done",
|
|
179
201
|
className: "Executed",
|
|
180
202
|
},
|
|
203
|
+
{
|
|
204
|
+
firstName: 'Randy',
|
|
205
|
+
lastName: 'Boatwright',
|
|
206
|
+
lastRun: 'Yesterday 4:26 PM',
|
|
207
|
+
name: 'Risk Analysis',
|
|
208
|
+
type: 'Batch Execution',
|
|
209
|
+
status: 'Completed',
|
|
210
|
+
statusType: 'Done',
|
|
211
|
+
className: 'Executed',
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
firstName: 'Rolando',
|
|
215
|
+
lastName: 'Cyples',
|
|
216
|
+
lastRun: 'Yesterday 7:34 AM',
|
|
217
|
+
name: 'Quality',
|
|
218
|
+
type: 'Test Function',
|
|
219
|
+
status: 'Failed',
|
|
220
|
+
statusType: 'Error',
|
|
221
|
+
errorCode: 2204,
|
|
222
|
+
className: 'File not found',
|
|
223
|
+
errorMessage: 'Cannot fetch files',
|
|
224
|
+
},
|
|
181
225
|
];
|
|
182
226
|
|
|
183
227
|
const schema = [
|
|
@@ -23,6 +23,18 @@ export const tableAsDescriptionList = () => {
|
|
|
23
23
|
email: 'daniellow02@yahoo.com',
|
|
24
24
|
view: true,
|
|
25
25
|
},
|
|
26
|
+
{
|
|
27
|
+
firstName: 'Randy',
|
|
28
|
+
lastName: 'Boatwright',
|
|
29
|
+
email: 'rboatwright3@arstechnica.com',
|
|
30
|
+
edit: true,
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
firstName: 'Rolando',
|
|
34
|
+
lastName: 'Cyples',
|
|
35
|
+
email: 'rcyples4@biglobe.ne.jp',
|
|
36
|
+
owner: true,
|
|
37
|
+
},
|
|
26
38
|
];
|
|
27
39
|
|
|
28
40
|
const schema = [
|
|
@@ -126,6 +138,18 @@ const customCode = `() => {
|
|
|
126
138
|
email: 'daniellow02@yahoo.com',
|
|
127
139
|
view: true
|
|
128
140
|
},
|
|
141
|
+
{
|
|
142
|
+
firstName: 'Randy',
|
|
143
|
+
lastName: 'Boatwright',
|
|
144
|
+
email: 'rboatwright3@arstechnica.com',
|
|
145
|
+
edit: true,
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
firstName: 'Rolando',
|
|
149
|
+
lastName: 'Cyples',
|
|
150
|
+
email: 'rcyples4@biglobe.ne.jp',
|
|
151
|
+
owner: true,
|
|
152
|
+
},
|
|
129
153
|
];
|
|
130
154
|
|
|
131
155
|
const schema = [
|
|
@@ -212,7 +236,7 @@ export default {
|
|
|
212
236
|
docs: {
|
|
213
237
|
docPage: {
|
|
214
238
|
customCode,
|
|
215
|
-
title: 'Table as
|
|
239
|
+
title: 'Table as Description List',
|
|
216
240
|
props: {
|
|
217
241
|
components: { AsyncTable, SyncTable },
|
|
218
242
|
exclude: ['showHead'],
|