@nuvra-ui/react 0.0.6 → 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/index.d.ts +9 -0
- package/dist/index.js +1832 -0
- package/package.json +6 -7
- package/CHANGELOG.md +0 -40
- package/eslint.config.js +0 -3
- package/src/components/Badge/Badge.stories.tsx +0 -16
- package/src/components/Badge/Badge.tsx +0 -19
- package/src/components/Button/Button.stories.tsx +0 -16
- package/src/components/Button/Button.tsx +0 -19
- package/src/components/Link/Link.stories.tsx +0 -16
- package/src/components/Link/Link.tsx +0 -19
- package/src/index.ts +0 -3
- package/tsconfig.json +0 -11
- package/vite.config.ts +0 -24
package/package.json
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuvra-ui/react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"require": "./dist/index.umd.js"
|
|
13
|
+
"import": "./dist/index.js",
|
|
14
|
+
"types": "./dist/index.d.ts"
|
|
16
15
|
}
|
|
17
16
|
},
|
|
18
17
|
"peerDependencies": {
|
package/CHANGELOG.md
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# @nuvra-ui/react
|
|
2
|
-
|
|
3
|
-
## 0.0.6
|
|
4
|
-
|
|
5
|
-
### Patch Changes
|
|
6
|
-
|
|
7
|
-
- [`f5d0ea5`](https://github.com/nuvra-ui/Nuvra-UI/commit/f5d0ea55e52cbcf545f3a6e5ec0a12728e043492) - Bundling correct types and exporting them
|
|
8
|
-
|
|
9
|
-
## 0.0.5
|
|
10
|
-
|
|
11
|
-
### Patch Changes
|
|
12
|
-
|
|
13
|
-
- [`23fe66d`](https://github.com/nuvra-ui/Nuvra-UI/commit/23fe66dbfa11b1f35397ee8bea8f8773da3153fa) - Generated Types
|
|
14
|
-
|
|
15
|
-
## 0.0.4
|
|
16
|
-
|
|
17
|
-
### Patch Changes
|
|
18
|
-
|
|
19
|
-
- Updated dependencies [[`faf848c`](https://github.com/nuvra-ui/Nuvra-UI/commit/faf848c790097552ec90eb5e8e8bf872745b638f)]:
|
|
20
|
-
- @nuvra-ui/utils@0.0.1
|
|
21
|
-
|
|
22
|
-
## 0.0.3
|
|
23
|
-
|
|
24
|
-
### Patch Changes
|
|
25
|
-
|
|
26
|
-
- [`fca2ee2`](https://github.com/nuvra-ui/Nuvra-UI/commit/fca2ee2074353fef71c1e9ae710f2446d17b976a) - Button, Badge, Link Component
|
|
27
|
-
|
|
28
|
-
## 0.0.2
|
|
29
|
-
|
|
30
|
-
### Patch Changes
|
|
31
|
-
|
|
32
|
-
- [`eb41f4a`](https://github.com/nuvra-ui/Nuvra-UI/commit/eb41f4a5d4b0ebd1fbe4cd93499233375a637b9b) - Publish package on NPM
|
|
33
|
-
|
|
34
|
-
## 0.0.1
|
|
35
|
-
|
|
36
|
-
### Patch Changes
|
|
37
|
-
|
|
38
|
-
- [`7d51429`](https://github.com/nuvra-ui/Nuvra-UI/commit/7d514296ca01a8fb975ef37f47d67abc582f16d3) - Just testing the CI/CD pipeline.
|
|
39
|
-
|
|
40
|
-
- [`3ec6a6f`](https://github.com/nuvra-ui/Nuvra-UI/commit/3ec6a6faacadf5b68e61ebc44aa5d93618839988) - Testing Changeset
|
package/eslint.config.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
|
|
3
|
-
import { Badge } from "./Badge";
|
|
4
|
-
|
|
5
|
-
const meta = {
|
|
6
|
-
component: Badge,
|
|
7
|
-
} satisfies Meta<typeof Badge>;
|
|
8
|
-
|
|
9
|
-
export default meta;
|
|
10
|
-
type Story = StoryObj<typeof meta>;
|
|
11
|
-
|
|
12
|
-
export const Example: Story = {
|
|
13
|
-
args: {
|
|
14
|
-
children: "Badge",
|
|
15
|
-
},
|
|
16
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { cn } from "@nuvra-ui/utils";
|
|
2
|
-
|
|
3
|
-
export function Badge({
|
|
4
|
-
className,
|
|
5
|
-
children,
|
|
6
|
-
...props
|
|
7
|
-
}: React.HTMLAttributes<HTMLSpanElement>) {
|
|
8
|
-
return (
|
|
9
|
-
<span
|
|
10
|
-
className={cn(
|
|
11
|
-
"bg-primary text-primary-foreground text-sm px-3 py-1 rounded-full",
|
|
12
|
-
className
|
|
13
|
-
)}
|
|
14
|
-
{...props}
|
|
15
|
-
>
|
|
16
|
-
{children}
|
|
17
|
-
</span>
|
|
18
|
-
);
|
|
19
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
|
|
3
|
-
import { Button } from "./Button";
|
|
4
|
-
|
|
5
|
-
const meta = {
|
|
6
|
-
component: Button,
|
|
7
|
-
} satisfies Meta<typeof Button>;
|
|
8
|
-
|
|
9
|
-
export default meta;
|
|
10
|
-
type Story = StoryObj<typeof meta>;
|
|
11
|
-
|
|
12
|
-
export const Example: Story = {
|
|
13
|
-
args: {
|
|
14
|
-
children: "Button",
|
|
15
|
-
},
|
|
16
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { cn } from "@nuvra-ui/utils";
|
|
2
|
-
|
|
3
|
-
export function Button({
|
|
4
|
-
className,
|
|
5
|
-
children,
|
|
6
|
-
...props
|
|
7
|
-
}: React.ButtonHTMLAttributes<HTMLButtonElement>) {
|
|
8
|
-
return (
|
|
9
|
-
<button
|
|
10
|
-
className={cn(
|
|
11
|
-
"bg-primary hover:bg-primary/90 text-primary-foreground px-3 py-1 rounded-md flex justify-center items-center",
|
|
12
|
-
className
|
|
13
|
-
)}
|
|
14
|
-
{...props}
|
|
15
|
-
>
|
|
16
|
-
{children}
|
|
17
|
-
</button>
|
|
18
|
-
);
|
|
19
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Meta, StoryObj } from "@storybook/react";
|
|
2
|
-
|
|
3
|
-
import { Link } from "./Link";
|
|
4
|
-
|
|
5
|
-
const meta = {
|
|
6
|
-
component: Link,
|
|
7
|
-
} satisfies Meta<typeof Link>;
|
|
8
|
-
|
|
9
|
-
export default meta;
|
|
10
|
-
type Story = StoryObj<typeof meta>;
|
|
11
|
-
|
|
12
|
-
export const Example: Story = {
|
|
13
|
-
args: {
|
|
14
|
-
children: "Link",
|
|
15
|
-
},
|
|
16
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { cn } from "@nuvra-ui/utils";
|
|
2
|
-
|
|
3
|
-
export function Link({
|
|
4
|
-
className,
|
|
5
|
-
children,
|
|
6
|
-
...props
|
|
7
|
-
}: React.AnchorHTMLAttributes<HTMLAnchorElement>) {
|
|
8
|
-
return (
|
|
9
|
-
<a
|
|
10
|
-
className={cn(
|
|
11
|
-
"text-primary underline-offset-4 hover:underline",
|
|
12
|
-
className
|
|
13
|
-
)}
|
|
14
|
-
{...props}
|
|
15
|
-
>
|
|
16
|
-
{children}
|
|
17
|
-
</a>
|
|
18
|
-
);
|
|
19
|
-
}
|
package/src/index.ts
DELETED
package/tsconfig.json
DELETED
package/vite.config.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { defineConfig } from "vite";
|
|
2
|
-
import react from "@vitejs/plugin-react";
|
|
3
|
-
import dts from "vite-plugin-dts";
|
|
4
|
-
import { resolve } from "path";
|
|
5
|
-
|
|
6
|
-
export default defineConfig({
|
|
7
|
-
plugins: [react(), dts({ insertTypesEntry: true, rollupTypes: true })],
|
|
8
|
-
build: {
|
|
9
|
-
lib: {
|
|
10
|
-
entry: resolve(__dirname, "src/index.ts"),
|
|
11
|
-
name: "Nuvra-UI",
|
|
12
|
-
fileName: (format) => `index.${format}.js`,
|
|
13
|
-
},
|
|
14
|
-
rollupOptions: {
|
|
15
|
-
external: ["react", "react-dom"],
|
|
16
|
-
output: {
|
|
17
|
-
globals: {
|
|
18
|
-
react: "React",
|
|
19
|
-
"react-dom": "ReactDOM",
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
});
|