playbook_ui 12.35.0.pre.alpha.iconpocwebfonts1023 → 12.35.0

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: f37e0af8c1e76bc928e58612e41499b306f81bbde1935ff1175750d099e17d9c
4
- data.tar.gz: 8e71ee2f5da0e0c3656d4da4577a5d1252941192902587d416afc3610b37c225
3
+ metadata.gz: 9b982d7d15691df84bc2a32b4f67b5dab67cf90ab7f9fc072ebfd4d81b800684
4
+ data.tar.gz: 293f1da6a6611a18106a6f0f1a3cccf2edc2520657ff5f17f3e06a2b74de7839
5
5
  SHA512:
6
- metadata.gz: 3198daf878227a793bbee0e9c41e1a3451e5d9e9cdc25c9f5cd78d81aaa0135b314d54c020fcbfbb6ff6296331e31c12e1618ec4b432d36e505c7823aef6e1b2
7
- data.tar.gz: afb451764ee139fd5b42152d275d689fc26cc0d158f49ef123cd8f42c99f1cccabbf63271cc8b9b0f1a117fb3a25088f5b83ccd95e53d4dc374534920f2d91cb
6
+ metadata.gz: 46f096f0c12c8c764ab72c44ff5fd42f0bc8c547c6807a2ae06dae1e073c055abbbfae072144524ddeeba99e2397d7deaa81b9f64cb07b904b2582b636c4da9b
7
+ data.tar.gz: 992a01e77be2823afea2e8e8ece093d84114fb0e85a3e58bb1dc57a50d8ff4f86fb3ccaae38f16d8554de1334285463b155bb28b28c2bccbbb1969e21af4807e
@@ -114,5 +114,3 @@
114
114
  @import './utilities/hover';
115
115
 
116
116
  @import 'pb_multi_level_select/multi_level_select';
117
-
118
-
@@ -9,7 +9,6 @@ examples:
9
9
  - icon_sizes: Icon Sizes
10
10
  - icon_custom: Icon Custom
11
11
  - icon_fa_kit: Icon with FontAwesome Kit
12
- - icon_font: Bring Your Own Icon Font
13
12
 
14
13
  react:
15
14
  - icon_default: Icon Default
@@ -2,28 +2,14 @@
2
2
  <%= object.render_svg(object.custom_icon) %>
3
3
  <% elsif object.valid_emoji(object.icon) %>
4
4
  <span class="pb_icon_kit_emoji"><%= object.icon.html_safe %></span>
5
- <% elsif object.font_family.present? %>
6
- <%= content_tag(:i, nil,
7
- id: object.id,
8
- data: object.data,
9
- class: object.icon_font_classname,
10
- style:
11
- "font-family: #{object.font_family.to_s};font-size: #{object.size.to_s.match?(/x/) ? object.size.to_s.gsub(/x/, '').to_i : object.size.to_s}em;"
12
- ) %>
13
- <%= content_tag(:span, nil,
14
- aria: { label: "#{object.icon} icon" }.merge(object.aria),
15
- hidden: true
16
- ) %>
17
5
  <% else %>
18
6
  <%= content_tag(:i, nil,
19
7
  id: object.id,
20
8
  data: object.data,
21
- class: object.classname,
9
+ class: object.classname
22
10
  ) %>
23
11
  <%= content_tag(:span, nil,
24
12
  aria: { label: "#{object.icon} icon" }.merge(object.aria),
25
13
  hidden: true
26
14
  ) %>
27
15
  <% end %>
28
-
29
-
@@ -15,8 +15,6 @@ module Playbook
15
15
  values: ["horizontal", "vertical", "both", nil],
16
16
  default: nil
17
17
  prop :icon
18
- prop :font_family, type: Playbook::Props::String,
19
- default: nil
20
18
  prop :custom_icon, type: Playbook::Props::String,
21
19
  default: nil
22
20
  prop :inverse, type: Playbook::Props::Boolean,
@@ -39,8 +37,6 @@ module Playbook
39
37
  default: "far"
40
38
  prop :spin, type: Playbook::Props::Boolean,
41
39
  default: false
42
- prop :prefix, type: Playbook::Props::String,
43
- default: "fa"
44
40
 
45
41
  def valid_emoji(icon)
46
42
  emoji_regex = /\p{Emoji}/
@@ -66,24 +62,6 @@ module Playbook
66
62
  )
67
63
  end
68
64
 
