-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
105 changed files
with
4,000 additions
and
294 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "@storylite/plugins", | ||
"version": "0.0.0", | ||
"type": "module", | ||
"scripts": {}, | ||
"devDependencies": { | ||
"@types/node": "^18.15.11", | ||
"@vitest/coverage-c8": "^0.29.8", | ||
"glob": "^9.3.2", | ||
"typescript": "^5.0.2", | ||
"vite": "^4.2.1", | ||
"vite-tsconfig-paths": "^4.0.7", | ||
"vitest": "^0.29.8" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -9,6 +9,7 @@ lerna-debug.log* | |
|
||
node_modules | ||
dist | ||
types/ | ||
dist-ssr | ||
*.local | ||
|
||
|
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,41 +1,48 @@ | ||
{ | ||
"name": "@storylite/storylite", | ||
"version": "0.0.0", | ||
"description": "", | ||
"type": "module", | ||
"files": [ | ||
"dist" | ||
], | ||
"scripts": { | ||
"build": "tsc && vite build", | ||
"build": "vite build", | ||
"dev": "PORT=${STORYLITE_PORT:-7707} vite", | ||
"preview": "vite preview", | ||
"test": "vitest", | ||
"test": "vitest --run", | ||
"test:coverage": "vitest run --coverage", | ||
"test:ui": "vitest --ui", | ||
"test:ui": "pnpm test:coverage && open coverage/index.html && vitest --ui --open", | ||
"test:watch": "vitest", | ||
"typecheck": "tsc --noEmit" | ||
}, | ||
"dependencies": { | ||
"lucide-react": "^0.128.0", | ||
"lucide-react": "^0.129.0", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"react-router-dom": "^6.9.0" | ||
"react-router-dom": "^6.10.0" | ||
}, | ||
"devDependencies": { | ||
"@swc/core": "^1.3.41", | ||
"@storylite/support": "workspace:*", | ||
"@swc/core": "^1.3.42", | ||
"@testing-library/jest-dom": "^5.16.5", | ||
"@testing-library/react": "^14.0.0", | ||
"@testing-library/user-event": "^14.4.3", | ||
"@types/jsdom": "^21.1.1", | ||
"@types/node": "^18.15.10", | ||
"@types/react": "^18.0.30", | ||
"@types/node": "^18.15.11", | ||
"@types/react": "^18.0.31", | ||
"@types/react-dom": "^18.0.11", | ||
"@types/testing-library__jest-dom": "^5.14.5", | ||
"@vitejs/plugin-react": "^3.1.0", | ||
"@vitejs/plugin-react-swc": "^3.2.0", | ||
"@vitest/coverage-c8": "^0.29.7", | ||
"@vitest/ui": "^0.29.7", | ||
"@vitest/coverage-istanbul": "^0.29.8", | ||
"@vitest/ui": "^0.29.8", | ||
"eslint-plugin-react": "^7.32.2", | ||
"glob": "^9.3.2", | ||
"jsdom": "^21.1.1", | ||
"typescript": "^5.0.2", | ||
"vite": "^4.2.1", | ||
"vitest": "^0.29.7" | ||
"vite-plugin-dts": "^2.1.0", | ||
"vitest": "^0.29.8" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,115 @@ | ||
.Sidebar { | ||
position: relative; | ||
padding: 0; | ||
background: var(--theme-bg-color-panel); | ||
color: var(--theme-font-color-panel); | ||
border-right: 1px solid var(--theme-border-color); | ||
transition: width 0.2s ease-in-out; | ||
transition-property: width, margin; | ||
width: 0; | ||
overflow: hidden; | ||
pointer-events: none; | ||
margin-left: -100px; | ||
margin-right: 100px; | ||
} | ||
|
||
.Sidebar[data-open='true'] { | ||
width: 220px; | ||
pointer-events: unset; | ||
margin-left: 0; | ||
margin-right: 0; | ||
} | ||
|
||
html[data-color-scheme='dark'] .Sidebar { | ||
border-color: transparent; | ||
} | ||
|
||
@media (prefers-color-scheme: dark) { | ||
html[data-color-scheme='auto'] .Sidebar { | ||
border-color: transparent; | ||
} | ||
} | ||
|
||
.Content { | ||
position: relative; | ||
min-width: 220px; | ||
} | ||
|
||
.Title { | ||
position: relative; | ||
} | ||
|
||
/* MENU NAV */ | ||
|
||
.Nav { | ||
/*margin-top: 1px;*/ | ||
} | ||
|
||
.Nav ul, | ||
.Nav li { | ||
position: relative; | ||
display: block; | ||
list-style: none; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
.ListBtn { | ||
padding: 0.5rem 1rem; | ||
font-size: 0.8rem; | ||
line-height: 1rem; | ||
color: inherit; | ||
display: flex; | ||
text-decoration: none; | ||
transition: background-color 0.2s linear; | ||
cursor: pointer; | ||
} | ||
|
||
.ListBtn .Text, | ||
.ListBtn .Icon, | ||
.ListBtn .Icon svg { | ||
vertical-align: middle; | ||
display: inline-block; | ||
} | ||
|
||
.ListBtn .Text { | ||
white-space: nowrap; /* Prevents the text from breaking into multiple lines */ | ||
overflow: hidden; /* Hides any overflowing text */ | ||
text-overflow: ellipsis; /* Shows an ellipsis at the end of the block */ | ||
} | ||
|
||
.ListBtn .Icon { | ||
margin-right: 5px; | ||
} | ||
|
||
.ListBtn .Icon svg { | ||
width: 12px; | ||
height: 12px; | ||
} | ||
|
||
.ListBtn:hover { | ||
background-color: rgba(0, 0, 0, 0.07); | ||
} | ||
|
||
html[data-color-scheme='dark'] .ListBtn:hover { | ||
background-color: rgba(0, 0, 0, 0.4); | ||
} | ||
|
||
html[data-color-scheme='dark'] .Active .ListBtn:hover, | ||
.Active .ListBtn { | ||
background-color: var(--theme-color-primary); | ||
text-decoration: none; | ||
color: #fff; | ||
} | ||
|
||
.WithNestedList .NestedList .ListBtn { | ||
padding-left: 2rem; | ||
} | ||
|
||
.NestedList .Icon { | ||
color: var(--theme-color-primary); | ||
} | ||
|
||
.NestedList .Active .Icon { | ||
color: inherit; | ||
} |
Oops, something went wrong.