playbook_ui 16.8.0.pre.alpha.PLAY2935formbuilderrequiredindicatorbug16780 → 16.8.0.pre.alpha.PLAY2945selectformblankselection16424
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/Components/RegularTableView.tsx +0 -2
- data/app/pb_kits/playbook/pb_advanced_table/Components/TableHeaderCell.tsx +0 -2
- data/app/pb_kits/playbook/pb_advanced_table/Components/VirtualizedTableView.tsx +1 -5
- data/app/pb_kits/playbook/pb_advanced_table/Hooks/useTableState.ts +0 -24
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx +0 -144
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.jsx +0 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.md +0 -6
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header.jsx +4 -12
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header.md +0 -4
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header_rails.html.erb +2 -16
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_header_rails.md +0 -4
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header.html.erb +2 -16
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header.jsx +5 -12
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_rails.md +0 -4
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props_sticky_header_react.md +3 -5
- data/app/pb_kits/playbook/pb_advanced_table/docs/_playground.json +2 -5
- data/app/pb_kits/playbook/pb_advanced_table/docs/_playground.overrides.json +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_column_definitions_styling.json +1 -4
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +0 -3
- data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +0 -2
- data/app/pb_kits/playbook/pb_card/_card.tsx +1 -1
- data/app/pb_kits/playbook/pb_card/card.html.erb +1 -1
- data/app/pb_kits/playbook/pb_currency/_currency.tsx +6 -9
- data/app/pb_kits/playbook/pb_currency/currency.rb +10 -5
- data/app/pb_kits/playbook/pb_currency/currency.test.js +1 -44
- data/app/pb_kits/playbook/pb_date_picker/date_picker.html.erb +21 -36
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_dialog_submission.jsx +2 -2
- data/app/pb_kits/playbook/pb_draggable/_draggable.scss +0 -19
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.md +0 -2
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_react.md +0 -1
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list_rails.md +0 -2
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list_react.md +1 -3
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list_rails.md +1 -3
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list_react.md +1 -3
- data/app/pb_kits/playbook/pb_draggable/draggable.test.jsx +0 -16
- data/app/pb_kits/playbook/pb_draggable/draggable_container.html.erb +1 -3
- data/app/pb_kits/playbook/pb_draggable/draggable_item.html.erb +0 -1
- data/app/pb_kits/playbook/pb_draggable/index.js +7 -149
- data/app/pb_kits/playbook/pb_draggable/subcomponents/DraggableContainer.tsx +0 -1
- data/app/pb_kits/playbook/pb_draggable/subcomponents/DraggableItem.tsx +1 -67
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with_select_examples.html.erb +31 -0
- data/app/pb_kits/playbook/pb_form/docs/_form_with_required_indicator.html.erb +19 -20
- data/app/pb_kits/playbook/pb_form/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_icon/_icon.scss +1 -2
- data/app/pb_kits/playbook/pb_icon/docs/_icon_fa_kit.html.erb +1 -0
- data/app/pb_kits/playbook/pb_icon/docs/_icon_fa_kit.jsx +21 -0
- data/app/pb_kits/playbook/pb_icon/docs/_icon_fa_kit.md +7 -0
- data/app/pb_kits/playbook/pb_icon/docs/example.yml +2 -0
- data/app/pb_kits/playbook/pb_icon/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_list/_list_item.tsx +1 -4
- data/app/pb_kits/playbook/pb_list/item.html.erb +1 -1
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/index.js +1 -2
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky.html.erb +83 -85
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky.jsx +86 -88
- data/app/pb_kits/playbook/pb_table/docs/_table_sticky.md +1 -3
- data/app/pb_kits/playbook/pb_table/docs/_table_with_filter_variant_external_filter_rails.md +1 -1
- data/app/pb_kits/playbook/pb_text_input/_text_input.scss +0 -37
- data/dist/chunks/{_typeahead-DA__Kgp5.js → _typeahead-D2TWdJTn.js} +1 -1
- data/dist/chunks/vendor.js +2 -2
- data/dist/menu.yml +130 -70
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/dist/playbook.css +1 -1
- data/lib/playbook/forms/builder/collection_select_field.rb +1 -1
- data/lib/playbook/forms/builder/form_field_builder.rb +0 -2
- data/lib/playbook/forms/builder/select_field.rb +1 -1
- data/lib/playbook/forms/builder/time_zone_select_field.rb +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +8 -16
- data/app/pb_kits/playbook/pb_advanced_table/Utilities/ColumnLayoutHelper.ts +0 -138
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_width.jsx +0 -57
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_width.md +0 -66
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_enable_toggle_expansion_rails.html.erb +0 -62
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_enable_toggle_expansion_rails.md +0 -7
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_scroll_limitation.jsx +0 -68
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_sticky_scroll_limitation.md +0 -7
- data/app/pb_kits/playbook/pb_draggable/touchDrag.test.js +0 -38
- data/app/pb_kits/playbook/pb_draggable/utilities/touchDrag.ts +0 -173
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_centered_data.html.erb +0 -90
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_centered_data.jsx +0 -100
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_centered_data.md +0 -1
|
@@ -131,24 +131,23 @@
|
|
|
131
131
|
%>
|
|
132
132
|
|
|
133
133
|
<%= pb_form_with(scope: :example, url: "", method: :get, validate: true) do |form| %>
|
|
134
|
-
<%= form.typeahead :
|
|
135
|
-
<%= form.text_field :
|
|
136
|
-
<%= form.text_field :
|
|
137
|
-
<%= form.phone_number_field :
|
|
138
|
-
<%= form.email_field :
|
|
139
|
-
<%= form.number_field :
|
|
140
|
-
<%= form.search_field :
|
|
141
|
-
<%= form.password_field :
|
|
142
|
-
<%= form.url_field :
|
|
143
|
-
<%= form.text_area :
|
|
144
|
-
<%= form.text_area :
|
|
145
|
-
|
|
146
|
-
<%= form.
|
|
147
|
-
<%= form.select :example_select_required_indicator, [["Yes", 1], ["No", 2]], props: { label: true, required: true, required_indicator: true } %>
|
|
148
|
-
<%= form.select :example_select_required_indicator_custom, [["Yes", 1], ["No", 2]], props: { label: "Example Select Field", required: true, required_indicator: true } %>
|
|
149
|
-
<%# form.check_box :example_checkbox_required_indicator, props: { label: true, text: "Checkbox Label", required: true, required_indicator: true } %>
|
|
134
|
+
<%= form.typeahead :example_typeahead_field, props: { label: true, required: true, required_indicator: true } %>
|
|
135
|
+
<%= form.text_field :example_text_field, props: { label: true, required: true, required_indicator: true } %>
|
|
136
|
+
<%= form.text_field :example_text_field_2, props: { label: "Text Field Custom Label", required: true, required_indicator: true } %>
|
|
137
|
+
<%= form.phone_number_field :example_phone_number_field, props: { label: true, required: true, required_indicator: true } %>
|
|
138
|
+
<%= form.email_field :example_email_field, props: { label: true, required: true, required_indicator: true } %>
|
|
139
|
+
<%= form.number_field :example_number_field, props: { label: true, required: true, required_indicator: true } %>
|
|
140
|
+
<%= form.search_field :example_search_field, props: { label: true, required: true, required_indicator: true } %>
|
|
141
|
+
<%= form.password_field :example_password_field, props: { label: true, required: true, required_indicator: true } %>
|
|
142
|
+
<%= form.url_field :example_url_field, props: { label: true, required: true, required_indicator: true } %>
|
|
143
|
+
<%= form.text_area :example_text_area, props: { label: true, required: true, required_indicator: true } %>
|
|
144
|
+
<%= form.text_area :example_text_area_2, props: { label: "Textarea Custom Label", required: true, required_indicator: true } %>
|
|
145
|
+
<%# form.check_box :example_checkbox, props: { label: true, text: "Checkbox Label", required: true, required_indicator: true } %>
|
|
146
|
+
<%= form.time_picker :example_time_picker_required_indicator, props: { label: true, required: true, required_indicator: true } %>
|
|
150
147
|
<%= form.date_picker :example_date_picker_required_indicator, props: { label: true, required: true, required_indicator: true } %>
|
|
151
|
-
<%= form.date_picker :example_date_picker_required_indicator_custom, props: { label: "Date Picker
|
|
148
|
+
<%= form.date_picker :example_date_picker_required_indicator_custom, props: { label: "Custom Date Picker Label", required: true, required_indicator: true } %>
|
|
149
|
+
<%= form.select :example_select_required_indicator, [["Yes", 1], ["No", 2]], props: { label: true, required: true, required_indicator: true } %>
|
|
150
|
+
<%= form.select :example_select_required_indicator_2, [["Yes", 1], ["No", 2]], props: { label: "Example Select Field", required: true, required_indicator: true } %>
|
|
152
151
|
<%= form.multi_level_select :example_multi_level_select_required_indicator, props: {
|
|
153
152
|
label: true,
|
|
154
153
|
margin_y: 'sm',
|
|
@@ -157,14 +156,14 @@
|
|
|
157
156
|
tree_data: tree_data
|
|
158
157
|
} %>
|
|
159
158
|
<%= form.multi_level_select :example_multi_level_select_required_indicator_custom, props: {
|
|
160
|
-
label: "Multi Level Select
|
|
159
|
+
label: "Custom Multi Level Select Label",
|
|
161
160
|
margin_y: 'sm',
|
|
162
161
|
required: true,
|
|
163
162
|
required_indicator: true,
|
|
164
163
|
tree_data: tree_data
|
|
165
164
|
} %>
|
|
166
|
-
<%= form.
|
|
167
|
-
<%= form.
|
|
165
|
+
<%= form.dropdown_field :example_dropdown, props: { label: true, options: example_dropdown_options, required: true, required_indicator: true } %>
|
|
166
|
+
<%= form.dropdown_field :example_dropdown_2, props: { label: "Dropdown Custom Label", options: example_dropdown_options, required: true, required_indicator: true } %>
|
|
168
167
|
|
|
169
168
|
<%= form.actions do |action| %>
|
|
170
169
|
<%= action.submit %>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<%= pb_rails("icon", props: { icon: "powergon", font_style: "fak", fixed_width: true, size: "5x" }) %>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
import Icon from '../_icon'
|
|
4
|
+
|
|
5
|
+
import '../../../../../../playbook-website/app/javascript/scripts/custom-icons'
|
|
6
|
+
|
|
7
|
+
const IconFaKit = (props) => {
|
|
8
|
+
return (
|
|
9
|
+
<div>
|
|
10
|
+
<Icon
|
|
11
|
+
{...props}
|
|
12
|
+
fixedWidth
|
|
13
|
+
fontStyle="fak"
|
|
14
|
+
icon="powergon"
|
|
15
|
+
size="5x"
|
|
16
|
+
/>
|
|
17
|
+
</div>
|
|
18
|
+
)
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export default IconFaKit
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
Our Icon kit allows integration with [FontAwesome's custom kit](https://fontawesome.com/v6/docs/web/setup/use-kit#contentHeader) functionality out-of-the-box.
|
|
2
|
+
|
|
3
|
+
All you need to do is 3 things:
|
|
4
|
+
1) Import your custom-icon.js file as outlined in the FontAwesome docs.
|
|
5
|
+
2) Use our fontStyle prop called "fak" so that our Icon component knows you are using a "fa-kit" icon.
|
|
6
|
+
3) Pass in your FaKit name as a string to our icon prop (This is the name that you designated when you uploaded the icon on their site).
|
|
7
|
+
|
|
@@ -8,6 +8,7 @@ examples:
|
|
|
8
8
|
- icon_border: Icon Border
|
|
9
9
|
- icon_sizes: Icon Sizes
|
|
10
10
|
- icon_custom: Icon Custom
|
|
11
|
+
- icon_fa_kit: Icon with FontAwesome Kit
|
|
11
12
|
- icon_color: Icon Color
|
|
12
13
|
|
|
13
14
|
react:
|
|
@@ -19,6 +20,7 @@ examples:
|
|
|
19
20
|
- icon_border: Icon Border
|
|
20
21
|
- icon_sizes: Icon Sizes
|
|
21
22
|
- icon_custom: Icon Custom
|
|
23
|
+
- icon_fa_kit: Icon with FontAwesome Kit
|
|
22
24
|
- icon_color: Icon Color
|
|
23
25
|
|
|
24
26
|
swift:
|
|
@@ -6,4 +6,5 @@ export { default as IconPull } from './_icon_pull.jsx'
|
|
|
6
6
|
export { default as IconBorder } from './_icon_border.jsx'
|
|
7
7
|
export { default as IconSizes } from './_icon_sizes.jsx'
|
|
8
8
|
export { default as IconCustom } from './_icon_custom.jsx'
|
|
9
|
+
export { default as IconFaKit} from './_icon_fa_kit.jsx'
|
|
9
10
|
export { default as IconColor } from './_icon_color.jsx'
|
|
@@ -58,10 +58,7 @@ const ListItem = (props: ListItemProps) => {
|
|
|
58
58
|
>
|
|
59
59
|
{
|
|
60
60
|
dragHandle && (
|
|
61
|
-
<span
|
|
62
|
-
className="pb_draggable_handle"
|
|
63
|
-
style={{verticalAlign: 'middle'}}
|
|
64
|
-
>
|
|
61
|
+
<span style={{verticalAlign: 'middle'}}>
|
|
65
62
|
<Body color="light">
|
|
66
63
|
<Icon
|
|
67
64
|
icon="grip-dots-vertical"
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
**combined_html_options
|
|
10
10
|
) do %>
|
|
11
11
|
<% if object.drag_handle %>
|
|
12
|
-
<span
|
|
12
|
+
<span style="vertical-align: middle;">
|
|
13
13
|
<%= pb_rails("body") do %>
|
|
14
14
|
<svg width="auto" height="auto" viewBox="0 0 31 25" fill="none" xmlns="http://www.w3.org/2000/svg" color="currentColor" class="pb_custom_icon svg-inline--fa vertical_align_middle svg_fw"><path d="M12.904 6.355a1.48 1.48 0 01-1.5-1.5c0-.796.656-1.5 1.5-1.5.797 0 1.5.704 1.5 1.5 0 .844-.703 1.5-1.5 1.5zm0 7.5a1.48 1.48 0 01-1.5-1.5c0-.796.656-1.5 1.5-1.5.797 0 1.5.704 1.5 1.5 0 .844-.703 1.5-1.5 1.5zm1.5 6c0 .844-.703 1.5-1.5 1.5a1.48 1.48 0 01-1.5-1.5c0-.796.656-1.5 1.5-1.5.797 0 1.5.704 1.5 1.5zm4.5-13.5a1.48 1.48 0 01-1.5-1.5c0-.796.657-1.5 1.5-1.5.797 0 1.5.704 1.5 1.5 0 .844-.703 1.5-1.5 1.5zm1.5 6c0 .844-.703 1.5-1.5 1.5a1.48 1.48 0 01-1.5-1.5c0-.796.657-1.5 1.5-1.5.797 0 1.5.704 1.5 1.5zm-1.5 9a1.48 1.48 0 01-1.5-1.5c0-.796.657-1.5 1.5-1.5.797 0 1.5.704 1.5 1.5 0 .844-.703 1.5-1.5 1.5z" fill="#242B42"></path></svg>
|
|
15
15
|
<% end %>
|
|
@@ -11,7 +11,6 @@ examples:
|
|
|
11
11
|
- pb_circle_chart_with_title: With Title
|
|
12
12
|
- pb_circle_chart_inner_sizes: Inner Circle Size Options
|
|
13
13
|
- pb_circle_chart_custom_tooltip: Tooltip Customization
|
|
14
|
-
- pb_circle_chart_centered_data: Centered Data
|
|
15
14
|
|
|
16
15
|
|
|
17
16
|
react:
|
|
@@ -26,6 +25,5 @@ examples:
|
|
|
26
25
|
- pb_circle_chart_with_title: With Title
|
|
27
26
|
- pb_circle_chart_inner_sizes: Inner Circle Size Options
|
|
28
27
|
- pb_circle_chart_custom_tooltip: Tooltip Customization
|
|
29
|
-
- pb_circle_chart_centered_data: Centered Data
|
|
30
28
|
|
|
31
29
|
|
|
@@ -8,5 +8,4 @@ export { default as PbCircleChartDataWithLegend } from './_pb_circle_chart_data_
|
|
|
8
8
|
export { default as PbCircleChartDataLegendPosition } from './_pb_circle_chart_data_legend_position.jsx'
|
|
9
9
|
export { default as PbCircleChartWithTitle } from './_pb_circle_chart_with_title.jsx'
|
|
10
10
|
export { default as PbCircleChartInnerSizes } from './_pb_circle_chart_inner_sizes.jsx'
|
|
11
|
-
export { default as PbCircleChartCustomTooltip } from './_pb_circle_chart_custom_tooltip.jsx'
|
|
12
|
-
export { default as PbCircleChartCenteredData } from './_pb_circle_chart_centered_data.jsx'
|
|
11
|
+
export { default as PbCircleChartCustomTooltip } from './_pb_circle_chart_custom_tooltip.jsx'
|
|
@@ -1,85 +1,83 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
<
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
<
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
<
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
<
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
<
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
<
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
<
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
<
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
<
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
<% end %>
|
|
85
|
-
</div>
|
|
1
|
+
<%= pb_rails("table", props: { sticky: true }) do %>
|
|
2
|
+
<thead>
|
|
3
|
+
<tr>
|
|
4
|
+
<th>Column 1</th>
|
|
5
|
+
<th>Column 2</th>
|
|
6
|
+
<th>Column 3</th>
|
|
7
|
+
<th>Column 4</th>
|
|
8
|
+
<th>Column 5</th>
|
|
9
|
+
</tr>
|
|
10
|
+
</thead>
|
|
11
|
+
<tbody>
|
|
12
|
+
<tr>
|
|
13
|
+
<td>Value 1</td>
|
|
14
|
+
<td>Value 2</td>
|
|
15
|
+
<td>Value 3</td>
|
|
16
|
+
<td>Value 4</td>
|
|
17
|
+
<td>Value 5</td>
|
|
18
|
+
</tr>
|
|
19
|
+
<tr>
|
|
20
|
+
<td>Value 1</td>
|
|
21
|
+
<td>Value 2</td>
|
|
22
|
+
<td>Value 3</td>
|
|
23
|
+
<td>Value 4</td>
|
|
24
|
+
<td>Value 5</td>
|
|
25
|
+
</tr>
|
|
26
|
+
<tr>
|
|
27
|
+
<td>Value 1</td>
|
|
28
|
+
<td>Value 2</td>
|
|
29
|
+
<td>Value 3</td>
|
|
30
|
+
<td>Value 4</td>
|
|
31
|
+
<td>Value 5</td>
|
|
32
|
+
</tr>
|
|
33
|
+
<tr>
|
|
34
|
+
<td>Value 1</td>
|
|
35
|
+
<td>Value 2</td>
|
|
36
|
+
<td>Value 3</td>
|
|
37
|
+
<td>Value 4</td>
|
|
38
|
+
<td>Value 5</td>
|
|
39
|
+
</tr>
|
|
40
|
+
<tr>
|
|
41
|
+
<td>Value 1</td>
|
|
42
|
+
<td>Value 2</td>
|
|
43
|
+
<td>Value 3</td>
|
|
44
|
+
<td>Value 4</td>
|
|
45
|
+
<td>Value 5</td>
|
|
46
|
+
</tr>
|
|
47
|
+
<tr>
|
|
48
|
+
<td>Value 1</td>
|
|
49
|
+
<td>Value 2</td>
|
|
50
|
+
<td>Value 3</td>
|
|
51
|
+
<td>Value 4</td>
|
|
52
|
+
<td>Value 5</td>
|
|
53
|
+
</tr>
|
|
54
|
+
<tr>
|
|
55
|
+
<td>Value 1</td>
|
|
56
|
+
<td>Value 2</td>
|
|
57
|
+
<td>Value 3</td>
|
|
58
|
+
<td>Value 4</td>
|
|
59
|
+
<td>Value 5</td>
|
|
60
|
+
</tr>
|
|
61
|
+
<tr>
|
|
62
|
+
<td>Value 1</td>
|
|
63
|
+
<td>Value 2</td>
|
|
64
|
+
<td>Value 3</td>
|
|
65
|
+
<td>Value 4</td>
|
|
66
|
+
<td>Value 5</td>
|
|
67
|
+
</tr>
|
|
68
|
+
<tr>
|
|
69
|
+
<td>Value 1</td>
|
|
70
|
+
<td>Value 2</td>
|
|
71
|
+
<td>Value 3</td>
|
|
72
|
+
<td>Value 4</td>
|
|
73
|
+
<td>Value 5</td>
|
|
74
|
+
</tr>
|
|
75
|
+
<tr>
|
|
76
|
+
<td>Value 1</td>
|
|
77
|
+
<td>Value 2</td>
|
|
78
|
+
<td>Value 3</td>
|
|
79
|
+
<td>Value 4</td>
|
|
80
|
+
<td>Value 5</td>
|
|
81
|
+
</tr>
|
|
82
|
+
</tbody>
|
|
83
|
+
<% end %>
|
|
@@ -3,94 +3,92 @@ import React from "react"
|
|
|
3
3
|
import Table from "../_table"
|
|
4
4
|
|
|
5
5
|
const TableSticky = (props) => (
|
|
6
|
-
<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
>
|
|
11
|
-
<
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
<
|
|
21
|
-
<
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
<
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
<
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
<
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
<
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
<
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
<
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
<
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
<
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
</Table>
|
|
93
|
-
</div>
|
|
6
|
+
<Table
|
|
7
|
+
sticky
|
|
8
|
+
{...props}
|
|
9
|
+
>
|
|
10
|
+
<thead>
|
|
11
|
+
<tr>
|
|
12
|
+
<th>{'Column 1'}</th>
|
|
13
|
+
<th>{'Column 2'}</th>
|
|
14
|
+
<th>{'Column 3'}</th>
|
|
15
|
+
<th>{'Column 4'}</th>
|
|
16
|
+
<th>{'Column 5'}</th>
|
|
17
|
+
</tr>
|
|
18
|
+
</thead>
|
|
19
|
+
<tbody>
|
|
20
|
+
<tr>
|
|
21
|
+
<td>{'Value 1'}</td>
|
|
22
|
+
<td>{'Value 2'}</td>
|
|
23
|
+
<td>{'Value 3'}</td>
|
|
24
|
+
<td>{'Value 4'}</td>
|
|
25
|
+
<td>{'Value 5'}</td>
|
|
26
|
+
</tr>
|
|
27
|
+
<tr>
|
|
28
|
+
<td>{'Value 1'}</td>
|
|
29
|
+
<td>{'Value 2'}</td>
|
|
30
|
+
<td>{'Value 3'}</td>
|
|
31
|
+
<td>{'Value 4'}</td>
|
|
32
|
+
<td>{'Value 5'}</td>
|
|
33
|
+
</tr>
|
|
34
|
+
<tr>
|
|
35
|
+
<td>{'Value 1'}</td>
|
|
36
|
+
<td>{'Value 2'}</td>
|
|
37
|
+
<td>{'Value 3'}</td>
|
|
38
|
+
<td>{'Value 4'}</td>
|
|
39
|
+
<td>{'Value 5'}</td>
|
|
40
|
+
</tr>
|
|
41
|
+
<tr>
|
|
42
|
+
<td>{'Value 1'}</td>
|
|
43
|
+
<td>{'Value 2'}</td>
|
|
44
|
+
<td>{'Value 3'}</td>
|
|
45
|
+
<td>{'Value 4'}</td>
|
|
46
|
+
<td>{'Value 5'}</td>
|
|
47
|
+
</tr>
|
|
48
|
+
<tr>
|
|
49
|
+
<td>{'Value 1'}</td>
|
|
50
|
+
<td>{'Value 2'}</td>
|
|
51
|
+
<td>{'Value 3'}</td>
|
|
52
|
+
<td>{'Value 4'}</td>
|
|
53
|
+
<td>{'Value 5'}</td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr>
|
|
56
|
+
<td>{'Value 1'}</td>
|
|
57
|
+
<td>{'Value 2'}</td>
|
|
58
|
+
<td>{'Value 3'}</td>
|
|
59
|
+
<td>{'Value 4'}</td>
|
|
60
|
+
<td>{'Value 5'}</td>
|
|
61
|
+
</tr>
|
|
62
|
+
<tr>
|
|
63
|
+
<td>{'Value 1'}</td>
|
|
64
|
+
<td>{'Value 2'}</td>
|
|
65
|
+
<td>{'Value 3'}</td>
|
|
66
|
+
<td>{'Value 4'}</td>
|
|
67
|
+
<td>{'Value 5'}</td>
|
|
68
|
+
</tr>
|
|
69
|
+
<tr>
|
|
70
|
+
<td>{'Value 1'}</td>
|
|
71
|
+
<td>{'Value 2'}</td>
|
|
72
|
+
<td>{'Value 3'}</td>
|
|
73
|
+
<td>{'Value 4'}</td>
|
|
74
|
+
<td>{'Value 5'}</td>
|
|
75
|
+
</tr>
|
|
76
|
+
<tr>
|
|
77
|
+
<td>{'Value 1'}</td>
|
|
78
|
+
<td>{'Value 2'}</td>
|
|
79
|
+
<td>{'Value 3'}</td>
|
|
80
|
+
<td>{'Value 4'}</td>
|
|
81
|
+
<td>{'Value 5'}</td>
|
|
82
|
+
</tr>
|
|
83
|
+
<tr>
|
|
84
|
+
<td>{'Value 1'}</td>
|
|
85
|
+
<td>{'Value 2'}</td>
|
|
86
|
+
<td>{'Value 3'}</td>
|
|
87
|
+
<td>{'Value 4'}</td>
|
|
88
|
+
<td>{'Value 5'}</td>
|
|
89
|
+
</tr>
|
|
90
|
+
</tbody>
|
|
91
|
+
</Table>
|
|
94
92
|
)
|
|
95
93
|
|
|
96
94
|
export default TableSticky
|
|
@@ -2,9 +2,7 @@ React: Use `sticky` on a table to allow the table header to be fixed in place wh
|
|
|
2
2
|
|
|
3
3
|
Rails: Pass `sticky: true` to props.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
If the table header is not sticking in the right place you will need to pass an inline `top` style to the `thead`. This is often needed when a parent adds padding above the table.
|
|
5
|
+
If the table header is not sticking in the right place you will need to pass a inline `top` style to the `thead`.
|
|
8
6
|
React Example: `<thead style={{ top: "-16px" }}>`
|
|
9
7
|
Rails Example: `<thead style="top: -16px">`
|
|
10
8
|
|
|
@@ -36,4 +36,4 @@ When `filter` is present, `filter_content` and `filter_props` are ignored.
|
|
|
36
36
|
<% end %>
|
|
37
37
|
```
|
|
38
38
|
|
|
39
|
-
For Nitro apps that use a shared search/filter pattern, reference the
|
|
39
|
+
For Nitro apps that use a shared search/filter pattern, reference the example on Alpha for implementation details.
|
|
@@ -100,29 +100,6 @@
|
|
|
100
100
|
color: $input_text_disabled_dark;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
|
|
104
|
-
.text_input_wrapper_add_on {
|
|
105
|
-
&:has(input:disabled),
|
|
106
|
-
&:has(.text_input:disabled) {
|
|
107
|
-
.add-on-card,
|
|
108
|
-
.add-on-card-dark {
|
|
109
|
-
border-color: $input_border_disabled_dark;
|
|
110
|
-
background-color: $input_background_disabled_dark;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.add-on-icon {
|
|
114
|
-
color: $input_text_disabled_dark;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.text_input:focus ~ .add-on-card-dark,
|
|
118
|
-
input:focus ~ .add-on-card-dark {
|
|
119
|
-
background-color: $input_background_disabled_dark;
|
|
120
|
-
border-color: $input_border_disabled_dark;
|
|
121
|
-
border-width: 1px;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
103
|
&.error {
|
|
127
104
|
.text_input_wrapper {
|
|
128
105
|
// The `:not` here prevents error styling from affecting the country search input in the Phone Number Input Kit.
|
|
@@ -215,20 +192,6 @@
|
|
|
215
192
|
}
|
|
216
193
|
}
|
|
217
194
|
}
|
|
218
|
-
&:not(.dark) .text_input_wrapper_add_on {
|
|
219
|
-
&:has(input:disabled),
|
|
220
|
-
&:has(.text_input:disabled) {
|
|
221
|
-
.add-on-card {
|
|
222
|
-
border-color: $input_border_disabled;
|
|
223
|
-
background-color: $input_background_disabled;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
.add-on-icon {
|
|
227
|
-
color: $input_text_disabled;
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
|
|
232
195
|
&.inline {
|
|
233
196
|
.text_input_wrapper input::placeholder,
|
|
234
197
|
.text_input_wrapper .text_input .placeholder {
|