chore: deliver
Showing 7 of 9 files from the diff.
Other files ignored by Codecov
pnpm-lock.yaml
has changed.
docs/docs/Components.md
has changed.
@@ -2,7 +2,7 @@
Loading
2 | 2 | import PropTypes from 'prop-types' |
|
3 | 3 | import Markdown from 'rsg-components/Markdown' |
|
4 | 4 | import Styled from 'rsg-components/Styled' |
|
5 | - | import { DOCS_COMPONENTS } from '../../../scripts/consts' |
|
5 | + | import consts from '../../../scripts/consts' |
|
6 | 6 | ||
7 | 7 | const styles = ({ space, maxWidth }) => ({ |
|
8 | 8 | root: { |
@@ -29,7 +29,7 @@
Loading
29 | 29 | components: 'src/components/**/*.vue' |
|
30 | 30 | }; |
|
31 | 31 | ||
32 | - | Read more in the [locating components guide](${DOCS_COMPONENTS}). |
|
32 | + | Read more in the [locating components guide](${consts.DOCS_COMPONENTS}). |
|
33 | 33 | `} |
|
34 | 34 | /> |
|
35 | 35 | </div> |
@@ -41,7 +41,7 @@
Loading
41 | 41 | children: PropTypes.node, |
|
42 | 42 | toolbar: PropTypes.node, |
|
43 | 43 | id: PropTypes.string.isRequired, |
|
44 | - | href: PropTypes.string.isRequired, |
|
44 | + | href: PropTypes.string, |
|
45 | 45 | depth: PropTypes.number.isRequired, |
|
46 | 46 | deprecated: PropTypes.bool, |
|
47 | 47 | parentName: PropTypes.string, |
@@ -69,9 +69,13 @@
Loading
69 | 69 | return ( |
|
70 | 70 | <div className={classes.wrapper}> |
|
71 | 71 | <Heading level={headingLevel} id={id}> |
|
72 | - | <a href={href} className={sectionNameClasses}> |
|
73 | - | {children} |
|
74 | - | </a> |
|
72 | + | {href ? ( |
|
73 | + | <a href={href} className={sectionNameClasses}> |
|
74 | + | {children} |
|
75 | + | </a> |
|
76 | + | ) : ( |
|
77 | + | <span className={sectionNameClasses}>{children}</span> |
|
78 | + | )} |
|
75 | 79 | {parentName && parentHref && ( |
|
76 | 80 | <a href={parentHref} className={classes.parentName}> |
|
77 | 81 | {parentName} |
@@ -4,7 +4,7 @@
Loading
4 | 4 | import { getDefaultExample } from 'vue-inbrowser-compiler-utils' |
|
5 | 5 | import Styled from 'rsg-components/Styled' |
|
6 | 6 | import Markdown from 'rsg-components/Markdown' |
|
7 | - | import { DOCS_DOCUMENTING } from '../../../scripts/consts' |
|
7 | + | import consts from '../../../scripts/consts' |
|
8 | 8 | import { DocumentedComponentContext } from '../VsgReactComponent/ReactComponent' |
|
9 | 9 | ||
10 | 10 | const styles = ({ fontFamily, fontSize, color }) => ({ |
@@ -93,7 +93,7 @@
Loading
93 | 93 | ||
94 | 94 | You may need to **restart** the style guide server after adding an example file. |
|
95 | 95 | ||
96 | - | Read more in the [documenting components guide](${DOCS_DOCUMENTING}). |
|
96 | + | Read more in the [documenting components guide](${consts.DOCS_DOCUMENTING}). |
|
97 | 97 | `} |
|
98 | 98 | /> |
|
99 | 99 | ) |
@@ -2,8 +2,9 @@
Loading
2 | 2 | import * as Rsg from 'react-styleguidist' |
|
3 | 3 | import PropTypes from 'prop-types' |
|
4 | 4 | import Styled, { JssInjectedProps } from 'rsg-components/Styled' |
|
5 | - | import Argument, { ArgumentProps } from 'rsg-components/Argument' |
|
5 | + | import Argument from 'rsg-components/Argument' |
|
6 | 6 | import Heading from 'rsg-components/Heading' |
|
7 | + | import { ArgumentProps } from '../Argument/ArgumentRenderer' |
|
7 | 8 | ||
8 | 9 | export const styles = ({ space }: Rsg.Theme) => ({ |
|
9 | 10 | root: { |
@@ -49,7 +50,7 @@
Loading
49 | 50 | PropTypes.shape({ |
|
50 | 51 | name: PropTypes.string.isRequired, |
|
51 | 52 | type: PropTypes.object, |
|
52 | - | description: PropTypes.string.isRequired |
|
53 | + | description: PropTypes.string |
|
53 | 54 | }).isRequired |
|
54 | 55 | ).isRequired, |
|
55 | 56 | heading: PropTypes.bool |
@@ -6,7 +6,7 @@
Loading
6 | 6 | import cx from 'classnames' |
|
7 | 7 | import Ribbon from 'rsg-components/Ribbon' |
|
8 | 8 | import Version from 'rsg-components/Version' |
|
9 | - | import { HOMEPAGE } from '../../../scripts/consts' |
|
9 | + | import consts from '../../../scripts/consts' |
|
10 | 10 | ||
11 | 11 | const styles = ({ color, sidebarWidth, mq, space, maxWidth }) => ({ |
|
12 | 12 | root: { |
@@ -57,7 +57,7 @@
Loading
57 | 57 | <div className={cx(classes.root, hasSidebar && classes.hasSidebar)}> |
|
58 | 58 | <main className={classes.content}> |
|
59 | 59 | {children} |
|
60 | - | <StyleguideFooter homepageUrl={HOMEPAGE} /> |
|
60 | + | <StyleguideFooter homepageUrl={consts.HOMEPAGE} /> |
|
61 | 61 | </main> |
|
62 | 62 | {hasSidebar && ( |
|
63 | 63 | <div className={classes.sidebar}> |
Files | Coverage |
---|---|
packages | 63.98% |
Project Totals (175 files) | 63.98% |
1928.1
v12= TRAVIS_OS_NAME=linux
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.