playbook_ui 15.6.0.pre.alpha.play265012993 → 15.6.0.pre.rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_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_background/_background.tsx +6 -6
- data/app/pb_kits/playbook/pb_background/background.test.js +1 -5
- data/app/pb_kits/playbook/pb_background/docs/_background_light.html.erb +1 -1
- data/app/pb_kits/playbook/pb_background/docs/_background_light.jsx +1 -0
- data/app/pb_kits/playbook/pb_background/docs/example.yml +2 -2
- data/app/pb_kits/playbook/pb_bar_graph/_bar_graph.tsx +0 -6
- data/app/pb_kits/playbook/pb_card/docs/_card_header.md +1 -1
- data/app/pb_kits/playbook/pb_card/docs/_card_highlight.md +1 -1
- data/app/pb_kits/playbook/pb_collapsible/__snapshots__/collapsible.test.js.snap +2 -2
- data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleIcon.tsx +8 -10
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_icons.jsx +1 -0
- data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_state.jsx +3 -0
- data/app/pb_kits/playbook/pb_date_picker/date_picker.test.js +0 -24
- data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.ts +3 -181
- data/app/pb_kits/playbook/pb_dialog/docs/_dialog_compound_components.html.erb +0 -31
- data/app/pb_kits/playbook/pb_distribution_bar/docs/_distribution_bar_custom_colors.md +1 -1
- data/app/pb_kits/playbook/pb_draggable/context/index.tsx +7 -458
- data/app/pb_kits/playbook/pb_draggable/context/types.ts +3 -8
- data/app/pb_kits/playbook/pb_draggable/docs/example.yml +2 -3
- data/app/pb_kits/playbook/pb_draggable/docs/index.js +1 -2
- data/app/pb_kits/playbook/pb_draggable/draggable.test.jsx +1 -77
- data/app/pb_kits/playbook/pb_file_upload/_file_upload.scss +4 -4
- data/app/pb_kits/playbook/pb_home_address_street/_home_address_street.tsx +22 -34
- data/app/pb_kits/playbook/pb_home_address_street/city_emphasis.html.erb +12 -16
- data/app/pb_kits/playbook/pb_home_address_street/docs/_home_address_street_default.html.erb +1 -1
- data/app/pb_kits/playbook/pb_home_address_street/none_emphasis.html.erb +12 -16
- data/app/pb_kits/playbook/pb_home_address_street/street_emphasis.html.erb +12 -16
- data/app/pb_kits/playbook/pb_legend/_legend.tsx +1 -6
- data/app/pb_kits/playbook/pb_legend/legend.html.erb +0 -1
- data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.scss +0 -10
- data/app/pb_kits/playbook/pb_multiple_users/_multiple_users.tsx +15 -66
- data/app/pb_kits/playbook/pb_multiple_users/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_multiple_users/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_multiple_users/multiple_users.test.js +0 -25
- data/app/pb_kits/playbook/pb_phone_number_input/_phone_number_input.tsx +10 -44
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_validation.html.erb +4 -34
- data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_validation.jsx +7 -16
- data/app/pb_kits/playbook/pb_radio/docs/_radio_error.md +1 -1
- data/app/pb_kits/playbook/pb_select/_select.tsx +3 -8
- data/app/pb_kits/playbook/pb_select/docs/_select_error.md +1 -1
- data/app/pb_kits/playbook/pb_select/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_select/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_select/select.html.erb +2 -2
- data/app/pb_kits/playbook/pb_select/select.rb +1 -3
- data/app/pb_kits/playbook/pb_select/select.test.js +0 -23
- data/app/pb_kits/playbook/pb_text_input/docs/_text_input_error.md +1 -1
- data/app/pb_kits/playbook/pb_textarea/docs/_textarea_error.md +1 -1
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.test.jsx +0 -15
- data/app/pb_kits/playbook/pb_typeahead/_typeahead.tsx +0 -3
- data/app/pb_kits/playbook/pb_typeahead/components/ClearIndicator.tsx +2 -13
- data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.tsx +1 -6
- data/app/pb_kits/playbook/pb_typeahead/components/ValueContainer.tsx +7 -34
- data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_typeahead/docs/index.js +1 -2
- data/app/pb_kits/playbook/pb_typeahead/typeahead.rb +1 -6
- data/app/pb_kits/playbook/tokens/_colors.scss +1 -2
- data/dist/chunks/_typeahead-kRdz5zPn.js +6 -0
- data/dist/chunks/lib-CgpqUb6l.js +29 -0
- data/dist/chunks/vendor.js +2 -2
- data/dist/menu.yml +2 -3
- 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 -9
- data/lib/playbook/forms/builder/select_field.rb +1 -9
- data/lib/playbook/forms/builder/time_zone_select_field.rb +1 -9
- data/lib/playbook/pb_kit_helper.rb +0 -35
- data/lib/playbook/version.rb +2 -2
- metadata +4 -16
- data/app/pb_kits/playbook/pb_background/docs/_background_light.md +0 -1
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_dropzone.jsx +0 -180
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_multiple_containers_dropzone.md +0 -22
- data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_with_tooltip.jsx +0 -42
- data/app/pb_kits/playbook/pb_multiple_users/docs/_multiple_users_with_tooltip.md +0 -1
- data/app/pb_kits/playbook/pb_select/docs/_select_input_options.html.erb +0 -16
- data/app/pb_kits/playbook/pb_select/docs/_select_input_options.jsx +0 -30
- data/app/pb_kits/playbook/pb_select/docs/_select_input_options.md +0 -1
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_input_display.html.erb +0 -30
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_input_display.jsx +0 -37
- data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_input_display.md +0 -3
- data/app/pb_kits/playbook/utilities/deprecated.ts +0 -73
- data/dist/chunks/_typeahead-DMyvWpig.js +0 -6
- data/dist/chunks/lib-DDDLiZuu.js +0 -29
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2851c07d23768f59137cd7cb0ba34884e25960c1bc8700573a62c3aaa1004f83
|
|
4
|
+
data.tar.gz: 74e6d86e0807f31e01ece7b7f3d620cea86367dfee7150493273543fb1ed682d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a38283f21f3c2b2f2bb7132f27f6cf8fc161cd9f1fd3476f4521df857859c15960bd1e5b82857839d214b8c531adcf0082834eb6daf6a0fbc3df1ffb93b26d08
|
|
7
|
+
data.tar.gz: 3e9aff80d60e0f20a4ce59810a631d167798f0abe3a3d54962b0ba66c9d9267dfc1bbcddbb3d9b6a03c66d3467cf1c6f0be574254344773b04b47359fc90a564
|
|
@@ -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
|
}
|
|
@@ -102,16 +102,16 @@ const Background = (props: BackgroundProps): React.ReactElement => {
|
|
|
102
102
|
useEffect(() => {
|
|
103
103
|
const updateResponsiveProps = () => {
|
|
104
104
|
setResponsiveProps({
|
|
105
|
-
backgroundSize: getResponsiveValue(backgroundSize),
|
|
106
|
-
backgroundPosition: getResponsiveValue(backgroundPosition),
|
|
107
|
-
backgroundRepeat: getResponsiveValue(backgroundRepeat),
|
|
108
|
-
backgroundColor: getResponsiveValue(backgroundColor),
|
|
109
|
-
imageUrl: getResponsiveValue(imageUrl),
|
|
105
|
+
backgroundSize: getResponsiveValue(props.backgroundSize),
|
|
106
|
+
backgroundPosition: getResponsiveValue(props.backgroundPosition),
|
|
107
|
+
backgroundRepeat: getResponsiveValue(props.backgroundRepeat),
|
|
108
|
+
backgroundColor: getResponsiveValue(props.backgroundColor),
|
|
109
|
+
imageUrl: getResponsiveValue(props.imageUrl),
|
|
110
110
|
});
|
|
111
111
|
};
|
|
112
112
|
window.addEventListener('resize', updateResponsiveProps);
|
|
113
113
|
return () => window.removeEventListener('resize', updateResponsiveProps);
|
|
114
|
-
}, [
|
|
114
|
+
}, [props]);
|
|
115
115
|
|
|
116
116
|
|
|
117
117
|
// Extract currently applicable responsive values.
|
|
@@ -4,6 +4,7 @@ import Background from './_background'
|
|
|
4
4
|
|
|
5
5
|
const props = {
|
|
6
6
|
data: { testid: 'background' },
|
|
7
|
+
backgroundColor: null,
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
it('Should be accessible', async () => {
|
|
@@ -41,8 +42,3 @@ test('applies correct overlay class when imageOverlay prop is provided', () => {
|
|
|
41
42
|
const kit = renderKit(Background, props, { imageOverlay: 'opacity_6' });
|
|
42
43
|
expect(kit).toHaveClass('imageoverlay_opacity_6');
|
|
43
44
|
});
|
|
44
|
-
|
|
45
|
-
test('Sets backgroundColor to light as default when no backgroundColor prop is provided', () => {
|
|
46
|
-
const kit = renderKit(Background, props);
|
|
47
|
-
expect(kit).toHaveClass('pb_background_color_light');
|
|
48
|
-
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
examples:
|
|
2
2
|
|
|
3
3
|
rails:
|
|
4
|
-
- background_light:
|
|
4
|
+
- background_light: Light
|
|
5
5
|
- background_white: White
|
|
6
6
|
- background_gradient: Gradient
|
|
7
7
|
- background_image: Image
|
|
@@ -11,7 +11,7 @@ examples:
|
|
|
11
11
|
- background_size: Size
|
|
12
12
|
|
|
13
13
|
react:
|
|
14
|
-
- background_light:
|
|
14
|
+
- background_light: Light
|
|
15
15
|
- background_white: White
|
|
16
16
|
- background_gradient: Gradient
|
|
17
17
|
- background_image: Image
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import React, { useState, useEffect } from "react";
|
|
2
2
|
import { globalProps } from "../utilities/globalProps";
|
|
3
3
|
import { buildAriaProps, buildDataProps, buildHtmlProps } from "../utilities/props";
|
|
4
|
-
import { deprecatedKitWarning } from "../utilities/deprecated";
|
|
5
4
|
|
|
6
5
|
import HighchartsReact from "highcharts-react-official";
|
|
7
6
|
import Highcharts from "highcharts";
|
|
@@ -169,11 +168,6 @@ if (Array.isArray(axisTitle) && axisTitle.length > 1 && axisTitle[1].name) {
|
|
|
169
168
|
|
|
170
169
|
const [options, setOptions] = useState({});
|
|
171
170
|
|
|
172
|
-
useEffect(() => {
|
|
173
|
-
// Warn about deprecated kit (only once per page load, dev mode only)
|
|
174
|
-
deprecatedKitWarning('BarGraph', 'Please use "PbBarGraph" instead.');
|
|
175
|
-
}, []);
|
|
176
|
-
|
|
177
171
|
useEffect(() => {
|
|
178
172
|
setOptions(merge(staticOptions, customOptions));
|
|
179
173
|
}, [chartData]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Card headers pass category, product, status and background colors only. List of all category, product, status and background colors can be viewed <a href="https://playbook.powerapp.cloud/
|
|
1
|
+
Card headers pass category, product, status and background colors only. List of all category, product, status and background colors can be viewed <a href="https://playbook.powerapp.cloud/token/colors" target="_blank">here</a>.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
Card highlight can pass status, product, and category colors. List of all colors can be viewed <a href="https://playbook.powerapp.cloud/
|
|
1
|
+
Card highlight can pass status, product, and category colors. List of all colors can be viewed <a href="https://playbook.powerapp.cloud/token/colors" target="_blank">here</a>.
|
|
@@ -25,11 +25,11 @@ exports[`html structure is correct 1`] = `
|
|
|
25
25
|
>
|
|
26
26
|
<div
|
|
27
27
|
class="icon_wrapper"
|
|
28
|
-
style="vertical-align: middle;"
|
|
28
|
+
style="vertical-align: middle; color: rgb(193, 205, 214);"
|
|
29
29
|
>
|
|
30
30
|
<svg
|
|
31
31
|
aria-label="chevron-down icon"
|
|
32
|
-
class="pb_custom_icon svg-inline--fa
|
|
32
|
+
class="pb_custom_icon svg-inline--fa svg_lg svg_fw"
|
|
33
33
|
color="currentColor"
|
|
34
34
|
fill="none"
|
|
35
35
|
height="auto"
|
|
@@ -27,12 +27,12 @@ type colorMap = {
|
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
const colorMap = {
|
|
30
|
-
default:"
|
|
31
|
-
light: "
|
|
32
|
-
lighter: "
|
|
33
|
-
link: "
|
|
34
|
-
error: "
|
|
35
|
-
success: "
|
|
30
|
+
default: "#242B42",
|
|
31
|
+
light: "#687887",
|
|
32
|
+
lighter: "#C1CDD6",
|
|
33
|
+
link: "#0056CF",
|
|
34
|
+
error: "#FF2229",
|
|
35
|
+
success: "#00CA74",
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
const CollapsibleIcon = ({
|
|
@@ -68,10 +68,9 @@ const CollapsibleIcon = ({
|
|
|
68
68
|
className="icon_wrapper"
|
|
69
69
|
key={icon ? showIcon(icon)[0] : "chevron-down"}
|
|
70
70
|
onClick={(e) => handleIconClick(e)}
|
|
71
|
-
style={{ verticalAlign: "middle"}}
|
|
71
|
+
style={{ verticalAlign: "middle", color: color }}
|
|
72
72
|
>
|
|
73
73
|
<Icon
|
|
74
|
-
color={color}
|
|
75
74
|
icon={icon ? showIcon(icon)[0] : "chevron-down"}
|
|
76
75
|
size={iconSize}
|
|
77
76
|
/>
|
|
@@ -81,10 +80,9 @@ const CollapsibleIcon = ({
|
|
|
81
80
|
className="icon_wrapper"
|
|
82
81
|
key={icon ? showIcon(icon)[1] : "chevron-up"}
|
|
83
82
|
onClick={(e) => handleIconClick(e)}
|
|
84
|
-
style={{ verticalAlign: "middle" }}
|
|
83
|
+
style={{ verticalAlign: "middle", color: color }}
|
|
85
84
|
>
|
|
86
85
|
<Icon
|
|
87
|
-
color={color}
|
|
88
86
|
icon={icon ? showIcon(icon)[1] : "chevron-up"}
|
|
89
87
|
size={iconSize}
|
|
90
88
|
/>
|
|
@@ -22,6 +22,7 @@ const CollapsibleState = (props) => {
|
|
|
22
22
|
<Collapsible
|
|
23
23
|
collapsed={isCollapsed}
|
|
24
24
|
icon={["plus", "minus"]}
|
|
25
|
+
iconColor='white'
|
|
25
26
|
padding="none"
|
|
26
27
|
>
|
|
27
28
|
<Collapsible.Main padding="sm"
|
|
@@ -40,6 +41,7 @@ const CollapsibleState = (props) => {
|
|
|
40
41
|
<Collapsible
|
|
41
42
|
collapsed={isCollapsed}
|
|
42
43
|
icon={["plus", "minus"]}
|
|
44
|
+
iconColor='white'
|
|
43
45
|
padding="none"
|
|
44
46
|
>
|
|
45
47
|
<Collapsible.Main padding="sm"
|
|
@@ -58,6 +60,7 @@ const CollapsibleState = (props) => {
|
|
|
58
60
|
<Collapsible
|
|
59
61
|
collapsed={isCollapsed}
|
|
60
62
|
icon={["plus", "minus"]}
|
|
63
|
+
iconColor='white'
|
|
61
64
|
padding="none"
|
|
62
65
|
>
|
|
63
66
|
<Collapsible.Main padding="sm"
|
|
@@ -251,28 +251,4 @@ describe('DatePicker Kit', () => {
|
|
|
251
251
|
expect(input).toHaveValue(DateTime.getYearStartDate(new Date()).formatDate() + " to " + new Date().formatDate())
|
|
252
252
|
})
|
|
253
253
|
})
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
test('displays defaultDate when it is later than maxDate', async () => {
|
|
257
|
-
const testId = 'datepicker-out-of-range-after'
|
|
258
|
-
const futureDateString = '01/15/2020'
|
|
259
|
-
const maxDateString = '01/10/2020'
|
|
260
|
-
|
|
261
|
-
render(
|
|
262
|
-
<DatePicker
|
|
263
|
-
data={{ testid: testId }}
|
|
264
|
-
defaultDate={futureDateString}
|
|
265
|
-
format="m/d/Y"
|
|
266
|
-
maxDate={maxDateString}
|
|
267
|
-
pickerId="date-picker-out-of-range-after"
|
|
268
|
-
/>
|
|
269
|
-
)
|
|
270
|
-
|
|
271
|
-
const kit = screen.getByTestId(testId)
|
|
272
|
-
const input = within(kit).getByPlaceholderText('Select Date')
|
|
273
|
-
|
|
274
|
-
await waitFor(() => {
|
|
275
|
-
expect(input).toHaveValue('01/15/2020')
|
|
276
|
-
}, { timeout: 5000 })
|
|
277
|
-
})
|
|
278
254
|
})
|