playbook_ui_docs 15.4.0.pre.alpha.PLAY2556advancedtablefirstcolumnborder12527 → 15.4.0.pre.alpha.PLAY2582rails722112532

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.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.jsx +2 -1
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_column_headers.jsx +1 -1
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_fullscreen.jsx +3 -1
  5. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_infinite_scroll.jsx +1 -1
  6. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_inline_editing.jsx +3 -1
  7. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_row_styling.jsx +2 -1
  8. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.html.erb +1 -163
  9. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_table_props.jsx +0 -190
  10. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_button_variant.html.erb +9 -0
  11. data/app/pb_kits/playbook/pb_copy_button/docs/{_copy_button_icon_variant.jsx → _copy_button_button_variant.jsx} +4 -4
  12. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_button_variant_rails.md +1 -0
  13. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_button_variant_react.md +1 -0
  14. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_default.html.erb +2 -2
  15. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_default.jsx +1 -2
  16. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_from.html.erb +2 -2
  17. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_from.jsx +2 -0
  18. data/app/pb_kits/playbook/pb_copy_button/docs/example.yml +2 -1
  19. data/app/pb_kits/playbook/pb_copy_button/docs/index.js +1 -1
  20. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_alignment.jsx +2 -1
  21. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_default.jsx +2 -1
  22. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_orientation.jsx +2 -1
  23. data/app/pb_kits/playbook/pb_empty_state/docs/_empty_state_size.jsx +2 -1
  24. data/app/pb_kits/playbook/pb_form_pill/docs/_form_pill_wrapped.jsx +4 -1
  25. data/app/pb_kits/playbook/pb_loading_inline/docs/_loading_inline_variant.jsx +1 -1
  26. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_colors.jsx +1 -1
  27. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_default.jsx +1 -1
  28. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_height.jsx +1 -1
  29. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_horizontal.jsx +1 -1
  30. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_legend.jsx +1 -1
  31. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_legend_non_clickable.jsx +1 -2
  32. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_legend_position.jsx +1 -1
  33. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_negative_numbers.jsx +1 -1
  34. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_secondary_y_axis.jsx +1 -1
  35. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_spline.jsx +1 -2
  36. data/app/pb_kits/playbook/pb_pb_bar_graph/docs/_pb_bar_graph_stacked.jsx +1 -2
  37. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_block_content.jsx +2 -1
  38. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_color_overrides.jsx +2 -1
  39. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_custom_tooltip.jsx +1 -1
  40. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_legend_position.jsx +2 -1
  41. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_with_labels.jsx +1 -1
  42. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_data_with_legend.jsx +1 -1
  43. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_default.jsx +1 -1
  44. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_inner_sizes.jsx +1 -1
  45. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_live_data.jsx +2 -1
  46. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_rounded.jsx +1 -1
  47. data/app/pb_kits/playbook/pb_pb_circle_chart/docs/_pb_circle_chart_with_title.jsx +1 -1
  48. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_color.jsx +1 -1
  49. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_complex.jsx +2 -1
  50. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_full_circle.jsx +2 -1
  51. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_height.jsx +2 -1
  52. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_min_max.jsx +2 -1
  53. data/app/pb_kits/playbook/pb_pb_gauge_chart/docs/_pb_gauge_chart_units.jsx +2 -1
  54. data/app/pb_kits/playbook/pb_pb_line_graph/docs/_pb_line_graph_colors.jsx +1 -1
  55. data/app/pb_kits/playbook/pb_popover/docs/_popover_append_to.jsx +4 -1
  56. data/app/pb_kits/playbook/pb_radio/docs/_radio_react_hook.jsx +3 -1
  57. data/app/pb_kits/playbook/pb_select/docs/_select_react_hook.jsx +3 -1
  58. data/app/pb_kits/playbook/pb_tooltip/docs/_tooltip_sizing.jsx +4 -1
  59. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_react_hook.jsx +2 -1
  60. data/app/pb_kits/playbook/pb_user/docs/_user_font_options.jsx +1 -1
  61. metadata +5 -4
  62. data/app/pb_kits/playbook/pb_copy_button/docs/_copy_button_icon_variant_react.md +0 -1
  63. data/dist/playbook-doc.js +0 -19
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b17682dc674336020489565fbf198cf269cc6adb3e304550713e871e0afc19df
4
- data.tar.gz: e4fbdcbaf6a1cd7aa0f19182d3f00694eeda0638faa872d2a7b6c6901ed184b3
3
+ metadata.gz: 646f50be1e2ceac112b7253b497e1a0b992a32a17c9ce7c3cbf8d1c5ce3920f2
4
+ data.tar.gz: d249a9d25b625ea7f8de4e31431fa0fb3c37e2a56bbdfb6f35bcaaa9cf7abb8a
5
5
  SHA512:
