@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/package.json CHANGED
@@ -1,18 +1,17 @@
1
1
  {
2
2
  "name": "@nuvra-ui/react",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "main": "./dist/index.umd.js",
9
- "module": "./dist/index.es.js",
10
- "types": "./dist/index.es.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
11
  "exports": {
12
12
  ".": {
13
- "types": "./dist/index.es.d.ts",
14
- "import": "./dist/index.es.js",
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,3 +0,0 @@
1
- import { baseConfig } from "@nuvra-ui/eslint-config";
2
-
3
- export default [...baseConfig];
@@ -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
@@ -1,3 +0,0 @@
1
- export { Badge } from "./components/Badge/Badge";
2
- export { Button } from "./components/Button/Button";
3
- export { Link } from "./components/Link/Link";
package/tsconfig.json DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "extends": "@nuvra-ui/typescript-config/base.json",
3
- "compilerOptions": {
4
- "outDir": "dist",
5
- "declaration": true,
6
- "declarationMap": true,
7
- "jsx": "react-jsx",
8
- },
9
- "include": ["src"],
10
- "exclude": ["node_modules", "dist"]
11
- }
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
- });