@zentauri-ui/zentauri-components 1.8.41 → 1.8.42

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 (4) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/LICENSE +21 -0
  3. package/README.md +73 -63
  4. package/package.json +30 -1
package/CHANGELOG.md ADDED
@@ -0,0 +1,17 @@
1
+ # @zentauri-ui/zentauri-components Changelog
2
+
3
+ ## 1.8.42
4
+
5
+ ### Patch Changes
6
+
7
+ - 74403ce: Add npm trust metadata, package license/changelog files, and Changesets release infrastructure.
8
+
9
+ All notable changes to this package will be documented in this file.
10
+
11
+ This project uses [Changesets](https://github.com/changesets/changesets) for versioning and release notes. Add a changeset with `pnpm changeset` for every user-facing package change.
12
+
13
+ ## 1.8.41
14
+
15
+ Initial changelog baseline for the published package. Earlier release history is available on GitHub Releases:
16
+
17
+ <https://github.com/ShubhamTiwari909/zentauri-ui/releases>
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Shubham Tiwari
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -25,15 +25,17 @@ Published artifacts live under `dist/`. Imports use **per-entry subpaths**: `@ze
25
25
 
26
26
  ## Package status and test coverage
27
27
 
28
+ Generated from the component package Vitest JSON report via `pnpm --filter @zentauri-ui/zentauri-components update:test-health`.
29
+
28
30
  | Metric | Result |
29
31
  | ---------- | ---------------- |
30
32
  | Test files | 77 passed (77) |
31
- | Tests | 591 passed (591) |
33
+ | Tests | 597 passed (597) |
32
34
 
33
35
  | Area | Test files | Tests |
34
36
  | --------------------------- | ---------- | ----- |
35
- | Components and UI utilities | 46 | 433 |
36
- | Standalone animations | 1 | 42 |
37
+ | Components and UI utilities | 46 | 436 |
38
+ | Standalone animations | 1 | 45 |
37
39
  | React hooks | 28 | 101 |
38
40
  | CLI and import rewriting | 2 | 15 |
39
41
 
@@ -41,82 +43,82 @@ Published artifacts live under `dist/`. Imports use **per-entry subpaths**: `@ze
41
43
 
42
44
  | Suite | Tests |
43
45
  | ----------------------------------------------------------------------- | ----: |
44
- | `src/ui/dynamic-stepper/dynamic-stepper.test.tsx` | 8 |
45
- | `src/ui/select/select.test.tsx` | 10 |
46
- | `src/charts/charts.test.tsx` | 6 |
47
- | `src/ui/modal/modal.test.tsx` | 10 |
48
- | `src/ui/drawer/drawer.test.tsx` | 7 |
46
+ | `src/animations/animations.test.tsx` | 45 |
47
+ | `src/ui/buttons/button.test.tsx` | 44 |
48
+ | `src/ui/inputs/input.test.tsx` | 40 |
49
49
  | `src/ui/peer-isolation.test.ts` | 29 |
50
+ | `src/ui/pagination/pagination.test.tsx` | 15 |
51
+ | `src/ui/timeline/timeline.test.tsx` | 14 |
52
+ | `src/ui/stepper/stepper.test.tsx` | 12 |
53
+ | `src/ui/alert/alert.test.tsx` | 11 |
54
+ | `src/ui/rating/rating.test.tsx` | 11 |
55
+ | `src/ui/table/table.test.tsx` | 11 |
50
56
  | `cli/cli.integration.test.ts` | 10 |
51
- | `src/animations/animations.test.tsx` | 42 |
52
- | `src/ui/buttons/button.test.tsx` | 41 |
53
- | `src/ui/inputs/input.test.tsx` | 40 |
57
+ | `src/hooks/usePagination/usePagination.test.ts` | 10 |
58
+ | `src/ui/context-menu/context-menu.test.tsx` | 10 |
54
59
  | `src/ui/marquee/marquee.test.tsx` | 10 |
60
+ | `src/ui/modal/modal.test.tsx` | 10 |
55
61
  | `src/ui/otp-input/otp-input.test.tsx` | 10 |
62
+ | `src/ui/select/select.test.tsx` | 10 |
56
63
  | `src/ui/tree-view/tree-view.test.tsx` | 10 |
57
- | `src/ui/card/card.test.tsx` | 7 |
58
- | `src/ui/checkbox/checkbox.test.tsx` | 6 |
59
- | `src/ui/popover/popover.test.tsx` | 4 |
60
- | `src/ui/command/command.test.tsx` | 7 |
61
- | `src/ui/context-menu/context-menu.test.tsx` | 10 |
64
+ | `src/hooks/useTableFilter/useTableFilter.test.ts` | 9 |
65
+ | `src/ui/animated-number/animated-number.test.tsx` | 9 |
66
+ | `src/ui/slider/slider.test.tsx` | 9 |
62
67
  | `src/ui/copy-button/copy-button.test.tsx` | 8 |
63
- | `src/ui/kbd/kbd.test.tsx` | 7 |
64
- | `src/ui/tooltip/tooltip.test.tsx` | 4 |
65
- | `src/ui/dropdown/dropdown.test.tsx` | 6 |
66
- | `src/hooks/useFocusManagement/useFocusManagement.test.tsx` | 3 |
68
+ | `src/ui/dynamic-stepper/dynamic-stepper.test.tsx` | 8 |
67
69
  | `src/ui/progress/progress.test.tsx` | 8 |
68
- | `src/ui/rating/rating.test.tsx` | 11 |
69
- | `src/ui/radio-group/radio-group.test.tsx` | 5 |
70
70
  | `src/ui/scroll-area/scroll-area.test.tsx` | 8 |
71
+ | `src/ui/skeleton/skeleton.test.tsx` | 8 |
72
+ | `src/ui/spinner/animated/spinner.test.tsx` | 8 |
73
+ | `src/hooks/useDynamicStepper/useDynamicStepper.test.ts` | 7 |
74
+ | `src/hooks/useTableSort/useTableSort.test.ts` | 7 |
71
75
  | `src/ui/accordion/accordion.test.tsx` | 7 |
72
- | `src/ui/toast/toast.test.tsx` | 5 |
73
- | `src/ui/pagination/pagination.test.tsx` | 15 |
74
- | `src/ui/table/table.test.tsx` | 11 |
75
- | `src/ui/tabs/tabs.test.tsx` | 3 |
76
- | `src/ui/stepper/stepper.test.tsx` | 12 |
77
- | `src/ui/timeline/timeline.test.tsx` | 14 |
78
- | `src/ui/animated-number/animated-number.test.tsx` | 9 |
79
- | `src/ui/toggle/toggle.test.tsx` | 5 |
80
- | `src/ui/slider/slider.test.tsx` | 9 |
76
+ | `src/ui/card/card.test.tsx` | 7 |
77
+ | `src/ui/command/command.test.tsx` | 7 |
78
+ | `src/ui/drawer/drawer.test.tsx` | 7 |
79
+ | `src/ui/kbd/kbd.test.tsx` | 7 |
81
80
  | `src/ui/typography/typography.test.tsx` | 7 |
82
- | `src/ui/skeleton/skeleton.test.tsx` | 8 |
83
- | `src/ui/divider/divider.test.tsx` | 6 |
84
- | `src/ui/empty-state/empty-state.test.tsx` | 6 |
85
- | `src/ui/alert/alert.test.tsx` | 11 |
86
- | `src/ui/badge/badge.test.tsx` | 6 |
81
+ | `src/charts/charts.test.tsx` | 6 |
87
82
  | `src/hooks/useClipboard/useClipboard.test.ts` | 6 |
88
83
  | `src/hooks/useLocalStorage/useLocalStorage.test.ts` | 6 |
84
+ | `src/ui/badge/badge.test.tsx` | 6 |
85
+ | `src/ui/checkbox/checkbox.test.tsx` | 6 |
86
+ | `src/ui/divider/divider.test.tsx` | 6 |
87
+ | `src/ui/dropdown/dropdown.test.tsx` | 6 |
88
+ | `src/ui/empty-state/empty-state.test.tsx` | 6 |
89
+ | `src/ui/search/filter-search-suggestions.test.ts` | 6 |
90
+ | `cli/rewrite-imports.test.ts` | 5 |
89
91
  | `src/hooks/useDisclosure/useDisclosure.test.ts` | 5 |
90
- | `src/ui/avatar/avatar.test.tsx` | 4 |
91
- | `src/ui/file-upload/file-upload.test.tsx` | 4 |
92
- | `src/ui/spinner/animated/spinner.test.tsx` | 8 |
93
- | `src/hooks/useDynamicStepper/useDynamicStepper.test.ts` | 7 |
94
- | `src/hooks/useClickOutside/useClickOutside.test.tsx` | 3 |
92
+ | `src/ui/radio-group/radio-group.test.tsx` | 5 |
93
+ | `src/ui/toast/toast.test.tsx` | 5 |
94
+ | `src/ui/toggle/toggle.test.tsx` | 5 |
95
+ | `src/hooks/useBodyScrollLock/useBodyScrollLock.test.ts` | 4 |
95
96
  | `src/hooks/useControllableState/useControllableState.test.ts` | 4 |
96
- | `src/ui/breadcrumb/breadcrumb.test.tsx` | 4 |
97
+ | `src/hooks/useDebouncedValue/useDebouncedValue.test.ts` | 4 |
97
98
  | `src/hooks/useThrottledCallback/useThrottledCallback.test.ts` | 4 |
98
99
  | `src/hooks/useToggle/useToggle.test.ts` | 4 |
99
- | `src/hooks/usePagination/usePagination.test.ts` | 10 |
100
- | `src/hooks/useTableFilter/useTableFilter.test.ts` | 9 |
101
- | `src/hooks/useTableSort/useTableSort.test.ts` | 7 |
102
- | `src/hooks/useSessionStorage/useSessionStorage.test.ts` | 3 |
103
- | `src/hooks/usePrefersColorScheme/usePrefersColorScheme.test.ts` | 1 |
100
+ | `src/ui/avatar/avatar.test.tsx` | 4 |
101
+ | `src/ui/breadcrumb/breadcrumb.test.tsx` | 4 |
102
+ | `src/ui/file-upload/file-upload.test.tsx` | 4 |
103
+ | `src/ui/popover/popover.test.tsx` | 4 |
104
+ | `src/ui/tooltip/tooltip.test.tsx` | 4 |
105
+ | `src/hooks/useClickOutside/useClickOutside.test.tsx` | 3 |
106
+ | `src/hooks/useDocumentTitle/useDocumentTitle.test.ts` | 3 |
107
+ | `src/hooks/useFocusManagement/useFocusManagement.test.tsx` | 3 |
104
108
  | `src/hooks/useIsMounted/useIsMounted.test.ts` | 3 |
105
- | `src/hooks/useDebouncedValue/useDebouncedValue.test.ts` | 4 |
109
+ | `src/hooks/useSessionStorage/useSessionStorage.test.ts` | 3 |
110
+ | `src/ui/tabs/tabs.test.tsx` | 3 |
106
111
  | `src/hooks/useHover/useHover.test.ts` | 2 |
107
112
  | `src/hooks/useIntersectionObserver/useIntersectionObserver.test.ts` | 2 |
108
- | `src/hooks/usePageVisibility/usePageVisibility.test.ts` | 1 |
109
- | `src/hooks/useResizeObserver/useResizeObserver.test.ts` | 2 |
110
- | `src/hooks/useNetworkStatus/useNetworkStatus.test.ts` | 2 |
111
113
  | `src/hooks/useMediaQuery/useMediaQuery.test.ts` | 2 |
112
- | `src/hooks/useDocumentTitle/useDocumentTitle.test.ts` | 3 |
113
- | `src/hooks/usePrefersReducedMotion/usePrefersReducedMotion.test.ts` | 1 |
114
- | `src/hooks/useBodyScrollLock/useBodyScrollLock.test.ts` | 4 |
115
- | `src/hooks/useWindowSize/useWindowSize.test.ts` | 1 |
114
+ | `src/hooks/useNetworkStatus/useNetworkStatus.test.ts` | 2 |
115
+ | `src/hooks/useResizeObserver/useResizeObserver.test.ts` | 2 |
116
116
  | `src/hooks/useInView/useInView.test.ts` | 1 |
117
117
  | `src/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.test.ts` | 1 |
118
- | `cli/rewrite-imports.test.ts` | 5 |
119
- | `src/ui/search/filter-search-suggestions.test.ts` | 6 |
118
+ | `src/hooks/usePageVisibility/usePageVisibility.test.ts` | 1 |
119
+ | `src/hooks/usePrefersColorScheme/usePrefersColorScheme.test.ts` | 1 |
120
+ | `src/hooks/usePrefersReducedMotion/usePrefersReducedMotion.test.ts` | 1 |
121
+ | `src/hooks/useWindowSize/useWindowSize.test.ts` | 1 |
120
122
  | `src/ui/search/search-suggestion-utils.test.ts` | 1 |
121
123
 
122
124
  ## Package exports
@@ -815,17 +817,25 @@ From this package directory in the monorepo:
815
817
 
816
818
  - `pnpm build` (or `npm run build`) — production bundle via `tsup` (Rollup treeshake + `scripts/prepend-use-client.mjs` via `onSuccess` so each UI entry under `dist/ui/`, animation entry under `dist/animations/`, chart entry under `dist/charts/`, and `dist/ui/<name>/animated.*` starts with `"use client"` where needed)
817
819
  - `pnpm dev` — `tsup` watch mode (same `onSuccess` hook after each rebuild)
818
- - `pnpm test` / `pnpm test:watch` — **Vitest** and **Testing Library** unit tests // covered 591 test cases in total
820
+ - `pnpm test` / `pnpm test:watch` — **Vitest** and **Testing Library** unit tests // currently covered 597 test cases in total
819
821
  - **`pnpm run generate:registry`** — runs `scripts/generate-registry.mjs`, which reads **`uiComponentNames`**, **`uiAnimatedComponentNames`**, **`animationEntryNames`**, **`chartEntryNames`**, and **`hooksEntryNames`** from `tsup.config.ts`, applies fixed **`nameAliases`**, scans each component/chart source to build **`peerHints`**, and writes **`cli/registry.json`** (`components` + `animations` + `hooks` + `peerHints`). Run this after adding or renaming UI, animation, chart, or hook entries so the CLI stays in sync (the script prints counts).
820
822
 
821
- ## Github Release log
823
+ ## Release and Contribution
824
+
825
+ This package uses Changesets for npm versioning and changelog entries. Add a
826
+ changeset from the repository root for user-facing package changes:
822
827
 
823
- https://github.com/ShubhamTiwari909/zentauri-ui/releases
828
+ ```sh
829
+ pnpm changeset
830
+ ```
824
831
 
825
- ## NOTE:
832
+ Useful links:
826
833
 
827
- This package is in initial phase of development and you might see some minor or major breaking changes in the future. If you want to contribute to this project, email me at @shubhmtiwri00@gmail.com or ping me on linkeded https://www.linkedin.com/in/shubham-tiwari-b7544b193/
834
+ - Package changelog: [`CHANGELOG.md`](CHANGELOG.md)
835
+ - Repository contribution guide: [`../../CONTRIBUTING.md`](../../CONTRIBUTING.md)
836
+ - Security policy: [`../../SECURITY.md`](../../SECURITY.md)
837
+ - GitHub releases: <https://github.com/ShubhamTiwari909/zentauri-ui/releases>
828
838
 
829
839
  ## License
830
840
 
831
- MIT
841
+ MIT. See [`LICENSE`](LICENSE).
package/package.json CHANGED
@@ -1,9 +1,37 @@
1
1
  {
2
2
  "name": "@zentauri-ui/zentauri-components",
3
- "version": "1.8.41",
3
+ "version": "1.8.42",
4
4
  "description": "React + Tailwind UI kit with charts, ESM/CJS builds, per-entry exports, and a zentauri-components / zentauri-ui CLI to vendor UI or hook source into your app",
5
+ "keywords": [
6
+ "react",
7
+ "tailwindcss",
8
+ "tailwind",
9
+ "component-library",
10
+ "ui-kit",
11
+ "design-system",
12
+ "typescript",
13
+ "nextjs",
14
+ "charts",
15
+ "hooks",
16
+ "animations"
17
+ ],
18
+ "homepage": "https://zentauri-ui.vercel.app/",
19
+ "bugs": {
20
+ "url": "https://github.com/ShubhamTiwari909/zentauri-ui/issues"
21
+ },
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git+https://github.com/ShubhamTiwari909/zentauri-ui.git",
25
+ "directory": "packages/components"
26
+ },
27
+ "author": {
28
+ "name": "Shubham Tiwari",
29
+ "url": "https://www.linkedin.com/in/shubham-tiwari-b7544b193/"
30
+ },
5
31
  "license": "MIT",
6
32
  "files": [
33
+ "CHANGELOG.md",
34
+ "LICENSE",
7
35
  "dist",
8
36
  "src/ui",
9
37
  "src/animations",
@@ -64,6 +92,7 @@
64
92
  "build:types": "tsc -p tsconfig.emit-types.json",
65
93
  "build": "npm run build:js && npm run build:types",
66
94
  "generate:registry": "node scripts/generate-registry.mjs",
95
+ "update:test-health": "node scripts/update-test-health.mjs",
67
96
  "check:exports": "node scripts/check-exports.mjs",
68
97
  "prepack": "npm run build && node scripts/generate-registry.mjs && node scripts/check-exports.mjs",
69
98
  "test": "vitest run",