playbook_ui 16.8.0.pre.alpha.PLAY2945selectformblankselection16424 → 16.8.0.pre.alpha.PLAY2965datepickerconsoleerrors16591
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/pb_kits/playbook/pb_advanced_table/Components/RegularTableView.tsx +2 -0
- data/app/pb_kits/playbook/pb_advanced_table/Components/TableHeaderCell.tsx +2 -0
- data/app/pb_kits/playbook/pb_advanced_table/Components/VirtualizedTableView.tsx +5 -1
- data/app/pb_kits/playbook/pb_advanced_table/Hooks/useTableState.ts +24 -0
- data/app/pb_kits/playbook/pb_advanced_table/Utilities/ColumnLayoutHelper.ts +138 -0
- data/app/pb_kits/playbook/pb_advanced_table/advanced_table.test.jsx +144 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.jsx +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling.md +6 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_width.jsx +57 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_column_styling_width.md +66 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/_playground.json +5 -2
- data/app/pb_kits/playbook/pb_advanced_table/docs/_playground.overrides.json +1 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/advanced_table_column_definitions_styling.json +4 -1
- data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +1 -0
- data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -0
- data/app/pb_kits/playbook/pb_card/_card.tsx +1 -1
- data/app/pb_kits/playbook/pb_card/card.html.erb +1 -1
- data/app/pb_kits/playbook/pb_currency/_currency.tsx +9 -6
- data/app/pb_kits/playbook/pb_currency/currency.rb +5 -10
- data/app/pb_kits/playbook/pb_currency/currency.test.js +44 -1
- data/app/pb_kits/playbook/pb_date_picker/date_picker.html.erb +36 -21
- data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_dialog_submission.jsx +2 -2
- data/app/pb_kits/playbook/pb_draggable/_draggable.scss +19 -0
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_rails.md +2 -0
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_cards_react.md +1 -0
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list_rails.md +2 -0
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_list_react.md +3 -1
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list_rails.md +3 -1
- data/app/pb_kits/playbook/pb_draggable/docs/_draggable_with_selectable_list_react.md +3 -1
- data/app/pb_kits/playbook/pb_draggable/draggable.test.jsx +16 -0
- data/app/pb_kits/playbook/pb_draggable/draggable_container.html.erb +3 -1
- data/app/pb_kits/playbook/pb_draggable/draggable_item.html.erb +1 -0
- data/app/pb_kits/playbook/pb_draggable/index.js +149 -7
- data/app/pb_kits/playbook/pb_draggable/subcomponents/DraggableContainer.tsx +1 -0
- data/app/pb_kits/playbook/pb_draggable/subcomponents/DraggableItem.tsx +67 -1
- data/app/pb_kits/playbook/pb_draggable/touchDrag.test.js +38 -0
- data/app/pb_kits/playbook/pb_draggable/utilities/touchDrag.ts +173 -0
- data/app/pb_kits/playbook/pb_form/docs/example.yml +0 -1
- data/app/pb_kits/playbook/pb_icon/docs/example.yml +0 -2
- data/app/pb_kits/playbook/pb_icon/docs/index.js +0 -1
- data/app/pb_kits/playbook/pb_list/_list_item.tsx +4 -1
- data/app/pb_kits/playbook/pb_list/item.html.erb +1 -1
- data/dist/chunks/{_typeahead-D2TWdJTn.js → _typeahead-DA__Kgp5.js} +1 -1
- data/dist/chunks/vendor.js +2 -2
- data/dist/menu.yml +67 -127
- data/dist/playbook-rails-react-bindings.js +1 -1
- data/dist/playbook-rails.js +1 -1
- data/dist/playbook.css +1 -1
- data/lib/playbook/forms/builder/collection_select_field.rb +1 -1
- data/lib/playbook/forms/builder/select_field.rb +1 -1
- data/lib/playbook/forms/builder/time_zone_select_field.rb +1 -1
- data/lib/playbook/version.rb +1 -1
- metadata +9 -8
- data/app/pb_kits/playbook/pb_form/docs/_form_form_with_select_examples.html.erb +0 -31
- data/app/pb_kits/playbook/pb_icon/docs/_icon_fa_kit.html.erb +0 -1
- data/app/pb_kits/playbook/pb_icon/docs/_icon_fa_kit.jsx +0 -21
- data/app/pb_kits/playbook/pb_icon/docs/_icon_fa_kit.md +0 -7
data/dist/menu.yml
CHANGED
|
@@ -24,6 +24,7 @@ kits:
|
|
|
24
24
|
a way that allows for expansion and/or sorting.
|
|
25
25
|
components:
|
|
26
26
|
- name: default
|
|
27
|
+
description: "Minimal table: required props and structure before adding features."
|
|
27
28
|
parent: advanced_table
|
|
28
29
|
kit_section: ["Default (Required Props)", "Table Options", "Table Props", "Table with No Subrows or Expansion" ]
|
|
29
30
|
platforms: *1
|
|
@@ -32,6 +33,7 @@ kits:
|
|
|
32
33
|
react_rendered: false
|
|
33
34
|
enhanced_element_used: true
|
|
34
35
|
- name: sorting
|
|
36
|
+
description: Sortable headers, controlled sort state, and custom compare logic.
|
|
35
37
|
parent: advanced_table
|
|
36
38
|
kit_section: ["Enable Sorting", "Sort Control", "Enable Sort By Column", "Enable Sort By Column (Multi-Column)", "Custom Sort", "Sort Parent Only"]
|
|
37
39
|
platforms: *1
|
|
@@ -40,6 +42,7 @@ kits:
|
|
|
40
42
|
react_rendered: false
|
|
41
43
|
enhanced_element_used: true
|
|
42
44
|
- name: pagination_&_data_states
|
|
45
|
+
description: Paged or infinite data plus loading and empty states.
|
|
43
46
|
parent: advanced_table
|
|
44
47
|
kit_section: ["Pagination", "Pagination Props", "Loading State", "Inline Row Loading", "Infinite Scroll"]
|
|
45
48
|
platforms: *1
|
|
@@ -48,6 +51,7 @@ kits:
|
|
|
48
51
|
react_rendered: false
|
|
49
52
|
enhanced_element_used: true
|
|
50
53
|
- name: row_interaction
|
|
54
|
+
description: Select, expand, subrows, pinning; row highlights and bulk actions.
|
|
51
55
|
parent: advanced_table
|
|
52
56
|
kit_section: ["Expanded Control", "Expand by Depth", "SubRow Headers", "Cascade Collapse", "Pinned Rows", "Selectable Rows", "Selectable Rows (No Subrows)", "Selectable Rows (With Actions)", "Selectable Rows (No Actions Bar)"]
|
|
53
57
|
platforms: *1
|
|
@@ -56,6 +60,7 @@ kits:
|
|
|
56
60
|
react_rendered: false
|
|
57
61
|
enhanced_element_used: true
|
|
58
62
|
- name: column_configuration
|
|
63
|
+
description: "Define columns: headers, visibility, grouping, borders, widths."
|
|
59
64
|
parent: advanced_table
|
|
60
65
|
kit_section: ["Column Visibility Control", "Column Visibility Control With State", "Column Visibility Control with Custom Dropdown", "Column Visibility Control with Multi-Header Columns", "Multi-Header Columns", "Multi-Header Columns (Multiple Levels)", "Multi-Header Columns with Custom Cells", "Multi-Header Columns with Vertical Borders", "Grouped headers, custom headers, sort, and pinned rows"]
|
|
61
66
|
platforms: *1
|
|
@@ -64,6 +69,7 @@ kits:
|
|
|
64
69
|
react_rendered: false
|
|
65
70
|
enhanced_element_used: true
|
|
66
71
|
- name: cell_behavior
|
|
72
|
+
description: "What each cell shows and does: custom content, edit, loading."
|
|
67
73
|
parent: advanced_table
|
|
68
74
|
kit_section: ["Custom Components for Cells", "Custom Header Cell", "Custom Header with Multiple Headers", "Inline Cell Editing"]
|
|
69
75
|
platforms: *1
|
|
@@ -72,6 +78,7 @@ kits:
|
|
|
72
78
|
react_rendered: false
|
|
73
79
|
enhanced_element_used: true
|
|
74
80
|
- name: layout_&_positioning
|
|
81
|
+
description: Scroll, sticky headers/columns, responsive layout, fullscreen modes.
|
|
75
82
|
parent: advanced_table
|
|
76
83
|
kit_section: ["Sticky Header", "Sticky Header for Responsive Table", "Sticky Columns", "Sticky Columns with Sticky Header", "Responsive Tables", "Fullscreen", "Advanced Table Scrollbar None"]
|
|
77
84
|
platforms: *1
|
|
@@ -80,6 +87,7 @@ kits:
|
|
|
80
87
|
react_rendered: false
|
|
81
88
|
enhanced_element_used: true
|
|
82
89
|
- name: styling
|
|
90
|
+
description: "Styling per row or column: padding, color, and border."
|
|
83
91
|
parent: advanced_table
|
|
84
92
|
kit_section: ["Collapsible Trail","Row Styling", "Padding Control using Row Styling", "Column Styling", "Column Styling with Multiple Headers", "Column Styling Background Color", "Column Styling Background Color (Custom)", "Column Styling Background Color with Multiple Headers","Column Styling Individual Cell Background Color", "Padding Control using Column Styling", "Column Group Border Color"]
|
|
85
93
|
platforms: *1
|
|
@@ -92,7 +100,7 @@ kits:
|
|
|
92
100
|
components:
|
|
93
101
|
- name: dialog
|
|
94
102
|
platforms: *1
|
|
95
|
-
description: Modal
|
|
103
|
+
description: Modal for confirmations, forms, or focus. Supports alert modals for various statuses.
|
|
96
104
|
status: stable
|
|
97
105
|
icons_used: true
|
|
98
106
|
react_rendered: false
|
|
@@ -103,19 +111,14 @@ kits:
|
|
|
103
111
|
- Dialog.Footer
|
|
104
112
|
- name: fixed_confirmation_toast
|
|
105
113
|
platforms: *1
|
|
106
|
-
description: Fixed
|
|
107
|
-
a user successfully completes an action. Error is used when there is an error
|
|
108
|
-
and the user cannot proceed. Neutral is used to display information to a user
|
|
109
|
-
to complete a task.
|
|
114
|
+
description: "Fixed alerts: success after completion, error when blocked, neutral for informational context."
|
|
110
115
|
status: stable
|
|
111
116
|
icons_used: true
|
|
112
117
|
react_rendered: false
|
|
113
118
|
enhanced_element_used: true
|
|
114
119
|
- name: popover
|
|
115
120
|
platforms: *1
|
|
116
|
-
description:
|
|
117
|
-
can be used for small texts, small forms, or even dropdowns. By default, popover
|
|
118
|
-
will toggle open/closed by simply clicking the trigger element.
|
|
121
|
+
description: Anchored panel for short content, mini forms, or menus. Click the trigger to toggle it open.
|
|
119
122
|
status: stable
|
|
120
123
|
icons_used: false
|
|
121
124
|
react_rendered: false
|
|
@@ -134,22 +137,21 @@ kits:
|
|
|
134
137
|
components:
|
|
135
138
|
- name: button
|
|
136
139
|
platforms: *1
|
|
137
|
-
description:
|
|
140
|
+
description: Primary Button for main tasks; secondary and danger variants for other actions.
|
|
138
141
|
status: stable
|
|
139
142
|
icons_used: true
|
|
140
143
|
react_rendered: false
|
|
141
144
|
enhanced_element_used: true
|
|
142
145
|
- name: button_toolbar
|
|
143
146
|
platforms: *1
|
|
144
|
-
description: This
|
|
147
|
+
description: This component should primarily hold the most commonly used buttons.
|
|
145
148
|
status: stable
|
|
146
149
|
icons_used: false
|
|
147
150
|
react_rendered: false
|
|
148
151
|
enhanced_element_used: false
|
|
149
152
|
- name: circle_icon_button
|
|
150
153
|
platforms: *1
|
|
151
|
-
description:
|
|
152
|
-
of what the button does because there is no text.
|
|
154
|
+
description: Round icon-only button; the icon must clearly show the action because there is no label.
|
|
153
155
|
status: stable
|
|
154
156
|
icons_used: true
|
|
155
157
|
react_rendered: false
|
|
@@ -172,15 +174,14 @@ kits:
|
|
|
172
174
|
components:
|
|
173
175
|
- name: map
|
|
174
176
|
platforms: *2
|
|
175
|
-
description: This
|
|
177
|
+
description: This component provides a wrapping class to place around the MapLibre library.
|
|
176
178
|
status: stable
|
|
177
179
|
icons_used: true
|
|
178
180
|
react_rendered: true
|
|
179
181
|
enhanced_element_used: false
|
|
180
182
|
- name: table
|
|
181
183
|
platforms: *1
|
|
182
|
-
description:
|
|
183
|
-
the ability to sort, filter, and paginate data.
|
|
184
|
+
description: Structured rows and columns of data, often with sorting, filtering, and pagination.
|
|
184
185
|
status: stable
|
|
185
186
|
icons_used: false
|
|
186
187
|
react_rendered: false
|
|
@@ -199,17 +200,14 @@ kits:
|
|
|
199
200
|
enhanced_element_used: false
|
|
200
201
|
- name: filter
|
|
201
202
|
platforms: *1
|
|
202
|
-
description:
|
|
203
|
-
of how to implement this kit in production visit the /dev_docs/search page in
|
|
204
|
-
production.
|
|
203
|
+
description: Search and filter UI. See production /dev_docs/search for real integration examples.
|
|
205
204
|
status: stable
|
|
206
205
|
icons_used: true
|
|
207
206
|
react_rendered: false
|
|
208
207
|
enhanced_element_used: false
|
|
209
208
|
- name: distribution_bar
|
|
210
209
|
platforms: *1
|
|
211
|
-
description:
|
|
212
|
-
Distribution Bar comparatively represents data without numbers.
|
|
210
|
+
description: Part-to-whole comparison like a pie chart. Default mode stresses share without raw numbers.
|
|
213
211
|
status: stable
|
|
214
212
|
icons_used: false
|
|
215
213
|
react_rendered: true
|
|
@@ -256,16 +254,14 @@ kits:
|
|
|
256
254
|
components:
|
|
257
255
|
- name: date
|
|
258
256
|
platforms: *1
|
|
259
|
-
description: Use to display the date. Year will not display if it is the current
|
|
260
|
-
year.
|
|
257
|
+
description: Use to display the date. Year will not display by default if it is the current year.
|
|
261
258
|
status: stable
|
|
262
259
|
icons_used: true
|
|
263
260
|
react_rendered: false
|
|
264
261
|
enhanced_element_used: false
|
|
265
262
|
- name: date_range_inline
|
|
266
263
|
platforms: *1
|
|
267
|
-
description: Use to display a date range. Year will not show if it is the current
|
|
268
|
-
year.
|
|
264
|
+
description: Use to display a date range. Year will not show by default if it is the current year.
|
|
269
265
|
status: stable
|
|
270
266
|
icons_used: true
|
|
271
267
|
react_rendered: false
|
|
@@ -279,16 +275,14 @@ kits:
|
|
|
279
275
|
enhanced_element_used: false
|
|
280
276
|
- name: date_stacked
|
|
281
277
|
platforms: *1
|
|
282
|
-
description:
|
|
283
|
-
if it is the current year.
|
|
278
|
+
description: Displays the date stacked with the month and day. Default behavior does not show the current year.
|
|
284
279
|
status: stable
|
|
285
280
|
icons_used: false
|
|
286
281
|
react_rendered: false
|
|
287
282
|
enhanced_element_used: false
|
|
288
283
|
- name: date_time
|
|
289
284
|
platforms: *1
|
|
290
|
-
description:
|
|
291
|
-
The Date Time kit is affected by time zones and defaults to "America/New_York".
|
|
285
|
+
description: Combined date and time. Respects time zones; defaults to America/New_York when not set.
|
|
292
286
|
status: stable
|
|
293
287
|
icons_used: false
|
|
294
288
|
react_rendered: false
|
|
@@ -302,16 +296,14 @@ kits:
|
|
|
302
296
|
enhanced_element_used: false
|
|
303
297
|
- name: date_year_stacked
|
|
304
298
|
platforms: *1
|
|
305
|
-
description: This
|
|
306
|
-
and the year format.
|
|
299
|
+
description: This component is a simple option for displaying dates in a month, day, and year format.
|
|
307
300
|
status: stable
|
|
308
301
|
icons_used: false
|
|
309
302
|
react_rendered: false
|
|
310
303
|
enhanced_element_used: false
|
|
311
304
|
- name: time
|
|
312
305
|
platforms: *1
|
|
313
|
-
description:
|
|
314
|
-
and icon, and a time zone.
|
|
306
|
+
description: Displays a time of day with optional timezone and icon, in large or compact layouts.
|
|
315
307
|
status: stable
|
|
316
308
|
icons_used: true
|
|
317
309
|
react_rendered: false
|
|
@@ -332,8 +324,7 @@ kits:
|
|
|
332
324
|
enhanced_element_used: false
|
|
333
325
|
- name: timestamp
|
|
334
326
|
platforms: *3
|
|
335
|
-
description:
|
|
336
|
-
otherwise.
|
|
327
|
+
description: Low profile component for displaying time; elapsed, current, future, or otherwise.
|
|
337
328
|
status: stable
|
|
338
329
|
icons_used: false
|
|
339
330
|
react_rendered: false
|
|
@@ -357,63 +348,56 @@ kits:
|
|
|
357
348
|
enhanced_element_used: false
|
|
358
349
|
- name: currency
|
|
359
350
|
platforms: *1
|
|
360
|
-
description:
|
|
361
|
-
layouts to show an overview or summary. User understanding increase when paired
|
|
362
|
-
with labels.
|
|
351
|
+
description: Formats money for dashboards and summaries. Pair with labels so amounts stay clear.
|
|
363
352
|
status: stable
|
|
364
353
|
icons_used: false
|
|
365
354
|
react_rendered: false
|
|
366
355
|
enhanced_element_used: false
|
|
367
356
|
- name: home_address_street
|
|
368
357
|
platforms: *1
|
|
369
|
-
description:
|
|
370
|
-
It contains street address, APT format, City, state and zip. A Project hashtag
|
|
371
|
-
can be used as a prop to link back to a project.
|
|
358
|
+
description: Street address with unit, city, state, ZIP, and optional project hashtag linking to work.
|
|
372
359
|
status: stable
|
|
373
360
|
icons_used: false
|
|
374
361
|
react_rendered: false
|
|
375
362
|
enhanced_element_used: false
|
|
376
363
|
- name: label_pill
|
|
377
364
|
platforms: *1
|
|
378
|
-
description: This
|
|
365
|
+
description: This component combines the Caption and Pill components with all of their variants.
|
|
379
366
|
status: stable
|
|
380
367
|
icons_used: false
|
|
381
368
|
react_rendered: false
|
|
382
369
|
enhanced_element_used: false
|
|
383
370
|
- name: label_value
|
|
384
371
|
platforms: *1
|
|
385
|
-
description: This
|
|
372
|
+
description: This component can be very versatile when used to display text data.
|
|
386
373
|
status: stable
|
|
387
374
|
icons_used: true
|
|
388
375
|
react_rendered: false
|
|
389
376
|
enhanced_element_used: false
|
|
390
377
|
- name: person
|
|
391
378
|
platforms: *1
|
|
392
|
-
description: This
|
|
393
|
-
and bold weighted text.
|
|
379
|
+
description: This component is broken down into a first name last name format with normal and bold weighted text.
|
|
394
380
|
status: stable
|
|
395
381
|
icons_used: false
|
|
396
382
|
react_rendered: false
|
|
397
383
|
enhanced_element_used: false
|
|
398
384
|
- name: person_contact
|
|
399
385
|
platforms: *1
|
|
400
|
-
description: This
|
|
386
|
+
description: This component can be used to display a person contact information.
|
|
401
387
|
status: stable
|
|
402
388
|
icons_used: false
|
|
403
389
|
react_rendered: false
|
|
404
390
|
enhanced_element_used: false
|
|
405
391
|
- name: source
|
|
406
392
|
platforms: *1
|
|
407
|
-
description:
|
|
408
|
-
etc. This kit can also be used for other purposes as well.
|
|
393
|
+
description: Shows where a record or lead came from; flexible for other attribution labels too.
|
|
409
394
|
status: stable
|
|
410
395
|
icons_used: true
|
|
411
396
|
react_rendered: false
|
|
412
397
|
enhanced_element_used: false
|
|
413
398
|
- name: dashboard_value
|
|
414
399
|
platforms: *1
|
|
415
|
-
description:
|
|
416
|
-
metrics. If want to show currency, use Currency Kit.
|
|
400
|
+
description: Large dashboard number for quick metrics. Use Currency when the value is money.
|
|
417
401
|
status: stable
|
|
418
402
|
icons_used: false
|
|
419
403
|
react_rendered: false
|
|
@@ -427,25 +411,21 @@ kits:
|
|
|
427
411
|
enhanced_element_used: false
|
|
428
412
|
- name: stat_value
|
|
429
413
|
platforms: *1
|
|
430
|
-
description:
|
|
431
|
-
numbers. A large label is an optional part if it needs more clarity.
|
|
414
|
+
description: Prominent numeric stat for dashboards; optional label explains what the figure means.
|
|
432
415
|
status: stable
|
|
433
416
|
icons_used: false
|
|
434
417
|
react_rendered: false
|
|
435
418
|
enhanced_element_used: false
|
|
436
419
|
- name: title_count
|
|
437
420
|
platforms: *1
|
|
438
|
-
description:
|
|
439
|
-
a title and a count (numbers). It has a base size and a large formation for
|
|
440
|
-
dashboard use.
|
|
421
|
+
description: Title with a related count, in default or larger dashboard-friendly sizing.
|
|
441
422
|
status: stable
|
|
442
423
|
icons_used: false
|
|
443
424
|
react_rendered: false
|
|
444
425
|
enhanced_element_used: false
|
|
445
426
|
- name: title_detail
|
|
446
427
|
platforms: *1
|
|
447
|
-
description: This
|
|
448
|
-
4 and light body text kit.
|
|
428
|
+
description: This component can be used in many versatile ways. It's made up of a Title 4 and light Body component.
|
|
449
429
|
status: stable
|
|
450
430
|
icons_used: false
|
|
451
431
|
react_rendered: false
|
|
@@ -462,8 +442,7 @@ kits:
|
|
|
462
442
|
enhanced_element_used: false
|
|
463
443
|
- name: toggle
|
|
464
444
|
platforms: *1
|
|
465
|
-
description:
|
|
466
|
-
for applying system states, presenting binary options and activating a state.
|
|
445
|
+
description: On/off switch for settings, feature flags, or any binary choice in a form.
|
|
467
446
|
status: stable
|
|
468
447
|
icons_used: false
|
|
469
448
|
react_rendered: false
|
|
@@ -477,8 +456,7 @@ kits:
|
|
|
477
456
|
enhanced_element_used: false
|
|
478
457
|
- name: form
|
|
479
458
|
platforms: *4
|
|
480
|
-
description: The
|
|
481
|
-
<form> wrapper.
|
|
459
|
+
description: The Form component provides consumers with a convenient, consistently styled <form> wrapper.
|
|
482
460
|
status: stable
|
|
483
461
|
icons_used: false
|
|
484
462
|
react_rendered: false
|
|
@@ -509,8 +487,7 @@ kits:
|
|
|
509
487
|
enhanced_element_used: false
|
|
510
488
|
- name: text_input
|
|
511
489
|
platforms: *1
|
|
512
|
-
description: Area where user can enter small amount of text. Commonly used in
|
|
513
|
-
forms.
|
|
490
|
+
description: Area where user can enter small amount of text. Commonly used in forms.
|
|
514
491
|
status: stable
|
|
515
492
|
icons_used: true
|
|
516
493
|
react_rendered: false
|
|
@@ -532,8 +509,7 @@ kits:
|
|
|
532
509
|
enhanced_element_used: true
|
|
533
510
|
- name: typeahead
|
|
534
511
|
platforms: *1
|
|
535
|
-
description:
|
|
536
|
-
is starting to type, gets refined as the user types more.
|
|
512
|
+
description: Autocomplete options that narrow as users type, cutting errors and extra typing.
|
|
537
513
|
status: stable
|
|
538
514
|
icons_used: true
|
|
539
515
|
react_rendered: true
|
|
@@ -543,9 +519,7 @@ kits:
|
|
|
543
519
|
components:
|
|
544
520
|
- name: date_picker
|
|
545
521
|
platforms: *1
|
|
546
|
-
description:
|
|
547
|
-
Common date picker use cases and features have been adapted into simple prop
|
|
548
|
-
based configuration detailed in the docs below.
|
|
522
|
+
description: Calendar date field powered by flatpickr; props cover common cases without custom JS.
|
|
549
523
|
status: stable
|
|
550
524
|
icons_used: true
|
|
551
525
|
react_rendered: false
|
|
@@ -563,24 +537,21 @@ kits:
|
|
|
563
537
|
- Dropdown.Option
|
|
564
538
|
- name: multi_level_select
|
|
565
539
|
platforms: *1
|
|
566
|
-
description: The MultiLevelSelect
|
|
567
|
-
based on data from the user.
|
|
540
|
+
description: The MultiLevelSelect component renders a multi leveled select dropdown based on data from the User.
|
|
568
541
|
status: stable
|
|
569
542
|
icons_used: true
|
|
570
543
|
react_rendered: true
|
|
571
544
|
enhanced_element_used: false
|
|
572
545
|
- name: select
|
|
573
546
|
platforms: *1
|
|
574
|
-
description:
|
|
575
|
-
menu. User selects one option.
|
|
547
|
+
description: Dropdown where the user picks one option from a list, styled like other form fields.
|
|
576
548
|
status: stable
|
|
577
549
|
icons_used: true
|
|
578
550
|
react_rendered: false
|
|
579
551
|
enhanced_element_used: true
|
|
580
552
|
- name: selectable_card
|
|
581
553
|
platforms: *1
|
|
582
|
-
description:
|
|
583
|
-
for unselected and selected states. Typically used as a form element.
|
|
554
|
+
description: Selectable card with clear selected and unselected visuals; common for plans or tiers.
|
|
584
555
|
status: stable
|
|
585
556
|
icons_used: true
|
|
586
557
|
react_rendered: false
|
|
@@ -634,16 +605,14 @@ kits:
|
|
|
634
605
|
components:
|
|
635
606
|
- name: icon
|
|
636
607
|
platforms: *1
|
|
637
|
-
description:
|
|
638
|
-
or a function. They can be used to give the user feedback.
|
|
608
|
+
description: Graphic symbol for an object, action, or status; add nearby text if meaning could be vague.
|
|
639
609
|
status: stable
|
|
640
610
|
icons_used: true
|
|
641
611
|
react_rendered: false
|
|
642
612
|
enhanced_element_used: false
|
|
643
613
|
- name: icon_circle
|
|
644
614
|
platforms: *1
|
|
645
|
-
description:
|
|
646
|
-
used to visually indicate an object or function.
|
|
615
|
+
description: Icon centered in a circle for emphasis, touch targets, or consistent visual weight.
|
|
647
616
|
status: stable
|
|
648
617
|
icons_used: true
|
|
649
618
|
react_rendered: false
|
|
@@ -657,16 +626,14 @@ kits:
|
|
|
657
626
|
enhanced_element_used: false
|
|
658
627
|
- name: icon_value
|
|
659
628
|
platforms: *1
|
|
660
|
-
description: Icon
|
|
661
|
-
in the interface. Typically, this includes a numerical value.
|
|
629
|
+
description: Icon paired with a value—often a number—for compact KPIs, stats, or dense summaries.
|
|
662
630
|
status: stable
|
|
663
631
|
icons_used: true
|
|
664
632
|
react_rendered: false
|
|
665
633
|
enhanced_element_used: false
|
|
666
634
|
- name: user_badge
|
|
667
635
|
platforms: *1
|
|
668
|
-
description:
|
|
669
|
-
user. Currently there is the PVI logo and the Million Dollar Rep Icon.
|
|
636
|
+
description: Small badge on an avatar for programs or achievements so standout users read quickly.
|
|
670
637
|
status: stable
|
|
671
638
|
icons_used: false
|
|
672
639
|
react_rendered: false
|
|
@@ -680,17 +647,14 @@ kits:
|
|
|
680
647
|
enhanced_element_used: false
|
|
681
648
|
- name: lightbox
|
|
682
649
|
platforms: *2
|
|
683
|
-
description:
|
|
684
|
-
of your webpage and cover the entirety of the screen.
|
|
650
|
+
description: Fullscreen dimmed overlay for enlarged images or media that covers the viewport.
|
|
685
651
|
status: stable
|
|
686
652
|
icons_used: false
|
|
687
653
|
react_rendered: false
|
|
688
654
|
enhanced_element_used: false
|
|
689
655
|
- name: star_rating
|
|
690
656
|
platforms: *1
|
|
691
|
-
description:
|
|
692
|
-
when you want to show evaluation or a quick quantitative rating. Most effective
|
|
693
|
-
when paired with reviews.
|
|
657
|
+
description: Star rating for opinions or scores; pair with reviews or labels for real meaning.
|
|
694
658
|
status: stable
|
|
695
659
|
icons_used: true
|
|
696
660
|
react_rendered: false
|
|
@@ -700,8 +664,7 @@ kits:
|
|
|
700
664
|
components:
|
|
701
665
|
- name: flex
|
|
702
666
|
platforms: *1
|
|
703
|
-
description:
|
|
704
|
-
Kit is used the same way flex box is used.
|
|
667
|
+
description: Flexbox layout helper for responsive rows, columns, spacing, and alignment in UIs.
|
|
705
668
|
status: stable
|
|
706
669
|
icons_used: false
|
|
707
670
|
react_rendered: false
|
|
@@ -725,16 +688,14 @@ kits:
|
|
|
725
688
|
- Card.Body
|
|
726
689
|
- name: section_separator
|
|
727
690
|
platforms: *1
|
|
728
|
-
description:
|
|
729
|
-
typically used on cards or white backgrounds.
|
|
691
|
+
description: A divider line that visually separates and organizes content into distinct sections.
|
|
730
692
|
status: stable
|
|
731
693
|
icons_used: false
|
|
732
694
|
react_rendered: false
|
|
733
695
|
enhanced_element_used: false
|
|
734
696
|
- name: background
|
|
735
697
|
platforms: *1
|
|
736
|
-
description: The
|
|
737
|
-
any container.
|
|
698
|
+
description: The Background component is used for adding a background to a page or to any container.
|
|
738
699
|
status: stable
|
|
739
700
|
icons_used: false
|
|
740
701
|
react_rendered: false
|
|
@@ -778,8 +739,7 @@ kits:
|
|
|
778
739
|
enhanced_element_used: false
|
|
779
740
|
- name: message
|
|
780
741
|
platforms: *1
|
|
781
|
-
description:
|
|
782
|
-
text, and a time stamp. All which can be optional.
|
|
742
|
+
description: Conversation-style block with optional avatar, status, caption, body, and timestamp.
|
|
783
743
|
status: stable
|
|
784
744
|
icons_used: false
|
|
785
745
|
react_rendered: false
|
|
@@ -796,9 +756,7 @@ kits:
|
|
|
796
756
|
enhanced_element_used: false
|
|
797
757
|
- name: nav
|
|
798
758
|
platforms: *1
|
|
799
|
-
description:
|
|
800
|
-
or tab through parts of a page. It comes in horizontal or vertical with several
|
|
801
|
-
different variants.
|
|
759
|
+
description: Grouped navigation links for pages or in-page sections; horizontal or vertical variants.
|
|
802
760
|
status: stable
|
|
803
761
|
icons_used: true
|
|
804
762
|
react_rendered: false
|
|
@@ -821,29 +779,25 @@ kits:
|
|
|
821
779
|
enhanced_element_used: false
|
|
822
780
|
- name: loading_inline
|
|
823
781
|
platforms: *1
|
|
824
|
-
description:
|
|
825
|
-
loading, or an action is still being processed.
|
|
782
|
+
description: Inline spinner while content loads or a background request is still processing.
|
|
826
783
|
status: stable
|
|
827
784
|
icons_used: true
|
|
828
785
|
react_rendered: false
|
|
829
786
|
enhanced_element_used: false
|
|
830
787
|
- name: progress_pills
|
|
831
788
|
platforms: *1
|
|
832
|
-
description:
|
|
833
|
-
steps. They are used to track progress of something over time.
|
|
789
|
+
description: Step chips along a sequence—shows completed, current, and upcoming stages over time.
|
|
834
790
|
status: stable
|
|
835
791
|
icons_used: false
|
|
836
792
|
react_rendered: false
|
|
837
793
|
enhanced_element_used: false
|
|
838
794
|
- name: progress_simple
|
|
839
795
|
platforms: *1
|
|
840
|
-
description:
|
|
841
|
-
increases when paired with labels or numbers.
|
|
796
|
+
description: Linear progress for an operation; add labels or percentages so progress is obvious.
|
|
842
797
|
status: stable
|
|
843
798
|
- name: progress_step
|
|
844
799
|
platforms: *1
|
|
845
|
-
description:
|
|
846
|
-
are three types of steps in this kit: completed, active, and inactive.'
|
|
800
|
+
description: Wizard steps marked completed, active, or inactive for multi-phase flows.
|
|
847
801
|
status: stable
|
|
848
802
|
icons_used: true
|
|
849
803
|
react_rendered: false
|
|
@@ -852,8 +806,7 @@ kits:
|
|
|
852
806
|
- ProgressStep.Item
|
|
853
807
|
- name: timeline
|
|
854
808
|
platforms: *1
|
|
855
|
-
description:
|
|
856
|
-
- solid and dotted line styles.
|
|
809
|
+
description: A timeline with solid or dotted connectors to show sequences, phases, or gaps in time.
|
|
857
810
|
status: stable
|
|
858
811
|
icons_used: true
|
|
859
812
|
react_rendered: false
|
|
@@ -907,18 +860,14 @@ kits:
|
|
|
907
860
|
components:
|
|
908
861
|
- name: body
|
|
909
862
|
platforms: *1
|
|
910
|
-
description: Default
|
|
911
|
-
or "lighter" variants to deemphasize text — default style should be followed
|
|
912
|
-
by "light" followed by "lighter".
|
|
863
|
+
description: Default paragraph style. Step to light, then lighter, only to de-emphasize supporting lines.
|
|
913
864
|
status: stable
|
|
914
865
|
icons_used: false
|
|
915
866
|
react_rendered: false
|
|
916
867
|
enhanced_element_used: false
|
|
917
868
|
- name: caption
|
|
918
869
|
platforms: *1
|
|
919
|
-
description:
|
|
920
|
-
supplementary context to a small section (i.e. label for a text input, label
|
|
921
|
-
for a paragraph). Use large caption when supplementary text covers more content.
|
|
870
|
+
description: Supplementary text beside inputs or blocks; use large caption when the note spans more content.
|
|
922
871
|
status: stable
|
|
923
872
|
icons_used: false
|
|
924
873
|
react_rendered: false
|
|
@@ -932,9 +881,7 @@ kits:
|
|
|
932
881
|
enhanced_element_used: false
|
|
933
882
|
- name: title
|
|
934
883
|
platforms: *1
|
|
935
|
-
description:
|
|
936
|
-
be followed by Title 2s followed by Title 3s and so on, without skipping any
|
|
937
|
-
levels.
|
|
884
|
+
description: Heading levels Title 1-4; keep semantic order and do not skip levels on a page.
|
|
938
885
|
status: stable
|
|
939
886
|
icons_used: false
|
|
940
887
|
react_rendered: false
|
|
@@ -951,35 +898,28 @@ kits:
|
|
|
951
898
|
components:
|
|
952
899
|
- name: avatar
|
|
953
900
|
platforms: *3
|
|
954
|
-
description:
|
|
955
|
-
of the user. This kit is normally not used by itself, but rather used within
|
|
956
|
-
other kits. The only time Avatar should be used instead of the User kit is when
|
|
957
|
-
you are not going to display the user's name.
|
|
901
|
+
description: User photo for recognition. Prefer User when showing a name; Avatar alone if names are hidden.
|
|
958
902
|
status: stable
|
|
959
903
|
icons_used: true
|
|
960
904
|
react_rendered: false
|
|
961
905
|
enhanced_element_used: false
|
|
962
906
|
- name: multiple_users
|
|
963
907
|
platforms: *1
|
|
964
|
-
description:
|
|
965
|
-
associated to an action or item.
|
|
908
|
+
description: Shows several people tied to one record when a single avatar would hide shared ownership.
|
|
966
909
|
status: stable
|
|
967
910
|
icons_used: false
|
|
968
911
|
react_rendered: false
|
|
969
912
|
enhanced_element_used: false
|
|
970
913
|
- name: multiple_users_stacked
|
|
971
914
|
platforms: *1
|
|
972
|
-
description:
|
|
973
|
-
indicate that multiple users are associated to a specific action or item.
|
|
915
|
+
description: Overlapping avatars in tight spaces to hint many collaborators without naming each.
|
|
974
916
|
status: stable
|
|
975
917
|
icons_used: false
|
|
976
918
|
react_rendered: false
|
|
977
919
|
enhanced_element_used: false
|
|
978
920
|
- name: user
|
|
979
921
|
platforms: *1
|
|
980
|
-
description:
|
|
981
|
-
with avatar, titles, name and territory. This is a versatile kit with features
|
|
982
|
-
than can be added to display more info.
|
|
922
|
+
description: Avatar with name, title, territory, and optional extras—the standard rich user row.
|
|
983
923
|
status: stable
|
|
984
924
|
icons_used: false
|
|
985
925
|
react_rendered: false
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as ComponentRegistry}from"./chunks/componentRegistry-DRSp5D_e.js";import{T as TimePicker,P as PhoneNumberInput,a as Typeahead,b as Passphrase,M as MultiLevelSelect,D as DistributionBar}from"./chunks/_typeahead-
|
|
1
|
+
import{C as ComponentRegistry}from"./chunks/componentRegistry-DRSp5D_e.js";import{T as TimePicker,P as PhoneNumberInput,a as Typeahead,b as Passphrase,M as MultiLevelSelect,D as DistributionBar}from"./chunks/_typeahead-DA__Kgp5.js";import"react";import"react-dom";import"react/jsx-runtime";import"./chunks/globalProps-DOB47YGB.js";import"./chunks/lib-BzglXly2.js";import"react-is";const PB_REACT_MOUNT_EVENT="pb:react:mount";const PB_REACT_UNMOUNT_EVENT="pb:react:unmount";function mountComponents(root){ComponentRegistry.mountComponents(root||document)}function unmountComponents(root){const isDomRoot=root instanceof Element||root instanceof Document||root instanceof DocumentFragment;if(isDomRoot){ComponentRegistry.unmountWithin(root)}else{ComponentRegistry.unmountComponents()}}document.addEventListener(PB_REACT_MOUNT_EVENT,(e=>{var _a;const root=((_a=e.detail)==null?void 0:_a.root)instanceof Element?e.detail.root:document;mountComponents(root)}));document.addEventListener(PB_REACT_UNMOUNT_EVENT,(e=>{var _a;const root=((_a=e.detail)==null?void 0:_a.root)instanceof Element?e.detail.root:document;unmountComponents(root)}));function installTypeaheadLoadingMlsGuard(){if(document.__pbTypeaheadLoadingMlsGuardInstalled)return;document.__pbTypeaheadLoadingMlsGuardInstalled=true;const MLS_SELECTOR='.pb_multi_level_select_kit, [data-pb-react-component="MultiLevelSelect"]';const LOADING_SELECTOR='[data-pb-typeahead-loading="true"]';let isLoading=false;const recompute=()=>{isLoading=!!document.querySelector(LOADING_SELECTOR)};recompute();let raf=null;const schedule=()=>{if(raf)return;raf=requestAnimationFrame((()=>{raf=null;recompute()}))};let obs;try{obs=new MutationObserver((()=>schedule()));obs.observe(document.documentElement,{subtree:true,attributes:true,attributeFilter:["data-pb-typeahead-loading"]})}catch(_){}const blockIfLoading=event=>{var _a;if(!isLoading)return;if(!(event.target instanceof Element))return;const mls=event.target.closest(MLS_SELECTOR);if(!mls)return;event.preventDefault();event.stopPropagation();(_a=event.stopImmediatePropagation)==null?void 0:_a.call(event)};document.addEventListener("pointerdown",blockIfLoading,true);document.addEventListener("click",blockIfLoading,true)}if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",(()=>{mountComponents();installTypeaheadLoadingMlsGuard()}))}else{mountComponents();installTypeaheadLoadingMlsGuard()}document.addEventListener("turbo:load",(()=>{mountComponents();installTypeaheadLoadingMlsGuard()}));document.addEventListener("turbo:render",(()=>{mountComponents();installTypeaheadLoadingMlsGuard()}));document.addEventListener("turbo:before-cache",(()=>{unmountComponents()}));document.addEventListener("turbo:before-frame-render",(e=>{ComponentRegistry.unmountWithin(e.target)}),{capture:true});document.addEventListener("turbo:frame-render",(e=>{mountComponents(e.target)}));document.addEventListener("turbo:frame-load",(e=>{mountComponents(e.target);installTypeaheadLoadingMlsGuard()}));let mo;try{mo=new MutationObserver((muts=>{var _a,_b;for(const m of muts){for(const n of m.addedNodes){if(n.nodeType!==1)continue;const el=n;const hasNewPbMountPoint=((_a=el.matches)==null?void 0:_a.call(el,'[data-pb-react-component]:not([data-pb-react-mounted="true"])'))||((_b=el.querySelector)==null?void 0:_b.call(el,'[data-pb-react-component]:not([data-pb-react-mounted="true"])'));if(!hasNewPbMountPoint)continue;requestAnimationFrame((()=>mountComponents(el)));return}}}));mo.observe(document.documentElement,{childList:true,subtree:true})}catch(_){}ComponentRegistry.registerComponents({DistributionBar:DistributionBar,MultiLevelSelect:MultiLevelSelect,Passphrase:Passphrase,Typeahead:Typeahead,PhoneNumberInput:PhoneNumberInput,TimePicker:TimePicker});const mountPlaybookReactKits=()=>{ComponentRegistry.mountComponents()};const unmountPlaybookReactKits=()=>{ComponentRegistry.unmountComponents()};let mountTimeout=null;const debouncedMount=()=>{if(mountTimeout)clearTimeout(mountTimeout);mountTimeout=setTimeout((()=>{mountPlaybookReactKits();mountTimeout=null}),50)};const observer=new MutationObserver((mutations=>{const hasNewPbComponents=mutations.some((mutation=>Array.from(mutation.addedNodes).some((node=>{var _a,_b;if(node.nodeType!==1)return false;return((_a=node.hasAttribute)==null?void 0:_a.call(node,"data-pb-react-component"))||((_b=node.querySelector)==null?void 0:_b.call(node,"[data-pb-react-component]"))}))));if(hasNewPbComponents){debouncedMount()}}));observer.observe(document.body,{childList:true,subtree:true});export{mountPlaybookReactKits,unmountPlaybookReactKits};
|