playbook_ui_docs 16.5.0 → 16.6.0.pre.alpha.RTEPOC15805
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_advanced_table/docs/_playground.json +8970 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_playground.overrides.json +403 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_column_definitions_grouped_simple.json +41 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_column_definitions_grouped_triple.json +56 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_column_definitions_standard.json +31 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_column_definitions_standard_sort.json +37 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_column_definitions_styling.json +44 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_column_definitions_with_ids.json +38 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data_inline_loading.json +199 -0
- data/app/pb_kits/playbook/pb_avatar/docs/_playground.json +136 -0
- data/app/pb_kits/playbook/pb_avatar/docs/_playground.overrides.json +94 -0
- data/app/pb_kits/playbook/pb_background/docs/_playground.json +107 -0
- data/app/pb_kits/playbook/pb_background/docs/_playground.overrides.json +72 -0
- data/app/pb_kits/playbook/pb_badge/docs/_playground.json +112 -0
- data/app/pb_kits/playbook/pb_badge/docs/_playground.overrides.json +63 -0
- data/app/pb_kits/playbook/pb_body/docs/_playground.json +78 -0
- data/app/pb_kits/playbook/pb_body/docs/_playground.overrides.json +47 -0
- data/app/pb_kits/playbook/pb_bread_crumbs/docs/_playground.json +54 -0
- data/app/pb_kits/playbook/pb_bread_crumbs/docs/_playground.overrides.json +44 -0
- data/app/pb_kits/playbook/pb_button/docs/{_button_loading.html.erb → _button_loading_rails.html.erb} +5 -5
- data/app/pb_kits/playbook/pb_button/docs/_button_loading_rails.md +3 -0
- data/app/pb_kits/playbook/pb_button/docs/_playground.json +164 -0
- data/app/pb_kits/playbook/pb_button/docs/_playground.overrides.json +45 -0
- data/app/pb_kits/playbook/pb_button/docs/example.yml +1 -1
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_playground.json +81 -0
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_playground.overrides.json +54 -0
- data/app/pb_kits/playbook/pb_caption/docs/_playground.json +64 -0
- data/app/pb_kits/playbook/pb_caption/docs/_playground.overrides.json +39 -0
- data/app/pb_kits/playbook/pb_card/docs/_playground.json +157 -0
- data/app/pb_kits/playbook/pb_card/docs/_playground.overrides.json +119 -0
- data/app/pb_kits/playbook/pb_checkbox/docs/_playground.json +80 -0
- data/app/pb_kits/playbook/pb_checkbox/docs/_playground.overrides.json +58 -0
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_playground.json +113 -0
- data/app/pb_kits/playbook/pb_circle_icon_button/docs/_playground.overrides.json +62 -0
- data/app/pb_kits/playbook/pb_collapsible/docs/_playground.json +91 -0
- data/app/pb_kits/playbook/pb_collapsible/docs/_playground.overrides.json +65 -0
- data/app/pb_kits/playbook/pb_contact/docs/_playground.json +69 -0
- data/app/pb_kits/playbook/pb_contact/docs/_playground.overrides.json +60 -0
- data/app/pb_kits/playbook/pb_copy_button/docs/_playground.json +120 -0
- data/app/pb_kits/playbook/pb_copy_button/docs/_playground.overrides.json +96 -0
- data/app/pb_kits/playbook/pb_currency/docs/_playground.json +117 -0
- data/app/pb_kits/playbook/pb_currency/docs/_playground.overrides.json +98 -0
- data/app/pb_kits/playbook/pb_dashboard_value/docs/_playground.json +87 -0
- data/app/pb_kits/playbook/pb_dashboard_value/docs/_playground.overrides.json +19 -0
- data/app/pb_kits/playbook/pb_date/docs/_playground.json +73 -0
- data/app/pb_kits/playbook/pb_date/docs/_playground.overrides.json +54 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_dialog_submission.jsx +62 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_dialog_submission.md +1 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_playground.json +178 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_playground.overrides.json +156 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_date_range_inline/docs/_playground.json +31 -0
- data/app/pb_kits/playbook/pb_date_range_stacked/docs/_playground.json +23 -0
- data/app/pb_kits/playbook/pb_date_stacked/docs/_playground.json +68 -0
- data/app/pb_kits/playbook/pb_date_stacked/docs/_playground.overrides.json +51 -0
- data/app/pb_kits/playbook/pb_date_time/docs/_playground.json +76 -0
- data/app/pb_kits/playbook/pb_date_time/docs/_playground.overrides.json +58 -0
- data/app/pb_kits/playbook/pb_date_time_stacked/docs/_playground.json +57 -0
- data/app/pb_kits/playbook/pb_date_time_stacked/docs/_playground.overrides.json +46 -0
- data/app/pb_kits/playbook/pb_date_year_stacked/docs/_playground.json +45 -0
- data/app/pb_kits/playbook/pb_date_year_stacked/docs/_playground.overrides.json +36 -0
- data/app/pb_kits/playbook/pb_detail/docs/_playground.json +75 -0
- data/app/pb_kits/playbook/pb_detail/docs/_playground.overrides.json +44 -0
- data/app/pb_kits/playbook/pb_dialog/docs/_playground.json +121 -0
- data/app/pb_kits/playbook/pb_dialog/docs/_playground.overrides.json +95 -0
- data/app/pb_kits/playbook/pb_distribution_bar/docs/_playground.json +25 -0
- data/app/pb_kits/playbook/pb_draggable/docs/_playground.json +54 -0
- data/app/pb_kits/playbook/pb_draggable/docs/_playground.overrides.json +34 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_playground.json +236 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_playground.overrides.json +137 -0
- data/app/pb_kits/playbook/pb_empty_state/docs/_playground.json +34 -0
- data/app/pb_kits/playbook/pb_file_upload/docs/_playground.json +34 -0
- data/app/pb_kits/playbook/pb_filter/docs/_playground.json +13 -0
- data/app/pb_kits/playbook/pb_fixed_confirmation_toast/docs/_playground.json +37 -0
- data/app/pb_kits/playbook/pb_flex/docs/_playground.json +133 -0
- data/app/pb_kits/playbook/pb_flex/docs/_playground.overrides.json +105 -0
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validate.html.erb +5 -5
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validation_msg.html.erb +90 -0
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with_validation_msg.md +13 -0
- data/app/pb_kits/playbook/pb_form/docs/_playground.json +13 -0
- data/app/pb_kits/playbook/pb_form/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_form_group/docs/_playground.json +23 -0
- data/app/pb_kits/playbook/pb_form_pill/docs/_playground.json +36 -0
- data/app/pb_kits/playbook/pb_hashtag/docs/_playground.json +30 -0
- data/app/pb_kits/playbook/pb_highlight/docs/_playground.json +22 -0
- data/app/pb_kits/playbook/pb_home_address_street/docs/_playground.json +38 -0
- data/app/pb_kits/playbook/pb_icon/docs/_playground.json +115 -0
- data/app/pb_kits/playbook/pb_icon/docs/_playground.overrides.json +60 -0
- data/app/pb_kits/playbook/pb_icon_button/docs/_playground.json +33 -0
- data/app/pb_kits/playbook/pb_icon_circle/docs/_playground.json +27 -0
- data/app/pb_kits/playbook/pb_icon_stat_value/docs/_playground.json +89 -0
- data/app/pb_kits/playbook/pb_icon_stat_value/docs/_playground.overrides.json +29 -0
- data/app/pb_kits/playbook/pb_icon_value/docs/_playground.json +60 -0
- data/app/pb_kits/playbook/pb_icon_value/docs/_playground.overrides.json +19 -0
- data/app/pb_kits/playbook/pb_image/docs/_playground.json +101 -0
- data/app/pb_kits/playbook/pb_image/docs/_playground.overrides.json +89 -0
- data/app/pb_kits/playbook/pb_label_pill/docs/_playground.json +25 -0
- data/app/pb_kits/playbook/pb_label_value/docs/_playground.json +126 -0
- data/app/pb_kits/playbook/pb_label_value/docs/_playground.overrides.json +52 -0
- data/app/pb_kits/playbook/pb_layout/docs/_playground.json +40 -0
- data/app/pb_kits/playbook/pb_legend/docs/_playground.json +26 -0
- data/app/pb_kits/playbook/pb_link/docs/_playground.json +130 -0
- data/app/pb_kits/playbook/pb_link/docs/_playground.overrides.json +81 -0
- data/app/pb_kits/playbook/pb_list/docs/_playground.json +45 -0
- data/app/pb_kits/playbook/pb_loading_inline/docs/_playground.json +66 -0
- data/app/pb_kits/playbook/pb_loading_inline/docs/_playground.overrides.json +25 -0
- data/app/pb_kits/playbook/pb_map/docs/_map_default.md +2 -2
- data/app/pb_kits/playbook/pb_map/docs/_map_with_plugin.jsx +6 -0
- data/app/pb_kits/playbook/pb_map/docs/_playground.json +25 -0
- data/app/pb_kits/playbook/pb_message/docs/_playground.json +39 -0
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_playground.json +162 -0
- data/app/pb_kits/playbook/pb_multi_level_select/docs/_playground.overrides.json +126 -0
- data/app/pb_kits/playbook/pb_multiple_users/docs/_playground.json +182 -0
- data/app/pb_kits/playbook/pb_multiple_users/docs/_playground.overrides.json +167 -0
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_playground.json +145 -0
- data/app/pb_kits/playbook/pb_multiple_users_stacked/docs/_playground.overrides.json +131 -0
- data/app/pb_kits/playbook/pb_nav/docs/_playground.json +65 -0
- data/app/pb_kits/playbook/pb_nav/docs/_playground.overrides.json +45 -0
- data/app/pb_kits/playbook/pb_online_status/docs/_playground.json +71 -0
- data/app/pb_kits/playbook/pb_online_status/docs/_playground.overrides.json +40 -0
- data/app/pb_kits/playbook/pb_overlay/docs/_playground.json +38 -0
- data/app/pb_kits/playbook/pb_pagination/docs/_playground.json +69 -0
- data/app/pb_kits/playbook/pb_pagination/docs/_playground.overrides.json +61 -0
- data/app/pb_kits/playbook/pb_passphrase/docs/_playground.json +34 -0
- data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_playground.json +21 -0
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_playground.json +21 -0
- data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_playground.json +21 -0
- data/app/pb_kits/playbook/pb_pb_line_graph/docs/_playground.json +21 -0
- data/app/pb_kits/playbook/pb_person/docs/_playground.json +42 -0
- data/app/pb_kits/playbook/pb_person/docs/_playground.overrides.json +28 -0
- data/app/pb_kits/playbook/pb_person_contact/docs/_playground.json +98 -0
- data/app/pb_kits/playbook/pb_person_contact/docs/_playground.overrides.json +92 -0
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_playground.json +52 -0
- data/app/pb_kits/playbook/pb_pill/docs/_playground.json +106 -0
- data/app/pb_kits/playbook/pb_pill/docs/_playground.overrides.json +56 -0
- data/app/pb_kits/playbook/pb_popover/docs/_playground.json +104 -0
- data/app/pb_kits/playbook/pb_popover/docs/_playground.overrides.json +67 -0
- data/app/pb_kits/playbook/pb_progress_pills/docs/_playground.json +90 -0
- data/app/pb_kits/playbook/pb_progress_pills/docs/_playground.overrides.json +51 -0
- data/app/pb_kits/playbook/pb_progress_simple/docs/_playground.json +87 -0
- data/app/pb_kits/playbook/pb_progress_simple/docs/_playground.overrides.json +28 -0
- data/app/pb_kits/playbook/pb_progress_step/docs/_playground.json +31 -0
- data/app/pb_kits/playbook/pb_radio/docs/_playground.json +83 -0
- data/app/pb_kits/playbook/pb_radio/docs/_playground.overrides.json +59 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_playground.json +41 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_rails_default.html.erb +1 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_rails_default.md +12 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_rails_simple.html.erb +9 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_rails_simple.md +8 -0
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_section_separator/docs/_playground.json +128 -0
- data/app/pb_kits/playbook/pb_section_separator/docs/_playground.overrides.json +109 -0
- data/app/pb_kits/playbook/pb_select/docs/_playground.json +149 -0
- data/app/pb_kits/playbook/pb_select/docs/_playground.overrides.json +80 -0
- data/app/pb_kits/playbook/pb_selectable_card/docs/_playground.json +145 -0
- data/app/pb_kits/playbook/pb_selectable_card/docs/_playground.overrides.json +115 -0
- data/app/pb_kits/playbook/pb_selectable_card_icon/docs/_playground.json +38 -0
- data/app/pb_kits/playbook/pb_selectable_icon/docs/_playground.json +113 -0
- data/app/pb_kits/playbook/pb_selectable_icon/docs/_playground.overrides.json +92 -0
- data/app/pb_kits/playbook/pb_selectable_list/docs/_playground.json +53 -0
- data/app/pb_kits/playbook/pb_selectable_list/docs/_playground.overrides.json +34 -0
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_playground.json +30 -0
- data/app/pb_kits/playbook/pb_source/docs/_playground.json +27 -0
- data/app/pb_kits/playbook/pb_star_rating/docs/_playground.json +128 -0
- data/app/pb_kits/playbook/pb_star_rating/docs/_playground.overrides.json +87 -0
- data/app/pb_kits/playbook/pb_stat_change/docs/_playground.json +71 -0
- data/app/pb_kits/playbook/pb_stat_change/docs/_playground.overrides.json +29 -0
- data/app/pb_kits/playbook/pb_stat_value/docs/_playground.json +56 -0
- data/app/pb_kits/playbook/pb_stat_value/docs/_playground.overrides.json +23 -0
- data/app/pb_kits/playbook/pb_table/docs/_playground.json +57 -0
- data/app/pb_kits/playbook/pb_text_input/docs/_playground.json +90 -0
- data/app/pb_kits/playbook/pb_text_input/docs/_playground.overrides.json +62 -0
- data/app/pb_kits/playbook/pb_textarea/docs/_playground.json +89 -0
- data/app/pb_kits/playbook/pb_textarea/docs/_playground.overrides.json +62 -0
- data/app/pb_kits/playbook/pb_time/docs/_playground.json +74 -0
- data/app/pb_kits/playbook/pb_time/docs/_playground.overrides.json +54 -0
- data/app/pb_kits/playbook/pb_time_picker/docs/_playground.json +119 -0
- data/app/pb_kits/playbook/pb_time_picker/docs/_playground.overrides.json +96 -0
- data/app/pb_kits/playbook/pb_time_range_inline/docs/_playground.json +32 -0
- data/app/pb_kits/playbook/pb_time_stacked/docs/_playground.json +54 -0
- data/app/pb_kits/playbook/pb_time_stacked/docs/_playground.overrides.json +43 -0
- data/app/pb_kits/playbook/pb_timeline/docs/_playground.json +27 -0
- data/app/pb_kits/playbook/pb_timestamp/docs/_playground.json +104 -0
- data/app/pb_kits/playbook/pb_timestamp/docs/_playground.overrides.json +84 -0
- data/app/pb_kits/playbook/pb_title/docs/_playground.json +80 -0
- data/app/pb_kits/playbook/pb_title/docs/_playground.overrides.json +44 -0
- data/app/pb_kits/playbook/pb_title_count/docs/_playground.json +66 -0
- data/app/pb_kits/playbook/pb_title_count/docs/_playground.overrides.json +20 -0
- data/app/pb_kits/playbook/pb_title_detail/docs/_playground.json +60 -0
- data/app/pb_kits/playbook/pb_title_detail/docs/_playground.overrides.json +19 -0
- data/app/pb_kits/playbook/pb_toggle/docs/_playground.json +68 -0
- data/app/pb_kits/playbook/pb_toggle/docs/_playground.overrides.json +53 -0
- data/app/pb_kits/playbook/pb_tooltip/docs/_playground.json +91 -0
- data/app/pb_kits/playbook/pb_tooltip/docs/_playground.overrides.json +53 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_playground.json +205 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_playground.overrides.json +115 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_createable.html.erb +29 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_createable.md +1 -0
- data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_user/docs/_playground.json +110 -0
- data/app/pb_kits/playbook/pb_user/docs/_playground.overrides.json +89 -0
- data/app/pb_kits/playbook/pb_user_badge/docs/_playground.json +61 -0
- data/app/pb_kits/playbook/pb_user_badge/docs/_playground.overrides.json +36 -0
- data/app/pb_kits/playbook/pb_weekday_stacked/docs/_playground.json +64 -0
- data/app/pb_kits/playbook/pb_weekday_stacked/docs/_playground.overrides.json +51 -0
- metadata +199 -3
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
{
|
|
2
|
+
"template": "<Badge{{props}}>{{children}}</Badge>",
|
|
3
|
+
"propTargets": {},
|
|
4
|
+
"defaults": {
|
|
5
|
+
"rounded": false,
|
|
6
|
+
"variant": "neutral"
|
|
7
|
+
},
|
|
8
|
+
"children": {
|
|
9
|
+
"editable": true,
|
|
10
|
+
"default": "Badge content",
|
|
11
|
+
"hideWhenPropSet": [
|
|
12
|
+
"text"
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
"groups": [
|
|
16
|
+
{
|
|
17
|
+
"name": "Content",
|
|
18
|
+
"props": [
|
|
19
|
+
"text"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "Appearance",
|
|
24
|
+
"props": [
|
|
25
|
+
"variant",
|
|
26
|
+
"rounded",
|
|
27
|
+
"removeIcon"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "Other",
|
|
32
|
+
"props": [
|
|
33
|
+
"tabIndex"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"presets": [
|
|
38
|
+
{
|
|
39
|
+
"name": "Primary",
|
|
40
|
+
"props": {
|
|
41
|
+
"variant": "primary",
|
|
42
|
+
"text": "Primary"
|
|
43
|
+
},
|
|
44
|
+
"children": ""
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "Success",
|
|
48
|
+
"props": {
|
|
49
|
+
"variant": "success",
|
|
50
|
+
"text": "Success"
|
|
51
|
+
},
|
|
52
|
+
"children": ""
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "Warning",
|
|
56
|
+
"props": {
|
|
57
|
+
"variant": "warning",
|
|
58
|
+
"text": "Warning"
|
|
59
|
+
},
|
|
60
|
+
"children": ""
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "Error",
|
|
64
|
+
"props": {
|
|
65
|
+
"variant": "error",
|
|
66
|
+
"text": "Error"
|
|
67
|
+
},
|
|
68
|
+
"children": ""
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "Notification",
|
|
72
|
+
"props": {
|
|
73
|
+
"variant": "notification",
|
|
74
|
+
"text": "3"
|
|
75
|
+
},
|
|
76
|
+
"children": ""
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "Rounded primary",
|
|
80
|
+
"props": {
|
|
81
|
+
"variant": "primary",
|
|
82
|
+
"rounded": true,
|
|
83
|
+
"text": "New"
|
|
84
|
+
},
|
|
85
|
+
"children": ""
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "Dismissible",
|
|
89
|
+
"props": {
|
|
90
|
+
"variant": "neutral",
|
|
91
|
+
"removeIcon": true,
|
|
92
|
+
"text": "Removable",
|
|
93
|
+
"removeOnClick": "() => console.log('dismissed')"
|
|
94
|
+
},
|
|
95
|
+
"children": ""
|
|
96
|
+
}
|
|
97
|
+
],
|
|
98
|
+
"conditionals": {
|
|
99
|
+
"removeOnClick": {
|
|
100
|
+
"requires": "removeIcon"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"hints": {
|
|
104
|
+
"dismissible": {
|
|
105
|
+
"when": {
|
|
106
|
+
"removeIcon": true
|
|
107
|
+
},
|
|
108
|
+
"message": "Wire removeOnClick in app code to handle dismissal; the playground only shows the icon.",
|
|
109
|
+
"type": "info"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
{
|
|
2
|
+
"groups": [
|
|
3
|
+
{
|
|
4
|
+
"name": "Content",
|
|
5
|
+
"props": ["text"]
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
"name": "Appearance",
|
|
9
|
+
"props": ["variant", "rounded", "removeIcon"]
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"name": "Other",
|
|
13
|
+
"props": ["tabIndex"]
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"presets": [
|
|
17
|
+
{
|
|
18
|
+
"name": "Primary",
|
|
19
|
+
"props": { "variant": "primary", "text": "Primary" },
|
|
20
|
+
"children": ""
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "Success",
|
|
24
|
+
"props": { "variant": "success", "text": "Success" },
|
|
25
|
+
"children": ""
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "Warning",
|
|
29
|
+
"props": { "variant": "warning", "text": "Warning" },
|
|
30
|
+
"children": ""
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "Error",
|
|
34
|
+
"props": { "variant": "error", "text": "Error" },
|
|
35
|
+
"children": ""
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"name": "Notification",
|
|
39
|
+
"props": { "variant": "notification", "text": "3" },
|
|
40
|
+
"children": ""
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "Rounded primary",
|
|
44
|
+
"props": { "variant": "primary", "rounded": true, "text": "New" },
|
|
45
|
+
"children": ""
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "Dismissible",
|
|
49
|
+
"props": { "variant": "neutral", "removeIcon": true, "text": "Removable", "removeOnClick": "() => console.log('dismissed')" },
|
|
50
|
+
"children": ""
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
"conditionals": {
|
|
54
|
+
"removeOnClick": { "requires": "removeIcon" }
|
|
55
|
+
},
|
|
56
|
+
"hints": {
|
|
57
|
+
"dismissible": {
|
|
58
|
+
"when": { "removeIcon": true },
|
|
59
|
+
"message": "Wire removeOnClick in app code to handle dismissal; the playground only shows the icon.",
|
|
60
|
+
"type": "info"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"template": "<Body{{props}}>{{children}}</Body>",
|
|
3
|
+
"propTargets": {},
|
|
4
|
+
"defaults": {
|
|
5
|
+
"color": "default",
|
|
6
|
+
"highlighting": false,
|
|
7
|
+
"status": "neutral",
|
|
8
|
+
"tag": "div"
|
|
9
|
+
},
|
|
10
|
+
"children": {
|
|
11
|
+
"editable": true,
|
|
12
|
+
"default": "Use body text for paragraphs, supporting copy, and readable blocks of content on the page.",
|
|
13
|
+
"hideWhenPropSet": [
|
|
14
|
+
"text"
|
|
15
|
+
]
|
|
16
|
+
},
|
|
17
|
+
"groups": [
|
|
18
|
+
{
|
|
19
|
+
"name": "Appearance",
|
|
20
|
+
"props": [
|
|
21
|
+
"color",
|
|
22
|
+
"variant",
|
|
23
|
+
"status",
|
|
24
|
+
"tag"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "Content",
|
|
29
|
+
"props": [
|
|
30
|
+
"text",
|
|
31
|
+
"highlighting",
|
|
32
|
+
"highlightedText"
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"presets": [
|
|
37
|
+
{
|
|
38
|
+
"name": "Paragraph",
|
|
39
|
+
"props": {},
|
|
40
|
+
"children": "This is standard body copy in a paragraph element, ideal for articles, forms, and long-form content."
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "Success",
|
|
44
|
+
"props": {
|
|
45
|
+
"color": "success"
|
|
46
|
+
},
|
|
47
|
+
"children": "Your changes were saved successfully."
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"name": "Error",
|
|
51
|
+
"props": {
|
|
52
|
+
"color": "error"
|
|
53
|
+
},
|
|
54
|
+
"children": "We could not process your request. Check the fields below and try again."
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "Link style",
|
|
58
|
+
"props": {},
|
|
59
|
+
"children": "<a href=\"#\">This text is using the anchor tag</a>"
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"conditionals": {
|
|
63
|
+
"highlightedText": {
|
|
64
|
+
"requires": {
|
|
65
|
+
"highlighting": true
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"hints": {
|
|
70
|
+
"highlighting_info": {
|
|
71
|
+
"when": {
|
|
72
|
+
"highlighting": true
|
|
73
|
+
},
|
|
74
|
+
"message": "Set text and highlightedText to show highlighted substrings inside the body content.",
|
|
75
|
+
"type": "info"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"children": {
|
|
3
|
+
"default": "Use body text for paragraphs, supporting copy, and readable blocks of content on the page."
|
|
4
|
+
},
|
|
5
|
+
"groups": [
|
|
6
|
+
{
|
|
7
|
+
"name": "Appearance",
|
|
8
|
+
"props": ["color", "variant", "status", "tag"]
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"name": "Content",
|
|
12
|
+
"props": ["text", "highlighting", "highlightedText"]
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
"presets": [
|
|
16
|
+
{
|
|
17
|
+
"name": "Paragraph",
|
|
18
|
+
"props": {},
|
|
19
|
+
"children": "This is standard body copy in a paragraph element, ideal for articles, forms, and long-form content."
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "Success",
|
|
23
|
+
"props": { "color": "success" },
|
|
24
|
+
"children": "Your changes were saved successfully."
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "Error",
|
|
28
|
+
"props": { "color": "error" },
|
|
29
|
+
"children": "We could not process your request. Check the fields below and try again."
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "Link style",
|
|
33
|
+
"props": {},
|
|
34
|
+
"children": "<a href=\"#\">This text is using the anchor tag</a>"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"conditionals": {
|
|
38
|
+
"highlightedText": { "requires": { "highlighting": true } }
|
|
39
|
+
},
|
|
40
|
+
"hints": {
|
|
41
|
+
"highlighting_info": {
|
|
42
|
+
"when": { "highlighting": true },
|
|
43
|
+
"message": "Set text and highlightedText to show highlighted substrings inside the body content.",
|
|
44
|
+
"type": "info"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"template": "<BreadCrumbs{{props}}>{{children}}</BreadCrumbs>",
|
|
3
|
+
"propTargets": {},
|
|
4
|
+
"defaults": {},
|
|
5
|
+
"groups": [
|
|
6
|
+
{
|
|
7
|
+
"name": "Content",
|
|
8
|
+
"props": [
|
|
9
|
+
"text"
|
|
10
|
+
]
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"presets": [
|
|
14
|
+
{
|
|
15
|
+
"name": "Default",
|
|
16
|
+
"props": {},
|
|
17
|
+
"children": "<BreadCrumbItem href=\"/\">Home</BreadCrumbItem><BreadCrumbItem component=\"span\">Settings</BreadCrumbItem>"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "Three levels",
|
|
21
|
+
"props": {},
|
|
22
|
+
"children": "<BreadCrumbItem href=\"/app\">App</BreadCrumbItem><BreadCrumbItem href=\"/app/users\">Users</BreadCrumbItem><BreadCrumbItem component=\"span\">Edit</BreadCrumbItem>"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "Links only",
|
|
26
|
+
"props": {},
|
|
27
|
+
"children": "<BreadCrumbItem href=\"/docs\">Docs</BreadCrumbItem><BreadCrumbItem href=\"/docs/guides\">Guides</BreadCrumbItem><BreadCrumbItem href=\"/docs/guides/start\">Getting started</BreadCrumbItem>"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "With text prop",
|
|
31
|
+
"props": {
|
|
32
|
+
"text": "Breadcrumb"
|
|
33
|
+
},
|
|
34
|
+
"children": ""
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"conditionals": {},
|
|
38
|
+
"hints": {
|
|
39
|
+
"breadcrumb_structure": {
|
|
40
|
+
"when": {
|
|
41
|
+
"text": null
|
|
42
|
+
},
|
|
43
|
+
"message": "Compose the trail with BreadCrumbItem children; use component=\"span\" for the current page when it has no URL.",
|
|
44
|
+
"type": "info"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"children": {
|
|
48
|
+
"editable": true,
|
|
49
|
+
"default": "<BreadCrumbItem href=\"/products\">Products</BreadCrumbItem><BreadCrumbItem component=\"span\">Details</BreadCrumbItem>",
|
|
50
|
+
"hideWhenPropSet": [
|
|
51
|
+
"text"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"template": "<BreadCrumbs{{props}}>{{children}}</BreadCrumbs>",
|
|
3
|
+
"children": {
|
|
4
|
+
"editable": true,
|
|
5
|
+
"default": "<BreadCrumbItem href=\"/products\">Products</BreadCrumbItem><BreadCrumbItem component=\"span\">Details</BreadCrumbItem>",
|
|
6
|
+
"hideWhenPropSet": ["text"]
|
|
7
|
+
},
|
|
8
|
+
"groups": [
|
|
9
|
+
{
|
|
10
|
+
"name": "Content",
|
|
11
|
+
"props": ["text"]
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"presets": [
|
|
15
|
+
{
|
|
16
|
+
"name": "Default",
|
|
17
|
+
"props": {},
|
|
18
|
+
"children": "<BreadCrumbItem href=\"/\">Home</BreadCrumbItem><BreadCrumbItem component=\"span\">Settings</BreadCrumbItem>"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"name": "Three levels",
|
|
22
|
+
"props": {},
|
|
23
|
+
"children": "<BreadCrumbItem href=\"/app\">App</BreadCrumbItem><BreadCrumbItem href=\"/app/users\">Users</BreadCrumbItem><BreadCrumbItem component=\"span\">Edit</BreadCrumbItem>"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"name": "Links only",
|
|
27
|
+
"props": {},
|
|
28
|
+
"children": "<BreadCrumbItem href=\"/docs\">Docs</BreadCrumbItem><BreadCrumbItem href=\"/docs/guides\">Guides</BreadCrumbItem><BreadCrumbItem href=\"/docs/guides/start\">Getting started</BreadCrumbItem>"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"name": "With text prop",
|
|
32
|
+
"props": { "text": "Breadcrumb" },
|
|
33
|
+
"children": ""
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"conditionals": {},
|
|
37
|
+
"hints": {
|
|
38
|
+
"breadcrumb_structure": {
|
|
39
|
+
"when": { "text": null },
|
|
40
|
+
"message": "Compose the trail with BreadCrumbItem children; use component=\"span\" for the current page when it has no URL.",
|
|
41
|
+
"type": "info"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
data/app/pb_kits/playbook/pb_button/docs/{_button_loading.html.erb → _button_loading_rails.html.erb}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<%= pb_rails("caption", props: { margin_y: "md", text: "Button variants with loading" }) %>
|
|
2
|
-
<%= pb_rails("button", props: { aria: { label: "Loading" }, loading: true, margin_right: "lg" }) %>
|
|
3
|
-
<%= pb_rails("button", props: { aria: { label: "Loading" }, variant: "secondary", loading: true, margin_right: "lg" }) %>
|
|
4
|
-
<%= pb_rails("button", props: { aria: { label: "Loading" }, variant: "link", loading: true, margin_right: "lg" }) %>
|
|
2
|
+
<%= pb_rails("button", props: { aria: { label: "Loading" }, loading: true, text: "Loading", margin_right: "lg" }) %>
|
|
3
|
+
<%= pb_rails("button", props: { aria: { label: "Loading" }, variant: "secondary", loading: true, text: "Loading", margin_right: "lg" }) %>
|
|
4
|
+
<%= pb_rails("button", props: { aria: { label: "Loading" }, variant: "link", loading: true, text: "Loading", margin_right: "lg" }) %>
|
|
5
5
|
<%= pb_rails("caption", props: { margin_y: "md", text: "Button sizes with loading" }) %>
|
|
6
|
-
<%= pb_rails("button", props: { aria: { label: "Loading" }, loading: true, size: "sm", margin_right: "lg" }) %>
|
|
7
|
-
<%= pb_rails("button", props: { aria: { label: "Loading" }, loading: true, size: "lg", margin_right: "lg" }) %>
|
|
6
|
+
<%= pb_rails("button", props: { aria: { label: "Loading" }, loading: true, size: "sm", text: "Loading", margin_right: "lg" }) %>
|
|
7
|
+
<%= pb_rails("button", props: { aria: { label: "Loading" }, loading: true, size: "lg", text: "Loading", margin_right: "lg" }) %>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
Used when a button will take a little while to load. The spinner lets the user know that the button has worked and it is in the process of loading.
|
|
2
|
+
|
|
3
|
+
**NOTE**: In Rails, both the button text and loading spinner are rendered at the same time, and visibility is toggled between them. Even though the text prop is not required, providing it ensures the button maintains its correct shape during loading.
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
{
|
|
2
|
+
"template": "<Button{{props}}>{{children}}</Button>",
|
|
3
|
+
"propTargets": {},
|
|
4
|
+
"defaults": {
|
|
5
|
+
"disabled": false,
|
|
6
|
+
"fullWidth": false,
|
|
7
|
+
"highlight": false,
|
|
8
|
+
"iconRight": false,
|
|
9
|
+
"loading": false,
|
|
10
|
+
"newWindow": false,
|
|
11
|
+
"type": "inline",
|
|
12
|
+
"variant": "primary"
|
|
13
|
+
},
|
|
14
|
+
"children": {
|
|
15
|
+
"editable": true,
|
|
16
|
+
"default": "Click Me",
|
|
17
|
+
"hideWhenPropSet": [
|
|
18
|
+
"text"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"groups": [
|
|
22
|
+
{
|
|
23
|
+
"name": "Appearance",
|
|
24
|
+
"props": [
|
|
25
|
+
"variant",
|
|
26
|
+
"size",
|
|
27
|
+
"fullWidth",
|
|
28
|
+
"disabled",
|
|
29
|
+
"loading"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "Content",
|
|
34
|
+
"props": [
|
|
35
|
+
"text",
|
|
36
|
+
"icon",
|
|
37
|
+
"iconRight"
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"name": "Link Mode",
|
|
42
|
+
"props": [
|
|
43
|
+
"link",
|
|
44
|
+
"target",
|
|
45
|
+
"newWindow"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "Reaction Mode",
|
|
50
|
+
"props": [
|
|
51
|
+
"count",
|
|
52
|
+
"highlight"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "Form",
|
|
57
|
+
"props": [
|
|
58
|
+
"htmlType",
|
|
59
|
+
"form",
|
|
60
|
+
"value",
|
|
61
|
+
"tabIndex"
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"presets": [
|
|
66
|
+
{
|
|
67
|
+
"name": "Primary",
|
|
68
|
+
"props": {
|
|
69
|
+
"variant": "primary"
|
|
70
|
+
},
|
|
71
|
+
"children": "Submit"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "Secondary",
|
|
75
|
+
"props": {
|
|
76
|
+
"variant": "secondary"
|
|
77
|
+
},
|
|
78
|
+
"children": "Cancel"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "Danger",
|
|
82
|
+
"props": {
|
|
83
|
+
"variant": "danger"
|
|
84
|
+
},
|
|
85
|
+
"children": "Delete"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "With Icon",
|
|
89
|
+
"props": {
|
|
90
|
+
"icon": "plus",
|
|
91
|
+
"variant": "primary"
|
|
92
|
+
},
|
|
93
|
+
"children": "Add Item"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "Loading",
|
|
97
|
+
"props": {
|
|
98
|
+
"loading": true,
|
|
99
|
+
"variant": "primary"
|
|
100
|
+
},
|
|
101
|
+
"children": "Saving..."
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"name": "Reaction",
|
|
105
|
+
"props": {
|
|
106
|
+
"variant": "reaction",
|
|
107
|
+
"icon": "👍",
|
|
108
|
+
"count": 5
|
|
109
|
+
},
|
|
110
|
+
"children": ""
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "Link Mode",
|
|
114
|
+
"props": {
|
|
115
|
+
"link": true
|
|
116
|
+
},
|
|
117
|
+
"children": "Learn More"
|
|
118
|
+
}
|
|
119
|
+
],
|
|
120
|
+
"conditionals": {
|
|
121
|
+
"count": {
|
|
122
|
+
"requires": {
|
|
123
|
+
"variant": "reaction"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"highlight": {
|
|
127
|
+
"requires": {
|
|
128
|
+
"variant": "reaction"
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
"iconRight": {
|
|
132
|
+
"requires": "icon"
|
|
133
|
+
},
|
|
134
|
+
"target": {
|
|
135
|
+
"requires": "link"
|
|
136
|
+
},
|
|
137
|
+
"newWindow": {
|
|
138
|
+
"requires": "link"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"hints": {
|
|
142
|
+
"reaction_info": {
|
|
143
|
+
"when": {
|
|
144
|
+
"variant": "reaction"
|
|
145
|
+
},
|
|
146
|
+
"message": "Reaction buttons display an icon (emoji or icon name). If no icon is set, a default smiley will be shown.",
|
|
147
|
+
"type": "info"
|
|
148
|
+
},
|
|
149
|
+
"link_mode_info": {
|
|
150
|
+
"when": {
|
|
151
|
+
"link": true
|
|
152
|
+
},
|
|
153
|
+
"message": "When link is set, the button renders as an <a> tag instead of <button>.",
|
|
154
|
+
"type": "info"
|
|
155
|
+
},
|
|
156
|
+
"loading_info": {
|
|
157
|
+
"when": {
|
|
158
|
+
"loading": true
|
|
159
|
+
},
|
|
160
|
+
"message": "Loading state shows a spinner and hides the button content.",
|
|
161
|
+
"type": "info"
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"children": {
|
|
3
|
+
"default": "Click Me"
|
|
4
|
+
},
|
|
5
|
+
"conditionals": {
|
|
6
|
+
"count": { "requires": { "variant": "reaction" } },
|
|
7
|
+
"highlight": { "requires": { "variant": "reaction" } },
|
|
8
|
+
"iconRight": { "requires": "icon" },
|
|
9
|
+
"target": { "requires": "link" },
|
|
10
|
+
"newWindow": { "requires": "link" }
|
|
11
|
+
},
|
|
12
|
+
"groups": [
|
|
13
|
+
{ "name": "Appearance", "props": ["variant", "size", "fullWidth", "disabled", "loading"] },
|
|
14
|
+
{ "name": "Content", "props": ["text", "icon", "iconRight"] },
|
|
15
|
+
{ "name": "Link Mode", "props": ["link", "target", "newWindow"] },
|
|
16
|
+
{ "name": "Reaction Mode", "props": ["count", "highlight"] },
|
|
17
|
+
{ "name": "Form", "props": ["htmlType", "form", "value", "tabIndex"] }
|
|
18
|
+
],
|
|
19
|
+
"presets": [
|
|
20
|
+
{ "name": "Primary", "props": { "variant": "primary" }, "children": "Submit" },
|
|
21
|
+
{ "name": "Secondary", "props": { "variant": "secondary" }, "children": "Cancel" },
|
|
22
|
+
{ "name": "Danger", "props": { "variant": "danger" }, "children": "Delete" },
|
|
23
|
+
{ "name": "With Icon", "props": { "icon": "plus", "variant": "primary" }, "children": "Add Item" },
|
|
24
|
+
{ "name": "Loading", "props": { "loading": true, "variant": "primary" }, "children": "Saving..." },
|
|
25
|
+
{ "name": "Reaction", "props": { "variant": "reaction", "icon": "👍", "count": 5 }, "children": "" },
|
|
26
|
+
{ "name": "Link Mode", "props": { "link": true }, "children": "Learn More" }
|
|
27
|
+
],
|
|
28
|
+
"hints": {
|
|
29
|
+
"reaction_info": {
|
|
30
|
+
"when": { "variant": "reaction" },
|
|
31
|
+
"message": "Reaction buttons display an icon (emoji or icon name). If no icon is set, a default smiley will be shown.",
|
|
32
|
+
"type": "info"
|
|
33
|
+
},
|
|
34
|
+
"link_mode_info": {
|
|
35
|
+
"when": { "link": true },
|
|
36
|
+
"message": "When link is set, the button renders as an <a> tag instead of <button>.",
|
|
37
|
+
"type": "info"
|
|
38
|
+
},
|
|
39
|
+
"loading_info": {
|
|
40
|
+
"when": { "loading": true },
|
|
41
|
+
"message": "Loading state shows a spinner and hides the button content.",
|
|
42
|
+
"type": "info"
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -4,7 +4,7 @@ examples:
|
|
|
4
4
|
- button_reaction: Reaction Button
|
|
5
5
|
- button_full_width: Button Full Width
|
|
6
6
|
- button_link: Button Links
|
|
7
|
-
-
|
|
7
|
+
- button_loading_rails: Button Loading
|
|
8
8
|
- button_block_content: Button Block Content
|
|
9
9
|
- button_icon_options: Button Icon Options
|
|
10
10
|
- button_accessibility: Button Accessibility Options
|