playbook_ui_docs 14.13.0.pre.alpha.play1852reacthookformsupportradio6213 → 14.13.0.pre.alpha.play1884progresspill6064
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.html.erb +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_rails.md +1 -3
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_react.md +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -2
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions.html.erb +19 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions.jsx +26 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_default.html.erb +10 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_default.jsx +17 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_on_click.jsx +19 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_onclick.html.erb +16 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement.html.erb +35 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement.jsx +42 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_tooltip.html.erb +13 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/example.yml +15 -0
- data/app/pb_kits/playbook/pb_avatar_action_button/docs/index.js +4 -0
- data/app/pb_kits/playbook/pb_bar_graph/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_bar_graph/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_checkbox/docs/example.yml +1 -2
- data/app/pb_kits/playbook/pb_checkbox/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table.html.erb +2 -2
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table.md +1 -4
- data/app/pb_kits/playbook/pb_draggable/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_draggable/docs/index.js +1 -2
- data/app/pb_kits/playbook/pb_overlay/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_overlay/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_progress_pills/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_progress_pills/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_radio/docs/example.yml +1 -2
- data/app/pb_kits/playbook/pb_radio/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible.jsx +1 -1
- data/app/pb_kits/playbook/pb_table/docs/example.yml +1 -4
- data/app/pb_kits/playbook/pb_table/docs/index.js +1 -2
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_mask.html.erb +0 -14
- data/dist/playbook-doc.js +1 -1
- metadata +14 -25
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_custom_cell.jsx +0 -75
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header.html.erb +0 -33
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_rails.md +0 -3
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.jsx +0 -64
- data/app/pb_kits/playbook/pb_bar_graph/docs/_bar_graph_pb_styles.md +0 -1
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_react_hook.jsx +0 -69
- data/app/pb_kits/playbook/pb_checkbox/docs/_checkbox_react_hook.md +0 -1
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table_react.jsx +0 -90
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_table_react.md +0 -5
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_vertical_dynamic_multi_directional.jsx +0 -37
- data/app/pb_kits/playbook/pb_overlay/docs/_overlay_vertical_dynamic_multi_directional_react.md +0 -1
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_full_width.html.erb +0 -1
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_full_width.jsx +0 -18
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_full_width_rails.md +0 -1
- data/app/pb_kits/playbook/pb_progress_pills/docs/_progress_pills_full_width_react.md +0 -1
- data/app/pb_kits/playbook/pb_radio/docs/_radio_react_hook.jsx +0 -60
- data/app/pb_kits/playbook/pb_radio/docs/_radio_react_hook.md +0 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click.html.erb +0 -51
- data/app/pb_kits/playbook/pb_table/docs/_table_with_collapsible_with_custom_click_rails.md +0 -2
- data/app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.html.erb +0 -96
- data/app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.jsx +0 -101
- data/app/pb_kits/playbook/pb_table/docs/_table_with_selectable_rows.md +0 -1
- /data/app/pb_kits/playbook/pb_table/docs/{_table_with_collapsible_with_custom_click_react.md → _table_with_collapsible_with_custom_click.md} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c83f0eacac679528c2c2b5b8d0ad2d4d6eb2582a2ec60d33256bd3874d2eb26
|
4
|
+
data.tar.gz: 29c3865d4cf0e46f7ab0e48ea00c5657aa1c1358caef530dccad9d810d63bfc7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b7b52717bc8fbdc2cff62d3f936c2c73d6d5f94c8577674eecaf53f14a449a8ddc160367c7e925110191e0d36526052ec13319d31f2debb75b069e848268cb6
|
7
|
+
data.tar.gz: 75b97ba73ec196d36ddb7a1ea38311618d630ecb829c23702d2c8a02148162c378ca44009dce3cfdd493f1e1e1885b6bb61fcf714eabc7096aa4045998dd2dab
|
@@ -30,4 +30,4 @@
|
|
30
30
|
}
|
31
31
|
] %>
|
32
32
|
|
33
|
-
<%= pb_rails("advanced_table", props: { id: "table_props_table", table_data: @table_data, column_definitions: column_definitions,
|
33
|
+
<%= pb_rails("advanced_table", props: { id: "table_props_table", table_data: @table_data, column_definitions: column_definitions, table_props: { container: false, sticky: true }}) %>
|
@@ -1,3 +1 @@
|
|
1
|
-
This kit uses the [Table kit](https://playbook.powerapp.cloud/kits/table) under the hood which comes with
|
2
|
-
|
3
|
-
This doc example showcases how to set a sticky header for a nonresponsive table. To achieve sticky header AND responsive functionality, see the ["Table Props Sticky Header"](https://playbook.powerapp.cloud/kits/advanced_table#table-props-sticky-header) doc example below.
|
1
|
+
This kit uses the [Table kit](https://playbook.powerapp.cloud/kits/table) under the hood which comes with it's own set of props. If you want to apply certain Table props to that underlying kit, you can do so by using the optional `table_props` prop. This prop must be an object that contains valid Table props. For a full list of Table props, see [here](https://playbook.powerapp.cloud/kits/table).
|
@@ -1,3 +1,3 @@
|
|
1
|
-
This kit uses the [Table kit](https://playbook.powerapp.cloud/kits/table/react) under the hood which comes with
|
1
|
+
This kit uses the [Table kit](https://playbook.powerapp.cloud/kits/table/react) under the hood which comes with it's own set of props. If you want to apply certain Table props to that underlying kit, you can do so by using the optional `tableProps` prop. This prop must be an object that contains valid Table props. For a full list of Table props, see [here](https://playbook.powerapp.cloud/kits/table/react).
|
2
2
|
|
3
3
|
This doc example showcases how to set a sticky header for a nonresponsive table. To achieve sticky header AND responsive functionality, see the ["Table Props Sticky Header"](https://playbook.powerapp.cloud/kits/advanced_table/react#table-props-sticky-header) doc example below.
|
@@ -5,7 +5,6 @@ examples:
|
|
5
5
|
- advanced_table_beta_subrow_headers: SubRow Headers
|
6
6
|
- advanced_table_collapsible_trail_rails: Collapsible Trail
|
7
7
|
- advanced_table_table_props: Table Props
|
8
|
-
- advanced_table_table_props_sticky_header: Table Props Sticky Header
|
9
8
|
- advanced_table_beta_sort: Enable Sorting
|
10
9
|
- advanced_table_responsive: Responsive Tables
|
11
10
|
- advanced_table_custom_cell_rails: Custom Components for Cells
|
@@ -31,7 +30,6 @@ examples:
|
|
31
30
|
- advanced_table_pagination_with_props: Pagination Props
|
32
31
|
- advanced_table_column_headers: Multi-Header Columns
|
33
32
|
- advanced_table_column_headers_multiple: Multi-Header Columns (Multiple Levels)
|
34
|
-
- advanced_table_column_headers_custom_cell: Multi-Header Columns with Custom Cells
|
35
33
|
# - advanced_table_no_subrows: Table with No Subrows
|
36
34
|
- advanced_table_selectable_rows: Selectable Rows
|
37
35
|
- advanced_table_selectable_rows_no_subrows: Selectable Rows (No Subrows)
|
@@ -19,5 +19,4 @@ export { default as AdvancedTableSelectableRowsNoSubrows } from './_advanced_tab
|
|
19
19
|
export { default as AdvancedTableNoSubrows } from './_advanced_table_no_subrows.jsx'
|
20
20
|
export { default as AdvancedTableSelectableRowsHeader } from './_advanced_table_selectable_rows_header.jsx'
|
21
21
|
export { default as AdvancedTableSelectableRowsActions } from './_advanced_table_selectable_rows_actions.jsx'
|
22
|
-
export { default as AdvancedTableTablePropsStickyHeader } from './_advanced_table_table_props_sticky_header.jsx'
|
23
|
-
export { default as AdvancedTableColumnHeadersCustomCell } from './_advanced_table_column_headers_custom_cell.jsx'
|
22
|
+
export { default as AdvancedTableTablePropsStickyHeader } from './_advanced_table_table_props_sticky_header.jsx'
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<div class="pb--doc-demo-row">
|
2
|
+
|
3
|
+
<%= pb_rails("avatar_action_button", props: {
|
4
|
+
link_aria_label: "Add Sophia Carden",
|
5
|
+
name: "Sophia Carden",
|
6
|
+
image_alt: "Add Sophia Carden",
|
7
|
+
image_url: "https://randomuser.me/api/portraits/women/8.jpg",
|
8
|
+
action: "add",
|
9
|
+
}) %>
|
10
|
+
|
11
|
+
<%= pb_rails("avatar_action_button", props: {
|
12
|
+
link_aria_label: "Remove Sophia Carden",
|
13
|
+
name: "Sophia Carden",
|
14
|
+
image_alt: "Remove Sophia Carden",
|
15
|
+
image_url: "https://randomuser.me/api/portraits/women/8.jpg",
|
16
|
+
action: "remove",
|
17
|
+
}) %>
|
18
|
+
|
19
|
+
</div>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
|
3
|
+
import AvatarActionButton from '../_avatar_action_button'
|
4
|
+
|
5
|
+
const AvatarActionButtonActions = (props) => (
|
6
|
+
<div className="pb--doc-demo-row">
|
7
|
+
<AvatarActionButton
|
8
|
+
action="add"
|
9
|
+
imageAlt="Add Sophia Carden"
|
10
|
+
imageUrl="https://randomuser.me/api/portraits/women/8.jpg"
|
11
|
+
linkAriaLabel="Add Sophia Carden"
|
12
|
+
name="Sophia Carden"
|
13
|
+
{...props}
|
14
|
+
/>
|
15
|
+
<AvatarActionButton
|
16
|
+
action="remove"
|
17
|
+
imageAlt="Remove Sophia Carden"
|
18
|
+
imageUrl="https://randomuser.me/api/portraits/women/8.jpg"
|
19
|
+
linkAriaLabel="Remove Sophia Carden"
|
20
|
+
name="Sophia Carden"
|
21
|
+
{...props}
|
22
|
+
/>
|
23
|
+
</div>
|
24
|
+
)
|
25
|
+
|
26
|
+
export default AvatarActionButtonActions
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
|
3
|
+
import AvatarActionButton from '../_avatar_action_button'
|
4
|
+
|
5
|
+
const AvatarActionButtonDefault = (props) => (
|
6
|
+
<div className="pb--doc-demo-row">
|
7
|
+
<AvatarActionButton
|
8
|
+
imageAlt="Sophia Carden"
|
9
|
+
imageUrl="https://randomuser.me/api/portraits/women/8.jpg"
|
10
|
+
linkAriaLabel="Sophia Carden"
|
11
|
+
name="Sophia Carden"
|
12
|
+
{...props}
|
13
|
+
/>
|
14
|
+
</div>
|
15
|
+
)
|
16
|
+
|
17
|
+
export default AvatarActionButtonDefault
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
|
3
|
+
import AvatarActionButton from '../_avatar_action_button'
|
4
|
+
|
5
|
+
const AvatarActionButtonOnClick = (props) => (
|
6
|
+
<div className="pb--doc-demo-row">
|
7
|
+
<AvatarActionButton
|
8
|
+
imageAlt="Sophia Carden"
|
9
|
+
imageUrl="https://randomuser.me/api/portraits/women/8.jpg"
|
10
|
+
linkAriaLabel="Alert Sophia Carden"
|
11
|
+
linkUrl="https://www.google.com"
|
12
|
+
name="Sophia Carden"
|
13
|
+
onClick={() => alert('clicked!')}
|
14
|
+
{...props}
|
15
|
+
/>
|
16
|
+
</div>
|
17
|
+
)
|
18
|
+
|
19
|
+
export default AvatarActionButtonOnClick
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<div class="pb--doc-demo-row">
|
2
|
+
|
3
|
+
<%= pb_rails("avatar_action_button", props: {
|
4
|
+
link_aria_label: "Alert Sophia Carden",
|
5
|
+
name: "Sophia Carden",
|
6
|
+
id: "clickable",
|
7
|
+
link_url: "http://www.google.com",
|
8
|
+
image_alt: "Sophia Carden",
|
9
|
+
image_url: "https://randomuser.me/api/portraits/women/8.jpg",
|
10
|
+
}) %>
|
11
|
+
|
12
|
+
<%= javascript_tag do %>
|
13
|
+
document.querySelector('#clickable').addEventListener('click', () => alert('clickable clicked!'))
|
14
|
+
<% end %>
|
15
|
+
|
16
|
+
</div>
|
data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement.html.erb
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
<div class="pb--doc-demo-row">
|
2
|
+
|
3
|
+
<%= pb_rails("avatar_action_button", props: {
|
4
|
+
link_aria_label: "Sophia Carden",
|
5
|
+
name: "Sophia Carden",
|
6
|
+
image_alt: "Sophia Carden",
|
7
|
+
image_url: "https://randomuser.me/api/portraits/women/8.jpg",
|
8
|
+
placement: "bottom_left"
|
9
|
+
}) %>
|
10
|
+
|
11
|
+
<%= pb_rails("avatar_action_button", props: {
|
12
|
+
link_aria_label: "Sophia Carden",
|
13
|
+
name: "Sophia Carden",
|
14
|
+
image_alt: "Sophia Carden",
|
15
|
+
image_url: "https://randomuser.me/api/portraits/women/8.jpg",
|
16
|
+
placement: "bottom_right"
|
17
|
+
}) %>
|
18
|
+
|
19
|
+
<%= pb_rails("avatar_action_button", props: {
|
20
|
+
link_aria_label: "Sophia Carden",
|
21
|
+
name: "Sophia Carden",
|
22
|
+
image_alt: "Sophia Carden",
|
23
|
+
image_url: "https://randomuser.me/api/portraits/women/8.jpg",
|
24
|
+
placement: "top_left"
|
25
|
+
}) %>
|
26
|
+
|
27
|
+
<%= pb_rails("avatar_action_button", props: {
|
28
|
+
link_aria_label: "Sophia Carden",
|
29
|
+
name: "Sophia Carden",
|
30
|
+
image_alt: "Sophia Carden",
|
31
|
+
image_url: "https://randomuser.me/api/portraits/women/8.jpg",
|
32
|
+
placement: "top_right"
|
33
|
+
}) %>
|
34
|
+
|
35
|
+
</div>
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import React from 'react'
|
2
|
+
|
3
|
+
import AvatarActionButton from '../_avatar_action_button'
|
4
|
+
|
5
|
+
const AvatarActionButtonPlacement = (props) => (
|
6
|
+
<div className="pb--doc-demo-row">
|
7
|
+
<AvatarActionButton
|
8
|
+
imageAlt="Sophia Carden"
|
9
|
+
imageUrl="https://randomuser.me/api/portraits/women/8.jpg"
|
10
|
+
linkAriaLabel="Sophia Carden"
|
11
|
+
name="Sophia Carden"
|
12
|
+
placement="bottom_left"
|
13
|
+
{...props}
|
14
|
+
/>
|
15
|
+
<AvatarActionButton
|
16
|
+
imageAlt="Sophia Carden"
|
17
|
+
imageUrl="https://randomuser.me/api/portraits/women/8.jpg"
|
18
|
+
linkAriaLabel="Sophia Carden"
|
19
|
+
name="Sophia Carden"
|
20
|
+
placement="bottom_right"
|
21
|
+
{...props}
|
22
|
+
/>
|
23
|
+
<AvatarActionButton
|
24
|
+
imageAlt="Sophia Carden"
|
25
|
+
imageUrl="https://randomuser.me/api/portraits/women/8.jpg"
|
26
|
+
linkAriaLabel="Sophia Carden"
|
27
|
+
name="Sophia Carden"
|
28
|
+
placement="top_left"
|
29
|
+
{...props}
|
30
|
+
/>
|
31
|
+
<AvatarActionButton
|
32
|
+
imageAlt="Sophia Carden"
|
33
|
+
imageUrl="https://randomuser.me/api/portraits/women/8.jpg"
|
34
|
+
linkAriaLabel="Sophia Carden"
|
35
|
+
name="Sophia Carden"
|
36
|
+
placement="top_right"
|
37
|
+
{...props}
|
38
|
+
/>
|
39
|
+
</div>
|
40
|
+
)
|
41
|
+
|
42
|
+
export default AvatarActionButtonPlacement
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<div class="pb--doc-demo-row">
|
2
|
+
|
3
|
+
<%= pb_rails("avatar_action_button", props: {
|
4
|
+
link_aria_label: "Sophia Carden",
|
5
|
+
name: "Sophia Carden",
|
6
|
+
link_url: "http://www.google.com",
|
7
|
+
image_alt: "Sophia Carden",
|
8
|
+
image_url: "https://randomuser.me/api/portraits/women/8.jpg",
|
9
|
+
tooltip_text: "Tooltip Text",
|
10
|
+
tooltip_id: "avatar_1",
|
11
|
+
}) %>
|
12
|
+
|
13
|
+
</div>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
examples:
|
2
|
+
|
3
|
+
rails:
|
4
|
+
- avatar_action_button_default: Default
|
5
|
+
- avatar_action_button_placement: Placement
|
6
|
+
- avatar_action_button_actions: Actions
|
7
|
+
- avatar_action_button_onclick: On Click
|
8
|
+
- avatar_action_button_tooltip: Tooltip
|
9
|
+
|
10
|
+
|
11
|
+
react:
|
12
|
+
- avatar_action_button_default: Default
|
13
|
+
- avatar_action_button_placement: Placement
|
14
|
+
- avatar_action_button_actions: Actions
|
15
|
+
- avatar_action_button_on_click: On Click
|
@@ -0,0 +1,4 @@
|
|
1
|
+
export { default as AvatarActionButtonDefault } from './_avatar_action_button_default.jsx'
|
2
|
+
export { default as AvatarActionButtonPlacement } from './_avatar_action_button_placement.jsx'
|
3
|
+
export { default as AvatarActionButtonActions } from './_avatar_action_button_actions.jsx'
|
4
|
+
export { default as AvatarActionButtonOnClick } from './_avatar_action_button_on_click.jsx'
|
@@ -10,4 +10,3 @@ export { default as BarGraphStacked } from './_bar_graph_stacked.jsx'
|
|
10
10
|
export { default as BarGraphNegativeNumbers } from './_bar_graph_negative_numbers.jsx'
|
11
11
|
export { default as BarGraphSecondaryYAxis } from './_bar_graph_secondary_y_axis.jsx'
|
12
12
|
export { default as BarGraphHorizontal } from './_bar_graph_horizontal.jsx'
|
13
|
-
export { default as BarGraphPbStyles } from './_bar_graph_pb_styles.jsx'
|
@@ -11,7 +11,6 @@ examples:
|
|
11
11
|
react:
|
12
12
|
- checkbox_default: Default
|
13
13
|
- checkbox_checked: Load as checked
|
14
|
-
- checkbox_react_hook: React Hook Form
|
15
14
|
- checkbox_custom: Custom Checkbox
|
16
15
|
- checkbox_error: Default w/ Error
|
17
16
|
- checkbox_indeterminate: Indeterminate Checkbox
|
@@ -22,4 +21,4 @@ examples:
|
|
22
21
|
- checkbox_error_swift: Default w/ Error
|
23
22
|
- checkbox_indeterminate_swift: Indeterminate Checkbox
|
24
23
|
- checkbox_props_swift: ""
|
25
|
-
|
24
|
+
|
@@ -1,6 +1,5 @@
|
|
1
1
|
export { default as CheckboxDefault } from './_checkbox_default.jsx'
|
2
2
|
export { default as CheckboxCustom } from './_checkbox_custom.jsx'
|
3
|
-
export { default as CheckboxReactHook } from './_checkbox_react_hook.jsx'
|
4
3
|
export { default as CheckboxError } from './_checkbox_error.jsx'
|
5
4
|
export { default as CheckboxChecked } from './_checkbox_checked.jsx'
|
6
5
|
export { default as CheckboxIndeterminate } from './_checkbox_indeterminate.jsx'
|
@@ -43,9 +43,9 @@
|
|
43
43
|
<% end %>
|
44
44
|
<% end %>
|
45
45
|
|
46
|
-
<%= pb_rails("
|
46
|
+
<%= pb_rails("draggable/draggable_container", props: {tag:"tbody"}) do %>
|
47
47
|
<% initial_items.each do |item| %>
|
48
|
-
<%= pb_rails("
|
48
|
+
<%= pb_rails("draggable/draggable_item", props:{drag_id: item[:id], tag:"tr"}) do %>
|
49
49
|
<%= pb_rails("table/table_cell", props: { text: item[:id]}) %>
|
50
50
|
<%= pb_rails("table/table_cell") do %>
|
51
51
|
<%= pb_rails("flex", props:{align:"center"}) do %>
|
@@ -1,4 +1 @@
|
|
1
|
-
The draggable kit can also be used in conjunction with the table kit to create draggable table rows. To do this
|
2
|
-
|
3
|
-
- use the `draggable_container` prop on the table/table_body to designate it as the Draggable Container
|
4
|
-
- use the `draggable_item` prop on the table/table_row to designate it as the Draggable Item. Make sure to also pass id to the `drag_id` prop here.
|
1
|
+
The draggable kit can also be used in conjunction with the table kit to create draggable table rows. To do this, make use of the `tag` prop on the draggable_container to set it to 'tbody' and the same prop on the draggable_item to set that to 'tr'. This will create the functionality seen here.
|
@@ -4,9 +4,7 @@ examples:
|
|
4
4
|
- draggable_with_list: Draggable with List Kit
|
5
5
|
- draggable_with_selectable_list: Draggable with SelectableList Kit
|
6
6
|
- draggable_with_cards: Draggable with Cards
|
7
|
-
- draggable_with_table_react: Draggable with Table
|
8
7
|
- draggable_multiple_containers: Dragging Across Multiple Containers
|
9
|
-
|
10
8
|
rails:
|
11
9
|
- draggable_default_rails: Default
|
12
10
|
- draggable_with_list_rails: Draggable with List Kit
|
@@ -2,5 +2,4 @@ export { default as DraggableDefault } from './_draggable_default.jsx'
|
|
2
2
|
export { default as DraggableWithCards } from './_draggable_with_cards.jsx'
|
3
3
|
export { default as DraggableWithList } from './_draggable_with_list.jsx'
|
4
4
|
export { default as DraggableWithSelectableList } from './_draggable_with_selectable_list.jsx'
|
5
|
-
export { default as DraggableMultipleContainers } from './_draggable_multiple_containers.jsx'
|
6
|
-
export { default as DraggableWithTableReact } from './_draggable_with_table_react.jsx'
|
5
|
+
export { default as DraggableMultipleContainers } from './_draggable_multiple_containers.jsx'
|
@@ -1,4 +1,3 @@
|
|
1
1
|
export { default as OverlayDefault } from './_overlay_default.jsx'
|
2
2
|
export { default as OverlayMultiDirectional } from './_overlay_multi_directional.jsx'
|
3
3
|
export { default as OverlayToggle } from './_overlay_toggle.jsx'
|
4
|
-
export { default as OverlayVerticalDynamicMultiDirectional } from './_overlay_vertical_dynamic_multi_directional.jsx'
|
@@ -3,11 +3,9 @@ examples:
|
|
3
3
|
rails:
|
4
4
|
- progress_pills_default: Default
|
5
5
|
- progress_pills_status: Status
|
6
|
-
- progress_pills_full_width: Full Container Width
|
7
6
|
|
8
7
|
|
9
8
|
|
10
9
|
react:
|
11
10
|
- progress_pills_default: Default
|
12
11
|
- progress_pills_status: Status
|
13
|
-
- progress_pills_full_width: Full Container Width
|
@@ -16,7 +16,6 @@ examples:
|
|
16
16
|
- radio_alignment: Alignment
|
17
17
|
- radio_disabled: Disabled
|
18
18
|
- radio_custom_children: Custom Children
|
19
|
-
- radio_react_hook: React Hook Form
|
20
19
|
|
21
20
|
swift:
|
22
21
|
- radio_default_swift: Default
|
@@ -27,4 +26,4 @@ examples:
|
|
27
26
|
- radio_spacing_swift: Spacing
|
28
27
|
- radio_padding_swift: Padding
|
29
28
|
- radio_subtitle_swift: Subtitle
|
30
|
-
- radio_props_swift: ""
|
29
|
+
- radio_props_swift: ""
|
@@ -4,4 +4,3 @@ export { default as RadioError } from './_radio_error.jsx'
|
|
4
4
|
export { default as RadioAlignment } from './_radio_alignment.jsx'
|
5
5
|
export { default as RadioDisabled } from './_radio_disabled.jsx'
|
6
6
|
export { default as RadioCustomChildren } from './_radio_custom_children.jsx'
|
7
|
-
export { default as RadioReactHook } from './_radio_react_hook.jsx'
|
@@ -31,12 +31,10 @@ examples:
|
|
31
31
|
- table_with_subcomponents_as_divs: Table with Sub Components (Divs)
|
32
32
|
- table_outer_padding: Outer Padding
|
33
33
|
- table_with_collapsible: Table with Collapsible
|
34
|
-
- table_with_collapsible_with_custom_click: Table with Collapsible with Custom Click
|
35
34
|
- table_with_collapsible_with_custom_content_rails: Table with Collapsible with Custom Content
|
36
35
|
- table_with_collapsible_with_nested_rows_rails: Table with Collapsible with Nested Rows
|
37
36
|
- table_with_collapsible_with_nested_table_rails: Table with Collapsible with Nested Table
|
38
37
|
- table_with_clickable_rows: Table with Clickable Rows
|
39
|
-
- table_with_selectable_rows: Table with Selectable Rows
|
40
38
|
|
41
39
|
react:
|
42
40
|
- table_sm: Small
|
@@ -73,5 +71,4 @@ examples:
|
|
73
71
|
- table_with_collapsible_with_custom_content: Table with Collapsible with Custom Content
|
74
72
|
- table_with_collapsible_with_nested_rows: Table with Collapsible with Nested Rows
|
75
73
|
- table_with_collapsible_with_nested_table: Table with Collapsible with Nested Table
|
76
|
-
- table_with_clickable_rows: Table with Clickable Rows
|
77
|
-
- table_with_selectable_rows: Table with Selectable Rows
|
74
|
+
- table_with_clickable_rows: Table with Clickable Rows
|
@@ -33,5 +33,4 @@ export { default as TableWithCollapsibleWithCustomContent } from './_table_with_
|
|
33
33
|
export { default as TableWithCollapsibleWithNestedTable } from './_table_with_collapsible_with_nested_table.jsx'
|
34
34
|
export { default as TableWithCollapsibleWithNestedRows } from './_table_with_collapsible_with_nested_rows.jsx'
|
35
35
|
export { default as TableWithCollapsibleWithCustomClick } from './_table_with_collapsible_with_custom_click.jsx'
|
36
|
-
export { default as
|
37
|
-
export { default as TableWithClickableRows } from './_table_with_clickable_rows.jsx'
|
36
|
+
export { default as TableWithClickableRows } from './_table_with_clickable_rows.jsx'
|
@@ -27,20 +27,6 @@
|
|
27
27
|
placeholder: "123-45-6789"
|
28
28
|
}) %>
|
29
29
|
|
30
|
-
<%= pb_rails("text_input", props: {
|
31
|
-
label: "Credit Card",
|
32
|
-
mask: "credit_card",
|
33
|
-
margin_bottom: "md",
|
34
|
-
placeholder: "1234 5678 9012 3456"
|
35
|
-
}) %>
|
36
|
-
|
37
|
-
<%= pb_rails("text_input", props: {
|
38
|
-
label: "CVV",
|
39
|
-
mask: "cvv",
|
40
|
-
margin_bottom: "md",
|
41
|
-
placeholder: "123"
|
42
|
-
}) %>
|
43
|
-
|
44
30
|
<%= pb_rails("title" , props: {
|
45
31
|
text: "Hidden Input Under The Hood",
|
46
32
|
padding_bottom: "sm"
|