Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
9f963d8
a lot of stuff
timkingbu Jun 18, 2025
9eb863f
dunnio
timkingbu Jun 27, 2025
aa0eba1
busted
timkingbu Jul 1, 2025
47b52a1
fixes or breaks
timkingbu Jul 2, 2025
c0da5d8
builds
timkingbu Jul 3, 2025
91d9b1b
Merge branch 'develop' of github.com:bu-ist/r3-id-documentation into …
timkingbu Jul 3, 2025
70f94ba
<image> is sort of working again!
timkingbu Jul 3, 2025
306b379
Merge branch 'develop' of github.com:bu-ist/r3-id-documentation into …
timkingbu Oct 16, 2025
67c1fa2
temp
timkingbu Oct 17, 2025
6f591d7
temp2
timkingbu Oct 17, 2025
9632274
dunno
timkingbu Oct 20, 2025
f0d46da
Merge branch 'develop' of github.com:bu-ist/r3-id-documentation into …
timkingbu Oct 20, 2025
3d09b37
build
timkingbu Oct 20, 2025
afb11fe
rebuild with new webpack config
timkingbu Oct 20, 2025
d36f701
Merge branch 'develop' of github.com:bu-ist/r3-id-documentation into …
timkingbu Oct 24, 2025
802da3e
finally, getting back into it
timkingbu Oct 24, 2025
ac9bf64
documentation and testing
timkingbu Oct 31, 2025
4307970
fixes the build, which was broken, but is now fixed
timkingbu Nov 4, 2025
10c7cf3
changelog
timkingbu Nov 4, 2025
e984936
Merge branch 'build-fix' of github.com:bu-ist/r3-id-documentation int…
timkingbu Nov 5, 2025
fa1b113
fix build
timkingbu Nov 5, 2025
6cfd3b8
garbage
timkingbu Nov 6, 2025
05e9354
done?
timkingbu Nov 6, 2025
23f42e2
Merge branch 'develop' of github.com:bu-ist/r3-id-documentation into …
timkingbu Nov 6, 2025
96459a6
rebuild
timkingbu Nov 6, 2025
079465d
use dev so it doesn’t show in pr
timkingbu Nov 10, 2025
944e2c9
again, don’t use rebuilds
timkingbu Nov 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
dunno
  • Loading branch information
timkingbu committed Oct 20, 2025
commit 963227489ecdeac43406710f15b0f1c7f6bfa6dd
30 changes: 30 additions & 0 deletions src/blocks/loadingspinner/modules/editor.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
.bu-components-loading-spinner {
align-items: center;
background-color: #fff;
border-radius: 12px;
display: flex;
justify-content: center;
padding: 1em;
width: max-content;


.bu-components-loading-spinner--label {
font-weight: bold;
margin-right: 1ch;
}

&.bu-components-loading-spinner--has-shadow {
box-shadow:
3.4px 4.7px 2.7px rgba(0, 0, 0, 0.043),
8.7px 11.8px 6.9px rgba(0, 0, 0, 0.062),
17.7px 24.1px 14.2px rgba(0, 0, 0, 0.078),
36.5px 49.6px 29.2px rgba(0, 0, 0, 0.097),
100px 136px 80px rgba(0, 0, 0, 0.14);
}

.components-spinner {
margin: 0;
background-color: var(--wp-admin-theme-color);
font-weight: normal;
}
}
43 changes: 43 additions & 0 deletions src/blocks/loadingspinner/modules/index.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/**
* A loading spinner to be used to indicate some activity is occuring.
*
* @return {Element} Element to render, in this case an DIV.
*/

// External dependencies.
import classnames from 'classnames';

// Import the WP Spinner component.
import { Spinner } from '@wordpress/components';

// Import CSS.
import './editor.scss';

/**
* Returns the class list for the component based on the current settings.
*
* @param {string} className Additional classes assigned to the component.
* @param {string} text If the component has loading text set.
* @param {string} shadow If the component has a shadow set.
*/
const getClasses = ( className, text, shadow ) =>
classnames( 'bu-components-loading-spinner', {
[ `bu-components-loading-spinner--has-shadow` ]: shadow,
[ `bu-components-loading-spinner--has-text` ]: text,
[ className ]: className,
} );

export const LoadingSpinner = ( props ) => {
const { text = undefined, shadow = true, className = undefined } = props;

return (
<div className={ getClasses( className, text, shadow ) }>
{ text && (
<strong className="bu-components-loading-spinner--label">
{ text }
</strong>
) }
<Spinner />
</div>
);
};
Loading