playbook_ui_docs 16.10.0.pre.alpha.PLAY3088figmacodeconnecttrial17604 → 16.10.0.pre.alpha.play3040dropdownkitdisableoptions17375

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 (48) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_react.md +2 -2
  3. data/app/pb_kits/playbook/pb_advanced_table/docs/example.yml +2 -3
  4. data/app/pb_kits/playbook/pb_advanced_table/docs/index.js +1 -3
  5. data/app/pb_kits/playbook/pb_dropdown/docs/_playground.json +237 -149
  6. data/app/pb_kits/playbook/pb_dropdown/docs/_playground.overrides.json +74 -58
  7. data/app/pb_kits/playbook/pb_file_upload/docs/example.yml +1 -3
  8. data/app/pb_kits/playbook/pb_file_upload/docs/index.js +0 -1
  9. data/app/pb_kits/playbook/pb_icon/docs/_playground.json +16 -2
  10. data/app/pb_kits/playbook/pb_icon/docs/_playground.overrides.json +13 -2
  11. data/app/pb_kits/playbook/pb_nav/docs/_playground.json +213 -117
  12. data/app/pb_kits/playbook/pb_nav/docs/_playground.overrides.json +319 -127
  13. data/app/pb_kits/playbook/pb_textarea/docs/_textarea_error.html.erb +1 -1
  14. data/app/pb_kits/playbook/pb_typeahead/docs/_playground.json +2 -8
  15. data/app/pb_kits/playbook/pb_typeahead/docs/example.yml +0 -2
  16. data/app/pb_kits/playbook/pb_typeahead/docs/index.js +0 -1
  17. metadata +2 -33
  18. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_both.jsx +0 -57
  19. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_both_react.md +0 -1
  20. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_bottom.jsx +0 -57
  21. data/app/pb_kits/playbook/pb_advanced_table/docs/_advanced_table_pinned_rows_bottom_react.md +0 -1
  22. data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_remove_replace.html.erb +0 -66
  23. data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_remove_replace.jsx +0 -53
  24. data/app/pb_kits/playbook/pb_file_upload/docs/_file_upload_remove_replace.md +0 -5
  25. data/app/pb_kits/playbook/pb_full_screen/docs/_description.md +0 -1
  26. data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_content_padding.jsx +0 -68
  27. data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_content_padding.md +0 -1
  28. data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_custom_trigger.jsx +0 -71
  29. data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_custom_trigger.md +0 -1
  30. data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_default.html.erb +0 -3
  31. data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_default.jsx +0 -63
  32. data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_default.md +0 -1
  33. data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_header_text_styling.jsx +0 -68
  34. data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_header_text_styling.md +0 -1
  35. data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_sticky_header.jsx +0 -68
  36. data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_sticky_header.md +0 -1
  37. data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_table_and_filter.jsx +0 -149
  38. data/app/pb_kits/playbook/pb_full_screen/docs/_full_screen_table_and_filter.md +0 -1
  39. data/app/pb_kits/playbook/pb_full_screen/docs/_playground.json +0 -155
  40. data/app/pb_kits/playbook/pb_full_screen/docs/_playground.overrides.json +0 -137
  41. data/app/pb_kits/playbook/pb_full_screen/docs/example.yml +0 -14
  42. data/app/pb_kits/playbook/pb_full_screen/docs/index.js +0 -6
  43. data/app/pb_kits/playbook/pb_title/docs/Title.figma.ts +0 -44
  44. data/app/pb_kits/playbook/pb_title/docs/Title.figma.tsx +0 -39
  45. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_draggable_pills.html.erb +0 -39
  46. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_draggable_pills.jsx +0 -63
  47. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_draggable_pills.md +0 -7
  48. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_draggable_pills_rails.md +0 -7
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e41427b065be326b7f39a9c50c7646bb37c8ba6e468a2bac3bb56251c12cbc05
4
- data.tar.gz: 6c8b2e841fa09acb651b1d5d3eaeb94c0d9b9bbdae92327e8cd14b394ac499e8
3
+ metadata.gz: 46df9960ac3a725146e8bd548c573dde9ccfea623d1828b1e60de1a5d8470e2f
4
+ data.tar.gz: 38b340bb6f84093cc315a3e2360bc1b1735367f648f4d2a8352bb4be67c31f67
5
5
  SHA512:
