hazo_ui 2.7.2 → 2.7.3

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
@@ -49,11 +49,23 @@ If you're using **Tailwind CSS v4**, you must add the `@source` directive to ens
49
49
 
50
50
  ```css
51
51
  @import "tailwindcss";
52
+ @import "tw-animate-css";
52
53
 
53
54
  /* REQUIRED for Tailwind v4: Enable scanning of hazo_ui components */
54
55
  @source "../node_modules/hazo_ui/dist";
55
56
  ```
56
57
 
58
+ **PostCSS** (Tailwind v4):
59
+
60
+ ```js
61
+ // postcss.config.js
62
+ module.exports = {
63
+ plugins: {
64
+ "@tailwindcss/postcss": {},
65
+ },
66
+ };
67
+ ```
68
+
57
69
  **Why is this needed?**
58
70
 
59
71
  Tailwind v4 uses JIT compilation and only generates CSS for classes found in scanned files. By default, it doesn't scan `node_modules/`. Without the `@source` directive:
@@ -61,7 +73,9 @@ Tailwind v4 uses JIT compilation and only generates CSS for classes found in sca
61
73
  - Colors will be missing
62
74
  - Layouts may break
63
75
 
64
- **Note:** Tailwind v3 users do NOT need this directive - the `content` configuration is sufficient.
76
+ The `tw-animate-css` import replaces the legacy `tailwindcss-animate` plugin (used by hazo_ui's accordion/collapse animations) for Tailwind v4 consumers.
77
+
78
+ **Note:** Tailwind v3 users do NOT need this directive — the `content` configuration plus `tailwindcss-animate@^1.0.7` is sufficient.
65
79
 
66
80
  ---
67
81
 
@@ -2959,9 +2973,10 @@ function FormDialog() {
2959
2973
 
2960
2974
  If you're using Tailwind CSS v4 and components appear unstyled:
2961
2975
 
2962
- 1. Add the `@source` directive to your globals.css:
2976
+ 1. Add the `@source` directive (and `tw-animate-css`) to your globals.css:
2963
2977
  ```css
2964
2978
  @import "tailwindcss";
2979
+ @import "tw-animate-css";
2965
2980
  @source "../node_modules/hazo_ui/dist";
2966
2981
  ```
2967
2982
 
package/dist/index.cjs CHANGED
@@ -152,7 +152,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
152
152
 
153
153
  // ../node_modules/@babel/runtime/helpers/extends.js
154
154
  var require_extends = __commonJS({
155
- "../node_modules/@babel/runtime/helpers/extends.js"(exports$1, module) {
155
+ "../node_modules/@babel/runtime/helpers/extends.js"(exports, module) {
156
156
  function _extends11() {
157
157
  return module.exports = _extends11 = Object.assign ? Object.assign.bind() : function(n) {
158
158
  for (var e = 1; e < arguments.length; e++) {
@@ -168,7 +168,7 @@ var require_extends = __commonJS({
168
168
 
169
169
  // ../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js
170
170
  var require_objectWithoutPropertiesLoose = __commonJS({
171
- "../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js"(exports$1, module) {
171
+ "../node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js"(exports, module) {
172
172
  function _objectWithoutPropertiesLoose10(r, e) {
173
173
  if (null == r) return {};
174
174
  var t = {};