playbook_ui_docs 16.9.0 → 16.10.0.pre.alpha.PLAY3053advancedtablebottompinnedrowsreact17469

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.
Files changed (226) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows.jsx +19 -2
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_react.md +2 -2
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.html.erb +4 -0
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.jsx +6 -2
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling_rails.md +1 -0
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling_react.md +1 -0
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header.html.erb +36 -44
  9. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header.jsx +10 -19
  10. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_rails.md +0 -4
  11. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_react.md +3 -5
  12. data/app/pb_kits/playbook/pb_advanced_table/docs/_playground.json +2 -8
  13. data/app/pb_kits/playbook/pb_advanced_table/docs/_playground.overrides.json +1 -8
  14. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -1
  15. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +0 -1
  16. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_year_asc.html.erb +1 -0
  17. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_year_asc.jsx +15 -0
  18. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_year_asc.md +1 -0
  19. data/app/pb_kits/playbook/pb_date_picker/docs/_playground.json +1 -0
  20. data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +2 -0
  21. data/app/pb_kits/playbook/pb_date_picker/docs/index.js +1 -0
  22. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_event_listeners_rails.md +1 -1
  23. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_independent_containers.html.erb +35 -0
  24. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_independent_containers_rails.md +8 -0
  25. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_rails.md +3 -1
  26. data/app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_react.md +1 -1
  27. data/app/pb_kits/playbook/pb_draggable/docs/_playground.json +260 -19
  28. data/app/pb_kits/playbook/pb_draggable/docs/_playground.overrides.json +258 -13
  29. data/app/pb_kits/playbook/pb_draggable/docs/example.yml +1 -0
  30. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_custom_display_disabled_option.html.erb +93 -0
  31. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_custom_display_disabled_option.jsx +127 -0
  32. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_custom_display_disabled_option.md +1 -0
  33. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_disabled.html.erb +10 -0
  34. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_disabled.jsx +37 -0
  35. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_disabled_option.html.erb +10 -0
  36. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_disabled_option.jsx +37 -0
  37. data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_disabled_option.md +1 -0
  38. data/app/pb_kits/playbook/pb_dropdown/docs/_playground.json +150 -237
  39. data/app/pb_kits/playbook/pb_dropdown/docs/_playground.overrides.json +58 -74
  40. data/app/pb_kits/playbook/pb_dropdown/docs/example.yml +6 -0
  41. data/app/pb_kits/playbook/pb_dropdown/docs/index.js +3 -0
  42. data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_remove_replace.html.erb +66 -0
  43. data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_remove_replace.jsx +53 -0
  44. data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_remove_replace.md +5 -0
  45. data/app/pb_kits/playbook/pb_file_upload/docs/_playground.json +2 -1
  46. data/app/pb_kits/playbook/pb_file_upload/docs/example.yml +3 -1
  47. data/app/pb_kits/playbook/pb_file_upload/docs/index.js +1 -0
  48. data/app/pb_kits/playbook/pb_filter/docs/_filter_interactive.html.erb +116 -0
  49. data/app/pb_kits/playbook/pb_filter/docs/_filter_interactive.md +12 -0
  50. data/app/pb_kits/playbook/pb_filter/docs/_filter_interactive_react.jsx +153 -0
  51. data/app/pb_kits/playbook/pb_filter/docs/_filter_interactive_react.md +10 -0
  52. data/app/pb_kits/playbook/pb_filter/docs/_filter_no_background.html.erb +1 -1
  53. data/app/pb_kits/playbook/pb_filter/docs/_playground.json +308 -5
  54. data/app/pb_kits/playbook/pb_filter/docs/_playground.overrides.json +312 -0
  55. data/app/pb_kits/playbook/pb_filter/docs/example.yml +2 -0
  56. data/app/pb_kits/playbook/pb_filter/docs/index.js +2 -1
  57. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_playground.json +210 -14
  58. data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_playground.overrides.json +231 -0
  59. data/app/pb_kits/playbook/pb_flex/docs/_playground.json +297 -38
  60. data/app/pb_kits/playbook/pb_flex/docs/_playground.overrides.json +300 -40
  61. data/app/pb_kits/playbook/pb_form/docs/_form_with_required_indicator.html.erb +20 -19
  62. data/app/pb_kits/playbook/pb_form/docs/_playground.json +1 -13
  63. data/app/pb_kits/playbook/pb_form_group/docs/_playground.json +82 -5
  64. data/app/pb_kits/playbook/pb_form_group/docs/_playground.overrides.json +91 -0
  65. data/app/pb_kits/playbook/pb_form_pill/docs/_playground.json +155 -14
  66. data/app/pb_kits/playbook/pb_form_pill/docs/_playground.overrides.json +147 -0
  67. data/app/pb_kits/playbook/pb_full_screen/docs/_description.md +1 -0
  68. data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_content_padding.jsx +68 -0
  69. data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_content_padding.md +1 -0
  70. data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_custom_trigger.jsx +71 -0
  71. data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_custom_trigger.md +1 -0
  72. data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_default.html.erb +3 -0
  73. data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_default.jsx +63 -0
  74. data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_default.md +1 -0
  75. data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_header_text_styling.jsx +68 -0
  76. data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_header_text_styling.md +1 -0
  77. data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_sticky_header.jsx +68 -0
  78. data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_sticky_header.md +1 -0
  79. data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_table_and_filter.jsx +149 -0
  80. data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_table_and_filter.md +1 -0
  81. data/app/pb_kits/playbook/pb_full_screen/docs/_playground.json +155 -0
  82. data/app/pb_kits/playbook/pb_full_screen/docs/_playground.overrides.json +137 -0
  83. data/app/pb_kits/playbook/pb_full_screen/docs/example.yml +14 -0
  84. data/app/pb_kits/playbook/pb_full_screen/docs/index.js +6 -0
  85. data/app/pb_kits/playbook/pb_hashtag/docs/_playground.json +72 -11
  86. data/app/pb_kits/playbook/pb_hashtag/docs/_playground.overrides.json +75 -0
  87. data/app/pb_kits/playbook/pb_highlight/docs/_playground.json +75 -4
  88. data/app/pb_kits/playbook/pb_highlight/docs/_playground.overrides.json +75 -0
  89. data/app/pb_kits/playbook/pb_home_address_street/docs/_playground.json +138 -12
  90. data/app/pb_kits/playbook/pb_home_address_street/docs/_playground.overrides.json +162 -0
  91. data/app/pb_kits/playbook/pb_icon/docs/_icon_default.jsx +1 -1
  92. data/app/pb_kits/playbook/pb_icon/docs/_playground.json +66 -41
  93. data/app/pb_kits/playbook/pb_icon/docs/_playground.overrides.json +85 -27
  94. data/app/pb_kits/playbook/pb_icon_button/docs/_playground.json +111 -9
  95. data/app/pb_kits/playbook/pb_icon_button/docs/_playground.overrides.json +131 -0
  96. data/app/pb_kits/playbook/pb_icon_circle/docs/_playground.json +92 -7
  97. data/app/pb_kits/playbook/pb_icon_circle/docs/_playground.overrides.json +108 -0
  98. data/app/pb_kits/playbook/pb_icon_stat_value/docs/_playground.json +32 -17
  99. data/app/pb_kits/playbook/pb_icon_stat_value/docs/_playground.overrides.json +81 -8
  100. data/app/pb_kits/playbook/pb_icon_value/docs/_playground.json +28 -18
  101. data/app/pb_kits/playbook/pb_icon_value/docs/_playground.overrides.json +58 -9
  102. data/app/pb_kits/playbook/pb_image/docs/_playground.json +124 -47
  103. data/app/pb_kits/playbook/pb_image/docs/_playground.overrides.json +122 -47
  104. data/app/pb_kits/playbook/pb_label_pill/docs/_playground.json +68 -6
  105. data/app/pb_kits/playbook/pb_label_pill/docs/_playground.overrides.json +85 -0
  106. data/app/pb_kits/playbook/pb_label_value/docs/_playground.json +59 -36
  107. data/app/pb_kits/playbook/pb_label_value/docs/_playground.overrides.json +101 -30
  108. data/app/pb_kits/playbook/pb_layout/docs/_playground.json +216 -10
  109. data/app/pb_kits/playbook/pb_layout/docs/_playground.overrides.json +188 -0
  110. data/app/pb_kits/playbook/pb_legend/docs/_playground.json +60 -7
  111. data/app/pb_kits/playbook/pb_legend/docs/_playground.overrides.json +77 -0
  112. data/app/pb_kits/playbook/pb_list/docs/_playground.json +165 -17
  113. data/app/pb_kits/playbook/pb_list/docs/_playground.overrides.json +191 -0
  114. data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_color.html.erb +21 -0
  115. data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_color.jsx +55 -0
  116. data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_color.md +1 -0
  117. data/app/pb_kits/playbook/pb_loading_inline/docs/_playground.json +28 -1
  118. data/app/pb_kits/playbook/pb_loading_inline/docs/_playground.overrides.json +27 -1
  119. data/app/pb_kits/playbook/pb_loading_inline/docs/example.yml +2 -0
  120. data/app/pb_kits/playbook/pb_loading_inline/docs/index.js +1 -0
  121. data/app/pb_kits/playbook/pb_map/docs/_playground.json +164 -7
  122. data/app/pb_kits/playbook/pb_map/docs/_playground.overrides.json +180 -0
  123. data/app/pb_kits/playbook/pb_message/docs/_playground.json +114 -8
  124. data/app/pb_kits/playbook/pb_message/docs/_playground.overrides.json +144 -0
  125. data/app/pb_kits/playbook/pb_multi_level_select/docs/_playground.json +310 -61
  126. data/app/pb_kits/playbook/pb_multi_level_select/docs/_playground.overrides.json +327 -44
  127. data/app/pb_kits/playbook/pb_multiple_users/docs/_playground.json +35 -6
  128. data/app/pb_kits/playbook/pb_multiple_users/docs/_playground.overrides.json +35 -6
  129. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_playground.json +32 -21
  130. data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_playground.overrides.json +32 -21
  131. data/app/pb_kits/playbook/pb_nav/docs/_playground.json +546 -18
  132. data/app/pb_kits/playbook/pb_nav/docs/_playground.overrides.json +561 -14
  133. data/app/pb_kits/playbook/pb_online_status/docs/_playground.json +18 -23
  134. data/app/pb_kits/playbook/pb_online_status/docs/_playground.overrides.json +18 -14
  135. data/app/pb_kits/playbook/pb_overlay/docs/_playground.json +133 -14
  136. data/app/pb_kits/playbook/pb_overlay/docs/_playground.overrides.json +154 -0
  137. data/app/pb_kits/playbook/pb_pagination/docs/_playground.json +35 -14
  138. data/app/pb_kits/playbook/pb_pagination/docs/_playground.overrides.json +35 -14
  139. data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_breached.html.erb +1 -1
  140. data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_common.html.erb +1 -1
  141. data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_meter_settings.html.erb +5 -5
  142. data/app/pb_kits/playbook/pb_passphrase/docs/_passphrase_strength_change.html.erb +1 -1
  143. data/app/pb_kits/playbook/pb_passphrase/docs/_playground.json +129 -14
  144. data/app/pb_kits/playbook/pb_passphrase/docs/_playground.overrides.json +148 -0
  145. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_playground.json +378 -4
  146. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_playground.overrides.json +245 -0
  147. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_playground.json +215 -4
  148. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_playground.overrides.json +224 -0
  149. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_playground.json +149 -4
  150. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_playground.overrides.json +162 -0
  151. data/app/pb_kits/playbook/pb_pb_line_graph/docs/_playground.json +392 -4
  152. data/app/pb_kits/playbook/pb_pb_line_graph/docs/_playground.overrides.json +212 -0
  153. data/app/pb_kits/playbook/pb_person/docs/_playground.json +27 -11
  154. data/app/pb_kits/playbook/pb_person/docs/_playground.overrides.json +34 -9
  155. data/app/pb_kits/playbook/pb_person_contact/docs/_playground.json +72 -21
  156. data/app/pb_kits/playbook/pb_person_contact/docs/_playground.overrides.json +71 -21
  157. data/app/pb_kits/playbook/pb_phone_number_input/docs/_playground.json +179 -21
  158. data/app/pb_kits/playbook/pb_phone_number_input/docs/_playground.overrides.json +180 -0
  159. data/app/pb_kits/playbook/pb_pill/docs/_playground.json +16 -49
  160. data/app/pb_kits/playbook/pb_pill/docs/_playground.overrides.json +33 -30
  161. data/app/pb_kits/playbook/pb_popover/docs/_playground.json +155 -46
  162. data/app/pb_kits/playbook/pb_popover/docs/_playground.overrides.json +162 -30
  163. data/app/pb_kits/playbook/pb_popover/docs/_popover_list.jsx +9 -11
  164. data/app/pb_kits/playbook/pb_progress_pills/docs/_playground.json +26 -13
  165. data/app/pb_kits/playbook/pb_progress_pills/docs/_playground.overrides.json +24 -6
  166. data/app/pb_kits/playbook/pb_progress_simple/docs/_playground.json +50 -17
  167. data/app/pb_kits/playbook/pb_progress_simple/docs/_playground.overrides.json +41 -7
  168. data/app/pb_kits/playbook/pb_progress_step/docs/_playground.json +197 -10
  169. data/app/pb_kits/playbook/pb_progress_step/docs/_playground.overrides.json +189 -0
  170. data/app/pb_kits/playbook/pb_radio/docs/_playground.json +80 -6
  171. data/app/pb_kits/playbook/pb_radio/docs/_playground.overrides.json +82 -3
  172. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_playground.json +152 -22
  173. data/app/pb_kits/playbook/pb_rich_text_editor/docs/_playground.overrides.json +153 -0
  174. data/app/pb_kits/playbook/pb_select/docs/_playground.json +65 -19
  175. data/app/pb_kits/playbook/pb_select/docs/_playground.overrides.json +54 -14
  176. data/app/pb_kits/playbook/pb_selectable_card/docs/_playground.json +75 -82
  177. data/app/pb_kits/playbook/pb_selectable_card/docs/_playground.overrides.json +76 -76
  178. data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_playground.json +105 -15
  179. data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_playground.overrides.json +106 -0
  180. data/app/pb_kits/playbook/pb_selectable_icon/docs/_playground.json +37 -21
  181. data/app/pb_kits/playbook/pb_selectable_icon/docs/_playground.overrides.json +35 -18
  182. data/app/pb_kits/playbook/pb_selectable_list/docs/_playground.json +174 -12
  183. data/app/pb_kits/playbook/pb_selectable_list/docs/_playground.overrides.json +162 -10
  184. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_playground.json +68 -6
  185. data/app/pb_kits/playbook/pb_skeleton_loading/docs/_playground.overrides.json +80 -0
  186. data/app/pb_kits/playbook/pb_source/docs/_playground.json +67 -6
  187. data/app/pb_kits/playbook/pb_source/docs/_playground.overrides.json +80 -0
  188. data/app/pb_kits/playbook/pb_star_rating/docs/_playground.json +28 -53
  189. data/app/pb_kits/playbook/pb_star_rating/docs/_playground.overrides.json +33 -32
  190. data/app/pb_kits/playbook/pb_stat_change/docs/_playground.json +15 -9
  191. data/app/pb_kits/playbook/pb_stat_change/docs/_playground.overrides.json +15 -5
  192. data/app/pb_kits/playbook/pb_stat_value/docs/_playground.json +19 -9
  193. data/app/pb_kits/playbook/pb_stat_value/docs/_playground.overrides.json +18 -7
  194. data/app/pb_kits/playbook/pb_table/docs/_playground.json +223 -21
  195. data/app/pb_kits/playbook/pb_table/docs/_playground.overrides.json +176 -0
  196. data/app/pb_kits/playbook/pb_text_input/docs/_playground.json +44 -5
  197. data/app/pb_kits/playbook/pb_text_input/docs/_playground.overrides.json +39 -3
  198. data/app/pb_kits/playbook/pb_textarea/docs/_playground.json +35 -3
  199. data/app/pb_kits/playbook/pb_textarea/docs/_playground.overrides.json +28 -3
  200. data/app/pb_kits/playbook/pb_time/docs/_playground.json +28 -14
  201. data/app/pb_kits/playbook/pb_time/docs/_playground.overrides.json +26 -13
  202. data/app/pb_kits/playbook/pb_time_picker/docs/_playground.json +36 -30
  203. data/app/pb_kits/playbook/pb_time_picker/docs/_playground.overrides.json +31 -26
  204. data/app/pb_kits/playbook/pb_time_range_inline/docs/_playground.json +63 -9
  205. data/app/pb_kits/playbook/pb_time_range_inline/docs/_playground.overrides.json +69 -0
  206. data/app/pb_kits/playbook/pb_time_stacked/docs/_playground.json +30 -9
  207. data/app/pb_kits/playbook/pb_time_stacked/docs/_playground.overrides.json +30 -9
  208. data/app/pb_kits/playbook/pb_timeline/docs/_playground.json +178 -6
  209. data/app/pb_kits/playbook/pb_timeline/docs/_playground.overrides.json +165 -0
  210. data/app/pb_kits/playbook/pb_timestamp/docs/_playground.json +36 -21
  211. data/app/pb_kits/playbook/pb_timestamp/docs/_playground.overrides.json +35 -20
  212. data/app/pb_kits/playbook/pb_toggle/docs/_playground.json +24 -13
  213. data/app/pb_kits/playbook/pb_toggle/docs/_playground.overrides.json +20 -12
  214. data/app/pb_kits/playbook/pb_tooltip/docs/_playground.json +42 -23
  215. data/app/pb_kits/playbook/pb_tooltip/docs/_playground.overrides.json +35 -15
  216. data/app/pb_kits/playbook/pb_typeahead/docs/_playground.json +124 -44
  217. data/app/pb_kits/playbook/pb_typeahead/docs/_playground.overrides.json +98 -31
  218. data/app/pb_kits/playbook/pb_user/docs/_playground.json +33 -15
  219. data/app/pb_kits/playbook/pb_user/docs/_playground.overrides.json +32 -15
  220. data/app/pb_kits/playbook/pb_user_badge/docs/_playground.json +26 -12
  221. data/app/pb_kits/playbook/pb_user_badge/docs/_playground.overrides.json +26 -9
  222. data/app/pb_kits/playbook/pb_weekday_stacked/docs/_playground.json +32 -5
  223. data/app/pb_kits/playbook/pb_weekday_stacked/docs/_playground.overrides.json +30 -4
  224. metadata +73 -4
  225. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_fullscreen.jsx +0 -92
  226. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_fullscreen.md +0 -3
