-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): add more docs and components
- Loading branch information
1 parent
c4c98b9
commit 039ea4d
Showing
30 changed files
with
820 additions
and
158 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
packages/vkui-docs-theme/src/components/Sidebar/Accordion/Accordion.module.css
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 @@ | ||
.icon { | ||
background-color: var(--vkui--color_background_secondary--hover); | ||
padding-inline: 4px; | ||
padding-block: 6px; | ||
} |
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
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,23 @@ | ||
.root { | ||
margin-inline-start: var(--vkui--spacing_size_2xl); | ||
padding-inline-start: var(--vkui--spacing_size_2xl); | ||
border-inline-start: 1px solid var(--vkui_docs--color_stroke_separator_secondary); | ||
} | ||
|
||
/* stylelint-disable-next-line selector-max-type */ | ||
.root h2 { | ||
counter-increment: steps; | ||
} | ||
|
||
/* stylelint-disable-next-line selector-max-type */ | ||
.root h2::before { | ||
position: absolute; | ||
block-size: 28px; | ||
inline-size: 28px; | ||
font-size: 16px; | ||
text-align: center; | ||
content: counter(steps); | ||
border-radius: 50%; | ||
margin-inline-start: calc(-2 * var(--vkui--spacing_size_2xl)); | ||
background-color: var(--vkui--color_background); | ||
} |
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,10 @@ | ||
import * as React from 'react'; | ||
import styles from './Steps.module.css'; | ||
|
||
interface StepsProps { | ||
children: React.ReactNode; | ||
} | ||
|
||
export function Steps({ children }: StepsProps) { | ||
return <div className={styles.root}>{children}</div>; | ||
} |
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,8 @@ | ||
/* eslint-disable no-console */ | ||
import { HorizontalScroll } from '@vkontakte/vkui'; | ||
|
||
export function Test() { | ||
// @ts-expect-error: TS2345 fdg | ||
console.log('sdf', HorizontalScroll.__docgenInfo); | ||
return null; | ||
} |
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 |
---|---|---|
|
@@ -11,7 +11,6 @@ | |
-webkit-tap-highlight-color: transparent; | ||
} | ||
|
||
ol, | ||
ul, | ||
menu { | ||
list-style: none; | ||
|
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.