@nuvra-ui/react 0.0.5 → 0.0.7

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,15 +1,17 @@
1
1
  {
2
2
  "name": "@nuvra-ui/react",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
- "types": "./dist/index.es.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
9
11
  "exports": {
10
12
  ".": {
11
- "types": "./dist/index.es.d.ts",
12
- "import": "./dist/index.es.js"
13
+ "import": "./dist/index.js",
14
+ "types": "./dist/index.d.ts"
13
15
  }
14
16
  },
15
17
  "peerDependencies": {
@@ -34,7 +36,8 @@
34
36
  "typescript-eslint": "^8.46.4",
35
37
  "vite": "npm:rolldown-vite@7.2.5",
36
38
  "vite-plugin-dts": "^4.5.4",
37
- "@nuvra-ui/eslint-config": "0.0.0"
39
+ "@nuvra-ui/eslint-config": "0.0.0",
40
+ "@nuvra-ui/typescript-config": "0.0.0"
38
41
  },
39
42
  "scripts": {
40
43
  "dev": "vite build --watch",
package/CHANGELOG.md DELETED
@@ -1,34 +0,0 @@
1
- # @nuvra-ui/react
2
-
3
- ## 0.0.5
4
-
5
- ### Patch Changes
6
-
7
- - [`23fe66d`](https://github.com/nuvra-ui/Nuvra-UI/commit/23fe66dbfa11b1f35397ee8bea8f8773da3153fa) - Generated Types
8
-
9
- ## 0.0.4
10
-
11
- ### Patch Changes
12
-
13
- - Updated dependencies [[`faf848c`](https://github.com/nuvra-ui/Nuvra-UI/commit/faf848c790097552ec90eb5e8e8bf872745b638f)]:
14
- - @nuvra-ui/utils@0.0.1
15
-
16
- ## 0.0.3
17
-
18
- ### Patch Changes
19
-
20
- - [`fca2ee2`](https://github.com/nuvra-ui/Nuvra-UI/commit/fca2ee2074353fef71c1e9ae710f2446d17b976a) - Button, Badge, Link Component
21
-
22
- ## 0.0.2
23
-
24
- ### Patch Changes
25
-
26
- - [`eb41f4a`](https://github.com/nuvra-ui/Nuvra-UI/commit/eb41f4a5d4b0ebd1fbe4cd93499233375a637b9b) - Publish package on NPM
27
-
28
- ## 0.0.1
29
-
30
- ### Patch Changes
31
-
32
- - [`7d51429`](https://github.com/nuvra-ui/Nuvra-UI/commit/7d514296ca01a8fb975ef37f47d67abc582f16d3) - Just testing the CI/CD pipeline.
33
-
34
- - [`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 +0,0 @@
1
- export * from "./components/Button/Button";
package/tsconfig.app.json DELETED
@@ -1,30 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
4
- "target": "ES2022",
5
- "useDefineForClassFields": true,
6
- "lib": ["ES2022", "DOM", "DOM.Iterable"],
7
- "module": "ESNext",
8
- "types": ["vite/client"],
9
- "skipLibCheck": true,
10
-
11
- /* Bundler mode */
12
- "moduleResolution": "bundler",
13
- "allowImportingTsExtensions": true,
14
- "verbatimModuleSyntax": true,
15
- "moduleDetection": "force",
16
- "emitDeclarationOnly": true,
17
- "declaration": true,
18
- "outDir": "dist",
19
- "jsx": "react-jsx",
20
-
21
- /* Linting */
22
- "strict": true,
23
- "noUnusedLocals": true,
24
- "noUnusedParameters": true,
25
- "erasableSyntaxOnly": true,
26
- "noFallthroughCasesInSwitch": true,
27
- "noUncheckedSideEffectImports": true,
28
- },
29
- "include": ["src"],
30
- }
package/tsconfig.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "files": [],
3
- "references": [
4
- { "path": "./tsconfig.app.json" },
5
- { "path": "./tsconfig.node.json" }
6
- ]
7
- }
@@ -1,26 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
4
- "target": "ES2023",
5
- "lib": ["ES2023"],
6
- "module": "ESNext",
7
- "types": ["node"],
8
- "skipLibCheck": true,
9
-
10
- /* Bundler mode */
11
- "moduleResolution": "bundler",
12
- "allowImportingTsExtensions": true,
13
- "verbatimModuleSyntax": true,
14
- "moduleDetection": "force",
15
- "noEmit": true,
16
-
17
- /* Linting */
18
- "strict": true,
19
- "noUnusedLocals": true,
20
- "noUnusedParameters": true,
21
- "erasableSyntaxOnly": true,
22
- "noFallthroughCasesInSwitch": true,
23
- "noUncheckedSideEffectImports": true
24
- },
25
- "include": ["vite.config.ts"]
26
- }
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 })],
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
- });