playbook_ui 13.27.0.pre.alpha.PLAY888Cardkithighlightoverflowtooltiperror2930 → 13.27.0.pre.alpha.PLAY1122fixMultipleUserspaddingoverflow2844

Sign up to get free protection for your applications and to get access to all the features.
Files changed (164) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.html.erb +5 -1
  3. data/app/pb_kits/playbook/pb_advanced_table/table_body.html.erb +5 -1
  4. data/app/pb_kits/playbook/pb_advanced_table/table_header.html.erb +5 -1
  5. data/app/pb_kits/playbook/pb_advanced_table/table_row.html.erb +5 -1
  6. data/app/pb_kits/playbook/pb_avatar/Utilities/GetPlacementPropsHelper.tsx +0 -16
  7. data/app/pb_kits/playbook/pb_avatar/_avatar.scss +0 -16
  8. data/app/pb_kits/playbook/pb_avatar/avatar.html.erb +1 -1
  9. data/app/pb_kits/playbook/pb_avatar/avatar.rb +0 -4
  10. data/app/pb_kits/playbook/pb_avatar/avatar.test.js +0 -47
  11. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.html.erb +66 -46
  12. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.jsx +29 -8
  13. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_circle_icon_component_overlay.html.erb +33 -13
  14. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_circle_icon_component_overlay.jsx +67 -48
  15. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_default.jsx +20 -0
  16. data/app/pb_kits/playbook/pb_avatar/docs/example.yml +2 -2
  17. data/app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb +6 -1
  18. data/app/pb_kits/playbook/pb_badge/badge.html.erb +6 -1
  19. data/app/pb_kits/playbook/pb_body/_body.scss +0 -3
  20. data/app/pb_kits/playbook/pb_body/_body_mixins.scss +1 -1
  21. data/app/pb_kits/playbook/pb_button/_button_mixins.scss +3 -4
  22. data/app/pb_kits/playbook/pb_button_toolbar/button_toolbar.html.erb +6 -1
  23. data/app/pb_kits/playbook/pb_caption/_caption_mixin.scss +1 -1
  24. data/app/pb_kits/playbook/pb_card/_card.scss +1 -1
  25. data/app/pb_kits/playbook/pb_card/_card_mixin.scss +0 -5
  26. data/app/pb_kits/playbook/pb_card/card.rb +1 -1
  27. data/app/pb_kits/playbook/pb_card/docs/_card_background.html.erb +0 -20
  28. data/app/pb_kits/playbook/pb_card/docs/_card_background.jsx +1 -41
  29. data/app/pb_kits/playbook/pb_card/docs/_card_background.md +1 -1
  30. data/app/pb_kits/playbook/pb_card/docs/_card_header.html.erb +1 -1
  31. data/app/pb_kits/playbook/pb_card/docs/_card_header.md +1 -1
  32. data/app/pb_kits/playbook/pb_card/docs/_card_highlight.md +1 -1
  33. data/app/pb_kits/playbook/pb_circle_icon_button/circle_icon_button.html.erb +6 -1
  34. data/app/pb_kits/playbook/pb_collapsible/_collapsible.tsx +10 -21
  35. data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleMain.tsx +75 -3
  36. data/app/pb_kits/playbook/pb_collapsible/collapsible.html.erb +6 -1
  37. data/app/pb_kits/playbook/pb_collapsible/collapsible_content.html.erb +6 -1
  38. data/app/pb_kits/playbook/pb_collapsible/collapsible_main.html.erb +6 -1
  39. data/app/pb_kits/playbook/pb_collapsible/docs/example.yml +0 -7
  40. data/app/pb_kits/playbook/pb_collapsible/docs/index.js +1 -3
  41. data/app/pb_kits/playbook/pb_collapsible/index.js +6 -16
  42. data/app/pb_kits/playbook/pb_contact/contact.html.erb +6 -1
  43. data/app/pb_kits/playbook/pb_currency/currency.html.erb +6 -1
  44. data/app/pb_kits/playbook/pb_dashboard_value/dashboard_value.html.erb +6 -1
  45. data/app/pb_kits/playbook/pb_date/date.html.erb +6 -1
  46. data/app/pb_kits/playbook/pb_date_range_inline/date_range_inline.html.erb +5 -1
  47. data/app/pb_kits/playbook/pb_date_range_inline/docs/example.yml +1 -4
  48. data/app/pb_kits/playbook/pb_date_range_stacked/date_range_stacked.html.erb +5 -1
  49. data/app/pb_kits/playbook/pb_date_stacked/date_stacked.html.erb +5 -1
  50. data/app/pb_kits/playbook/pb_date_stacked/docs/example.yml +0 -7
  51. data/app/pb_kits/playbook/pb_date_time/date_time.html.erb +6 -1
  52. data/app/pb_kits/playbook/pb_date_time/docs/example.yml +0 -6
  53. data/app/pb_kits/playbook/pb_date_time_stacked/date_time_stacked.html.erb +6 -1
  54. data/app/pb_kits/playbook/pb_date_year_stacked/date_year_stacked.html.erb +5 -1
  55. data/app/pb_kits/playbook/pb_date_year_stacked/docs/example.yml +0 -4
  56. data/app/pb_kits/playbook/pb_detail/_detail_mixins.scss +1 -1
  57. data/app/pb_kits/playbook/pb_docs/kit_example.html.erb +3 -3
  58. data/app/pb_kits/playbook/pb_dropdown/_dropdown.scss +1 -6
  59. data/app/pb_kits/playbook/pb_dropdown/_dropdown.tsx +6 -5
  60. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.html.erb +3 -3
  61. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.md +1 -1
  62. data/app/pb_kits/playbook/pb_dropdown/docs/{_dropdown_subcomponent_structure_rails.html.erb → _dropdown_subcomponent_structure.html.erb} +3 -3
  63. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subcomponent_structure.md +6 -5
  64. data/app/pb_kits/playbook/pb_dropdown/docs/{_dropdown_with_custom_display_rails.html.erb → _dropdown_with_custom_display.html.erb} +6 -11
  65. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display.jsx +3 -6
  66. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display.md +3 -3
  67. data/app/pb_kits/playbook/pb_dropdown/docs/{_dropdown_with_custom_options_rails.html.erb → _dropdown_with_custom_options.html.erb} +11 -16
  68. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options.jsx +2 -5
  69. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options.md +1 -1
  70. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_padding.html.erb +3 -3
  71. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_padding.md +1 -1
  72. data/app/pb_kits/playbook/pb_dropdown/docs/{_dropdown_with_custom_trigger_rails.html.erb → _dropdown_with_custom_trigger.html.erb} +11 -16
  73. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger.jsx +2 -5
  74. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger.md +1 -1
  75. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_label.html.erb +3 -3
  76. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_label.md +1 -1
  77. data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +6 -6
  78. data/app/pb_kits/playbook/pb_dropdown/dropdown.html.erb +0 -1
  79. data/app/pb_kits/playbook/pb_dropdown/dropdown.rb +0 -1
  80. data/app/pb_kits/playbook/pb_dropdown/dropdown.test.jsx +1 -1
  81. data/app/pb_kits/playbook/pb_dropdown/dropdown_option.html.erb +9 -3
  82. data/app/pb_kits/playbook/pb_dropdown/dropdown_option.rb +6 -2
  83. data/app/pb_kits/playbook/pb_dropdown/index.js +1 -2
  84. data/app/pb_kits/playbook/pb_dropdown/subcomponents/DropdownOption.tsx +14 -6
  85. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/example.yml +0 -9
  86. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.html.erb +6 -1
  87. data/app/pb_kits/playbook/pb_form/docs/_form_form_with.html.erb +1 -1
  88. data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +1 -1
  89. data/app/pb_kits/playbook/pb_form_group/_form_group.scss +0 -15
  90. data/app/pb_kits/playbook/pb_icon_circle/icon_circle.html.erb +6 -1
  91. data/app/pb_kits/playbook/pb_icon_stat_value/icon_stat_value.html.erb +6 -1
  92. data/app/pb_kits/playbook/pb_icon_value/icon_value.html.erb +6 -1
  93. data/app/pb_kits/playbook/pb_label_pill/label_pill.html.erb +6 -1
  94. data/app/pb_kits/playbook/pb_label_value/label_value.html.erb +6 -1
  95. data/app/pb_kits/playbook/pb_loading_inline/loading_inline.html.erb +5 -1
  96. data/app/pb_kits/playbook/pb_message/message_mention.html.erb +6 -6
  97. data/app/pb_kits/playbook/pb_multiple_users/multiple_users.html.erb +6 -1
  98. data/app/pb_kits/playbook/pb_multiple_users_stacked/multiple_users_stacked.html.erb +6 -1
  99. data/app/pb_kits/playbook/pb_pagination/_pagination.scss +1 -1
  100. data/app/pb_kits/playbook/pb_pagination/pagination.html.erb +6 -1
  101. data/app/pb_kits/playbook/pb_person/person.html.erb +6 -1
  102. data/app/pb_kits/playbook/pb_person_contact/person_contact.html.erb +6 -1
  103. data/app/pb_kits/playbook/pb_pill/pill.html.erb +6 -1
  104. data/app/pb_kits/playbook/pb_section_separator/section_separator.html.erb +6 -1
  105. data/app/pb_kits/playbook/pb_select/_select.scss +0 -8
  106. data/app/pb_kits/playbook/pb_source/source.html.erb +5 -1
  107. data/app/pb_kits/playbook/pb_stat_change/stat_change.html.erb +5 -1
  108. data/app/pb_kits/playbook/pb_stat_value/stat_value.html.erb +5 -1
  109. data/app/pb_kits/playbook/pb_text_input/_text_input.scss +0 -19
  110. data/app/pb_kits/playbook/pb_time_range_inline/time_range_inline.html.erb +5 -1
  111. data/app/pb_kits/playbook/pb_time_stacked/time_stacked.html.erb +5 -1
  112. data/app/pb_kits/playbook/pb_timeline/item.html.erb +5 -1
  113. data/app/pb_kits/playbook/pb_timeline/timeline.html.erb +5 -1
  114. data/app/pb_kits/playbook/pb_timestamp/timestamp.html.erb +6 -1
  115. data/app/pb_kits/playbook/pb_title/_title.scss +1 -5
  116. data/app/pb_kits/playbook/pb_title_count/title_count.html.erb +6 -1
  117. data/app/pb_kits/playbook/pb_title_detail/title_detail.html.erb +5 -1
  118. data/app/pb_kits/playbook/pb_tooltip/index.js +0 -1
  119. data/app/pb_kits/playbook/pb_weekday_stacked/weekday_stacked.html.erb +6 -1
  120. data/app/pb_kits/playbook/tokens/_titles.scss +1 -5
  121. data/dist/menu.yml +2 -2
  122. data/dist/playbook-rails.js +5 -5
  123. data/lib/playbook/forms/builder.rb +0 -1
  124. data/lib/playbook/kit_base.rb +1 -1
  125. data/lib/playbook/version.rb +1 -1
  126. metadata +6 -44
  127. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.md +0 -3
  128. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_circle_icon_component_overlay.md +0 -3
  129. data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleIcon.tsx +0 -92
  130. data/app/pb_kits/playbook/pb_collapsible/collapsible_icon.html.erb +0 -15
  131. data/app/pb_kits/playbook/pb_collapsible/collapsible_icon.rb +0 -37
  132. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main.jsx +0 -72
  133. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main.md +0 -3
  134. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_rails.html.erb +0 -19
  135. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_rails.md +0 -3
  136. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_with_icon.jsx +0 -73
  137. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_with_icon.md +0 -3
  138. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_with_icon_rails.html.erb +0 -20
  139. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_with_icon_rails.md +0 -3
  140. data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default_swift.md +0 -61
  141. data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_props_swift.md +0 -11
  142. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_bold_swift.md +0 -32
  143. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_default_swift.md +0 -17
  144. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_not_current_year_swift.md +0 -19
  145. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_props_swift.md +0 -10
  146. data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_reversed_swift.md +0 -17
  147. data/app/pb_kits/playbook/pb_date_time/docs/_date_time_alignment_swift.md +0 -39
  148. data/app/pb_kits/playbook/pb_date_time/docs/_date_time_default_swift.md +0 -39
  149. data/app/pb_kits/playbook/pb_date_time/docs/_date_time_props_swift.md +0 -15
  150. data/app/pb_kits/playbook/pb_date_time/docs/_date_time_size_swift.md +0 -78
  151. data/app/pb_kits/playbook/pb_date_year_stacked/docs/_date_year_stacked_default_swift.md +0 -20
  152. data/app/pb_kits/playbook/pb_date_year_stacked/docs/_date_year_stacked_props_swift.md +0 -6
  153. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subcomponent_structure_rails.md +0 -6
  154. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display_rails.md +0 -5
  155. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options_rails.md +0 -1
  156. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger_rails.md +0 -1
  157. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_children_swift.md +0 -23
  158. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close_swift.md +0 -7
  159. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default_swift.md +0 -9
  160. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_dismiss_with_timer_swift.md +0 -22
  161. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line_swift.md +0 -9
  162. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_positions_swift.md +0 -62
  163. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_props_swift.md +0 -8
  164. data/lib/playbook/forms/builder/phone_number_field.rb +0 -12
