-
-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
92ae0e8
commit 8d4c11b
Showing
23 changed files
with
117 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
packages/embla-carousel-docs/src/components/CodeSandbox/React/sandboxReactFolders.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export const SANDBOX_REACT_FOLDERS = { | ||
PUBLIC: 'public', | ||
CSS: 'src/css', | ||
JS: 'src/js', | ||
IMAGES: 'src/images', | ||
} |
16 changes: 8 additions & 8 deletions
16
...arousel-docs/src/components/CodeSandbox/Vanilla/SandboxFilesDist/Default/EmblaCarousel.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
import EmblaCarousel from 'embla-carousel' | ||
import '../css/base.css' | ||
import '../css/sandbox.css' | ||
import '../css/embla.css' | ||
import EmblaCarousel from 'embla-carousel'; | ||
import '../css/base.css'; | ||
import '../css/sandbox.css'; | ||
import '../css/embla.css'; | ||
|
||
const OPTIONS = {} | ||
const OPTIONS = {}; | ||
|
||
const emblaNode = document.querySelector('.embla') | ||
const viewportNode = emblaNode.querySelector('.embla__viewport') | ||
const emblaNode = document.querySelector('.embla'); | ||
const viewportNode = emblaNode.querySelector('.embla__viewport'); | ||
|
||
// @ts-ignore | ||
const emblaApi = EmblaCarousel(viewportNode, OPTIONS) | ||
const emblaApi = EmblaCarousel(viewportNode, OPTIONS); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
packages/embla-carousel-docs/src/components/CodeSandbox/Vanilla/sandboxVanillaFolders.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export const SANDBOX_VANILLA_FOLDERS = { | ||
CSS: 'src/css', | ||
JS: 'src/js', | ||
IMAGES: 'src/images', | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
packages/embla-carousel-docs/src/components/CodeSandbox/sandboxRegex.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.