playbook_ui 11.19.0 → 11.20.0.pre.alpha.passthrough1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/_playbook.scss +1 -0
- data/app/pb_kits/playbook/data/menu.yml +1 -0
- data/app/pb_kits/playbook/pb_body/_body.scss +10 -1
- data/app/pb_kits/playbook/pb_body/docs/_body_styled.html.erb +9 -0
- data/app/pb_kits/playbook/pb_body/docs/_body_styled.jsx +20 -0
- data/app/pb_kits/playbook/pb_body/docs/_body_styled.md +1 -0
- data/app/pb_kits/playbook/pb_body/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_body/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_checkbox/_checkbox.tsx +7 -7
- data/app/pb_kits/playbook/pb_dialog/_dialog.scss +69 -3
- data/app/pb_kits/playbook/pb_dialog/_dialog.tsx +1 -1
- data/app/pb_kits/playbook/pb_dialog/dialog.rb +1 -1
- data/app/pb_kits/playbook/pb_dialog/dialog.test.jsx +12 -0
- data/app/pb_kits/playbook/pb_file_upload/_file_upload.tsx +5 -4
- data/app/pb_kits/playbook/pb_file_upload/docs/_description.md +2 -3
- data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_custom_message.jsx +40 -0
- data/app/pb_kits/playbook/pb_file_upload/docs/example.yml +2 -2
- data/app/pb_kits/playbook/pb_file_upload/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_file_upload/fileupload.test.js +12 -0
- data/app/pb_kits/playbook/pb_paginate/_paginate.scss +69 -0
- data/app/pb_kits/playbook/pb_paginate/docs/_paginate_default.html.erb +19 -0
- data/app/pb_kits/playbook/pb_paginate/docs/example.yml +6 -0
- data/app/pb_kits/playbook/pb_paginate/paginate.html.erb +5 -0
- data/app/pb_kits/playbook/pb_paginate/paginate.rb +19 -0
- data/app/pb_kits/playbook/pb_radio/_radio.tsx +4 -4
- data/app/pb_kits/playbook/pb_select/_select.scss +1 -1
- data/app/pb_kits/playbook/pb_selectable_card/{_selectable_card.jsx → _selectable_card.tsx} +47 -42
- data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_default.jsx +1 -2
- data/app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_single_select.jsx +1 -1
- data/app/pb_kits/playbook/pb_selectable_card/selectable_card.test.js +185 -0
- data/app/pb_kits/playbook/pb_selectable_icon/{_selectable_icon.jsx → _selectable_icon.tsx} +29 -32
- data/app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_default.jsx +1 -5
- data/app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_single_select.jsx +1 -4
- data/app/pb_kits/playbook/pb_selectable_icon/selectable_icon.test.js +148 -0
- data/lib/playbook/pagination_renderer.rb +41 -0
- data/lib/playbook/version.rb +2 -2
- data/lib/playbook.rb +2 -0
- metadata +32 -6
@@ -0,0 +1,41 @@
|
|
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
|
data/lib/playbook/version.rb
CHANGED
data/lib/playbook.rb
CHANGED
@@ -12,6 +12,8 @@ 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
|
15
17
|
|
16
18
|
module Playbook
|
17
19
|
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.
|
4
|
+
version: 11.20.0.pre.alpha.passthrough1
|
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-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|
@@ -269,6 +269,20 @@ 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
|
272
286
|
description: Playbook Design System. Built for Nitro, but powering all.
|
273
287
|
email:
|
274
288
|
- nitroux@powerhrg.com
|
@@ -397,6 +411,9 @@ files:
|
|
397
411
|
- app/pb_kits/playbook/pb_body/docs/_body_light.html.erb
|
398
412
|
- app/pb_kits/playbook/pb_body/docs/_body_light.jsx
|
399
413
|
- app/pb_kits/playbook/pb_body/docs/_body_light.md
|
414
|
+
- app/pb_kits/playbook/pb_body/docs/_body_styled.html.erb
|
415
|
+
- app/pb_kits/playbook/pb_body/docs/_body_styled.jsx
|
416
|
+
- app/pb_kits/playbook/pb_body/docs/_body_styled.md
|
400
417
|
- app/pb_kits/playbook/pb_body/docs/_description.md
|
401
418
|
- app/pb_kits/playbook/pb_body/docs/_footer.md
|
402
419
|
- app/pb_kits/playbook/pb_body/docs/example.yml
|
@@ -887,6 +904,7 @@ files:
|
|
887
904
|
- app/pb_kits/playbook/pb_file_upload/docs/_file_upload_accept.jsx
|
888
905
|
- app/pb_kits/playbook/pb_file_upload/docs/_file_upload_custom_description.jsx
|
889
906
|
- app/pb_kits/playbook/pb_file_upload/docs/_file_upload_custom_description.md
|
907
|
+
- app/pb_kits/playbook/pb_file_upload/docs/_file_upload_custom_message.jsx
|
890
908
|
- app/pb_kits/playbook/pb_file_upload/docs/_file_upload_default.jsx
|
891
909
|
- app/pb_kits/playbook/pb_file_upload/docs/_file_upload_max_size.jsx
|
892
910
|
- app/pb_kits/playbook/pb_file_upload/docs/example.yml
|
@@ -1463,6 +1481,11 @@ files:
|
|
1463
1481
|
- app/pb_kits/playbook/pb_online_status/docs/index.js
|
1464
1482
|
- app/pb_kits/playbook/pb_online_status/online_status.html.erb
|
1465
1483
|
- 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
|
1466
1489
|
- app/pb_kits/playbook/pb_passphrase/_passphrase.jsx
|
1467
1490
|
- app/pb_kits/playbook/pb_passphrase/_passphrase.scss
|
1468
1491
|
- app/pb_kits/playbook/pb_passphrase/docs/_passphrase_breached.html.erb
|
@@ -1699,8 +1722,8 @@ files:
|
|
1699
1722
|
- app/pb_kits/playbook/pb_select/select.html.erb
|
1700
1723
|
- app/pb_kits/playbook/pb_select/select.rb
|
1701
1724
|
- app/pb_kits/playbook/pb_select/select.test.js
|
1702
|
-
- app/pb_kits/playbook/pb_selectable_card/_selectable_card.jsx
|
1703
1725
|
- app/pb_kits/playbook/pb_selectable_card/_selectable_card.scss
|
1726
|
+
- app/pb_kits/playbook/pb_selectable_card/_selectable_card.tsx
|
1704
1727
|
- app/pb_kits/playbook/pb_selectable_card/docs/_description.md
|
1705
1728
|
- app/pb_kits/playbook/pb_selectable_card/docs/_footer.md
|
1706
1729
|
- app/pb_kits/playbook/pb_selectable_card/docs/_selectable_card_block.html.erb
|
@@ -1725,6 +1748,7 @@ files:
|
|
1725
1748
|
- app/pb_kits/playbook/pb_selectable_card/docs/index.js
|
1726
1749
|
- app/pb_kits/playbook/pb_selectable_card/selectable_card.html.erb
|
1727
1750
|
- app/pb_kits/playbook/pb_selectable_card/selectable_card.rb
|
1751
|
+
- app/pb_kits/playbook/pb_selectable_card/selectable_card.test.js
|
1728
1752
|
- app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.jsx
|
1729
1753
|
- app/pb_kits/playbook/pb_selectable_card_icon/_selectable_card_icon.scss
|
1730
1754
|
- app/pb_kits/playbook/pb_selectable_card_icon/docs/_selectable_card_icon_checkmark.html.erb
|
@@ -1738,8 +1762,8 @@ files:
|
|
1738
1762
|
- app/pb_kits/playbook/pb_selectable_card_icon/docs/index.js
|
1739
1763
|
- app/pb_kits/playbook/pb_selectable_card_icon/selectable_card_icon.html.erb
|
1740
1764
|
- app/pb_kits/playbook/pb_selectable_card_icon/selectable_card_icon.rb
|
1741
|
-
- app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.jsx
|
1742
1765
|
- app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.scss
|
1766
|
+
- app/pb_kits/playbook/pb_selectable_icon/_selectable_icon.tsx
|
1743
1767
|
- app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_default.html.erb
|
1744
1768
|
- app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_default.jsx
|
1745
1769
|
- app/pb_kits/playbook/pb_selectable_icon/docs/_selectable_icon_options.html.erb
|
@@ -1749,6 +1773,7 @@ files:
|
|
1749
1773
|
- app/pb_kits/playbook/pb_selectable_icon/docs/index.js
|
1750
1774
|
- app/pb_kits/playbook/pb_selectable_icon/selectable_icon.html.erb
|
1751
1775
|
- app/pb_kits/playbook/pb_selectable_icon/selectable_icon.rb
|
1776
|
+
- app/pb_kits/playbook/pb_selectable_icon/selectable_icon.test.js
|
1752
1777
|
- app/pb_kits/playbook/pb_selectable_list/_item.jsx
|
1753
1778
|
- app/pb_kits/playbook/pb_selectable_list/_selectable_list.jsx
|
1754
1779
|
- app/pb_kits/playbook/pb_selectable_list/_selectable_list.scss
|
@@ -2326,6 +2351,7 @@ files:
|
|
2326
2351
|
- lib/playbook/markdown/template_handler.rb
|
2327
2352
|
- lib/playbook/number_spacing.rb
|
2328
2353
|
- lib/playbook/order.rb
|
2354
|
+
- lib/playbook/pagination_renderer.rb
|
2329
2355
|
- lib/playbook/pb_doc_helper.rb
|
2330
2356
|
- lib/playbook/pb_forms_helper.rb
|
2331
2357
|
- lib/playbook/pb_kit_helper.rb
|
@@ -2364,9 +2390,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
2364
2390
|
version: '0'
|
2365
2391
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
2366
2392
|
requirements:
|
2367
|
-
- - "
|
2393
|
+
- - ">"
|
2368
2394
|
- !ruby/object:Gem::Version
|
2369
|
-
version:
|
2395
|
+
version: 1.3.1
|
2370
2396
|
requirements: []
|
2371
2397
|
rubygems_version: 3.3.7
|
2372
2398
|
signing_key:
|