@readme/markdown 8.0.0 → 8.1.0

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.
Files changed (95) hide show
  1. package/components/CodeTabs/style.scss +9 -7
  2. package/components/Style/index.tsx +18 -0
  3. package/components/TailwindRoot/index.tsx +9 -0
  4. package/components/index.ts +2 -0
  5. package/dist/10.node.js +2 -1
  6. package/dist/10.node.js.map +1 -0
  7. package/dist/11.node.js +2 -1
  8. package/dist/11.node.js.map +1 -0
  9. package/dist/120.node.js +2 -1
  10. package/dist/120.node.js.map +1 -0
  11. package/dist/134.node.js +2 -1
  12. package/dist/134.node.js.map +1 -0
  13. package/dist/150.node.js +2 -1
  14. package/dist/150.node.js.map +1 -0
  15. package/dist/17.node.js +2 -1
  16. package/dist/17.node.js.map +1 -0
  17. package/dist/246.node.js +2 -1
  18. package/dist/246.node.js.map +1 -0
  19. package/dist/351.node.js +2 -1
  20. package/dist/351.node.js.map +1 -0
  21. package/dist/366.node.js +2 -1
  22. package/dist/366.node.js.map +1 -0
  23. package/dist/403.node.js +2 -1
  24. package/dist/403.node.js.map +1 -0
  25. package/dist/429.node.js +2 -1
  26. package/dist/429.node.js.map +1 -0
  27. package/dist/485.node.js +2 -1
  28. package/dist/485.node.js.map +1 -0
  29. package/dist/486.node.js +2 -1
  30. package/dist/486.node.js.map +1 -0
  31. package/dist/488.node.js +2 -1
  32. package/dist/488.node.js.map +1 -0
  33. package/dist/489.node.js +2 -1
  34. package/dist/489.node.js.map +1 -0
  35. package/dist/510.node.js +2 -1
  36. package/dist/510.node.js.map +1 -0
  37. package/dist/52.node.js +2 -1
  38. package/dist/52.node.js.map +1 -0
  39. package/dist/550.node.js +2 -1
  40. package/dist/550.node.js.map +1 -0
  41. package/dist/551.node.js +2 -1
  42. package/dist/551.node.js.map +1 -0
  43. package/dist/617.node.js +2 -1
  44. package/dist/617.node.js.map +1 -0
  45. package/dist/687.node.js +2 -1
  46. package/dist/687.node.js.map +1 -0
  47. package/dist/745.node.js +2 -1
  48. package/dist/745.node.js.map +1 -0
  49. package/dist/775.node.js +2 -1
  50. package/dist/775.node.js.map +1 -0
  51. package/dist/786.node.js +2 -1
  52. package/dist/786.node.js.map +1 -0
  53. package/dist/788.node.js +2 -1
  54. package/dist/788.node.js.map +1 -0
  55. package/dist/81.node.js +2 -1
  56. package/dist/81.node.js.map +1 -0
  57. package/dist/849.node.js +2 -1
  58. package/dist/849.node.js.map +1 -0
  59. package/dist/863.node.js +2 -1
  60. package/dist/863.node.js.map +1 -0
  61. package/dist/867.node.js +2 -1
  62. package/dist/867.node.js.map +1 -0
  63. package/dist/881.node.js +2 -1
  64. package/dist/881.node.js.map +1 -0
  65. package/dist/885.node.js +2 -1
  66. package/dist/885.node.js.map +1 -0
  67. package/dist/896.node.js +2 -1
  68. package/dist/896.node.js.map +1 -0
  69. package/dist/906.node.js +2 -1
  70. package/dist/906.node.js.map +1 -0
  71. package/dist/91.node.js +2 -1
  72. package/dist/91.node.js.map +1 -0
  73. package/dist/940.node.js +2 -1
  74. package/dist/940.node.js.map +1 -0
  75. package/dist/952.node.js +2 -1
  76. package/dist/952.node.js.map +1 -0
  77. package/dist/995.node.js +2 -1
  78. package/dist/995.node.js.map +1 -0
  79. package/dist/components/Style/index.d.ts +6 -0
  80. package/dist/components/TailwindRoot/index.d.ts +6 -0
  81. package/dist/components/index.d.ts +2 -0
  82. package/dist/example/components.d.ts +7 -0
  83. package/dist/lib/compile.d.ts +2 -1
  84. package/dist/lib/run.d.ts +1 -0
  85. package/dist/lib/styles.d.ts +2 -0
  86. package/dist/main.css +3 -1
  87. package/dist/main.css.map +1 -0
  88. package/dist/main.js +37293 -32287
  89. package/dist/main.node.js +20274 -11764
  90. package/dist/main.node.js.map +1 -0
  91. package/dist/processor/transform/index.d.ts +2 -1
  92. package/dist/processor/transform/tailwind.d.ts +6 -0
  93. package/dist/processor/utils.d.ts +15 -1
  94. package/dist/utils/tailwind-bundle.d.ts +5 -0
  95. package/package.json +8 -5