@@ -12,7 +12,6 @@ module Playbook
12
12
  require_relative "builder/typeahead_field"
13
13
  require_relative "builder/intl_telephone_field"
14
14
  require_relative "builder/multi_level_select_field"
15
- require_relative "builder/phone_number_field"
16
15
 
17
16
  prepend(FormFieldBuilder.new(:email_field, kit_name: "text_input"))
18
17
  prepend(FormFieldBuilder.new(:number_field, kit_name: "text_input"))
@@ -81,7 +81,7 @@ module Playbook
81
81
  end
82
82
 
83
83
  # rubocop:disable Style/OptionalBooleanParameter
84
- def pb_content_tag(name = :div, content_or_options_with_block = {}, options = {}, escape = true, &block)
84
+ def pb_content_tag(name, content_or_options_with_block = nil, options = {}, escape = true, &block)
85
85
  combined_options = options
86
86
  .merge(combined_html_options)
87
87
  .merge(default_options.merge(content_or_options_with_block))
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Playbook
4
4
  PREVIOUS_VERSION = "13.27.0"
5
- VERSION = "13.27.0.pre.alpha.PLAY888Cardkithighlightoverflowtooltiperror2930"
5
+ VERSION = "13.27.0.pre.alpha.PLAY1122fixMultipleUserspaddingoverflow2844"
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: 13.27.0.pre.alpha.PLAY888Cardkithighlightoverflowtooltiperror2930
4
+ version: 13.27.0.pre.alpha.PLAY1122fixMultipleUserspaddingoverflow2844
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-05-20 00:00:00.000000000 Z
12
+ date: 2024-05-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
@@ -305,10 +305,8 @@ files:
305
305
  - app/pb_kits/playbook/pb_avatar/avatar.test.js