@@ -0,0 +1,231 @@
1
+ {
2
+ "structureModes": {
3
+ "default": "toast",
4
+ "modes": {
5
+ "toast": {
6
+ "label": "Toast",
7
+ "template": "<FixedConfirmationToast{{props}} />",
8
+ "children": "",
9
+ "props": {
10
+ "open": true
11
+ }
12
+ },
13
+ "with_children": {
14
+ "label": "Children",
15
+ "template": "<FixedConfirmationToast{{props}}>\n {{children}}\n</FixedConfirmationToast>",
16
+ "children": "<Title\n dark\n marginLeft=\"md\"\n size={4}\n text=\"Design & Handoff Process was moved to UX Designer Learning Track.\"\n />\n <Button\n dark\n onClick={() => alert(\"Undo clicked\")}\n paddingRight=\"none\"\n text=\"Undo\"\n variant=\"link\"\n />",
17
+ "props": {
18
+ "paddingY": "none",
19
+ "status": "success",
20
+ "text": null
21
+ }
22
+ },
23
+ "positioned": {
24
+ "label": "Positioned",
25
+ "template": "<FixedConfirmationToast\n horizontal={horizontal}\n onClose={() => setOpen(false)}\n open={open}\n text={`${vertical} ${horizontal}`}\n vertical={vertical}{{props}}\n/>",
26
+ "children": "",
27
+ "props": {
28
+ "closeable": true,
29
+ "horizontal": null,
30
+ "onClose": null,
31
+ "open": null,
32
+ "status": "neutral",
33
+ "text": null,
34
+ "vertical": null
35
+ },
36
+ "wrapper": "const FixedConfirmationToastPositionedExample = () => {\n const [open, setOpen] = useState(true)\n const [vertical, setVertical] = useState('top')\n const [horizontal, setHorizontal] = useState('center')\n\n return (\n <>\n <Button\n marginRight=\"xs\"\n onClick={() => {\n setVertical('top')\n setHorizontal('center')\n setOpen(true)\n }}\n text=\"Top Center\"\n variant=\"secondary\"\n />\n <Button\n marginRight=\"xs\"\n onClick={() => {\n setVertical('top')\n setHorizontal('right')\n setOpen(true)\n }}\n text=\"Top Right\"\n variant=\"secondary\"\n />\n <Button\n onClick={() => {\n setVertical('bottom')\n setHorizontal('right')\n setOpen(true)\n }}\n text=\"Bottom Right\"\n variant=\"secondary\"\n />\n {{component}}\n </>\n )\n}\n\n<FixedConfirmationToastPositionedExample />"
37
+ }
38
+ }
39
+ },
40
+ "children": {
41
+ "editable": true,
42
+ "default": ""
43
+ },
44
+ "defaults": {
45
+ "autoClose": 0,
46
+ "closeable": false,
47
+ "multiLine": false,
48
+ "navMarginTop": false,
49
+ "onClose": "() => {}",
50
+ "open": true,
51
+ "status": "success",
52
+ "text": "Items Successfully Moved",
53
+ "zIndex": "max"
54
+ },
55
+ "groups": [
56
+ {
57
+ "name": "Content",
58
+ "props": [
59
+ "status",
60
+ "text",
61
+ "icon"
62
+ ]
63
+ },
64
+ {
65
+ "name": "Behavior",
66
+ "props": [
67
+ "open",
68
+ "closeable",
69
+ "autoClose",
70
+ "onClose"
71
+ ]
72
+ },
73
+ {
74
+ "name": "Position",
75
+ "props": [
76
+ "vertical",
77
+ "horizontal",
78
+ "navMarginTop",
79
+ "zIndex"
80
+ ]
81
+ },
82
+ {
83
+ "name": "Layout",
84
+ "props": [
85
+ "multiLine"
86
+ ]
87
+ }
88
+ ],
89
+ "presets": [
90
+ {
91
+ "name": "Success",
92
+ "structureMode": "toast",
93
+ "props": {
94
+ "status": "success",
95
+ "text": "Items Successfully Moved"
96
+ }
97
+ },
98
+ {
99
+ "name": "Closeable",
100
+ "structureMode": "toast",
101
+ "props": {
102
+ "closeable": true,
103
+ "text": "I am a closeable toast"
104
+ }
105
+ },
106
+ {
107
+ "name": "Positioned",
108
+ "structureMode": "toast",
109
+ "props": {
110
+ "closeable": true,
111
+ "horizontal": "center",
112
+ "text": "I am a positioned toast",
113
+ "vertical": "top"
114
+ }
115
+ },
116
+ {
117
+ "name": "Custom Icon",
118
+ "structureMode": "toast",
119
+ "props": {
120
+ "icon": "file-pdf",
121
+ "status": "neutral",
122
+ "text": "Saved as PDF"
123
+ }
124
+ },
125
+ {
126
+ "name": "No Icon",
127
+ "structureMode": "toast",
128
+ "props": {
129
+ "icon": "none",
130
+ "status": "success",
131
+ "text": "Items Successfully Moved"
132
+ }
133
+ },
134
+ {
135
+ "name": "Multi Line",
136
+ "structureMode": "toast",
137
+ "props": {
138
+ "closeable": true,
139
+ "horizontal": "center",
140
+ "multiLine": true,
141
+ "status": "tip",
142
+ "text": "Multi-line is used when the given text will not fit on one line. Resize the screen to see the toast wrap the text.",
143
+ "vertical": "top"
144
+ }
145
+ },
146
+ {
147
+ "name": "Auto Close",
148
+ "structureMode": "toast",
149
+ "props": {
150
+ "autoClose": 3000,
151
+ "horizontal": "center",
152
+ "status": "tip",
153
+ "text": "I will disappear in 3 seconds.",
154
+ "vertical": "top"
155
+ }
156
+ },
157
+ {
158
+ "name": "With children",
159
+ "structureMode": "with_children",
160
+ "props": {
161
+ "status": "success",
162
+ "text": null
163
+ }
164
+ },
165
+ {
166
+ "name": "Positioned Controls",
167
+ "structureMode": "positioned",
168
+ "props": {
169
+ "closeable": true,
170
+ "status": "neutral"
171
+ }
172
+ }
173
+ ],
174
+ "conditionals": {
175
+ "horizontal": {
176
+ "requires": "vertical"
177
+ },
178
+ "navMarginTop": {
179
+ "requires": {
180
+ "vertical": "top"
181
+ }
182
+ }
183
+ },
184
+ "hints": {
185
+ "success": {
186
+ "presetName": "Success",
187
+ "message": "Success is the default confirmation toast pattern for completed actions.",
188
+ "type": "info"
189
+ },
190
+ "error_closeable": {
191
+ "presetName": "Closeable",
192
+ "message": "Closeable shows the dismiss icon and lets the user close the toast.",
193
+ "type": "info"
194
+ },
195
+ "neutral": {
196
+ "presetName": "Positioned",
197
+ "message": "Positioned sets both vertical and horizontal, which are both needed for fixed placement.",
198
+ "type": "info"
199
+ },
200
+ "custom_icon": {
201
+ "presetName": "Custom Icon",
202
+ "message": "Custom Icon replaces the default status icon while keeping the toast status styling.",
203
+ "type": "info"
204
+ },
205
+ "no_icon": {
206
+ "presetName": "No Icon",
207
+ "message": "No Icon uses icon=\"none\" to render text without any leading icon.",
208
+ "type": "info"
209
+ },
210
+ "multi_line": {
211
+ "presetName": "Multi Line",
212
+ "message": "Multi Line allows longer toast messages to wrap instead of staying on one line.",
213
+ "type": "info"
214
+ },
215
+ "auto_close": {
216
+ "presetName": "Auto Close",
217
+ "message": "Auto Close dismisses the toast after the configured duration in milliseconds.",
218
+ "type": "info"
219
+ },
220
+ "children": {
221
+ "presetName": "With children",
222
+ "message": "Children mode replaces text with composed content, matching the docs example with a title and Undo action.",
223
+ "type": "info"
224
+ },
225
+ "positioned_controls": {
226
+ "presetName": "Positioned Controls",
227
+ "message": "Positioned Controls keeps open, onClose, vertical, and horizontal in wrapper state so the buttons can reopen and move the toast.",
228
+ "type": "info"
229
+ }
230
+ }
231
+ }
@@ -1,6 +1,14 @@
1
1
  {
2
2
  "template": "<Flex{{props}}>{{children}}</Flex>",
3
- "propTargets": {},
3
+ "propTargets": {
4
+ "flexItemFixedSize": "FlexItem.props",
5
+ "flexItemGrow": "FlexItem.props",
6
+ "flexItemShrink": "FlexItem.props",
7
+ "flexItemFlex": "FlexItem.props",
8
+ "flexItemOrder": "FlexItem.props",
9
+ "flexItemAlignSelf": "FlexItem.props",
10
+ "flexItemDisplayFlex": "FlexItem.props"
11
+ },
4
12
  "defaults": {
5
13
  "horizontal": "left",
6
14
  "justify": "none",
@@ -15,11 +23,11 @@
15
23
  },
16
24
  "children": {
17
25
  "editable": true,
18
- "default": "<Caption text=\"A\" /><Caption text=\"B\" /><Caption text=\"C\" />"
26
+ "default": "<Caption text=\"A\" />\n<Caption text=\"B\" />\n<Caption text=\"C\" />"
19
27
  },
20
28
  "groups": [
21
29
  {
22
- "name": "Direction & flow",
30
+ "name": "Direction & Flow",
23
31
  "props": [
24
32
  "orientation",
25
33
  "reverse",
@@ -28,7 +36,7 @@
28
36
  ]
29
37
  },
30
38
  {
31
- "name": "Primary axis",
39
+ "name": "Primary Axis",
32
40
  "props": [
33
41
  "horizontal",
34
42
  "justify",
@@ -36,98 +44,349 @@
36
44
  ]
37
45
  },
38
46
  {
39
- "name": "Cross axis",
47
+ "name": "Cross Axis",
40
48
  "props": [
41
49
  "vertical",
42
50
  "align",
43
51
  "alignSelf"
44
52
  ]
53
+ },
54
+ {
55
+ "name": "Gap",
56
+ "props": [
57
+ "gap",
58
+ "rowGap",
59
+ "columnGap"
60
+ ]
61
+ },
62
+ {
63
+ "name": "FlexItem Props",
64
+ "props": [
65
+ "flexItemFixedSize",
66
+ "flexItemGrow",
67
+ "flexItemShrink",
68
+ "flexItemFlex",
69
+ "flexItemOrder",
70
+ "flexItemAlignSelf",
71
+ "flexItemDisplayFlex"
72
+ ]
45
73
  }
46
74
  ],
47
75
  "presets": [
48
76
  {
49
- "name": "Row (start)",
77
+ "name": "Row",
78
+ "structureMode": "basic",
50
79
  "props": {
51
- "orientation": "row",
52
- "justify": "none",
53
80
  "horizontal": "left",
81
+ "justify": "none",
82
+ "orientation": "row",
54
83
  "vertical": "top"
55
84
  },
56
- "children": "<Caption text=\"A\" /><Caption text=\"B\" /><Caption text=\"C\" />"
85
+ "children": "<Caption text=\"A\" />\n<Caption text=\"B\" />\n<Caption text=\"C\" />"
57
86
  },
58
87
  {
59
88
  "name": "Column",
89
+ "structureMode": "basic",
60
90
  "props": {
61
- "orientation": "column",
62
- "justify": "none",
63
91
  "horizontal": "left",
92
+ "justify": "none",
93
+ "orientation": "column",
64
94
  "vertical": "top"
65
95
  },
66
- "children": "<Caption text=\"One\" /><Caption text=\"Two\" /><Caption text=\"Three\" />"
96
+ "children": "<Caption text=\"One\" />\n<Caption text=\"Two\" />\n<Caption text=\"Three\" />"
67
97
  },
68
98
  {
69
99
  "name": "Centered",
100
+ "structureMode": "basic",
70
101
  "props": {
71
- "orientation": "row",
72
102
  "justify": "center",
103
+ "orientation": "row",
73
104
  "vertical": "center"
74
105
  },
75
106
  "children": "<Caption text=\"Centered\" />"
76
107
  },
77
108
  {
78
- "name": "Space between",
109
+ "name": "Space Between",
110
+ "structureMode": "basic",
79
111
  "props": {
80
- "orientation": "row",
81
112
  "justify": "between",
113
+ "orientation": "row",
82
114
  "vertical": "center"
83
115
  },
84
- "children": "<Caption text=\"Left\" /><Caption text=\"Right\" />"
116
+ "children": "<Caption text=\"Left\" />\n<Caption text=\"Right\" />"
85
117
  },
86
118
  {
87
- "name": "Space around",
119
+ "name": "Wrap",
120
+ "structureMode": "flex_items",
88
121
  "props": {
122
+ "gap": "xs",
123
+ "justify": "start",
89
124
  "orientation": "row",
90
- "justify": "around",
91
- "vertical": "center"
125
+ "wrap": true
92
126
  },
93
- "children": "<Caption text=\"A\" /><Caption text=\"B\" /><Caption text=\"C\" />"
127
+ "children": "<FlexItem fixedSize=\"160px\">\n {'Item 1'}\n</FlexItem>\n<FlexItem fixedSize=\"160px\">\n {'Item 2'}\n</FlexItem>\n<FlexItem fixedSize=\"160px\">\n {'Item 3'}\n</FlexItem>\n<FlexItem fixedSize=\"160px\">\n {'Item 4'}\n</FlexItem>\n<FlexItem fixedSize=\"160px\">\n {'Item 5'}\n</FlexItem>"
94
128
  },
95
129
  {
96
- "name": "End aligned",
130
+ "name": "Gap",
131
+ "structureMode": "flex_items",
97
132
  "props": {
133
+ "gap": "sm",
98
134
  "orientation": "row",
99
- "justify": "end",
100
- "vertical": "center"
135
+ "wrap": true
101
136
  },
102
- "children": "<Caption text=\"Trailing\" />"
137
+ "children": "<FlexItem>{'1'}</FlexItem>\n<FlexItem>{'2'}</FlexItem>\n<FlexItem>{'3'}</FlexItem>\n<FlexItem>{'4'}</FlexItem>"
103
138
  },
104
139
  {
105
- "name": "Wrap",
140
+ "name": "Responsive Gap",
141
+ "structureMode": "flex_items",
106
142
  "props": {
143
+ "gap": {
144
+ "xs": "none",
145
+ "sm": "sm",
146
+ "md": "md",
147
+ "lg": "lg",
148
+ "xl": "xl"
149
+ },
107
150
  "orientation": "row",
108
- "wrap": true,
109
- "justify": "start"
151
+ "wrap": true
110
152
  },
111
- "children": "<Caption text=\"Item 1\" /><Caption text=\"Item 2\" /><Caption text=\"Item 3\" /><Caption text=\"Item 4\" />"
153
+ "children": "<FlexItem fixedSize=\"96px\">{'1'}</FlexItem>\n<FlexItem fixedSize=\"96px\">{'2'}</FlexItem>\n<FlexItem fixedSize=\"96px\">{'3'}</FlexItem>\n<FlexItem fixedSize=\"96px\">{'4'}</FlexItem>"
112
154
  },
113
155
  {
114
- "name": "Inline flex",
156
+ "name": "FlexItem Grow",
157
+ "structureMode": "controlled_flex_item",
115
158
  "props": {
116
- "inline": true,
117
- "orientation": "row",
118
- "vertical": "center"
159
+ "flexItemGrow": true,
160
+ "gap": "xs"
119
161
  },
120
- "children": "<Caption text=\"Inline\" /> <Caption text=\"chips\" />"
162
+ "children": "{'I grow'}"
121
163
  },
122
164
  {
123
- "name": "Column (center items)",
165
+ "name": "FlexItem Fixed Size",
166
+ "structureMode": "controlled_flex_item",
124
167
  "props": {
125
- "orientation": "column",
126
- "align": "center"
168
+ "flexItemFixedSize": "240px",
169
+ "gap": "xs"
127
170
  },
128
- "children": "<Caption text=\"Stacked\" /><Caption text=\"centered\" />"
171
+ "children": "{'240px'}"
172
+ },
173
+ {
174
+ "name": "FlexItem Order",
175
+ "structureMode": "controlled_flex_item",
176
+ "props": {
177
+ "flexItemOrder": "4",
178
+ "gap": "xs"
179
+ },
180
+ "children": "{'1'}"
181
+ },
182
+ {
183
+ "name": "FlexItem Align Self",
184
+ "structureMode": "controlled_flex_item",
185
+ "props": {
186
+ "flexItemAlignSelf": "center",
187
+ "gap": "xs",
188
+ "vertical": "stretch"
189
+ },
190
+ "children": "{'center'}"
191
+ },
192
+ {
193
+ "name": "Display FlexItem",
194
+ "structureMode": "controlled_flex_item",
195
+ "props": {
196
+ "flexItemDisplayFlex": true,
197
+ "gap": "xs"
198
+ },
199
+ "children": "<FlexItem>\n {'We'}\n</FlexItem>\n<FlexItem>\n {'Are'}\n</FlexItem>\n<FlexItem>\n {'Being'}\n</FlexItem>\n<FlexItem>\n {'Flexed'}\n</FlexItem>"
129
200
  }
130
201
  ],
131
202
  "conditionals": {},
132
- "hints": {}
203
+ "hints": {
204
+ "row": {
205
+ "presetName": "Row",
206
+ "message": "Row is the default Flex direction and keeps editable children as direct children of Flex.",
207
+ "type": "info"
208
+ },
209
+ "column": {
210
+ "presetName": "Column",
211
+ "message": "Column stacks the same editable children vertically.",
212
+ "type": "info"
213
+ },
214
+ "centered": {
215
+ "presetName": "Centered",
216
+ "message": "Centered combines justify=\"center\" with vertical=\"center\" for centered row content.",
217
+ "type": "info"
218
+ },
219
+ "space_between": {
220
+ "presetName": "Space Between",
221
+ "message": "Space Between spreads the first and last children across the primary axis.",
222
+ "type": "info"
223
+ },
224
+ "wrap": {
225
+ "presetName": "Wrap",
226
+ "message": "Wrap uses fixed-size FlexItem children so wrapping behavior is visible as the preview width changes.",
227
+ "type": "info"
228
+ },
229
+ "gap": {
230
+ "presetName": "Gap",
231
+ "message": "Gap applies spacing between FlexItem children without adding margins to the child content.",
232
+ "type": "info"
233
+ },
234
+ "responsive_gap": {
235
+ "presetName": "Responsive Gap",
236
+ "message": "Responsive Gap passes a breakpoint object to gap for different spacing at different viewport widths.",
237
+ "type": "info"
238
+ },
239
+ "flexitem_grow": {
240
+ "presetName": "FlexItem Grow",
241
+ "message": "FlexItem Grow toggles the first FlexItem's grow prop through the FlexItem Props controls.",
242
+ "type": "info"
243
+ },
244
+ "flexitem_fixed_size": {
245
+ "presetName": "FlexItem Fixed Size",
246
+ "message": "FlexItem Fixed Size applies fixedSize to the first FlexItem through the FlexItem Props controls.",
247
+ "type": "info"
248
+ },
249
+ "flexitem_order": {
250
+ "presetName": "FlexItem Order",
251
+ "message": "FlexItem Order applies visual ordering to the first FlexItem through the FlexItem Props controls.",
252
+ "type": "info"
253
+ },
254
+ "flexitem_align_self": {
255
+ "presetName": "FlexItem Align Self",
256
+ "message": "FlexItem Align Self applies cross-axis alignment to the first FlexItem through the FlexItem Props controls.",
257
+ "type": "info"
258
+ },
259
+ "display_flexitem": {
260
+ "presetName": "Display FlexItem",
261
+ "message": "Display FlexItem makes the first FlexItem act as a flex container for its editable children.",
262
+ "type": "info"
263
+ }
264
+ },
265
+ "structureModes": {
266
+ "default": "basic",
267
+ "modes": {
268
+ "basic": {
269
+ "label": "Basic",
270
+ "template": "<div className=\"flex-doc-example\">\n <Flex{{props}}>\n {{children}}\n </Flex>\n</div>",
271
+ "children": "<Caption text=\"A\" />\n<Caption text=\"B\" />\n<Caption text=\"C\" />"
272
+ },
273
+ "flex_items": {
274
+ "label": "FlexItem Children",
275
+ "template": "<div className=\"flex-doc-example\">\n <Flex{{props}}>\n {{children}}\n </Flex>\n</div>",
276
+ "children": "<FlexItem>\n {'1'}\n</FlexItem>\n<FlexItem>\n {'2'}\n</FlexItem>\n<FlexItem>\n {'3'}\n</FlexItem>\n<FlexItem>\n {'4'}\n</FlexItem>",
277
+ "props": {
278
+ "gap": "xs"
279
+ }
280
+ },
281
+ "controlled_flex_item": {
282
+ "label": "FlexItem Props",
283
+ "template": "<div className=\"flex-doc-example\">\n <Flex{{props}}>\n <FlexItem{{FlexItem.props}}>\n {{children}}\n </FlexItem>\n <FlexItem>\n {'2'}\n </FlexItem>\n <FlexItem>\n {'3'}\n </FlexItem>\n </Flex>\n</div>",
284
+ "children": "{'1'}",
285
+ "props": {
286
+ "gap": "xs"
287
+ }
288
+ }
289
+ }
290
+ },
291
+ "customProps": {
292
+ "flexItemFixedSize": {
293
+ "type": "string",
294
+ "platforms": [
295
+ "react"
296
+ ]
297
+ },
298
+ "flexItemGrow": {
299
+ "type": "boolean",
300
+ "platforms": [
301
+ "react"
302
+ ],
303
+ "default": false
304
+ },
305
+ "flexItemShrink": {
306
+ "type": "boolean",
307
+ "platforms": [
308
+ "react"
309
+ ],
310
+ "default": false
311
+ },
312
+ "flexItemFlex": {
313
+ "type": "number",
314
+ "platforms": [
315
+ "react"
316
+ ]
317
+ },
318
+ "flexItemOrder": {
319
+ "type": "enum",
320
+ "platforms": [
321
+ "react"
322
+ ],
323
+ "values": [
324
+ "first",
325
+ "0",
326
+ "1",
327
+ "2",
328
+ "3",
329
+ "4",
330
+ "5",
331
+ "6",
332
+ "7",
333
+ "8",
334
+ "9",
335
+ "10",
336
+ "11",
337
+ "12"
338
+ ]
339
+ },
340
+ "flexItemAlignSelf": {
341
+ "type": "enum",
342
+ "platforms": [
343
+ "react"
344
+ ],
345
+ "values": [
346
+ "start",
347
+ "end",
348
+ "center",
349
+ "stretch"
350
+ ]
351
+ },
352
+ "flexItemDisplayFlex": {
353
+ "type": "boolean",
354
+ "platforms": [
355
+ "react"
356
+ ],
357
+ "default": false
358
+ }
359
+ },
360
+ "propAliases": {
361
+ "flexItemFixedSize": "fixedSize",
362
+ "flexItemGrow": "grow",
363
+ "flexItemShrink": "shrink",
364
+ "flexItemFlex": "flex",
365
+ "flexItemOrder": "order",
366
+ "flexItemAlignSelf": "alignSelf",
367
+ "flexItemDisplayFlex": "displayFlex"
368
+ },
369
+ "propSyncOnEnable": {
370
+ "flexItemFixedSize": {
371
+ "structureMode": "controlled_flex_item"
372
+ },
373
+ "flexItemGrow": {
374
+ "structureMode": "controlled_flex_item"
375
+ },
376
+ "flexItemShrink": {
377
+ "structureMode": "controlled_flex_item"
378
+ },
379
+ "flexItemFlex": {
380
+ "structureMode": "controlled_flex_item"
381
+ },
382
+ "flexItemOrder": {
383
+ "structureMode": "controlled_flex_item"
384
+ },
385
+ "flexItemAlignSelf": {
386
+ "structureMode": "controlled_flex_item"
387
+ },
388
+ "flexItemDisplayFlex": {
389
+ "structureMode": "controlled_flex_item"
390
+ }
391
+ }
133
392
  }