@adriansteffan/reactive 0.0.33 → 0.0.35
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/{mod-E7J43-ME.js → mod-bwTFfeeq.js} +47 -40
- package/dist/mod.d.ts +5 -4
- package/dist/reactive.es.js +39 -29
- package/dist/reactive.umd.js +29 -29
- package/dist/{web-a2dmy96o.js → web-BDYezuEB.js} +1 -1
- package/dist/{web-CPiYvLVz.js → web-rfSabFi1.js} +1 -1
- package/package.json +1 -1
- package/src/components/text.tsx +5 -1
- package/src/mod.tsx +1 -1
- package/template/package-lock.json +0 -1
- package/template/package.json +0 -1
package/package.json
CHANGED
package/src/components/text.tsx
CHANGED
|
@@ -5,6 +5,7 @@ function Text({
|
|
|
5
5
|
content,
|
|
6
6
|
buttonText = 'Click me',
|
|
7
7
|
className = '',
|
|
8
|
+
containerClass = '',
|
|
8
9
|
next,
|
|
9
10
|
animate = false,
|
|
10
11
|
allowedKeys = false,
|
|
@@ -13,6 +14,7 @@ function Text({
|
|
|
13
14
|
buttonText?: string;
|
|
14
15
|
onButtonClick?: () => void;
|
|
15
16
|
className?: string;
|
|
17
|
+
containerClass?: string;
|
|
16
18
|
animate?: boolean;
|
|
17
19
|
allowedKeys?: string[] | boolean;
|
|
18
20
|
} & BaseComponentProps) {
|
|
@@ -62,7 +64,8 @@ function Text({
|
|
|
62
64
|
};
|
|
63
65
|
|
|
64
66
|
return (
|
|
65
|
-
<div className={
|
|
67
|
+
<div className={`${containerClass}`}>
|
|
68
|
+
<div className={`max-w-prose mx-auto ${className} mt-20 mb-20 px-4 `}>
|
|
66
69
|
<article
|
|
67
70
|
className={`prose prose-2xl prose-slate text-xl prose-a:text-blue-600 prose-a:underline prose-h1:text-4xl prose-h1:mb-10 prose-h1:font-bold prose-p:mb-4 prose-strong:font-bold text-black leading-relaxed
|
|
68
71
|
${animate ? 'animate-slide-down opacity-0' : ''}`}
|
|
@@ -83,6 +86,7 @@ function Text({
|
|
|
83
86
|
</button>
|
|
84
87
|
</div>
|
|
85
88
|
)}
|
|
89
|
+
</div>
|
|
86
90
|
</div>
|
|
87
91
|
);
|
|
88
92
|
}
|
package/src/mod.tsx
CHANGED