@aivex/ui 1.2.0-dev.6 → 1.2.0-dev.61

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 (1141) hide show
  1. package/README.md +195 -1
  2. package/dist/DESIGN.md +241 -0
  3. package/dist/_virtual/_rolldown/runtime.cjs +1 -0
  4. package/dist/comment.cjs +1 -114
  5. package/dist/comment.js +4 -13623
  6. package/dist/components/Accordion/Accordion.cjs +2 -0
  7. package/dist/components/Accordion/Accordion.cjs.map +1 -0
  8. package/dist/components/Accordion/Accordion.d.cts +111 -0
  9. package/dist/components/Accordion/Accordion.d.ts +111 -0
  10. package/dist/components/Accordion/Accordion.js +75 -0
  11. package/dist/components/Accordion/Accordion.js.map +1 -0
  12. package/dist/components/Accordion/index.d.cts +2 -0
  13. package/dist/components/Accordion/index.d.ts +2 -0
  14. package/dist/components/Autocomplete/Autocomplete.cjs +2 -0
  15. package/dist/components/Autocomplete/Autocomplete.cjs.map +1 -0
  16. package/dist/components/Autocomplete/Autocomplete.d.cts +157 -0
  17. package/dist/components/Autocomplete/Autocomplete.d.ts +157 -0
  18. package/dist/components/Autocomplete/Autocomplete.js +192 -0
  19. package/dist/components/Autocomplete/Autocomplete.js.map +1 -0
  20. package/dist/components/Autocomplete/index.d.cts +2 -0
  21. package/dist/components/Autocomplete/index.d.ts +2 -0
  22. package/dist/components/Avatar/Avatar.cjs +2 -0
  23. package/dist/components/Avatar/Avatar.cjs.map +1 -0
  24. package/dist/components/Avatar/Avatar.d.cts +42 -0
  25. package/dist/components/Avatar/Avatar.d.ts +26 -4
  26. package/dist/components/Avatar/Avatar.js +107 -0
  27. package/dist/components/Avatar/Avatar.js.map +1 -0
  28. package/dist/components/Avatar/index.d.cts +2 -0
  29. package/dist/components/Avatar/index.d.ts +2 -2
  30. package/dist/components/Badge/Badge.cjs +2 -0
  31. package/dist/components/Badge/Badge.cjs.map +1 -0
  32. package/dist/components/Badge/Badge.d.cts +93 -0
  33. package/dist/components/Badge/Badge.d.ts +66 -1
  34. package/dist/components/Badge/Badge.js +232 -0
  35. package/dist/components/Badge/Badge.js.map +1 -0
  36. package/dist/components/Badge/index.d.cts +2 -0
  37. package/dist/components/Badge/index.d.ts +2 -2
  38. package/dist/components/BreadCrumb/BreadCrumb.cjs +2 -0
  39. package/dist/components/BreadCrumb/BreadCrumb.cjs.map +1 -0
  40. package/dist/components/BreadCrumb/BreadCrumb.d.cts +57 -0
  41. package/dist/components/BreadCrumb/BreadCrumb.d.ts +34 -2
  42. package/dist/components/BreadCrumb/BreadCrumb.js +98 -0
  43. package/dist/components/BreadCrumb/BreadCrumb.js.map +1 -0
  44. package/dist/components/BreadCrumb/index.d.cts +2 -0
  45. package/dist/components/BreadCrumb/index.d.ts +2 -2
  46. package/dist/components/Button/Button.cjs +2 -0
  47. package/dist/components/Button/Button.cjs.map +1 -0
  48. package/dist/components/Button/Button.d.cts +51 -0
  49. package/dist/components/Button/Button.d.ts +33 -2
  50. package/dist/components/Button/Button.js +127 -0
  51. package/dist/components/Button/Button.js.map +1 -0
  52. package/dist/components/Button/index.d.cts +2 -0
  53. package/dist/components/Button/index.d.ts +2 -2
  54. package/dist/components/Calendar/Calendar.cjs +2 -0
  55. package/dist/components/Calendar/Calendar.cjs.map +1 -0
  56. package/dist/components/Calendar/Calendar.d.cts +81 -0
  57. package/dist/components/Calendar/Calendar.d.ts +81 -0
  58. package/dist/components/Calendar/Calendar.js +150 -0
  59. package/dist/components/Calendar/Calendar.js.map +1 -0
  60. package/dist/components/Calendar/date.cjs +2 -0
  61. package/dist/components/Calendar/date.cjs.map +1 -0
  62. package/dist/components/Calendar/date.d.cts +35 -0
  63. package/dist/components/Calendar/date.d.ts +35 -0
  64. package/dist/components/Calendar/date.js +54 -0
  65. package/dist/components/Calendar/date.js.map +1 -0
  66. package/dist/components/Calendar/index.d.cts +2 -0
  67. package/dist/components/Calendar/index.d.ts +2 -0
  68. package/dist/components/Card/Card.cjs +2 -0
  69. package/dist/components/Card/Card.cjs.map +1 -0
  70. package/dist/components/Card/Card.d.cts +47 -0
  71. package/dist/components/Card/Card.d.ts +38 -6
  72. package/dist/components/Card/Card.js +33 -0
  73. package/dist/components/Card/Card.js.map +1 -0
  74. package/dist/components/Card/index.d.cts +2 -0
  75. package/dist/components/Card/index.d.ts +2 -2
  76. package/dist/components/Checkbox/Checkbox.cjs +2 -0
  77. package/dist/components/Checkbox/Checkbox.cjs.map +1 -0
  78. package/dist/components/Checkbox/Checkbox.d.cts +36 -0
  79. package/dist/components/Checkbox/Checkbox.d.ts +30 -7
  80. package/dist/components/Checkbox/Checkbox.js +49 -0
  81. package/dist/components/Checkbox/Checkbox.js.map +1 -0
  82. package/dist/components/Checkbox/ChipsCheckbox.cjs +2 -0
  83. package/dist/components/Checkbox/ChipsCheckbox.cjs.map +1 -0
  84. package/dist/components/Checkbox/ChipsCheckbox.d.cts +26 -0
  85. package/dist/components/Checkbox/ChipsCheckbox.d.ts +24 -5
  86. package/dist/components/Checkbox/ChipsCheckbox.js +27 -0
  87. package/dist/components/Checkbox/ChipsCheckbox.js.map +1 -0
  88. package/dist/components/Checkbox/index.d.cts +4 -0
  89. package/dist/components/Checkbox/index.d.ts +4 -4
  90. package/dist/components/Coachmark/Coachmark.cjs +2 -0
  91. package/dist/components/Coachmark/Coachmark.cjs.map +1 -0
  92. package/dist/components/Coachmark/Coachmark.d.cts +92 -0
  93. package/dist/components/Coachmark/Coachmark.d.ts +58 -20
  94. package/dist/components/Coachmark/Coachmark.js +110 -0
  95. package/dist/components/Coachmark/Coachmark.js.map +1 -0
  96. package/dist/components/Coachmark/index.d.cts +2 -0
  97. package/dist/components/Coachmark/index.d.ts +2 -2
  98. package/dist/components/Comment/CommentInput.cjs +2 -0
  99. package/dist/components/Comment/CommentInput.cjs.map +1 -0
  100. package/dist/components/Comment/CommentInput.d.cts +75 -0
  101. package/dist/components/Comment/CommentInput.d.ts +51 -6
  102. package/dist/components/Comment/CommentInput.js +76 -0
  103. package/dist/components/Comment/CommentInput.js.map +1 -0
  104. package/dist/components/Comment/CommentPin.cjs +2 -0
  105. package/dist/components/Comment/CommentPin.cjs.map +1 -0
  106. package/dist/components/Comment/CommentPin.d.cts +48 -0
  107. package/dist/components/Comment/CommentPin.d.ts +35 -4
  108. package/dist/components/Comment/CommentPin.js +40 -0
  109. package/dist/components/Comment/CommentPin.js.map +1 -0
  110. package/dist/components/Comment/MentionInput.cjs +2 -0
  111. package/dist/components/Comment/MentionInput.cjs.map +1 -0
  112. package/dist/components/Comment/MentionInput.d.cts +45 -0
  113. package/dist/components/Comment/MentionInput.d.ts +19 -4
  114. package/dist/components/Comment/MentionInput.js +93 -0
  115. package/dist/components/Comment/MentionInput.js.map +1 -0
  116. package/dist/components/Comment/MentionList.cjs +2 -0
  117. package/dist/components/Comment/MentionList.cjs.map +1 -0
  118. package/dist/components/Comment/MentionList.d.cts +19 -0
  119. package/dist/components/Comment/MentionList.d.ts +9 -4
  120. package/dist/components/Comment/MentionList.js +97 -0
  121. package/dist/components/Comment/MentionList.js.map +1 -0
  122. package/dist/components/Comment/index.d.cts +4 -0
  123. package/dist/components/Comment/index.d.ts +4 -4
  124. package/dist/components/Comment/mentionContent.cjs +5 -0
  125. package/dist/components/Comment/mentionContent.cjs.map +1 -0
  126. package/dist/components/Comment/mentionContent.d.cts +5 -0
  127. package/dist/components/Comment/mentionContent.d.ts +5 -0
  128. package/dist/components/Comment/mentionContent.js +40 -0
  129. package/dist/components/Comment/mentionContent.js.map +1 -0
  130. package/dist/components/Comment/types.d.cts +16 -0
  131. package/dist/components/Comment/types.d.ts +6 -2
  132. package/dist/components/Comment/useMentionSuggestion.cjs +2 -0
  133. package/dist/components/Comment/useMentionSuggestion.cjs.map +1 -0
  134. package/dist/components/Comment/useMentionSuggestion.d.cts +19 -0
  135. package/dist/components/Comment/useMentionSuggestion.d.ts +6 -2
  136. package/dist/components/Comment/useMentionSuggestion.js +78 -0
  137. package/dist/components/Comment/useMentionSuggestion.js.map +1 -0
  138. package/dist/components/ContextMenu/ContextMenu.cjs +2 -0
  139. package/dist/components/ContextMenu/ContextMenu.cjs.map +1 -0
  140. package/dist/components/ContextMenu/ContextMenu.d.cts +72 -0
  141. package/dist/components/ContextMenu/ContextMenu.d.ts +72 -0
  142. package/dist/components/ContextMenu/ContextMenu.js +56 -0
  143. package/dist/components/ContextMenu/ContextMenu.js.map +1 -0
  144. package/dist/components/ContextMenu/index.d.cts +2 -0
  145. package/dist/components/ContextMenu/index.d.ts +2 -0
  146. package/dist/components/DataGrid/DataGrid.cjs +2 -0
  147. package/dist/components/DataGrid/DataGrid.cjs.map +1 -0
  148. package/dist/components/DataGrid/DataGrid.d.cts +136 -0
  149. package/dist/components/DataGrid/DataGrid.d.ts +114 -70
  150. package/dist/components/DataGrid/DataGrid.js +188 -0
  151. package/dist/components/DataGrid/DataGrid.js.map +1 -0
  152. package/dist/components/DataGrid/DataGridColumnSettings.cjs +2 -0
  153. package/dist/components/DataGrid/DataGridColumnSettings.cjs.map +1 -0
  154. package/dist/components/DataGrid/DataGridColumnSettings.d.cts +41 -0
  155. package/dist/components/DataGrid/DataGridColumnSettings.d.ts +41 -0
  156. package/dist/components/DataGrid/DataGridColumnSettings.js +199 -0
  157. package/dist/components/DataGrid/DataGridColumnSettings.js.map +1 -0
  158. package/dist/components/DataGrid/DataGridPrimitives.cjs +2 -0
  159. package/dist/components/DataGrid/DataGridPrimitives.cjs.map +1 -0
  160. package/dist/components/DataGrid/DataGridPrimitives.d.cts +165 -0
  161. package/dist/components/DataGrid/DataGridPrimitives.d.ts +165 -0
  162. package/dist/components/DataGrid/DataGridPrimitives.js +141 -0
  163. package/dist/components/DataGrid/DataGridPrimitives.js.map +1 -0
  164. package/dist/components/DataGrid/DataGridRows.cjs +2 -0
  165. package/dist/components/DataGrid/DataGridRows.cjs.map +1 -0
  166. package/dist/components/DataGrid/DataGridRows.d.cts +66 -0
  167. package/dist/components/DataGrid/DataGridRows.d.ts +66 -0
  168. package/dist/components/DataGrid/DataGridRows.js +108 -0
  169. package/dist/components/DataGrid/DataGridRows.js.map +1 -0
  170. package/dist/components/DataGrid/index.d.cts +8 -0
  171. package/dist/components/DataGrid/index.d.ts +6 -2
  172. package/dist/components/DataGrid/index.js +6 -0
  173. package/dist/components/Dialog/Dialog.cjs +2 -0
  174. package/dist/components/Dialog/Dialog.cjs.map +1 -0
  175. package/dist/components/Dialog/Dialog.d.cts +77 -0
  176. package/dist/components/Dialog/Dialog.d.ts +63 -6
  177. package/dist/components/Dialog/Dialog.js +109 -0
  178. package/dist/components/Dialog/Dialog.js.map +1 -0
  179. package/dist/components/Dialog/index.d.cts +2 -0
  180. package/dist/components/Dialog/index.d.ts +2 -2
  181. package/dist/components/Divider/Divider.cjs +2 -0
  182. package/dist/components/Divider/Divider.cjs.map +1 -0
  183. package/dist/components/Divider/Divider.d.cts +30 -0
  184. package/dist/components/Divider/Divider.d.ts +19 -0
  185. package/dist/components/Divider/Divider.js +58 -0
  186. package/dist/components/Divider/Divider.js.map +1 -0
  187. package/dist/components/Divider/index.d.cts +2 -0
  188. package/dist/components/Divider/index.d.ts +2 -2
  189. package/dist/components/DraggableScroll/DraggableScroll.cjs +2 -0
  190. package/dist/components/DraggableScroll/DraggableScroll.cjs.map +1 -0
  191. package/dist/components/DraggableScroll/DraggableScroll.d.cts +47 -0
  192. package/dist/components/DraggableScroll/DraggableScroll.d.ts +38 -2
  193. package/dist/components/DraggableScroll/DraggableScroll.js +45 -0
  194. package/dist/components/DraggableScroll/DraggableScroll.js.map +1 -0
  195. package/dist/components/DraggableScroll/index.d.cts +2 -0
  196. package/dist/components/DraggableScroll/index.d.ts +2 -2
  197. package/dist/components/Drawer/Drawer.cjs +2 -0
  198. package/dist/components/Drawer/Drawer.cjs.map +1 -0
  199. package/dist/components/Drawer/Drawer.d.cts +161 -0
  200. package/dist/components/Drawer/Drawer.d.ts +161 -0
  201. package/dist/components/Drawer/Drawer.js +110 -0
  202. package/dist/components/Drawer/Drawer.js.map +1 -0
  203. package/dist/components/Drawer/index.d.cts +2 -0
  204. package/dist/components/Drawer/index.d.ts +2 -0
  205. package/dist/components/EmptyState/EmptyState.cjs +2 -0
  206. package/dist/components/EmptyState/EmptyState.cjs.map +1 -0
  207. package/dist/components/EmptyState/EmptyState.d.cts +61 -0
  208. package/dist/components/EmptyState/EmptyState.d.ts +61 -0
  209. package/dist/components/EmptyState/EmptyState.js +50 -0
  210. package/dist/components/EmptyState/EmptyState.js.map +1 -0
  211. package/dist/components/EmptyState/index.d.cts +2 -0
  212. package/dist/components/EmptyState/index.d.ts +2 -0
  213. package/dist/components/Field/Field.cjs +2 -0
  214. package/dist/components/Field/Field.cjs.map +1 -0
  215. package/dist/components/Field/Field.d.cts +111 -0
  216. package/dist/components/Field/Field.d.ts +85 -20
  217. package/dist/components/Field/Field.js +78 -0
  218. package/dist/components/Field/Field.js.map +1 -0
  219. package/dist/components/Field/FieldStateContext.cjs +2 -0
  220. package/dist/components/Field/FieldStateContext.cjs.map +1 -0
  221. package/dist/components/Field/FieldStateContext.d.cts +12 -0
  222. package/dist/components/Field/FieldStateContext.d.ts +12 -0
  223. package/dist/components/Field/FieldStateContext.js +14 -0
  224. package/dist/components/Field/FieldStateContext.js.map +1 -0
  225. package/dist/components/Field/index.d.cts +1 -0
  226. package/dist/components/Field/index.d.ts +1 -1
  227. package/dist/components/FilterModal/FilterModal.cjs +2 -0
  228. package/dist/components/FilterModal/FilterModal.cjs.map +1 -0
  229. package/dist/components/FilterModal/FilterModal.d.cts +83 -0
  230. package/dist/components/FilterModal/FilterModal.d.ts +52 -1
  231. package/dist/components/FilterModal/FilterModal.js +120 -0
  232. package/dist/components/FilterModal/FilterModal.js.map +1 -0
  233. package/dist/components/FilterModal/index.d.cts +2 -0
  234. package/dist/components/FilterModal/index.d.ts +2 -2
  235. package/dist/components/HoverCard/HoverCard.cjs +2 -0
  236. package/dist/components/HoverCard/HoverCard.cjs.map +1 -0
  237. package/dist/components/HoverCard/HoverCard.d.cts +61 -0
  238. package/dist/components/HoverCard/HoverCard.d.ts +61 -0
  239. package/dist/components/HoverCard/HoverCard.js +44 -0
  240. package/dist/components/HoverCard/HoverCard.js.map +1 -0
  241. package/dist/components/HoverCard/index.d.cts +2 -0
  242. package/dist/components/HoverCard/index.d.ts +2 -0
  243. package/dist/components/Icon/index.cjs +2 -0
  244. package/dist/components/Icon/index.cjs.map +1 -0
  245. package/dist/components/Icon/index.d.cts +2105 -0
  246. package/dist/components/Icon/index.d.ts +2093 -275
  247. package/dist/components/Icon/index.js +4490 -0
  248. package/dist/components/Icon/index.js.map +1 -0
  249. package/dist/components/Icon/svgA11y.cjs +2 -0
  250. package/dist/components/Icon/svgA11y.cjs.map +1 -0
  251. package/dist/components/Icon/svgA11y.d.cts +10 -0
  252. package/dist/components/Icon/svgA11y.d.ts +10 -0
  253. package/dist/components/Icon/svgA11y.js +9 -0
  254. package/dist/components/Icon/svgA11y.js.map +1 -0
  255. package/dist/components/Icon/uniqueSvgIds.cjs +2 -0
  256. package/dist/components/Icon/uniqueSvgIds.cjs.map +1 -0
  257. package/dist/components/Icon/uniqueSvgIds.d.cts +8 -0
  258. package/dist/components/Icon/uniqueSvgIds.d.ts +8 -0
  259. package/dist/components/Icon/uniqueSvgIds.js +42 -0
  260. package/dist/components/Icon/uniqueSvgIds.js.map +1 -0
  261. package/dist/components/IconButton/IconButton.cjs +2 -0
  262. package/dist/components/IconButton/IconButton.cjs.map +1 -0
  263. package/dist/components/IconButton/IconButton.d.cts +46 -0
  264. package/dist/components/IconButton/IconButton.d.ts +33 -4
  265. package/dist/components/IconButton/IconButton.js +74 -0
  266. package/dist/components/IconButton/IconButton.js.map +1 -0
  267. package/dist/components/IconButton/index.d.cts +2 -0
  268. package/dist/components/IconButton/index.d.ts +2 -2
  269. package/dist/components/Illustration/Illustration.cjs +2 -0
  270. package/dist/components/Illustration/Illustration.cjs.map +1 -0
  271. package/dist/components/Illustration/Illustration.d.cts +37 -0
  272. package/dist/components/Illustration/Illustration.d.ts +37 -0
  273. package/dist/components/Illustration/Illustration.js +40 -0
  274. package/dist/components/Illustration/Illustration.js.map +1 -0
  275. package/dist/components/Illustration/assets/box-dark.webp.cjs +2 -0
  276. package/dist/components/Illustration/assets/box-dark.webp.cjs.map +1 -0
  277. package/dist/components/Illustration/assets/box-dark.webp.js +7 -0
  278. package/dist/components/Illustration/assets/box-dark.webp.js.map +1 -0
  279. package/dist/components/Illustration/assets/box-light.webp.cjs +2 -0
  280. package/dist/components/Illustration/assets/box-light.webp.cjs.map +1 -0
  281. package/dist/components/Illustration/assets/box-light.webp.js +7 -0
  282. package/dist/components/Illustration/assets/box-light.webp.js.map +1 -0
  283. package/dist/components/Illustration/assets/equipment-dark.webp.cjs +2 -0
  284. package/dist/components/Illustration/assets/equipment-dark.webp.cjs.map +1 -0
  285. package/dist/components/Illustration/assets/equipment-dark.webp.js +7 -0
  286. package/dist/components/Illustration/assets/equipment-dark.webp.js.map +1 -0
  287. package/dist/components/Illustration/assets/equipment-light.webp.cjs +2 -0
  288. package/dist/components/Illustration/assets/equipment-light.webp.cjs.map +1 -0
  289. package/dist/components/Illustration/assets/equipment-light.webp.js +7 -0
  290. package/dist/components/Illustration/assets/equipment-light.webp.js.map +1 -0
  291. package/dist/components/Illustration/assets/failed-dark.webp.cjs +2 -0
  292. package/dist/components/Illustration/assets/failed-dark.webp.cjs.map +1 -0
  293. package/dist/components/Illustration/assets/failed-dark.webp.js +7 -0
  294. package/dist/components/Illustration/assets/failed-dark.webp.js.map +1 -0
  295. package/dist/components/Illustration/assets/failed-light.webp.cjs +2 -0
  296. package/dist/components/Illustration/assets/failed-light.webp.cjs.map +1 -0
  297. package/dist/components/Illustration/assets/failed-light.webp.js +7 -0
  298. package/dist/components/Illustration/assets/failed-light.webp.js.map +1 -0
  299. package/dist/components/Illustration/assets/file-dark.webp.cjs +2 -0
  300. package/dist/components/Illustration/assets/file-dark.webp.cjs.map +1 -0
  301. package/dist/components/Illustration/assets/file-dark.webp.js +7 -0
  302. package/dist/components/Illustration/assets/file-dark.webp.js.map +1 -0
  303. package/dist/components/Illustration/assets/file-light.webp.cjs +2 -0
  304. package/dist/components/Illustration/assets/file-light.webp.cjs.map +1 -0
  305. package/dist/components/Illustration/assets/file-light.webp.js +7 -0
  306. package/dist/components/Illustration/assets/file-light.webp.js.map +1 -0
  307. package/dist/components/Illustration/assets/images-dark.webp.cjs +2 -0
  308. package/dist/components/Illustration/assets/images-dark.webp.cjs.map +1 -0
  309. package/dist/components/Illustration/assets/images-dark.webp.js +7 -0
  310. package/dist/components/Illustration/assets/images-dark.webp.js.map +1 -0
  311. package/dist/components/Illustration/assets/images-light.webp.cjs +2 -0
  312. package/dist/components/Illustration/assets/images-light.webp.cjs.map +1 -0
  313. package/dist/components/Illustration/assets/images-light.webp.js +7 -0
  314. package/dist/components/Illustration/assets/images-light.webp.js.map +1 -0
  315. package/dist/components/Illustration/assets/letter-dark.webp.cjs +2 -0
  316. package/dist/components/Illustration/assets/letter-dark.webp.cjs.map +1 -0
  317. package/dist/components/Illustration/assets/letter-dark.webp.js +7 -0
  318. package/dist/components/Illustration/assets/letter-dark.webp.js.map +1 -0
  319. package/dist/components/Illustration/assets/letter-light.webp.cjs +2 -0
  320. package/dist/components/Illustration/assets/letter-light.webp.cjs.map +1 -0
  321. package/dist/components/Illustration/assets/letter-light.webp.js +7 -0
  322. package/dist/components/Illustration/assets/letter-light.webp.js.map +1 -0
  323. package/dist/components/Illustration/assets/message-dark.webp.cjs +2 -0
  324. package/dist/components/Illustration/assets/message-dark.webp.cjs.map +1 -0
  325. package/dist/components/Illustration/assets/message-dark.webp.js +7 -0
  326. package/dist/components/Illustration/assets/message-dark.webp.js.map +1 -0
  327. package/dist/components/Illustration/assets/message-light.webp.cjs +2 -0
  328. package/dist/components/Illustration/assets/message-light.webp.cjs.map +1 -0
  329. package/dist/components/Illustration/assets/message-light.webp.js +7 -0
  330. package/dist/components/Illustration/assets/message-light.webp.js.map +1 -0
  331. package/dist/components/Illustration/assets/network-dark.webp.cjs +2 -0
  332. package/dist/components/Illustration/assets/network-dark.webp.cjs.map +1 -0
  333. package/dist/components/Illustration/assets/network-dark.webp.js +7 -0
  334. package/dist/components/Illustration/assets/network-dark.webp.js.map +1 -0
  335. package/dist/components/Illustration/assets/network-light.webp.cjs +2 -0
  336. package/dist/components/Illustration/assets/network-light.webp.cjs.map +1 -0
  337. package/dist/components/Illustration/assets/network-light.webp.js +7 -0
  338. package/dist/components/Illustration/assets/network-light.webp.js.map +1 -0
  339. package/dist/components/Illustration/assets/no-data-dark.webp.cjs +2 -0
  340. package/dist/components/Illustration/assets/no-data-dark.webp.cjs.map +1 -0
  341. package/dist/components/Illustration/assets/no-data-dark.webp.js +7 -0
  342. package/dist/components/Illustration/assets/no-data-dark.webp.js.map +1 -0
  343. package/dist/components/Illustration/assets/no-data-light.webp.cjs +2 -0
  344. package/dist/components/Illustration/assets/no-data-light.webp.cjs.map +1 -0
  345. package/dist/components/Illustration/assets/no-data-light.webp.js +7 -0
  346. package/dist/components/Illustration/assets/no-data-light.webp.js.map +1 -0
  347. package/dist/components/Illustration/assets/paper-dark.webp.cjs +2 -0
  348. package/dist/components/Illustration/assets/paper-dark.webp.cjs.map +1 -0
  349. package/dist/components/Illustration/assets/paper-dark.webp.js +7 -0
  350. package/dist/components/Illustration/assets/paper-dark.webp.js.map +1 -0
  351. package/dist/components/Illustration/assets/paper-light.webp.cjs +2 -0
  352. package/dist/components/Illustration/assets/paper-light.webp.cjs.map +1 -0
  353. package/dist/components/Illustration/assets/paper-light.webp.js +7 -0
  354. package/dist/components/Illustration/assets/paper-light.webp.js.map +1 -0
  355. package/dist/components/Illustration/assets/success-dark.webp.cjs +2 -0
  356. package/dist/components/Illustration/assets/success-dark.webp.cjs.map +1 -0
  357. package/dist/components/Illustration/assets/success-dark.webp.js +7 -0
  358. package/dist/components/Illustration/assets/success-dark.webp.js.map +1 -0
  359. package/dist/components/Illustration/assets/success-light.webp.cjs +2 -0
  360. package/dist/components/Illustration/assets/success-light.webp.cjs.map +1 -0
  361. package/dist/components/Illustration/assets/success-light.webp.js +7 -0
  362. package/dist/components/Illustration/assets/success-light.webp.js.map +1 -0
  363. package/dist/components/Illustration/assets/warning-dark.webp.cjs +2 -0
  364. package/dist/components/Illustration/assets/warning-dark.webp.cjs.map +1 -0
  365. package/dist/components/Illustration/assets/warning-dark.webp.js +7 -0
  366. package/dist/components/Illustration/assets/warning-dark.webp.js.map +1 -0
  367. package/dist/components/Illustration/assets/warning-light.webp.cjs +2 -0
  368. package/dist/components/Illustration/assets/warning-light.webp.cjs.map +1 -0
  369. package/dist/components/Illustration/assets/warning-light.webp.js +7 -0
  370. package/dist/components/Illustration/assets/warning-light.webp.js.map +1 -0
  371. package/dist/components/Illustration/illustrations.cjs +2 -0
  372. package/dist/components/Illustration/illustrations.cjs.map +1 -0
  373. package/dist/components/Illustration/illustrations.d.cts +81 -0
  374. package/dist/components/Illustration/illustrations.d.ts +81 -0
  375. package/dist/components/Illustration/illustrations.js +104 -0
  376. package/dist/components/Illustration/illustrations.js.map +1 -0
  377. package/dist/components/Illustration/index.d.cts +1 -0
  378. package/dist/components/Illustration/index.d.ts +1 -0
  379. package/dist/components/InputBase/InputBase.cjs +2 -0
  380. package/dist/components/InputBase/InputBase.cjs.map +1 -0
  381. package/dist/components/InputBase/InputBase.d.cts +59 -0
  382. package/dist/components/InputBase/InputBase.d.ts +35 -7
  383. package/dist/components/InputBase/InputBase.js +87 -0
  384. package/dist/components/InputBase/InputBase.js.map +1 -0
  385. package/dist/components/InputBase/index.d.cts +1 -0
  386. package/dist/components/InputBase/index.d.ts +1 -1
  387. package/dist/components/InputBase/useInputState.cjs +2 -0
  388. package/dist/components/InputBase/useInputState.cjs.map +1 -0
  389. package/dist/components/InputBase/useInputState.d.cts +19 -0
  390. package/dist/components/InputBase/useInputState.d.ts +19 -0
  391. package/dist/components/InputBase/useInputState.js +25 -0
  392. package/dist/components/InputBase/useInputState.js.map +1 -0
  393. package/dist/components/InteractionLayer/InteractionLayer.cjs +2 -0
  394. package/dist/components/InteractionLayer/InteractionLayer.cjs.map +1 -0
  395. package/dist/components/InteractionLayer/InteractionLayer.d.cts +43 -0
  396. package/dist/components/InteractionLayer/InteractionLayer.d.ts +34 -0
  397. package/dist/components/InteractionLayer/InteractionLayer.js +17 -0
  398. package/dist/components/InteractionLayer/InteractionLayer.js.map +1 -0
  399. package/dist/components/InteractionLayer/index.d.cts +1 -0
  400. package/dist/components/InteractionLayer/index.d.ts +1 -1
  401. package/dist/components/Logo/index.cjs +2 -0
  402. package/dist/components/Logo/index.cjs.map +1 -0
  403. package/dist/components/Logo/index.d.cts +92 -0
  404. package/dist/components/Logo/index.d.ts +88 -13
  405. package/dist/components/Logo/index.js +1949 -0
  406. package/dist/components/Logo/index.js.map +1 -0
  407. package/dist/components/Menu/Menu.cjs +2 -0
  408. package/dist/components/Menu/Menu.cjs.map +1 -0
  409. package/dist/components/Menu/Menu.d.cts +183 -0
  410. package/dist/components/Menu/Menu.d.ts +126 -27
  411. package/dist/components/Menu/Menu.js +216 -0
  412. package/dist/components/Menu/Menu.js.map +1 -0
  413. package/dist/components/Menu/index.d.cts +2 -0
  414. package/dist/components/Menu/index.d.ts +2 -2
  415. package/dist/components/Messagebox/Messagebox.cjs +2 -0
  416. package/dist/components/Messagebox/Messagebox.cjs.map +1 -0
  417. package/dist/components/Messagebox/Messagebox.d.cts +50 -0
  418. package/dist/components/Messagebox/Messagebox.d.ts +39 -3
  419. package/dist/components/Messagebox/Messagebox.js +84 -0
  420. package/dist/components/Messagebox/Messagebox.js.map +1 -0
  421. package/dist/components/Messagebox/index.d.cts +2 -0
  422. package/dist/components/Messagebox/index.d.ts +2 -2
  423. package/dist/components/Modal/Modal.cjs +2 -0
  424. package/dist/components/Modal/Modal.cjs.map +1 -0
  425. package/dist/components/Modal/Modal.d.cts +161 -0
  426. package/dist/components/Modal/Modal.d.ts +131 -7
  427. package/dist/components/Modal/Modal.js +195 -0
  428. package/dist/components/Modal/Modal.js.map +1 -0
  429. package/dist/components/Modal/ModalBase.cjs +2 -0
  430. package/dist/components/Modal/ModalBase.cjs.map +1 -0
  431. package/dist/components/Modal/ModalBase.d.cts +80 -0
  432. package/dist/components/Modal/ModalBase.d.ts +80 -0
  433. package/dist/components/Modal/ModalBase.js +44 -0
  434. package/dist/components/Modal/ModalBase.js.map +1 -0
  435. package/dist/components/Modal/index.d.cts +4 -0
  436. package/dist/components/Modal/index.d.ts +4 -2
  437. package/dist/components/Nav/Nav.cjs +2 -0
  438. package/dist/components/Nav/Nav.cjs.map +1 -0
  439. package/dist/components/Nav/Nav.d.cts +69 -0
  440. package/dist/components/Nav/Nav.d.ts +46 -0
  441. package/dist/components/Nav/Nav.js +73 -0
  442. package/dist/components/Nav/Nav.js.map +1 -0
  443. package/dist/components/Nav/index.d.cts +2 -0
  444. package/dist/components/Nav/index.d.ts +2 -2
  445. package/dist/components/NumberField/NumberField.cjs +2 -0
  446. package/dist/components/NumberField/NumberField.cjs.map +1 -0
  447. package/dist/components/NumberField/NumberField.d.cts +79 -0
  448. package/dist/components/NumberField/NumberField.d.ts +79 -0
  449. package/dist/components/NumberField/NumberField.js +65 -0
  450. package/dist/components/NumberField/NumberField.js.map +1 -0
  451. package/dist/components/NumberField/index.d.cts +2 -0
  452. package/dist/components/NumberField/index.d.ts +2 -0
  453. package/dist/components/Overlay/Overlay.cjs +2 -0
  454. package/dist/components/Overlay/Overlay.cjs.map +1 -0
  455. package/dist/components/Overlay/Overlay.d.cts +36 -0
  456. package/dist/components/Overlay/Overlay.d.ts +30 -4
  457. package/dist/components/Overlay/Overlay.js +24 -0
  458. package/dist/components/Overlay/Overlay.js.map +1 -0
  459. package/dist/components/Overlay/index.d.cts +2 -0
  460. package/dist/components/Overlay/index.d.ts +2 -2
  461. package/dist/components/Pagination/Pagination.cjs +2 -0
  462. package/dist/components/Pagination/Pagination.cjs.map +1 -0
  463. package/dist/components/Pagination/Pagination.d.cts +68 -0
  464. package/dist/components/Pagination/Pagination.d.ts +45 -2
  465. package/dist/components/Pagination/Pagination.js +127 -0
  466. package/dist/components/Pagination/Pagination.js.map +1 -0
  467. package/dist/components/Pagination/index.d.cts +2 -0
  468. package/dist/components/Pagination/index.d.ts +2 -2
  469. package/dist/components/Panel/Panel.cjs +2 -0
  470. package/dist/components/Panel/Panel.cjs.map +1 -0
  471. package/dist/components/Panel/Panel.d.cts +124 -0
  472. package/dist/components/Panel/Panel.d.ts +119 -8
  473. package/dist/components/Panel/Panel.js +92 -0
  474. package/dist/components/Panel/Panel.js.map +1 -0
  475. package/dist/components/Panel/index.d.cts +2 -0
  476. package/dist/components/Panel/index.d.ts +2 -2
  477. package/dist/components/Popover/Popover.cjs +2 -0
  478. package/dist/components/Popover/Popover.cjs.map +1 -0
  479. package/dist/components/Popover/Popover.d.cts +105 -0
  480. package/dist/components/Popover/Popover.d.ts +72 -14
  481. package/dist/components/Popover/Popover.js +79 -0
  482. package/dist/components/Popover/Popover.js.map +1 -0
  483. package/dist/components/Popover/index.d.cts +2 -0
  484. package/dist/components/Popover/index.d.ts +2 -2
  485. package/dist/components/ProgressBar/ProgressBar.cjs +2 -0
  486. package/dist/components/ProgressBar/ProgressBar.cjs.map +1 -0
  487. package/dist/components/ProgressBar/ProgressBar.d.cts +45 -0
  488. package/dist/components/ProgressBar/ProgressBar.d.ts +32 -0
  489. package/dist/components/ProgressBar/ProgressBar.js +41 -0
  490. package/dist/components/ProgressBar/ProgressBar.js.map +1 -0
  491. package/dist/components/ProgressBar/index.d.cts +2 -0
  492. package/dist/components/ProgressBar/index.d.ts +2 -2
  493. package/dist/components/Radio/Radio.cjs +2 -0
  494. package/dist/components/Radio/Radio.cjs.map +1 -0
  495. package/dist/components/Radio/Radio.d.cts +61 -0
  496. package/dist/components/Radio/Radio.d.ts +56 -6
  497. package/dist/components/Radio/Radio.js +62 -0
  498. package/dist/components/Radio/Radio.js.map +1 -0
  499. package/dist/components/Radio/index.d.cts +2 -0
  500. package/dist/components/Radio/index.d.ts +2 -2
  501. package/dist/components/ScrollArea/ScrollArea.cjs +2 -0
  502. package/dist/components/ScrollArea/ScrollArea.cjs.map +1 -0
  503. package/dist/components/ScrollArea/ScrollArea.d.cts +59 -0
  504. package/dist/components/ScrollArea/ScrollArea.d.ts +51 -6
  505. package/dist/components/ScrollArea/ScrollArea.js +62 -0
  506. package/dist/components/ScrollArea/ScrollArea.js.map +1 -0
  507. package/dist/components/ScrollArea/index.d.cts +2 -0
  508. package/dist/components/ScrollArea/index.d.ts +2 -2
  509. package/dist/components/Segmented/Segmented.cjs +2 -0
  510. package/dist/components/Segmented/Segmented.cjs.map +1 -0
  511. package/dist/components/Segmented/Segmented.d.cts +56 -0
  512. package/dist/components/Segmented/Segmented.d.ts +45 -4
  513. package/dist/components/Segmented/Segmented.js +61 -0
  514. package/dist/components/Segmented/Segmented.js.map +1 -0
  515. package/dist/components/Segmented/index.d.cts +2 -0
  516. package/dist/components/Segmented/index.d.ts +2 -2
  517. package/dist/components/SelectBox/SelectBox.cjs +2 -0
  518. package/dist/components/SelectBox/SelectBox.cjs.map +1 -0
  519. package/dist/components/SelectBox/SelectBox.d.cts +93 -0
  520. package/dist/components/SelectBox/SelectBox.d.ts +62 -5
  521. package/dist/components/SelectBox/SelectBox.js +85 -0
  522. package/dist/components/SelectBox/SelectBox.js.map +1 -0
  523. package/dist/components/SelectBox/index.d.cts +2 -0
  524. package/dist/components/SelectBox/index.d.ts +2 -2
  525. package/dist/components/SelectButton/SelectButton.cjs +2 -0
  526. package/dist/components/SelectButton/SelectButton.cjs.map +1 -0
  527. package/dist/components/SelectButton/SelectButton.d.cts +57 -0
  528. package/dist/components/SelectButton/SelectButton.d.ts +57 -0
  529. package/dist/components/SelectButton/SelectButton.js +43 -0
  530. package/dist/components/SelectButton/SelectButton.js.map +1 -0
  531. package/dist/components/SelectButton/index.d.cts +2 -0
  532. package/dist/components/SelectButton/index.d.ts +2 -0
  533. package/dist/components/ShapeEditor/ShapeEditor.cjs +2 -0
  534. package/dist/components/ShapeEditor/ShapeEditor.cjs.map +1 -0
  535. package/dist/components/ShapeEditor/ShapeEditor.d.cts +40 -0
  536. package/dist/components/ShapeEditor/ShapeEditor.d.ts +38 -7
  537. package/dist/components/ShapeEditor/ShapeEditor.js +564 -0
  538. package/dist/components/ShapeEditor/ShapeEditor.js.map +1 -0
  539. package/dist/components/ShapeEditor/ShapeViewer.cjs +2 -0
  540. package/dist/components/ShapeEditor/ShapeViewer.cjs.map +1 -0
  541. package/dist/components/ShapeEditor/ShapeViewer.d.cts +92 -0
  542. package/dist/components/ShapeEditor/ShapeViewer.d.ts +57 -7
  543. package/dist/components/ShapeEditor/ShapeViewer.js +303 -0
  544. package/dist/components/ShapeEditor/ShapeViewer.js.map +1 -0
  545. package/dist/components/ShapeEditor/_components/AssistantOverlay.cjs +2 -0
  546. package/dist/components/ShapeEditor/_components/AssistantOverlay.cjs.map +1 -0
  547. package/dist/components/ShapeEditor/_components/AssistantOverlay.d.cts +17 -0
  548. package/dist/components/ShapeEditor/_components/AssistantOverlay.d.ts +2 -2
  549. package/dist/components/ShapeEditor/_components/AssistantOverlay.js +64 -0
  550. package/dist/components/ShapeEditor/_components/AssistantOverlay.js.map +1 -0
  551. package/dist/components/ShapeEditor/_components/ContextMenu.cjs +2 -0
  552. package/dist/components/ShapeEditor/_components/ContextMenu.cjs.map +1 -0
  553. package/dist/components/ShapeEditor/_components/ContextMenu.d.cts +13 -0
  554. package/dist/components/ShapeEditor/_components/ContextMenu.d.ts +3 -3
  555. package/dist/components/ShapeEditor/_components/ContextMenu.js +67 -0
  556. package/dist/components/ShapeEditor/_components/ContextMenu.js.map +1 -0
  557. package/dist/components/ShapeEditor/_components/CursorGuide.cjs +2 -0
  558. package/dist/components/ShapeEditor/_components/CursorGuide.cjs.map +1 -0
  559. package/dist/components/ShapeEditor/_components/CursorGuide.d.cts +8 -0
  560. package/dist/components/ShapeEditor/_components/CursorGuide.js +56 -0
  561. package/dist/components/ShapeEditor/_components/CursorGuide.js.map +1 -0
  562. package/dist/components/ShapeEditor/_components/ImageStateOverlay.cjs +2 -0
  563. package/dist/components/ShapeEditor/_components/ImageStateOverlay.cjs.map +1 -0
  564. package/dist/components/ShapeEditor/_components/ImageStateOverlay.d.cts +17 -0
  565. package/dist/components/ShapeEditor/_components/ImageStateOverlay.d.ts +9 -3
  566. package/dist/components/ShapeEditor/_components/ImageStateOverlay.js +101 -0
  567. package/dist/components/ShapeEditor/_components/ImageStateOverlay.js.map +1 -0
  568. package/dist/components/ShapeEditor/_components/Minimap.cjs +2 -0
  569. package/dist/components/ShapeEditor/_components/Minimap.cjs.map +1 -0
  570. package/dist/components/ShapeEditor/_components/Minimap.d.cts +46 -0
  571. package/dist/components/ShapeEditor/_components/Minimap.d.ts +17 -16
  572. package/dist/components/ShapeEditor/_components/Minimap.js +172 -0
  573. package/dist/components/ShapeEditor/_components/Minimap.js.map +1 -0
  574. package/dist/components/ShapeEditor/_components/MinimapShape.cjs +2 -0
  575. package/dist/components/ShapeEditor/_components/MinimapShape.cjs.map +1 -0
  576. package/dist/components/ShapeEditor/_components/MinimapShape.d.cts +6 -0
  577. package/dist/components/ShapeEditor/_components/MinimapShape.d.ts +3 -3
  578. package/dist/components/ShapeEditor/_components/MinimapShape.js +55 -0
  579. package/dist/components/ShapeEditor/_components/MinimapShape.js.map +1 -0
  580. package/dist/components/ShapeEditor/_components/OverlayMarkers.cjs +2 -0
  581. package/dist/components/ShapeEditor/_components/OverlayMarkers.cjs.map +1 -0
  582. package/dist/components/ShapeEditor/_components/OverlayMarkers.d.cts +16 -0
  583. package/dist/components/ShapeEditor/_components/OverlayMarkers.d.ts +16 -0
  584. package/dist/components/ShapeEditor/_components/OverlayMarkers.js +41 -0
  585. package/dist/components/ShapeEditor/_components/OverlayMarkers.js.map +1 -0
  586. package/dist/components/ShapeEditor/_components/RegionOverlay.cjs +2 -0
  587. package/dist/components/ShapeEditor/_components/RegionOverlay.cjs.map +1 -0
  588. package/dist/components/ShapeEditor/_components/RegionOverlay.d.cts +21 -0
  589. package/dist/components/ShapeEditor/_components/RegionOverlay.d.ts +1 -1
  590. package/dist/components/ShapeEditor/_components/RegionOverlay.js +59 -0
  591. package/dist/components/ShapeEditor/_components/RegionOverlay.js.map +1 -0
  592. package/dist/components/ShapeEditor/_components/SelectionInfo.cjs +2 -0
  593. package/dist/components/ShapeEditor/_components/SelectionInfo.cjs.map +1 -0
  594. package/dist/components/ShapeEditor/_components/SelectionInfo.d.cts +20 -0
  595. package/dist/components/ShapeEditor/_components/SelectionInfo.d.ts +10 -3
  596. package/dist/components/ShapeEditor/_components/SelectionInfo.js +115 -0
  597. package/dist/components/ShapeEditor/_components/SelectionInfo.js.map +1 -0
  598. package/dist/components/ShapeEditor/_components/SettingsPanel.cjs +2 -0
  599. package/dist/components/ShapeEditor/_components/SettingsPanel.cjs.map +1 -0
  600. package/dist/components/ShapeEditor/_components/SettingsPanel.d.cts +28 -0
  601. package/dist/components/ShapeEditor/_components/SettingsPanel.d.ts +18 -5
  602. package/dist/components/ShapeEditor/_components/SettingsPanel.js +167 -0
  603. package/dist/components/ShapeEditor/_components/SettingsPanel.js.map +1 -0
  604. package/dist/components/ShapeEditor/_constants.cjs +2 -0
  605. package/dist/components/ShapeEditor/_constants.cjs.map +1 -0
  606. package/dist/components/ShapeEditor/_constants.d.cts +15 -0
  607. package/dist/components/ShapeEditor/_constants.d.ts +7 -25
  608. package/dist/components/ShapeEditor/_constants.js +7 -0
  609. package/dist/components/ShapeEditor/_constants.js.map +1 -0
  610. package/dist/components/ShapeEditor/_model/brush.cjs +2 -0
  611. package/dist/components/ShapeEditor/_model/brush.cjs.map +1 -0
  612. package/dist/components/ShapeEditor/_model/brush.d.cts +3 -0
  613. package/dist/components/ShapeEditor/_model/brush.d.ts +1 -1
  614. package/dist/components/ShapeEditor/_model/brush.js +27 -0
  615. package/dist/components/ShapeEditor/_model/brush.js.map +1 -0
  616. package/dist/components/ShapeEditor/_model/clipboard.cjs +2 -0
  617. package/dist/components/ShapeEditor/_model/clipboard.cjs.map +1 -0
  618. package/dist/components/ShapeEditor/_model/clipboard.d.cts +22 -0
  619. package/dist/components/ShapeEditor/_model/clipboard.d.ts +22 -0
  620. package/dist/components/ShapeEditor/_model/clipboard.js +85 -0
  621. package/dist/components/ShapeEditor/_model/clipboard.js.map +1 -0
  622. package/dist/components/ShapeEditor/_model/cursors.cjs +2 -0
  623. package/dist/components/ShapeEditor/_model/cursors.cjs.map +1 -0
  624. package/dist/components/ShapeEditor/_model/cursors.d.cts +23 -0
  625. package/dist/components/ShapeEditor/_model/cursors.d.ts +7 -2
  626. package/dist/components/ShapeEditor/_model/cursors.js +52 -0
  627. package/dist/components/ShapeEditor/_model/cursors.js.map +1 -0
  628. package/dist/components/ShapeEditor/_model/geometry.cjs +2 -0
  629. package/dist/components/ShapeEditor/_model/geometry.cjs.map +1 -0
  630. package/dist/components/ShapeEditor/_model/geometry.d.cts +182 -0
  631. package/dist/components/ShapeEditor/_model/geometry.d.ts +54 -2
  632. package/dist/components/ShapeEditor/_model/geometry.js +431 -0
  633. package/dist/components/ShapeEditor/_model/geometry.js.map +1 -0
  634. package/dist/components/ShapeEditor/_model/imageDiagnosis.cjs +2 -0
  635. package/dist/components/ShapeEditor/_model/imageDiagnosis.cjs.map +1 -0
  636. package/dist/components/ShapeEditor/_model/imageDiagnosis.d.cts +38 -0
  637. package/dist/components/ShapeEditor/_model/imageDiagnosis.d.ts +38 -0
  638. package/dist/components/ShapeEditor/_model/imageDiagnosis.js +358 -0
  639. package/dist/components/ShapeEditor/_model/imageDiagnosis.js.map +1 -0
  640. package/dist/components/ShapeEditor/_model/imageLoad.cjs +2 -0
  641. package/dist/components/ShapeEditor/_model/imageLoad.cjs.map +1 -0
  642. package/dist/components/ShapeEditor/_model/imageLoad.d.cts +29 -0
  643. package/dist/components/ShapeEditor/_model/imageLoad.d.ts +29 -0
  644. package/dist/components/ShapeEditor/_model/imageLoad.js +88 -0
  645. package/dist/components/ShapeEditor/_model/imageLoad.js.map +1 -0
  646. package/dist/components/ShapeEditor/_model/imageSignature.cjs +2 -0
  647. package/dist/components/ShapeEditor/_model/imageSignature.cjs.map +1 -0
  648. package/dist/components/ShapeEditor/_model/imageSignature.d.cts +18 -0
  649. package/dist/components/ShapeEditor/_model/imageSignature.d.ts +18 -0
  650. package/dist/components/ShapeEditor/_model/imageSignature.js +196 -0
  651. package/dist/components/ShapeEditor/_model/imageSignature.js.map +1 -0
  652. package/dist/components/ShapeEditor/_model/imageTiles.cjs +2 -0
  653. package/dist/components/ShapeEditor/_model/imageTiles.cjs.map +1 -0
  654. package/dist/components/ShapeEditor/_model/imageTiles.d.cts +11 -0
  655. package/dist/components/ShapeEditor/_model/imageTiles.js +28 -0
  656. package/dist/components/ShapeEditor/_model/imageTiles.js.map +1 -0
  657. package/dist/components/ShapeEditor/_model/keymap.cjs +2 -0
  658. package/dist/components/ShapeEditor/_model/keymap.cjs.map +1 -0
  659. package/dist/components/ShapeEditor/_model/keymap.d.cts +17 -0
  660. package/dist/components/ShapeEditor/_model/keymap.d.ts +2 -0
  661. package/dist/components/ShapeEditor/_model/keymap.js +75 -0
  662. package/dist/components/ShapeEditor/_model/keymap.js.map +1 -0
  663. package/dist/components/ShapeEditor/_model/overlays.cjs +2 -0
  664. package/dist/components/ShapeEditor/_model/overlays.cjs.map +1 -0
  665. package/dist/components/ShapeEditor/_model/overlays.d.cts +108 -0
  666. package/dist/components/ShapeEditor/_model/overlays.d.ts +11 -25
  667. package/dist/components/ShapeEditor/_model/overlays.js +186 -0
  668. package/dist/components/ShapeEditor/_model/overlays.js.map +1 -0
  669. package/dist/components/ShapeEditor/_model/pinIcon.cjs +2 -0
  670. package/dist/components/ShapeEditor/_model/pinIcon.cjs.map +1 -0
  671. package/dist/components/ShapeEditor/_model/pinIcon.d.cts +13 -0
  672. package/dist/components/ShapeEditor/_model/pinIcon.js +10 -0
  673. package/dist/components/ShapeEditor/_model/pinIcon.js.map +1 -0
  674. package/dist/components/ShapeEditor/_model/polygonFill.cjs +2 -0
  675. package/dist/components/ShapeEditor/_model/polygonFill.cjs.map +1 -0
  676. package/dist/components/ShapeEditor/_model/polygonFill.d.cts +2 -0
  677. package/dist/components/ShapeEditor/_model/polygonFill.d.ts +2 -0
  678. package/dist/components/ShapeEditor/_model/polygonFill.js +12 -0
  679. package/dist/components/ShapeEditor/_model/polygonFill.js.map +1 -0
  680. package/dist/components/ShapeEditor/_model/props.d.cts +13 -0
  681. package/dist/components/ShapeEditor/_model/props.d.ts +11 -443
  682. package/dist/components/ShapeEditor/_model/scalarMask.cjs +2 -0
  683. package/dist/components/ShapeEditor/_model/scalarMask.cjs.map +1 -0
  684. package/dist/components/ShapeEditor/_model/scalarMask.d.cts +21 -0
  685. package/dist/components/ShapeEditor/_model/scalarMask.d.ts +1 -1
  686. package/dist/components/ShapeEditor/_model/scalarMask.js +188 -0
  687. package/dist/components/ShapeEditor/_model/scalarMask.js.map +1 -0
  688. package/dist/components/ShapeEditor/_model/shapeHitTest.cjs +2 -0
  689. package/dist/components/ShapeEditor/_model/shapeHitTest.cjs.map +1 -0
  690. package/dist/components/ShapeEditor/_model/shapeHitTest.d.cts +14 -0
  691. package/dist/components/ShapeEditor/_model/shapeHitTest.d.ts +14 -0
  692. package/dist/components/ShapeEditor/_model/shapeHitTest.js +38 -0
  693. package/dist/components/ShapeEditor/_model/shapeHitTest.js.map +1 -0
  694. package/dist/components/ShapeEditor/_model/shapeRenderStyle.cjs +2 -0
  695. package/dist/components/ShapeEditor/_model/shapeRenderStyle.cjs.map +1 -0
  696. package/dist/components/ShapeEditor/_model/shapeRenderStyle.d.cts +16 -0
  697. package/dist/components/ShapeEditor/_model/shapeRenderStyle.d.ts +1 -1
  698. package/dist/components/ShapeEditor/_model/shapeRenderStyle.js +19 -0
  699. package/dist/components/ShapeEditor/_model/shapeRenderStyle.js.map +1 -0
  700. package/dist/components/ShapeEditor/_model/strings.cjs +2 -0
  701. package/dist/components/ShapeEditor/_model/strings.cjs.map +1 -0
  702. package/dist/components/ShapeEditor/_model/strings.d.cts +62 -0
  703. package/dist/components/ShapeEditor/_model/strings.d.ts +10 -1
  704. package/dist/components/ShapeEditor/_model/strings.js +130 -0
  705. package/dist/components/ShapeEditor/_model/strings.js.map +1 -0
  706. package/dist/components/ShapeEditor/_model/tools.cjs +2 -0
  707. package/dist/components/ShapeEditor/_model/tools.cjs.map +1 -0
  708. package/dist/components/ShapeEditor/_model/tools.d.cts +29 -0
  709. package/dist/components/ShapeEditor/_model/tools.d.ts +4 -2
  710. package/dist/components/ShapeEditor/_model/tools.js +19 -0
  711. package/dist/components/ShapeEditor/_model/tools.js.map +1 -0
  712. package/dist/components/ShapeEditor/_model/types/assistant.d.cts +37 -0
  713. package/dist/components/ShapeEditor/_model/types/assistant.d.ts +37 -0
  714. package/dist/components/ShapeEditor/_model/types/handle.d.cts +124 -0
  715. package/dist/components/ShapeEditor/_model/types/handle.d.ts +124 -0
  716. package/dist/components/ShapeEditor/_model/types/props.d.cts +432 -0
  717. package/dist/components/ShapeEditor/_model/types/props.d.ts +432 -0
  718. package/dist/components/ShapeEditor/_model/viewSettings.cjs +2 -0
  719. package/dist/components/ShapeEditor/_model/viewSettings.cjs.map +1 -0
  720. package/dist/components/ShapeEditor/_model/viewSettings.d.cts +73 -0
  721. package/dist/components/ShapeEditor/_model/viewSettings.d.ts +60 -2
  722. package/dist/components/ShapeEditor/_model/viewSettings.js +57 -0
  723. package/dist/components/ShapeEditor/_model/viewSettings.js.map +1 -0
  724. package/dist/components/ShapeEditor/_model/viewerPatch.cjs +2 -0
  725. package/dist/components/ShapeEditor/_model/viewerPatch.cjs.map +1 -0
  726. package/dist/components/ShapeEditor/_model/viewerPatch.d.cts +60 -0
  727. package/dist/components/ShapeEditor/_model/viewerPatch.d.ts +60 -0
  728. package/dist/components/ShapeEditor/_model/viewerPatch.js +57 -0
  729. package/dist/components/ShapeEditor/_model/viewerPatch.js.map +1 -0
  730. package/dist/components/ShapeEditor/_model/viewport.cjs +2 -0
  731. package/dist/components/ShapeEditor/_model/viewport.cjs.map +1 -0
  732. package/dist/components/ShapeEditor/_model/viewport.d.cts +36 -0
  733. package/dist/components/ShapeEditor/_model/viewport.d.ts +10 -2
  734. package/dist/components/ShapeEditor/_model/viewport.js +79 -0
  735. package/dist/components/ShapeEditor/_model/viewport.js.map +1 -0
  736. package/dist/components/ShapeEditor/_renderers/PixiRenderer.cjs +2 -0
  737. package/dist/components/ShapeEditor/_renderers/PixiRenderer.cjs.map +1 -0
  738. package/dist/components/ShapeEditor/_renderers/PixiRenderer.d.cts +121 -0
  739. package/dist/components/ShapeEditor/_renderers/PixiRenderer.d.ts +28 -76
  740. package/dist/components/ShapeEditor/_renderers/PixiRenderer.js +305 -0
  741. package/dist/components/ShapeEditor/_renderers/PixiRenderer.js.map +1 -0
  742. package/dist/components/ShapeEditor/_renderers/imageLayer.cjs +2 -0
  743. package/dist/components/ShapeEditor/_renderers/imageLayer.cjs.map +1 -0
  744. package/dist/components/ShapeEditor/_renderers/imageLayer.d.cts +35 -0
  745. package/dist/components/ShapeEditor/_renderers/imageLayer.d.ts +35 -0
  746. package/dist/components/ShapeEditor/_renderers/imageLayer.js +59 -0
  747. package/dist/components/ShapeEditor/_renderers/imageLayer.js.map +1 -0
  748. package/dist/components/ShapeEditor/_renderers/overlayLayer.cjs +2 -0
  749. package/dist/components/ShapeEditor/_renderers/overlayLayer.cjs.map +1 -0
  750. package/dist/components/ShapeEditor/_renderers/overlayLayer.d.cts +36 -0
  751. package/dist/components/ShapeEditor/_renderers/overlayLayer.d.ts +36 -0
  752. package/dist/components/ShapeEditor/_renderers/overlayLayer.js +65 -0
  753. package/dist/components/ShapeEditor/_renderers/overlayLayer.js.map +1 -0
  754. package/dist/components/ShapeEditor/_renderers/previewLayer.cjs +2 -0
  755. package/dist/components/ShapeEditor/_renderers/previewLayer.cjs.map +1 -0
  756. package/dist/components/ShapeEditor/_renderers/previewLayer.d.cts +34 -0
  757. package/dist/components/ShapeEditor/_renderers/previewLayer.d.ts +34 -0
  758. package/dist/components/ShapeEditor/_renderers/previewLayer.js +112 -0
  759. package/dist/components/ShapeEditor/_renderers/previewLayer.js.map +1 -0
  760. package/dist/components/ShapeEditor/_renderers/shapeLayer.cjs +2 -0
  761. package/dist/components/ShapeEditor/_renderers/shapeLayer.cjs.map +1 -0
  762. package/dist/components/ShapeEditor/_renderers/shapeLayer.d.cts +49 -0
  763. package/dist/components/ShapeEditor/_renderers/shapeLayer.d.ts +49 -0
  764. package/dist/components/ShapeEditor/_renderers/shapeLayer.js +94 -0
  765. package/dist/components/ShapeEditor/_renderers/shapeLayer.js.map +1 -0
  766. package/dist/components/ShapeEditor/_renderers/shapePainter.cjs +2 -0
  767. package/dist/components/ShapeEditor/_renderers/shapePainter.cjs.map +1 -0
  768. package/dist/components/ShapeEditor/_renderers/shapePainter.d.cts +27 -0
  769. package/dist/components/ShapeEditor/_renderers/shapePainter.d.ts +27 -0
  770. package/dist/components/ShapeEditor/_renderers/shapePainter.js +166 -0
  771. package/dist/components/ShapeEditor/_renderers/shapePainter.js.map +1 -0
  772. package/dist/components/ShapeEditor/_renderers/transformDriver.cjs +2 -0
  773. package/dist/components/ShapeEditor/_renderers/transformDriver.cjs.map +1 -0
  774. package/dist/components/ShapeEditor/_renderers/transformDriver.d.cts +55 -0
  775. package/dist/components/ShapeEditor/_renderers/transformDriver.d.ts +55 -0
  776. package/dist/components/ShapeEditor/_renderers/transformDriver.js +94 -0
  777. package/dist/components/ShapeEditor/_renderers/transformDriver.js.map +1 -0
  778. package/dist/components/ShapeEditor/_renderers/transformSession.cjs +2 -0
  779. package/dist/components/ShapeEditor/_renderers/transformSession.cjs.map +1 -0
  780. package/dist/components/ShapeEditor/_renderers/transformSession.d.cts +74 -0
  781. package/dist/components/ShapeEditor/_renderers/transformSession.d.ts +11 -5
  782. package/dist/components/ShapeEditor/_renderers/transformSession.js +135 -0
  783. package/dist/components/ShapeEditor/_renderers/transformSession.js.map +1 -0
  784. package/dist/components/ShapeEditor/_renderers/transformerLayer.cjs +2 -0
  785. package/dist/components/ShapeEditor/_renderers/transformerLayer.cjs.map +1 -0
  786. package/dist/components/ShapeEditor/_renderers/transformerLayer.d.cts +69 -0
  787. package/dist/components/ShapeEditor/_renderers/transformerLayer.d.ts +69 -0
  788. package/dist/components/ShapeEditor/_renderers/transformerLayer.js +248 -0
  789. package/dist/components/ShapeEditor/_renderers/transformerLayer.js.map +1 -0
  790. package/dist/components/ShapeEditor/_renderers/types.d.cts +129 -0
  791. package/dist/components/ShapeEditor/_renderers/types.d.ts +50 -27
  792. package/dist/components/ShapeEditor/_state/buildContextMenuItems.cjs +2 -0
  793. package/dist/components/ShapeEditor/_state/buildContextMenuItems.cjs.map +1 -0
  794. package/dist/components/ShapeEditor/_state/buildContextMenuItems.d.cts +26 -0
  795. package/dist/components/ShapeEditor/_state/buildContextMenuItems.d.ts +26 -0
  796. package/dist/components/ShapeEditor/_state/buildContextMenuItems.js +118 -0
  797. package/dist/components/ShapeEditor/_state/buildContextMenuItems.js.map +1 -0
  798. package/dist/components/ShapeEditor/_state/buildHotkeyActions.cjs +2 -0
  799. package/dist/components/ShapeEditor/_state/buildHotkeyActions.cjs.map +1 -0
  800. package/dist/components/ShapeEditor/_state/buildHotkeyActions.d.cts +42 -0
  801. package/dist/components/ShapeEditor/_state/buildHotkeyActions.d.ts +42 -0
  802. package/dist/components/ShapeEditor/_state/buildHotkeyActions.js +86 -0
  803. package/dist/components/ShapeEditor/_state/buildHotkeyActions.js.map +1 -0
  804. package/dist/components/ShapeEditor/_state/createInteractionController.cjs +2 -0
  805. package/dist/components/ShapeEditor/_state/createInteractionController.cjs.map +1 -0
  806. package/dist/components/ShapeEditor/_state/createInteractionController.d.cts +73 -0
  807. package/dist/components/ShapeEditor/_state/createInteractionController.d.ts +30 -11
  808. package/dist/components/ShapeEditor/_state/createInteractionController.js +398 -0
  809. package/dist/components/ShapeEditor/_state/createInteractionController.js.map +1 -0
  810. package/dist/components/ShapeEditor/_state/drawSessionState.cjs +2 -0
  811. package/dist/components/ShapeEditor/_state/drawSessionState.cjs.map +1 -0
  812. package/dist/components/ShapeEditor/_state/drawSessionState.d.cts +6 -0
  813. package/dist/components/ShapeEditor/_state/drawSessionState.d.ts +2 -2
  814. package/dist/components/ShapeEditor/_state/drawSessionState.js +21 -0
  815. package/dist/components/ShapeEditor/_state/drawSessionState.js.map +1 -0
  816. package/dist/components/ShapeEditor/_state/useAssistant.cjs +2 -0
  817. package/dist/components/ShapeEditor/_state/useAssistant.cjs.map +1 -0
  818. package/dist/components/ShapeEditor/_state/useAssistant.d.cts +49 -0
  819. package/dist/components/ShapeEditor/_state/useAssistant.d.ts +4 -3
  820. package/dist/components/ShapeEditor/_state/useAssistant.js +178 -0
  821. package/dist/components/ShapeEditor/_state/useAssistant.js.map +1 -0
  822. package/dist/components/ShapeEditor/_state/useDrawSession.cjs +2 -0
  823. package/dist/components/ShapeEditor/_state/useDrawSession.cjs.map +1 -0
  824. package/dist/components/ShapeEditor/_state/useDrawSession.d.cts +64 -0
  825. package/dist/components/ShapeEditor/_state/useDrawSession.d.ts +9 -6
  826. package/dist/components/ShapeEditor/_state/useDrawSession.js +372 -0
  827. package/dist/components/ShapeEditor/_state/useDrawSession.js.map +1 -0
  828. package/dist/components/ShapeEditor/_state/useEditorDocument.cjs +2 -0
  829. package/dist/components/ShapeEditor/_state/useEditorDocument.cjs.map +1 -0
  830. package/dist/components/ShapeEditor/_state/useEditorDocument.d.cts +30 -0
  831. package/dist/components/ShapeEditor/_state/useEditorDocument.d.ts +8 -1
  832. package/dist/components/ShapeEditor/_state/useEditorDocument.js +173 -0
  833. package/dist/components/ShapeEditor/_state/useEditorDocument.js.map +1 -0
  834. package/dist/components/ShapeEditor/_state/useEditorHandle.cjs +2 -0
  835. package/dist/components/ShapeEditor/_state/useEditorHandle.cjs.map +1 -0
  836. package/dist/components/ShapeEditor/_state/useEditorHandle.d.cts +34 -0
  837. package/dist/components/ShapeEditor/_state/useEditorHandle.d.ts +34 -0
  838. package/dist/components/ShapeEditor/_state/useEditorHandle.js +95 -0
  839. package/dist/components/ShapeEditor/_state/useEditorHandle.js.map +1 -0
  840. package/dist/components/ShapeEditor/_state/useEditorHotkeys.cjs +2 -0
  841. package/dist/components/ShapeEditor/_state/useEditorHotkeys.cjs.map +1 -0
  842. package/dist/components/ShapeEditor/_state/useEditorHotkeys.d.cts +25 -0
  843. package/dist/components/ShapeEditor/_state/useEditorHotkeys.d.ts +5 -5
  844. package/dist/components/ShapeEditor/_state/useEditorHotkeys.js +44 -0
  845. package/dist/components/ShapeEditor/_state/useEditorHotkeys.js.map +1 -0
  846. package/dist/components/ShapeEditor/_state/useEditorView.cjs +2 -0
  847. package/dist/components/ShapeEditor/_state/useEditorView.cjs.map +1 -0
  848. package/dist/components/ShapeEditor/_state/useEditorView.d.cts +15 -0
  849. package/dist/components/ShapeEditor/_state/useEditorView.d.ts +15 -0
  850. package/dist/components/ShapeEditor/_state/useEditorView.js +45 -0
  851. package/dist/components/ShapeEditor/_state/useEditorView.js.map +1 -0
  852. package/dist/components/ShapeEditor/_state/useEngineLifecycle.cjs +2 -0
  853. package/dist/components/ShapeEditor/_state/useEngineLifecycle.cjs.map +1 -0
  854. package/dist/components/ShapeEditor/_state/useEngineLifecycle.d.cts +89 -0
  855. package/dist/components/ShapeEditor/_state/useEngineLifecycle.d.ts +48 -17
  856. package/dist/components/ShapeEditor/_state/useEngineLifecycle.js +126 -0
  857. package/dist/components/ShapeEditor/_state/useEngineLifecycle.js.map +1 -0
  858. package/dist/components/ShapeEditor/_state/useLatestRef.cjs +2 -0
  859. package/dist/components/ShapeEditor/_state/useLatestRef.cjs.map +1 -0
  860. package/dist/components/ShapeEditor/_state/useLatestRef.d.cts +7 -0
  861. package/dist/components/ShapeEditor/_state/useLatestRef.d.ts +7 -0
  862. package/dist/components/ShapeEditor/_state/useLatestRef.js +13 -0
  863. package/dist/components/ShapeEditor/_state/useLatestRef.js.map +1 -0
  864. package/dist/components/ShapeEditor/_state/useMinimapNavigation.cjs +2 -0
  865. package/dist/components/ShapeEditor/_state/useMinimapNavigation.cjs.map +1 -0
  866. package/dist/components/ShapeEditor/_state/useMinimapNavigation.d.cts +27 -0
  867. package/dist/components/ShapeEditor/_state/useMinimapNavigation.d.ts +1 -1
  868. package/dist/components/ShapeEditor/_state/useMinimapNavigation.js +118 -0
  869. package/dist/components/ShapeEditor/_state/useMinimapNavigation.js.map +1 -0
  870. package/dist/components/ShapeEditor/_state/useMinimapSync.cjs +2 -0
  871. package/dist/components/ShapeEditor/_state/useMinimapSync.cjs.map +1 -0
  872. package/dist/components/ShapeEditor/_state/useMinimapSync.d.cts +26 -0
  873. package/dist/components/ShapeEditor/_state/useMinimapSync.d.ts +6 -4
  874. package/dist/components/ShapeEditor/_state/useMinimapSync.js +69 -0
  875. package/dist/components/ShapeEditor/_state/useMinimapSync.js.map +1 -0
  876. package/dist/components/ShapeEditor/_state/useSelectionActions.cjs +2 -0
  877. package/dist/components/ShapeEditor/_state/useSelectionActions.cjs.map +1 -0
  878. package/dist/components/ShapeEditor/_state/useSelectionActions.d.cts +31 -0
  879. package/dist/components/ShapeEditor/_state/useSelectionActions.d.ts +9 -6
  880. package/dist/components/ShapeEditor/_state/useSelectionActions.js +151 -0
  881. package/dist/components/ShapeEditor/_state/useSelectionActions.js.map +1 -0
  882. package/dist/components/ShapeEditor/_state/useSelectionInfoOverlay.cjs +2 -0
  883. package/dist/components/ShapeEditor/_state/useSelectionInfoOverlay.cjs.map +1 -0
  884. package/dist/components/ShapeEditor/_state/useSelectionInfoOverlay.d.cts +32 -0
  885. package/dist/components/ShapeEditor/_state/useSelectionInfoOverlay.d.ts +32 -0
  886. package/dist/components/ShapeEditor/_state/useSelectionInfoOverlay.js +64 -0
  887. package/dist/components/ShapeEditor/_state/useSelectionInfoOverlay.js.map +1 -0
  888. package/dist/components/ShapeEditor/_state/useSelectionModel.cjs +2 -0
  889. package/dist/components/ShapeEditor/_state/useSelectionModel.cjs.map +1 -0
  890. package/dist/components/ShapeEditor/_state/useSelectionModel.d.cts +24 -0
  891. package/dist/components/ShapeEditor/_state/useSelectionModel.d.ts +24 -0
  892. package/dist/components/ShapeEditor/_state/useSelectionModel.js +65 -0
  893. package/dist/components/ShapeEditor/_state/useSelectionModel.js.map +1 -0
  894. package/dist/components/ShapeEditor/_state/useViewportControls.cjs +2 -0
  895. package/dist/components/ShapeEditor/_state/useViewportControls.cjs.map +1 -0
  896. package/dist/components/ShapeEditor/_state/useViewportControls.d.cts +23 -0
  897. package/dist/components/ShapeEditor/_state/useViewportControls.d.ts +3 -3
  898. package/dist/components/ShapeEditor/_state/useViewportControls.js +79 -0
  899. package/dist/components/ShapeEditor/_state/useViewportControls.js.map +1 -0
  900. package/dist/components/ShapeEditor/index.d.cts +13 -0
  901. package/dist/components/ShapeEditor/index.d.ts +13 -8
  902. package/dist/components/Shortcut/Shortcut.cjs +2 -0
  903. package/dist/components/Shortcut/Shortcut.cjs.map +1 -0
  904. package/dist/components/Shortcut/Shortcut.d.cts +24 -0
  905. package/dist/components/Shortcut/Shortcut.d.ts +16 -0
  906. package/dist/components/Shortcut/Shortcut.js +22 -0
  907. package/dist/components/Shortcut/Shortcut.js.map +1 -0
  908. package/dist/components/Shortcut/index.d.cts +2 -0
  909. package/dist/components/Shortcut/index.d.ts +2 -2
  910. package/dist/components/Skeleton/Skeleton.cjs +2 -0
  911. package/dist/components/Skeleton/Skeleton.cjs.map +1 -0
  912. package/dist/components/Skeleton/Skeleton.d.cts +26 -0
  913. package/dist/components/Skeleton/Skeleton.d.ts +21 -2
  914. package/dist/components/Skeleton/Skeleton.js +20 -0
  915. package/dist/components/Skeleton/Skeleton.js.map +1 -0
  916. package/dist/components/Skeleton/index.d.cts +2 -0
  917. package/dist/components/Skeleton/index.d.ts +2 -2
  918. package/dist/components/Slider/Slider.cjs +2 -0
  919. package/dist/components/Slider/Slider.cjs.map +1 -0
  920. package/dist/components/Slider/Slider.d.cts +58 -0
  921. package/dist/components/Slider/Slider.d.ts +52 -5
  922. package/dist/components/Slider/Slider.js +78 -0
  923. package/dist/components/Slider/Slider.js.map +1 -0
  924. package/dist/components/Slider/index.d.cts +2 -0
  925. package/dist/components/Slider/index.d.ts +2 -2
  926. package/dist/components/Spinner/Spinner.cjs +2 -0
  927. package/dist/components/Spinner/Spinner.cjs.map +1 -0
  928. package/dist/components/Spinner/Spinner.d.cts +32 -0
  929. package/dist/components/Spinner/Spinner.d.ts +32 -0
  930. package/dist/components/Spinner/Spinner.js +27 -0
  931. package/dist/components/Spinner/Spinner.js.map +1 -0
  932. package/dist/components/Spinner/index.d.cts +2 -0
  933. package/dist/components/Spinner/index.d.ts +2 -0
  934. package/dist/components/Switch/Switch.cjs +2 -0
  935. package/dist/components/Switch/Switch.cjs.map +1 -0
  936. package/dist/components/Switch/Switch.d.cts +31 -0
  937. package/dist/components/Switch/Switch.d.ts +22 -3
  938. package/dist/components/Switch/Switch.js +48 -0
  939. package/dist/components/Switch/Switch.js.map +1 -0
  940. package/dist/components/Switch/index.d.cts +2 -0
  941. package/dist/components/Switch/index.d.ts +2 -2
  942. package/dist/components/Tab/Tab.cjs +2 -0
  943. package/dist/components/Tab/Tab.cjs.map +1 -0
  944. package/dist/components/Tab/Tab.d.cts +76 -0
  945. package/dist/components/Tab/Tab.d.ts +70 -13
  946. package/dist/components/Tab/Tab.js +43 -0
  947. package/dist/components/Tab/Tab.js.map +1 -0
  948. package/dist/components/Tab/index.d.cts +2 -0
  949. package/dist/components/Tab/index.d.ts +2 -2
  950. package/dist/components/Tag/Tag.cjs +2 -0
  951. package/dist/components/Tag/Tag.cjs.map +1 -0
  952. package/dist/components/Tag/Tag.d.cts +50 -0
  953. package/dist/components/Tag/Tag.d.ts +37 -3
  954. package/dist/components/Tag/Tag.js +60 -0
  955. package/dist/components/Tag/Tag.js.map +1 -0
  956. package/dist/components/Tag/index.d.cts +2 -0
  957. package/dist/components/Tag/index.d.ts +2 -2
  958. package/dist/components/Tagbox/Tagbox.cjs +2 -0
  959. package/dist/components/Tagbox/Tagbox.cjs.map +1 -0
  960. package/dist/components/Tagbox/Tagbox.d.cts +65 -0
  961. package/dist/components/Tagbox/Tagbox.d.ts +48 -8
  962. package/dist/components/Tagbox/Tagbox.js +89 -0
  963. package/dist/components/Tagbox/Tagbox.js.map +1 -0
  964. package/dist/components/Tagbox/index.d.cts +2 -0
  965. package/dist/components/Tagbox/index.d.ts +2 -2
  966. package/dist/components/Textarea/Textarea.cjs +2 -0
  967. package/dist/components/Textarea/Textarea.cjs.map +1 -0
  968. package/dist/components/Textarea/Textarea.d.cts +49 -0
  969. package/dist/components/Textarea/Textarea.d.ts +36 -6
  970. package/dist/components/Textarea/Textarea.js +60 -0
  971. package/dist/components/Textarea/Textarea.js.map +1 -0
  972. package/dist/components/Textarea/index.d.cts +2 -0
  973. package/dist/components/Textarea/index.d.ts +2 -2
  974. package/dist/components/Textbox/Textbox.cjs +2 -0
  975. package/dist/components/Textbox/Textbox.cjs.map +1 -0
  976. package/dist/components/Textbox/Textbox.d.cts +47 -0
  977. package/dist/components/Textbox/Textbox.d.ts +36 -8
  978. package/dist/components/Textbox/Textbox.js +61 -0
  979. package/dist/components/Textbox/Textbox.js.map +1 -0
  980. package/dist/components/Textbox/index.d.cts +2 -0
  981. package/dist/components/Textbox/index.d.ts +2 -2
  982. package/dist/components/Toast/Toast.cjs +2 -0
  983. package/dist/components/Toast/Toast.cjs.map +1 -0
  984. package/dist/components/Toast/Toast.d.cts +100 -0
  985. package/dist/components/Toast/Toast.d.ts +88 -5
  986. package/dist/components/Toast/Toast.js +82 -0
  987. package/dist/components/Toast/Toast.js.map +1 -0
  988. package/dist/components/Toast/index.d.cts +2 -0
  989. package/dist/components/Toast/index.d.ts +2 -2
  990. package/dist/components/ToggleButton/ToggleButton.cjs +2 -0
  991. package/dist/components/ToggleButton/ToggleButton.cjs.map +1 -0
  992. package/dist/components/ToggleButton/ToggleButton.d.cts +41 -0
  993. package/dist/components/ToggleButton/ToggleButton.d.ts +26 -2
  994. package/dist/components/ToggleButton/ToggleButton.js +117 -0
  995. package/dist/components/ToggleButton/ToggleButton.js.map +1 -0
  996. package/dist/components/ToggleButton/index.d.cts +2 -0
  997. package/dist/components/ToggleButton/index.d.ts +2 -2
  998. package/dist/components/Tooltip/Tooltip.cjs +2 -0
  999. package/dist/components/Tooltip/Tooltip.cjs.map +1 -0
  1000. package/dist/components/Tooltip/Tooltip.d.cts +40 -0
  1001. package/dist/components/Tooltip/Tooltip.d.ts +28 -1
  1002. package/dist/components/Tooltip/Tooltip.js +62 -0
  1003. package/dist/components/Tooltip/Tooltip.js.map +1 -0
  1004. package/dist/components/Tooltip/index.d.cts +2 -0
  1005. package/dist/components/Tooltip/index.d.ts +2 -2
  1006. package/dist/components/TruncatedText/TruncatedText.cjs +2 -0
  1007. package/dist/components/TruncatedText/TruncatedText.cjs.map +1 -0
  1008. package/dist/components/TruncatedText/TruncatedText.d.cts +44 -0
  1009. package/dist/components/TruncatedText/TruncatedText.d.ts +44 -0
  1010. package/dist/components/TruncatedText/TruncatedText.js +84 -0
  1011. package/dist/components/TruncatedText/TruncatedText.js.map +1 -0
  1012. package/dist/components/TruncatedText/index.d.cts +2 -0
  1013. package/dist/components/TruncatedText/index.d.ts +2 -0
  1014. package/dist/components/Typography/Typography.cjs +2 -0
  1015. package/dist/components/Typography/Typography.cjs.map +1 -0
  1016. package/dist/components/Typography/Typography.d.cts +33 -0
  1017. package/dist/components/Typography/Typography.d.ts +21 -0
  1018. package/dist/components/Typography/Typography.js +59 -0
  1019. package/dist/components/Typography/Typography.js.map +1 -0
  1020. package/dist/components/Typography/index.d.cts +2 -0
  1021. package/dist/components/Typography/index.d.ts +2 -2
  1022. package/dist/components/UploadArea/UploadArea.cjs +2 -0
  1023. package/dist/components/UploadArea/UploadArea.cjs.map +1 -0
  1024. package/dist/components/UploadArea/UploadArea.d.cts +82 -0
  1025. package/dist/components/UploadArea/UploadArea.d.ts +66 -1
  1026. package/dist/components/UploadArea/UploadArea.js +121 -0
  1027. package/dist/components/UploadArea/UploadArea.js.map +1 -0
  1028. package/dist/components/UploadArea/index.d.cts +2 -0
  1029. package/dist/components/UploadArea/index.d.ts +2 -2
  1030. package/dist/fonts.css +4 -0
  1031. package/dist/illustration.cjs +1 -0
  1032. package/dist/illustration.js +3 -0
  1033. package/dist/index.cjs +1 -15
  1034. package/dist/index.d.cts +58 -0
  1035. package/dist/index.d.ts +58 -49
  1036. package/dist/index.js +65 -8751
  1037. package/dist/llms-full.txt +6663 -0
  1038. package/dist/llms.txt +125 -0
  1039. package/dist/shape-editor.cjs +1 -1
  1040. package/dist/shape-editor.cjs.map +1 -1
  1041. package/dist/shape-editor.js +10 -5732
  1042. package/dist/shape-editor.js.map +1 -1
  1043. package/dist/styles.css +5 -2
  1044. package/dist/tailwind.css +434 -0
  1045. package/dist/tokens/tokens.css +629 -611
  1046. package/dist/utils/PortalEventBoundary.cjs +2 -0
  1047. package/dist/utils/PortalEventBoundary.cjs.map +1 -0
  1048. package/dist/utils/PortalEventBoundary.d.cts +13 -0
  1049. package/dist/utils/PortalEventBoundary.d.ts +13 -0
  1050. package/dist/utils/PortalEventBoundary.js +12 -0
  1051. package/dist/utils/PortalEventBoundary.js.map +1 -0
  1052. package/dist/utils/Primitive.cjs +2 -0
  1053. package/dist/utils/Primitive.cjs.map +1 -0
  1054. package/dist/utils/Primitive.d.cts +9 -0
  1055. package/dist/utils/Primitive.d.ts +9 -0
  1056. package/dist/utils/Primitive.js +15 -0
  1057. package/dist/utils/Primitive.js.map +1 -0
  1058. package/dist/utils/cn.d.cts +12 -0
  1059. package/dist/utils/cn.d.ts +10 -0
  1060. package/dist/utils/dataAttributes.d.cts +7 -0
  1061. package/dist/utils/dataAttributes.d.ts +7 -0
  1062. package/dist/utils/keyboard.cjs +2 -0
  1063. package/dist/utils/keyboard.cjs.map +1 -0
  1064. package/dist/utils/keyboard.d.cts +3 -0
  1065. package/dist/utils/keyboard.d.ts +3 -0
  1066. package/dist/utils/keyboard.js +14 -0
  1067. package/dist/utils/keyboard.js.map +1 -0
  1068. package/dist/utils/popupArrow.cjs +2 -0
  1069. package/dist/utils/popupArrow.cjs.map +1 -0
  1070. package/dist/utils/popupArrow.d.cts +14 -0
  1071. package/dist/utils/popupArrow.d.ts +14 -0
  1072. package/dist/utils/popupArrow.js +26 -0
  1073. package/dist/utils/popupArrow.js.map +1 -0
  1074. package/dist/utils/popupPositioning.cjs +2 -0
  1075. package/dist/utils/popupPositioning.cjs.map +1 -0
  1076. package/dist/utils/popupPositioning.d.cts +11 -0
  1077. package/dist/utils/popupPositioning.d.ts +11 -0
  1078. package/dist/utils/popupPositioning.js +25 -0
  1079. package/dist/utils/popupPositioning.js.map +1 -0
  1080. package/dist/utils/sheet.cjs +2 -0
  1081. package/dist/utils/sheet.cjs.map +1 -0
  1082. package/dist/utils/sheet.d.cts +17 -0
  1083. package/dist/utils/sheet.d.ts +17 -0
  1084. package/dist/utils/sheet.js +7 -0
  1085. package/dist/utils/sheet.js.map +1 -0
  1086. package/dist/utils/useComposedRefs.cjs +2 -0
  1087. package/dist/utils/useComposedRefs.cjs.map +1 -0
  1088. package/dist/utils/useComposedRefs.d.cts +6 -0
  1089. package/dist/utils/useComposedRefs.d.ts +6 -0
  1090. package/dist/utils/useComposedRefs.js +22 -0
  1091. package/dist/utils/useComposedRefs.js.map +1 -0
  1092. package/dist/utils/useControllableState.cjs +2 -0
  1093. package/dist/utils/useControllableState.cjs.map +1 -0
  1094. package/dist/utils/useControllableState.d.cts +17 -0
  1095. package/dist/utils/useControllableState.d.ts +17 -0
  1096. package/dist/utils/useControllableState.js +13 -0
  1097. package/dist/utils/useControllableState.js.map +1 -0
  1098. package/dist/utils/useModalFocus.cjs +2 -0
  1099. package/dist/utils/useModalFocus.cjs.map +1 -0
  1100. package/dist/utils/useModalFocus.d.cts +31 -0
  1101. package/dist/utils/useModalFocus.d.ts +31 -0
  1102. package/dist/utils/useModalFocus.js +28 -0
  1103. package/dist/utils/useModalFocus.js.map +1 -0
  1104. package/dist/utils/useResizableWidth.cjs +2 -0
  1105. package/dist/utils/useResizableWidth.cjs.map +1 -0
  1106. package/dist/utils/useResizableWidth.d.cts +30 -0
  1107. package/dist/utils/useResizableWidth.d.ts +30 -0
  1108. package/dist/utils/useResizableWidth.js +32 -0
  1109. package/dist/utils/useResizableWidth.js.map +1 -0
  1110. package/dist/utils.cjs +2 -0
  1111. package/dist/utils.cjs.map +1 -0
  1112. package/dist/utils.js +59 -0
  1113. package/dist/utils.js.map +1 -0
  1114. package/package.json +68 -28
  1115. package/dist/Button-C_GP2mJ-.cjs +0 -2
  1116. package/dist/Button-C_GP2mJ-.cjs.map +0 -1
  1117. package/dist/Button-CzqDPqUT.js +0 -8600
  1118. package/dist/Button-CzqDPqUT.js.map +0 -1
  1119. package/dist/IconButton-B-MspnYP.cjs +0 -2
  1120. package/dist/IconButton-B-MspnYP.cjs.map +0 -1
  1121. package/dist/IconButton-DTGSfJme.js +0 -560
  1122. package/dist/IconButton-DTGSfJme.js.map +0 -1
  1123. package/dist/Switch-B2irM7Pp.js +0 -2656
  1124. package/dist/Switch-B2irM7Pp.js.map +0 -1
  1125. package/dist/Switch-CMKBdqkX.cjs +0 -42
  1126. package/dist/Switch-CMKBdqkX.cjs.map +0 -1
  1127. package/dist/comment.cjs.map +0 -1
  1128. package/dist/comment.js.map +0 -1
  1129. package/dist/components/Chips/index.d.ts +0 -19
  1130. package/dist/components/DatePicker/Calendar.d.ts +0 -27
  1131. package/dist/components/DatePicker/DatePicker.d.ts +0 -119
  1132. package/dist/components/DatePicker/date.d.ts +0 -24
  1133. package/dist/components/DatePicker/index.d.ts +0 -4
  1134. package/dist/components/ShapeEditor/_model/imageFetch.d.ts +0 -9
  1135. package/dist/components/ShapeEditor/_model/konva.d.ts +0 -4
  1136. package/dist/components/ShapeEditor/_model/overlays.test.d.ts +0 -1
  1137. package/dist/components/ShapeEditor/_renderers/KonvaRenderer.d.ts +0 -124
  1138. package/dist/components/Table/Table.d.ts +0 -61
  1139. package/dist/components/Table/index.d.ts +0 -2
  1140. package/dist/index.cjs.map +0 -1
  1141. package/dist/index.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DataGridRows.js","names":[],"sources":["../../../src/components/DataGrid/DataGridRows.tsx"],"sourcesContent":["import { flexRender, type Row } from \"@tanstack/react-table\";\nimport { useVirtualizer, type VirtualItem } from \"@tanstack/react-virtual\";\nimport type { KeyboardEvent, MouseEvent, ReactNode, Ref, RefObject } from \"react\";\nimport { memo, useEffect, useId, useState } from \"react\";\nimport { cn } from \"@/utils/cn\";\nimport { DataGridCell, DataGridRow, resolveDataGridValue } from \"./DataGridPrimitives\";\n\nexport interface DataGridDataRowProps<TData> {\n row: Row<TData>;\n virtualIndex?: number;\n virtualStart?: number;\n measureRef?: Ref<HTMLDivElement>;\n interactive?: boolean;\n selected?: boolean;\n disabled?: boolean;\n className?: string;\n onRowClick?: (row: TData, index: number, event: MouseEvent<HTMLDivElement>) => void;\n /** row.getIsExpanded() 시 행 아래에 렌더할 커스텀 상세 패널 */\n expandedContent?: ReactNode;\n /** 펼칠 수 있는 행인지 — aria-expanded 노출 여부를 정한다 */\n expandable?: boolean;\n /** 비활성/펼침 가능 여부를 반영해 부모에서 계산한 포커스 가능 상태 */\n focusable?: boolean;\n /**\n * 이 행의 React Table 상태(선택/펼침). 셀은 row.getIsSelected() 같은 메서드로\n * 상태를 직접 읽는데, 그 값이 바뀌어도 row 객체 자체는 그대로라 memo가 렌더를\n * 건너뛴다 — 상태를 프롭으로 올려야 체크박스 같은 셀이 다시 그려진다.\n */\n rowSelected?: boolean;\n rowExpanded?: boolean;\n /**\n * 셀 렌더러가 담긴 컬럼 정의 — 렌더에는 쓰지 않고 memo 비교에만 쓴다.\n * 셀이 외부 상태를 클로저로 읽는 경우(검토 상태 등) 소비자는 컬럼을 그 상태\n * 의존 useMemo로 만든다. 그 identity 변화가 \"셀 출력이 바뀔 수 있다\"는\n * 신호인데, row 객체는 그대로라 이 프롭 없이는 memo가 렌더를 건너뛴다.\n */\n columns?: unknown;\n /**\n * 보이는 컬럼 id를 순서대로 이은 키 — 렌더에는 쓰지 않고 memo 비교에만 쓴다.\n * 컬럼 표시/숨김·순서가 바뀌면 row.getVisibleCells() 결과가 달라지지만 row\n * 객체는 그대로라, 이 프롭 없이는 헤더만 바뀌고 본문 셀은 이전 그대로 남는다.\n */\n visibleColumnKey?: string;\n /** 셀의 ARIA 롤 — 펼침을 쓰는 그리드(treegrid)에서는 gridcell이어야 한다 */\n cellRole?: \"cell\" | \"gridcell\";\n /** 로빙 tabindex의 탭 스톱 여부 — 그리드 전체에서 한 행만 true (미지정 시 탭 스톱) */\n tabStop?: boolean;\n /** 위/아래 화살표로 행 사이 포커스를 옮길 때 호출 */\n onNavigate?: (rowId: string, delta: -1 | 1) => void;\n /** 행(또는 그 안의 요소)이 포커스를 받아 탭 스톱을 옮겨야 할 때 호출 */\n onFocusRow?: (rowId: string) => void;\n}\n\nfunction DataGridDataRowBase<TData>({\n row,\n virtualIndex,\n virtualStart,\n measureRef,\n interactive,\n selected,\n disabled,\n className,\n onRowClick,\n expandedContent,\n expandable,\n focusable,\n rowSelected,\n rowExpanded,\n cellRole,\n tabStop,\n onNavigate,\n onFocusRow,\n}: DataGridDataRowProps<TData>) {\n const { original, id: rowId } = row;\n const index = row.index;\n const panelId = useId();\n const expanded = Boolean(rowExpanded);\n // 클릭 콜백이 있으면 Enter/Space로 행을 활성화할 수 있다\n const activatable = Boolean(onRowClick) && !disabled;\n // 가상화 중에만 행+패널을 감싸는 래퍼를 둔다 — 이 래퍼가 절대배치·측정의 기준이 된다.\n // 펼침 여부로 래퍼를 넣고 빼면 행 엘리먼트가 리마운트되어 포커스가 날아가므로,\n // 비가상 경로에서는 패널을 행의 형제로 붙인다.\n const wrapped = virtualStart !== undefined;\n\n const handleKeyDown = (event: KeyboardEvent<HTMLDivElement>) => {\n // 셀 안의 입력·버튼에서 올라온 키는 가로채지 않는다 — 텍스트 입력의 스페이스,\n // 체크박스의 스페이스, 셀렉트의 화살표가 그대로 살아 있어야 한다\n if (event.target !== event.currentTarget) return;\n\n if (onNavigate && (event.key === \"ArrowDown\" || event.key === \"ArrowUp\")) {\n event.preventDefault();\n onNavigate(rowId, event.key === \"ArrowDown\" ? 1 : -1);\n return;\n }\n // treegrid 관례 — 오른쪽 화살표로 펼치고 왼쪽 화살표로 접는다\n if (expandable && (event.key === \"ArrowRight\" || event.key === \"ArrowLeft\")) {\n const shouldExpand = event.key === \"ArrowRight\";\n if (shouldExpand === expanded) return;\n event.preventDefault();\n row.toggleExpanded(shouldExpand);\n return;\n }\n if (activatable && (event.key === \"Enter\" || event.key === \" \")) {\n event.preventDefault();\n // click()을 통해 기존 onRowClick의 MouseEvent API를 유지하면서 키보드도 같은 경로로 활성화한다.\n event.currentTarget.click();\n }\n };\n\n const rowEl = (\n <DataGridRow\n // 래퍼가 없을 때만 행 자체가 측정 대상 (비가상·비펼침 경로)\n ref={wrapped ? undefined : measureRef}\n // 화살표 이동 후 대상 행에 포커스를 넣을 때 DataGrid가 찾는 마커\n data-datagrid-row-id={rowId}\n // React Table 선택/펼침 상태 — CSS에서 잡을 수 있게 열어 두고, 동시에\n // 이 값이 프롭으로 들어와야 상태가 바뀔 때 memo가 행을 다시 그린다.\n data-row-selected={rowSelected ? \"\" : undefined}\n data-row-expanded={rowExpanded ? \"\" : undefined}\n interactive={interactive}\n selected={selected}\n disabled={disabled}\n className={className}\n // 펼칠 수 있는 행만 상태를 알린다 — 펼침을 쓰지 않는 그리드에는 붙지 않는다\n aria-expanded={expandable ? expanded : undefined}\n aria-controls={expandedContent != null ? panelId : undefined}\n // 로빙 tabindex — 그리드 전체가 탭 한 번으로 진입되고, 이후는 화살표로 이동한다\n tabIndex={focusable ? (tabStop === false ? -1 : 0) : undefined}\n onClick={onRowClick ? (event) => onRowClick(original, index, event) : undefined}\n onKeyDown={focusable ? handleKeyDown : undefined}\n onFocus={focusable && onFocusRow ? () => onFocusRow(rowId) : undefined}\n >\n {row.getVisibleCells().map((cell) => {\n const { meta } = cell.column.columnDef;\n\n return (\n <DataGridCell\n key={cell.id}\n role={cellRole}\n align={meta?.cellAlign ?? meta?.align}\n className={cn(\n meta?.className,\n resolveDataGridValue(meta?.cellClassName, original, index),\n )}\n >\n {flexRender(cell.column.columnDef.cell, cell.getContext())}\n </DataGridCell>\n );\n })}\n </DataGridRow>\n );\n\n const panelEl = expandedContent != null && (\n // 패널도 rowgroup의 자식이라 행/셀로 노출한다 — HTML table의 colspan 상세 행에 해당\n // biome-ignore lint/a11y/useSemanticElements: 플렉스 폭·가상화를 위해 div 기반으로 구성 — 시맨틱 table 요소 대신 ARIA role 사용\n // biome-ignore lint/a11y/useFocusableInteractive: 상세 패널 행은 구조 표현용이고 포커스는 안쪽 콘텐츠가 받는다\n <div role=\"row\" className=\"aivex:w-full\">\n {/* 상세 패널은 행 전체를 차지하는 단일 셀 */}\n <div role={cellRole ?? \"cell\"} id={panelId} className=\"aivex:w-full\">\n {expandedContent}\n </div>\n </div>\n );\n\n // 비가상 경로는 래퍼 없이 행과 패널을 형제로 둔다 — DOM 구조가 펼침 여부와 무관하게 고정된다\n if (!wrapped) {\n return (\n <>\n {rowEl}\n {panelEl}\n </>\n );\n }\n\n return (\n // 가상화에서는 이 래퍼가 절대배치·측정 대상 — 펼침 패널 높이까지 함께 실측된다.\n // role=\"presentation\"으로 rowgroup과 row 사이에 낀 래퍼를 접근성 트리에서 지운다.\n <div\n ref={measureRef}\n data-index={virtualIndex}\n role=\"presentation\"\n className=\"aivex:flex aivex:w-full aivex:flex-col\"\n style={{\n position: \"absolute\",\n top: 0,\n left: 0,\n width: \"100%\",\n transform: `translateY(${virtualStart}px)`,\n }}\n >\n {rowEl}\n {panelEl}\n </div>\n );\n}\n\n// 스크롤 리렌더에서 프롭이 동일한 행을 건너뛰기 위한 memo — 창에 새로 들어온 행만 렌더된다\nexport const DataGridDataRow = memo(DataGridDataRowBase) as typeof DataGridDataRowBase;\n\nexport interface DataGridVirtualizedRowsProps<TData> {\n rows: Row<TData>[];\n viewportRef: RefObject<HTMLDivElement | null>;\n estimateRowHeight?: number;\n overscan?: number;\n /** 로빙 tabindex의 현재 포커스 행 id */\n activeRowId?: string | null;\n focusableRowIds: Set<string>;\n pendingFocusRowId?: string | null;\n focusRowElement: (rowId: string) => boolean;\n onFocusSettled: () => void;\n scrollToRowRef: RefObject<((index: number) => void) | null>;\n renderRow: (\n row: Row<TData>,\n virtualItem: VirtualItem,\n measureRef: Ref<HTMLDivElement>,\n tabStop: boolean,\n ) => ReactNode;\n}\n\n// 가상화기를 바디 전용 컴포넌트로 격리해 스크롤 리렌더를 행 창 계산에만 한정한다\nexport function DataGridVirtualizedRows<TData>({\n rows,\n viewportRef,\n estimateRowHeight,\n overscan,\n activeRowId,\n focusableRowIds,\n pendingFocusRowId,\n focusRowElement,\n onFocusSettled,\n scrollToRowRef,\n renderRow,\n}: DataGridVirtualizedRowsProps<TData>) {\n // 뷰포트는 조상 노드라 마운트 시점엔 ref가 null — 커밋 후 상태로 승격해야 구독이 시작된다\n const [scrollElement, setScrollElement] = useState<HTMLDivElement | null>(null);\n useEffect(() => {\n setScrollElement(viewportRef.current);\n }, [viewportRef]);\n\n const rowVirtualizer = useVirtualizer({\n count: rows.length,\n getScrollElement: () => scrollElement,\n estimateSize: () => estimateRowHeight ?? 48,\n overscan: overscan ?? 6,\n });\n scrollToRowRef.current = (index) => rowVirtualizer.scrollToIndex(index, { align: \"auto\" });\n useEffect(\n () => () => {\n scrollToRowRef.current = null;\n },\n [scrollToRowRef],\n );\n\n const virtualItems = rowVirtualizer.getVirtualItems();\n // 탭 스톱은 마운트된 행 중에서 고른다 — 포커스 행이 창 밖으로 밀려나도\n // 창의 첫 행이 탭 스톱을 이어받아 그리드가 탭으로 도달 가능한 상태를 유지한다\n const windowRowIds = virtualItems.map((virtualItem) => rows[virtualItem.index]?.id);\n const tabStopId =\n activeRowId != null && windowRowIds.includes(activeRowId)\n ? activeRowId\n : windowRowIds.find((rowId) => rowId != null && focusableRowIds.has(rowId));\n const pendingFocusMounted = pendingFocusRowId != null && windowRowIds.includes(pendingFocusRowId);\n\n useEffect(() => {\n if (!pendingFocusMounted || pendingFocusRowId == null) return;\n if (focusRowElement(pendingFocusRowId)) onFocusSettled();\n }, [focusRowElement, onFocusSettled, pendingFocusMounted, pendingFocusRowId]);\n\n return (\n <div\n className=\"aivex:relative aivex:w-full aivex:shrink-0\"\n style={{ height: rowVirtualizer.getTotalSize() }}\n >\n {virtualItems.map((virtualItem) => {\n const row = rows[virtualItem.index];\n\n return renderRow(row, virtualItem, rowVirtualizer.measureElement, row?.id === tabStopId);\n })}\n </div>\n );\n}\n"],"mappings":";;;;;;;;AAqDA,SAAS,EAA2B,EAClC,QACA,iBACA,iBACA,eACA,gBACA,aACA,aACA,cACA,eACA,oBACA,eACA,cACA,gBACA,gBACA,aACA,YACA,eACA,iBAC8B;CAC9B,IAAM,EAAE,aAAU,IAAI,MAAU,GAC1B,IAAQ,EAAI,OACZ,IAAU,GAAO,EACjB,IAAW,EAAQ,GAEnB,IAAc,EAAQ,KAAe,CAAC,GAItC,IAAU,MAAiB,KAAA,GA2B3B,IACJ,kBAAC,GAAD;EAEE,KAAK,IAAU,KAAA,IAAY;EAE3B,wBAAsB;EAGtB,qBAAmB,IAAc,KAAK,KAAA;EACtC,qBAAmB,IAAc,KAAK,KAAA;EACzB;EACH;EACA;EACC;EAEX,iBAAe,IAAa,IAAW,KAAA;EACvC,iBAAe,KAAmB,OAAiB,KAAA,IAAV;EAEzC,UAAU,IAAa,MAAY,KAAQ,KAAK,IAAK,KAAA;EACrD,SAAS,KAAc,MAAU,EAAW,GAAU,GAAO,EAAM,GAAG,KAAA;EACtE,WAAW,KA7CQ,MAAyC;AAG1D,SAAM,WAAW,EAAM,eAE3B;QAAI,MAAe,EAAM,QAAQ,eAAe,EAAM,QAAQ,YAAY;AAExE,KADA,EAAM,gBAAgB,EACtB,EAAW,GAAO,EAAM,QAAQ,cAAc,IAAI,GAAG;AACrD;;AAGF,QAAI,MAAe,EAAM,QAAQ,gBAAgB,EAAM,QAAQ,cAAc;KAC3E,IAAM,IAAe,EAAM,QAAQ;AACnC,SAAI,MAAiB,EAAU;AAE/B,KADA,EAAM,gBAAgB,EACtB,EAAI,eAAe,EAAa;AAChC;;AAEF,IAAI,MAAgB,EAAM,QAAQ,WAAW,EAAM,QAAQ,SACzD,EAAM,gBAAgB,EAEtB,EAAM,cAAc,OAAO;;MAwBY,KAAA;EACvC,SAAS,KAAa,UAAmB,EAAW,EAAM,GAAG,KAAA;YAE5D,EAAI,iBAAiB,CAAC,KAAK,MAAS;GACnC,IAAM,EAAE,YAAS,EAAK,OAAO;AAE7B,UACE,kBAAC,GAAD;IAEE,MAAM;IACN,OAAO,GAAM,aAAa,GAAM;IAChC,WAAW,EACT,GAAM,WACN,EAAqB,GAAM,eAAe,GAAU,EAAM,CAC3D;cAEA,EAAW,EAAK,OAAO,UAAU,MAAM,EAAK,YAAY,CAAC;IAC7C,EATR,EAAK,GASG;IAEjB;EACU,CAAA,EAGV,IAAU,KAAmB,QAIjC,kBAAC,OAAD;EAAK,MAAK;EAAM,WAAU;YAExB,kBAAC,OAAD;GAAK,MAAM,KAAY;GAAQ,IAAI;GAAS,WAAU;aACnD;GACG,CAAA;EACF,CAAA;AAaR,QATK,IAYH,kBAAC,OAAD;EACE,KAAK;EACL,cAAY;EACZ,MAAK;EACL,WAAU;EACV,OAAO;GACL,UAAU;GACV,KAAK;GACL,MAAM;GACN,OAAO;GACP,WAAW,cAAc,EAAa;GACvC;YAXH,CAaG,GACA,EACG;MAzBJ,kBAAA,GAAA,EAAA,UAAA,CACG,GACA,EACA,EAAA,CAAA;;AA2BT,IAAa,IAAkB,EAAK,EAAoB;AAuBxD,SAAgB,EAA+B,EAC7C,SACA,gBACA,sBACA,aACA,gBACA,oBACA,sBACA,oBACA,mBACA,mBACA,gBACsC;CAEtC,IAAM,CAAC,GAAe,KAAoB,EAAgC,KAAK;AAC/E,SAAgB;AACd,IAAiB,EAAY,QAAQ;IACpC,CAAC,EAAY,CAAC;CAEjB,IAAM,IAAiB,EAAe;EACpC,OAAO,EAAK;EACZ,wBAAwB;EACxB,oBAAoB,KAAqB;EACzC,UAAU,KAAY;EACvB,CAAC;AAEF,CADA,EAAe,WAAW,MAAU,EAAe,cAAc,GAAO,EAAE,OAAO,QAAQ,CAAC,EAC1F,cACc;AACV,IAAe,UAAU;IAE3B,CAAC,EAAe,CACjB;CAED,IAAM,IAAe,EAAe,iBAAiB,EAG/C,IAAe,EAAa,KAAK,MAAgB,EAAK,EAAY,QAAQ,GAAG,EAC7E,IACJ,KAAe,QAAQ,EAAa,SAAS,EAAY,GACrD,IACA,EAAa,MAAM,MAAU,KAAS,QAAQ,EAAgB,IAAI,EAAM,CAAC,EACzE,IAAsB,KAAqB,QAAQ,EAAa,SAAS,EAAkB;AAOjG,QALA,QAAgB;AACV,GAAC,KAAuB,KAAqB,QAC7C,EAAgB,EAAkB,IAAE,GAAgB;IACvD;EAAC;EAAiB;EAAgB;EAAqB;EAAkB,CAAC,EAG3E,kBAAC,OAAD;EACE,WAAU;EACV,OAAO,EAAE,QAAQ,EAAe,cAAc,EAAE;YAE/C,EAAa,KAAK,MAAgB;GACjC,IAAM,IAAM,EAAK,EAAY;AAE7B,UAAO,EAAU,GAAK,GAAa,EAAe,gBAAgB,GAAK,OAAO,EAAU;IACxF;EACE,CAAA"}
