playbook_ui 14.9.0.pre.alpha.PBNTR702stickyleftcolrails4806 → 14.9.0.pre.alpha.PLAY1731inputmasking4866

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/table_header.html.erb +5 -3
  3. data/app/pb_kits/playbook/pb_avatar/_avatar.scss +0 -2
  4. data/app/pb_kits/playbook/pb_body/_body.scss +14 -13
  5. data/app/pb_kits/playbook/pb_body/_body_mixins.scss +22 -16
  6. data/app/pb_kits/playbook/pb_bread_crumbs/docs/_bread_crumbs_default.jsx +6 -0
  7. data/app/pb_kits/playbook/pb_caption/_caption_mixin.scss +2 -1
  8. data/app/pb_kits/playbook/pb_card/_card_mixin.scss +1 -1
  9. data/app/pb_kits/playbook/pb_file_upload/_file_upload.scss +5 -0
  10. data/app/pb_kits/playbook/pb_file_upload/_file_upload.tsx +7 -2
  11. data/app/pb_kits/playbook/pb_file_upload/file_upload.html.erb +8 -2
  12. data/app/pb_kits/playbook/pb_nav/_bold_mixin.scss +11 -1
  13. data/app/pb_kits/playbook/pb_nav/_collapsible_nav.scss +16 -2
  14. data/app/pb_kits/playbook/pb_nav/_vertical_nav.scss +1 -1
  15. data/app/pb_kits/playbook/pb_selectable_card/_selectable_card.scss +4 -4
  16. data/app/pb_kits/playbook/pb_selectable_card/selectable_card.html.erb +1 -1
  17. data/app/pb_kits/playbook/pb_stat_change/_stat_change.tsx +44 -36
  18. data/app/pb_kits/playbook/pb_stat_change/stat_change.html.erb +4 -4
  19. data/app/pb_kits/playbook/pb_table/index.ts +26 -100
  20. data/app/pb_kits/playbook/pb_table/table.html.erb +1 -1
  21. data/app/pb_kits/playbook/pb_table/table.rb +2 -17
  22. data/app/pb_kits/playbook/pb_text_input/_text_input.tsx +35 -3
  23. data/app/pb_kits/playbook/pb_text_input/docs/_text_input_mask.jsx +88 -0
  24. data/app/pb_kits/playbook/pb_text_input/docs/example.yml +1 -0
  25. data/app/pb_kits/playbook/pb_text_input/docs/index.js +1 -0
  26. data/app/pb_kits/playbook/pb_text_input/inputMask.ts +64 -0
  27. data/app/pb_kits/playbook/pb_text_input/text_input.test.js +139 -2
  28. data/app/pb_kits/playbook/pb_title/_title.scss +6 -5
  29. data/app/pb_kits/playbook/pb_title/_title_mixin.scss +13 -0
  30. data/app/pb_kits/playbook/tokens/_titles.scss +0 -8
  31. data/app/pb_kits/playbook/utilities/_hover.scss +11 -2
  32. data/app/pb_kits/playbook/utilities/globalProps.ts +2 -0
  33. data/app/pb_kits/playbook/utilities/test/globalProps/hover.test.js +15 -0
  34. data/dist/chunks/_typeahead-Cx7J1O_I.js +22 -0
  35. data/dist/chunks/_weekday_stacked-Z6CSak-K.js +45 -0
  36. data/dist/chunks/{lib-CVPInSs5.js → lib-SyD3buPZ.js} +1 -1
  37. data/dist/chunks/{pb_form_validation-CDLJ5eAG.js → pb_form_validation-Dt8UJgrJ.js} +1 -1
  38. data/dist/chunks/vendor.js +1 -1
  39. data/dist/playbook-doc.js +1 -1
  40. data/dist/playbook-rails-react-bindings.js +1 -1
  41. data/dist/playbook-rails.js +1 -1
  42. data/dist/playbook.css +1 -1
  43. data/lib/playbook/hover.rb +7 -1
  44. data/lib/playbook/version.rb +1 -1
  45. metadata +8 -7
  46. data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.html.erb +0 -95
  47. data/dist/chunks/_typeahead-CCDoUmRR.js +0 -22
  48. data/dist/chunks/_weekday_stacked-CxjKLoMr.js +0 -45
