@automattic/jetpack-components 1.12.10 → 1.12.11
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.
- package/CHANGELOG.md +5 -0
- package/build/index.d.ts +0 -2
- package/build/index.js +0 -2
- package/index.ts +0 -2
- package/package.json +1 -1
- package/build/components/spinner/index.d.ts +0 -17
- package/build/components/spinner/index.js +0 -26
- package/build/components/spinner/style.scss +0 -33
- package/components/spinner/README.md +0 -28
- package/components/spinner/index.tsx +0 -38
- package/components/spinner/style.scss +0 -33
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
### This is a list detailing changes for the Jetpack RNA Components package releases.
|
|
4
4
|
|
|
5
|
+
## [1.12.11] - 2026-06-24
|
|
6
|
+
### Removed
|
|
7
|
+
- Remove deprecated Spinner component. Use Spinner from @wordpress/components instead. [#49856]
|
|
8
|
+
|
|
5
9
|
## [1.12.10] - 2026-06-23
|
|
6
10
|
### Changed
|
|
7
11
|
- Update package dependencies. [#49831]
|
|
@@ -1852,6 +1856,7 @@
|
|
|
1852
1856
|
### Changed
|
|
1853
1857
|
- Update node version requirement to 14.16.1
|
|
1854
1858
|
|
|
1859
|
+
[1.12.11]: https://github.com/Automattic/jetpack-components/compare/1.12.10...1.12.11
|
|
1855
1860
|
[1.12.10]: https://github.com/Automattic/jetpack-components/compare/1.12.9...1.12.10
|
|
1856
1861
|
[1.12.9]: https://github.com/Automattic/jetpack-components/compare/1.12.8...1.12.9
|
|
1857
1862
|
[1.12.8]: https://github.com/Automattic/jetpack-components/compare/1.12.7...1.12.8
|
package/build/index.d.ts
CHANGED
|
@@ -10,8 +10,6 @@ export { default as AutomatticBylineLogo } from './components/automattic-byline-
|
|
|
10
10
|
export { default as AutomatticIconLogo } from './components/automattic-icon-logo/index.tsx';
|
|
11
11
|
export { default as AutomatticForAgenciesLogo } from './components/automattic-for-agencies-logo/index.tsx';
|
|
12
12
|
export { default as JetpackFooter } from './components/jetpack-footer/index.tsx';
|
|
13
|
-
/** @deprecated Use `Spinner` from `@wordpress/components` instead. */
|
|
14
|
-
export { default as Spinner } from './components/spinner/index.tsx';
|
|
15
13
|
export { default as Gravatar } from './components/gravatar/index.tsx';
|
|
16
14
|
export type { GravatarProps } from './components/gravatar/index.tsx';
|
|
17
15
|
export { default as IconTooltip } from './components/icon-tooltip/index.tsx';
|
package/build/index.js
CHANGED
|
@@ -24,8 +24,6 @@ export { default as AutomatticBylineLogo } from './components/automattic-byline-
|
|
|
24
24
|
export { default as AutomatticIconLogo } from './components/automattic-icon-logo/index.js';
|
|
25
25
|
export { default as AutomatticForAgenciesLogo } from './components/automattic-for-agencies-logo/index.js';
|
|
26
26
|
export { default as JetpackFooter } from './components/jetpack-footer/index.js';
|
|
27
|
-
/** @deprecated Use `Spinner` from `@wordpress/components` instead. */
|
|
28
|
-
export { default as Spinner } from './components/spinner/index.js';
|
|
29
27
|
export { default as Gravatar } from './components/gravatar/index.js';
|
|
30
28
|
export { default as IconTooltip } from './components/icon-tooltip/index.js';
|
|
31
29
|
export { default as ActionButton } from './components/action-button/index.js';
|
package/index.ts
CHANGED
|
@@ -25,8 +25,6 @@ export { default as AutomatticBylineLogo } from './components/automattic-byline-
|
|
|
25
25
|
export { default as AutomatticIconLogo } from './components/automattic-icon-logo/index.tsx';
|
|
26
26
|
export { default as AutomatticForAgenciesLogo } from './components/automattic-for-agencies-logo/index.tsx';
|
|
27
27
|
export { default as JetpackFooter } from './components/jetpack-footer/index.tsx';
|
|
28
|
-
/** @deprecated Use `Spinner` from `@wordpress/components` instead. */
|
|
29
|
-
export { default as Spinner } from './components/spinner/index.tsx';
|
|
30
28
|
export { default as Gravatar } from './components/gravatar/index.tsx';
|
|
31
29
|
export type { GravatarProps } from './components/gravatar/index.tsx';
|
|
32
30
|
export { default as IconTooltip } from './components/icon-tooltip/index.tsx';
|
package/package.json
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import './style.scss';
|
|
2
|
-
declare function Spinner({ color, className, size }: {
|
|
3
|
-
className?: string;
|
|
4
|
-
color?: string;
|
|
5
|
-
size?: number;
|
|
6
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
declare namespace Spinner {
|
|
8
|
-
var propTypes: {
|
|
9
|
-
/** The spinner color. */
|
|
10
|
-
color: any;
|
|
11
|
-
/** CSS class names. */
|
|
12
|
-
className: any;
|
|
13
|
-
/** The spinner size. */
|
|
14
|
-
size: any;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export default Spinner;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import './style.scss';
|
|
4
|
-
const Spinner = ({ color = '#FFFFFF', className = '', size = 20 }) => {
|
|
5
|
-
const theClassName = className + ' jp-components-spinner';
|
|
6
|
-
const styleOuter = {
|
|
7
|
-
width: size,
|
|
8
|
-
height: size,
|
|
9
|
-
fontSize: size, // allows border-width to be specified in em units
|
|
10
|
-
borderTopColor: color,
|
|
11
|
-
};
|
|
12
|
-
const styleInner = {
|
|
13
|
-
borderTopColor: color,
|
|
14
|
-
borderRightColor: color,
|
|
15
|
-
};
|
|
16
|
-
return (_jsx("div", { className: theClassName, children: _jsx("div", { className: "jp-components-spinner__outer", style: styleOuter, children: _jsx("div", { className: "jp-components-spinner__inner", style: styleInner }) }) }));
|
|
17
|
-
};
|
|
18
|
-
Spinner.propTypes = {
|
|
19
|
-
/** The spinner color. */
|
|
20
|
-
color: PropTypes.string,
|
|
21
|
-
/** CSS class names. */
|
|
22
|
-
className: PropTypes.string,
|
|
23
|
-
/** The spinner size. */
|
|
24
|
-
size: PropTypes.number,
|
|
25
|
-
};
|
|
26
|
-
export default Spinner;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
@keyframes rotate-spinner {
|
|
2
|
-
|
|
3
|
-
100% {
|
|
4
|
-
transform: rotate(360deg);
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.jp-components-spinner {
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.jp-components-spinner__outer,
|
|
14
|
-
.jp-components-spinner__inner {
|
|
15
|
-
margin: auto;
|
|
16
|
-
box-sizing: border-box;
|
|
17
|
-
border: 0.1em solid transparent;
|
|
18
|
-
border-radius: 50%;
|
|
19
|
-
animation: 3s linear infinite;
|
|
20
|
-
animation-name: rotate-spinner;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.jp-components-spinner__outer {
|
|
24
|
-
border-top-color: #fff;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.jp-components-spinner__inner {
|
|
28
|
-
width: 100%;
|
|
29
|
-
height: 100%;
|
|
30
|
-
border-top-color: #fff;
|
|
31
|
-
border-right-color: #fff;
|
|
32
|
-
opacity: 0.4;
|
|
33
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# Spinner (DEPRECATED)
|
|
2
|
-
|
|
3
|
-
## We encourage to use [core Spinner](https://github.com/WordPress/gutenberg/tree/trunk/packages/components/src/spinner#readme) component instead
|
|
4
|
-
---------
|
|
5
|
-
|
|
6
|
-
Spinner is a React component for rendering a loading indicator.
|
|
7
|
-
|
|
8
|
-
## Usage
|
|
9
|
-
|
|
10
|
-
```jsx
|
|
11
|
-
import { Component } from 'react';
|
|
12
|
-
import Spinner from '@automattic/jetpack-components';
|
|
13
|
-
|
|
14
|
-
export default class extends Component {
|
|
15
|
-
render() {
|
|
16
|
-
return <Spinner />;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Props
|
|
22
|
-
|
|
23
|
-
The following props can be passed to the Spinner component:
|
|
24
|
-
|
|
25
|
-
| PROPERTY | TYPE | REQUIRED | DEFAULT | DESCRIPTION |
|
|
26
|
-
| --------- | -------- | -------- | --------- | ----------------------------------------------- |
|
|
27
|
-
| **size** | _number_ | no | `20` | The width and height of the spinner, in pixels. |
|
|
28
|
-
| **color** | _strong_ | no | `#000000` | The color of the spinner, in hex. |
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import PropTypes from 'prop-types';
|
|
2
|
-
|
|
3
|
-
import './style.scss';
|
|
4
|
-
|
|
5
|
-
const Spinner = ( { color = '#FFFFFF', className = '', size = 20 } ) => {
|
|
6
|
-
const theClassName = className + ' jp-components-spinner';
|
|
7
|
-
|
|
8
|
-
const styleOuter = {
|
|
9
|
-
width: size,
|
|
10
|
-
height: size,
|
|
11
|
-
fontSize: size, // allows border-width to be specified in em units
|
|
12
|
-
borderTopColor: color,
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
const styleInner = {
|
|
16
|
-
borderTopColor: color,
|
|
17
|
-
borderRightColor: color,
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
return (
|
|
21
|
-
<div className={ theClassName }>
|
|
22
|
-
<div className="jp-components-spinner__outer" style={ styleOuter }>
|
|
23
|
-
<div className="jp-components-spinner__inner" style={ styleInner } />
|
|
24
|
-
</div>
|
|
25
|
-
</div>
|
|
26
|
-
);
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
Spinner.propTypes = {
|
|
30
|
-
/** The spinner color. */
|
|
31
|
-
color: PropTypes.string,
|
|
32
|
-
/** CSS class names. */
|
|
33
|
-
className: PropTypes.string,
|
|
34
|
-
/** The spinner size. */
|
|
35
|
-
size: PropTypes.number,
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
export default Spinner;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
@keyframes rotate-spinner {
|
|
2
|
-
|
|
3
|
-
100% {
|
|
4
|
-
transform: rotate(360deg);
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
.jp-components-spinner {
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.jp-components-spinner__outer,
|
|
14
|
-
.jp-components-spinner__inner {
|
|
15
|
-
margin: auto;
|
|
16
|
-
box-sizing: border-box;
|
|
17
|
-
border: 0.1em solid transparent;
|
|
18
|
-
border-radius: 50%;
|
|
19
|
-
animation: 3s linear infinite;
|
|
20
|
-
animation-name: rotate-spinner;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.jp-components-spinner__outer {
|
|
24
|
-
border-top-color: #fff;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.jp-components-spinner__inner {
|
|
28
|
-
width: 100%;
|
|
29
|
-
height: 100%;
|
|
30
|
-
border-top-color: #fff;
|
|
31
|
-
border-right-color: #fff;
|
|
32
|
-
opacity: 0.4;
|
|
33
|
-
}
|