From bc5a4e052597d5570847bd20a2d7de104ee5bd5d Mon Sep 17 00:00:00 2001 From: Avan Date: Wed, 1 Jan 2025 02:19:06 +0800 Subject: [PATCH 1/3] refactor: remove cursor-hit in hiddenInputClasses --- packages/core/theme/src/utils/classes.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/core/theme/src/utils/classes.ts b/packages/core/theme/src/utils/classes.ts index 2711a48a3b..68e5188284 100644 --- a/packages/core/theme/src/utils/classes.ts +++ b/packages/core/theme/src/utils/classes.ts @@ -69,9 +69,6 @@ export const collapseAdjacentVariantBorders = { }; export const hiddenInputClasses = [ - // Variables - "[--cursor-hit-x:8px]", - // Font styles "font-inherit", "text-[100%]", @@ -88,8 +85,7 @@ export const hiddenInputClasses = [ // Positioning & Hit area "absolute", "top-0", - "start-[calc(var(--cursor-hit-x)*-1)]", - "w-[calc(100%+var(--cursor-hit-x)*2)]", + "w-full", "h-full", // Opacity and z-index From 14d05212629064a13546b09352d0c501f28c42b2 Mon Sep 17 00:00:00 2001 From: Avan Date: Wed, 1 Jan 2025 11:04:33 +0800 Subject: [PATCH 2/3] Create lazy-ants-exercise.md --- .changeset/lazy-ants-exercise.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/lazy-ants-exercise.md diff --git a/.changeset/lazy-ants-exercise.md b/.changeset/lazy-ants-exercise.md new file mode 100644 index 0000000000..c9dd70a778 --- /dev/null +++ b/.changeset/lazy-ants-exercise.md @@ -0,0 +1,5 @@ +--- +"@nextui-org/theme": patch +--- + +refactor: remove cursor-hit in hiddenInputClasses (#4474) From e4fe7b7c7328e7d1f57410918a7cd5568fcf5124 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D5=A1=D3=84=D5=A1?= Date: Sat, 18 Jan 2025 21:05:59 +0800 Subject: [PATCH 3/3] chore(changeset): update package name --- .changeset/lazy-ants-exercise.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/lazy-ants-exercise.md b/.changeset/lazy-ants-exercise.md index c9dd70a778..eefcc41a34 100644 --- a/.changeset/lazy-ants-exercise.md +++ b/.changeset/lazy-ants-exercise.md @@ -1,5 +1,5 @@ --- -"@nextui-org/theme": patch +"@heroui/theme": patch --- refactor: remove cursor-hit in hiddenInputClasses (#4474)