@tipp/ui 1.5.0 → 1.5.1

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 (222) hide show
  1. package/dist/app/index.cjs +100 -92
  2. package/dist/app/index.cjs.map +1 -1
  3. package/dist/app/index.js +26 -26
  4. package/dist/app/platform/coach-question-list.cjs +7 -7
  5. package/dist/app/platform/coach-question-list.cjs.map +1 -1
  6. package/dist/app/platform/coach-question-list.js +10 -10
  7. package/dist/app/platform/edit-coaching-time.cjs +18 -18
  8. package/dist/app/platform/edit-coaching-time.cjs.map +1 -1
  9. package/dist/app/platform/edit-coaching-time.js +18 -18
  10. package/dist/app/platform/edit-service-type.cjs +10 -10
  11. package/dist/app/platform/edit-service-type.cjs.map +1 -1
  12. package/dist/app/platform/edit-service-type.js +17 -17
  13. package/dist/app/platform/goal-manage-card-edit.cjs +14 -14
  14. package/dist/app/platform/goal-manage-card-edit.cjs.map +1 -1
  15. package/dist/app/platform/goal-manage-card-edit.js +16 -16
  16. package/dist/app/platform/goal-manage-card-read.cjs +16 -16
  17. package/dist/app/platform/goal-manage-card-read.cjs.map +1 -1
  18. package/dist/app/platform/goal-manage-card-read.js +11 -11
  19. package/dist/app/platform/on-offline-radio-card.js +15 -15
  20. package/dist/app/platform/report-card.cjs +7 -7
  21. package/dist/app/platform/report-card.cjs.map +1 -1
  22. package/dist/app/platform/report-card.js +15 -15
  23. package/dist/app/platform/reservation-card.cjs +28 -28
  24. package/dist/app/platform/reservation-card.cjs.map +1 -1
  25. package/dist/app/platform/reservation-card.js +16 -16
  26. package/dist/app/platform/session-card.cjs +69 -61
  27. package/dist/app/platform/session-card.cjs.map +1 -1
  28. package/dist/app/platform/session-card.js +19 -19
  29. package/dist/app/platform/session-review-simple-read.cjs +8 -8
  30. package/dist/app/platform/session-review-simple-read.cjs.map +1 -1
  31. package/dist/app/platform/session-review-simple-read.js +10 -10
  32. package/dist/app/platform/userInfos/coaching-customer-info/index.cjs +17 -17
  33. package/dist/app/platform/userInfos/coaching-customer-info/index.cjs.map +1 -1
  34. package/dist/app/platform/userInfos/coaching-customer-info/index.js +13 -13
  35. package/dist/app/platform/userInfos/coaching-customer-info/large.cjs +8 -8
  36. package/dist/app/platform/userInfos/coaching-customer-info/large.cjs.map +1 -1
  37. package/dist/app/platform/userInfos/coaching-customer-info/large.js +11 -11
  38. package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs +13 -13
  39. package/dist/app/platform/userInfos/coaching-customer-info/medium.cjs.map +1 -1
  40. package/dist/app/platform/userInfos/coaching-customer-info/medium.js +11 -11
  41. package/dist/app/platform/userInfos/coaching-customer-info/small.cjs +11 -11
  42. package/dist/app/platform/userInfos/coaching-customer-info/small.cjs.map +1 -1
  43. package/dist/app/platform/userInfos/coaching-customer-info/small.js +10 -10
  44. package/dist/app/platform/userInfos/session-user-info-detail.cjs +11 -11
  45. package/dist/app/platform/userInfos/session-user-info-detail.cjs.map +1 -1
  46. package/dist/app/platform/userInfos/session-user-info-detail.js +11 -11
  47. package/dist/app/platform/userInfos/utils.js +10 -10
  48. package/dist/atoms/dialog.cjs +49 -81
  49. package/dist/atoms/dialog.cjs.map +1 -1
  50. package/dist/atoms/dialog.d.cts +2 -0
  51. package/dist/atoms/dialog.d.ts +2 -0
  52. package/dist/atoms/dialog.js +3 -3
  53. package/dist/atoms/drawer.js +2 -2
  54. package/dist/atoms/index.cjs +76 -68
  55. package/dist/atoms/index.cjs.map +1 -1
  56. package/dist/atoms/index.js +19 -19
  57. package/dist/chunk-2M2IFCSK.js +52 -0
  58. package/dist/chunk-2M2IFCSK.js.map +1 -0
  59. package/dist/chunk-2OS7X2DG.js +138 -0
  60. package/dist/chunk-2OS7X2DG.js.map +1 -0
  61. package/dist/chunk-36JB7UOF.js +138 -0
  62. package/dist/chunk-36JB7UOF.js.map +1 -0
  63. package/dist/chunk-4T4KKREE.js +30 -0
  64. package/dist/chunk-4T4KKREE.js.map +1 -0
  65. package/dist/chunk-5327PTNJ.js +138 -0
  66. package/dist/chunk-5327PTNJ.js.map +1 -0
  67. package/dist/chunk-547DJCAJ.js +74 -0
  68. package/dist/chunk-547DJCAJ.js.map +1 -0
  69. package/dist/chunk-5AAS42YG.js +98 -0
  70. package/dist/chunk-5AAS42YG.js.map +1 -0
  71. package/dist/chunk-5E3TLMRW.js +138 -0
  72. package/dist/chunk-5E3TLMRW.js.map +1 -0
  73. package/dist/chunk-5FP6SWXJ.js +203 -0
  74. package/dist/chunk-5FP6SWXJ.js.map +1 -0
  75. package/dist/chunk-6Y3Z5OIX.js +101 -0
  76. package/dist/chunk-6Y3Z5OIX.js.map +1 -0
  77. package/dist/chunk-7EDPO2Y5.js +138 -0
  78. package/dist/chunk-7EDPO2Y5.js.map +1 -0
  79. package/dist/chunk-7OJSWKHZ.js +138 -0
  80. package/dist/chunk-7OJSWKHZ.js.map +1 -0
  81. package/dist/chunk-7TWIGS7O.js +101 -0
  82. package/dist/chunk-7TWIGS7O.js.map +1 -0
  83. package/dist/chunk-7WLDXOOO.js +350 -0
  84. package/dist/chunk-7WLDXOOO.js.map +1 -0
  85. package/dist/chunk-7ZEWNVHJ.js +192 -0
  86. package/dist/chunk-7ZEWNVHJ.js.map +1 -0
  87. package/dist/chunk-AKKAPBO4.js +52 -0
  88. package/dist/chunk-AKKAPBO4.js.map +1 -0
  89. package/dist/chunk-AOCMD34M.js +138 -0
  90. package/dist/chunk-AOCMD34M.js.map +1 -0
  91. package/dist/chunk-AP5ARKJL.js +138 -0
  92. package/dist/chunk-AP5ARKJL.js.map +1 -0
  93. package/dist/chunk-C24NCIRF.js +138 -0
  94. package/dist/chunk-C24NCIRF.js.map +1 -0
  95. package/dist/chunk-C3QWDJ3D.js +145 -0
  96. package/dist/chunk-C3QWDJ3D.js.map +1 -0
  97. package/dist/chunk-CEMVFONQ.js +104 -0
  98. package/dist/chunk-CEMVFONQ.js.map +1 -0
  99. package/dist/chunk-CJ3XXETF.js +109 -0
  100. package/dist/chunk-CJ3XXETF.js.map +1 -0
  101. package/dist/chunk-EBSM7TV4.js +101 -0
  102. package/dist/chunk-EBSM7TV4.js.map +1 -0
  103. package/dist/chunk-FMCDZEXR.js +58 -0
  104. package/dist/chunk-FMCDZEXR.js.map +1 -0
  105. package/dist/chunk-H623KT6H.js +138 -0
  106. package/dist/chunk-H623KT6H.js.map +1 -0
  107. package/dist/chunk-IE5GRQOQ.js +112 -0
  108. package/dist/chunk-IE5GRQOQ.js.map +1 -0
  109. package/dist/chunk-IVGPZUCB.js +203 -0
  110. package/dist/chunk-IVGPZUCB.js.map +1 -0
  111. package/dist/chunk-JTEQ25Z5.js +101 -0
  112. package/dist/chunk-JTEQ25Z5.js.map +1 -0
  113. package/dist/chunk-JXRHM4PD.js +138 -0
  114. package/dist/chunk-JXRHM4PD.js.map +1 -0
  115. package/dist/chunk-JZXYBYIV.js +39 -0
  116. package/dist/chunk-JZXYBYIV.js.map +1 -0
  117. package/dist/chunk-KJMWCR2G.js +101 -0
  118. package/dist/chunk-KJMWCR2G.js.map +1 -0
  119. package/dist/chunk-LQT6ZGLA.js +138 -0
  120. package/dist/chunk-LQT6ZGLA.js.map +1 -0
  121. package/dist/chunk-M5G5KMUE.js +76 -0
  122. package/dist/chunk-M5G5KMUE.js.map +1 -0
  123. package/dist/chunk-MI2LODDO.js +138 -0
  124. package/dist/chunk-MI2LODDO.js.map +1 -0
  125. package/dist/chunk-MOZLM3CP.js +171 -0
  126. package/dist/chunk-MOZLM3CP.js.map +1 -0
  127. package/dist/chunk-MR4FQ4H6.js +93 -0
  128. package/dist/chunk-MR4FQ4H6.js.map +1 -0
  129. package/dist/chunk-NFTADDQN.js +138 -0
  130. package/dist/chunk-NFTADDQN.js.map +1 -0
  131. package/dist/chunk-NHC6ZFBA.js +138 -0
  132. package/dist/chunk-NHC6ZFBA.js.map +1 -0
  133. package/dist/chunk-NPSJEUC6.js +138 -0
  134. package/dist/chunk-NPSJEUC6.js.map +1 -0
  135. package/dist/chunk-OUZT3SDR.js +59 -0
  136. package/dist/chunk-OUZT3SDR.js.map +1 -0
  137. package/dist/chunk-PWPVK2HB.js +112 -0
  138. package/dist/chunk-PWPVK2HB.js.map +1 -0
  139. package/dist/chunk-Q64HDW6R.js +109 -0
  140. package/dist/chunk-Q64HDW6R.js.map +1 -0
  141. package/dist/chunk-QJ4FYN6G.js +76 -0
  142. package/dist/chunk-QJ4FYN6G.js.map +1 -0
  143. package/dist/chunk-QNYWSY5P.js +164 -0
  144. package/dist/chunk-QNYWSY5P.js.map +1 -0
  145. package/dist/chunk-R255GZPB.js +35 -0
  146. package/dist/chunk-R255GZPB.js.map +1 -0
  147. package/dist/chunk-RGH3ADLO.js +101 -0
  148. package/dist/chunk-RGH3ADLO.js.map +1 -0
  149. package/dist/chunk-RLFG5TCU.js +98 -0
  150. package/dist/chunk-RLFG5TCU.js.map +1 -0
  151. package/dist/chunk-TCF7B3N3.js +101 -0
  152. package/dist/chunk-TCF7B3N3.js.map +1 -0
  153. package/dist/chunk-TJ564MUO.js +145 -0
  154. package/dist/chunk-TJ564MUO.js.map +1 -0
  155. package/dist/chunk-TJSCVJT2.js +138 -0
  156. package/dist/chunk-TJSCVJT2.js.map +1 -0
  157. package/dist/chunk-TMDNIBIV.js +64 -0
  158. package/dist/chunk-TMDNIBIV.js.map +1 -0
  159. package/dist/chunk-TW5EULWR.js +93 -0
  160. package/dist/chunk-TW5EULWR.js.map +1 -0
  161. package/dist/chunk-UB6KOKKQ.js +138 -0
  162. package/dist/chunk-UB6KOKKQ.js.map +1 -0
  163. package/dist/chunk-UVJASJN4.js +64 -0
  164. package/dist/chunk-UVJASJN4.js.map +1 -0
  165. package/dist/chunk-VYGMNI7T.js +138 -0
  166. package/dist/chunk-VYGMNI7T.js.map +1 -0
  167. package/dist/chunk-W4QKUPPN.js +138 -0
  168. package/dist/chunk-W4QKUPPN.js.map +1 -0
  169. package/dist/chunk-WVBFSWKT.js +104 -0
  170. package/dist/chunk-WVBFSWKT.js.map +1 -0
  171. package/dist/chunk-X3SEOKG4.js +243 -0
  172. package/dist/chunk-X3SEOKG4.js.map +1 -0
  173. package/dist/chunk-XBYZM24U.js +112 -0
  174. package/dist/chunk-XBYZM24U.js.map +1 -0
  175. package/dist/chunk-XEJG52Y3.js +112 -0
  176. package/dist/chunk-XEJG52Y3.js.map +1 -0
  177. package/dist/chunk-XEJNYJF6.js +80 -0
  178. package/dist/chunk-XEJNYJF6.js.map +1 -0
  179. package/dist/chunk-XNOQPF6O.js +171 -0
  180. package/dist/chunk-XNOQPF6O.js.map +1 -0
  181. package/dist/chunk-Y2MNPJCI.js +73 -0
  182. package/dist/chunk-Y2MNPJCI.js.map +1 -0
  183. package/dist/chunk-YHW5PCCE.js +57 -0
  184. package/dist/chunk-YHW5PCCE.js.map +1 -0
  185. package/dist/chunk-YK2IAHKI.js +138 -0
  186. package/dist/chunk-YK2IAHKI.js.map +1 -0
  187. package/dist/chunk-YVWOLJ44.js +101 -0
  188. package/dist/chunk-YVWOLJ44.js.map +1 -0
  189. package/dist/chunk-ZAQQ6H6W.js +30 -0
  190. package/dist/chunk-ZAQQ6H6W.js.map +1 -0
  191. package/dist/chunk-ZUL5FOQW.js +203 -0
  192. package/dist/chunk-ZUL5FOQW.js.map +1 -0
  193. package/dist/chunk-ZW34437K.js +138 -0
  194. package/dist/chunk-ZW34437K.js.map +1 -0
  195. package/dist/chunk-ZW37CDPD.js +243 -0
  196. package/dist/chunk-ZW37CDPD.js.map +1 -0
  197. package/dist/index.cjs +147 -139
  198. package/dist/index.cjs.map +1 -1
  199. package/dist/index.css +5 -3
  200. package/dist/index.css.map +1 -1
  201. package/dist/index.js +56 -56
  202. package/dist/layouts/index.js +10 -10
  203. package/dist/layouts/response-display.js +10 -10
  204. package/dist/molecules/date-picker/date-picker-button.cjs +12 -12
  205. package/dist/molecules/date-picker/date-picker-button.cjs.map +1 -1
  206. package/dist/molecules/date-picker/date-picker-button.js +10 -10
  207. package/dist/molecules/expand-table/index.cjs +12 -12
  208. package/dist/molecules/expand-table/index.cjs.map +1 -1
  209. package/dist/molecules/expand-table/index.js +13 -13
  210. package/dist/molecules/expand-table/row.js +10 -10
  211. package/dist/molecules/form.d.cts +1 -1
  212. package/dist/molecules/form.d.ts +1 -1
  213. package/dist/molecules/index.cjs +46 -46
  214. package/dist/molecules/index.cjs.map +1 -1
  215. package/dist/molecules/index.js +15 -15
  216. package/dist/molecules/navigation.js +10 -10
  217. package/dist/molecules/radio-button-card.js +10 -10
  218. package/dist/molecules/stepper.js +2 -2
  219. package/dist/molecules/tag-selector.js +11 -11
  220. package/dist/molecules/time-select.js +10 -10
  221. package/package.json +3 -3
  222. package/src/atoms/dialog.tsx +23 -6
