Files
invyone/frontend/lib/registry/components/date-input/index.ts
T
2026-05-07 17:06:26 +09:00

44 lines
1.3 KiB
TypeScript

"use client";
import React from "react";
import { createComponentDefinition } from "../../utils/createComponentDefinition";
import { ComponentCategory } from "@/types/component";
import type { WebType } from "@/types/screen";
import { DateInputComponent } from "./DateInputComponent";
import { InvFieldConfigPanel } from "@/components/v2/config-panels/InvFieldConfigPanel";
import { DateInputConfig } from "./types";
/**
* DateInput 컴포넌트 정의
* date-input 컴포넌트입니다
*/
export const DateInputDefinition = createComponentDefinition({
id: "date-input",
name: "날짜 선택",
name_eng: "DateInput Component",
description: "날짜 선택을 위한 날짜 선택기 컴포넌트",
category: ComponentCategory.INPUT,
web_type: "date",
component: DateInputComponent,
default_config: {
kind: "input",
type: "date",
format: "date",
placeholder: "입력하세요",
},
default_size: { width: 220, height: 40 },
config_panel: InvFieldConfigPanel,
icon: "Edit",
tags: [],
version: "1.0.0",
author: "개발팀",
documentation: "https://docs.example.com/components/date-input",
});
// 타입 내보내기
export type { DateInputConfig } from "./types";
// 컴포넌트 내보내기
export { DateInputComponent } from "./DateInputComponent";
export { DateInputRenderer } from "./DateInputRenderer";