306
306
  - app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.html.erb
307
307
  - app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.jsx
308
- - app/pb_kits/playbook/pb_avatar/docs/_avatar_badge_component_overlay.md
309
308
  - app/pb_kits/playbook/pb_avatar/docs/_avatar_circle_icon_component_overlay.html.erb
310
309
  - app/pb_kits/playbook/pb_avatar/docs/_avatar_circle_icon_component_overlay.jsx
311
- - app/pb_kits/playbook/pb_avatar/docs/_avatar_circle_icon_component_overlay.md
312
310
  - app/pb_kits/playbook/pb_avatar/docs/_avatar_default.html.erb
313
311
  - app/pb_kits/playbook/pb_avatar/docs/_avatar_default.jsx
314
312
  - app/pb_kits/playbook/pb_avatar/docs/_avatar_default_swift.md
@@ -673,15 +671,12 @@ files:
673
671
  - app/pb_kits/playbook/pb_collapsible/_collapsible.tsx
674
672
  - app/pb_kits/playbook/pb_collapsible/_helper_functions.ts
675
673
  - app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleContent.tsx
676
- - app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleIcon.tsx
677
674
  - app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleMain.tsx
678
675
  - app/pb_kits/playbook/pb_collapsible/collapsible.html.erb
679
676
  - app/pb_kits/playbook/pb_collapsible/collapsible.rb
