playbook_ui 11.20.0.pre.alpha.passthrough1 → 11.20.0.pre.alpha.railsdialog1
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/_playbook.scss +0 -1
- data/app/pb_kits/playbook/data/menu.yml +0 -1
- data/app/pb_kits/playbook/pb_dialog/_dialog.scss +1 -0
- data/lib/playbook/version.rb +1 -1
- data/lib/playbook.rb +0 -2
- metadata +2 -22
- data/app/pb_kits/playbook/pb_paginate/_paginate.scss +0 -69
- data/app/pb_kits/playbook/pb_paginate/docs/_paginate_default.html.erb +0 -19
- data/app/pb_kits/playbook/pb_paginate/docs/example.yml +0 -6
- data/app/pb_kits/playbook/pb_paginate/paginate.html.erb +0 -5
- data/app/pb_kits/playbook/pb_paginate/paginate.rb +0 -19
- data/lib/playbook/pagination_renderer.rb +0 -41
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 270f21bddaa2e5f8a2e2bfb4426ce26083f89c21fd219c068fc4e3f643589748
|
4
|
+
data.tar.gz: b8cc815cc03a09ef95173a42b1f7c52bb2f000d010923c3930be1fc45b1c767e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e6487ff9f39df73b1a3cf95cd6be02b82978be031a21f8b4c022daecee81e08ac01105facd9d92293be13de4fdd65f4c2fe3d7688736ee5de6dafca4be1e41c
|
7
|
+
data.tar.gz: 428c54f40b19703257dabe224279a0229769f89832985864d95411b6b8c0d9dee7806f5bfd19615285abf5f0598eada9af239bbf501fb8888ac5c56a80eeb00f
|
@@ -56,7 +56,6 @@
|
|
56
56
|
@import 'pb_multiple_users_stacked/multiple_users_stacked';
|
57
57
|
@import 'pb_nav/nav';
|
58
58
|
@import 'pb_online_status/online_status';
|
59
|
-
@import 'pb_paginate/paginate';
|
60
59
|
@import 'pb_passphrase/passphrase';
|
61
60
|
@import 'pb_person/person';
|
62
61
|
@import 'pb_person_contact/person_contact';
|
@@ -316,6 +316,7 @@
|
|
316
316
|
// fixes for stylesheets in nitro that were conflicting with our kit. DO NOT REMOVE.
|
317
317
|
//conflicts were only apparent in nitro, not in playbook local env
|
318
318
|
.pb_dialog_rails {
|
319
|
+
position: fixed !important;
|
319
320
|
top: 0 !important;
|
320
321
|
padding: unset !important;
|
321
322
|
margin: auto;
|
data/lib/playbook/version.rb
CHANGED
data/lib/playbook.rb
CHANGED
@@ -12,8 +12,6 @@ require "playbook/pb_doc_helper"
|
|
12
12
|
require "playbook/kit_base"
|
13
13
|
require "playbook/kit_resolver"
|
14
14
|
require "playbook/markdown"
|
15
|
-
# require "playbook/pagination_renderer"
|
16
|
-
# REMOVED TO MAKE THIS AN OPTIONAL INCLUDE FOR CLIENTS
|
17
15
|
|
18
16
|
module Playbook
|
19
17
|
ROOT_PATH = Pathname.new(File.join(__dir__, ".."))
|
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: 11.20.0.pre.alpha.
|
4
|
+
version: 11.20.0.pre.alpha.railsdialog1
|
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: 2023-01-
|
12
|
+
date: 2023-01-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -269,20 +269,6 @@ dependencies:
|
|
269
269
|
- - '='
|
270
270
|
- !ruby/object:Gem::Version
|
271
271
|
version: 1.2018.9
|
272
|
-
- !ruby/object:Gem::Dependency
|
273
|
-
name: will_paginate
|
274
|
-
requirement: !ruby/object:Gem::Requirement
|
275
|
-
requirements:
|
276
|
-
- - '='
|
277
|
-
- !ruby/object:Gem::Version
|
278
|
-
version: 3.3.1
|
279
|
-
type: :development
|
280
|
-
prerelease: false
|
281
|
-
version_requirements: !ruby/object:Gem::Requirement
|
282
|
-
requirements:
|
283
|
-
- - '='
|
284
|
-
- !ruby/object:Gem::Version
|
285
|
-
version: 3.3.1
|
286
272
|
description: Playbook Design System. Built for Nitro, but powering all.
|
287
273
|
email:
|
288
274
|
- nitroux@powerhrg.com
|
@@ -1481,11 +1467,6 @@ files:
|
|
1481
1467
|
- app/pb_kits/playbook/pb_online_status/docs/index.js
|
1482
1468
|
- app/pb_kits/playbook/pb_online_status/online_status.html.erb
|
1483
1469
|
- app/pb_kits/playbook/pb_online_status/online_status.rb
|
1484
|
-
- app/pb_kits/playbook/pb_paginate/_paginate.scss
|
1485
|
-
- app/pb_kits/playbook/pb_paginate/docs/_paginate_default.html.erb
|
1486
|
-
- app/pb_kits/playbook/pb_paginate/docs/example.yml
|
1487
|
-
- app/pb_kits/playbook/pb_paginate/paginate.html.erb
|
1488
|
-
- app/pb_kits/playbook/pb_paginate/paginate.rb
|
1489
1470
|
- app/pb_kits/playbook/pb_passphrase/_passphrase.jsx
|
1490
1471
|
- app/pb_kits/playbook/pb_passphrase/_passphrase.scss
|
1491
1472
|
- app/pb_kits/playbook/pb_passphrase/docs/_passphrase_breached.html.erb
|
@@ -2351,7 +2332,6 @@ files:
|
|
2351
2332
|
- lib/playbook/markdown/template_handler.rb
|
2352
2333
|
- lib/playbook/number_spacing.rb
|
2353
2334
|
- lib/playbook/order.rb
|
2354
|
-
- lib/playbook/pagination_renderer.rb
|
2355
2335
|
- lib/playbook/pb_doc_helper.rb
|
2356
2336
|
- lib/playbook/pb_forms_helper.rb
|
2357
2337
|
- lib/playbook/pb_kit_helper.rb
|
@@ -1,69 +0,0 @@
|
|
1
|
-
@import "../tokens/colors";
|
2
|
-
@import "../tokens/typography";
|
3
|
-
@import "../tokens/border_radius";
|
4
|
-
@import "../tokens/shadows";
|
5
|
-
|
6
|
-
.pb_pagination {
|
7
|
-
display: inline-block;
|
8
|
-
border-radius: $border_rad_light;
|
9
|
-
border: 1px solid $border_light;
|
10
|
-
background-color: $white;
|
11
|
-
padding: 3px 0px 3.6px 0px;
|
12
|
-
margin: 10px 0;
|
13
|
-
li {
|
14
|
-
display: inline;
|
15
|
-
> a, li > span {
|
16
|
-
padding: 7px 13px;
|
17
|
-
text-decoration: none;
|
18
|
-
margin-left: -1px;
|
19
|
-
border: 0 !important;
|
20
|
-
}}
|
21
|
-
li:first-child > a, li:first-child > span {
|
22
|
-
padding: 7px 13px;
|
23
|
-
margin-left: .5px;
|
24
|
-
border-right: 1px solid $border_light !important;
|
25
|
-
z-index: 2;
|
26
|
-
}
|
27
|
-
li:last-child > a, li:last-child > span {
|
28
|
-
padding: 7px 13px;
|
29
|
-
margin-right: .5px;
|
30
|
-
border-left: 1px solid $border_light !important;
|
31
|
-
z-index: 2;
|
32
|
-
}
|
33
|
-
a {
|
34
|
-
color: $text_lt_default !important;
|
35
|
-
font-size: $text_small;
|
36
|
-
font-weight: $regular;
|
37
|
-
border: none;
|
38
|
-
|
39
|
-
&:hover {
|
40
|
-
background-color: $active_light;
|
41
|
-
color: $primary !important;
|
42
|
-
border-radius: $border_rad_light;
|
43
|
-
}
|
44
|
-
|
45
|
-
&:focus {
|
46
|
-
outline: 1px solid $primary !important;
|
47
|
-
border-radius: $border_rad_light;
|
48
|
-
outline-offset: -1px;
|
49
|
-
}
|
50
|
-
}
|
51
|
-
.active > span {
|
52
|
-
background-color: $primary !important;
|
53
|
-
border-radius: $border_rad_light;
|
54
|
-
color: #fff;
|
55
|
-
padding: 7px 13px;
|
56
|
-
border: 0 !important;
|
57
|
-
text-decoration: none;
|
58
|
-
font-weight: $bold;
|
59
|
-
font-size: $text_small;
|
60
|
-
|
61
|
-
&:hover {
|
62
|
-
box-shadow: $shadow_deeper;
|
63
|
-
}
|
64
|
-
}
|
65
|
-
.disabled > span {
|
66
|
-
padding: 7px 10px;
|
67
|
-
font-size: $text_small;
|
68
|
-
}
|
69
|
-
}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
<%= pb_rails("title", props: { size: 4, text: "Default will_paginate"}) %>
|
2
|
-
<%= will_paginate @users %>
|
3
|
-
<%= pb_rails("body") do %>
|
4
|
-
You need to add: <code> require 'will_paginate'</code> in your app to use.
|
5
|
-
<% end %>
|
6
|
-
<br><br>
|
7
|
-
|
8
|
-
<%= pb_rails("title", props: { size: 4, text: "Playbook Renderer"}) %>
|
9
|
-
<%= will_paginate @users, renderer: Playbook::Pagination::Rails %>
|
10
|
-
<%= pb_rails("body") do %>
|
11
|
-
You need to also add: <code>require "playbook/pagination_renderer"</code> in your app to use.
|
12
|
-
<% end %>
|
13
|
-
<br><br>
|
14
|
-
|
15
|
-
<%= pb_rails("title", props: { size: 4, text: "Playbook Kit (Passthrough)"}) %>
|
16
|
-
<%= pb_rails("paginate", props: { strategy: "will_paginate", model: @users, view: self }) %>
|
17
|
-
<%= pb_rails("body") do %>
|
18
|
-
Same...You need to also add: <code>require "playbook/pagination_renderer"</code> in your app to use.
|
19
|
-
<% end %>
|
@@ -1,19 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module Playbook
|
4
|
-
module PbPaginate
|
5
|
-
class Paginate < ::Playbook::KitBase
|
6
|
-
prop :strategy # Need to add protection
|
7
|
-
prop :model # Need to add protection
|
8
|
-
prop :view # Need to add protection
|
9
|
-
|
10
|
-
def classname
|
11
|
-
generate_classname("pb_paginate")
|
12
|
-
end
|
13
|
-
|
14
|
-
def url_for(options = nil)
|
15
|
-
view.url_for(options)
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
@@ -1,41 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require "will_paginate/view_helpers/action_view"
|
4
|
-
|
5
|
-
module Playbook
|
6
|
-
module Pagination
|
7
|
-
class Rails < WillPaginate::ActionView::LinkRenderer
|
8
|
-
def container_attributes
|
9
|
-
{ class: "pb_pagination" }
|
10
|
-
end
|
11
|
-
|
12
|
-
def page_number(page)
|
13
|
-
if page == current_page
|
14
|
-
tag("li", tag("span", page), class: "active")
|
15
|
-
else
|
16
|
-
tag("li", link(page, page, rel: rel_value(page)))
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
def previous_or_next_page(page, text, classname)
|
21
|
-
if page
|
22
|
-
tag("li", link(text, page), class: classname)
|
23
|
-
else
|
24
|
-
tag("li", tag("span", text), class: "%s disabled")
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
def gap; end
|
29
|
-
|
30
|
-
def previous_page
|
31
|
-
num = @collection.current_page > 1 && @collection.current_page - 1
|
32
|
-
previous_or_next_page(num, "<i class='far fa-chevron-left fa-xs'></i>", "prev")
|
33
|
-
end
|
34
|
-
|
35
|
-
def next_page
|
36
|
-
num = @collection.current_page < @collection.total_pages && @collection.current_page + 1
|
37
|
-
previous_or_next_page(num, "<i class='far fa-chevron-right fa-xs'></i>", "next")
|
38
|
-
end
|
39
|
-
end
|
40
|
-
end
|
41
|
-
end
|