@aivex/ui 1.2.0-dev.53 → 1.2.0-dev.55
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/dist/components/DataGrid/DataGrid.cjs +1 -1
- package/dist/components/DataGrid/DataGrid.cjs.map +1 -1
- package/dist/components/DataGrid/DataGrid.js +68 -70
- package/dist/components/DataGrid/DataGrid.js.map +1 -1
- package/dist/components/DataGrid/DataGridColumnSettings.cjs +1 -1
- package/dist/components/DataGrid/DataGridColumnSettings.js +17 -17
- package/dist/components/DataGrid/DataGridColumnSettings.js.map +1 -1
- package/dist/components/DataGrid/DataGridPrimitives.cjs +1 -1
- package/dist/components/DataGrid/DataGridPrimitives.cjs.map +1 -1
- package/dist/components/DataGrid/DataGridPrimitives.js +60 -62
- package/dist/components/DataGrid/DataGridPrimitives.js.map +1 -1
- package/dist/components/Drawer/Drawer.cjs +1 -1
- package/dist/components/Drawer/Drawer.cjs.map +1 -1
- package/dist/components/Drawer/Drawer.d.ts +59 -11
- package/dist/components/Drawer/Drawer.js +87 -29
- package/dist/components/Drawer/Drawer.js.map +1 -1
- package/dist/components/Drawer/index.d.ts +1 -1
- package/dist/components/Overlay/Overlay.cjs.map +1 -1
- package/dist/components/Overlay/Overlay.d.ts +1 -1
- package/dist/components/Overlay/Overlay.js.map +1 -1
- package/dist/components/Panel/Panel.cjs +1 -1
- package/dist/components/Panel/Panel.cjs.map +1 -1
- package/dist/components/Panel/Panel.d.ts +77 -8
- package/dist/components/Panel/Panel.js +83 -46
- package/dist/components/Panel/Panel.js.map +1 -1
- package/dist/components/Panel/index.d.ts +1 -1
- package/dist/components/TruncatedText/TruncatedText.cjs +2 -0
- package/dist/components/TruncatedText/TruncatedText.cjs.map +1 -0
- package/dist/components/TruncatedText/TruncatedText.d.ts +22 -0
- package/dist/components/TruncatedText/TruncatedText.js +71 -0
- package/dist/components/TruncatedText/TruncatedText.js.map +1 -0
- package/dist/components/TruncatedText/index.d.ts +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +41 -40
- package/dist/styles.css +1 -1
- package/dist/tokens/tokens.css +1 -1
- package/dist/utils/sheet.cjs +2 -0
- package/dist/utils/sheet.cjs.map +1 -0
- package/dist/utils/sheet.d.ts +17 -0
- package/dist/utils/sheet.js +7 -0
- package/dist/utils/sheet.js.map +1 -0
- package/dist/utils/useResizableWidth.cjs +2 -0
- package/dist/utils/useResizableWidth.cjs.map +1 -0
- package/dist/utils/useResizableWidth.d.ts +30 -0
- package/dist/utils/useResizableWidth.js +32 -0
- package/dist/utils/useResizableWidth.js.map +1 -0
- package/package.json +2 -1
|
@@ -1,13 +1,82 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type CSSProperties, type ReactNode, type Ref } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* 레이아웃용 사이드 패널. 화면 위에 덮이는 시트가 필요하면 Drawer를 쓴다.
|
|
4
|
+
*
|
|
5
|
+
* ```tsx
|
|
6
|
+
* <div className="flex h-full">
|
|
7
|
+
* <main className="min-w-0 flex-1">…</main>
|
|
8
|
+
* <Panel side="right" width={300}>
|
|
9
|
+
* <Panel.Header action={…}>라벨</Panel.Header>
|
|
10
|
+
* <Panel.Section title="클래스">…</Panel.Section>
|
|
11
|
+
* <Panel.Section title="라벨 목록" fill>…</Panel.Section>
|
|
12
|
+
* <Panel.Footer>…</Panel.Footer>
|
|
13
|
+
* </Panel>
|
|
14
|
+
* </div>
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
2
17
|
export interface PanelProps {
|
|
3
|
-
open?: boolean;
|
|
4
|
-
onOpenChange?: (open: boolean) => void;
|
|
5
|
-
title: ReactNode;
|
|
6
18
|
children: ReactNode;
|
|
7
|
-
|
|
19
|
+
/** 패널이 본문의 어느 쪽에 붙는지 — 구분선이 반대쪽 모서리에 생긴다. */
|
|
8
20
|
side?: "left" | "right";
|
|
9
|
-
|
|
10
|
-
|
|
21
|
+
/** 폭. 숫자는 px, 문자열은 CSS 길이. 기본 420px(Figma). style.width가 있으면 그쪽이 이긴다. */
|
|
22
|
+
width?: number | string;
|
|
23
|
+
/**
|
|
24
|
+
* 접근성 이름. 생략하면 Panel.Header의 제목을 쓴다. 둘 다 없으면 이름 없는
|
|
25
|
+
* complementary 영역이 된다.
|
|
26
|
+
*/
|
|
27
|
+
"aria-label"?: string;
|
|
28
|
+
className?: string;
|
|
29
|
+
style?: CSSProperties;
|
|
30
|
+
ref?: Ref<HTMLElement>;
|
|
11
31
|
}
|
|
12
|
-
declare function
|
|
32
|
+
declare function PanelRoot({ children, side, width, "aria-label": ariaLabel, className, style, ref, }: PanelProps): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
export interface PanelHeaderProps {
|
|
34
|
+
/** 제목 — 패널의 접근성 이름도 된다. */
|
|
35
|
+
children: ReactNode;
|
|
36
|
+
/** 제목 아래 보조 설명. */
|
|
37
|
+
description?: ReactNode;
|
|
38
|
+
/** 오른쪽 끝의 보조 동작(설정·닫기·접기 버튼 등). */
|
|
39
|
+
action?: ReactNode;
|
|
40
|
+
className?: string;
|
|
41
|
+
}
|
|
42
|
+
/** 표준 헤더 — 제목·설명·보조 동작. Drawer.Header와 같은 높이(50px)·간격·구분선(Figma Header). */
|
|
43
|
+
declare function PanelHeader({ children, description, action, className }: PanelHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
export interface PanelSectionProps {
|
|
45
|
+
children?: ReactNode;
|
|
46
|
+
/** 섹션 제목. 생략하면 제목 줄 없이 내용만 둔다. */
|
|
47
|
+
title?: ReactNode;
|
|
48
|
+
/** 제목 줄 오른쪽 보조 동작(메뉴 버튼 등). */
|
|
49
|
+
action?: ReactNode;
|
|
50
|
+
/**
|
|
51
|
+
* 남은 높이를 채우고 내용이 넘치면 섹션 안에서 세로 스크롤한다 — 라벨 목록처럼
|
|
52
|
+
* 길어지는 섹션에 쓴다. 기본은 내용 높이만큼 차지한다.
|
|
53
|
+
*/
|
|
54
|
+
fill?: boolean;
|
|
55
|
+
className?: string;
|
|
56
|
+
}
|
|
57
|
+
/** 제목이 붙은 묶음. 섹션이 이어지면 사이에 구분선이 생긴다. */
|
|
58
|
+
declare function PanelSection({ children, title, action, fill, className }: PanelSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
export interface PanelBodyProps {
|
|
60
|
+
children: ReactNode;
|
|
61
|
+
/**
|
|
62
|
+
* 사방 16px 여백(Figma Body). 기본 true. 목록·표처럼 가장자리까지 붙는 내용은
|
|
63
|
+
* false로 끈다.
|
|
64
|
+
*/
|
|
65
|
+
padded?: boolean;
|
|
66
|
+
className?: string;
|
|
67
|
+
}
|
|
68
|
+
/** 헤더·푸터 사이 남은 높이를 채우는 본문 — 넘치면 이 안에서 세로 스크롤한다. */
|
|
69
|
+
declare function PanelBody({ children, padded, className }: PanelBodyProps): import("react/jsx-runtime").JSX.Element;
|
|
70
|
+
export interface PanelFooterProps {
|
|
71
|
+
children: ReactNode;
|
|
72
|
+
className?: string;
|
|
73
|
+
}
|
|
74
|
+
/** 아래에 고정되는 영역(신뢰도 조절, 적용 버튼 등). 위에 구분선이 생긴다. */
|
|
75
|
+
declare function PanelFooter({ children, className }: PanelFooterProps): import("react/jsx-runtime").JSX.Element;
|
|
76
|
+
declare const Panel: typeof PanelRoot & {
|
|
77
|
+
Header: typeof PanelHeader;
|
|
78
|
+
Section: typeof PanelSection;
|
|
79
|
+
Body: typeof PanelBody;
|
|
80
|
+
Footer: typeof PanelFooter;
|
|
81
|
+
};
|
|
13
82
|
export { Panel };
|
|
@@ -1,55 +1,92 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { cn as e } from "../../utils.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
8
|
-
import * as s from "@radix-ui/react-dialog";
|
|
3
|
+
import { sheetActionsClassName as t, sheetBodyClassName as n, sheetHeaderClassName as r, sheetTitleClassName as i } from "../../utils/sheet.js";
|
|
4
|
+
import { cva as a } from "class-variance-authority";
|
|
5
|
+
import { createContext as o, useContext as s, useId as c } from "react";
|
|
6
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
9
7
|
//#region src/components/Panel/Panel.tsx
|
|
10
|
-
var
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
8
|
+
var d = o(void 0), f = a("aivex:flex aivex:h-full aivex:min-h-0 aivex:shrink-0 aivex:flex-col aivex:border-border-subtle aivex:bg-bg-primary", {
|
|
9
|
+
variants: { side: {
|
|
10
|
+
left: "aivex:border-r",
|
|
11
|
+
right: "aivex:border-l"
|
|
12
|
+
} },
|
|
13
|
+
defaultVariants: { side: "right" }
|
|
14
|
+
});
|
|
15
|
+
function p({ children: t, side: n = "right", width: r = 420, "aria-label": i, className: a, style: o, ref: s }) {
|
|
16
|
+
let u = c();
|
|
17
|
+
return /* @__PURE__ */ l(d.Provider, {
|
|
18
|
+
value: u,
|
|
19
|
+
children: /* @__PURE__ */ l("aside", {
|
|
20
|
+
ref: s,
|
|
21
|
+
"aria-label": i,
|
|
22
|
+
"aria-labelledby": i ? void 0 : u,
|
|
23
|
+
"data-side": n,
|
|
24
|
+
className: e(f({ side: n }), a),
|
|
25
|
+
style: {
|
|
26
|
+
width: r,
|
|
27
|
+
...o
|
|
27
28
|
},
|
|
28
|
-
children:
|
|
29
|
-
|
|
30
|
-
children: [/* @__PURE__ */ a(s.Title, {
|
|
31
|
-
className: "aivex:m-0 aivex:min-w-0 aivex:flex-1 aivex:truncate aivex:text-label-xl aivex:text-text-primary",
|
|
32
|
-
children: d
|
|
33
|
-
}), /* @__PURE__ */ o("div", {
|
|
34
|
-
className: "aivex:flex aivex:shrink-0 aivex:items-center aivex:gap-md",
|
|
35
|
-
children: [p, /* @__PURE__ */ a(s.Close, {
|
|
36
|
-
asChild: !0,
|
|
37
|
-
children: /* @__PURE__ */ a("button", {
|
|
38
|
-
type: "button",
|
|
39
|
-
className: e("aivex:flex aivex:h-6 aivex:w-6 aivex:shrink-0 aivex:cursor-pointer aivex:items-center aivex:justify-center aivex:rounded-sm", "aivex:text-icon-secondary aivex:transition-colors", "aivex:hover:bg-bg-tertiary aivex:hover:text-icon-primary", "aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand"),
|
|
40
|
-
"aria-label": "Close panel",
|
|
41
|
-
children: /* @__PURE__ */ a(t, { size: 20 })
|
|
42
|
-
})
|
|
43
|
-
})]
|
|
44
|
-
})]
|
|
45
|
-
}), /* @__PURE__ */ a("div", {
|
|
46
|
-
className: "aivex:flex aivex:min-h-0 aivex:flex-1 aivex:flex-col",
|
|
47
|
-
children: f
|
|
48
|
-
})]
|
|
49
|
-
})] })
|
|
29
|
+
children: t
|
|
30
|
+
})
|
|
50
31
|
});
|
|
51
32
|
}
|
|
33
|
+
function m({ children: n, description: a, action: o, className: c }) {
|
|
34
|
+
let f = s(d);
|
|
35
|
+
return /* @__PURE__ */ u("div", {
|
|
36
|
+
className: e(r, c),
|
|
37
|
+
children: [/* @__PURE__ */ u("div", {
|
|
38
|
+
className: "aivex:flex aivex:min-w-0 aivex:flex-1 aivex:flex-col aivex:gap-2xs",
|
|
39
|
+
children: [/* @__PURE__ */ l("h2", {
|
|
40
|
+
id: f,
|
|
41
|
+
className: i,
|
|
42
|
+
children: n
|
|
43
|
+
}), a ? /* @__PURE__ */ l("p", {
|
|
44
|
+
className: "aivex:m-0 aivex:text-body-sm-regular aivex:text-text-secondary",
|
|
45
|
+
children: a
|
|
46
|
+
}) : null]
|
|
47
|
+
}), o ? /* @__PURE__ */ l("div", {
|
|
48
|
+
className: t,
|
|
49
|
+
children: o
|
|
50
|
+
}) : null]
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
function h({ children: t, title: n, action: r, fill: i = !1, className: a }) {
|
|
54
|
+
return /* @__PURE__ */ u("section", {
|
|
55
|
+
className: e("aivex:flex aivex:flex-col aivex:gap-md aivex:px-xl aivex:py-lg", "aivex:[&+section]:border-t aivex:[&+section]:border-border-subtle", i ? "aivex:min-h-0 aivex:flex-1" : "aivex:shrink-0", a),
|
|
56
|
+
children: [n || r ? /* @__PURE__ */ u("div", {
|
|
57
|
+
className: "aivex:flex aivex:min-h-8 aivex:shrink-0 aivex:items-center aivex:justify-between aivex:gap-md",
|
|
58
|
+
children: [/* @__PURE__ */ l("h3", {
|
|
59
|
+
className: "aivex:m-0 aivex:min-w-0 aivex:truncate aivex:text-body-md-medium aivex:text-text-primary",
|
|
60
|
+
children: n
|
|
61
|
+
}), r ? /* @__PURE__ */ l("div", {
|
|
62
|
+
className: "aivex:flex aivex:shrink-0 aivex:items-center aivex:gap-xs",
|
|
63
|
+
children: r
|
|
64
|
+
}) : null]
|
|
65
|
+
}) : null, i ? /* @__PURE__ */ l("div", {
|
|
66
|
+
className: "aivex:flex aivex:min-h-0 aivex:flex-1 aivex:flex-col aivex:overflow-y-auto",
|
|
67
|
+
children: t
|
|
68
|
+
}) : t]
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
function g({ children: t, padded: r = !0, className: i }) {
|
|
72
|
+
return /* @__PURE__ */ l("div", {
|
|
73
|
+
className: e(n, r && "aivex:p-xl", i),
|
|
74
|
+
children: t
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
function _({ children: t, className: n }) {
|
|
78
|
+
return /* @__PURE__ */ l("div", {
|
|
79
|
+
className: e("aivex:mt-auto aivex:flex aivex:shrink-0 aivex:flex-col aivex:gap-md aivex:border-t aivex:border-border-subtle aivex:px-xl aivex:py-lg", n),
|
|
80
|
+
children: t
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
var v = Object.assign(p, {
|
|
84
|
+
Header: m,
|
|
85
|
+
Section: h,
|
|
86
|
+
Body: g,
|
|
87
|
+
Footer: _
|
|
88
|
+
});
|
|
52
89
|
//#endregion
|
|
53
|
-
export {
|
|
90
|
+
export { v as Panel };
|
|
54
91
|
|
|
55
92
|
//# sourceMappingURL=Panel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Panel.js","names":[],"sources":["../../../src/components/Panel/Panel.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"Panel.js","names":[],"sources":["../../../src/components/Panel/Panel.tsx"],"sourcesContent":["import { cva } from \"class-variance-authority\";\nimport {\n type CSSProperties,\n createContext,\n type ReactNode,\n type Ref,\n useContext,\n useId,\n} from \"react\";\nimport { cn } from \"@/utils/cn\";\nimport {\n SHEET_DEFAULT_WIDTH,\n sheetActionsClassName,\n sheetBodyClassName,\n sheetBodyPaddingClassName,\n sheetHeaderClassName,\n sheetTitleClassName,\n} from \"@/utils/sheet\";\n\nconst PanelTitleIdContext = createContext<string | undefined>(undefined);\n\n/**\n * 화면 레이아웃 안에 자리를 차지하는 사이드 패널의 표면 — 편집기 속성 패널,\n * 이미지 상세 옆 라벨 목록처럼 본문 옆에 붙어 함께 보이는 영역. Figma Panel처럼\n * 그림자 없이 본문 쪽 모서리의 구분선으로 나뉜다.\n */\nconst panelVariants = cva(\n \"aivex:flex aivex:h-full aivex:min-h-0 aivex:shrink-0 aivex:flex-col aivex:border-border-subtle aivex:bg-bg-primary\",\n {\n variants: {\n side: {\n left: \"aivex:border-r\",\n right: \"aivex:border-l\",\n },\n },\n defaultVariants: {\n side: \"right\",\n },\n },\n);\n\n/**\n * 레이아웃용 사이드 패널. 화면 위에 덮이는 시트가 필요하면 Drawer를 쓴다.\n *\n * ```tsx\n * <div className=\"flex h-full\">\n * <main className=\"min-w-0 flex-1\">…</main>\n * <Panel side=\"right\" width={300}>\n * <Panel.Header action={…}>라벨</Panel.Header>\n * <Panel.Section title=\"클래스\">…</Panel.Section>\n * <Panel.Section title=\"라벨 목록\" fill>…</Panel.Section>\n * <Panel.Footer>…</Panel.Footer>\n * </Panel>\n * </div>\n * ```\n */\nexport interface PanelProps {\n children: ReactNode;\n /** 패널이 본문의 어느 쪽에 붙는지 — 구분선이 반대쪽 모서리에 생긴다. */\n side?: \"left\" | \"right\";\n /** 폭. 숫자는 px, 문자열은 CSS 길이. 기본 420px(Figma). style.width가 있으면 그쪽이 이긴다. */\n width?: number | string;\n /**\n * 접근성 이름. 생략하면 Panel.Header의 제목을 쓴다. 둘 다 없으면 이름 없는\n * complementary 영역이 된다.\n */\n \"aria-label\"?: string;\n className?: string;\n style?: CSSProperties;\n ref?: Ref<HTMLElement>;\n}\n\nfunction PanelRoot({\n children,\n side = \"right\",\n width = SHEET_DEFAULT_WIDTH,\n \"aria-label\": ariaLabel,\n className,\n style,\n ref,\n}: PanelProps) {\n const titleId = useId();\n return (\n <PanelTitleIdContext.Provider value={titleId}>\n <aside\n ref={ref}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabel ? undefined : titleId}\n data-side={side}\n className={cn(panelVariants({ side }), className)}\n style={{ width, ...style }}\n >\n {children}\n </aside>\n </PanelTitleIdContext.Provider>\n );\n}\n\nexport interface PanelHeaderProps {\n /** 제목 — 패널의 접근성 이름도 된다. */\n children: ReactNode;\n /** 제목 아래 보조 설명. */\n description?: ReactNode;\n /** 오른쪽 끝의 보조 동작(설정·닫기·접기 버튼 등). */\n action?: ReactNode;\n className?: string;\n}\n\n/** 표준 헤더 — 제목·설명·보조 동작. Drawer.Header와 같은 높이(50px)·간격·구분선(Figma Header). */\nfunction PanelHeader({ children, description, action, className }: PanelHeaderProps) {\n const titleId = useContext(PanelTitleIdContext);\n return (\n <div className={cn(sheetHeaderClassName, className)}>\n <div className=\"aivex:flex aivex:min-w-0 aivex:flex-1 aivex:flex-col aivex:gap-2xs\">\n <h2 id={titleId} className={sheetTitleClassName}>\n {children}\n </h2>\n {description ? (\n <p className=\"aivex:m-0 aivex:text-body-sm-regular aivex:text-text-secondary\">\n {description}\n </p>\n ) : null}\n </div>\n {action ? <div className={sheetActionsClassName}>{action}</div> : null}\n </div>\n );\n}\n\nexport interface PanelSectionProps {\n children?: ReactNode;\n /** 섹션 제목. 생략하면 제목 줄 없이 내용만 둔다. */\n title?: ReactNode;\n /** 제목 줄 오른쪽 보조 동작(메뉴 버튼 등). */\n action?: ReactNode;\n /**\n * 남은 높이를 채우고 내용이 넘치면 섹션 안에서 세로 스크롤한다 — 라벨 목록처럼\n * 길어지는 섹션에 쓴다. 기본은 내용 높이만큼 차지한다.\n */\n fill?: boolean;\n className?: string;\n}\n\n/** 제목이 붙은 묶음. 섹션이 이어지면 사이에 구분선이 생긴다. */\nfunction PanelSection({ children, title, action, fill = false, className }: PanelSectionProps) {\n return (\n <section\n className={cn(\n \"aivex:flex aivex:flex-col aivex:gap-md aivex:px-xl aivex:py-lg\",\n \"aivex:[&+section]:border-t aivex:[&+section]:border-border-subtle\",\n fill ? \"aivex:min-h-0 aivex:flex-1\" : \"aivex:shrink-0\",\n className,\n )}\n >\n {title || action ? (\n <div className=\"aivex:flex aivex:min-h-8 aivex:shrink-0 aivex:items-center aivex:justify-between aivex:gap-md\">\n <h3 className=\"aivex:m-0 aivex:min-w-0 aivex:truncate aivex:text-body-md-medium aivex:text-text-primary\">\n {title}\n </h3>\n {action ? (\n <div className=\"aivex:flex aivex:shrink-0 aivex:items-center aivex:gap-xs\">\n {action}\n </div>\n ) : null}\n </div>\n ) : null}\n {fill ? (\n <div className=\"aivex:flex aivex:min-h-0 aivex:flex-1 aivex:flex-col aivex:overflow-y-auto\">\n {children}\n </div>\n ) : (\n children\n )}\n </section>\n );\n}\n\nexport interface PanelBodyProps {\n children: ReactNode;\n /**\n * 사방 16px 여백(Figma Body). 기본 true. 목록·표처럼 가장자리까지 붙는 내용은\n * false로 끈다.\n */\n padded?: boolean;\n className?: string;\n}\n\n/** 헤더·푸터 사이 남은 높이를 채우는 본문 — 넘치면 이 안에서 세로 스크롤한다. */\nfunction PanelBody({ children, padded = true, className }: PanelBodyProps) {\n return (\n <div className={cn(sheetBodyClassName, padded && sheetBodyPaddingClassName, className)}>\n {children}\n </div>\n );\n}\n\nexport interface PanelFooterProps {\n children: ReactNode;\n className?: string;\n}\n\n/** 아래에 고정되는 영역(신뢰도 조절, 적용 버튼 등). 위에 구분선이 생긴다. */\nfunction PanelFooter({ children, className }: PanelFooterProps) {\n return (\n <div\n className={cn(\n \"aivex:mt-auto aivex:flex aivex:shrink-0 aivex:flex-col aivex:gap-md aivex:border-t aivex:border-border-subtle aivex:px-xl aivex:py-lg\",\n className,\n )}\n >\n {children}\n </div>\n );\n}\n\nconst Panel = Object.assign(PanelRoot, {\n Header: PanelHeader,\n Section: PanelSection,\n Body: PanelBody,\n Footer: PanelFooter,\n});\n\nexport { Panel };\n"],"mappings":";;;;;;;AAmBA,IAAM,IAAsB,EAAkC,KAAA,EAAU,EAOlE,IAAgB,EACpB,sHACA;CACE,UAAU,EACR,MAAM;EACJ,MAAM;EACN,OAAO;EACR,EACF;CACD,iBAAiB,EACf,MAAM,SACP;CACF,CACF;AAiCD,SAAS,EAAU,EACjB,aACA,UAAO,SACP,WAAA,KACA,cAAc,GACd,cACA,UACA,UACa;CACb,IAAM,IAAU,GAAO;AACvB,QACE,kBAAC,EAAoB,UAArB;EAA8B,OAAO;YACnC,kBAAC,SAAD;GACO;GACL,cAAY;GACZ,mBAAiB,IAAY,KAAA,IAAY;GACzC,aAAW;GACX,WAAW,EAAG,EAAc,EAAE,SAAM,CAAC,EAAE,EAAU;GACjD,OAAO;IAAE;IAAO,GAAG;IAAO;GAEzB;GACK,CAAA;EACqB,CAAA;;AAenC,SAAS,EAAY,EAAE,aAAU,gBAAa,WAAQ,gBAA+B;CACnF,IAAM,IAAU,EAAW,EAAoB;AAC/C,QACE,kBAAC,OAAD;EAAK,WAAW,EAAG,GAAsB,EAAU;YAAnD,CACE,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,MAAD;IAAI,IAAI;IAAS,WAAW;IACzB;IACE,CAAA,EACJ,IACC,kBAAC,KAAD;IAAG,WAAU;cACV;IACC,CAAA,GACF,KACA;MACL,IAAS,kBAAC,OAAD;GAAK,WAAW;aAAwB;GAAa,CAAA,GAAG,KAC9D;;;AAmBV,SAAS,EAAa,EAAE,aAAU,UAAO,WAAQ,UAAO,IAAO,gBAAgC;AAC7F,QACE,kBAAC,WAAD;EACE,WAAW,EACT,kEACA,qEACA,IAAO,+BAA+B,kBACtC,EACD;YANH,CAQG,KAAS,IACR,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,MAAD;IAAI,WAAU;cACX;IACE,CAAA,EACJ,IACC,kBAAC,OAAD;IAAK,WAAU;cACZ;IACG,CAAA,GACJ,KACA;OACJ,MACH,IACC,kBAAC,OAAD;GAAK,WAAU;GACZ;GACG,CAAA,GAEN,EAEM;;;AAed,SAAS,EAAU,EAAE,aAAU,YAAS,IAAM,gBAA6B;AACzE,QACE,kBAAC,OAAD;EAAK,WAAW,EAAG,GAAoB,KAAA,cAAqC,EAAU;EACnF;EACG,CAAA;;AAUV,SAAS,EAAY,EAAE,aAAU,gBAA+B;AAC9D,QACE,kBAAC,OAAD;EACE,WAAW,EACT,yIACA,EACD;EAEA;EACG,CAAA;;AAIV,IAAM,IAAQ,OAAO,OAAO,GAAW;CACrC,QAAQ;CACR,SAAS;CACT,MAAM;CACN,QAAQ;CACT,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { PanelProps } from "./Panel";
|
|
1
|
+
export type { PanelBodyProps, PanelFooterProps, PanelHeaderProps, PanelProps, PanelSectionProps, } from "./Panel";
|
|
2
2
|
export { Panel } from "./Panel";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use client";"use client";const e=require(`../../_virtual/_rolldown/runtime.cjs`),t=require(`../../utils.cjs`),n=require(`../Tooltip/Tooltip.cjs`);let r=require(`react`),i=require(`react/jsx-runtime`),a=require(`@radix-ui/react-compose-refs`),o=require(`@radix-ui/react-popper`);o=e.__toESM(o,1);let s=require(`react-dom`);var c=.01;function l(e){if(e.scrollWidth>e.clientWidth)return!0;let t=document.createRange();t.selectNodeContents(e);let n=getComputedStyle(e),r=e=>Number.parseFloat(e)||0,i=e.getBoundingClientRect().width-r(n.paddingLeft)-r(n.paddingRight)-r(n.borderLeftWidth)-r(n.borderRightWidth);return t.getBoundingClientRect().width-i>c}function u({as:e=`span`,tooltip:c,placement:u=`top`,className:d,children:f,onPointerEnter:p,onPointerLeave:m,onPointerDown:h,onFocus:g,onBlur:_,ref:v,...y}){let[b,x]=(0,r.useState)(!1),S=(0,r.useRef)(null),C=(0,a.useComposedRefs)(v,S),w=(0,r.useId)();(0,r.useEffect)(()=>{if(!b)return;let e=()=>x(!1);return window.addEventListener(`scroll`,e,{capture:!0,passive:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})},[b]),(0,r.useEffect)(()=>{b&&S.current&&!l(S.current)&&x(!1)});let T=e=>{p?.(e),e.pointerType!==`touch`&&l(e.currentTarget)&&x(!0)},E=e=>{m?.(e),x(!1)},D=e=>{h?.(e),x(!1)},O=e=>{g?.(e);let t=e.currentTarget;t.matches(`:focus-visible`)&&l(t)&&x(!0)},k=e=>{_?.(e),x(!1)};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(e,{ref:C,className:t.cn(`aivex:block aivex:min-w-0 aivex:truncate`,d),...y,"aria-describedby":b&&c!=null?w:y[`aria-describedby`],onPointerEnter:T,onPointerLeave:E,onPointerDown:D,onFocus:O,onBlur:k,children:f}),b&&(0,i.jsxs)(o.Root,{children:[(0,i.jsx)(o.Anchor,{virtualRef:S}),(0,s.createPortal)((0,i.jsxs)(o.Content,{id:w,role:`tooltip`,side:u,sideOffset:8,className:n.tooltipContentVariants({placement:u}),children:[c??f,(0,i.jsx)(o.Arrow,{width:8,height:4,className:`aivex:fill-static-gray`})]}),document.body)]})]})}exports.TruncatedText=u;
|
|
2
|
+
//# sourceMappingURL=TruncatedText.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TruncatedText.cjs","names":[],"sources":["../../../src/components/TruncatedText/TruncatedText.tsx"],"sourcesContent":["\"use client\";\n\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport * as Popper from \"@radix-ui/react-popper\";\nimport {\n type ElementType,\n type FocusEvent,\n type HTMLAttributes,\n type PointerEvent,\n type ReactNode,\n type Ref,\n type RefObject,\n useEffect,\n useId,\n useRef,\n useState,\n} from \"react\";\nimport { createPortal } from \"react-dom\";\nimport { tooltipContentVariants } from \"@/components/Tooltip\";\nimport { cn } from \"@/utils/cn\";\n\nexport interface TruncatedTextProps extends HTMLAttributes<HTMLElement> {\n as?: ElementType;\n /** 잘렸을 때 툴팁에 보일 내용 — 기본은 children */\n tooltip?: ReactNode;\n placement?: \"top\" | \"bottom\" | \"left\" | \"right\";\n ref?: Ref<HTMLElement>;\n}\n\n/** 같은 폭을 두 경로로 잴 때 생기는 부동소수 오차 — 레이아웃 최소 단위(1/64px)보다 작게 둔다 */\nconst SUBPIXEL_TOLERANCE = 0.01;\n\n/**\n * 글자가 요소 폭을 넘쳐 말줄임(…)됐는지. scrollWidth는 정수로 반올림돼 1px\n * 미만으로 넘친 경우를 놓치므로 글자의 실제 폭을 잰다.\n */\nfunction isTruncated(element: HTMLElement) {\n if (element.scrollWidth > element.clientWidth) return true;\n const range = document.createRange();\n range.selectNodeContents(element);\n const style = getComputedStyle(element);\n const px = (value: string) => Number.parseFloat(value) || 0;\n const available =\n element.getBoundingClientRect().width -\n px(style.paddingLeft) -\n px(style.paddingRight) -\n px(style.borderLeftWidth) -\n px(style.borderRightWidth);\n return range.getBoundingClientRect().width - available > SUBPIXEL_TOLERANCE;\n}\n\n/**\n * 한 줄 말줄임(…) 텍스트 — 실제로 잘렸을 때만 호버하면 전체 내용을 툴팁으로\n * 보여 준다.\n *\n * 잘렸는지는 포인터가 들어오는 순간에 잰다. 그리드처럼 수천 개가 깔리는\n * 자리에서 쓰이므로 평소에는 span 하나만 두고, 툴팁은 떠 있는 동안에만 옆에\n * 붙인다. 텍스트 요소 자체는 감싸거나 바꾸지 않는다 — 누르는 도중에 요소가\n * 바뀌면 클릭이 사라져 행 클릭 같은 바깥 동작이 먹지 않는다.\n *\n * 말줄임이 걸리도록 항상 block으로 표시한다. inline 흐름 안에 둘 때는\n * className으로 display를 덮어쓴다(예: `inline-block`과 폭 지정).\n */\nfunction TruncatedText({\n as: Tag = \"span\",\n tooltip,\n placement = \"top\",\n className,\n children,\n onPointerEnter,\n onPointerLeave,\n onPointerDown,\n onFocus,\n onBlur,\n ref,\n ...props\n}: TruncatedTextProps) {\n const [open, setOpen] = useState(false);\n const elementRef = useRef<HTMLElement>(null);\n const composedRef = useComposedRefs(ref, elementRef);\n const tooltipId = useId();\n\n // 스크롤되면 포인터는 그대로인데 텍스트만 밀려나므로 닫는다\n useEffect(() => {\n if (!open) return;\n const close = () => setOpen(false);\n window.addEventListener(\"scroll\", close, { capture: true, passive: true });\n return () => window.removeEventListener(\"scroll\", close, { capture: true });\n }, [open]);\n\n // 떠 있는 동안 내용이나 폭이 바뀌어 더는 잘리지 않으면 닫는다\n useEffect(() => {\n if (open && elementRef.current && !isTruncated(elementRef.current)) setOpen(false);\n });\n\n const handlePointerEnter = (event: PointerEvent<HTMLElement>) => {\n onPointerEnter?.(event);\n // 터치는 벗어나는 시점이 없어 툴팁이 남는다\n if (event.pointerType === \"touch\") return;\n if (isTruncated(event.currentTarget)) setOpen(true);\n };\n const handlePointerLeave = (event: PointerEvent<HTMLElement>) => {\n onPointerLeave?.(event);\n setOpen(false);\n };\n // 누른 뒤에는 포인터가 벗어났다 돌아올 때까지 다시 열지 않는다\n const handlePointerDown = (event: PointerEvent<HTMLElement>) => {\n onPointerDown?.(event);\n setOpen(false);\n };\n\n // 키보드로 포커스했을 때도 보여 준다 — 눌러서 생긴 포커스는 누름으로 닫은 상태를 유지한다\n const handleFocus = (event: FocusEvent<HTMLElement>) => {\n onFocus?.(event);\n const element = event.currentTarget;\n if (element.matches(\":focus-visible\") && isTruncated(element)) setOpen(true);\n };\n const handleBlur = (event: FocusEvent<HTMLElement>) => {\n onBlur?.(event);\n setOpen(false);\n };\n\n return (\n <>\n <Tag\n ref={composedRef}\n // inline 요소는 폭을 잴 수 없고 말줄임도 걸리지 않으므로 block으로 둔다\n className={cn(\"aivex:block aivex:min-w-0 aivex:truncate\", className)}\n {...props}\n // 보이는 글자와 다른 내용일 때만 잇는다 — 같은 내용이면 두 번 읽힌다\n aria-describedby={open && tooltip != null ? tooltipId : props[\"aria-describedby\"]}\n onPointerEnter={handlePointerEnter}\n onPointerLeave={handlePointerLeave}\n onPointerDown={handlePointerDown}\n onFocus={handleFocus}\n onBlur={handleBlur}\n >\n {children}\n </Tag>\n {open && (\n <Popper.Root>\n <Popper.Anchor virtualRef={elementRef as RefObject<HTMLElement>} />\n {createPortal(\n <Popper.Content\n id={tooltipId}\n role=\"tooltip\"\n side={placement}\n sideOffset={8}\n className={tooltipContentVariants({ placement })}\n >\n {tooltip ?? children}\n <Popper.Arrow width={8} height={4} className=\"aivex:fill-static-gray\" />\n </Popper.Content>,\n document.body,\n )}\n </Popper.Root>\n )}\n </>\n );\n}\n\nexport { TruncatedText };\n"],"mappings":"mUA8BA,IAAM,EAAqB,IAM3B,SAAS,EAAY,EAAsB,CACzC,GAAI,EAAQ,YAAc,EAAQ,YAAa,MAAO,GACtD,IAAM,EAAQ,SAAS,aAAa,CACpC,EAAM,mBAAmB,EAAQ,CACjC,IAAM,EAAQ,iBAAiB,EAAQ,CACjC,EAAM,GAAkB,OAAO,WAAW,EAAM,EAAI,EACpD,EACJ,EAAQ,uBAAuB,CAAC,MAChC,EAAG,EAAM,YAAY,CACrB,EAAG,EAAM,aAAa,CACtB,EAAG,EAAM,gBAAgB,CACzB,EAAG,EAAM,iBAAiB,CAC5B,OAAO,EAAM,uBAAuB,CAAC,MAAQ,EAAY,EAe3D,SAAS,EAAc,CACrB,GAAI,EAAM,OACV,UACA,YAAY,MACZ,YACA,WACA,iBACA,iBACA,gBACA,UACA,SACA,MACA,GAAG,GACkB,CACrB,GAAM,CAAC,EAAM,IAAA,EAAA,EAAA,UAAoB,GAAM,CACjC,GAAA,EAAA,EAAA,QAAiC,KAAK,CACtC,GAAA,EAAA,EAAA,iBAA8B,EAAK,EAAW,CAC9C,GAAA,EAAA,EAAA,QAAmB,EAGzB,EAAA,EAAA,eAAgB,CACd,GAAI,CAAC,EAAM,OACX,IAAM,MAAc,EAAQ,GAAM,CAElC,OADA,OAAO,iBAAiB,SAAU,EAAO,CAAE,QAAS,GAAM,QAAS,GAAM,CAAC,KAC7D,OAAO,oBAAoB,SAAU,EAAO,CAAE,QAAS,GAAM,CAAC,EAC1E,CAAC,EAAK,CAAC,EAGV,EAAA,EAAA,eAAgB,CACV,GAAQ,EAAW,SAAW,CAAC,EAAY,EAAW,QAAQ,EAAE,EAAQ,GAAM,EAClF,CAEF,IAAM,EAAsB,GAAqC,CAC/D,IAAiB,EAAM,CAEnB,EAAM,cAAgB,SACtB,EAAY,EAAM,cAAc,EAAE,EAAQ,GAAK,EAE/C,EAAsB,GAAqC,CAC/D,IAAiB,EAAM,CACvB,EAAQ,GAAM,EAGV,EAAqB,GAAqC,CAC9D,IAAgB,EAAM,CACtB,EAAQ,GAAM,EAIV,EAAe,GAAmC,CACtD,IAAU,EAAM,CAChB,IAAM,EAAU,EAAM,cAClB,EAAQ,QAAQ,iBAAiB,EAAI,EAAY,EAAQ,EAAE,EAAQ,GAAK,EAExE,EAAc,GAAmC,CACrD,IAAS,EAAM,CACf,EAAQ,GAAM,EAGhB,OACE,EAAA,EAAA,MAAA,EAAA,SAAA,CAAA,SAAA,EACE,EAAA,EAAA,KAAC,EAAD,CACE,IAAK,EAEL,UAAW,EAAA,GAAG,2CAA4C,EAAU,CACpE,GAAI,EAEJ,mBAAkB,GAAQ,GAAW,KAAO,EAAY,EAAM,oBAC9D,eAAgB,EAChB,eAAgB,EAChB,cAAe,EACf,QAAS,EACT,OAAQ,EAEP,WACG,CAAA,CACL,IACC,EAAA,EAAA,MAAC,EAAO,KAAR,CAAA,SAAA,EACE,EAAA,EAAA,KAAC,EAAO,OAAR,CAAe,WAAY,EAAwC,CAAA,EAAA,EAAA,EAAA,eAEjE,EAAA,EAAA,MAAC,EAAO,QAAR,CACE,GAAI,EACJ,KAAK,UACL,KAAM,EACN,WAAY,EACZ,UAAW,EAAA,uBAAuB,CAAE,YAAW,CAAC,UALlD,CAOG,GAAW,GACZ,EAAA,EAAA,KAAC,EAAO,MAAR,CAAc,MAAO,EAAG,OAAQ,EAAG,UAAU,yBAA2B,CAAA,CACzD,GACjB,SAAS,KACV,CACW,CAAA,CAAA,CAEf,CAAA,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ElementType, type HTMLAttributes, type ReactNode, type Ref } from "react";
|
|
2
|
+
export interface TruncatedTextProps extends HTMLAttributes<HTMLElement> {
|
|
3
|
+
as?: ElementType;
|
|
4
|
+
/** 잘렸을 때 툴팁에 보일 내용 — 기본은 children */
|
|
5
|
+
tooltip?: ReactNode;
|
|
6
|
+
placement?: "top" | "bottom" | "left" | "right";
|
|
7
|
+
ref?: Ref<HTMLElement>;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 한 줄 말줄임(…) 텍스트 — 실제로 잘렸을 때만 호버하면 전체 내용을 툴팁으로
|
|
11
|
+
* 보여 준다.
|
|
12
|
+
*
|
|
13
|
+
* 잘렸는지는 포인터가 들어오는 순간에 잰다. 그리드처럼 수천 개가 깔리는
|
|
14
|
+
* 자리에서 쓰이므로 평소에는 span 하나만 두고, 툴팁은 떠 있는 동안에만 옆에
|
|
15
|
+
* 붙인다. 텍스트 요소 자체는 감싸거나 바꾸지 않는다 — 누르는 도중에 요소가
|
|
16
|
+
* 바뀌면 클릭이 사라져 행 클릭 같은 바깥 동작이 먹지 않는다.
|
|
17
|
+
*
|
|
18
|
+
* 말줄임이 걸리도록 항상 block으로 표시한다. inline 흐름 안에 둘 때는
|
|
19
|
+
* className으로 display를 덮어쓴다(예: `inline-block`과 폭 지정).
|
|
20
|
+
*/
|
|
21
|
+
declare function TruncatedText({ as: Tag, tooltip, placement, className, children, onPointerEnter, onPointerLeave, onPointerDown, onFocus, onBlur, ref, ...props }: TruncatedTextProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export { TruncatedText };
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use client";
|
|
3
|
+
import { cn as e } from "../../utils.js";
|
|
4
|
+
import { tooltipContentVariants as t } from "../Tooltip/Tooltip.js";
|
|
5
|
+
import { useEffect as n, useId as r, useRef as i, useState as a } from "react";
|
|
6
|
+
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
7
|
+
import { useComposedRefs as l } from "@radix-ui/react-compose-refs";
|
|
8
|
+
import * as u from "@radix-ui/react-popper";
|
|
9
|
+
import { createPortal as d } from "react-dom";
|
|
10
|
+
//#region src/components/TruncatedText/TruncatedText.tsx
|
|
11
|
+
var f = .01;
|
|
12
|
+
function p(e) {
|
|
13
|
+
if (e.scrollWidth > e.clientWidth) return !0;
|
|
14
|
+
let t = document.createRange();
|
|
15
|
+
t.selectNodeContents(e);
|
|
16
|
+
let n = getComputedStyle(e), r = (e) => Number.parseFloat(e) || 0, i = e.getBoundingClientRect().width - r(n.paddingLeft) - r(n.paddingRight) - r(n.borderLeftWidth) - r(n.borderRightWidth);
|
|
17
|
+
return t.getBoundingClientRect().width - i > f;
|
|
18
|
+
}
|
|
19
|
+
function m({ as: f = "span", tooltip: m, placement: h = "top", className: g, children: _, onPointerEnter: v, onPointerLeave: y, onPointerDown: b, onFocus: x, onBlur: S, ref: C, ...w }) {
|
|
20
|
+
let [T, E] = a(!1), D = i(null), O = l(C, D), k = r();
|
|
21
|
+
n(() => {
|
|
22
|
+
if (!T) return;
|
|
23
|
+
let e = () => E(!1);
|
|
24
|
+
return window.addEventListener("scroll", e, {
|
|
25
|
+
capture: !0,
|
|
26
|
+
passive: !0
|
|
27
|
+
}), () => window.removeEventListener("scroll", e, { capture: !0 });
|
|
28
|
+
}, [T]), n(() => {
|
|
29
|
+
T && D.current && !p(D.current) && E(!1);
|
|
30
|
+
});
|
|
31
|
+
let A = (e) => {
|
|
32
|
+
v?.(e), e.pointerType !== "touch" && p(e.currentTarget) && E(!0);
|
|
33
|
+
}, j = (e) => {
|
|
34
|
+
y?.(e), E(!1);
|
|
35
|
+
}, M = (e) => {
|
|
36
|
+
b?.(e), E(!1);
|
|
37
|
+
}, N = (e) => {
|
|
38
|
+
x?.(e);
|
|
39
|
+
let t = e.currentTarget;
|
|
40
|
+
t.matches(":focus-visible") && p(t) && E(!0);
|
|
41
|
+
}, P = (e) => {
|
|
42
|
+
S?.(e), E(!1);
|
|
43
|
+
};
|
|
44
|
+
return /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s(f, {
|
|
45
|
+
ref: O,
|
|
46
|
+
className: e("aivex:block aivex:min-w-0 aivex:truncate", g),
|
|
47
|
+
...w,
|
|
48
|
+
"aria-describedby": T && m != null ? k : w["aria-describedby"],
|
|
49
|
+
onPointerEnter: A,
|
|
50
|
+
onPointerLeave: j,
|
|
51
|
+
onPointerDown: M,
|
|
52
|
+
onFocus: N,
|
|
53
|
+
onBlur: P,
|
|
54
|
+
children: _
|
|
55
|
+
}), T && /* @__PURE__ */ c(u.Root, { children: [/* @__PURE__ */ s(u.Anchor, { virtualRef: D }), d(/* @__PURE__ */ c(u.Content, {
|
|
56
|
+
id: k,
|
|
57
|
+
role: "tooltip",
|
|
58
|
+
side: h,
|
|
59
|
+
sideOffset: 8,
|
|
60
|
+
className: t({ placement: h }),
|
|
61
|
+
children: [m ?? _, /* @__PURE__ */ s(u.Arrow, {
|
|
62
|
+
width: 8,
|
|
63
|
+
height: 4,
|
|
64
|
+
className: "aivex:fill-static-gray"
|
|
65
|
+
})]
|
|
66
|
+
}), document.body)] })] });
|
|
67
|
+
}
|
|
68
|
+
//#endregion
|
|
69
|
+
export { m as TruncatedText };
|
|
70
|
+
|
|
71
|
+
//# sourceMappingURL=TruncatedText.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TruncatedText.js","names":[],"sources":["../../../src/components/TruncatedText/TruncatedText.tsx"],"sourcesContent":["\"use client\";\n\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport * as Popper from \"@radix-ui/react-popper\";\nimport {\n type ElementType,\n type FocusEvent,\n type HTMLAttributes,\n type PointerEvent,\n type ReactNode,\n type Ref,\n type RefObject,\n useEffect,\n useId,\n useRef,\n useState,\n} from \"react\";\nimport { createPortal } from \"react-dom\";\nimport { tooltipContentVariants } from \"@/components/Tooltip\";\nimport { cn } from \"@/utils/cn\";\n\nexport interface TruncatedTextProps extends HTMLAttributes<HTMLElement> {\n as?: ElementType;\n /** 잘렸을 때 툴팁에 보일 내용 — 기본은 children */\n tooltip?: ReactNode;\n placement?: \"top\" | \"bottom\" | \"left\" | \"right\";\n ref?: Ref<HTMLElement>;\n}\n\n/** 같은 폭을 두 경로로 잴 때 생기는 부동소수 오차 — 레이아웃 최소 단위(1/64px)보다 작게 둔다 */\nconst SUBPIXEL_TOLERANCE = 0.01;\n\n/**\n * 글자가 요소 폭을 넘쳐 말줄임(…)됐는지. scrollWidth는 정수로 반올림돼 1px\n * 미만으로 넘친 경우를 놓치므로 글자의 실제 폭을 잰다.\n */\nfunction isTruncated(element: HTMLElement) {\n if (element.scrollWidth > element.clientWidth) return true;\n const range = document.createRange();\n range.selectNodeContents(element);\n const style = getComputedStyle(element);\n const px = (value: string) => Number.parseFloat(value) || 0;\n const available =\n element.getBoundingClientRect().width -\n px(style.paddingLeft) -\n px(style.paddingRight) -\n px(style.borderLeftWidth) -\n px(style.borderRightWidth);\n return range.getBoundingClientRect().width - available > SUBPIXEL_TOLERANCE;\n}\n\n/**\n * 한 줄 말줄임(…) 텍스트 — 실제로 잘렸을 때만 호버하면 전체 내용을 툴팁으로\n * 보여 준다.\n *\n * 잘렸는지는 포인터가 들어오는 순간에 잰다. 그리드처럼 수천 개가 깔리는\n * 자리에서 쓰이므로 평소에는 span 하나만 두고, 툴팁은 떠 있는 동안에만 옆에\n * 붙인다. 텍스트 요소 자체는 감싸거나 바꾸지 않는다 — 누르는 도중에 요소가\n * 바뀌면 클릭이 사라져 행 클릭 같은 바깥 동작이 먹지 않는다.\n *\n * 말줄임이 걸리도록 항상 block으로 표시한다. inline 흐름 안에 둘 때는\n * className으로 display를 덮어쓴다(예: `inline-block`과 폭 지정).\n */\nfunction TruncatedText({\n as: Tag = \"span\",\n tooltip,\n placement = \"top\",\n className,\n children,\n onPointerEnter,\n onPointerLeave,\n onPointerDown,\n onFocus,\n onBlur,\n ref,\n ...props\n}: TruncatedTextProps) {\n const [open, setOpen] = useState(false);\n const elementRef = useRef<HTMLElement>(null);\n const composedRef = useComposedRefs(ref, elementRef);\n const tooltipId = useId();\n\n // 스크롤되면 포인터는 그대로인데 텍스트만 밀려나므로 닫는다\n useEffect(() => {\n if (!open) return;\n const close = () => setOpen(false);\n window.addEventListener(\"scroll\", close, { capture: true, passive: true });\n return () => window.removeEventListener(\"scroll\", close, { capture: true });\n }, [open]);\n\n // 떠 있는 동안 내용이나 폭이 바뀌어 더는 잘리지 않으면 닫는다\n useEffect(() => {\n if (open && elementRef.current && !isTruncated(elementRef.current)) setOpen(false);\n });\n\n const handlePointerEnter = (event: PointerEvent<HTMLElement>) => {\n onPointerEnter?.(event);\n // 터치는 벗어나는 시점이 없어 툴팁이 남는다\n if (event.pointerType === \"touch\") return;\n if (isTruncated(event.currentTarget)) setOpen(true);\n };\n const handlePointerLeave = (event: PointerEvent<HTMLElement>) => {\n onPointerLeave?.(event);\n setOpen(false);\n };\n // 누른 뒤에는 포인터가 벗어났다 돌아올 때까지 다시 열지 않는다\n const handlePointerDown = (event: PointerEvent<HTMLElement>) => {\n onPointerDown?.(event);\n setOpen(false);\n };\n\n // 키보드로 포커스했을 때도 보여 준다 — 눌러서 생긴 포커스는 누름으로 닫은 상태를 유지한다\n const handleFocus = (event: FocusEvent<HTMLElement>) => {\n onFocus?.(event);\n const element = event.currentTarget;\n if (element.matches(\":focus-visible\") && isTruncated(element)) setOpen(true);\n };\n const handleBlur = (event: FocusEvent<HTMLElement>) => {\n onBlur?.(event);\n setOpen(false);\n };\n\n return (\n <>\n <Tag\n ref={composedRef}\n // inline 요소는 폭을 잴 수 없고 말줄임도 걸리지 않으므로 block으로 둔다\n className={cn(\"aivex:block aivex:min-w-0 aivex:truncate\", className)}\n {...props}\n // 보이는 글자와 다른 내용일 때만 잇는다 — 같은 내용이면 두 번 읽힌다\n aria-describedby={open && tooltip != null ? tooltipId : props[\"aria-describedby\"]}\n onPointerEnter={handlePointerEnter}\n onPointerLeave={handlePointerLeave}\n onPointerDown={handlePointerDown}\n onFocus={handleFocus}\n onBlur={handleBlur}\n >\n {children}\n </Tag>\n {open && (\n <Popper.Root>\n <Popper.Anchor virtualRef={elementRef as RefObject<HTMLElement>} />\n {createPortal(\n <Popper.Content\n id={tooltipId}\n role=\"tooltip\"\n side={placement}\n sideOffset={8}\n className={tooltipContentVariants({ placement })}\n >\n {tooltip ?? children}\n <Popper.Arrow width={8} height={4} className=\"aivex:fill-static-gray\" />\n </Popper.Content>,\n document.body,\n )}\n </Popper.Root>\n )}\n </>\n );\n}\n\nexport { TruncatedText };\n"],"mappings":";;;;;;;;;;AA8BA,IAAM,IAAqB;AAM3B,SAAS,EAAY,GAAsB;AACzC,KAAI,EAAQ,cAAc,EAAQ,YAAa,QAAO;CACtD,IAAM,IAAQ,SAAS,aAAa;AACpC,GAAM,mBAAmB,EAAQ;CACjC,IAAM,IAAQ,iBAAiB,EAAQ,EACjC,KAAM,MAAkB,OAAO,WAAW,EAAM,IAAI,GACpD,IACJ,EAAQ,uBAAuB,CAAC,QAChC,EAAG,EAAM,YAAY,GACrB,EAAG,EAAM,aAAa,GACtB,EAAG,EAAM,gBAAgB,GACzB,EAAG,EAAM,iBAAiB;AAC5B,QAAO,EAAM,uBAAuB,CAAC,QAAQ,IAAY;;AAe3D,SAAS,EAAc,EACrB,IAAI,IAAM,QACV,YACA,eAAY,OACZ,cACA,aACA,mBACA,mBACA,kBACA,YACA,WACA,QACA,GAAG,KACkB;CACrB,IAAM,CAAC,GAAM,KAAW,EAAS,GAAM,EACjC,IAAa,EAAoB,KAAK,EACtC,IAAc,EAAgB,GAAK,EAAW,EAC9C,IAAY,GAAO;AAWzB,CARA,QAAgB;AACd,MAAI,CAAC,EAAM;EACX,IAAM,UAAc,EAAQ,GAAM;AAElC,SADA,OAAO,iBAAiB,UAAU,GAAO;GAAE,SAAS;GAAM,SAAS;GAAM,CAAC,QAC7D,OAAO,oBAAoB,UAAU,GAAO,EAAE,SAAS,IAAM,CAAC;IAC1E,CAAC,EAAK,CAAC,EAGV,QAAgB;AACd,EAAI,KAAQ,EAAW,WAAW,CAAC,EAAY,EAAW,QAAQ,IAAE,EAAQ,GAAM;GAClF;CAEF,IAAM,KAAsB,MAAqC;AAC/D,MAAiB,EAAM,EAEnB,EAAM,gBAAgB,WACtB,EAAY,EAAM,cAAc,IAAE,EAAQ,GAAK;IAE/C,KAAsB,MAAqC;AAE/D,EADA,IAAiB,EAAM,EACvB,EAAQ,GAAM;IAGV,KAAqB,MAAqC;AAE9D,EADA,IAAgB,EAAM,EACtB,EAAQ,GAAM;IAIV,KAAe,MAAmC;AACtD,MAAU,EAAM;EAChB,IAAM,IAAU,EAAM;AACtB,EAAI,EAAQ,QAAQ,iBAAiB,IAAI,EAAY,EAAQ,IAAE,EAAQ,GAAK;IAExE,KAAc,MAAmC;AAErD,EADA,IAAS,EAAM,EACf,EAAQ,GAAM;;AAGhB,QACE,kBAAA,GAAA,EAAA,UAAA,CACE,kBAAC,GAAD;EACE,KAAK;EAEL,WAAW,EAAG,4CAA4C,EAAU;EACpE,GAAI;EAEJ,oBAAkB,KAAQ,KAAW,OAAO,IAAY,EAAM;EAC9D,gBAAgB;EAChB,gBAAgB;EAChB,eAAe;EACf,SAAS;EACT,QAAQ;EAEP;EACG,CAAA,EACL,KACC,kBAAC,EAAO,MAAR,EAAA,UAAA,CACE,kBAAC,EAAO,QAAR,EAAe,YAAY,GAAwC,CAAA,EAClE,EACC,kBAAC,EAAO,SAAR;EACE,IAAI;EACJ,MAAK;EACL,MAAM;EACN,YAAY;EACZ,WAAW,EAAuB,EAAE,cAAW,CAAC;YALlD,CAOG,KAAW,GACZ,kBAAC,EAAO,OAAR;GAAc,OAAO;GAAG,QAAQ;GAAG,WAAU;GAA2B,CAAA,CACzD;KACjB,SAAS,KACV,CACW,EAAA,CAAA,CAEf,EAAA,CAAA"}
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`./_virtual/_rolldown/runtime.cjs`);/* empty css */const e=require(`./utils.cjs`),t=require(`./components/Tooltip/Tooltip.cjs`),n=require(`./components/Avatar/Avatar.cjs`),r=require(`./components/Badge/Badge.cjs`),i=require(`./components/InteractionLayer/InteractionLayer.cjs`),a=require(`./components/Icon/index.cjs`),o=require(`./components/Menu/Menu.cjs`),s=require(`./components/BreadCrumb/BreadCrumb.cjs`),c=require(`./components/Button/Button.cjs`),l=require(`./components/Calendar/Calendar.cjs`),u=require(`./components/Card/Card.cjs`),d=require(`./components/Checkbox/Checkbox.cjs`),f=require(`./components/Checkbox/ChipsCheckbox.cjs`),p=require(`./components/IconButton/IconButton.cjs`),m=require(`./components/Popover/Popover.cjs`),h=require(`./components/Coachmark/Coachmark.cjs`),g=require(`./components/Skeleton/Skeleton.cjs`),_=require(`./components/ScrollArea/ScrollArea.cjs`),v=require(`./components/DataGrid/DataGridColumnSettings.cjs`),y=require(`./components/DataGrid/DataGridPrimitives.cjs`),b=require(`./components/DataGrid/DataGrid.cjs`),x=require(`./components/Overlay/Overlay.cjs`),S=require(`./components/Dialog/Dialog.cjs`),C=require(`./components/Divider/Divider.cjs`),w=require(`./components/DraggableScroll/DraggableScroll.cjs`),ee=require(`./components/Drawer/Drawer.cjs`),T=require(`./components/Field/Field.cjs`),E=require(`./components/Modal/Modal.cjs`),D=require(`./components/Modal/ModalBase.cjs`),O=require(`./components/Tag/Tag.cjs`),k=require(`./components/ToggleButton/ToggleButton.cjs`),A=require(`./components/FilterModal/FilterModal.cjs`),j=require(`./components/InputBase/InputBase.cjs`),M=require(`./components/Logo/index.cjs`),N=require(`./components/Messagebox/Messagebox.cjs`),P=require(`./components/Nav/Nav.cjs`),F=require(`./components/SelectButton/SelectButton.cjs`),I=require(`./components/SelectBox/SelectBox.cjs`),L=require(`./components/Pagination/Pagination.cjs`),R=require(`./components/Panel/Panel.cjs`),z=require(`./components/ProgressBar/ProgressBar.cjs`),B=require(`./components/Radio/Radio.cjs`),V=require(`./components/Segmented/Segmented.cjs`),H=require(`./components/Shortcut/Shortcut.cjs`),U=require(`./components/Slider/Slider.cjs`),W=require(`./components/Spinner/Spinner.cjs`),G=require(`./components/Switch/Switch.cjs`),K=require(`./components/Tab/Tab.cjs`),q=require(`./components/Tagbox/Tagbox.cjs`),J=require(`./components/Textarea/Textarea.cjs`),Y=require(`./components/Textbox/Textbox.cjs`),X=require(`./components/Toast/Toast.cjs`),Z=require(`./components/Typography/Typography.cjs`),Q=require(`./components/UploadArea/UploadArea.cjs`),te=require(`./utils/keyboard.cjs`);let $=require(`@tanstack/react-table`),ne=require(`sonner`);exports.AddFolderIcon=a.AddFolderIcon,exports.AddPointIcon=a.AddPointIcon,exports.AdjustIcon=a.AdjustIcon,exports.AiSparkleGradientIcon=a.AiSparkleGradientIcon,exports.AiSparkleIcon=a.AiSparkleIcon,exports.AiVDataIcon=a.AiVDataIcon,exports.AiVDataLogo=M.AiVDataLogo,exports.AiVDataSymbol=M.AiVDataSymbol,exports.AiVOpsIcon=a.AiVOpsIcon,exports.AiVOpsLogo=M.AiVOpsLogo,exports.AiViewIcon=a.AiViewIcon,exports.AiViewLogo=M.AiViewLogo,exports.AiVisionIcon=a.AiVisionIcon,exports.AiVisionLogo=M.AiVisionLogo,exports.AiVisionMLogo=M.AiVisionMLogo,exports.AiVisionSLogo=M.AiVisionSLogo,exports.AiVisionTLogo=M.AiVisionTLogo,exports.AiVotIcon=a.AiVotIcon,exports.AiVotLogo=M.AiVotLogo,exports.AivexLogo=M.AivexLogo,exports.AlignBottomIcon=a.AlignBottomIcon,exports.AlignCenterIcon=a.AlignCenterIcon,exports.AlignHorizontalIcon=a.AlignHorizontalIcon,exports.AlignLeftIcon=a.AlignLeftIcon,exports.AlignRightIcon=a.AlignRightIcon,exports.AlignTopIcon=a.AlignTopIcon,exports.AngleIcon=a.AngleIcon,exports.ApertureIcon=a.ApertureIcon,exports.ArchiveIcon=a.ArchiveIcon,exports.ArrowCircleDownFilledIcon=a.ArrowCircleDownFilledIcon,exports.ArrowCircleDownIcon=a.ArrowCircleDownIcon,exports.ArrowCircleLeftFilledIcon=a.ArrowCircleLeftFilledIcon,exports.ArrowCircleLeftIcon=a.ArrowCircleLeftIcon,exports.ArrowCircleRightFilledIcon=a.ArrowCircleRightFilledIcon,exports.ArrowCircleRightIcon=a.ArrowCircleRightIcon,exports.ArrowCircleUpFilledIcon=a.ArrowCircleUpFilledIcon,exports.ArrowCircleUpIcon=a.ArrowCircleUpIcon,exports.ArrowControlIcon=a.ArrowControlIcon,exports.ArrowCornerLeftTopIcon=a.ArrowCornerLeftTopIcon,exports.ArrowDownIcon=a.ArrowDownIcon,exports.ArrowElbowDownLeftIcon=a.ArrowElbowDownLeftIcon,exports.ArrowElbowDownRightIcon=a.ArrowElbowDownRightIcon,exports.ArrowFlowIcon=a.ArrowFlowIcon,exports.ArrowGoingDownIcon=a.ArrowGoingDownIcon,exports.ArrowGoingUpIcon=a.ArrowGoingUpIcon,exports.ArrowLeftDownIcon=a.ArrowLeftDownIcon,exports.ArrowLeftIcon=a.ArrowLeftIcon,exports.ArrowLeftRightIcon=a.ArrowLeftRightIcon,exports.ArrowLeftUpIcon=a.ArrowLeftUpIcon,exports.ArrowRightDownIcon=a.ArrowRightDownIcon,exports.ArrowRightIcon=a.ArrowRightIcon,exports.ArrowRightUpIcon=a.ArrowRightUpIcon,exports.ArrowUpDownIcon=a.ArrowUpDownIcon,exports.ArrowUpIcon=a.ArrowUpIcon,exports.AssistantPolyIcon=a.AssistantPolyIcon,exports.AssistantRectIcon=a.AssistantRectIcon,exports.AtIcon=a.AtIcon,exports.Avatar=n.Avatar,exports.Badge=r.Badge,exports.BarcodeIcon=a.BarcodeIcon,exports.BellIcon=a.BellIcon,exports.BookmarkFilledIcon=a.BookmarkFilledIcon,exports.BookmarkIcon=a.BookmarkIcon,exports.BoundingBoxIcon=a.BoundingBoxIcon,exports.BreadCrumb=s.BreadCrumb,exports.BrightIcon=a.BrightIcon,exports.Button=c.Button,exports.CSVFileIcon=a.CSVFileIcon,exports.Calendar=l.Calendar,exports.CalendarIcon=a.CalendarIcon,exports.CameraIcon=a.CameraIcon,exports.Card=u.Card,exports.CaretLineDownIcon=a.CaretLineDownIcon,exports.CaretLineLeftIcon=a.CaretLineLeftIcon,exports.CaretLineRightIcon=a.CaretLineRightIcon,exports.CaretLineUpIcon=a.CaretLineUpIcon,exports.CaretUpDownIcon=a.CaretUpDownIcon,exports.ChatIcon=a.ChatIcon,exports.CheckCircleFilledIcon=a.CheckCircleFilledIcon,exports.CheckCircleIcon=a.CheckCircleIcon,exports.CheckDoubleIcon=a.CheckDoubleIcon,exports.CheckIcon=a.CheckIcon,exports.Checkbox=d.Checkbox,exports.CheckboxCheckIcon=a.CheckboxCheckIcon,exports.CheckboxIndeterminateIcon=a.CheckboxIndeterminateIcon,exports.ChipsCheckbox=f.ChipsCheckbox,exports.CircleDashedIcon=a.CircleDashedIcon,exports.CircleFilledIcon=a.CircleFilledIcon,exports.CircleOutlineIcon=a.CircleOutlineIcon,exports.ClipIcon=a.ClipIcon,exports.ClipboardIcon=a.ClipboardIcon,exports.CloseCircleFilledIcon=a.CloseCircleFilledIcon,exports.CloseCircleIcon=a.CloseCircleIcon,exports.CloseIcon=a.CloseIcon,exports.ClosedEyesIcon=a.ClosedEyesIcon,exports.ClusterIcon=a.ClusterIcon,exports.Coachmark=h.Coachmark,exports.CodeIcon=a.CodeIcon,exports.CompareIcon=a.CompareIcon,exports.ConditionGateIcon=a.ConditionGateIcon,exports.ConfirmIcon=a.ConfirmIcon,exports.ConnectedIcon=a.ConnectedIcon,exports.ContrastIcon=a.ContrastIcon,exports.Copy1Icon=a.Copy1Icon,exports.Copy2Icon=a.Copy2Icon,exports.CopyIcon=a.CopyIcon,exports.CpuIcon=a.CpuIcon,exports.CreditCardIcon=a.CreditCardIcon,exports.CropIcon=a.CropIcon,exports.CuttingIcon=a.CuttingIcon,exports.DataGrid=b.DataGrid,exports.DataGridBody=y.DataGridBody,exports.DataGridCell=y.DataGridCell,exports.DataGridColumnSettings=v.DataGridColumnSettings,exports.DataGridEmpty=y.DataGridEmpty,exports.DataGridHeader=y.DataGridHeader,exports.DataGridHeaderCell=y.DataGridHeaderCell,exports.DataGridInfiniteTrigger=y.DataGridInfiniteTrigger,exports.DataGridLoading=y.DataGridLoading,exports.DataGridRoot=y.DataGridRoot,exports.DataGridRow=y.DataGridRow,exports.DataGridViewport=y.DataGridViewport,exports.DatabaseIcon=a.DatabaseIcon,exports.DefectGeneratorIcon=a.DefectGeneratorIcon,exports.DeleteIcon=a.DeleteIcon,exports.DeletePointIcon=a.DeletePointIcon,exports.Dialog=S.Dialog,exports.DirectionDoubleDownIcon=a.DirectionDoubleDownIcon,exports.DirectionDoubleLeftIcon=a.DirectionDoubleLeftIcon,exports.DirectionDoubleRightIcon=a.DirectionDoubleRightIcon,exports.DirectionDoubleUpIcon=a.DirectionDoubleUpIcon,exports.DirectionDownIcon=a.DirectionDownIcon,exports.DirectionLeftIcon=a.DirectionLeftIcon,exports.DirectionRightIcon=a.DirectionRightIcon,exports.DirectionUpIcon=a.DirectionUpIcon,exports.DisconnectedIcon=a.DisconnectedIcon,exports.Divider=C.Divider,exports.Dot=r.Dot,exports.DotIcon=a.DotIcon,exports.DownloadIcon=a.DownloadIcon,exports.DragHandleIcon=a.DragHandleIcon,exports.DraggableScroll=w.DraggableScroll,exports.Drawer=ee.Drawer,exports.EditIcon=a.EditIcon,exports.EmptyIcon=a.EmptyIcon,exports.EnglishIcon=a.EnglishIcon,exports.EqualIcon=a.EqualIcon,exports.EraserIcon=a.EraserIcon,exports.ExpandIcon=a.ExpandIcon,exports.ExperimentIcon=a.ExperimentIcon,exports.ExportIcon=a.ExportIcon,exports.FailedIcon=a.FailedIcon,exports.Field=T.Field,exports.FieldContent=T.FieldContent,exports.FieldControl=T.FieldControl,exports.FieldDescription=T.FieldDescription,exports.FieldError=T.FieldError,exports.FieldLabel=T.FieldLabel,exports.FileIcon=a.FileIcon,exports.FilterFilledIcon=a.FilterFilledIcon,exports.FilterIcon=a.FilterIcon,exports.FilterModal=A.FilterModal,exports.FitIcon=a.FitIcon,exports.FloppyDiskIcon=a.FloppyDiskIcon,exports.FolderCloseIcon=a.FolderCloseIcon,exports.FolderOpenIcon=a.FolderOpenIcon,exports.GalleryViewLargeIcon=a.GalleryViewLargeIcon,exports.GalleryViewMediumIcon=a.GalleryViewMediumIcon,exports.GalleryViewSmallIcon=a.GalleryViewSmallIcon,exports.GitBranchIcon=a.GitBranchIcon,exports.GitCommitIcon=a.GitCommitIcon,exports.GlobalIcon=a.GlobalIcon,exports.GpuIcon=a.GpuIcon,exports.GraphIcon=a.GraphIcon,exports.GraphPieIcon=a.GraphPieIcon,exports.GraphScatterIcon=a.GraphScatterIcon,exports.GridIcon=a.GridIcon,exports.GuideHandleIcon=a.GuideHandleIcon,exports.GuideLineIcon=a.GuideLineIcon,exports.HamburgerIcon=a.HamburgerIcon,exports.HandIcon=a.HandIcon,exports.HeadphonesIcon=a.HeadphonesIcon,exports.HelpIcon=a.HelpIcon,exports.HistoryIcon=a.HistoryIcon,exports.HomeIcon=a.HomeIcon,exports.HorizontalSpacingIcon=a.HorizontalSpacingIcon,exports.HourglassIcon=a.HourglassIcon,exports.IconButton=p.IconButton,exports.ImageBrokenIcon=a.ImageBrokenIcon,exports.ImageIcon=a.ImageIcon,exports.ImagesIcon=a.ImagesIcon,exports.ImportIcon=a.ImportIcon,exports.InfoFilledIcon=a.InfoFilledIcon,exports.InfoIcon=a.InfoIcon,exports.InputBase=j.InputBase,exports.InteractionLayer=i.InteractionLayer,exports.KebabIcon=a.KebabIcon,exports.KeyDeleteIcon=a.KeyDeleteIcon,exports.KeyIcon=a.KeyIcon,exports.KeyReturnIcon=a.KeyReturnIcon,exports.KeyboardIcon=a.KeyboardIcon,exports.KoreanIcon=a.KoreanIcon,exports.LabelPointIcon=a.LabelPointIcon,exports.LanguageIcon=a.LanguageIcon,exports.LightbulbIcon=a.LightbulbIcon,exports.LightingFilledIcon=a.LightingFilledIcon,exports.LightingIcon=a.LightingIcon,exports.LineIcon=a.LineIcon,exports.LineLinkIcon=a.LineLinkIcon,exports.LinkIcon=a.LinkIcon,exports.LinkedInIcon=a.LinkedInIcon,exports.ListIcon=a.ListIcon,exports.ListPlayIcon=a.ListPlayIcon,exports.LockIcon=a.LockIcon,exports.LoginIcon=a.LoginIcon,exports.LogoutIcon=a.LogoutIcon,exports.MagicWandIcon=a.MagicWandIcon,exports.MailIcon=a.MailIcon,exports.MapIcon=a.MapIcon,exports.MapPinIcon=a.MapPinIcon,exports.MeatballIcon=a.MeatballIcon,exports.Menu=o.Menu,exports.Messagebox=N.Messagebox,exports.MicroscopeIcon=a.MicroscopeIcon,exports.MinimizeIcon=a.MinimizeIcon,exports.MinimizeWindowIcon=a.MinimizeWindowIcon,exports.MinusCircleFilledIcon=a.MinusCircleFilledIcon,exports.MinusCircleIcon=a.MinusCircleIcon,exports.MinusIcon=a.MinusIcon,exports.Modal=E.Modal,exports.ModalBase=D.ModalBase,exports.ModalSurface=E.ModalSurface,exports.ModelIcon=a.ModelIcon,exports.MonitorIcon=a.MonitorIcon,exports.MouseClickLeftIcon=a.MouseClickLeftIcon,exports.MouseClickRightIcon=a.MouseClickRightIcon,exports.MoveFolderIcon=a.MoveFolderIcon,exports.MoveIcon=a.MoveIcon,exports.MultiSelectionIcon=a.MultiSelectionIcon,exports.MuteIcon=a.MuteIcon,exports.Nav=P.Nav,exports.NavItem=P.NavItem,exports.NavTile=P.NavTile,exports.NewTabIcon=a.NewTabIcon,exports.NodeflowIcon=a.NodeflowIcon,exports.NotEqualIcon=a.NotEqualIcon,exports.OpenEyesIcon=a.OpenEyesIcon,exports.OpenedMailIcon=a.OpenedMailIcon,exports.Overlay=x.Overlay,exports.PackageIcon=a.PackageIcon,exports.PageIcon=a.PageIcon,exports.Pagination=L.Pagination,exports.Panel=R.Panel,exports.PasteIcon=a.PasteIcon,exports.PauseCircleFilledIcon=a.PauseCircleFilledIcon,exports.PauseCircleIcon=a.PauseCircleIcon,exports.PauseIcon=a.PauseIcon,exports.PenIcon=a.PenIcon,exports.PencilIcon=a.PencilIcon,exports.PhoneIcon=a.PhoneIcon,exports.PinIcon=a.PinIcon,exports.PipelineIcon=a.PipelineIcon,exports.PixelIcon=a.PixelIcon,exports.PlayCircleFilledIcon=a.PlayCircleFilledIcon,exports.PlayCircleIcon=a.PlayCircleIcon,exports.PlayIcon=a.PlayIcon,exports.PlayProgressIcon=a.PlayProgressIcon,exports.PlusCircleFilledIcon=a.PlusCircleFilledIcon,exports.PlusCircleIcon=a.PlusCircleIcon,exports.PlusIcon=a.PlusIcon,exports.PointEditIcon=a.PointEditIcon,exports.PointIcon=a.PointIcon,exports.Popover=m.Popover,exports.ProgressBar=z.ProgressBar,exports.PushPinFilledIcon=a.PushPinFilledIcon,exports.PushPinIcon=a.PushPinIcon,exports.QuestionIcon=a.QuestionIcon,exports.Radio=B.Radio,exports.RectDashedIcon=a.RectDashedIcon,exports.RectIcon=a.RectIcon,exports.RedoIcon=a.RedoIcon,exports.RefreshIcon=a.RefreshIcon,exports.RepeatIcon=a.RepeatIcon,exports.RepeatOnceIcon=a.RepeatOnceIcon,exports.RequestStatusIcon=a.RequestStatusIcon,exports.RocketIcon=a.RocketIcon,exports.RotateRectIcon=a.RotateRectIcon,exports.RotateRectOCRIcon=a.RotateRectOCRIcon,exports.RulerIcon=a.RulerIcon,exports.ScaleLeftBottomIcon=a.ScaleLeftBottomIcon,exports.ScaleLeftTopIcon=a.ScaleLeftTopIcon,exports.ScaleRightBottomIcon=a.ScaleRightBottomIcon,exports.ScaleRightTopIcon=a.ScaleRightTopIcon,exports.ScrollArea=_.ScrollArea,exports.ScrollBar=_.ScrollBar,exports.SearchIcon=a.SearchIcon,exports.SegmentedItem=V.SegmentedItem,exports.SegmentedRoot=V.SegmentedRoot,exports.SelectBox=I.SelectBox,exports.SelectButton=F.SelectButton,exports.SendIcon=a.SendIcon,exports.SettingIcon=a.SettingIcon,exports.ShapesIcon=a.ShapesIcon,exports.Shortcut=H.Shortcut,exports.ShrinkIcon=a.ShrinkIcon,exports.ShuffleIcon=a.ShuffleIcon,exports.SidebarIcon=a.SidebarIcon,exports.SimplificationIcon=a.SimplificationIcon,exports.Skeleton=g.Skeleton,exports.Slider=U.Slider,exports.SmoothIcon=a.SmoothIcon,exports.SortAscendingIcon=a.SortAscendingIcon,exports.SortDescendingIcon=a.SortDescendingIcon,exports.SoundIcon=a.SoundIcon,exports.SpecificAreaIcon=a.SpecificAreaIcon,exports.Spinner=W.Spinner,exports.StarFilledIcon=a.StarFilledIcon,exports.StarIcon=a.StarIcon,exports.StopCircleFilledIcon=a.StopCircleFilledIcon,exports.StopCircleIcon=a.StopCircleIcon,exports.StopIcon=a.StopIcon,exports.StorageIcon=a.StorageIcon,exports.StrokeIcon=a.StrokeIcon,exports.Switch=G.Switch,exports.TabContent=K.TabContent,exports.TabList=K.TabList,exports.TabRoot=K.TabRoot,exports.TabTrigger=K.TabTrigger,exports.Tag=O.Tag,exports.TagFilledIcon=a.TagFilledIcon,exports.TagFilledOpacityIcon=a.TagFilledOpacityIcon,exports.TagIcon=a.TagIcon,exports.Tagbox=q.Tagbox,exports.TargetIcon=a.TargetIcon,exports.TaskQueueIcon=a.TaskQueueIcon,exports.TeamIcon=a.TeamIcon,exports.TempIcon=a.TempIcon,exports.TestIcon=a.TestIcon,exports.TextBoldIcon=a.TextBoldIcon,exports.TextH1Icon=a.TextH1Icon,exports.TextH2Icon=a.TextH2Icon,exports.TextH3Icon=a.TextH3Icon,exports.TextIcon=a.TextIcon,exports.TextItalicIcon=a.TextItalicIcon,exports.TextStrikethroughIcon=a.TextStrikethroughIcon,exports.TextUnderlineIcon=a.TextUnderlineIcon,exports.Textarea=J.Textarea,exports.Textbox=Y.Textbox,exports.ThumbsDownFilledIcon=a.ThumbsDownFilledIcon,exports.ThumbsDownIcon=a.ThumbsDownIcon,exports.ThumbsUpIcon=a.ThumbsUpIcon,exports.TimeIcon=a.TimeIcon,exports.Toast=X.Toast,exports.ToastToaster=X.ToastToaster,exports.ToggleButton=k.ToggleButton,exports.ToolIcon=a.ToolIcon,exports.Tooltip=t.Tooltip,exports.TriangleDashedIcon=a.TriangleDashedIcon,exports.Typography=Z.Typography,exports.UndoIcon=a.UndoIcon,exports.UneditableIcon=a.UneditableIcon,exports.UnlockIcon=a.UnlockIcon,exports.UnreadIcon=a.UnreadIcon,exports.UploadArea=Q.UploadArea,exports.UploadIcon=a.UploadIcon,exports.UserIcon=a.UserIcon,exports.VerticalSpacingIcon=a.VerticalSpacingIcon,exports.WarningCircleFilledIcon=a.WarningCircleFilledIcon,exports.WarningCircleIcon=a.WarningCircleIcon,exports.WarningTriangleFilledIcon=a.WarningTriangleFilledIcon,exports.WarningTriangleIcon=a.WarningTriangleIcon,exports.WheelIcon=a.WheelIcon,exports.WorkspaceIcon=a.WorkspaceIcon,exports.Zoom100Icon=a.Zoom100Icon,exports.ZoomInIcon=a.ZoomInIcon,exports.ZoomOutIcon=a.ZoomOutIcon,exports.avatarVariants=n.avatarVariants,exports.badgeVariants=r.badgeVariants,exports.buttonVariants=c.buttonVariants,exports.checkboxVariants=d.checkboxVariants,exports.cn=e.cn,exports.dividerVariants=C.dividerVariants,exports.dotVariants=r.dotVariants,exports.fieldVariants=T.fieldVariants,Object.defineProperty(exports,`getCoreRowModel`,{enumerable:!0,get:function(){return $.getCoreRowModel}}),Object.defineProperty(exports,`getExpandedRowModel`,{enumerable:!0,get:function(){return $.getExpandedRowModel}}),Object.defineProperty(exports,`getFacetedMinMaxValues`,{enumerable:!0,get:function(){return $.getFacetedMinMaxValues}}),Object.defineProperty(exports,`getFacetedRowModel`,{enumerable:!0,get:function(){return $.getFacetedRowModel}}),Object.defineProperty(exports,`getFacetedUniqueValues`,{enumerable:!0,get:function(){return $.getFacetedUniqueValues}}),Object.defineProperty(exports,`getFilteredRowModel`,{enumerable:!0,get:function(){return $.getFilteredRowModel}}),Object.defineProperty(exports,`getGroupedRowModel`,{enumerable:!0,get:function(){return $.getGroupedRowModel}}),Object.defineProperty(exports,`getPaginationRowModel`,{enumerable:!0,get:function(){return $.getPaginationRowModel}}),Object.defineProperty(exports,`getSortedRowModel`,{enumerable:!0,get:function(){return $.getSortedRowModel}}),exports.iconButtonVariants=p.iconButtonVariants,exports.inputContainerVariants=j.inputContainerVariants,exports.isShortcutTarget=te.isShortcutTarget,exports.messageboxVariants=N.messageboxVariants,exports.navItemVariants=P.navItemVariants,exports.navTileVariants=P.navTileVariants,exports.overlayVariants=x.overlayVariants,exports.radioVariants=B.radioVariants,exports.tagVariants=O.tagVariants,exports.toast=ne.toast,exports.toastVariants=X.toastVariants,exports.toggleButtonVariants=k.toggleButtonVariants,exports.tooltipContentVariants=t.tooltipContentVariants,exports.typographyVariants=Z.typographyVariants;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`./_virtual/_rolldown/runtime.cjs`);/* empty css */const e=require(`./utils.cjs`),t=require(`./components/Tooltip/Tooltip.cjs`),n=require(`./components/Avatar/Avatar.cjs`),r=require(`./components/Badge/Badge.cjs`),i=require(`./components/InteractionLayer/InteractionLayer.cjs`),a=require(`./components/Icon/index.cjs`),o=require(`./components/Menu/Menu.cjs`),s=require(`./components/BreadCrumb/BreadCrumb.cjs`),c=require(`./components/Button/Button.cjs`),l=require(`./components/Calendar/Calendar.cjs`),u=require(`./components/Card/Card.cjs`),d=require(`./components/Checkbox/Checkbox.cjs`),f=require(`./components/Checkbox/ChipsCheckbox.cjs`),p=require(`./components/IconButton/IconButton.cjs`),m=require(`./components/Popover/Popover.cjs`),h=require(`./components/Coachmark/Coachmark.cjs`),g=require(`./components/Skeleton/Skeleton.cjs`),_=require(`./components/TruncatedText/TruncatedText.cjs`),v=require(`./components/ScrollArea/ScrollArea.cjs`),y=require(`./components/DataGrid/DataGridColumnSettings.cjs`),b=require(`./components/DataGrid/DataGridPrimitives.cjs`),x=require(`./components/DataGrid/DataGrid.cjs`),S=require(`./components/Overlay/Overlay.cjs`),C=require(`./components/Dialog/Dialog.cjs`),w=require(`./components/Divider/Divider.cjs`),ee=require(`./components/DraggableScroll/DraggableScroll.cjs`),T=require(`./components/Drawer/Drawer.cjs`),E=require(`./components/Field/Field.cjs`),D=require(`./components/Modal/Modal.cjs`),O=require(`./components/Modal/ModalBase.cjs`),k=require(`./components/Tag/Tag.cjs`),A=require(`./components/ToggleButton/ToggleButton.cjs`),j=require(`./components/FilterModal/FilterModal.cjs`),M=require(`./components/InputBase/InputBase.cjs`),N=require(`./components/Logo/index.cjs`),P=require(`./components/Messagebox/Messagebox.cjs`),F=require(`./components/Nav/Nav.cjs`),I=require(`./components/SelectButton/SelectButton.cjs`),L=require(`./components/SelectBox/SelectBox.cjs`),R=require(`./components/Pagination/Pagination.cjs`),z=require(`./components/Panel/Panel.cjs`),B=require(`./components/ProgressBar/ProgressBar.cjs`),V=require(`./components/Radio/Radio.cjs`),H=require(`./components/Segmented/Segmented.cjs`),U=require(`./components/Shortcut/Shortcut.cjs`),W=require(`./components/Slider/Slider.cjs`),G=require(`./components/Spinner/Spinner.cjs`),K=require(`./components/Switch/Switch.cjs`),q=require(`./components/Tab/Tab.cjs`),J=require(`./components/Tagbox/Tagbox.cjs`),Y=require(`./components/Textarea/Textarea.cjs`),X=require(`./components/Textbox/Textbox.cjs`),Z=require(`./components/Toast/Toast.cjs`),Q=require(`./components/Typography/Typography.cjs`),te=require(`./components/UploadArea/UploadArea.cjs`),ne=require(`./utils/keyboard.cjs`);let $=require(`@tanstack/react-table`),re=require(`sonner`);exports.AddFolderIcon=a.AddFolderIcon,exports.AddPointIcon=a.AddPointIcon,exports.AdjustIcon=a.AdjustIcon,exports.AiSparkleGradientIcon=a.AiSparkleGradientIcon,exports.AiSparkleIcon=a.AiSparkleIcon,exports.AiVDataIcon=a.AiVDataIcon,exports.AiVDataLogo=N.AiVDataLogo,exports.AiVDataSymbol=N.AiVDataSymbol,exports.AiVOpsIcon=a.AiVOpsIcon,exports.AiVOpsLogo=N.AiVOpsLogo,exports.AiViewIcon=a.AiViewIcon,exports.AiViewLogo=N.AiViewLogo,exports.AiVisionIcon=a.AiVisionIcon,exports.AiVisionLogo=N.AiVisionLogo,exports.AiVisionMLogo=N.AiVisionMLogo,exports.AiVisionSLogo=N.AiVisionSLogo,exports.AiVisionTLogo=N.AiVisionTLogo,exports.AiVotIcon=a.AiVotIcon,exports.AiVotLogo=N.AiVotLogo,exports.AivexLogo=N.AivexLogo,exports.AlignBottomIcon=a.AlignBottomIcon,exports.AlignCenterIcon=a.AlignCenterIcon,exports.AlignHorizontalIcon=a.AlignHorizontalIcon,exports.AlignLeftIcon=a.AlignLeftIcon,exports.AlignRightIcon=a.AlignRightIcon,exports.AlignTopIcon=a.AlignTopIcon,exports.AngleIcon=a.AngleIcon,exports.ApertureIcon=a.ApertureIcon,exports.ArchiveIcon=a.ArchiveIcon,exports.ArrowCircleDownFilledIcon=a.ArrowCircleDownFilledIcon,exports.ArrowCircleDownIcon=a.ArrowCircleDownIcon,exports.ArrowCircleLeftFilledIcon=a.ArrowCircleLeftFilledIcon,exports.ArrowCircleLeftIcon=a.ArrowCircleLeftIcon,exports.ArrowCircleRightFilledIcon=a.ArrowCircleRightFilledIcon,exports.ArrowCircleRightIcon=a.ArrowCircleRightIcon,exports.ArrowCircleUpFilledIcon=a.ArrowCircleUpFilledIcon,exports.ArrowCircleUpIcon=a.ArrowCircleUpIcon,exports.ArrowControlIcon=a.ArrowControlIcon,exports.ArrowCornerLeftTopIcon=a.ArrowCornerLeftTopIcon,exports.ArrowDownIcon=a.ArrowDownIcon,exports.ArrowElbowDownLeftIcon=a.ArrowElbowDownLeftIcon,exports.ArrowElbowDownRightIcon=a.ArrowElbowDownRightIcon,exports.ArrowFlowIcon=a.ArrowFlowIcon,exports.ArrowGoingDownIcon=a.ArrowGoingDownIcon,exports.ArrowGoingUpIcon=a.ArrowGoingUpIcon,exports.ArrowLeftDownIcon=a.ArrowLeftDownIcon,exports.ArrowLeftIcon=a.ArrowLeftIcon,exports.ArrowLeftRightIcon=a.ArrowLeftRightIcon,exports.ArrowLeftUpIcon=a.ArrowLeftUpIcon,exports.ArrowRightDownIcon=a.ArrowRightDownIcon,exports.ArrowRightIcon=a.ArrowRightIcon,exports.ArrowRightUpIcon=a.ArrowRightUpIcon,exports.ArrowUpDownIcon=a.ArrowUpDownIcon,exports.ArrowUpIcon=a.ArrowUpIcon,exports.AssistantPolyIcon=a.AssistantPolyIcon,exports.AssistantRectIcon=a.AssistantRectIcon,exports.AtIcon=a.AtIcon,exports.Avatar=n.Avatar,exports.Badge=r.Badge,exports.BarcodeIcon=a.BarcodeIcon,exports.BellIcon=a.BellIcon,exports.BookmarkFilledIcon=a.BookmarkFilledIcon,exports.BookmarkIcon=a.BookmarkIcon,exports.BoundingBoxIcon=a.BoundingBoxIcon,exports.BreadCrumb=s.BreadCrumb,exports.BrightIcon=a.BrightIcon,exports.Button=c.Button,exports.CSVFileIcon=a.CSVFileIcon,exports.Calendar=l.Calendar,exports.CalendarIcon=a.CalendarIcon,exports.CameraIcon=a.CameraIcon,exports.Card=u.Card,exports.CaretLineDownIcon=a.CaretLineDownIcon,exports.CaretLineLeftIcon=a.CaretLineLeftIcon,exports.CaretLineRightIcon=a.CaretLineRightIcon,exports.CaretLineUpIcon=a.CaretLineUpIcon,exports.CaretUpDownIcon=a.CaretUpDownIcon,exports.ChatIcon=a.ChatIcon,exports.CheckCircleFilledIcon=a.CheckCircleFilledIcon,exports.CheckCircleIcon=a.CheckCircleIcon,exports.CheckDoubleIcon=a.CheckDoubleIcon,exports.CheckIcon=a.CheckIcon,exports.Checkbox=d.Checkbox,exports.CheckboxCheckIcon=a.CheckboxCheckIcon,exports.CheckboxIndeterminateIcon=a.CheckboxIndeterminateIcon,exports.ChipsCheckbox=f.ChipsCheckbox,exports.CircleDashedIcon=a.CircleDashedIcon,exports.CircleFilledIcon=a.CircleFilledIcon,exports.CircleOutlineIcon=a.CircleOutlineIcon,exports.ClipIcon=a.ClipIcon,exports.ClipboardIcon=a.ClipboardIcon,exports.CloseCircleFilledIcon=a.CloseCircleFilledIcon,exports.CloseCircleIcon=a.CloseCircleIcon,exports.CloseIcon=a.CloseIcon,exports.ClosedEyesIcon=a.ClosedEyesIcon,exports.ClusterIcon=a.ClusterIcon,exports.Coachmark=h.Coachmark,exports.CodeIcon=a.CodeIcon,exports.CompareIcon=a.CompareIcon,exports.ConditionGateIcon=a.ConditionGateIcon,exports.ConfirmIcon=a.ConfirmIcon,exports.ConnectedIcon=a.ConnectedIcon,exports.ContrastIcon=a.ContrastIcon,exports.Copy1Icon=a.Copy1Icon,exports.Copy2Icon=a.Copy2Icon,exports.CopyIcon=a.CopyIcon,exports.CpuIcon=a.CpuIcon,exports.CreditCardIcon=a.CreditCardIcon,exports.CropIcon=a.CropIcon,exports.CuttingIcon=a.CuttingIcon,exports.DataGrid=x.DataGrid,exports.DataGridBody=b.DataGridBody,exports.DataGridCell=b.DataGridCell,exports.DataGridColumnSettings=y.DataGridColumnSettings,exports.DataGridEmpty=b.DataGridEmpty,exports.DataGridHeader=b.DataGridHeader,exports.DataGridHeaderCell=b.DataGridHeaderCell,exports.DataGridInfiniteTrigger=b.DataGridInfiniteTrigger,exports.DataGridLoading=b.DataGridLoading,exports.DataGridRoot=b.DataGridRoot,exports.DataGridRow=b.DataGridRow,exports.DataGridViewport=b.DataGridViewport,exports.DatabaseIcon=a.DatabaseIcon,exports.DefectGeneratorIcon=a.DefectGeneratorIcon,exports.DeleteIcon=a.DeleteIcon,exports.DeletePointIcon=a.DeletePointIcon,exports.Dialog=C.Dialog,exports.DirectionDoubleDownIcon=a.DirectionDoubleDownIcon,exports.DirectionDoubleLeftIcon=a.DirectionDoubleLeftIcon,exports.DirectionDoubleRightIcon=a.DirectionDoubleRightIcon,exports.DirectionDoubleUpIcon=a.DirectionDoubleUpIcon,exports.DirectionDownIcon=a.DirectionDownIcon,exports.DirectionLeftIcon=a.DirectionLeftIcon,exports.DirectionRightIcon=a.DirectionRightIcon,exports.DirectionUpIcon=a.DirectionUpIcon,exports.DisconnectedIcon=a.DisconnectedIcon,exports.Divider=w.Divider,exports.Dot=r.Dot,exports.DotIcon=a.DotIcon,exports.DownloadIcon=a.DownloadIcon,exports.DragHandleIcon=a.DragHandleIcon,exports.DraggableScroll=ee.DraggableScroll,exports.Drawer=T.Drawer,exports.EditIcon=a.EditIcon,exports.EmptyIcon=a.EmptyIcon,exports.EnglishIcon=a.EnglishIcon,exports.EqualIcon=a.EqualIcon,exports.EraserIcon=a.EraserIcon,exports.ExpandIcon=a.ExpandIcon,exports.ExperimentIcon=a.ExperimentIcon,exports.ExportIcon=a.ExportIcon,exports.FailedIcon=a.FailedIcon,exports.Field=E.Field,exports.FieldContent=E.FieldContent,exports.FieldControl=E.FieldControl,exports.FieldDescription=E.FieldDescription,exports.FieldError=E.FieldError,exports.FieldLabel=E.FieldLabel,exports.FileIcon=a.FileIcon,exports.FilterFilledIcon=a.FilterFilledIcon,exports.FilterIcon=a.FilterIcon,exports.FilterModal=j.FilterModal,exports.FitIcon=a.FitIcon,exports.FloppyDiskIcon=a.FloppyDiskIcon,exports.FolderCloseIcon=a.FolderCloseIcon,exports.FolderOpenIcon=a.FolderOpenIcon,exports.GalleryViewLargeIcon=a.GalleryViewLargeIcon,exports.GalleryViewMediumIcon=a.GalleryViewMediumIcon,exports.GalleryViewSmallIcon=a.GalleryViewSmallIcon,exports.GitBranchIcon=a.GitBranchIcon,exports.GitCommitIcon=a.GitCommitIcon,exports.GlobalIcon=a.GlobalIcon,exports.GpuIcon=a.GpuIcon,exports.GraphIcon=a.GraphIcon,exports.GraphPieIcon=a.GraphPieIcon,exports.GraphScatterIcon=a.GraphScatterIcon,exports.GridIcon=a.GridIcon,exports.GuideHandleIcon=a.GuideHandleIcon,exports.GuideLineIcon=a.GuideLineIcon,exports.HamburgerIcon=a.HamburgerIcon,exports.HandIcon=a.HandIcon,exports.HeadphonesIcon=a.HeadphonesIcon,exports.HelpIcon=a.HelpIcon,exports.HistoryIcon=a.HistoryIcon,exports.HomeIcon=a.HomeIcon,exports.HorizontalSpacingIcon=a.HorizontalSpacingIcon,exports.HourglassIcon=a.HourglassIcon,exports.IconButton=p.IconButton,exports.ImageBrokenIcon=a.ImageBrokenIcon,exports.ImageIcon=a.ImageIcon,exports.ImagesIcon=a.ImagesIcon,exports.ImportIcon=a.ImportIcon,exports.InfoFilledIcon=a.InfoFilledIcon,exports.InfoIcon=a.InfoIcon,exports.InputBase=M.InputBase,exports.InteractionLayer=i.InteractionLayer,exports.KebabIcon=a.KebabIcon,exports.KeyDeleteIcon=a.KeyDeleteIcon,exports.KeyIcon=a.KeyIcon,exports.KeyReturnIcon=a.KeyReturnIcon,exports.KeyboardIcon=a.KeyboardIcon,exports.KoreanIcon=a.KoreanIcon,exports.LabelPointIcon=a.LabelPointIcon,exports.LanguageIcon=a.LanguageIcon,exports.LightbulbIcon=a.LightbulbIcon,exports.LightingFilledIcon=a.LightingFilledIcon,exports.LightingIcon=a.LightingIcon,exports.LineIcon=a.LineIcon,exports.LineLinkIcon=a.LineLinkIcon,exports.LinkIcon=a.LinkIcon,exports.LinkedInIcon=a.LinkedInIcon,exports.ListIcon=a.ListIcon,exports.ListPlayIcon=a.ListPlayIcon,exports.LockIcon=a.LockIcon,exports.LoginIcon=a.LoginIcon,exports.LogoutIcon=a.LogoutIcon,exports.MagicWandIcon=a.MagicWandIcon,exports.MailIcon=a.MailIcon,exports.MapIcon=a.MapIcon,exports.MapPinIcon=a.MapPinIcon,exports.MeatballIcon=a.MeatballIcon,exports.Menu=o.Menu,exports.Messagebox=P.Messagebox,exports.MicroscopeIcon=a.MicroscopeIcon,exports.MinimizeIcon=a.MinimizeIcon,exports.MinimizeWindowIcon=a.MinimizeWindowIcon,exports.MinusCircleFilledIcon=a.MinusCircleFilledIcon,exports.MinusCircleIcon=a.MinusCircleIcon,exports.MinusIcon=a.MinusIcon,exports.Modal=D.Modal,exports.ModalBase=O.ModalBase,exports.ModalSurface=D.ModalSurface,exports.ModelIcon=a.ModelIcon,exports.MonitorIcon=a.MonitorIcon,exports.MouseClickLeftIcon=a.MouseClickLeftIcon,exports.MouseClickRightIcon=a.MouseClickRightIcon,exports.MoveFolderIcon=a.MoveFolderIcon,exports.MoveIcon=a.MoveIcon,exports.MultiSelectionIcon=a.MultiSelectionIcon,exports.MuteIcon=a.MuteIcon,exports.Nav=F.Nav,exports.NavItem=F.NavItem,exports.NavTile=F.NavTile,exports.NewTabIcon=a.NewTabIcon,exports.NodeflowIcon=a.NodeflowIcon,exports.NotEqualIcon=a.NotEqualIcon,exports.OpenEyesIcon=a.OpenEyesIcon,exports.OpenedMailIcon=a.OpenedMailIcon,exports.Overlay=S.Overlay,exports.PackageIcon=a.PackageIcon,exports.PageIcon=a.PageIcon,exports.Pagination=R.Pagination,exports.Panel=z.Panel,exports.PasteIcon=a.PasteIcon,exports.PauseCircleFilledIcon=a.PauseCircleFilledIcon,exports.PauseCircleIcon=a.PauseCircleIcon,exports.PauseIcon=a.PauseIcon,exports.PenIcon=a.PenIcon,exports.PencilIcon=a.PencilIcon,exports.PhoneIcon=a.PhoneIcon,exports.PinIcon=a.PinIcon,exports.PipelineIcon=a.PipelineIcon,exports.PixelIcon=a.PixelIcon,exports.PlayCircleFilledIcon=a.PlayCircleFilledIcon,exports.PlayCircleIcon=a.PlayCircleIcon,exports.PlayIcon=a.PlayIcon,exports.PlayProgressIcon=a.PlayProgressIcon,exports.PlusCircleFilledIcon=a.PlusCircleFilledIcon,exports.PlusCircleIcon=a.PlusCircleIcon,exports.PlusIcon=a.PlusIcon,exports.PointEditIcon=a.PointEditIcon,exports.PointIcon=a.PointIcon,exports.Popover=m.Popover,exports.ProgressBar=B.ProgressBar,exports.PushPinFilledIcon=a.PushPinFilledIcon,exports.PushPinIcon=a.PushPinIcon,exports.QuestionIcon=a.QuestionIcon,exports.Radio=V.Radio,exports.RectDashedIcon=a.RectDashedIcon,exports.RectIcon=a.RectIcon,exports.RedoIcon=a.RedoIcon,exports.RefreshIcon=a.RefreshIcon,exports.RepeatIcon=a.RepeatIcon,exports.RepeatOnceIcon=a.RepeatOnceIcon,exports.RequestStatusIcon=a.RequestStatusIcon,exports.RocketIcon=a.RocketIcon,exports.RotateRectIcon=a.RotateRectIcon,exports.RotateRectOCRIcon=a.RotateRectOCRIcon,exports.RulerIcon=a.RulerIcon,exports.ScaleLeftBottomIcon=a.ScaleLeftBottomIcon,exports.ScaleLeftTopIcon=a.ScaleLeftTopIcon,exports.ScaleRightBottomIcon=a.ScaleRightBottomIcon,exports.ScaleRightTopIcon=a.ScaleRightTopIcon,exports.ScrollArea=v.ScrollArea,exports.ScrollBar=v.ScrollBar,exports.SearchIcon=a.SearchIcon,exports.SegmentedItem=H.SegmentedItem,exports.SegmentedRoot=H.SegmentedRoot,exports.SelectBox=L.SelectBox,exports.SelectButton=I.SelectButton,exports.SendIcon=a.SendIcon,exports.SettingIcon=a.SettingIcon,exports.ShapesIcon=a.ShapesIcon,exports.Shortcut=U.Shortcut,exports.ShrinkIcon=a.ShrinkIcon,exports.ShuffleIcon=a.ShuffleIcon,exports.SidebarIcon=a.SidebarIcon,exports.SimplificationIcon=a.SimplificationIcon,exports.Skeleton=g.Skeleton,exports.Slider=W.Slider,exports.SmoothIcon=a.SmoothIcon,exports.SortAscendingIcon=a.SortAscendingIcon,exports.SortDescendingIcon=a.SortDescendingIcon,exports.SoundIcon=a.SoundIcon,exports.SpecificAreaIcon=a.SpecificAreaIcon,exports.Spinner=G.Spinner,exports.StarFilledIcon=a.StarFilledIcon,exports.StarIcon=a.StarIcon,exports.StopCircleFilledIcon=a.StopCircleFilledIcon,exports.StopCircleIcon=a.StopCircleIcon,exports.StopIcon=a.StopIcon,exports.StorageIcon=a.StorageIcon,exports.StrokeIcon=a.StrokeIcon,exports.Switch=K.Switch,exports.TabContent=q.TabContent,exports.TabList=q.TabList,exports.TabRoot=q.TabRoot,exports.TabTrigger=q.TabTrigger,exports.Tag=k.Tag,exports.TagFilledIcon=a.TagFilledIcon,exports.TagFilledOpacityIcon=a.TagFilledOpacityIcon,exports.TagIcon=a.TagIcon,exports.Tagbox=J.Tagbox,exports.TargetIcon=a.TargetIcon,exports.TaskQueueIcon=a.TaskQueueIcon,exports.TeamIcon=a.TeamIcon,exports.TempIcon=a.TempIcon,exports.TestIcon=a.TestIcon,exports.TextBoldIcon=a.TextBoldIcon,exports.TextH1Icon=a.TextH1Icon,exports.TextH2Icon=a.TextH2Icon,exports.TextH3Icon=a.TextH3Icon,exports.TextIcon=a.TextIcon,exports.TextItalicIcon=a.TextItalicIcon,exports.TextStrikethroughIcon=a.TextStrikethroughIcon,exports.TextUnderlineIcon=a.TextUnderlineIcon,exports.Textarea=Y.Textarea,exports.Textbox=X.Textbox,exports.ThumbsDownFilledIcon=a.ThumbsDownFilledIcon,exports.ThumbsDownIcon=a.ThumbsDownIcon,exports.ThumbsUpIcon=a.ThumbsUpIcon,exports.TimeIcon=a.TimeIcon,exports.Toast=Z.Toast,exports.ToastToaster=Z.ToastToaster,exports.ToggleButton=A.ToggleButton,exports.ToolIcon=a.ToolIcon,exports.Tooltip=t.Tooltip,exports.TriangleDashedIcon=a.TriangleDashedIcon,exports.TruncatedText=_.TruncatedText,exports.Typography=Q.Typography,exports.UndoIcon=a.UndoIcon,exports.UneditableIcon=a.UneditableIcon,exports.UnlockIcon=a.UnlockIcon,exports.UnreadIcon=a.UnreadIcon,exports.UploadArea=te.UploadArea,exports.UploadIcon=a.UploadIcon,exports.UserIcon=a.UserIcon,exports.VerticalSpacingIcon=a.VerticalSpacingIcon,exports.WarningCircleFilledIcon=a.WarningCircleFilledIcon,exports.WarningCircleIcon=a.WarningCircleIcon,exports.WarningTriangleFilledIcon=a.WarningTriangleFilledIcon,exports.WarningTriangleIcon=a.WarningTriangleIcon,exports.WheelIcon=a.WheelIcon,exports.WorkspaceIcon=a.WorkspaceIcon,exports.Zoom100Icon=a.Zoom100Icon,exports.ZoomInIcon=a.ZoomInIcon,exports.ZoomOutIcon=a.ZoomOutIcon,exports.avatarVariants=n.avatarVariants,exports.badgeVariants=r.badgeVariants,exports.buttonVariants=c.buttonVariants,exports.checkboxVariants=d.checkboxVariants,exports.cn=e.cn,exports.dividerVariants=w.dividerVariants,exports.dotVariants=r.dotVariants,exports.fieldVariants=E.fieldVariants,Object.defineProperty(exports,`getCoreRowModel`,{enumerable:!0,get:function(){return $.getCoreRowModel}}),Object.defineProperty(exports,`getExpandedRowModel`,{enumerable:!0,get:function(){return $.getExpandedRowModel}}),Object.defineProperty(exports,`getFacetedMinMaxValues`,{enumerable:!0,get:function(){return $.getFacetedMinMaxValues}}),Object.defineProperty(exports,`getFacetedRowModel`,{enumerable:!0,get:function(){return $.getFacetedRowModel}}),Object.defineProperty(exports,`getFacetedUniqueValues`,{enumerable:!0,get:function(){return $.getFacetedUniqueValues}}),Object.defineProperty(exports,`getFilteredRowModel`,{enumerable:!0,get:function(){return $.getFilteredRowModel}}),Object.defineProperty(exports,`getGroupedRowModel`,{enumerable:!0,get:function(){return $.getGroupedRowModel}}),Object.defineProperty(exports,`getPaginationRowModel`,{enumerable:!0,get:function(){return $.getPaginationRowModel}}),Object.defineProperty(exports,`getSortedRowModel`,{enumerable:!0,get:function(){return $.getSortedRowModel}}),exports.iconButtonVariants=p.iconButtonVariants,exports.inputContainerVariants=M.inputContainerVariants,exports.isShortcutTarget=ne.isShortcutTarget,exports.messageboxVariants=P.messageboxVariants,exports.navItemVariants=F.navItemVariants,exports.navTileVariants=F.navTileVariants,exports.overlayVariants=S.overlayVariants,exports.radioVariants=V.radioVariants,exports.tagVariants=k.tagVariants,exports.toast=re.toast,exports.toastVariants=Z.toastVariants,exports.toggleButtonVariants=A.toggleButtonVariants,exports.tooltipContentVariants=t.tooltipContentVariants,exports.typographyVariants=Q.typographyVariants;
|
package/dist/index.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ export * from "./components/Textbox";
|
|
|
45
45
|
export * from "./components/Toast";
|
|
46
46
|
export * from "./components/ToggleButton";
|
|
47
47
|
export * from "./components/Tooltip";
|
|
48
|
+
export * from "./components/TruncatedText";
|
|
48
49
|
export * from "./components/Typography";
|
|
49
50
|
export * from "./components/UploadArea";
|
|
50
51
|
export { cn } from "./utils/cn";
|