680
677
  - app/pb_kits/playbook/pb_collapsible/collapsible.test.js
681
678
  - app/pb_kits/playbook/pb_collapsible/collapsible_content.html.erb
682
679
  - app/pb_kits/playbook/pb_collapsible/collapsible_content.rb
683
- - app/pb_kits/playbook/pb_collapsible/collapsible_icon.html.erb
684
- - app/pb_kits/playbook/pb_collapsible/collapsible_icon.rb
685
680
  - app/pb_kits/playbook/pb_collapsible/collapsible_main.html.erb
686
681
  - app/pb_kits/playbook/pb_collapsible/collapsible_main.rb
687
682
  - app/pb_kits/playbook/pb_collapsible/context.ts
@@ -689,14 +684,6 @@ files:
689
684
  - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_color.jsx
690
685
  - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_color.md
691
686
  - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_colors_swift.md
692
- - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main.jsx
693
- - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main.md
694
- - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_rails.html.erb
695
- - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_rails.md
696
- - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_with_icon.jsx
697
- - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_with_icon.md
698
- - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_with_icon_rails.html.erb
699
- - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_custom_main_with_icon_rails.md
700
687
  - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_default.html.erb
701
688
  - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_default.jsx
702
689
  - app/pb_kits/playbook/pb_collapsible/docs/_collapsible_default_swift.md
@@ -900,8 +887,6 @@ files:
900
887
  - app/pb_kits/playbook/pb_date_range_inline/date_range_inline.test.js
901
888
  - app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default.html.erb
902
889
  - app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default.jsx
903
- - app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_default_swift.md
904
- - app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_props_swift.md
905
890
  - app/pb_kits/playbook/pb_date_range_inline/docs/_description.md
906
891
  - app/pb_kits/playbook/pb_date_range_inline/docs/example.yml
907
892
  - app/pb_kits/playbook/pb_date_range_inline/docs/index.js
@@ -925,17 +910,12 @@ files:
925
910
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_align.jsx
926
911
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_bold.html.erb
927
912
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_bold.jsx
928
- - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_bold_swift.md
929
913
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_default.html.erb
930
914
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_default.jsx
931
- - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_default_swift.md
932
915
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_not_current_year.html.erb
933
916
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_not_current_year.jsx
934
- - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_not_current_year_swift.md
935
- - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_props_swift.md
936
917
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_reverse.html.erb
937
918
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_reverse.jsx
938
- - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_reversed_swift.md
939
919
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_sizes.html.erb
940
920
  - app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_sizes.jsx
941
921
  - app/pb_kits/playbook/pb_date_stacked/docs/_description.md
@@ -949,14 +929,10 @@ files:
949
929
  - app/pb_kits/playbook/pb_date_time/date_time.rb
950
930
  - app/pb_kits/playbook/pb_date_time/docs/_date_time_align.html.erb
951
931
  - app/pb_kits/playbook/pb_date_time/docs/_date_time_align.jsx
952
- - app/pb_kits/playbook/pb_date_time/docs/_date_time_alignment_swift.md
953
932
  - app/pb_kits/playbook/pb_date_time/docs/_date_time_default.html.erb
954
933
  - app/pb_kits/playbook/pb_date_time/docs/_date_time_default.jsx
955
- - app/pb_kits/playbook/pb_date_time/docs/_date_time_default_swift.md
956
- - app/pb_kits/playbook/pb_date_time/docs/_date_time_props_swift.md
957
934
  - app/pb_kits/playbook/pb_date_time/docs/_date_time_size.html.erb
958
935
  - app/pb_kits/playbook/pb_date_time/docs/_date_time_size.jsx
959
- - app/pb_kits/playbook/pb_date_time/docs/_date_time_size_swift.md
960
936
  - app/pb_kits/playbook/pb_date_time/docs/_description.md
961
937
  - app/pb_kits/playbook/pb_date_time/docs/example.yml
962
938
  - app/pb_kits/playbook/pb_date_time/docs/index.js
@@ -977,8 +953,6 @@ files:
977
953
  - app/pb_kits/playbook/pb_date_year_stacked/docs/_date_year_stacked_default.html.erb
978
954
  - app/pb_kits/playbook/pb_date_year_stacked/docs/_date_year_stacked_default.jsx
