@tipp/ui 0.1.7 → 0.1.9

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.
Files changed (58) hide show
  1. package/dist/atoms/index.cjs +6 -6
  2. package/dist/atoms/index.cjs.map +1 -1
  3. package/dist/atoms/index.d.cts +1 -1
  4. package/dist/atoms/index.d.ts +1 -1
  5. package/dist/atoms/index.js +5 -5
  6. package/dist/atoms/text.cjs +3 -3
  7. package/dist/atoms/text.cjs.map +1 -1
  8. package/dist/atoms/text.d.cts +4 -4
  9. package/dist/atoms/text.d.ts +4 -4
  10. package/dist/atoms/text.js +3 -3
  11. package/dist/atoms/typo.cjs +78 -0
  12. package/dist/atoms/typo.cjs.map +1 -0
  13. package/dist/atoms/typo.d.cts +9 -0
  14. package/dist/atoms/typo.d.ts +9 -0
  15. package/dist/atoms/typo.js +8 -0
  16. package/dist/atoms/typo.js.map +1 -0
  17. package/dist/chunk-5U2NU566.js +31 -0
  18. package/dist/chunk-5U2NU566.js.map +1 -0
  19. package/dist/chunk-DMV3DYHO.js +31 -0
  20. package/dist/chunk-DMV3DYHO.js.map +1 -0
  21. package/dist/chunk-FUSP6J72.js +112 -0
  22. package/dist/chunk-FUSP6J72.js.map +1 -0
  23. package/dist/chunk-S2YRXQZJ.js +112 -0
  24. package/dist/chunk-S2YRXQZJ.js.map +1 -0
  25. package/dist/chunk-UKJ64ZOX.js +1 -0
  26. package/dist/chunk-UKJ64ZOX.js.map +1 -0
  27. package/dist/chunk-VEASW5N2.js +37 -0
  28. package/dist/chunk-VEASW5N2.js.map +1 -0
  29. package/dist/chunk-W4OUB7S7.js +25 -0
  30. package/dist/chunk-W4OUB7S7.js.map +1 -0
  31. package/dist/chunk-WV6ZQLVD.js +112 -0
  32. package/dist/chunk-WV6ZQLVD.js.map +1 -0
  33. package/dist/chunk-XR5XS5FO.js +112 -0
  34. package/dist/chunk-XR5XS5FO.js.map +1 -0
  35. package/dist/icon.cjs +2 -0
  36. package/dist/icon.cjs.map +1 -1
  37. package/dist/icon.d.cts +1 -1
  38. package/dist/icon.d.ts +1 -1
  39. package/dist/icon.js +3 -1
  40. package/dist/index.cjs +8 -6
  41. package/dist/index.cjs.map +1 -1
  42. package/dist/index.d.cts +2 -2
  43. package/dist/index.d.ts +2 -2
  44. package/dist/index.js +8 -6
  45. package/dist/molecules/expand-table/index.cjs +4 -4
  46. package/dist/molecules/expand-table/index.cjs.map +1 -1
  47. package/dist/molecules/expand-table/index.js +2 -2
  48. package/dist/molecules/expand-table/row.cjs +1 -1
  49. package/dist/molecules/expand-table/row.cjs.map +1 -1
  50. package/dist/molecules/expand-table/row.js +1 -1
  51. package/dist/molecules/index.cjs +4 -4
  52. package/dist/molecules/index.cjs.map +1 -1
  53. package/dist/molecules/index.js +2 -2
  54. package/package.json +1 -1
  55. package/src/atoms/index.ts +1 -1
  56. package/src/atoms/{text.tsx → typo.tsx} +2 -2
  57. package/src/icon.ts +1 -0
  58. package/src/molecules/expand-table/index.tsx +4 -4
