@e-burgos/tucu-ui 2.7.0 → 2.7.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/CHANGELOG.md +5 -0
- package/components/common/collapse.mjs +5 -5
- package/components/layouts/menus/collapsible-menu.mjs +1 -1
- package/components/layouts/menus/expandable-sidebar.mjs +1 -1
- package/components/layouts/menus/menu-item.mjs +1 -1
- package/hooks/internal/cjs-esm-interop.mjs +9 -0
- package/hooks/use-breakpoint.mjs +5 -4
- package/hooks/use-click-away.mjs +8 -0
- package/hooks/use-copy-to-clipboard.mjs +8 -0
- package/hooks/use-measure.mjs +6 -0
- package/index.d.ts +5 -6
- package/index.js +10 -10
- package/index.mjs +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [2.7.1] - 2026-07-15
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- work around esbuild CJS-interop bug breaking react-use hooks
|
|
8
13
|
## [2.7.0] - 2026-07-15
|
|
9
14
|
|
|
10
15
|
### Added
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { useState as f, useEffect as h } from "react";
|
|
3
|
-
import {
|
|
3
|
+
import { useMeasure as p } from "../../hooks/use-measure.mjs";
|
|
4
|
+
import { useTheme as b } from "../../themes/hooks/use-theme.mjs";
|
|
4
5
|
import { LAYOUT_OPTIONS as a } from "../../themes/config/index.mjs";
|
|
5
|
-
import { Plus as
|
|
6
|
-
import O from "react-use/lib/useMeasure";
|
|
6
|
+
import { Plus as O } from "../icons/plus.mjs";
|
|
7
7
|
function M({
|
|
8
8
|
label: n,
|
|
9
9
|
children: d,
|
|
10
10
|
initialOpen: s = !1,
|
|
11
11
|
className: l
|
|
12
12
|
}) {
|
|
13
|
-
const [e, o] = f(!1), [c, { height: m }] =
|
|
13
|
+
const [e, o] = f(!1), [c, { height: m }] = p(), { layout: t } = b(), u = t === a.MACOS || t === a.MACOS_TAHOE || t === a.MACOS_TAHOE_DOCK ? 24 : 0;
|
|
14
14
|
return h(() => {
|
|
15
15
|
s && o(!0);
|
|
16
16
|
}, [s]), /* @__PURE__ */ i(
|
|
@@ -33,7 +33,7 @@ function M({
|
|
|
33
33
|
"span",
|
|
34
34
|
{
|
|
35
35
|
className: `shrink-0 transition-transform duration-200 ltr:ml-4 rtl:mr-4 ${e ? "rotate-45" : ""}`,
|
|
36
|
-
children: /* @__PURE__ */ r(
|
|
36
|
+
children: /* @__PURE__ */ r(O, { className: "" })
|
|
37
37
|
}
|
|
38
38
|
)
|
|
39
39
|
]
|
|
@@ -5,7 +5,7 @@ import { motion as g } from "framer-motion";
|
|
|
5
5
|
import { ActiveLink as w } from "../../links/active-link.mjs";
|
|
6
6
|
import { ChevronDown as k } from "../../icons/chevron-down.mjs";
|
|
7
7
|
import { useLocation as E, useNavigate as L } from "react-router-dom";
|
|
8
|
-
import M from "
|
|
8
|
+
import { useMeasure as M } from "../../../hooks/use-measure.mjs";
|
|
9
9
|
function G({
|
|
10
10
|
name: h,
|
|
11
11
|
icon: m,
|
|
@@ -9,7 +9,7 @@ import { Close as C } from "../../icons/close.mjs";
|
|
|
9
9
|
import { TagIcon as f } from "../../icons/tag-icon.mjs";
|
|
10
10
|
import { MenuItem as u } from "./menu-item.mjs";
|
|
11
11
|
import { useIsMobile as M } from "../../../hooks/use-is-mobile.mjs";
|
|
12
|
-
import j from "
|
|
12
|
+
import { useClickAway as j } from "../../../hooks/use-click-away.mjs";
|
|
13
13
|
const s = (p) => p.map((l) => ({
|
|
14
14
|
name: l.name,
|
|
15
15
|
icon: l.icon,
|
|
@@ -6,7 +6,7 @@ import { ActiveLink as u } from "../../links/active-link.mjs";
|
|
|
6
6
|
import { ChevronDown as U } from "../../icons/chevron-down.mjs";
|
|
7
7
|
import { useLocation as D, useNavigate as O } from "react-router-dom";
|
|
8
8
|
import { useIsMobile as H } from "../../../hooks/use-is-mobile.mjs";
|
|
9
|
-
import I from "
|
|
9
|
+
import { useMeasure as I } from "../../../hooks/use-measure.mjs";
|
|
10
10
|
function W({
|
|
11
11
|
name: c,
|
|
12
12
|
icon: w,
|
package/hooks/use-breakpoint.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import o from "react-use/lib/factory/createBreakpoint";
|
|
2
|
-
|
|
1
|
+
import * as o from "react-use/lib/factory/createBreakpoint";
|
|
2
|
+
import { unwrapCjsDefault as t } from "./internal/cjs-esm-interop.mjs";
|
|
3
|
+
const e = t(o), r = {
|
|
3
4
|
xs: 480,
|
|
4
5
|
sm: 640,
|
|
5
6
|
md: 768,
|
|
@@ -8,7 +9,7 @@ const t = {
|
|
|
8
9
|
"2xl": 1440,
|
|
9
10
|
"3xl": 1780,
|
|
10
11
|
"4xl": 2160
|
|
11
|
-
},
|
|
12
|
+
}, s = e(r);
|
|
12
13
|
export {
|
|
13
|
-
|
|
14
|
+
s as useBreakpoint
|
|
14
15
|
};
|
package/index.d.ts
CHANGED
|
@@ -47,13 +47,12 @@ import * as TanstackTable from '@tanstack/react-table';
|
|
|
47
47
|
import { TooltipContentProps } from 'recharts';
|
|
48
48
|
import { Updater } from '@tanstack/react-table';
|
|
49
49
|
import { UseBoundStore } from 'zustand';
|
|
50
|
-
import
|
|
51
|
-
import { default as useCopyToClipboard } from 'react-use/lib/useCopyToClipboard';
|
|
50
|
+
import * as useCopyToClipboardModule from 'react-use/lib/useCopyToClipboard';
|
|
52
51
|
import { useEffect } from 'react';
|
|
53
52
|
import { useFormContext } from 'react-hook-form';
|
|
54
53
|
import { UseFormProps } from 'react-hook-form';
|
|
55
54
|
import { UseFormReturn } from 'react-hook-form';
|
|
56
|
-
import
|
|
55
|
+
import * as useMeasureModule from 'react-use/lib/useMeasure';
|
|
57
56
|
import { VisibilityState } from '@tanstack/react-table';
|
|
58
57
|
|
|
59
58
|
export declare const acceptedFileType: {
|
|
@@ -5272,7 +5271,7 @@ export declare const useBreakpoint: () => string;
|
|
|
5272
5271
|
|
|
5273
5272
|
export declare function useChartTheme(): ChartTheme;
|
|
5274
5273
|
|
|
5275
|
-
export
|
|
5274
|
+
export declare const useClickAway: <E extends Event = Event>(ref: RefObject<HTMLElement | null>, onClickAway: (event: E) => void, events?: string[]) => void;
|
|
5276
5275
|
|
|
5277
5276
|
/**
|
|
5278
5277
|
* useComponentEventListener
|
|
@@ -5295,7 +5294,7 @@ export declare const useComponentEventListener: (id: string) => {
|
|
|
5295
5294
|
};
|
|
5296
5295
|
};
|
|
5297
5296
|
|
|
5298
|
-
export
|
|
5297
|
+
export declare const useCopyToClipboard: () => [useCopyToClipboardModule.CopyToClipboardState, (value: string) => void];
|
|
5299
5298
|
|
|
5300
5299
|
/**
|
|
5301
5300
|
* Hook for the data table context.
|
|
@@ -5419,7 +5418,7 @@ export declare const useIsomorphicLayoutEffect: typeof useEffect;
|
|
|
5419
5418
|
|
|
5420
5419
|
export declare function useLockBodyScroll(freezeBodyScroll: boolean): void;
|
|
5421
5420
|
|
|
5422
|
-
export
|
|
5421
|
+
export declare const useMeasure: <E extends Element = Element>() => useMeasureModule.UseMeasureResult<E>;
|
|
5423
5422
|
|
|
5424
5423
|
export declare const usePublicErrorRoutesConfig: () => {
|
|
5425
5424
|
key: AppErrorPage;
|