6
- metadata.gz: 4872b37458293820c2f89a83c91b9b88fe900e20c0f3170204e5b0d9772f48a23dc59b05dc498b39b374e3026cb8a542e1b26cf786d68af113adb1e38b7a4f4b
7
- data.tar.gz: b55de4262b62249ce1efd08006da146e3b57d03c131277c9f7058b6edad1d720e162c50068adef942883a31d91e8f444c28791566962650bacbbc7f01242250e
6
+ metadata.gz: 818ffac8cfa2b172de4873713e0542f28f1615bd70565facaf25ced1faef66da327597c295cd2e0b790e9142f1221c29cc23fa7c19dcb0f76edd693671f898c2
7
+ data.tar.gz: 0f27851d84b5aabe20b962473ffa1eba95c561abd1512af27d3d729dba5511a7f98ad78a7235e5f3dc47b81660c2446d05a530bd69cec96536cb8f1eff577235
@@ -1,5 +1,6 @@
1
1
  import React from "react"
2
- import { AdvancedTable, colors } from "playbook-ui"
2
+ import AdvancedTable from '../_advanced_table'
3
+ import colors from '../../tokens/exports/_colors.module.scss'
3
4
  import MOCK_DATA from "./advanced_table_mock_data.json"
4
5
 
5
6
 
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { AdvancedTable } from "playbook-ui";
2
+ import AdvancedTable from '../_advanced_table';
3
3
  import MOCK_DATA from "./advanced_table_mock_data.json";
4
4
 
5
5
  const AdvancedTableColumnStylingColumnHeaders = (props) => {
@@ -1,5 +1,7 @@
1
1
  import React, { useState } from "react"
2
- import { AdvancedTable, Button, Flex } from "playbook-ui"
2
+ import AdvancedTable from '../_advanced_table'
3
+ import Flex from '../../pb_flex/_flex'
4
+ import Button from '../../pb_button/_button'
3
5
  import MOCK_DATA from "./advanced_table_mock_data.json"
4
6
  import PAGINATION_MOCK_DATA from "./advanced_table_pagination_mock_data.json"
5
7
 
@@ -1,5 +1,5 @@
1
1
  import React from "react"
2
- import { AdvancedTable } from "playbook-ui"
2
+ import AdvancedTable from '../_advanced_table'
3
3
  import MOCK_DATA from "./advanced_table_mock_data_infinite_scroll.json"
4
4
 
5
5
  const AdvancedTableInfiniteScroll = (props) => {
@@ -1,5 +1,7 @@
1
1
  import React, { useState } from "react";
2
- import { AdvancedTable, TextInput, Body } from "playbook-ui";
2
+ import AdvancedTable from '../../pb_advanced_table/_advanced_table'
3
+ import TextInput from '../../pb_text_input/_text_input'
4
+ import Body from '../../pb_body/_body'
3
5
  import MOCK_DATA from "./advanced_table_mock_data.json";
4
6
 
5
7
  const AdvancedTableInlineEditing = (props) => {
@@ -1,7 +1,8 @@
1
1
  import React from "react"
2
2
  import AdvancedTable from '../_advanced_table'
3
3
  import MOCK_DATA from "./advanced_table_mock_data_with_id.json"
4
- import { colors } from "playbook-ui"
4
+ import colors from '../../tokens/exports/_colors.module.scss'
5
+
5
6
 
6
7
  const AdvancedTableRowStyling = (props) => {
7
8
  const columnDefinitions = [
@@ -29,167 +29,5 @@
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 }}) %>
34
32
 
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 }) %>
33
+ <%= pb_rails("advanced_table", props: { id: "table_props_table", table_data: @table_data, column_definitions: column_definitions, table_props: { vertical_border: true, container: false }}) %>
@@ -1,7 +1,6 @@
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"
5
4
 
