@startupjs/docs 0.41.5 → 0.42.0

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.
@@ -4,7 +4,7 @@ import { pathFor, useLocation } from 'startupjs/app'
4
4
  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
- import { faBars } from '@fortawesome/free-solid-svg-icons'
7
+ import { faBars, faSearch } from '@fortawesome/free-solid-svg-icons'
8
8
  import { APP_ENV } from '@env'
9
9
  import Sidebar, { SIDEBAR_PATH } from './Sidebar'
10
10
  import { useDocsContext } from '../../../docsContext'
@@ -70,6 +70,7 @@ const Search = observer(function Search () {
70
70
  value=value
71
71
  options=options
72
72
  placeholder='Search...'
73
+ inputIcon=faSearch
73
74
  renderItem=item => renderItem(item, pathname)
74
75
  onChange=onChange
75
76
  onChangeText=APP_ENV === 'detox' ? onChangeText : undefined
@@ -86,7 +87,7 @@ const Topbar = observer(function Topbar () {
86
87
 
87
88
  return pug`
88
89
  Row.topbar
89
- Button(testID='button' icon=faBars onPress=toggleSidebar color='darkLight')
90
+ Button(testID='button' variant='text' icon=faBars onPress=toggleSidebar color='darkLight')
90
91
  Div.searchWrapper
91
92
  Search
92
93
  `
@@ -1,5 +1,8 @@
1
1
  @require '../constants.styl'
2
2
 
3
+ $separatorColor = #ddd
4
+ $topbarBorderColor = #eee
5
+
3
6
  .layout
4
7
  background-color $UI.colors.white
5
8
 
@@ -7,18 +10,25 @@
7
10
  align-items center
8
11
  justify-content space-between
9
12
  border-bottom-width 1px
10
- border-bottom-color $UI.colors.darkLightest
13
+ border-bottom-color $topbarBorderColor
11
14
  height $TOPBAR_HEIGHT
12
15
  padding 0 1u
13
16
 
14
17
  .searchWrapper
15
18
  width 32u
19
+ border-left-width 1px
20
+ border-left-color $separatorColor
21
+ padding-left 2u
16
22
 
17
23
  +tablet()
18
24
  width 42u
19
25
 
20
26
  .search
21
27
  max-height 20u
28
+ &:part(input)
29
+ border none
30
+ &:part(icon)
31
+ color $UI.colors.darkLight
22
32
 
23
33
  .active
24
34
  color $UI.colors.primary
package/package.json CHANGED
@@ -4,14 +4,14 @@
4
4
  "access": "public"
5
5
  },
6
6
  "description": "MDX documentation generator",
7
- "version": "0.41.5",
7
+ "version": "0.42.0",
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.41.5",
13
- "@startupjs/scrollable-anchors": "^0.41.5",
14
- "@startupjs/ui": "^0.41.5",
12
+ "@startupjs/mdx": "^0.42.0",
13
+ "@startupjs/scrollable-anchors": "^0.42.0",
14
+ "@startupjs/ui": "^0.42.0",
15
15
  "parse-prop-types": "^0.3.0"
16
16
  },
17
17
  "peerDependencies": {
@@ -19,5 +19,5 @@
19
19
  "react-native": ">= 0.61.4 < 0.64.0",
20
20
  "startupjs": ">= 0.33.0"
21
21
  },
22
- "gitHead": "95f5c45e23d11659e397d0ca661d325427b575d4"
22
+ "gitHead": "c1f6702f87fc833d73ee693bb353304b9279a917"
23
23
  }