@@ -29,12 +29,16 @@ module Playbook
29
29
  []
30
30
  end
31
31
 
32
+ def hover_underline_values
33
+ [true, false]
34
+ end
35
+
32
36
  def hover_values
33
37
  hover_options.keys.select { |sk| try(sk) }
34
38
  end
35
39
 
36
40
  def hover_attributes
37
- %w[background shadow scale color]
41
+ %w[background shadow scale color underline]
38
42
  end
39
43
 
40
44
  def hover_props
@@ -51,6 +55,8 @@ module Playbook
51
55
  value.each do |key, val|
52
56
  if %i[background color].include?(key)
53
57
  css += "#{prefix}_#{key}-#{val} " if hover_attributes.include?(key.to_s)
58
+ elsif %i[underline].include?(key) && val == true
59
+ css += "hover_underline "
54
60
  elsif hover_attributes.include?(key.to_s) && send("hover_#{key}_values").include?(val.to_s)
55
61
  css += "#{prefix}_#{key}_#{val} "
56
62
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "14.9.0"
5
- VERSION = "14.9.0.pre.alpha.PBNTR702stickyleftcolrails4806"
5
+ VERSION = "14.9.0.pre.alpha.PLAY1731inputmasking4866"
6
6
  end
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: 14.9.0.pre.alpha.PBNTR702stickyleftcolrails4806
4
+ version: 14.9.0.pre.alpha.PLAY1731inputmasking4866
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: 2024-12-06 00:00:00.000000000 Z
12
+ date: 2024-12-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -2617,7 +2617,6 @@ files:
2617
2617
  - app/pb_kits/playbook/pb_table/docs/_table_sticky.html.erb
2618
2618
  - app/pb_kits/playbook/pb_table/docs/_table_sticky.jsx
2619
2619
  - app/pb_kits/playbook/pb_table/docs/_table_sticky.md
2620
- - app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.html.erb
2621
2620
  - app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.jsx
2622
2621
  - app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns_react.md
2623
2622
  - app/pb_kits/playbook/pb_table/docs/_table_striped.html.erb
@@ -2708,12 +2707,14 @@ files:
2708
2707
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_error_swift.md
2709
2708
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_inline.html.erb
2710
2709
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_inline.jsx
2710
+ - app/pb_kits/playbook/pb_text_input/docs/_text_input_mask.jsx
2711
2711
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_no_label.html.erb
2712
2712
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_no_label.jsx
2713
2713
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_options.html.erb
2714
2714
  - app/pb_kits/playbook/pb_text_input/docs/_text_input_props_swift.md
2715
2715
  - app/pb_kits/playbook/pb_text_input/docs/example.yml
2716
2716
  - app/pb_kits/playbook/pb_text_input/docs/index.js
2717
+ - app/pb_kits/playbook/pb_text_input/inputMask.ts
2717
2718
  - app/pb_kits/playbook/pb_text_input/text_input.html.erb
2718
2719
  - app/pb_kits/playbook/pb_text_input/text_input.rb
2719
2720
  - app/pb_kits/playbook/pb_text_input/text_input.test.js
@@ -3190,11 +3191,11 @@ files:
3190
3191
  - app/pb_kits/playbook/utilities/test/globalProps/truncate.test.js
3191
3192
  - app/pb_kits/playbook/utilities/text.ts
3192
3193
  - app/pb_kits/playbook/utilities/validEmojiChecker.ts