@@ -2,8 +2,8 @@
2
2
  @import '~codemirror/theme/neo.css';
3
3
 
4
4
  @mixin CodeTabs {
5
- $bgc-pre: #F6F8FA;
6
- $bgc-pre-dark: #242E34;
5
+ $bgc-pre: #f6f8fa;
6
+ $bgc-pre-dark: #242e34;
7
7
  $bgc-bar: darken(desaturate($bgc-pre, 17.46), 4.31);
8
8
  $bgc-bar-dark: lighten(desaturate($bgc-pre-dark, 17.46), 4.31);
9
9
  $radius: var(--md-code-radius, var(--markdown-radius, 3px));
@@ -36,18 +36,18 @@
36
36
  }
37
37
  button {
38
38
  white-space: nowrap;
39
- transition: .123s ease;
39
+ transition: 0.123s ease;
40
40
  -webkit-appearance: none;
41
41
  appearance: none;
42
42
  display: inline-block;
43
43
  line-height: 2;
44
- padding: .5em 1em;
44
+ padding: 0.5em 1em;
45
45
  border: none;
46
46
  background: transparent;
47
47
  outline: none;
48
48
  color: inherit;
49
49
  font: inherit;
50
- font-size: .75em;
50
+ font-size: 0.75em;
51
51
  cursor: pointer;
52
52
  }
53
53
  }
@@ -70,7 +70,7 @@
70
70
  }
71
71
 
72
72
  &-toolbar button:not(.CodeTabs_active):hover {
73
- background: rgba(0, 0, 0, .075);
73
+ background: rgba(0, 0, 0, 0.075);
74
74
  }
75
75
 
76
76
  pre {
@@ -78,7 +78,9 @@
78
78
  background: $bgc-pre;
79
79
  background: var(--md-code-background, $bgc-pre);
80
80
  margin-bottom: 0;
81
- &:not(.CodeTabs_active) { display: none }
81
+ &:not(.CodeTabs_active) {
82
+ display: none;
83
+ }
82
84
  }
83
85
 
84
86
  &.theme-dark pre {
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { createPortal } from 'react-dom';
3
+
4
+ interface Props {
5
+ stylesheet?: string;
6
+ }
7
+
8
+ const Style = ({ stylesheet }: Props) => {
9
+ const hasDom = typeof document !== 'undefined';
10
+
11
+ if (!stylesheet) {
12
+ return null;
13
+ }
14
+
15
+ return hasDom ? createPortal(<style>{stylesheet}</style>, document.head) : <style>{stylesheet}</style>;
16
+ };
17
+
18
+ export default Style;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+
3
+ const TailwindRoot = ({ children, flow }) => {
4
+ const Tag = flow ? 'div' : 'span';
5
+
6
+ return <Tag className="readme-tailwind">{children}</Tag>;
7
+ };
8
+
9
+ export default TailwindRoot;
@@ -10,6 +10,8 @@ export { default as Glossary } from './Glossary';
10
10
  export { default as HTMLBlock } from './HTMLBlock';
11
11
  export { default as Heading } from './Heading';
12
12
  export { default as Image } from './Image';
13
+ export { default as Style } from './Style';
13
14
  export { default as Table } from './Table';
14
15
  export { default as Tabs, Tab } from './Tabs';
15
16
  export { default as TableOfContents } from './TableOfContents';
17
+ export { default as TailwindRoot } from './TailwindRoot';
package/dist/10.node.js CHANGED
@@ -22718,4 +22718,5 @@ exports["default"] = RAL;
22718
22718
  /***/ })
22719
22719
 
22720
22720
  };
22721
- ;
22721
+ ;
22722
+ //# sourceMappingURL=10.node.js.map