@@ -64,87 +64,18 @@ __export(dialog_exports, {
64
64
  module.exports = __toCommonJS(dialog_exports);
65
65
  var RadixDialog = __toESM(require("@radix-ui/react-dialog"), 1);
66
66
  var import_react_icons2 = require("@radix-ui/react-icons");
67
- var import_themes2 = require("@radix-ui/themes");
68
-
69
- // src/atoms/button.tsx
70
- var import_react = require("react");
71
- var import_themes = require("@radix-ui/themes");
72
-
73
- // src/utils/convert-button-size.ts
74
- var convertSizeStr = (size) => {
75
- switch (size) {
76
- case "small":
77
- return "1";
78
- case "medium":
79
- return "2";
80
- case "large":
81
- return "3";
82
- default:
83
- return "2";
84
- }
85
- };
86
- var convertSizeResponse = (size) => {
87
- if (typeof size === "string" || typeof size === "undefined") {
88
- return convertSizeStr(size);
89
- }
90
- const radixSize = {};
91
- let key = "initial";
92
- for (key in size) {
93
- radixSize[key] = convertSizeStr(size[key]);
94
- }
95
- return radixSize;
96
- };
97
- var convertSize = (size) => {
98
- if (typeof size === "string") {
99
- return convertSizeStr(size);
100
- }
101
- return convertSizeResponse(size);
102
- };
103
-
104
- // src/atoms/button.tsx
105
- var import_jsx_runtime = require("react/jsx-runtime");
106
- var Button = (0, import_react.forwardRef)(
107
- (props, ref) => {
108
- const _a = props, { size, style, variant } = _a, restProps = __objRest(_a, ["size", "style", "variant"]);
109
- const radixSize = (0, import_react.useMemo)(() => {
110
- return convertSize(size);
111
- }, [size]);
112
- const mergedStyle = (0, import_react.useMemo)(() => {
113
- const baseStyle = {
114
- background: variant === "transparent" ? "transparent" : void 0,
115
- fontWeight: 400
116
- };
117
- return __spreadValues(__spreadValues({}, baseStyle), style);
118
- }, [style, variant]);
119
- const radixVariant = (0, import_react.useMemo)(() => {
120
- if (variant === "transparent")
121
- return "ghost";
122
- return variant;
123
- }, [variant]);
124
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
125
- import_themes.Button,
126
- __spreadProps(__spreadValues({
127
- style: mergedStyle,
128
- variant: radixVariant
129
- }, restProps), {
130
- ref,
131
- size: radixSize
132
- })
133
- );
134
- }
135
- );
136
- Button.displayName = "Button";
67
+ var import_themes4 = require("@radix-ui/themes");
137
68
 
138
69
  // src/atoms/toast.tsx
139
70
  var import_react_icons = require("@radix-ui/react-icons");
140
71
  var import_react_toastify = require("react-toastify");
141
72
  var import_react_toastify2 = require("react-toastify");
142
- var import_jsx_runtime2 = require("react/jsx-runtime");
73
+ var import_jsx_runtime = require("react/jsx-runtime");
143
74
  function CloseButton() {
144
75
  return null;
145
76
  }
146
77
  function ToastContainer(props) {
147
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
78
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
148
79
  import_react_toastify.ToastContainer,
149
80
  __spreadValues({
150
81
  autoClose: 5e3,
@@ -152,7 +83,7 @@ function ToastContainer(props) {
152
83
  closeOnClick: true,
153
84
  draggable: true,
154
85
  hideProgressBar: true,
155
- icon: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_icons.InfoCircledIcon, {}),
86
+ icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_icons.InfoCircledIcon, {}),
156
87
  newestOnTop: true,
157
88
  pauseOnFocusLoss: true,
158
89
  pauseOnHover: true,
@@ -163,6 +94,35 @@ function ToastContainer(props) {
163
94
  );
164
95
  }
165
96
 
97
+ // src/atoms/heading.tsx
98
+ var import_themes = require("@radix-ui/themes");
99
+ var import_react = require("react");
100
+ var import_themes2 = require("@radix-ui/themes");
101
+ var import_jsx_runtime2 = require("react/jsx-runtime");
102
+ function Heading2(props) {
103
+ const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
104
+ const radixSize = (0, import_react.useMemo)(() => {
105
+ switch (variant) {
106
+ case "heading1":
107
+ return "7";
108
+ case "heading2":
109
+ return "6";
110
+ case "heading3":
111
+ return "5";
112
+ case "heading4":
113
+ return "4";
114
+ case "heading5":
115
+ return "3";
116
+ default:
117
+ return size;
118
+ }
119
+ }, [size, variant]);
120
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_themes.Heading, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
121
+ }
122
+
123
+ // src/atoms/icon-button.tsx
124
+ var import_themes3 = require("@radix-ui/themes");
125
+
166
126
  // src/atoms/dialog.tsx
167
127
  var import_jsx_runtime3 = require("react/jsx-runtime");
168
128
  var preventDefault = (e) => {
@@ -177,7 +137,9 @@ function Content2(props) {
177
137
  minWidth,
178
138
  maxHeight,
179
139
  height,
180
- minHeight
140
+ minHeight,
141
+ title,
142
+ buttons
181
143
  } = _a, rest = __objRest(_a, [
182
144
  "children",
183
145
  "style",
@@ -186,10 +148,12 @@ function Content2(props) {
186
148
  "minWidth",
187
149
  "maxHeight",
188
150
  "height",
189
- "minHeight"
151
+ "minHeight",
152
+ "title",
153
+ "buttons"
190
154
  ]);
191
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RadixDialog.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_themes2.Theme, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(RadixDialog.Overlay, { className: "DialogOverlay", children: [
192
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
155
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RadixDialog.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_themes4.Theme, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(RadixDialog.Overlay, { className: "DialogOverlay", children: [
156
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
193
157
  RadixDialog.Content,
194
158
  __spreadProps(__spreadValues({
195
159
  className: "DialogContent",
@@ -203,10 +167,14 @@ function Content2(props) {
203
167
  minHeight
204
168
  }, style)
205
169
  }, rest), {
206
- children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_themes2.Flex, { direction: "column", style: { position: "relative" }, children: [
207
- /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RadixDialog.Close, { asChild: true, className: "DialogClose", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Button, { color: "gray", variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react_icons2.Cross1Icon, { height: "18px", width: "18px" }) }) }),
208
- children
209
- ] })
170
+ children: [
171
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_themes4.Flex, { gap: "2", justify: "between", children: [
172
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RadixDialog.Title, { asChild: true, children: typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Heading2, { variant: "heading3", children: title }) : title }),
173
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(RadixDialog.Close, { asChild: true, className: "DialogClose", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_themes3.IconButton, { color: "gray", variant: "ghost", children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_react_icons2.Cross1Icon, {}) }) })
174
+ ] }),
175
+ children,
176
+ buttons ? /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_themes4.Flex, { gap: "3", justify: "end", mt: "3", children: buttons }) : null
177
+ ]
210
178
  })