@@ -0,0 +1,8 @@
1
+ export type { CellContext, ColumnDef, ColumnFiltersState, ColumnOrderState, ColumnPinningState, ColumnSizingState, ExpandedState, GroupingState, PaginationState, Row, RowSelectionState, SortingState, Table as ReactTableInstance, TableOptions, VisibilityState, } from "@tanstack/react-table";
2
+ export { getCoreRowModel, getExpandedRowModel, getFacetedMinMaxValues, getFacetedRowModel, getFacetedUniqueValues, getFilteredRowModel, getGroupedRowModel, getPaginationRowModel, getSortedRowModel, } from "@tanstack/react-table";
3
+ export type { DataGridProps } from "./DataGrid.cjs";
4
+ export { DataGrid } from "./DataGrid.cjs";
5
+ export type { DataGridColumnSettingsOptions } from "./DataGridColumnSettings.cjs";
6
+ export { DataGridColumnSettings } from "./DataGridColumnSettings.cjs";
7
+ export type { DataGridAlign, DataGridBodyProps, DataGridCellProps, DataGridEmptyProps, DataGridHeaderCellProps, DataGridHeaderProps, DataGridInfiniteTriggerProps, DataGridLoadingProps, DataGridRootProps, DataGridRowProps, DataGridVariant, DataGridViewportProps, } from "./DataGridPrimitives.cjs";
8
+ export { DataGridBody, DataGridCell, DataGridEmpty, DataGridHeader, DataGridHeaderCell, DataGridInfiniteTrigger, DataGridLoading, DataGridRoot, DataGridRow, DataGridViewport, } from "./DataGridPrimitives.cjs";
@@ -1,4 +1,8 @@
1
1
  export type { CellContext, ColumnDef, ColumnFiltersState, ColumnOrderState, ColumnPinningState, ColumnSizingState, ExpandedState, GroupingState, PaginationState, Row, RowSelectionState, SortingState, Table as ReactTableInstance, TableOptions, VisibilityState, } from "@tanstack/react-table";
