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.
@@ -1,9 +1,5 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { HTMLAttributes } from 'react';
3
- import '@number-flow/react';
4
- import 'goey-toast';
5
- import 'motion/react';
6
- import 'next-themes';
7
3
 
8
4
  interface BellIconHandle {
9
5
  startAnimation: () => void;
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
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rockin",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "Shared React UI components, icons, hooks, utilities, and styles.",
5
5
  "type": "module",
6
6
  "private": false,