forked from primer/view_components
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #217 from opf/bump/primer-upstream
Bump/primer upstream 0.36.2
- Loading branch information
Showing
114 changed files
with
1,037 additions
and
557 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@openproject/primer-view-components': patch | ||
--- | ||
|
||
Update check box styles for ActionList to match the rest of Primer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@openproject/primer-view-components': patch | ||
--- | ||
|
||
Improve template path detection for forms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@openproject/primer-view-components': patch | ||
--- | ||
|
||
Adds `role="radiogroup"` on `fieldset` in radio group component |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@openproject/primer-view-components': patch | ||
--- | ||
|
||
Fix ActionMenu position issue when container is scrollable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-247 Bytes
(99%)
...ots/snapshots.test.ts-snapshots/primer/alpha/check_box/with_caption/focused.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-323 Bytes
(100%)
...apshots.test.ts-snapshots/primer/alpha/check_box_group/with_caption/focused.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-419 Bytes
(99%)
...shots/snapshots.test.ts-snapshots/primer/alpha/radio_button/checked/focused.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-406 Bytes
(99%)
...shots/snapshots.test.ts-snapshots/primer/alpha/radio_button/default/focused.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-449 Bytes
(97%)
...ots.test.ts-snapshots/primer/alpha/radio_button/visually_hide_label/focused.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-381 Bytes
(99%)
.../snapshots.test.ts-snapshots/primer/alpha/radio_button/with_caption/focused.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-418 Bytes
(99%)
...snapshots.test.ts-snapshots/primer/alpha/radio_button_group/default/focused.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-486 Bytes
(99%)
...snapshots.test.ts-snapshots/primer/alpha/radio_button_group/invalid/focused.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-391 Bytes
(100%)
...hots.test.ts-snapshots/primer/alpha/radio_button_group/with_caption/focused.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-95 Bytes
(99%)
...eenshots/snapshots.test.ts-snapshots/primer/alpha/select_panel/default/dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-95 Bytes
(99%)
...apshots.test.ts-snapshots/primer/alpha/select_panel/default/dark_colorblind.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-106 Bytes
(99%)
...s/snapshots.test.ts-snapshots/primer/alpha/select_panel/default/dark_dimmed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-209 Bytes
(99%)
...hots.test.ts-snapshots/primer/alpha/select_panel/default/dark_high_contrast.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-84 Bytes
(99%)
...enshots/snapshots.test.ts-snapshots/primer/alpha/select_panel/default/light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-84 Bytes
(99%)
...pshots.test.ts-snapshots/primer/alpha/select_panel/default/light_colorblind.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-184 Bytes
(99%)
...ots.test.ts-snapshots/primer/alpha/select_panel/default/light_high_contrast.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-62 Bytes
(100%)
...ots.test.ts-snapshots/primer/alpha/select_panel/eventually_local_fetch/dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-62 Bytes
(100%)
...-snapshots/primer/alpha/select_panel/eventually_local_fetch/dark_colorblind.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-59 Bytes
(100%)
...t.ts-snapshots/primer/alpha/select_panel/eventually_local_fetch/dark_dimmed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-195 Bytes
(99%)
...apshots/primer/alpha/select_panel/eventually_local_fetch/dark_high_contrast.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-24 Bytes
(100%)
...ts.test.ts-snapshots/primer/alpha/select_panel/eventually_local_fetch/light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-24 Bytes
(100%)
...snapshots/primer/alpha/select_panel/eventually_local_fetch/light_colorblind.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-96 Bytes
(100%)
...pshots/primer/alpha/select_panel/eventually_local_fetch/light_high_contrast.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-84 Bytes
(100%)
...s/snapshots.test.ts-snapshots/primer/alpha/select_panel/footer_buttons/dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-80 Bytes
(100%)
....test.ts-snapshots/primer/alpha/select_panel/footer_buttons/dark_colorblind.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-74 Bytes
(100%)
...hots.test.ts-snapshots/primer/alpha/select_panel/footer_buttons/dark_dimmed.png
Oops, something went wrong.
Binary file modified
BIN
-209 Bytes
(99%)
...st.ts-snapshots/primer/alpha/select_panel/footer_buttons/dark_high_contrast.png
Oops, something went wrong.
Binary file modified
BIN
-67 Bytes
(100%)
.../snapshots.test.ts-snapshots/primer/alpha/select_panel/footer_buttons/light.png
Oops, something went wrong.
Binary file modified
BIN
-67 Bytes
(100%)
...test.ts-snapshots/primer/alpha/select_panel/footer_buttons/light_colorblind.png
Oops, something went wrong.
Binary file modified
BIN
-161 Bytes
(99%)
...t.ts-snapshots/primer/alpha/select_panel/footer_buttons/light_high_contrast.png
Oops, something went wrong.
Binary file modified
BIN
-95 Bytes
(99%)
...hots/snapshots.test.ts-snapshots/primer/alpha/select_panel/local_fetch/dark.png
Oops, something went wrong.
Binary file modified
BIN
-95 Bytes
(99%)
...ots.test.ts-snapshots/primer/alpha/select_panel/local_fetch/dark_colorblind.png
Oops, something went wrong.
Binary file modified
BIN
-106 Bytes
(99%)
...apshots.test.ts-snapshots/primer/alpha/select_panel/local_fetch/dark_dimmed.png
Oops, something went wrong.
Binary file modified
BIN
-209 Bytes
(99%)
....test.ts-snapshots/primer/alpha/select_panel/local_fetch/dark_high_contrast.png
Oops, something went wrong.
Binary file modified
BIN
-84 Bytes
(99%)
...ots/snapshots.test.ts-snapshots/primer/alpha/select_panel/local_fetch/light.png
Oops, something went wrong.
Binary file modified
BIN
-84 Bytes
(99%)
...ts.test.ts-snapshots/primer/alpha/select_panel/local_fetch/light_colorblind.png
Oops, something went wrong.
Binary file modified
BIN
-184 Bytes
(99%)
...test.ts-snapshots/primer/alpha/select_panel/local_fetch/light_high_contrast.png
Oops, something went wrong.
Binary file modified
BIN
-95 Bytes
(99%)
...hots/snapshots.test.ts-snapshots/primer/alpha/select_panel/multiselect/dark.png
Oops, something went wrong.
Binary file modified
BIN
-95 Bytes
(99%)
...ots.test.ts-snapshots/primer/alpha/select_panel/multiselect/dark_colorblind.png
Oops, something went wrong.
Binary file modified
BIN
-122 Bytes
(99%)
...apshots.test.ts-snapshots/primer/alpha/select_panel/multiselect/dark_dimmed.png
Oops, something went wrong.
Binary file modified
BIN
-245 Bytes
(98%)
....test.ts-snapshots/primer/alpha/select_panel/multiselect/dark_high_contrast.png
Oops, something went wrong.
Binary file modified
BIN
-100 Bytes
(99%)
...ots/snapshots.test.ts-snapshots/primer/alpha/select_panel/multiselect/light.png
Oops, something went wrong.
Binary file modified
BIN
-100 Bytes
(99%)
...ts.test.ts-snapshots/primer/alpha/select_panel/multiselect/light_colorblind.png
Oops, something went wrong.
Binary file modified
BIN
-209 Bytes
(99%)
...test.ts-snapshots/primer/alpha/select_panel/multiselect/light_high_contrast.png
Oops, something went wrong.
Binary file modified
BIN
-59 Bytes
(100%)
...snapshots.test.ts-snapshots/primer/alpha/select_panel/multiselect_form/dark.png
Oops, something went wrong.
Binary file modified
BIN
-59 Bytes
(100%)
...est.ts-snapshots/primer/alpha/select_panel/multiselect_form/dark_colorblind.png
Oops, something went wrong.
Binary file modified
BIN
-71 Bytes
(100%)
...ts.test.ts-snapshots/primer/alpha/select_panel/multiselect_form/dark_dimmed.png
Oops, something went wrong.
Binary file modified
BIN
-103 Bytes
(99%)
....ts-snapshots/primer/alpha/select_panel/multiselect_form/dark_high_contrast.png
Oops, something went wrong.
Binary file modified
BIN
-74 Bytes
(100%)
...napshots.test.ts-snapshots/primer/alpha/select_panel/multiselect_form/light.png
Oops, something went wrong.
Binary file modified
BIN
-78 Bytes
(99%)
...st.ts-snapshots/primer/alpha/select_panel/multiselect_form/light_colorblind.png
Oops, something went wrong.
Binary file modified
BIN
-130 Bytes
(99%)
...ts-snapshots/primer/alpha/select_panel/multiselect_form/light_high_contrast.png
Oops, something went wrong.
Binary file modified
BIN
-45 Bytes
(100%)
...ots/snapshots.test.ts-snapshots/primer/alpha/select_panel/remote_fetch/dark.png
Oops, something went wrong.
Binary file modified
BIN
-45 Bytes
(100%)
...ts.test.ts-snapshots/primer/alpha/select_panel/remote_fetch/dark_colorblind.png
Oops, something went wrong.
Binary file modified
BIN
-41 Bytes
(100%)
...pshots.test.ts-snapshots/primer/alpha/select_panel/remote_fetch/dark_dimmed.png
Oops, something went wrong.
Binary file modified
BIN
-116 Bytes
(100%)
...test.ts-snapshots/primer/alpha/select_panel/remote_fetch/dark_high_contrast.png
Oops, something went wrong.
Binary file modified
BIN
-19 Bytes
(100%)
...ts/snapshots.test.ts-snapshots/primer/alpha/select_panel/remote_fetch/light.png
Oops, something went wrong.
Binary file modified
BIN
-19 Bytes
(100%)
...s.test.ts-snapshots/primer/alpha/select_panel/remote_fetch/light_colorblind.png
Oops, something went wrong.
Binary file modified
BIN
-65 Bytes
(100%)
...est.ts-snapshots/primer/alpha/select_panel/remote_fetch/light_high_contrast.png
Oops, something went wrong.
Binary file modified
BIN
-61 Bytes
(100%)
...est.ts-snapshots/primer/alpha/select_panel/remote_fetch_filter_failure/dark.png
Oops, something went wrong.
Binary file modified
BIN
-61 Bytes
(100%)
...shots/primer/alpha/select_panel/remote_fetch_filter_failure/dark_colorblind.png
Oops, something went wrong.
Binary file modified
BIN
-176 Bytes
(100%)
...snapshots/primer/alpha/select_panel/remote_fetch_filter_failure/dark_dimmed.png
Oops, something went wrong.
Binary file modified
BIN
-226 Bytes
(99%)
...ts/primer/alpha/select_panel/remote_fetch_filter_failure/dark_high_contrast.png
Oops, something went wrong.
Binary file modified
BIN
-34 Bytes
(100%)
...st.ts-snapshots/primer/alpha/select_panel/remote_fetch_filter_failure/light.png
Oops, something went wrong.
Binary file modified
BIN
-34 Bytes
(100%)
...hots/primer/alpha/select_panel/remote_fetch_filter_failure/light_colorblind.png
Oops, something went wrong.
Binary file modified
BIN
-111 Bytes
(100%)
...s/primer/alpha/select_panel/remote_fetch_filter_failure/light_high_contrast.png
Oops, something went wrong.
Binary file modified
BIN
+2 Bytes
(100%)
...napshots.test.ts-snapshots/primer/alpha/select_panel/with_avatar_items/dark.png
Oops, something went wrong.
Binary file modified
BIN
+2 Bytes
(100%)
...st.ts-snapshots/primer/alpha/select_panel/with_avatar_items/dark_colorblind.png
Oops, something went wrong.
Binary file modified
BIN
-1 Byte
(100%)
...s.test.ts-snapshots/primer/alpha/select_panel/with_avatar_items/dark_dimmed.png
Oops, something went wrong.
Binary file modified
BIN
-17 Bytes
(100%)
...ts-snapshots/primer/alpha/select_panel/with_avatar_items/dark_high_contrast.png
Oops, something went wrong.
Binary file modified
BIN
+61 Bytes
(100%)
...apshots.test.ts-snapshots/primer/alpha/select_panel/with_avatar_items/light.png
Oops, something went wrong.
Binary file modified
BIN
+54 Bytes
(100%)
...t.ts-snapshots/primer/alpha/select_panel/with_avatar_items/light_colorblind.png
Oops, something went wrong.
Binary file modified
BIN
-37 Bytes
(100%)
...s-snapshots/primer/alpha/select_panel/with_avatar_items/light_high_contrast.png
Oops, something went wrong.
Binary file modified
BIN
+285 Bytes
(100%)
...reenshots/snapshots.test.ts-snapshots/primer/beta/state/states_open/default.png
Oops, something went wrong.
Binary file modified
BIN
+285 Bytes
(100%)
...reenshots/snapshots.test.ts-snapshots/primer/beta/state/states_open/focused.png
Oops, something went wrong.
Binary file modified
BIN
-260 Bytes
(100%)
...snapshots.test.ts-snapshots/primer/forms/array_check_box_group_form/focused.png
Oops, something went wrong.
Binary file modified
BIN
-345 Bytes
(100%)
...shots/snapshots.test.ts-snapshots/primer/forms/check_box_group_form/focused.png
Oops, something went wrong.
Binary file modified
BIN
-295 Bytes
(100%)
...snapshots.test.ts-snapshots/primer/forms/check_box_with_nested_form/focused.png
Oops, something went wrong.
Binary file modified
BIN
-407 Bytes
(99%)
...reenshots/snapshots.test.ts-snapshots/primer/forms/multi_input_form/focused.png
Oops, something went wrong.
Binary file modified
BIN
-232 Bytes
(99%)
...apshots.test.ts-snapshots/primer/forms/name_with_question_mark_form/focused.png
Oops, something went wrong.
Binary file modified
BIN
-397 Bytes
(100%)
...ts/snapshots.test.ts-snapshots/primer/forms/radio_button_group_form/focused.png
Oops, something went wrong.
Binary file modified
BIN
-366 Bytes
(100%)
...pshots.test.ts-snapshots/primer/forms/radio_button_with_nested_form/focused.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Waits for condition to return true. If it returns false initially, this function creates a | ||
// MutationObserver that calls body() whenever the contents of the component change. | ||
export const observeMutationsUntilConditionMet = (element: Element, condition: () => boolean, body: () => void) => { | ||
if (condition()) { | ||
body() | ||
} else { | ||
const mutationObserver = new MutationObserver(() => { | ||
if (condition()) { | ||
body() | ||
mutationObserver.disconnect() | ||
} | ||
}) | ||
|
||
mutationObserver.observe(element, {childList: true, subtree: true}) | ||
} | ||
} |
Oops, something went wrong.