@tipp/ui 1.6.33 → 1.6.35

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 (119) hide show
  1. package/dist/app/index.cjs +5 -2
  2. package/dist/app/index.cjs.map +1 -1
  3. package/dist/app/index.js +11 -11
  4. package/dist/app/platform/coach-question-list.cjs.map +1 -1
  5. package/dist/app/platform/coach-question-list.js +1 -1
  6. package/dist/app/platform/contents-card.cjs.map +1 -1
  7. package/dist/app/platform/contents-card.js +1 -1
  8. package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
  9. package/dist/app/platform/edit-coaching-time.js +3 -3
  10. package/dist/app/platform/edit-service-type.cjs.map +1 -1
  11. package/dist/app/platform/edit-service-type.js +3 -3
  12. package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
  13. package/dist/app/platform/goal-manage-card-edit.js +3 -3
  14. package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
  15. package/dist/app/platform/goal-manage-card-read.js +1 -1
  16. package/dist/app/platform/on-offline-radio-card.cjs.map +1 -1
  17. package/dist/app/platform/on-offline-radio-card.js +3 -3
  18. package/dist/app/platform/report-card.cjs +5 -2
  19. package/dist/app/platform/report-card.cjs.map +1 -1
  20. package/dist/app/platform/report-card.d.cts +1 -0
  21. package/dist/app/platform/report-card.d.ts +1 -0
  22. package/dist/app/platform/report-card.js +2 -2
  23. package/dist/app/platform/reservation-card.cjs.map +1 -1
  24. package/dist/app/platform/reservation-card.js +3 -3
  25. package/dist/app/platform/session-card.cjs.map +1 -1
  26. package/dist/app/platform/session-card.js +5 -5
  27. package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
  28. package/dist/app/platform/session-review-simple-read.js +1 -1
  29. package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
  30. package/dist/app/platform/userInfos/coaching-customer-info/index.js +1 -1
  31. package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
  32. package/dist/app/platform/userInfos/coaching-customer-info/large.js +1 -1
  33. package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
  34. package/dist/app/platform/userInfos/coaching-customer-info/medium.js +1 -1
  35. package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
  36. package/dist/app/platform/userInfos/coaching-customer-info/small.js +1 -1
  37. package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
  38. package/dist/app/platform/userInfos/session-user-info-detail.js +1 -1
  39. package/dist/app/platform/userInfos/utils.cjs.map +1 -1
  40. package/dist/app/platform/userInfos/utils.js +1 -1
  41. package/dist/atoms/drawer.cjs +15 -2
  42. package/dist/atoms/drawer.cjs.map +1 -1
  43. package/dist/atoms/drawer.d.cts +1 -0
  44. package/dist/atoms/drawer.d.ts +1 -0
  45. package/dist/atoms/drawer.js +1 -1
  46. package/dist/atoms/index.cjs +15 -2
  47. package/dist/atoms/index.cjs.map +1 -1
  48. package/dist/atoms/index.js +1 -1
  49. package/dist/{chunk-77A65DFR.js → chunk-2CZ4RJLO.js} +66 -68
  50. package/dist/chunk-2CZ4RJLO.js.map +1 -0
  51. package/dist/chunk-3D3QOYOC.js +87 -0
  52. package/dist/chunk-3D3QOYOC.js.map +1 -0
  53. package/dist/chunk-3J2KX4P6.js +192 -0
  54. package/dist/chunk-3J2KX4P6.js.map +1 -0
  55. package/dist/chunk-5WRWSILW.js +69 -0
  56. package/dist/chunk-5WRWSILW.js.map +1 -0
  57. package/dist/chunk-6RT2RUZ2.js +145 -0
  58. package/dist/chunk-6RT2RUZ2.js.map +1 -0
  59. package/dist/chunk-74O5ORS3.js +87 -0
  60. package/dist/chunk-74O5ORS3.js.map +1 -0
  61. package/dist/chunk-ACWGF5TI.js +357 -0
  62. package/dist/chunk-ACWGF5TI.js.map +1 -0
  63. package/dist/chunk-CO3KW264.js +39 -0
  64. package/dist/chunk-CO3KW264.js.map +1 -0
  65. package/dist/chunk-DEQLZ43V.js +117 -0
  66. package/dist/chunk-DEQLZ43V.js.map +1 -0
  67. package/dist/chunk-I2CWZAD4.js +87 -0
  68. package/dist/chunk-I2CWZAD4.js.map +1 -0
  69. package/dist/chunk-JC2D53VF.js +165 -0
  70. package/dist/chunk-JC2D53VF.js.map +1 -0
  71. package/dist/chunk-K5YQF7KJ.js +87 -0
  72. package/dist/chunk-K5YQF7KJ.js.map +1 -0
  73. package/dist/chunk-KBTV24Y4.js +80 -0
  74. package/dist/chunk-KBTV24Y4.js.map +1 -0
  75. package/dist/chunk-KGA3ZCJ5.js +99 -0
  76. package/dist/chunk-KGA3ZCJ5.js.map +1 -0
  77. package/dist/chunk-QJ6K6ITU.js +284 -0
  78. package/dist/chunk-QJ6K6ITU.js.map +1 -0
  79. package/dist/chunk-QUEDUGJF.js +196 -0
  80. package/dist/chunk-QUEDUGJF.js.map +1 -0
  81. package/dist/chunk-RYOOMWGK.js +192 -0
  82. package/dist/chunk-RYOOMWGK.js.map +1 -0
  83. package/dist/chunk-THHUFQEU.js +97 -0
  84. package/dist/chunk-THHUFQEU.js.map +1 -0
  85. package/dist/chunk-WCX5NKJS.js +84 -0
  86. package/dist/chunk-WCX5NKJS.js.map +1 -0
  87. package/dist/chunk-XWUFK43Q.js +192 -0
  88. package/dist/chunk-XWUFK43Q.js.map +1 -0
  89. package/dist/chunk-ZWVC35OM.js +169 -0
  90. package/dist/chunk-ZWVC35OM.js.map +1 -0
  91. package/dist/index.cjs +82 -68
  92. package/dist/index.cjs.map +1 -1
  93. package/dist/index.css +2 -32
  94. package/dist/index.js +14 -14
  95. package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
  96. package/dist/molecules/date-picker/date-picker-button.js +1 -1
  97. package/dist/molecules/expand-table/index.cjs +62 -64
  98. package/dist/molecules/expand-table/index.cjs.map +1 -1
  99. package/dist/molecules/expand-table/index.js +2 -2
  100. package/dist/molecules/expand-table/row.cjs.map +1 -1
  101. package/dist/molecules/expand-table/row.js +1 -1
  102. package/dist/molecules/index.cjs +62 -64
  103. package/dist/molecules/index.cjs.map +1 -1
  104. package/dist/molecules/index.js +6 -6
  105. package/dist/molecules/navigation.cjs.map +1 -1
  106. package/dist/molecules/navigation.js +1 -1
  107. package/dist/molecules/radio-button-card.cjs.map +1 -1
  108. package/dist/molecules/radio-button-card.js +1 -1
  109. package/dist/molecules/tag-selector.cjs.map +1 -1
  110. package/dist/molecules/tag-selector.js +1 -1
  111. package/dist/molecules/time-select.cjs.map +1 -1
  112. package/dist/molecules/time-select.js +1 -1
  113. package/package.json +1 -1
  114. package/src/app/platform/report-card.tsx +7 -3
  115. package/src/atoms/drawer.tsx +10 -2
  116. package/src/molecules/expand-table/index.tsx +70 -76
  117. package/dist/chunk-77A65DFR.js.map +0 -1
  118. package/dist/chunk-GQJH7GRZ.js +0 -145
  119. package/dist/chunk-GQJH7GRZ.js.map +0 -1
