playbook_ui 11.18.0.pre.alpha.pagutility1 → 11.18.0

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: fb0f4b600e88ebbcdc4d4c155a7d8cb7faa46eca1d832fc80e9e5759221076d2
4
- data.tar.gz: 7fdd9a62804fcac63d2694b3fc8838c23391c3e29dfaae9bd631fef8b3888afe
3
+ metadata.gz: 39519a8938c7fb8a9489e3be29b15fc9ace9caa5c6686328ca2e4b9e551aba91
4
+ data.tar.gz: 6534fa189af42de89d9a3f4df359ac402e1c0228ab675449cdf76d5dac001dbb
5
5
  SHA512:
6
- metadata.gz: 59d538351cbd81240e48d527f5a3f3b860960c30c87d2f772036098abadd587a98e0f05b716687e337de6351663e77216670258bcfaad4936b1e521144a386a1
7
- data.tar.gz: 2e6b4a3a58c2d79b2b03973feac6c509a49fcdca4a9fb46ccd5fb0c7e19b350dadbb6dcb80a8735d6d35d65f481b49399b1f2239520c5f0287fe5c58171204e4
6
+ metadata.gz: e85a07433af032820340c4f5e8e29ac807637c994350df2ef518afad3fe0c9cb09955aa10dcea2429242863af4f906fea5bf89d011fd0dfc2244ab4056a53a42
7
+ data.tar.gz: 0e1c3a2e97f4a36db0caf31debc8f04aa9434b0dc2627a99ff22ebfe67fe91a3be577bb91f2412dde9081874bc34995365721a09e4bf1eba1110bca1a31fe373
@@ -103,4 +103,3 @@
103
103
  @import './utilities/line_height';
104
104
  @import './utilities/display';
105
105
  @import './utilities/flexbox';
106
- @import './utilities/pagination';
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- PREVIOUS_VERSION = "11.18.0"
5
- VERSION = "11.18.0.pre.alpha.pagutility1"
4
+ PREVIOUS_VERSION = "11.17.0"
5
+ VERSION = "11.18.0"
6
6
  end
data/lib/playbook.rb CHANGED
@@ -12,7 +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
15
 
17
16
  module Playbook
18
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.18.0.pre.alpha.pagutility1
4
+ version: 11.18.0
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-13 00:00:00.000000000 Z
12
+ date: 2023-01-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -123,20 +123,6 @@ dependencies:
123
123
  - - "~>"
124
124
  - !ruby/object:Gem::Version
125
125
  version: 0.3.2
126
- - !ruby/object:Gem::Dependency
127
- name: will_paginate
128
- requirement: !ruby/object:Gem::Requirement
129
- requirements:
130
- - - "~>"
131
- - !ruby/object:Gem::Version
132
- version: '3.3'
133
- type: :runtime
134
- prerelease: false
135
- version_requirements: !ruby/object:Gem::Requirement
136
- requirements:
137
- - - "~>"
138
- - !ruby/object:Gem::Version
139
- version: '3.3'
140
126
  - !ruby/object:Gem::Dependency
141
127
  name: byebug
142
128
  requirement: !ruby/object:Gem::Requirement
@@ -2273,7 +2259,6 @@ files:
2273
2259
  - app/pb_kits/playbook/utilities/_max_width.scss
2274
2260
  - app/pb_kits/playbook/utilities/_mixins.scss
2275
2261
  - app/pb_kits/playbook/utilities/_number_spacing.scss
2276
- - app/pb_kits/playbook/utilities/_pagination.scss
2277
2262
  - app/pb_kits/playbook/utilities/_positioning.scss
2278
2263
  - app/pb_kits/playbook/utilities/_shadow.scss
2279
2264
  - app/pb_kits/playbook/utilities/_spacing.scss
@@ -2339,7 +2324,6 @@ files:
2339
2324
  - lib/playbook/markdown/template_handler.rb
2340
2325
  - lib/playbook/number_spacing.rb
2341
2326
  - lib/playbook/order.rb
2342
- - lib/playbook/pagination_renderer.rb
2343
2327
  - lib/playbook/pb_doc_helper.rb
2344
2328
  - lib/playbook/pb_forms_helper.rb
2345
2329
  - lib/playbook/pb_kit_helper.rb
@@ -2378,9 +2362,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
2378
2362
  version: '0'
2379
2363
  required_rubygems_version: !ruby/object:Gem::Requirement
2380
2364
  requirements:
2381
- - - ">"
2365
+ - - ">="
2382
2366
  - !ruby/object:Gem::Version
2383
- version: 1.3.1
2367
+ version: '0'
2384
2368
  requirements: []
2385
2369
  rubygems_version: 3.3.7
2386
2370
  signing_key:
@@ -1,68 +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
- li {
13
- display: inline;
14
- > a, li > span {
15
- padding: 7px 13px;
16
- text-decoration: none;
17
- margin-left: -1px;
18
- border: 0 !important;
19
- }}
20
- li:first-child > a, li:first-child > span {
21
- padding: 7px 13px;
22
- margin-left: .5px;
23
- border-right: 1px solid $border_light !important;
24
- z-index: 2;
25
- }
26
- li:last-child > a, li:last-child > span {
27
- padding: 7px 13px;
28
- margin-right: .5px;
29
- border-left: 1px solid $border_light !important;
30
- z-index: 2;
31
- }
32
- a {
33
- color: $text_lt_default !important;
34
- font-size: $text_small;
35
- font-weight: $regular;
36
- border: none;
37
-
38
- &:hover {
39
- background-color: $active_light;
40
- color: $primary !important;
41
- border-radius: $border_rad_light;
42
- }
43
-
44
- &:focus {
45
- outline: 1px solid $primary !important;
46
- border-radius: $border_rad_light;
47
- outline-offset: -1px;
48
- }
49
- }
50
- .active > span {
51
- background-color: $primary !important;
52
- border-radius: $border_rad_light;
53
- color: #fff;
54
- padding: 7px 10px;
55
- border: 0 !important;
56
- text-decoration: none;
57
- font-weight: $bold;
58
- font-size: $text_small;
59
-
60
- &:hover {
61
- box-shadow: $shadow_deeper;
62
- }
63
- }
64
- .disabled > span {
65
- padding: 7px 10px;
66
- font-size: $text_small;
67
- }
68
- }
@@ -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