2
2
  export { getCoreRowModel, getExpandedRowModel, getFacetedMinMaxValues, getFacetedRowModel, getFacetedUniqueValues, getFilteredRowModel, getGroupedRowModel, getPaginationRowModel, getSortedRowModel, } from "@tanstack/react-table";
3
- export type { DataGridAlign, DataGridBodyProps, DataGridCellProps, DataGridEmptyProps, DataGridHeaderCellProps, DataGridHeaderProps, DataGridInfiniteTriggerProps, DataGridLoadingProps, DataGridProps, DataGridRootProps, DataGridRowProps, DataGridViewportProps, } from "./DataGrid";
4
- export { DataGrid, DataGridBody, DataGridCell, DataGridEmpty, DataGridHeader, DataGridHeaderCell, DataGridInfiniteTrigger, DataGridLoading, DataGridRoot, DataGridRow, DataGridViewport, } from "./DataGrid";
3
+ export type { DataGridProps } from "./DataGrid.js";
4
+ export { DataGrid } from "./DataGrid.js";
5
+ export type { DataGridColumnSettingsOptions } from "./DataGridColumnSettings.js";
6
+ export { DataGridColumnSettings } from "./DataGridColumnSettings.js";
7
+ export type { DataGridAlign, DataGridBodyProps, DataGridCellProps, DataGridEmptyProps, DataGridHeaderCellProps, DataGridHeaderProps, DataGridInfiniteTriggerProps, DataGridLoadingProps, DataGridRootProps, DataGridRowProps, DataGridVariant, DataGridViewportProps, } from "./DataGridPrimitives.js";
8
+ export { DataGridBody, DataGridCell, DataGridEmpty, DataGridHeader, DataGridHeaderCell, DataGridInfiniteTrigger, DataGridLoading, DataGridRoot, DataGridRow, DataGridViewport, } from "./DataGridPrimitives.js";
@@ -0,0 +1,6 @@
1
+ "use client";
2
+ import "./DataGridColumnSettings.js";
3
+ import "./DataGridPrimitives.js";
4
+ import "./DataGrid.js";
5
+ import { getCoreRowModel as e, getExpandedRowModel as t, getFacetedMinMaxValues as n, getFacetedRowModel as r, getFacetedUniqueValues as i, getFilteredRowModel as a, getGroupedRowModel as o, getPaginationRowModel as s, getSortedRowModel as c } from "@tanstack/react-table";
6
+ export { e as getCoreRowModel, t as getExpandedRowModel, n as getFacetedMinMaxValues, r as getFacetedRowModel, i as getFacetedUniqueValues, a as getFilteredRowModel, o as getGroupedRowModel, s as getPaginationRowModel, c as getSortedRowModel };
@@ -0,0 +1,2 @@
1
+ "use client";require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../Icon/index.cjs`),t=require(`../../utils.cjs`),n=require(`../../utils/PortalEventBoundary.cjs`),r=require(`../Button/Button.cjs`),i=require(`../../utils/useComposedRefs.cjs`),a=require(`../Overlay/Overlay.cjs`),o=require(`../../utils/useModalFocus.cjs`);let s=require(`react`),c=require(`react/jsx-runtime`),l=require(`@base-ui/react/alert-dialog`);var u={default:{component:e.CheckCircleFilledIcon,className:`aivex:text-icon-success`},warning:{component:e.WarningTriangleFilledIcon,className:`aivex:text-icon-warning`}};function d({open:e,defaultOpen:r,onOpenChange:d,variant:m=`default`,title:h,description:g,children:_,cancelButton:v,confirmButton:y,showIcon:b=!1,ref:x}){let S=(0,s.useRef)(null),C=(0,s.useRef)(null),w=i.useComposedRefs(x,C),T=o.useModalFocus({open:e,modal:!0,initialFocus:v?S:!0,finalFocus:void 0,popupRef:C}),E=u[m],D=b?E.component:null,O=!!D,k=m===`warning`?`danger`:`primary`;return(0,c.jsx)(l.AlertDialog.Root,{open:e,defaultOpen:r,onOpenChange:d,children:(0,c.jsx)(n.PortalEventBoundary,{children:(0,c.jsxs)(l.AlertDialog.Portal,{children:[(0,c.jsx)(l.AlertDialog.Backdrop,{forceRender:!0,render:(0,c.jsx)(a.Overlay,{variant:`dim`})}),(0,c.jsx)(l.AlertDialog.Popup,{ref:w,initialFocus:T.initialFocus,finalFocus:T.finalFocus,onFocusCapture:T.onFocusCapture,className:`aivex:fixed aivex:left-1/2 aivex:top-1/2 aivex:z-(--aivex-z-modal) aivex:w-[calc(100vw-32px)] aivex:max-w-[384px] aivex:-translate-x-1/2 aivex:-translate-y-1/2 aivex:outline-none`,children:(0,c.jsxs)(`div`,{className:`aivex:flex aivex:w-full aivex:flex-col aivex:items-start aivex:gap-2xl aivex:rounded-2xl aivex:border aivex:border-border-subtle aivex:bg-bg-primary aivex:p-2xl aivex:shadow-xl`,children:[(0,c.jsxs)(`div`,{className:t.cn(`aivex:flex aivex:w-full aivex:flex-col aivex:gap-xs aivex:px-md aivex:py-xs`,O?`aivex:items-center aivex:justify-center aivex:text-center`:`aivex:items-start aivex:text-left`),children:[D&&(0,c.jsx)(`span`,{className:t.cn(`aivex:flex aivex:h-12 aivex:w-12 aivex:shrink-0 aivex:items-center aivex:justify-center aivex:leading-none`,E.className),children:(0,c.jsx)(D,{size:28})}),(0,c.jsx)(l.AlertDialog.Title,{className:`aivex:m-0 aivex:w-full aivex:whitespace-pre-line aivex:text-heading-xs aivex:text-text-primary`,children:h}),g&&(0,c.jsx)(l.AlertDialog.Description,{className:`aivex:m-0 aivex:w-full aivex:whitespace-pre-line aivex:text-body-lg-regular aivex:text-text-secondary`,children:g}),_]}),(v||y)&&(0,c.jsxs)(`div`,{className:`aivex:flex aivex:w-full aivex:items-center aivex:justify-center aivex:gap-lg`,children:[v&&(0,c.jsx)(f,{...v,buttonRef:S}),y&&(0,c.jsx)(p,{...y,defaultColor:k})]})]})})]})})})}function f({children:e,onClick:t,buttonRef:n,...i}){return(0,c.jsx)(l.AlertDialog.Close,{ref:n,render:(0,c.jsx)(r.Button,{variant:`solid`,color:`secondary`,size:`lg`,className:`aivex:min-w-0 aivex:basis-0 aivex:flex-1`,onClick:e=>{t?.(e)},...i,children:e})})}function p({children:e,defaultColor:t,onClick:n,...i}){return(0,c.jsx)(r.Button,{variant:`solid`,color:t,size:`lg`,className:`aivex:min-w-0 aivex:basis-0 aivex:flex-1`,onClick:e=>{n?.(e)},...i,children:e})}exports.Dialog=d;
2
+ //# sourceMappingURL=Dialog.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dialog.cjs","names":[],"sources":["../../../src/components/Dialog/Dialog.tsx"],"sourcesContent":["import { AlertDialog as DialogPrimitive } from \"@base-ui/react/alert-dialog\";\nimport { type ReactNode, type Ref, useRef } from \"react\";\nimport { Button, type ButtonProps } from \"@/components/Button\";\nimport { CheckCircleFilledIcon, WarningTriangleFilledIcon } from \"@/components/Icon\";\nimport { Overlay } from \"@/components/Overlay\";\nimport { cn } from \"@/utils/cn\";\nimport type { DataAttributes } from \"@/utils/dataAttributes\";\nimport { PortalEventBoundary } from \"@/utils/PortalEventBoundary\";\nimport { useComposedRefs } from \"@/utils/useComposedRefs\";\nimport { useModalFocus } from \"@/utils/useModalFocus\";\n\n/**\n * Dialog 톤. default는 확인 버튼이 primary, warning은 확인 버튼이 danger 색이 된다\n * (showIcon이면 아이콘도 성공/경고 아이콘으로 바뀐다).\n */\nexport type DialogVariant = \"default\" | \"warning\";\n/** Dialog 하단 버튼 — Button props에서 색·크기·스타일은 Dialog가 고정하고 라벨은 children으로 받는다. */\nexport interface DialogButtonProps\n extends Omit<\n ButtonProps,\n \"children\" | \"className\" | \"color\" | \"ref\" | \"render\" | \"size\" | \"style\" | \"variant\"\n >,\n DataAttributes {\n /** 버튼 라벨 */\n children: ReactNode;\n}\n\n/** 확인 버튼 props. 누른다고 자동으로 닫히지 않으니 onClick에서 open을 false로 바꾼다. */\nexport type DialogConfirmButtonProps = DialogButtonProps;\n\ninterface DialogConfirmButtonInternalProps extends DialogConfirmButtonProps {\n defaultColor: ButtonProps[\"color\"];\n}\n\nexport interface DialogProps {\n /** 열림 상태(제어). onOpenChange와 함께 쓴다. */\n open?: boolean;\n /** 초기 열림 상태(비제어). */\n defaultOpen?: boolean;\n /**\n * 열림 상태가 바뀔 때 호출 — Esc·취소 버튼 모두 false로 알린다.\n * 두 번째 인자의 `reason`(\"escape-key\"·\"close-press\" 등)으로 원인을 구분하고\n * `cancel()`로 닫힘을 막는다.\n */\n onOpenChange?: DialogPrimitive.Root.Props[\"onOpenChange\"];\n /**\n * 톤. warning이면 확인 버튼이 danger 색이 된다(삭제 등 되돌릴 수 없는 동작).\n * @default \"default\"\n */\n variant?: DialogVariant;\n /** 제목(필수) — 다이얼로그의 접근성 이름이 된다. 줄바꿈(\\n)을 그대로 표시한다. */\n title: ReactNode;\n /** 제목 아래 설명 — 접근성 설명(aria-describedby)으로 연결된다. */\n description?: ReactNode;\n /** 설명 아래에 덧붙이는 추가 내용(체크박스 등). */\n children?: ReactNode;\n /** 취소 버튼. 누르면 다이얼로그가 닫힌다(onOpenChange(false) 호출). */\n cancelButton?: DialogButtonProps;\n /** 확인 버튼. 자동으로 닫히지 않으니 onClick에서 직접 닫는다. */\n confirmButton?: DialogConfirmButtonProps;\n /**\n * 제목 위에 톤 아이콘(default=성공, warning=경고)을 표시하고 내용을 가운데 정렬한다.\n * @default false\n */\n showIcon?: boolean;\n ref?: Ref<HTMLDivElement>;\n}\n\nconst iconMap = {\n default: { component: CheckCircleFilledIcon, className: \"aivex:text-icon-success\" },\n warning: { component: WarningTriangleFilledIcon, className: \"aivex:text-icon-warning\" },\n} as const;\n\n/**\n * 사용자에게 확인·취소를 묻는 작은 경고형(alert) 다이얼로그.\n *\n * 제목·설명·버튼 1~2개로 끝나는 확인 질문(저장할까요? 삭제할까요?)에 쓴다. 입력 폼이나\n * 긴 내용이 들어가면 Modal, 화면 안에 머무는 안내 문구는 Messagebox, 잠깐 뜨는 알림은\n * Toast를 쓴다. alertdialog라 바깥 클릭으로 닫히지 않고 Esc·취소 버튼으로만 닫힌다.\n * open/onOpenChange로 제어하거나 defaultOpen으로 비제어로 쓴다. title은 필수다.\n *\n * @example\n * ```tsx\n * import { Button, Dialog } from \"@aivex/ui\";\n *\n * const [open, setOpen] = useState(false);\n *\n * <Button color=\"danger\" onClick={() => setOpen(true)}>삭제</Button>\n * <Dialog\n * open={open}\n * onOpenChange={setOpen}\n * variant=\"warning\"\n * title=\"프로젝트를 삭제할까요?\"\n * description=\"삭제한 프로젝트는 복구할 수 없습니다.\"\n * cancelButton={{ children: \"취소\" }}\n * confirmButton={{ children: \"삭제\", onClick: () => setOpen(false) }}\n * />\n * ```\n */\nfunction Dialog({\n open,\n defaultOpen,\n onOpenChange,\n variant = \"default\",\n title,\n description,\n children,\n cancelButton,\n confirmButton,\n showIcon = false,\n ref,\n}: DialogProps) {\n const cancelRef = useRef<HTMLButtonElement>(null);\n const popupRef = useRef<HTMLDivElement | null>(null);\n const composedRef = useComposedRefs(ref, popupRef);\n const focus = useModalFocus({\n open,\n modal: true,\n // 확인 질문은 덜 위험한 취소 버튼에서 시작한다. 취소 버튼이 없으면 첫 탭 가능한 요소.\n initialFocus: cancelButton ? cancelRef : true,\n finalFocus: undefined,\n popupRef,\n });\n const icon = iconMap[variant];\n const IconComponent = showIcon ? icon.component : null;\n const isCenterAligned = Boolean(IconComponent);\n const confirmButtonColor = variant === \"warning\" ? \"danger\" : \"primary\";\n\n return (\n <DialogPrimitive.Root open={open} defaultOpen={defaultOpen} onOpenChange={onOpenChange}>\n <PortalEventBoundary>\n <DialogPrimitive.Portal>\n {/* 다른 모달 위에 뜰 때도 자기 딤을 그린다(forceRender). */}\n <DialogPrimitive.Backdrop forceRender render={<Overlay variant=\"dim\" />} />\n <DialogPrimitive.Popup\n ref={composedRef}\n initialFocus={focus.initialFocus}\n finalFocus={focus.finalFocus}\n onFocusCapture={focus.onFocusCapture}\n className=\"aivex:fixed aivex:left-1/2 aivex:top-1/2 aivex:z-(--aivex-z-modal) aivex:w-[calc(100vw-32px)] aivex:max-w-[384px] aivex:-translate-x-1/2 aivex:-translate-y-1/2 aivex:outline-none\"\n >\n <div className=\"aivex:flex aivex:w-full aivex:flex-col aivex:items-start aivex:gap-2xl aivex:rounded-2xl aivex:border aivex:border-border-subtle aivex:bg-bg-primary aivex:p-2xl aivex:shadow-xl\">\n <div\n className={cn(\n \"aivex:flex aivex:w-full aivex:flex-col aivex:gap-xs aivex:px-md aivex:py-xs\",\n isCenterAligned\n ? \"aivex:items-center aivex:justify-center aivex:text-center\"\n : \"aivex:items-start aivex:text-left\",\n )}\n >\n {IconComponent && (\n <span\n className={cn(\n \"aivex:flex aivex:h-12 aivex:w-12 aivex:shrink-0 aivex:items-center aivex:justify-center aivex:leading-none\",\n icon.className,\n )}\n >\n <IconComponent size={28} />\n </span>\n )}\n <DialogPrimitive.Title className=\"aivex:m-0 aivex:w-full aivex:whitespace-pre-line aivex:text-heading-xs aivex:text-text-primary\">\n {title}\n </DialogPrimitive.Title>\n {description && (\n <DialogPrimitive.Description className=\"aivex:m-0 aivex:w-full aivex:whitespace-pre-line aivex:text-body-lg-regular aivex:text-text-secondary\">\n {description}\n </DialogPrimitive.Description>\n )}\n {children}\n </div>\n\n {(cancelButton || confirmButton) && (\n <div className=\"aivex:flex aivex:w-full aivex:items-center aivex:justify-center aivex:gap-lg\">\n {cancelButton && <DialogCancelButton {...cancelButton} buttonRef={cancelRef} />}\n {confirmButton && (\n <DialogConfirmButton {...confirmButton} defaultColor={confirmButtonColor} />\n )}\n </div>\n )}\n </div>\n </DialogPrimitive.Popup>\n </DialogPrimitive.Portal>\n </PortalEventBoundary>\n </DialogPrimitive.Root>\n );\n}\n\nfunction DialogCancelButton({\n children,\n onClick,\n buttonRef,\n ...props\n}: DialogButtonProps & { buttonRef: Ref<HTMLButtonElement> }) {\n return (\n <DialogPrimitive.Close\n ref={buttonRef}\n render={\n <Button\n variant=\"solid\"\n color=\"secondary\"\n size=\"lg\"\n className=\"aivex:min-w-0 aivex:basis-0 aivex:flex-1\"\n onClick={(event) => {\n void onClick?.(event);\n }}\n {...props}\n >\n {children}\n </Button>\n }\n />\n );\n}\n\nfunction DialogConfirmButton({\n children,\n defaultColor,\n onClick,\n ...props\n}: DialogConfirmButtonInternalProps) {\n return (\n <Button\n variant=\"solid\"\n color={defaultColor}\n size=\"lg\"\n className=\"aivex:min-w-0 aivex:basis-0 aivex:flex-1\"\n onClick={(event) => {\n void onClick?.(event);\n }}\n {...props}\n >\n {children}\n </Button>\n );\n}\n\nexport { Dialog };\n"],"mappings":"6aAoEA,IAAM,EAAU,CACd,QAAS,CAAE,UAAW,EAAA,sBAAuB,UAAW,0BAA2B,CACnF,QAAS,CAAE,UAAW,EAAA,0BAA2B,UAAW,0BAA2B,CACxF,CA4BD,SAAS,EAAO,CACd,OACA,cACA,eACA,UAAU,UACV,QACA,cACA,WACA,eACA,gBACA,WAAW,GACX,OACc,CACd,IAAM,GAAA,EAAA,EAAA,QAAsC,KAAK,CAC3C,GAAA,EAAA,EAAA,QAAyC,KAAK,CAC9C,EAAc,EAAA,gBAAgB,EAAK,EAAS,CAC5C,EAAQ,EAAA,cAAc,CAC1B,OACA,MAAO,GAEP,aAAc,EAAe,EAAY,GACzC,WAAY,IAAA,GACZ,WACD,CAAC,CACI,EAAO,EAAQ,GACf,EAAgB,EAAW,EAAK,UAAY,KAC5C,EAAkB,EAAQ,EAC1B,EAAqB,IAAY,UAAY,SAAW,UAE9D,OACE,EAAA,EAAA,KAAC,EAAA,YAAgB,KAAjB,CAA4B,OAAmB,cAA2B,yBACxE,EAAA,EAAA,KAAC,EAAA,oBAAD,CAAA,UACE,EAAA,EAAA,MAAC,EAAA,YAAgB,OAAjB,CAAA,SAAA,EAEE,EAAA,EAAA,KAAC,EAAA,YAAgB,SAAjB,CAA0B,YAAA,GAAY,QAAQ,EAAA,EAAA,KAAC,EAAA,QAAD,CAAS,QAAQ,MAAQ,CAAA,CAAI,CAAA,EAC3E,EAAA,EAAA,KAAC,EAAA,YAAgB,MAAjB,CACE,IAAK,EACL,aAAc,EAAM,aACpB,WAAY,EAAM,WAClB,eAAgB,EAAM,eACtB,UAAU,+LAEV,EAAA,EAAA,MAAC,MAAD,CAAK,UAAU,4LAAf,EACE,EAAA,EAAA,MAAC,MAAD,CACE,UAAW,EAAA,GACT,8EACA,EACI,4DACA,oCACL,UANH,CAQG,IACC,EAAA,EAAA,KAAC,OAAD,CACE,UAAW,EAAA,GACT,6GACA,EAAK,UACN,WAED,EAAA,EAAA,KAAC,EAAD,CAAe,KAAM,GAAM,CAAA,CACtB,CAAA,EAET,EAAA,EAAA,KAAC,EAAA,YAAgB,MAAjB,CAAuB,UAAU,0GAC9B,EACqB,CAAA,CACvB,IACC,EAAA,EAAA,KAAC,EAAA,YAAgB,YAAjB,CAA6B,UAAU,iHACpC,EAC2B,CAAA,CAE/B,EACG,IAEJ,GAAgB,KAChB,EAAA,EAAA,MAAC,MAAD,CAAK,UAAU,wFAAf,CACG,IAAgB,EAAA,EAAA,KAAC,EAAD,CAAoB,GAAI,EAAc,UAAW,EAAa,CAAA,CAC9E,IACC,EAAA,EAAA,KAAC,EAAD,CAAqB,GAAI,EAAe,aAAc,EAAsB,CAAA,CAE1E,GAEJ,GACgB,CAAA,CACD,CAAA,CAAA,CACL,CAAA,CACD,CAAA,CAI3B,SAAS,EAAmB,CAC1B,WACA,UACA,YACA,GAAG,GACyD,CAC5D,OACE,EAAA,EAAA,KAAC,EAAA,YAAgB,MAAjB,CACE,IAAK,EACL,QACE,EAAA,EAAA,KAAC,EAAA,OAAD,CACE,QAAQ,QACR,MAAM,YACN,KAAK,KACL,UAAU,2CACV,QAAU,GAAU,CACb,IAAU,EAAM,EAEvB,GAAI,EAEH,WACM,CAAA,CAEX,CAAA,CAIN,SAAS,EAAoB,CAC3B,WACA,eACA,UACA,GAAG,GACgC,CACnC,OACE,EAAA,EAAA,KAAC,EAAA,OAAD,CACE,QAAQ,QACR,MAAO,EACP,KAAK,KACL,UAAU,2CACV,QAAU,GAAU,CACb,IAAU,EAAM,EAEvB,GAAI,EAEH,WACM,CAAA"}
@@ -0,0 +1,77 @@
1
+ import { AlertDialog as DialogPrimitive } from "@base-ui/react/alert-dialog";
2
+ import { type ReactNode, type Ref } from "react";
3
+ import { type ButtonProps } from "../Button/index.cjs";
4
+ import type { DataAttributes } from "../../utils/dataAttributes.cjs";
5
+ /**
6
+ * Dialog 톤. default는 확인 버튼이 primary, warning은 확인 버튼이 danger 색이 된다
7
+ * (showIcon이면 아이콘도 성공/경고 아이콘으로 바뀐다).
8
+ */
9
+ export type DialogVariant = "default" | "warning";
10
+ /** Dialog 하단 버튼 — Button props에서 색·크기·스타일은 Dialog가 고정하고 라벨은 children으로 받는다. */
11
+ export interface DialogButtonProps extends Omit<ButtonProps, "children" | "className" | "color" | "ref" | "render" | "size" | "style" | "variant">, DataAttributes {
12
+ /** 버튼 라벨 */
13
+ children: ReactNode;
14
+ }
15
+ /** 확인 버튼 props. 누른다고 자동으로 닫히지 않으니 onClick에서 open을 false로 바꾼다. */
16
+ export type DialogConfirmButtonProps = DialogButtonProps;
17
+ export interface DialogProps {
18
+ /** 열림 상태(제어). onOpenChange와 함께 쓴다. */
19
+ open?: boolean;
20
+ /** 초기 열림 상태(비제어). */
21
+ defaultOpen?: boolean;
22
+ /**
23
+ * 열림 상태가 바뀔 때 호출 — Esc·취소 버튼 모두 false로 알린다.
24
+ * 두 번째 인자의 `reason`("escape-key"·"close-press" 등)으로 원인을 구분하고
25
+ * `cancel()`로 닫힘을 막는다.
26
+ */
27
+ onOpenChange?: DialogPrimitive.Root.Props["onOpenChange"];
28
+ /**
29
+ * 톤. warning이면 확인 버튼이 danger 색이 된다(삭제 등 되돌릴 수 없는 동작).
30
+ * @default "default"
31
+ */
32
+ variant?: DialogVariant;
33
+ /** 제목(필수) — 다이얼로그의 접근성 이름이 된다. 줄바꿈(\n)을 그대로 표시한다. */
34
+ title: ReactNode;
35
+ /** 제목 아래 설명 — 접근성 설명(aria-describedby)으로 연결된다. */
36
+ description?: ReactNode;
37
+ /** 설명 아래에 덧붙이는 추가 내용(체크박스 등). */
38
+ children?: ReactNode;
39
+ /** 취소 버튼. 누르면 다이얼로그가 닫힌다(onOpenChange(false) 호출). */
40
+ cancelButton?: DialogButtonProps;
41
+ /** 확인 버튼. 자동으로 닫히지 않으니 onClick에서 직접 닫는다. */
42
+ confirmButton?: DialogConfirmButtonProps;
43
+ /**
44
+ * 제목 위에 톤 아이콘(default=성공, warning=경고)을 표시하고 내용을 가운데 정렬한다.
45
+ * @default false
46
+ */
47
+ showIcon?: boolean;
48
+ ref?: Ref<HTMLDivElement>;
49
+ }
50
+ /**
51
+ * 사용자에게 확인·취소를 묻는 작은 경고형(alert) 다이얼로그.
52
+ *
53
+ * 제목·설명·버튼 1~2개로 끝나는 확인 질문(저장할까요? 삭제할까요?)에 쓴다. 입력 폼이나
54
+ * 긴 내용이 들어가면 Modal, 화면 안에 머무는 안내 문구는 Messagebox, 잠깐 뜨는 알림은
55
+ * Toast를 쓴다. alertdialog라 바깥 클릭으로 닫히지 않고 Esc·취소 버튼으로만 닫힌다.
56
+ * open/onOpenChange로 제어하거나 defaultOpen으로 비제어로 쓴다. title은 필수다.
57
+ *
58
+ * @example
59
+ * ```tsx
60
+ * import { Button, Dialog } from "@aivex/ui";
61
+ *
62
+ * const [open, setOpen] = useState(false);
63
+ *
64
+ * <Button color="danger" onClick={() => setOpen(true)}>삭제</Button>
65
+ * <Dialog
66
+ * open={open}
67
+ * onOpenChange={setOpen}
68
+ * variant="warning"
69
+ * title="프로젝트를 삭제할까요?"
70
+ * description="삭제한 프로젝트는 복구할 수 없습니다."
71
+ * cancelButton={{ children: "취소" }}
72
+ * confirmButton={{ children: "삭제", onClick: () => setOpen(false) }}
73
+ * />
74
+ * ```
75
+ */
76
+ declare function Dialog({ open, defaultOpen, onOpenChange, variant, title, description, children, cancelButton, confirmButton, showIcon, ref, }: DialogProps): import("react/jsx-runtime").JSX.Element;
77
+ export { Dialog };
@@ -1,20 +1,77 @@
1
- import * as RadixDialog from "@radix-ui/react-alert-dialog";
2
- import type { ComponentPropsWithoutRef, ReactNode, Ref } from "react";
3
- import { type ButtonProps } from "@/components/Button";
1
+ import { AlertDialog as DialogPrimitive } from "@base-ui/react/alert-dialog";
2
+ import { type ReactNode, type Ref } from "react";
3
+ import { type ButtonProps } from "../Button/index.js";
4
+ import type { DataAttributes } from "../../utils/dataAttributes.js";
5
+ /**
6
+ * Dialog 톤. default는 확인 버튼이 primary, warning은 확인 버튼이 danger 색이 된다
7
+ * (showIcon이면 아이콘도 성공/경고 아이콘으로 바뀐다).
8
+ */
4
9
  export type DialogVariant = "default" | "warning";