@@ -0,0 +1,169 @@
1
+ import {
2
+ Typo
3
+ } from "./chunk-52MVZ6AN.js";
4
+ import {
5
+ Flex
6
+ } from "./chunk-25HMMI7R.js";
7
+ import {
8
+ Avatar
9
+ } from "./chunk-JYJA2PMG.js";
10
+ import {
11
+ CheckIcon
12
+ } from "./chunk-HLFG5ZTU.js";
13
+
14
+ // src/molecules/stepper.tsx
15
+ import { createContext, Children, useContext, useMemo } from "react";
16
+ import { Separator } from "@radix-ui/themes";
17
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
18
+ var StepContext = createContext({
19
+ active: false,
20
+ completed: false,
21
+ index: 0
22
+ });
23
+ function Root(props) {
24
+ const {
25
+ activeStep = 0,
26
+ children,
27
+ width,
28
+ minWidth,
29
+ maxWidth,
30
+ direction = "vertical"
31
+ } = props;
32
+ return /* @__PURE__ */ jsx(
33
+ Flex,
34
+ {
35
+ gap: "3",
36
+ style: {
37
+ width,
38
+ minWidth,
39
+ maxWidth
40
+ },
41
+ children: Children.map(children, (child, index) => {
42
+ return /* @__PURE__ */ jsx(
43
+ StepContext.Provider,
44
+ {
45
+ value: {
46
+ active: index === activeStep,
47
+ completed: index < activeStep,
48
+ index,
49
+ direction
50
+ },
51
+ children: child
52
+ }
53
+ );
54
+ })
55
+ }
56
+ );
57
+ }
58
+ function Step(props) {
59
+ const { Icon, children } = props;
60
+ const {
61
+ active,
62
+ completed,
63
+ index,
64
+ direction = "vertical"
65
+ } = useContext(StepContext);
66
+ const connector = index > 0 ? /* @__PURE__ */ jsx(
67
+ Separator,
68
+ {
69
+ style: {
70
+ width: `calc(100% - 40px)`,
71
+ position: "absolute",
72
+ top: 16,
73
+ right: `calc(50% + 26px)`
74
+ }
75
+ }
76
+ ) : null;
77
+ const InnerStep = useMemo(() => {
78
+ if (active) {
79
+ return ActiveStep;
80
+ }
81
+ if (completed) {
82
+ return CompleteStep;
83
+ }
84
+ return IncompleteStep;
85
+ }, [completed, active]);
86
+ return /* @__PURE__ */ jsxs(
87
+ Flex,
88
+ {
89
+ align: "center",
90
+ direction: direction === "horizontal" ? "row" : "column",
91
+ gap: "4",
92
+ position: "relative",
93
+ style: { flex: 1 },
94
+ children: [
95
+ connector,
96
+ /* @__PURE__ */ jsx(InnerStep, { Icon, children })
97
+ ]
98
+ }
99
+ );
100
+ }
101
+ function CompleteStep(props) {
102
+ const { Icon, children } = props;
103
+ const { completed, active } = useContext(StepContext);
104
+ const background = "var(--accent-a4)";
105
+ const border = "1px solid var(--accent-7)";
106
+ const color = "var(--accent-contrast)";
107
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
108
+ Icon ? /* @__PURE__ */ jsx(Icon, { active, completed }) : /* @__PURE__ */ jsx(
109
+ Avatar,
110
+ {
111
+ fallback: /* @__PURE__ */ jsx(CheckIcon, { fill: color, height: 16, width: 16 }),
112
+ radius: "full",
113
+ size: "medium",
114
+ style: {
115
+ border,
116
+ background
117
+ }
118
+ }
119
+ ),
120
+ /* @__PURE__ */ jsx(Typo, { align: "center", variant: "caption", children })
121
+ ] });
122
+ }
123
+ function IncompleteStep(props) {
124
+ const { Icon, children } = props;
125
+ const { completed, active, index } = useContext(StepContext);
126
+ const background = "var(--gray-5)";
127
+ const color = "var(--gray-a11)";
128
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
129
+ Icon ? /* @__PURE__ */ jsx(Icon, { active, completed }) : /* @__PURE__ */ jsx(
130
+ Avatar,
131
+ {
132
+ fallback: /* @__PURE__ */ jsx(Typo, { style: { color }, children: index + 1 }),
133
+ radius: "full",
134
+ size: "medium",
135
+ style: {
136
+ background
137
+ }
138
+ }
139
+ ),
140
+ /* @__PURE__ */ jsx(Typo, { align: "center", style: { color }, variant: "caption", children })
141
+ ] });
142
+ }
143
+ function ActiveStep(props) {
144
+ const { Icon, children } = props;
145
+ const { completed, active, index } = useContext(StepContext);
146
+ const background = "var(--accent-10)";
147
+ const color = "var(--accent-contrast)";
148
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
149
+ Icon ? /* @__PURE__ */ jsx(Icon, { active, completed }) : /* @__PURE__ */ jsx(
150
+ Avatar,
151
+ {
152
+ fallback: /* @__PURE__ */ jsx(Typo, { style: { color }, weight: "bold", children: index + 1 }),
153
+ radius: "full",
154
+ size: "medium",
155
+ style: { background }
156
+ }
157
+ ),
158
+ /* @__PURE__ */ jsx(Typo, { align: "center", variant: "caption", weight: "bold", children })
159
+ ] });
160
+ }
161
+ var Stepper = {
162
+ Root,
163
+ Step
164
+ };
165
+
166
+ export {
167
+ Stepper
168
+ };
169
+ //# sourceMappingURL=chunk-ZWVC35OM.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/molecules/stepper.tsx"],"sourcesContent":["import React, { createContext, Children, useContext, useMemo } from 'react';\nimport { Separator } from '@radix-ui/themes';\nimport { Flex } from '../atoms/flex';\nimport { Avatar } from '../atoms/avatar';\nimport { CheckIcon } from '../icon';\nimport { Typo } from '../atoms/typo';\n\ninterface StepState extends Pick<StepperProps, 'direction'> {\n active: boolean;\n completed: boolean;\n index: number;\n}\n\nconst StepContext = createContext<StepState>({\n active: false,\n completed: false,\n index: 0,\n});\n\ninterface StepperProps {\n // 활성화된 스텝 인덱스. 0부터 시작\n activeStep?: number;\n children?: React.ReactElement | React.ReactElement[];\n width?: string;\n maxWidth?: string;\n minWidth?: string;\n /** icon과 children의 배치 방향. 기본 값 vertical */\n direction?: 'horizontal' | 'vertical';\n}\n\nfunction Root(props: StepperProps): React.ReactElement {\n const {\n activeStep = 0,\n children,\n width,\n minWidth,\n maxWidth,\n direction = 'vertical',\n } = props;\n\n return (\n <Flex\n gap=\"3\"\n style={{\n width,\n minWidth,\n maxWidth,\n }}\n >\n {Children.map(children, (child, index) => {\n return (\n <StepContext.Provider\n value={{\n active: index === activeStep,\n completed: index < activeStep,\n index,\n direction,\n }}\n >\n {child}\n </StepContext.Provider>\n );\n })}\n </Flex>\n );\n}\n\ninterface StepProps {\n children?: React.ReactNode;\n /** 아이콘 커스텀 필요시 사용 */\n Icon?: (args: { completed: boolean; active: boolean }) => React.ReactElement;\n}\n\nfunction Step(props: StepProps): React.ReactElement {\n const { Icon, children } = props;\n const {\n active,\n completed,\n index,\n direction = 'vertical',\n } = useContext(StepContext);\n\n const connector =\n index > 0 ? (\n <Separator\n style={{\n width: `calc(100% - 40px)`,\n position: 'absolute',\n top: 16,\n right: `calc(50% + 26px)`,\n }}\n />\n ) : null;\n\n const InnerStep = useMemo<(props: StepProps) => React.ReactElement>(() => {\n if (active) {\n return ActiveStep;\n }\n if (completed) {\n return CompleteStep;\n }\n return IncompleteStep;\n }, [completed, active]);\n\n return (\n <Flex\n align=\"center\"\n direction={direction === 'horizontal' ? 'row' : 'column'}\n gap=\"4\"\n position=\"relative\"\n style={{ flex: 1 }}\n >\n {connector}\n <InnerStep Icon={Icon}>{children}</InnerStep>\n </Flex>\n );\n}\n\nfunction CompleteStep(props: StepProps): React.ReactElement {\n const { Icon, children } = props;\n const { completed, active } = useContext(StepContext);\n const background = 'var(--accent-a4)';\n const border = '1px solid var(--accent-7)';\n const color = 'var(--accent-contrast)';\n\n return (\n <>\n {Icon ? (\n <Icon active={active} completed={completed} />\n ) : (\n <Avatar\n fallback={<CheckIcon fill={color} height={16} width={16} />}\n radius=\"full\"\n size=\"medium\"\n style={{\n border,\n background,\n }}\n />\n )}\n <Typo align=\"center\" variant=\"caption\">\n {children}\n </Typo>\n </>\n );\n}\n\nfunction IncompleteStep(props: StepProps): React.ReactElement {\n const { Icon, children } = props;\n const { completed, active, index } = useContext(StepContext);\n const background = 'var(--gray-5)';\n const color = 'var(--gray-a11)';\n return (\n <>\n {Icon ? (\n <Icon active={active} completed={completed} />\n ) : (\n <Avatar\n fallback={<Typo style={{ color }}>{index + 1}</Typo>}\n radius=\"full\"\n size=\"medium\"\n style={{\n background,\n }}\n />\n )}\n <Typo align=\"center\" style={{ color }} variant=\"caption\">\n {children}\n </Typo>\n </>\n );\n}\n\nfunction ActiveStep(props: StepProps): React.ReactElement {\n const { Icon, children } = props;\n const { completed, active, index } = useContext(StepContext);\n const background = 'var(--accent-10)';\n const color = 'var(--accent-contrast)';\n\n return (\n <>\n {Icon ? (\n <Icon active={active} completed={completed} />\n ) : (\n <Avatar\n fallback={\n <Typo style={{ color }} weight=\"bold\">\n {index + 1}\n </Typo>\n }\n radius=\"full\"\n size=\"medium\"\n style={{ background }}\n />\n )}\n <Typo align=\"center\" variant=\"caption\" weight=\"bold\">\n {children}\n </Typo>\n </>\n );\n}\n\nexport const Stepper = {\n Root,\n Step,\n};\n"],"mappings":";;;;;;;;;;;;;;AAAA,SAAgB,eAAe,UAAU,YAAY,eAAe;AACpE,SAAS,iBAAiB;AAkDhB,SA2EN,UA3EM,KAsDN,YAtDM;AAtCV,IAAM,cAAc,cAAyB;AAAA,EAC3C,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,OAAO;AACT,CAAC;AAaD,SAAS,KAAK,OAAyC;AACrD,QAAM;AAAA,IACJ,aAAa;AAAA,IACb;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,YAAY;AAAA,EACd,IAAI;AAEJ,SACE;AAAA,IAAC;AAAA;AAAA,MACC,KAAI;AAAA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SAAQ,WAAU,QAAO,QAC3C,UACH;AAAA,KACF;AAEJ;AAEO,IAAM,UAAU;AAAA,EACrB;AAAA,EACA;AACF;","names":[]}
package/dist/index.cjs CHANGED
@@ -1371,7 +1371,17 @@ var preventDefault2 = (e) => {
1371
1371
  e.preventDefault();
1372
1372
  };
