playbook_ui_docs 14.10.0.pre.alpha.play1465attempt25272 → 14.10.0.pre.alpha.play1662cssbargraph5193
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_beta_sort.html.erb +3 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +1 -4
- data/app/pb_kits/playbook/pb_card/docs/_card_header.html.erb +0 -18
- data/app/pb_kits/playbook/pb_card/docs/_card_header.jsx +0 -40
- data/app/pb_kits/playbook/pb_section_separator/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_section_separator/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_default.html.erb +1 -1
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_filter.jsx +2 -10
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_height_width.jsx +2 -6
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_user.jsx +3 -11
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/example.yml +2 -7
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.jsx +1 -1
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns_rails.md +0 -2
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns_react.md +1 -4
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_custom_menu_list.jsx +0 -2
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async.jsx +2 -4
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills_async_custom_options.jsx +5 -5
- data/dist/playbook-doc.js +1 -1
- metadata +4 -22
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.html.erb +0 -43
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_multiple.html.erb +0 -58
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_color.html.erb +0 -10
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_color.jsx +0 -42
- data/app/pb_kits/playbook/pb_section_separator/docs/_section_separator_color.md +0 -3
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_description.md +0 -3
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_border_radius.html.erb +0 -9
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_border_radius_rails.md +0 -1
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_color.html.erb +0 -7
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_filter.html.erb +0 -119
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_height_width.html.erb +0 -15
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_height_width_rails.md +0 -3
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_layout.html.erb +0 -3
- data/app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_user.html.erb +0 -63
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_columns.jsx +0 -88
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_columns_react.md +0 -3
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns.jsx +0 -87
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns_react.md +0 -5
- /data/app/pb_kits/playbook/pb_skeleton_loading/docs/{_skeleton_loading_border_radius_react.md → _skeleton_loading_border_radius.md} +0 -0
- /data/app/pb_kits/playbook/pb_skeleton_loading/docs/{_skeleton_loading_height_width_react.md → _skeleton_loading_height_width.md} +0 -0
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: playbook_ui_docs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 14.10.0.pre.alpha.
|
4
|
+
version: 14.10.0.pre.alpha.play1662cssbargraph5193
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Power UX
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2025-01-
|
12
|
+
date: 2025-01-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: playbook_ui
|
@@ -43,10 +43,8 @@ files:
|
|
43
43
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail.md
|
44
44
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail_rails.html.erb
|
45
45
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_collapsible_trail_rails.md
|
46
|
-
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.html.erb
|
47
46
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.jsx
|
48
47
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers.md
|
49
|
-
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_multiple.html.erb
|
50
48
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_multiple.jsx
|
51
49
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_multiple.md
|
52
50
|
- app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_custom_cell.jsx
|
@@ -1537,9 +1535,6 @@ files:
|
|
1537
1535
|
- app/pb_kits/playbook/pb_section_separator/docs/_section_separator_children.jsx
|
1538
1536
|
- app/pb_kits/playbook/pb_section_separator/docs/_section_separator_children.md
|
1539
1537
|
- app/pb_kits/playbook/pb_section_separator/docs/_section_separator_children_swift.md
|
1540
|
-
- app/pb_kits/playbook/pb_section_separator/docs/_section_separator_color.html.erb
|
1541
|
-
- app/pb_kits/playbook/pb_section_separator/docs/_section_separator_color.jsx
|
1542
|
-
- app/pb_kits/playbook/pb_section_separator/docs/_section_separator_color.md
|
1543
1538
|
- app/pb_kits/playbook/pb_section_separator/docs/_section_separator_dashed.html.erb
|
1544
1539
|
- app/pb_kits/playbook/pb_section_separator/docs/_section_separator_dashed.jsx
|
1545
1540
|
- app/pb_kits/playbook/pb_section_separator/docs/_section_separator_dashed_swift.md
|
@@ -1637,26 +1632,17 @@ files:
|
|
1637
1632
|
- app/pb_kits/playbook/pb_selectable_list/docs/_selectable_list_radio.jsx
|
1638
1633
|
- app/pb_kits/playbook/pb_selectable_list/docs/example.yml
|
1639
1634
|
- app/pb_kits/playbook/pb_selectable_list/docs/index.js
|
1640
|
-
- app/pb_kits/playbook/pb_skeleton_loading/docs/_description.md
|
1641
|
-
- app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_border_radius.html.erb
|
1642
1635
|
- app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_border_radius.jsx
|
1643
|
-
- app/pb_kits/playbook/pb_skeleton_loading/docs/
|
1644
|
-
- app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_border_radius_react.md
|
1645
|
-
- app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_color.html.erb
|
1636
|
+
- app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_border_radius.md
|
1646
1637
|
- app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_color.jsx
|
1647
1638
|
- app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_color.md
|
1648
1639
|
- app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_default.html.erb
|
1649
1640
|
- app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_default.jsx
|
1650
|
-
- app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_filter.html.erb
|
1651
1641
|
- app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_filter.jsx
|
1652
|
-
- app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_height_width.html.erb
|
1653
1642
|
- app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_height_width.jsx
|
1654
|
-
- app/pb_kits/playbook/pb_skeleton_loading/docs/
|
1655
|
-
- app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_height_width_react.md
|
1656
|
-
- app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_layout.html.erb
|
1643
|
+
- app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_height_width.md
|
1657
1644
|
- app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_layout.jsx
|
1658
1645
|
- app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_layout.md
|
1659
|
-
- app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_user.html.erb
|
1660
1646
|
- app/pb_kits/playbook/pb_skeleton_loading/docs/_skeleton_loading_user.jsx
|
1661
1647
|
- app/pb_kits/playbook/pb_skeleton_loading/docs/example.yml
|
1662
1648
|
- app/pb_kits/playbook/pb_skeleton_loading/docs/index.js
|
@@ -1769,14 +1755,10 @@ files:
|
|
1769
1755
|
- app/pb_kits/playbook/pb_table/docs/_table_sticky.html.erb
|
1770
1756
|
- app/pb_kits/playbook/pb_table/docs/_table_sticky.jsx
|
1771
1757
|
- app/pb_kits/playbook/pb_table/docs/_table_sticky.md
|
1772
|
-
- app/pb_kits/playbook/pb_table/docs/_table_sticky_columns.jsx
|
1773
|
-
- app/pb_kits/playbook/pb_table/docs/_table_sticky_columns_react.md
|
1774
1758
|
- app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.html.erb
|
1775
1759
|
- app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns.jsx
|
1776
1760
|
- app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns_rails.md
|
1777
1761
|
- app/pb_kits/playbook/pb_table/docs/_table_sticky_left_columns_react.md
|
1778
|
-
- app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns.jsx
|
1779
|
-
- app/pb_kits/playbook/pb_table/docs/_table_sticky_right_columns_react.md
|
1780
1762
|
- app/pb_kits/playbook/pb_table/docs/_table_striped.html.erb
|
1781
1763
|
- app/pb_kits/playbook/pb_table/docs/_table_striped.jsx
|
1782
1764
|
- app/pb_kits/playbook/pb_table/docs/_table_striped.md
|
@@ -1,43 +0,0 @@
|
|
1
|
-
<% column_definitions = [
|
2
|
-
{
|
3
|
-
accessor: "year",
|
4
|
-
label: "Year",
|
5
|
-
cellAccessors: ["quarter", "month", "day"],
|
6
|
-
},
|
7
|
-
{
|
8
|
-
label: "Enrollment Data",
|
9
|
-
columns: [
|
10
|
-
{
|
11
|
-
accessor: "newEnrollments",
|
12
|
-
label: "New Enrollments",
|
13
|
-
},
|
14
|
-
{
|
15
|
-
accessor: "scheduledMeetings",
|
16
|
-
label: "Scheduled Meetings",
|
17
|
-
},
|
18
|
-
],
|
19
|
-
},
|
20
|
-
{
|
21
|
-
label: "Performance Data",
|
22
|
-
columns: [
|
23
|
-
{
|
24
|
-
accessor: "attendanceRate",
|
25
|
-
label: "Attendance Rate",
|
26
|
-
},
|
27
|
-
{
|
28
|
-
accessor: "completedClasses",
|
29
|
-
label: "Completed Classes",
|
30
|
-
},
|
31
|
-
{
|
32
|
-
accessor: "classCompletionRate",
|
33
|
-
label: "Class Completion Rate",
|
34
|
-
},
|
35
|
-
{
|
36
|
-
accessor: "graduatedStudents",
|
37
|
-
label: "Graduated Students",
|
38
|
-
},
|
39
|
-
],
|
40
|
-
},
|
41
|
-
] %>
|
42
|
-
|
43
|
-
<%= pb_rails("advanced_table", props: { id: "beta_table_with_headers", table_data: @table_data, column_definitions: column_definitions }) %>
|
data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_headers_multiple.html.erb
DELETED
@@ -1,58 +0,0 @@
|
|
1
|
-
<% column_definitions = [
|
2
|
-
{
|
3
|
-
accessor: "year",
|
4
|
-
label: "Year",
|
5
|
-
cellAccessors: ["quarter", "month", "day"],
|
6
|
-
},
|
7
|
-
{
|
8
|
-
label: "Enrollment Data",
|
9
|
-
columns: [
|
10
|
-
{
|
11
|
-
label: "Enrollment Stats",
|
12
|
-
columns: [
|
13
|
-
{
|
14
|
-
accessor: "newEnrollments",
|
15
|
-
label: "New Enrollments",
|
16
|
-
},
|
17
|
-
{
|
18
|
-
accessor: "scheduledMeetings",
|
19
|
-
label: "Scheduled Meetings",
|
20
|
-
},
|
21
|
-
],
|
22
|
-
},
|
23
|
-
],
|
24
|
-
},
|
25
|
-
{
|
26
|
-
label: "Performance Data",
|
27
|
-
columns: [
|
28
|
-
{
|
29
|
-
label: "Completion Metrics",
|
30
|
-
columns: [
|
31
|
-
{
|
32
|
-
accessor: "completedClasses",
|
33
|
-
label: "Completed Classes",
|
34
|
-
},
|
35
|
-
{
|
36
|
-
accessor: "classCompletionRate",
|
37
|
-
label: "Class Completion Rate",
|
38
|
-
},
|
39
|
-
],
|
40
|
-
},
|
41
|
-
{
|
42
|
-
label: "Attendance",
|
43
|
-
columns: [
|
44
|
-
{
|
45
|
-
accessor: "attendanceRate",
|
46
|
-
label: "Attendance Rate",
|
47
|
-
},
|
48
|
-
{
|
49
|
-
accessor: "scheduledMeetings",
|
50
|
-
label: "Scheduled Meetings",
|
51
|
-
},
|
52
|
-
],
|
53
|
-
},
|
54
|
-
],
|
55
|
-
},
|
56
|
-
] %>
|
57
|
-
|
58
|
-
<%= pb_rails("advanced_table", props: { id: "beta_table_with_muilti_headers", table_data: @table_data, column_definitions: column_definitions }) %>
|
@@ -1,10 +0,0 @@
|
|
1
|
-
<%= pb_rails("section_separator", props: { text: "Default Separator" }) %>
|
2
|
-
<%= pb_rails("section_separator", props: { color: "primary", text: "Primary Separator" }) %>
|
3
|
-
<%= pb_rails("section_separator", props: { color: "primary", line_style: "dashed", text: "Primary Dashed Separator" }) %>
|
4
|
-
<%= pb_rails("section_separator", props: { color: "primary" }) do %>
|
5
|
-
<%= pb_rails("flex", props: { padding: "xs" }) do %>
|
6
|
-
<%= pb_rails("icon", props: { color: "primary", icon: "arrow-down" }) %>
|
7
|
-
<%= pb_rails("detail", props: { text: "Children", size: "sm", color: "link" }) %>
|
8
|
-
<% end %>
|
9
|
-
<% end %>
|
10
|
-
|
@@ -1,42 +0,0 @@
|
|
1
|
-
import React from "react"
|
2
|
-
import { SectionSeparator, Flex, Detail, Icon } from "playbook-ui"
|
3
|
-
|
4
|
-
const children = (
|
5
|
-
<Flex padding="xs">
|
6
|
-
<Icon color="primary"
|
7
|
-
icon="arrow-down"
|
8
|
-
/>
|
9
|
-
<Detail
|
10
|
-
color="link"
|
11
|
-
size="sm"
|
12
|
-
text="Children"
|
13
|
-
/>
|
14
|
-
</Flex>
|
15
|
-
)
|
16
|
-
|
17
|
-
const SectionSeparatorColor = (props) => {
|
18
|
-
return (
|
19
|
-
<div>
|
20
|
-
<SectionSeparator text="Default Separator"
|
21
|
-
{...props}
|
22
|
-
/>
|
23
|
-
<SectionSeparator color="primary"
|
24
|
-
text="Primary Separator"
|
25
|
-
{...props}
|
26
|
-
/>
|
27
|
-
<SectionSeparator
|
28
|
-
color="primary"
|
29
|
-
lineStyle="dashed"
|
30
|
-
text="Primary Dashed Separator"
|
31
|
-
{...props}
|
32
|
-
/>
|
33
|
-
<SectionSeparator color="primary"
|
34
|
-
{...props}
|
35
|
-
>
|
36
|
-
{children}
|
37
|
-
</SectionSeparator>
|
38
|
-
</div>
|
39
|
-
)
|
40
|
-
}
|
41
|
-
|
42
|
-
export default SectionSeparatorColor
|
@@ -1,3 +0,0 @@
|
|
1
|
-
Pass "primary" to the `color` prop to change any section separator color.
|
2
|
-
|
3
|
-
**NOTE:** Passing `children` overrides any content provided via the `text` prop. The `color` prop does not affect the `text` prop's color, and the color of `children` is determined by the children's individual props. For greater control over text color customization, consider using a separator with `children`.
|
@@ -1,3 +0,0 @@
|
|
1
|
-
The Skeleton Loading kit can be used an intermediate loading state to give users a visual indication that content is loading.
|
2
|
-
|
3
|
-
**Please Note**: this kit is not meant to be integrated interally within other Playbook kits as a loading prop; rather, it can be used to create a composite of the section/kit/page with loading intermediataries, as demonstrated in the the "example component" doc examples.
|
@@ -1,9 +0,0 @@
|
|
1
|
-
<%= pb_rails("flex", props: { justify: "evenly" }) do %>
|
2
|
-
<%= pb_rails("skeleton_loading", props: { border_radius: "rounded", height: "50px", width: "100px"}) %>
|
3
|
-
<%= pb_rails("skeleton_loading", props: { border_radius: "xl", height: "50px", width: "100px"}) %>
|
4
|
-
<%= pb_rails("skeleton_loading", props: { border_radius: "lg", height: "50px", width: "100px"}) %>
|
5
|
-
<%= pb_rails("skeleton_loading", props: { border_radius: "md", height: "50px", width: "100px"}) %>
|
6
|
-
<%= pb_rails("skeleton_loading", props: { height: "50px", width: "100px"}) %>
|
7
|
-
<%= pb_rails("skeleton_loading", props: { border_radius: "xs", height: "50px", width: "100px"}) %>
|
8
|
-
<%= pb_rails("skeleton_loading", props: { border_radius: "none", height: "50px", width: "100px"}) %>
|
9
|
-
<% end %>
|
@@ -1 +0,0 @@
|
|
1
|
-
The `border_radius` prop accepts all of our [BorderRadius](https://playbook.powerapp.cloud/visual_guidelines/border_radius) tokens, with `sm` as default.
|
@@ -1,119 +0,0 @@
|
|
1
|
-
<%= pb_rails("button", props: { id: "toggle-filter-button", margin_bottom: "md", text: "Show Filter", variant: "secondary" }) %>
|
2
|
-
|
3
|
-
<div id="skeleton-loading-filter-content">
|
4
|
-
<%= pb_rails("card", props: { margin_bottom: "lg" }) do %>
|
5
|
-
<%= pb_rails("flex", props: { align_items: "center", justify: "between", orientation: "row" }) do %>
|
6
|
-
<%= pb_rails("flex", props: { align_items: "center", justify: "start", orientation: "row" }) do %>
|
7
|
-
<%= pb_rails("skeleton_loading", props: { border_radius: "rounded", height: "40px", margin_right: "sm", width: "40px" }) %>
|
8
|
-
<%= pb_rails("skeleton_loading", props: { height: "16px", margin_right: "md", width: "80px" }) %>
|
9
|
-
<% end %>
|
10
|
-
<%= pb_rails("flex", props: { align_items: "center", justify: "end", orientation: "row" }) do %>
|
11
|
-
<%= pb_rails("skeleton_loading", props: { height: "18px", width: "120px" }) %>
|
12
|
-
<% end %>
|
13
|
-
<% end %>
|
14
|
-
<% end %>
|
15
|
-
|
16
|
-
<%= pb_rails("skeleton_loading", props: { height: "127px", width: "100%" }) %>
|
17
|
-
</div>
|
18
|
-
|
19
|
-
<div id="filter-content" style="display: none;">
|
20
|
-
<%= pb_rails("filter", props: {
|
21
|
-
margin_bottom: "xl",
|
22
|
-
min_width: "360px",
|
23
|
-
id: "2",
|
24
|
-
filters: [
|
25
|
-
{ name: "name", value: "John Wick" }
|
26
|
-
],
|
27
|
-
sort_menu: [
|
28
|
-
{ item: "Popularity", link: "?q[sorts]=managers_popularity+asc", active: true, direction: "desc" },
|
29
|
-
{ item: "Mananger's Title", link: "?q[sorts]=managers_title+asc", active: false },
|
30
|
-
{ item: "Manager's Name", link: "?q[sorts]=managers_name+asc", active: false },
|
31
|
-
],
|
32
|
-
results: 546,
|
33
|
-
template: "single"
|
34
|
-
}) do %>
|
35
|
-
<% example_collection = [
|
36
|
-
OpenStruct.new(name: "USA", value: 1),
|
37
|
-
OpenStruct.new(name: "Canada", value: 2),
|
38
|
-
OpenStruct.new(name: "Brazil", value: 3),
|
39
|
-
OpenStruct.new(name: "Philippines", value: 4),
|
40
|
-
OpenStruct.new(name: "A galaxy far far away...", value: 5)
|
41
|
-
] %>
|
42
|
-
|
43
|
-
<%= pb_rails("form", props: { form_system_options: { scope: :example, method: :get } }) do |form| %>
|
44
|
-
<%= form.text_field :example_text_field, props: { label: true } %>
|
45
|
-
<%= form.collection_select :example_collection_select, example_collection, :value, :name, props: { label: true } %>
|
46
|
-
|
47
|
-
<%= form.actions do |action| %>
|
48
|
-
<%= action.submit props: {
|
49
|
-
text: "Apply",
|
50
|
-
data: {
|
51
|
-
disable_with: "pb_rails('icon', props: { icon: 'spinner', spin: true, fixed_width: true })Searching...".html_safe
|
52
|
-
},}%>
|
53
|
-
<%= action.button props: { type: "reset", text: "Clear", variant: "secondary" } %>
|
54
|
-
<% end %>
|
55
|
-
<% end %>
|
56
|
-
<% end %>
|
57
|
-
|
58
|
-
<%= pb_rails("filter", props: {
|
59
|
-
min_width: "360px",
|
60
|
-
id: "1",
|
61
|
-
filters: [
|
62
|
-
{ name: "name", value: "John Wick" },
|
63
|
-
{ name: "city", value: "San Francisco"}
|
64
|
-
],
|
65
|
-
sort_menu: [
|
66
|
-
{ item: "Popularity", link: "?q[sorts]=managers_popularity+asc", active: true, direction: "desc" },
|
67
|
-
{ item: "Mananger's Title", link: "?q[sorts]=managers_title+asc", active: false },
|
68
|
-
{ item: "Manager's Name", link: "?q[sorts]=managers_name+asc", active: false },
|
69
|
-
],
|
70
|
-
template: "default",
|
71
|
-
results: 1,
|
72
|
-
}) do %>
|
73
|
-
<% example_collection = [
|
74
|
-
OpenStruct.new(name: "USA", value: 1),
|
75
|
-
OpenStruct.new(name: "Canada", value: 2),
|
76
|
-
OpenStruct.new(name: "Brazil", value: 3),
|
77
|
-
OpenStruct.new(name: "Philippines", value: 4),
|
78
|
-
OpenStruct.new(name: "A galaxy far far away...", value: 5)
|
79
|
-
] %>
|
80
|
-
<%= pb_rails("form", props: { form_system_options: { scope: :example, method: :get } }) do |form| %>
|
81
|
-
<%= form.text_field :example_text_field, props: { label: true } %>
|
82
|
-
<%= form.collection_select :example_collection_select, example_collection, :value, :name, props: { label: true } %>
|
83
|
-
|
84
|
-
<%= form.actions do |action| %>
|
85
|
-
<%= action.submit props: {
|
86
|
-
text: "Apply",
|
87
|
-
data: {
|
88
|
-
disable_with: "pb_rails('icon', props: { icon: 'spinner', spin: true, fixed_width: true })Searching...".html_safe
|
89
|
-
},}%>
|
90
|
-
<%= action.button props: { type: "reset", text: "Clear", variant: "secondary" } %>
|
91
|
-
<% end %>
|
92
|
-
<% end %>
|
93
|
-
<% end %>
|
94
|
-
</div>
|
95
|
-
|
96
|
-
<script>
|
97
|
-
document.addEventListener("DOMContentLoaded", function() {
|
98
|
-
const toggleButton = document.getElementById('toggle-filter-button')
|
99
|
-
const skeletonFilterContentDiv = document.getElementById('skeleton-loading-filter-content')
|
100
|
-
const filterContentDiv = document.getElementById('filter-content')
|
101
|
-
const secondFilterContentDiv = document.getElementById('second-filter-content')
|
102
|
-
|
103
|
-
let isLoading = true
|
104
|
-
|
105
|
-
toggleButton.addEventListener('click', function() {
|
106
|
-
isLoading = !isLoading
|
107
|
-
|
108
|
-
if (isLoading) {
|
109
|
-
skeletonFilterContentDiv.style.display = 'block'
|
110
|
-
filterContentDiv.style.display = 'none'
|
111
|
-
toggleButton.textContent = 'Show Filter'
|
112
|
-
} else {
|
113
|
-
skeletonFilterContentDiv.style.display = 'none'
|
114
|
-
filterContentDiv.style.display = 'block'
|
115
|
-
toggleButton.textContent = 'Show Skeleton Loading'
|
116
|
-
}
|
117
|
-
})
|
118
|
-
})
|
119
|
-
</script>
|
@@ -1,15 +0,0 @@
|
|
1
|
-
<%= pb_rails("skeleton_loading", props: { height: "100px", width: "50%" }) %>
|
2
|
-
|
3
|
-
<%= pb_rails("skeleton_loading", props: { gap: "md", height: "20px", margin_y: "md", stack: 3, width: "50px" }) %>
|
4
|
-
|
5
|
-
<%= pb_rails("card", props: { height: "200px", margin_bottom: "md", padding: "none", width: "100%" }) do %>
|
6
|
-
<%= pb_rails("skeleton_loading", props: { border_radius: "md", gap: "xl", height: "50%", width: "300px" }) %>
|
7
|
-
<% end %>
|
8
|
-
|
9
|
-
<%= pb_rails("card", props: { height: "200px", margin_bottom: "md", padding: "none", width: "100%" }) do %>
|
10
|
-
<%= pb_rails("skeleton_loading", props: { border_radius: "md", gap: "xl", height: "30%", stack: 2, width: "70%" }) %>
|
11
|
-
<% end %>
|
12
|
-
|
13
|
-
<%= pb_rails("skeleton_loading", props: { height: "150px", margin_y: "md", width: "150px" }) %>
|
14
|
-
|
15
|
-
<%= pb_rails("skeleton_loading", props: { border_radius: "rounded", height: "150px", width: "150px" }) %>
|
@@ -1,3 +0,0 @@
|
|
1
|
-
The `height` and `width` props accept pixel and percentage values. If using a percentage for `height`, the parent container must have a set height.
|
2
|
-
|
3
|
-
Set the `height` and `width` props to the same value to make a square. A `rounded` border_radius will make a square a circle. If using percentages to make a square, your parent container must also be a square.
|
@@ -1,63 +0,0 @@
|
|
1
|
-
<%= pb_rails("button", props: { id: "toggle-user-button", margin_bottom: "md", text: "Show User", variant: "secondary" }) %>
|
2
|
-
|
3
|
-
<div id="skeleton-loading-user-content">
|
4
|
-
<%= pb_rails("flex", props: { align_items: "center" }) do %>
|
5
|
-
<%= pb_rails("skeleton_loading", props: { border_radius: "rounded", height: "38px", padding_right: "sm", width: "38px"}) %>
|
6
|
-
<%= pb_rails("skeleton_loading", props: { gap: "xxs", height: "18px", stack: 2, width: "161px"}) %>
|
7
|
-
<% end %>
|
8
|
-
<%= pb_rails("flex", props: { align_items: "start", padding_top: "md" }) do %>
|
9
|
-
<%= pb_rails("flex", props: { align_items: "center", flex_direction: "column" }) do %>
|
10
|
-
<%= pb_rails("skeleton_loading", props: { border_radius: "rounded", height: "100px", padding_bottom: "xs", width: "100px"}) %>
|
11
|
-
<%= pb_rails("skeleton_loading", props: { height: "32px", padding_bottom: "xxs", width: "144px"}) %>
|
12
|
-
<%= pb_rails("skeleton_loading", props: { height: "21px", width: "164px"}) %>
|
13
|
-
<% end %>
|
14
|
-
<% end %>
|
15
|
-
</div>
|
16
|
-
|
17
|
-
<div id="user-content" style="display: none;">
|
18
|
-
<div>
|
19
|
-
<%= pb_rails("user", props: {
|
20
|
-
name: "Anna Black",
|
21
|
-
title: "Remodeling Consultant",
|
22
|
-
orientation: "horizontal",
|
23
|
-
align: "left",
|
24
|
-
avatar_url: "https://randomuser.me/api/portraits/women/44.jpg"
|
25
|
-
}) %>
|
26
|
-
</div>
|
27
|
-
<div>
|
28
|
-
<%= pb_rails("flex", props: { align_items: "start", padding_top: "md" }) do %>
|
29
|
-
<%= pb_rails("user", props: {
|
30
|
-
name: "Anna Black",
|
31
|
-
title: "Remodeling Consultant",
|
32
|
-
orientation: "vertical",
|
33
|
-
align: "center",
|
34
|
-
size: "lg",
|
35
|
-
avatar_url: "https://randomuser.me/api/portraits/women/44.jpg"
|
36
|
-
}) %>
|
37
|
-
<% end %>
|
38
|
-
</div>
|
39
|
-
</div>
|
40
|
-
|
41
|
-
<script>
|
42
|
-
document.addEventListener("DOMContentLoaded", function() {
|
43
|
-
const toggleButton = document.getElementById('toggle-user-button')
|
44
|
-
const skeletonUserContentDiv = document.getElementById('skeleton-loading-user-content')
|
45
|
-
const userContentDiv = document.getElementById('user-content')
|
46
|
-
|
47
|
-
let isLoading = true
|
48
|
-
|
49
|
-
toggleButton.addEventListener('click', function() {
|
50
|
-
isLoading = !isLoading
|
51
|
-
|
52
|
-
if (isLoading) {
|
53
|
-
skeletonUserContentDiv.style.display = 'block'
|
54
|
-
userContentDiv.style.display = 'none'
|
55
|
-
toggleButton.textContent = 'Show User'
|
56
|
-
} else {
|
57
|
-
skeletonUserContentDiv.style.display = 'none'
|
58
|
-
userContentDiv.style.display = 'block'
|
59
|
-
toggleButton.textContent = 'Show Skeleton Loading'
|
60
|
-
}
|
61
|
-
})
|
62
|
-
})
|
63
|
-
</script>
|
@@ -1,88 +0,0 @@
|
|
1
|
-
import React from 'react'
|
2
|
-
import Table from '../_table'
|
3
|
-
|
4
|
-
const TableStickyColumns = () => {
|
5
|
-
return (
|
6
|
-
<Table
|
7
|
-
responsive="scroll"
|
8
|
-
size="md"
|
9
|
-
stickyLeftColumn={["a"]}
|
10
|
-
stickyRightColumn={["b"]}
|
11
|
-
>
|
12
|
-
<thead>
|
13
|
-
<tr>
|
14
|
-
<th id="a">{'Column 1'}</th>
|
15
|
-
<th>{'Column 2'}</th>
|
16
|
-
<th>{'Column 3'}</th>
|
17
|
-
<th>{'Column 4'}</th>
|
18
|
-
<th>{'Column 5'}</th>
|
19
|
-
<th>{'Column 6'}</th>
|
20
|
-
<th>{'Column 7'}</th>
|
21
|
-
<th>{'Column 8'}</th>
|
22
|
-
<th>{'Column 9'}</th>
|
23
|
-
<th>{'Column 10'}</th>
|
24
|
-
<th>{'Column 11'}</th>
|
25
|
-
<th>{'Column 12'}</th>
|
26
|
-
<th>{'Column 13'}</th>
|
27
|
-
<th>{'Column 14'}</th>
|
28
|
-
<th id="b">{'Column 15'}</th>
|
29
|
-
</tr>
|
30
|
-
</thead>
|
31
|
-
<tbody>
|
32
|
-
<tr>
|
33
|
-
<td id="a">{'Value 1'}</td>
|
34
|
-
<td>{'Value 2'}</td>
|
35
|
-
<td>{'Value 3'}</td>
|
36
|
-
<td>{'Value 4'}</td>
|
37
|
-
<td>{'Value 5'}</td>
|
38
|
-
<td>{'Value 6'}</td>
|
39
|
-
<td>{'Value 7'}</td>
|
40
|
-
<td>{'Value 8'}</td>
|
41
|
-
<td>{'Value 9'}</td>
|
42
|
-
<td>{'Value 10'}</td>
|
43
|
-
<td>{'Value 11'}</td>
|
44
|
-
<td>{'Value 12'}</td>
|
45
|
-
<td>{'Value 13'}</td>
|
46
|
-
<td>{'Value 14'}</td>
|
47
|
-
<td id="b">{'Value 15'}</td>
|
48
|
-
</tr>
|
49
|
-
<tr>
|
50
|
-
<td id="a">{'Value 1'}</td>
|
51
|
-
<td>{'Value 2'}</td>
|
52
|
-
<td>{'Value 3'}</td>
|
53
|
-
<td>{'Value 4'}</td>
|
54
|
-
<td>{'Value 5'}</td>
|
55
|
-
<td>{'Value 6'}</td>
|
56
|
-
<td>{'Value 7'}</td>
|
57
|
-
<td>{'Value 8'}</td>
|
58
|
-
<td>{'Value 9'}</td>
|
59
|
-
<td>{'Value 10'}</td>
|
60
|
-
<td>{'Value 11'}</td>
|
61
|
-
<td>{'Value 12'}</td>
|
62
|
-
<td>{'Value 13'}</td>
|
63
|
-
<td>{'Value 14'}</td>
|
64
|
-
<td id="b">{'Value 15'}</td>
|
65
|
-
</tr>
|
66
|
-
<tr>
|
67
|
-
<td id="a">{'Value 1'}</td>
|
68
|
-
<td>{'Value 2'}</td>
|
69
|
-
<td>{'Value 3'}</td>
|
70
|
-
<td>{'Value 4'}</td>
|
71
|
-
<td>{'Value 5'}</td>
|
72
|
-
<td>{'Value 6'}</td>
|
73
|
-
<td>{'Value 7'}</td>
|
74
|
-
<td>{'Value 8'}</td>
|
75
|
-
<td>{'Value 9'}</td>
|
76
|
-
<td>{'Value 10'}</td>
|
77
|
-
<td>{'Value 11'}</td>
|
78
|
-
<td>{'Value 12'}</td>
|
79
|
-
<td>{'Value 13'}</td>
|
80
|
-
<td>{'Value 14'}</td>
|
81
|
-
<td id="b">{'Value 15'}</td>
|
82
|
-
</tr>
|
83
|
-
</tbody>
|
84
|
-
</Table>
|
85
|
-
)
|
86
|
-
}
|
87
|
-
|
88
|
-
export default TableStickyColumns
|