playbook_ui 7.6.1.pre.alpha1 → 7.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/playbook/application_controller.rb +2 -0
  3. data/app/pb_kits/playbook/_playbook.scss +1 -1
  4. data/app/pb_kits/playbook/data/menu.yml +0 -1
  5. data/app/pb_kits/playbook/index.js +0 -1
  6. data/lib/playbook/version.rb +1 -1
  7. metadata +9 -28
  8. data/app/pb_kits/playbook/pb_form_group/_form_group.html.erb +0 -7
  9. data/app/pb_kits/playbook/pb_form_group/_form_group.jsx +0 -41
  10. data/app/pb_kits/playbook/pb_form_group/_form_group.scss +0 -115
  11. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_button.html.erb +0 -12
  12. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_button.jsx +0 -37
  13. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_date_picker.html.erb +0 -6
  14. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_date_picker.jsx +0 -19
  15. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_default.html.erb +0 -7
  16. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_default.jsx +0 -23
  17. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.html.erb +0 -19
  18. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_select.jsx +0 -33
  19. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card.html.erb +0 -21
  20. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card.jsx +0 -40
  21. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.html.erb +0 -19
  22. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_selectable_card_icon.jsx +0 -33
  23. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.html.erb +0 -14
  24. data/app/pb_kits/playbook/pb_form_group/docs/_form_group_typeahead.jsx +0 -30
  25. data/app/pb_kits/playbook/pb_form_group/docs/example.yml +0 -20
  26. data/app/pb_kits/playbook/pb_form_group/docs/index.js +0 -7
  27. 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: 8645bd9931edad76f05aac2674f11c26b15920a09e2dcf2b3708f309e65297fa
4
- data.tar.gz: 852f5f2272ea036a3a38938a36a99cc831d25dcb095fea62333b73886894503b
3
+ metadata.gz: '095c3b84bf47cd697cc4a552713abb36d3d3f7f0fc1e4f24e2fdb8410bc71e94'
4
+ data.tar.gz: 9ac0982eb7aaae63d9dcf5cc5284b3e2625612c5cb5bc8765e6466079d7b6bb9
5
5
  SHA512:
6
- metadata.gz: f8b81cb163993e12541a5587dc8a53dce6463ac28f9c7e72d0867c9e8d597b996545a5b337e4b1144ab7a728889318d8b759125e95c0f40581edcbaf03ec6967
7
- data.tar.gz: 6d1af0924dfca00114f92c74c05dfab201044f228052d7c8e29bb6c038dbd8abef9daa2cbfdf8ecb9aca97972e886286c8527ebaf69629a981b32b9df6dbc2b3
6
+ metadata.gz: ffb7cd9a02b42bd5f573a8555cd038a6fb999f3c799a192b714e3e9329ff7b90e501e4f81a711c59726d25ca29ecf88f10947a496ee237584218e10e1f51424a
7
+ data.tar.gz: 33601631109b944befa512e89e29a165251ea2ed6ca3f7dde5ce701dcc6e4a415bf730cffa3b2c37db65550983e12adec4880346b862959852a28418e0594990
@@ -8,4 +8,6 @@ module Playbook
8
8
  helper Playbook::PbSampleHelper
9
9
  append_view_path Playbook::Engine.root + "app/pb_kits"
10
10
  end
11
+
12
+
11
13
  end
@@ -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
+
@@ -22,7 +22,6 @@ kits:
22
22
  - date_picker
23
23
  - file_upload
24
24
  - form
25
- - form_group
26
25
  - form_pill
27
26
  - radio
28
27
  - select
@@ -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'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- VERSION = "7.6.1.pre.alpha1"
4
+ VERSION = "7.6.1"
5
5
  end
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: 7.6.1.pre.alpha1
4
+ version: 7.6.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: 2020-11-09 00:00:00.000000000 Z
12
+ date: 2020-11-07 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
@@ -1950,7 +1930,7 @@ homepage: http://playbook.powerapp.cloud
1950
1930
  licenses:
1951
1931
  - MIT
1952
1932
  metadata: {}
1953
- post_install_message:
1933
+ post_install_message:
1954
1934
  rdoc_options: []
1955
1935
  require_paths:
1956
1936
  - lib
@@ -1961,12 +1941,13 @@ 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: 1.3.1
1946
+ version: '0'
1967
1947
  requirements: []
1968
- rubygems_version: 3.1.4
1969
- signing_key:
1948
+ rubyforge_project:
1949
+ rubygems_version: 2.7.3
1950
+ signing_key:
1970
1951
  specification_version: 4
1971
1952
  summary: Playbook Design System
1972
1953
  test_files: []
@@ -1,7 +0,0 @@
1
- <%= content_tag(:div,
2
- aria: object.aria,
3
- class: object.classname,
4
- data: object.data,
5
- id: object.id) do %>
6
- <%= capture(&object.children) %>
7
- <% end %>
@@ -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,6 +0,0 @@
1
- <div>
2
- <%= pb_rails("form_group") do %>
3
- <%= pb_rails("text_input", props: { label: "Event", placeholder: "Event Name" }) %>
4
- <%= pb_rails("date_picker", props: { label: "Event Date", picker_id: "date-picker-default" }) %>
5
- <% end %>
6
- </div>
@@ -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'
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Playbook
4
- module PbFormGroup
5
- class FormGroup
6
- include Playbook::Props
7
-
8
- partial "pb_form_group/form_group"
9
-
10
- def classname
11
- generate_classname("pb_form_group_kit")
12
- end
13
- end
14
- end
15
- end