playbook_ui_docs 15.4.0.pre.alpha.PLAY2429datepickeropenonscreenstatic12263 → 15.4.0.pre.alpha.PLAY2556advancedtablefirstcolumnborder12527
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_table_props.html.erb +163 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx +190 -0
- data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_icon_variant.jsx +24 -0
- data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_icon_variant_react.md +1 -0
- data/app/pb_kits/playbook/pb_copy_button/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_copy_button/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_currency/docs/_currency_abbreviated.md +1 -0
- data/app/pb_kits/playbook/pb_currency/docs/_currency_matching_decimals_rails.md +1 -0
- data/app/pb_kits/playbook/pb_currency/docs/_currency_matching_decimals_react.md +1 -0
- data/app/pb_kits/playbook/pb_currency/docs/_currency_negative.html.erb +10 -0
- data/app/pb_kits/playbook/pb_currency/docs/_currency_negative.jsx +10 -0
- data/app/pb_kits/playbook/pb_currency/docs/_currency_negative.md +1 -0
- data/app/pb_kits/playbook/pb_currency/docs/_currency_no_symbol_rails.md +1 -0
- data/app/pb_kits/playbook/pb_currency/docs/_currency_no_symbol_react.md +1 -0
- data/app/pb_kits/playbook/pb_currency/docs/_currency_variants.html.erb +7 -0
- data/app/pb_kits/playbook/pb_currency/docs/_currency_variants.jsx +7 -0
- data/app/pb_kits/playbook/pb_currency/docs/_description.md +2 -2
- data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_show_current_year.html.erb +4 -0
- data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_show_current_year.jsx +43 -0
- data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_show_current_year.md +1 -0
- data/app/pb_kits/playbook/pb_date_range_inline/docs/_description.md +1 -1
- data/app/pb_kits/playbook/pb_date_range_inline/docs/example.yml +3 -2
- data/app/pb_kits/playbook/pb_date_range_inline/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_current_year.html.erb +12 -0
- data/app/pb_kits/playbook/pb_date_stacked/docs/{_date_stacked_not_current_year.jsx → _date_stacked_current_year.jsx} +6 -5
- data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_current_year.md +1 -0
- data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_default.html.erb +1 -1
- data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_default.jsx +1 -1
- data/app/pb_kits/playbook/pb_date_stacked/docs/_description.md +1 -1
- data/app/pb_kits/playbook/pb_date_stacked/docs/example.yml +2 -2
- data/app/pb_kits/playbook/pb_date_stacked/docs/index.js +1 -1
- data/app/pb_kits/playbook/pb_date_time/docs/_date_time_show_current_year.html.erb +4 -0
- data/app/pb_kits/playbook/pb_date_time/docs/_date_time_show_current_year.jsx +14 -0
- data/app/pb_kits/playbook/pb_date_time/docs/_date_time_show_current_year_rails.md +1 -0
- data/app/pb_kits/playbook/pb_date_time/docs/_date_time_show_current_year_react.md +1 -0
- data/app/pb_kits/playbook/pb_date_time/docs/example.yml +3 -1
- data/app/pb_kits/playbook/pb_date_time/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_date_time_stacked/docs/_date_time_stacked_show_current_year.html.erb +4 -0
- data/app/pb_kits/playbook/pb_date_time_stacked/docs/_date_time_stacked_show_current_year.jsx +22 -0
- data/app/pb_kits/playbook/pb_date_time_stacked/docs/_date_time_stacked_show_current_year.md +1 -0
- data/app/pb_kits/playbook/pb_date_time_stacked/docs/example.yml +3 -1
- data/app/pb_kits/playbook/pb_date_time_stacked/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_compound_components.html.erb +2 -2
- data/app/pb_kits/playbook/pb_flex/docs/_flex_item_example.jsx +1 -0
- data/app/pb_kits/playbook/pb_nav/docs/_horizontal_nav_disabled.html.erb +21 -0
- data/app/pb_kits/playbook/pb_nav/docs/_horizontal_nav_disabled.jsx +113 -0
- data/app/pb_kits/playbook/pb_nav/docs/_horizontal_nav_disabled.md +1 -0
- data/app/pb_kits/playbook/pb_nav/docs/_vertical_nav_disabled.html.erb +30 -0
- data/app/pb_kits/playbook/pb_nav/docs/_vertical_nav_disabled.jsx +117 -0
- data/app/pb_kits/playbook/pb_nav/docs/_vertical_nav_disabled.md +1 -0
- data/app/pb_kits/playbook/pb_nav/docs/example.yml +4 -0
- data/app/pb_kits/playbook/pb_nav/docs/index.js +3 -1
- data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_description.md +3 -1
- data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_default.md +1 -0
- data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_legend_position.html.erb +1 -1
- data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_legend_position.md +11 -0
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_description.md +3 -1
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_custom_tooltip.md +2 -1
- data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_default.md +1 -0
- data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_description.md +3 -1
- data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_color.md +2 -2
- data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_default.md +1 -0
- data/app/pb_kits/playbook/pb_pb_line_graph/docs/_description.md +3 -1
- data/app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_default.md +1 -0
- data/app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_legend_position.html.erb +1 -1
- data/app/pb_kits/playbook/pb_progress_step/docs/_description.md +1 -5
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_color.html.erb +14 -0
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_color.jsx +29 -0
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_color.md +3 -0
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_custom_icon.jsx +31 -0
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_custom_icon.md +1 -0
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.html.erb +4 -1
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.jsx +14 -3
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_default.md +3 -0
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_tracker.md +3 -0
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_vertical.html.erb +1 -7
- data/app/pb_kits/playbook/pb_progress_step/docs/_progress_step_vertical.md +1 -0
- data/app/pb_kits/playbook/pb_progress_step/docs/example.yml +3 -0
- data/app/pb_kits/playbook/pb_progress_step/docs/index.js +2 -0
- data/dist/playbook-doc.js +1 -1
- metadata +42 -4
- data/app/pb_kits/playbook/pb_date_stacked/docs/_date_stacked_not_current_year.html.erb +0 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b17682dc674336020489565fbf198cf269cc6adb3e304550713e871e0afc19df
|
|
4
|
+
data.tar.gz: e4fbdcbaf6a1cd7aa0f19182d3f00694eeda0638faa872d2a7b6c6901ed184b3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4872b37458293820c2f89a83c91b9b88fe900e20c0f3170204e5b0d9772f48a23dc59b05dc498b39b374e3026cb8a542e1b26cf786d68af113adb1e38b7a4f4b
|
|
7
|
+
data.tar.gz: b55de4262b62249ce1efd08006da146e3b57d03c131277c9f7058b6edad1d720e162c50068adef942883a31d91e8f444c28791566962650bacbbc7f01242250e
|
|
@@ -29,5 +29,167 @@
|
|
|
29
29
|
label: "Graduated Students",
|
|
30
30
|
}
|
|
31
31
|
] %>
|
|
32
|
+
<%= pb_rails("caption", props: { text: "Advanced Table Vertical Border Table Props" }) %>
|
|
33
|
+
<%= pb_rails("advanced_table", props: { id: "table_props_table", table_data: @table_data, margin_bottom: "md", column_definitions: column_definitions, table_props: { vertical_border: true, container: false }}) %>
|
|
32
34
|
|
|
33
|
-
|
|
35
|
+
<% column_definitions_two = [
|
|
36
|
+
{
|
|
37
|
+
accessor: "year",
|
|
38
|
+
label: "Year",
|
|
39
|
+
cellAccessors: ["quarter", "month", "day"],
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
label: "Enrollment Data",
|
|
43
|
+
columns: [
|
|
44
|
+
{
|
|
45
|
+
accessor: "newEnrollments",
|
|
46
|
+
label: "New Enrollments",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
accessor: "scheduledMeetings",
|
|
50
|
+
label: "Scheduled Meetings",
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
label: "Performance Data",
|
|
56
|
+
columns: [
|
|
57
|
+
{
|
|
58
|
+
accessor: "attendanceRate",
|
|
59
|
+
label: "Attendance Rate",
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
accessor: "completedClasses",
|
|
63
|
+
label: "Completed Classes",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
accessor: "classCompletionRate",
|
|
67
|
+
label: "Class Completion Rate",
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
accessor: "graduatedStudents",
|
|
71
|
+
label: "Graduated Students",
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
},
|
|
75
|
+
] %>
|
|
76
|
+
<%= pb_rails("caption", props: { text: "Advanced Table Vertical Border Multi Header" }) %>
|
|
77
|
+
<%= pb_rails("advanced_table", props: { id: "table_multi_headers_vertical_borders", margin_bottom: "md", table_data: @table_data, column_definitions: column_definitions_two, table_props: { vertical_border: true } }) %>
|
|
78
|
+
|
|
79
|
+
<% column_definitions_three = [
|
|
80
|
+
{
|
|
81
|
+
accessor: "year",
|
|
82
|
+
label: "Year",
|
|
83
|
+
cellAccessors: ["quarter", "month", "day"],
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
label: "Enrollment Data",
|
|
87
|
+
columns: [
|
|
88
|
+
{
|
|
89
|
+
label: "Enrollment Stats",
|
|
90
|
+
columns: [
|
|
91
|
+
{
|
|
92
|
+
accessor: "newEnrollments",
|
|
93
|
+
label: "New Enrollments",
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
accessor: "scheduledMeetings",
|
|
97
|
+
label: "Scheduled Meetings",
|
|
98
|
+
},
|
|
99
|
+
],
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
label: "Performance Data",
|
|
105
|
+
columns: [
|
|
106
|
+
{
|
|
107
|
+
label: "Completion Metrics",
|
|
108
|
+
columns: [
|
|
109
|
+
{
|
|
110
|
+
accessor: "completedClasses",
|
|
111
|
+
label: "Completed Classes",
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
accessor: "classCompletionRate",
|
|
115
|
+
label: "Class Completion Rate",
|
|
116
|
+
},
|
|
117
|
+
],
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
label: "Attendance",
|
|
121
|
+
columns: [
|
|
122
|
+
{
|
|
123
|
+
accessor: "attendanceRate",
|
|
124
|
+
label: "Attendance Rate",
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
accessor: "scheduledMeetings",
|
|
128
|
+
label: "Scheduled Meetings",
|
|
129
|
+
},
|
|
130
|
+
],
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
},
|
|
134
|
+
] %>
|
|
135
|
+
<%= pb_rails("caption", props: { text: "Advanced Table Vertical Border Multi Header with Column Group Border Color" }) %>
|
|
136
|
+
<%= pb_rails("advanced_table", props: { id: "beta_table_with_color_headers", margin_bottom: "md", table_data: @table_data, column_definitions: column_definitions_three, column_group_border_color: "text_lt_default", table_props: { vertical_border: true } }) %>
|
|
137
|
+
|
|
138
|
+
<% column_definitions_four = [
|
|
139
|
+
{
|
|
140
|
+
accessor: "year",
|
|
141
|
+
label: "Year",
|
|
142
|
+
cellAccessors: ["quarter", "month", "day"],
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
label: "Enrollment Data",
|
|
146
|
+
columns: [
|
|
147
|
+
{
|
|
148
|
+
label: "Enrollment Stats",
|
|
149
|
+
columns: [
|
|
150
|
+
{
|
|
151
|
+
accessor: "newEnrollments",
|
|
152
|
+
label: "New Enrollments",
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
accessor: "scheduledMeetings",
|
|
156
|
+
label: "Scheduled Meetings",
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
},
|
|
160
|
+
],
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
label: "Performance Data",
|
|
164
|
+
columns: [
|
|
165
|
+
{
|
|
166
|
+
label: "Completion Metrics",
|
|
167
|
+
columns: [
|
|
168
|
+
{
|
|
169
|
+
accessor: "completedClasses",
|
|
170
|
+
label: "Completed Classes",
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
accessor: "classCompletionRate",
|
|
174
|
+
label: "Class Completion Rate",
|
|
175
|
+
},
|
|
176
|
+
],
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
label: "Attendance",
|
|
180
|
+
columns: [
|
|
181
|
+
{
|
|
182
|
+
accessor: "attendanceRate",
|
|
183
|
+
label: "Attendance Rate",
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
accessor: "scheduledMeetings",
|
|
187
|
+
label: "Scheduled Meetings",
|
|
188
|
+
},
|
|
189
|
+
],
|
|
190
|
+
},
|
|
191
|
+
],
|
|
192
|
+
},
|
|
193
|
+
] %>
|
|
194
|
+
<%= pb_rails("caption", props: { text: "Advanced Table Vertical Border Multi Header No Vertical Border" }) %>
|
|
195
|
+
<%= pb_rails("advanced_table", props: {id: "beta_table_with_muilti_headers", table_data: @table_data, column_definitions: column_definitions_four }) %>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import AdvancedTable from '../../pb_advanced_table/_advanced_table'
|
|
3
3
|
import MOCK_DATA from "./advanced_table_mock_data.json"
|
|
4
|
+
import Caption from "../../pb_caption/_caption"
|
|
4
5
|
|
|
5
6
|
const AdvancedTableTableProps = (props) => {
|
|
6
7
|
const columnDefinitions = [
|
|
@@ -40,14 +41,203 @@ const AdvancedTableTableProps = (props) => {
|
|
|
40
41
|
verticalBorder: true
|
|
41
42
|
}
|
|
42
43
|
|
|
44
|
+
const columnDefinitionsTwo = [
|
|
45
|
+
{
|
|
46
|
+
accessor: "year",
|
|
47
|
+
label: "Year",
|
|
48
|
+
cellAccessors: ["quarter", "month", "day"],
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
label: "Enrollment Data",
|
|
52
|
+
columns: [
|
|
53
|
+
{
|
|
54
|
+
accessor: "newEnrollments",
|
|
55
|
+
label: "New Enrollments",
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
accessor: "scheduledMeetings",
|
|
59
|
+
label: "Scheduled Meetings",
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
label: "Performance Data",
|
|
65
|
+
columns: [
|
|
66
|
+
{
|
|
67
|
+
accessor: "attendanceRate",
|
|
68
|
+
label: "Attendance Rate",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
accessor: "completedClasses",
|
|
72
|
+
label: "Completed Classes",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
accessor: "classCompletionRate",
|
|
76
|
+
label: "Class Completion Rate",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
accessor: "graduatedStudents",
|
|
80
|
+
label: "Graduated Students",
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
},
|
|
84
|
+
];
|
|
85
|
+
|
|
86
|
+
const tablePropsTwo = {
|
|
87
|
+
verticalBorder: true,
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
const columnDefinitionsThree = [
|
|
91
|
+
{
|
|
92
|
+
accessor: "year",
|
|
93
|
+
label: "Year",
|
|
94
|
+
cellAccessors: ["quarter", "month", "day"],
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
label: "Enrollment Data",
|
|
98
|
+
columns: [
|
|
99
|
+
{
|
|
100
|
+
label: "Enrollment Stats",
|
|
101
|
+
columns: [
|
|
102
|
+
{
|
|
103
|
+
accessor: "newEnrollments",
|
|
104
|
+
label: "New Enrollments",
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
accessor: "scheduledMeetings",
|
|
108
|
+
label: "Scheduled Meetings",
|
|
109
|
+
},
|
|
110
|
+
],
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
label: "Performance Data",
|
|
116
|
+
columns: [
|
|
117
|
+
{
|
|
118
|
+
label: "Completion Metrics",
|
|
119
|
+
columns: [
|
|
120
|
+
{
|
|
121
|
+
accessor: "completedClasses",
|
|
122
|
+
label: "Completed Classes",
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
accessor: "classCompletionRate",
|
|
126
|
+
label: "Class Completion Rate",
|
|
127
|
+
},
|
|
128
|
+
],
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
label: "Attendance",
|
|
132
|
+
columns: [
|
|
133
|
+
{
|
|
134
|
+
accessor: "attendanceRate",
|
|
135
|
+
label: "Attendance Rate",
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
accessor: "scheduledMeetings",
|
|
139
|
+
label: "Scheduled Meetings",
|
|
140
|
+
},
|
|
141
|
+
],
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
},
|
|
145
|
+
];
|
|
146
|
+
|
|
147
|
+
const tablePropsThree = {
|
|
148
|
+
verticalBorder: true
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
const columnDefinitionsFour = [
|
|
152
|
+
{
|
|
153
|
+
accessor: "year",
|
|
154
|
+
label: "Year",
|
|
155
|
+
cellAccessors: ["quarter", "month", "day"],
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
label: "Enrollment Data",
|
|
159
|
+
columns: [
|
|
160
|
+
{
|
|
161
|
+
label: "Enrollment Stats",
|
|
162
|
+
columns: [
|
|
163
|
+
{
|
|
164
|
+
accessor: "newEnrollments",
|
|
165
|
+
label: "New Enrollments",
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
accessor: "scheduledMeetings",
|
|
169
|
+
label: "Scheduled Meetings",
|
|
170
|
+
},
|
|
171
|
+
],
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
label: "Performance Data",
|
|
177
|
+
columns: [
|
|
178
|
+
{
|
|
179
|
+
label: "Completion Metrics",
|
|
180
|
+
columns: [
|
|
181
|
+
{
|
|
182
|
+
accessor: "completedClasses",
|
|
183
|
+
label: "Completed Classes",
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
accessor: "classCompletionRate",
|
|
187
|
+
label: "Class Completion Rate",
|
|
188
|
+
},
|
|
189
|
+
],
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
label: "Attendance",
|
|
193
|
+
columns: [
|
|
194
|
+
{
|
|
195
|
+
accessor: "attendanceRate",
|
|
196
|
+
label: "Attendance Rate",
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
accessor: "scheduledMeetings",
|
|
200
|
+
label: "Scheduled Meetings",
|
|
201
|
+
},
|
|
202
|
+
],
|
|
203
|
+
},
|
|
204
|
+
],
|
|
205
|
+
},
|
|
206
|
+
];
|
|
207
|
+
|
|
43
208
|
return (
|
|
44
209
|
<div>
|
|
210
|
+
<Caption text="Advanced Table Vertical Border Table Props" />
|
|
45
211
|
<AdvancedTable
|
|
46
212
|
columnDefinitions={columnDefinitions}
|
|
213
|
+
marginBottom="md"
|
|
47
214
|
tableData={MOCK_DATA}
|
|
48
215
|
tableProps={tableProps}
|
|
49
216
|
{...props}
|
|
50
217
|
/>
|
|
218
|
+
<Caption text="Advanced Table Vertical Border Multi Header" />
|
|
219
|
+
<AdvancedTable
|
|
220
|
+
columnDefinitions={columnDefinitionsTwo}
|
|
221
|
+
marginBottom="md"
|
|
222
|
+
tableData={MOCK_DATA}
|
|
223
|
+
tableProps={tablePropsTwo}
|
|
224
|
+
{...props}
|
|
225
|
+
/>
|
|
226
|
+
<Caption text="Advanced Table Vertical Border Multi Header with Column Group Border Color" />
|
|
227
|
+
<AdvancedTable
|
|
228
|
+
columnDefinitions={columnDefinitionsThree}
|
|
229
|
+
columnGroupBorderColor="text_lt_default"
|
|
230
|
+
marginBottom="md"
|
|
231
|
+
tableData={MOCK_DATA}
|
|
232
|
+
tableProps={tablePropsThree}
|
|
233
|
+
{...props}
|
|
234
|
+
/>
|
|
235
|
+
<Caption text="Advanced Table Vertical Border Multi Header No Vertical Border" />
|
|
236
|
+
<AdvancedTable
|
|
237
|
+
columnDefinitions={columnDefinitionsFour}
|
|
238
|
+
tableData={MOCK_DATA}
|
|
239
|
+
{...props}
|
|
240
|
+
/>
|
|
51
241
|
</div>
|
|
52
242
|
)
|
|
53
243
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
import CopyButton from '../../pb_copy_button/_copy_button'
|
|
4
|
+
import Textarea from '../../pb_textarea/_textarea'
|
|
5
|
+
|
|
6
|
+
const CopyIconVariant = (props) => (
|
|
7
|
+
<div>
|
|
8
|
+
<CopyButton
|
|
9
|
+
{...props}
|
|
10
|
+
text="Copy Text"
|
|
11
|
+
tooltipPlacement="right"
|
|
12
|
+
tooltipText="Text copied!"
|
|
13
|
+
value="Playbook makes it easy to support bleeding edge, or legacy systems. Use Playbook’s 200+ components and end-to-end design language to create simple, intuitive and beautiful experiences with ease."
|
|
14
|
+
variant="icon"
|
|
15
|
+
/>
|
|
16
|
+
|
|
17
|
+
<Textarea
|
|
18
|
+
{...props}
|
|
19
|
+
placeholder="Copy and paste here"
|
|
20
|
+
/>
|
|
21
|
+
</div>
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
export default CopyIconVariant
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Pass in `variant="icon"` to replace the Button with the Circle Icon Button kit.
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export { default as CopyButtonDefault } from './_copy_button_default.jsx'
|
|
2
2
|
export { default as CopyButtonFrom } from './_copy_button_from.jsx'
|
|
3
3
|
export { default as CopyButtonHook } from './_copy_button_hook.jsx'
|
|
4
|
+
export { default as CopyButtonIconVariant } from './_copy_button_icon_variant.jsx'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Abbreviate larger amounts into thousands (K), millions (M), billions (B), and even trillions (T).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Use `decimals: "matching"` when you want the full decimal amount displayed as a single number rather than split visually.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Use `decimals="matching"` when you want the full decimal amount displayed as a single number rather than split visually.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Small `Currency` kits have the negative sign on the lefthand side of the "$" symbol.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Remove the "$" symbol by setting an empty string: `symbol: ""`.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Remove the "$" symbol by setting an empty string: `symbol=""`.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Use to display monetary amounts, typically on dashboards or other layouts to show an overview or summary.
|
|
2
|
-
Cents
|
|
1
|
+
Use this kit to display monetary amounts, typically on dashboards or other layouts to show an overview or summary. Pairing it with labels improves user understanding.
|
|
2
|
+
Cents are automatically ".00" unless otherwise overwritten (i.e. `unit` prop).
|
data/app/pb_kits/playbook/pb_date_range_inline/docs/_date_range_inline_show_current_year.html.erb
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<%= pb_rails("date_range_inline", props: { start_date: Date.new(Date.current.year, 10, 31), end_date: Date.new(Date.current.year, 12, 7), size: "xs", show_current_year: true }) %>
|
|
2
|
+
<%= pb_rails("date_range_inline", props: { start_date: Date.new(Date.current.year, 10, 31), end_date: Date.new(Date.current.year, 12, 7), show_current_year: true }) %>
|
|
3
|
+
<%= pb_rails("date_range_inline", props: { start_date: Date.new(Date.current.year, 10, 31), end_date: Date.new(Date.current.year, 12, 7), align: "center", icon: true, size: "xs", show_current_year: true }) %>
|
|
4
|
+
<%= pb_rails("date_range_inline", props: { start_date: Date.new(Date.current.year, 10, 31), end_date: Date.new(Date.current.year, 12, 7), align: "center", icon: true, show_current_year: true }) %>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import DateRangeInline from '../_date_range_inline'
|
|
3
|
+
|
|
4
|
+
const DateRangeInlineShowCurrentYear = (props) => {
|
|
5
|
+
return (
|
|
6
|
+
<div>
|
|
7
|
+
<DateRangeInline
|
|
8
|
+
endDate={new Date(`7 Dec ${new Date().getFullYear()}`)}
|
|
9
|
+
showCurrentYear
|
|
10
|
+
size="xs"
|
|
11
|
+
startDate={new Date(`31 Oct ${new Date().getFullYear()}`)}
|
|
12
|
+
{...props}
|
|
13
|
+
/>
|
|
14
|
+
<DateRangeInline
|
|
15
|
+
endDate={new Date(`7 Dec ${new Date().getFullYear()}`)}
|
|
16
|
+
showCurrentYear
|
|
17
|
+
size="sm"
|
|
18
|
+
startDate={new Date(`31 Oct ${new Date().getFullYear()}`)}
|
|
19
|
+
{...props}
|
|
20
|
+
/>
|
|
21
|
+
<DateRangeInline
|
|
22
|
+
align="center"
|
|
23
|
+
endDate={new Date(`7 Dec ${new Date().getFullYear()}`)}
|
|
24
|
+
icon
|
|
25
|
+
showCurrentYear
|
|
26
|
+
size="xs"
|
|
27
|
+
startDate={new Date(`31 Oct ${new Date().getFullYear()}`)}
|
|
28
|
+
{...props}
|
|
29
|
+
/>
|
|
30
|
+
<DateRangeInline
|
|
31
|
+
align="center"
|
|
32
|
+
endDate={new Date(`7 Dec ${new Date().getFullYear()}`)}
|
|
33
|
+
icon
|
|
34
|
+
showCurrentYear
|
|
35
|
+
size="sm"
|
|
36
|
+
startDate={new Date(`31 Oct ${new Date().getFullYear()}`)}
|
|
37
|
+
{...props}
|
|
38
|
+
/>
|
|
39
|
+
</div>
|
|
40
|
+
)
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export default DateRangeInlineShowCurrentYear
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
By default, the Date Range Inline kit does NOT display the year if it is the current year. If you want to display the current year you can do so by setting `showCurrentYear`/`show_current_year` to true as shown here.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Use to display a date range.
|
|
1
|
+
Use to display a date range.
|
|
@@ -2,11 +2,12 @@ examples:
|
|
|
2
2
|
|
|
3
3
|
rails:
|
|
4
4
|
- date_range_inline_default: Default
|
|
5
|
-
|
|
5
|
+
- date_range_inline_show_current_year: Show Current Year
|
|
6
6
|
|
|
7
7
|
react:
|
|
8
8
|
- date_range_inline_default: Default
|
|
9
|
-
|
|
9
|
+
- date_range_inline_show_current_year: Show Current Year
|
|
10
|
+
|
|
10
11
|
swift:
|
|
11
12
|
- date_range_inline_default_swift: Default
|
|
12
13
|
- date_range_inline_props_swift: ""
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import DateStacked from '../_date_stacked'
|
|
3
3
|
|
|
4
|
-
const
|
|
4
|
+
const DateStackedCurrentYear = (props) => {
|
|
5
5
|
return (
|
|
6
6
|
<div>
|
|
7
7
|
|
|
8
8
|
<DateStacked
|
|
9
|
-
date={new Date(
|
|
9
|
+
date={new Date()}
|
|
10
|
+
showCurrentYear
|
|
10
11
|
size="sm"
|
|
11
12
|
{...props}
|
|
12
13
|
/>
|
|
@@ -14,13 +15,13 @@ const DateStackedNotCurrentYear = (props) => {
|
|
|
14
15
|
<br />
|
|
15
16
|
|
|
16
17
|
<DateStacked
|
|
17
|
-
date={new Date(
|
|
18
|
+
date={new Date()}
|
|
19
|
+
showCurrentYear
|
|
18
20
|
size="md"
|
|
19
21
|
{...props}
|
|
20
22
|
/>
|
|
21
|
-
|
|
22
23
|
</div>
|
|
23
24
|
)
|
|
24
25
|
}
|
|
25
26
|
|
|
26
|
-
export default
|
|
27
|
+
export default DateStackedCurrentYear
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
By default, the Date Stacked kit does NOT display the year if it is the current year. If you want to display the current year you can do so by setting `showCurrentYear`/`show_current_year` to true as shown here.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Use to display the date, stacking month and day.
|
|
1
|
+
Use to display the date, stacking month and day.
|