6
- metadata.gz: f979696ac74d9016cdb550585dd4233b39a6fb0f13fbe0b02976d67cf4ee89b0c634c7e277ae2e7547d3bdbdb712425bb4c9be18ab7f56a2d1f6528b3e6d817c
7
- data.tar.gz: f3e4112c27741620a58b203ec014fa716cdfaf5599e7e424986f3e8c4661f3430ec59b0f5d34ef8d26e918f21f94957d6e59d9de6b9638c98979f9f8451abded
6
+ metadata.gz: c6fa92505aa9352e36c25083e28b705d7f7fe13dea8367c7cf83e7ad80c5e05d1ceb1b5e689f62d3f7f5e3087ef65ee1acf9f1ed612483babc6cbad35813db6a
7
+ data.tar.gz: 6023d492200076c7127bca4838e8169b510a9b3ffa564d1c7ef68c039e217bebebdc244f650a34d2b1889b7cb1b6651214771753c0dc94e6499cb6c703b86aed
@@ -1,7 +1,7 @@
1
- Use the `pinnedRows` prop to pin specific rows to the top or bottom of an Advanced Table. Pinned rows will remain at the top or bottom when scrolling through table data and will not change position if sorting is used.
1
+ Use the `pinnedRows` prop to pin specific rows to the top of an Advanced Table. Pinned rows will remain at the top when scrolling through table data and will not change position if sorting is used.
2
2
 
3
3
  **NOTE:**
4
4
  - Sticky header required: Pinned rows must be used with `sticky: true` via `tableProps` (works with both responsive and non-responsive tables)
5
5
  - Row ids required: Each object within the `tableData` Array must contain a unique id in order to attach an id to all Rows for this to function.
6
- - `pinnedRows` takes an array of row ids to the `top` or `bottom` property, or both. `top` is shown in the code snippet below.
6
+ - `pinnedRows` takes an array of row ids to the `top` property as shown in the code snippet below.
7
7
  - For expandable rows, use the parent id in `pinnedRows`, all its children will automatically be pinned with it. If id for a child is passed in without parent being pinned, nothing will be pinned.
@@ -67,9 +67,7 @@ examples:
67
67
  - advanced_table_column_headers_custom_cell: Multi-Header Columns with Custom Cells
68
68
  - advanced_table_column_headers_vertical_border: Multi-Header Columns with Vertical Borders
69
69
  - advanced_table_no_subrows: Table with No Subrows or Expansion
70
- - advanced_table_pinned_rows: Pinned Rows (Top)
71
- - advanced_table_pinned_rows_bottom: Pinned Rows (Bottom)
72
- - advanced_table_pinned_rows_both: Pinned Rows (Both)
70
+ - advanced_table_pinned_rows: Pinned Rows
73
71
  - advanced_table_selectable_rows: Selectable Rows
74
72
  - advanced_table_selectable_rows_no_subrows_react: Selectable Rows (No Subrows)
75
73
  - advanced_table_selectable_rows_actions: Selectable Rows (With Actions)
@@ -91,4 +89,5 @@ examples:
91
89
  - advanced_table_column_styling_background_multi: Column Styling Background Color with Multiple Headers
92
90
  - advanced_table_padding_control: Padding Control using Column Styling
93
91
  - advanced_table_column_border_color: Column Group Border Color
92
+ - advanced_table_fullscreen: Fullscreen
94
93
  - advanced_table_infinite_scroll: Infinite Scroll
@@ -52,6 +52,4 @@ export { default as AdvancedTableColumnStylingBackground } from './_advanced_tab
52
52
  export { default as AdvancedTableColumnStylingBackgroundMulti } from './_advanced_table_column_styling_background_multi.jsx'
53
53
  export { default as AdvancedTableColumnStylingBackgroundCustom } from './_advanced_table_column_styling_background_custom.jsx'
54
54
  export { default as AdvancedTableCascadeCollapse } from './_advanced_table_cascade_collapse.jsx'
55
- export { default as AdvancedTableSortParentOnly } from './_advanced_table_sort_parent_only.jsx'
56
- export { default as AdvancedTablePinnedRowsBottom } from './_advanced_table_pinned_rows_bottom.jsx'
57
- export { default as AdvancedTablePinnedRowsBoth } from './_advanced_table_pinned_rows_both.jsx'
55
+ export { default as AdvancedTableSortParentOnly } from './_advanced_table_sort_parent_only.jsx'
@@ -7,7 +7,6 @@
7
7
  "clearable": true,
8
8
  "closeOnClick": "any",
9
9
  "constrainHeight": false,
