@spark-web/spinner 1.1.0 → 2.0.0-rc.1

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 CHANGED
@@ -1,5 +1,33 @@
1
1
  # @spark-web/spinner
2
2
 
3
+ ## 2.0.0-rc.1
4
+
5
+ ### Major Changes
6
+
7
+ - rc
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies []:
12
+ - @spark-web/utils@2.0.0-rc.1
13
+ - @spark-web/a11y@2.0.0-rc.1
14
+ - @spark-web/icon@2.0.0-rc.1
15
+ - @spark-web/box@2.0.0-rc.1
16
+
17
+ ## 2.0.0-rc.0
18
+
19
+ ### Major Changes
20
+
21
+ - rc versio
22
+
23
+ ### Patch Changes
24
+
25
+ - Updated dependencies []:
26
+ - @spark-web/a11y@2.0.0-rc.0
27
+ - @spark-web/icon@2.0.0-rc.0
28
+ - @spark-web/box@2.0.0-rc.0
29
+ - @spark-web/utils@2.0.0-rc.0
30
+
3
31
  ## 1.1.0
4
32
 
5
33
  ### Minor Changes
@@ -1,2 +1,2 @@
1
- export { Spinner } from './spinner';
2
- export type { SpinnerProps } from './spinner';
1
+ export { Spinner } from "./spinner.js";
2
+ export type { SpinnerProps } from "./spinner.js";
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { IconProps } from '@spark-web/icon';
3
2
  import type { DataAttributeMap } from '@spark-web/utils/internal';
4
3
  export declare type SpinnerProps = {
@@ -9,7 +8,7 @@ export declare type SpinnerProps = {
9
8
  /** Sets data attributes for the element. */
10
9
  data?: DataAttributeMap;
11
10
  };
12
- export declare function Spinner({ tone, size, data }: SpinnerProps): JSX.Element;
11
+ export declare function Spinner({ tone, size, data }: SpinnerProps): import("@emotion/react/jsx-runtime").JSX.Element;
13
12
  export declare namespace Spinner {
14
13
  var displayName: string;
15
14
  }
@@ -1 +1,2 @@
1
1
  export * from "./declarations/src/index";
2
+ //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3Bhcmstd2ViLXNwaW5uZXIuY2pzLmQudHMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuL2RlY2xhcmF0aW9ucy9zcmMvaW5kZXguZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSJ9
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var css = require('@emotion/css');
5
+ var react = require('@emotion/react');
6
6
  var a11y = require('@spark-web/a11y');
7
7
  var box = require('@spark-web/box');
8
8
  var icon = require('@spark-web/icon');
@@ -20,7 +20,7 @@ function Spinner(_ref) {
20
20
  return /*#__PURE__*/jsxRuntime.jsxs(box.Box, {
21
21
  as: "span",
22
22
  ref: spinAnimationRef,
23
- className: css.css(styles),
23
+ css: react.css(styles),
24
24
  height: size,
25
25
  width: size,
26
26
  display: "inline-flex",
@@ -43,7 +43,7 @@ var SpinnerIcon = icon.createIcon( /*#__PURE__*/jsxRuntime.jsx("circle", {
43
43
  cy: 12,
44
44
  r: 9
45
45
  }), 'SpinnerIcon');
46
- var spinAnimation = css.keyframes({
46
+ var spinAnimation = react.keyframes({
47
47
  from: {
48
48
  transform: 'rotate(0deg)'
49
49
  },
@@ -51,7 +51,7 @@ var spinAnimation = css.keyframes({
51
51
  transform: 'rotate(360deg)'
52
52
  }
53
53
  });
54
- var strokeDashAnimation = css.keyframes({
54
+ var strokeDashAnimation = react.keyframes({
55
55
  '0%': {
56
56
  strokeDasharray: '1px, 200px',
57
57
  strokeDashoffset: 0
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var css = require('@emotion/css');
5
+ var react = require('@emotion/react');
6
6
  var a11y = require('@spark-web/a11y');
7
7
  var box = require('@spark-web/box');
8
8
  var icon = require('@spark-web/icon');
@@ -20,7 +20,7 @@ function Spinner(_ref) {
20
20
  return /*#__PURE__*/jsxRuntime.jsxs(box.Box, {
21
21
  as: "span",
22
22
  ref: spinAnimationRef,
23
- className: css.css(styles),
23
+ css: react.css(styles),
24
24
  height: size,
25
25
  width: size,
26
26
  display: "inline-flex",
@@ -43,7 +43,7 @@ var SpinnerIcon = icon.createIcon( /*#__PURE__*/jsxRuntime.jsx("circle", {
43
43
  cy: 12,
44
44
  r: 9
45
45
  }), 'SpinnerIcon');
46
- var spinAnimation = css.keyframes({
46
+ var spinAnimation = react.keyframes({
47
47
  from: {
48
48
  transform: 'rotate(0deg)'
49
49
  },
@@ -51,7 +51,7 @@ var spinAnimation = css.keyframes({
51
51
  transform: 'rotate(360deg)'
52
52
  }
53
53
  });
54
- var strokeDashAnimation = css.keyframes({
54
+ var strokeDashAnimation = react.keyframes({
55
55
  '0%': {
56
56
  strokeDasharray: '1px, 200px',
57
57
  strokeDashoffset: 0
@@ -1,4 +1,4 @@
1
- import { keyframes, css } from '@emotion/css';
1
+ import { keyframes, css } from '@emotion/react';
2
2
  import { VisuallyHidden } from '@spark-web/a11y';
3
3
  import { Box } from '@spark-web/box';
4
4
  import { createIcon } from '@spark-web/icon';
@@ -16,7 +16,7 @@ function Spinner(_ref) {
16
16
  return /*#__PURE__*/jsxs(Box, {
17
17
  as: "span",
18
18
  ref: spinAnimationRef,
19
- className: css(styles),
19
+ css: css(styles),
20
20
  height: size,
21
21
  width: size,
22
22
  display: "inline-flex",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spark-web/spinner",
3
- "version": "1.1.0",
3
+ "version": "2.0.0-rc.1",
4
4
  "homepage": "https://github.com/brighte-labs/spark-web#readme",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,12 +15,12 @@
15
15
  "README.md"
16
16
  ],
17
17
  "dependencies": {
18
- "@babel/runtime": "^7.19.0",
19
- "@emotion/css": "^11.9.0",
20
- "@spark-web/a11y": "^1.4.0",
21
- "@spark-web/box": "^1.2.0",
22
- "@spark-web/icon": "^1.3.0",
23
- "@spark-web/utils": "^1.3.0"
18
+ "@babel/runtime": "^7.25.0",
19
+ "@emotion/react": "^11.13.5",
20
+ "@spark-web/a11y": "^2.0.0-rc.1",
21
+ "@spark-web/box": "^2.0.0-rc.1",
22
+ "@spark-web/icon": "^2.0.0-rc.1",
23
+ "@spark-web/utils": "^2.0.0-rc.1"
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/react": "^18.2.0",