6
5
  const AdvancedTableTableProps = (props) => {
7
6
  const columnDefinitions = [
@@ -41,203 +40,14 @@ const AdvancedTableTableProps = (props) => {
41
40
  verticalBorder: true
42
41
  }
43
42
 
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
-
208
43
  return (
209
44
  <div>
210
- <Caption text="Advanced Table Vertical Border Table Props" />
211
45
  <AdvancedTable
212
46
  columnDefinitions={columnDefinitions}
213
- marginBottom="md"
214
47
  tableData={MOCK_DATA}
215
48
  tableProps={tableProps}
216
49
  {...props}
217
50
  />
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
- />
241
51
  </div>
242
52
  )
243
53
  }
@@ -0,0 +1,9 @@
1
+ <%= pb_rails("copy_button", props: {
2
+ text: "Copy Text",
3
+ tooltip_position: "right",
4
+ tooltip_text: "Text copied!",
5
+ 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.",
6
+ variant: "button",
7
+ }) %>
8
+
9
+ <%= pb_rails("textarea", props: { margin_top: "xs", placeholder: "Copy and paste here" }) %>
@@ -1,9 +1,9 @@
1
1
  import React from 'react'
2
2
 
3
- import CopyButton from '../../pb_copy_button/_copy_button'
3
+ import CopyButton from '../_copy_button'
4
4
  import Textarea from '../../pb_textarea/_textarea'
5
5
 
6
- const CopyIconVariant = (props) => (
6
+ const CopyButtonVariant = (props) => (
7
7
  <div>
8
8
  <CopyButton
9
9
  {...props}
@@ -11,7 +11,7 @@ const CopyIconVariant = (props) => (
11
11
  tooltipPlacement="right"
12
12
  tooltipText="Text copied!"
13
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"
14
+ variant="button"
15
15
  />
16
16
 
17
17
  <Textarea
@@ -21,4 +21,4 @@ const CopyIconVariant = (props) => (
21
21
  </div>
22
22
  )
23
23
 
24
- export default CopyIconVariant
24
+ export default CopyButtonVariant
@@ -0,0 +1 @@
1
+ Pass in `variant: "button"` to replace the Circle Icon Button with the Button kit. Set the button's text with the `text` prop.
@@ -0,0 +1 @@
1
+ Pass in `variant="button"` to replace the Circle Icon Button with the Button kit. Set the button's text with the `text` prop.
@@ -1,2 +1,2 @@
1
- <%= pb_rails("copy_button", props: { id: "default-copy-button", text: "Copy Text", 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." } ) %>
2
- <%= pb_rails("textarea", props: { margin_top: "xs", placeholder: "Copy and paste here" }) %>
1
+ <%= pb_rails("copy_button", props: { id: "default-copy-button", 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." } ) %>
2
+ <%= pb_rails("textarea", props: { margin_top: "xs", placeholder: "Click the icon above to copy and paste here" }) %>
@@ -7,7 +7,6 @@ const CopyButtonDefault = (props) => (
7
7
  <div>
8
8
  <CopyButton
9
9
  {...props}
10
- text="Copy Text"
11
10
  tooltipPlacement="right"
12
11
  tooltipText="Text copied!"
13
12
  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."
@@ -15,7 +14,7 @@ const CopyButtonDefault = (props) => (
15
14
 
16
15
  <Textarea
17
16
  {...props}
18
- placeholder="Copy and paste here"
17
+ placeholder="Click the icon above to copy and paste here"
19
18
  />
20
19
  </div>
21
20
  )
@@ -1,5 +1,5 @@
1
1
  <%= pb_rails("body", props: { id: "body", text: "Copy this body text!"}) %>
2
- <%= pb_rails("copy_button", props: { text: "Copy Body text", from: "body", id: "copy-body-button" }) %>
2
+ <%= pb_rails("copy_button", props: { text: "Copy Body text", from: "body", id: "copy-body-button", variant: "button" }) %>
3
3
  <%= pb_rails("text_input", props: { margin_top: "xs", placeholder: "Copy and paste here" }) %>
4
- <%= pb_rails("copy_button", props: { text: "Copy Text Input", from: "copy-input", id: "copy-input-button" }) %>
4
+ <%= pb_rails("copy_button", props: { text: "Copy Text Input", from: "copy-input", id: "copy-input-button", variant: "button" }) %>
5
5
  <%= pb_rails("text_input", props: { margin_top: "xs", id: "copy-input" , value: "Copy and paste here" }) %>
@@ -21,6 +21,7 @@ const CopyButtonFrom = (props) => {
21
21
  text="Copy Body text"
22
22
  tooltipPlacement="right"
23
23
  tooltipText="Body text copied!"
24
+ variant="button"
24
25
  />
25
26
 
26
27
  <TextInput
@@ -36,6 +37,7 @@ const CopyButtonFrom = (props) => {
36
37
  text="Copy Text Input"
37
38
  tooltipPlacement="right"
38
39
  tooltipText="Text input copied!"
40
+ variant="button"
39
41
  />
40
42
 
41
43
  <Textarea
@@ -1,11 +1,12 @@
1
1
  examples:
2
2
  rails:
3
3
  - copy_button_default: Default
4
+ - copy_button_button_variant: Button Variant
4
5
  - copy_button_from: Copy From
5
6
  - copy_button_hook_rails: Copy Hook
6
7
 
7
8
  react:
8
9
  - copy_button_default: Default
10
+ - copy_button_button_variant: Button Variant
9
11
  - copy_button_from: Copy From
10
12
  - copy_button_hook: Copy Hook
11
- - copy_button_icon_variant: Icon Variant
@@ -1,4 +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'
4
+ export { default as CopyButtonButtonVariant } from './_copy_button_button_variant.jsx'
@@ -1,5 +1,6 @@
1
1
  import React from 'react'
2
- import { EmptyState, Flex } from 'playbook-ui'
2
+ import EmptyState from '../_empty_state'
3
+ import Flex from '../../pb_flex/_flex'
3
4
 
4
5
  const EmptyStateAlignment = (props) => (
5
6
  <Flex align="center"
@@ -1,5 +1,6 @@
1
1
  import React from 'react'
2
- import { EmptyState, Flex } from 'playbook-ui'
2
+ import EmptyState from '../_empty_state'
3
+ import Flex from '../../pb_flex/_flex'
3
4
 
4
5
  const EmptyStateDefault = (props) => (
5
6
  <Flex align="center"
@@ -1,5 +1,6 @@
1
1
  import React from 'react'
2
- import { EmptyState, Flex } from 'playbook-ui'
2
+ import EmptyState from '../_empty_state'
3
+ import Flex from '../../pb_flex/_flex'
3
4
 
4
5
  const EmptyStateOrientation = (props) => (
5
6
  <Flex align="center"
@@ -1,5 +1,6 @@
1
1
  import React from 'react'
2
- import { EmptyState, Flex } from 'playbook-ui'
2
+ import EmptyState from '../_empty_state'
3
+ import Flex from '../../pb_flex/_flex'
3
4
 
4
5
  const EmptyStateSize = (props) => (
5
6
  <Flex align="center"
@@ -1,5 +1,8 @@
1
1
  import React from 'react'
2
- import { Card, Caption, FormPill, Typeahead } from 'playbook-ui'
2
+ import Card from '../../pb_card/_card'
3
+ import Caption from '../../pb_caption/_caption'
4
+ import FormPill from '../_form_pill'
5
+ import Typeahead from '../../pb_typeahead/_typeahead'
3
6
 
4
7
  const names = [
5
8
  { label: 'Alexander Nathaniel Montgomery', value: 'Alexander Nathaniel Montgomery' },
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import { LoadingInline } from 'playbook-ui'
2
+ import LoadingInline from '../_loading_inline'
3
3
 
4
4
  const LoadingInlineVariant = (props) => {
5
5
  return (
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import { PbBarGraph } from 'playbook-ui'
2
+ import PbBarGraph from '../_pb_bar_graph'
3
3
  import colors from '../../tokens/exports/_colors.module.scss'
4
4
 
5
5
  const chartData = [{
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import { PbBarGraph } from 'playbook-ui'
2
+ import PbBarGraph from '../_pb_bar_graph'
3
3
 
4
4
  const chartData = [{
5
5
  name: 'Installation',
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import { PbBarGraph } from 'playbook-ui'
2
+ import PbBarGraph from '../_pb_bar_graph'
3
3
 
4
4
  const chartData = [{
5
5
  name: 'Number of Installations',
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import { PbBarGraph } from 'playbook-ui'
2
+ import PbBarGraph from '../_pb_bar_graph'
3
3
 
4
4
 
5
5
  const chartOptions = {
@@ -1,5 +1,5 @@
1
1
  import React from 'react'
2
- import { PbBarGraph } from 'playbook-ui'
2
+ import PbBarGraph from '../_pb_bar_graph'
3
3
 
4
4
 
5
5
  const chartData = [{