playbook_ui 6.8.0 → 6.8.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6bc146e07206b69308c1316fa9ff3dcd6b3193f6721e035234b4a9a41aae65f1
4
- data.tar.gz: 48cd02b771de4e7c839819d2c73697f0be832ec14d36165dc48e607e0bd6b36e
3
+ metadata.gz: 9da1bcd99d97219437802ff40b916426aaf6323cd68d181b9a46fe25aec0dec0
4
+ data.tar.gz: d50d61ffa850d8b123972e6b0d2ff487b52950d633d17d73dc2ddaa6bbcc3239
5
5
  SHA512:
6
- metadata.gz: 9d681d12080be950d2359c67549fb911a4c8a0b9fb0cfb83999b2f10486385ae2110394431c052a8ef6ee7dd0819a785492e684bff69aeb72395a3dd74b07f83
7
- data.tar.gz: bd02ad9656c149765e11620539559d311b02d9aec99038663282756109bf98e191aed834e2f6171aaac7725b475a4310d9559c58e4341e81207e10fb11769a33
6
+ metadata.gz: 0142e4cab59c32f367c4717477a373a6c405e0bfd2bb1d41a9fd6e7676d4a7947e6b59e62446e1916b57c0e3cf5b298e76a5871a07cd37d2d32a3142b4dc64d6
7
+ data.tar.gz: fd8280a71c9d8467a01a50fd94513b6543019d183d9736fd774a9029c213187e817c25ec5d96dfcf1cbe27c116899b17b3dd744dc04b4a6aebad5c9d125cbe30
data/README.md CHANGED
@@ -9,8 +9,7 @@ Playbook is the first design system built for both Rails & React interfaces. Ins
9
9
 
10
10
  ## Getting started
11
11
 
12
- 1. Run `make install`
13
- 1. Run `make start`
12
+ 1. Run `make it`
14
13
  1. Install overcommit hooks `bin/overcommit`
15
14
  1. open [http://localhost:8089](http://localhost:8089)
16
15
 
@@ -25,11 +25,14 @@
25
25
  <%= form.select :example_select, [ ["Yes", 1], ["No", 2] ], props: { label: true } %>
26
26
  <%= form.collection_select :example_collection_select, example_collection, :value, :name, props: { label: true } %>
27
27
  <%= form.check_box :example_checkbox,
28
- data: { field1: "value1", field2: "value2" },
29
- props: { text: "Example Checkbox", label: true },
30
- id: "checkbox-id",
31
- name: "checkbox-name",
32
- class: "checkbox-class" %>
28
+ data: { field1: "value1", field2: "value2" },
29
+ props: { text: "Example Checkbox", label: true },
30
+ checked_value: "yes",
31
+ unchecked_value: "no",
32
+ id: "checkbox-id",
33
+ name: "checkbox-name",
34
+ class: "checkbox-class"
35
+ %>
33
36
  <%= form.date_picker :example_date_picker1, props: { default_date: "blank" } %>
34
37
 
35
38
  <%= form.actions do |action| %>
@@ -4,13 +4,18 @@ module Playbook
4
4
  module PbForm
5
5
  module FormBuilder
6
6
  module CheckboxField
7
- def check_box(name, props: {}, **options, &block)
7
+ def check_box(name, props: {}, **options)
8
8
  label_text = @template.label(@object_name, name) if props[:label] == true
9
9
  options[:required] = true if props[:required]
10
10
  props[:margin_bottom] = "sm"
11
11
  props[:form_spacing] = true
12
12
 
13
- input = super(name, **options, &block)
13
+ checked_value = options[:checked_value]
14
+ unchecked_value = options[:unchecked_value]
15
+ options.delete(:checked_value)
16
+ options.delete(:unchecked_value)
17
+
18
+ input = super(name, options, checked_value, unchecked_value)
14
19
 
15
20
  if props[:label]
16
21
  @template.pb_rails("caption", props: { text: label_text, margin_bottom: "xs" }) +
@@ -34,4 +34,4 @@ module Playbook
34
34
  end
35
35
  end
36
36
  end
37
- end
37
+ end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Playbook
3
- VERSION = "6.8.0"
3
+ VERSION = "6.8.1"
4
4
  end
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: 6.8.0
4
+ version: 6.8.1
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-09-18 00:00:00.000000000 Z
12
+ date: 2020-09-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -1913,8 +1913,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1913
1913
  - !ruby/object:Gem::Version
1914
1914
  version: '0'
1915
1915
  requirements: []
1916
- rubyforge_project:
1917
- rubygems_version: 2.7.3
1916
+ rubygems_version: 3.1.4
1918
1917
  signing_key:
1919
1918
  specification_version: 4
1920
1919
  summary: Playbook Design System