3193
- - dist/chunks/_typeahead-CCDoUmRR.js
3194
- - dist/chunks/_weekday_stacked-CxjKLoMr.js
3194
+ - dist/chunks/_typeahead-Cx7J1O_I.js
3195
+ - dist/chunks/_weekday_stacked-Z6CSak-K.js
3195
3196
  - dist/chunks/lazysizes-B7xYodB-.js
3196
- - dist/chunks/lib-CVPInSs5.js
3197
- - dist/chunks/pb_form_validation-CDLJ5eAG.js
3197
+ - dist/chunks/lib-SyD3buPZ.js
3198
+ - dist/chunks/pb_form_validation-Dt8UJgrJ.js
3198
3199
  - dist/chunks/vendor.js
3199
3200
  - dist/menu.yml
3200
3201
  - dist/playbook-doc.js
@@ -1,95 +0,0 @@
1
- <%= pb_rails("table", props: { size: "md", responsive: "scroll", sticky_left_column: ["1", "2", "3"] }) do %>
2
- <thead>
3
- <tr>
4
- <th id="1">Column 1</th>
5
- <th id="2">Column 2</th>
6
- <th id="3">Column 3</th>
7
- <th>Column 4</th>
8
- <th>Column 5</th>
9
- <th>Column 6</th>
10
- <th>Column 7</th>
11
- <th>Column 8</th>
12
- <th>Column 9</th>
13
- <th>Column 10</th>
14
- <th>Column 11</th>
15
- <th>Column 12</th>
16
- <th>Column 13</th>
17
- <th>Column 14</th>
18
- <th>Column 15</th>
19
- </tr>
20
- </thead>
21
- <tbody>
22
- <tr>
23
- <td id="1">Value 1</td>
24
- <td id="2">Value 2</td>
25
- <td id="3">Value 3</td>
26
- <td>Value 4</td>
27
- <td>Value 5</td>
28
- <td>Column 6</td>
29
- <td>Column 7</td>
30
- <td>Column 8</td>
31
- <td>Column 9</td>
32
- <td>Column 10</td>
33
- <td>Column 11</td>
34
- <td>Column 12</td>
35
- <td>Column 13</td>
36
- <td>Column 14</td>
37
- <td>Column 15</td>
38
-
39
- </tr>
40
- <tr>
41
- <td id="1">Value 1</td>
42
- <td id="2">Value 2</td>
43
- <td id="3">Value 3</td>
44
- <td>Value 4</td>
45
- <td>Value 5</td>
46
- <td>Column 6</td>
47
- <td>Column 7</td>
48
- <td>Column 8</td>
49
- <td>Column 9</td>
50
- <td>Column 10</td>
51
- <td>Column 11</td>
52
- <td>Column 12</td>
53
- <td>Column 13</td>
54
- <td>Column 14</td>
55
- <td>Column 15</td>
56
-
57
- </tr>
58
- <tr>
59
- <td id="1">Value 1</td>
60
- <td id="2">Value 2</td>
61
- <td id="3">Value 3</td>
62
- <td>Value 4</td>
63
- <td>Value 5</td>
64
- <td>Column 6</td>
65
- <td>Column 7</td>
66
- <td>Column 8</td>
67
- <td>Column 9</td>
68
- <td>Column 10</td>
69
- <td>Column 11</td>
70
- <td>Column 12</td>
71
- <td>Column 13</td>
72
- <td>Column 14</td>
73
- <td>Column 15</td>
74
-
75
- </tr>
76
- <tr>
77
- <td id="1">Value 1</td>
78
- <td id="2">Value 2</td>
79
- <td id="3">Value 3</td>
80
- <td>Value 4</td>
81
- <td>Value 5</td>
82
- <td>Column 6</td>
83
- <td>Column 7</td>
84
- <td>Column 8</td>
85
- <td>Column 9</td>
86
- <td>Column 10</td>
87
- <td>Column 11</td>
88
- <td>Column 12</td>
89
- <td>Column 13</td>
90
- <td>Column 14</td>
91
- <td>Column 15</td>
92
-
93
- </tr>
94
- </tbody>
95
- <% end %>