playbook_ui 14.6.0 → 14.6.2.pre.alpha.PBNTR576tooltiptruncatedformpills4296

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_playbook.scss +2 -1
  3. data/app/pb_kits/playbook/pb_card/_card.tsx +1 -5
  4. data/app/pb_kits/playbook/pb_dialog/_dialog.tsx +1 -5
  5. data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +4 -4
  6. data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +1 -3
  7. data/app/pb_kits/playbook/pb_dropdown/dropdown.rb +2 -2
  8. data/app/pb_kits/playbook/pb_dropdown/dropdown.test.jsx +1 -1
  9. data/app/pb_kits/playbook/pb_flex/_flex.tsx +1 -3
  10. data/app/pb_kits/playbook/pb_flex/_flex_item.tsx +2 -8
  11. data/app/pb_kits/playbook/pb_flex/flex_item.html.erb +6 -3
  12. data/app/pb_kits/playbook/pb_flex/flex_item.rb +2 -7
  13. data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +6 -2
  14. data/app/pb_kits/playbook/pb_form_pill/_form_pill.tsx +32 -26
  15. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.html.erb +22 -1
  16. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.jsx +25 -2
  17. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_truncated_text.md +1 -1
  18. data/app/pb_kits/playbook/pb_form_pill/form_pill.html.erb +39 -7
  19. data/app/pb_kits/playbook/pb_form_pill/form_pill.rb +2 -0
  20. data/app/pb_kits/playbook/pb_link/_link.scss +66 -0
  21. data/app/pb_kits/playbook/pb_link/_link.tsx +107 -0
  22. data/app/pb_kits/playbook/pb_link/docs/_link_color.html.erb +30 -0
  23. data/app/pb_kits/playbook/pb_link/docs/_link_color.jsx +40 -0
  24. data/app/pb_kits/playbook/pb_link/docs/_link_disabled.html.erb +5 -0
  25. data/app/pb_kits/playbook/pb_link/docs/_link_disabled.jsx +15 -0
  26. data/app/pb_kits/playbook/pb_link/docs/_link_icon.html.erb +15 -0
  27. data/app/pb_kits/playbook/pb_link/docs/_link_icon.jsx +25 -0
  28. data/app/pb_kits/playbook/pb_link/docs/_link_tag.html.erb +35 -0
  29. data/app/pb_kits/playbook/pb_link/docs/_link_tag.jsx +45 -0
  30. data/app/pb_kits/playbook/pb_link/docs/_link_underline.html.erb +5 -0
  31. data/app/pb_kits/playbook/pb_link/docs/_link_underline.jsx +15 -0
  32. data/app/pb_kits/playbook/pb_link/docs/example.yml +16 -0
  33. data/app/pb_kits/playbook/pb_link/docs/index.js +5 -0
  34. data/app/pb_kits/playbook/pb_link/link.html.erb +21 -0
  35. data/app/pb_kits/playbook/pb_link/link.rb +44 -0
  36. data/app/pb_kits/playbook/pb_link/link.test.jsx +92 -0
  37. data/app/pb_kits/playbook/pb_popover/_popover.tsx +1 -1
  38. data/app/pb_kits/playbook/tokens/_typography.scss +35 -0
  39. data/app/pb_kits/playbook/utilities/globalPropNames.mjs +0 -3
  40. data/app/pb_kits/playbook/utilities/globalProps.ts +2 -39
  41. data/dist/chunks/_typeahead-CGyRnRCQ.js +22 -0
  42. data/dist/chunks/{_weekday_stacked-C_QAqbqJ.js → _weekday_stacked-BTMWkeKM.js} +3 -3
  43. data/dist/chunks/vendor.js +1 -1
  44. data/dist/menu.yml +3 -0
  45. data/dist/playbook-doc.js +1 -1
  46. data/dist/playbook-rails-react-bindings.js +1 -1
  47. data/dist/playbook-rails.js +1 -1
  48. data/dist/playbook.css +1 -1
  49. data/lib/playbook/kit_base.rb +1 -21
  50. data/lib/playbook/version.rb +2 -2
  51. metadata +24 -7
  52. data/dist/chunks/_typeahead-BhHnXJjy.js +0 -22
@@ -73,10 +73,6 @@ module Playbook
73
73
  prop :aria, type: Playbook::Props::HashProp, default: {}
74
74
  prop :html_options, type: Playbook::Props::HashProp, default: {}
75
75
  prop :children, type: Playbook::Props::Proc
76
- prop :style, type: Playbook::Props::HashProp, default: {}
77
- prop :height
78
- prop :min_height
79
- prop :max_height
80
76
 
81
77
  def object
82
78
  self
@@ -86,14 +82,6 @@ module Playbook
86
82
  default_html_options.merge(html_options.deep_merge(data_attributes))
87
83
  end
88
84
 
89
- def global_inline_props
90
- {
91
- height: height,
92
- min_height: min_height,
93
- max_height: max_height,
94
- }.compact
95
- end
96
-
97
85
  # rubocop:disable Layout/CommentIndentation