10
- "disabled": false,
11
10
  "multiSelect": false,
12
11
  "separators": true,
13
12
  "variant": "default",
@@ -26,59 +25,12 @@
26
25
  {
27
26
  "label": "Canada",
28
27
  "value": "canada",
29
- "id": "ca",
30
- "disabled": true
28
+ "id": "ca"
31
29
  },
32
30
  {
33
31
  "label": "Pakistan",
34
32
  "value": "pakistan",
35
33
  "id": "pk"
36
- },
37
- {
38
- "label": "Mexico",
39
- "value": "mexico",
40
- "id": "mx",
41
- "disabled": true
42
- },
43
- {
44
- "label": "United Kingdom",
45
- "value": "unitedKingdom",
46
- "id": "gb"
47
- },
48
- {
49
- "label": "India",
50
- "value": "india",
51
- "id": "in"
52
- },
53
- {
54
- "label": "Australia",
55
- "value": "australia",
56
- "id": "au"
57
- },
58
- {
59
- "label": "New Zealand",
60
- "value": "newZealand",
61
- "id": "nz"
62
- },
63
- {
64
- "label": "Italy",
65
- "value": "italy",
66
- "id": "it"
67
- },
68
- {
69
- "label": "Germany",
70
- "value": "germany",
71
- "id": "de"
72
- },
73
- {
74
- "label": "Brazil",
75
- "value": "brazil",
76
- "id": "br"
77
- },
78
- {
79
- "label": "Philippines",
80
- "value": "philippines",
81
- "id": "ph"
82
34
  }
83
35
  ],
84
36
  "placeholder": "Select a country"
@@ -123,8 +75,7 @@
123
75
  "separators",
124
76
  "formPillProps",
125
77
  "activeStyle",
126
- "dark",
127
- "disabled"
78
+ "dark"
128
79
  ]
129
80
  },
130
81
  {
@@ -139,28 +90,72 @@
139
90
  "name": "Default trigger",
140
91
  "props": {
141
92
  "variant": "default",
142
- "placeholder": "Select a country"
93
+ "placeholder": "Select a country",
94
+ "options": [
95
+ {
96
+ "label": "United States",
97
+ "value": "unitedStates",
98
+ "id": "us"
99
+ },
100
+ {
101
+ "label": "Canada",
102
+ "value": "canada",
103
+ "id": "ca"
104
+ },
105
+ {
106
+ "label": "Mexico",
107
+ "value": "mexico",
108
+ "id": "mx"
109
+ }
110
+ ]
143
111
  }
144
112
  },
145
113
  {
146
114
  "name": "With label",
147
115
  "props": {
148
116
  "label": "Select a Country",
149
- "placeholder": "Choose a country"
150
- }
151
- },
152
- {
153
- "name": "Disabled options",
154
- "props": {
155
- "label": "Select a Country",
156
- "placeholder": "Choose a country"
117
+ "placeholder": "Choose a country",
118
+ "options": [
119
+ {
120
+ "label": "United States",
121
+ "value": "unitedStates",
122
+ "id": "us"
123
+ },
124
+ {
125
+ "label": "Canada",
126
+ "value": "canada",
127
+ "id": "ca"
128
+ },
129
+ {
130
+ "label": "Pakistan",
131
+ "value": "pakistan",
132
+ "id": "pk"
133
+ }
134
+ ]
157
135
  }
158
136
  },
159
137
  {
160
138
  "name": "Subtle Variant",
161
139
  "props": {
162
140
  "variant": "subtle",
163
- "separators": false
141
+ "separators": false,
142
+ "options": [
143
+ {
144
+ "label": "Alpha",
145
+ "value": "alpha",
146
+ "id": "a"
147
+ },
148
+ {
149
+ "label": "Beta",
150
+ "value": "beta",
151
+ "id": "b"
152
+ },
153
+ {
154
+ "label": "Gamma",
155
+ "value": "gamma",
156
+ "id": "g"
157
+ }
158
+ ]
164
159
  }
165
160
  },
166
161
  {
@@ -227,7 +222,29 @@
227
222
  "props": {
228
223
  "variant": "default",
229
224
  "multiSelect": true,
230
- "placeholder": "Select countries"
225
+ "placeholder": "Select regions",
226
+ "options": [
227
+ {
228
+ "label": "North",
229
+ "value": "north",
230
+ "id": "n"
231
+ },
232
+ {
233
+ "label": "South",
234
+ "value": "south",
235
+ "id": "s"
236
+ },
237
+ {
238
+ "label": "East",
239
+ "value": "east",
240
+ "id": "e"
241
+ },
242
+ {
243
+ "label": "West",
244
+ "value": "west",
245
+ "id": "w"
246
+ }
247
+ ]
231
248
  }
232
249
  },
