playbook_ui 5.2.0.pre.alpha10 → 5.2.0.pre.alpha11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/playbook/pb_kit_helper.rb +1 -0
- data/app/pb_kits/playbook/pb_foo/_foo.html.erb +7 -0
- data/app/pb_kits/playbook/pb_foo/_foo.jsx +39 -0
- data/app/pb_kits/playbook/pb_foo/_foo.scss +3 -0
- data/app/pb_kits/playbook/pb_foo/docs/_foo_default.html.erb +1 -0
- data/app/pb_kits/playbook/pb_foo/docs/_foo_default.jsx +10 -0
- data/app/pb_kits/playbook/pb_foo/docs/example.yml +9 -0
- data/app/pb_kits/playbook/pb_foo/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_foo/foo.rb +11 -0
- data/lib/playbook/version.rb +1 -1
- metadata +9 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba4b9d0302c466d8b09711cbf8c6692bd99a7d327e05af173b07c1b1b6442319
|
4
|
+
data.tar.gz: 6f588818479d2132e2113246a211bddb4d2dfc30c9ba7fd2a8c11513333e97a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41a7897836819170f2a3dd65afe40be337c59e54c4d67a3abe1822d5fb4af018ea173291d46a342138f6993c9c4cbbf435cc73838aef8f5bd56a94e34af068c7
|
7
|
+
data.tar.gz: d3251e65b92357d863a6a2a4814661c275852cc00515093bce1df595718298845ffef53e67c1362e7cc32f44e2250a1f40d80a045b42c1e9bad3ad28369f5213
|
@@ -0,0 +1,39 @@
|
|
1
|
+
/* @flow */
|
2
|
+
|
3
|
+
import React from 'react'
|
4
|
+
import classnames from 'classnames'
|
5
|
+
import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
|
6
|
+
import { spacing } from '../utilities/spacing.js'
|
7
|
+
|
8
|
+
type FooProps = {
|
9
|
+
aria?: object,
|
10
|
+
className?: String,
|
11
|
+
data?: object,
|
12
|
+
id?: String,
|
13
|
+
}
|
14
|
+
|
15
|
+
const Foo = (props: FooProps) => {
|
16
|
+
const {
|
17
|
+
aria = {},
|
18
|
+
className = 'test_foo',
|
19
|
+
data = {},
|
20
|
+
id,
|
21
|
+
} = props
|
22
|
+
|
23
|
+
const ariaProps = buildAriaProps(aria)
|
24
|
+
const dataProps = buildDataProps(data)
|
25
|
+
const classes = classnames(buildCss('pb_foo'), className, spacing(props))
|
26
|
+
|
27
|
+
return (
|
28
|
+
<div
|
29
|
+
{...ariaProps}
|
30
|
+
{...dataProps}
|
31
|
+
className={classes}
|
32
|
+
id={id}
|
33
|
+
>
|
34
|
+
{className}
|
35
|
+
</div>
|
36
|
+
)
|
37
|
+
}
|
38
|
+
|
39
|
+
export default Foo
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= pb_rails("foo") %>
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default as FooDefault } from './_foo_default.jsx'
|
data/lib/playbook/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: playbook_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.2.0.pre.
|
4
|
+
version: 5.2.0.pre.alpha11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Power UX
|
@@ -785,6 +785,14 @@ files:
|
|
785
785
|
- app/pb_kits/playbook/pb_flex/docs/index.js
|
786
786
|
- app/pb_kits/playbook/pb_flex/flex.rb
|
787
787
|
- app/pb_kits/playbook/pb_flex/flex_item.rb
|
788
|
+
- app/pb_kits/playbook/pb_foo/_foo.html.erb
|
789
|
+
- app/pb_kits/playbook/pb_foo/_foo.jsx
|
790
|
+
- app/pb_kits/playbook/pb_foo/_foo.scss
|
791
|
+
- app/pb_kits/playbook/pb_foo/docs/_foo_default.html.erb
|
792
|
+
- app/pb_kits/playbook/pb_foo/docs/_foo_default.jsx
|
793
|
+
- app/pb_kits/playbook/pb_foo/docs/example.yml
|
794
|
+
- app/pb_kits/playbook/pb_foo/docs/index.js
|
795
|
+
- app/pb_kits/playbook/pb_foo/foo.rb
|
788
796
|
- app/pb_kits/playbook/pb_form/_form.scss
|
789
797
|
- app/pb_kits/playbook/pb_form/_form_form_with.html.erb
|
790
798
|
- app/pb_kits/playbook/pb_form/_form_simple_form.html.erb
|