98
86
  # pb_content_tag information (potentially to be abstracted into its own dev doc in the future)
99
87
  # The pb_content_tag generates HTML content tags for rails kits with flexible options.
@@ -125,15 +113,12 @@ module Playbook
125
113
  private
126
114
 
127
115
  def default_options
128
- options = {
116
+ {
129
117
  id: id,
130
118
  data: data,
131
119
  class: classname,
132
120
  aria: aria,
133
121
  }
134
- inline_styles = dynamic_inline_props
135
- options[:style] = inline_styles if inline_styles.present?
136
- options
137
122
  end
138
123
 
139
124
  def default_html_options
@@ -146,10 +131,5 @@ module Playbook
146
131
  aria: aria,
147
132
  }.transform_keys { |key| key.to_s.tr("_", "-").to_sym }
148
133
  end
149
-
150
- def dynamic_inline_props
151
- styles = global_inline_props.map { |key, value| "#{key.to_s.gsub('_', '-')}: #{value};" if value.present? }.compact
152
- styles.join(" ").presence
153
- end
154
134
  end
155
135
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Playbook
4
- PREVIOUS_VERSION = "14.5.0"
5
- VERSION = "14.6.0"
4
+ PREVIOUS_VERSION = "14.6.2"
5
+ VERSION = "14.6.2.pre.alpha.PBNTR576tooltiptruncatedformpills4296"
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: 14.6.0
4
+ version: 14.6.2.pre.alpha.PBNTR576tooltiptruncatedformpills4296
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: 2024-10-22 00:00:00.000000000 Z
12
+ date: 2024-10-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -1732,6 +1732,23 @@ files:
1732
1732
  - app/pb_kits/playbook/pb_line_graph/lineGraphSettings.js
1733
1733
  - app/pb_kits/playbook/pb_line_graph/line_graph.html.erb
1734
1734
  - app/pb_kits/playbook/pb_line_graph/line_graph.rb
1735
+ - app/pb_kits/playbook/pb_link/_link.scss
1736
+ - app/pb_kits/playbook/pb_link/_link.tsx
1737
+ - app/pb_kits/playbook/pb_link/docs/_link_color.html.erb
1738
+ - app/pb_kits/playbook/pb_link/docs/_link_color.jsx
1739
+ - app/pb_kits/playbook/pb_link/docs/_link_disabled.html.erb
1740
+ - app/pb_kits/playbook/pb_link/docs/_link_disabled.jsx
1741
+ - app/pb_kits/playbook/pb_link/docs/_link_icon.html.erb
1742
+ - app/pb_kits/playbook/pb_link/docs/_link_icon.jsx
1743
+ - app/pb_kits/playbook/pb_link/docs/_link_tag.html.erb
1744
+ - app/pb_kits/playbook/pb_link/docs/_link_tag.jsx
1745
+ - app/pb_kits/playbook/pb_link/docs/_link_underline.html.erb
1746
+ - app/pb_kits/playbook/pb_link/docs/_link_underline.jsx
1747
+ - app/pb_kits/playbook/pb_link/docs/example.yml
1748
+ - app/pb_kits/playbook/pb_link/docs/index.js
1749
+ - app/pb_kits/playbook/pb_link/link.html.erb
1750
+ - app/pb_kits/playbook/pb_link/link.rb
1751
+ - app/pb_kits/playbook/pb_link/link.test.jsx
1735
1752
  - app/pb_kits/playbook/pb_list/_list.scss
1736
1753
  - app/pb_kits/playbook/pb_list/_list.tsx
1737
1754
  - app/pb_kits/playbook/pb_list/_list_item.tsx
@@ -3099,8 +3116,8 @@ files:
3099
3116
  - app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
3100
3117
  - app/pb_kits/playbook/utilities/text.ts
3101
3118
  - app/pb_kits/playbook/utilities/validEmojiChecker.ts
3102
- - dist/chunks/_typeahead-BhHnXJjy.js
3103
- - dist/chunks/_weekday_stacked-C_QAqbqJ.js
3119
+ - dist/chunks/_typeahead-CGyRnRCQ.js
3120
+ - dist/chunks/_weekday_stacked-BTMWkeKM.js
3104
3121
  - dist/chunks/lazysizes-B7xYodB-.js
3105
3122
  - dist/chunks/lib-D-mTv-kp.js
3106
3123
  - dist/chunks/pb_form_validation-BkWGwJsl.js
@@ -3185,7 +3202,7 @@ homepage: https://playbook.powerapp.cloud/
3185
3202
  licenses:
3186
3203
  - ISC
3187
3204
  metadata: {}
3188
- post_install_message:
3205
+ post_install_message:
3189
3206
  rdoc_options: []
3190
3207
  require_paths:
3191
3208
  - lib
@@ -3201,7 +3218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
3201
3218
  version: '0'
3202
3219
  requirements: []
3203
3220
  rubygems_version: 3.5.3
3204
- signing_key:
3221
+ signing_key:
3205
3222
  specification_version: 4
3206
3223
  summary: Playbook Design System
3207
3224
  test_files: []