@startupjs/docs 0.55.0-alpha.10 → 0.55.0-alpha.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { pug, observer, useValue, $ } from 'startupjs'
|
|
3
|
-
import { Br, Input, Button, Modal
|
|
3
|
+
import { Br, Input, Button, Modal } from '@startupjs/ui'
|
|
4
4
|
import { faSlidersH } from '@fortawesome/free-solid-svg-icons'
|
|
5
5
|
import {
|
|
6
6
|
useShowGrid,
|
|
@@ -9,18 +9,6 @@ import {
|
|
|
9
9
|
} from '../../../../../clientHelpers'
|
|
10
10
|
import './index.styl'
|
|
11
11
|
|
|
12
|
-
const palette = new Palette()
|
|
13
|
-
const { Color, generateColors } = palette
|
|
14
|
-
|
|
15
|
-
const THEMES = {
|
|
16
|
-
dark: generateColors({
|
|
17
|
-
[Colors.bg]: Color('coolGray', 0),
|
|
18
|
-
[Colors.text]: Color('coolGray', 9),
|
|
19
|
-
[Colors.border]: Color('coolGray', 2),
|
|
20
|
-
[Colors.secondary]: Color('coolGray', 9)
|
|
21
|
-
})
|
|
22
|
-
}
|
|
23
|
-
|
|
24
12
|
export default observer(function Options ({
|
|
25
13
|
style
|
|
26
14
|
}) {
|
|
@@ -42,8 +30,6 @@ export default observer(function Options ({
|
|
|
42
30
|
}
|
|
43
31
|
|
|
44
32
|
return pug`
|
|
45
|
-
if theme !== 'light'
|
|
46
|
-
CssVariables(meta=THEMES[theme])
|
|
47
33
|
Button(
|
|
48
34
|
style=style
|
|
49
35
|
icon=faSlidersH
|
|
@@ -5,7 +5,6 @@ import { AutoSuggest, Button, Div, Layout, Menu, Row, Span } from '@startupjs/ui
|
|
|
5
5
|
import { MDXProvider } from '@startupjs/mdx'
|
|
6
6
|
import { ScrollableProvider } from '@startupjs/scrollable-anchors'
|
|
7
7
|
import { faBars, faSearch } from '@fortawesome/free-solid-svg-icons'
|
|
8
|
-
import { APP_ENV } from '@env'
|
|
9
8
|
import Sidebar, { SIDEBAR_PATH } from './Sidebar'
|
|
10
9
|
import { useDocsContext } from '../../../docsContext'
|
|
11
10
|
import { useLang, getTitle } from '../../clientHelpers'
|
|
@@ -57,14 +56,6 @@ const Search = observer(function Search () {
|
|
|
57
56
|
emit('url', value.value)
|
|
58
57
|
}
|
|
59
58
|
|
|
60
|
-
function onChangeText (value) {
|
|
61
|
-
const testComponentUrlRegExp = /^\/test\//
|
|
62
|
-
|
|
63
|
-
if (testComponentUrlRegExp.test(value)) {
|
|
64
|
-
return emit('url', value)
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
59
|
return pug`
|
|
69
60
|
AutoSuggest.search(
|
|
70
61
|
testID='searchInput'
|
|
@@ -74,7 +65,6 @@ const Search = observer(function Search () {
|
|
|
74
65
|
inputIcon=faSearch
|
|
75
66
|
renderItem=item => renderItem(item, pathname)
|
|
76
67
|
onChange=onChange
|
|
77
|
-
onChangeText=APP_ENV === 'detox' ? onChangeText : undefined
|
|
78
68
|
)
|
|
79
69
|
`
|
|
80
70
|
})
|
package/package.json
CHANGED
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"description": "MDX documentation generator",
|
|
7
|
-
"version": "0.55.0-alpha.
|
|
7
|
+
"version": "0.55.0-alpha.12",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"main": "index.js",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@fortawesome/free-solid-svg-icons": "^5.12.0",
|
|
12
|
-
"@startupjs/mdx": "^0.55.0-alpha.
|
|
13
|
-
"@startupjs/scrollable-anchors": "^0.55.0-alpha.
|
|
14
|
-
"@startupjs/ui": "^0.55.0-alpha.
|
|
12
|
+
"@startupjs/mdx": "^0.55.0-alpha.12",
|
|
13
|
+
"@startupjs/scrollable-anchors": "^0.55.0-alpha.12",
|
|
14
|
+
"@startupjs/ui": "^0.55.0-alpha.12",
|
|
15
15
|
"parse-prop-types": "^0.3.0"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
@@ -19,5 +19,5 @@
|
|
|
19
19
|
"react-native": "*",
|
|
20
20
|
"startupjs": "*"
|
|
21
21
|
},
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "d9fdf45341ca733978cdc4fa2562055922e0c2ed"
|
|
23
23
|
}
|