primer_view_components 0.18.2 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +46 -0
  3. data/app/assets/javascripts/app/components/primer/alpha/action_list.d.ts +16 -0
  4. data/app/assets/javascripts/app/components/primer/beta/nav_list.d.ts +3 -0
  5. data/app/assets/javascripts/app/components/primer/primer.d.ts +1 -0
  6. data/app/assets/javascripts/primer_view_components.js +1 -1
  7. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  8. data/app/assets/styles/primer_view_components.css +1 -1
  9. data/app/assets/styles/primer_view_components.css.map +1 -1
  10. data/app/components/primer/alpha/action_bar_element.js +4 -6
  11. data/app/components/primer/alpha/action_list/item.rb +19 -6
  12. data/app/components/primer/alpha/action_list.css +1 -1
  13. data/app/components/primer/alpha/action_list.css.json +2 -0
  14. data/app/components/primer/alpha/action_list.css.map +1 -1
  15. data/app/components/primer/alpha/action_list.d.ts +16 -0
  16. data/app/components/primer/alpha/action_list.html.erb +19 -17
  17. data/app/components/primer/alpha/action_list.js +69 -0
  18. data/app/components/primer/alpha/action_list.pcss +8 -0
  19. data/app/components/primer/alpha/action_list.ts +58 -0
  20. data/app/components/primer/alpha/action_menu/action_menu_element.js +12 -19
  21. data/app/components/primer/alpha/banner.css +1 -1
  22. data/app/components/primer/alpha/banner.css.map +1 -1
  23. data/app/components/primer/alpha/banner.pcss +4 -4
  24. data/app/components/primer/alpha/banner.rb +17 -3
  25. data/app/components/primer/alpha/dialog.css +1 -1
  26. data/app/components/primer/alpha/dialog.css.json +2 -0
  27. data/app/components/primer/alpha/dialog.css.map +1 -1
  28. data/app/components/primer/alpha/dialog.pcss +9 -0
  29. data/app/components/primer/alpha/dropdown.css +1 -1
  30. data/app/components/primer/alpha/dropdown.css.map +1 -1
  31. data/app/components/primer/alpha/dropdown.pcss +1 -1
  32. data/app/components/primer/alpha/modal_dialog.js +8 -10
  33. data/app/components/primer/alpha/segmented_control.js +2 -3
  34. data/app/components/primer/alpha/text_field.css +1 -1
  35. data/app/components/primer/alpha/text_field.css.json +2 -0
  36. data/app/components/primer/alpha/text_field.css.map +1 -1
  37. data/app/components/primer/alpha/text_field.pcss +10 -0
  38. data/app/components/primer/alpha/toggle_switch.rb +2 -2
  39. data/app/components/primer/alpha/tool_tip.js +5 -7
  40. data/app/components/primer/beta/auto_complete/auto_complete.html.erb +9 -9
  41. data/app/components/primer/beta/breadcrumbs.css +1 -1
  42. data/app/components/primer/beta/breadcrumbs.css.map +1 -1
  43. data/app/components/primer/beta/breadcrumbs.pcss +3 -1
  44. data/app/components/primer/beta/button.css +1 -1
  45. data/app/components/primer/beta/button.css.json +1 -1
  46. data/app/components/primer/beta/button.css.map +1 -1
  47. data/app/components/primer/beta/button.pcss +5 -5
  48. data/app/components/primer/beta/button_group.rb +53 -1
  49. data/app/components/primer/beta/flash.css +1 -1
  50. data/app/components/primer/beta/flash.css.map +1 -1
  51. data/app/components/primer/beta/flash.pcss +4 -4
  52. data/app/components/primer/beta/flash.rb +3 -1
  53. data/app/components/primer/beta/nav_list.d.ts +3 -0
  54. data/app/components/primer/beta/nav_list.html.erb +1 -1
  55. data/app/components/primer/beta/nav_list.js +31 -12
  56. data/app/components/primer/beta/nav_list.ts +18 -1
  57. data/app/components/primer/beta/nav_list_group_element.js +6 -4
  58. data/app/components/primer/beta/nav_list_group_element.ts +3 -0
  59. data/app/components/primer/beta/popover.css +1 -1
  60. data/app/components/primer/beta/popover.css.map +1 -1
  61. data/app/components/primer/beta/popover.pcss +3 -0
  62. data/app/components/primer/beta/popover.rb +0 -1
  63. data/app/components/primer/dialog_helper.js +5 -7
  64. data/app/components/primer/focus_group.js +9 -12
  65. data/app/components/primer/primer.d.ts +1 -0
  66. data/app/components/primer/primer.js +1 -0
  67. data/app/components/primer/primer.ts +1 -0
  68. data/app/forms/auto_complete_form.rb +18 -0
  69. data/app/forms/select_form.rb +10 -0
  70. data/lib/primer/deprecations.yml +5 -0
  71. data/lib/primer/forms/auto_complete.html.erb +6 -0
  72. data/lib/primer/forms/auto_complete.rb +56 -0
  73. data/lib/primer/forms/builder.rb +19 -0
  74. data/lib/primer/forms/check_box_group.html.erb +4 -4
  75. data/lib/primer/forms/check_box_group.rb +0 -3
  76. data/lib/primer/forms/dsl/auto_complete_input.rb +33 -0
  77. data/lib/primer/forms/dsl/check_box_group_input.rb +8 -0
  78. data/lib/primer/forms/dsl/input.rb +8 -2
  79. data/lib/primer/forms/dsl/input_methods.rb +9 -0
  80. data/lib/primer/forms/dsl/radio_button_group_input.rb +8 -0
  81. data/lib/primer/forms/dsl/select_input.rb +5 -1
  82. data/lib/primer/forms/form_control.rb +1 -2
  83. data/lib/primer/forms/primer_multi_input.js +2 -3
  84. data/lib/primer/forms/primer_text_field.js +4 -6
  85. data/lib/primer/forms/primer_text_field.ts +2 -2
  86. data/lib/primer/forms/radio_button_group.html.erb +4 -4
  87. data/lib/primer/forms/radio_button_group.rb +0 -3
  88. data/lib/primer/forms/select.html.erb +1 -0
  89. data/lib/primer/forms/select.rb +9 -5
  90. data/lib/primer/view_components/version.rb +2 -2
  91. data/previews/primer/alpha/action_list_preview.rb +42 -0
  92. data/previews/primer/alpha/select_preview.rb +12 -1
  93. data/previews/primer/alpha/text_area_preview.rb +7 -1
  94. data/previews/primer/alpha/text_field_preview.rb +7 -1
  95. data/previews/primer/beta/button_group_preview/with_menu_button.html.erb +7 -0
  96. data/previews/primer/beta/button_group_preview.rb +6 -0
  97. data/previews/primer/beta/nav_list_preview.rb +43 -0
  98. data/previews/primer/forms_preview/auto_complete_form.html.erb +3 -0
  99. data/previews/primer/forms_preview/select_form.html.erb +1 -1
  100. data/previews/primer/forms_preview.rb +2 -0
  101. data/static/arguments.json +30 -8
  102. data/static/audited_at.json +1 -0
  103. data/static/constants.json +18 -0
  104. data/static/info_arch.json +218 -11
  105. data/static/previews.json +157 -1
  106. data/static/statuses.json +2 -1
  107. metadata +12 -3
  108. data/previews/primer/beta/button_group_preview/action_menus.html.erb +0 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 574dadf0070e8650f62100430c4473704a9eb821aee3b190899907145c7ca8ff
