playbook_ui_docs 16.7.0.pre.alpha.tablewidths16409 → 16.7.0.pre.rc.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_advanced_table/docs/_advanced_table_column_styling.jsx +0 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.md +0 -10
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_grouped_headers_composition.jsx +1 -15
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_infinite_scroll.jsx +2 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_row_loading.jsx +2 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows.jsx +2 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/_mock_data_inline_loading.js +200 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_mock_data_inline_loading_empty_children.js +42 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_playground.json +5807 -150
- data/app/pb_kits/playbook/pb_advanced_table/docs/_playground.overrides.json +30 -5
- data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_column_definitions_styling.json +1 -6
- data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_grouped_headers_composition_mock_data.json +98 -0
- data/app/pb_kits/playbook/pb_bread_crumbs/docs/_bread_crumbs_default.jsx +5 -5
- data/app/pb_kits/playbook/pb_date/docs/_playground.json +17 -13
- data/app/pb_kits/playbook/pb_date/docs/_playground.overrides.json +16 -13
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_inline.html.erb +2 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_inline.jsx +2 -0
- data/app/pb_kits/playbook/pb_date_picker/docs/_playground.json +42 -136
- data/app/pb_kits/playbook/pb_date_picker/docs/_playground.overrides.json +45 -113
- data/app/pb_kits/playbook/pb_date_range_inline/docs/_playground.json +6 -48
- data/app/pb_kits/playbook/pb_date_range_stacked/docs/_playground.json +5 -28
- data/app/pb_kits/playbook/pb_date_stacked/docs/_playground.json +1 -1
- data/app/pb_kits/playbook/pb_date_stacked/docs/_playground.overrides.json +1 -1
- data/app/pb_kits/playbook/pb_date_time/docs/_playground.json +3 -16
- data/app/pb_kits/playbook/pb_date_time/docs/_playground.overrides.json +3 -16
- data/app/pb_kits/playbook/pb_date_time_stacked/docs/_playground.json +15 -11
- data/app/pb_kits/playbook/pb_date_time_stacked/docs/_playground.overrides.json +15 -11
- data/app/pb_kits/playbook/pb_date_year_stacked/docs/_playground.json +4 -4
- data/app/pb_kits/playbook/pb_date_year_stacked/docs/_playground.overrides.json +4 -4
- data/app/pb_kits/playbook/pb_detail/docs/_playground.json +18 -12
- data/app/pb_kits/playbook/pb_detail/docs/_playground.overrides.json +12 -13
- data/app/pb_kits/playbook/pb_dialog/docs/_playground.json +42 -108
- data/app/pb_kits/playbook/pb_dialog/docs/_playground.overrides.json +40 -88
- data/app/pb_kits/playbook/pb_distribution_bar/docs/_playground.json +7 -65
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_constrain_height.jsx +0 -18
- data/app/pb_kits/playbook/pb_dropdown/docs/_dropdown_with_constrain_height_rails.html.erb +0 -11
- data/app/pb_kits/playbook/pb_dropdown/docs/_playground.json +21 -318
- data/app/pb_kits/playbook/pb_dropdown/docs/_playground.overrides.json +19 -192
- data/app/pb_kits/playbook/pb_empty_state/docs/_playground.json +12 -77
- data/app/pb_kits/playbook/pb_file_upload/docs/_playground.json +13 -98
- data/app/pb_kits/playbook/pb_link/docs/_playground.json +40 -81
- data/app/pb_kits/playbook/pb_link/docs/_playground.overrides.json +30 -88
- data/app/pb_kits/playbook/pb_pagination/docs/_pagination_external_control.jsx +1 -22
- data/app/pb_kits/playbook/pb_pagination/docs/_pagination_page_change.jsx +2 -22
- data/app/pb_kits/playbook/pb_pagination/docs/data.js +23 -0
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_playground.json +2 -4
- data/app/pb_kits/playbook/pb_phone_number_input/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_phone_number_input/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_advanced_templates.jsx +1 -76
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/templates.js +75 -0
- data/app/pb_kits/playbook/pb_title/docs/_playground.json +23 -72
- data/app/pb_kits/playbook/pb_title/docs/_playground.overrides.json +16 -80
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_react_hook.jsx +2 -2
- metadata +7 -15
- data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_mock_data_inline_loading_empty_children.json +0 -41
- data/app/pb_kits/playbook/pb_date_range_inline/docs/_playground.overrides.json +0 -57
- data/app/pb_kits/playbook/pb_date_range_stacked/docs/_playground.overrides.json +0 -38
- data/app/pb_kits/playbook/pb_distribution_bar/docs/_playground.overrides.json +0 -45
- data/app/pb_kits/playbook/pb_empty_state/docs/_playground.overrides.json +0 -79
- data/app/pb_kits/playbook/pb_file_upload/docs/_playground.overrides.json +0 -99
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_show_placeholder.html.erb +0 -5
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_show_placeholder.jsx +0 -14
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_show_placeholder.md +0 -3
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_rails_default.html.erb +0 -1
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_rails_default.md +0 -12
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_rails_simple.html.erb +0 -9
- data/app/pb_kits/playbook/pb_rich_text_editor/docs/_rich_text_editor_rails_simple.md +0 -8
|
@@ -14,32 +14,31 @@
|
|
|
14
14
|
],
|
|
15
15
|
"presets": [
|
|
16
16
|
{
|
|
17
|
-
"name": "
|
|
18
|
-
"props": { },
|
|
19
|
-
"children": "
|
|
17
|
+
"name": "Metadata",
|
|
18
|
+
"props": { "color": "light", "bold": false },
|
|
19
|
+
"children": "Updated Apr 9, 2026"
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
"name": "Emphasis",
|
|
23
|
-
"props": { "bold": true },
|
|
23
|
+
"props": { "color": "default", "bold": true },
|
|
24
24
|
"children": "Order #48291 · Processing"
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
|
-
"name": "Link
|
|
27
|
+
"name": "Link",
|
|
28
28
|
"props": { "color": "link" },
|
|
29
29
|
"children": "View documentation"
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
"name": "Error status",
|
|
33
33
|
"props": { "color": "error", "bold": true },
|
|
34
|
-
"children": "Payment failed"
|
|
34
|
+
"children": "Payment failed — card expired"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "Inline label",
|
|
38
|
+
"props": { "tag": "span", "color": "lighter" },
|
|
39
|
+
"children": "Optional"
|
|
35
40
|
}
|
|
36
41
|
],
|
|
37
42
|
"conditionals": {},
|
|
38
|
-
"hints": {
|
|
39
|
-
"link_color": {
|
|
40
|
-
"presetName": "Link color",
|
|
41
|
-
"message": "Use the color prop to change the color of the detail kit",
|
|
42
|
-
"type": "info"
|
|
43
|
-
}
|
|
44
|
-
}
|
|
43
|
+
"hints": {}
|
|
45
44
|
}
|
|
@@ -7,9 +7,7 @@
|
|
|
7
7
|
"placement": "center",
|
|
8
8
|
"shouldCloseOnOverlayClick": true,
|
|
9
9
|
"size": "md",
|
|
10
|
-
"status": ""
|
|
11
|
-
"title": "Header Title is the Title Prop",
|
|
12
|
-
"text": "Hello Body Text, Nice to meet ya."
|
|
10
|
+
"status": ""
|
|
13
11
|
},
|
|
14
12
|
"children": {
|
|
15
13
|
"editable": true,
|
|
@@ -25,21 +23,22 @@
|
|
|
25
23
|
"title",
|
|
26
24
|
"text",
|
|
27
25
|
"cancelButton",
|
|
28
|
-
"confirmButton"
|
|
29
|
-
"onCancel",
|
|
30
|
-
"onClose",
|
|
31
|
-
"onConfirm",
|
|
32
|
-
"opened",
|
|
33
|
-
"onChange"
|
|
26
|
+
"confirmButton"
|
|
34
27
|
]
|
|
35
28
|
},
|
|
36
29
|
{
|
|
37
30
|
"name": "Behavior",
|
|
38
31
|
"props": [
|
|
32
|
+
"opened",
|
|
39
33
|
"placement",
|
|
40
34
|
"shouldCloseOnOverlayClick",
|
|
41
35
|
"closeable",
|
|
42
|
-
"loading"
|
|
36
|
+
"loading",
|
|
37
|
+
"trigger",
|
|
38
|
+
"onClose",
|
|
39
|
+
"onCancel",
|
|
40
|
+
"onConfirm",
|
|
41
|
+
"onChange"
|
|
43
42
|
]
|
|
44
43
|
},
|
|
45
44
|
{
|
|
@@ -47,90 +46,69 @@
|
|
|
47
46
|
"props": [
|
|
48
47
|
"size",
|
|
49
48
|
"status",
|
|
50
|
-
"fullHeight"
|
|
49
|
+
"fullHeight",
|
|
50
|
+
"portalClassName"
|
|
51
51
|
]
|
|
52
52
|
}
|
|
53
53
|
],
|
|
54
54
|
"presets": [
|
|
55
|
-
{
|
|
56
|
-
"name": "Default",
|
|
57
|
-
"props": {
|
|
58
|
-
"size": "md",
|
|
59
|
-
"title": "Header Title is the Title Prop",
|
|
60
|
-
"text": "Hello Body Text, Nice to meet ya.",
|
|
61
|
-
"cancelButton": "Cancel Button",
|
|
62
|
-
"confirmButton": "Okay"
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
55
|
{
|
|
66
56
|
"name": "Small",
|
|
67
57
|
"props": {
|
|
68
58
|
"size": "sm",
|
|
59
|
+
"opened": true,
|
|
69
60
|
"title": "Small dialog",
|
|
70
61
|
"text": "Narrow width for short confirmations and alerts."
|
|
71
62
|
}
|
|
72
63
|
},
|
|
64
|
+
{
|
|
65
|
+
"name": "Medium",
|
|
66
|
+
"props": {
|
|
67
|
+
"size": "md",
|
|
68
|
+
"opened": true,
|
|
69
|
+
"title": "Medium dialog",
|
|
70
|
+
"text": "Default size for most forms and standard content."
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
73
|
{
|
|
74
74
|
"name": "Large",
|
|
75
75
|
"props": {
|
|
76
76
|
"size": "lg",
|
|
77
|
+
"opened": true,
|
|
77
78
|
"title": "Large dialog",
|
|
78
79
|
"text": "Wider layout for dense content or two-column layouts."
|
|
79
80
|
}
|
|
80
81
|
},
|
|
81
82
|
{
|
|
82
|
-
"name": "
|
|
83
|
+
"name": "Extra large",
|
|
83
84
|
"props": {
|
|
84
|
-
"size": "
|
|
85
|
-
"
|
|
86
|
-
"title": "
|
|
87
|
-
"text": "
|
|
85
|
+
"size": "xl",
|
|
86
|
+
"opened": true,
|
|
87
|
+
"title": "Extra large dialog",
|
|
88
|
+
"text": "Maximum width before full-screen patterns."
|
|
88
89
|
}
|
|
89
90
|
},
|
|
90
91
|
{
|
|
91
|
-
"name": "
|
|
92
|
-
"structureMode": "subcomponents",
|
|
92
|
+
"name": "Content width",
|
|
93
93
|
"props": {
|
|
94
|
-
"size": "
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
"size": "content",
|
|
95
|
+
"opened": true,
|
|
96
|
+
"title": "Content-sized dialog",
|
|
97
|
+
"text": "Width follows the content instead of fixed breakpoints."
|
|
98
|
+
}
|
|
97
99
|
},
|
|
98
100
|
{
|
|
99
|
-
"name": "
|
|
100
|
-
"structureMode": "subcomponents",
|
|
101
|
+
"name": "Status size",
|
|
101
102
|
"props": {
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
"size": "status_size",
|
|
104
|
+
"opened": true,
|
|
105
|
+
"status": "success",
|
|
106
|
+
"title": "Success",
|
|
107
|
+
"text": "Compact status layout for confirmations and feedback."
|
|
108
|
+
}
|
|
106
109
|
}
|
|
107
110
|
],
|
|
108
|
-
"conditionals": {
|
|
109
|
-
"title": {
|
|
110
|
-
"structureMode": "simple"
|
|
111
|
-
},
|
|
112
|
-
"text": {
|
|
113
|
-
"structureMode": "simple"
|
|
114
|
-
},
|
|
115
|
-
"cancelButton": {
|
|
116
|
-
"structureMode": "simple"
|
|
117
|
-
},
|
|
118
|
-
"confirmButton": {
|
|
119
|
-
"structureMode": "simple"
|
|
120
|
-
},
|
|
121
|
-
"onCancel": {
|
|
122
|
-
"structureMode": "simple"
|
|
123
|
-
},
|
|
124
|
-
"onClose": {
|
|
125
|
-
"structureMode": "simple"
|
|
126
|
-
},
|
|
127
|
-
"onConfirm": {
|
|
128
|
-
"structureMode": "simple"
|
|
129
|
-
},
|
|
130
|
-
"opened": {
|
|
131
|
-
"structureMode": "simple"
|
|
132
|
-
}
|
|
133
|
-
},
|
|
111
|
+
"conditionals": {},
|
|
134
112
|
"hints": {
|
|
135
113
|
"status_dialog": {
|
|
136
114
|
"when": {
|
|
@@ -138,50 +116,6 @@
|
|
|
138
116
|
},
|
|
139
117
|
"message": "Status dialogs show an icon, title, and body copy in a centered layout.",
|
|
140
118
|
"type": "info"
|
|
141
|
-
},
|
|
142
|
-
"compound_components_info": {
|
|
143
|
-
"presetName": "Compound components",
|
|
144
|
-
"message": "Use Compound Components when you need custom header, body, or footer content instead of the simple title/text/button props API.",
|
|
145
|
-
"type": "info"
|
|
146
|
-
},
|
|
147
|
-
"full_height_info": {
|
|
148
|
-
"presetName": "Full height compound",
|
|
149
|
-
"message": "fullHeight is most useful with the compound structure when the dialog contains richer or scrollable content.",
|
|
150
|
-
"type": "info"
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
"structureModes": {
|
|
154
|
-
"default": "simple",
|
|
155
|
-
"modes": {
|
|
156
|
-
"simple": {
|
|
157
|
-
"label": "Simple",
|
|
158
|
-
"template": "<Dialog opened={dialogOpen} onCancel={closeDialog} onClose={closeDialog} onConfirm={closeDialog}{{props}} />",
|
|
159
|
-
"children": "",
|
|
160
|
-
"props": {
|
|
161
|
-
"size": "md",
|
|
162
|
-
"title": "Header Title is the Title Prop",
|
|
163
|
-
"text": "Hello Body Text, Nice to meet ya.",
|
|
164
|
-
"cancelButton": "Cancel Button",
|
|
165
|
-
"confirmButton": "Okay"
|
|
166
|
-
},
|
|
167
|
-
"imports": [
|
|
168
|
-
"Button"
|
|
169
|
-
],
|
|
170
|
-
"wrapper": "const DialogPlaygroundExample = () => {\n const [dialogOpen, setDialogOpen] = useState(false)\n const openDialog = () => setDialogOpen(true)\n const closeDialog = () => setDialogOpen(false)\n\n return (\n <>\n <Button marginBottom=\"sm\" onClick={openDialog}>\n Open Dialog\n </Button>\n {{component}}\n </>\n )\n}\n\n<DialogPlaygroundExample />"
|
|
171
|
-
},
|
|
172
|
-
"subcomponents": {
|
|
173
|
-
"label": "Compound Components",
|
|
174
|
-
"template": "<Dialog opened={dialogOpen} onClose={closeDialog}{{props}}>\n <Dialog.Header>Header Title inside Dialog.Header</Dialog.Header>\n <Dialog.Body>{{children}}</Dialog.Body>\n <Dialog.Footer>\n <Button onClick={closeDialog}>Okay</Button>\n <Button onClick={closeDialog} variant=\"link\">Cancel Button</Button>\n </Dialog.Footer>\n</Dialog>",
|
|
175
|
-
"children": "Hello Body Text, Nice to meet ya.",
|
|
176
|
-
"imports": [
|
|
177
|
-
"Button"
|
|
178
|
-
],
|
|
179
|
-
"wrapper": "const DialogPlaygroundExample = () => {\n const [dialogOpen, setDialogOpen] = useState(false)\n const openDialog = () => setDialogOpen(true)\n const closeDialog = () => setDialogOpen(false)\n\n return (\n <>\n <Button marginBottom=\"sm\" onClick={openDialog}>\n Open Dialog\n </Button>\n {{component}}\n </>\n )\n}\n\n<DialogPlaygroundExample />"
|
|
180
|
-
}
|
|
181
119
|
}
|
|
182
|
-
}
|
|
183
|
-
"hiddenProps": [
|
|
184
|
-
"trigger",
|
|
185
|
-
"portalClassName"
|
|
186
|
-
]
|
|
120
|
+
}
|
|
187
121
|
}
|
|
@@ -1,143 +1,95 @@
|
|
|
1
1
|
{
|
|
2
|
-
"structureModes": {
|
|
3
|
-
"default": "simple",
|
|
4
|
-
"modes": {
|
|
5
|
-
"simple": {
|
|
6
|
-
"label": "Simple",
|
|
7
|
-
"template": "<Dialog opened={dialogOpen} onCancel={closeDialog} onClose={closeDialog} onConfirm={closeDialog}{{props}} />",
|
|
8
|
-
"children": "",
|
|
9
|
-
"props": {
|
|
10
|
-
"size": "md",
|
|
11
|
-
"title": "Header Title is the Title Prop",
|
|
12
|
-
"text": "Hello Body Text, Nice to meet ya.",
|
|
13
|
-
"cancelButton": "Cancel Button",
|
|
14
|
-
"confirmButton": "Okay"
|
|
15
|
-
},
|
|
16
|
-
"imports": ["Button"],
|
|
17
|
-
"wrapper": "const DialogPlaygroundExample = () => {\n const [dialogOpen, setDialogOpen] = useState(false)\n const openDialog = () => setDialogOpen(true)\n const closeDialog = () => setDialogOpen(false)\n\n return (\n <>\n <Button marginBottom=\"sm\" onClick={openDialog}>\n Open Dialog\n </Button>\n {{component}}\n </>\n )\n}\n\n<DialogPlaygroundExample />"
|
|
18
|
-
},
|
|
19
|
-
"subcomponents": {
|
|
20
|
-
"label": "Compound Components",
|
|
21
|
-
"template": "<Dialog opened={dialogOpen} onClose={closeDialog}{{props}}>\n <Dialog.Header>Header Title inside Dialog.Header</Dialog.Header>\n <Dialog.Body>{{children}}</Dialog.Body>\n <Dialog.Footer>\n <Button onClick={closeDialog}>Okay</Button>\n <Button onClick={closeDialog} variant=\"link\">Cancel Button</Button>\n </Dialog.Footer>\n</Dialog>",
|
|
22
|
-
"children": "Hello Body Text, Nice to meet ya.",
|
|
23
|
-
"imports": ["Button"],
|
|
24
|
-
"wrapper": "const DialogPlaygroundExample = () => {\n const [dialogOpen, setDialogOpen] = useState(false)\n const openDialog = () => setDialogOpen(true)\n const closeDialog = () => setDialogOpen(false)\n\n return (\n <>\n <Button marginBottom=\"sm\" onClick={openDialog}>\n Open Dialog\n </Button>\n {{component}}\n </>\n )\n}\n\n<DialogPlaygroundExample />"
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
2
|
"children": {
|
|
29
3
|
"default": "Custom dialog content goes here when you are not using the title and text props."
|
|
30
4
|
},
|
|
31
|
-
"hiddenProps": [
|
|
32
|
-
"trigger",
|
|
33
|
-
"portalClassName"
|
|
34
|
-
],
|
|
35
|
-
"defaults": {
|
|
36
|
-
"closeable": true,
|
|
37
|
-
"placement": "center",
|
|
38
|
-
"shouldCloseOnOverlayClick": true,
|
|
39
|
-
"size": "md",
|
|
40
|
-
"title": "Header Title is the Title Prop",
|
|
41
|
-
"text": "Hello Body Text, Nice to meet ya."
|
|
42
|
-
},
|
|
43
5
|
"groups": [
|
|
44
6
|
{
|
|
45
7
|
"name": "Content",
|
|
46
|
-
"props": ["title", "text", "cancelButton", "confirmButton"
|
|
8
|
+
"props": ["title", "text", "cancelButton", "confirmButton"]
|
|
47
9
|
},
|
|
48
10
|
{
|
|
49
11
|
"name": "Behavior",
|
|
50
12
|
"props": [
|
|
13
|
+
"opened",
|
|
51
14
|
"placement",
|
|
52
15
|
"shouldCloseOnOverlayClick",
|
|
53
16
|
"closeable",
|
|
54
|
-
"loading"
|
|
17
|
+
"loading",
|
|
18
|
+
"trigger",
|
|
19
|
+
"onClose",
|
|
20
|
+
"onCancel",
|
|
21
|
+
"onConfirm",
|
|
22
|
+
"onChange"
|
|
55
23
|
]
|
|
56
24
|
},
|
|
57
25
|
{
|
|
58
26
|
"name": "Appearance",
|
|
59
|
-
"props": ["size", "status", "fullHeight"]
|
|
27
|
+
"props": ["size", "status", "fullHeight", "portalClassName"]
|
|
60
28
|
}
|
|
61
29
|
],
|
|
62
30
|
"presets": [
|
|
63
|
-
{
|
|
64
|
-
"name": "Default",
|
|
65
|
-
"props": {
|
|
66
|
-
"size": "md",
|
|
67
|
-
"title": "Header Title is the Title Prop",
|
|
68
|
-
"text": "Hello Body Text, Nice to meet ya.",
|
|
69
|
-
"cancelButton": "Cancel Button",
|
|
70
|
-
"confirmButton": "Okay"
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
31
|
{
|
|
74
32
|
"name": "Small",
|
|
75
33
|
"props": {
|
|
76
34
|
"size": "sm",
|
|
35
|
+
"opened": true,
|
|
77
36
|
"title": "Small dialog",
|
|
78
37
|
"text": "Narrow width for short confirmations and alerts."
|
|
79
38
|
}
|
|
80
39
|
},
|
|
40
|
+
{
|
|
41
|
+
"name": "Medium",
|
|
42
|
+
"props": {
|
|
43
|
+
"size": "md",
|
|
44
|
+
"opened": true,
|
|
45
|
+
"title": "Medium dialog",
|
|
46
|
+
"text": "Default size for most forms and standard content."
|
|
47
|
+
}
|
|
48
|
+
},
|
|
81
49
|
{
|
|
82
50
|
"name": "Large",
|
|
83
51
|
"props": {
|
|
84
52
|
"size": "lg",
|
|
53
|
+
"opened": true,
|
|
85
54
|
"title": "Large dialog",
|
|
86
55
|
"text": "Wider layout for dense content or two-column layouts."
|
|
87
56
|
}
|
|
88
57
|
},
|
|
89
|
-
|
|
90
|
-
"name": "
|
|
58
|
+
{
|
|
59
|
+
"name": "Extra large",
|
|
91
60
|
"props": {
|
|
92
|
-
"size": "
|
|
93
|
-
"
|
|
94
|
-
"title": "
|
|
95
|
-
"text": "
|
|
61
|
+
"size": "xl",
|
|
62
|
+
"opened": true,
|
|
63
|
+
"title": "Extra large dialog",
|
|
64
|
+
"text": "Maximum width before full-screen patterns."
|
|
96
65
|
}
|
|
97
66
|
},
|
|
98
67
|
{
|
|
99
|
-
"name": "
|
|
100
|
-
"structureMode": "subcomponents",
|
|
68
|
+
"name": "Content width",
|
|
101
69
|
"props": {
|
|
102
|
-
"size": "
|
|
103
|
-
|
|
104
|
-
|
|
70
|
+
"size": "content",
|
|
71
|
+
"opened": true,
|
|
72
|
+
"title": "Content-sized dialog",
|
|
73
|
+
"text": "Width follows the content instead of fixed breakpoints."
|
|
74
|
+
}
|
|
105
75
|
},
|
|
106
76
|
{
|
|
107
|
-
"name": "
|
|
108
|
-
"structureMode": "subcomponents",
|
|
77
|
+
"name": "Status size",
|
|
109
78
|
"props": {
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
|
|
113
|
-
|
|
79
|
+
"size": "status_size",
|
|
80
|
+
"opened": true,
|
|
81
|
+
"status": "success",
|
|
82
|
+
"title": "Success",
|
|
83
|
+
"text": "Compact status layout for confirmations and feedback."
|
|
84
|
+
}
|
|
114
85
|
}
|
|
115
86
|
],
|
|
116
|
-
"conditionals": {
|
|
117
|
-
"title": { "structureMode": "simple" },
|
|
118
|
-
"text": { "structureMode": "simple" },
|
|
119
|
-
"cancelButton": { "structureMode": "simple" },
|
|
120
|
-
"confirmButton": { "structureMode": "simple" },
|
|
121
|
-
"onCancel": { "structureMode": "simple" },
|
|
122
|
-
"onClose": { "structureMode": "simple" },
|
|
123
|
-
"onConfirm": { "structureMode": "simple" },
|
|
124
|
-
"opened": { "structureMode": "simple" }
|
|
125
|
-
},
|
|
87
|
+
"conditionals": {},
|
|
126
88
|
"hints": {
|
|
127
89
|
"status_dialog": {
|
|
128
90
|
"when": { "status": "success" },
|
|
129
91
|
"message": "Status dialogs show an icon, title, and body copy in a centered layout.",
|
|
130
92
|
"type": "info"
|
|
131
|
-
},
|
|
132
|
-
"compound_components_info": {
|
|
133
|
-
"presetName": "Compound components",
|
|
134
|
-
"message": "Use Compound Components when you need custom header, body, or footer content instead of the simple title/text/button props API.",
|
|
135
|
-
"type": "info"
|
|
136
|
-
},
|
|
137
|
-
"full_height_info": {
|
|
138
|
-
"presetName": "Full height compound",
|
|
139
|
-
"message": "fullHeight is most useful with the compound structure when the dialog contains richer or scrollable content.",
|
|
140
|
-
"type": "info"
|
|
141
93
|
}
|
|
142
94
|
}
|
|
143
95
|
}
|
|
@@ -2,82 +2,24 @@
|
|
|
2
2
|
"template": "<DistributionBar{{props}} />",
|
|
3
3
|
"propTargets": {},
|
|
4
4
|
"defaults": {
|
|
5
|
-
"size": "lg"
|
|
6
|
-
"colors": [
|
|
7
|
-
"data_7",
|
|
8
|
-
"data_1",
|
|
9
|
-
"neutral"
|
|
10
|
-
]
|
|
5
|
+
"size": "lg"
|
|
11
6
|
},
|
|
12
7
|
"groups": [
|
|
13
8
|
{
|
|
14
|
-
"name": "
|
|
9
|
+
"name": "Props",
|
|
15
10
|
"props": [
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"name": "Appearance",
|
|
22
|
-
"props": [
|
|
23
|
-
"size"
|
|
11
|
+
"colors",
|
|
12
|
+
"size",
|
|
13
|
+
"widths"
|
|
24
14
|
]
|
|
25
15
|
}
|
|
26
16
|
],
|
|
27
17
|
"presets": [
|
|
28
18
|
{
|
|
29
19
|
"name": "Default",
|
|
30
|
-
"props": {
|
|
31
|
-
"widths": [
|
|
32
|
-
1,
|
|
33
|
-
2,
|
|
34
|
-
3,
|
|
35
|
-
4,
|
|
36
|
-
5,
|
|
37
|
-
3,
|
|
38
|
-
3,
|
|
39
|
-
7
|
|
40
|
-
]
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"name": "Small",
|
|
45
|
-
"props": {
|
|
46
|
-
"widths": [
|
|
47
|
-
1,
|
|
48
|
-
2,
|
|
49
|
-
3,
|
|
50
|
-
4,
|
|
51
|
-
5,
|
|
52
|
-
3,
|
|
53
|
-
3,
|
|
54
|
-
7
|
|
55
|
-
],
|
|
56
|
-
"size": "sm"
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"name": "Custom colors",
|
|
61
|
-
"props": {
|
|
62
|
-
"colors": [
|
|
63
|
-
"data_7",
|
|
64
|
-
"data_1",
|
|
65
|
-
"neutral"
|
|
66
|
-
],
|
|
67
|
-
"widths": [
|
|
68
|
-
4,
|
|
69
|
-
5,
|
|
70
|
-
3
|
|
71
|
-
]
|
|
72
|
-
}
|
|
20
|
+
"props": {}
|
|
73
21
|
}
|
|
74
22
|
],
|
|
75
23
|
"conditionals": {},
|
|
76
|
-
"hints": {
|
|
77
|
-
"custom_colors": {
|
|
78
|
-
"presetName": "Custom colors",
|
|
79
|
-
"message": "Use the colors prop to change the colors of the distribution bar. Currently only the data and status colors will work for DistributionBar.",
|
|
80
|
-
"type": "info"
|
|
81
|
-
}
|
|
82
|
-
}
|
|
24
|
+
"hints": {}
|
|
83
25
|
}
|
|
@@ -26,24 +26,6 @@ const DropdownWithConstrainHeight = (props) => {
|
|
|
26
26
|
options={options}
|
|
27
27
|
{...props}
|
|
28
28
|
/>
|
|
29
|
-
|
|
30
|
-
<br />
|
|
31
|
-
|
|
32
|
-
<Dropdown
|
|
33
|
-
label="Subcomponent With Constrain Height"
|
|
34
|
-
options={options}
|
|
35
|
-
{...props}
|
|
36
|
-
>
|
|
37
|
-
<Dropdown.Trigger />
|
|
38
|
-
<Dropdown.Container constrainHeight>
|
|
39
|
-
{options.map((option) => (
|
|
40
|
-
<Dropdown.Option
|
|
41
|
-
key={option.id}
|
|
42
|
-
option={option}
|
|
43
|
-
/>
|
|
44
|
-
))}
|
|
45
|
-
</Dropdown.Container>
|
|
46
|
-
</Dropdown>
|
|
47
29
|
</>
|
|
48
30
|
)
|
|
49
31
|
}
|
|
@@ -18,14 +18,3 @@
|
|
|
18
18
|
constrain_height: true,
|
|
19
19
|
label: "With Constrain Height"
|
|
20
20
|
}) %>
|
|
21
|
-
|
|
22
|
-
<br>
|
|
23
|
-
|
|
24
|
-
<%= pb_rails("dropdown", props: {options: options, label: "Subcomponent With Constrain Height"}) do %>
|
|
25
|
-
<%= pb_rails("dropdown/dropdown_trigger") %>
|
|
26
|
-
<%= pb_rails("dropdown/dropdown_container", props: { constrain_height: true }) do %>
|
|
27
|
-
<% options.each do |option| %>
|
|
28
|
-
<%= pb_rails("dropdown/dropdown_option", props: {option: option}) %>
|
|
29
|
-
<% end %>
|
|
30
|
-
<% end %>
|
|
31
|
-
<% end %>
|