@@ -0,0 +1,112 @@
1
+ import {
2
+ Row
3
+ } from "./chunk-ZE5G2S34.js";
4
+ import {
5
+ TriangleArrowDownIcon
6
+ } from "./chunk-BSTJBBEX.js";
7
+ import {
8
+ TriangleArrowUpIcon
9
+ } from "./chunk-NDUKDKGB.js";
10
+ import {
11
+ Typo
12
+ } from "./chunk-DMV3DYHO.js";
13
+ import {
14
+ Flex
15
+ } from "./chunk-25HMMI7R.js";
16
+
17
+ // src/molecules/expand-table/index.tsx
18
+ import {
19
+ flexRender,
20
+ getCoreRowModel,
21
+ useReactTable,
22
+ getSortedRowModel,
23
+ createColumnHelper
24
+ } from "@tanstack/react-table";
25
+ import { useState } from "react";
26
+ import { jsx, jsxs } from "react/jsx-runtime";
27
+ function ExpandTable(props) {
28
+ const { data, columns, ExpandComp, placeholder, onRowClick } = props;
29
+ const [sorting, setSorting] = useState([]);
30
+ const { getRowModel, getHeaderGroups } = useReactTable({
31
+ data: data || [],
32
+ columns,
33
+ getCoreRowModel: getCoreRowModel(),
34
+ getSortedRowModel: getSortedRowModel(),
35
+ state: {
36
+ sorting
37
+ },
38
+ onSortingChange: setSorting
39
+ });
40
+ const rowModels = getRowModel();
41
+ return /* @__PURE__ */ jsxs("div", { className: "expand-table", children: [
42
+ /* @__PURE__ */ jsx("div", { className: "thead", children: getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx("div", { className: "tr", children: headerGroup.headers.map((header) => {
43
+ const sortable = header.column.getCanSort();
44
+ const sortedState = header.column.getIsSorted();
45
+ return /* @__PURE__ */ jsx(
46
+ "div",
47
+ {
48
+ className: "th",
49
+ style: {
50
+ width: header.getSize()
51
+ },
52
+ children: /* @__PURE__ */ jsxs(
53
+ "button",
54
+ {
55
+ onClick: header.column.getToggleSortingHandler(),
56
+ style: sortable ? { cursor: "pointer" } : void 0,
57
+ type: "button",
58
+ children: [
59
+ /* @__PURE__ */ jsx(Typo, { variant: "body", children: flexRender(
60
+ header.column.columnDef.header,
61
+ header.getContext()
62
+ ) }),
63
+ sortable ? /* @__PURE__ */ jsxs(
64
+ Flex,
65
+ {
66
+ direction: "column",
67
+ style: { marginLeft: "var(--space-2)" },
68
+ children: [
69
+ /* @__PURE__ */ jsx(
70
+ TriangleArrowUpIcon,
71
+ {
72
+ color: sortedState === "asc" ? "var(--iris-10)" : "var(--iris-6)"
73
+ }
74
+ ),
75
+ /* @__PURE__ */ jsx(
76
+ TriangleArrowDownIcon,
77
+ {
78
+ color: sortedState === "desc" ? "var(--iris-10)" : "var(--iris-6)"
79
+ }
80
+ )
81
+ ]
82
+ }
83
+ ) : null
84
+ ]
85
+ }
86
+ )
87
+ },
88
+ header.id
89
+ );
90
+ }) }, headerGroup.id)) }),
91
+ /* @__PURE__ */ jsxs("div", { className: "tbody", children: [
92
+ rowModels.rows.length === 0 && /* @__PURE__ */ jsx("div", { className: "tr", children: /* @__PURE__ */ jsx(Flex, { align: "center", justify: "center", children: placeholder || /* @__PURE__ */ jsx(Typo, { children: "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4" }) }) }, "expand_placeholder"),
93
+ rowModels.rows.map((row) => {
94
+ return /* @__PURE__ */ jsx(
95
+ Row,
96
+ {
97
+ ExpandComp,
98
+ onRowClick,
99
+ row
100
+ },
101
+ `row_${row.id}`
102
+ );
103
+ })
104
+ ] })
105
+ ] });
106
+ }
107
+
108
+ export {
109
+ createColumnHelper,
110
+ ExpandTable
111
+ };
112
+ //# sourceMappingURL=chunk-S2YRXQZJ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/molecules/expand-table/index.tsx"],"sourcesContent":["import type { ColumnDef, SortingState, RowData } from '@tanstack/react-table';\nimport type { CSSProperties } from 'react';\nimport {\n flexRender,\n getCoreRowModel,\n useReactTable,\n getSortedRowModel,\n createColumnHelper,\n} from '@tanstack/react-table';\nimport React, { useState } from 'react';\nimport { Flex, Typo } from '../../atoms';\nimport { TriangleArrowDownIcon } from '../../icons/down';\nimport { TriangleArrowUpIcon } from '../../icons/up';\nimport { Row, type ExpandComp, type OnRowClick } from './row';\n\nexport type { ExpandComp, OnRowClick, ColumnDef };\nexport { createColumnHelper };\n\nexport interface ExpandTableProps<Datum extends RowData> {\n /** 렌더할 데이터 배열 */\n data?: Datum[];\n /** 테이블 컬럼의 메타 데이터 */\n columns: ColumnDef<Datum>[];\n /** Row의 open이 true인 경우 하단의 collapse에 렌더할 컴포넌트 */\n ExpandComp?: ExpandComp<Datum>;\n /** 데이테가 없을 시 화면에 표시할 컴포넌트 */\n placeholder?: React.ReactNode;\n /** 행 클릭 시 실행할 콜백 */\n onRowClick?: OnRowClick<Datum>;\n rowStyle?: CSSProperties;\n}\n\nexport function ExpandTable<Datum extends RowData>(\n props: ExpandTableProps<Datum>\n): React.ReactNode {\n const { data, columns, ExpandComp, placeholder, onRowClick } = props;\n\n const [sorting, setSorting] = useState<SortingState>([]);\n const { getRowModel, getHeaderGroups } = useReactTable({\n data: data || [],\n columns,\n getCoreRowModel: getCoreRowModel(),\n getSortedRowModel: getSortedRowModel(),\n state: {\n sorting,\n },\n onSortingChange: setSorting,\n });\n\n const rowModels = getRowModel();\n\n return (\n <div className=\"expand-table\">\n <div className=\"thead\">\n {getHeaderGroups().map((headerGroup) => (\n <div className=\"tr\" key={headerGroup.id}>\n {headerGroup.headers.map((header) => {\n const sortable = header.column.getCanSort();\n const sortedState = header.column.getIsSorted();\n return (\n <div\n className=\"th\"\n key={header.id}\n style={{\n width: header.getSize(),\n }}\n >\n <button\n onClick={header.column.getToggleSortingHandler()}\n style={sortable ? { cursor: 'pointer' } : undefined}\n type=\"button\"\n >\n <Typo variant=\"body\">\n {flexRender(\n header.column.columnDef.header,\n header.getContext()\n )}\n </Typo>\n {sortable ? (\n <Flex\n direction=\"column\"\n style={{ marginLeft: 'var(--space-2)' }}\n >\n <TriangleArrowUpIcon\n color={\n sortedState === 'asc'\n ? 'var(--iris-10)'\n : 'var(--iris-6)'\n }\n />\n <TriangleArrowDownIcon\n color={\n sortedState === 'desc'\n ? 'var(--iris-10)'\n : 'var(--iris-6)'\n }\n />\n </Flex>\n ) : null}\n </button>\n </div>\n );\n })}\n </div>\n ))}\n </div>\n <div className=\"tbody\">\n {/* 데이터가 없을 시 표시되는 노드 */}\n {rowModels.rows.length === 0 && (\n <div className=\"tr\" key=\"expand_placeholder\">\n <Flex align=\"center\" justify=\"center\">\n {placeholder || <Typo>데이터가 없습니다</Typo>}\n </Flex>\n </div>\n )}\n\n {/* 행을 렌더하는 로직 */}\n {rowModels.rows.map((row) => {\n return (\n <Row\n ExpandComp={ExpandComp}\n key={`row_${row.id}`}\n onRowClick={onRowClick}\n row={row}\n />\n );\n })}\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAEA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAgB,gBAAgB;AA+DZ,cAOE,YAPF;AAxCb,SAAS,YACd,OACiB;A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;AAAA,gBACF,IACE;AAAA;AAAA;AAAA,UACN;AAAA;AAAA,QArCK,OAAO;AAAA,MAsCd;AAAA,IAEJ,CAAC,KA/CsB,YAAY,EAgDrC,CACD,GACH;AAAA,IACA,qBAAC,SAAI,WAAU,SAEZ;AAAA,gBAAU,KAAK,WAAW,KACzB,oBAAC,SAAI,WAAU,MACb,8BAAC,QAAK,OAAM,UAAS,SAAQ,UAC1B,yBAAe,oBAAC,QAAK,+DAAS,GACjC,KAHsB,oBAIxB;AAAA,MAID,UAAU,KAAK,IAAI,CAAC,QAAQ;AAC3B,eACE;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YAEA;AAAA,YACA;AAAA;AAAA,UAFK,OAAO,IAAI,EAAE;AAAA,QAGpB;AAAA,MAEJ,CAAC;AAAA,OACH;AAAA,KACF;AAEJ;","names":[]}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk-UKJ64ZOX.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,37 @@
1
+ import {
2
+ __objRest,
3
+ __spreadProps,
4
+ __spreadValues
5
+ } from "./chunk-N552FDTV.js";
6
+
7
+ // src/atoms/heading.tsx
8
+ import { useMemo } from "react";
9
+ import {
10
+ Heading as RadixHeading
11
+ } from "@radix-ui/themes";
12
+ import { Heading } from "@radix-ui/themes";
13
+ import { jsx } from "react/jsx-runtime";
14
+ function Heading2(props) {
15
+ const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
16
+ const radixSize = useMemo(() => {
17
+ switch (variant) {
18
+ case "subtitle1":
19
+ return "4";
20
+ case "heading1":
21
+ return "7";
22
+ case "heading2":
23
+ return "6";
24
+ case "heading3":
25
+ return "5";
26
+ default:
27
+ return size;
28
+ }
29
+ }, [size, variant]);
30
+ return /* @__PURE__ */ jsx(RadixHeading, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
31
+ }
32
+
33
+ export {
34
+ Heading2 as Heading,
35
+ Heading as Heading2
36
+ };
37
+ //# sourceMappingURL=chunk-VEASW5N2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/atoms/heading.tsx"],"sourcesContent":["import { useMemo } from 'react';\nimport {\n Heading as RadixHeading,\n type HeadingProps as RadixHeadingProps,\n} from '@radix-ui/themes';\n\nexport { Heading as RadixHeading } from '@radix-ui/themes';\n\nexport type HeadingProps = RadixHeadingProps & {\n variant?: 'subtitle1' | 'heading1' | 'heading2' | 'heading3';\n};\n\nexport function Heading(props: HeadingProps): React.ReactNode {\n const { size, children, variant, ...rest } = props;\n const radixSize = useMemo<RadixHeadingProps['size']>(() => {\n switch (variant) {\n case 'subtitle1':\n return '4';\n case 'heading1':\n return '7';\n case 'heading2':\n return '6';\n case 'heading3':\n return '5';\n default:\n return size;\n }\n }, [size, variant]);\n\n return (\n <RadixHeading {...rest} size={radixSize}>\n {children}\n </RadixHeading>\n );\n}\n"],"mappings":";;;;;;;AAAA,SAAS,eAAe;AACxB;AAAA,EACE,WAAW;AAAA,OAEN;AAEP,SAAoB,eAAoB;AAwBpC;AAlBG,SAASA,SAAQ,OAAsC;AAC5D,QAA6C,YAArC,QAAM,UAAU,QAb1B,IAa+C,IAAT,iBAAS,IAAT,CAA5B,QAAM,YAAU;AACxB,QAAM,YAAY,QAAmC,MAAM;AACzD,YAAQ,SAAS;AAAA,MACf,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT;AACE,eAAO;AAAA,IACX;AAAA,EACF,GAAG,CAAC,MAAM,OAAO,CAAC;AAElB,SACE,oBAAC,+CAAiB,OAAjB,EAAuB,MAAM,WAC3B,WACH;AAEJ;","names":["Heading"]}
@@ -0,0 +1,25 @@
1
+ // src/icon.ts
2
+ import {
3
+ BookmarkIcon,
4
+ ExitIcon,
5
+ InfoCircledIcon,
6
+ ExclamationTriangleIcon,
7
+ MagnifyingGlassIcon,
8
+ DotsHorizontalIcon,
9
+ ChatBubbleIcon,
10
+ PlusIcon,
11
+ MixerHorizontalIcon
12
+ } from "@radix-ui/react-icons";
13
+
14
+ export {
15
+ BookmarkIcon,
16
+ ExitIcon,
17
+ InfoCircledIcon,
18
+ ExclamationTriangleIcon,
19
+ MagnifyingGlassIcon,
20
+ DotsHorizontalIcon,
21
+ ChatBubbleIcon,
22
+ PlusIcon,
23
+ MixerHorizontalIcon
24
+ };
25
+ //# sourceMappingURL=chunk-W4OUB7S7.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/icon.ts"],"sourcesContent":["export {\n BookmarkIcon,\n ExitIcon,\n InfoCircledIcon,\n ExclamationTriangleIcon,\n MagnifyingGlassIcon,\n DotsHorizontalIcon,\n ChatBubbleIcon,\n PlusIcon,\n MixerHorizontalIcon,\n} from '@radix-ui/react-icons';\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;","names":[]}
@@ -0,0 +1,112 @@
1
+ import {
2
+ Row
3
+ } from "./chunk-ZE5G2S34.js";
4
+ import {
5
+ Typo
6
+ } from "./chunk-DMV3DYHO.js";
7
+ import {
8
+ Flex
9
+ } from "./chunk-25HMMI7R.js";
10
+ import {
11
+ TriangleArrowDownIcon
12
+ } from "./chunk-BSTJBBEX.js";
13
+ import {
14
+ TriangleArrowUpIcon
15
+ } from "./chunk-NDUKDKGB.js";
16
+
17
+ // src/molecules/expand-table/index.tsx
18
+ import {
19
+ flexRender,
20
+ getCoreRowModel,
21
+ useReactTable,
22
+ getSortedRowModel,
23
+ createColumnHelper
24
+ } from "@tanstack/react-table";
25
+ import { useState } from "react";
26
+ import { jsx, jsxs } from "react/jsx-runtime";
27
+ function ExpandTable(props) {
28
+ const { data, columns, ExpandComp, placeholder, onRowClick } = props;
29
+ const [sorting, setSorting] = useState([]);
30
+ const { getRowModel, getHeaderGroups } = useReactTable({
31
+ data: data || [],
32
+ columns,
33
+ getCoreRowModel: getCoreRowModel(),
34
+ getSortedRowModel: getSortedRowModel(),
35
+ state: {
36
+ sorting
37
+ },
38
+ onSortingChange: setSorting
39
+ });
40
+ const rowModels = getRowModel();
41
+ return /* @__PURE__ */ jsxs("div", { className: "expand-table", children: [
42
+ /* @__PURE__ */ jsx("div", { className: "thead", children: getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx("div", { className: "tr", children: headerGroup.headers.map((header) => {
43
+ const sortable = header.column.getCanSort();
44
+ const sortedState = header.column.getIsSorted();
45
+ return /* @__PURE__ */ jsx(
46
+ "div",
47
+ {
48
+ className: "th",
49
+ style: {
50
+ width: header.getSize()
51
+ },
52
+ children: /* @__PURE__ */ jsxs(
53
+ "button",
54
+ {
55
+ onClick: header.column.getToggleSortingHandler(),
56
+ style: sortable ? { cursor: "pointer" } : void 0,
57
+ type: "button",
58
+ children: [
59
+ /* @__PURE__ */ jsx(Typo, { variant: "body", children: flexRender(
60
+ header.column.columnDef.header,
61
+ header.getContext()
62
+ ) }),
63
+ sortable ? /* @__PURE__ */ jsxs(
64
+ Flex,
65
+ {
66
+ direction: "column",
67
+ style: { marginLeft: "var(--space-2)" },
68
+ children: [
69
+ /* @__PURE__ */ jsx(
70
+ TriangleArrowUpIcon,
71
+ {
72
+ color: sortedState === "asc" ? "var(--iris-10)" : "var(--iris-6)"
73
+ }
74
+ ),
75
+ /* @__PURE__ */ jsx(
76
+ TriangleArrowDownIcon,
77
+ {
78
+ color: sortedState === "desc" ? "var(--iris-10)" : "var(--iris-6)"
79
+ }
80
+ )
81
+ ]
82
+ }
83
+ ) : null
84
+ ]
85
+ }
86
+ )
87
+ },
88
+ header.id
89
+ );
90
+ }) }, headerGroup.id)) }),
91
+ /* @__PURE__ */ jsxs("div", { className: "tbody", children: [
92
+ rowModels.rows.length === 0 && /* @__PURE__ */ jsx("div", { className: "tr", children: /* @__PURE__ */ jsx(Flex, { align: "center", justify: "center", children: placeholder || /* @__PURE__ */ jsx(Typo, { children: "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4" }) }) }, "expand_placeholder"),
93
+ rowModels.rows.map((row) => {
94
+ return /* @__PURE__ */ jsx(
95
+ Row,
96
+ {
97
+ ExpandComp,
98
+ onRowClick,
99
+ row
100
+ },
101
+ `row_${row.id}`
102
+ );
103
+ })
104
+ ] })
105
+ ] });
106
+ }
107
+
108
+ export {
109
+ createColumnHelper,
110
+ ExpandTable
111
+ };
112
+ //# sourceMappingURL=chunk-WV6ZQLVD.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/molecules/expand-table/index.tsx"],"sourcesContent":["import type { ColumnDef, SortingState, RowData } from '@tanstack/react-table';\nimport type { CSSProperties } from 'react';\nimport {\n flexRender,\n getCoreRowModel,\n useReactTable,\n getSortedRowModel,\n createColumnHelper,\n} from '@tanstack/react-table';\nimport React, { useState } from 'react';\nimport { Flex, Typo } from '../../atoms';\nimport { TriangleArrowDownIcon } from '../../icons/down';\nimport { TriangleArrowUpIcon } from '../../icons/up';\nimport { Row, type ExpandComp, type OnRowClick } from './row';\n\nexport type { ExpandComp, OnRowClick, ColumnDef };\nexport { createColumnHelper };\n\nexport interface ExpandTableProps<Datum extends RowData> {\n /** 렌더할 데이터 배열 */\n data?: Datum[];\n /** 테이블 컬럼의 메타 데이터 */\n columns: ColumnDef<Datum>[];\n /** Row의 open이 true인 경우 하단의 collapse에 렌더할 컴포넌트 */\n ExpandComp?: ExpandComp<Datum>;\n /** 데이테가 없을 시 화면에 표시할 컴포넌트 */\n placeholder?: React.ReactNode;\n /** 행 클릭 시 실행할 콜백 */\n onRowClick?: OnRowClick<Datum>;\n rowStyle?: CSSProperties;\n}\n\nexport function ExpandTable<Datum extends RowData>(\n props: ExpandTableProps<Datum>\n): React.ReactNode {\n const { data, columns, ExpandComp, placeholder, onRowClick } = props;\n\n const [sorting, setSorting] = useState<SortingState>([]);\n const { getRowModel, getHeaderGroups } = useReactTable({\n data: data || [],\n columns,\n getCoreRowModel: getCoreRowModel(),\n getSortedRowModel: getSortedRowModel(),\n state: {\n sorting,\n },\n onSortingChange: setSorting,\n });\n\n const rowModels = getRowModel();\n\n return (\n <div className=\"expand-table\">\n <div className=\"thead\">\n {getHeaderGroups().map((headerGroup) => (\n <div className=\"tr\" key={headerGroup.id}>\n {headerGroup.headers.map((header) => {\n const sortable = header.column.getCanSort();\n const sortedState = header.column.getIsSorted();\n return (\n <div\n className=\"th\"\n key={header.id}\n style={{\n width: header.getSize(),\n }}\n >\n <button\n onClick={header.column.getToggleSortingHandler()}\n style={sortable ? { cursor: 'pointer' } : undefined}\n type=\"button\"\n >\n <Typo variant=\"body\">\n {flexRender(\n header.column.columnDef.header,\n header.getContext()\n )}\n </Typo>\n {sortable ? (\n <Flex\n direction=\"column\"\n style={{ marginLeft: 'var(--space-2)' }}\n >\n <TriangleArrowUpIcon\n color={\n sortedState === 'asc'\n ? 'var(--iris-10)'\n : 'var(--iris-6)'\n }\n />\n <TriangleArrowDownIcon\n color={\n sortedState === 'desc'\n ? 'var(--iris-10)'\n : 'var(--iris-6)'\n }\n />\n </Flex>\n ) : null}\n </button>\n </div>\n );\n })}\n </div>\n ))}\n </div>\n <div className=\"tbody\">\n {/* 데이터가 없을 시 표시되는 노드 */}\n {rowModels.rows.length === 0 && (\n <div className=\"tr\" key=\"expand_placeholder\">\n <Flex align=\"center\" justify=\"center\">\n {placeholder || <Typo>데이터가 없습니다</Typo>}\n </Flex>\n </div>\n )}\n\n {/* 행을 렌더하는 로직 */}\n {rowModels.rows.map((row) => {\n return (\n <Row\n ExpandComp={ExpandComp}\n key={`row_${row.id}`}\n onRowClick={onRowClick}\n row={row}\n />\n );\n })}\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAEA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;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AAAA,0BACC,OACE,gBAAgB,SACZ,mBACA;AAAA;AAAA,sBAER;AAAA;AAAA;AAAA,gBACF,IACE;AAAA;AAAA;AAAA,UACN;AAAA;AAAA,QArCK,OAAO;AAAA,MAsCd;AAAA,IAEJ,CAAC,KA/CsB,YAAY,EAgDrC,CACD,GACH;AAAA,IACA,qBAAC,SAAI,WAAU,SAEZ;AAAA,gBAAU,KAAK,WAAW,KACzB,oBAAC,SAAI,WAAU,MACb,8BAAC,QAAK,OAAM,UAAS,SAAQ,UAC1B,yBAAe,oBAAC,QAAK,+DAAS,GACjC,KAHsB,oBAIxB;AAAA,MAID,UAAU,KAAK,IAAI,CAAC,QAAQ;AAC3B,eACE;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YAEA;AAAA,YACA;AAAA;AAAA,UAFK,OAAO,IAAI,EAAE;AAAA,QAGpB;AAAA,MAEJ,CAAC;AAAA,OACH;AAAA,KACF;AAEJ;","names":[]}
@@ -0,0 +1,112 @@
1
+ import {
2
+ Row
3
+ } from "./chunk-ZE5G2S34.js";
4
+ import {
5
+ Typo
6
+ } from "./chunk-5U2NU566.js";
7
+ import {
8
+ Flex
9
+ } from "./chunk-25HMMI7R.js";
10
+ import {
11
+ TriangleArrowDownIcon
12
+ } from "./chunk-BSTJBBEX.js";
13
+ import {
14
+ TriangleArrowUpIcon
15
+ } from "./chunk-NDUKDKGB.js";
16
+
17
+ // src/molecules/expand-table/index.tsx
18
+ import {
19
+ flexRender,
20
+ getCoreRowModel,
21
+ useReactTable,
22
+ getSortedRowModel,
23
+ createColumnHelper
24
+ } from "@tanstack/react-table";
25
+ import { useState } from "react";
26
+ import { jsx, jsxs } from "react/jsx-runtime";
27
+ function ExpandTable(props) {
28
+ const { data, columns, ExpandComp, placeholder, onRowClick } = props;
29
+ const [sorting, setSorting] = useState([]);
30
+ const { getRowModel, getHeaderGroups } = useReactTable({
31
+ data: data || [],
32
+ columns,
33
+ getCoreRowModel: getCoreRowModel(),
34
+ getSortedRowModel: getSortedRowModel(),
35
+ state: {
36
+ sorting
37
+ },
38
+ onSortingChange: setSorting
39
+ });
40
+ const rowModels = getRowModel();
41
+ return /* @__PURE__ */ jsxs("div", { className: "expand-table", children: [
42
+ /* @__PURE__ */ jsx("div", { className: "thead", children: getHeaderGroups().map((headerGroup) => /* @__PURE__ */ jsx("div", { className: "tr", children: headerGroup.headers.map((header) => {
43
+ const sortable = header.column.getCanSort();
44
+ const sortedState = header.column.getIsSorted();
45
+ return /* @__PURE__ */ jsx(
46
+ "div",
47
+ {
48
+ className: "th",
49
+ style: {
50
+ width: header.getSize()
51
+ },
52
+ children: /* @__PURE__ */ jsxs(
53
+ "button",
54
+ {
55
+ onClick: header.column.getToggleSortingHandler(),
56
+ style: sortable ? { cursor: "pointer" } : void 0,
57
+ type: "button",
58
+ children: [
59
+ /* @__PURE__ */ jsx(Typo, { variant: "body", children: flexRender(
60
+ header.column.columnDef.header,
61
+ header.getContext()
62
+ ) }),
63
+ sortable ? /* @__PURE__ */ jsxs(
64
+ Flex,
65
+ {
66
+ direction: "column",
67
+ style: { marginLeft: "var(--space-2)" },
68
+ children: [
69
+ /* @__PURE__ */ jsx(
70
+ TriangleArrowUpIcon,
71
+ {
72
+ color: sortedState === "asc" ? "var(--iris-10)" : "var(--iris-6)"
73
+ }
74
+ ),
75
+ /* @__PURE__ */ jsx(
76
+ TriangleArrowDownIcon,
77
+ {
78
+ color: sortedState === "desc" ? "var(--iris-10)" : "var(--iris-6)"
79
+ }
80
+ )
81
+ ]
82
+ }
83
+ ) : null
84
+ ]
85
+ }
86
+ )
87
+ },
88
+ header.id
89
+ );
90
+ }) }, headerGroup.id)) }),
91
+ /* @__PURE__ */ jsxs("div", { className: "tbody", children: [
92
+ rowModels.rows.length === 0 && /* @__PURE__ */ jsx("div", { className: "tr", children: /* @__PURE__ */ jsx(Flex, { align: "center", justify: "center", children: placeholder || /* @__PURE__ */ jsx(Typo, { children: "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4" }) }) }, "expand_placeholder"),
93
+ rowModels.rows.map((row) => {
94
+ return /* @__PURE__ */ jsx(
95
+ Row,
96
+ {
97
+ ExpandComp,
98
+ onRowClick,
99
+ row
100
+ },
101
+ `row_${row.id}`
102
+ );
103
+ })
104
+ ] })
105
+ ] });
106
+ }
107
+
108
+ export {
109
+ createColumnHelper,
110
+ ExpandTable
111
+ };
112
+ //# sourceMappingURL=chunk-XR5XS5FO.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/molecules/expand-table/index.tsx"],"sourcesContent":["import type { ColumnDef, SortingState, RowData } from '@tanstack/react-table';\nimport type { CSSProperties } from 'react';\nimport {\n flexRender,\n getCoreRowModel,\n useReactTable,\n getSortedRowModel,\n createColumnHelper,\n} from '@tanstack/react-table';\nimport React, { useState } from 'react';\nimport { Flex, Typo } from '../../atoms';\nimport { TriangleArrowDownIcon } from '../../icons/down';\nimport { TriangleArrowUpIcon } from '../../icons/up';\nimport { Row, type ExpandComp, type OnRowClick } from './row';\n\nexport type { ExpandComp, OnRowClick, ColumnDef };\nexport { createColumnHelper };\n\nexport interface ExpandTableProps<Datum extends RowData> {\n /** 렌더할 데이터 배열 */\n data?: Datum[];\n /** 테이블 컬럼의 메타 데이터 */\n columns: ColumnDef<Datum>[];\n /** Row의 open이 true인 경우 하단의 collapse에 렌더할 컴포넌트 */\n ExpandComp?: ExpandComp<Datum>;\n /** 데이테가 없을 시 화면에 표시할 컴포넌트 */\n placeholder?: React.ReactNode;\n /** 행 클릭 시 실행할 콜백 */\n onRowClick?: OnRowClick<Datum>;\n rowStyle?: CSSProperties;\n}\n\nexport function ExpandTable<Datum extends RowData>(\n props: ExpandTableProps<Datum>\n): React.ReactNode {\n const { data, columns, ExpandComp, placeholder, onRowClick } = props;\n\n const [sorting, setSorting] = useState<SortingState>([]);\n const { getRowModel, getHeaderGroups } = useReactTable({\n data: data || [],\n columns,\n getCoreRowModel: getCoreRowModel(),\n getSortedRowModel: getSortedRowModel(),\n state: {\n sorting,\n },\n onSortingChange: setSorting,\n });\n\n const rowModels = getRowModel();\n\n return (\n <div className=\"expand-table\">\n <div className=\"thead\">\n {getHeaderGroups().map((headerGroup) => (\n <div className=\"tr\" key={headerGroup.id}>\n {headerGroup.headers.map((header) => {\n const sortable = header.column.getCanSort();\n const sortedState = header.column.getIsSorted();\n return (\n <div\n className=\"th\"\n key={header.id}\n style={{\n width: header.getSize(),\n }}\n >\n <button\n onClick={header.column.getToggleSortingHandler()}\n style={sortable ? { cursor: 'pointer' } : undefined}\n type=\"button\"\n >\n <Typo variant=\"body\">\n {flexRender(\n header.column.columnDef.header,\n header.getContext()\n )}\n </Typo>\n {sortable ? (\n <Flex\n direction=\"column\"\n style={{ marginLeft: 'var(--space-2)' }}\n >\n <TriangleArrowUpIcon\n color={\n sortedState === 'asc'\n ? 'var(--iris-10)'\n : 'var(--iris-6)'\n }\n />\n <TriangleArrowDownIcon\n color={\n sortedState === 'desc'\n ? 'var(--iris-10)'\n : 'var(--iris-6)'\n }\n />\n </Flex>\n ) : null}\n </button>\n </div>\n );\n })}\n </div>\n ))}\n </div>\n <div className=\"tbody\">\n {/* 데이터가 없을 시 표시되는 노드 */}\n {rowModels.rows.length === 0 && (\n <div className=\"tr\" key=\"expand_placeholder\">\n <Flex align=\"center\" justify=\"center\">\n {placeholder || <Typo>데이터가 없습니다</Typo>}\n </Flex>\n </div>\n )}\n\n {/* 행을 렌더하는 로직 */}\n {rowModels.rows.map((row) => {\n return (\n <Row\n ExpandComp={ExpandComp}\n key={`row_${row.id}`}\n onRowClick={onRowClick}\n row={row}\n />\n );\n })}\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAEA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAgB,gBAAgB;AA+DZ,cAOE,YAPF;AAxCb,SAAS,YACd,OACiB;AACjB,QAAM,EAAE,MAAM,SAAS,YAAY,aAAa,WAAW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;AAAA,QArCK,OAAO;AAAA,MAsCd;AAAA,IAEJ,CAAC,KA/CsB,YAAY,EAgDrC,CACD,GACH;AAAA,IACA,qBAAC,SAAI,WAAU,SAEZ;AAAA,gBAAU,KAAK,WAAW,KACzB,oBAAC,SAAI,WAAU,MACb,8BAAC,QAAK,OAAM,UAAS,SAAQ,UAC1B,yBAAe,oBAAC,QAAK,+DAAS,GACjC,KAHsB,oBAIxB;AAAA,MAID,UAAU,KAAK,IAAI,CAAC,QAAQ;AAC3B,eACE;AAAA,UAAC;AAAA;AAAA,YACC;AAAA,YAEA;AAAA,YACA;AAAA;AAAA,UAFK,OAAO,IAAI,EAAE;AAAA,QAGpB;AAAA,MAEJ,CAAC;AAAA,OACH;AAAA,KACF;AAEJ;","names":[]}
package/dist/icon.cjs CHANGED
@@ -27,6 +27,7 @@ __export(icon_exports, {
27
27
  ExitIcon: () => import_react_icons.ExitIcon,
28
28
  InfoCircledIcon: () => import_react_icons.InfoCircledIcon,
29
29
  MagnifyingGlassIcon: () => import_react_icons.MagnifyingGlassIcon,
30
+ MixerHorizontalIcon: () => import_react_icons.MixerHorizontalIcon,
30
31
  PlusIcon: () => import_react_icons.PlusIcon
31
32
  });