211
179
  ),
212
180
  /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(ToastContainer, {})
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/atoms/dialog.tsx","../../src/atoms/button.tsx","../../src/utils/convert-button-size.ts","../../src/atoms/toast.tsx"],"sourcesContent":["import * as RadixDialog from '@radix-ui/react-dialog';\nimport { Cross1Icon } from '@radix-ui/react-icons';\nimport { Flex, Theme } from '@radix-ui/themes';\nimport { Button } from './button';\nimport { ToastContainer } from './toast';\n\ntype ContentProps = RadixDialog.DialogContentProps & {\n width?: string;\n maxWidth?: string;\n minWidth?: string;\n height?: string;\n maxHeight?: string;\n minHeight?: string;\n};\n\nconst preventDefault: RadixDialog.DialogContentProps['onPointerDownOutside'] = (\n e\n) => {\n e.preventDefault();\n};\n\nfunction Content(props: ContentProps): React.ReactElement {\n const {\n children,\n style = {},\n width,\n maxWidth,\n minWidth,\n maxHeight,\n height,\n minHeight,\n ...rest\n } = props;\n\n return (\n <RadixDialog.Portal>\n <Theme asChild>\n <RadixDialog.Overlay className=\"DialogOverlay\">\n <RadixDialog.Content\n className=\"DialogContent\"\n onPointerDownOutside={preventDefault}\n style={{\n width,\n maxWidth,\n minWidth,\n maxHeight,\n height,\n minHeight,\n ...style,\n }}\n {...rest}\n >\n <Flex direction=\"column\" style={{ position: 'relative' }}>\n <RadixDialog.Close asChild className=\"DialogClose\">\n <Button color=\"gray\" variant=\"transparent\">\n <Cross1Icon height=\"18px\" width=\"18px\" />\n </Button>\n </RadixDialog.Close>\n {children}\n </Flex>\n </RadixDialog.Content>\n <ToastContainer />\n </RadixDialog.Overlay>\n </Theme>\n </RadixDialog.Portal>\n );\n}\n\nfunction Close({\n children,\n ...rest\n}: RadixDialog.DialogCloseProps): React.ReactElement {\n return (\n <RadixDialog.Close asChild {...rest}>\n {children}\n </RadixDialog.Close>\n );\n}\n\nfunction Trigger({\n children,\n ...rest\n}: RadixDialog.DialogTriggerProps): React.ReactElement {\n return (\n <RadixDialog.Trigger asChild {...rest}>\n {children}\n </RadixDialog.Trigger>\n );\n}\n\nexport const Dialog = {\n Root: RadixDialog.Root,\n Trigger,\n Content,\n Close,\n Description: RadixDialog.Description,\n Title: RadixDialog.Title,\n};\n","import React, { forwardRef, useMemo } from 'react';\nimport { Button as RadixButton } from '@radix-ui/themes';\nimport { convertSize } from '../utils/convert-button-size';\nimport type { ButtonProps } from './button.type';\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>(\n (props, ref): React.ReactElement => {\n const { size, style, variant, ...restProps } = props;\n\n const radixSize = useMemo(() => {\n return convertSize(size);\n }, [size]);\n\n const mergedStyle = useMemo<ButtonProps['style']>(() => {\n const baseStyle = {\n background: variant === 'transparent' ? 'transparent' : undefined,\n fontWeight: 400,\n };\n return { ...baseStyle, ...style };\n }, [style, variant]);\n\n const radixVariant = useMemo(() => {\n if (variant === 'transparent') return 'ghost';\n return variant;\n }, [variant]);\n\n return (\n <RadixButton\n style={mergedStyle}\n variant={radixVariant}\n {...restProps}\n ref={ref}\n size={radixSize}\n />\n );\n }\n);\n\nButton.displayName = 'Button';\n","import { type ButtonProps as RadixButtonProps } from '@radix-ui/themes';\nimport type { Breakpoint } from '@radix-ui/themes/props';\nimport type { ButtonProps } from '../atoms/button.type';\n\nexport const convertSizeStr = (\n size: ButtonProps['size']\n): '1' | '2' | '3' | '4' => {\n switch (size) {\n case 'small':\n return '1';\n case 'medium':\n return '2';\n case 'large':\n return '3';\n default:\n return '2';\n }\n};\n\nexport const convertSizeResponse = (\n size: ButtonProps['size']\n): RadixButtonProps['size'] => {\n if (typeof size === 'string' || typeof size === 'undefined') {\n return convertSizeStr(size);\n }\n const radixSize: RadixButtonProps['size'] = {};\n let key: Breakpoint = 'initial';\n for (key in size) {\n radixSize[key] = convertSizeStr(size[key]);\n }\n return radixSize;\n};\n\nexport const convertSize = (\n size: ButtonProps['size']\n): RadixButtonProps['size'] => {\n if (typeof size === 'string') {\n return convertSizeStr(size);\n }\n return convertSizeResponse(size);\n};\n","import { InfoCircledIcon } from '@radix-ui/react-icons';\nimport {\n ToastContainer as ToastifyContainer,\n type ToastContainerProps,\n} from 'react-toastify';\n\nexport { toast } from 'react-toastify';\n\nfunction CloseButton(): React.ReactNode {\n return null;\n}\n\nexport function ToastContainer(props: ToastContainerProps): React.ReactElement {\n return (\n <ToastifyContainer\n autoClose={5000}\n closeButton={CloseButton}\n closeOnClick\n draggable\n hideProgressBar\n icon={<InfoCircledIcon />}\n newestOnTop\n pauseOnFocusLoss\n pauseOnHover\n position=\"bottom-right\"\n rtl={false}\n style={{ zIndex: 999999 }}\n {...props}\n />\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA6B;AAC7B,IAAAA,sBAA2B;AAC3B,IAAAC,iBAA4B;;;ACF5B,mBAA2C;AAC3C,oBAAsC;;;ACG/B,IAAM,iBAAiB,CAC5B,SAC0B;AAC1B,UAAQ,MAAM;AAAA,IACZ,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT,KAAK;AACH,aAAO;AAAA,IACT;AACE,aAAO;AAAA,EACX;AACF;AAEO,IAAM,sBAAsB,CACjC,SAC6B;AAC7B,MAAI,OAAO,SAAS,YAAY,OAAO,SAAS,aAAa;AAC3D,WAAO,eAAe,IAAI;AAAA,EAC5B;AACA,QAAM,YAAsC,CAAC;AAC7C,MAAI,MAAkB;AACtB,OAAK,OAAO,MAAM;AAChB,cAAU,GAAG,IAAI,eAAe,KAAK,GAAG,CAAC;AAAA,EAC3C;AACA,SAAO;AACT;AAEO,IAAM,cAAc,CACzB,SAC6B;AAC7B,MAAI,OAAO,SAAS,UAAU;AAC5B,WAAO,eAAe,IAAI;AAAA,EAC5B;AACA,SAAO,oBAAoB,IAAI;AACjC;;;ADbM;AAtBC,IAAM,aAAS;AAAA,EACpB,CAAC,OAAO,QAA4B;AAClC,UAA+C,YAAvC,QAAM,OAAO,QAPzB,IAOmD,IAAd,sBAAc,IAAd,CAAzB,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","RadixButton","import_react_toastify","import_jsx_runtime","ToastifyContainer","import_jsx_runtime","Content","Close","Trigger"]}
1
+ {"version":3,"sources":["../../src/atoms/dialog.tsx","../../src/atoms/toast.tsx","../../src/atoms/heading.tsx","../../src/atoms/icon-button.tsx"],"sourcesContent":["import * as RadixDialog from '@radix-ui/react-dialog';\nimport { Cross1Icon } from '@radix-ui/react-icons';\nimport { Flex, Theme } from '@radix-ui/themes';\nimport { ToastContainer } from './toast';\nimport { Heading } from './heading';\nimport { IconButton } from './icon-button';\n\ntype ContentProps = RadixDialog.DialogContentProps & {\n width?: string;\n maxWidth?: string;\n minWidth?: string;\n height?: string;\n maxHeight?: string;\n minHeight?: string;\n title?: React.ReactNode;\n buttons?: React.ReactElement;\n};\n\nconst preventDefault: RadixDialog.DialogContentProps['onPointerDownOutside'] = (\n e\n) => {\n e.preventDefault();\n};\n\nfunction Content(props: ContentProps): React.ReactElement {\n const {\n children,\n style = {},\n width,\n maxWidth,\n minWidth,\n maxHeight,\n height,\n minHeight,\n title,\n buttons,\n ...rest\n } = props;\n\n return (\n <RadixDialog.Portal>\n <Theme asChild>\n <RadixDialog.Overlay className=\"DialogOverlay\">\n <RadixDialog.Content\n className=\"DialogContent\"\n onPointerDownOutside={preventDefault}\n style={{\n width,\n maxWidth,\n minWidth,\n maxHeight,\n height,\n minHeight,\n ...style,\n }}\n {...rest}\n >\n <Flex gap=\"2\" justify=\"between\">\n <RadixDialog.Title asChild>\n {typeof title === 'string' ? (\n <Heading variant=\"heading3\">{title}</Heading>\n ) : (\n title\n )}\n </RadixDialog.Title>\n <RadixDialog.Close asChild className=\"DialogClose\">\n <IconButton color=\"gray\" variant=\"ghost\">\n <Cross1Icon />\n </IconButton>\n </RadixDialog.Close>\n </Flex>\n {children}\n {buttons ? (\n <Flex gap=\"3\" justify=\"end\" mt=\"3\">\n {buttons}\n </Flex>\n ) : null}\n </RadixDialog.Content>\n <ToastContainer />\n </RadixDialog.Overlay>\n </Theme>\n </RadixDialog.Portal>\n );\n}\n\nfunction Close({\n children,\n ...rest\n}: RadixDialog.DialogCloseProps): React.ReactElement {\n return (\n <RadixDialog.Close asChild {...rest}>\n {children}\n </RadixDialog.Close>\n );\n}\n\nfunction Trigger({\n children,\n ...rest\n}: RadixDialog.DialogTriggerProps): React.ReactElement {\n return (\n <RadixDialog.Trigger asChild {...rest}>\n {children}\n </RadixDialog.Trigger>\n );\n}\n\nexport const Dialog = {\n Root: RadixDialog.Root,\n Trigger,\n Content,\n Close,\n Description: RadixDialog.Description,\n Title: RadixDialog.Title,\n};\n","import { InfoCircledIcon } from '@radix-ui/react-icons';\nimport {\n ToastContainer as ToastifyContainer,\n type ToastContainerProps,\n} from 'react-toastify';\n\nexport { toast } from 'react-toastify';\n\nfunction CloseButton(): React.ReactNode {\n return null;\n}\n\nexport function ToastContainer(props: ToastContainerProps): React.ReactElement {\n return (\n <ToastifyContainer\n autoClose={5000}\n closeButton={CloseButton}\n closeOnClick\n draggable\n hideProgressBar\n icon={<InfoCircledIcon />}\n newestOnTop\n pauseOnFocusLoss\n pauseOnHover\n position=\"bottom-right\"\n rtl={false}\n style={{ zIndex: 999999 }}\n {...props}\n />\n );\n}\n","import {\n Heading as RadixHeading,\n type HeadingProps as RadixHeadingProps,\n} from '@radix-ui/themes';\nimport { useMemo } from 'react';\n\nexport { Heading as RadixHeading } from '@radix-ui/themes';\n\nexport type HeadingProps = RadixHeadingProps & {\n variant?: 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5';\n};\n\nexport function Heading(props: HeadingProps): React.ReactElement {\n const { size, children, variant, ...rest } = props;\n const radixSize = useMemo<RadixHeadingProps['size']>(() => {\n switch (variant) {\n case 'heading1':\n return '7';\n case 'heading2':\n return '6';\n case 'heading3':\n return '5';\n case 'heading4':\n return '4';\n case 'heading5':\n return '3';\n default:\n return size;\n }\n }, [size, variant]);\n\n return (\n <RadixHeading {...rest} size={radixSize}>\n {children}\n </RadixHeading>\n );\n}\n","export { IconButton, type IconButtonProps } from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AO,QAAK,OAA9B,EACE,WACH;AAEJ;AAEA,SAASC,SAAQ,IAGsC;AAHtC,eACf;AAAA;AAAA,EAjGF,IAgGiB,IAEZ,iBAFY,IAEZ;AAAA,IADH;AAAA;AAGA,SACE,6CAAa,qBAAZ,+BAAoB,SAAO,QAAK,OAAhC,EACE,WACH;AAEJ;AAEO,IAAM,SAAS;AAAA,EACpB,MAAkB;AAAA,EAClB,SAAAA;AAAA,EACA,SAAAH;AAAA,EACA,OAAAE;AAAA,EACA,aAAyB;AAAA,EACzB,OAAmB;AACrB;","names":["import_react_icons","import_themes","import_react_toastify","ToastifyContainer","import_themes","import_jsx_runtime","Heading","RadixHeading","import_themes","import_jsx_runtime","Content","Heading","Close","Trigger"]}
@@ -8,6 +8,8 @@ type ContentProps = Dialog$1.DialogContentProps & {
8
8
  height?: string;
9
9
  maxHeight?: string;
10
10
  minHeight?: string;
11
+ title?: React.ReactNode;
12
+ buttons?: React.ReactElement;
11
13
  };
12
14
  declare function Content(props: ContentProps): React.ReactElement;
13
15
  declare function Close({ children, ...rest }: Dialog$1.DialogCloseProps): React.ReactElement;
@@ -8,6 +8,8 @@ type ContentProps = Dialog$1.DialogContentProps & {
8
8
  height?: string;
9
9
  maxHeight?: string;
10
10
  minHeight?: string;
11
+ title?: React.ReactNode;
12
+ buttons?: React.ReactElement;
11
13
  };
12
14
  declare function Content(props: ContentProps): React.ReactElement;
13
15
  declare function Close({ children, ...rest }: Dialog$1.DialogCloseProps): React.ReactElement;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Dialog
3
- } from "../chunk-XZRRRMPQ.js";
3
+ } from "../chunk-CEMVFONQ.js";
4
4
  import "../chunk-CYYWMYE7.js";
