From f955dbaeea24fc94215893d8b4b8edc33513a248 Mon Sep 17 00:00:00 2001 From: kric_jspark Date: Tue, 17 Nov 2026 08:49:12 +0900 Subject: [PATCH] =?UTF-8?q?261117=5F01=5FENH:=20KriColorPalette=EB=A5=BC?= =?UTF-8?q?=20KriUiRegistry(kri-color-palette)=20=EC=84=A4=EC=B9=98?= =?UTF-8?q?=EB=B3=B8=EC=9C=BC=EB=A1=9C=20=EA=B5=90=EC=B2=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- src/components/common/KriColorPalette.tsx | 4 ++-- .../{ui => common/color-palette}/color-picker.tsx | 6 +++--- src/{utils => components/common/color-palette}/color.ts | 0 .../common/color-palette}/use-ref-with-init.ts | 0 .../common/color-palette}/use-value-as-ref.ts | 0 .../{ => common/color-palette}/visually-hidden-input.tsx | 0 src/components/list-contact/ListContactInfoPanel.tsx | 2 +- 7 files changed, 6 insertions(+), 6 deletions(-) rename src/components/{ui => common/color-palette}/color-picker.tsx (99%) rename src/{utils => components/common/color-palette}/color.ts (100%) rename src/{hooks => components/common/color-palette}/use-ref-with-init.ts (100%) rename src/{hooks => components/common/color-palette}/use-value-as-ref.ts (100%) rename src/components/{ => common/color-palette}/visually-hidden-input.tsx (100%) diff --git a/src/components/common/KriColorPalette.tsx b/src/components/common/KriColorPalette.tsx index 90b667c..8cced0e 100644 --- a/src/components/common/KriColorPalette.tsx +++ b/src/components/common/KriColorPalette.tsx @@ -4,11 +4,11 @@ import { useState, type CSSProperties, type KeyboardEvent } from 'react' import { Check } from 'lucide-react' import { Slider as SliderPrimitive } from 'radix-ui' import { Button } from '@/components/ui/button' -import { ColorPicker, ColorPickerArea, ColorPickerHueSlider } from '@/components/ui/color-picker' +import { ColorPicker, ColorPickerArea, ColorPickerHueSlider } from '@/components/common/color-palette/color-picker' import { Input } from '@/components/ui/input' import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover' import { cn } from '@/lib/utils' -import { formatHexColor, isLightHexColor, normalizeHexColor, parseHexColor } from '@/utils/color' +import { formatHexColor, isLightHexColor, normalizeHexColor, parseHexColor } from '@/components/common/color-palette/color' export const KRI_COLOR_PALETTE_DEFAULT_COLORS = [ '#111827', '#4B5563', '#9CA3AF', '#E5E7EB', '#EF4444', '#F97316', '#F59E0B', '#EAB308', diff --git a/src/components/ui/color-picker.tsx b/src/components/common/color-palette/color-picker.tsx similarity index 99% rename from src/components/ui/color-picker.tsx rename to src/components/common/color-palette/color-picker.tsx index 7cab857..0df5d1c 100644 --- a/src/components/ui/color-picker.tsx +++ b/src/components/common/color-palette/color-picker.tsx @@ -13,9 +13,9 @@ import { import { useComposedRefs, useLayoutEffect } from "radix-ui/internal"; import * as React from "react"; -import { VisuallyHiddenInput } from "@/components/visually-hidden-input"; -import { useRefWithInit } from "@/hooks/use-ref-with-init"; -import { useValueAsRef } from "@/hooks/use-value-as-ref"; +import { VisuallyHiddenInput } from "./visually-hidden-input"; +import { useRefWithInit } from "./use-ref-with-init"; +import { useValueAsRef } from "./use-value-as-ref"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { diff --git a/src/utils/color.ts b/src/components/common/color-palette/color.ts similarity index 100% rename from src/utils/color.ts rename to src/components/common/color-palette/color.ts diff --git a/src/hooks/use-ref-with-init.ts b/src/components/common/color-palette/use-ref-with-init.ts similarity index 100% rename from src/hooks/use-ref-with-init.ts rename to src/components/common/color-palette/use-ref-with-init.ts diff --git a/src/hooks/use-value-as-ref.ts b/src/components/common/color-palette/use-value-as-ref.ts similarity index 100% rename from src/hooks/use-value-as-ref.ts rename to src/components/common/color-palette/use-value-as-ref.ts diff --git a/src/components/visually-hidden-input.tsx b/src/components/common/color-palette/visually-hidden-input.tsx similarity index 100% rename from src/components/visually-hidden-input.tsx rename to src/components/common/color-palette/visually-hidden-input.tsx diff --git a/src/components/list-contact/ListContactInfoPanel.tsx b/src/components/list-contact/ListContactInfoPanel.tsx index 1792b87..28c0ea6 100644 --- a/src/components/list-contact/ListContactInfoPanel.tsx +++ b/src/components/list-contact/ListContactInfoPanel.tsx @@ -17,7 +17,7 @@ import { formatKst } from '@kri/common' import { isListFieldEditableForContact, isListFieldVisibleForContact } from '@/utils/listAccess' import { substituteVariables } from '@/lib/variableSubstitution' import { formatKoreanPhoneNumber } from '@/utils/phone' -import { isLightHexColor, normalizeHexColor } from '@/utils/color' +import { isLightHexColor, normalizeHexColor } from '@/components/common/color-palette/color' import SurveyQrDialog from '@/components/dialog/SurveyQrDialog' import SingleMessageSendDialog from '@/components/dialog/SingleMessageSendDialog' import { ctiClient } from '@/lib/cti/ctiClient'