@adriansteffan/reactive 0.0.11 → 0.0.12
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/preset.css +134 -0
- package/dist/reactive.es.js +6 -6
- package/dist/reactive.umd.js +3 -3
- package/dist/style.css +2 -2
- package/package.json +6 -5
- package/postcss.config.js +1 -1
- package/src/components/text.tsx +4 -4
- package/src/components/upload.tsx +1 -1
- package/src/components/voicerecorder.tsx +1 -1
- package/src/index.css +69 -3
- package/template/package-lock.json +1054 -1240
- package/template/package.json +5 -5
- package/template/postcss.config.js +1 -2
- package/template/src/App.tsx +1 -1
- package/template/src/index.css +3 -3
- package/template/src/main.tsx +1 -1
- package/vite.config.ts +4 -2
- package/dist/tailwind.config.js +0 -33
- package/tailwind.config.js +0 -33
- package/template/tailwind.config.js +0 -7
package/dist/preset.css
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
@import 'tailwindcss';
|
|
2
|
+
|
|
3
|
+
@source '../dist/**/*.{js,ts,jsx,tsx}';
|
|
4
|
+
|
|
5
|
+
@theme {
|
|
6
|
+
--font-*: initial;
|
|
7
|
+
--font-sans: Atkinson Hyperlegible, sans-serif;
|
|
8
|
+
--font-atkinson: Atkinson Hyperlegible, sans-serif;
|
|
9
|
+
|
|
10
|
+
--animate-slide-down: slideDown 0.8s ease-out forwards;
|
|
11
|
+
--animate-fade-in: fadeIn 0.5s ease-out forwards;
|
|
12
|
+
|
|
13
|
+
@keyframes slideDown {
|
|
14
|
+
0% {
|
|
15
|
+
transform: translateY(-10px);
|
|
16
|
+
opacity: 0;
|
|
17
|
+
}
|
|
18
|
+
100% {
|
|
19
|
+
transform: translateY(0);
|
|
20
|
+
opacity: 1;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
@keyframes fadeIn {
|
|
24
|
+
0% {
|
|
25
|
+
opacity: 0;
|
|
26
|
+
}
|
|
27
|
+
100% {
|
|
28
|
+
opacity: 1;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
@keyframes slideDown {
|
|
35
|
+
0% {
|
|
36
|
+
transform: translateY(-10px);
|
|
37
|
+
opacity: 0;
|
|
38
|
+
}
|
|
39
|
+
100% {
|
|
40
|
+
transform: translateY(0);
|
|
41
|
+
opacity: 1;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@keyframes fadeIn {
|
|
46
|
+
0% {
|
|
47
|
+
opacity: 0;
|
|
48
|
+
}
|
|
49
|
+
100% {
|
|
50
|
+
opacity: 1;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/*
|
|
55
|
+
The default border color has changed to `currentColor` in Tailwind CSS v4,
|
|
56
|
+
so we've added these compatibility styles to make sure everything still
|
|
57
|
+
looks the same as it did with Tailwind CSS v3.
|
|
58
|
+
|
|
59
|
+
If we ever want to remove these styles, we need to add an explicit border
|
|
60
|
+
color utility to any element that depends on these defaults.
|
|
61
|
+
*/
|
|
62
|
+
@layer base {
|
|
63
|
+
*,
|
|
64
|
+
::after,
|
|
65
|
+
::before,
|
|
66
|
+
::backdrop,
|
|
67
|
+
::file-selector-button {
|
|
68
|
+
border-color: var(--color-gray-200, currentColor);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
:root {
|
|
73
|
+
--font-atkinson: 'Atkinson Hyperlegible', system-ui, sans-serif;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
* {
|
|
77
|
+
-webkit-touch-callout: none;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
@font-face {
|
|
81
|
+
font-family: 'Atkinson Hyperlegible';
|
|
82
|
+
src: url('/Atkinson_Hyperlegible/AtkinsonHyperlegible-Regular.ttf') format('truetype');
|
|
83
|
+
font-weight: 400;
|
|
84
|
+
font-style: normal;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@font-face {
|
|
88
|
+
font-family: 'Atkinson Hyperlegible';
|
|
89
|
+
src: url('/Atkinson_Hyperlegible/AtkinsonHyperlegible-Bold.ttf') format('truetype');
|
|
90
|
+
font-weight: 700;
|
|
91
|
+
font-style: normal;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
@font-face {
|
|
95
|
+
font-family: 'Atkinson Hyperlegible';
|
|
96
|
+
src: url('/Atkinson_Hyperlegible/AtkinsonHyperlegible-Italic.ttf') format('truetype');
|
|
97
|
+
font-weight: 400;
|
|
98
|
+
font-style: italic;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
@font-face {
|
|
102
|
+
font-family: 'Atkinson Hyperlegible';
|
|
103
|
+
src: url('/Atkinson_Hyperlegible/AtkinsonHyperlegible-BoldItalic.ttf') format('truetype');
|
|
104
|
+
font-weight: 700;
|
|
105
|
+
font-style: italic;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* customization for the surveyjs elements - a bit hacky and broken*/
|
|
109
|
+
.sd-root-modern {
|
|
110
|
+
background-color: white !important;
|
|
111
|
+
background-image: radial-gradient(#e5e7eb 1px, transparent 1px);
|
|
112
|
+
background-size: 16px 16px;
|
|
113
|
+
position: relative; /* Make sure position is set for proper rendering */
|
|
114
|
+
font-family: 'Atkinson Hyperlegible', sans-serif; /* Added this line */
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.sd-root-modern * {
|
|
118
|
+
font-family: 'Atkinson Hyperlegible', sans-serif;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
/* for the rating group panel, maybe we can move that into the component at some point*/
|
|
122
|
+
.sd-row,
|
|
123
|
+
.sd-clearfix {
|
|
124
|
+
padding-bottom: 20px !important;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* fix pet peeve in surveyjs */
|
|
128
|
+
@media (max-width: 639px) {
|
|
129
|
+
.sd-imagepicker__item--inline {
|
|
130
|
+
margin-left: auto;
|
|
131
|
+
margin-right: auto;
|
|
132
|
+
margin-top: 10px;
|
|
133
|
+
}
|
|
134
|
+
}
|
package/dist/reactive.es.js
CHANGED
|
@@ -658,21 +658,21 @@ function x0({
|
|
|
658
658
|
/* @__PURE__ */ Pe.jsx(
|
|
659
659
|
"article",
|
|
660
660
|
{
|
|
661
|
-
className: `prose prose-2xl prose-slate text-xl prose-a:text-blue-600 prose-a:underline prose-h1:text-
|
|
662
|
-
${m ? "animate-
|
|
661
|
+
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
|
|
662
|
+
${m ? "animate-slide-down opacity-0" : ""}`,
|
|
663
663
|
children: d
|
|
664
664
|
}
|
|
665
665
|
),
|
|
666
666
|
h && /* @__PURE__ */ Pe.jsx(
|
|
667
667
|
"div",
|
|
668
668
|
{
|
|
669
|
-
className: `mt-16 flex justify-center ${m ? "animate-
|
|
669
|
+
className: `mt-16 flex justify-center ${m ? "animate-fade-in opacity-0" : ""}`,
|
|
670
670
|
style: m ? { animationDelay: "1s" } : {},
|
|
671
671
|
children: /* @__PURE__ */ Pe.jsx(
|
|
672
672
|
"button",
|
|
673
673
|
{
|
|
674
674
|
onClick: x,
|
|
675
|
-
className: "bg-white px-8 py-3 border-2 border-black font-bold text-black text-lg rounded-xl shadow-[2px_2px_0px_rgba(0,0,0,1)] hover:translate-x-[2px] hover:translate-y-[2px] hover:shadow-none",
|
|
675
|
+
className: "bg-white cursor-pointer px-8 py-3 border-2 border-black font-bold text-black text-lg rounded-xl shadow-[2px_2px_0px_rgba(0,0,0,1)] hover:translate-x-[2px] hover:translate-y-[2px] hover:shadow-none",
|
|
676
676
|
children: h
|
|
677
677
|
}
|
|
678
678
|
)
|
|
@@ -858,7 +858,7 @@ const D0 = ({ stream: d }) => {
|
|
|
858
858
|
ref: h,
|
|
859
859
|
width: 300,
|
|
860
860
|
height: 60,
|
|
861
|
-
className: "mx-auto rounded-lg bg-white shadow-
|
|
861
|
+
className: "mx-auto rounded-lg bg-white shadow-xs"
|
|
862
862
|
}
|
|
863
863
|
);
|
|
864
864
|
}, Hh = ({
|
|
@@ -70388,7 +70388,7 @@ function J2({
|
|
|
70388
70388
|
"button",
|
|
70389
70389
|
{
|
|
70390
70390
|
onClick: R,
|
|
70391
|
-
className: "px-4 py-2 bg-blue-500 text-white rounded hover:bg-blue-600 transition-colors",
|
|
70391
|
+
className: "px-4 py-2 bg-blue-500 text-white rounded-sm hover:bg-blue-600 transition-colors",
|
|
70392
70392
|
children: "Try Again"
|
|
70393
70393
|
}
|
|
70394
70394
|
)
|