playbook_ui 9.14.1.alpha.radio.alignment → 9.14.1
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.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_radio/_radio.jsx +1 -3
- data/app/pb_kits/playbook/pb_radio/_radio.scss +0 -10
- data/app/pb_kits/playbook/pb_radio/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_radio/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_radio/radio.rb +1 -7
- data/lib/playbook/version.rb +1 -1
- metadata +14 -16
- data/app/pb_kits/playbook/pb_radio/docs/_radio_alignment.html.erb +0 -27
- data/app/pb_kits/playbook/pb_radio/docs/_radio_alignment.jsx +0 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac52100757b7a77673deacf90cb3c92c2c53e36611bea82739556081a7351f7a
|
4
|
+
data.tar.gz: 5cbd39cfdc2c35ee0002a908b2464b29461161a5f366861d733c0d998eea4b9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05a9cc1143df406e74845f19004c58c6db3a931f1a9295447930dc9376f17f4c17e81df3795e23308ac7d901b116d847462bc44666ca89b4178d8ed521260a10
|
7
|
+
data.tar.gz: 210590e03979d8be499c4f1596f47c9dca835b380efd6a9cfb1b643ebb84c6b7dc921f219e7fb2dce298c1b87591a1cc012c9f3546018778b9a0b1ab8644c3aa
|
@@ -9,7 +9,6 @@ import { globalProps } from '../utilities/globalProps.js'
|
|
9
9
|
|
10
10
|
type RadioProps = {
|
11
11
|
aria?: object,
|
12
|
-
alignment?: String,
|
13
12
|
checked?: Boolean,
|
14
13
|
children?: Node,
|
15
14
|
className?: String,
|
@@ -26,7 +25,6 @@ type RadioProps = {
|
|
26
25
|
|
27
26
|
const Radio = ({
|
28
27
|
aria = {},
|
29
|
-
alignment = '',
|
30
28
|
children,
|
31
29
|
className,
|
32
30
|
dark = false,
|
@@ -42,7 +40,7 @@ const Radio = ({
|
|
42
40
|
}: RadioProps, ref) => {
|
43
41
|
const ariaProps = buildAriaProps(aria)
|
44
42
|
const dataProps = buildDataProps(data)
|
45
|
-
const classes = classnames(buildCss('pb_radio_kit'), { error }, { dark }, globalProps(props),
|
43
|
+
const classes = classnames(buildCss('pb_radio_kit'), { error }, { dark }, globalProps(props), className)
|
46
44
|
|
47
45
|
return (
|
48
46
|
<label
|
@@ -5,8 +5,6 @@ require "action_view"
|
|
5
5
|
module Playbook
|
6
6
|
module PbRadio
|
7
7
|
class Radio < Playbook::KitBase
|
8
|
-
prop :alignment, type: Playbook::Props::String,
|
9
|
-
default: ""
|
10
8
|
prop :checked, type: Playbook::Props::Boolean,
|
11
9
|
default: false
|
12
10
|
prop :error, type: Playbook::Props::Boolean,
|
@@ -21,7 +19,7 @@ module Playbook
|
|
21
19
|
default: "radio_text"
|
22
20
|
|
23
21
|
def classname
|
24
|
-
generate_classname("pb_radio_kit") + error_class
|
22
|
+
generate_classname("pb_radio_kit") + error_class
|
25
23
|
end
|
26
24
|
|
27
25
|
def selected
|
@@ -37,10 +35,6 @@ module Playbook
|
|
37
35
|
def error_class
|
38
36
|
error ? " error" : ""
|
39
37
|
end
|
40
|
-
|
41
|
-
def alignment_class
|
42
|
-
alignment == "vertical" ? " vertical" : ""
|
43
|
-
end
|
44
38
|
end
|
45
39
|
end
|
46
40
|
end
|
data/lib/playbook/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: playbook_ui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.14.1
|
4
|
+
version: 9.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Power UX
|
8
8
|
- Power Devs
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-05-
|
12
|
+
date: 2021-05-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -299,22 +299,22 @@ dependencies:
|
|
299
299
|
name: rspec-rails
|
300
300
|
requirement: !ruby/object:Gem::Requirement
|
301
301
|
requirements:
|
302
|
-
- - "~>"
|
303
|
-
- !ruby/object:Gem::Version
|
304
|
-
version: '3.8'
|
305
302
|
- - ">="
|
306
303
|
- !ruby/object:Gem::Version
|
307
304
|
version: 3.8.0
|
305
|
+
- - "~>"
|
306
|
+
- !ruby/object:Gem::Version
|
307
|
+
version: '3.8'
|
308
308
|
type: :development
|
309
309
|
prerelease: false
|
310
310
|
version_requirements: !ruby/object:Gem::Requirement
|
311
311
|
requirements:
|
312
|
-
- - "~>"
|
313
|
-
- !ruby/object:Gem::Version
|
314
|
-
version: '3.8'
|
315
312
|
- - ">="
|
316
313
|
- !ruby/object:Gem::Version
|
317
314
|
version: 3.8.0
|
315
|
+
- - "~>"
|
316
|
+
- !ruby/object:Gem::Version
|
317
|
+
version: '3.8'
|
318
318
|
- !ruby/object:Gem::Dependency
|
319
319
|
name: rubocop
|
320
320
|
requirement: !ruby/object:Gem::Requirement
|
@@ -1536,8 +1536,6 @@ files:
|
|
1536
1536
|
- app/pb_kits/playbook/pb_radio/_radio.scss
|
1537
1537
|
- app/pb_kits/playbook/pb_radio/docs/_description.md
|
1538
1538
|
- app/pb_kits/playbook/pb_radio/docs/_footer.md
|
1539
|
-
- app/pb_kits/playbook/pb_radio/docs/_radio_alignment.html.erb
|
1540
|
-
- app/pb_kits/playbook/pb_radio/docs/_radio_alignment.jsx
|
1541
1539
|
- app/pb_kits/playbook/pb_radio/docs/_radio_custom.html.erb
|
1542
1540
|
- app/pb_kits/playbook/pb_radio/docs/_radio_custom.jsx
|
1543
1541
|
- app/pb_kits/playbook/pb_radio/docs/_radio_default.html.erb
|
@@ -2159,7 +2157,7 @@ homepage: http://playbook.powerapp.cloud
|
|
2159
2157
|
licenses:
|
2160
2158
|
- MIT
|
2161
2159
|
metadata: {}
|
2162
|
-
post_install_message:
|
2160
|
+
post_install_message:
|
2163
2161
|
rdoc_options: []
|
2164
2162
|
require_paths:
|
2165
2163
|
- lib
|
@@ -2170,12 +2168,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
2170
2168
|
version: '0'
|
2171
2169
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
2172
2170
|
requirements:
|
2173
|
-
- - "
|
2171
|
+
- - ">="
|
2174
2172
|
- !ruby/object:Gem::Version
|
2175
|
-
version:
|
2173
|
+
version: '0'
|
2176
2174
|
requirements: []
|
2177
|
-
rubygems_version: 3.
|
2178
|
-
signing_key:
|
2175
|
+
rubygems_version: 3.0.3
|
2176
|
+
signing_key:
|
2179
2177
|
specification_version: 4
|
2180
2178
|
summary: Playbook Design System
|
2181
2179
|
test_files: []
|
@@ -1,27 +0,0 @@
|
|
1
|
-
<%= pb_rails("flex") do %>
|
2
|
-
<%= pb_rails("radio", props: {
|
3
|
-
alignment: "vertical",
|
4
|
-
text: "Power",
|
5
|
-
input_options: {
|
6
|
-
tabindex: 0
|
7
|
-
},
|
8
|
-
margin_right: "sm",
|
9
|
-
name: "group 1",
|
10
|
-
value: "Power"
|
11
|
-
}) %>
|
12
|
-
|
13
|
-
<%= pb_rails("radio", props: {
|
14
|
-
alignment: "vertical",
|
15
|
-
text: "Nitro",
|
16
|
-
margin_right: "sm",
|
17
|
-
name: "group 1",
|
18
|
-
value: "Nitro"
|
19
|
-
}) %>
|
20
|
-
|
21
|
-
<%= pb_rails("radio", props: {
|
22
|
-
alignment: "vertical",
|
23
|
-
text: "Google",
|
24
|
-
name: "group 1",
|
25
|
-
value: "Google"
|
26
|
-
}) %>
|
27
|
-
<% end %>
|
@@ -1,36 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import { Flex, Radio } from '../../'
|
3
|
-
|
4
|
-
const RadioAlignment = () => {
|
5
|
-
return (
|
6
|
-
<Flex>
|
7
|
-
<Radio
|
8
|
-
alignment="vertical"
|
9
|
-
label="Power"
|
10
|
-
marginRight="sm"
|
11
|
-
name="Group2"
|
12
|
-
tabIndex={0}
|
13
|
-
value="Power"
|
14
|
-
/>
|
15
|
-
<br />
|
16
|
-
<Radio
|
17
|
-
alignment="vertical"
|
18
|
-
defaultChecked={false}
|
19
|
-
label="Nitro"
|
20
|
-
marginRight="sm"
|
21
|
-
name="Group2"
|
22
|
-
value="Nitro"
|
23
|
-
/>
|
24
|
-
<br />
|
25
|
-
<Radio
|
26
|
-
alignment="vertical"
|
27
|
-
defaultChecked={false}
|
28
|
-
label="Google"
|
29
|
-
name="Group2"
|
30
|
-
value="Google"
|
31
|
-
/>
|
32
|
-
</Flex>
|
33
|
-
)
|
34
|
-
}
|
35
|
-
|
36
|
-
export default RadioAlignment
|