5
- export interface DialogButtonProps extends Omit<ButtonProps, "asChild" | "children" | "className" | "color" | "ref" | "size" | "style" | "variant"> {
10
+ /** Dialog 하단 버튼 — Button props에서 색·크기·스타일은 Dialog가 고정하고 라벨은 children으로 받는다. */
11
+ export interface DialogButtonProps extends Omit<ButtonProps, "children" | "className" | "color" | "ref" | "render" | "size" | "style" | "variant">, DataAttributes {
12
+ /** 버튼 라벨 */
6
13
  children: ReactNode;
7
14
  }
15
+ /** 확인 버튼 props. 누른다고 자동으로 닫히지 않으니 onClick에서 open을 false로 바꾼다. */
8
16
  export type DialogConfirmButtonProps = DialogButtonProps;
9
- export interface DialogProps extends Omit<ComponentPropsWithoutRef<typeof RadixDialog.Root>, "children"> {
17
+ export interface DialogProps {
18
+ /** 열림 상태(제어). onOpenChange와 함께 쓴다. */
19
+ open?: boolean;
20
+ /** 초기 열림 상태(비제어). */
21
+ defaultOpen?: boolean;
22
+ /**
23
+ * 열림 상태가 바뀔 때 호출 — Esc·취소 버튼 모두 false로 알린다.
24
+ * 두 번째 인자의 `reason`("escape-key"·"close-press" 등)으로 원인을 구분하고
25
+ * `cancel()`로 닫힘을 막는다.
26
+ */
27
+ onOpenChange?: DialogPrimitive.Root.Props["onOpenChange"];
28
+ /**
29
+ * 톤. warning이면 확인 버튼이 danger 색이 된다(삭제 등 되돌릴 수 없는 동작).
30
+ * @default "default"
31
+ */
10
32
  variant?: DialogVariant;
33
+ /** 제목(필수) — 다이얼로그의 접근성 이름이 된다. 줄바꿈(\n)을 그대로 표시한다. */
11
34
  title: ReactNode;
35
+ /** 제목 아래 설명 — 접근성 설명(aria-describedby)으로 연결된다. */
12
36
  description?: ReactNode;
37
+ /** 설명 아래에 덧붙이는 추가 내용(체크박스 등). */
13
38
  children?: ReactNode;
39
+ /** 취소 버튼. 누르면 다이얼로그가 닫힌다(onOpenChange(false) 호출). */
14
40
  cancelButton?: DialogButtonProps;
41
+ /** 확인 버튼. 자동으로 닫히지 않으니 onClick에서 직접 닫는다. */
15
42
  confirmButton?: DialogConfirmButtonProps;
43
+ /**
44
+ * 제목 위에 톤 아이콘(default=성공, warning=경고)을 표시하고 내용을 가운데 정렬한다.
45
+ * @default false
46
+ */
16
47
  showIcon?: boolean;
17
48
  ref?: Ref<HTMLDivElement>;
18
49
  }
19
- declare function Dialog({ open, defaultOpen, onOpenChange, variant, title, description, children, cancelButton, confirmButton, showIcon, ref, ...props }: DialogProps): import("react/jsx-runtime").JSX.Element;
50
+ /**
51
+ * 사용자에게 확인·취소를 묻는 작은 경고형(alert) 다이얼로그.
52
+ *
53
+ * 제목·설명·버튼 1~2개로 끝나는 확인 질문(저장할까요? 삭제할까요?)에 쓴다. 입력 폼이나
54
+ * 긴 내용이 들어가면 Modal, 화면 안에 머무는 안내 문구는 Messagebox, 잠깐 뜨는 알림은
55
+ * Toast를 쓴다. alertdialog라 바깥 클릭으로 닫히지 않고 Esc·취소 버튼으로만 닫힌다.
56
+ * open/onOpenChange로 제어하거나 defaultOpen으로 비제어로 쓴다. title은 필수다.
57
+ *
58
+ * @example
59
+ * ```tsx
60
+ * import { Button, Dialog } from "@aivex/ui";
61
+ *
62
+ * const [open, setOpen] = useState(false);
63
+ *
64
+ * <Button color="danger" onClick={() => setOpen(true)}>삭제</Button>
65
+ * <Dialog
66
+ * open={open}
67
+ * onOpenChange={setOpen}
68
+ * variant="warning"
69
+ * title="프로젝트를 삭제할까요?"
70
+ * description="삭제한 프로젝트는 복구할 수 없습니다."
71
+ * cancelButton={{ children: "취소" }}
72
+ * confirmButton={{ children: "삭제", onClick: () => setOpen(false) }}
73
+ * />
74
+ * ```
75
+ */
76
+ declare function Dialog({ open, defaultOpen, onOpenChange, variant, title, description, children, cancelButton, confirmButton, showIcon, ref, }: DialogProps): import("react/jsx-runtime").JSX.Element;
20
77
  export { Dialog };
@@ -0,0 +1,109 @@
1
+ "use client";
2
+ import { CheckCircleFilledIcon as e, WarningTriangleFilledIcon as t } from "../Icon/index.js";
3
+ import { cn as n } from "../../utils.js";
4
+ import { PortalEventBoundary as r } from "../../utils/PortalEventBoundary.js";
5
+ import { Button as i } from "../Button/Button.js";
6
+ import { useComposedRefs as a } from "../../utils/useComposedRefs.js";
7
+ import { Overlay as o } from "../Overlay/Overlay.js";
8
+ import { useModalFocus as s } from "../../utils/useModalFocus.js";
9
+ import { useRef as c } from "react";
10
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
11
+ import { AlertDialog as d } from "@base-ui/react/alert-dialog";
12
+ //#region src/components/Dialog/Dialog.tsx
13
+ var f = {
14
+ default: {
15
+ component: e,
16
+ className: "aivex:text-icon-success"
17
+ },
18
+ warning: {
19
+ component: t,
20
+ className: "aivex:text-icon-warning"
21
+ }
22
+ };
23
+ function p({ open: e, defaultOpen: t, onOpenChange: i, variant: p = "default", title: g, description: _, children: v, cancelButton: y, confirmButton: b, showIcon: x = !1, ref: S }) {
24
+ let C = c(null), w = c(null), T = a(S, w), E = s({
25
+ open: e,
26
+ modal: !0,
27
+ initialFocus: y ? C : !0,
28
+ finalFocus: void 0,
29
+ popupRef: w
30
+ }), D = f[p], O = x ? D.component : null, k = !!O, A = p === "warning" ? "danger" : "primary";
31
+ return /* @__PURE__ */ l(d.Root, {
32
+ open: e,
33
+ defaultOpen: t,
34
+ onOpenChange: i,
35
+ children: /* @__PURE__ */ l(r, { children: /* @__PURE__ */ u(d.Portal, { children: [/* @__PURE__ */ l(d.Backdrop, {
36
+ forceRender: !0,
37
+ render: /* @__PURE__ */ l(o, { variant: "dim" })
38
+ }), /* @__PURE__ */ l(d.Popup, {
39
+ ref: T,
40
+ initialFocus: E.initialFocus,
41
+ finalFocus: E.finalFocus,
42
+ onFocusCapture: E.onFocusCapture,
43
+ className: "aivex:fixed aivex:left-1/2 aivex:top-1/2 aivex:z-(--aivex-z-modal) aivex:w-[calc(100vw-32px)] aivex:max-w-[384px] aivex:-translate-x-1/2 aivex:-translate-y-1/2 aivex:outline-none",
44
+ children: /* @__PURE__ */ u("div", {
45
+ className: "aivex:flex aivex:w-full aivex:flex-col aivex:items-start aivex:gap-2xl aivex:rounded-2xl aivex:border aivex:border-border-subtle aivex:bg-bg-primary aivex:p-2xl aivex:shadow-xl",
46
+ children: [/* @__PURE__ */ u("div", {
47
+ className: n("aivex:flex aivex:w-full aivex:flex-col aivex:gap-xs aivex:px-md aivex:py-xs", k ? "aivex:items-center aivex:justify-center aivex:text-center" : "aivex:items-start aivex:text-left"),
48
+ children: [
49
+ O && /* @__PURE__ */ l("span", {
50
+ className: n("aivex:flex aivex:h-12 aivex:w-12 aivex:shrink-0 aivex:items-center aivex:justify-center aivex:leading-none", D.className),
51
+ children: /* @__PURE__ */ l(O, { size: 28 })
52
+ }),
53
+ /* @__PURE__ */ l(d.Title, {
54
+ className: "aivex:m-0 aivex:w-full aivex:whitespace-pre-line aivex:text-heading-xs aivex:text-text-primary",
55
+ children: g
56
+ }),
57
+ _ && /* @__PURE__ */ l(d.Description, {
58
+ className: "aivex:m-0 aivex:w-full aivex:whitespace-pre-line aivex:text-body-lg-regular aivex:text-text-secondary",
59
+ children: _
60
+ }),
61
+ v
62
+ ]
63
+ }), (y || b) && /* @__PURE__ */ u("div", {
64
+ className: "aivex:flex aivex:w-full aivex:items-center aivex:justify-center aivex:gap-lg",
65
+ children: [y && /* @__PURE__ */ l(m, {
66
+ ...y,
67
+ buttonRef: C
68
+ }), b && /* @__PURE__ */ l(h, {
69
+ ...b,
70
+ defaultColor: A
71
+ })]
72
+ })]
73
+ })
74
+ })] }) })
75
+ });
76
+ }
77
+ function m({ children: e, onClick: t, buttonRef: n, ...r }) {
78
+ return /* @__PURE__ */ l(d.Close, {
79
+ ref: n,
80
+ render: /* @__PURE__ */ l(i, {
81
+ variant: "solid",
82
+ color: "secondary",
83
+ size: "lg",
84
+ className: "aivex:min-w-0 aivex:basis-0 aivex:flex-1",
85
+ onClick: (e) => {
86
+ t?.(e);
87
+ },
88
+ ...r,
89
+ children: e
90
+ })
91
+ });
92
+ }
93
+ function h({ children: e, defaultColor: t, onClick: n, ...r }) {
94
+ return /* @__PURE__ */ l(i, {
95
+ variant: "solid",
96
+ color: t,
97
+ size: "lg",
98
+ className: "aivex:min-w-0 aivex:basis-0 aivex:flex-1",
99
+ onClick: (e) => {
100
+ n?.(e);
101
+ },
102
+ ...r,
103
+ children: e
104
+ });
105
+ }
106
+ //#endregion
107
+ export { p as Dialog };
108
+
109
+ //# sourceMappingURL=Dialog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dialog.js","names":[],"sources":["../../../src/components/Dialog/Dialog.tsx"],"sourcesContent":["import { AlertDialog as DialogPrimitive } from \"@base-ui/react/alert-dialog\";\nimport { type ReactNode, type Ref, useRef } from \"react\";\nimport { Button, type ButtonProps } from \"@/components/Button\";\nimport { CheckCircleFilledIcon, WarningTriangleFilledIcon } from \"@/components/Icon\";\nimport { Overlay } from \"@/components/Overlay\";\nimport { cn } from \"@/utils/cn\";\nimport type { DataAttributes } from \"@/utils/dataAttributes\";\nimport { PortalEventBoundary } from \"@/utils/PortalEventBoundary\";\nimport { useComposedRefs } from \"@/utils/useComposedRefs\";\nimport { useModalFocus } from \"@/utils/useModalFocus\";\n\n/**\n * Dialog 톤. default는 확인 버튼이 primary, warning은 확인 버튼이 danger 색이 된다\n * (showIcon이면 아이콘도 성공/경고 아이콘으로 바뀐다).\n */\nexport type DialogVariant = \"default\" | \"warning\";\n/** Dialog 하단 버튼 — Button props에서 색·크기·스타일은 Dialog가 고정하고 라벨은 children으로 받는다. */\nexport interface DialogButtonProps\n extends Omit<\n ButtonProps,\n \"children\" | \"className\" | \"color\" | \"ref\" | \"render\" | \"size\" | \"style\" | \"variant\"\n >,\n DataAttributes {\n /** 버튼 라벨 */\n children: ReactNode;\n}\n\n/** 확인 버튼 props. 누른다고 자동으로 닫히지 않으니 onClick에서 open을 false로 바꾼다. */\nexport type DialogConfirmButtonProps = DialogButtonProps;\n\ninterface DialogConfirmButtonInternalProps extends DialogConfirmButtonProps {\n defaultColor: ButtonProps[\"color\"];\n}\n\nexport interface DialogProps {\n /** 열림 상태(제어). onOpenChange와 함께 쓴다. */\n open?: boolean;\n /** 초기 열림 상태(비제어). */\n defaultOpen?: boolean;\n /**\n * 열림 상태가 바뀔 때 호출 — Esc·취소 버튼 모두 false로 알린다.\n * 두 번째 인자의 `reason`(\"escape-key\"·\"close-press\" 등)으로 원인을 구분하고\n * `cancel()`로 닫힘을 막는다.\n */\n onOpenChange?: DialogPrimitive.Root.Props[\"onOpenChange\"];\n /**\n * 톤. warning이면 확인 버튼이 danger 색이 된다(삭제 등 되돌릴 수 없는 동작).\n * @default \"default\"\n */\n variant?: DialogVariant;\n /** 제목(필수) — 다이얼로그의 접근성 이름이 된다. 줄바꿈(\\n)을 그대로 표시한다. */\n title: ReactNode;\n /** 제목 아래 설명 — 접근성 설명(aria-describedby)으로 연결된다. */\n description?: ReactNode;\n /** 설명 아래에 덧붙이는 추가 내용(체크박스 등). */\n children?: ReactNode;\n /** 취소 버튼. 누르면 다이얼로그가 닫힌다(onOpenChange(false) 호출). */\n cancelButton?: DialogButtonProps;\n /** 확인 버튼. 자동으로 닫히지 않으니 onClick에서 직접 닫는다. */\n confirmButton?: DialogConfirmButtonProps;\n /**\n * 제목 위에 톤 아이콘(default=성공, warning=경고)을 표시하고 내용을 가운데 정렬한다.\n * @default false\n */\n showIcon?: boolean;\n ref?: Ref<HTMLDivElement>;\n}\n\nconst iconMap = {\n default: { component: CheckCircleFilledIcon, className: \"aivex:text-icon-success\" },\n warning: { component: WarningTriangleFilledIcon, className: \"aivex:text-icon-warning\" },\n} as const;\n\n/**\n * 사용자에게 확인·취소를 묻는 작은 경고형(alert) 다이얼로그.\n *\n * 제목·설명·버튼 1~2개로 끝나는 확인 질문(저장할까요? 삭제할까요?)에 쓴다. 입력 폼이나\n * 긴 내용이 들어가면 Modal, 화면 안에 머무는 안내 문구는 Messagebox, 잠깐 뜨는 알림은\n * Toast를 쓴다. alertdialog라 바깥 클릭으로 닫히지 않고 Esc·취소 버튼으로만 닫힌다.\n * open/onOpenChange로 제어하거나 defaultOpen으로 비제어로 쓴다. title은 필수다.\n *\n * @example\n * ```tsx\n * import { Button, Dialog } from \"@aivex/ui\";\n *\n * const [open, setOpen] = useState(false);\n *\n * <Button color=\"danger\" onClick={() => setOpen(true)}>삭제</Button>\n * <Dialog\n * open={open}\n * onOpenChange={setOpen}\n * variant=\"warning\"\n * title=\"프로젝트를 삭제할까요?\"\n * description=\"삭제한 프로젝트는 복구할 수 없습니다.\"\n * cancelButton={{ children: \"취소\" }}\n * confirmButton={{ children: \"삭제\", onClick: () => setOpen(false) }}\n * />\n * ```\n */\nfunction Dialog({\n open,\n defaultOpen,\n onOpenChange,\n variant = \"default\",\n title,\n description,\n children,\n cancelButton,\n confirmButton,\n showIcon = false,\n ref,\n}: DialogProps) {\n const cancelRef = useRef<HTMLButtonElement>(null);\n const popupRef = useRef<HTMLDivElement | null>(null);\n const composedRef = useComposedRefs(ref, popupRef);\n const focus = useModalFocus({\n open,\n modal: true,\n // 확인 질문은 덜 위험한 취소 버튼에서 시작한다. 취소 버튼이 없으면 첫 탭 가능한 요소.\n initialFocus: cancelButton ? cancelRef : true,\n finalFocus: undefined,\n popupRef,\n });\n const icon = iconMap[variant];\n const IconComponent = showIcon ? icon.component : null;\n const isCenterAligned = Boolean(IconComponent);\n const confirmButtonColor = variant === \"warning\" ? \"danger\" : \"primary\";\n\n return (\n <DialogPrimitive.Root open={open} defaultOpen={defaultOpen} onOpenChange={onOpenChange}>\n <PortalEventBoundary>\n <DialogPrimitive.Portal>\n {/* 다른 모달 위에 뜰 때도 자기 딤을 그린다(forceRender). */}\n <DialogPrimitive.Backdrop forceRender render={<Overlay variant=\"dim\" />} />\n <DialogPrimitive.Popup\n ref={composedRef}\n initialFocus={focus.initialFocus}\n finalFocus={focus.finalFocus}\n onFocusCapture={focus.onFocusCapture}\n className=\"aivex:fixed aivex:left-1/2 aivex:top-1/2 aivex:z-(--aivex-z-modal) aivex:w-[calc(100vw-32px)] aivex:max-w-[384px] aivex:-translate-x-1/2 aivex:-translate-y-1/2 aivex:outline-none\"\n >\n <div className=\"aivex:flex aivex:w-full aivex:flex-col aivex:items-start aivex:gap-2xl aivex:rounded-2xl aivex:border aivex:border-border-subtle aivex:bg-bg-primary aivex:p-2xl aivex:shadow-xl\">\n <div\n className={cn(\n \"aivex:flex aivex:w-full aivex:flex-col aivex:gap-xs aivex:px-md aivex:py-xs\",\n isCenterAligned\n ? \"aivex:items-center aivex:justify-center aivex:text-center\"\n : \"aivex:items-start aivex:text-left\",\n )}\n >\n {IconComponent && (\n <span\n className={cn(\n \"aivex:flex aivex:h-12 aivex:w-12 aivex:shrink-0 aivex:items-center aivex:justify-center aivex:leading-none\",\n icon.className,\n )}\n >\n <IconComponent size={28} />\n </span>\n )}\n <DialogPrimitive.Title className=\"aivex:m-0 aivex:w-full aivex:whitespace-pre-line aivex:text-heading-xs aivex:text-text-primary\">\n {title}\n </DialogPrimitive.Title>\n {description && (\n <DialogPrimitive.Description className=\"aivex:m-0 aivex:w-full aivex:whitespace-pre-line aivex:text-body-lg-regular aivex:text-text-secondary\">\n {description}\n </DialogPrimitive.Description>\n )}\n {children}\n </div>\n\n {(cancelButton || confirmButton) && (\n <div className=\"aivex:flex aivex:w-full aivex:items-center aivex:justify-center aivex:gap-lg\">\n {cancelButton && <DialogCancelButton {...cancelButton} buttonRef={cancelRef} />}\n {confirmButton && (\n <DialogConfirmButton {...confirmButton} defaultColor={confirmButtonColor} />\n )}\n </div>\n )}\n </div>\n </DialogPrimitive.Popup>\n </DialogPrimitive.Portal>\n </PortalEventBoundary>\n </DialogPrimitive.Root>\n );\n}\n\nfunction DialogCancelButton({\n children,\n onClick,\n buttonRef,\n ...props\n}: DialogButtonProps & { buttonRef: Ref<HTMLButtonElement> }) {\n return (\n <DialogPrimitive.Close\n ref={buttonRef}\n render={\n <Button\n variant=\"solid\"\n color=\"secondary\"\n size=\"lg\"\n className=\"aivex:min-w-0 aivex:basis-0 aivex:flex-1\"\n onClick={(event) => {\n void onClick?.(event);\n }}\n {...props}\n >\n {children}\n </Button>\n }\n />\n );\n}\n\nfunction DialogConfirmButton({\n children,\n defaultColor,\n onClick,\n ...props\n}: DialogConfirmButtonInternalProps) {\n return (\n <Button\n variant=\"solid\"\n color={defaultColor}\n size=\"lg\"\n className=\"aivex:min-w-0 aivex:basis-0 aivex:flex-1\"\n onClick={(event) => {\n void onClick?.(event);\n }}\n {...props}\n >\n {children}\n </Button>\n );\n}\n\nexport { Dialog };\n"],"mappings":";;;;;;;;;;;;AAoEA,IAAM,IAAU;CACd,SAAS;EAAE,WAAW;EAAuB,WAAW;EAA2B;CACnF,SAAS;EAAE,WAAW;EAA2B,WAAW;EAA2B;CACxF;AA4BD,SAAS,EAAO,EACd,SACA,gBACA,iBACA,aAAU,WACV,UACA,gBACA,aACA,iBACA,kBACA,cAAW,IACX,UACc;CACd,IAAM,IAAY,EAA0B,KAAK,EAC3C,IAAW,EAA8B,KAAK,EAC9C,IAAc,EAAgB,GAAK,EAAS,EAC5C,IAAQ,EAAc;EAC1B;EACA,OAAO;EAEP,cAAc,IAAe,IAAY;EACzC,YAAY,KAAA;EACZ;EACD,CAAC,EACI,IAAO,EAAQ,IACf,IAAgB,IAAW,EAAK,YAAY,MAC5C,IAAkB,EAAQ,GAC1B,IAAqB,MAAY,YAAY,WAAW;AAE9D,QACE,kBAAC,EAAgB,MAAjB;EAA4B;EAAmB;EAA2B;YACxE,kBAAC,GAAD,EAAA,UACE,kBAAC,EAAgB,QAAjB,EAAA,UAAA,CAEE,kBAAC,EAAgB,UAAjB;GAA0B,aAAA;GAAY,QAAQ,kBAAC,GAAD,EAAS,SAAQ,OAAQ,CAAA;GAAI,CAAA,EAC3E,kBAAC,EAAgB,OAAjB;GACE,KAAK;GACL,cAAc,EAAM;GACpB,YAAY,EAAM;GAClB,gBAAgB,EAAM;GACtB,WAAU;aAEV,kBAAC,OAAD;IAAK,WAAU;cAAf,CACE,kBAAC,OAAD;KACE,WAAW,EACT,+EACA,IACI,8DACA,oCACL;eANH;MAQG,KACC,kBAAC,QAAD;OACE,WAAW,EACT,8GACA,EAAK,UACN;iBAED,kBAAC,GAAD,EAAe,MAAM,IAAM,CAAA;OACtB,CAAA;MAET,kBAAC,EAAgB,OAAjB;OAAuB,WAAU;iBAC9B;OACqB,CAAA;MACvB,KACC,kBAAC,EAAgB,aAAjB;OAA6B,WAAU;iBACpC;OAC2B,CAAA;MAE/B;MACG;SAEJ,KAAgB,MAChB,kBAAC,OAAD;KAAK,WAAU;eAAf,CACG,KAAgB,kBAAC,GAAD;MAAoB,GAAI;MAAc,WAAW;MAAa,CAAA,EAC9E,KACC,kBAAC,GAAD;MAAqB,GAAI;MAAe,cAAc;MAAsB,CAAA,CAE1E;OAEJ;;GACgB,CAAA,CACD,EAAA,CAAA,EACL,CAAA;EACD,CAAA;;AAI3B,SAAS,EAAmB,EAC1B,aACA,YACA,cACA,GAAG,KACyD;AAC5D,QACE,kBAAC,EAAgB,OAAjB;EACE,KAAK;EACL,QACE,kBAAC,GAAD;GACE,SAAQ;GACR,OAAM;GACN,MAAK;GACL,WAAU;GACV,UAAU,MAAU;AACb,QAAU,EAAM;;GAEvB,GAAI;GAEH;GACM,CAAA;EAEX,CAAA;;AAIN,SAAS,EAAoB,EAC3B,aACA,iBACA,YACA,GAAG,KACgC;AACnC,QACE,kBAAC,GAAD;EACE,SAAQ;EACR,OAAO;EACP,MAAK;EACL,WAAU;EACV,UAAU,MAAU;AACb,OAAU,EAAM;;EAEvB,GAAI;EAEH;EACM,CAAA"}
@@ -0,0 +1,2 @@
1
+ export type { DialogButtonProps, DialogConfirmButtonProps, DialogProps, DialogVariant, } from "./Dialog.cjs";
2
+ export { Dialog } from "./Dialog.cjs";
@@ -1,2 +1,2 @@
1
- export type { DialogButtonProps, DialogConfirmButtonProps, DialogProps, DialogVariant, } from "./Dialog";
2
- export { Dialog } from "./Dialog";
1
+ export type { DialogButtonProps, DialogConfirmButtonProps, DialogProps, DialogVariant, } from "./Dialog.js";
2
+ export { Dialog } from "./Dialog.js";
@@ -0,0 +1,2 @@
1
+ "use client";require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../utils.cjs`);let t=require(`react/jsx-runtime`);var n=(0,require(`class-variance-authority`).cva)(`aivex:shrink-0`,{variants:{strength:{basic:``,bold:``},direction:{horizontal:`aivex:w-full`,vertical:`aivex:h-full`}},compoundVariants:[{strength:`basic`,direction:`horizontal`,className:`aivex:border-t aivex:border-border-default`},{strength:`basic`,direction:`vertical`,className:`aivex:border-l aivex:border-border-default`},{strength:`bold`,direction:`horizontal`,className:`aivex:border-t-2 aivex:border-border-subtle`},{strength:`bold`,direction:`vertical`,className:`aivex:border-l-2 aivex:border-border-subtle`}],defaultVariants:{strength:`basic`,direction:`horizontal`}});function r({className:r,strength:i,direction:a,ref:o,...s}){return(0,t.jsx)(`hr`,{ref:o,"aria-orientation":a===`vertical`?`vertical`:`horizontal`,className:e.cn(n({strength:i,direction:a}),r),...s})}exports.Divider=r,exports.dividerVariants=n;
2
+ //# sourceMappingURL=Divider.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Divider.cjs","names":[],"sources":["../../../src/components/Divider/Divider.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\";\nimport type { HTMLAttributes, Ref } from \"react\";\nimport { cn } from \"@/utils/cn\";\n\n/** Divider의 굵기(`strength`)·방향(`direction`) 클래스를 만드는 cva 변형 함수. */\nconst dividerVariants = cva(\"aivex:shrink-0\", {\n variants: {\n strength: {\n basic: \"\",\n bold: \"\",\n },\n direction: {\n horizontal: \"aivex:w-full\",\n vertical: \"aivex:h-full\",\n },\n },\n compoundVariants: [\n {\n strength: \"basic\",\n direction: \"horizontal\",\n className: \"aivex:border-t aivex:border-border-default\",\n },\n {\n strength: \"basic\",\n direction: \"vertical\",\n className: \"aivex:border-l aivex:border-border-default\",\n },\n {\n strength: \"bold\",\n direction: \"horizontal\",\n className: \"aivex:border-t-2 aivex:border-border-subtle\",\n },\n {\n strength: \"bold\",\n direction: \"vertical\",\n className: \"aivex:border-l-2 aivex:border-border-subtle\",\n },\n ],\n defaultVariants: {\n strength: \"basic\",\n direction: \"horizontal\",\n },\n});\n\nexport interface DividerProps\n extends HTMLAttributes<HTMLHRElement>,\n VariantProps<typeof dividerVariants> {\n ref?: Ref<HTMLHRElement>;\n}\n\n/**\n * 콘텐츠 영역을 나누는 가로·세로 구분선(`<hr>`).\n *\n * `direction`: horizontal(기본, 폭 100%)·vertical(높이 100% — 부모에 높이가 있거나 flex `items-stretch`여야 보인다).\n * `strength`: basic(기본, 1px default 색)·bold(2px subtle 색, 섹션 구분용).\n *\n * @example\n * ```tsx\n * import { Divider } from \"@aivex/ui\";\n *\n * <Divider />\n * <div className=\"flex h-6 items-stretch gap-md\">\n * <span>왼쪽</span>\n * <Divider direction=\"vertical\" />\n * <span>오른쪽</span>\n * </div>\n * ```\n */\nfunction Divider({ className, strength, direction, ref, ...props }: DividerProps) {\n return (\n <hr\n ref={ref}\n aria-orientation={direction === \"vertical\" ? \"vertical\" : \"horizontal\"}\n className={cn(dividerVariants({ strength, direction }), className)}\n {...props}\n />\n );\n}\n\nexport { Divider, dividerVariants };\n"],"mappings":"mIAKA,IAAM,GAAA,sCAAA,KAAsB,iBAAkB,CAC5C,SAAU,CACR,SAAU,CACR,MAAO,GACP,KAAM,GACP,CACD,UAAW,CACT,WAAY,eACZ,SAAU,eACX,CACF,CACD,iBAAkB,CAChB,CACE,SAAU,QACV,UAAW,aACX,UAAW,6CACZ,CACD,CACE,SAAU,QACV,UAAW,WACX,UAAW,6CACZ,CACD,CACE,SAAU,OACV,UAAW,aACX,UAAW,8CACZ,CACD,CACE,SAAU,OACV,UAAW,WACX,UAAW,8CACZ,CACF,CACD,gBAAiB,CACf,SAAU,QACV,UAAW,aACZ,CACF,CAAC,CA0BF,SAAS,EAAQ,CAAE,YAAW,WAAU,YAAW,MAAK,GAAG,GAAuB,CAChF,OACE,EAAA,EAAA,KAAC,KAAD,CACO,MACL,mBAAkB,IAAc,WAAa,WAAa,aAC1D,UAAW,EAAA,GAAG,EAAgB,CAAE,WAAU,YAAW,CAAC,CAAE,EAAU,CAClE,GAAI,EACJ,CAAA"}
@@ -0,0 +1,30 @@
1
+ import { type VariantProps } from "class-variance-authority";
2
+ import type { HTMLAttributes, Ref } from "react";
3
+ /** Divider의 굵기(`strength`)·방향(`direction`) 클래스를 만드는 cva 변형 함수. */
4
+ declare const dividerVariants: (props?: ({
5
+ strength?: "basic" | "bold" | null | undefined;
6
+ direction?: "horizontal" | "vertical" | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
+ export interface DividerProps extends HTMLAttributes<HTMLHRElement>, VariantProps<typeof dividerVariants> {
9
+ ref?: Ref<HTMLHRElement>;
10
+ }
11
+ /**
12
+ * 콘텐츠 영역을 나누는 가로·세로 구분선(`<hr>`).
13
+ *
14
+ * `direction`: horizontal(기본, 폭 100%)·vertical(높이 100% — 부모에 높이가 있거나 flex `items-stretch`여야 보인다).
15
+ * `strength`: basic(기본, 1px default 색)·bold(2px subtle 색, 섹션 구분용).
16
+ *
17
+ * @example
18
+ * ```tsx
19
+ * import { Divider } from "@aivex/ui";
20
+ *
21
+ * <Divider />
22
+ * <div className="flex h-6 items-stretch gap-md">
23
+ * <span>왼쪽</span>
24
+ * <Divider direction="vertical" />
25
+ * <span>오른쪽</span>
26
+ * </div>
27
+ * ```
28
+ */
29
+ declare function Divider({ className, strength, direction, ref, ...props }: DividerProps): import("react/jsx-runtime").JSX.Element;
30
+ export { Divider, dividerVariants };
@@ -1,5 +1,6 @@
1
1
  import { type VariantProps } from "class-variance-authority";
2
2
  import type { HTMLAttributes, Ref } from "react";
3
+ /** Divider의 굵기(`strength`)·방향(`direction`) 클래스를 만드는 cva 변형 함수. */
3
4
  declare const dividerVariants: (props?: ({
4
5
  strength?: "basic" | "bold" | null | undefined;
5
6
  direction?: "horizontal" | "vertical" | null | undefined;
@@ -7,5 +8,23 @@ declare const dividerVariants: (props?: ({
7
8
  export interface DividerProps extends HTMLAttributes<HTMLHRElement>, VariantProps<typeof dividerVariants> {
8
9
  ref?: Ref<HTMLHRElement>;
9
10
  }
11
+ /**
12
+ * 콘텐츠 영역을 나누는 가로·세로 구분선(`<hr>`).
13
+ *
14
+ * `direction`: horizontal(기본, 폭 100%)·vertical(높이 100% — 부모에 높이가 있거나 flex `items-stretch`여야 보인다).
15
+ * `strength`: basic(기본, 1px default 색)·bold(2px subtle 색, 섹션 구분용).
16
+ *
17
+ * @example
18
+ * ```tsx
19
+ * import { Divider } from "@aivex/ui";
20
+ *
21
+ * <Divider />
22
+ * <div className="flex h-6 items-stretch gap-md">
23
+ * <span>왼쪽</span>
24
+ * <Divider direction="vertical" />
25
+ * <span>오른쪽</span>
26
+ * </div>
27
+ * ```
28
+ */
10
29
  declare function Divider({ className, strength, direction, ref, ...props }: DividerProps): import("react/jsx-runtime").JSX.Element;
11
30
  export { Divider, dividerVariants };
@@ -0,0 +1,58 @@
1
+ "use client";
2
+ import { cn as e } from "../../utils.js";
3
+ import { jsx as t } from "react/jsx-runtime";
4
+ import { cva as n } from "class-variance-authority";
5
+ //#region src/components/Divider/Divider.tsx
6
+ var r = n("aivex:shrink-0", {
7
+ variants: {
8
+ strength: {
9
+ basic: "",
10
+ bold: ""
11
+ },
12
+ direction: {
13
+ horizontal: "aivex:w-full",
14
+ vertical: "aivex:h-full"
15
+ }
16
+ },
17
+ compoundVariants: [
18
+ {
19
+ strength: "basic",
20
+ direction: "horizontal",
21
+ className: "aivex:border-t aivex:border-border-default"
22
+ },
23
+ {
24
+ strength: "basic",
25
+ direction: "vertical",
26
+ className: "aivex:border-l aivex:border-border-default"
27
+ },
28
+ {
29
+ strength: "bold",
30
+ direction: "horizontal",
31
+ className: "aivex:border-t-2 aivex:border-border-subtle"
32
+ },
33
+ {
34
+ strength: "bold",
35
+ direction: "vertical",
36
+ className: "aivex:border-l-2 aivex:border-border-subtle"
37
+ }
38
+ ],
39
+ defaultVariants: {
40
+ strength: "basic",
41
+ direction: "horizontal"
42
+ }
43
+ });
44
+ function i({ className: n, strength: i, direction: a, ref: o, ...s }) {
45
+ return /* @__PURE__ */ t("hr", {
46
+ ref: o,
47
+ "aria-orientation": a === "vertical" ? "vertical" : "horizontal",
48
+ className: e(r({
49
+ strength: i,
50
+ direction: a
51
+ }), n),
52
+ ...s
53
+ });
54
+ }
55
+ //#endregion
56
+ export { i as Divider, r as dividerVariants };
57
+
58
+ //# sourceMappingURL=Divider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Divider.js","names":[],"sources":["../../../src/components/Divider/Divider.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\";\nimport type { HTMLAttributes, Ref } from \"react\";\nimport { cn } from \"@/utils/cn\";\n\n/** Divider의 굵기(`strength`)·방향(`direction`) 클래스를 만드는 cva 변형 함수. */\nconst dividerVariants = cva(\"aivex:shrink-0\", {\n variants: {\n strength: {\n basic: \"\",\n bold: \"\",\n },\n direction: {\n horizontal: \"aivex:w-full\",\n vertical: \"aivex:h-full\",\n },\n },\n compoundVariants: [\n {\n strength: \"basic\",\n direction: \"horizontal\",\n className: \"aivex:border-t aivex:border-border-default\",\n },\n {\n strength: \"basic\",\n direction: \"vertical\",\n className: \"aivex:border-l aivex:border-border-default\",\n },\n {\n strength: \"bold\",\n direction: \"horizontal\",\n className: \"aivex:border-t-2 aivex:border-border-subtle\",\n },\n {\n strength: \"bold\",\n direction: \"vertical\",\n className: \"aivex:border-l-2 aivex:border-border-subtle\",\n },\n ],\n defaultVariants: {\n strength: \"basic\",\n direction: \"horizontal\",\n },\n});\n\nexport interface DividerProps\n extends HTMLAttributes<HTMLHRElement>,\n VariantProps<typeof dividerVariants> {\n ref?: Ref<HTMLHRElement>;\n}\n\n/**\n * 콘텐츠 영역을 나누는 가로·세로 구분선(`<hr>`).\n *\n * `direction`: horizontal(기본, 폭 100%)·vertical(높이 100% — 부모에 높이가 있거나 flex `items-stretch`여야 보인다).\n * `strength`: basic(기본, 1px default 색)·bold(2px subtle 색, 섹션 구분용).\n *\n * @example\n * ```tsx\n * import { Divider } from \"@aivex/ui\";\n *\n * <Divider />\n * <div className=\"flex h-6 items-stretch gap-md\">\n * <span>왼쪽</span>\n * <Divider direction=\"vertical\" />\n * <span>오른쪽</span>\n * </div>\n * ```\n */\nfunction Divider({ className, strength, direction, ref, ...props }: DividerProps) {\n return (\n <hr\n ref={ref}\n aria-orientation={direction === \"vertical\" ? \"vertical\" : \"horizontal\"}\n className={cn(dividerVariants({ strength, direction }), className)}\n {...props}\n />\n );\n}\n\nexport { Divider, dividerVariants };\n"],"mappings":";;;;;AAKA,IAAM,IAAkB,EAAI,kBAAkB;CAC5C,UAAU;EACR,UAAU;GACR,OAAO;GACP,MAAM;GACP;EACD,WAAW;GACT,YAAY;GACZ,UAAU;GACX;EACF;CACD,kBAAkB;EAChB;GACE,UAAU;GACV,WAAW;GACX,WAAW;GACZ;EACD;GACE,UAAU;GACV,WAAW;GACX,WAAW;GACZ;EACD;GACE,UAAU;GACV,WAAW;GACX,WAAW;GACZ;EACD;GACE,UAAU;GACV,WAAW;GACX,WAAW;GACZ;EACF;CACD,iBAAiB;EACf,UAAU;EACV,WAAW;EACZ;CACF,CAAC;AA0BF,SAAS,EAAQ,EAAE,cAAW,aAAU,cAAW,QAAK,GAAG,KAAuB;AAChF,QACE,kBAAC,MAAD;EACO;EACL,oBAAkB,MAAc,aAAa,aAAa;EAC1D,WAAW,EAAG,EAAgB;GAAE;GAAU;GAAW,CAAC,EAAE,EAAU;EAClE,GAAI;EACJ,CAAA"}
@@ -0,0 +1,2 @@
1
+ export type { DividerProps } from "./Divider.cjs";
2
+ export { Divider, dividerVariants } from "./Divider.cjs";
@@ -1,2 +1,2 @@
1
- export type { DividerProps } from "./Divider";
2
- export { Divider, dividerVariants } from "./Divider";
1
+ export type { DividerProps } from "./Divider.js";
2
+ export { Divider, dividerVariants } from "./Divider.js";
@@ -0,0 +1,2 @@
1
+ "use client";require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../utils.cjs`);let t=require(`react`),n=require(`react/jsx-runtime`);function r({children:r,className:i,autoScrollToEnd:a=!1,smoothScroll:o=!0,edgeFade:s=!1}){let c=(0,t.useRef)(null),l=(0,t.useRef)({isDragging:!1,startX:0,scrollLeft:0}),u=e=>{let t=c.current,{current:n}=l;if(t)if(e.type===`mousedown`)n.isDragging=!0,n.startX=e.clientX,n.scrollLeft=t.scrollLeft;else if(e.type===`mousemove`&&n.isDragging){e.preventDefault();let r=n.startX-e.clientX;t.scrollLeft=n.scrollLeft+r}else (e.type===`mouseup`||e.type===`mouseleave`)&&(n.isDragging=!1)};return(0,t.useEffect)(()=>{let e=c.current;a&&e&&requestAnimationFrame(()=>{e.scrollTo({left:e.scrollWidth,behavior:o?`smooth`:`auto`})})},[r,a,o]),(0,n.jsx)(`div`,{ref:c,className:e.cn(`aivex:overflow-x-auto aivex:overflow-y-hidden aivex:hide-scrollbar aivex:cursor-grab aivex:active:cursor-grabbing aivex:select-none`,s&&`aivex:scroll-fade-x`,i),onMouseDown:u,onMouseMove:u,onMouseUp:u,onMouseLeave:u,children:r})}exports.DraggableScroll=r;
2
+ //# sourceMappingURL=DraggableScroll.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DraggableScroll.cjs","names":[],"sources":["../../../src/components/DraggableScroll/DraggableScroll.tsx"],"sourcesContent":["import { type MouseEvent, type ReactNode, useEffect, useRef } from \"react\";\nimport { cn } from \"@/utils/cn\";\n\ninterface DraggableScrollProps {\n /** 가로로 스크롤할 내용. 보통 `flex` 한 줄로 감싼 아이템 목록을 넣는다. */\n children: ReactNode;\n /** 스크롤 컨테이너에 추가할 클래스 */\n className?: string;\n /**\n * children이 바뀔 때 가로 스크롤을 끝으로 이동합니다.\n * @default false\n */\n autoScrollToEnd?: boolean;\n /**\n * `autoScrollToEnd` 이동을 부드럽게(smooth) 할지 여부\n * @default true\n */\n smoothScroll?: boolean;\n /**\n * 좌우에 가려진 내용이 있으면 그 방향 가장자리를 그라데이션으로 페이드합니다.\n * CSS 스크롤 타임라인 기반이라 미지원 브라우저에서는 페이드 없이 동작합니다.\n * @default false\n */\n edgeFade?: boolean;\n}\n\n/**\n * 스크롤바를 숨기고 마우스 드래그로도 가로 스크롤할 수 있는 컨테이너.\n *\n * 칩·태그 목록처럼 한 줄로 넘치는 내용에 쓴다. 휠·터치 등 기본 스크롤도 그대로 동작한다.\n * 컨테이너 내부 텍스트는 선택할 수 없다(`select-none`). 세로 스크롤·커스텀 스크롤바가 필요하면 `ScrollArea`를 쓴다.\n *\n * @example\n * ```tsx\n * import { DraggableScroll, Tag } from \"@aivex/ui\";\n *\n * <DraggableScroll autoScrollToEnd edgeFade>\n * <div className=\"flex gap-md\">\n * {filters.map((f) => (\n * <Tag key={f.id} className=\"shrink-0\" onRemove={() => remove(f.id)}>\n * {f.label}\n * </Tag>\n * ))}\n * </div>\n * </DraggableScroll>\n * ```\n */\nfunction DraggableScroll({\n children,\n className,\n autoScrollToEnd = false,\n smoothScroll = true,\n edgeFade = false,\n}: DraggableScrollProps) {\n const containerRef = useRef<HTMLDivElement>(null);\n const dragRef = useRef({ isDragging: false, startX: 0, scrollLeft: 0 });\n\n const handleDragScroll = (e: MouseEvent<HTMLDivElement>) => {\n const container = containerRef.current;\n const { current: drag } = dragRef;\n\n if (!container) return;\n\n if (e.type === \"mousedown\") {\n drag.isDragging = true;\n drag.startX = e.clientX;\n drag.scrollLeft = container.scrollLeft;\n } else if (e.type === \"mousemove\" && drag.isDragging) {\n e.preventDefault();\n const diff = drag.startX - e.clientX;\n container.scrollLeft = drag.scrollLeft + diff;\n } else if (e.type === \"mouseup\" || e.type === \"mouseleave\") {\n drag.isDragging = false;\n }\n };\n\n // biome-ignore lint/correctness/useExhaustiveDependencies: children 변경 시 끝으로 스크롤\n useEffect(() => {\n const container = containerRef.current;\n if (autoScrollToEnd && container) {\n requestAnimationFrame(() => {\n container.scrollTo({\n left: container.scrollWidth,\n behavior: smoothScroll ? \"smooth\" : \"auto\",\n });\n });\n }\n }, [children, autoScrollToEnd, smoothScroll]);\n\n return (\n // biome-ignore lint/a11y/noStaticElementInteractions: 마우스 드래그 스크롤 보조일 뿐이다 — 기본 스크롤은 그대로 동작한다\n <div\n ref={containerRef}\n className={cn(\n \"aivex:overflow-x-auto aivex:overflow-y-hidden aivex:hide-scrollbar aivex:cursor-grab aivex:active:cursor-grabbing aivex:select-none\",\n edgeFade && \"aivex:scroll-fade-x\",\n className,\n )}\n onMouseDown={handleDragScroll}\n onMouseMove={handleDragScroll}\n onMouseUp={handleDragScroll}\n onMouseLeave={handleDragScroll}\n >\n {children}\n </div>\n );\n}\n\nexport type { DraggableScrollProps };\nexport { DraggableScroll };\n"],"mappings":"sJA+CA,SAAS,EAAgB,CACvB,WACA,YACA,kBAAkB,GAClB,eAAe,GACf,WAAW,IACY,CACvB,IAAM,GAAA,EAAA,EAAA,QAAsC,KAAK,CAC3C,GAAA,EAAA,EAAA,QAAiB,CAAE,WAAY,GAAO,OAAQ,EAAG,WAAY,EAAG,CAAC,CAEjE,EAAoB,GAAkC,CAC1D,IAAM,EAAY,EAAa,QACzB,CAAE,QAAS,GAAS,EAErB,KAEL,GAAI,EAAE,OAAS,YACb,EAAK,WAAa,GAClB,EAAK,OAAS,EAAE,QAChB,EAAK,WAAa,EAAU,mBACnB,EAAE,OAAS,aAAe,EAAK,WAAY,CACpD,EAAE,gBAAgB,CAClB,IAAM,EAAO,EAAK,OAAS,EAAE,QAC7B,EAAU,WAAa,EAAK,WAAa,QAChC,EAAE,OAAS,WAAa,EAAE,OAAS,gBAC5C,EAAK,WAAa,KAiBtB,OAZA,EAAA,EAAA,eAAgB,CACd,IAAM,EAAY,EAAa,QAC3B,GAAmB,GACrB,0BAA4B,CAC1B,EAAU,SAAS,CACjB,KAAM,EAAU,YAChB,SAAU,EAAe,SAAW,OACrC,CAAC,EACF,EAEH,CAAC,EAAU,EAAiB,EAAa,CAAC,EAI3C,EAAA,EAAA,KAAC,MAAD,CACE,IAAK,EACL,UAAW,EAAA,GACT,sIACA,GAAY,sBACZ,EACD,CACD,YAAa,EACb,YAAa,EACb,UAAW,EACX,aAAc,EAEb,WACG,CAAA"}