From f05a472585b2506da21aed71f0252b2d4c04a221 Mon Sep 17 00:00:00 2001
From: Indrajith K L
Date: Mon, 5 Feb 2024 04:15:02 +0530
Subject: React Slides
* Adds useState
* State
* useEffect
* Side Effects
---
src/lib/components/code.svelte | 22 +++
src/lib/components/fit.svelte | 13 ++
src/lib/components/index.ts | 25 +++
src/lib/components/markdown.svelte | 13 ++
src/lib/components/media.svelte | 22 +++
src/lib/components/notes.svelte | 3 +
src/lib/components/presentation.svelte | 77 ++++++++
src/lib/components/slide.svelte | 48 +++++
src/lib/components/stack.svelte | 3 +
src/lib/components/step.svelte | 53 ++++++
src/lib/components/stretch.svelte | 13 ++
src/lib/components/vertical.svelte | 3 +
src/lib/languages/index.ts | 6 +
src/lib/languages/svelte.ts | 50 +++++
src/lib/languages/types.ts | 3 +
src/lib/motion/index.ts | 4 +
src/lib/motion/signal.ts | 61 +++++++
src/lib/motion/types.ts | 2 +
src/lib/motion/utils.ts | 10 +
src/lib/styles/code.css | 56 ++++++
src/lib/styles/tailwind.css | 3 +
src/lib/styles/theme.css | 127 +++++++++++++
src/lib/types/highlight.js/index.d.ts | 323 +++++++++++++++++++++++++++++++++
23 files changed, 940 insertions(+)
create mode 100644 src/lib/components/code.svelte
create mode 100644 src/lib/components/fit.svelte
create mode 100644 src/lib/components/index.ts
create mode 100644 src/lib/components/markdown.svelte
create mode 100644 src/lib/components/media.svelte
create mode 100644 src/lib/components/notes.svelte
create mode 100644 src/lib/components/presentation.svelte
create mode 100644 src/lib/components/slide.svelte
create mode 100644 src/lib/components/stack.svelte
create mode 100644 src/lib/components/step.svelte
create mode 100644 src/lib/components/stretch.svelte
create mode 100644 src/lib/components/vertical.svelte
create mode 100644 src/lib/languages/index.ts
create mode 100644 src/lib/languages/svelte.ts
create mode 100644 src/lib/languages/types.ts
create mode 100644 src/lib/motion/index.ts
create mode 100644 src/lib/motion/signal.ts
create mode 100644 src/lib/motion/types.ts
create mode 100644 src/lib/motion/utils.ts
create mode 100644 src/lib/styles/code.css
create mode 100644 src/lib/styles/tailwind.css
create mode 100644 src/lib/styles/theme.css
create mode 100644 src/lib/types/highlight.js/index.d.ts
(limited to 'src/lib')
diff --git a/src/lib/components/code.svelte b/src/lib/components/code.svelte
new file mode 100644
index 0000000..255bf7e
--- /dev/null
+++ b/src/lib/components/code.svelte
@@ -0,0 +1,22 @@
+
+
+
+
+
+
+
diff --git a/src/lib/components/fit.svelte b/src/lib/components/fit.svelte
new file mode 100644
index 0000000..8772061
--- /dev/null
+++ b/src/lib/components/fit.svelte
@@ -0,0 +1,13 @@
+
+
+
+
+
diff --git a/src/lib/components/index.ts b/src/lib/components/index.ts
new file mode 100644
index 0000000..392800d
--- /dev/null
+++ b/src/lib/components/index.ts
@@ -0,0 +1,25 @@
+import Code from './code.svelte'
+import FitText from './fit.svelte'
+import Markdown from './markdown.svelte'
+import Media from './media.svelte'
+import Notes from './notes.svelte'
+import Presentation from './presentation.svelte'
+import Slide from './slide.svelte'
+import Stack from './stack.svelte'
+import Step from './step.svelte'
+import Stretch from './stretch.svelte'
+import Vertical from './vertical.svelte'
+
+export {
+ Code,
+ FitText,
+ Markdown,
+ Media,
+ Notes,
+ Presentation,
+ Slide,
+ Stack,
+ Step,
+ Stretch,
+ Vertical,
+}
diff --git a/src/lib/components/markdown.svelte b/src/lib/components/markdown.svelte
new file mode 100644
index 0000000..204815b
--- /dev/null
+++ b/src/lib/components/markdown.svelte
@@ -0,0 +1,13 @@
+
+
+{#if file}
+
+{:else}
+
+{/if}
diff --git a/src/lib/components/media.svelte b/src/lib/components/media.svelte
new file mode 100644
index 0000000..ffa2633
--- /dev/null
+++ b/src/lib/components/media.svelte
@@ -0,0 +1,22 @@
+
+
+
+
+
diff --git a/src/lib/components/notes.svelte b/src/lib/components/notes.svelte
new file mode 100644
index 0000000..198e18d
--- /dev/null
+++ b/src/lib/components/notes.svelte
@@ -0,0 +1,3 @@
+
diff --git a/src/lib/components/presentation.svelte b/src/lib/components/presentation.svelte
new file mode 100644
index 0000000..c11010a
--- /dev/null
+++ b/src/lib/components/presentation.svelte
@@ -0,0 +1,77 @@
+
+
+
diff --git a/src/lib/components/slide.svelte b/src/lib/components/slide.svelte
new file mode 100644
index 0000000..439d312
--- /dev/null
+++ b/src/lib/components/slide.svelte
@@ -0,0 +1,48 @@
+
+
+
diff --git a/src/lib/components/stack.svelte b/src/lib/components/stack.svelte
new file mode 100644
index 0000000..a03d205
--- /dev/null
+++ b/src/lib/components/stack.svelte
@@ -0,0 +1,3 @@
+
+
+
diff --git a/src/lib/components/step.svelte b/src/lib/components/step.svelte
new file mode 100644
index 0000000..13c2f7c
--- /dev/null
+++ b/src/lib/components/step.svelte
@@ -0,0 +1,53 @@
+
+
+
+
+
diff --git a/src/lib/components/stretch.svelte b/src/lib/components/stretch.svelte
new file mode 100644
index 0000000..be808d5
--- /dev/null
+++ b/src/lib/components/stretch.svelte
@@ -0,0 +1,13 @@
+
+
+
+
+
diff --git a/src/lib/components/vertical.svelte b/src/lib/components/vertical.svelte
new file mode 100644
index 0000000..fb20c0a
--- /dev/null
+++ b/src/lib/components/vertical.svelte
@@ -0,0 +1,3 @@
+
diff --git a/src/lib/languages/index.ts b/src/lib/languages/index.ts
new file mode 100644
index 0000000..296c1fa
--- /dev/null
+++ b/src/lib/languages/index.ts
@@ -0,0 +1,6 @@
+import { svelte } from './svelte'
+import type { Hljs } from './types'
+
+export function registerLanguages(hljs: Hljs) {
+ hljs.registerLanguage('svelte', svelte)
+}
diff --git a/src/lib/languages/svelte.ts b/src/lib/languages/svelte.ts
new file mode 100644
index 0000000..237c7c7
--- /dev/null
+++ b/src/lib/languages/svelte.ts
@@ -0,0 +1,50 @@
+import type { Hljs } from './types'
+
+export function svelte(hljs: Hljs) {
+ return {
+ subLanguage: 'xml',
+ contains: [
+ hljs.COMMENT('', {
+ relevance: 10,
+ }),
+ {
+ begin: /^(\s*)(