rockin 0.0.7 → 0.0.8
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/icon/index.d.ts +0 -4
- package/dist/index.d.ts +9 -1
- package/dist/index.js +21 -1
- package/package.json +1 -1
package/dist/icon/index.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -3,4 +3,12 @@ export { default as NumberFlow } from '@number-flow/react';
|
|
|
3
3
|
export * from 'goey-toast';
|
|
4
4
|
export * from 'motion/react';
|
|
5
5
|
export * from 'next-themes';
|
|
6
|
-
import 'react';
|
|
6
|
+
import * as React$1 from 'react';
|
|
7
|
+
|
|
8
|
+
type TopLoaderProps = {
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
height?: string;
|
|
11
|
+
};
|
|
12
|
+
declare function TopLoader({ children, height, }: TopLoaderProps): React$1.JSX.Element;
|
|
13
|
+
|
|
14
|
+
export { TopLoader };
|
package/dist/index.js
CHANGED
|
@@ -9,9 +9,29 @@ import { default as default2 } from "@number-flow/react";
|
|
|
9
9
|
export * from "goey-toast";
|
|
10
10
|
export * from "motion/react";
|
|
11
11
|
export * from "next-themes";
|
|
12
|
+
|
|
13
|
+
// src/loader.tsx
|
|
14
|
+
import { ProgressProvider } from "@bprogress/next/app";
|
|
15
|
+
import { jsx } from "react/jsx-runtime";
|
|
16
|
+
function TopLoader({
|
|
17
|
+
children,
|
|
18
|
+
height = "4px"
|
|
19
|
+
}) {
|
|
20
|
+
return /* @__PURE__ */ jsx(
|
|
21
|
+
ProgressProvider,
|
|
22
|
+
{
|
|
23
|
+
height,
|
|
24
|
+
color: "var(--navigation-progress-color, var(--primary))",
|
|
25
|
+
options: { showSpinner: false },
|
|
26
|
+
shallowRouting: true,
|
|
27
|
+
children
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
}
|
|
12
31
|
export {
|
|
13
32
|
BellIcon,
|
|
14
33
|
IconSwap,
|
|
15
34
|
Loader,
|
|
16
|
-
default2 as NumberFlow
|
|
35
|
+
default2 as NumberFlow,
|
|
36
|
+
TopLoader
|
|
17
37
|
};
|