@startupjs/docs 0.55.9 → 0.55.11
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/client/clientHelpers/hooks/index.js +0 -1
- package/client/components/Props/Constructor/Tr/index.js +2 -2
- package/client/components/Props/Constructor/Tr/index.styl +0 -4
- package/client/components/Props/Constructor/index.js +6 -7
- package/client/components/Props/Constructor/index.styl +1 -11
- package/client/components/Props/index.js +2 -3
- package/client/components/Props/index.styl +0 -10
- package/client/components/Sandbox/index.js +1 -4
- package/package.json +5 -5
- package/client/clientHelpers/hooks/useDarkTheme.js +0 -6
|
@@ -2,6 +2,5 @@ export { default as useLocalWithDefault } from './useLocalWithDefault'
|
|
|
2
2
|
export { default as useShowGrid } from './useShowGrid'
|
|
3
3
|
export { default as useShowSizes } from './useShowSizes'
|
|
4
4
|
export { default as useValidateWidth } from './useValidateWidth'
|
|
5
|
-
export { default as useDarkTheme } from './useDarkTheme'
|
|
6
5
|
export { default as useLocalStorage } from './useLocalStorage'
|
|
7
6
|
export { default as useLang } from './useLang'
|
|
@@ -3,8 +3,8 @@ import { pug, observer } from 'startupjs'
|
|
|
3
3
|
import { themed, Div } from '@startupjs/ui'
|
|
4
4
|
import './index.styl'
|
|
5
5
|
|
|
6
|
-
export default observer(themed(function Tr ({ children, style
|
|
6
|
+
export default observer(themed(function Tr ({ children, style }) {
|
|
7
7
|
return pug`
|
|
8
|
-
Div.root(style=style
|
|
8
|
+
Div.root(style=style)= children
|
|
9
9
|
`
|
|
10
10
|
}))
|
|
@@ -15,17 +15,16 @@ export default observer(themed(function Constructor ({
|
|
|
15
15
|
Component,
|
|
16
16
|
entries,
|
|
17
17
|
$props,
|
|
18
|
-
style
|
|
19
|
-
theme
|
|
18
|
+
style
|
|
20
19
|
}) {
|
|
21
20
|
return pug`
|
|
22
21
|
Table.table(style=style)
|
|
23
22
|
Thead.thead
|
|
24
23
|
Tr
|
|
25
|
-
Td: Span.header
|
|
26
|
-
Td: Span.header
|
|
27
|
-
Td: Span.header
|
|
28
|
-
Td: Span.header.right
|
|
24
|
+
Td: Span.header PROP
|
|
25
|
+
Td: Span.header TYPE
|
|
26
|
+
Td: Span.header DEFAULT
|
|
27
|
+
Td: Span.header.right VALUE
|
|
29
28
|
Tbody
|
|
30
29
|
each entry, index in entries
|
|
31
30
|
- const { name, type, defaultValue, possibleValues, isRequired } = entry
|
|
@@ -44,7 +43,7 @@ export default observer(themed(function Constructor ({
|
|
|
44
43
|
shape='rounded'
|
|
45
44
|
) Required
|
|
46
45
|
Td: TypeCell(possibleValues=possibleValues type=type)
|
|
47
|
-
Td: Span.value
|
|
46
|
+
Td: Span.value= JSON.stringify(defaultValue)
|
|
48
47
|
Td.vCenter: ValueCell(entry=entry $props=$props)
|
|
49
48
|
`
|
|
50
49
|
}))
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
$input = var(--color-border-main)
|
|
2
2
|
$header = var(--color-text-description)
|
|
3
|
-
$darkHeader = var(--color-text-on-contrast)
|
|
4
3
|
$value = var(--color-text-success)
|
|
5
4
|
$type = var(--color-text-info)
|
|
6
|
-
$valueDark = var(--color-text-success-strong)
|
|
7
|
-
$typeDark = var(--color-text-info-strong)
|
|
8
5
|
|
|
9
6
|
.header
|
|
10
7
|
font-size 12px
|
|
11
8
|
letter-spacing 1px
|
|
12
9
|
fontFamily('normal', 600)
|
|
13
10
|
color $header
|
|
11
|
+
|
|
14
12
|
&.right
|
|
15
13
|
text-align right
|
|
16
14
|
|
|
@@ -25,14 +23,6 @@ $typeDark = var(--color-text-info-strong)
|
|
|
25
23
|
color $type
|
|
26
24
|
font-style italic
|
|
27
25
|
|
|
28
|
-
.dark
|
|
29
|
-
&.header
|
|
30
|
-
color $darkHeader
|
|
31
|
-
&.value
|
|
32
|
-
color $valueDark
|
|
33
|
-
&.type
|
|
34
|
-
color $typeDark
|
|
35
|
-
|
|
36
26
|
.checkbox
|
|
37
27
|
align-self flex-end
|
|
38
28
|
|
|
@@ -79,7 +79,6 @@ export default observer(themed(function PComponent ({
|
|
|
79
79
|
showGrid,
|
|
80
80
|
validateWidth,
|
|
81
81
|
showSizes,
|
|
82
|
-
theme,
|
|
83
82
|
noScroll,
|
|
84
83
|
block: defaultBlock
|
|
85
84
|
}) {
|
|
@@ -115,14 +114,14 @@ export default observer(themed(function PComponent ({
|
|
|
115
114
|
|
|
116
115
|
return pug`
|
|
117
116
|
Div.root(style=style)
|
|
118
|
-
Div.top
|
|
117
|
+
Div.top
|
|
119
118
|
Constructor(
|
|
120
119
|
Component=Component
|
|
121
120
|
$props=$theProps
|
|
122
121
|
entries=entries
|
|
123
122
|
)
|
|
124
123
|
|
|
125
|
-
Div.bottom
|
|
124
|
+
Div.bottom
|
|
126
125
|
Wrapper
|
|
127
126
|
Renderer(
|
|
128
127
|
style=rendererStyle
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
$darkTopBg = var(--color-bg-contrast)
|
|
2
|
-
$darkBottomBg = var(--color-bg-contrast-alt)
|
|
3
|
-
|
|
4
1
|
.root
|
|
5
2
|
margin-top 2u
|
|
6
3
|
|
|
@@ -26,10 +23,3 @@ $darkBottomBg = var(--color-bg-contrast-alt)
|
|
|
26
23
|
|
|
27
24
|
.display
|
|
28
25
|
margin .5u 2u
|
|
29
|
-
|
|
30
|
-
.dark
|
|
31
|
-
&.top
|
|
32
|
-
background-color $darkTopBg
|
|
33
|
-
|
|
34
|
-
&.bottom
|
|
35
|
-
background-color $darkBottomBg
|
|
@@ -5,8 +5,7 @@ import Props from '../Props'
|
|
|
5
5
|
import {
|
|
6
6
|
useShowGrid,
|
|
7
7
|
useShowSizes,
|
|
8
|
-
useValidateWidth
|
|
9
|
-
useDarkTheme
|
|
8
|
+
useValidateWidth
|
|
10
9
|
} from '../../clientHelpers'
|
|
11
10
|
import './index.styl'
|
|
12
11
|
|
|
@@ -20,7 +19,6 @@ export default observer(function Sandbox ({
|
|
|
20
19
|
const [showGrid] = useShowGrid()
|
|
21
20
|
const [showSizes] = useShowSizes()
|
|
22
21
|
const [validateWidth] = useValidateWidth()
|
|
23
|
-
const [darkTheme] = useDarkTheme()
|
|
24
22
|
|
|
25
23
|
if (!Component) {
|
|
26
24
|
return pug`
|
|
@@ -32,7 +30,6 @@ export default observer(function Sandbox ({
|
|
|
32
30
|
Props.root(
|
|
33
31
|
Component=Component
|
|
34
32
|
$props=$props || getUniqModel(Component)
|
|
35
|
-
theme=darkTheme ? 'dark' : undefined
|
|
36
33
|
showSizes=showSizes
|
|
37
34
|
showGrid=showGrid
|
|
38
35
|
validateWidth=validateWidth
|
package/package.json
CHANGED
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
6
|
"description": "MDX documentation generator",
|
|
7
|
-
"version": "0.55.
|
|
7
|
+
"version": "0.55.11",
|
|
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.
|
|
13
|
-
"@startupjs/scrollable-anchors": "^0.55.
|
|
14
|
-
"@startupjs/ui": "^0.55.
|
|
12
|
+
"@startupjs/mdx": "^0.55.11",
|
|
13
|
+
"@startupjs/scrollable-anchors": "^0.55.11",
|
|
14
|
+
"@startupjs/ui": "^0.55.11",
|
|
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": "253c84e79e50a73a194c33fb3d17a22ddb1af58f"
|
|
23
23
|
}
|