233
250
  {
@@ -249,6 +266,48 @@
249
266
  "label": "Italy",
250
267
  "value": "italy"
251
268
  }
269
+ ],
270
+ "options": [
271
+ {
272
+ "label": "United States",
273
+ "value": "unitedStates",
274
+ "id": "us"
275
+ },
276
+ {
277
+ "label": "United Kingdom",
278
+ "value": "unitedKingdom",
279
+ "id": "gb"
280
+ },
281
+ {
282
+ "label": "Canada",
283
+ "value": "canada",
284
+ "id": "ca"
285
+ },
286
+ {
287
+ "label": "Pakistan",
288
+ "value": "pakistan",
289
+ "id": "pk"
290
+ },
291
+ {
292
+ "label": "India",
293
+ "value": "india",
294
+ "id": "in"
295
+ },
296
+ {
297
+ "label": "Australia",
298
+ "value": "australia",
299
+ "id": "au"
300
+ },
301
+ {
302
+ "label": "New Zealand",
303
+ "value": "newZealand",
304
+ "id": "nz"
305
+ },
306
+ {
307
+ "label": "Italy",
308
+ "value": "italy",
309
+ "id": "it"
310
+ }
252
311
  ]
253
312
  }
254
313
  },
@@ -258,7 +317,19 @@
258
317
  "variant": "default",
259
318
  "label": "Required field",
260
319
  "placeholder": "Required field",
261
- "error": "Please make a selection."
320
+ "error": "Please make a selection.",
321
+ "options": [
322
+ {
323
+ "label": "Option A",
324
+ "value": "a",
325
+ "id": "a"
326
+ },
327
+ {
328
+ "label": "Option B",
329
+ "value": "b",
330
+ "id": "b"
331
+ }
332
+ ]
262
333
  }
263
334
  },
264
335
  {
@@ -266,14 +337,93 @@
266
337
  "props": {
267
338
  "variant": "default",
268
339
  "autocomplete": true,
269
- "placeholder": "Search..."
340
+ "placeholder": "Search",
341
+ "options": [
342
+ {
343
+ "label": "Apple",
344
+ "value": "apple",
345
+ "id": "1"
346
+ },
347
+ {
348
+ "label": "Apricot",
349
+ "value": "apricot",
350
+ "id": "2"
351
+ },
352
+ {
353
+ "label": "Banana",
354
+ "value": "banana",
355
+ "id": "3"
356
+ }
357
+ ]
270
358
  }
271
359
  },
272
360
  {
273
361
  "name": "Constrained height",
274
362
  "props": {
275
363
  "label": "Choose an Option",
276
- "constrainHeight": true
364
+ "constrainHeight": true,
365
+ "options": [
366
+ {
367
+ "label": "Option 1",
368
+ "value": "option_1",
369
+ "id": "opt_1"
370
+ },
371
+ {
372
+ "label": "Option 2",
373
+ "value": "option_2",
374
+ "id": "opt_2"
375
+ },
376
+ {
377
+ "label": "Option 3",
378
+ "value": "option_3",
379
+ "id": "opt_3"
380
+ },
381
+ {
382
+ "label": "Option 4",
383
+ "value": "option_4",
384
+ "id": "opt_4"
385
+ },
386
+ {
387
+ "label": "Option 5",
388
+ "value": "option_5",
389
+ "id": "opt_5"
390
+ },
391
+ {
392
+ "label": "Option 6",
393
+ "value": "option_6",
394
+ "id": "opt_6"
395
+ },
396
+ {
397
+ "label": "Option 7",
398
+ "value": "option_7",
399
+ "id": "opt_7"
400
+ },
401
+ {
402
+ "label": "Option 8",
403
+ "value": "option_8",
404
+ "id": "opt_8"
405
+ },
406
+ {
407
+ "label": "Option 9",
408
+ "value": "option_9",
409
+ "id": "opt_9"
410
+ },
411
+ {
412
+ "label": "Option 10",
413
+ "value": "option_10",
414
+ "id": "opt_10"
415
+ },
416
+ {
417
+ "label": "Option 11",
418
+ "value": "option_11",
419
+ "id": "opt_11"
420
+ },
421
+ {
422
+ "label": "Option 12",
423
+ "value": "option_12",
424
+ "id": "opt_12"
425
+ }
426
+ ]
277
427
  }
278
428
  }
