@startupjs/docs 0.55.0-alpha.2 → 0.55.0-alpha.21

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
@@ -90,6 +90,6 @@ startupjs: >= 0.33.0
90
90
  />
91
91
  ```
92
92
 
93
- ## Licence
93
+ ## License
94
94
 
95
95
  MIT
@@ -35,7 +35,7 @@ const MenuItem = observer(function MenuItemComponent ({
35
35
  icon=faAngleRight
36
36
  iconStyleName='collapse-icon'
37
37
  )
38
- Menu.Item.item(
38
+ Menu.Item(
39
39
  style=menuItemStyle
40
40
  active=active
41
41
  to=doc.component ? rootPath : null
@@ -1,6 +1,6 @@
1
1
  import React from 'react'
2
2
  import { pug, observer, useValue, $ } from 'startupjs'
3
- import { Br, Input, Button, Modal, CssVariables, Palette, Colors } from '@startupjs/ui'
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.2",
7
+ "version": "0.55.0-alpha.21",
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.2",
13
- "@startupjs/scrollable-anchors": "^0.55.0-alpha.1",
14
- "@startupjs/ui": "^0.55.0-alpha.1",
12
+ "@startupjs/mdx": "^0.55.0-alpha.21",
13
+ "@startupjs/scrollable-anchors": "^0.55.0-alpha.21",
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": "704ad7052ef0e9092c5fade3090fd93f8446e6ad"
22
+ "gitHead": "dd258e5ef42d82acc57c1302927a29844c13bd5d"
23
23
  }
@@ -2,8 +2,7 @@ module.exports = {
2
2
  type: 'plugin',
3
3
  bundler: {
4
4
  forceCompile: {
5
- web: true,
6
- server: true
5
+ web: true
7
6
  }
8
7
  }
9
8
  }