1373
1373
  function Content6(props) {
1374
- const _a = props, { position = "right", className, children } = _a, rest = __objRest(_a, ["position", "className", "children"]);
1374
+ const _a = props, {
1375
+ position = "right",
1376
+ className,
1377
+ children,
1378
+ HeaderContent
1379
+ } = _a, rest = __objRest(_a, [
1380
+ "position",
1381
+ "className",
1382
+ "children",
1383
+ "HeaderContent"
1384
+ ]);
1375
1385
  const mobileHeaderSize = 48;
1376
1386
  const desktopHeaderSize = 64;
1377
1387
  const separatorSize = 1;
@@ -1394,7 +1404,10 @@ function Content6(props) {
1394
1404
  sm: `${desktopHeaderSize}px ${separatorSize}px calc(100% - ${desktopHeaderSize + separatorSize}px)`
1395
1405
  },
1396
1406
  children: [
1397
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_themes22.Flex, { align: "center", px: { initial: "4", md: "6" }, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Dialog2.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_themes18.IconButton, { color: "gray", variant: "outline", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ClosePanelArrowIcon, {}) }) }) }),
1407
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_themes22.Flex, { align: "center", gap: "3", px: { initial: "4", md: "6" }, children: [
1408
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Dialog2.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_themes18.IconButton, { color: "gray", variant: "outline", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(ClosePanelArrowIcon, {}) }) }),
1409
+ HeaderContent
1410
+ ] }),
1398
1411
  /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_themes39.Separator, { orientation: "horizontal", size: "4" }),