69
- def icon_font_classname
70
- generate_classname(
71
- "pb_icon_kit",
72
- icon_class,
73
- border_class,
74
- fixed_width_class,
75
- flip_class,
76
- inverse_class,
77
- list_item_class,
78
- pull_class,
79
- pulse_class,
80
- rotation_class,
81
- size_class,
82
- spin_class,
83
- separator: " "
84
- )
85
- end
86
-
87
65
  def custom_icon_classname
88
66
  generate_classname(
89
67
  "pb_icon_kit",
@@ -123,7 +101,7 @@ module Playbook
123
101
  end
124
102
 
125
103
  def icon_class
126
- icon ? "#{prefix}-#{icon}" : nil
104
+ icon ? "fa-#{icon}" : nil
127
105
  end
128
106
 
129
107
  def inverse_class
@@ -158,7 +136,7 @@ module Playbook
158
136
  end
159
137
 
160
138
  def size_class
161
- size ? "#{prefix}-#{size}" : nil
139
+ size ? "fa-#{size}" : nil
162
140
  end
163
141
 
164
142
  def font_style_class
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- PREVIOUS_VERSION = "12.35.0"
5
- VERSION = "12.35.0.pre.alpha.iconpocwebfonts1023"
4
+ PREVIOUS_VERSION = "12.34.0"
5
+ VERSION = "12.35.0"
6
6
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: playbook_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 12.35.0.pre.alpha.iconpocwebfonts1023
4
+ version: 12.35.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Power UX
8
8
  - Power Devs
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-08-04 00:00:00.000000000 Z
12
+ date: 2023-08-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -1182,7 +1182,6 @@ files:
1182
1182
  - app/pb_kits/playbook/pb_icon/docs/_icon_fa_kit.md
1183
1183
  - app/pb_kits/playbook/pb_icon/docs/_icon_flip.html.erb
1184
1184
  - app/pb_kits/playbook/pb_icon/docs/_icon_flip.jsx
1185
- - app/pb_kits/playbook/pb_icon/docs/_icon_font.html.erb
1186
1185
  - app/pb_kits/playbook/pb_icon/docs/_icon_pull.html.erb
1187
1186
  - app/pb_kits/playbook/pb_icon/docs/_icon_pull.jsx
1188
1187
  - app/pb_kits/playbook/pb_icon/docs/_icon_pull.md
@@ -2564,7 +2563,7 @@ homepage: https://playbook.powerapp.cloud/
2564
2563
  licenses:
2565
2564
  - ISC
2566
2565
  metadata: {}
2567
- post_install_message:
2566
+ post_install_message:
2568
2567
  rdoc_options: []
2569
2568
  require_paths:
2570
2569
  - lib
@@ -2575,12 +2574,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
2575
2574
  version: '0'
2576
2575
  required_rubygems_version: !ruby/object:Gem::Requirement
2577
2576
  requirements:
2578
- - - ">"
2577
+ - - ">="
2579
2578
  - !ruby/object:Gem::Version
2580
- version: 1.3.1
2579
+ version: '0'
2581
2580
  requirements: []
2582
2581
  rubygems_version: 3.3.7
2583
- signing_key:
2582
+ signing_key:
2584
2583
  specification_version: 4
2585
2584
  summary: Playbook Design System
2586
2585
  test_files: []
@@ -1,11 +0,0 @@
1
- <div>
2
- <%= pb_rails("icon", props: { icon: "bumper-plates", font_family: "boxboard", prefix: "icon", size: "5x"} ) %>
3
- <%= pb_rails("icon", props: { icon: "boxboard", font_family: "boxboard", prefix: "icon", size: "5x", padding_left: "md"} ) %>
4
- <%= pb_rails("icon", props: { icon: "workout-journal", font_family: "boxboard", prefix: "icon", size: "5x", padding_left: "md"} ) %>
5
- </div>
6
-
7
- <div>
8
- <%= pb_rails("icon", props: { icon: "sushi", font_family: "boxicons", prefix: "bx bx", size: "5x", margin_top: "lg"} ) %>
9
- <%= pb_rails("icon", props: { icon: "bowl-rice", font_family: "boxicons", prefix: "bx bx", size: "5x", padding_left: "md"} ) %>
10
- <%= pb_rails("icon", props: { icon: "party", font_family: "boxicons", prefix: "bx bx", size: "5x", padding_left: "md"} ) %>
11
- </div>