979
955
  - app/pb_kits/playbook/pb_date_year_stacked/docs/_date_year_stacked_default.md
980
- - app/pb_kits/playbook/pb_date_year_stacked/docs/_date_year_stacked_default_swift.md
981
- - app/pb_kits/playbook/pb_date_year_stacked/docs/_date_year_stacked_props_swift.md
982
956
  - app/pb_kits/playbook/pb_date_year_stacked/docs/_description.md
983
957
  - app/pb_kits/playbook/pb_date_year_stacked/docs/_footer.md
984
958
  - app/pb_kits/playbook/pb_date_year_stacked/docs/example.yml
@@ -1073,29 +1047,25 @@ files:
1073
1047
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.html.erb
1074
1048
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.jsx
1075
1049
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_default.md
1050
+ - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subcomponent_structure.html.erb
1076
1051
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subcomponent_structure.jsx
1077
1052
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subcomponent_structure.md
1078
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subcomponent_structure_rails.html.erb
1079
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_subcomponent_structure_rails.md
1080
1053
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete.jsx
1081
1054
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete.md
1082
1055
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_and_custom_display.jsx
1083
1056
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_autocomplete_and_custom_display.md
1057
+ - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display.html.erb
1084
1058
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display.jsx
1085
1059
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display.md
1086
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display_rails.html.erb
1087
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_display_rails.md
1060
+ - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options.html.erb
1088
1061
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options.jsx
1089
1062
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options.md
1090
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options_rails.html.erb
1091
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_options_rails.md
1092
1063
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_padding.html.erb
1093
1064
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_padding.jsx
1094
1065
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_padding.md
1066
+ - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger.html.erb
1095
1067
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger.jsx
1096
1068
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger.md
1097
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger_rails.html.erb
1098
- - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_custom_trigger_rails.md
1099
1069
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_external_control.jsx
1100
1070
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_hook.jsx
1101
1071
  - app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_label.html.erb
@@ -1190,22 +1160,15 @@ files:
1190
1160
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_children.html.erb
1191
1161
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_children.jsx
1192
1162
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_children.md
1193
- - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_children_swift.md
1194
1163
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close.html.erb
1195
1164
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close.jsx
1196
- - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_close_swift.md
1197
1165
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default.html.erb
1198
1166
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default.jsx
1199
- - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_default_swift.md
1200
- - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_dismiss_with_timer_swift.md
1201
1167
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.html.erb
1202
1168
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.jsx
1203
1169
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line.md
1204
- - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_multi_line_swift.md
1205
1170
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_positions.html.erb
1206
1171
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_positions.jsx
1207
- - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_positions_swift.md
1208
- - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_fixed_confirmation_toast_props_swift.md
1209
1172
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/example.yml
1210
1173
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/index.js
1211
1174
  - app/pb_kits/playbook/pb_fixed_confirmation_toast/fixed_confirmation_toast.html.erb
@@ -2935,7 +2898,6 @@ files:
2935
2898
  - lib/playbook/forms/builder/form_field_builder.rb
2936
2899
  - lib/playbook/forms/builder/intl_telephone_field.rb
2937
2900
  - lib/playbook/forms/builder/multi_level_select_field.rb
2938
- - lib/playbook/forms/builder/phone_number_field.rb
2939
2901
  - lib/playbook/forms/builder/select_field.rb
2940
2902
  - lib/playbook/forms/builder/typeahead_field.rb
2941
2903
  - lib/playbook/hover.rb