1399
1412
  children
1400
1413
  ]
@@ -1805,72 +1818,70 @@ function ExpandTable(props) {
1805
1818
  return Math.ceil(data.length / pageSize);
1806
1819
  }, [data, pageSize]);
1807
1820
  return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "expand-table", style: tableStyle, children: [
1808
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "expand-table-content-scroll-wrapper", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "expand-table-content", children: [
1809
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "thead", children: getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1810
- "div",
1821
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "thead", children: getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1822
+ "div",
1823
+ {
1824
+ className: "tr",
1825
+ style: { gridTemplateColumns },
1826
+ children: headerGroup.headers.map((header) => {
1827
+ var _a;
1828
+ const sortable = header.column.getCanSort();
1829
+ const sortedState = header.column.getIsSorted();
1830
+ const justifyContent = ((_a = header.column.columnDef.meta) == null ? void 0 : _a.align) || defaultAlign;
1831
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: `${justifyContent} th`, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
1832
+ "button",
1833
+ {
1834
+ onClick: header.column.getToggleSortingHandler(),
1835
+ style: sortable ? { cursor: "pointer" } : { cursor: "default" },
1836
+ type: "button",
1837
+ children: [
1838
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Typo, { as: "div", variant: "body", children: (0, import_react_table2.flexRender)(
1839
+ header.column.columnDef.header,
1840
+ header.getContext()
1841
+ ) }),
1842
+ sortable ? /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
1843
+ import_themes22.Flex,
1844
+ {
1845
+ direction: "column",
1846
+ style: { marginLeft: "var(--space-2)" },
1847
+ children: [
1848
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1849
+ TriangleArrowUpIcon,
1850
+ {
1851
+ color: sortedState === "asc" ? "var(--iris-10)" : "var(--iris-6)"
1852
+ }
1853
+ ),
1854
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1855
+ TriangleArrowDownIcon,
1856
+ {
1857
+ color: sortedState === "desc" ? "var(--iris-10)" : "var(--iris-6)"
1858
+ }
1859
+ )
1860
+ ]
1861
+ }
1862
+ ) : null
1863
+ ]
1864
+ }
1865
+ ) }, header.id);
1866
+ })
1867
+ },
1868
+ headerGroup.id
1869
+ )) }),
1870
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "tbody", children: helpCompRender(rowModels.rows.length) || rowModels.rows.map((row) => {
1871
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1872
+ Row,
1811
1873
  {
1812
- className: "tr",
1813
- style: { gridTemplateColumns },
1814
- children: headerGroup.headers.map((header) => {
1815
- var _a;
1816
- const sortable = header.column.getCanSort();
1817
- const sortedState = header.column.getIsSorted();
1818
- const justifyContent = ((_a = header.column.columnDef.meta) == null ? void 0 : _a.align) || defaultAlign;
1819
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: `${justifyContent} th`, children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
1820
- "button",
1821
- {
1822
- onClick: header.column.getToggleSortingHandler(),
1823
- style: sortable ? { cursor: "pointer" } : { cursor: "default" },
1824
- type: "button",
1825
- children: [
1826
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(Typo, { as: "div", variant: "body", children: (0, import_react_table2.flexRender)(
1827
- header.column.columnDef.header,
1828
- header.getContext()
1829
- ) }),
1830
- sortable ? /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
1831
- import_themes22.Flex,
1832
- {
1833
- direction: "column",
1834
- style: { marginLeft: "var(--space-2)" },
1835
- children: [
1836
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1837
- TriangleArrowUpIcon,
1838
- {
1839
- color: sortedState === "asc" ? "var(--iris-10)" : "var(--iris-6)"
1840
- }
1841
- ),
1842
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1843
- TriangleArrowDownIcon,
1844
- {
1845
- color: sortedState === "desc" ? "var(--iris-10)" : "var(--iris-6)"
1846
- }
1847
- )
1848
- ]
1849
- }
1850
- ) : null
1851
- ]
1852
- }
1853
- ) }, header.id);
1854
- })
1874
+ ExpandComp,
1875
+ defaultAlign,
1876
+ getCellStyle,
1877
+ getRowStyle,
1878
+ gridTemplateColumns,
1879
+ onRowClick,
1880
+ row
1855
1881
  },
