playbook_ui 13.16.0.pre.alpha.powercentrainplaybookpt22125 → 13.17.0.pre.alpha.nodealphaupgrade2157

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/_reset.scss +2 -2
  3. data/app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx +292 -3
  4. data/app/pb_kits/playbook/pb_button/_button.scss +3 -3
  5. data/app/pb_kits/playbook/pb_button/_button_mixins.scss +2 -3
  6. data/app/pb_kits/playbook/pb_caption/_caption_mixin.scss +1 -1
  7. data/app/pb_kits/playbook/pb_collapsible/_collapsible.scss +2 -2
  8. data/app/pb_kits/playbook/pb_dashboard/commonSettings.js +1 -1
  9. data/app/pb_kits/playbook/pb_dashboard/pbChartsDarkTheme.ts +1 -1
  10. data/app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.ts +1 -1
  11. data/app/pb_kits/playbook/pb_date_picker/sass_partials/_flatpickr_styles.scss +1 -1
  12. data/app/pb_kits/playbook/pb_form_pill/_form_pill.scss +1 -1
  13. data/app/pb_kits/playbook/pb_phone_number_input/docs/_phone_number_input_validation.html.erb +5 -7
  14. data/app/pb_kits/playbook/pb_popover/_popover.tsx +12 -14
  15. data/app/pb_kits/playbook/pb_popover/docs/_popover_actionable_content.html.erb +30 -0
  16. data/app/pb_kits/playbook/pb_popover/docs/_popover_actionable_content.jsx +57 -0
  17. data/app/pb_kits/playbook/pb_popover/docs/example.yml +2 -1
  18. data/app/pb_kits/playbook/pb_popover/docs/index.js +1 -0
  19. data/app/pb_kits/playbook/pb_popover/popover.test.js +29 -31
  20. data/app/pb_kits/playbook/pb_table/_table.tsx +3 -0
  21. data/app/pb_kits/playbook/pb_table/docs/_table_striped.html.erb +48 -0
  22. data/app/pb_kits/playbook/pb_table/docs/_table_striped.jsx +58 -0
  23. data/app/pb_kits/playbook/pb_table/docs/_table_striped.md +1 -0
  24. data/app/pb_kits/playbook/pb_table/docs/example.yml +2 -0
  25. data/app/pb_kits/playbook/pb_table/docs/index.js +1 -0
  26. data/app/pb_kits/playbook/pb_table/styles/_all.scss +1 -0
  27. data/app/pb_kits/playbook/pb_table/styles/_striped.scss +19 -0
  28. data/app/pb_kits/playbook/pb_table/table.rb +7 -1
  29. data/app/pb_kits/playbook/pb_table/table.test.js +5 -0
  30. data/app/pb_kits/playbook/tokens/_typography.scss +10 -10
  31. data/dist/menu.yml +102 -3
  32. data/dist/playbook-rails.js +7 -7
  33. data/dist/reset.css +1 -2
  34. data/lib/playbook/version.rb +2 -2
  35. metadata +8 -2
data/dist/menu.yml CHANGED
@@ -13,348 +13,447 @@ kits:
13
13
  - name: "dialog"
14
14
  platforms: *web
15
15
  description:
16
+ status: "stable"
16
17
  - name: "fixed_confirmation_toast"
17
18
  platforms: *web
18
19
  description: Fixed Confirmation Toast is used as an alert. Success is used when a user successfully completes an action. Error is used when there is an error and the user cannot proceed. Neutral is used to display information to a user to complete a task.
20
+ status: "stable"
19
21
  - name: "popover"
20
22
  platforms: *web
21
23
  description: A popover is a way to toggle content on top of other content. It can be used for small texts, small forms, or even dropdowns. By default, popover will toggle open/closed by simply clicking the trigger element.
24
+ status: "stable"
22
25
  - name: "tooltip"
23
26
  platforms: *web
24
27
  description:
28
+ status: "stable"
25
29
  - name: buttons
26
30
  description: Buttons are used primarily for actions, such as “Save” and “Cancel”. Link Buttons are used for less important or less commonly used actions, such as “view shipping settings”.
27
31
  components:
28
32
  - name: "button"
29
33
  platforms: *web
30
34
  description:
35
+ status: "stable"
31
36
  - name: "button_toolbar"
32
37
  platforms: *web
33
38
  description: This kit should primarily hold the most commonly used buttons.
39
+ status: "stable"
34
40
  - name: "circle_icon_button"
35
41
  platforms: *web
