@t3q-ui/design-system 1.67.3 → 1.67.5
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 +6 -0
- package/dist/components/columnFilter/ColumnFilter.cjs +4 -6
- package/dist/components/columnFilter/ColumnFilter.cjs.map +1 -1
- package/dist/components/columnFilter/ColumnFilter.js +4 -6
- package/dist/components/columnFilter/ColumnFilter.js.map +1 -1
- package/dist/components/columnFilter/ColumnFilterInput.cjs +2 -3
- package/dist/components/columnFilter/ColumnFilterInput.cjs.map +1 -1
- package/dist/components/columnFilter/ColumnFilterInput.js +2 -3
- package/dist/components/columnFilter/ColumnFilterInput.js.map +1 -1
- package/dist/components/columnFilter/ColumnFilterPopover.cjs +161 -441
- package/dist/components/columnFilter/ColumnFilterPopover.cjs.map +1 -1
- package/dist/components/columnFilter/ColumnFilterPopover.js +161 -441
- package/dist/components/columnFilter/ColumnFilterPopover.js.map +1 -1
- package/dist/components/columnFilter/types.cjs.map +1 -1
- package/dist/components/columnFilter/types.js.map +1 -1
- package/dist/components/multiSelect/multiSelect.cjs +18 -75
- package/dist/components/multiSelect/multiSelect.cjs.map +1 -1
- package/dist/components/multiSelect/multiSelect.js +18 -74
- package/dist/components/multiSelect/multiSelect.js.map +1 -1
- package/dist/components/multiSelect/multiSelectTrigger.cjs +2 -2
- package/dist/components/multiSelect/multiSelectTrigger.cjs.map +1 -1
- package/dist/components/multiSelect/multiSelectTrigger.js +1 -1
- package/dist/components/multiSelect/multiSelectTrigger.js.map +1 -1
- package/dist/components/select/select.cjs +17 -36
- package/dist/components/select/select.cjs.map +1 -1
- package/dist/components/select/select.js +17 -35
- package/dist/components/select/select.js.map +1 -1
- package/dist/components/select/selectContent.cjs +44 -47
- package/dist/components/select/selectContent.cjs.map +1 -1
- package/dist/components/select/selectContent.js +44 -47
- package/dist/components/select/selectContent.js.map +1 -1
- package/dist/components/select/selectGroup.cjs +3 -1
- package/dist/components/select/selectGroup.cjs.map +1 -1
- package/dist/components/select/selectGroup.js +3 -1
- package/dist/components/select/selectGroup.js.map +1 -1
- package/dist/components/select/selectInput.cjs +39 -32
- package/dist/components/select/selectInput.cjs.map +1 -1
- package/dist/components/select/selectInput.js +40 -33
- package/dist/components/select/selectInput.js.map +1 -1
- package/dist/components/select/selectItem.cjs +90 -14
- package/dist/components/select/selectItem.cjs.map +1 -1
- package/dist/components/select/selectItem.js +92 -16
- package/dist/components/select/selectItem.js.map +1 -1
- package/dist/components/select/selectLoading.cjs +3 -1
- package/dist/components/select/selectLoading.cjs.map +1 -1
- package/dist/components/select/selectLoading.js +3 -1
- package/dist/components/select/selectLoading.js.map +1 -1
- package/dist/components/select/selectRoot.cjs +105 -0
- package/dist/components/select/selectRoot.cjs.map +1 -0
- package/dist/components/select/selectRoot.js +87 -0
- package/dist/components/select/selectRoot.js.map +1 -0
- package/dist/components/select/selectSeparator.cjs +3 -1
- package/dist/components/select/selectSeparator.cjs.map +1 -1
- package/dist/components/select/selectSeparator.js +3 -1
- package/dist/components/select/selectSeparator.js.map +1 -1
- package/dist/components/select/selectTrigger.cjs +2 -2
- package/dist/components/select/selectTrigger.cjs.map +1 -1
- package/dist/components/select/selectTrigger.js +1 -1
- package/dist/components/select/selectTrigger.js.map +1 -1
- package/dist/components/select/selectValue.cjs +2 -2
- package/dist/components/select/selectValue.cjs.map +1 -1
- package/dist/components/select/selectValue.js +1 -1
- package/dist/components/select/selectValue.js.map +1 -1
- package/dist/index.cjs +16 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +50 -121
- package/dist/index.d.ts +50 -121
- package/dist/index.js +17 -25
- package/dist/index.js.map +1 -1
- package/mcp/manifests/components.json +22 -22
- package/package.json +1 -1
- package/dist/components/multiSelect/multiSelectContent.cjs +0 -119
- package/dist/components/multiSelect/multiSelectContent.cjs.map +0 -1
- package/dist/components/multiSelect/multiSelectContent.js +0 -101
- package/dist/components/multiSelect/multiSelectContent.js.map +0 -1
- package/dist/components/multiSelect/multiSelectContext.cjs +0 -32
- package/dist/components/multiSelect/multiSelectContext.cjs.map +0 -1
- package/dist/components/multiSelect/multiSelectContext.js +0 -15
- package/dist/components/multiSelect/multiSelectContext.js.map +0 -1
- package/dist/components/multiSelect/multiSelectGroup.cjs +0 -47
- package/dist/components/multiSelect/multiSelectGroup.cjs.map +0 -1
- package/dist/components/multiSelect/multiSelectGroup.js +0 -30
- package/dist/components/multiSelect/multiSelectGroup.js.map +0 -1
- package/dist/components/multiSelect/multiSelectInput.cjs +0 -73
- package/dist/components/multiSelect/multiSelectInput.cjs.map +0 -1
- package/dist/components/multiSelect/multiSelectInput.js +0 -56
- package/dist/components/multiSelect/multiSelectInput.js.map +0 -1
- package/dist/components/multiSelect/multiSelectItem.cjs +0 -129
- package/dist/components/multiSelect/multiSelectItem.cjs.map +0 -1
- package/dist/components/multiSelect/multiSelectItem.js +0 -112
- package/dist/components/multiSelect/multiSelectItem.js.map +0 -1
- package/dist/components/multiSelect/multiSelectLoading.cjs +0 -52
- package/dist/components/multiSelect/multiSelectLoading.cjs.map +0 -1
- package/dist/components/multiSelect/multiSelectLoading.js +0 -35
- package/dist/components/multiSelect/multiSelectLoading.js.map +0 -1
- package/dist/components/multiSelect/multiSelectSeparator.cjs +0 -42
- package/dist/components/multiSelect/multiSelectSeparator.cjs.map +0 -1
- package/dist/components/multiSelect/multiSelectSeparator.js +0 -25
- package/dist/components/multiSelect/multiSelectSeparator.js.map +0 -1
- package/dist/components/select/selectContext.cjs +0 -32
- package/dist/components/select/selectContext.cjs.map +0 -1
- package/dist/components/select/selectContext.js +0 -15
- package/dist/components/select/selectContext.js.map +0 -1
- package/dist/components/select/selectRadioItem.cjs +0 -113
- package/dist/components/select/selectRadioItem.cjs.map +0 -1
- package/dist/components/select/selectRadioItem.js +0 -96
- package/dist/components/select/selectRadioItem.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -311,10 +311,6 @@ interface ValueSuggestion {
|
|
|
311
311
|
/** 팝오버에 표시되는 텍스트 */
|
|
312
312
|
label: string;
|
|
313
313
|
}
|
|
314
|
-
interface PopoverPosition {
|
|
315
|
-
x: number;
|
|
316
|
-
y: number;
|
|
317
|
-
}
|
|
318
314
|
interface ColumnFilterContextType {
|
|
319
315
|
disabled?: boolean;
|
|
320
316
|
columns: ColumnDefinition[];
|
|
@@ -323,7 +319,8 @@ interface ColumnFilterContextType {
|
|
|
323
319
|
editingFilter: EditingFilter | null;
|
|
324
320
|
activePopover: PopoverType;
|
|
325
321
|
popoverTrigger: PopoverTrigger$1;
|
|
326
|
-
|
|
322
|
+
/** 팝오버를 연 요소(검색·값 입력, 컬럼·연산자 버튼). 팝오버는 이 아래에 붙고, Esc·Tab 으로 닫으면 포커스가 여기로 돌아온다 */
|
|
323
|
+
popoverAnchor: HTMLElement | null;
|
|
327
324
|
addFilter: (filter: Omit<FilterCondition, 'id'>) => void;
|
|
328
325
|
removeFilter: (id: string) => void;
|
|
329
326
|
updateFilter: (id: string, updates: Partial<FilterCondition>) => void;
|
|
@@ -336,7 +333,7 @@ interface ColumnFilterContextType {
|
|
|
336
333
|
cancelEditing: () => void;
|
|
337
334
|
editExistingFilter: (id: string) => void;
|
|
338
335
|
editingFilterId: string | null;
|
|
339
|
-
openPopover: (type: PopoverType,
|
|
336
|
+
openPopover: (type: PopoverType, anchor: HTMLElement, trigger?: PopoverTrigger$1) => void;
|
|
340
337
|
closePopover: () => void;
|
|
341
338
|
columnSuggestionIndex: number;
|
|
342
339
|
setColumnSuggestionIndex: (index: number) => void;
|
|
@@ -1273,15 +1270,37 @@ interface RadioSectionProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>,
|
|
|
1273
1270
|
*/
|
|
1274
1271
|
declare function RadioSection({ title, description, selected, disabled, onSelect, value, className, onClick, onKeyDown, ...props }: RadioSectionProps): react_jsx_runtime.JSX.Element;
|
|
1275
1272
|
|
|
1276
|
-
|
|
1273
|
+
/** 두 루트가 똑같이 가진 것. 공통 부품(Content·Input·Group·Loading·Separator·Item)은 이것만 읽는다 */
|
|
1274
|
+
interface SelectRootContextBase {
|
|
1277
1275
|
open: boolean;
|
|
1278
1276
|
setOpen: (open: boolean) => void;
|
|
1279
|
-
value: string | undefined;
|
|
1280
|
-
onValueChange: (value: string) => void;
|
|
1281
1277
|
disabled?: boolean;
|
|
1282
|
-
/** value ->
|
|
1278
|
+
/** value -> 화면 글자 (트리거·칩 표시용) */
|
|
1283
1279
|
labelMap: Map<string, string>;
|
|
1284
1280
|
registerLabel: (value: string, label: string) => void;
|
|
1281
|
+
/** 검색어. 검색창·MultiSelect 트리거 입력·cmdk 필터가 함께 쓴다. 목록이 닫히면 비워진다 */
|
|
1282
|
+
searchTerm: string;
|
|
1283
|
+
setSearchTerm: (term: string) => void;
|
|
1284
|
+
/** 이 값이 골라져 있는가 — 하나만 고르기와 여럿 고르기의 차이는 이것과 `selectItem` 에만 있다 */
|
|
1285
|
+
isSelected: (value: string) => boolean;
|
|
1286
|
+
/** 항목을 골랐을 때. Select 는 그 값으로 바꾸고 닫는다, MultiSelect 는 넣거나 빼고 검색어를 비운다 */
|
|
1287
|
+
selectItem: (value: string) => void;
|
|
1288
|
+
}
|
|
1289
|
+
interface SelectContextValue extends SelectRootContextBase {
|
|
1290
|
+
slot: 'select';
|
|
1291
|
+
value: string | undefined;
|
|
1292
|
+
onValueChange: (value: string) => void;
|
|
1293
|
+
}
|
|
1294
|
+
interface MultiSelectContextValue extends SelectRootContextBase {
|
|
1295
|
+
slot: 'multi-select';
|
|
1296
|
+
/** 현재 선택된 값 배열 */
|
|
1297
|
+
values: string[];
|
|
1298
|
+
/** 값을 토글 (선택/해제) */
|
|
1299
|
+
onToggleValue: (value: string) => void;
|
|
1300
|
+
/** 특정 값 제거 */
|
|
1301
|
+
onRemoveValue: (value: string) => void;
|
|
1302
|
+
/** 모든 값 제거 */
|
|
1303
|
+
onClearAll: () => void;
|
|
1285
1304
|
}
|
|
1286
1305
|
interface SelectProps {
|
|
1287
1306
|
value?: string;
|
|
@@ -1316,43 +1335,27 @@ interface SelectItemProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, '
|
|
|
1316
1335
|
disabled?: boolean;
|
|
1317
1336
|
/** 아이템 하단 설명 텍스트 (trigger에 표시되지 않음) */
|
|
1318
1337
|
description?: string;
|
|
1319
|
-
/** trigger에 표시할 텍스트. 미지정 시 children에서 추출 */
|
|
1320
|
-
textValue?: string;
|
|
1321
|
-
/** title 과 description 사이에 표시할 메타 정보 배열 (라벨/구분자/값) */
|
|
1322
|
-
meta?: MetaItemProps[];
|
|
1323
|
-
/** title row 앞 위치에 렌더될 슬롯 */
|
|
1324
|
-
elemBefore?: React$1.ReactNode;
|
|
1325
1338
|
/**
|
|
1326
|
-
*
|
|
1327
|
-
*
|
|
1328
|
-
*
|
|
1339
|
+
* trigger(MultiSelect 는 칩)에 표시하고 검색에 쓰는 텍스트.
|
|
1340
|
+
* 미지정 시 children 의 글자를 쓴다 — `{name} ({code})`·`<b>이름</b>` 처럼 나뉘어 있어도 이어 붙인다.
|
|
1341
|
+
* children 이 글자를 props 로 받는 컴포넌트뿐이면 글자를 알 수 없어 value 를 쓰므로 그때는 지정한다.
|
|
1329
1342
|
*/
|
|
1330
|
-
elemBeforeAlign?: 'center' | 'title';
|
|
1331
|
-
/** title 텍스트 우측에 렌더될 슬롯 */
|
|
1332
|
-
elemAfter?: React$1.ReactNode;
|
|
1333
|
-
children: React$1.ReactNode;
|
|
1334
|
-
}
|
|
1335
|
-
interface SelectRadioItemProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'onSelect'> {
|
|
1336
|
-
value: string;
|
|
1337
|
-
disabled?: boolean;
|
|
1338
|
-
/** 아이템 하단 설명 텍스트 */
|
|
1339
|
-
description?: string;
|
|
1340
|
-
/** trigger에 표시할 텍스트 */
|
|
1341
1343
|
textValue?: string;
|
|
1342
1344
|
/** title 과 description 사이에 표시할 메타 정보 배열 (라벨/구분자/값) */
|
|
1343
1345
|
meta?: MetaItemProps[];
|
|
1344
|
-
/**
|
|
1346
|
+
/** title row 앞(라디오·체크박스 인디케이터가 있으면 그 다음)에 렌더될 슬롯 */
|
|
1345
1347
|
elemBefore?: React$1.ReactNode;
|
|
1346
1348
|
/**
|
|
1347
1349
|
* elemBefore 배치 방식.
|
|
1348
|
-
* - `'center'`(기본): 선행 컬럼 — 전체
|
|
1349
|
-
* - `'title'`: title 행
|
|
1350
|
+
* - `'center'`(기본): SelectItemContent 바깥 선행 컬럼 — 멀티라인 전체 높이에 중앙 정렬하며 이름·meta 를 모두 우측으로 밀어냄.
|
|
1351
|
+
* - `'title'`: title 행 안에 인라인 — 이름만 우측으로 밀고 meta/description 행은 콘텐츠 좌측 정렬 유지(항목 간 meta 시작 위치 일치).
|
|
1350
1352
|
*/
|
|
1351
1353
|
elemBeforeAlign?: 'center' | 'title';
|
|
1352
1354
|
/** title 텍스트 우측에 렌더될 슬롯 */
|
|
1353
1355
|
elemAfter?: React$1.ReactNode;
|
|
1354
1356
|
children: React$1.ReactNode;
|
|
1355
1357
|
}
|
|
1358
|
+
type SelectRadioItemProps = SelectItemProps;
|
|
1356
1359
|
interface SelectInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value'> {
|
|
1357
1360
|
onChange?: (value: string) => void;
|
|
1358
1361
|
}
|
|
@@ -1375,25 +1378,6 @@ declare const selectTriggerVariants: (props?: ({
|
|
|
1375
1378
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1376
1379
|
declare const SelectTrigger: React$1.ForwardRefExoticComponent<SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1377
1380
|
|
|
1378
|
-
interface MultiSelectContextValue {
|
|
1379
|
-
open: boolean;
|
|
1380
|
-
setOpen: (open: boolean) => void;
|
|
1381
|
-
/** 현재 선택된 값 배열 */
|
|
1382
|
-
values: string[];
|
|
1383
|
-
/** 값을 토글 (선택/해제) */
|
|
1384
|
-
onToggleValue: (value: string) => void;
|
|
1385
|
-
/** 특정 값 제거 */
|
|
1386
|
-
onRemoveValue: (value: string) => void;
|
|
1387
|
-
/** 모든 값 제거 */
|
|
1388
|
-
onClearAll: () => void;
|
|
1389
|
-
disabled?: boolean;
|
|
1390
|
-
/** value -> display text 매핑 (trigger 태그 표시용) */
|
|
1391
|
-
labelMap: Map<string, string>;
|
|
1392
|
-
registerLabel: (value: string, label: string) => void;
|
|
1393
|
-
/** 인라인 검색어 (trigger input과 content cmdk 필터 간 공유) */
|
|
1394
|
-
searchTerm: string;
|
|
1395
|
-
setSearchTerm: (term: string) => void;
|
|
1396
|
-
}
|
|
1397
1381
|
interface MultiSelectProps$1 {
|
|
1398
1382
|
value?: string[];
|
|
1399
1383
|
defaultValue?: string[];
|
|
@@ -1424,48 +1408,6 @@ interface MultiSelectTriggerProps extends Omit<React$1.HTMLAttributes<HTMLDivEle
|
|
|
1424
1408
|
/** 입력 영역 우측 아이콘 (chevron 앞) */
|
|
1425
1409
|
elemAfterInput?: React$1.ReactNode;
|
|
1426
1410
|
}
|
|
1427
|
-
interface MultiSelectContentProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1428
|
-
/** Popover 정렬 */
|
|
1429
|
-
align?: 'start' | 'center' | 'end';
|
|
1430
|
-
/** Popover 오프셋 (px) */
|
|
1431
|
-
sideOffset?: number;
|
|
1432
|
-
}
|
|
1433
|
-
interface MultiSelectItemProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'onSelect'> {
|
|
1434
|
-
value: string;
|
|
1435
|
-
disabled?: boolean;
|
|
1436
|
-
/** 아이템 하단 설명 텍스트 */
|
|
1437
|
-
description?: string;
|
|
1438
|
-
/** trigger 태그에 표시할 텍스트. 미지정 시 children에서 추출 */
|
|
1439
|
-
textValue?: string;
|
|
1440
|
-
/** title 과 description 사이에 표시할 메타 정보 배열 (라벨/구분자/값) */
|
|
1441
|
-
meta?: MetaItemProps[];
|
|
1442
|
-
/** checkbox indicator 다음, title row 앞에 렌더될 슬롯 */
|
|
1443
|
-
elemBefore?: React$1.ReactNode;
|
|
1444
|
-
/**
|
|
1445
|
-
* elemBefore 배치 방식.
|
|
1446
|
-
* - `'center'`(기본): 선행 컬럼 — 전체 높이 중앙 정렬(이름·meta 우측 이동)
|
|
1447
|
-
* - `'title'`: title 행 안 인라인 — 이름만 밀고 meta 는 콘텐츠 좌측 유지
|
|
1448
|
-
*/
|
|
1449
|
-
elemBeforeAlign?: 'center' | 'title';
|
|
1450
|
-
/** title 텍스트 우측에 렌더될 슬롯 */
|
|
1451
|
-
elemAfter?: React$1.ReactNode;
|
|
1452
|
-
children: React$1.ReactNode;
|
|
1453
|
-
}
|
|
1454
|
-
interface MultiSelectInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value'> {
|
|
1455
|
-
onChange?: (value: string) => void;
|
|
1456
|
-
}
|
|
1457
|
-
interface MultiSelectGroupProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1458
|
-
/** 그룹 제목 (cmdk Group heading 으로 렌더) */
|
|
1459
|
-
heading?: React$1.ReactNode;
|
|
1460
|
-
children: React$1.ReactNode;
|
|
1461
|
-
}
|
|
1462
|
-
interface MultiSelectLoadingProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1463
|
-
children?: React$1.ReactNode;
|
|
1464
|
-
}
|
|
1465
|
-
interface MultiSelectEmptyProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1466
|
-
children?: React$1.ReactNode;
|
|
1467
|
-
}
|
|
1468
|
-
type MultiSelectSeparatorProps = React$1.HTMLAttributes<HTMLDivElement>;
|
|
1469
1411
|
|
|
1470
1412
|
/**
|
|
1471
1413
|
* 드롭다운에서 여러 개를 고르는 폼 입력. 선택한 항목은 칩으로 보여 준다.
|
|
@@ -1474,24 +1416,27 @@ type MultiSelectSeparatorProps = React$1.HTMLAttributes<HTMLDivElement>;
|
|
|
1474
1416
|
* 언제 안 쓰나: 하나만 고르는 경우(→ Select), 선택지가 적어 한눈에 보여야 하는 경우(→ Checkbox 묶음), 목록 화면 필터(→ TableFilterMultiSelect).
|
|
1475
1417
|
* 대신/함께: 칩 라벨도 마운트된 아이템에서 얻으므로 미로드 값은 `useMultiSelectContext().registerLabel` 로 등록한다.
|
|
1476
1418
|
*/
|
|
1477
|
-
declare function MultiSelect$1({ value: controlledValue, defaultValue, onValueChange, open
|
|
1419
|
+
declare function MultiSelect$1({ value: controlledValue, defaultValue, onValueChange, open, defaultOpen, onOpenChange, onSearchChange, disabled, className, children, }: MultiSelectProps$1): react_jsx_runtime.JSX.Element;
|
|
1478
1420
|
|
|
1479
|
-
declare const
|
|
1421
|
+
declare const MultiSelectEmpty: React$1.ForwardRefExoticComponent<SelectEmptyProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1480
1422
|
|
|
1481
|
-
declare const
|
|
1423
|
+
declare const MultiSelectTrigger: React$1.ForwardRefExoticComponent<MultiSelectTriggerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1482
1424
|
|
|
1483
|
-
declare const
|
|
1425
|
+
declare const SelectContent: React$1.ForwardRefExoticComponent<SelectContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1484
1426
|
|
|
1485
|
-
declare const
|
|
1427
|
+
declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1486
1428
|
|
|
1487
|
-
declare const
|
|
1429
|
+
declare const SelectInput: React$1.ForwardRefExoticComponent<SelectInputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
1488
1430
|
|
|
1489
|
-
declare const
|
|
1431
|
+
declare const SelectItem: React$1.ForwardRefExoticComponent<SelectItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1432
|
+
declare const SelectRadioItem: React$1.ForwardRefExoticComponent<SelectItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1433
|
+
declare const MultiSelectItem: React$1.ForwardRefExoticComponent<SelectItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1490
1434
|
|
|
1491
|
-
declare const
|
|
1435
|
+
declare const SelectLoading: React$1.ForwardRefExoticComponent<SelectLoadingProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1492
1436
|
|
|
1493
|
-
declare const
|
|
1437
|
+
declare const SelectSeparator: React$1.ForwardRefExoticComponent<SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1494
1438
|
|
|
1439
|
+
declare function useSelectContext(): SelectContextValue;
|
|
1495
1440
|
declare function useMultiSelectContext(): MultiSelectContextValue;
|
|
1496
1441
|
|
|
1497
1442
|
/**
|
|
@@ -1501,33 +1446,17 @@ declare function useMultiSelectContext(): MultiSelectContextValue;
|
|
|
1501
1446
|
* 언제 안 쓰나: 선택지 2~4개(→ RadioGroup·RadioSection), 여러 개 선택(→ MultiSelect), 목록 화면 상단 필터(→ TableFilterSingleSelect), 켜고 끄기(→ Switch).
|
|
1502
1447
|
* 대신/함께: 트리거 라벨은 `SelectItem` 에서 얻는다 — 닫혀 있어도 항목이 이름을 등록하므로 미리 정한 값도 펼치기 전에 이름으로 보인다. 목록에 아직 없는 값(비동기로 오는 항목)만 `useSelectContext().registerLabel` 로 미리 등록한다.
|
|
1503
1448
|
*/
|
|
1504
|
-
declare function Select({ value: controlledValue, defaultValue, onValueChange, open
|
|
1505
|
-
|
|
1506
|
-
declare const SelectContent: React$1.ForwardRefExoticComponent<SelectContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1449
|
+
declare function Select({ value: controlledValue, defaultValue, onValueChange, open, defaultOpen, onOpenChange, disabled, className, children, }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
1507
1450
|
|
|
1508
1451
|
declare const SelectEmpty: React$1.ForwardRefExoticComponent<SelectEmptyProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1509
1452
|
|
|
1510
|
-
declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1511
|
-
|
|
1512
|
-
declare const SelectInput: React$1.ForwardRefExoticComponent<SelectInputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
1513
|
-
|
|
1514
|
-
declare const SelectItem: React$1.ForwardRefExoticComponent<SelectItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1515
|
-
|
|
1516
|
-
declare const SelectLoading: React$1.ForwardRefExoticComponent<SelectLoadingProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1517
|
-
|
|
1518
1453
|
interface SelectRadioGroupProps extends React$1.ComponentPropsWithoutRef<typeof Command$1.Group> {
|
|
1519
1454
|
children: React$1.ReactNode;
|
|
1520
1455
|
}
|
|
1521
1456
|
declare const SelectRadioGroup: React$1.ForwardRefExoticComponent<SelectRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1522
1457
|
|
|
1523
|
-
declare const SelectRadioItem: React$1.ForwardRefExoticComponent<SelectRadioItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1524
|
-
|
|
1525
|
-
declare const SelectSeparator: React$1.ForwardRefExoticComponent<SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1526
|
-
|
|
1527
1458
|
declare function SelectValue({ placeholder }: SelectValueProps): react_jsx_runtime.JSX.Element;
|
|
1528
1459
|
|
|
1529
|
-
declare function useSelectContext(): SelectContextValue;
|
|
1530
|
-
|
|
1531
1460
|
/**
|
|
1532
1461
|
* 가로·세로 1px 구분선.
|
|
1533
1462
|
*
|
|
@@ -2790,4 +2719,4 @@ declare function cn(...inputs: ClassValue[]): string;
|
|
|
2790
2719
|
*/
|
|
2791
2720
|
declare function sanitizeUserText(node: React$1.ReactNode): React$1.ReactNode;
|
|
2792
2721
|
|
|
2793
|
-
export { AG_GRID_LOCALE_KR, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AgGridContext, type AgGridContextType, Alert, AlertActions, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, BadgeProps, Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardThumbnail, CardTitle, Checkbox, type CheckboxProps, CheckboxSection, CheckboxSectionGroup, type CheckboxSectionGroupProps, type CheckboxSectionProps, type ColumnDefinition, ColumnFilter, type ColumnFilterContextType, ColumnFilterInput, type ColumnFilterInputProps, ColumnFilterPopover, type ColumnFilterPopoverProps, type ColumnFilterProps, ColumnFilterTag, type ColumnFilterTagProps, type ColumnType, ColumnVisibilityFilter, type ColumnVisibilityFilterProps, type ColumnVisibilityOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_PARAMETER_TABLE_COLUMNS, DatePicker, type DatePickerProps, DatePickerRange, type DatePickerRangeProps, DatePresets, type DatePresetsProps, DateRangePresets, type DateRangePresetsProps, DateRangeSelect, DateSelect, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type EditingFilter, EmptyBoxIllustration, type EventLevel, EventList, type EventListItem, type EventListProps, FileTree, type FileTreeEventNode, type FileTreeNode, type FileTreeProps, type FilterCondition, Form, FormControl, FormDescription, type FormDescriptionProps, FormField, FormFooter, FormHeader, FormItem, FormLabel, FormMessage, FormSection, FormSectionLevelContext, FormValidMessage, type HourType, IconButton, type IconButtonProps, IconSelect, type IconSelectProps, Label, LucideIcon, type LucideIconProps, MetaGroup, MetaItem, type MetaItemProps, MetaList, type MetaListProps, MetaRow, type MetaRowProps, MultiSelect$1 as MultiSelect, MultiSelectContent, type MultiSelectContentProps, MultiSelectEmpty, type MultiSelectEmptyProps, MultiSelectGroup, type MultiSelectGroupProps, MultiSelectInput, type MultiSelectInputProps, MultiSelectItem, type MultiSelectItemProps, MultiSelectLoading, type MultiSelectLoadingProps, type MultiSelectProps$1 as MultiSelectProps, MultiSelectSeparator, type MultiSelectSeparatorProps, MultiSelectTrigger, type MultiSelectTriggerProps, NUMBER_COLUMN_CLASS, type NumberOperator, OPERATORS_BY_TYPE, OPERATOR_LABELS, type Operator, type OperatorOverridesByColumn, type OperatorOverridesByType, type Option, PageHeaderRefreshButton, type PageHeaderRefreshButtonProps, Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, type PaginationPropsType, PaginationWrapper, Panel, type PanelProps, ParameterTable, type ParameterTableActiveCell, type ParameterTableCanDeleteRow, type ParameterTableCanEditCell, type ParameterTableCellErrors, type ParameterTableColumn, type ParameterTableExtraColumn, type ParameterTableProps, type ParameterTableRow, type ParameterTableSpacing, Popover, PopoverAnchor, PopoverContent,
|
|
2722
|
+
export { AG_GRID_LOCALE_KR, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AgGridContext, type AgGridContextType, Alert, AlertActions, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, BadgeProps, Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardThumbnail, CardTitle, Checkbox, type CheckboxProps, CheckboxSection, CheckboxSectionGroup, type CheckboxSectionGroupProps, type CheckboxSectionProps, type ColumnDefinition, ColumnFilter, type ColumnFilterContextType, ColumnFilterInput, type ColumnFilterInputProps, ColumnFilterPopover, type ColumnFilterPopoverProps, type ColumnFilterProps, ColumnFilterTag, type ColumnFilterTagProps, type ColumnType, ColumnVisibilityFilter, type ColumnVisibilityFilterProps, type ColumnVisibilityOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_PARAMETER_TABLE_COLUMNS, DatePicker, type DatePickerProps, DatePickerRange, type DatePickerRangeProps, DatePresets, type DatePresetsProps, DateRangePresets, type DateRangePresetsProps, DateRangeSelect, DateSelect, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type EditingFilter, EmptyBoxIllustration, type EventLevel, EventList, type EventListItem, type EventListProps, FileTree, type FileTreeEventNode, type FileTreeNode, type FileTreeProps, type FilterCondition, Form, FormControl, FormDescription, type FormDescriptionProps, FormField, FormFooter, FormHeader, FormItem, FormLabel, FormMessage, FormSection, FormSectionLevelContext, FormValidMessage, type HourType, IconButton, type IconButtonProps, IconSelect, type IconSelectProps, Label, LucideIcon, type LucideIconProps, MetaGroup, MetaItem, type MetaItemProps, MetaList, type MetaListProps, MetaRow, type MetaRowProps, MultiSelect$1 as MultiSelect, SelectContent as MultiSelectContent, type SelectContentProps as MultiSelectContentProps, MultiSelectEmpty, type SelectEmptyProps as MultiSelectEmptyProps, SelectGroup as MultiSelectGroup, type SelectGroupProps as MultiSelectGroupProps, SelectInput as MultiSelectInput, type SelectInputProps as MultiSelectInputProps, MultiSelectItem, type SelectItemProps as MultiSelectItemProps, SelectLoading as MultiSelectLoading, type SelectLoadingProps as MultiSelectLoadingProps, type MultiSelectProps$1 as MultiSelectProps, SelectSeparator as MultiSelectSeparator, type SelectSeparatorProps as MultiSelectSeparatorProps, MultiSelectTrigger, type MultiSelectTriggerProps, NUMBER_COLUMN_CLASS, type NumberOperator, OPERATORS_BY_TYPE, OPERATOR_LABELS, type Operator, type OperatorOverridesByColumn, type OperatorOverridesByType, type Option, PageHeaderRefreshButton, type PageHeaderRefreshButtonProps, Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, type PaginationPropsType, PaginationWrapper, Panel, type PanelProps, ParameterTable, type ParameterTableActiveCell, type ParameterTableCanDeleteRow, type ParameterTableCanEditCell, type ParameterTableCellErrors, type ParameterTableColumn, type ParameterTableExtraColumn, type ParameterTableProps, type ParameterTableRow, type ParameterTableSpacing, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PopoverType, Progress, type ProgressProps, Radio, RadioGroup, RadioGroupItem, RadioSection, RadioSectionGroup, type RadioSectionGroupProps, type RadioSectionProps, Range, type RangeBounds, type RangeMark, type RangeProps, RangeSlider, type RangeSliderProps, type ResolvedTheme, Select, SelectContent, type SelectContentProps, SelectEmpty, type SelectEmptyProps, SelectGroup, type SelectGroupProps, SelectInput, type SelectInputProps, SelectItem, type SelectItemProps, SelectLoading, type SelectLoadingProps, type SelectProps, SelectRadioGroup, SelectRadioItem, type SelectRadioItemProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Separator, Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarMenuItem, SidebarProvider, SidebarSection, SidebarToggle, SingleSelect, Skeleton, SortIcon, Spinner, type SpinnerProps, Stack, type StringOperator, Switch, SwitchSection, type SwitchSectionProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFilterDateRangeSelect, TableFilterDateSelect, MultiSelect as TableFilterMultiSelect, TableFilterSingleSelect, FilterTitle as TableFilterTitle, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, TablePagination, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, TextField, type TextFieldProps, Textarea, type TextareaProps, type Theme, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, TimePicker, type TimePickerProps, type TimeValue12, type TimeValue24, Toaster, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupMultipleProps, type ToggleGroupProps, type ToggleGroupSingleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseFloatingLabelOptions, type UseFloatingLabelReturn, type UseRangeValueOptions, type UseRangeValueReturn, type ValueSuggestion, alignFromClassName, clamp, cn, fixPrecision, getDecimals, getPaginationRange, getSortedColumnState, normalize, sanitizeUserText, snap, tagVariants, toast, useColumnFilter, useFloatingLabel, useFormControlContext, useFormField, useMultiSelectContext, useOptionalTheme, useRangeValue, useSelectContext, useSidebar, useTheme };
|
package/dist/index.d.ts
CHANGED
|
@@ -311,10 +311,6 @@ interface ValueSuggestion {
|
|
|
311
311
|
/** 팝오버에 표시되는 텍스트 */
|
|
312
312
|
label: string;
|
|
313
313
|
}
|
|
314
|
-
interface PopoverPosition {
|
|
315
|
-
x: number;
|
|
316
|
-
y: number;
|
|
317
|
-
}
|
|
318
314
|
interface ColumnFilterContextType {
|
|
319
315
|
disabled?: boolean;
|
|
320
316
|
columns: ColumnDefinition[];
|
|
@@ -323,7 +319,8 @@ interface ColumnFilterContextType {
|
|
|
323
319
|
editingFilter: EditingFilter | null;
|
|
324
320
|
activePopover: PopoverType;
|
|
325
321
|
popoverTrigger: PopoverTrigger$1;
|
|
326
|
-
|
|
322
|
+
/** 팝오버를 연 요소(검색·값 입력, 컬럼·연산자 버튼). 팝오버는 이 아래에 붙고, Esc·Tab 으로 닫으면 포커스가 여기로 돌아온다 */
|
|
323
|
+
popoverAnchor: HTMLElement | null;
|
|
327
324
|
addFilter: (filter: Omit<FilterCondition, 'id'>) => void;
|
|
328
325
|
removeFilter: (id: string) => void;
|
|
329
326
|
updateFilter: (id: string, updates: Partial<FilterCondition>) => void;
|
|
@@ -336,7 +333,7 @@ interface ColumnFilterContextType {
|
|
|
336
333
|
cancelEditing: () => void;
|
|
337
334
|
editExistingFilter: (id: string) => void;
|
|
338
335
|
editingFilterId: string | null;
|
|
339
|
-
openPopover: (type: PopoverType,
|
|
336
|
+
openPopover: (type: PopoverType, anchor: HTMLElement, trigger?: PopoverTrigger$1) => void;
|
|
340
337
|
closePopover: () => void;
|
|
341
338
|
columnSuggestionIndex: number;
|
|
342
339
|
setColumnSuggestionIndex: (index: number) => void;
|
|
@@ -1273,15 +1270,37 @@ interface RadioSectionProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>,
|
|
|
1273
1270
|
*/
|
|
1274
1271
|
declare function RadioSection({ title, description, selected, disabled, onSelect, value, className, onClick, onKeyDown, ...props }: RadioSectionProps): react_jsx_runtime.JSX.Element;
|
|
1275
1272
|
|
|
1276
|
-
|
|
1273
|
+
/** 두 루트가 똑같이 가진 것. 공통 부품(Content·Input·Group·Loading·Separator·Item)은 이것만 읽는다 */
|
|
1274
|
+
interface SelectRootContextBase {
|
|
1277
1275
|
open: boolean;
|
|
1278
1276
|
setOpen: (open: boolean) => void;
|
|
1279
|
-
value: string | undefined;
|
|
1280
|
-
onValueChange: (value: string) => void;
|
|
1281
1277
|
disabled?: boolean;
|
|
1282
|
-
/** value ->
|
|
1278
|
+
/** value -> 화면 글자 (트리거·칩 표시용) */
|
|
1283
1279
|
labelMap: Map<string, string>;
|
|
1284
1280
|
registerLabel: (value: string, label: string) => void;
|
|
1281
|
+
/** 검색어. 검색창·MultiSelect 트리거 입력·cmdk 필터가 함께 쓴다. 목록이 닫히면 비워진다 */
|
|
1282
|
+
searchTerm: string;
|
|
1283
|
+
setSearchTerm: (term: string) => void;
|
|
1284
|
+
/** 이 값이 골라져 있는가 — 하나만 고르기와 여럿 고르기의 차이는 이것과 `selectItem` 에만 있다 */
|
|
1285
|
+
isSelected: (value: string) => boolean;
|
|
1286
|
+
/** 항목을 골랐을 때. Select 는 그 값으로 바꾸고 닫는다, MultiSelect 는 넣거나 빼고 검색어를 비운다 */
|
|
1287
|
+
selectItem: (value: string) => void;
|
|
1288
|
+
}
|
|
1289
|
+
interface SelectContextValue extends SelectRootContextBase {
|
|
1290
|
+
slot: 'select';
|
|
1291
|
+
value: string | undefined;
|
|
1292
|
+
onValueChange: (value: string) => void;
|
|
1293
|
+
}
|
|
1294
|
+
interface MultiSelectContextValue extends SelectRootContextBase {
|
|
1295
|
+
slot: 'multi-select';
|
|
1296
|
+
/** 현재 선택된 값 배열 */
|
|
1297
|
+
values: string[];
|
|
1298
|
+
/** 값을 토글 (선택/해제) */
|
|
1299
|
+
onToggleValue: (value: string) => void;
|
|
1300
|
+
/** 특정 값 제거 */
|
|
1301
|
+
onRemoveValue: (value: string) => void;
|
|
1302
|
+
/** 모든 값 제거 */
|
|
1303
|
+
onClearAll: () => void;
|
|
1285
1304
|
}
|
|
1286
1305
|
interface SelectProps {
|
|
1287
1306
|
value?: string;
|
|
@@ -1316,43 +1335,27 @@ interface SelectItemProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, '
|
|
|
1316
1335
|
disabled?: boolean;
|
|
1317
1336
|
/** 아이템 하단 설명 텍스트 (trigger에 표시되지 않음) */
|
|
1318
1337
|
description?: string;
|
|
1319
|
-
/** trigger에 표시할 텍스트. 미지정 시 children에서 추출 */
|
|
1320
|
-
textValue?: string;
|
|
1321
|
-
/** title 과 description 사이에 표시할 메타 정보 배열 (라벨/구분자/값) */
|
|
1322
|
-
meta?: MetaItemProps[];
|
|
1323
|
-
/** title row 앞 위치에 렌더될 슬롯 */
|
|
1324
|
-
elemBefore?: React$1.ReactNode;
|
|
1325
1338
|
/**
|
|
1326
|
-
*
|
|
1327
|
-
*
|
|
1328
|
-
*
|
|
1339
|
+
* trigger(MultiSelect 는 칩)에 표시하고 검색에 쓰는 텍스트.
|
|
1340
|
+
* 미지정 시 children 의 글자를 쓴다 — `{name} ({code})`·`<b>이름</b>` 처럼 나뉘어 있어도 이어 붙인다.
|
|
1341
|
+
* children 이 글자를 props 로 받는 컴포넌트뿐이면 글자를 알 수 없어 value 를 쓰므로 그때는 지정한다.
|
|
1329
1342
|
*/
|
|
1330
|
-
elemBeforeAlign?: 'center' | 'title';
|
|
1331
|
-
/** title 텍스트 우측에 렌더될 슬롯 */
|
|
1332
|
-
elemAfter?: React$1.ReactNode;
|
|
1333
|
-
children: React$1.ReactNode;
|
|
1334
|
-
}
|
|
1335
|
-
interface SelectRadioItemProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'onSelect'> {
|
|
1336
|
-
value: string;
|
|
1337
|
-
disabled?: boolean;
|
|
1338
|
-
/** 아이템 하단 설명 텍스트 */
|
|
1339
|
-
description?: string;
|
|
1340
|
-
/** trigger에 표시할 텍스트 */
|
|
1341
1343
|
textValue?: string;
|
|
1342
1344
|
/** title 과 description 사이에 표시할 메타 정보 배열 (라벨/구분자/값) */
|
|
1343
1345
|
meta?: MetaItemProps[];
|
|
1344
|
-
/**
|
|
1346
|
+
/** title row 앞(라디오·체크박스 인디케이터가 있으면 그 다음)에 렌더될 슬롯 */
|
|
1345
1347
|
elemBefore?: React$1.ReactNode;
|
|
1346
1348
|
/**
|
|
1347
1349
|
* elemBefore 배치 방식.
|
|
1348
|
-
* - `'center'`(기본): 선행 컬럼 — 전체
|
|
1349
|
-
* - `'title'`: title 행
|
|
1350
|
+
* - `'center'`(기본): SelectItemContent 바깥 선행 컬럼 — 멀티라인 전체 높이에 중앙 정렬하며 이름·meta 를 모두 우측으로 밀어냄.
|
|
1351
|
+
* - `'title'`: title 행 안에 인라인 — 이름만 우측으로 밀고 meta/description 행은 콘텐츠 좌측 정렬 유지(항목 간 meta 시작 위치 일치).
|
|
1350
1352
|
*/
|
|
1351
1353
|
elemBeforeAlign?: 'center' | 'title';
|
|
1352
1354
|
/** title 텍스트 우측에 렌더될 슬롯 */
|
|
1353
1355
|
elemAfter?: React$1.ReactNode;
|
|
1354
1356
|
children: React$1.ReactNode;
|
|
1355
1357
|
}
|
|
1358
|
+
type SelectRadioItemProps = SelectItemProps;
|
|
1356
1359
|
interface SelectInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value'> {
|
|
1357
1360
|
onChange?: (value: string) => void;
|
|
1358
1361
|
}
|
|
@@ -1375,25 +1378,6 @@ declare const selectTriggerVariants: (props?: ({
|
|
|
1375
1378
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1376
1379
|
declare const SelectTrigger: React$1.ForwardRefExoticComponent<SelectTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1377
1380
|
|
|
1378
|
-
interface MultiSelectContextValue {
|
|
1379
|
-
open: boolean;
|
|
1380
|
-
setOpen: (open: boolean) => void;
|
|
1381
|
-
/** 현재 선택된 값 배열 */
|
|
1382
|
-
values: string[];
|
|
1383
|
-
/** 값을 토글 (선택/해제) */
|
|
1384
|
-
onToggleValue: (value: string) => void;
|
|
1385
|
-
/** 특정 값 제거 */
|
|
1386
|
-
onRemoveValue: (value: string) => void;
|
|
1387
|
-
/** 모든 값 제거 */
|
|
1388
|
-
onClearAll: () => void;
|
|
1389
|
-
disabled?: boolean;
|
|
1390
|
-
/** value -> display text 매핑 (trigger 태그 표시용) */
|
|
1391
|
-
labelMap: Map<string, string>;
|
|
1392
|
-
registerLabel: (value: string, label: string) => void;
|
|
1393
|
-
/** 인라인 검색어 (trigger input과 content cmdk 필터 간 공유) */
|
|
1394
|
-
searchTerm: string;
|
|
1395
|
-
setSearchTerm: (term: string) => void;
|
|
1396
|
-
}
|
|
1397
1381
|
interface MultiSelectProps$1 {
|
|
1398
1382
|
value?: string[];
|
|
1399
1383
|
defaultValue?: string[];
|
|
@@ -1424,48 +1408,6 @@ interface MultiSelectTriggerProps extends Omit<React$1.HTMLAttributes<HTMLDivEle
|
|
|
1424
1408
|
/** 입력 영역 우측 아이콘 (chevron 앞) */
|
|
1425
1409
|
elemAfterInput?: React$1.ReactNode;
|
|
1426
1410
|
}
|
|
1427
|
-
interface MultiSelectContentProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1428
|
-
/** Popover 정렬 */
|
|
1429
|
-
align?: 'start' | 'center' | 'end';
|
|
1430
|
-
/** Popover 오프셋 (px) */
|
|
1431
|
-
sideOffset?: number;
|
|
1432
|
-
}
|
|
1433
|
-
interface MultiSelectItemProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, 'onSelect'> {
|
|
1434
|
-
value: string;
|
|
1435
|
-
disabled?: boolean;
|
|
1436
|
-
/** 아이템 하단 설명 텍스트 */
|
|
1437
|
-
description?: string;
|
|
1438
|
-
/** trigger 태그에 표시할 텍스트. 미지정 시 children에서 추출 */
|
|
1439
|
-
textValue?: string;
|
|
1440
|
-
/** title 과 description 사이에 표시할 메타 정보 배열 (라벨/구분자/값) */
|
|
1441
|
-
meta?: MetaItemProps[];
|
|
1442
|
-
/** checkbox indicator 다음, title row 앞에 렌더될 슬롯 */
|
|
1443
|
-
elemBefore?: React$1.ReactNode;
|
|
1444
|
-
/**
|
|
1445
|
-
* elemBefore 배치 방식.
|
|
1446
|
-
* - `'center'`(기본): 선행 컬럼 — 전체 높이 중앙 정렬(이름·meta 우측 이동)
|
|
1447
|
-
* - `'title'`: title 행 안 인라인 — 이름만 밀고 meta 는 콘텐츠 좌측 유지
|
|
1448
|
-
*/
|
|
1449
|
-
elemBeforeAlign?: 'center' | 'title';
|
|
1450
|
-
/** title 텍스트 우측에 렌더될 슬롯 */
|
|
1451
|
-
elemAfter?: React$1.ReactNode;
|
|
1452
|
-
children: React$1.ReactNode;
|
|
1453
|
-
}
|
|
1454
|
-
interface MultiSelectInputProps extends Omit<React$1.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value'> {
|
|
1455
|
-
onChange?: (value: string) => void;
|
|
1456
|
-
}
|
|
1457
|
-
interface MultiSelectGroupProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1458
|
-
/** 그룹 제목 (cmdk Group heading 으로 렌더) */
|
|
1459
|
-
heading?: React$1.ReactNode;
|
|
1460
|
-
children: React$1.ReactNode;
|
|
1461
|
-
}
|
|
1462
|
-
interface MultiSelectLoadingProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1463
|
-
children?: React$1.ReactNode;
|
|
1464
|
-
}
|
|
1465
|
-
interface MultiSelectEmptyProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
1466
|
-
children?: React$1.ReactNode;
|
|
1467
|
-
}
|
|
1468
|
-
type MultiSelectSeparatorProps = React$1.HTMLAttributes<HTMLDivElement>;
|
|
1469
1411
|
|
|
1470
1412
|
/**
|
|
1471
1413
|
* 드롭다운에서 여러 개를 고르는 폼 입력. 선택한 항목은 칩으로 보여 준다.
|
|
@@ -1474,24 +1416,27 @@ type MultiSelectSeparatorProps = React$1.HTMLAttributes<HTMLDivElement>;
|
|
|
1474
1416
|
* 언제 안 쓰나: 하나만 고르는 경우(→ Select), 선택지가 적어 한눈에 보여야 하는 경우(→ Checkbox 묶음), 목록 화면 필터(→ TableFilterMultiSelect).
|
|
1475
1417
|
* 대신/함께: 칩 라벨도 마운트된 아이템에서 얻으므로 미로드 값은 `useMultiSelectContext().registerLabel` 로 등록한다.
|
|
1476
1418
|
*/
|
|
1477
|
-
declare function MultiSelect$1({ value: controlledValue, defaultValue, onValueChange, open
|
|
1419
|
+
declare function MultiSelect$1({ value: controlledValue, defaultValue, onValueChange, open, defaultOpen, onOpenChange, onSearchChange, disabled, className, children, }: MultiSelectProps$1): react_jsx_runtime.JSX.Element;
|
|
1478
1420
|
|
|
1479
|
-
declare const
|
|
1421
|
+
declare const MultiSelectEmpty: React$1.ForwardRefExoticComponent<SelectEmptyProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1480
1422
|
|
|
1481
|
-
declare const
|
|
1423
|
+
declare const MultiSelectTrigger: React$1.ForwardRefExoticComponent<MultiSelectTriggerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1482
1424
|
|
|
1483
|
-
declare const
|
|
1425
|
+
declare const SelectContent: React$1.ForwardRefExoticComponent<SelectContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1484
1426
|
|
|
1485
|
-
declare const
|
|
1427
|
+
declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1486
1428
|
|
|
1487
|
-
declare const
|
|
1429
|
+
declare const SelectInput: React$1.ForwardRefExoticComponent<SelectInputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
1488
1430
|
|
|
1489
|
-
declare const
|
|
1431
|
+
declare const SelectItem: React$1.ForwardRefExoticComponent<SelectItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1432
|
+
declare const SelectRadioItem: React$1.ForwardRefExoticComponent<SelectItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1433
|
+
declare const MultiSelectItem: React$1.ForwardRefExoticComponent<SelectItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1490
1434
|
|
|
1491
|
-
declare const
|
|
1435
|
+
declare const SelectLoading: React$1.ForwardRefExoticComponent<SelectLoadingProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1492
1436
|
|
|
1493
|
-
declare const
|
|
1437
|
+
declare const SelectSeparator: React$1.ForwardRefExoticComponent<SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1494
1438
|
|
|
1439
|
+
declare function useSelectContext(): SelectContextValue;
|
|
1495
1440
|
declare function useMultiSelectContext(): MultiSelectContextValue;
|
|
1496
1441
|
|
|
1497
1442
|
/**
|
|
@@ -1501,33 +1446,17 @@ declare function useMultiSelectContext(): MultiSelectContextValue;
|
|
|
1501
1446
|
* 언제 안 쓰나: 선택지 2~4개(→ RadioGroup·RadioSection), 여러 개 선택(→ MultiSelect), 목록 화면 상단 필터(→ TableFilterSingleSelect), 켜고 끄기(→ Switch).
|
|
1502
1447
|
* 대신/함께: 트리거 라벨은 `SelectItem` 에서 얻는다 — 닫혀 있어도 항목이 이름을 등록하므로 미리 정한 값도 펼치기 전에 이름으로 보인다. 목록에 아직 없는 값(비동기로 오는 항목)만 `useSelectContext().registerLabel` 로 미리 등록한다.
|
|
1503
1448
|
*/
|
|
1504
|
-
declare function Select({ value: controlledValue, defaultValue, onValueChange, open
|
|
1505
|
-
|
|
1506
|
-
declare const SelectContent: React$1.ForwardRefExoticComponent<SelectContentProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1449
|
+
declare function Select({ value: controlledValue, defaultValue, onValueChange, open, defaultOpen, onOpenChange, disabled, className, children, }: SelectProps): react_jsx_runtime.JSX.Element;
|
|
1507
1450
|
|
|
1508
1451
|
declare const SelectEmpty: React$1.ForwardRefExoticComponent<SelectEmptyProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1509
1452
|
|
|
1510
|
-
declare const SelectGroup: React$1.ForwardRefExoticComponent<SelectGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1511
|
-
|
|
1512
|
-
declare const SelectInput: React$1.ForwardRefExoticComponent<SelectInputProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
1513
|
-
|
|
1514
|
-
declare const SelectItem: React$1.ForwardRefExoticComponent<SelectItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1515
|
-
|
|
1516
|
-
declare const SelectLoading: React$1.ForwardRefExoticComponent<SelectLoadingProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1517
|
-
|
|
1518
1453
|
interface SelectRadioGroupProps extends React$1.ComponentPropsWithoutRef<typeof Command$1.Group> {
|
|
1519
1454
|
children: React$1.ReactNode;
|
|
1520
1455
|
}
|
|
1521
1456
|
declare const SelectRadioGroup: React$1.ForwardRefExoticComponent<SelectRadioGroupProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1522
1457
|
|
|
1523
|
-
declare const SelectRadioItem: React$1.ForwardRefExoticComponent<SelectRadioItemProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1524
|
-
|
|
1525
|
-
declare const SelectSeparator: React$1.ForwardRefExoticComponent<SelectSeparatorProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
1526
|
-
|
|
1527
1458
|
declare function SelectValue({ placeholder }: SelectValueProps): react_jsx_runtime.JSX.Element;
|
|
1528
1459
|
|
|
1529
|
-
declare function useSelectContext(): SelectContextValue;
|
|
1530
|
-
|
|
1531
1460
|
/**
|
|
1532
1461
|
* 가로·세로 1px 구분선.
|
|
1533
1462
|
*
|
|
@@ -2790,4 +2719,4 @@ declare function cn(...inputs: ClassValue[]): string;
|
|
|
2790
2719
|
*/
|
|
2791
2720
|
declare function sanitizeUserText(node: React$1.ReactNode): React$1.ReactNode;
|
|
2792
2721
|
|
|
2793
|
-
export { AG_GRID_LOCALE_KR, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AgGridContext, type AgGridContextType, Alert, AlertActions, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, BadgeProps, Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardThumbnail, CardTitle, Checkbox, type CheckboxProps, CheckboxSection, CheckboxSectionGroup, type CheckboxSectionGroupProps, type CheckboxSectionProps, type ColumnDefinition, ColumnFilter, type ColumnFilterContextType, ColumnFilterInput, type ColumnFilterInputProps, ColumnFilterPopover, type ColumnFilterPopoverProps, type ColumnFilterProps, ColumnFilterTag, type ColumnFilterTagProps, type ColumnType, ColumnVisibilityFilter, type ColumnVisibilityFilterProps, type ColumnVisibilityOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_PARAMETER_TABLE_COLUMNS, DatePicker, type DatePickerProps, DatePickerRange, type DatePickerRangeProps, DatePresets, type DatePresetsProps, DateRangePresets, type DateRangePresetsProps, DateRangeSelect, DateSelect, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type EditingFilter, EmptyBoxIllustration, type EventLevel, EventList, type EventListItem, type EventListProps, FileTree, type FileTreeEventNode, type FileTreeNode, type FileTreeProps, type FilterCondition, Form, FormControl, FormDescription, type FormDescriptionProps, FormField, FormFooter, FormHeader, FormItem, FormLabel, FormMessage, FormSection, FormSectionLevelContext, FormValidMessage, type HourType, IconButton, type IconButtonProps, IconSelect, type IconSelectProps, Label, LucideIcon, type LucideIconProps, MetaGroup, MetaItem, type MetaItemProps, MetaList, type MetaListProps, MetaRow, type MetaRowProps, MultiSelect$1 as MultiSelect, MultiSelectContent, type MultiSelectContentProps, MultiSelectEmpty, type MultiSelectEmptyProps, MultiSelectGroup, type MultiSelectGroupProps, MultiSelectInput, type MultiSelectInputProps, MultiSelectItem, type MultiSelectItemProps, MultiSelectLoading, type MultiSelectLoadingProps, type MultiSelectProps$1 as MultiSelectProps, MultiSelectSeparator, type MultiSelectSeparatorProps, MultiSelectTrigger, type MultiSelectTriggerProps, NUMBER_COLUMN_CLASS, type NumberOperator, OPERATORS_BY_TYPE, OPERATOR_LABELS, type Operator, type OperatorOverridesByColumn, type OperatorOverridesByType, type Option, PageHeaderRefreshButton, type PageHeaderRefreshButtonProps, Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, type PaginationPropsType, PaginationWrapper, Panel, type PanelProps, ParameterTable, type ParameterTableActiveCell, type ParameterTableCanDeleteRow, type ParameterTableCanEditCell, type ParameterTableCellErrors, type ParameterTableColumn, type ParameterTableExtraColumn, type ParameterTableProps, type ParameterTableRow, type ParameterTableSpacing, Popover, PopoverAnchor, PopoverContent,
|
|
2722
|
+
export { AG_GRID_LOCALE_KR, Accordion, AccordionContent, AccordionItem, AccordionTrigger, AgGridContext, type AgGridContextType, Alert, AlertActions, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, BadgeProps, Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Calendar, type CalendarProps, Card, CardContent, CardDescription, CardFooter, CardHeader, CardThumbnail, CardTitle, Checkbox, type CheckboxProps, CheckboxSection, CheckboxSectionGroup, type CheckboxSectionGroupProps, type CheckboxSectionProps, type ColumnDefinition, ColumnFilter, type ColumnFilterContextType, ColumnFilterInput, type ColumnFilterInputProps, ColumnFilterPopover, type ColumnFilterPopoverProps, type ColumnFilterProps, ColumnFilterTag, type ColumnFilterTagProps, type ColumnType, ColumnVisibilityFilter, type ColumnVisibilityFilterProps, type ColumnVisibilityOption, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, DEFAULT_PARAMETER_TABLE_COLUMNS, DatePicker, type DatePickerProps, DatePickerRange, type DatePickerRangeProps, DatePresets, type DatePresetsProps, DateRangePresets, type DateRangePresetsProps, DateRangeSelect, DateSelect, DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuPortal, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type EditingFilter, EmptyBoxIllustration, type EventLevel, EventList, type EventListItem, type EventListProps, FileTree, type FileTreeEventNode, type FileTreeNode, type FileTreeProps, type FilterCondition, Form, FormControl, FormDescription, type FormDescriptionProps, FormField, FormFooter, FormHeader, FormItem, FormLabel, FormMessage, FormSection, FormSectionLevelContext, FormValidMessage, type HourType, IconButton, type IconButtonProps, IconSelect, type IconSelectProps, Label, LucideIcon, type LucideIconProps, MetaGroup, MetaItem, type MetaItemProps, MetaList, type MetaListProps, MetaRow, type MetaRowProps, MultiSelect$1 as MultiSelect, SelectContent as MultiSelectContent, type SelectContentProps as MultiSelectContentProps, MultiSelectEmpty, type SelectEmptyProps as MultiSelectEmptyProps, SelectGroup as MultiSelectGroup, type SelectGroupProps as MultiSelectGroupProps, SelectInput as MultiSelectInput, type SelectInputProps as MultiSelectInputProps, MultiSelectItem, type SelectItemProps as MultiSelectItemProps, SelectLoading as MultiSelectLoading, type SelectLoadingProps as MultiSelectLoadingProps, type MultiSelectProps$1 as MultiSelectProps, SelectSeparator as MultiSelectSeparator, type SelectSeparatorProps as MultiSelectSeparatorProps, MultiSelectTrigger, type MultiSelectTriggerProps, NUMBER_COLUMN_CLASS, type NumberOperator, OPERATORS_BY_TYPE, OPERATOR_LABELS, type Operator, type OperatorOverridesByColumn, type OperatorOverridesByType, type Option, PageHeaderRefreshButton, type PageHeaderRefreshButtonProps, Pagination, PaginationContent, PaginationFirst, PaginationItem, PaginationLast, PaginationLink, PaginationNext, PaginationPrevious, type PaginationPropsType, PaginationWrapper, Panel, type PanelProps, ParameterTable, type ParameterTableActiveCell, type ParameterTableCanDeleteRow, type ParameterTableCanEditCell, type ParameterTableCellErrors, type ParameterTableColumn, type ParameterTableExtraColumn, type ParameterTableProps, type ParameterTableRow, type ParameterTableSpacing, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, type PopoverType, Progress, type ProgressProps, Radio, RadioGroup, RadioGroupItem, RadioSection, RadioSectionGroup, type RadioSectionGroupProps, type RadioSectionProps, Range, type RangeBounds, type RangeMark, type RangeProps, RangeSlider, type RangeSliderProps, type ResolvedTheme, Select, SelectContent, type SelectContentProps, SelectEmpty, type SelectEmptyProps, SelectGroup, type SelectGroupProps, SelectInput, type SelectInputProps, SelectItem, type SelectItemProps, SelectLoading, type SelectLoadingProps, type SelectProps, SelectRadioGroup, SelectRadioItem, type SelectRadioItemProps, SelectSeparator, type SelectSeparatorProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Separator, Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarMenuItem, SidebarProvider, SidebarSection, SidebarToggle, SingleSelect, Skeleton, SortIcon, Spinner, type SpinnerProps, Stack, type StringOperator, Switch, SwitchSection, type SwitchSectionProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableFilterDateRangeSelect, TableFilterDateSelect, MultiSelect as TableFilterMultiSelect, TableFilterSingleSelect, FilterTitle as TableFilterTitle, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, TablePagination, TableRow, TableSkeleton, Tabs, TabsContent, TabsList, TabsTrigger, Tag, type TagProps, TextField, type TextFieldProps, Textarea, type TextareaProps, type Theme, type ThemeContextValue, ThemeProvider, type ThemeProviderProps, TimePicker, type TimePickerProps, type TimeValue12, type TimeValue24, Toaster, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupMultipleProps, type ToggleGroupProps, type ToggleGroupSingleProps, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, type UseFloatingLabelOptions, type UseFloatingLabelReturn, type UseRangeValueOptions, type UseRangeValueReturn, type ValueSuggestion, alignFromClassName, clamp, cn, fixPrecision, getDecimals, getPaginationRange, getSortedColumnState, normalize, sanitizeUserText, snap, tagVariants, toast, useColumnFilter, useFloatingLabel, useFormControlContext, useFormField, useMultiSelectContext, useOptionalTheme, useRangeValue, useSelectContext, useSidebar, useTheme };
|