1856
- headerGroup.id
1857
- )) }),
1858
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "tbody", children: helpCompRender(rowModels.rows.length) || rowModels.rows.map((row) => {
1859
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1860
- Row,
1861
- {
1862
- ExpandComp,
1863
- defaultAlign,
1864
- getCellStyle,
1865
- getRowStyle,
1866
- gridTemplateColumns,
1867
- onRowClick,
1868
- row
1869
- },
1870
- `row_${row.id}`
1871
- );
1872
- }) })
1873
- ] }) }),
1882
+ `row_${row.id}`
1883
+ );
1884
+ }) }),
1874
1885
  showPagination ? /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_themes22.Flex, { justify: "end", pt: "3", width: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
1875
1886
  Pagination,
1876
1887
  {
@@ -4236,7 +4247,7 @@ function SessionUserInfoDetail({
4236
4247
  var import_react36 = require("react");
4237
4248
  var import_jsx_runtime64 = require("react/jsx-runtime");
4238
4249
  function ReportCard(props) {
4239
- const { title, file, status } = props;
4250
+ const { title, file, status, subtitle } = props;
4240
4251
  const onClickDownload = (0, import_react36.useCallback)(() => {
4241
4252
  if (!file)
4242
4253
  return;
@@ -4262,7 +4273,10 @@ function ReportCard(props) {
4262
4273
  gapY: "2",
4263
4274
  justify: "between",
4264
4275
  children: [
4265
- /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Heading2, { variant: "heading4", children: title }),
4276
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_themes6.Box, { children: [
4277
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Heading2, { variant: "heading4", children: title }),
4278
+ subtitle ? /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Typo, { color: "gray", children: subtitle }) : null
4279
+ ] }),
4266
4280
  /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Button, { onClick: onClickDownload, variant: "surface", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(import_themes22.Flex, { gap: "2", width: "100%", children: [
4267
4281
  /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(import_react_icons2.DownloadIcon, {}),
4268
4282
  file == null ? void 0 : file.buttonName