4
- data.tar.gz: 4cdfee4224db649ea83a43aa297d1d9038e5be09b30128a624db5a862d68b4d5
3
+ metadata.gz: c94a9203d1e217a748983bdc90bd0fa0447b80cf5507cad955265b82de8fd5ca
4
+ data.tar.gz: ec470859a7f5be5135597fd3c5c0a0581fa76a8001a9a0d9f0085343685eba80
5
5
  SHA512:
6
- metadata.gz: 8be6873cf444ea992059fc5979f2ca7513143cf60de29198825901f1a1272f2bad47792a444b896d723bd11195c141d01edad4db9f1b69247924ecd0ae5d3957
7
- data.tar.gz: 695b0fdc4960ffd3592458c4372192635a6a3276182b1c34e97d48ad79edbdb9ac4ecac65286b51827fe4a1f601980e6c2f1b618cabd1a496215aff90af8f93a
6
+ metadata.gz: b37365ae243b556ebd8bb16ca57a2b4e95f09725ac8b10bd940a38cab77dd241b0ed3e47d79ffd36652626308c4443de843126fb663c071a61a41f36fbd05233
7
+ data.tar.gz: 3e247b595ab9b7bb2a760c862612ce71d7c4b96327ff82f258ed3bd1b64d292124336f1baf1731d12fa0f497e712ff77eb35860ccbe4a584f475a018a3458477
data/CHANGELOG.md CHANGED
@@ -1,5 +1,51 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 0.20.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#2627](https://github.com/primer/view_components/pull/2627) [`226481e`](https://github.com/primer/view_components/commit/226481e51e8c459dcd6d2a49d57c5005a8103aff) Thanks [@camertron](https://github.com/camertron)! - Support `<select>` elements that allow selecting multiple values
8
+
9
+ - [#2610](https://github.com/primer/view_components/pull/2610) [`14890a3`](https://github.com/primer/view_components/commit/14890a30c736a5a01596f0863e36d81861e6d6ac) Thanks [@thesnowrose](https://github.com/thesnowrose)! - Add the ability to show a tooltip for navlists on text truncation
10
+
11
+ - [#2609](https://github.com/primer/view_components/pull/2609) [`14d8dc5`](https://github.com/primer/view_components/commit/14d8dc583541879eda26b7f1836d3df7c752507f) Thanks [@camertron](https://github.com/camertron)! - Add an AutoComplete form input
12
+
13
+ ### Patch Changes
14
+
15
+ - [#2673](https://github.com/primer/view_components/pull/2673) [`3a6762d`](https://github.com/primer/view_components/commit/3a6762db6a55b5f918b86c58ee835fe52e66eac3) Thanks [@camertron](https://github.com/camertron)! - Make text field and other form inputs respect the full_width: option
16
+
17
+ - [#2665](https://github.com/primer/view_components/pull/2665) [`c7c206a`](https://github.com/primer/view_components/commit/c7c206a5f434ec023aec87623f0dc1e90902d3ee) Thanks [@langermank](https://github.com/langermank)! - Default IconButton text color `muted`
18
+
19
+ - [#2629](https://github.com/primer/view_components/pull/2629) [`862f05a`](https://github.com/primer/view_components/commit/862f05ae7a751b87650c72616360cdbabb7504ee) Thanks [@camertron](https://github.com/camertron)! - Fix autofocus behavior for radio button and check box groups
20
+
21
+ - [#2642](https://github.com/primer/view_components/pull/2642) [`7f17b7c`](https://github.com/primer/view_components/commit/7f17b7c1686cfa875ae75b58c8ff3245ea08eb24) Thanks [@tbenning](https://github.com/tbenning)! - Unify breadcrumbs
22
+
23
+ - [#2666](https://github.com/primer/view_components/pull/2666) [`53a3390`](https://github.com/primer/view_components/commit/53a3390e897b5959e6d38f2f212ac773622c51f7) Thanks [@camertron](https://github.com/camertron)! - Make sure labels and form inputs are properly associated when a custom ID is provided
24
+
25
+ - [#2672](https://github.com/primer/view_components/pull/2672) [`f1ab24a`](https://github.com/primer/view_components/commit/f1ab24ab59dd989ef21b0674b7b95189d7b50c2b) Thanks [@orhantoy](https://github.com/orhantoy)! - Fix documented options for ToggleSwitch size and status_label_position
26
+
27
+ - [#2643](https://github.com/primer/view_components/pull/2643) [`70a6dee`](https://github.com/primer/view_components/commit/70a6dee654562b505ac17991a53d1039c57f81e3) Thanks [@langermank](https://github.com/langermank)! - Swap bg-gradient with bg-color for Banner/Flash
28
+
29
+ ## 0.19.0
30
+
31
+ ### Minor Changes
32
+
33
+ - [#2607](https://github.com/primer/view_components/pull/2607) [`1cf14e5`](https://github.com/primer/view_components/commit/1cf14e5034b7461663a982a80c6756f09f4fa968) Thanks [@camertron](https://github.com/camertron)! - Add ability to attach action menus to button group buttons
34
+
35
+ - [#2626](https://github.com/primer/view_components/pull/2626) [`1160edf`](https://github.com/primer/view_components/commit/1160edf76c72de4cc71f7b4ed435ebd336feb854) Thanks [@camertron](https://github.com/camertron)! - Upgrade to view_component v3.11.0
36
+
37
+ - [#2640](https://github.com/primer/view_components/pull/2640) [`56b2413`](https://github.com/primer/view_components/commit/56b24139e7b58a337cf98203cf7a765adfd20414) Thanks [@khiga8](https://github.com/khiga8)! - Mark `Flash` as deprecated
38
+
39
+ - [#2604](https://github.com/primer/view_components/pull/2604) [`8d67631`](https://github.com/primer/view_components/commit/8d67631298b6bbef8efb9acb2ced412253fe0d26) Thanks [@mattcosta7](https://github.com/mattcosta7)! - update tsconfig compile target
40
+
41
+ ### Patch Changes
42
+
43
+ - [#2628](https://github.com/primer/view_components/pull/2628) [`5619810`](https://github.com/primer/view_components/commit/56198108dfb38c1a2a2b52e6798bbbd3ba143090) Thanks [@langermank](https://github.com/langermank)! - Primitives v8 bug fix: `invisible` button hover state in high contrast themes
44
+
45
+ - [#2620](https://github.com/primer/view_components/pull/2620) [`59c3396`](https://github.com/primer/view_components/commit/59c3396d4676947ffe98022dc8f7752eecf82cd0) Thanks [@khiga8](https://github.com/khiga8)! - Docs: update accessibility section of PVC Banner
46
+
47
+ - [#2611](https://github.com/primer/view_components/pull/2611) [`8c111df`](https://github.com/primer/view_components/commit/8c111df3cbd0c8964ab2376c72db2dc72e288de7) Thanks [@lindseywild](https://github.com/lindseywild)! - Update README docs with instructions to preview docs site locally
48
+
3
49
  ## 0.18.2
4
50
 
5
51
  ### Patch Changes
@@ -0,0 +1,16 @@
1
+ export declare class ActionListTruncationObserver {
2
+ resizeObserver: ResizeObserver;
3
+ constructor(el: HTMLElement);
4
+ unobserve(el: HTMLElement): void;
5
+ update(el: HTMLElement): void;
6
+ }
7
+ export declare class ActionListElement extends HTMLElement {
8
+ #private;
9
+ connectedCallback(): void;
10
+ disconnectedCallback(): void;
11
+ }
12
+ declare global {
13
+ interface Window {
14
+ ActionListElement: typeof ActionListElement;
15
+ }
16
+ }
@@ -1,6 +1,9 @@
1
1
  export declare class NavListElement extends HTMLElement {
2
2
  #private;
3
3
  items: HTMLElement[];
4
+ topLevelList: HTMLElement;
5
+ connectedCallback(): void;
6
+ disconnectedCallback(): void;
4
7
  selectItemById(itemId: string | null): boolean;
5
8
  selectItemByHref(href: string | null): boolean;
6
9
  selectItemByCurrentLocation(): boolean;
@@ -1,4 +1,5 @@
1
1
  import '@github/include-fragment-element';
2
+ import './alpha/action_list';
2
3
  import './alpha/action_bar_element';
3
4
  import './alpha/dropdown';
4
5
  import './anchored_position';