36
42
  description: When using Icon Circle Button, the icon must be clear a clear indication of what the button does because there is no text.
43
+ status: "stable"
37
44
  - name: data_visualization
38
45
  description:
39
46
  components:
40
47
  - name: "map"
41
48
  platforms: *react_only
42
49
  description: This kit provides a wrapping class to place around the MapLibre library.
50
+ status: "stable"
43
51
  - name: "table"
44
52
  platforms: *web
45
53
  description: Tables display a collection of structured data and typically have the ability to sort, filter, and paginate data.
54
+ status: "stable"
46
55
  - name: "advanced_table"
47
56
  platforms: *react_only
48
- description: The Advanced Table can be used to display complex, nested data in a way that allows for expansion and/or sorting.
57
+ description: The Advanced Table can be used to display complex, nested data in a way that allows for expansion and/or sorting.
58
+ status: "beta"
49
59
  - name: "list"
50
60
  platforms: *web
51
61
  description: Lists display a vertical set of related content.
62
+ status: "stable"
52
63
  - name: "filter"
53
64
  platforms: *web
54
65
  description: This kit can be implemented in a variety of ways. To see examples of how to implement this kit in production visit the /dev_docs/search page in production.
66
+ status: "stable"
55
67
  - name: "distribution_bar"
56
68
  platforms: *web
57
69
  description: Can be used in the same way a pie chart can be used. By default, Distribution Bar comparatively represents data without numbers.
70
+ status: "stable"
58
71
  - name: "legend"
59
72
  platforms: *web
60
73
  description: A key used to compare the variables and their value in any given graph.
74
+ status: "stable"
61
75
  - name: "gauge"
62
76
  platforms: *web
63
77
  description:
78
+ status: "stable"
64
79
  - name: "bar_graph"
65
80
  platforms: *web
66
81
  description: Bar graphs are used to compare data. Bar graphs are not typically used to show percentages.
82
+ status: "stable"
67
83
  - name: "circle_chart"
68
84
  platforms: *web
69
85
  description:
86
+ status: "stable"
70
87
  - name: "line_graph"
71
88
  platforms: *web
72
89
  description: Line graphs are used to show changes in data over time.
90
+ status: "stable"
73
91
  - name: "treemap_chart"
74
92
  platforms: *web
75
93
  description: Treemap charts are used to compare the relative size of groups of data. They can also use a nested data structure, allowing a user to drill down into a group to see its constituent data points.
94
+ status: "stable"
76
95
  - name: date_and_time_text_patterns
77
96
  description: ""
78
97
  components:
79
98
  - name: "date"
80
99
  platforms: *web
81
100
  description: Use to display the date. Year will not display if it is the current year.
101
+ status: "stable"
82
102
  - name: "date_range_inline"
83
103
  platforms: *web
84
104
  description: Use to display a date range. Year will not show if it is the current year.
105
+ status: "stable"
85
106
  - name: "date_range_stacked"
86
107
  platforms: *web
87
- description:
108
+ description:
109
+ status: "stable"
88
110
  - name: "date_stacked"
89
111
  platforms: *web
90
112
  description: Use to display the date, stacking month and day. Year will not show if it is the current year.
113
+ status: "stable"
91
114
  - name: "date_time"
92
115
  platforms: *web
93
116
  description: Date Time is a composite kit that leverages the Date and Time kits. The Date Time kit is affected by time zones and defaults to "America/New_York".
94
117
  - name: "date_time_stacked"
95
118
  platforms: *web
96
119
  description:
120
+ status: "stable"
97
121
  - name: "date_year_stacked"
98
122
  platforms: *web
99
123
  description: This kit is a simple option for displaying dates in a month, day and the year format.
124
+ status: "stable"
100
125
  - name: "time"
101
126
  platforms: *web
102
127
  description: This kit consist of large display and table display format. It includes and icon, and a time zone.
128
+ status: "stable"
103
129
  - name: "time_range_inline"
104
130
  platforms: *web
105
131
  description:
132
+ status: "stable"
106
133
  - name: "time_stacked"
107
134
  platforms: *web
108
135
  description:
136
+ status: "stable"
109
137
  - name: "timestamp"
110
138
  platforms: *all
111
139
  description: This low profile kit displays time. Elapsed, current, future, or otherwise.
140
+ status: "stable"
112
141
  - name: "weekday_stacked"
113
142
  platforms: *web
114
143
  description:
144
+ status: "stable"
115
145
  - name: form_and_dashboard_text_patterns
116
146
  description: ""
117
147
  components:
118
148
  - name: "contact"
