@redhq/ui 2.1.0 → 2.3.0

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.
Files changed (2) hide show
  1. package/package.json +12 -8
  2. package/dist/index.d.ts +0 -8
package/package.json CHANGED
@@ -1,28 +1,31 @@
1
1
  {
2
2
  "name": "@redhq/ui",
3
- "version": "2.1.0",
3
+ "version": "2.3.0",
4
4
  "private": false,
5
5
  "description": "A Storybook project for UI components",
6
6
  "type": "module",
7
- "main": "dist/index.cjs.js",
8
- "module": "dist/index.es.js",
9
- "types": "dist/index.d.ts",
10
- "style": "dist/style.css",
7
+ "main": "./dist/index.cjs.js",
8
+ "module": "./dist/index.es.js",
9
+ "types": "./dist/index.d.ts",
10
+ "style": "./dist/style.css",
11
11
  "exports": {
12
12
  ".": {
13
13
  "types": "./dist/index.d.ts",
14
14
  "import": "./dist/index.es.js",
15
- "require": "./dist/index.cjs.js"
15
+ "require": "./dist/index.cjs.js",
16
+ "default": "./dist/index.es.js"
16
17
  },
17
18
  "./styles.css": "./dist/style.css"
18
19
  },
19
20
  "files": [
20
21
  "dist"
21
22
  ],
22
- "sideEffects": false,
23
+ "sideEffects": [
24
+ "*.css"
25
+ ],
23
26
  "scripts": {
24
27
  "dev": "vite",
25
- "build": "vite build && shx cp src/index.d.ts dist/index.d.ts",
28
+ "build": "vite build",
26
29
  "lint": "eslint .",
27
30
  "preview": "vite preview",
28
31
  "storybook": "storybook dev -p 6006",
@@ -79,6 +82,7 @@
79
82
  "storybook": "^10.1.0",
80
83
  "tailwindcss": "^4.1.17",
81
84
  "vite": "^7.2.4",
85
+ "vite-plugin-dts": "^4.5.4",
82
86
  "vitest": "^4.0.14"
83
87
  }
84
88
  }
package/dist/index.d.ts DELETED
@@ -1,8 +0,0 @@
1
- import * as React from "react";
2
-
3
- interface CoverProps {
4
- children?: React.ReactNode;
5
- className?: string;
6
- }
7
-
8
- export const Cover: React.FC<CoverProps>;