32
33
  module.exports = __toCommonJS(icon_exports);
@@ -40,6 +41,7 @@ var import_react_icons = require("@radix-ui/react-icons");
40
41
  ExitIcon,
41
42
  InfoCircledIcon,
42
43
  MagnifyingGlassIcon,
44
+ MixerHorizontalIcon,
43
45
  PlusIcon
44
46
  });
45
47
  //# sourceMappingURL=icon.cjs.map
package/dist/icon.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/icon.ts"],"sourcesContent":["export {\n BookmarkIcon,\n ExitIcon,\n InfoCircledIcon,\n ExclamationTriangleIcon,\n MagnifyingGlassIcon,\n DotsHorizontalIcon,\n ChatBubbleIcon,\n PlusIcon,\n} from '@radix-ui/react-icons';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBASO;","names":[]}
1
+ {"version":3,"sources":["../src/icon.ts"],"sourcesContent":["export {\n BookmarkIcon,\n ExitIcon,\n InfoCircledIcon,\n ExclamationTriangleIcon,\n MagnifyingGlassIcon,\n DotsHorizontalIcon,\n ChatBubbleIcon,\n PlusIcon,\n MixerHorizontalIcon,\n} from '@radix-ui/react-icons';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAUO;","names":[]}
package/dist/icon.d.cts CHANGED
@@ -1,3 +1,3 @@
1
- export { BookmarkIcon, ChatBubbleIcon, DotsHorizontalIcon, ExclamationTriangleIcon, ExitIcon, InfoCircledIcon, MagnifyingGlassIcon, PlusIcon } from '@radix-ui/react-icons';
1
+ export { BookmarkIcon, ChatBubbleIcon, DotsHorizontalIcon, ExclamationTriangleIcon, ExitIcon, InfoCircledIcon, MagnifyingGlassIcon, MixerHorizontalIcon, PlusIcon } from '@radix-ui/react-icons';
2
2
  import '@radix-ui/themes';
3
3
  import '@radix-ui/themes/dist/cjs/props/index.js';
package/dist/icon.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export { BookmarkIcon, ChatBubbleIcon, DotsHorizontalIcon, ExclamationTriangleIcon, ExitIcon, InfoCircledIcon, MagnifyingGlassIcon, PlusIcon } from '@radix-ui/react-icons';
1
+ export { BookmarkIcon, ChatBubbleIcon, DotsHorizontalIcon, ExclamationTriangleIcon, ExitIcon, InfoCircledIcon, MagnifyingGlassIcon, MixerHorizontalIcon, PlusIcon } from '@radix-ui/react-icons';
2
2
  import '@radix-ui/themes';
3
3
  import '@radix-ui/themes/dist/cjs/props/index.js';
package/dist/icon.js CHANGED
@@ -6,8 +6,9 @@ import {
6
6
  ExitIcon,
7
7
  InfoCircledIcon,
8
8
  MagnifyingGlassIcon,
9
+ MixerHorizontalIcon,
9
10
  PlusIcon
10
- } from "./chunk-UVZ6CCUI.js";
11
+ } from "./chunk-W4OUB7S7.js";
11
12
  import "./chunk-N552FDTV.js";
