react-lib-tools 0.0.31 → 0.0.33

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-lib-tools",
3
- "version": "0.0.31",
3
+ "version": "0.0.33",
4
4
  "type": "module",
5
5
  "author": "Brian Vaughn <brian.david.vaughn@gmail.com> (https://github.com/bvaughn/)",
6
6
  "contributors": [
@@ -27,7 +27,7 @@ export async function compileComponents({
27
27
  fileExtensions: [".ts", ".tsx"],
28
28
  fileFilter: (file) =>
29
29
  componentNames.some((componentName) =>
30
- file.includes(`${componentName}.ts`)
30
+ file.includes(`/${componentName}.ts`)
31
31
  ),
32
32
  inputPath: ["lib", "components"],
33
33
  outputPath
@@ -16,7 +16,9 @@ export function insertPropsMarkdown({
16
16
  const startIndex = markdown.indexOf(startToken) + startToken.length;
17
17
  const stopIndex = markdown.indexOf(stopToken);
18
18
  if (startIndex < 0 || stopIndex < 0) {
19
- throw Error("Parsing README failed");
19
+ console.warn(`README tokens not found for component ${componentName}`);
20
+
21
+ return markdown;
20
22
  }
21
23
 
22
24
  return (
package/styles.css CHANGED
@@ -60,6 +60,12 @@
60
60
  animation: background-gradient-animation 20s ease infinite;
61
61
  }
62
62
 
63
+ @media (prefers-reduced-motion: reduce) {
64
+ #root {
65
+ background: var(--color-background-gradient-2);
66
+ }
67
+ }
68
+
63
69
  * {
64
70
  scrollbar-width: thin;
65
71
  scrollbar-color: var(--color-slate-600) transparent;