119
149
  platforms: *web
120
150
  description: Use to display customer's or user's contact information.
151
+ status: "stable"
121
152
  - name: "currency"
122
153
  platforms: *web
123
154
  description: Use to display monetary amounts, typically on dashboards or other layouts to show an overview or summary. User understanding increase when paired with labels.
155
+ status: "stable"
124
156
  - name: "home_address_street"
125
157
  platforms: *web
126
158
  description: This kit can be used to display the address for a homeowner/project. It contains street address, APT format, City, state and zip. A Project hashtag can be used as a prop to link back to a project.
159
+ status: "stable"
127
160
  - name: "label_pill"
128
161
  platforms: *web
129
162
  description: This kit combines the caption and pill kit with all its variants.
163
+ status: "stable"
130
164
  - name: "label_value"
131
165
  platforms: *web
132
166
  description: This kit can be very versatile when used to display text data.
167
+ status: "stable"
133
168
  - name: "person"
134
169
  platforms: *web
135
170
  description: This kit is broken down into a first name last name format with normal and bold weighted text.
171
+ status: "stable"
136
172
  - name: "person_contact"
137
173
  platforms: *web
138
174
  description: This kit can be used to display a person contact information.
175
+ status: "stable"
139
176
  - name: "source"
140
177
  platforms: *web
141
178
  description: General use is to describe the discovery of businesses, customers, etc. This kit can also be used for other purposes as well.
179
+ status: "stable"
142
180
  - name: "dashboard_value"
143
181
  platforms: *web
144
182
  description: Use in dashboards to give the viewer a quick overview of important metrics. If want to show currency, use Currency Kit.
183
+ status: "stable"
145
184
  - name: "stat_change"
146
185
  platforms: *web
147
186
  description: Displays the increase, decrease, or neutral change in data.
187
+ status: "stable"
148
188
  - name: "stat_value"
149
189
  platforms: *web
150
190
  description: This kit was cerated for the main use as a dashboard display for numbers. A large label is an optional part if it needs more clarity.
191
+ status: "stable"
151
192
  - name: "title_count"
152
193
  platforms: *web
153
194
  description: This kits consists of title kit and body text. It is used to display a title and a count (numbers). It has a base size and a large formation for dashboard use.
195
+ status: "stable"
154
196
  - name: "title_detail"
155
197
  platforms: *web
156
198
  description: This kit can be used in many versatile ways. It consist of a title 4 and light body text kit.
199
+ status: "stable"
157
200
  - name: form_elements
158
201
  description:
159
202
  components:
160
203
  - name: "file_upload"
161
204
  platforms: *web
162
205
  description:
206
+ status: "stable"
163
207
  - name: "toggle"
164
208
  platforms: *web
165
209
  description: Physical switch that allows users to turn things on or off. Used for applying system states, presenting binary options and activating a state.
210
+ status: "stable"
166
211
  - name: "form_pill"
167
212
  platforms: *web
168
213
  description:
214
+ status: "stable"
169
215
  - name: "form"
170
216
  platforms: *rails_only
171
217
  description: The form kit provides consumers with a convenient, consistently styled <form> wrapper.
218
+ status: "stable"
172
219
  - name: "form_group"
173
220
  platforms: *web
174
221
  description:
222
+ status: "stable"
175
223
  - name: form_input
176
224
  description: ""
177
225
  components:
178
226
  - name: "passphrase"
179
227
  platforms: *web
180
228
  description:
229
+ status: "stable"
181
230
  - name: "phone_number_input"
182
231
  platforms: *web
183
232
  description:
233
+ status: "stable"
184
234
  - name: "text_input"
185
235
  platforms: *web
186
236
  description: Area where user can enter small amount of text. Commonly used in forms.
237
+ status: "stable"
187
238
  - name: "rich_text_editor"
188
239
  platforms: *web
189
- description:
240
+ description:
241
+ status: "stable"
190
242
  - name: "textarea"
191
243
  platforms: *web
192
244
  description: Area where user can enter larger amounts of text. Commonly used in forms.
245
+ status: "stable"
193
246
  - name: "typeahead"
194
247
  platforms: *web
195
248
  description: Typeahead is auto suggestion or completion based on what the user is starting to type, gets refined as the user types more.
249
+ status: "stable"
196
250
  - name: form_selection
197
251
  description:
198
252
  components:
199
253
  - name: "date_picker"
200
254
  platforms: *web
201
255
  description: Playbook's date picker is built using flatpickr, a vanilla js library. Common date picker use cases and features have been adapted into simple prop based configuration detailed in the docs below.
