@t3q-ui/design-system 1.76.0 → 1.78.0
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 +29 -0
- package/README.md +2 -0
- package/dist/components/_internal/pickerTrigger.cjs +5 -3
- package/dist/components/_internal/pickerTrigger.cjs.map +1 -1
- package/dist/components/_internal/pickerTrigger.js +5 -3
- package/dist/components/_internal/pickerTrigger.js.map +1 -1
- package/dist/components/_internal/textInput.cjs +13 -8
- package/dist/components/_internal/textInput.cjs.map +1 -1
- package/dist/components/_internal/textInput.js +13 -8
- package/dist/components/_internal/textInput.js.map +1 -1
- package/dist/components/agGridTable/index.cjs +12 -1
- package/dist/components/agGridTable/index.cjs.map +1 -1
- package/dist/components/agGridTable/index.js +12 -1
- package/dist/components/agGridTable/index.js.map +1 -1
- package/dist/components/dropdownMenu.cjs +7 -0
- package/dist/components/dropdownMenu.cjs.map +1 -1
- package/dist/components/dropdownMenu.js +7 -0
- package/dist/components/dropdownMenu.js.map +1 -1
- package/dist/components/iconButton.cjs +6 -4
- package/dist/components/iconButton.cjs.map +1 -1
- package/dist/components/iconButton.js +6 -4
- package/dist/components/iconButton.js.map +1 -1
- package/dist/components/multiSelect/multiSelectTrigger.cjs +25 -14
- package/dist/components/multiSelect/multiSelectTrigger.cjs.map +1 -1
- package/dist/components/multiSelect/multiSelectTrigger.js +25 -14
- package/dist/components/multiSelect/multiSelectTrigger.js.map +1 -1
- package/dist/components/parameterTable/ParameterTable.cjs +70 -87
- package/dist/components/parameterTable/ParameterTable.cjs.map +1 -1
- package/dist/components/parameterTable/ParameterTable.js +71 -88
- package/dist/components/parameterTable/ParameterTable.js.map +1 -1
- package/dist/components/parameterTable/ParameterTableRow.cjs +51 -33
- package/dist/components/parameterTable/ParameterTableRow.cjs.map +1 -1
- package/dist/components/parameterTable/ParameterTableRow.js +51 -33
- package/dist/components/parameterTable/ParameterTableRow.js.map +1 -1
- package/dist/components/parameterTable/cellSelection/clipboard.cjs +0 -93
- package/dist/components/parameterTable/cellSelection/clipboard.cjs.map +1 -1
- package/dist/components/parameterTable/cellSelection/clipboard.js +1 -94
- package/dist/components/parameterTable/cellSelection/clipboard.js.map +1 -1
- package/dist/components/select/selectTrigger.cjs +4 -2
- package/dist/components/select/selectTrigger.cjs.map +1 -1
- package/dist/components/select/selectTrigger.js +4 -2
- package/dist/components/select/selectTrigger.js.map +1 -1
- package/dist/components/table.cjs +2 -2
- package/dist/components/table.cjs.map +1 -1
- package/dist/components/table.js +2 -2
- package/dist/components/table.js.map +1 -1
- package/dist/components/textField.cjs +55 -9
- package/dist/components/textField.cjs.map +1 -1
- package/dist/components/textField.js +56 -10
- package/dist/components/textField.js.map +1 -1
- package/dist/design-system.css +5 -19
- package/dist/hooks/useFloatingLabel.cjs +1 -1
- package/dist/hooks/useFloatingLabel.cjs.map +1 -1
- package/dist/hooks/useFloatingLabel.js +1 -1
- package/dist/hooks/useFloatingLabel.js.map +1 -1
- package/dist/{index-Dd-O1cSb.d.cts → index-C_zMCN-o.d.cts} +1 -1
- package/dist/{index-Dd-O1cSb.d.ts → index-C_zMCN-o.d.ts} +1 -1
- package/dist/index.d.cts +13 -9
- package/dist/index.d.ts +13 -9
- package/dist/patterns/index.cjs +1 -0
- package/dist/patterns/index.cjs.map +1 -1
- package/dist/patterns/index.d.cts +29 -5
- package/dist/patterns/index.d.ts +29 -5
- package/dist/patterns/index.js +2 -1
- package/dist/patterns/listPage.cjs +115 -65
- package/dist/patterns/listPage.cjs.map +1 -1
- package/dist/patterns/listPage.js +116 -66
- package/dist/patterns/listPage.js.map +1 -1
- package/dist/styles.css +24 -19
- package/mcp/manifests/components.json +220 -17
- package/package.json +1 -1
- package/skills/tds/reference/components.md +13 -10
|
@@ -24,11 +24,55 @@ function _interopNamespaceDefault(e) {
|
|
|
24
24
|
}
|
|
25
25
|
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
|
26
26
|
const TextField = React__namespace.forwardRef(
|
|
27
|
-
({
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
({
|
|
28
|
+
appearance = "standard",
|
|
29
|
+
hasClearButton,
|
|
30
|
+
elemBeforeInput,
|
|
31
|
+
elemAfterInput,
|
|
32
|
+
addonBefore,
|
|
33
|
+
addonAfter,
|
|
34
|
+
...props
|
|
35
|
+
}, forwardedRef) => {
|
|
36
|
+
const { elementRef, hasValue, isInvalid, floating, containerProps, elementProps } = textInput.useTextInput({ ...props, appearance }, forwardedRef, {
|
|
37
|
+
multiline: false,
|
|
38
|
+
containerClass: cn.cn(
|
|
39
|
+
cancelIcon.CLEAR_HOST_CLASS,
|
|
40
|
+
// 고정 칸은 테두리 안쪽 끝까지 채운다 — 그쪽 안쪽 여백과 위아래 여백을 없애고 입력은 가운데 둔다
|
|
41
|
+
(addonBefore != null || addonAfter != null) && "!py-0",
|
|
42
|
+
addonBefore != null && "!pl-0",
|
|
43
|
+
addonAfter != null && "!pr-0"
|
|
44
|
+
),
|
|
45
|
+
// 고정 칸이 라벨이 내려올 자리(칸 왼쪽)를 차지하므로 라벨은 늘 떠 있다
|
|
46
|
+
floatLabel: addonBefore != null
|
|
47
|
+
});
|
|
48
|
+
const addonId = React__namespace.useId();
|
|
49
|
+
const thickBorder = appearance === "standard" && !floating.hasLabel && (isInvalid || floating.isFocused);
|
|
50
|
+
const describedBy = [
|
|
51
|
+
addonBefore != null && `${addonId}-before`,
|
|
52
|
+
addonAfter != null && `${addonId}-after`,
|
|
53
|
+
elementProps["aria-describedby"]
|
|
54
|
+
].filter(Boolean).join(" ") || void 0;
|
|
55
|
+
const focusInput = () => {
|
|
56
|
+
if (!window.getSelection()?.toString()) elementRef.current?.focus();
|
|
57
|
+
};
|
|
58
|
+
const addon = (side, content) => (
|
|
59
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events -- 포인터 편의, 키보드는 입력으로 바로 간다
|
|
60
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
61
|
+
"span",
|
|
62
|
+
{
|
|
63
|
+
id: `${addonId}-${side}`,
|
|
64
|
+
"data-slot": `text-field-addon-${side}`,
|
|
65
|
+
title: typeof content === "string" ? content : void 0,
|
|
66
|
+
onClick: focusInput,
|
|
67
|
+
className: cn.cn(
|
|
68
|
+
"flex min-w-0 max-w-[40%] shrink-0 items-center self-stretch bg-sys-input-addon-background",
|
|
69
|
+
// 구분선은 칸 테두리와 같은 색(비활성이면 옅게)
|
|
70
|
+
props.disabled ? "border-sys-divider-subtle" : "border-sys-divider-main",
|
|
71
|
+
side === "before" ? cn.cn("rounded-l-[inherit] border-r pr-[8px]", thickBorder ? "pl-[7px]" : "pl-[8px]") : cn.cn("rounded-r-[inherit] border-l pl-[8px]", thickBorder ? "pr-[7px]" : "pr-[8px]")
|
|
72
|
+
),
|
|
73
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate whitespace-pre", children: content })
|
|
74
|
+
}
|
|
75
|
+
)
|
|
32
76
|
);
|
|
33
77
|
const handleClear = React__namespace.useCallback(() => {
|
|
34
78
|
const input = elementRef.current;
|
|
@@ -39,19 +83,20 @@ const TextField = React__namespace.forwardRef(
|
|
|
39
83
|
}, [elementRef]);
|
|
40
84
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-slot": "text-field", ...containerProps, children: [
|
|
41
85
|
floating.outline,
|
|
86
|
+
addonBefore != null && addon("before", addonBefore),
|
|
42
87
|
elemBeforeInput && /* @__PURE__ */ jsxRuntime.jsx(
|
|
43
88
|
"span",
|
|
44
89
|
{
|
|
45
90
|
className: cn.cn(
|
|
46
91
|
// 아이콘은 24×24, 글자("개"·"코어")는 줄바꿈 없이 폭이 늘어난다 — 고정 size-[24px] 는 두 글자가 두 줄로 깨졌다 (2026-10-12)
|
|
47
92
|
"shrink-0 flex items-center justify-center h-[24px] min-w-[24px] whitespace-nowrap",
|
|
48
|
-
typeof elemBeforeInput === "string" && "px-[2px] text-sys-text-subtle",
|
|
93
|
+
typeof elemBeforeInput === "string" && cn.cn("px-[2px]", props.disabled ? "text-sys-text-disabled" : "text-sys-text-subtle"),
|
|
49
94
|
floating.hasLabel && !floating.isFloating && "invisible"
|
|
50
95
|
),
|
|
51
96
|
children: elemBeforeInput
|
|
52
97
|
}
|
|
53
98
|
),
|
|
54
|
-
/* @__PURE__ */ jsxRuntime.jsx("input", { ...elementProps }),
|
|
99
|
+
/* @__PURE__ */ jsxRuntime.jsx("input", { ...elementProps, "aria-describedby": describedBy }),
|
|
55
100
|
hasClearButton && /* @__PURE__ */ jsxRuntime.jsx(
|
|
56
101
|
"button",
|
|
57
102
|
{
|
|
@@ -72,11 +117,12 @@ const TextField = React__namespace.forwardRef(
|
|
|
72
117
|
{
|
|
73
118
|
className: cn.cn(
|
|
74
119
|
"shrink-0 flex items-center justify-center h-[24px] min-w-[24px] whitespace-nowrap",
|
|
75
|
-
typeof elemAfterInput === "string" && "px-[2px] text-sys-text-subtle"
|
|
120
|
+
typeof elemAfterInput === "string" && cn.cn("px-[2px]", props.disabled ? "text-sys-text-disabled" : "text-sys-text-subtle")
|
|
76
121
|
),
|
|
77
122
|
children: elemAfterInput
|
|
78
123
|
}
|
|
79
|
-
)
|
|
124
|
+
),
|
|
125
|
+
addonAfter != null && addon("after", addonAfter)
|
|
80
126
|
] });
|
|
81
127
|
}
|
|
82
128
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textField.cjs","sources":["../../src/components/textField.tsx"],"sourcesContent":["'use client'\n\nimport * as React from 'react'\n\nimport { CancelIcon, CLEAR_HOST_CLASS, CLEAR_REVEAL_CLASS } from './_internal/cancelIcon'\nimport { useTextInput } from './_internal/textInput'\nimport { cn } from '../utils/cn'\n\nexport type TextFieldProps = Omit<React.ComponentProps<'input'>, 'children'> & {\n /** @default 'standard' */\n appearance?: 'standard' | 'none'\n /** Floating label 텍스트 */\n label?: string\n /** 라벨 필수 표시 (*) */\n required?: boolean\n /** Clear 버튼 표시 여부 */\n hasClearButton?: boolean\n /** 입력 필드 왼쪽 아이콘/요소 슬롯 */\n elemBeforeInput?: React.ReactNode\n /** 입력 필드 오른쪽 아이콘/요소 슬롯 */\n elemAfterInput?: React.ReactNode\n /** 에러 상태 */\n isInvalid?: boolean\n /** 컨테이너 div에 적용할 추가 className */\n containerClassName?: string\n}\n\n/**\n * 한 줄 텍스트 입력. 폼의 이름·코드·URL·숫자 같은 짧은 값에 쓴다.\n *\n * 언제 쓰나: `FormField` 안에서 `FormControl` 로 감싸 오류 상태를 받는다. 라벨은 `FormLabel` 로 두고, 독립 사용 시에만 `label`(floating) 을 쓴다.\n * 언제 안 쓰나: 여러 줄 입력(→ Textarea), 정해진 선택지(→ Select·RadioGroup), 목록 검색·필터(→ ColumnFilter·TableFilter*).\n * 대신/함께: 지우기 버튼은 `hasClearButton`, 단위·아이콘은 `elemBeforeInput`/`elemAfterInput
|
|
1
|
+
{"version":3,"file":"textField.cjs","sources":["../../src/components/textField.tsx"],"sourcesContent":["'use client'\n\nimport * as React from 'react'\n\nimport { CancelIcon, CLEAR_HOST_CLASS, CLEAR_REVEAL_CLASS } from './_internal/cancelIcon'\nimport { useTextInput } from './_internal/textInput'\nimport { cn } from '../utils/cn'\n\nexport type TextFieldProps = Omit<React.ComponentProps<'input'>, 'children'> & {\n /** @default 'standard' */\n appearance?: 'standard' | 'none'\n /** Floating label 텍스트 */\n label?: string\n /** 라벨 필수 표시 (*) */\n required?: boolean\n /** Clear 버튼 표시 여부 */\n hasClearButton?: boolean\n /** 입력 필드 왼쪽 아이콘/요소 슬롯 — 칸 안에 바탕 없이 그린다(아이콘·단위) */\n elemBeforeInput?: React.ReactNode\n /** 입력 필드 오른쪽 아이콘/요소 슬롯 — 칸 안에 바탕 없이 그린다(아이콘·단위) */\n elemAfterInput?: React.ReactNode\n /** 입력 앞에 붙는 고정 칸 — 값의 고칠 수 없는 앞부분(예: `/data/deploy/`·`https://host/api/`). 테두리 안 왼쪽 끝에 채운 바탕 + 구분선으로 그리고, 길면 말줄임, 누르면 입력에 포커스, 입력의 설명(aria-describedby)으로 읽힌다 */\n addonBefore?: React.ReactNode\n /** 입력 뒤에 붙는 고정 칸 — 값의 고칠 수 없는 뒷부분(예: `/inference`). 모양·동작은 `addonBefore` 와 같다 */\n addonAfter?: React.ReactNode\n /** 에러 상태 */\n isInvalid?: boolean\n /** 컨테이너 div에 적용할 추가 className */\n containerClassName?: string\n}\n\n/**\n * 한 줄 텍스트 입력. 폼의 이름·코드·URL·숫자 같은 짧은 값에 쓴다.\n *\n * 언제 쓰나: `FormField` 안에서 `FormControl` 로 감싸 오류 상태를 받는다. 라벨은 `FormLabel` 로 두고, 독립 사용 시에만 `label`(floating) 을 쓴다.\n * 언제 안 쓰나: 여러 줄 입력(→ Textarea), 정해진 선택지(→ Select·RadioGroup), 목록 검색·필터(→ ColumnFilter·TableFilter*).\n * 대신/함께: 지우기 버튼은 `hasClearButton`, 단위·아이콘은 `elemBeforeInput`/`elemAfterInput`(칸 안, 바탕 없음). 입력값 앞·뒤에 붙는 고칠 수 없는 경로·주소는 `addonBefore`/`addonAfter`(채운 고정 칸 + 구분선) — `elemBeforeInput` 에 글자를 넣으면 placeholder 처럼 보인다. 보여 주기만 하는 값(복사·키보드 포커스는 된다)은 `readOnly`, 지금 고를 수 없는 칸은 `disabled` — 둘 다 가라앉은 바탕으로 그려지고 비활성만 글자가 흐리다.\n */\nconst TextField = React.forwardRef<HTMLInputElement, TextFieldProps>(\n (\n {\n appearance = 'standard',\n hasClearButton,\n elemBeforeInput,\n elemAfterInput,\n addonBefore,\n addonAfter,\n ...props\n },\n forwardedRef,\n ) => {\n const { elementRef, hasValue, isInvalid, floating, containerProps, elementProps } =\n useTextInput({ ...props, appearance }, forwardedRef, {\n multiline: false,\n containerClass: cn(\n CLEAR_HOST_CLASS,\n // 고정 칸은 테두리 안쪽 끝까지 채운다 — 그쪽 안쪽 여백과 위아래 여백을 없애고 입력은 가운데 둔다\n (addonBefore != null || addonAfter != null) && '!py-0',\n addonBefore != null && '!pl-0',\n addonAfter != null && '!pr-0',\n ),\n // 고정 칸이 라벨이 내려올 자리(칸 왼쪽)를 차지하므로 라벨은 늘 떠 있다\n floatLabel: addonBefore != null,\n })\n const addonId = React.useId()\n // 테두리가 2px 로 굵어지는 상태(포커스·오류, 라벨 없는 standard)에서는 고정 칸 바깥 여백을 1px 줄여 글자가 움직이지 않게 한다\n const thickBorder =\n appearance === 'standard' && !floating.hasLabel && (isInvalid || floating.isFocused)\n const describedBy =\n [\n addonBefore != null && `${addonId}-before`,\n addonAfter != null && `${addonId}-after`,\n elementProps['aria-describedby'],\n ]\n .filter(Boolean)\n .join(' ') || undefined\n // 마우스 편의: 고정 칸을 누르면 입력으로. 고정 칸 글자를 드래그해 고른 중이면 그 선택을 지우지 않는다\n const focusInput = () => {\n if (!window.getSelection()?.toString()) elementRef.current?.focus()\n }\n const addon = (side: 'before' | 'after', content: React.ReactNode) => (\n // eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events -- 포인터 편의, 키보드는 입력으로 바로 간다\n <span\n id={`${addonId}-${side}`}\n data-slot={`text-field-addon-${side}`}\n title={typeof content === 'string' ? content : undefined}\n onClick={focusInput}\n className={cn(\n 'flex min-w-0 max-w-[40%] shrink-0 items-center self-stretch bg-sys-input-addon-background',\n // 구분선은 칸 테두리와 같은 색(비활성이면 옅게)\n props.disabled ? 'border-sys-divider-subtle' : 'border-sys-divider-main',\n side === 'before'\n ? cn('rounded-l-[inherit] border-r pr-[8px]', thickBorder ? 'pl-[7px]' : 'pl-[8px]')\n : cn('rounded-r-[inherit] border-l pl-[8px]', thickBorder ? 'pr-[7px]' : 'pr-[8px]'),\n )}\n >\n <span className='truncate whitespace-pre'>{content}</span>\n </span>\n )\n\n const handleClear = React.useCallback(() => {\n const input = elementRef.current\n if (!input) return\n // 원래 setter 로 써야 React 가 값 바뀜을 알아채 onChange 를 부른다\n Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, 'value')?.set?.call(input, '')\n input.dispatchEvent(new Event('input', { bubbles: true }))\n input.focus()\n }, [elementRef])\n\n return (\n <div data-slot='text-field' {...containerProps}>\n {/* Floating label (standard: notched outline, none: inline label) */}\n {floating.outline}\n\n {addonBefore != null && addon('before', addonBefore)}\n\n {/* Left icon slot — label이 down 상태(placeholder 역할)일 때 숨김 */}\n {elemBeforeInput && (\n <span\n className={cn(\n // 아이콘은 24×24, 글자(\"개\"·\"코어\")는 줄바꿈 없이 폭이 늘어난다 — 고정 size-[24px] 는 두 글자가 두 줄로 깨졌다 (2026-10-12)\n 'shrink-0 flex items-center justify-center h-[24px] min-w-[24px] whitespace-nowrap',\n typeof elemBeforeInput === 'string' &&\n cn('px-[2px]', props.disabled ? 'text-sys-text-disabled' : 'text-sys-text-subtle'),\n floating.hasLabel && !floating.isFloating && 'invisible',\n )}\n >\n {elemBeforeInput}\n </span>\n )}\n\n <input {...elementProps} aria-describedby={describedBy} />\n\n {/* Clear button — 항상 공간 확보, 값 없으면 invisible (너비 점프 방지), 값이 있으면 마우스·포커스 때만 보임 */}\n {hasClearButton && (\n <button\n type='button'\n onClick={handleClear}\n className={cn(\n 'shrink-0 flex items-center justify-center p-[2px] rounded-small hover:bg-secondary-o10 text-sys-text-subtler',\n CLEAR_REVEAL_CLASS,\n (!hasValue || props.disabled || props.readOnly) && 'invisible',\n )}\n aria-label='입력 지우기'\n tabIndex={-1}\n >\n <CancelIcon size={20} />\n </button>\n )}\n\n {/* Right icon slot */}\n {elemAfterInput && (\n <span\n className={cn(\n 'shrink-0 flex items-center justify-center h-[24px] min-w-[24px] whitespace-nowrap',\n typeof elemAfterInput === 'string' &&\n cn('px-[2px]', props.disabled ? 'text-sys-text-disabled' : 'text-sys-text-subtle'),\n )}\n >\n {elemAfterInput}\n </span>\n )}\n\n {addonAfter != null && addon('after', addonAfter)}\n </div>\n )\n },\n)\nTextField.displayName = 'TextField'\n\nexport { TextField }\n"],"names":["React","useTextInput","cn","CLEAR_HOST_CLASS","jsx","jsxs","CLEAR_REVEAL_CLASS","CancelIcon"],"mappings":"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"}
|
|
@@ -1,15 +1,59 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import * as React from "react";
|
|
4
|
-
import { CancelIcon, CLEAR_REVEAL_CLASS
|
|
4
|
+
import { CLEAR_HOST_CLASS, CancelIcon, CLEAR_REVEAL_CLASS } from "./_internal/cancelIcon.js";
|
|
5
5
|
import { useTextInput } from "./_internal/textInput.js";
|
|
6
6
|
import { cn } from "../utils/cn.js";
|
|
7
7
|
const TextField = React.forwardRef(
|
|
8
|
-
({
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
({
|
|
9
|
+
appearance = "standard",
|
|
10
|
+
hasClearButton,
|
|
11
|
+
elemBeforeInput,
|
|
12
|
+
elemAfterInput,
|
|
13
|
+
addonBefore,
|
|
14
|
+
addonAfter,
|
|
15
|
+
...props
|
|
16
|
+
}, forwardedRef) => {
|
|
17
|
+
const { elementRef, hasValue, isInvalid, floating, containerProps, elementProps } = useTextInput({ ...props, appearance }, forwardedRef, {
|
|
18
|
+
multiline: false,
|
|
19
|
+
containerClass: cn(
|
|
20
|
+
CLEAR_HOST_CLASS,
|
|
21
|
+
// 고정 칸은 테두리 안쪽 끝까지 채운다 — 그쪽 안쪽 여백과 위아래 여백을 없애고 입력은 가운데 둔다
|
|
22
|
+
(addonBefore != null || addonAfter != null) && "!py-0",
|
|
23
|
+
addonBefore != null && "!pl-0",
|
|
24
|
+
addonAfter != null && "!pr-0"
|
|
25
|
+
),
|
|
26
|
+
// 고정 칸이 라벨이 내려올 자리(칸 왼쪽)를 차지하므로 라벨은 늘 떠 있다
|
|
27
|
+
floatLabel: addonBefore != null
|
|
28
|
+
});
|
|
29
|
+
const addonId = React.useId();
|
|
30
|
+
const thickBorder = appearance === "standard" && !floating.hasLabel && (isInvalid || floating.isFocused);
|
|
31
|
+
const describedBy = [
|
|
32
|
+
addonBefore != null && `${addonId}-before`,
|
|
33
|
+
addonAfter != null && `${addonId}-after`,
|
|
34
|
+
elementProps["aria-describedby"]
|
|
35
|
+
].filter(Boolean).join(" ") || void 0;
|
|
36
|
+
const focusInput = () => {
|
|
37
|
+
if (!window.getSelection()?.toString()) elementRef.current?.focus();
|
|
38
|
+
};
|
|
39
|
+
const addon = (side, content) => (
|
|
40
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events -- 포인터 편의, 키보드는 입력으로 바로 간다
|
|
41
|
+
/* @__PURE__ */ jsx(
|
|
42
|
+
"span",
|
|
43
|
+
{
|
|
44
|
+
id: `${addonId}-${side}`,
|
|
45
|
+
"data-slot": `text-field-addon-${side}`,
|
|
46
|
+
title: typeof content === "string" ? content : void 0,
|
|
47
|
+
onClick: focusInput,
|
|
48
|
+
className: cn(
|
|
49
|
+
"flex min-w-0 max-w-[40%] shrink-0 items-center self-stretch bg-sys-input-addon-background",
|
|
50
|
+
// 구분선은 칸 테두리와 같은 색(비활성이면 옅게)
|
|
51
|
+
props.disabled ? "border-sys-divider-subtle" : "border-sys-divider-main",
|
|
52
|
+
side === "before" ? cn("rounded-l-[inherit] border-r pr-[8px]", thickBorder ? "pl-[7px]" : "pl-[8px]") : cn("rounded-r-[inherit] border-l pl-[8px]", thickBorder ? "pr-[7px]" : "pr-[8px]")
|
|
53
|
+
),
|
|
54
|
+
children: /* @__PURE__ */ jsx("span", { className: "truncate whitespace-pre", children: content })
|
|
55
|
+
}
|
|
56
|
+
)
|
|
13
57
|
);
|
|
14
58
|
const handleClear = React.useCallback(() => {
|
|
15
59
|
const input = elementRef.current;
|
|
@@ -20,19 +64,20 @@ const TextField = React.forwardRef(
|
|
|
20
64
|
}, [elementRef]);
|
|
21
65
|
return /* @__PURE__ */ jsxs("div", { "data-slot": "text-field", ...containerProps, children: [
|
|
22
66
|
floating.outline,
|
|
67
|
+
addonBefore != null && addon("before", addonBefore),
|
|
23
68
|
elemBeforeInput && /* @__PURE__ */ jsx(
|
|
24
69
|
"span",
|
|
25
70
|
{
|
|
26
71
|
className: cn(
|
|
27
72
|
// 아이콘은 24×24, 글자("개"·"코어")는 줄바꿈 없이 폭이 늘어난다 — 고정 size-[24px] 는 두 글자가 두 줄로 깨졌다 (2026-10-12)
|
|
28
73
|
"shrink-0 flex items-center justify-center h-[24px] min-w-[24px] whitespace-nowrap",
|
|
29
|
-
typeof elemBeforeInput === "string" && "px-[2px] text-sys-text-subtle",
|
|
74
|
+
typeof elemBeforeInput === "string" && cn("px-[2px]", props.disabled ? "text-sys-text-disabled" : "text-sys-text-subtle"),
|
|
30
75
|
floating.hasLabel && !floating.isFloating && "invisible"
|
|
31
76
|
),
|
|
32
77
|
children: elemBeforeInput
|
|
33
78
|
}
|
|
34
79
|
),
|
|
35
|
-
/* @__PURE__ */ jsx("input", { ...elementProps }),
|
|
80
|
+
/* @__PURE__ */ jsx("input", { ...elementProps, "aria-describedby": describedBy }),
|
|
36
81
|
hasClearButton && /* @__PURE__ */ jsx(
|
|
37
82
|
"button",
|
|
38
83
|
{
|
|
@@ -53,11 +98,12 @@ const TextField = React.forwardRef(
|
|
|
53
98
|
{
|
|
54
99
|
className: cn(
|
|
55
100
|
"shrink-0 flex items-center justify-center h-[24px] min-w-[24px] whitespace-nowrap",
|
|
56
|
-
typeof elemAfterInput === "string" && "px-[2px] text-sys-text-subtle"
|
|
101
|
+
typeof elemAfterInput === "string" && cn("px-[2px]", props.disabled ? "text-sys-text-disabled" : "text-sys-text-subtle")
|
|
57
102
|
),
|
|
58
103
|
children: elemAfterInput
|
|
59
104
|
}
|
|
60
|
-
)
|
|
105
|
+
),
|
|
106
|
+
addonAfter != null && addon("after", addonAfter)
|
|
61
107
|
] });
|
|
62
108
|
}
|
|
63
109
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textField.js","sources":["../../src/components/textField.tsx"],"sourcesContent":["'use client'\n\nimport * as React from 'react'\n\nimport { CancelIcon, CLEAR_HOST_CLASS, CLEAR_REVEAL_CLASS } from './_internal/cancelIcon'\nimport { useTextInput } from './_internal/textInput'\nimport { cn } from '../utils/cn'\n\nexport type TextFieldProps = Omit<React.ComponentProps<'input'>, 'children'> & {\n /** @default 'standard' */\n appearance?: 'standard' | 'none'\n /** Floating label 텍스트 */\n label?: string\n /** 라벨 필수 표시 (*) */\n required?: boolean\n /** Clear 버튼 표시 여부 */\n hasClearButton?: boolean\n /** 입력 필드 왼쪽 아이콘/요소 슬롯 */\n elemBeforeInput?: React.ReactNode\n /** 입력 필드 오른쪽 아이콘/요소 슬롯 */\n elemAfterInput?: React.ReactNode\n /** 에러 상태 */\n isInvalid?: boolean\n /** 컨테이너 div에 적용할 추가 className */\n containerClassName?: string\n}\n\n/**\n * 한 줄 텍스트 입력. 폼의 이름·코드·URL·숫자 같은 짧은 값에 쓴다.\n *\n * 언제 쓰나: `FormField` 안에서 `FormControl` 로 감싸 오류 상태를 받는다. 라벨은 `FormLabel` 로 두고, 독립 사용 시에만 `label`(floating) 을 쓴다.\n * 언제 안 쓰나: 여러 줄 입력(→ Textarea), 정해진 선택지(→ Select·RadioGroup), 목록 검색·필터(→ ColumnFilter·TableFilter*).\n * 대신/함께: 지우기 버튼은 `hasClearButton`, 단위·아이콘은 `elemBeforeInput`/`elemAfterInput
|
|
1
|
+
{"version":3,"file":"textField.js","sources":["../../src/components/textField.tsx"],"sourcesContent":["'use client'\n\nimport * as React from 'react'\n\nimport { CancelIcon, CLEAR_HOST_CLASS, CLEAR_REVEAL_CLASS } from './_internal/cancelIcon'\nimport { useTextInput } from './_internal/textInput'\nimport { cn } from '../utils/cn'\n\nexport type TextFieldProps = Omit<React.ComponentProps<'input'>, 'children'> & {\n /** @default 'standard' */\n appearance?: 'standard' | 'none'\n /** Floating label 텍스트 */\n label?: string\n /** 라벨 필수 표시 (*) */\n required?: boolean\n /** Clear 버튼 표시 여부 */\n hasClearButton?: boolean\n /** 입력 필드 왼쪽 아이콘/요소 슬롯 — 칸 안에 바탕 없이 그린다(아이콘·단위) */\n elemBeforeInput?: React.ReactNode\n /** 입력 필드 오른쪽 아이콘/요소 슬롯 — 칸 안에 바탕 없이 그린다(아이콘·단위) */\n elemAfterInput?: React.ReactNode\n /** 입력 앞에 붙는 고정 칸 — 값의 고칠 수 없는 앞부분(예: `/data/deploy/`·`https://host/api/`). 테두리 안 왼쪽 끝에 채운 바탕 + 구분선으로 그리고, 길면 말줄임, 누르면 입력에 포커스, 입력의 설명(aria-describedby)으로 읽힌다 */\n addonBefore?: React.ReactNode\n /** 입력 뒤에 붙는 고정 칸 — 값의 고칠 수 없는 뒷부분(예: `/inference`). 모양·동작은 `addonBefore` 와 같다 */\n addonAfter?: React.ReactNode\n /** 에러 상태 */\n isInvalid?: boolean\n /** 컨테이너 div에 적용할 추가 className */\n containerClassName?: string\n}\n\n/**\n * 한 줄 텍스트 입력. 폼의 이름·코드·URL·숫자 같은 짧은 값에 쓴다.\n *\n * 언제 쓰나: `FormField` 안에서 `FormControl` 로 감싸 오류 상태를 받는다. 라벨은 `FormLabel` 로 두고, 독립 사용 시에만 `label`(floating) 을 쓴다.\n * 언제 안 쓰나: 여러 줄 입력(→ Textarea), 정해진 선택지(→ Select·RadioGroup), 목록 검색·필터(→ ColumnFilter·TableFilter*).\n * 대신/함께: 지우기 버튼은 `hasClearButton`, 단위·아이콘은 `elemBeforeInput`/`elemAfterInput`(칸 안, 바탕 없음). 입력값 앞·뒤에 붙는 고칠 수 없는 경로·주소는 `addonBefore`/`addonAfter`(채운 고정 칸 + 구분선) — `elemBeforeInput` 에 글자를 넣으면 placeholder 처럼 보인다. 보여 주기만 하는 값(복사·키보드 포커스는 된다)은 `readOnly`, 지금 고를 수 없는 칸은 `disabled` — 둘 다 가라앉은 바탕으로 그려지고 비활성만 글자가 흐리다.\n */\nconst TextField = React.forwardRef<HTMLInputElement, TextFieldProps>(\n (\n {\n appearance = 'standard',\n hasClearButton,\n elemBeforeInput,\n elemAfterInput,\n addonBefore,\n addonAfter,\n ...props\n },\n forwardedRef,\n ) => {\n const { elementRef, hasValue, isInvalid, floating, containerProps, elementProps } =\n useTextInput({ ...props, appearance }, forwardedRef, {\n multiline: false,\n containerClass: cn(\n CLEAR_HOST_CLASS,\n // 고정 칸은 테두리 안쪽 끝까지 채운다 — 그쪽 안쪽 여백과 위아래 여백을 없애고 입력은 가운데 둔다\n (addonBefore != null || addonAfter != null) && '!py-0',\n addonBefore != null && '!pl-0',\n addonAfter != null && '!pr-0',\n ),\n // 고정 칸이 라벨이 내려올 자리(칸 왼쪽)를 차지하므로 라벨은 늘 떠 있다\n floatLabel: addonBefore != null,\n })\n const addonId = React.useId()\n // 테두리가 2px 로 굵어지는 상태(포커스·오류, 라벨 없는 standard)에서는 고정 칸 바깥 여백을 1px 줄여 글자가 움직이지 않게 한다\n const thickBorder =\n appearance === 'standard' && !floating.hasLabel && (isInvalid || floating.isFocused)\n const describedBy =\n [\n addonBefore != null && `${addonId}-before`,\n addonAfter != null && `${addonId}-after`,\n elementProps['aria-describedby'],\n ]\n .filter(Boolean)\n .join(' ') || undefined\n // 마우스 편의: 고정 칸을 누르면 입력으로. 고정 칸 글자를 드래그해 고른 중이면 그 선택을 지우지 않는다\n const focusInput = () => {\n if (!window.getSelection()?.toString()) elementRef.current?.focus()\n }\n const addon = (side: 'before' | 'after', content: React.ReactNode) => (\n // eslint-disable-next-line jsx-a11y/no-static-element-interactions, jsx-a11y/click-events-have-key-events -- 포인터 편의, 키보드는 입력으로 바로 간다\n <span\n id={`${addonId}-${side}`}\n data-slot={`text-field-addon-${side}`}\n title={typeof content === 'string' ? content : undefined}\n onClick={focusInput}\n className={cn(\n 'flex min-w-0 max-w-[40%] shrink-0 items-center self-stretch bg-sys-input-addon-background',\n // 구분선은 칸 테두리와 같은 색(비활성이면 옅게)\n props.disabled ? 'border-sys-divider-subtle' : 'border-sys-divider-main',\n side === 'before'\n ? cn('rounded-l-[inherit] border-r pr-[8px]', thickBorder ? 'pl-[7px]' : 'pl-[8px]')\n : cn('rounded-r-[inherit] border-l pl-[8px]', thickBorder ? 'pr-[7px]' : 'pr-[8px]'),\n )}\n >\n <span className='truncate whitespace-pre'>{content}</span>\n </span>\n )\n\n const handleClear = React.useCallback(() => {\n const input = elementRef.current\n if (!input) return\n // 원래 setter 로 써야 React 가 값 바뀜을 알아채 onChange 를 부른다\n Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, 'value')?.set?.call(input, '')\n input.dispatchEvent(new Event('input', { bubbles: true }))\n input.focus()\n }, [elementRef])\n\n return (\n <div data-slot='text-field' {...containerProps}>\n {/* Floating label (standard: notched outline, none: inline label) */}\n {floating.outline}\n\n {addonBefore != null && addon('before', addonBefore)}\n\n {/* Left icon slot — label이 down 상태(placeholder 역할)일 때 숨김 */}\n {elemBeforeInput && (\n <span\n className={cn(\n // 아이콘은 24×24, 글자(\"개\"·\"코어\")는 줄바꿈 없이 폭이 늘어난다 — 고정 size-[24px] 는 두 글자가 두 줄로 깨졌다 (2026-10-12)\n 'shrink-0 flex items-center justify-center h-[24px] min-w-[24px] whitespace-nowrap',\n typeof elemBeforeInput === 'string' &&\n cn('px-[2px]', props.disabled ? 'text-sys-text-disabled' : 'text-sys-text-subtle'),\n floating.hasLabel && !floating.isFloating && 'invisible',\n )}\n >\n {elemBeforeInput}\n </span>\n )}\n\n <input {...elementProps} aria-describedby={describedBy} />\n\n {/* Clear button — 항상 공간 확보, 값 없으면 invisible (너비 점프 방지), 값이 있으면 마우스·포커스 때만 보임 */}\n {hasClearButton && (\n <button\n type='button'\n onClick={handleClear}\n className={cn(\n 'shrink-0 flex items-center justify-center p-[2px] rounded-small hover:bg-secondary-o10 text-sys-text-subtler',\n CLEAR_REVEAL_CLASS,\n (!hasValue || props.disabled || props.readOnly) && 'invisible',\n )}\n aria-label='입력 지우기'\n tabIndex={-1}\n >\n <CancelIcon size={20} />\n </button>\n )}\n\n {/* Right icon slot */}\n {elemAfterInput && (\n <span\n className={cn(\n 'shrink-0 flex items-center justify-center h-[24px] min-w-[24px] whitespace-nowrap',\n typeof elemAfterInput === 'string' &&\n cn('px-[2px]', props.disabled ? 'text-sys-text-disabled' : 'text-sys-text-subtle'),\n )}\n >\n {elemAfterInput}\n </span>\n )}\n\n {addonAfter != null && addon('after', addonAfter)}\n </div>\n )\n },\n)\nTextField.displayName = 'TextField'\n\nexport { TextField }\n"],"names":[],"mappings":"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"}
|
package/dist/design-system.css
CHANGED
|
@@ -296,12 +296,11 @@
|
|
|
296
296
|
background-color: var(--color-sys-table-select);
|
|
297
297
|
}
|
|
298
298
|
|
|
299
|
-
/*
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
min-height: unset !important;
|
|
299
|
+
/* domLayout='autoHeight' 본문 최소 높이(ag-grid 테마 파라미터 autoHeightMinBodyHeight, 기본 150)는 빈 표에만 남긴다 — 행이 1~2개인 목록 아래에
|
|
300
|
+
빈 자리가 생겼다(2026-11-30 hongsu QA #17). 예전 규칙(.ag-center-cols-viewport min-height 해제)은 ag-grid 33 부터 그 클래스가 없어 듣지 않았다.
|
|
301
|
+
테마 파라미터로 0 을 주면 빈 표의 기본 안내(표시할 행이 없습니다)가 높이 1px 로 숨는다 — 행이 있을 때만 0 */
|
|
302
|
+
.ag-grid-container[data-is-empty='false'] [class*='ag-theme-'] {
|
|
303
|
+
--ag-auto-height-min-body-height: 0px;
|
|
305
304
|
}
|
|
306
305
|
|
|
307
306
|
/* 헤더는 바깥 둥근 테두리가 모서리를 맡으므로 자체 라운드 없음 */
|
|
@@ -408,19 +407,6 @@
|
|
|
408
407
|
background-color: var(--color-sys-table-press);
|
|
409
408
|
}
|
|
410
409
|
|
|
411
|
-
/* Checkbox Column Fix: Remove padding to allow full cell click area */
|
|
412
|
-
.checkbox-column-cell {
|
|
413
|
-
padding: 0 !important;
|
|
414
|
-
display: flex !important;
|
|
415
|
-
justify-content: center !important;
|
|
416
|
-
align-items: center !important;
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
.checkbox-column-cell .ag-react-container {
|
|
420
|
-
width: 100%;
|
|
421
|
-
height: 100%;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
410
|
/* ============================================================================
|
|
425
411
|
다크모드 AG Grid 오버라이드
|
|
426
412
|
AG Grid 팝업(ag-popup, ag-menu)은 body 포털로 렌더링되므로
|
|
@@ -32,7 +32,7 @@ function getLabelColorClass(options) {
|
|
|
32
32
|
}
|
|
33
33
|
function getBorderColorClass(options) {
|
|
34
34
|
const { isDisabled, isInvalid, isOpen, isFocused } = options;
|
|
35
|
-
if (isDisabled) return "border-sys-divider-
|
|
35
|
+
if (isDisabled) return "border-sys-divider-subtle";
|
|
36
36
|
if (isInvalid) return "border-danger30";
|
|
37
37
|
if (isOpen || isFocused) return "border-sys-focus-ring-bold";
|
|
38
38
|
return "border-sys-divider-main";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFloatingLabel.cjs","sources":["../../src/hooks/useFloatingLabel.ts"],"sourcesContent":["'use client'\n\nimport * as React from 'react'\n\n// ============================================================================\n// Types\n// ============================================================================\n\nexport interface UseFloatingLabelOptions {\n /** Floating label 텍스트. 지정 시 floating label 모드 활성화 */\n label?: string\n /** 값이 있는지 여부 */\n hasValue: boolean\n /** 드롭다운 열림 여부 (Select 전용) */\n isOpen?: boolean\n /** focus 여부 */\n isFocused?: boolean\n /** 에러 상태 */\n isInvalid?: boolean\n /** 비활성 상태 */\n isDisabled?: boolean\n /** 'standard' | 'none' */\n appearance?: string\n}\n\nexport interface UseFloatingLabelReturn {\n /** label이 활성화되었는지 */\n hasLabel: boolean\n /** label이 위로 올라간 상태인지 */\n isFloating: boolean\n /** 초기 마운트 이후인지 (transition 활성화 용도) */\n isMounted: boolean\n /** label에 적용할 색상 클래스 */\n labelColorClass: string\n /** notched outline border에 적용할 색상 클래스 */\n borderColorClass: string\n /** notched outline border 두께가 두꺼운 상태인지 (focus/invalid/open → 2px) */\n isThickBorder: boolean\n /** label 고유 ID (aria-labelledby용) */\n labelId: string\n}\n\n// ============================================================================\n// Label 색상 결정\n// ============================================================================\n\nfunction getLabelColorClass(options: {\n isDisabled?: boolean\n isInvalid?: boolean\n isOpen?: boolean\n isFocused?: boolean\n hasValue: boolean\n}): string {\n const { isDisabled, isInvalid, isOpen, isFocused, hasValue } = options\n\n if (isDisabled) return 'text-sys-text-disabled'\n if (isInvalid) {\n // 부유 상태(값 있음/열림/포커스)일 때만 빨간색, 비부유(placeholder)일 때는 회색 유지\n if (hasValue || isOpen || isFocused) return 'text-danger30'\n return 'text-sys-text-placeholder'\n }\n if (isOpen || isFocused) return 'text-sys-focus-ring-bold'\n if (hasValue) return 'text-sys-text-subtler'\n return 'text-sys-text-placeholder'\n}\n\n// ============================================================================\n// Border 색상/두께 결정 (Three-box notched outline용)\n// ============================================================================\n\nfunction getBorderColorClass(options: {\n isDisabled?: boolean\n isInvalid?: boolean\n isOpen?: boolean\n isFocused?: boolean\n}): string {\n const { isDisabled, isInvalid, isOpen, isFocused } = options\n\n if (isDisabled) return 'border-sys-divider-
|
|
1
|
+
{"version":3,"file":"useFloatingLabel.cjs","sources":["../../src/hooks/useFloatingLabel.ts"],"sourcesContent":["'use client'\n\nimport * as React from 'react'\n\n// ============================================================================\n// Types\n// ============================================================================\n\nexport interface UseFloatingLabelOptions {\n /** Floating label 텍스트. 지정 시 floating label 모드 활성화 */\n label?: string\n /** 값이 있는지 여부 */\n hasValue: boolean\n /** 드롭다운 열림 여부 (Select 전용) */\n isOpen?: boolean\n /** focus 여부 */\n isFocused?: boolean\n /** 에러 상태 */\n isInvalid?: boolean\n /** 비활성 상태 */\n isDisabled?: boolean\n /** 'standard' | 'none' */\n appearance?: string\n}\n\nexport interface UseFloatingLabelReturn {\n /** label이 활성화되었는지 */\n hasLabel: boolean\n /** label이 위로 올라간 상태인지 */\n isFloating: boolean\n /** 초기 마운트 이후인지 (transition 활성화 용도) */\n isMounted: boolean\n /** label에 적용할 색상 클래스 */\n labelColorClass: string\n /** notched outline border에 적용할 색상 클래스 */\n borderColorClass: string\n /** notched outline border 두께가 두꺼운 상태인지 (focus/invalid/open → 2px) */\n isThickBorder: boolean\n /** label 고유 ID (aria-labelledby용) */\n labelId: string\n}\n\n// ============================================================================\n// Label 색상 결정\n// ============================================================================\n\nfunction getLabelColorClass(options: {\n isDisabled?: boolean\n isInvalid?: boolean\n isOpen?: boolean\n isFocused?: boolean\n hasValue: boolean\n}): string {\n const { isDisabled, isInvalid, isOpen, isFocused, hasValue } = options\n\n if (isDisabled) return 'text-sys-text-disabled'\n if (isInvalid) {\n // 부유 상태(값 있음/열림/포커스)일 때만 빨간색, 비부유(placeholder)일 때는 회색 유지\n if (hasValue || isOpen || isFocused) return 'text-danger30'\n return 'text-sys-text-placeholder'\n }\n if (isOpen || isFocused) return 'text-sys-focus-ring-bold'\n if (hasValue) return 'text-sys-text-subtler'\n return 'text-sys-text-placeholder'\n}\n\n// ============================================================================\n// Border 색상/두께 결정 (Three-box notched outline용)\n// ============================================================================\n\nfunction getBorderColorClass(options: {\n isDisabled?: boolean\n isInvalid?: boolean\n isOpen?: boolean\n isFocused?: boolean\n}): string {\n const { isDisabled, isInvalid, isOpen, isFocused } = options\n\n // 비활성 칸은 옅은 테두리 — 라벨 없는 칸의 비활성 테두리와 같다(textInput·selectTrigger)\n if (isDisabled) return 'border-sys-divider-subtle'\n if (isInvalid) return 'border-danger30'\n if (isOpen || isFocused) return 'border-sys-focus-ring-bold'\n return 'border-sys-divider-main'\n}\n\n// ============================================================================\n// Hook\n// ============================================================================\n\nexport function useFloatingLabel(options: UseFloatingLabelOptions): UseFloatingLabelReturn {\n const {\n label,\n hasValue,\n isOpen = false,\n isFocused = false,\n isInvalid = false,\n isDisabled = false,\n } = options\n\n const hasLabel = !!label\n const isFloating = hasValue || isOpen || isFocused\n\n // 초기 마운트 시 transition 비활성화 (defaultValue 깜빡임 방지)\n const [isMounted, setIsMounted] = React.useState(false)\n React.useEffect(() => {\n // requestAnimationFrame으로 첫 paint 이후에 transition 활성화\n const id = requestAnimationFrame(() => setIsMounted(true))\n return () => cancelAnimationFrame(id)\n }, [])\n\n const labelId = React.useId()\n\n const labelColorClass = getLabelColorClass({\n isDisabled,\n isInvalid,\n isOpen,\n isFocused,\n hasValue,\n })\n\n const borderColorClass = getBorderColorClass({\n isDisabled,\n isInvalid,\n isOpen,\n isFocused,\n })\n\n const isThickBorder = !!isInvalid || isOpen || isFocused\n\n return {\n hasLabel,\n isFloating,\n isMounted,\n labelColorClass,\n borderColorClass,\n isThickBorder,\n labelId,\n }\n}\n"],"names":["React"],"mappings":";;;;;;;;;;;;;;;;;;;;;AA8CA,SAAS,mBAAmB,SAMjB;AACT,QAAM,EAAE,YAAY,WAAW,QAAQ,WAAW,aAAa;AAE/D,MAAI,WAAY,QAAO;AACvB,MAAI,WAAW;AAEb,QAAI,YAAY,UAAU,UAAW,QAAO;AAC5C,WAAO;AAAA,EACT;AACA,MAAI,UAAU,UAAW,QAAO;AAChC,MAAI,SAAU,QAAO;AACrB,SAAO;AACT;AAMA,SAAS,oBAAoB,SAKlB;AACT,QAAM,EAAE,YAAY,WAAW,QAAQ,cAAc;AAGrD,MAAI,WAAY,QAAO;AACvB,MAAI,UAAW,QAAO;AACtB,MAAI,UAAU,UAAW,QAAO;AAChC,SAAO;AACT;AAMO,SAAS,iBAAiB,SAA0D;AACzF,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,aAAa;AAAA,EAAA,IACX;AAEJ,QAAM,WAAW,CAAC,CAAC;AACnB,QAAM,aAAa,YAAY,UAAU;AAGzC,QAAM,CAAC,WAAW,YAAY,IAAIA,iBAAM,SAAS,KAAK;AACtDA,mBAAM,UAAU,MAAM;AAEpB,UAAM,KAAK,sBAAsB,MAAM,aAAa,IAAI,CAAC;AACzD,WAAO,MAAM,qBAAqB,EAAE;AAAA,EACtC,GAAG,CAAA,CAAE;AAEL,QAAM,UAAUA,iBAAM,MAAA;AAEtB,QAAM,kBAAkB,mBAAmB;AAAA,IACzC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,CACD;AAED,QAAM,mBAAmB,oBAAoB;AAAA,IAC3C;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,CACD;AAED,QAAM,gBAAgB,CAAC,CAAC,aAAa,UAAU;AAE/C,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAEJ;;"}
|
|
@@ -13,7 +13,7 @@ function getLabelColorClass(options) {
|
|
|
13
13
|
}
|
|
14
14
|
function getBorderColorClass(options) {
|
|
15
15
|
const { isDisabled, isInvalid, isOpen, isFocused } = options;
|
|
16
|
-
if (isDisabled) return "border-sys-divider-
|
|
16
|
+
if (isDisabled) return "border-sys-divider-subtle";
|
|
17
17
|
if (isInvalid) return "border-danger30";
|
|
18
18
|
if (isOpen || isFocused) return "border-sys-focus-ring-bold";
|
|
19
19
|
return "border-sys-divider-main";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFloatingLabel.js","sources":["../../src/hooks/useFloatingLabel.ts"],"sourcesContent":["'use client'\n\nimport * as React from 'react'\n\n// ============================================================================\n// Types\n// ============================================================================\n\nexport interface UseFloatingLabelOptions {\n /** Floating label 텍스트. 지정 시 floating label 모드 활성화 */\n label?: string\n /** 값이 있는지 여부 */\n hasValue: boolean\n /** 드롭다운 열림 여부 (Select 전용) */\n isOpen?: boolean\n /** focus 여부 */\n isFocused?: boolean\n /** 에러 상태 */\n isInvalid?: boolean\n /** 비활성 상태 */\n isDisabled?: boolean\n /** 'standard' | 'none' */\n appearance?: string\n}\n\nexport interface UseFloatingLabelReturn {\n /** label이 활성화되었는지 */\n hasLabel: boolean\n /** label이 위로 올라간 상태인지 */\n isFloating: boolean\n /** 초기 마운트 이후인지 (transition 활성화 용도) */\n isMounted: boolean\n /** label에 적용할 색상 클래스 */\n labelColorClass: string\n /** notched outline border에 적용할 색상 클래스 */\n borderColorClass: string\n /** notched outline border 두께가 두꺼운 상태인지 (focus/invalid/open → 2px) */\n isThickBorder: boolean\n /** label 고유 ID (aria-labelledby용) */\n labelId: string\n}\n\n// ============================================================================\n// Label 색상 결정\n// ============================================================================\n\nfunction getLabelColorClass(options: {\n isDisabled?: boolean\n isInvalid?: boolean\n isOpen?: boolean\n isFocused?: boolean\n hasValue: boolean\n}): string {\n const { isDisabled, isInvalid, isOpen, isFocused, hasValue } = options\n\n if (isDisabled) return 'text-sys-text-disabled'\n if (isInvalid) {\n // 부유 상태(값 있음/열림/포커스)일 때만 빨간색, 비부유(placeholder)일 때는 회색 유지\n if (hasValue || isOpen || isFocused) return 'text-danger30'\n return 'text-sys-text-placeholder'\n }\n if (isOpen || isFocused) return 'text-sys-focus-ring-bold'\n if (hasValue) return 'text-sys-text-subtler'\n return 'text-sys-text-placeholder'\n}\n\n// ============================================================================\n// Border 색상/두께 결정 (Three-box notched outline용)\n// ============================================================================\n\nfunction getBorderColorClass(options: {\n isDisabled?: boolean\n isInvalid?: boolean\n isOpen?: boolean\n isFocused?: boolean\n}): string {\n const { isDisabled, isInvalid, isOpen, isFocused } = options\n\n if (isDisabled) return 'border-sys-divider-
|
|
1
|
+
{"version":3,"file":"useFloatingLabel.js","sources":["../../src/hooks/useFloatingLabel.ts"],"sourcesContent":["'use client'\n\nimport * as React from 'react'\n\n// ============================================================================\n// Types\n// ============================================================================\n\nexport interface UseFloatingLabelOptions {\n /** Floating label 텍스트. 지정 시 floating label 모드 활성화 */\n label?: string\n /** 값이 있는지 여부 */\n hasValue: boolean\n /** 드롭다운 열림 여부 (Select 전용) */\n isOpen?: boolean\n /** focus 여부 */\n isFocused?: boolean\n /** 에러 상태 */\n isInvalid?: boolean\n /** 비활성 상태 */\n isDisabled?: boolean\n /** 'standard' | 'none' */\n appearance?: string\n}\n\nexport interface UseFloatingLabelReturn {\n /** label이 활성화되었는지 */\n hasLabel: boolean\n /** label이 위로 올라간 상태인지 */\n isFloating: boolean\n /** 초기 마운트 이후인지 (transition 활성화 용도) */\n isMounted: boolean\n /** label에 적용할 색상 클래스 */\n labelColorClass: string\n /** notched outline border에 적용할 색상 클래스 */\n borderColorClass: string\n /** notched outline border 두께가 두꺼운 상태인지 (focus/invalid/open → 2px) */\n isThickBorder: boolean\n /** label 고유 ID (aria-labelledby용) */\n labelId: string\n}\n\n// ============================================================================\n// Label 색상 결정\n// ============================================================================\n\nfunction getLabelColorClass(options: {\n isDisabled?: boolean\n isInvalid?: boolean\n isOpen?: boolean\n isFocused?: boolean\n hasValue: boolean\n}): string {\n const { isDisabled, isInvalid, isOpen, isFocused, hasValue } = options\n\n if (isDisabled) return 'text-sys-text-disabled'\n if (isInvalid) {\n // 부유 상태(값 있음/열림/포커스)일 때만 빨간색, 비부유(placeholder)일 때는 회색 유지\n if (hasValue || isOpen || isFocused) return 'text-danger30'\n return 'text-sys-text-placeholder'\n }\n if (isOpen || isFocused) return 'text-sys-focus-ring-bold'\n if (hasValue) return 'text-sys-text-subtler'\n return 'text-sys-text-placeholder'\n}\n\n// ============================================================================\n// Border 색상/두께 결정 (Three-box notched outline용)\n// ============================================================================\n\nfunction getBorderColorClass(options: {\n isDisabled?: boolean\n isInvalid?: boolean\n isOpen?: boolean\n isFocused?: boolean\n}): string {\n const { isDisabled, isInvalid, isOpen, isFocused } = options\n\n // 비활성 칸은 옅은 테두리 — 라벨 없는 칸의 비활성 테두리와 같다(textInput·selectTrigger)\n if (isDisabled) return 'border-sys-divider-subtle'\n if (isInvalid) return 'border-danger30'\n if (isOpen || isFocused) return 'border-sys-focus-ring-bold'\n return 'border-sys-divider-main'\n}\n\n// ============================================================================\n// Hook\n// ============================================================================\n\nexport function useFloatingLabel(options: UseFloatingLabelOptions): UseFloatingLabelReturn {\n const {\n label,\n hasValue,\n isOpen = false,\n isFocused = false,\n isInvalid = false,\n isDisabled = false,\n } = options\n\n const hasLabel = !!label\n const isFloating = hasValue || isOpen || isFocused\n\n // 초기 마운트 시 transition 비활성화 (defaultValue 깜빡임 방지)\n const [isMounted, setIsMounted] = React.useState(false)\n React.useEffect(() => {\n // requestAnimationFrame으로 첫 paint 이후에 transition 활성화\n const id = requestAnimationFrame(() => setIsMounted(true))\n return () => cancelAnimationFrame(id)\n }, [])\n\n const labelId = React.useId()\n\n const labelColorClass = getLabelColorClass({\n isDisabled,\n isInvalid,\n isOpen,\n isFocused,\n hasValue,\n })\n\n const borderColorClass = getBorderColorClass({\n isDisabled,\n isInvalid,\n isOpen,\n isFocused,\n })\n\n const isThickBorder = !!isInvalid || isOpen || isFocused\n\n return {\n hasLabel,\n isFloating,\n isMounted,\n labelColorClass,\n borderColorClass,\n isThickBorder,\n labelId,\n }\n}\n"],"names":[],"mappings":";;AA8CA,SAAS,mBAAmB,SAMjB;AACT,QAAM,EAAE,YAAY,WAAW,QAAQ,WAAW,aAAa;AAE/D,MAAI,WAAY,QAAO;AACvB,MAAI,WAAW;AAEb,QAAI,YAAY,UAAU,UAAW,QAAO;AAC5C,WAAO;AAAA,EACT;AACA,MAAI,UAAU,UAAW,QAAO;AAChC,MAAI,SAAU,QAAO;AACrB,SAAO;AACT;AAMA,SAAS,oBAAoB,SAKlB;AACT,QAAM,EAAE,YAAY,WAAW,QAAQ,cAAc;AAGrD,MAAI,WAAY,QAAO;AACvB,MAAI,UAAW,QAAO;AACtB,MAAI,UAAU,UAAW,QAAO;AAChC,SAAO;AACT;AAMO,SAAS,iBAAiB,SAA0D;AACzF,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,aAAa;AAAA,EAAA,IACX;AAEJ,QAAM,WAAW,CAAC,CAAC;AACnB,QAAM,aAAa,YAAY,UAAU;AAGzC,QAAM,CAAC,WAAW,YAAY,IAAI,MAAM,SAAS,KAAK;AACtD,QAAM,UAAU,MAAM;AAEpB,UAAM,KAAK,sBAAsB,MAAM,aAAa,IAAI,CAAC;AACzD,WAAO,MAAM,qBAAqB,EAAE;AAAA,EACtC,GAAG,CAAA,CAAE;AAEL,QAAM,UAAU,MAAM,MAAA;AAEtB,QAAM,kBAAkB,mBAAmB;AAAA,IACzC;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,CACD;AAED,QAAM,mBAAmB,oBAAoB;AAAA,IAC3C;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,CACD;AAED,QAAM,gBAAgB,CAAC,CAAC,aAAa,UAAU;AAE/C,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAEJ;"}
|
|
@@ -382,7 +382,7 @@ type AgGridTableType = AgGridReactProps & {
|
|
|
382
382
|
/**
|
|
383
383
|
* ag-grid 기반 데이터 표. 목록 화면의 본 표에 쓴다.
|
|
384
384
|
*
|
|
385
|
-
* 언제 쓰나: 서버 페이징 목록, 정렬·컬럼 숨김·행 선택·셀 렌더러가 필요한 표. `loading` 이면 TableSkeleton, 0건이면 `noRowsOverlayComponent`. 행 선택은 `rowSelection={{ mode: 'multiRow' }}` — 일부 행을 못 고르게 하려면 `isRowSelectable` 을 함께 주면 그 행의 체크박스가 비활성으로 그려진다. 주 식별자 열(보통 이름)에는 `type: 'primary'` 를 주면 굵게 강조되고 클릭 가능한 행에서 hover 시 밑줄이 생긴다. `sortable: true` 로 명시한 열은 정렬 전에도 정렬 아이콘이 보인다(그 열에 `unSortIcon: false` 를 주면 끔. 2026-10-16 다시 켬 — 원문 심판이 "정렬 가능 표시 없음" 을 반복 감점). 숫자 열(건수·크기·비율·시간)은 `type: 'number'` — 오른쪽 정렬·숫자 폭이고, width·flex 를 안 주면 폭 140(ag-grid 기본 200 은 비어 보인다). 숫자 열에 `flex` 를 주지 않는다.
|
|
385
|
+
* 언제 쓰나: 서버 페이징 목록, 정렬·컬럼 숨김·행 선택·셀 렌더러가 필요한 표. `loading` 이면 TableSkeleton, 0건이면 `noRowsOverlayComponent`. 행 선택은 `rowSelection={{ mode: 'multiRow' }}` — 선택 열은 칸 어디를 눌러도 선택이 바뀌고 그 클릭은 `onRowClicked` 로 가지 않는다(셀 렌더러를 바꿀 땐 `RowCheckboxRenderer` 를 감싸면 같다). 일부 행을 못 고르게 하려면 `isRowSelectable` 을 함께 주면 그 행의 체크박스가 비활성으로 그려진다. `domLayout='autoHeight'` 면 표가 행 수만큼 자란다(행이 있으면 본문 최소 높이 없음, 빈 표만 ag-grid 기본 150). 주 식별자 열(보통 이름)에는 `type: 'primary'` 를 주면 굵게 강조되고 클릭 가능한 행에서 hover 시 밑줄이 생긴다. `sortable: true` 로 명시한 열은 정렬 전에도 정렬 아이콘이 보인다(그 열에 `unSortIcon: false` 를 주면 끔. 2026-10-16 다시 켬 — 원문 심판이 "정렬 가능 표시 없음" 을 반복 감점). 숫자 열(건수·크기·비율·시간)은 `type: 'number'` — 오른쪽 정렬·숫자 폭이고, width·flex 를 안 주면 폭 140(ag-grid 기본 200 은 비어 보인다). 숫자 열에 `flex` 를 주지 않는다.
|
|
386
386
|
* 언제 안 쓰나: 수십 행 이하의 단순 나열(→ Table), 키-값 표(→ MetaItem), 편집 가능한 파라미터 표(→ ParameterTable).
|
|
387
387
|
* 대신/함께: 목록 화면 전체 골격은 `@t3q-ui/design-system/patterns` 의 ListPage 가 이 표를 포함한다. 정렬 값은 `getSortedColumnState` 로 읽는다. `onRowClicked` 를 주면 포커스된 셀에서 Enter 로도 호출된다(키보드 상세 진입). 열 제목이 들어가는 최소 폭은 표가 보정하고(`width: 110` 같은 좁은 폭을 줘도 "크기(M…" 로 잘리지 않음) 넘치는 셀 글자는 말줄임표로 끝난다. 보조 정보(id·이미지·경로·설명)는 열을 늘리지 말고 `TwoLineCellRenderer`(`cellRendererParams.secondaryField`)로 이름 아래 줄에 — ListPage 는 `secondaryField` 한 줄로 된다. 주 열에 셀 렌더러를 직접 만들면 `secondaryField` 가 적용되지 않는다 — 이름 옆에 태그를 붙일 땐 `TwoLineCellRenderer` 에 `value`(이름·태그 묶음)·`valueFormatted={null}`·`secondaryField` 를 함께 넘긴다(직접 flex 로 그리면 셀 행간 39px 를 물려받아 아래로 쏠리고 태그가 39px 로 늘어난다). 이름 열은 `flex: 2, minWidth: 200, maxWidth: 480`, 숫자·날짜 열은 `width` 로. flex 열이 있으면 표가 남는 폭을 150 이상 고정 글자 열(ID·날짜)에도 나눠 준다(`withBalancedFill`) — 한두 열만 부풀지 않는다. 첫 데이터가 그려지면 열 폭을 내용(제목·값)에 맞추고, 남는 폭은 이름·설명처럼 `flex` 를 준 글자 열(또는 `type: 'primary'`)이 내용의 2배까지 받고 그 뒤는 모든 열이 내용 비율로 나눈다(`fitColumnsToContent`, 기본 켜짐) — 상태·숫자·담당자·날짜처럼 값이 짧은 열은 내용만큼만. 앱의 `width`·`minWidth` 는 하한, `maxWidth` 는 상한으로 남는다.
|
|
388
388
|
*/
|
|
@@ -382,7 +382,7 @@ type AgGridTableType = AgGridReactProps & {
|
|
|
382
382
|
/**
|
|
383
383
|
* ag-grid 기반 데이터 표. 목록 화면의 본 표에 쓴다.
|
|
384
384
|
*
|
|
385
|
-
* 언제 쓰나: 서버 페이징 목록, 정렬·컬럼 숨김·행 선택·셀 렌더러가 필요한 표. `loading` 이면 TableSkeleton, 0건이면 `noRowsOverlayComponent`. 행 선택은 `rowSelection={{ mode: 'multiRow' }}` — 일부 행을 못 고르게 하려면 `isRowSelectable` 을 함께 주면 그 행의 체크박스가 비활성으로 그려진다. 주 식별자 열(보통 이름)에는 `type: 'primary'` 를 주면 굵게 강조되고 클릭 가능한 행에서 hover 시 밑줄이 생긴다. `sortable: true` 로 명시한 열은 정렬 전에도 정렬 아이콘이 보인다(그 열에 `unSortIcon: false` 를 주면 끔. 2026-10-16 다시 켬 — 원문 심판이 "정렬 가능 표시 없음" 을 반복 감점). 숫자 열(건수·크기·비율·시간)은 `type: 'number'` — 오른쪽 정렬·숫자 폭이고, width·flex 를 안 주면 폭 140(ag-grid 기본 200 은 비어 보인다). 숫자 열에 `flex` 를 주지 않는다.
|
|
385
|
+
* 언제 쓰나: 서버 페이징 목록, 정렬·컬럼 숨김·행 선택·셀 렌더러가 필요한 표. `loading` 이면 TableSkeleton, 0건이면 `noRowsOverlayComponent`. 행 선택은 `rowSelection={{ mode: 'multiRow' }}` — 선택 열은 칸 어디를 눌러도 선택이 바뀌고 그 클릭은 `onRowClicked` 로 가지 않는다(셀 렌더러를 바꿀 땐 `RowCheckboxRenderer` 를 감싸면 같다). 일부 행을 못 고르게 하려면 `isRowSelectable` 을 함께 주면 그 행의 체크박스가 비활성으로 그려진다. `domLayout='autoHeight'` 면 표가 행 수만큼 자란다(행이 있으면 본문 최소 높이 없음, 빈 표만 ag-grid 기본 150). 주 식별자 열(보통 이름)에는 `type: 'primary'` 를 주면 굵게 강조되고 클릭 가능한 행에서 hover 시 밑줄이 생긴다. `sortable: true` 로 명시한 열은 정렬 전에도 정렬 아이콘이 보인다(그 열에 `unSortIcon: false` 를 주면 끔. 2026-10-16 다시 켬 — 원문 심판이 "정렬 가능 표시 없음" 을 반복 감점). 숫자 열(건수·크기·비율·시간)은 `type: 'number'` — 오른쪽 정렬·숫자 폭이고, width·flex 를 안 주면 폭 140(ag-grid 기본 200 은 비어 보인다). 숫자 열에 `flex` 를 주지 않는다.
|
|
386
386
|
* 언제 안 쓰나: 수십 행 이하의 단순 나열(→ Table), 키-값 표(→ MetaItem), 편집 가능한 파라미터 표(→ ParameterTable).
|
|
387
387
|
* 대신/함께: 목록 화면 전체 골격은 `@t3q-ui/design-system/patterns` 의 ListPage 가 이 표를 포함한다. 정렬 값은 `getSortedColumnState` 로 읽는다. `onRowClicked` 를 주면 포커스된 셀에서 Enter 로도 호출된다(키보드 상세 진입). 열 제목이 들어가는 최소 폭은 표가 보정하고(`width: 110` 같은 좁은 폭을 줘도 "크기(M…" 로 잘리지 않음) 넘치는 셀 글자는 말줄임표로 끝난다. 보조 정보(id·이미지·경로·설명)는 열을 늘리지 말고 `TwoLineCellRenderer`(`cellRendererParams.secondaryField`)로 이름 아래 줄에 — ListPage 는 `secondaryField` 한 줄로 된다. 주 열에 셀 렌더러를 직접 만들면 `secondaryField` 가 적용되지 않는다 — 이름 옆에 태그를 붙일 땐 `TwoLineCellRenderer` 에 `value`(이름·태그 묶음)·`valueFormatted={null}`·`secondaryField` 를 함께 넘긴다(직접 flex 로 그리면 셀 행간 39px 를 물려받아 아래로 쏠리고 태그가 39px 로 늘어난다). 이름 열은 `flex: 2, minWidth: 200, maxWidth: 480`, 숫자·날짜 열은 `width` 로. flex 열이 있으면 표가 남는 폭을 150 이상 고정 글자 열(ID·날짜)에도 나눠 준다(`withBalancedFill`) — 한두 열만 부풀지 않는다. 첫 데이터가 그려지면 열 폭을 내용(제목·값)에 맞추고, 남는 폭은 이름·설명처럼 `flex` 를 준 글자 열(또는 `type: 'primary'`)이 내용의 2배까지 받고 그 뒤는 모든 열이 내용 비율로 나눈다(`fitColumnsToContent`, 기본 켜짐) — 상태·숫자·담당자·날짜처럼 값이 짧은 열은 내용만큼만. 앱의 `width`·`minWidth` 는 하한, `maxWidth` 는 상한으로 남는다.
|
|
388
388
|
*/
|
package/dist/index.d.cts
CHANGED
|
@@ -8,8 +8,8 @@ declare namespace class_variance_authority_types {
|
|
|
8
8
|
}
|
|
9
9
|
import { VariantProps } from 'class-variance-authority';
|
|
10
10
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
11
|
-
import { B as BadgeProps } from './index-
|
|
12
|
-
export { V as AgGridTable, A as AgGridTableType, i as BADGE_OUTLINE_ACCENT, a1 as BALANCED_FILL_MIN_WIDTH, f as Badge, h as BadgeTone, j as Button, a as ButtonProps, C as ChatAttachment, l as ChatComposer, d as ChatComposerProps, m as ChatHistory, o as ChatHistoryGroup, n as ChatHistoryItem, e as ChatHistoryProps, q as ChatMessage, r as ChatMessageProps, c as ChatSource, s as Dialog, w as DialogClose, b as DialogContent, E as DialogDescription, y as DialogFooter, x as DialogHeader, u as DialogOverlay, t as DialogPortal, z as DialogTitle, v as DialogTrigger, F as Drawer, L as DrawerBody, J as DrawerClose, D as DrawerContent, O as DrawerDescription, M as DrawerFooter, K as DrawerHeader, H as DrawerOverlay, G as DrawerPortal, N as DrawerTitle, I as DrawerTrigger, W as HeaderCheckboxRenderer, a3 as NUMBER_COLUMN_WIDTH, U as PageHeader, P as PageHeaderProps, S as PageHeaderProvider, R as PageHeaderState, Q as PageHeaderTabItem, X as RowCheckboxRenderer, Z as SORT_ICON_OFFSET_CLASS, ab as TwoLineCellRenderer, aa as TwoLineCellRendererParams, g as badgeVariants, k as buttonVariants, $ as estimateHeaderTextWidth, a9 as fitColumnsToContent, p as groupChatHistoryByDate, a8 as growColumnIds, T as usePageHeader, a2 as withBalancedFill, Y as withExplicitSortIcons, a0 as withFlexFill, a6 as withHeaderMinWidth, a4 as withNumberColumnWidth, _ as withSortIconOffset, a5 as withTypeClasses, a7 as withWidthFloor } from './index-
|
|
11
|
+
import { B as BadgeProps } from './index-C_zMCN-o.cjs';
|
|
12
|
+
export { V as AgGridTable, A as AgGridTableType, i as BADGE_OUTLINE_ACCENT, a1 as BALANCED_FILL_MIN_WIDTH, f as Badge, h as BadgeTone, j as Button, a as ButtonProps, C as ChatAttachment, l as ChatComposer, d as ChatComposerProps, m as ChatHistory, o as ChatHistoryGroup, n as ChatHistoryItem, e as ChatHistoryProps, q as ChatMessage, r as ChatMessageProps, c as ChatSource, s as Dialog, w as DialogClose, b as DialogContent, E as DialogDescription, y as DialogFooter, x as DialogHeader, u as DialogOverlay, t as DialogPortal, z as DialogTitle, v as DialogTrigger, F as Drawer, L as DrawerBody, J as DrawerClose, D as DrawerContent, O as DrawerDescription, M as DrawerFooter, K as DrawerHeader, H as DrawerOverlay, G as DrawerPortal, N as DrawerTitle, I as DrawerTrigger, W as HeaderCheckboxRenderer, a3 as NUMBER_COLUMN_WIDTH, U as PageHeader, P as PageHeaderProps, S as PageHeaderProvider, R as PageHeaderState, Q as PageHeaderTabItem, X as RowCheckboxRenderer, Z as SORT_ICON_OFFSET_CLASS, ab as TwoLineCellRenderer, aa as TwoLineCellRendererParams, g as badgeVariants, k as buttonVariants, $ as estimateHeaderTextWidth, a9 as fitColumnsToContent, p as groupChatHistoryByDate, a8 as growColumnIds, T as usePageHeader, a2 as withBalancedFill, Y as withExplicitSortIcons, a0 as withFlexFill, a6 as withHeaderMinWidth, a4 as withNumberColumnWidth, _ as withSortIconOffset, a5 as withTypeClasses, a7 as withWidthFloor } from './index-C_zMCN-o.cjs';
|
|
13
13
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
14
14
|
import { DayPicker, SelectSingleEventHandler, DateRange, SelectRangeEventHandler } from 'react-day-picker';
|
|
15
15
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
@@ -740,7 +740,7 @@ declare const DatePickerRange: React$1.ForwardRefExoticComponent<{
|
|
|
740
740
|
/**
|
|
741
741
|
* 버튼을 눌러 여는 행동 메뉴. 자주 쓰지 않는 행동을 "더보기" 안에 접어 둔다.
|
|
742
742
|
*
|
|
743
|
-
* 언제 쓰나: 행동이 많거나 자리가 좁을 때 보조 행동을 모은다(`IconButton` 더보기 + 메뉴, 표 행의 작업). 삭제 같은 위험한 행동은 구분선 아래 danger 항목으로. 체크처럼 연달아 고르는 항목은 `keepOpen`.
|
|
743
|
+
* 언제 쓰나: 행동이 많거나 자리가 좁을 때 보조 행동을 모은다(`IconButton` 더보기 + 메뉴, 표 행의 작업). 삭제 같은 위험한 행동은 구분선 아래 danger 항목으로. 체크처럼 연달아 고르는 항목은 `keepOpen`. 화면을 옮기는 메뉴(앱 전환·관리자 메뉴)에서 지금 보고 있는 화면의 항목에는 `aria-current='page'` 를 단다 — 항목이 primary 바탕·글자·굵게로 그려지므로 className 으로 굵기를 덧칠하지 않는다(`asChild` 로 감싼 Link 에 달아도 된다).
|
|
744
744
|
* 언제 안 쓰나: 값을 고르는 입력(→ Select·MultiSelect), 화면의 주요 행동(→ Button 으로 바로 보이게), 검색이 필요한 긴 목록(→ Command).
|
|
745
745
|
* 대신/함께: DetailPage 의 보조·삭제 행동은 패턴이 "더보기"로 접으니 직접 메뉴를 만들지 않는다. 우클릭한 자리처럼 버튼 없이 화면의 한 점에 열 때는 `DropdownMenuTrigger` 대신 `DropdownMenuAnchor`(`x`·`y`)를 두고 `open`·`onOpenChange` 로 여닫는다(FileTree 의 ContextMenu 스토리).
|
|
746
746
|
*/
|
|
@@ -915,7 +915,7 @@ interface IconButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement
|
|
|
915
915
|
*
|
|
916
916
|
* 언제 쓰나: 새로고침·편집·삭제·닫기처럼 아이콘만으로 뜻이 통하는 행동. 항상 `aria-label` 로 이름을 주고, 필요하면 Tooltip 을 함께 쓴다.
|
|
917
917
|
* 언제 안 쓰나: 화면의 주요 행동(→ Button 텍스트), 아이콘 뜻이 모호한 행동(→ Button 에 아이콘+텍스트).
|
|
918
|
-
* 대신/함께: Dialog·Drawer 의 닫기 버튼은 각 컴포넌트가 내장하므로 따로 두지 않는다. 크기는 `spacing` 이 정한다 — `normal` 36×36(높이 36 인 입력란·버튼 옆), `compact` 28×28(표 행·카드 모서리처럼 좁은 자리). 아이콘은 버튼이 20px 로 맞추므로 `size` 를 주지 않는다(글자 버튼·메뉴 항목의 아이콘과 같은 크기).
|
|
918
|
+
* 대신/함께: Dialog·Drawer 의 닫기 버튼은 각 컴포넌트가 내장하므로 따로 두지 않는다. 크기는 `spacing` 이 정한다 — `normal` 36×36(높이 36 인 입력란·버튼 옆), `compact` 28×28(표 행·카드 모서리처럼 좁은 자리). 아이콘은 버튼이 20px 로 맞추므로 `size` 를 주지 않는다(글자 버튼·메뉴 항목의 아이콘과 같은 크기). 표 행·카드의 더보기는 `variant='secondaryLink'` + `spacing='compact'` 를 `DropdownMenuTrigger asChild` 로 감싼다 — 링크형은 가리키면 옅은 바탕이 깔리고 메뉴가 열린 동안 그 바탕이 남는다.
|
|
919
919
|
*/
|
|
920
920
|
declare const IconButton: React$1.ForwardRefExoticComponent<IconButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
921
921
|
|
|
@@ -960,10 +960,14 @@ type TextFieldProps = Omit<React$1.ComponentProps<'input'>, 'children'> & {
|
|
|
960
960
|
required?: boolean;
|
|
961
961
|
/** Clear 버튼 표시 여부 */
|
|
962
962
|
hasClearButton?: boolean;
|
|
963
|
-
/** 입력 필드 왼쪽 아이콘/요소 슬롯 */
|
|
963
|
+
/** 입력 필드 왼쪽 아이콘/요소 슬롯 — 칸 안에 바탕 없이 그린다(아이콘·단위) */
|
|
964
964
|
elemBeforeInput?: React$1.ReactNode;
|
|
965
|
-
/** 입력 필드 오른쪽 아이콘/요소 슬롯 */
|
|
965
|
+
/** 입력 필드 오른쪽 아이콘/요소 슬롯 — 칸 안에 바탕 없이 그린다(아이콘·단위) */
|
|
966
966
|
elemAfterInput?: React$1.ReactNode;
|
|
967
|
+
/** 입력 앞에 붙는 고정 칸 — 값의 고칠 수 없는 앞부분(예: `/data/deploy/`·`https://host/api/`). 테두리 안 왼쪽 끝에 채운 바탕 + 구분선으로 그리고, 길면 말줄임, 누르면 입력에 포커스, 입력의 설명(aria-describedby)으로 읽힌다 */
|
|
968
|
+
addonBefore?: React$1.ReactNode;
|
|
969
|
+
/** 입력 뒤에 붙는 고정 칸 — 값의 고칠 수 없는 뒷부분(예: `/inference`). 모양·동작은 `addonBefore` 와 같다 */
|
|
970
|
+
addonAfter?: React$1.ReactNode;
|
|
967
971
|
/** 에러 상태 */
|
|
968
972
|
isInvalid?: boolean;
|
|
969
973
|
/** 컨테이너 div에 적용할 추가 className */
|
|
@@ -974,7 +978,7 @@ type TextFieldProps = Omit<React$1.ComponentProps<'input'>, 'children'> & {
|
|
|
974
978
|
*
|
|
975
979
|
* 언제 쓰나: `FormField` 안에서 `FormControl` 로 감싸 오류 상태를 받는다. 라벨은 `FormLabel` 로 두고, 독립 사용 시에만 `label`(floating) 을 쓴다.
|
|
976
980
|
* 언제 안 쓰나: 여러 줄 입력(→ Textarea), 정해진 선택지(→ Select·RadioGroup), 목록 검색·필터(→ ColumnFilter·TableFilter*).
|
|
977
|
-
* 대신/함께: 지우기 버튼은 `hasClearButton`, 단위·아이콘은 `elemBeforeInput`/`elemAfterInput
|
|
981
|
+
* 대신/함께: 지우기 버튼은 `hasClearButton`, 단위·아이콘은 `elemBeforeInput`/`elemAfterInput`(칸 안, 바탕 없음). 입력값 앞·뒤에 붙는 고칠 수 없는 경로·주소는 `addonBefore`/`addonAfter`(채운 고정 칸 + 구분선) — `elemBeforeInput` 에 글자를 넣으면 placeholder 처럼 보인다. 보여 주기만 하는 값(복사·키보드 포커스는 된다)은 `readOnly`, 지금 고를 수 없는 칸은 `disabled` — 둘 다 가라앉은 바탕으로 그려지고 비활성만 글자가 흐리다.
|
|
978
982
|
*/
|
|
979
983
|
declare const TextField: React$1.ForwardRefExoticComponent<Omit<TextFieldProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
980
984
|
|
|
@@ -1283,9 +1287,9 @@ interface ParameterTableProps {
|
|
|
1283
1287
|
caption?: React$1.ReactNode;
|
|
1284
1288
|
disabled?: boolean;
|
|
1285
1289
|
className?: string;
|
|
1286
|
-
/** 행별 삭제 가능 여부. 기본값은 모든 실제 행 삭제 가능. false 인 행은 삭제 버튼이 보이지
|
|
1290
|
+
/** 행별 삭제 가능 여부. 기본값은 모든 실제 행 삭제 가능. false 인 행은 삭제 버튼이 보이지 않고 삭제 칸이 읽기 전용 바탕이다. */
|
|
1287
1291
|
canDeleteRow?: ParameterTableCanDeleteRow;
|
|
1288
|
-
/** 셀별 편집 가능 여부. 기본값은 모든 셀 편집 가능. false 인 셀은 읽기 전용 바탕으로 표시되고 편집·붙여넣기·지우기가 막힌다. */
|
|
1292
|
+
/** 셀별 편집 가능 여부. 기본값은 모든 셀 편집 가능. false 인 셀은 읽기 전용 바탕으로 표시되고 편집·붙여넣기·지우기가 막힌다. 행의 모든 칸이 false 면 그 행의 표시 열(`extraColumns`) 칸도, 비활성 표면 손잡이 칸도 같은 바탕이다. */
|
|
1289
1293
|
canEditCell?: ParameterTableCanEditCell;
|
|
1290
1294
|
/** 활성 셀(선택 영역의 focus)이 바뀔 때 알린다. 선택이 없으면 null. 같은 셀에서는 다시 부르지 않는다. */
|
|
1291
1295
|
onActiveCellChange?: (cell: ParameterTableActiveCell | null) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ declare namespace class_variance_authority_types {
|
|
|
8
8
|
}
|
|
9
9
|
import { VariantProps } from 'class-variance-authority';
|
|
10
10
|
import * as AlertDialogPrimitive from '@radix-ui/react-alert-dialog';
|
|
11
|
-
import { B as BadgeProps } from './index-
|
|
12
|
-
export { V as AgGridTable, A as AgGridTableType, i as BADGE_OUTLINE_ACCENT, a1 as BALANCED_FILL_MIN_WIDTH, f as Badge, h as BadgeTone, j as Button, a as ButtonProps, C as ChatAttachment, l as ChatComposer, d as ChatComposerProps, m as ChatHistory, o as ChatHistoryGroup, n as ChatHistoryItem, e as ChatHistoryProps, q as ChatMessage, r as ChatMessageProps, c as ChatSource, s as Dialog, w as DialogClose, b as DialogContent, E as DialogDescription, y as DialogFooter, x as DialogHeader, u as DialogOverlay, t as DialogPortal, z as DialogTitle, v as DialogTrigger, F as Drawer, L as DrawerBody, J as DrawerClose, D as DrawerContent, O as DrawerDescription, M as DrawerFooter, K as DrawerHeader, H as DrawerOverlay, G as DrawerPortal, N as DrawerTitle, I as DrawerTrigger, W as HeaderCheckboxRenderer, a3 as NUMBER_COLUMN_WIDTH, U as PageHeader, P as PageHeaderProps, S as PageHeaderProvider, R as PageHeaderState, Q as PageHeaderTabItem, X as RowCheckboxRenderer, Z as SORT_ICON_OFFSET_CLASS, ab as TwoLineCellRenderer, aa as TwoLineCellRendererParams, g as badgeVariants, k as buttonVariants, $ as estimateHeaderTextWidth, a9 as fitColumnsToContent, p as groupChatHistoryByDate, a8 as growColumnIds, T as usePageHeader, a2 as withBalancedFill, Y as withExplicitSortIcons, a0 as withFlexFill, a6 as withHeaderMinWidth, a4 as withNumberColumnWidth, _ as withSortIconOffset, a5 as withTypeClasses, a7 as withWidthFloor } from './index-
|
|
11
|
+
import { B as BadgeProps } from './index-C_zMCN-o.js';
|
|
12
|
+
export { V as AgGridTable, A as AgGridTableType, i as BADGE_OUTLINE_ACCENT, a1 as BALANCED_FILL_MIN_WIDTH, f as Badge, h as BadgeTone, j as Button, a as ButtonProps, C as ChatAttachment, l as ChatComposer, d as ChatComposerProps, m as ChatHistory, o as ChatHistoryGroup, n as ChatHistoryItem, e as ChatHistoryProps, q as ChatMessage, r as ChatMessageProps, c as ChatSource, s as Dialog, w as DialogClose, b as DialogContent, E as DialogDescription, y as DialogFooter, x as DialogHeader, u as DialogOverlay, t as DialogPortal, z as DialogTitle, v as DialogTrigger, F as Drawer, L as DrawerBody, J as DrawerClose, D as DrawerContent, O as DrawerDescription, M as DrawerFooter, K as DrawerHeader, H as DrawerOverlay, G as DrawerPortal, N as DrawerTitle, I as DrawerTrigger, W as HeaderCheckboxRenderer, a3 as NUMBER_COLUMN_WIDTH, U as PageHeader, P as PageHeaderProps, S as PageHeaderProvider, R as PageHeaderState, Q as PageHeaderTabItem, X as RowCheckboxRenderer, Z as SORT_ICON_OFFSET_CLASS, ab as TwoLineCellRenderer, aa as TwoLineCellRendererParams, g as badgeVariants, k as buttonVariants, $ as estimateHeaderTextWidth, a9 as fitColumnsToContent, p as groupChatHistoryByDate, a8 as growColumnIds, T as usePageHeader, a2 as withBalancedFill, Y as withExplicitSortIcons, a0 as withFlexFill, a6 as withHeaderMinWidth, a4 as withNumberColumnWidth, _ as withSortIconOffset, a5 as withTypeClasses, a7 as withWidthFloor } from './index-C_zMCN-o.js';
|
|
13
13
|
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
14
14
|
import { DayPicker, SelectSingleEventHandler, DateRange, SelectRangeEventHandler } from 'react-day-picker';
|
|
15
15
|
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
@@ -740,7 +740,7 @@ declare const DatePickerRange: React$1.ForwardRefExoticComponent<{
|
|
|
740
740
|
/**
|
|
741
741
|
* 버튼을 눌러 여는 행동 메뉴. 자주 쓰지 않는 행동을 "더보기" 안에 접어 둔다.
|
|
742
742
|
*
|
|
743
|
-
* 언제 쓰나: 행동이 많거나 자리가 좁을 때 보조 행동을 모은다(`IconButton` 더보기 + 메뉴, 표 행의 작업). 삭제 같은 위험한 행동은 구분선 아래 danger 항목으로. 체크처럼 연달아 고르는 항목은 `keepOpen`.
|
|
743
|
+
* 언제 쓰나: 행동이 많거나 자리가 좁을 때 보조 행동을 모은다(`IconButton` 더보기 + 메뉴, 표 행의 작업). 삭제 같은 위험한 행동은 구분선 아래 danger 항목으로. 체크처럼 연달아 고르는 항목은 `keepOpen`. 화면을 옮기는 메뉴(앱 전환·관리자 메뉴)에서 지금 보고 있는 화면의 항목에는 `aria-current='page'` 를 단다 — 항목이 primary 바탕·글자·굵게로 그려지므로 className 으로 굵기를 덧칠하지 않는다(`asChild` 로 감싼 Link 에 달아도 된다).
|
|
744
744
|
* 언제 안 쓰나: 값을 고르는 입력(→ Select·MultiSelect), 화면의 주요 행동(→ Button 으로 바로 보이게), 검색이 필요한 긴 목록(→ Command).
|
|
745
745
|
* 대신/함께: DetailPage 의 보조·삭제 행동은 패턴이 "더보기"로 접으니 직접 메뉴를 만들지 않는다. 우클릭한 자리처럼 버튼 없이 화면의 한 점에 열 때는 `DropdownMenuTrigger` 대신 `DropdownMenuAnchor`(`x`·`y`)를 두고 `open`·`onOpenChange` 로 여닫는다(FileTree 의 ContextMenu 스토리).
|
|
746
746
|
*/
|
|
@@ -915,7 +915,7 @@ interface IconButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement
|
|
|
915
915
|
*
|
|
916
916
|
* 언제 쓰나: 새로고침·편집·삭제·닫기처럼 아이콘만으로 뜻이 통하는 행동. 항상 `aria-label` 로 이름을 주고, 필요하면 Tooltip 을 함께 쓴다.
|
|
917
917
|
* 언제 안 쓰나: 화면의 주요 행동(→ Button 텍스트), 아이콘 뜻이 모호한 행동(→ Button 에 아이콘+텍스트).
|
|
918
|
-
* 대신/함께: Dialog·Drawer 의 닫기 버튼은 각 컴포넌트가 내장하므로 따로 두지 않는다. 크기는 `spacing` 이 정한다 — `normal` 36×36(높이 36 인 입력란·버튼 옆), `compact` 28×28(표 행·카드 모서리처럼 좁은 자리). 아이콘은 버튼이 20px 로 맞추므로 `size` 를 주지 않는다(글자 버튼·메뉴 항목의 아이콘과 같은 크기).
|
|
918
|
+
* 대신/함께: Dialog·Drawer 의 닫기 버튼은 각 컴포넌트가 내장하므로 따로 두지 않는다. 크기는 `spacing` 이 정한다 — `normal` 36×36(높이 36 인 입력란·버튼 옆), `compact` 28×28(표 행·카드 모서리처럼 좁은 자리). 아이콘은 버튼이 20px 로 맞추므로 `size` 를 주지 않는다(글자 버튼·메뉴 항목의 아이콘과 같은 크기). 표 행·카드의 더보기는 `variant='secondaryLink'` + `spacing='compact'` 를 `DropdownMenuTrigger asChild` 로 감싼다 — 링크형은 가리키면 옅은 바탕이 깔리고 메뉴가 열린 동안 그 바탕이 남는다.
|
|
919
919
|
*/
|
|
920
920
|
declare const IconButton: React$1.ForwardRefExoticComponent<IconButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
921
921
|
|
|
@@ -960,10 +960,14 @@ type TextFieldProps = Omit<React$1.ComponentProps<'input'>, 'children'> & {
|
|
|
960
960
|
required?: boolean;
|
|
961
961
|
/** Clear 버튼 표시 여부 */
|
|
962
962
|
hasClearButton?: boolean;
|
|
963
|
-
/** 입력 필드 왼쪽 아이콘/요소 슬롯 */
|
|
963
|
+
/** 입력 필드 왼쪽 아이콘/요소 슬롯 — 칸 안에 바탕 없이 그린다(아이콘·단위) */
|
|
964
964
|
elemBeforeInput?: React$1.ReactNode;
|
|
965
|
-
/** 입력 필드 오른쪽 아이콘/요소 슬롯 */
|
|
965
|
+
/** 입력 필드 오른쪽 아이콘/요소 슬롯 — 칸 안에 바탕 없이 그린다(아이콘·단위) */
|
|
966
966
|
elemAfterInput?: React$1.ReactNode;
|
|
967
|
+
/** 입력 앞에 붙는 고정 칸 — 값의 고칠 수 없는 앞부분(예: `/data/deploy/`·`https://host/api/`). 테두리 안 왼쪽 끝에 채운 바탕 + 구분선으로 그리고, 길면 말줄임, 누르면 입력에 포커스, 입력의 설명(aria-describedby)으로 읽힌다 */
|
|
968
|
+
addonBefore?: React$1.ReactNode;
|
|
969
|
+
/** 입력 뒤에 붙는 고정 칸 — 값의 고칠 수 없는 뒷부분(예: `/inference`). 모양·동작은 `addonBefore` 와 같다 */
|
|
970
|
+
addonAfter?: React$1.ReactNode;
|
|
967
971
|
/** 에러 상태 */
|
|
968
972
|
isInvalid?: boolean;
|
|
969
973
|
/** 컨테이너 div에 적용할 추가 className */
|
|
@@ -974,7 +978,7 @@ type TextFieldProps = Omit<React$1.ComponentProps<'input'>, 'children'> & {
|
|
|
974
978
|
*
|
|
975
979
|
* 언제 쓰나: `FormField` 안에서 `FormControl` 로 감싸 오류 상태를 받는다. 라벨은 `FormLabel` 로 두고, 독립 사용 시에만 `label`(floating) 을 쓴다.
|
|
976
980
|
* 언제 안 쓰나: 여러 줄 입력(→ Textarea), 정해진 선택지(→ Select·RadioGroup), 목록 검색·필터(→ ColumnFilter·TableFilter*).
|
|
977
|
-
* 대신/함께: 지우기 버튼은 `hasClearButton`, 단위·아이콘은 `elemBeforeInput`/`elemAfterInput
|
|
981
|
+
* 대신/함께: 지우기 버튼은 `hasClearButton`, 단위·아이콘은 `elemBeforeInput`/`elemAfterInput`(칸 안, 바탕 없음). 입력값 앞·뒤에 붙는 고칠 수 없는 경로·주소는 `addonBefore`/`addonAfter`(채운 고정 칸 + 구분선) — `elemBeforeInput` 에 글자를 넣으면 placeholder 처럼 보인다. 보여 주기만 하는 값(복사·키보드 포커스는 된다)은 `readOnly`, 지금 고를 수 없는 칸은 `disabled` — 둘 다 가라앉은 바탕으로 그려지고 비활성만 글자가 흐리다.
|
|
978
982
|
*/
|
|
979
983
|
declare const TextField: React$1.ForwardRefExoticComponent<Omit<TextFieldProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
980
984
|
|
|
@@ -1283,9 +1287,9 @@ interface ParameterTableProps {
|
|
|
1283
1287
|
caption?: React$1.ReactNode;
|
|
1284
1288
|
disabled?: boolean;
|
|
1285
1289
|
className?: string;
|
|
1286
|
-
/** 행별 삭제 가능 여부. 기본값은 모든 실제 행 삭제 가능. false 인 행은 삭제 버튼이 보이지
|
|
1290
|
+
/** 행별 삭제 가능 여부. 기본값은 모든 실제 행 삭제 가능. false 인 행은 삭제 버튼이 보이지 않고 삭제 칸이 읽기 전용 바탕이다. */
|
|
1287
1291
|
canDeleteRow?: ParameterTableCanDeleteRow;
|
|
1288
|
-
/** 셀별 편집 가능 여부. 기본값은 모든 셀 편집 가능. false 인 셀은 읽기 전용 바탕으로 표시되고 편집·붙여넣기·지우기가 막힌다. */
|
|
1292
|
+
/** 셀별 편집 가능 여부. 기본값은 모든 셀 편집 가능. false 인 셀은 읽기 전용 바탕으로 표시되고 편집·붙여넣기·지우기가 막힌다. 행의 모든 칸이 false 면 그 행의 표시 열(`extraColumns`) 칸도, 비활성 표면 손잡이 칸도 같은 바탕이다. */
|
|
1289
1293
|
canEditCell?: ParameterTableCanEditCell;
|
|
1290
1294
|
/** 활성 셀(선택 영역의 focus)이 바뀔 때 알린다. 선택이 없으면 null. 같은 셀에서는 다시 부르지 않는다. */
|
|
1291
1295
|
onActiveCellChange?: (cell: ParameterTableActiveCell | null) => void;
|