@@ -1,3 +0,0 @@
1
- NOTE: All `componentOverlay` implementations require a `placement` prop, that accepts any of the following values: `top-right`, `top-left`, `bottom-right`, `bottom-left`, `top-center`, `bottom-center`, `left-center`, and `right-center`.
2
-
3
- When passing the `badge` component as an overlay, you must also specify its text content,and you may optionally control the color by passing an [approved value](https://playbook.powerapp.cloud/kits/badge#colors) as a `variant`.
@@ -1,3 +0,0 @@
1
- NOTE: All `componentOverlay` implementations require a `placement` prop, that accepts any of the following values: `top-right`, `top-left`, `bottom-right`, `bottom-left`, `top-center`, `bottom-center`, `left-center`, and `right-center`.
2
-
3
- When passing the `iconCircle` component as an overlay, you must also specify an `icon`, and you may optionally control the color by passing an [approved value](https://playbook.powerapp.cloud/kits/icon_circle/rails#color) as a `variant`.
@@ -1,92 +0,0 @@
1
- import React from "react";
2
- import Icon, { IconSizes } from "../../pb_icon/_icon";
3
-
4
- type IconColors =
5
- | "default"
6
- | "light"
7
- | "lighter"
8
- | "link"
9
- | "error"
10
- | "success";
11
-
12
- type IconProps = {
13
- collapsed: boolean | (() => void);
14
- icon?: string[] | string;
15
- iconColor?: IconColors;
16
- iconSize?: IconSizes;
17
- onIconClick?: () => void;
18
- };
19
-
20
- type colorMap = {
21
- default: string;
22
- light: string;
23
- lighter: string;
24
- link: string;
25
- error: string;
26
- success: string;
27
- };
28
-
29
- const colorMap = {
30
- default: "#242B42",
31
- light: "#687887",
32
- lighter: "#C1CDD6",
33
- link: "#0056CF",
34
- error: "#FF2229",
35
- success: "#00CA74",
36
- };
37
-
38
- const CollapsibleIcon = ({
39
- collapsed,
40
- icon,
41
- iconSize,
42
- iconColor,
43
- onIconClick,
44
- }: IconProps) => {
45
- const color = colorMap[iconColor];
46
-
47
- const showIcon = (icon: string | string[]) => {
48
- if (typeof icon === "string") {
49
- return [icon, icon];
50
- }
51
- return icon;
52
- };
53
-
54
- const handleIconClick = (e: React.MouseEvent<HTMLElement>) => {
55
- if (onIconClick) {
56
- e.stopPropagation();
57
- onIconClick();
58
- }
59
- };
60
-
61
- return (
62
- <>
63
- {collapsed ? (
64
- <div
65
- className="icon_wrapper"
66
- key={icon ? showIcon(icon)[0] : "chevron-down"}
67
- onClick={(e) => handleIconClick(e)}
68
- style={{ verticalAlign: "middle", color: color }}
69
- >
70
- <Icon
71
- icon={icon ? showIcon(icon)[0] : "chevron-down"}
72
- size={iconSize}
73
- />
74
- </div>
75
- ) : (
76
- <div
77
- className="icon_wrapper"
78
- key={icon ? showIcon(icon)[1] : "chevron-up"}
79
- onClick={(e) => handleIconClick(e)}
80
- style={{ verticalAlign: "middle", color: color }}
81
- >
82
- <Icon
83
- icon={icon ? showIcon(icon)[1] : "chevron-up"}
84
- size={iconSize}
85
- />
86
- </div>
87
- )}
88
- </>
89
- );
90
- };
91
-
92
- export default CollapsibleIcon;
@@ -1,15 +0,0 @@
1
- <%= content_tag(:div,
2
- id: object.id,
3
- data: object.data,
4
- class: object.classname,
5
- aria: object.aria,
6
- style: "color: #{object.icon_color};",
7
- **combined_html_options) do %>
8
- <% if object.icon.present? %>
9
- <%= pb_rails("icon", props: { icon: object.show_icon(object.icon)[0], id:"collapsible_open_icon", size: object.size }) %>
10
- <%= pb_rails("icon", props: { icon: object.show_icon(object.icon)[1], id:"collapsible_close_icon", size: object.size }) %>
11
- <% else %>
12
- <%= pb_rails("icon", props: { icon: "chevron-down", id:"collapsible_open_icon", size: object.size }) %>
13
- <%= pb_rails("icon", props: { icon: "chevron-up", id:"collapsible_close_icon", size: object.size }) %>
14
- <% end %>
15
- <% end %>
@@ -1,37 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Playbook
4
- module PbCollapsible
5
- class CollapsibleIcon < Playbook::KitBase
6
- prop :collapsed, type: Playbook::Props::Boolean,
7
- default: true
8
- prop :color, type: Playbook::Props::Enum,
9
- values: %w[default light lighter link success error],
10
- default: "default"
11
- prop :icon
12
- prop :size, type: Playbook::Props::Enum,
13
- values: ["lg", "xs", "sm", "1x", "2x", "3x", "4x", "5x", "6x", "7x", "8x", "9x", "10x", nil],
14
- default: nil
15
-
16
- def classname
17
- generate_classname("pb_collapsible_icon_kit", separator: " ")
18
- end
19
-
20
- def show_icon(icon)
21
- case icon
22
- when ::String
23
- [icon, icon]
24
- when ::Array
25
- icon
26
- end
27
- end
28
-
29
- def icon_color
30
- return "" if color.nil?
31
-
32
- color_object = { light: "#687887", lighter: "#C1CDD6", link: "#0056CF", success: "#00CA74", error: "#FF2229", default: "#242B42" }
33
- color_object[color.to_sym]
34
- end
35
- end
36
- end
37
- end
@@ -1,72 +0,0 @@
1
- import React from 'react'
2
- import { Collapsible, useCollapsible, Background, Flex, Title, List, ListItem } from '../..'
3
-
4
- const CollapsibleCustomMain = () => {
5
- const [isCollapsed, setIsCollapsed] = useCollapsible(true)
6
-
7
- return (
8
- <>
9
- <Collapsible
10
- collapsed={isCollapsed}
11
- >
12
- <Background
13
- backgroundColor="white"
14
- cursor="pointer"
15
- htmlOptions={{onClick:() => setIsCollapsed(!isCollapsed)}}
16
- position="sticky"
17
- top="0"
18
- >
19
- <Flex
20
- align="center"
21
- gap="sm"
22
- justify="between"
23
- >
24
- <Title
25
- size={4}
26
- text="Custom Main Section"
27
- />
28
- </Flex>
29
- </Background>
30
- <Collapsible.Content padding="none">
31
- <div>
32
- <List>
33
- <ListItem
34
- align="stretch"
35
- flexDirection="column"
36
- >
37
- Checklist item
38
- </ListItem>
39
- <ListItem
40
- align="stretch"
41
- flexDirection="column"
42
- >
43
- Checklist item
44
- </ListItem>
45
- <ListItem
46
- align="stretch"
47
- flexDirection="column"
48
- >
49
- Checklist item
50
- </ListItem>
51
- <ListItem
52
- align="stretch"
53
- flexDirection="column"
54
- >
55
- Checklist item
56
- </ListItem>
57
- <ListItem
58
- align="stretch"
59
- flexDirection="column"
60
- >
61
- Checklist item
62
- </ListItem>
63
- </List>
64
- </div>
65
- </Collapsible.Content>
66
- </Collapsible>
67
-
68
- </>
69
- )
70
- }
71
-
72
- export default CollapsibleCustomMain
@@ -1,3 +0,0 @@
1
- Optionally replace your `Collapsible.Main` with any component to customize your Main section's contents and/or style. This gives you full control over that subcomponent. For example, here we are using global props to make that custom Main 'sticky' on scroll.
2
-
3
- __NOTE__: Custom main sections requires the `useCollapsible` hook to ensure the collapsible's toggle action works correctly.
@@ -1,19 +0,0 @@
1
- <%= pb_rails("collapsible", props: { name: "default-example" }) do %>
2
- <%= pb_rails("background", props: { background_color: "white", position: "sticky", top: "0", cursor:"pointer", data: {"collapsible-main": "true"} }) do %>
3
- <%= pb_rails("flex", props: {align:"center", gap:"sm", justify:"between"}) do %>
4
- <%= pb_rails("title", props: { text: "Custom Main Section", tag: "h4", size: 4 }) %>
5
- <% end %>
6
- <% end %>
7
- <%= pb_rails("flex", props: { align: "center", justify: "between" }) do %>
8
- <% end %>
9
- <%= pb_rails("collapsible/collapsible_content", props: { padding: "none" }) do %>
10
- <%= pb_rails("list", props: {ordered: false, dark: false, borderless: false}) do %>
11
- <%= pb_rails("list/item") do %> Checklist Item <% end %>
12
- <%= pb_rails("list/item") do %> Checklist Item <% end %>
13
- <%= pb_rails("list/item") do %> Checklist Item <% end %>
14
- <%= pb_rails("list/item") do %> Checklist Item <% end %>
15
- <%= pb_rails("list/item") do %> Checklist Item <% end %>
16
- <% end %>
17
- <% end %>
18
- <% end %>
19
-
@@ -1,3 +0,0 @@
1
- Optionally replace your `collapsible/collapsible_main` with any component to customize your Main section's contents and/or style. This gives you full control over that subcomponent. For example, here we are using global props to make that custom Main 'sticky' on scroll.
2
-
3
- __NOTE__: Custom main sections require `data: {"collapsible-main": "true"}` to ensure the collapsible's toggle action works correctly.
@@ -1,73 +0,0 @@
1
- import React from 'react'
2
- import { Collapsible, useCollapsible, Background, Flex, Title, List, ListItem } from '../..'
3
-
4
- const CollapsibleCustomMainWithIcon = () => {
5
- const [isCollapsed, setIsCollapsed] = useCollapsible(true)
6
-
7
- return (
8
- <>
9
- <Collapsible
10
- collapsed={isCollapsed}
11
- >
12
- <Background
13
- backgroundColor="white"
14
- cursor="pointer"
15
- htmlOptions={{onClick:() => setIsCollapsed(!isCollapsed)}}
16
- position="sticky"
17
- top="0"
18
- >
19
- <Flex
20
- align="center"
21
- gap="sm"
22
- justify="between"
23
- >
24
- <Title
25
- size={4}
26
- text="Custom Main Section"
27
- />
28
- <Collapsible.Icon collapsed={isCollapsed}/>
29
- </Flex>
30
- </Background>
31
- <Collapsible.Content padding="none">
32
- <div>
33
- <List>
34
- <ListItem
35
- align="stretch"
36
- flexDirection="column"
37
- >
38
- Checklist item
39
- </ListItem>
40
- <ListItem
41
- align="stretch"
42
- flexDirection="column"
43
- >
44
- Checklist item
45
- </ListItem>
46
- <ListItem
47
- align="stretch"
48
- flexDirection="column"
49
- >
50
- Checklist item
51
- </ListItem>
52
- <ListItem
53
- align="stretch"
54
- flexDirection="column"
55
- >
56
- Checklist item
57
- </ListItem>
58
- <ListItem
59
- align="stretch"
60
- flexDirection="column"
61
- >
62
- Checklist item
63
- </ListItem>
64
- </List>
65
- </div>
66
- </Collapsible.Content>
67
- </Collapsible>
68
-
69
- </>
70
- )
71
- }
72
-
73
- export default CollapsibleCustomMainWithIcon
@@ -1,3 +0,0 @@
1
- When using a custom Main Section, you can also use the optional `Collapsible.Icon`.
2
-
3
- __NOTE__: The optional icon subcomponent must receive the `collapsed` state of the collapsible in order to toggle correctly. It also accepts all icon-related props (`icon`, `size`, and `color`) for further customization. If none of these are specified, the default icon will be rendered.
@@ -1,20 +0,0 @@
1
- <%= pb_rails("collapsible", props: { name: "default-example" }) do %>
2
- <%= pb_rails("background", props: { background_color: "white", position: "sticky", top: "0", cursor:"pointer", data: {"collapsible-main": "true"} }) do %>
3
- <%= pb_rails("flex", props: {align:"center", gap:"sm", justify:"between"}) do %>
4
- <%= pb_rails("title", props: { text: "Custom Main Section", tag: "h4", size: 4 }) %>
5
- <%= pb_rails("collapsible/collapsible_icon") %>
6
- <% end %>
7
- <% end %>
8
- <%= pb_rails("flex", props: { align: "center", justify: "between" }) do %>
9
- <% end %>
10
- <%= pb_rails("collapsible/collapsible_content", props: { padding: "none" }) do %>
11
- <%= pb_rails("list", props: {ordered: false, dark: false, borderless: false}) do %>
12
- <%= pb_rails("list/item") do %> Checklist Item <% end %>
13
- <%= pb_rails("list/item") do %> Checklist Item <% end %>
14
- <%= pb_rails("list/item") do %> Checklist Item <% end %>
15
- <%= pb_rails("list/item") do %> Checklist Item <% end %>
16
- <%= pb_rails("list/item") do %> Checklist Item <% end %>
17
- <% end %>
18
- <% end %>
19
- <% end %>
20
-
@@ -1,3 +0,0 @@
1
- When using a custom Main Section, you can also use the optional `collapsible/collapsible_icon` subcomponent.
2
-
3
- __NOTE__: The optional icon subcomponent accepts all icon-related props (`icon`, `size`, and `color`) for further customization. If none of these are specified, the default icon will be rendered.
@@ -1,61 +0,0 @@
1
- ![Date-Range-Inline-Default](https://github.com/powerhome/playbook-swift/assets/54749071/793dc133-b2a8-4283-96e1-c8b19065392d)
2
-
3
- ```swift
4
- VStack(alignment: .leading, spacing: Spacing.large) {
5
- VStack(alignment: .leading, spacing: Spacing.small) {
6
- PBDateRangeInline(
7
- size: .caption,
8
- iconSize: .xSmall,
9
- startDate: "18 Jun 2013",
10
- endDate: "20 Mar 2015",
11
- startVariant: .standard
12
- )
13
- PBDateRangeInline(
14
- size: .body,
15
- iconSize: .x1,
16
- startDate: "18 Jun 2013",
17
- endDate: "20 Mar 2015",
18
- startVariant: .standard
19
- )
20
- }
21
- .frame(maxWidth: .infinity, alignment: .leading)
22
- VStack(alignment: .center, spacing: Spacing.small) {
23
- PBDateRangeInline(
24
- size: .caption,
25
- iconSize: .xSmall,
26
- startDate: "15 Jan 2013",
27
- endDate: "15 Aug 2015",
28
- startVariant: .short(showIcon: true),
29
- endVariant: .short(showIcon: false)
30
- )
31
- PBDateRangeInline(
32
- size: .body,
33
- iconSize: .x1,
34
- startDate: "15 Jan 2013",
35
- endDate: "15 Aug 2015",
36
- startVariant: .short(showIcon: true),
37
- endVariant: .short(showIcon: false)
38
- )
39
- }
40
- .frame(maxWidth: .infinity, alignment: .center)
41
- VStack(alignment: .trailing, spacing: Spacing.small) {
42
- PBDateRangeInline(
43
- size: .caption,
44
- iconSize: .xSmall,
45
- startDate: "15 Jan 2013",
46
- endDate: "15 Aug 2015",
47
- startVariant: .short(showIcon: true),
48
- endVariant: .short(showIcon: false)
49
- )
50
- PBDateRangeInline(
51
- size: .body,
52
- iconSize: .x1,
53
- startDate: "15 Jan 2013",
54
- endDate: "15 Aug 2015",
55
- startVariant: .short(showIcon: true),
56
- endVariant: .short(showIcon: false)
57
- )
58
- }
59
- .frame(maxWidth: .infinity, alignment: .trailing)
60
- }
61
- ```
@@ -1,11 +0,0 @@
1
- ### Props
2
- | Name | Type | Description | Default | Values |
3
- | --- | ----------- | --------- | --------- | --------- |
4
- | **date** | `Date` | Sets the date | `Date()` | |
5
- | **size** | `PBFont` | Sets the font size | `.body` | `.body` `.caption` `.subcaption` |
6
- | **iconSize** | `PBIcon.IconSize` | Sets the icon size | `.xSmall` | `xSmall` `small` `large` `x1` |
7
- | **startDate** | `String` | Takes a string value to set the starting date range value | | |
8
- | **endDate** | `String` | Takes a string value to set the ending date range value | | |
9
- | **startVariant** | `PBDate.Variant` | Changes the style of the starting date | `.standard` | `.short(showIcon: false)` `.dayDate` `.standard` `.withIcon(isStandard: true)` `withIcon(isStandard: false)` |
10
- | **endVariant** | `PBDate.Variant` | Changes the style of the ending date | `.standard` | `.short(showIcon: false)` `.dayDate` `.standard` `.withIcon(isStandard: true)` `withIcon(isStandard: false)` |
11
- | **isArrowIconBold** | `Bool` | Determines if the date range arrow is bold | `false` | `true` `false` |