5
- import "../chunk-U7JPP7WJ.js";
6
- import "../chunk-LQY4RKWI.js";
5
+ import "../chunk-HK224ADT.js";
6
+ import "../chunk-O3DNDMV3.js";
7
7
  import "../chunk-N552FDTV.js";
8
8
  export {
9
9
  Dialog
@@ -3,11 +3,11 @@ import {
3
3
  Drawer,
4
4
  Root,
5
5
  Trigger
6
- } from "../chunk-ODNY3R6A.js";
6
+ } from "../chunk-7SM2C75W.js";
7
+ import "../chunk-UNTA4JJU.js";
7
8
  import "../chunk-HYITAA4J.js";
8
9
  import "../chunk-O3DNDMV3.js";
9
10
  import "../chunk-25HMMI7R.js";
10
- import "../chunk-UNTA4JJU.js";
11
11
  import "../chunk-N552FDTV.js";
12
12
  export {
13
13
  Content,
@@ -82,14 +82,14 @@ __export(atoms_exports, {
82
82
  Drawer: () => Drawer,
83
83
  DropdownMenu: () => DropdownMenu,
84
84
  EllipsisTooltip: () => EllipsisTooltip,
85
- Em: () => import_themes18.Em,
85
+ Em: () => import_themes21.Em,
86
86
  FieldErrorWrapper: () => FieldErrorWrapper,
87
- Flex: () => import_themes19.Flex,
87
+ Flex: () => import_themes22.Flex,
88
88
  Form: () => Form,
89
- Grid: () => import_themes20.Grid,
89
+ Grid: () => import_themes23.Grid,
90
90
  Heading: () => Heading2,
91
- HoverCard: () => import_themes23.HoverCard,
92
- IconButton: () => import_themes24.IconButton,
91
+ HoverCard: () => import_themes24.HoverCard,
92
+ IconButton: () => import_themes18.IconButton,
93
93
  Inset: () => import_themes25.Inset,
94
94
  Kbd: () => import_themes26.Kbd,
95
95
  Link: () => Link,
@@ -366,7 +366,7 @@ var import_themes15 = require("@radix-ui/themes");
366
366
  // src/atoms/dialog.tsx
367
367
  var RadixDialog = __toESM(require("@radix-ui/react-dialog"), 1);
368
368
  var import_react_icons2 = require("@radix-ui/react-icons");
369
- var import_themes16 = require("@radix-ui/themes");
369
+ var import_themes19 = require("@radix-ui/themes");
370
370
 
371
371
  // src/atoms/toast.tsx
372
372
  var import_react_icons = require("@radix-ui/react-icons");
@@ -396,8 +396,37 @@ function ToastContainer(props) {
396
396
  );
397
397
  }
398
398
 
399
- // src/atoms/dialog.tsx
399
+ // src/atoms/heading.tsx
400
+ var import_themes16 = require("@radix-ui/themes");
401
+ var import_react7 = require("react");
402
+ var import_themes17 = require("@radix-ui/themes");
400
403
  var import_jsx_runtime8 = require("react/jsx-runtime");
404
+ function Heading2(props) {
405
+ const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
406
+ const radixSize = (0, import_react7.useMemo)(() => {
407
+ switch (variant) {
408
+ case "heading1":
409
+ return "7";
410
+ case "heading2":
411
+ return "6";
412
+ case "heading3":
413
+ return "5";
414
+ case "heading4":
415
+ return "4";
416
+ case "heading5":
417
+ return "3";
418
+ default:
419
+ return size;
420
+ }
421
+ }, [size, variant]);
422
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_themes16.Heading, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
423
+ }
424
+
425
+ // src/atoms/icon-button.tsx
426
+ var import_themes18 = require("@radix-ui/themes");
427
+
428
+ // src/atoms/dialog.tsx
429
+ var import_jsx_runtime9 = require("react/jsx-runtime");
401
430
  var preventDefault = (e) => {
402
431
  e.preventDefault();
403
432
  };
@@ -410,7 +439,9 @@ function Content2(props) {
410
439
  minWidth,
411
440
  maxHeight,
412
441
  height,
413
- minHeight
442
+ minHeight,
443
+ title,
444
+ buttons
414
445
  } = _a, rest = __objRest(_a, [
415
446
  "children",
416
447
  "style",
@@ -419,10 +450,12 @@ function Content2(props) {
419
450
  "minWidth",
420
451
  "maxHeight",
421
452
  "height",
422
- "minHeight"
453
+ "minHeight",
454
+ "title",
455
+ "buttons"
423
456
  ]);
424
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(RadixDialog.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_themes16.Theme, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(RadixDialog.Overlay, { className: "DialogOverlay", children: [
425
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(
457
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(RadixDialog.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes19.Theme, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(RadixDialog.Overlay, { className: "DialogOverlay", children: [
458
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
426
459
  RadixDialog.Content,
427
460
  __spreadProps(__spreadValues({
428
461
  className: "DialogContent",
@@ -436,13 +469,17 @@ function Content2(props) {
436
469
  minHeight
437
470
  }, style)
438
471
  }, rest), {
439
- children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_themes16.Flex, { direction: "column", style: { position: "relative" }, children: [
440
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(RadixDialog.Close, { asChild: true, className: "DialogClose", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(Button, { color: "gray", variant: "transparent", children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_react_icons2.Cross1Icon, { height: "18px", width: "18px" }) }) }),
441
- children
442
- ] })
472
+ children: [
473
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_themes19.Flex, { gap: "2", justify: "between", children: [
474
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(RadixDialog.Title, { asChild: true, children: typeof title === "string" ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Heading2, { variant: "heading3", children: title }) : title }),
475
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(RadixDialog.Close, { asChild: true, className: "DialogClose", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes18.IconButton, { color: "gray", variant: "ghost", children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_react_icons2.Cross1Icon, {}) }) })
476
+ ] }),
477
+ children,
478
+ buttons ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_themes19.Flex, { gap: "3", justify: "end", mt: "3", children: buttons }) : null
479
+ ]
443
480
  })
444
481
  ),
445
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(ToastContainer, {})
482
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(ToastContainer, {})
446
483
  ] }) }) });
