@sentio/ui-core 0.1.2 → 0.1.3

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/dist/index.mjs CHANGED
@@ -7,9 +7,8 @@ function _BarLoading({
7
7
  hint = "Loading Sentio",
8
8
  loading = true,
9
9
  className,
10
- iconClassName,
11
10
  width = 150,
12
- gray
11
+ logo
13
12
  }) {
14
13
  if (loading) {
15
14
  return /* @__PURE__ */ jsxs(
@@ -20,6 +19,7 @@ function _BarLoading({
20
19
  className
21
20
  ),
22
21
  children: [
22
+ logo,
23
23
  hint && /* @__PURE__ */ jsx("div", { className: "loading-text text-icontent text-gray my-2 text-center font-medium", children: hint }),
24
24
  /* @__PURE__ */ jsx("div", { className: "flex justify-center pt-1", children: /* @__PURE__ */ jsx(
25
25
  BarLoader,
@@ -42,10 +42,11 @@ function _BarLoading({
42
42
  var BarLoading = memo(_BarLoading);
43
43
 
44
44
  // src/common/SpinLoading.tsx
45
+ import React from "react";
45
46
  import { ClipLoader } from "react-spinners";
46
47
  import { cx as classNames2 } from "class-variance-authority";
47
48
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
48
- var SpinLoading = function Spinner(args) {
49
+ var SpinLoading = React.forwardRef(function Spinner(args, ref) {
49
50
  const {
50
51
  loading = false,
51
52
  children,
@@ -54,7 +55,7 @@ var SpinLoading = function Spinner(args) {
54
55
  showMask,
55
56
  maskOpacity = 80
56
57
  } = args;
57
- return /* @__PURE__ */ jsxs2("div", { className: classNames2("relative", className), children: [
58
+ return /* @__PURE__ */ jsxs2("div", { ref, className: classNames2("relative", className), children: [
58
59
  showMask && loading && /* @__PURE__ */ jsx2(
59
60
  "div",
60
61
  {
@@ -77,7 +78,7 @@ var SpinLoading = function Spinner(args) {
77
78
  ) }),
78
79
  children
79
80
  ] });
80
- };
81
+ });
81
82
 
82
83
  // src/common/CopyButton.tsx
83
84
  import {
@@ -272,7 +273,7 @@ var CopyButton = ({
272
273
  import { cloneElement, forwardRef, useMemo } from "react";
273
274
 
274
275
  // src/common/DivTooltip.tsx
275
- import React, { useRef as useRef2, useState as useState2, useEffect as useEffect2 } from "react";
276
+ import React2, { useRef as useRef2, useState as useState2, useEffect as useEffect2 } from "react";
276
277
  import {
277
278
  useFloating,
278
279
  useHover,
@@ -372,7 +373,7 @@ var PopoverTooltip = ({
372
373
  icon,
373
374
  children
374
375
  ] });
375
- const Portal = usePortal ? FloatingPortal : React.Fragment;
376
+ const Portal = usePortal ? FloatingPortal : React2.Fragment;
376
377
  return /* @__PURE__ */ jsxs4("div", { className: classNames4("relative flex items-center", className), children: [
377
378
  /* @__PURE__ */ jsxs4(
378
379
  "div",