12
13
  export {
13
14
  BookmarkIcon,
@@ -17,6 +18,7 @@ export {
17
18
  ExitIcon,
18
19
  InfoCircledIcon,
19
20
  MagnifyingGlassIcon,
21
+ MixerHorizontalIcon,
20
22
  PlusIcon
21
23
  };
22
24
  //# sourceMappingURL=icon.js.map
package/dist/index.cjs CHANGED
@@ -95,6 +95,7 @@ __export(src_exports, {
95
95
  Kbd: () => import_themes26.Kbd,
96
96
  Link: () => Link,
97
97
  MagnifyingGlassIcon: () => import_react_icons.MagnifyingGlassIcon,
98
+ MixerHorizontalIcon: () => import_react_icons.MixerHorizontalIcon,
98
99
  PlusIcon: () => import_react_icons.PlusIcon,
99
100
  Popover: () => import_themes29.Popover,
100
101
  Progress: () => import_themes30.Progress,
@@ -112,11 +113,11 @@ __export(src_exports, {
112
113
  Switch: () => import_themes42.Switch,
113
114
  TabNav: () => import_themes43.TabNav,
114
115
  Tabs: () => import_themes44.Tabs,
115
- Text: () => Text,
116
116
  TextArea: () => import_themes45.TextArea,
117
117
  TextField: () => import_themes47.TextField,
118
118
  ThemeProvider: () => ThemeProvider,
119
119
  Tooltip: () => import_themes48.Tooltip,
120
+ Typo: () => Typo,
120
121
  createColumnHelper: () => import_react_table2.createColumnHelper,
121
122
  uiProps: () => uiProps,
122
123
  useThemeContext: () => import_themes50.useThemeContext
@@ -427,11 +428,11 @@ var import_themes44 = require("@radix-ui/themes");
427
428
  // src/atoms/text-area.tsx
428
429
  var import_themes45 = require("@radix-ui/themes");
429
430
 
430
- // src/atoms/text.tsx
431
+ // src/atoms/typo.tsx
431
432
  var import_themes46 = require("@radix-ui/themes");
432
433
  var import_react9 = require("react");
433
434
  var import_jsx_runtime9 = require("react/jsx-runtime");
434
- function Text(props) {
435
+ function Typo(props) {
435
436
  const _a = props, { size, variant, children } = _a, rest = __objRest(_a, ["size", "variant", "children"]);
436
437
  const radixSize = (0, import_react9.useMemo)(() => {
437
438
  switch (variant) {
@@ -627,7 +628,7 @@ function ExpandTable(props) {
627
628
  style: sortable ? { cursor: "pointer" } : void 0,
628
629
  type: "button",
629
630
  children: [
630
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Text, { variant: "body", children: (0, import_react_table2.flexRender)(
631
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Typo, { variant: "body", children: (0, import_react_table2.flexRender)(
631
632
  header.column.columnDef.header,
632
633
  header.getContext()
633
634
  ) }),
@@ -660,7 +661,7 @@ function ExpandTable(props) {
660
661
  );
661
662
  }) }, headerGroup.id)) }),
662
663
  /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)("div", { className: "tbody", children: [
663
- rowModels.rows.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "tr", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_themes19.Flex, { align: "center", justify: "center", children: placeholder || /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Text, { children: "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4" }) }) }, "expand_placeholder"),
664
+ rowModels.rows.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)("div", { className: "tr", children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_themes19.Flex, { align: "center", justify: "center", children: placeholder || /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(Typo, { children: "\uB370\uC774\uD130\uAC00 \uC5C6\uC2B5\uB2C8\uB2E4" }) }) }, "expand_placeholder"),
664
665
  rowModels.rows.map((row) => {
665
666
  return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
666
667
  Row,
@@ -729,6 +730,7 @@ var import_react_icons = require("@radix-ui/react-icons");
729
730
  Kbd,
730
731
  Link,
731
732
  MagnifyingGlassIcon,
733
+ MixerHorizontalIcon,
732
734
  PlusIcon,
733
735
  Popover,
734
736
  Progress,
@@ -746,11 +748,11 @@ var import_react_icons = require("@radix-ui/react-icons");
746
748
  Switch,
747
749
  TabNav,
748
750
  Tabs,
749
- Text,
750
751
  TextArea,
751
752
  TextField,
752
753
  ThemeProvider,
753
754
  Tooltip,
755
+ Typo,
754
756
  createColumnHelper,
755
757
  uiProps,
756
758
  useThemeContext