447
484
  }
448
485
  function Close2(_a) {
@@ -451,7 +488,7 @@ function Close2(_a) {
451
488
  } = _b, rest = __objRest(_b, [
452
489
  "children"
453
490
  ]);
454
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(RadixDialog.Close, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
491
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(RadixDialog.Close, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
455
492
  }
456
493
  function Trigger2(_a) {
457
494
  var _b = _a, {
@@ -459,7 +496,7 @@ function Trigger2(_a) {
459
496
  } = _b, rest = __objRest(_b, [
460
497
  "children"
461
498
  ]);
462
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(RadixDialog.Trigger, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
499
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(RadixDialog.Trigger, __spreadProps(__spreadValues({ asChild: true }, rest), { children }));
463
500
  }
464
501
  var Dialog = {
465
502
  Root: RadixDialog.Root,
@@ -471,17 +508,17 @@ var Dialog = {
471
508
  };
472
509
 
473
510
  // src/atoms/dropdown-menu.tsx
474
- var import_themes17 = require("@radix-ui/themes");
475
- var import_react7 = require("react");
476
- var import_jsx_runtime9 = require("react/jsx-runtime");
477
- var Content3 = (0, import_react7.forwardRef)((props, ref) => {
511
+ var import_themes20 = require("@radix-ui/themes");
512
+ var import_react8 = require("react");
513
+ var import_jsx_runtime10 = require("react/jsx-runtime");
514
+ var Content3 = (0, import_react8.forwardRef)((props, ref) => {
478
515
  const _a = props, { isNavigation, className } = _a, rest = __objRest(_a, ["isNavigation", "className"]);
479
- const contentClassName = (0, import_react7.useMemo)(() => {
516
+ const contentClassName = (0, import_react8.useMemo)(() => {
480
517
  const cls = isNavigation ? "dropdown-navigation" : "";
481
518
  return [cls, className].join(" ");
482
519
  }, [isNavigation, className]);
483
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
484
- import_themes17.DropdownMenu.Content,
520
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
521
+ import_themes20.DropdownMenu.Content,
485
522
  __spreadProps(__spreadValues({
486
523
  ref
487
524
  }, rest), {
@@ -490,49 +527,20 @@ var Content3 = (0, import_react7.forwardRef)((props, ref) => {
490
527
  );
491
528
  });
492
529
  Content3.displayName = "DropdownMenu.Content";
493
- var DropdownMenu = __spreadProps(__spreadValues({}, import_themes17.DropdownMenu), {
530
+ var DropdownMenu = __spreadProps(__spreadValues({}, import_themes20.DropdownMenu), {
494
531
  Content: Content3
495
532
  });
496
533
 
497
534
  // src/atoms/em.tsx
498
- var import_themes18 = require("@radix-ui/themes");
535
+ var import_themes21 = require("@radix-ui/themes");
499
536
 
500
537
  // src/atoms/flex.tsx
501
- var import_themes19 = require("@radix-ui/themes");
502
-
503
- // src/atoms/grid.tsx
504
- var import_themes20 = require("@radix-ui/themes");
505
-
506
- // src/atoms/heading.tsx
507
- var import_themes21 = require("@radix-ui/themes");
508
- var import_react8 = require("react");
509
538
  var import_themes22 = require("@radix-ui/themes");
510
- var import_jsx_runtime10 = require("react/jsx-runtime");
511
- function Heading2(props) {
512
- const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
513
- const radixSize = (0, import_react8.useMemo)(() => {
514
- switch (variant) {
515
- case "heading1":
516
- return "7";
517
- case "heading2":
518
- return "6";
519
- case "heading3":
520
- return "5";
521
- case "heading4":
522
- return "4";
523
- case "heading5":
524
- return "3";
525
- default:
526
- return size;
527
- }
528
- }, [size, variant]);
529
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_themes21.Heading, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
530
- }
531
539
 
532
- // src/atoms/hover-card.tsx
540
+ // src/atoms/grid.tsx
533
541
  var import_themes23 = require("@radix-ui/themes");
534
542
 
535
- // src/atoms/icon-button.tsx
543
+ // src/atoms/hover-card.tsx
536
544
  var import_themes24 = require("@radix-ui/themes");
537
545
 
538
546
  // src/atoms/inset.tsx
@@ -836,9 +844,9 @@ function Pagination(props) {
836
844
  size: "3",
837
845
  style: { borderRadius: "50%" }
838
846
  };
839
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_themes19.Flex, { align: "center", className: "tipp-pagination", gap: "4", children: [
847
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_themes22.Flex, { align: "center", className: "tipp-pagination", gap: "4", children: [
840
848
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
841
- import_themes24.IconButton,
849
+ import_themes18.IconButton,
842
850
  __spreadProps(__spreadValues({
843
851
  disabled: !doublePrev,
844
852
  onClick: onClickDoublePrev
@@ -846,8 +854,8 @@ function Pagination(props) {
846
854
  children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react_icons3.DoubleArrowLeftIcon, __spreadValues({}, iconSize))
847
855
  })
848
856
  ),
849
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_themes24.IconButton, __spreadProps(__spreadValues({ disabled: !prev, onClick: onClickPrev }, moveButtonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react_icons3.ChevronLeftIcon, __spreadValues({}, iconSize)) })),
850
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_themes19.Flex, { gap: "1", children: visibleItems.map((item) => {
857
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_themes18.IconButton, __spreadProps(__spreadValues({ disabled: !prev, onClick: onClickPrev }, moveButtonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react_icons3.ChevronLeftIcon, __spreadValues({}, iconSize)) })),
858
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_themes22.Flex, { gap: "1", children: visibleItems.map((item) => {
851
859
  return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
852
860
  "button",
853
861
  {
@@ -861,9 +869,9 @@ function Pagination(props) {
861
869
  item
862
870
  );
863
871
  }) }),
864
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_themes24.IconButton, __spreadProps(__spreadValues({ disabled: !next, onClick: onClickNext }, moveButtonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react_icons3.ChevronRightIcon, __spreadValues({}, iconSize)) })),
872
+ /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_themes18.IconButton, __spreadProps(__spreadValues({ disabled: !next, onClick: onClickNext }, moveButtonProps), { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react_icons3.ChevronRightIcon, __spreadValues({}, iconSize)) })),
865
873
  /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
866
- import_themes24.IconButton,
874
+ import_themes18.IconButton,
867
875
  __spreadProps(__spreadValues({
868
876
  disabled: !doubleNext,
869
877
  onClick: onClickDoubleNext
@@ -880,7 +888,7 @@ function FieldErrorWrapper({
880
888
  children,
881
889
  error
882
890
  }) {
883
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_themes19.Flex, { direction: "column", gap: "1", children: [
891
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_themes22.Flex, { direction: "column", gap: "1", children: [
884
892
  children,
885
893
  error ? /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(Typo, { color: "red", variant: "caption", children: error }) : null
886
894
  ] });
@@ -999,12 +1007,12 @@ function Content6(props) {
999
1007
  }, rest), {
1000
1008
  children: [
1001
1009
  /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1002
- import_themes19.Flex,
1010
+ import_themes22.Flex,
1003
1011
  {
1004
1012
  align: "center",
1005
1013
  px: { initial: "4", md: "6" },
1006
1014
  py: { initial: "2", md: "4" },
1007
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Dialog2.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_themes24.IconButton, { color: "gray", variant: "outline", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ClosePanelArrowIcon, {}) }) })
1015
+ children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(Dialog2.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_themes18.IconButton, { color: "gray", variant: "outline", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(ClosePanelArrowIcon, {}) }) })
1008
1016
  }
1009
1017
  ),
1010
1018
  /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_themes39.Separator, { orientation: "horizontal", size: "4" }),
@@ -1177,7 +1185,7 @@ function BulletText(_a) {
1177
1185
  } = _b, rest = __objRest(_b, [
1178
1186
  "children"
1179
1187
  ]);
1180
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes19.Flex, { gap: "1", ml: "2", children: [
1188
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_themes22.Flex, { gap: "1", ml: "2", children: [
1181
1189
  /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, __spreadProps(__spreadValues({}, rest), { children: "\u2022" })),
1182
1190
  /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(Typo, __spreadProps(__spreadValues({}, rest), { children }))
1183
1191
  ] });