256
+ status: "stable"
202
257
  - name: "multi_level_select"
203
258
  platforms: *web
204
259
  description: The MultiLevelSelect kit renders a multi leveled select dropdown based on data from the user.
260
+ status: "stable"
205
261
  - name: "select"
206
262
  platforms: *web
207
263
  description: Select displays multiple options for a user to pick from in a dropdown menu. User selects one option.
264
+ status: "stable"
208
265
  - name: "selectable_card"
209
266
  platforms: *web
210
267
  description: Cards for information/content that can be selected. There is design for unselected and selected states. Typically used as a form element.
268
+ status: "stable"
211
269
  - name: "selectable_card_icon"
212
270
  platforms: *web
213
271
  description:
272
+ status: "stable"
214
273
  - name: "selectable_icon"
215
274
  platforms: *web
216
275
  description:
276
+ status: "stable"
217
277
  - name: "radio"
218
278
  platforms: *all
219
279
  description: Radio is a control that allows the user to only choose one predefined option.
280
+ status: "stable"
220
281
  - name: "checkbox"
221
282
  platforms: *web
222
283
  description: Checkbox is used for a list of selections that are meant to have one or more options checked.
284
+ status: "stable"
223
285
  - name: "selectable_list"
224
286
  platforms: *web
225
287
  description:
288
+ status: "stable"
226
289
  - name: icons_and_images
227
290
  description: ""
228
291
  components:
229
292
  - name: "icon"
230
293
  platforms: *web
231
294
  description: An icon is a graphic symbol that represents an object (ie a file) or a function. They can be used to give the user feedback.
295
+ status: "stable"
232
296
  - name: "icon_circle"
233
297
  platforms: *web
234
298
  description: Similar to Icon, Icon Circle is a graphical symbol within a circle used to visually indicate an object or function.
299
+ status: "stable"
235
300
  - name: "icon_stat_value"
236
301
  platforms: *web
237
302
  description:
303
+ status: "stable"
238
304
  - name: "icon_value"
239
305
  platforms: *web
240
306
  description: Icon Value leverages our icon kit, to display a value of some sort in the interface. Typically, this includes a numerical value.
307
+ status: "stable"
241
308
  - name: "user_badge"
242
309
  platforms: *web
243
310
  description: This kit was created to display employee icons related to a Nitro user. Currently there is the PVI logo and the Million Dollar Rep Icon.
311
+ status: "stable"
244
312
  - name: "image"
245
313
  platforms: *web
246
314
  description: A responsive image component.
315
+ status: "stable"
247
316
  - name: "lightbox"
248
317
  platforms: *react_only
249
318
  description: The Lightbox kit is a popup window overlay that will appear on top of your webpage and cover the entirety of the screen.
319
+ status: "stable"
250
320
  - name: "star_rating"
251
321
  platforms: *web
252
322
  description: A component to view other people’s opinions and experiences. Use when you want to show evaluation or a quick quantitative rating. Most effective when paired with reviews.
323
+ status: "stable"
253
324
  - name: layout_and_structure
254
325
  description:
255
326
  components:
256
327
  - name: "flex"
257
328
  platforms: *web
258
329
  description: This kit is used to build most of the complex interfaces. The Flex Kit is used the same way flex box is used.
330
+ status: "stable"
259
331
  - name: "layout"
260
332
  platforms: *web
261
333
  description: Layouts used for positioning content inside of pages, cards, or containers.
334
+ status: "stable"
262
335
  - name: "card"
263
336
  platforms: *all
264
337
  description:
338
+ status: "stable"
265
339
  - name: "section_separator"
266
340
  platforms: *web
267
341
  description: Section separator is a divider line that compartmentalizes content, typically used on cards or white backgrounds.
342
+ status: "stable"
268
343
  - name: "background"
269
344
  platforms: *web
270
345
  description: The background kit is used for adding a background to a page or to any container.
346
+ status: "stable"
271
347
  - name: "collapsible"
272
348
  platforms: *web
273
349
  description:
350
+ status: "stable"
274
351
  - name: message_text_patterns
275
352
  description:
276
353
  components:
277
354
  - name: "highlight"
278
355
  platforms: *web
279
356
  description: Highlight is used to pick out or emphasize content.
357
+ status: "stable"
280
358
  - name: "message"
281
359
  platforms: *web
282
360
  description: This multi kit consist of a an avatar, a status, a caption, a body text, and a time stamp. All which can be optional.
361
+ status: "stable"
283
362
  - name: navigation
