@moontra/moonui-pro 2.36.2 → 2.36.4

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/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
  import * as React61 from 'react';
3
- import React61__default, { createContext, useState, useMemo, useCallback, useRef, useEffect, forwardRef, useContext, useImperativeHandle, useLayoutEffect, Component, useDebugValue, Children, isValidElement, cloneElement } from 'react';
3
+ import React61__default, { createContext, useState, useMemo, useCallback, useRef, useEffect, forwardRef, useContext, useImperativeHandle, useLayoutEffect, Component, useDebugValue, useId, Children, isValidElement, cloneElement } from 'react';
4
4
  import { clsx } from 'clsx';
5
5
  import { twMerge } from 'tailwind-merge';
6
6
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -63936,7 +63936,7 @@ function TimelineInternal({
63936
63936
  /* @__PURE__ */ jsx("span", { children: activity })
63937
63937
  ]
63938
63938
  },
63939
- i
63939
+ `activity-${event.id}-${i}`
63940
63940
  )),
63941
63941
  customMeta.activities.length > 3 && /* @__PURE__ */ jsxs("li", { className: "text-sm text-muted-foreground/60 pl-5", children: [
63942
63942
  "+",
@@ -63961,7 +63961,7 @@ function TimelineInternal({
63961
63961
  )) })
63962
63962
  ] }),
63963
63963
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mt-4 pt-4 border-t", children: [
63964
- /* @__PURE__ */ jsx("div", { className: "flex items-center gap-4 text-sm text-muted-foreground", children: showRelativeTime && event.date ? /* @__PURE__ */ jsx("span", { children: getRelativeTime(event.date) }) : /* @__PURE__ */ jsx("span", { children: event.date?.toLocaleDateString() }) }),
63964
+ /* @__PURE__ */ jsx("div", { className: "flex items-center gap-4 text-sm text-muted-foreground", children: showRelativeTime && event.date ? /* @__PURE__ */ jsx("span", { children: getRelativeTime(event.date) }) : /* @__PURE__ */ jsx("span", { children: event.date?.toLocaleDateString("en-US") }) }),
63965
63965
  (editable || onEventEdit || onEventDelete) && /* @__PURE__ */ jsxs("div", { className: "flex gap-2", children: [
63966
63966
  onEventEdit && /* @__PURE__ */ jsx(
63967
63967
  MoonUIButtonPro,
@@ -64203,7 +64203,7 @@ function TimelineInternal({
64203
64203
  /* @__PURE__ */ jsx("span", { children: activity })
64204
64204
  ]
64205
64205
  },
64206
- i
64206
+ `activity-${event.id}-${i}`
64207
64207
  )),
64208
64208
  customMeta.activities.length > 3 && /* @__PURE__ */ jsxs("li", { className: "text-sm text-muted-foreground/60 pl-5", children: [
64209
64209
  "+",
@@ -84718,10 +84718,11 @@ var GridPatternInternal = ({
84718
84718
  size: size4,
84719
84719
  performance: performance2 = "balanced"
84720
84720
  }) => {
84721
- const [patternId] = useState(() => `grid-pattern-${Math.random().toString(36).substr(2, 9)}`);
84722
- const [gradientId] = useState(() => `grid-gradient-${Math.random().toString(36).substr(2, 9)}`);
84723
- const [maskId] = useState(() => `grid-mask-${Math.random().toString(36).substr(2, 9)}`);
84724
- const [noiseId] = useState(() => `grid-noise-${Math.random().toString(36).substr(2, 9)}`);
84721
+ const uniqueId = useId();
84722
+ const patternId = `grid-pattern-${uniqueId}`;
84723
+ const gradientId = `grid-gradient-${uniqueId}`;
84724
+ const maskId = `grid-mask-${uniqueId}`;
84725
+ const noiseId = `grid-noise-${uniqueId}`;
84725
84726
  const containerRef = useRef(null);
84726
84727
  useEffect(() => {
84727
84728
  if (!parallax || !containerRef.current) return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moontra/moonui-pro",
3
- "version": "2.36.2",
3
+ "version": "2.36.4",
4
4
  "description": "Premium React components for MoonUI - Advanced UI library with 50+ pro components including performance, interactive, and gesture components",
5
5
  "type": "module",
6
6
  "main": "dist/index.mjs",