Skip to content

Commit

Permalink
707: Added contextMenu.component.onClick.test
Browse files Browse the repository at this point in the history
  • Loading branch information
tombogle committed Feb 27, 2024
1 parent a5c6983 commit 302477e
Show file tree
Hide file tree
Showing 7 changed files with 294 additions and 250 deletions.
246 changes: 123 additions & 123 deletions lib/platform-bible-react/dist/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,27 @@ const theme2 = createTheme({ palette: {
color: white;
text-decoration: underline;
}
.papi-combo-box {
background-color: transparent;
}
.papi-combo-box.fullwidth {
width: 100%;
}
.papi-combo-box.error {
background-color: #f00;
}
.papi-combo-box.paratext {
background-color: darkgreen;
color: greenyellow;
}
.papi-combo-box.paratext.bright {
background-color: greenyellow;
color: darkgreen;
}
.papi-checkbox {
background-color: transparent;
}
Expand Down Expand Up @@ -149,107 +170,6 @@ const theme2 = createTheme({ palette: {
.papi-checkbox.above {
text-align: center;
}
.papi-slider {
background-color: transparent;
color: #1ea7fd;
}
.papi-slider.vertical {
min-height: 200px;
}
.papi-slider.paratext {
background-color: darkgreen;
color: greenyellow;
}
.papi-slider.paratext.bright {
background-color: greenyellow;
color: darkgreen;
}
.papi-context-menu-target {
white-space: nowrap;
}
.papi-context-menu-target * {
white-space: normal;
}
.papi-context-menu-target:hover {
box-shadow: 0 0 10px rgba(0, 0, 0, 0.07); /* Faint shadowy background */
}
.papi-context-menu-target.paratext:hover {
box-shadow: 0 0 10px rgba(0, 100, 0, 0.07); /* Faint shadowy background */
}
.papi-context-menu-target.paratext.bright:hover {
box-shadow: 0 0 10px rgba(173, 255, 47, 0.07); /* Faint shadowy background */
}
.papi-context-menu.paratext ul {
background-color: rgb(76, 106, 76);
color: rgb(214, 255, 152);
}
.papi-context-menu.paratext.bright ul {
color: rgb(76, 106, 76);
background-color: rgb(214, 255, 152);
}
.papi-ref-selector.book {
display: inline-block;
vertical-align: middle;
}
.papi-ref-selector.chapter-verse {
width: 75px;
}
.papi-combo-box {
background-color: transparent;
}
.papi-combo-box.fullwidth {
width: 100%;
}
.papi-combo-box.error {
background-color: #f00;
}
.papi-combo-box.paratext {
background-color: darkgreen;
color: greenyellow;
}
.papi-combo-box.paratext.bright {
background-color: greenyellow;
color: darkgreen;
}
.papi-switch {
background-color: transparent;
}
.papi-switch.primary {
background-color: #1ea7fd;
}
.papi-switch.secondary {
background-color: #6fc8ff;
}
.papi-switch.error {
background-color: #f00;
}
.papi-switch.paratext {
background-color: darkgreen;
color: greenyellow;
}
.papi-switch.paratext.bright {
background-color: greenyellow;
color: darkgreen;
}
.papi-multi-column-menu {
background-color: rgb(222, 222, 222);
display: flex;
Expand Down Expand Up @@ -318,6 +238,19 @@ const theme2 = createTheme({ palette: {
.search-button {
padding: 10px;
}
.papi-menu-item {
background-color: transparent;
}
.papi-menu-icon-trailing {
margin-left: 10px;
place-content: flex-end;
}
.papi-menu-item img {
max-width: 24px;
max-height: 24px;
}
.papi-snackbar {
font-family: Arial, Helvetica, sans-serif;
}
Expand Down Expand Up @@ -353,51 +286,85 @@ const theme2 = createTheme({ palette: {
background: greenyellow;
color: darkgreen;
}
.papi-menu-item {
.papi-context-menu-target {
white-space: nowrap;
}
.papi-context-menu-target * {
white-space: normal;
}
.papi-context-menu-target:hover {
box-shadow: 0 0 10px rgba(0, 0, 0, 0.07); /* Faint shadowy background */
}
.papi-context-menu-target.paratext:hover {
box-shadow: 0 0 10px rgba(0, 100, 0, 0.07); /* Faint shadowy background */
}
.papi-context-menu-target.paratext.bright:hover {
box-shadow: 0 0 10px rgba(173, 255, 47, 0.07); /* Faint shadowy background */
}
.papi-context-menu.paratext ul {
background-color: rgb(76, 106, 76);
color: rgb(214, 255, 152);
}
.papi-context-menu.paratext.bright ul {
color: rgb(76, 106, 76);
background-color: rgb(214, 255, 152);
}
.papi-switch {
background-color: transparent;
}
.papi-menu-icon-trailing {
margin-left: 10px;
place-content: flex-end;
.papi-switch.primary {
background-color: #1ea7fd;
}
.papi-menu-item img {
max-width: 24px;
max-height: 24px;
.papi-switch.secondary {
background-color: #6fc8ff;
}
.papi-toolbar {
background-color: #eee;
color: black;
.papi-switch.error {
background-color: #f00;
}
.papi-toolbar.paratext {
.papi-switch.paratext {
background-color: darkgreen;
color: greenyellow;
}
.papi-toolbar.paratext.bright {
.papi-switch.paratext.bright {
background-color: greenyellow;
color: darkgreen;
}
.papi-menu-drawer-paper {
height: fit-content !important;
position: absolute !important;
.papi-slider {
background-color: transparent;
color: #1ea7fd;
}
.papi-menu-children {
padding: 10px;
position: relative;
.papi-slider.vertical {
min-height: 200px;
}
.papi-table.paratext {
.papi-slider.paratext {
background-color: darkgreen;
color: greenyellow;
}
.papi-table.paratext.bright {
color: darkgreen;
.papi-slider.paratext.bright {
background-color: greenyellow;
color: darkgreen;
}
.papi-ref-selector.book {
display: inline-block;
vertical-align: middle;
}
.papi-ref-selector.chapter-verse {
width: 75px;
}
@layer rdg.MeasuringCell {.m1l09lto7-0-0-beta-34 {
contain: strict;
Expand Down Expand Up @@ -844,5 +811,38 @@ const theme2 = createTheme({ palette: {
}
}
.papi-toolbar {
background-color: #eee;
color: black;
}
.papi-toolbar.paratext {
background-color: darkgreen;
color: greenyellow;
}
.papi-toolbar.paratext.bright {
background-color: greenyellow;
color: darkgreen;
}
.papi-menu-drawer-paper {
height: fit-content !important;
position: absolute !important;
}
.papi-menu-children {
padding: 10px;
position: relative;
}
.papi-table.paratext {
background-color: darkgreen;
color: greenyellow;
}
.papi-table.paratext.bright {
color: darkgreen;
background-color: greenyellow;
}
`,"top");
//# sourceMappingURL=index.cjs.map
2 changes: 1 addition & 1 deletion lib/platform-bible-react/dist/index.cjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/platform-bible-react/dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ export type MenuProps = {
menuDefinition: SingleColumnMenu;
commandHandler: CommandHandler;
/**
* Additional action to perform when any menu item is clicked. Allows the caller can handle event
* Additional action to perform when any menu item is clicked. Allows the caller to handle event
* (e.g., to close the menu).
*/
onClick?: () => void;
Expand Down
Loading

0 comments on commit 302477e

Please sign in to comment.