279
429
  ],
@@ -342,11 +492,6 @@
342
492
  "message": "constrainHeight restricts the height of the dropdown menu and enables vertical scrolling when the content exceeds this height. This prevents long dropdown lists from rendering off-screen.",
343
493
  "type": "info"
344
494
  },
345
- "disabled_options_info": {
346
- "presetName": "Disabled options",
347
- "message": "Set disabled: true on individual option objects to keep them visible while preventing selection.",
348
- "type": "info"
349
- },
350
495
  "subcomponent_structure_info": {
351
496
  "message": "Switch Structure to “With Subcomponents” to see the explicit Dropdown.Trigger, Dropdown.Container, and Dropdown.Option composition API.",
352
497
  "type": "info"
@@ -357,90 +502,33 @@
357
502
  "modes": {
358
503
  "simple": {
359
504
  "label": "Simple",
360
- "template": "<Dropdown options={options}{{props}} />",
505
+ "template": "<Dropdown{{props}} />",
361
506
  "children": ""
362
507
  },
363
508
  "subcomponents": {
364
509
  "label": "With Subcomponents",
365
- "template": "<Dropdown options={options}{{props}}>\n <Dropdown.Trigger />\n <Dropdown.Container>\n {options.map((option) => (\n <Dropdown.Option key={option.id} option={option} />\n ))}\n </Dropdown.Container>\n</Dropdown>",
366
- "children": ""
510
+ "template": "<Dropdown{{props}}>\n <Dropdown.Trigger />\n <Dropdown.Container>\n <Dropdown.Option option={({ label: 'United States', value: 'unitedStates', id: 'us' })} />\n <Dropdown.Option option={({ label: 'Canada', value: 'canada', id: 'ca' })} />\n <Dropdown.Option option={({ label: 'Pakistan', value: 'pakistan', id: 'pk' })} />\n </Dropdown.Container>\n</Dropdown>",
511
+ "children": "",
512
+ "props": {
513
+ "options": [
514
+ {
515
+ "label": "United States",
516
+ "value": "unitedStates",
517
+ "id": "us"
518
+ },
519
+ {
520
+ "label": "Canada",
521
+ "value": "canada",
522
+ "id": "ca"
523
+ },
524
+ {
525
+ "label": "Pakistan",
526
+ "value": "pakistan",
527
+ "id": "pk"
528
+ }
529
+ ]
530
+ }
367
531
  }
368
532
  }
369
- },
370
- "customProps": {
371
- "options": {
372
- "type": "array",
373
- "platforms": [
374
- "react",
375
- "rails"
376
- ],
377
- "description": "Dropdown option data with label, value, id, and optional disabled state."
378
- }
379
- },
380
- "requiredProps": {
381
- "options": [
382
- {
383
- "label": "United States",
384
- "value": "unitedStates",
385
- "id": "us"
386
- },
387
- {
388
- "label": "Canada",
389
- "value": "canada",
390
- "id": "ca",
391
- "disabled": true
392
- },
393
- {
394
- "label": "Pakistan",
395
- "value": "pakistan",
396
- "id": "pk"
397
- },
398
- {
399
- "label": "Mexico",
400
- "value": "mexico",
401
- "id": "mx",
402
- "disabled": true
403
- },
404
- {
405
- "label": "United Kingdom",
406
- "value": "unitedKingdom",
407
- "id": "gb"
408
- },
409
- {
410
- "label": "India",
411
- "value": "india",
412
- "id": "in"
413
- },
414
- {
415
- "label": "Australia",
416
- "value": "australia",
417
- "id": "au"
418
- },
419
- {
420
- "label": "New Zealand",
421
- "value": "newZealand",
422
- "id": "nz"
423
- },
424
- {
425
- "label": "Italy",
426
- "value": "italy",
427
- "id": "it"
428
- },
429
- {
430
- "label": "Germany",
431
- "value": "germany",
432
- "id": "de"
433
- },
434
- {
435
- "label": "Brazil",
436
- "value": "brazil",
437
- "id": "br"
438
- },
439
- {
440
- "label": "Philippines",
441
- "value": "philippines",
442
- "id": "ph"
443
- }
444
- ]
445
533
  }
446
534
  }