playbook_ui 18.5.0.pre.rc.3 → 18.5.0
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_bread_crumbs/docs/_bread_crumbs_default.html.erb +14 -17
- data/app/pb_kits/playbook/pb_bread_crumbs/docs/_playground.json +11 -0
- data/app/pb_kits/playbook/pb_bread_crumbs/docs/_playground.overrides.json +7 -0
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_playground.json +9 -14
- data/app/pb_kits/playbook/pb_button_toolbar/docs/_playground.overrides.json +5 -9
- data/app/pb_kits/playbook/pb_container/docs/_playground.json +13 -0
- data/app/pb_kits/playbook/pb_container/docs/_playground.overrides.json +9 -0
- data/app/pb_kits/playbook/pb_dropdown/docs/_sections.yml +103 -0
- data/app/pb_kits/playbook/pb_layout/docs/_playground.json +39 -4
- data/app/pb_kits/playbook/pb_layout/docs/_playground.overrides.json +19 -4
- data/app/pb_kits/playbook/pb_list/docs/_playground.json +10 -1
- data/app/pb_kits/playbook/pb_list/docs/_playground.overrides.json +5 -1
- data/app/pb_kits/playbook/pb_nav/docs/_playground.json +56 -0
- data/app/pb_kits/playbook/pb_nav/docs/_playground.overrides.json +27 -0
- data/app/pb_kits/playbook/pb_pagination/docs/_playground.json +39 -6
- data/app/pb_kits/playbook/pb_pagination/docs/_playground.overrides.json +26 -6
- data/app/pb_kits/playbook/pb_table/docs/_playground.json +43 -27
- data/app/pb_kits/playbook/pb_table/docs/_playground.overrides.json +31 -27
- data/app/pb_kits/playbook/pb_timeline/docs/_playground.json +13 -0
- data/app/pb_kits/playbook/pb_timeline/docs/_playground.overrides.json +11 -0
- data/dist/ai/all-schemas.json +2 -2
- data/dist/ai/forms.json +1 -1
- data/dist/ai/index.json +2 -2
- data/dist/ai/kits/pagination.schema.json +2 -2
- data/dist/ai/playgrounds/bread_crumbs.json +1 -1
- data/dist/ai/playgrounds/button_toolbar.json +1 -1
- data/dist/ai/playgrounds/container.json +1 -1
- data/dist/ai/playgrounds/index.json +1 -1
- data/dist/ai/playgrounds/layout.json +1 -1
- data/dist/ai/playgrounds/list.json +1 -1
- data/dist/ai/playgrounds/nav.json +1 -1
- data/dist/ai/playgrounds/pagination.json +1 -1
- data/dist/ai/playgrounds/table.json +1 -1
- data/dist/ai/playgrounds/timeline.json +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 053f2ac64625f61e2edc09db0f53f24dd0e2783764122645dda3d7ea6d3f8f87
|
|
4
|
+
data.tar.gz: 6968480187db9f13771db0b313db2328912e154244f3f419e37d1740fd113a39
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6e8e1129323280204b0672d94a2714165a865d08563126b36f5bcaf694b0e0b9c4739c2d83b29107e6495b6cc31e222d9764afd9ed7a8fca766bc83efca316dd
|
|
7
|
+
data.tar.gz: 0d6463f97e0bded7e85dd3cead5949a4caed0f473a852c36d92afb3874a64a69b7e20a4584c57dfd9909709cfff72575e855969421c24bb83e1b958becdebb5c
|
|
@@ -1,17 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
<%= pb_rails("bread_crumbs", props: {
|
|
4
|
-
<%= pb_rails("
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
<%end%>
|
|
16
|
-
<%end%>
|
|
17
|
-
</div>
|
|
1
|
+
<%= pb_rails("bread_crumbs", props: { aria: { label: "Breadcrumb Navigation" } }) do %>
|
|
2
|
+
<%= pb_rails("icon", props: { icon: "home", color: "link" }) %>
|
|
3
|
+
<%= pb_rails("bread_crumbs/bread_crumb_item", props: { link: "/" }) do %>
|
|
4
|
+
<%= pb_rails("title", props: { size: 4, text: "Home", tag: "span", color: "link" }) %>
|
|
5
|
+
<% end %>
|
|
6
|
+
<%= pb_rails("icon", props: { icon: "users", color: "link" }) %>
|
|
7
|
+
<%= pb_rails("bread_crumbs/bread_crumb_item", props: { link: "/users" }) do %>
|
|
8
|
+
<%= pb_rails("title", props: { size: 4, text: "Users", tag: "span", color: "link" }) %>
|
|
9
|
+
<% end %>
|
|
10
|
+
<%= pb_rails("icon", props: { icon: "user" }) %>
|
|
11
|
+
<%= pb_rails("bread_crumbs/bread_crumb_item") do %>
|
|
12
|
+
<%= pb_rails("title", props: { size: 4, text: "User", tag: "span" }) %>
|
|
13
|
+
<% end %>
|
|
14
|
+
<% end %>
|
|
@@ -40,8 +40,19 @@
|
|
|
40
40
|
"when": {
|
|
41
41
|
"text": null
|
|
42
42
|
},
|
|
43
|
+
"platforms": [
|
|
44
|
+
"react"
|
|
45
|
+
],
|
|
43
46
|
"message": "Compose the trail with BreadCrumbItem children; use component=\"span\" for the current page when it has no URL.",
|
|
44
47
|
"type": "info"
|
|
48
|
+
},
|
|
49
|
+
"breadcrumb_structure_rails": {
|
|
50
|
+
"when": {},
|
|
51
|
+
"platforms": [
|
|
52
|
+
"rails"
|
|
53
|
+
],
|
|
54
|
+
"message": "Compose the trail with bread_crumbs/bread_crumb_item children; leave out link for the current page so it renders as a span.",
|
|
55
|
+
"type": "info"
|
|
45
56
|
}
|
|
46
57
|
},
|
|
47
58
|
"children": {
|
|
@@ -37,8 +37,15 @@
|
|
|
37
37
|
"hints": {
|
|
38
38
|
"breadcrumb_structure": {
|
|
39
39
|
"when": { "text": null },
|
|
40
|
+
"platforms": ["react"],
|
|
40
41
|
"message": "Compose the trail with BreadCrumbItem children; use component=\"span\" for the current page when it has no URL.",
|
|
41
42
|
"type": "info"
|
|
43
|
+
},
|
|
44
|
+
"breadcrumb_structure_rails": {
|
|
45
|
+
"when": {},
|
|
46
|
+
"platforms": ["rails"],
|
|
47
|
+
"message": "Compose the trail with bread_crumbs/bread_crumb_item children; leave out link for the current page so it renders as a span.",
|
|
48
|
+
"type": "info"
|
|
42
49
|
}
|
|
43
50
|
}
|
|
44
51
|
}
|
|
@@ -17,12 +17,6 @@
|
|
|
17
17
|
"props": [
|
|
18
18
|
"variant"
|
|
19
19
|
]
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"name": "Content",
|
|
23
|
-
"props": [
|
|
24
|
-
"text"
|
|
25
|
-
]
|
|
26
20
|
}
|
|
27
21
|
],
|
|
28
22
|
"presets": [
|
|
@@ -59,11 +53,7 @@
|
|
|
59
53
|
"children": "<Button icon=\"bold\" variant=\"secondary\" />\n<Button icon=\"italic\" variant=\"secondary\" />\n<Button icon=\"underline\" variant=\"secondary\" />"
|
|
60
54
|
}
|
|
61
55
|
],
|
|
62
|
-
"conditionals": {
|
|
63
|
-
"text": {
|
|
64
|
-
"hides": "children"
|
|
65
|
-
}
|
|
66
|
-
},
|
|
56
|
+
"conditionals": {},
|
|
67
57
|
"hints": {
|
|
68
58
|
"container_usage": {
|
|
69
59
|
"when": {},
|
|
@@ -73,9 +63,14 @@
|
|
|
73
63
|
},
|
|
74
64
|
"children": {
|
|
75
65
|
"editable": true,
|
|
76
|
-
"default": "<Button text=\"Create\" />\n<Button text=\"Edit\" />\n<Button text=\"Delete\" />"
|
|
77
|
-
|
|
78
|
-
|
|
66
|
+
"default": "<Button text=\"Create\" />\n<Button text=\"Edit\" />\n<Button text=\"Delete\" />"
|
|
67
|
+
},
|
|
68
|
+
"hiddenProps": [
|
|
69
|
+
"text"
|
|
70
|
+
],
|
|
71
|
+
"hiddenPropsByPlatform": {
|
|
72
|
+
"rails": [
|
|
73
|
+
"connected"
|
|
79
74
|
]
|
|
80
75
|
}
|
|
81
76
|
}
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
"template": "<ButtonToolbar{{props}}>\n {{children}}\n</ButtonToolbar>",
|
|
3
3
|
"children": {
|
|
4
4
|
"editable": true,
|
|
5
|
-
"default": "<Button text=\"Create\" />\n<Button text=\"Edit\" />\n<Button text=\"Delete\" />"
|
|
6
|
-
|
|
5
|
+
"default": "<Button text=\"Create\" />\n<Button text=\"Edit\" />\n<Button text=\"Delete\" />"
|
|
6
|
+
},
|
|
7
|
+
"hiddenProps": ["text"],
|
|
8
|
+
"hiddenPropsByPlatform": {
|
|
9
|
+
"rails": ["connected"]
|
|
7
10
|
},
|
|
8
11
|
"groups": [
|
|
9
12
|
{
|
|
@@ -13,10 +16,6 @@
|
|
|
13
16
|
{
|
|
14
17
|
"name": "Appearance",
|
|
15
18
|
"props": ["variant"]
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"name": "Content",
|
|
19
|
-
"props": ["text"]
|
|
20
19
|
}
|
|
21
20
|
],
|
|
22
21
|
"presets": [
|
|
@@ -41,9 +40,6 @@
|
|
|
41
40
|
"children": "<Button icon=\"bold\" variant=\"secondary\" />\n<Button icon=\"italic\" variant=\"secondary\" />\n<Button icon=\"underline\" variant=\"secondary\" />"
|
|
42
41
|
}
|
|
43
42
|
],
|
|
44
|
-
"conditionals": {
|
|
45
|
-
"text": { "hides": "children" }
|
|
46
|
-
},
|
|
47
43
|
"hints": {
|
|
48
44
|
"container_usage": {
|
|
49
45
|
"when": {},
|
|
@@ -46,8 +46,21 @@
|
|
|
46
46
|
"when": {
|
|
47
47
|
"tag": "a"
|
|
48
48
|
},
|
|
49
|
+
"platforms": [
|
|
50
|
+
"react"
|
|
51
|
+
],
|
|
49
52
|
"message": "Use htmlOptions to add href and other HTML attributes when tag is a.",
|
|
50
53
|
"type": "info"
|
|
54
|
+
},
|
|
55
|
+
"link_tag_rails": {
|
|
56
|
+
"when": {
|
|
57
|
+
"tag": "a"
|
|
58
|
+
},
|
|
59
|
+
"platforms": [
|
|
60
|
+
"rails"
|
|
61
|
+
],
|
|
62
|
+
"message": "Use html_options to add href and other HTML attributes when tag is a.",
|
|
63
|
+
"type": "info"
|
|
51
64
|
}
|
|
52
65
|
},
|
|
53
66
|
"children": {
|
|
@@ -47,8 +47,17 @@
|
|
|
47
47
|
"when": {
|
|
48
48
|
"tag": "a"
|
|
49
49
|
},
|
|
50
|
+
"platforms": ["react"],
|
|
50
51
|
"message": "Use htmlOptions to add href and other HTML attributes when tag is a.",
|
|
51
52
|
"type": "info"
|
|
53
|
+
},
|
|
54
|
+
"link_tag_rails": {
|
|
55
|
+
"when": {
|
|
56
|
+
"tag": "a"
|
|
57
|
+
},
|
|
58
|
+
"platforms": ["rails"],
|
|
59
|
+
"message": "Use html_options to add href and other HTML attributes when tag is a.",
|
|
60
|
+
"type": "info"
|
|
52
61
|
}
|
|
53
62
|
}
|
|
54
63
|
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
sections:
|
|
2
|
+
- title: "Basics"
|
|
3
|
+
examples:
|
|
4
|
+
- dropdown_default
|
|
5
|
+
- dropdown_default_rails
|
|
6
|
+
- dropdown_with_label
|
|
7
|
+
- dropdown_with_placeholder
|
|
8
|
+
- dropdown_subtle_variant
|
|
9
|
+
- dropdown_subcomponent_structure
|
|
10
|
+
- dropdown_subcomponent_structure_rails
|
|
11
|
+
|
|
12
|
+
- title: "Selection & Values"
|
|
13
|
+
examples:
|
|
14
|
+
- dropdown_default_value
|
|
15
|
+
- dropdown_blank_selection
|
|
16
|
+
- dropdown_disabled_option
|
|
17
|
+
- dropdown_with_clearable
|
|
18
|
+
- dropdown_clear_selection
|
|
19
|
+
- dropdown_controlled_selection
|
|
20
|
+
|
|
21
|
+
- title: "Search & Autocomplete"
|
|
22
|
+
examples:
|
|
23
|
+
- dropdown_with_autocomplete
|
|
24
|
+
- dropdown_with_autocomplete_with_subcomponents
|
|
25
|
+
- dropdown_default_value_with_autocomplete
|
|
26
|
+
- dropdown_with_search
|
|
27
|
+
- dropdown_with_search_rails
|
|
28
|
+
- dropdown_with_highlight
|
|
29
|
+
- dropdown_no_options_text
|
|
30
|
+
- dropdown_option_creation
|
|
31
|
+
|
|
32
|
+
- title: "Multi Select"
|
|
33
|
+
examples:
|
|
34
|
+
- dropdown_multi_select
|
|
35
|
+
- dropdown_multi_select_rails
|
|
36
|
+
- dropdown_multi_select_with_autocomplete
|
|
37
|
+
- dropdown_multi_select_display
|
|
38
|
+
- dropdown_multi_select_display_rails
|
|
39
|
+
- dropdown_multi_select_with_default
|
|
40
|
+
- dropdown_multi_select_with_custom_options
|
|
41
|
+
- dropdown_draggable_pills
|
|
42
|
+
|
|
43
|
+
- title: "Custom Options & Display"
|
|
44
|
+
examples:
|
|
45
|
+
- dropdown_with_custom_options
|
|
46
|
+
- dropdown_with_custom_options_rails
|
|
47
|
+
- dropdown_with_custom_display
|
|
48
|
+
- dropdown_with_custom_display_rails
|
|
49
|
+
- dropdown_custom_display_disabled_option
|
|
50
|
+
- dropdown_with_custom_trigger
|
|
51
|
+
- dropdown_with_custom_trigger_rails
|
|
52
|
+
- dropdown_with_custom_icon_options
|
|
53
|
+
- dropdown_with_custom_radio_options
|
|
54
|
+
- dropdown_with_custom_active_style_options
|
|
55
|
+
- dropdown_with_custom_padding
|
|
56
|
+
- dropdown_grouped_options
|
|
57
|
+
- dropdown_separators_hidden
|
|
58
|
+
- dropdown_with_constrain_height
|
|
59
|
+
- dropdown_with_constrain_height_rails
|
|
60
|
+
|
|
61
|
+
- title: "Form States & Validation"
|
|
62
|
+
examples:
|
|
63
|
+
- dropdown_required_indicator
|
|
64
|
+
- dropdown_error
|
|
65
|
+
- dropdown_disabled
|
|
66
|
+
- dropdown_form
|
|
67
|
+
- dropdown_react_hook
|
|
68
|
+
- dropdown_multi_select_react_hook
|
|
69
|
+
|
|
70
|
+
- title: "Behavior & Events"
|
|
71
|
+
examples:
|
|
72
|
+
- dropdown_closing_options
|
|
73
|
+
- dropdown_closing_options_rails
|
|
74
|
+
- dropdown_with_external_control
|
|
75
|
+
- dropdown_custom_event_type
|
|
76
|
+
- dropdown_dynamic_options
|
|
77
|
+
- dropdown_dynamic_options_with_autocomplete
|
|
78
|
+
- dropdown_dynamic_options_with_multi_select
|
|
79
|
+
|
|
80
|
+
- title: "Async & Remote Data"
|
|
81
|
+
examples:
|
|
82
|
+
- dropdown_async_search
|
|
83
|
+
- dropdown_async_loading
|
|
84
|
+
- dropdown_async_multi_select
|
|
85
|
+
- dropdown_async_multi_select_rails
|
|
86
|
+
- dropdown_async_custom_content
|
|
87
|
+
- dropdown_async_rich_results
|
|
88
|
+
- dropdown_async_initial_options
|
|
89
|
+
- dropdown_external_search
|
|
90
|
+
|
|
91
|
+
- title: "Quick Pick Variant"
|
|
92
|
+
examples:
|
|
93
|
+
- dropdown_quickpick
|
|
94
|
+
- dropdown_quickpick_rails
|
|
95
|
+
- dropdown_quickpick_range_end
|
|
96
|
+
- dropdown_quickpick_range_end_rails
|
|
97
|
+
- dropdown_quickpick_default_dates
|
|
98
|
+
- dropdown_quickpick_custom
|
|
99
|
+
- dropdown_quickpick_custom_rails
|
|
100
|
+
- dropdown_quickpick_with_date_pickers
|
|
101
|
+
- dropdown_quickpick_with_date_pickers_rails
|
|
102
|
+
- dropdown_quickpick_with_date_pickers_default_rails
|
|
103
|
+
- dropdown_quickpick_enable_time
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"props": {
|
|
78
78
|
"layout": "collection_detail"
|
|
79
79
|
},
|
|
80
|
-
"children": "<Card padding=\"none\">\n <Nav link=\"#\" orientation=\"vertical\" title=\"Menu\">\n <NavItem link=\"#\" text=\"
|
|
80
|
+
"children": "<Card padding=\"none\">\n <Nav link=\"#\" marginTop=\"sm\" orientation=\"vertical\" title=\"Menu\">\n <NavItem link=\"#\" text=\"Photos\" />\n <NavItem link=\"#\" text=\"Music\" />\n <NavItem active link=\"#\" text=\"Video\" />\n <NavItem link=\"#\" text=\"Files\" />\n </Nav>\n</Card>\n<Layout.Body>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n</Layout.Body>"
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
"name": "Content",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"props": {
|
|
103
103
|
"layout": "masonry"
|
|
104
104
|
},
|
|
105
|
-
"children": "<Layout.Body>\n <Layout.Item>\n <Image url=\"https://unsplash.it/500/400/?image=634\" />\n </Layout.Item>\n <Layout.Item size=\"md\">\n <Image url=\"https://unsplash.it/500/600/?image=635\" />\n </Layout.Item>\n <Layout.Item size=\"lg\">\n <Image url=\"https://unsplash.
|
|
105
|
+
"children": "<Layout.Body>\n <Layout.Item>\n <Image url=\"https://unsplash.it/500/400/?image=634\" />\n </Layout.Item>\n <Layout.Item size=\"md\">\n <Image url=\"https://unsplash.it/500/600/?image=635\" />\n </Layout.Item>\n <Layout.Item size=\"lg\">\n <Image url=\"https://images.unsplash.com/photo-1611927263897-c2f1156bc760?auto=format&fit=crop&w=800&q=60\" />\n </Layout.Item>\n</Layout.Body>"
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
"name": "Bracket",
|
|
@@ -158,9 +158,20 @@
|
|
|
158
158
|
"hints": {
|
|
159
159
|
"sidebar": {
|
|
160
160
|
"presetName": "Sidebar",
|
|
161
|
+
"platforms": [
|
|
162
|
+
"react"
|
|
163
|
+
],
|
|
161
164
|
"message": "Sidebar uses Layout.Side and Layout.Body, with sidebar controls for position, size, collapse, and variant.",
|
|
162
165
|
"type": "info"
|
|
163
166
|
},
|
|
167
|
+
"sidebar_rails": {
|
|
168
|
+
"presetName": "Sidebar",
|
|
169
|
+
"platforms": [
|
|
170
|
+
"rails"
|
|
171
|
+
],
|
|
172
|
+
"message": "Sidebar uses layout/sidebar and layout/body children, with sidebar controls for position, size, collapse, and variant.",
|
|
173
|
+
"type": "info"
|
|
174
|
+
},
|
|
164
175
|
"right_sidebar": {
|
|
165
176
|
"presetName": "Right Sidebar",
|
|
166
177
|
"message": "Right Sidebar moves Layout.Side to the right and uses the dark sidebar variant.",
|
|
@@ -202,36 +213,60 @@
|
|
|
202
213
|
"modes": {
|
|
203
214
|
"sidebar": {
|
|
204
215
|
"label": "Sidebar",
|
|
216
|
+
"props": {
|
|
217
|
+
"layout": "sidebar"
|
|
218
|
+
},
|
|
205
219
|
"template": "<Layout{{props}}>\n{{children}}\n</Layout>",
|
|
206
220
|
"children": "<Layout.Side>\n Side\n</Layout.Side>\n<Layout.Body>\n Body\n</Layout.Body>"
|
|
207
221
|
},
|
|
208
222
|
"collection": {
|
|
209
223
|
"label": "Collection",
|
|
224
|
+
"props": {
|
|
225
|
+
"layout": "collection"
|
|
226
|
+
},
|
|
210
227
|
"template": "<Layout{{props}}>\n{{children}}\n</Layout>",
|
|
211
228
|
"children": "<Layout.Body>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n</Layout.Body>"
|
|
212
229
|
},
|
|
213
230
|
"collection_detail": {
|
|
214
231
|
"label": "Collection detail",
|
|
232
|
+
"props": {
|
|
233
|
+
"layout": "collection_detail"
|
|
234
|
+
},
|
|
215
235
|
"template": "<Layout{{props}}>\n{{children}}\n</Layout>",
|
|
216
|
-
"children": "<Card padding=\"none\">\n <Nav link=\"#\" orientation=\"vertical\" title=\"Menu\">\n <NavItem link=\"#\" text=\"
|
|
236
|
+
"children": "<Card padding=\"none\">\n <Nav link=\"#\" marginTop=\"sm\" orientation=\"vertical\" title=\"Menu\">\n <NavItem link=\"#\" text=\"Photos\" />\n <NavItem link=\"#\" text=\"Music\" />\n <NavItem active link=\"#\" text=\"Video\" />\n <NavItem link=\"#\" text=\"Files\" />\n </Nav>\n</Card>\n<Layout.Body>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n</Layout.Body>"
|
|
217
237
|
},
|
|
218
238
|
"content": {
|
|
219
239
|
"label": "Content",
|
|
240
|
+
"props": {
|
|
241
|
+
"layout": "content"
|
|
242
|
+
},
|
|
220
243
|
"template": "<Layout{{props}}>\n{{children}}\n</Layout>",
|
|
221
244
|
"children": "<Layout.Header>\n <Card padding=\"sm\"><Title size={4} text=\"Header\" /></Card>\n</Layout.Header>\n<Layout.Side>\n <Card padding=\"sm\"><Body text=\"Supporting navigation or metadata.\" /></Card>\n</Layout.Side>\n<Layout.Body>\n <Card padding=\"md\"><Title size={3} text=\"Article Content\" /><Body text=\"Main content area with a longer reading surface.\" /></Card>\n</Layout.Body>\n<Layout.Footer>\n <Card padding=\"sm\"><Body text=\"Footer content\" /></Card>\n</Layout.Footer>"
|
|
222
245
|
},
|
|
223
246
|
"kanban": {
|
|
224
247
|
"label": "Kanban",
|
|
248
|
+
"props": {
|
|
249
|
+
"layout": "kanban"
|
|
250
|
+
},
|
|
225
251
|
"template": "<Layout{{props}}>\n{{children}}\n</Layout>",
|
|
226
252
|
"children": "<Layout.Body>\n <Caption text=\"Queue\" />\n <Card padding=\"sm\"><Title size={4} text=\"Design Homepage\" /><Body text=\"Owner: Ada\" /></Card>\n <Card padding=\"sm\"><Title size={4} text=\"Update Icons\" /><Body text=\"Owner: Grace\" /></Card>\n</Layout.Body>\n<Layout.Body>\n <Caption text=\"In Progress\" />\n <Card padding=\"sm\"><Title size={4} text=\"Dashboard Updates\" /><Body text=\"Owner: Katherine\" /></Card>\n</Layout.Body>\n<Layout.Body>\n <Caption text=\"Done\" />\n <Card padding=\"sm\"><Title size={4} text=\"QA Review\" /><Body text=\"Owner: Margaret\" /></Card>\n</Layout.Body>"
|
|
227
253
|
},
|
|
228
254
|
"masonry": {
|
|
229
255
|
"label": "Masonry",
|
|
256
|
+
"props": {
|
|
257
|
+
"layout": "masonry"
|
|
258
|
+
},
|
|
230
259
|
"template": "<Layout{{props}}>\n{{children}}\n</Layout>",
|
|
231
|
-
"children": "<Layout.Body>\n <Layout.Item>\n <Image url=\"https://unsplash.it/500/400/?image=634\" />\n </Layout.Item>\n <Layout.Item size=\"md\">\n <Image url=\"https://unsplash.it/500/600/?image=635\" />\n </Layout.Item>\n <Layout.Item size=\"lg\">\n <Image url=\"https://unsplash.
|
|
260
|
+
"children": "<Layout.Body>\n <Layout.Item>\n <Image url=\"https://unsplash.it/500/400/?image=634\" />\n </Layout.Item>\n <Layout.Item size=\"md\">\n <Image url=\"https://unsplash.it/500/600/?image=635\" />\n </Layout.Item>\n <Layout.Item size=\"lg\">\n <Image url=\"https://images.unsplash.com/photo-1611927263897-c2f1156bc760?auto=format&fit=crop&w=800&q=60\" />\n </Layout.Item>\n</Layout.Body>"
|
|
232
261
|
},
|
|
233
262
|
"bracket": {
|
|
234
263
|
"label": "Bracket",
|
|
264
|
+
"props": {
|
|
265
|
+
"layout": "bracket"
|
|
266
|
+
},
|
|
267
|
+
"platforms": [
|
|
268
|
+
"react"
|
|
269
|
+
],
|
|
235
270
|
"template": "<Layout{{props}}>\n{{children}}\n</Layout>",
|
|
236
271
|
"children": "<Layout.RoundLabel>\n <Caption text=\"Semifinal\" />\n <SectionSeparator marginY=\"sm\" />\n</Layout.RoundLabel>\n<Layout.Round>\n <Layout.Game>\n <Layout.Participant name=\"Eagles\" points=\"22\" rank=\"#1\" territory=\"PHI\" winner />\n <Layout.Participant name=\"Packers\" points=\"10\" rank=\"#3\" territory=\"GB\" />\n </Layout.Game>\n <Layout.Game>\n <Layout.Participant name=\"Rams\" points=\"27\" rank=\"#1\" territory=\"LAR\" winner />\n <Layout.Participant name=\"Vikings\" points=\"9\" rank=\"#2\" territory=\"MIN\" />\n </Layout.Game>\n</Layout.Round>\n<Layout.RoundLabel>\n <Caption text=\"Final\" />\n <SectionSeparator marginY=\"sm\" />\n</Layout.RoundLabel>\n<Layout.Round>\n <Layout.Game>\n <Layout.Participant name=\"Eagles\" points=\"24\" rank=\"#1\" self territory=\"PHI\" winner />\n <Layout.Participant name=\"Rams\" points=\"17\" rank=\"#1\" territory=\"LAR\" />\n </Layout.Game>\n</Layout.Round>"
|
|
237
272
|
}
|
|
@@ -4,36 +4,44 @@
|
|
|
4
4
|
"modes": {
|
|
5
5
|
"sidebar": {
|
|
6
6
|
"label": "Sidebar",
|
|
7
|
+
"props": { "layout": "sidebar" },
|
|
7
8
|
"template": "<Layout{{props}}>\n{{children}}\n</Layout>",
|
|
8
9
|
"children": "<Layout.Side>\n Side\n</Layout.Side>\n<Layout.Body>\n Body\n</Layout.Body>"
|
|
9
10
|
},
|
|
10
11
|
"collection": {
|
|
11
12
|
"label": "Collection",
|
|
13
|
+
"props": { "layout": "collection" },
|
|
12
14
|
"template": "<Layout{{props}}>\n{{children}}\n</Layout>",
|
|
13
15
|
"children": "<Layout.Body>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n</Layout.Body>"
|
|
14
16
|
},
|
|
15
17
|
"collection_detail": {
|
|
16
18
|
"label": "Collection detail",
|
|
19
|
+
"props": { "layout": "collection_detail" },
|
|
17
20
|
"template": "<Layout{{props}}>\n{{children}}\n</Layout>",
|
|
18
|
-
"children": "<Card padding=\"none\">\n <Nav link=\"#\" orientation=\"vertical\" title=\"Menu\">\n <NavItem link=\"#\" text=\"
|
|
21
|
+
"children": "<Card padding=\"none\">\n <Nav link=\"#\" marginTop=\"sm\" orientation=\"vertical\" title=\"Menu\">\n <NavItem link=\"#\" text=\"Photos\" />\n <NavItem link=\"#\" text=\"Music\" />\n <NavItem active link=\"#\" text=\"Video\" />\n <NavItem link=\"#\" text=\"Files\" />\n </Nav>\n</Card>\n<Layout.Body>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n</Layout.Body>"
|
|
19
22
|
},
|
|
20
23
|
"content": {
|
|
21
24
|
"label": "Content",
|
|
25
|
+
"props": { "layout": "content" },
|
|
22
26
|
"template": "<Layout{{props}}>\n{{children}}\n</Layout>",
|
|
23
27
|
"children": "<Layout.Header>\n <Card padding=\"sm\"><Title size={4} text=\"Header\" /></Card>\n</Layout.Header>\n<Layout.Side>\n <Card padding=\"sm\"><Body text=\"Supporting navigation or metadata.\" /></Card>\n</Layout.Side>\n<Layout.Body>\n <Card padding=\"md\"><Title size={3} text=\"Article Content\" /><Body text=\"Main content area with a longer reading surface.\" /></Card>\n</Layout.Body>\n<Layout.Footer>\n <Card padding=\"sm\"><Body text=\"Footer content\" /></Card>\n</Layout.Footer>"
|
|
24
28
|
},
|
|
25
29
|
"kanban": {
|
|
26
30
|
"label": "Kanban",
|
|
31
|
+
"props": { "layout": "kanban" },
|
|
27
32
|
"template": "<Layout{{props}}>\n{{children}}\n</Layout>",
|
|
28
33
|
"children": "<Layout.Body>\n <Caption text=\"Queue\" />\n <Card padding=\"sm\"><Title size={4} text=\"Design Homepage\" /><Body text=\"Owner: Ada\" /></Card>\n <Card padding=\"sm\"><Title size={4} text=\"Update Icons\" /><Body text=\"Owner: Grace\" /></Card>\n</Layout.Body>\n<Layout.Body>\n <Caption text=\"In Progress\" />\n <Card padding=\"sm\"><Title size={4} text=\"Dashboard Updates\" /><Body text=\"Owner: Katherine\" /></Card>\n</Layout.Body>\n<Layout.Body>\n <Caption text=\"Done\" />\n <Card padding=\"sm\"><Title size={4} text=\"QA Review\" /><Body text=\"Owner: Margaret\" /></Card>\n</Layout.Body>"
|
|
29
34
|
},
|
|
30
35
|
"masonry": {
|
|
31
36
|
"label": "Masonry",
|
|
37
|
+
"props": { "layout": "masonry" },
|
|
32
38
|
"template": "<Layout{{props}}>\n{{children}}\n</Layout>",
|
|
33
|
-
"children": "<Layout.Body>\n <Layout.Item>\n <Image url=\"https://unsplash.it/500/400/?image=634\" />\n </Layout.Item>\n <Layout.Item size=\"md\">\n <Image url=\"https://unsplash.it/500/600/?image=635\" />\n </Layout.Item>\n <Layout.Item size=\"lg\">\n <Image url=\"https://unsplash.
|
|
39
|
+
"children": "<Layout.Body>\n <Layout.Item>\n <Image url=\"https://unsplash.it/500/400/?image=634\" />\n </Layout.Item>\n <Layout.Item size=\"md\">\n <Image url=\"https://unsplash.it/500/600/?image=635\" />\n </Layout.Item>\n <Layout.Item size=\"lg\">\n <Image url=\"https://images.unsplash.com/photo-1611927263897-c2f1156bc760?auto=format&fit=crop&w=800&q=60\" />\n </Layout.Item>\n</Layout.Body>"
|
|
34
40
|
},
|
|
35
41
|
"bracket": {
|
|
36
42
|
"label": "Bracket",
|
|
43
|
+
"props": { "layout": "bracket" },
|
|
44
|
+
"platforms": ["react"],
|
|
37
45
|
"template": "<Layout{{props}}>\n{{children}}\n</Layout>",
|
|
38
46
|
"children": "<Layout.RoundLabel>\n <Caption text=\"Semifinal\" />\n <SectionSeparator marginY=\"sm\" />\n</Layout.RoundLabel>\n<Layout.Round>\n <Layout.Game>\n <Layout.Participant name=\"Eagles\" points=\"22\" rank=\"#1\" territory=\"PHI\" winner />\n <Layout.Participant name=\"Packers\" points=\"10\" rank=\"#3\" territory=\"GB\" />\n </Layout.Game>\n <Layout.Game>\n <Layout.Participant name=\"Rams\" points=\"27\" rank=\"#1\" territory=\"LAR\" winner />\n <Layout.Participant name=\"Vikings\" points=\"9\" rank=\"#2\" territory=\"MIN\" />\n </Layout.Game>\n</Layout.Round>\n<Layout.RoundLabel>\n <Caption text=\"Final\" />\n <SectionSeparator marginY=\"sm\" />\n</Layout.RoundLabel>\n<Layout.Round>\n <Layout.Game>\n <Layout.Participant name=\"Eagles\" points=\"24\" rank=\"#1\" self territory=\"PHI\" winner />\n <Layout.Participant name=\"Rams\" points=\"17\" rank=\"#1\" territory=\"LAR\" />\n </Layout.Game>\n</Layout.Round>"
|
|
39
47
|
}
|
|
@@ -97,7 +105,7 @@
|
|
|
97
105
|
"props": {
|
|
98
106
|
"layout": "collection_detail"
|
|
99
107
|
},
|
|
100
|
-
"children": "<Card padding=\"none\">\n <Nav link=\"#\" orientation=\"vertical\" title=\"Menu\">\n <NavItem link=\"#\" text=\"
|
|
108
|
+
"children": "<Card padding=\"none\">\n <Nav link=\"#\" marginTop=\"sm\" orientation=\"vertical\" title=\"Menu\">\n <NavItem link=\"#\" text=\"Photos\" />\n <NavItem link=\"#\" text=\"Music\" />\n <NavItem active link=\"#\" text=\"Video\" />\n <NavItem link=\"#\" text=\"Files\" />\n </Nav>\n</Card>\n<Layout.Body>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n <Card>Card content</Card>\n</Layout.Body>"
|
|
101
109
|
},
|
|
102
110
|
{
|
|
103
111
|
"name": "Content",
|
|
@@ -122,7 +130,7 @@
|
|
|
122
130
|
"props": {
|
|
123
131
|
"layout": "masonry"
|
|
124
132
|
},
|
|
125
|
-
"children": "<Layout.Body>\n <Layout.Item>\n <Image url=\"https://unsplash.it/500/400/?image=634\" />\n </Layout.Item>\n <Layout.Item size=\"md\">\n <Image url=\"https://unsplash.it/500/600/?image=635\" />\n </Layout.Item>\n <Layout.Item size=\"lg\">\n <Image url=\"https://unsplash.
|
|
133
|
+
"children": "<Layout.Body>\n <Layout.Item>\n <Image url=\"https://unsplash.it/500/400/?image=634\" />\n </Layout.Item>\n <Layout.Item size=\"md\">\n <Image url=\"https://unsplash.it/500/600/?image=635\" />\n </Layout.Item>\n <Layout.Item size=\"lg\">\n <Image url=\"https://images.unsplash.com/photo-1611927263897-c2f1156bc760?auto=format&fit=crop&w=800&q=60\" />\n </Layout.Item>\n</Layout.Body>"
|
|
126
134
|
},
|
|
127
135
|
{
|
|
128
136
|
"name": "Bracket",
|
|
@@ -146,9 +154,16 @@
|
|
|
146
154
|
"hints": {
|
|
147
155
|
"sidebar": {
|
|
148
156
|
"presetName": "Sidebar",
|
|
157
|
+
"platforms": ["react"],
|
|
149
158
|
"message": "Sidebar uses Layout.Side and Layout.Body, with sidebar controls for position, size, collapse, and variant.",
|
|
150
159
|
"type": "info"
|
|
151
160
|
},
|
|
161
|
+
"sidebar_rails": {
|
|
162
|
+
"presetName": "Sidebar",
|
|
163
|
+
"platforms": ["rails"],
|
|
164
|
+
"message": "Sidebar uses layout/sidebar and layout/body children, with sidebar controls for position, size, collapse, and variant.",
|
|
165
|
+
"type": "info"
|
|
166
|
+
},
|
|
152
167
|
"right_sidebar": {
|
|
153
168
|
"presetName": "Right Sidebar",
|
|
154
169
|
"message": "Right Sidebar moves Layout.Side to the right and uses the dark sidebar variant.",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"hints": {
|
|
114
114
|
"default": {
|
|
115
115
|
"presetName": "Default",
|
|
116
|
-
"message": "List is composed
|
|
116
|
+
"message": "List is composed of list items; edit children to change the rows.",
|
|
117
117
|
"type": "info"
|
|
118
118
|
},
|
|
119
119
|
"ordered": {
|
|
@@ -162,6 +162,9 @@
|
|
|
162
162
|
},
|
|
163
163
|
"draggable": {
|
|
164
164
|
"label": "Draggable List",
|
|
165
|
+
"platforms": [
|
|
166
|
+
"react"
|
|
167
|
+
],
|
|
165
168
|
"template": "<DraggableProvider\n initialItems={initialItems}\n onReorder={setItems}\n>\n <List{{props}}>\n {items.map(({ id, text }) => (\n <ListItem\n dragId={id}\n key={id}\n >\n {text}\n </ListItem>\n ))}\n </List>\n</DraggableProvider>",
|
|
166
169
|
"children": "",
|
|
167
170
|
"props": {
|
|
@@ -175,6 +178,12 @@
|
|
|
175
178
|
"text",
|
|
176
179
|
"variant"
|
|
177
180
|
],
|
|
181
|
+
"hiddenPropsByPlatform": {
|
|
182
|
+
"rails": [
|
|
183
|
+
"enableDrag",
|
|
184
|
+
"items"
|
|
185
|
+
]
|
|
186
|
+
},
|
|
178
187
|
"customProps": {
|
|
179
188
|
"size": {
|
|
180
189
|
"type": "enum",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"draggable": {
|
|
11
11
|
"label": "Draggable List",
|
|
12
|
+
"platforms": ["react"],
|
|
12
13
|
"template": "<DraggableProvider\n initialItems={initialItems}\n onReorder={setItems}\n>\n <List{{props}}>\n {items.map(({ id, text }) => (\n <ListItem\n dragId={id}\n key={id}\n >\n {text}\n </ListItem>\n ))}\n </List>\n</DraggableProvider>",
|
|
13
14
|
"children": "",
|
|
14
15
|
"props": {
|
|
@@ -27,6 +28,9 @@
|
|
|
27
28
|
"text",
|
|
28
29
|
"variant"
|
|
29
30
|
],
|
|
31
|
+
"hiddenPropsByPlatform": {
|
|
32
|
+
"rails": ["enableDrag", "items"]
|
|
33
|
+
},
|
|
30
34
|
"customProps": {
|
|
31
35
|
"size": {
|
|
32
36
|
"type": "enum",
|
|
@@ -149,7 +153,7 @@
|
|
|
149
153
|
"hints": {
|
|
150
154
|
"default": {
|
|
151
155
|
"presetName": "Default",
|
|
152
|
-
"message": "List is composed
|
|
156
|
+
"message": "List is composed of list items; edit children to change the rows.",
|
|
153
157
|
"type": "info"
|
|
154
158
|
},
|
|
155
159
|
"ordered": {
|