@alexandregme/zljs 1.0.1 → 1.1.1

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/README.md CHANGED
@@ -27,13 +27,12 @@ pnpm add @alexandregme/zljs
27
27
 
28
28
  Peer dependencies: `react@19`, `react-dom@19`, `next@>=16`, `next-auth@4`, `@reduxjs/toolkit@2`, `react-redux@9`.
29
29
 
30
- Import the global styles once (e.g. in your root layout) and let Tailwind CSS v4 scan the library classes:
30
+ Import the global styles once (e.g. in your root layout). It already tells Tailwind CSS v4 to scan the library classes, so no `@source` is needed:
31
31
 
32
32
  ```css
33
33
  /* app/globals.css */
34
34
  @import "tailwindcss";
35
35
  @import "@alexandregme/zljs/styles.css";
36
- @source "../node_modules/@alexandregme/zljs/dist";
37
36
  ```
38
37
 
39
38
  ```tsx
package/dist/index.js CHANGED
@@ -825,7 +825,7 @@ var Heading = ({ children, level = 1, color }) => {
825
825
 
826
826
  // core/sidebar/sidebar.tsx
827
827
  import { useState as useState3 } from "react";
828
- import Link from "next/link";
828
+ import Link from "next/link.js";
829
829
 
830
830
  // core/sidebar/sidebar.styles.ts
831
831
  import { tv as tv12 } from "tailwind-variants";
@@ -1200,7 +1200,7 @@ var usePageStore = create5()(
1200
1200
  // core/page-wrapper/page-wrapper.tsx
1201
1201
  import { useEffect as useEffect2 } from "react";
1202
1202
  import { useDispatch, useStore } from "react-redux";
1203
- import { useRouter } from "next/compat/router";
1203
+ import { useRouter } from "next/compat/router.js";
1204
1204
  import { Fragment as Fragment4, jsx as jsx20 } from "react/jsx-runtime";
1205
1205
  var PageWrapper = ({
1206
1206
  reducers,
@@ -1285,7 +1285,7 @@ var Loader = ({ label: label5 = "Loading" }) => {
1285
1285
 
1286
1286
  // core/app-wrapper/app-wrapper.tsx
1287
1287
  import { useEffect as useEffect3 } from "react";
1288
- import { useRouter as useRouter2 } from "next/compat/router";
1288
+ import { useRouter as useRouter2 } from "next/compat/router.js";
1289
1289
  import { SessionProvider } from "next-auth/react";
1290
1290
  import { jsx as jsx24, jsxs as jsxs13 } from "react/jsx-runtime";
1291
1291
  var AppWrapper = ({
package/dist/styles.css CHANGED
@@ -1,3 +1,7 @@
1
+ /* Makes the consumer's Tailwind scan the component classes. The path is
2
+ relative to this file, so it works from core/ and from the copy in dist/. */
3
+ @source "./";
4
+
1
5
  /* Global Scrollbar */
2
6
  ::-webkit-scrollbar {
3
7
  width: 4px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alexandregme/zljs",
3
- "version": "1.0.1",
3
+ "version": "1.1.1",
4
4
  "description": "Opinionated, accessible React component library for enterprise apps (Next.js, Tailwind CSS v4).",
5
5
  "keywords": [
6
6
  "react",
@@ -51,13 +51,14 @@
51
51
  "access": "public"
52
52
  },
53
53
  "scripts": {
54
- "test": "vitest run --coverage",
54
+ "test": "vitest run --project unit --coverage",
55
55
  "lint": "tsc --noEmit && eslint . && prettier --check .",
56
56
  "lint:fix": "eslint . --fix && prettier --write .",
57
57
  "build": "storybook build",
58
58
  "storybook": "storybook dev -p 6006",
59
- "test:watch": "vitest --coverage",
60
- "test:coverage": "vitest run --coverage",
59
+ "test:watch": "vitest --project unit --coverage",
60
+ "test:coverage": "vitest run --project unit --coverage",
61
+ "test:storybook": "vitest run --project storybook",
61
62
  "eslint": "eslint ./ --color --fix",
62
63
  "prettier": "prettier --write .",
63
64
  "stylelint": "stylelint '**/*.{css,scss}' --allow-empty-input",
@@ -86,33 +87,36 @@
86
87
  "@commitlint/cli": "^20.2.0",
87
88
  "@commitlint/config-conventional": "^20.2.0",
88
89
  "@eslint/js": "^9.39.1",
89
- "@storybook/react-vite": "^10.2.8",
90
+ "@storybook/addon-vitest": "^10.6.3",
91
+ "@storybook/react-vite": "^10.6.3",
90
92
  "@tailwindcss/vite": "^4.1.18",
91
93
  "@testing-library/jest-dom": "^6.9.1",
92
94
  "@testing-library/react": "^16.3.0",
93
95
  "@types/react": "^19.2.7",
94
96
  "@types/react-dom": "^19.2.3",
95
- "@vitest/coverage-v8": "^4.0.18",
97
+ "@vitest/browser-playwright": "^4.1.12",
98
+ "@vitest/coverage-v8": "^4.1.12",
96
99
  "autoprefixer": "^10.4.23",
97
100
  "eslint": "^9.39.1",
98
- "eslint-plugin-storybook": "10.1.11",
101
+ "eslint-plugin-storybook": "10.6.3",
99
102
  "globals": "^16.5.0",
100
103
  "husky": "^9.1.7",
101
104
  "jsdom": "^28.0.0",
102
105
  "lint-staged": "^16.2.7",
103
106
  "next": "^16.1.6",
107
+ "playwright": "^1.64.1",
104
108
  "postcss": "^8.5.6",
105
109
  "prettier": "^3.7.4",
106
110
  "react": "^19.2.1",
107
111
  "react-dom": "^19.2.1",
108
- "storybook": "^10.4.6",
112
+ "storybook": "^10.6.3",
109
113
  "stylelint": "^16.26.1",
110
114
  "tailwindcss": "^4.1.18",
111
115
  "tsup": "^9.0.0",
112
116
  "typescript": "^5.9.3",
113
117
  "typescript-eslint": "^8.49.0",
114
118
  "vite": "^7.2.7",
115
- "vitest": "^4.0.18"
119
+ "vitest": "^4.1.12"
116
120
  },
117
121
  "peerDependencies": {
118
122
  "@reduxjs/toolkit": "^2.0.0",