Skip to content

Commit 2c66d24

Browse files
committed
FIX: Bring close to Evidence state management components
1 parent a72cd79 commit 2c66d24

File tree

196 files changed

+17807
-327
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+17807
-327
lines changed

.evidence/template/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
# Evidence Template Project
3+
4+
Thank you for checking out Evidence.
5+
6+
## Learning More
7+
8+
- [Docs](https://docs.evidence.dev/)
9+
- [Project Home Page](https://www.evidence.dev)
10+
- [Github](https://github.com/evidence-dev/evidence)
11+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
name: flight_sql
2+
type: flight-sql
3+
options:
4+
endpoint: "http://localhost:4180/query"

.evidence/template/src/app.css

Lines changed: 344 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,344 @@
1+
/* Write your global styles here, in PostCSS syntax */
2+
@import 'tailwindcss';
3+
@config "@evidence-dev/tailwind/config";
4+
5+
/*
6+
The default border color has changed to `currentColor` in Tailwind CSS v4,
7+
so we've added these compatibility styles to make sure everything still
8+
looks the same as it did with Tailwind CSS v3.
9+
10+
If we ever want to remove these styles, we need to add an explicit border
11+
color utility to any element that depends on these defaults.
12+
*/
13+
@layer base {
14+
*,
15+
::after,
16+
::before,
17+
::backdrop,
18+
::file-selector-button {
19+
border-color: var(--color-gray-200, currentColor);
20+
}
21+
}
22+
23+
@layer base {
24+
html {
25+
@apply scroll-smooth;
26+
}
27+
28+
body {
29+
@apply select-none;
30+
}
31+
32+
/* Default border color */
33+
* {
34+
@apply border-base-300;
35+
}
36+
37+
/* osx style scrollbars */
38+
.pretty-scrollbar {
39+
scrollbar-width: thin;
40+
scrollbar-color: theme('colors.base-300') transparent;
41+
}
42+
43+
.pretty-scrollbar::-webkit-scrollbar {
44+
height: 6px;
45+
width: 6px;
46+
}
47+
48+
.pretty-scrollbar::-webkit-scrollbar-track {
49+
background-color: transparent;
50+
}
51+
52+
.pretty-scrollbar::-webkit-scrollbar-thumb {
53+
background-color: transparent;
54+
border-radius: 7px;
55+
}
56+
57+
.pretty-scrollbar:hover::-webkit-scrollbar-thumb {
58+
background-color: theme('colors.base-200');
59+
}
60+
61+
/* hidden scrollbar */
62+
.no-scrollbar::-webkit-scrollbar {
63+
display: none;
64+
}
65+
.no-scrollbar {
66+
-ms-overflow-style: none;
67+
scrollbar-width: none;
68+
}
69+
70+
/* remove user agent styles for select */
71+
select {
72+
appearance: none;
73+
-moz-appearance: none;
74+
-webkit-appearance: none;
75+
}
76+
}
77+
78+
@layer components {
79+
.markdown {
80+
@apply leading-normal font-sans text-base antialiased;
81+
}
82+
83+
img.markdown {
84+
@apply mx-auto h-auto max-w-full rounded-lg;
85+
}
86+
87+
article.markdown a.markdown {
88+
@apply text-primary underline decoration-transparent hover:decoration-primary transition-all duration-200;
89+
}
90+
91+
p.markdown,
92+
ul.markdown,
93+
ol.markdown {
94+
margin-block-end: 1.2em;
95+
margin-block-start: 0em;
96+
}
97+
98+
/* lists */
99+
100+
ol.markdown {
101+
@apply list-decimal ps-6;
102+
}
103+
ul.markdown {
104+
@apply list-disc ps-6;
105+
}
106+
107+
/* 1st level list */
108+
ul.markdown,
109+
ol.markdown {
110+
/* 2nd level unordered list */
111+
& ul.markdown {
112+
@apply list-circle;
113+
}
114+
/* 2nd level ordered list */
115+
& ol.markdown {
116+
@apply list-lower-alpha;
117+
}
118+
119+
/* any 2nd level list */
120+
& ul.markdown,
121+
& ol.markdown {
122+
@apply mt-1;
123+
margin-block-end: 0em;
124+
125+
/* 3rd level unordered list */
126+
& ul.markdown {
127+
@apply list-square;
128+
}
129+
/* 3rd level ordered list */
130+
& ol.markdown {
131+
@apply list-lower-roman;
132+
}
133+
}
134+
135+
li.markdown {
136+
@apply list-item;
137+
text-align: -webkit-match-parent;
138+
139+
& + li.markdown {
140+
@apply mt-1;
141+
}
142+
}
143+
}
144+
145+
h1.markdown,
146+
h2.markdown,
147+
h3.markdown,
148+
h4.markdown,
149+
h5.markdown,
150+
h6.markdown {
151+
@apply scroll-mt-14 break-inside-avoid font-sans text-base-heading;
152+
/* ensure that table of contents links scroll with room for the header */
153+
}
154+
155+
h1.title:first-of-type,
156+
h1.markdown:first-of-type {
157+
@apply mt-1 mb-2;
158+
}
159+
160+
h1.title {
161+
@apply mt-5 mb-1 text-2xl tracking-wide font-bold break-inside-avoid;
162+
}
163+
164+
h1.markdown {
165+
@apply mt-5 mb-1 text-2xl tracking-wide font-bold break-inside-avoid;
166+
}
167+
168+
h2.markdown {
169+
@apply mt-3 mb-1 text-xl font-semibold;
170+
}
171+
172+
h3.markdown {
173+
@apply mt-2 mb-1 font-semibold text-base;
174+
}
175+
176+
h4.markdown {
177+
@apply mt-1 text-sm font-semibold;
178+
}
179+
180+
h5.markdown {
181+
@apply mt-1 text-xs font-semibold;
182+
}
183+
184+
h6.markdown {
185+
@apply mt-1 text-xs;
186+
}
187+
188+
hr.markdown {
189+
@apply h-px my-8 max-w-xl mx-auto bg-base-300 border-0;
190+
}
191+
192+
code.markdown {
193+
@apply font-mono text-[0.875em] bg-base-200 border border-base-300 rounded-sm px-1 select-all py-0.5;
194+
}
195+
196+
form code {
197+
font-size: unset;
198+
}
199+
200+
blockquote.markdown {
201+
@apply bg-base-200 border-l-4 border-base-content-muted pl-3 my-8 py-2;
202+
}
203+
204+
blockquote.markdown > blockquote.markdown {
205+
@apply m-0;
206+
}
207+
208+
blockquote.markdown > :first-child {
209+
@apply mt-0;
210+
}
211+
212+
blockquote.markdown > :last-child {
213+
@apply mb-0;
214+
}
215+
216+
blockquote.markdown * {
217+
@apply text-base-content-muted;
218+
}
219+
/* Ensure size and color are maintained for bold, italic, strikethrough */
220+
strong.markdown {
221+
@apply text-[1em] text-inherit;
222+
}
223+
224+
em.markdown {
225+
@apply text-[1em] text-inherit;
226+
}
227+
228+
del.markdown {
229+
@apply text-[1em] text-inherit;
230+
}
231+
232+
a.markdown {
233+
@apply text-[1em] text-inherit;
234+
}
235+
236+
table.markdown {
237+
@apply min-w-full border-collapse text-center mx-auto my-5;
238+
}
239+
240+
th.markdown {
241+
@apply text-sm font-medium border-b border-gray-800 py-0 px-2 text-ellipsis overflow-hidden;
242+
}
243+
244+
td.markdown {
245+
@apply text-sm py-1 px-2 overflow-hidden text-ellipsis;
246+
}
247+
}
248+
249+
:root {
250+
/* Layout header height */
251+
--header-height: 3.5rem;
252+
/* Font stacks */
253+
--monospace-font-family: theme(fontFamily.mono);
254+
--ui-font-family: theme(fontFamily.sans);
255+
--ui-font-family-compact: theme(fontFamily.sans);
256+
257+
/*
258+
!! DEPRECATED !!
259+
Kept for backwards compatibility with users projects
260+
*/
261+
--blue-50: #eff6ff;
262+
--blue-100: #dbeafe;
263+
--blue-200: #bfdbfe;
264+
--blue-300: #93c5fd;
265+
--blue-400: #60a5fa;
266+
--blue-500: #3b82f6;
267+
--blue-600: #2563eb;
268+
--blue-700: #1d4ed8;
269+
--blue-800: #1e40af;
270+
--blue-900: #1e3a8a;
271+
--blue-999: #172554;
272+
--blue-link: var(--blue-700);
273+
274+
--green-50: #f0fdf4;
275+
--green-100: #dcfce7;
276+
--green-200: #bbf7d0;
277+
--green-300: #86efac;
278+
--green-400: #4ade80;
279+
--green-500: #22c55e;
280+
--green-600: #16a34a;
281+
--green-700: #15803d;
282+
--green-800: #166534;
283+
--green-900: #14532d;
284+
--green-999: #052e16;
285+
286+
--grey-50: #f9fafb;
287+
--grey-100: #f3f4f6;
288+
--grey-200: #e5e7eb;
289+
--grey-300: #d1d5db;
290+
--grey-400: #9ca3af;
291+
--grey-500: #6b7280;
292+
--grey-600: #4b5563;
293+
--grey-700: #374151;
294+
--grey-800: #1f2937;
295+
--grey-900: #111827;
296+
--grey-999: #030712;
297+
298+
--red-50: #fef2f2;
299+
--red-100: #fee2e2;
300+
--red-200: #fecaca;
301+
--red-300: #fca5a5;
302+
--red-400: #f87171;
303+
--red-500: #ef4444;
304+
--red-600: #dc2626;
305+
--red-700: #b91c1c;
306+
--red-800: #991b1b;
307+
--red-900: #7f1d1d;
308+
--red-999: #450a0a;
309+
310+
--yellow-50: #fefce8;
311+
--yellow-100: #fef9c3;
312+
--yellow-200: #fef08a;
313+
--yellow-300: #fde047;
314+
--yellow-400: #facc15;
315+
--yellow-500: #eab308;
316+
--yellow-600: #ca8a04;
317+
--yellow-700: #a16207;
318+
--yellow-800: #854d0e;
319+
--yellow-900: #713f12;
320+
--yellow-999: #422006;
321+
}
322+
323+
.theme-dark .__evidence-leaflet-tile-layer__ {
324+
filter: invert(100%) hue-rotate(180deg) brightness(95%) contrast(90%);
325+
}
326+
327+
@media print {
328+
html {
329+
-webkit-print-color-adjust: exact;
330+
print-color-adjust: exact;
331+
}
332+
333+
h1,
334+
h2,
335+
h3,
336+
h4 {
337+
break-after: avoid-page;
338+
}
339+
340+
article {
341+
orphans: 2;
342+
widows: 2;
343+
}
344+
}

0 commit comments

Comments
 (0)