284
363
  description:
285
364
  components:
286
365
  - name: "bread_crumbs"
287
366
  platforms: *web
288
367
  description: BreadCrumbs can be used for keeping a user aware of their route location.
368
+ status: "stable"
289
369
  - name: "nav"
290
370
  platforms: *web
291
371
  description: The nav is a grouped set of links that take the user to another page, or tab through parts of a page. It comes in horizontal or vertical with several different variants.
372
+ status: "stable"
292
373
  - name: "pagination"
293
374
  platforms: *rails_only
294
375
  description:
376
+ status: "stable"
295
377
  - name: state_and_progress_indicators
296
378
  description:
297
379
  components:
298
380
  - name: "loading_inline"
299
381
  platforms: *web
300
382
  description: The loading kit is used to indicate to users that a page is still loading, or an action is still being processed.
383
+ status: "stable"
301
384
  - name: "progress_pills"
302
385
  platforms: *web
303
386
  description: Progress pills indicate a specific point in time of a series of sequential steps. They are used to track progress of something over time.
387
+ status: "stable"
304
388
  - name: "progress_simple"
305
389
  platforms: *web
306
390
  description: Displays the current progress of an operation flow. User understanding increases when paired with labels or numbers.
307
391
  - name: "progress_step"
308
392
  platforms: *web
309
393
  description: "Progress step kit is used to show the progress of a process. There are three types of steps in this kit: completed, active, and inactive."
394
+ status: "stable"
310
395
  - name: "walkthrough"
311
396
  platforms: *web
312
397
  description:
398
+ status: "stable"
313
399
  - name: "timeline"
314
400
  platforms: *web
315
401
  description: The timeline kit can use two different line styles in the same timeline - solid and dotted line styles.
402
+ status: "stable"
316
403
  - name: tags
317
404
  description:
318
405
  components:
319
406
  - name: "badge"
320
407
  platforms: *web
321
408
  description: Badges can be used for notification, tags, and status. They are used for count and numbers.
409
+ status: "stable"
322
410
  - name: "pill"
323
411
  platforms: *all
324
412
  description: A pill uses both a keyword and a specific color to categorize an item.
413
+ status: "stable"
325
414
  - name: "hashtag"
326
415
  platforms: *web
327
416
  description: Hashtag is used to display home, project and other forms of IDs. They can be used as a link.
417
+ status: "stable"
328
418
  - name: typography
329
419
  description: ""
330
420
  components:
331
421
  - name: "body"
332
422
  platforms: *web
333
423
  description: Default text style for paragraphs. Follow hiearchy when using "light" or "lighter" variants to deemphasize text — default style should be followed by "light" followed by "lighter".
424
+ status: "stable"
334
425
  - name: "caption"
335
426
  platforms: *web
336
427
  description: Use to provide supplementary context. Default size is best when providing supplementary context to a small section (i.e. label for a text input, label for a paragraph). Use large caption when supplementary text covers more content.
428
+ status: "stable"
337
429
  - name: "detail"
338
430
  platforms: *web
339
431
  description: Used for tables or designs with large amounts of data or text.
432
+ status: "stable"
340
433
  - name: "title"
341
434
  platforms: *web
342
435
  description: Typically used as headers. Follow semantic hierarchy — Title 1s should be followed by Title 2s followed by Title 3s and so on, without skipping any levels.
436
+ status: "stable"
343
437
  - name: user
344
438
  description:
345
439
  components:
346
440
  - name: "avatar"
347
441
  platforms: *all
348
442
  description: Avatar displays a user's picture. This helps aid easy recognition of the user. This kit is normally not used by itself, but rather used within other kits. The only time Avatar should be used instead of the User kit is when you are not going to display the user's name.
443
+ status: "stable"
349
444
  - name: "avatar_action_button"
350
445
  platforms: *web
351
446
  description:
447
+ status: "stable"
352
448
  - name: "multiple_users"
353
449
  platforms: *web
354
450
  description: The multiple users kit is used to show that more than one user is associated to an action or item.
451
+ status: "stable"
355
452
  - name: "multiple_users_stacked"
356
453
  platforms: *web
357
454
  description: Multiple users stacked is used in tight spaces, where we need to indicate that multiple users are associated to a specific action or item.
455
+ status: "stable"
358
456
  - name: "user"
359
457
  platforms: *web
360
458
  description: This kit was created for having a systematic way of displaying users with avatar, titles, name and territory. This is a versatile kit with features than can be added to display more info.
459
+ status: "stable"