playbook_ui 6.8.0 → 6.8.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9da1bcd99d97219437802ff40b916426aaf6323cd68d181b9a46fe25aec0dec0
|
|
4
|
+
data.tar.gz: d50d61ffa850d8b123972e6b0d2ff487b52950d633d17d73dc2ddaa6bbcc3239
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
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
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
|
|
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
|
-
|
|
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" }) +
|
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: 6.8.
|
|
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-
|
|
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
|
-
|
|
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
|