@fibery/ui-kit 9.4.0 → 9.4.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.
@@ -1,10 +1,10 @@
1
- import Spinner from "./spinner.js";
2
1
  import Database from "./database.js";
3
2
  import ObjChild from "./obj-child.js";
4
3
  import ObjM2M from "./obj-m2m.js";
5
4
  import ObjO2O from "./obj-o2o.js";
6
5
  import ObjParent from "./obj-parent.js";
7
6
  import ObjSelf from "./obj-self.js";
7
+ import Spinner from "./spinner.js";
8
8
  import Close from "./close.js";
9
9
  import ColorCoding from "./color-coding.js";
10
10
  import FileDownload from "./file-download.js";
@@ -1,5 +1,5 @@
1
- import Spinner$1 from "../ast/spinner.js";
2
1
  import { Icon } from "../icon.js";
2
+ import Spinner$1 from "../ast/spinner.js";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import { forwardRef } from "react";
5
5
  //#region src/icons/react/spinner.tsx
package/lib/spinner.js CHANGED
@@ -1,16 +1,37 @@
1
1
  import "./spinner.wyw-in-js.css";
2
+ import { Icon } from "./icons/icon.js";
2
3
  import Spinner$1 from "./icons/react/spinner.js";
3
4
  /* empty css */
4
5
  import { cx } from "@linaria/core";
5
- import { jsx } from "react/jsx-runtime";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
6
7
  import { memo } from "react";
7
8
  //#region src/spinner.tsx
8
- var spinningCss = "s1puy9zd-spinning";
9
- var Spinner = memo(function Spinner({ className, ...props }) {
10
- return /* @__PURE__ */ jsx(Spinner$1, {
11
- colorProcessed: true,
12
- ...props,
13
- className: cx(spinningCss, className)
9
+ var trackCss = "t1puy9zd-track";
10
+ var spinningCss = "s6q4dre-spinning";
11
+ var Spinner = memo(function Spinner({ className, style, iconSize, color, ...props }) {
12
+ return /* @__PURE__ */ jsxs("span", {
13
+ className: cx(spinningCss, className),
14
+ style,
15
+ children: [/* @__PURE__ */ jsx(Icon, {
16
+ iconSize,
17
+ color,
18
+ colorProcessed: true,
19
+ "aria-hidden": "true",
20
+ className: trackCss,
21
+ children: /* @__PURE__ */ jsx("circle", {
22
+ cx: 10,
23
+ cy: 10,
24
+ r: 6.66,
25
+ fill: "none",
26
+ stroke: "currentColor",
27
+ strokeWidth: 1.627
28
+ })
29
+ }), /* @__PURE__ */ jsx(Spinner$1, {
30
+ iconSize,
31
+ color,
32
+ colorProcessed: true,
33
+ ...props
34
+ })]
14
35
  });
15
36
  });
16
37
  //#endregion
@@ -1 +1,2 @@
1
- .s1puy9zd-spinning{transform-origin:50% 50%;}@keyframes spinner-rotate-s1puy9zd-spinning{to{transform:rotate(360deg);}}@media (prefers-reduced-motion: no-preference){.s1puy9zd-spinning{animation:spinner-rotate-s1puy9zd-spinning 0.5s linear infinite;}}
1
+ .t1puy9zd-track{position:absolute;left:50%;top:50%;transform:translate(-50%, -50%);opacity:0.25;}
2
+ .s6q4dre-spinning{position:relative;display:block;width:fit-content;height:fit-content;}@keyframes spinner-rotate-s6q4dre-spinning{to{transform:rotate(360deg);}}@keyframes spinner-fade-s6q4dre-spinning{50%{opacity:0.4;}}@media (prefers-reduced-motion: no-preference){.s6q4dre-spinning{animation:spinner-rotate-s6q4dre-spinning 0.5s linear infinite;}.s6q4dre-spinning>.t1puy9zd-track{display:none;}}@media (prefers-reduced-motion: reduce){.s6q4dre-spinning{animation:spinner-fade-s6q4dre-spinning 1.4s ease-in-out infinite;}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fibery/ui-kit",
3
- "version": "9.4.0",
3
+ "version": "9.4.1",
4
4
  "license": "UNLICENSED",
5
5
  "files": [
6
6
  "lib"
@@ -141,8 +141,8 @@
141
141
  "vaul": "1.1.2",
142
142
  "virtua": "0.50.4",
143
143
  "@fibery/emoji-data": "3.0.0",
144
- "@fibery/react": "2.0.7",
145
- "@fibery/helpers": "4.1.1"
144
+ "@fibery/react": "2.0.8",
145
+ "@fibery/helpers": "4.1.2"
146
146
  },
147
147
  "peerDependencies": {
148
148
  "react": "18.3.1",