playbook_ui 7.6.2.pre.alpha1 → 7.6.2
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/controllers/playbook/application_controller.rb +2 -0
- data/app/pb_kits/playbook/_playbook.scss +1 -1
- data/app/pb_kits/playbook/data/menu.yml +0 -1
- data/app/pb_kits/playbook/index.js +0 -1
- data/lib/playbook/version.rb +1 -1
- metadata +6 -25
- data/app/pb_kits/playbook/pb_form_group/_form_group.html.erb +0 -7
- data/app/pb_kits/playbook/pb_form_group/_form_group.jsx +0 -41
- data/app/pb_kits/playbook/pb_form_group/_form_group.scss +0 -115
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_button.html.erb +0 -12
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_button.jsx +0 -37
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_date_picker.html.erb +0 -6
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_date_picker.jsx +0 -19
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_default.html.erb +0 -7
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_default.jsx +0 -23
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.html.erb +0 -19
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.jsx +0 -33
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card.html.erb +0 -21
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card.jsx +0 -40
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.html.erb +0 -19
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx +0 -33
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.html.erb +0 -14
- data/app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx +0 -30
- data/app/pb_kits/playbook/pb_form_group/docs/example.yml +0 -20
- data/app/pb_kits/playbook/pb_form_group/docs/index.js +0 -7
- data/app/pb_kits/playbook/pb_form_group/form_group.rb +0 -15
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b124452c10f7f722f9d15d662527e76ae235356edb7398a90e2bfcff89205fec
|
|
4
|
+
data.tar.gz: 8e8ed4219d374e3168265e2aefb514556c8ad0c80f8621081b7e9c41f53f63bf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1cc1adf796061cd899d8386c3a16b5c1c7fce37ebda42f22e6cde607045d330daedfd6726c38322068de0763f268c44c8f46c30f10316151fdf101547799cf29
|
|
7
|
+
data.tar.gz: 46ab1fb6a46fb339dd98a7d21736baacbfe9feabfce2168aafba85fd072a46c34a4e38c9518ce325d65c1211b2db5dcb0dc0344781d571ca54021ef7109866c5
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
@import 'pb_filter/filter';
|
|
30
30
|
@import 'pb_fixed_confirmation_toast/fixed_confirmation_toast';
|
|
31
31
|
@import 'pb_form/form';
|
|
32
|
-
@import 'pb_form_group/form_group';
|
|
33
32
|
@import 'pb_form_pill/form_pill';
|
|
34
33
|
@import 'pb_flex/flex';
|
|
35
34
|
@import 'pb_gauge/gauge';
|
|
@@ -87,3 +86,4 @@
|
|
|
87
86
|
@import 'pb_time_stacked/time_stacked';
|
|
88
87
|
@import 'pb_weekday_stacked/weekday_stacked';
|
|
89
88
|
@import './utilities/spacing';
|
|
89
|
+
|
|
@@ -33,7 +33,6 @@ export Filter from './pb_filter/_filter.jsx'
|
|
|
33
33
|
export FixedConfirmationToast from './pb_fixed_confirmation_toast/_fixed_confirmation_toast.jsx'
|
|
34
34
|
export Flex from './pb_flex/_flex.jsx'
|
|
35
35
|
export FlexItem from './pb_flex/_flex_item.jsx'
|
|
36
|
-
export FormGroup from './pb_form_group/_form_group.jsx'
|
|
37
36
|
export FormPill from './pb_form_pill/_form_pill.jsx'
|
|
38
37
|
export Gauge from './pb_gauge/_gauge.jsx'
|
|
39
38
|
export Hashtag from './pb_hashtag/_hashtag.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: 7.6.2
|
|
4
|
+
version: 7.6.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Power UX
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2020-11-
|
|
12
|
+
date: 2020-11-09 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: actionpack
|
|
@@ -940,26 +940,6 @@ files:
|
|
|
940
940
|
- app/pb_kits/playbook/pb_form/form_builder/simple_form_builder.rb
|
|
941
941
|
- app/pb_kits/playbook/pb_form/form_builder/typeahead_field.rb
|
|
942
942
|
- app/pb_kits/playbook/pb_form/pb_form_validation.js
|
|
943
|
-
- app/pb_kits/playbook/pb_form_group/_form_group.html.erb
|
|
944
|
-
- app/pb_kits/playbook/pb_form_group/_form_group.jsx
|
|
945
|
-
- app/pb_kits/playbook/pb_form_group/_form_group.scss
|
|
946
|
-
- app/pb_kits/playbook/pb_form_group/docs/_form_group_button.html.erb
|
|
947
|
-
- app/pb_kits/playbook/pb_form_group/docs/_form_group_button.jsx
|
|
948
|
-
- app/pb_kits/playbook/pb_form_group/docs/_form_group_date_picker.html.erb
|
|
949
|
-
- app/pb_kits/playbook/pb_form_group/docs/_form_group_date_picker.jsx
|
|
950
|
-
- app/pb_kits/playbook/pb_form_group/docs/_form_group_default.html.erb
|
|
951
|
-
- app/pb_kits/playbook/pb_form_group/docs/_form_group_default.jsx
|
|
952
|
-
- app/pb_kits/playbook/pb_form_group/docs/_form_group_select.html.erb
|
|
953
|
-
- app/pb_kits/playbook/pb_form_group/docs/_form_group_select.jsx
|
|
954
|
-
- app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card.html.erb
|
|
955
|
-
- app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card.jsx
|
|
956
|
-
- app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.html.erb
|
|
957
|
-
- app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx
|
|
958
|
-
- app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.html.erb
|
|
959
|
-
- app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx
|
|
960
|
-
- app/pb_kits/playbook/pb_form_group/docs/example.yml
|
|
961
|
-
- app/pb_kits/playbook/pb_form_group/docs/index.js
|
|
962
|
-
- app/pb_kits/playbook/pb_form_group/form_group.rb
|
|
963
943
|
- app/pb_kits/playbook/pb_form_pill/_form_pill.html.erb
|
|
964
944
|
- app/pb_kits/playbook/pb_form_pill/_form_pill.jsx
|
|
965
945
|
- app/pb_kits/playbook/pb_form_pill/_form_pill.scss
|
|
@@ -1961,11 +1941,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
1961
1941
|
version: '0'
|
|
1962
1942
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1963
1943
|
requirements:
|
|
1964
|
-
- - "
|
|
1944
|
+
- - ">="
|
|
1965
1945
|
- !ruby/object:Gem::Version
|
|
1966
|
-
version:
|
|
1946
|
+
version: '0'
|
|
1967
1947
|
requirements: []
|
|
1968
|
-
|
|
1948
|
+
rubyforge_project:
|
|
1949
|
+
rubygems_version: 2.7.3
|
|
1969
1950
|
signing_key:
|
|
1970
1951
|
specification_version: 4
|
|
1971
1952
|
summary: Playbook Design System
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/* @flow */
|
|
2
|
-
|
|
3
|
-
import React from 'react'
|
|
4
|
-
import classnames from 'classnames'
|
|
5
|
-
import { buildAriaProps, buildCss, buildDataProps } from '../utilities/props'
|
|
6
|
-
import { globalProps } from '../utilities/globalProps.js'
|
|
7
|
-
|
|
8
|
-
type FormGroupProps = {
|
|
9
|
-
aria?: object,
|
|
10
|
-
children?: Node,
|
|
11
|
-
className?: string,
|
|
12
|
-
data?: object,
|
|
13
|
-
id?: string
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
const FormGroup = (props: FormGroupProps) => {
|
|
17
|
-
const {
|
|
18
|
-
aria = {},
|
|
19
|
-
className,
|
|
20
|
-
data = {},
|
|
21
|
-
id,
|
|
22
|
-
children,
|
|
23
|
-
} = props
|
|
24
|
-
|
|
25
|
-
const ariaProps = buildAriaProps(aria)
|
|
26
|
-
const dataProps = buildDataProps(data)
|
|
27
|
-
const classes = classnames(buildCss('pb_form_group_kit'), globalProps(props), className)
|
|
28
|
-
|
|
29
|
-
return (
|
|
30
|
-
<div
|
|
31
|
-
{...ariaProps}
|
|
32
|
-
{...dataProps}
|
|
33
|
-
className={classes}
|
|
34
|
-
id={id}
|
|
35
|
-
>
|
|
36
|
-
{children}
|
|
37
|
-
</div>
|
|
38
|
-
)
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export default FormGroup
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
[class^=pb_form_group_kit] {
|
|
2
|
-
display: inline-flex;
|
|
3
|
-
flex-direction: row;
|
|
4
|
-
align-items: flex-end;
|
|
5
|
-
justify-content: flex-start;
|
|
6
|
-
|
|
7
|
-
& [class^=pb_text_input_kit] .text_input_wrapper,
|
|
8
|
-
& [class^=pb_date_picker_kit] .input_wrapper,
|
|
9
|
-
& [class^=pb_select] {
|
|
10
|
-
margin-bottom: 0;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
& > [class^=pb_text_input_kit]:not(:last-child) {
|
|
14
|
-
.text_input_wrapper input, [class^=pb_text_input_kit] .text_input_wrapper .text_input {
|
|
15
|
-
border-bottom-right-radius: 0;
|
|
16
|
-
border-top-right-radius: 0;
|
|
17
|
-
border-right-width: 0;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
& > [class^=pb_text_input_kit]:not(:first-child) {
|
|
22
|
-
.text_input_wrapper input, [class^=pb_text_input_kit] .text_input_wrapper .text_input {
|
|
23
|
-
border-bottom-left-radius: 0;
|
|
24
|
-
border-top-left-radius: 0;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
& > [class^=pb_button_kit]:not(:last-child) {
|
|
29
|
-
border-bottom-right-radius: 0;
|
|
30
|
-
border-top-right-radius: 0;
|
|
31
|
-
min-height: 45px;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
& > [class^=pb_button_kit]:not(:first-child) {
|
|
35
|
-
border-bottom-left-radius: 0;
|
|
36
|
-
border-top-left-radius: 0;
|
|
37
|
-
border-left-width: 0;
|
|
38
|
-
min-height: 45px;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
& > [class^=pb_date_picker_kit]:not(:last-child) {
|
|
42
|
-
.text_input_wrapper input, [class^=pb_text_input_kit] .text_input_wrapper .flatpickr-wrapper {
|
|
43
|
-
border-bottom-right-radius: 0;
|
|
44
|
-
border-top-right-radius: 0;
|
|
45
|
-
border-right-width: 0;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
& > [class^=pb_date_picker_kit]:not(:first-child) {
|
|
50
|
-
.text_input_wrapper input, [class^=pb_text_input_kit] .text_input_wrapper .flatpickr-wrapper {
|
|
51
|
-
border-bottom-left-radius: 0;
|
|
52
|
-
border-top-left-radius: 0;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
& > [class^=pb_select]:not(:last-child) {
|
|
57
|
-
margin-bottom: 0px;
|
|
58
|
-
.pb_select_kit_wrapper select {
|
|
59
|
-
border-bottom-right-radius: 0;
|
|
60
|
-
border-top-right-radius: 0;
|
|
61
|
-
border-right-width: 0;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
& > [class^=pb_select]:not(:first-child) {
|
|
66
|
-
margin-bottom: 0px;
|
|
67
|
-
.pb_select_kit_wrapper select {
|
|
68
|
-
border-bottom-left-radius: 0;
|
|
69
|
-
border-top-left-radius: 0;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
& > [class^=pb_selectable_card_kit]:not(:last-child) label {
|
|
74
|
-
border-bottom-right-radius: 0;
|
|
75
|
-
border-top-right-radius: 0;
|
|
76
|
-
border-right-width: 0;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
& > [class^=pb_selectable_card_kit]:not(:first-child) label {
|
|
80
|
-
border-bottom-left-radius: 0;
|
|
81
|
-
border-top-left-radius: 0;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
& > [class^=pb_selectable_card_icon_kit]:not(:last-child) [class^=pb_selectable_card_kit] label {
|
|
85
|
-
border-bottom-right-radius: 0;
|
|
86
|
-
border-top-right-radius: 0;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
& > [class^=pb_selectable_card_icon_kit]:not(:first-child) [class^=pb_selectable_card_kit] label {
|
|
90
|
-
border-bottom-left-radius: 0;
|
|
91
|
-
border-top-left-radius: 0;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
& > [class^=pb_selectable_card_icon_kit]:not(:last-child) {
|
|
95
|
-
[class^=pb_selectable_card_kit] input[type="checkbox"]:not(:checked) ~ label, [class^=pb_selectable_card_kit] input[type="radio"]:not(:checked)~ label {
|
|
96
|
-
border-right-width: 0;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
& > [class^=pb_typeahead_kit]:not(:last-child) {
|
|
101
|
-
[class^=pb_text_input_kit] .text_input_wrapper input, [class^=pb_text_input_kit] .text_input_wrapper .text_input {
|
|
102
|
-
border-bottom-right-radius: 0;
|
|
103
|
-
border-top-right-radius: 0;
|
|
104
|
-
border-right-width: 0;
|
|
105
|
-
min-height: 26px;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
& > [class^=pb_typeahead_kit]:not(:first-child) {
|
|
110
|
-
[class^=pb_text_input_kit] .text_input_wrapper input, [class^=pb_text_input_kit] .text_input_wrapper .text_input {
|
|
111
|
-
border-bottom-left-radius: 0;
|
|
112
|
-
border-top-left-radius: 0;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
<div>
|
|
2
|
-
<%= pb_rails("form_group") do %>
|
|
3
|
-
<%= pb_rails("text_input", props: { label: "with label", placeholder: "Search" }) %>
|
|
4
|
-
<%= pb_rails("button", props: { text: "Submit", variant: "secondary" }) %>
|
|
5
|
-
<% end %>
|
|
6
|
-
<br/>
|
|
7
|
-
<br/>
|
|
8
|
-
<%= pb_rails("form_group") do %>
|
|
9
|
-
<%= pb_rails("text_input", props: { placeholder: "Search" }) %>
|
|
10
|
-
<%= pb_rails("button", props: { text: "Submit", variant: "secondary" }) %>
|
|
11
|
-
<% end %>
|
|
12
|
-
</div>
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { Button, FormGroup, TextInput } from '../../'
|
|
3
|
-
|
|
4
|
-
const FormGroupButton = (props) => (
|
|
5
|
-
<div>
|
|
6
|
-
<div>
|
|
7
|
-
<FormGroup>
|
|
8
|
-
<TextInput
|
|
9
|
-
label="With Label"
|
|
10
|
-
placeholder="Search"
|
|
11
|
-
/>
|
|
12
|
-
<Button
|
|
13
|
-
onClick={() => alert('Button Clicked!')}
|
|
14
|
-
text="Submit"
|
|
15
|
-
variant="secondary"
|
|
16
|
-
{...props}
|
|
17
|
-
/>
|
|
18
|
-
</FormGroup>
|
|
19
|
-
</div>
|
|
20
|
-
<br />
|
|
21
|
-
<div>
|
|
22
|
-
<FormGroup>
|
|
23
|
-
<TextInput
|
|
24
|
-
placeholder="Search"
|
|
25
|
-
/>
|
|
26
|
-
<Button
|
|
27
|
-
onClick={() => alert('Button Clicked!')}
|
|
28
|
-
text="Submit"
|
|
29
|
-
variant="secondary"
|
|
30
|
-
{...props}
|
|
31
|
-
/>
|
|
32
|
-
</FormGroup>
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
)
|
|
36
|
-
|
|
37
|
-
export default FormGroupButton
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { DatePicker, FormGroup, TextInput } from '../../'
|
|
3
|
-
|
|
4
|
-
const FormGroupDatePicker = () => (
|
|
5
|
-
<div>
|
|
6
|
-
<FormGroup>
|
|
7
|
-
<TextInput
|
|
8
|
-
label="Event"
|
|
9
|
-
placeholder="Event Name"
|
|
10
|
-
/>
|
|
11
|
-
<DatePicker
|
|
12
|
-
label="event date"
|
|
13
|
-
pickerId="date-picker-default"
|
|
14
|
-
/>
|
|
15
|
-
</FormGroup>
|
|
16
|
-
</div>
|
|
17
|
-
)
|
|
18
|
-
|
|
19
|
-
export default FormGroupDatePicker
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
<div>
|
|
2
|
-
<%= pb_rails("form_group") do %>
|
|
3
|
-
<%= pb_rails("text_input", props: { label: "First Name", placeholder: "Enter First Name" }) %>
|
|
4
|
-
<%= pb_rails("text_input", props: { label: "Middle Intial", placeholder: "Enter Middle Initial" }) %>
|
|
5
|
-
<%= pb_rails("text_input", props: { label: "Last Name", placeholder: "Enter Last Name" }) %>
|
|
6
|
-
<% end %>
|
|
7
|
-
</div>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { FormGroup, TextInput } from '../../'
|
|
3
|
-
|
|
4
|
-
const FormGroupDefault = () => (
|
|
5
|
-
<div>
|
|
6
|
-
<FormGroup>
|
|
7
|
-
<TextInput
|
|
8
|
-
label="First Name"
|
|
9
|
-
placeholder="Enter First Name"
|
|
10
|
-
/>
|
|
11
|
-
<TextInput
|
|
12
|
-
label="Middle Intial"
|
|
13
|
-
placeholder="Enter Middle Initial"
|
|
14
|
-
/>
|
|
15
|
-
<TextInput
|
|
16
|
-
label="Last Name"
|
|
17
|
-
placeholder="Enter Last Name"
|
|
18
|
-
/>
|
|
19
|
-
</FormGroup>
|
|
20
|
-
</div>
|
|
21
|
-
)
|
|
22
|
-
|
|
23
|
-
export default FormGroupDefault
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<div>
|
|
2
|
-
<%= pb_rails("form_group") do %>
|
|
3
|
-
<%= pb_rails("text_input", props: { label: "Artist", placeholder: "Enter Artist Name" }) %>
|
|
4
|
-
<%= pb_rails("select", props: {
|
|
5
|
-
blank_selection: "Select Genre",
|
|
6
|
-
options: [
|
|
7
|
-
{ value: "Country" },
|
|
8
|
-
{ value: "Pop" },
|
|
9
|
-
{ value: "Rock" },
|
|
10
|
-
{ value: "Hip-Hop/Rap" },
|
|
11
|
-
{ value: "Classical" },
|
|
12
|
-
{ value: "Gospel" },
|
|
13
|
-
{ value: "Alternative" },
|
|
14
|
-
{ value: "Indie" },
|
|
15
|
-
{ value: "Other" },
|
|
16
|
-
]
|
|
17
|
-
}) %>
|
|
18
|
-
<% end %>
|
|
19
|
-
</div>
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { FormGroup, Select, TextInput } from '../../'
|
|
3
|
-
|
|
4
|
-
const FormGroupSelect = () => {
|
|
5
|
-
const options = [
|
|
6
|
-
{ value: 'Country' },
|
|
7
|
-
{ value: 'Pop' },
|
|
8
|
-
{ value: 'Rock' },
|
|
9
|
-
{ value: 'Hip-Hop/Rap' },
|
|
10
|
-
{ value: 'Classical' },
|
|
11
|
-
{ value: 'Gospel' },
|
|
12
|
-
{ value: 'Alternative' },
|
|
13
|
-
{ value: 'Indie' },
|
|
14
|
-
{ value: 'Other' },
|
|
15
|
-
]
|
|
16
|
-
|
|
17
|
-
return (
|
|
18
|
-
<div>
|
|
19
|
-
<FormGroup>
|
|
20
|
-
<TextInput
|
|
21
|
-
label="Artist"
|
|
22
|
-
placeholder="Enter Artist Name"
|
|
23
|
-
/>
|
|
24
|
-
<Select
|
|
25
|
-
blankSelection="Select Genre"
|
|
26
|
-
options={options}
|
|
27
|
-
/>
|
|
28
|
-
</FormGroup>
|
|
29
|
-
</div>
|
|
30
|
-
)
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export default FormGroupSelect
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<div>
|
|
2
|
-
<%= pb_rails("form_group") do %>
|
|
3
|
-
<%= pb_rails("selectable_card", props: {
|
|
4
|
-
input_id: "cat1",
|
|
5
|
-
name: "animal",
|
|
6
|
-
value: "cat",
|
|
7
|
-
multi: false
|
|
8
|
-
}) do %>
|
|
9
|
-
Cat
|
|
10
|
-
<% end %>
|
|
11
|
-
|
|
12
|
-
<%= pb_rails("selectable_card", props: {
|
|
13
|
-
input_id: "dog1",
|
|
14
|
-
name: "animal",
|
|
15
|
-
value: "dog",
|
|
16
|
-
multi: false
|
|
17
|
-
}) do %>
|
|
18
|
-
Dog
|
|
19
|
-
<% end %>
|
|
20
|
-
<% end %>
|
|
21
|
-
</div>
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react'
|
|
2
|
-
import { FormGroup, SelectableCard } from '../../'
|
|
3
|
-
|
|
4
|
-
const FormGroupSelectableCard = () => {
|
|
5
|
-
const [value, setValue] = useState('')
|
|
6
|
-
|
|
7
|
-
const handleSelect = (event) => {
|
|
8
|
-
setValue(event.target.value)
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
return (
|
|
12
|
-
<div>
|
|
13
|
-
<FormGroup>
|
|
14
|
-
<SelectableCard
|
|
15
|
-
checked={value === 'cat'}
|
|
16
|
-
inputId="cat1"
|
|
17
|
-
multi={false}
|
|
18
|
-
name="animal"
|
|
19
|
-
onChange={handleSelect}
|
|
20
|
-
value="cat"
|
|
21
|
-
>
|
|
22
|
-
{'Cat'}
|
|
23
|
-
</SelectableCard>
|
|
24
|
-
|
|
25
|
-
<SelectableCard
|
|
26
|
-
checked={value === 'dog'}
|
|
27
|
-
inputId="dog1"
|
|
28
|
-
multi={false}
|
|
29
|
-
name="animal"
|
|
30
|
-
onChange={handleSelect}
|
|
31
|
-
value="dog"
|
|
32
|
-
>
|
|
33
|
-
{'Dog'}
|
|
34
|
-
</SelectableCard>
|
|
35
|
-
</FormGroup>
|
|
36
|
-
</div>
|
|
37
|
-
)
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export default FormGroupSelectableCard
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<div>
|
|
2
|
-
<%= pb_rails("form_group") do %>
|
|
3
|
-
<%= pb_rails("selectable_card_icon", props: {
|
|
4
|
-
icon: "basketball-ball",
|
|
5
|
-
title_text: "Basketball",
|
|
6
|
-
input_id: 7,
|
|
7
|
-
multi: false,
|
|
8
|
-
name: "select",
|
|
9
|
-
}) %>
|
|
10
|
-
|
|
11
|
-
<%= pb_rails("selectable_card_icon", props: {
|
|
12
|
-
icon: "football-ball",
|
|
13
|
-
title_text: "Football",
|
|
14
|
-
input_id: 8,
|
|
15
|
-
multi: false,
|
|
16
|
-
name: "select",
|
|
17
|
-
}) %>
|
|
18
|
-
<% end %>
|
|
19
|
-
</div>
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import React, { useState } from 'react'
|
|
2
|
-
import { FormGroup, SelectableCardIcon } from '../../'
|
|
3
|
-
|
|
4
|
-
const FormGroupSelectableCardIcon = () => {
|
|
5
|
-
const [selectedFormat, toggleFormat] = useState(null)
|
|
6
|
-
|
|
7
|
-
return (
|
|
8
|
-
<div>
|
|
9
|
-
<FormGroup>
|
|
10
|
-
<SelectableCardIcon
|
|
11
|
-
checked={selectedFormat === 'basketball'}
|
|
12
|
-
icon="basketball-ball"
|
|
13
|
-
inputId={7}
|
|
14
|
-
name="select"
|
|
15
|
-
onChange={() => toggleFormat('basketball')}
|
|
16
|
-
titleText="Basketball"
|
|
17
|
-
value="basketball"
|
|
18
|
-
/>
|
|
19
|
-
<SelectableCardIcon
|
|
20
|
-
checked={selectedFormat === 'football'}
|
|
21
|
-
icon="football-ball"
|
|
22
|
-
inputId={8}
|
|
23
|
-
name="select"
|
|
24
|
-
onChange={() => toggleFormat('football')}
|
|
25
|
-
titleText="Football"
|
|
26
|
-
value="football"
|
|
27
|
-
/>
|
|
28
|
-
</FormGroup>
|
|
29
|
-
</div>
|
|
30
|
-
)
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export default FormGroupSelectableCardIcon
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<div>
|
|
2
|
-
<%= pb_rails("form_group") do %>
|
|
3
|
-
<%= pb_rails("typeahead", props: {
|
|
4
|
-
label: "Products",
|
|
5
|
-
options: [
|
|
6
|
-
{ label: 'Windows', value: 'windows' },
|
|
7
|
-
{ label: 'Roof', value: 'roof' },
|
|
8
|
-
{ label: 'Siding', value: 'siding' },
|
|
9
|
-
{ label: 'Doors', value: 'doors' },
|
|
10
|
-
]
|
|
11
|
-
}) %>
|
|
12
|
-
<%= pb_rails("button", props: { text: "Add", variant: "secondary" }) %>
|
|
13
|
-
<% end %>
|
|
14
|
-
</div>
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import { Button, FormGroup, Typeahead } from '../../'
|
|
3
|
-
|
|
4
|
-
const FormGroupTypeahead = (props) => {
|
|
5
|
-
const options = [
|
|
6
|
-
{ label: 'Windows', value: 'windows' },
|
|
7
|
-
{ label: 'Roof', value: 'roof' },
|
|
8
|
-
{ label: 'Siding', value: 'siding' },
|
|
9
|
-
{ label: 'Doors', value: 'doors' },
|
|
10
|
-
]
|
|
11
|
-
|
|
12
|
-
return (
|
|
13
|
-
<div>
|
|
14
|
-
<FormGroup>
|
|
15
|
-
<Typeahead
|
|
16
|
-
label="Products"
|
|
17
|
-
options={options}
|
|
18
|
-
/>
|
|
19
|
-
<Button
|
|
20
|
-
onClick={() => alert('Button Clicked!')}
|
|
21
|
-
text="Add"
|
|
22
|
-
variant="secondary"
|
|
23
|
-
{...props}
|
|
24
|
-
/>
|
|
25
|
-
</FormGroup>
|
|
26
|
-
</div>
|
|
27
|
-
)
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export default FormGroupTypeahead
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
examples:
|
|
2
|
-
|
|
3
|
-
rails:
|
|
4
|
-
- form_group_default: Default
|
|
5
|
-
- form_group_button: Button
|
|
6
|
-
- form_group_date_picker: Date Picker
|
|
7
|
-
- form_group_typeahead: Typeahead
|
|
8
|
-
- form_group_select: Select
|
|
9
|
-
- form_group_selectable_card: Selectable Card
|
|
10
|
-
- form_group_selectable_card_icon: Selectable Card Icon
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
react:
|
|
14
|
-
- form_group_default: Default
|
|
15
|
-
- form_group_button: Button
|
|
16
|
-
- form_group_date_picker: Date Picker
|
|
17
|
-
- form_group_typeahead: Typeahead
|
|
18
|
-
- form_group_select: Select
|
|
19
|
-
- form_group_selectable_card: Selectable Card
|
|
20
|
-
- form_group_selectable_card_icon: Selectable Card Icon
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { default as FormGroupDefault } from './_form_group_default.jsx'
|
|
2
|
-
export { default as FormGroupButton } from './_form_group_button.jsx'
|
|
3
|
-
export { default as FormGroupDatePicker } from './_form_group_date_picker.jsx'
|
|
4
|
-
export { default as FormGroupTypeahead } from './_form_group_typeahead.jsx'
|
|
5
|
-
export { default as FormGroupSelect } from './_form_group_select.jsx'
|
|
6
|
-
export { default as FormGroupSelectableCard } from './_form_group_selectable_card.jsx'
|
|
7
|
-
export { default as FormGroupSelectableCardIcon } from './_form_group_selectable_card_icon.jsx'
|