@aivex/ui 1.2.0-dev.54 → 1.2.0-dev.56

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 (711) hide show
  1. package/README.md +57 -1
  2. package/dist/DESIGN.md +241 -0
  3. package/dist/comment.cjs +1 -1
  4. package/dist/comment.js +1 -1
  5. package/dist/components/Avatar/Avatar.cjs.map +1 -1
  6. package/dist/components/Avatar/Avatar.d.cts +42 -0
  7. package/dist/components/Avatar/Avatar.d.ts +24 -0
  8. package/dist/components/Avatar/Avatar.js.map +1 -1
  9. package/dist/components/Avatar/index.d.cts +2 -0
  10. package/dist/components/Avatar/index.d.ts +2 -2
  11. package/dist/components/Badge/Badge.cjs.map +1 -1
  12. package/dist/components/Badge/Badge.d.cts +93 -0
  13. package/dist/components/Badge/Badge.d.ts +58 -0
  14. package/dist/components/Badge/Badge.js.map +1 -1
  15. package/dist/components/Badge/index.d.cts +2 -0
  16. package/dist/components/Badge/index.d.ts +2 -2
  17. package/dist/components/BreadCrumb/BreadCrumb.cjs.map +1 -1
  18. package/dist/components/BreadCrumb/BreadCrumb.d.cts +57 -0
  19. package/dist/components/BreadCrumb/BreadCrumb.d.ts +32 -2
  20. package/dist/components/BreadCrumb/BreadCrumb.js.map +1 -1
  21. package/dist/components/BreadCrumb/index.d.cts +2 -0
  22. package/dist/components/BreadCrumb/index.d.ts +2 -2
  23. package/dist/components/Button/Button.cjs +1 -1
  24. package/dist/components/Button/Button.cjs.map +1 -1
  25. package/dist/components/Button/Button.d.cts +50 -0
  26. package/dist/components/Button/Button.d.ts +31 -1
  27. package/dist/components/Button/Button.js +25 -24
  28. package/dist/components/Button/Button.js.map +1 -1
  29. package/dist/components/Button/index.d.cts +2 -0
  30. package/dist/components/Button/index.d.ts +2 -2
  31. package/dist/components/Calendar/Calendar.cjs +1 -1
  32. package/dist/components/Calendar/Calendar.cjs.map +1 -1
  33. package/dist/components/Calendar/Calendar.d.cts +81 -0
  34. package/dist/components/Calendar/Calendar.d.ts +48 -5
  35. package/dist/components/Calendar/Calendar.js +104 -57
  36. package/dist/components/Calendar/Calendar.js.map +1 -1
  37. package/dist/components/Calendar/date.cjs +1 -1
  38. package/dist/components/Calendar/date.cjs.map +1 -1
  39. package/dist/components/Calendar/date.d.cts +35 -0
  40. package/dist/components/Calendar/date.d.ts +10 -0
  41. package/dist/components/Calendar/date.js +22 -1
  42. package/dist/components/Calendar/date.js.map +1 -1
  43. package/dist/components/Calendar/index.d.cts +2 -0
  44. package/dist/components/Calendar/index.d.ts +2 -2
  45. package/dist/components/Card/Card.cjs.map +1 -1
  46. package/dist/components/Card/Card.d.cts +46 -0
  47. package/dist/components/Card/Card.d.ts +30 -3
  48. package/dist/components/Card/Card.js.map +1 -1
  49. package/dist/components/Card/index.d.cts +2 -0
  50. package/dist/components/Card/index.d.ts +2 -2
  51. package/dist/components/Checkbox/Checkbox.cjs +1 -1
  52. package/dist/components/Checkbox/Checkbox.cjs.map +1 -1
  53. package/dist/components/Checkbox/Checkbox.d.cts +37 -0
  54. package/dist/components/Checkbox/Checkbox.d.ts +24 -0
  55. package/dist/components/Checkbox/Checkbox.js +24 -23
  56. package/dist/components/Checkbox/Checkbox.js.map +1 -1
  57. package/dist/components/Checkbox/ChipsCheckbox.cjs.map +1 -1
  58. package/dist/components/Checkbox/ChipsCheckbox.d.cts +24 -0
  59. package/dist/components/Checkbox/ChipsCheckbox.d.ts +15 -0
  60. package/dist/components/Checkbox/ChipsCheckbox.js.map +1 -1
  61. package/dist/components/Checkbox/index.d.cts +4 -0
  62. package/dist/components/Checkbox/index.d.ts +4 -4
  63. package/dist/components/Coachmark/Coachmark.cjs.map +1 -1
  64. package/dist/components/Coachmark/Coachmark.d.cts +87 -0
  65. package/dist/components/Coachmark/Coachmark.d.ts +39 -8
  66. package/dist/components/Coachmark/Coachmark.js.map +1 -1
  67. package/dist/components/Coachmark/index.d.cts +2 -0
  68. package/dist/components/Coachmark/index.d.ts +2 -2
  69. package/dist/components/Comment/CommentInput.cjs +1 -1
  70. package/dist/components/Comment/CommentInput.cjs.map +1 -1
  71. package/dist/components/Comment/CommentInput.d.cts +75 -0
  72. package/dist/components/Comment/CommentInput.d.ts +46 -6
  73. package/dist/components/Comment/CommentInput.js +15 -14
  74. package/dist/components/Comment/CommentInput.js.map +1 -1
  75. package/dist/components/Comment/CommentPin.cjs +1 -1
  76. package/dist/components/Comment/CommentPin.cjs.map +1 -1
  77. package/dist/components/Comment/CommentPin.d.cts +48 -0
  78. package/dist/components/Comment/CommentPin.d.ts +35 -4
  79. package/dist/components/Comment/CommentPin.js +29 -20
  80. package/dist/components/Comment/CommentPin.js.map +1 -1
  81. package/dist/components/Comment/MentionInput.cjs +1 -1
  82. package/dist/components/Comment/MentionInput.cjs.map +1 -1
  83. package/dist/components/Comment/MentionInput.d.cts +45 -0
  84. package/dist/components/Comment/MentionInput.d.ts +19 -4
  85. package/dist/components/Comment/MentionInput.js +51 -38
  86. package/dist/components/Comment/MentionInput.js.map +1 -1
  87. package/dist/components/Comment/MentionList.cjs +1 -1
  88. package/dist/components/Comment/MentionList.cjs.map +1 -1
  89. package/dist/components/Comment/MentionList.d.cts +19 -0
  90. package/dist/components/Comment/MentionList.d.ts +3 -3
  91. package/dist/components/Comment/MentionList.js +1 -1
  92. package/dist/components/Comment/MentionList.js.map +1 -1
  93. package/dist/components/Comment/index.d.cts +4 -0
  94. package/dist/components/Comment/index.d.ts +4 -4
  95. package/dist/components/Comment/mentionContent.d.cts +5 -0
  96. package/dist/components/Comment/types.d.cts +16 -0
  97. package/dist/components/Comment/types.d.ts +6 -2
  98. package/dist/components/Comment/useMentionSuggestion.cjs +1 -1
  99. package/dist/components/Comment/useMentionSuggestion.cjs.map +1 -1
  100. package/dist/components/Comment/useMentionSuggestion.d.cts +19 -0
  101. package/dist/components/Comment/useMentionSuggestion.d.ts +6 -2
  102. package/dist/components/Comment/useMentionSuggestion.js +72 -62
  103. package/dist/components/Comment/useMentionSuggestion.js.map +1 -1
  104. package/dist/components/DataGrid/DataGrid.cjs +1 -1
  105. package/dist/components/DataGrid/DataGrid.cjs.map +1 -1
  106. package/dist/components/DataGrid/DataGrid.d.cts +136 -0
  107. package/dist/components/DataGrid/DataGrid.d.ts +77 -5
  108. package/dist/components/DataGrid/DataGrid.js +109 -106
  109. package/dist/components/DataGrid/DataGrid.js.map +1 -1
  110. package/dist/components/DataGrid/DataGridColumnSettings.cjs +1 -1
  111. package/dist/components/DataGrid/DataGridColumnSettings.cjs.map +1 -1
  112. package/dist/components/DataGrid/DataGridColumnSettings.d.cts +41 -0
  113. package/dist/components/DataGrid/DataGridColumnSettings.d.ts +21 -3
  114. package/dist/components/DataGrid/DataGridColumnSettings.js +8 -5
  115. package/dist/components/DataGrid/DataGridColumnSettings.js.map +1 -1
  116. package/dist/components/DataGrid/DataGridPrimitives.cjs.map +1 -1
  117. package/dist/components/DataGrid/DataGridPrimitives.d.cts +167 -0
  118. package/dist/components/DataGrid/DataGridPrimitives.d.ts +81 -1
  119. package/dist/components/DataGrid/DataGridPrimitives.js.map +1 -1
  120. package/dist/components/DataGrid/DataGridRows.d.cts +66 -0
  121. package/dist/components/DataGrid/index.d.cts +8 -0
  122. package/dist/components/DataGrid/index.d.ts +6 -6
  123. package/dist/components/Dialog/Dialog.cjs.map +1 -1
  124. package/dist/components/Dialog/Dialog.d.cts +66 -0
  125. package/dist/components/Dialog/Dialog.d.ts +47 -1
  126. package/dist/components/Dialog/Dialog.js.map +1 -1
  127. package/dist/components/Dialog/index.d.cts +2 -0
  128. package/dist/components/Dialog/index.d.ts +2 -2
  129. package/dist/components/Divider/Divider.cjs.map +1 -1
  130. package/dist/components/Divider/Divider.d.cts +30 -0
  131. package/dist/components/Divider/Divider.d.ts +19 -0
  132. package/dist/components/Divider/Divider.js.map +1 -1
  133. package/dist/components/Divider/index.d.cts +2 -0
  134. package/dist/components/Divider/index.d.ts +2 -2
  135. package/dist/components/DraggableScroll/DraggableScroll.cjs.map +1 -1
  136. package/dist/components/DraggableScroll/DraggableScroll.d.cts +47 -0
  137. package/dist/components/DraggableScroll/DraggableScroll.d.ts +32 -1
  138. package/dist/components/DraggableScroll/DraggableScroll.js.map +1 -1
  139. package/dist/components/DraggableScroll/index.d.cts +2 -0
  140. package/dist/components/DraggableScroll/index.d.ts +2 -2
  141. package/dist/components/Drawer/Drawer.cjs +1 -1
  142. package/dist/components/Drawer/Drawer.cjs.map +1 -1
  143. package/dist/components/Drawer/Drawer.d.cts +149 -0
  144. package/dist/components/Drawer/Drawer.d.ts +119 -12
  145. package/dist/components/Drawer/Drawer.js +87 -29
  146. package/dist/components/Drawer/Drawer.js.map +1 -1
  147. package/dist/components/Drawer/index.d.cts +2 -0
  148. package/dist/components/Drawer/index.d.ts +2 -2
  149. package/dist/components/Field/Field.cjs +1 -1
  150. package/dist/components/Field/Field.cjs.map +1 -1
  151. package/dist/components/Field/Field.d.cts +100 -0
  152. package/dist/components/Field/Field.d.ts +59 -5
  153. package/dist/components/Field/Field.js +49 -42
  154. package/dist/components/Field/Field.js.map +1 -1
  155. package/dist/components/Field/index.d.cts +1 -0
  156. package/dist/components/Field/index.d.ts +1 -1
  157. package/dist/components/FilterModal/FilterModal.cjs +1 -1
  158. package/dist/components/FilterModal/FilterModal.cjs.map +1 -1
  159. package/dist/components/FilterModal/FilterModal.d.cts +83 -0
  160. package/dist/components/FilterModal/FilterModal.d.ts +52 -1
  161. package/dist/components/FilterModal/FilterModal.js +5 -4
  162. package/dist/components/FilterModal/FilterModal.js.map +1 -1
  163. package/dist/components/FilterModal/index.d.cts +2 -0
  164. package/dist/components/FilterModal/index.d.ts +2 -2
  165. package/dist/components/Icon/index.cjs.map +1 -1
  166. package/dist/components/Icon/index.d.cts +2077 -0
  167. package/dist/components/Icon/index.d.ts +41 -0
  168. package/dist/components/Icon/index.js.map +1 -1
  169. package/dist/components/Icon/svgA11y.d.cts +10 -0
  170. package/dist/components/Icon/uniqueSvgIds.d.cts +8 -0
  171. package/dist/components/IconButton/IconButton.cjs +1 -1
  172. package/dist/components/IconButton/IconButton.cjs.map +1 -1
  173. package/dist/components/IconButton/IconButton.d.cts +45 -0
  174. package/dist/components/IconButton/IconButton.d.ts +31 -3
  175. package/dist/components/IconButton/IconButton.js +25 -24
  176. package/dist/components/IconButton/IconButton.js.map +1 -1
  177. package/dist/components/IconButton/index.d.cts +2 -0
  178. package/dist/components/IconButton/index.d.ts +2 -2
  179. package/dist/components/Illustration/Illustration.cjs +2 -0
  180. package/dist/components/Illustration/Illustration.cjs.map +1 -0
  181. package/dist/components/Illustration/Illustration.d.cts +37 -0
  182. package/dist/components/Illustration/Illustration.d.ts +37 -0
  183. package/dist/components/Illustration/Illustration.js +40 -0
  184. package/dist/components/Illustration/Illustration.js.map +1 -0
  185. package/dist/components/Illustration/assets/box-dark.webp.cjs +2 -0
  186. package/dist/components/Illustration/assets/box-dark.webp.cjs.map +1 -0
  187. package/dist/components/Illustration/assets/box-dark.webp.js +7 -0
  188. package/dist/components/Illustration/assets/box-dark.webp.js.map +1 -0
  189. package/dist/components/Illustration/assets/box-light.webp.cjs +2 -0
  190. package/dist/components/Illustration/assets/box-light.webp.cjs.map +1 -0
  191. package/dist/components/Illustration/assets/box-light.webp.js +7 -0
  192. package/dist/components/Illustration/assets/box-light.webp.js.map +1 -0
  193. package/dist/components/Illustration/assets/equipment-dark.webp.cjs +2 -0
  194. package/dist/components/Illustration/assets/equipment-dark.webp.cjs.map +1 -0
  195. package/dist/components/Illustration/assets/equipment-dark.webp.js +7 -0
  196. package/dist/components/Illustration/assets/equipment-dark.webp.js.map +1 -0
  197. package/dist/components/Illustration/assets/equipment-light.webp.cjs +2 -0
  198. package/dist/components/Illustration/assets/equipment-light.webp.cjs.map +1 -0
  199. package/dist/components/Illustration/assets/equipment-light.webp.js +7 -0
  200. package/dist/components/Illustration/assets/equipment-light.webp.js.map +1 -0
  201. package/dist/components/Illustration/assets/failed-dark.webp.cjs +2 -0
  202. package/dist/components/Illustration/assets/failed-dark.webp.cjs.map +1 -0
  203. package/dist/components/Illustration/assets/failed-dark.webp.js +7 -0
  204. package/dist/components/Illustration/assets/failed-dark.webp.js.map +1 -0
  205. package/dist/components/Illustration/assets/failed-light.webp.cjs +2 -0
  206. package/dist/components/Illustration/assets/failed-light.webp.cjs.map +1 -0
  207. package/dist/components/Illustration/assets/failed-light.webp.js +7 -0
  208. package/dist/components/Illustration/assets/failed-light.webp.js.map +1 -0
  209. package/dist/components/Illustration/assets/file-dark.webp.cjs +2 -0
  210. package/dist/components/Illustration/assets/file-dark.webp.cjs.map +1 -0
  211. package/dist/components/Illustration/assets/file-dark.webp.js +7 -0
  212. package/dist/components/Illustration/assets/file-dark.webp.js.map +1 -0
  213. package/dist/components/Illustration/assets/file-light.webp.cjs +2 -0
  214. package/dist/components/Illustration/assets/file-light.webp.cjs.map +1 -0
  215. package/dist/components/Illustration/assets/file-light.webp.js +7 -0
  216. package/dist/components/Illustration/assets/file-light.webp.js.map +1 -0
  217. package/dist/components/Illustration/assets/images-dark.webp.cjs +2 -0
  218. package/dist/components/Illustration/assets/images-dark.webp.cjs.map +1 -0
  219. package/dist/components/Illustration/assets/images-dark.webp.js +7 -0
  220. package/dist/components/Illustration/assets/images-dark.webp.js.map +1 -0
  221. package/dist/components/Illustration/assets/images-light.webp.cjs +2 -0
  222. package/dist/components/Illustration/assets/images-light.webp.cjs.map +1 -0
  223. package/dist/components/Illustration/assets/images-light.webp.js +7 -0
  224. package/dist/components/Illustration/assets/images-light.webp.js.map +1 -0
  225. package/dist/components/Illustration/assets/letter-dark.webp.cjs +2 -0
  226. package/dist/components/Illustration/assets/letter-dark.webp.cjs.map +1 -0
  227. package/dist/components/Illustration/assets/letter-dark.webp.js +7 -0
  228. package/dist/components/Illustration/assets/letter-dark.webp.js.map +1 -0
  229. package/dist/components/Illustration/assets/letter-light.webp.cjs +2 -0
  230. package/dist/components/Illustration/assets/letter-light.webp.cjs.map +1 -0
  231. package/dist/components/Illustration/assets/letter-light.webp.js +7 -0
  232. package/dist/components/Illustration/assets/letter-light.webp.js.map +1 -0
  233. package/dist/components/Illustration/assets/message-dark.webp.cjs +2 -0
  234. package/dist/components/Illustration/assets/message-dark.webp.cjs.map +1 -0
  235. package/dist/components/Illustration/assets/message-dark.webp.js +7 -0
  236. package/dist/components/Illustration/assets/message-dark.webp.js.map +1 -0
  237. package/dist/components/Illustration/assets/message-light.webp.cjs +2 -0
  238. package/dist/components/Illustration/assets/message-light.webp.cjs.map +1 -0
  239. package/dist/components/Illustration/assets/message-light.webp.js +7 -0
  240. package/dist/components/Illustration/assets/message-light.webp.js.map +1 -0
  241. package/dist/components/Illustration/assets/network-dark.webp.cjs +2 -0
  242. package/dist/components/Illustration/assets/network-dark.webp.cjs.map +1 -0
  243. package/dist/components/Illustration/assets/network-dark.webp.js +7 -0
  244. package/dist/components/Illustration/assets/network-dark.webp.js.map +1 -0
  245. package/dist/components/Illustration/assets/network-light.webp.cjs +2 -0
  246. package/dist/components/Illustration/assets/network-light.webp.cjs.map +1 -0
  247. package/dist/components/Illustration/assets/network-light.webp.js +7 -0
  248. package/dist/components/Illustration/assets/network-light.webp.js.map +1 -0
  249. package/dist/components/Illustration/assets/no-data-dark.webp.cjs +2 -0
  250. package/dist/components/Illustration/assets/no-data-dark.webp.cjs.map +1 -0
  251. package/dist/components/Illustration/assets/no-data-dark.webp.js +7 -0
  252. package/dist/components/Illustration/assets/no-data-dark.webp.js.map +1 -0
  253. package/dist/components/Illustration/assets/no-data-light.webp.cjs +2 -0
  254. package/dist/components/Illustration/assets/no-data-light.webp.cjs.map +1 -0
  255. package/dist/components/Illustration/assets/no-data-light.webp.js +7 -0
  256. package/dist/components/Illustration/assets/no-data-light.webp.js.map +1 -0
  257. package/dist/components/Illustration/assets/paper-dark.webp.cjs +2 -0
  258. package/dist/components/Illustration/assets/paper-dark.webp.cjs.map +1 -0
  259. package/dist/components/Illustration/assets/paper-dark.webp.js +7 -0
  260. package/dist/components/Illustration/assets/paper-dark.webp.js.map +1 -0
  261. package/dist/components/Illustration/assets/paper-light.webp.cjs +2 -0
  262. package/dist/components/Illustration/assets/paper-light.webp.cjs.map +1 -0
  263. package/dist/components/Illustration/assets/paper-light.webp.js +7 -0
  264. package/dist/components/Illustration/assets/paper-light.webp.js.map +1 -0
  265. package/dist/components/Illustration/assets/success-dark.webp.cjs +2 -0
  266. package/dist/components/Illustration/assets/success-dark.webp.cjs.map +1 -0
  267. package/dist/components/Illustration/assets/success-dark.webp.js +7 -0
  268. package/dist/components/Illustration/assets/success-dark.webp.js.map +1 -0
  269. package/dist/components/Illustration/assets/success-light.webp.cjs +2 -0
  270. package/dist/components/Illustration/assets/success-light.webp.cjs.map +1 -0
  271. package/dist/components/Illustration/assets/success-light.webp.js +7 -0
  272. package/dist/components/Illustration/assets/success-light.webp.js.map +1 -0
  273. package/dist/components/Illustration/assets/warning-dark.webp.cjs +2 -0
  274. package/dist/components/Illustration/assets/warning-dark.webp.cjs.map +1 -0
  275. package/dist/components/Illustration/assets/warning-dark.webp.js +7 -0
  276. package/dist/components/Illustration/assets/warning-dark.webp.js.map +1 -0
  277. package/dist/components/Illustration/assets/warning-light.webp.cjs +2 -0
  278. package/dist/components/Illustration/assets/warning-light.webp.cjs.map +1 -0
  279. package/dist/components/Illustration/assets/warning-light.webp.js +7 -0
  280. package/dist/components/Illustration/assets/warning-light.webp.js.map +1 -0
  281. package/dist/components/Illustration/illustrations.cjs +2 -0
  282. package/dist/components/Illustration/illustrations.cjs.map +1 -0
  283. package/dist/components/Illustration/illustrations.d.cts +81 -0
  284. package/dist/components/Illustration/illustrations.d.ts +81 -0
  285. package/dist/components/Illustration/illustrations.js +104 -0
  286. package/dist/components/Illustration/illustrations.js.map +1 -0
  287. package/dist/components/Illustration/index.d.cts +1 -0
  288. package/dist/components/Illustration/index.d.ts +1 -0
  289. package/dist/components/InputBase/InputBase.cjs.map +1 -1
  290. package/dist/components/InputBase/InputBase.d.cts +59 -0
  291. package/dist/components/InputBase/InputBase.d.ts +30 -0
  292. package/dist/components/InputBase/InputBase.js.map +1 -1
  293. package/dist/components/InputBase/index.d.cts +1 -0
  294. package/dist/components/InputBase/index.d.ts +1 -1
  295. package/dist/components/InputBase/useInputState.d.cts +19 -0
  296. package/dist/components/InteractionLayer/InteractionLayer.cjs.map +1 -1
  297. package/dist/components/InteractionLayer/InteractionLayer.d.cts +43 -0
  298. package/dist/components/InteractionLayer/InteractionLayer.d.ts +34 -0
  299. package/dist/components/InteractionLayer/InteractionLayer.js.map +1 -1
  300. package/dist/components/InteractionLayer/index.d.cts +1 -0
  301. package/dist/components/InteractionLayer/index.d.ts +1 -1
  302. package/dist/components/Logo/index.cjs.map +1 -1
  303. package/dist/components/Logo/index.d.cts +73 -0
  304. package/dist/components/Logo/index.d.ts +27 -1
  305. package/dist/components/Logo/index.js.map +1 -1
  306. package/dist/components/Menu/Menu.cjs.map +1 -1
  307. package/dist/components/Menu/Menu.d.cts +146 -0
  308. package/dist/components/Menu/Menu.d.ts +62 -0
  309. package/dist/components/Menu/Menu.js.map +1 -1
  310. package/dist/components/Menu/index.d.cts +2 -0
  311. package/dist/components/Menu/index.d.ts +2 -2
  312. package/dist/components/Messagebox/Messagebox.cjs.map +1 -1
  313. package/dist/components/Messagebox/Messagebox.d.cts +50 -0
  314. package/dist/components/Messagebox/Messagebox.d.ts +33 -3
  315. package/dist/components/Messagebox/Messagebox.js.map +1 -1
  316. package/dist/components/Messagebox/index.d.cts +2 -0
  317. package/dist/components/Messagebox/index.d.ts +2 -2
  318. package/dist/components/Modal/Modal.cjs +1 -1
  319. package/dist/components/Modal/Modal.cjs.map +1 -1
  320. package/dist/components/Modal/Modal.d.cts +137 -0
  321. package/dist/components/Modal/Modal.d.ts +95 -2
  322. package/dist/components/Modal/Modal.js +0 -1
  323. package/dist/components/Modal/Modal.js.map +1 -1
  324. package/dist/components/Modal/ModalBase.cjs.map +1 -1
  325. package/dist/components/Modal/ModalBase.d.cts +71 -0
  326. package/dist/components/Modal/ModalBase.d.ts +39 -1
  327. package/dist/components/Modal/ModalBase.js.map +1 -1
  328. package/dist/components/Modal/index.d.cts +4 -0
  329. package/dist/components/Modal/index.d.ts +4 -4
  330. package/dist/components/Nav/Nav.cjs.map +1 -1
  331. package/dist/components/Nav/Nav.d.cts +69 -0
  332. package/dist/components/Nav/Nav.d.ts +46 -0
  333. package/dist/components/Nav/Nav.js.map +1 -1
  334. package/dist/components/Nav/index.d.cts +2 -0
  335. package/dist/components/Nav/index.d.ts +2 -2
  336. package/dist/components/Overlay/Overlay.cjs.map +1 -1
  337. package/dist/components/Overlay/Overlay.d.cts +36 -0
  338. package/dist/components/Overlay/Overlay.d.ts +21 -3
  339. package/dist/components/Overlay/Overlay.js.map +1 -1
  340. package/dist/components/Overlay/index.d.cts +2 -0
  341. package/dist/components/Overlay/index.d.ts +2 -2
  342. package/dist/components/Pagination/Pagination.cjs +1 -1
  343. package/dist/components/Pagination/Pagination.cjs.map +1 -1
  344. package/dist/components/Pagination/Pagination.d.cts +68 -0
  345. package/dist/components/Pagination/Pagination.d.ts +43 -1
  346. package/dist/components/Pagination/Pagination.js +55 -41
  347. package/dist/components/Pagination/Pagination.js.map +1 -1
  348. package/dist/components/Pagination/index.d.cts +2 -0
  349. package/dist/components/Pagination/index.d.ts +2 -2
  350. package/dist/components/Panel/Panel.cjs +1 -1
  351. package/dist/components/Panel/Panel.cjs.map +1 -1
  352. package/dist/components/Panel/Panel.d.cts +124 -0
  353. package/dist/components/Panel/Panel.d.ts +119 -8
  354. package/dist/components/Panel/Panel.js +83 -46
  355. package/dist/components/Panel/Panel.js.map +1 -1
  356. package/dist/components/Panel/index.d.cts +2 -0
  357. package/dist/components/Panel/index.d.ts +2 -2
  358. package/dist/components/Popover/Popover.cjs.map +1 -1
  359. package/dist/components/Popover/Popover.d.cts +96 -0
  360. package/dist/components/Popover/Popover.d.ts +42 -0
  361. package/dist/components/Popover/Popover.js.map +1 -1
  362. package/dist/components/Popover/index.d.cts +2 -0
  363. package/dist/components/Popover/index.d.ts +2 -2
  364. package/dist/components/ProgressBar/ProgressBar.cjs.map +1 -1
  365. package/dist/components/ProgressBar/ProgressBar.d.cts +45 -0
  366. package/dist/components/ProgressBar/ProgressBar.d.ts +32 -0
  367. package/dist/components/ProgressBar/ProgressBar.js.map +1 -1
  368. package/dist/components/ProgressBar/index.d.cts +2 -0
  369. package/dist/components/ProgressBar/index.d.ts +2 -2
  370. package/dist/components/Radio/Radio.cjs.map +1 -1
  371. package/dist/components/Radio/Radio.d.cts +32 -0
  372. package/dist/components/Radio/Radio.d.ts +21 -0
  373. package/dist/components/Radio/Radio.js.map +1 -1
  374. package/dist/components/Radio/index.d.cts +2 -0
  375. package/dist/components/Radio/index.d.ts +2 -2
  376. package/dist/components/ScrollArea/ScrollArea.cjs.map +1 -1
  377. package/dist/components/ScrollArea/ScrollArea.d.cts +42 -0
  378. package/dist/components/ScrollArea/ScrollArea.d.ts +24 -0
  379. package/dist/components/ScrollArea/ScrollArea.js.map +1 -1
  380. package/dist/components/ScrollArea/index.d.cts +2 -0
  381. package/dist/components/ScrollArea/index.d.ts +2 -2
  382. package/dist/components/Segmented/Segmented.cjs.map +1 -1
  383. package/dist/components/Segmented/Segmented.d.cts +41 -0
  384. package/dist/components/Segmented/Segmented.d.ts +26 -0
  385. package/dist/components/Segmented/Segmented.js.map +1 -1
  386. package/dist/components/Segmented/index.d.cts +2 -0
  387. package/dist/components/Segmented/index.d.ts +2 -2
  388. package/dist/components/SelectBox/SelectBox.cjs +1 -1
  389. package/dist/components/SelectBox/SelectBox.cjs.map +1 -1
  390. package/dist/components/SelectBox/SelectBox.d.cts +95 -0
  391. package/dist/components/SelectBox/SelectBox.d.ts +55 -3
  392. package/dist/components/SelectBox/SelectBox.js +17 -12
  393. package/dist/components/SelectBox/SelectBox.js.map +1 -1
  394. package/dist/components/SelectBox/index.d.cts +2 -0
  395. package/dist/components/SelectBox/index.d.ts +2 -2
  396. package/dist/components/SelectButton/SelectButton.cjs +1 -1
  397. package/dist/components/SelectButton/SelectButton.cjs.map +1 -1
  398. package/dist/components/SelectButton/SelectButton.d.cts +54 -0
  399. package/dist/components/SelectButton/SelectButton.d.ts +37 -1
  400. package/dist/components/SelectButton/SelectButton.js +31 -31
  401. package/dist/components/SelectButton/SelectButton.js.map +1 -1
  402. package/dist/components/SelectButton/index.d.cts +2 -0
  403. package/dist/components/SelectButton/index.d.ts +2 -2
  404. package/dist/components/ShapeEditor/ShapeEditor.cjs +1 -1
  405. package/dist/components/ShapeEditor/ShapeEditor.cjs.map +1 -1
  406. package/dist/components/ShapeEditor/ShapeEditor.d.cts +40 -0
  407. package/dist/components/ShapeEditor/ShapeEditor.d.ts +36 -3
  408. package/dist/components/ShapeEditor/ShapeEditor.js +1 -1
  409. package/dist/components/ShapeEditor/ShapeEditor.js.map +1 -1
  410. package/dist/components/ShapeEditor/ShapeViewer.cjs +1 -1
  411. package/dist/components/ShapeEditor/ShapeViewer.cjs.map +1 -1
  412. package/dist/components/ShapeEditor/ShapeViewer.d.cts +92 -0
  413. package/dist/components/ShapeEditor/ShapeViewer.d.ts +55 -5
  414. package/dist/components/ShapeEditor/ShapeViewer.js +47 -41
  415. package/dist/components/ShapeEditor/ShapeViewer.js.map +1 -1
  416. package/dist/components/ShapeEditor/_components/AssistantOverlay.d.cts +17 -0
  417. package/dist/components/ShapeEditor/_components/AssistantOverlay.d.ts +2 -2
  418. package/dist/components/ShapeEditor/_components/ContextMenu.d.cts +13 -0
  419. package/dist/components/ShapeEditor/_components/ContextMenu.d.ts +1 -1
  420. package/dist/components/ShapeEditor/_components/CursorGuide.d.cts +8 -0
  421. package/dist/components/ShapeEditor/_components/ImageStateOverlay.d.cts +17 -0
  422. package/dist/components/ShapeEditor/_components/ImageStateOverlay.d.ts +1 -1
  423. package/dist/components/ShapeEditor/_components/Minimap.d.cts +46 -0
  424. package/dist/components/ShapeEditor/_components/Minimap.d.ts +6 -6
  425. package/dist/components/ShapeEditor/_components/MinimapShape.d.cts +6 -0
  426. package/dist/components/ShapeEditor/_components/MinimapShape.d.ts +1 -1
  427. package/dist/components/ShapeEditor/_components/RegionOverlay.d.cts +21 -0
  428. package/dist/components/ShapeEditor/_components/RegionOverlay.d.ts +1 -1
  429. package/dist/components/ShapeEditor/_components/SelectionInfo.d.cts +20 -0
  430. package/dist/components/ShapeEditor/_components/SelectionInfo.d.ts +3 -3
  431. package/dist/components/ShapeEditor/_components/SettingsPanel.cjs.map +1 -1
  432. package/dist/components/ShapeEditor/_components/SettingsPanel.d.cts +28 -0
  433. package/dist/components/ShapeEditor/_components/SettingsPanel.d.ts +5 -5
  434. package/dist/components/ShapeEditor/_components/SettingsPanel.js.map +1 -1
  435. package/dist/components/ShapeEditor/_constants.cjs +1 -1
  436. package/dist/components/ShapeEditor/_constants.cjs.map +1 -1
  437. package/dist/components/ShapeEditor/_constants.d.cts +15 -0
  438. package/dist/components/ShapeEditor/_constants.d.ts +0 -21
  439. package/dist/components/ShapeEditor/_constants.js +1 -1
  440. package/dist/components/ShapeEditor/_constants.js.map +1 -1
  441. package/dist/components/ShapeEditor/_model/brush.d.cts +3 -0
  442. package/dist/components/ShapeEditor/_model/brush.d.ts +1 -1
  443. package/dist/components/ShapeEditor/_model/clipboard.d.cts +22 -0
  444. package/dist/components/ShapeEditor/_model/clipboard.d.ts +1 -1
  445. package/dist/components/ShapeEditor/_model/cursors.d.cts +23 -0
  446. package/dist/components/ShapeEditor/_model/cursors.d.ts +2 -2
  447. package/dist/components/ShapeEditor/_model/geometry.cjs.map +1 -1
  448. package/dist/components/ShapeEditor/_model/geometry.d.cts +182 -0
  449. package/dist/components/ShapeEditor/_model/geometry.d.ts +17 -1
  450. package/dist/components/ShapeEditor/_model/geometry.js.map +1 -1
  451. package/dist/components/ShapeEditor/_model/imageDiagnosis.cjs +1 -1
  452. package/dist/components/ShapeEditor/_model/imageDiagnosis.cjs.map +1 -1
  453. package/dist/components/ShapeEditor/_model/imageDiagnosis.d.cts +38 -0
  454. package/dist/components/ShapeEditor/_model/imageDiagnosis.d.ts +4 -1
  455. package/dist/components/ShapeEditor/_model/imageDiagnosis.js +29 -20
  456. package/dist/components/ShapeEditor/_model/imageDiagnosis.js.map +1 -1
  457. package/dist/components/ShapeEditor/_model/imageLoad.d.cts +29 -0
  458. package/dist/components/ShapeEditor/_model/imageSignature.d.cts +18 -0
  459. package/dist/components/ShapeEditor/_model/imageTiles.d.cts +11 -0
  460. package/dist/components/ShapeEditor/_model/keymap.cjs.map +1 -1
  461. package/dist/components/ShapeEditor/_model/keymap.d.cts +17 -0
  462. package/dist/components/ShapeEditor/_model/keymap.d.ts +2 -0
  463. package/dist/components/ShapeEditor/_model/keymap.js.map +1 -1
  464. package/dist/components/ShapeEditor/_model/overlays.d.cts +108 -0
  465. package/dist/components/ShapeEditor/_model/overlays.d.ts +1 -1
  466. package/dist/components/ShapeEditor/_model/pinIcon.d.cts +13 -0
  467. package/dist/components/ShapeEditor/_model/polygonFill.d.cts +2 -0
  468. package/dist/components/ShapeEditor/_model/polygonFill.d.ts +1 -1
  469. package/dist/components/ShapeEditor/_model/props.d.cts +13 -0
  470. package/dist/components/ShapeEditor/_model/props.d.ts +8 -8
  471. package/dist/components/ShapeEditor/_model/scalarMask.d.cts +21 -0
  472. package/dist/components/ShapeEditor/_model/scalarMask.d.ts +1 -1
  473. package/dist/components/ShapeEditor/_model/shapeHitTest.d.cts +14 -0
  474. package/dist/components/ShapeEditor/_model/shapeHitTest.d.ts +2 -2
  475. package/dist/components/ShapeEditor/_model/shapeRenderStyle.d.cts +16 -0
  476. package/dist/components/ShapeEditor/_model/shapeRenderStyle.d.ts +1 -1
  477. package/dist/components/ShapeEditor/_model/strings.cjs.map +1 -1
  478. package/dist/components/ShapeEditor/_model/strings.d.cts +62 -0
  479. package/dist/components/ShapeEditor/_model/strings.d.ts +2 -1
  480. package/dist/components/ShapeEditor/_model/strings.js.map +1 -1
  481. package/dist/components/ShapeEditor/_model/tools.cjs.map +1 -1
  482. package/dist/components/ShapeEditor/_model/tools.d.cts +29 -0
  483. package/dist/components/ShapeEditor/_model/tools.d.ts +4 -2
  484. package/dist/components/ShapeEditor/_model/tools.js.map +1 -1
  485. package/dist/components/ShapeEditor/_model/types/assistant.d.cts +37 -0
  486. package/dist/components/ShapeEditor/_model/types/assistant.d.ts +3 -1
  487. package/dist/components/ShapeEditor/_model/types/handle.d.cts +124 -0
  488. package/dist/components/ShapeEditor/_model/types/handle.d.ts +30 -4
  489. package/dist/components/ShapeEditor/_model/types/props.d.cts +430 -0
  490. package/dist/components/ShapeEditor/_model/types/props.d.ts +83 -20
  491. package/dist/components/ShapeEditor/_model/viewSettings.cjs.map +1 -1
  492. package/dist/components/ShapeEditor/_model/viewSettings.d.cts +73 -0
  493. package/dist/components/ShapeEditor/_model/viewSettings.d.ts +13 -1
  494. package/dist/components/ShapeEditor/_model/viewSettings.js.map +1 -1
  495. package/dist/components/ShapeEditor/_model/viewerPatch.d.cts +60 -0
  496. package/dist/components/ShapeEditor/_model/viewerPatch.d.ts +1 -1
  497. package/dist/components/ShapeEditor/_model/viewport.d.cts +36 -0
  498. package/dist/components/ShapeEditor/_model/viewport.d.ts +1 -1
  499. package/dist/components/ShapeEditor/_renderers/PixiRenderer.cjs +1 -1
  500. package/dist/components/ShapeEditor/_renderers/PixiRenderer.cjs.map +1 -1
  501. package/dist/components/ShapeEditor/_renderers/PixiRenderer.d.cts +121 -0
  502. package/dist/components/ShapeEditor/_renderers/PixiRenderer.d.ts +5 -5
  503. package/dist/components/ShapeEditor/_renderers/PixiRenderer.js +1 -1
  504. package/dist/components/ShapeEditor/_renderers/PixiRenderer.js.map +1 -1
  505. package/dist/components/ShapeEditor/_renderers/imageLayer.d.cts +35 -0
  506. package/dist/components/ShapeEditor/_renderers/overlayLayer.d.cts +36 -0
  507. package/dist/components/ShapeEditor/_renderers/overlayLayer.d.ts +2 -2
  508. package/dist/components/ShapeEditor/_renderers/previewLayer.cjs +1 -1
  509. package/dist/components/ShapeEditor/_renderers/previewLayer.cjs.map +1 -1
  510. package/dist/components/ShapeEditor/_renderers/previewLayer.d.cts +34 -0
  511. package/dist/components/ShapeEditor/_renderers/previewLayer.d.ts +5 -3
  512. package/dist/components/ShapeEditor/_renderers/previewLayer.js +3 -0
  513. package/dist/components/ShapeEditor/_renderers/previewLayer.js.map +1 -1
  514. package/dist/components/ShapeEditor/_renderers/shapeLayer.d.cts +49 -0
  515. package/dist/components/ShapeEditor/_renderers/shapeLayer.d.ts +3 -3
  516. package/dist/components/ShapeEditor/_renderers/shapePainter.d.cts +27 -0
  517. package/dist/components/ShapeEditor/_renderers/shapePainter.d.ts +1 -1
  518. package/dist/components/ShapeEditor/_renderers/transformDriver.d.cts +55 -0
  519. package/dist/components/ShapeEditor/_renderers/transformDriver.d.ts +3 -3
  520. package/dist/components/ShapeEditor/_renderers/transformSession.d.cts +74 -0
  521. package/dist/components/ShapeEditor/_renderers/transformSession.d.ts +1 -1
  522. package/dist/components/ShapeEditor/_renderers/transformerLayer.d.cts +69 -0
  523. package/dist/components/ShapeEditor/_renderers/transformerLayer.d.ts +2 -2
  524. package/dist/components/ShapeEditor/_renderers/types.d.cts +129 -0
  525. package/dist/components/ShapeEditor/_renderers/types.d.ts +6 -6
  526. package/dist/components/ShapeEditor/_state/buildContextMenuItems.d.cts +26 -0
  527. package/dist/components/ShapeEditor/_state/buildContextMenuItems.d.ts +5 -5
  528. package/dist/components/ShapeEditor/_state/buildHotkeyActions.d.cts +42 -0
  529. package/dist/components/ShapeEditor/_state/buildHotkeyActions.d.ts +7 -7
  530. package/dist/components/ShapeEditor/_state/createInteractionController.d.cts +73 -0
  531. package/dist/components/ShapeEditor/_state/createInteractionController.d.ts +9 -9
  532. package/dist/components/ShapeEditor/_state/drawSessionState.d.cts +6 -0
  533. package/dist/components/ShapeEditor/_state/drawSessionState.d.ts +2 -2
  534. package/dist/components/ShapeEditor/_state/useAssistant.d.cts +48 -0
  535. package/dist/components/ShapeEditor/_state/useAssistant.d.ts +3 -3
  536. package/dist/components/ShapeEditor/_state/useDrawSession.d.cts +61 -0
  537. package/dist/components/ShapeEditor/_state/useDrawSession.d.ts +5 -5
  538. package/dist/components/ShapeEditor/_state/useEditorDocument.d.cts +23 -0
  539. package/dist/components/ShapeEditor/_state/useEditorDocument.d.ts +1 -1
  540. package/dist/components/ShapeEditor/_state/useEditorHandle.d.cts +34 -0
  541. package/dist/components/ShapeEditor/_state/useEditorHandle.d.ts +9 -9
  542. package/dist/components/ShapeEditor/_state/useEditorHotkeys.cjs +1 -1
  543. package/dist/components/ShapeEditor/_state/useEditorHotkeys.cjs.map +1 -1
  544. package/dist/components/ShapeEditor/_state/useEditorHotkeys.d.cts +25 -0
  545. package/dist/components/ShapeEditor/_state/useEditorHotkeys.d.ts +1 -1
  546. package/dist/components/ShapeEditor/_state/useEditorHotkeys.js +15 -15
  547. package/dist/components/ShapeEditor/_state/useEditorHotkeys.js.map +1 -1
  548. package/dist/components/ShapeEditor/_state/useEditorView.d.cts +15 -0
  549. package/dist/components/ShapeEditor/_state/useEditorView.d.ts +1 -1
  550. package/dist/components/ShapeEditor/_state/useEngineLifecycle.cjs +1 -1
  551. package/dist/components/ShapeEditor/_state/useEngineLifecycle.cjs.map +1 -1
  552. package/dist/components/ShapeEditor/_state/useEngineLifecycle.d.cts +89 -0
  553. package/dist/components/ShapeEditor/_state/useEngineLifecycle.d.ts +6 -6
  554. package/dist/components/ShapeEditor/_state/useEngineLifecycle.js +23 -20
  555. package/dist/components/ShapeEditor/_state/useEngineLifecycle.js.map +1 -1
  556. package/dist/components/ShapeEditor/_state/useLatestRef.d.cts +7 -0
  557. package/dist/components/ShapeEditor/_state/useMinimapNavigation.d.cts +27 -0
  558. package/dist/components/ShapeEditor/_state/useMinimapNavigation.d.ts +1 -1
  559. package/dist/components/ShapeEditor/_state/useMinimapSync.d.cts +26 -0
  560. package/dist/components/ShapeEditor/_state/useMinimapSync.d.ts +3 -3
  561. package/dist/components/ShapeEditor/_state/useSelectionActions.d.cts +31 -0
  562. package/dist/components/ShapeEditor/_state/useSelectionActions.d.ts +2 -2
  563. package/dist/components/ShapeEditor/_state/useSelectionInfoOverlay.d.cts +32 -0
  564. package/dist/components/ShapeEditor/_state/useSelectionInfoOverlay.d.ts +4 -4
  565. package/dist/components/ShapeEditor/_state/useSelectionModel.d.cts +24 -0
  566. package/dist/components/ShapeEditor/_state/useSelectionModel.d.ts +4 -4
  567. package/dist/components/ShapeEditor/_state/useViewportControls.d.cts +23 -0
  568. package/dist/components/ShapeEditor/_state/useViewportControls.d.ts +3 -3
  569. package/dist/components/ShapeEditor/index.d.cts +13 -0
  570. package/dist/components/ShapeEditor/index.d.ts +13 -8
  571. package/dist/components/Shortcut/Shortcut.cjs.map +1 -1
  572. package/dist/components/Shortcut/Shortcut.d.cts +24 -0
  573. package/dist/components/Shortcut/Shortcut.d.ts +16 -0
  574. package/dist/components/Shortcut/Shortcut.js.map +1 -1
  575. package/dist/components/Shortcut/index.d.cts +2 -0
  576. package/dist/components/Shortcut/index.d.ts +2 -2
  577. package/dist/components/Skeleton/Skeleton.cjs.map +1 -1
  578. package/dist/components/Skeleton/Skeleton.d.cts +26 -0
  579. package/dist/components/Skeleton/Skeleton.d.ts +19 -0
  580. package/dist/components/Skeleton/Skeleton.js.map +1 -1
  581. package/dist/components/Skeleton/index.d.cts +2 -0
  582. package/dist/components/Skeleton/index.d.ts +2 -2
  583. package/dist/components/Slider/Slider.cjs +1 -1
  584. package/dist/components/Slider/Slider.cjs.map +1 -1
  585. package/dist/components/Slider/Slider.d.cts +45 -0
  586. package/dist/components/Slider/Slider.d.ts +33 -1
  587. package/dist/components/Slider/Slider.js +18 -14
  588. package/dist/components/Slider/Slider.js.map +1 -1
  589. package/dist/components/Slider/index.d.cts +2 -0
  590. package/dist/components/Slider/index.d.ts +2 -2
  591. package/dist/components/Spinner/Spinner.cjs.map +1 -1
  592. package/dist/components/Spinner/Spinner.d.cts +32 -0
  593. package/dist/components/Spinner/Spinner.d.ts +18 -1
  594. package/dist/components/Spinner/Spinner.js.map +1 -1
  595. package/dist/components/Spinner/index.d.cts +2 -0
  596. package/dist/components/Spinner/index.d.ts +2 -2
  597. package/dist/components/Switch/Switch.cjs +1 -1
  598. package/dist/components/Switch/Switch.cjs.map +1 -1
  599. package/dist/components/Switch/Switch.d.cts +29 -0
  600. package/dist/components/Switch/Switch.d.ts +16 -0
  601. package/dist/components/Switch/Switch.js +1 -1
  602. package/dist/components/Switch/Switch.js.map +1 -1
  603. package/dist/components/Switch/index.d.cts +2 -0
  604. package/dist/components/Switch/index.d.ts +2 -2
  605. package/dist/components/Tab/Tab.cjs.map +1 -1
  606. package/dist/components/Tab/Tab.d.cts +45 -0
  607. package/dist/components/Tab/Tab.d.ts +26 -0
  608. package/dist/components/Tab/Tab.js.map +1 -1
  609. package/dist/components/Tab/index.d.cts +2 -0
  610. package/dist/components/Tab/index.d.ts +2 -2
  611. package/dist/components/Tag/Tag.cjs.map +1 -1
  612. package/dist/components/Tag/Tag.d.cts +50 -0
  613. package/dist/components/Tag/Tag.d.ts +32 -1
  614. package/dist/components/Tag/Tag.js.map +1 -1
  615. package/dist/components/Tag/index.d.cts +2 -0
  616. package/dist/components/Tag/index.d.ts +2 -2
  617. package/dist/components/Tagbox/Tagbox.cjs +1 -1
  618. package/dist/components/Tagbox/Tagbox.cjs.map +1 -1
  619. package/dist/components/Tagbox/Tagbox.d.cts +67 -0
  620. package/dist/components/Tagbox/Tagbox.d.ts +46 -3
  621. package/dist/components/Tagbox/Tagbox.js +5 -3
  622. package/dist/components/Tagbox/Tagbox.js.map +1 -1
  623. package/dist/components/Tagbox/index.d.cts +2 -0
  624. package/dist/components/Tagbox/index.d.ts +2 -2
  625. package/dist/components/Textarea/Textarea.cjs +1 -1
  626. package/dist/components/Textarea/Textarea.cjs.map +1 -1
  627. package/dist/components/Textarea/Textarea.d.cts +51 -0
  628. package/dist/components/Textarea/Textarea.d.ts +32 -3
  629. package/dist/components/Textarea/Textarea.js +20 -19
  630. package/dist/components/Textarea/Textarea.js.map +1 -1
  631. package/dist/components/Textarea/index.d.cts +2 -0
  632. package/dist/components/Textarea/index.d.ts +2 -2
  633. package/dist/components/Textbox/Textbox.cjs.map +1 -1
  634. package/dist/components/Textbox/Textbox.d.cts +49 -0
  635. package/dist/components/Textbox/Textbox.d.ts +30 -1
  636. package/dist/components/Textbox/Textbox.js.map +1 -1
  637. package/dist/components/Textbox/index.d.cts +2 -0
  638. package/dist/components/Textbox/index.d.ts +2 -2
  639. package/dist/components/Toast/Toast.cjs +1 -1
  640. package/dist/components/Toast/Toast.cjs.map +1 -1
  641. package/dist/components/Toast/Toast.d.cts +99 -0
  642. package/dist/components/Toast/Toast.d.ts +72 -4
  643. package/dist/components/Toast/Toast.js +3 -2
  644. package/dist/components/Toast/Toast.js.map +1 -1
  645. package/dist/components/Toast/index.d.cts +2 -0
  646. package/dist/components/Toast/index.d.ts +2 -2
  647. package/dist/components/ToggleButton/ToggleButton.cjs.map +1 -1
  648. package/dist/components/ToggleButton/ToggleButton.d.cts +41 -0
  649. package/dist/components/ToggleButton/ToggleButton.d.ts +21 -0
  650. package/dist/components/ToggleButton/ToggleButton.js.map +1 -1
  651. package/dist/components/ToggleButton/index.d.cts +2 -0
  652. package/dist/components/ToggleButton/index.d.ts +2 -2
  653. package/dist/components/Tooltip/Tooltip.cjs.map +1 -1
  654. package/dist/components/Tooltip/Tooltip.d.cts +40 -0
  655. package/dist/components/Tooltip/Tooltip.d.ts +27 -0
  656. package/dist/components/Tooltip/Tooltip.js.map +1 -1
  657. package/dist/components/Tooltip/index.d.cts +2 -0
  658. package/dist/components/Tooltip/index.d.ts +2 -2
  659. package/dist/components/TruncatedText/TruncatedText.cjs.map +1 -1
  660. package/dist/components/TruncatedText/TruncatedText.d.cts +44 -0
  661. package/dist/components/TruncatedText/TruncatedText.d.ts +22 -0
  662. package/dist/components/TruncatedText/TruncatedText.js.map +1 -1
  663. package/dist/components/TruncatedText/index.d.cts +2 -0
  664. package/dist/components/TruncatedText/index.d.ts +2 -2
  665. package/dist/components/Typography/Typography.cjs.map +1 -1
  666. package/dist/components/Typography/Typography.d.cts +33 -0
  667. package/dist/components/Typography/Typography.d.ts +21 -0
  668. package/dist/components/Typography/Typography.js.map +1 -1
  669. package/dist/components/Typography/index.d.cts +2 -0
  670. package/dist/components/Typography/index.d.ts +2 -2
  671. package/dist/components/UploadArea/UploadArea.cjs +1 -1
  672. package/dist/components/UploadArea/UploadArea.cjs.map +1 -1
  673. package/dist/components/UploadArea/UploadArea.d.cts +82 -0
  674. package/dist/components/UploadArea/UploadArea.d.ts +66 -1
  675. package/dist/components/UploadArea/UploadArea.js +55 -34
  676. package/dist/components/UploadArea/UploadArea.js.map +1 -1
  677. package/dist/components/UploadArea/index.d.cts +2 -0
  678. package/dist/components/UploadArea/index.d.ts +2 -2
  679. package/dist/illustration.cjs +1 -0
  680. package/dist/illustration.js +3 -0
  681. package/dist/index.d.cts +52 -0
  682. package/dist/index.d.ts +52 -52
  683. package/dist/llms-full.txt +5993 -0
  684. package/dist/llms.txt +118 -0
  685. package/dist/shape-editor.cjs +2 -1
  686. package/dist/shape-editor.cjs.map +1 -0
  687. package/dist/shape-editor.js +8 -3
  688. package/dist/shape-editor.js.map +1 -0
  689. package/dist/styles.css +2 -2
  690. package/dist/tailwind.css +434 -0
  691. package/dist/tokens/tokens.css +1 -1
  692. package/dist/utils/cn.d.cts +12 -0
  693. package/dist/utils/cn.d.ts +10 -0
  694. package/dist/utils/keyboard.d.cts +3 -0
  695. package/dist/utils/sheet.cjs +2 -0
  696. package/dist/utils/sheet.cjs.map +1 -0
  697. package/dist/utils/sheet.d.cts +17 -0
  698. package/dist/utils/sheet.d.ts +17 -0
  699. package/dist/utils/sheet.js +7 -0
  700. package/dist/utils/sheet.js.map +1 -0
  701. package/dist/utils/useControllableState.d.cts +17 -0
  702. package/dist/utils/useModalAutoFocus.d.cts +11 -0
  703. package/dist/utils/useResizableWidth.cjs +2 -0
  704. package/dist/utils/useResizableWidth.cjs.map +1 -0
  705. package/dist/utils/useResizableWidth.d.cts +30 -0
  706. package/dist/utils/useResizableWidth.d.ts +30 -0
  707. package/dist/utils/useResizableWidth.js +32 -0
  708. package/dist/utils/useResizableWidth.js.map +1 -0
  709. package/dist/utils.cjs.map +1 -1
  710. package/dist/utils.js.map +1 -1
  711. package/package.json +54 -17
@@ -1,13 +1,124 @@
1
- import type { ReactNode, Ref } from "react";
1
+ import { type CSSProperties, type ReactNode, type Ref } from "react";
2
+ /**
3
+ * 레이아웃용 사이드 패널. 화면 위에 덮이는 시트가 필요하면 Drawer를 쓴다.
4
+ *
5
+ * ```tsx
6
+ * <div className="flex h-full">
7
+ * <main className="min-w-0 flex-1">…</main>
8
+ * <Panel side="right" width={300}>
9
+ * <Panel.Header action={…}>라벨</Panel.Header>
10
+ * <Panel.Section title="클래스">…</Panel.Section>
11
+ * <Panel.Section title="라벨 목록" fill>…</Panel.Section>
12
+ * <Panel.Footer>…</Panel.Footer>
13
+ * </Panel>
14
+ * </div>
15
+ * ```
16
+ */
2
17
  export interface PanelProps {
3
- open?: boolean;
4
- onOpenChange?: (open: boolean) => void;
5
- title: ReactNode;
18
+ /** 패널 내용 — Panel.Header·Section·Body·Footer를 조합한다. */
6
19
  children: ReactNode;
7
- headerAction?: ReactNode;
20
+ /**
21
+ * 패널이 본문의 어느 쪽에 붙는지 — 구분선이 반대쪽 모서리에 생긴다.
22
+ * @default "right"
23
+ */
8
24
  side?: "left" | "right";
9
- size?: "md" | "lg";
10
- ref?: Ref<HTMLDivElement>;
25
+ /**
26
+ * 폭. 숫자는 px, 문자열은 CSS 길이. 기본 420px(Figma). style.width가 있으면 그쪽이 이긴다.
27
+ * @default 420
28
+ */
29
+ width?: number | string;
30
+ /**
31
+ * 접근성 이름. 생략하면 Panel.Header의 제목을 쓴다. 둘 다 없으면 이름 없는
32
+ * complementary 영역이 된다.
33
+ */
34
+ "aria-label"?: string;
35
+ className?: string;
36
+ /** 인라인 스타일. style.width는 width prop보다 우선한다. */
37
+ style?: CSSProperties;
38
+ ref?: Ref<HTMLElement>;
11
39
  }
12
- declare function Panel({ open, onOpenChange, title, children, headerAction, side, size, ref, }: PanelProps): import("react/jsx-runtime").JSX.Element;
40
+ declare function PanelRoot({ children, side, width, "aria-label": ariaLabel, className, style, ref, }: PanelProps): import("react/jsx-runtime").JSX.Element;
41
+ export interface PanelHeaderProps {
42
+ /** 제목 — 패널의 접근성 이름도 된다. */
43
+ children: ReactNode;
44
+ /** 제목 아래 보조 설명. */
45
+ description?: ReactNode;
46
+ /** 오른쪽 끝의 보조 동작(설정·닫기·접기 버튼 등). */
47
+ action?: ReactNode;
48
+ className?: string;
49
+ }
50
+ /** 표준 헤더 — 제목·설명·보조 동작. Drawer.Header와 같은 높이(50px)·간격·구분선(Figma Header). */
51
+ declare function PanelHeader({ children, description, action, className }: PanelHeaderProps): import("react/jsx-runtime").JSX.Element;
52
+ export interface PanelSectionProps {
53
+ /** 섹션 내용 */
54
+ children?: ReactNode;
55
+ /** 섹션 제목. 생략하면 제목 줄 없이 내용만 둔다. */
56
+ title?: ReactNode;
57
+ /** 제목 줄 오른쪽 보조 동작(메뉴 버튼 등). */
58
+ action?: ReactNode;
59
+ /**
60
+ * 남은 높이를 채우고 내용이 넘치면 섹션 안에서 세로 스크롤한다 — 라벨 목록처럼
61
+ * 길어지는 섹션에 쓴다. 기본은 내용 높이만큼 차지한다.
62
+ * @default false
63
+ */
64
+ fill?: boolean;
65
+ className?: string;
66
+ }
67
+ /** 제목이 붙은 묶음. 섹션이 이어지면 사이에 구분선이 생긴다. */
68
+ declare function PanelSection({ children, title, action, fill, className }: PanelSectionProps): import("react/jsx-runtime").JSX.Element;
69
+ export interface PanelBodyProps {
70
+ /** 본문 내용 */
71
+ children: ReactNode;
72
+ /**
73
+ * 사방 16px 여백(Figma Body). 기본 true. 목록·표처럼 가장자리까지 붙는 내용은
74
+ * false로 끈다.
75
+ * @default true
76
+ */
77
+ padded?: boolean;
78
+ className?: string;
79
+ }
80
+ /** 헤더·푸터 사이 남은 높이를 채우는 본문 — 넘치면 이 안에서 세로 스크롤한다. */
81
+ declare function PanelBody({ children, padded, className }: PanelBodyProps): import("react/jsx-runtime").JSX.Element;
82
+ export interface PanelFooterProps {
83
+ /** 푸터 내용(버튼·슬라이더 등) */
84
+ children: ReactNode;
85
+ className?: string;
86
+ }
87
+ /** 아래에 고정되는 영역(값 조절, 적용 버튼 등). 위에 구분선이 생긴다. */
88
+ declare function PanelFooter({ children, className }: PanelFooterProps): import("react/jsx-runtime").JSX.Element;
89
+ /**
90
+ * 화면 레이아웃 안에 자리를 차지하고 본문 옆에 늘 붙어 있는 사이드 패널.
91
+ *
92
+ * 편집기 속성 패널, 이미지 상세 옆 라벨 목록처럼 본문과 함께 계속 보이는 영역에 쓴다.
93
+ * 화면 위에 덮였다가 닫히는 시트가 필요하면 Drawer를 쓴다. 열림 상태·포털·애니메이션이
94
+ * 없는 `<aside>`라 flex 행 안에 직접 배치하고, 부모가 높이를 정해 줘야 한다. 접근성 이름은
95
+ * Panel.Header 제목이나 `aria-label`로 준다.
96
+ *
97
+ * @example
98
+ * ```tsx
99
+ * import { Button, Panel } from "@aivex/ui";
100
+ *
101
+ * <div className="flex h-full">
102
+ * <main className="min-w-0 flex-1">…</main>
103
+ * <Panel side="right" width={300}>
104
+ * <Panel.Header description="선택한 이미지의 라벨">이미지 상세</Panel.Header>
105
+ * <Panel.Section title="클래스">scratch · dent</Panel.Section>
106
+ * <Panel.Section title="라벨 목록" fill>…</Panel.Section>
107
+ * <Panel.Footer>
108
+ * <Button>적용</Button>
109
+ * </Panel.Footer>
110
+ * </Panel>
111
+ * </div>
112
+ * ```
113
+ */
114
+ declare const Panel: typeof PanelRoot & {
115
+ /** 표준 헤더 — 제목(패널 접근성 이름 겸)·설명·보조 동작. */
116
+ Header: typeof PanelHeader;
117
+ /** 제목이 붙은 내용 묶음. fill이면 남은 높이를 채우고 스크롤한다. */
118
+ Section: typeof PanelSection;
119
+ /** 섹션 없이 하나의 스크롤 본문으로 쓸 때의 본문 영역. */
120
+ Body: typeof PanelBody;
121
+ /** 아래에 고정되는 영역(적용 버튼 등). */
122
+ Footer: typeof PanelFooter;
123
+ };
13
124
  export { Panel };
@@ -1,55 +1,92 @@
1
1
  "use client";
2
2
  import { cn as e } from "../../utils.js";
3
- import { CloseIcon as t } from "../Icon/index.js";
4
- import { overlayVariants as n } from "../Overlay/Overlay.js";
5
- import { useModalAutoFocus as r } from "../../utils/useModalAutoFocus.js";
6
- import { drawerVariants as i } from "../Drawer/Drawer.js";
7
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
8
- import * as s from "@radix-ui/react-dialog";
3
+ import { sheetActionsClassName as t, sheetBodyClassName as n, sheetHeaderClassName as r, sheetTitleClassName as i } from "../../utils/sheet.js";
4
+ import { cva as a } from "class-variance-authority";
5
+ import { createContext as o, useContext as s, useId as c } from "react";
6
+ import { jsx as l, jsxs as u } from "react/jsx-runtime";
9
7
  //#region src/components/Panel/Panel.tsx
10
- var c = {
11
- md: "aivex:w-[384px]",
12
- lg: "aivex:w-[450px]"
13
- };
14
- function l({ open: l, onOpenChange: u, title: d, children: f, headerAction: p, side: m = "right", size: h = "md", ref: g }) {
15
- let _ = r();
16
- return /* @__PURE__ */ a(s.Root, {
17
- open: l,
18
- onOpenChange: u,
19
- children: /* @__PURE__ */ o(s.Portal, { children: [/* @__PURE__ */ a(s.Overlay, { className: e("aivex:panel-overlay", n({ variant: "dim" })) }), /* @__PURE__ */ o(s.Content, {
20
- ref: g,
21
- "data-side": m,
22
- "aria-describedby": void 0,
23
- className: e(i({ side: m }), "aivex:max-w-[calc(100vw-32px)]", c[h]),
24
- ..._,
25
- onKeyDown: (e) => {
26
- e.stopPropagation();
8
+ var d = o(void 0), f = a("aivex:flex aivex:h-full aivex:min-h-0 aivex:shrink-0 aivex:flex-col aivex:border-border-subtle aivex:bg-bg-primary", {
9
+ variants: { side: {
10
+ left: "aivex:border-r",
11
+ right: "aivex:border-l"
12
+ } },
13
+ defaultVariants: { side: "right" }
14
+ });
15
+ function p({ children: t, side: n = "right", width: r = 420, "aria-label": i, className: a, style: o, ref: s }) {
16
+ let u = c();
17
+ return /* @__PURE__ */ l(d.Provider, {
18
+ value: u,
19
+ children: /* @__PURE__ */ l("aside", {
20
+ ref: s,
21
+ "aria-label": i,
22
+ "aria-labelledby": i ? void 0 : u,
23
+ "data-side": n,
24
+ className: e(f({ side: n }), a),
25
+ style: {
26
+ width: r,
27
+ ...o
27
28
  },
28
- children: [/* @__PURE__ */ o("div", {
29
- className: "aivex:flex aivex:h-12 aivex:w-full aivex:shrink-0 aivex:items-center aivex:justify-between aivex:gap-lg aivex:border-b aivex:border-border-subtle aivex:px-xl aivex:py-lg",
30
- children: [/* @__PURE__ */ a(s.Title, {
31
- className: "aivex:m-0 aivex:min-w-0 aivex:flex-1 aivex:truncate aivex:text-label-xl aivex:text-text-primary",
32
- children: d
33
- }), /* @__PURE__ */ o("div", {
34
- className: "aivex:flex aivex:shrink-0 aivex:items-center aivex:gap-md",
35
- children: [p, /* @__PURE__ */ a(s.Close, {
36
- asChild: !0,
37
- children: /* @__PURE__ */ a("button", {
38
- type: "button",
39
- className: e("aivex:flex aivex:h-6 aivex:w-6 aivex:shrink-0 aivex:cursor-pointer aivex:items-center aivex:justify-center aivex:rounded-sm", "aivex:text-icon-secondary aivex:transition-colors", "aivex:hover:bg-bg-tertiary aivex:hover:text-icon-primary", "aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand"),
40
- "aria-label": "Close panel",
41
- children: /* @__PURE__ */ a(t, { size: 20 })
42
- })
43
- })]
44
- })]
45
- }), /* @__PURE__ */ a("div", {
46
- className: "aivex:flex aivex:min-h-0 aivex:flex-1 aivex:flex-col",
47
- children: f
48
- })]
49
- })] })
29
+ children: t
30
+ })
50
31
  });
51
32
  }
33
+ function m({ children: n, description: a, action: o, className: c }) {
34
+ let f = s(d);
35
+ return /* @__PURE__ */ u("div", {
36
+ className: e(r, c),
37
+ children: [/* @__PURE__ */ u("div", {
38
+ className: "aivex:flex aivex:min-w-0 aivex:flex-1 aivex:flex-col aivex:gap-2xs",
39
+ children: [/* @__PURE__ */ l("h2", {
40
+ id: f,
41
+ className: i,
42
+ children: n
43
+ }), a ? /* @__PURE__ */ l("p", {
44
+ className: "aivex:m-0 aivex:text-body-sm-regular aivex:text-text-secondary",
45
+ children: a
46
+ }) : null]
47
+ }), o ? /* @__PURE__ */ l("div", {
48
+ className: t,
49
+ children: o
50
+ }) : null]
51
+ });
52
+ }
53
+ function h({ children: t, title: n, action: r, fill: i = !1, className: a }) {
54
+ return /* @__PURE__ */ u("section", {
55
+ className: e("aivex:flex aivex:flex-col aivex:gap-md aivex:px-xl aivex:py-lg", "aivex:[&+section]:border-t aivex:[&+section]:border-border-subtle", i ? "aivex:min-h-0 aivex:flex-1" : "aivex:shrink-0", a),
56
+ children: [n || r ? /* @__PURE__ */ u("div", {
57
+ className: "aivex:flex aivex:min-h-8 aivex:shrink-0 aivex:items-center aivex:justify-between aivex:gap-md",
58
+ children: [/* @__PURE__ */ l("h3", {
59
+ className: "aivex:m-0 aivex:min-w-0 aivex:truncate aivex:text-body-md-medium aivex:text-text-primary",
60
+ children: n
61
+ }), r ? /* @__PURE__ */ l("div", {
62
+ className: "aivex:flex aivex:shrink-0 aivex:items-center aivex:gap-xs",
63
+ children: r
64
+ }) : null]
65
+ }) : null, i ? /* @__PURE__ */ l("div", {
66
+ className: "aivex:flex aivex:min-h-0 aivex:flex-1 aivex:flex-col aivex:overflow-y-auto",
67
+ children: t
68
+ }) : t]
69
+ });
70
+ }
71
+ function g({ children: t, padded: r = !0, className: i }) {
72
+ return /* @__PURE__ */ l("div", {
73
+ className: e(n, r && "aivex:p-xl", i),
74
+ children: t
75
+ });
76
+ }
77
+ function _({ children: t, className: n }) {
78
+ return /* @__PURE__ */ l("div", {
79
+ className: e("aivex:mt-auto aivex:flex aivex:shrink-0 aivex:flex-col aivex:gap-md aivex:border-t aivex:border-border-subtle aivex:px-xl aivex:py-lg", n),
80
+ children: t
81
+ });
82
+ }
83
+ var v = Object.assign(p, {
84
+ Header: m,
85
+ Section: h,
86
+ Body: g,
87
+ Footer: _
88
+ });
52
89
  //#endregion
53
- export { l as Panel };
90
+ export { v as Panel };
54
91
 
55
92
  //# sourceMappingURL=Panel.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Panel.js","names":[],"sources":["../../../src/components/Panel/Panel.tsx"],"sourcesContent":["import * as RadixDialog from \"@radix-ui/react-dialog\";\nimport type { ReactNode, Ref } from \"react\";\nimport { drawerVariants } from \"@/components/Drawer/Drawer\";\nimport { CloseIcon } from \"@/components/Icon\";\nimport { overlayVariants } from \"@/components/Overlay/Overlay\";\nimport { cn } from \"@/utils/cn\";\nimport { useModalAutoFocus } from \"@/utils/useModalAutoFocus\";\n\nexport interface PanelProps {\n open?: boolean;\n onOpenChange?: (open: boolean) => void;\n title: ReactNode;\n children: ReactNode;\n headerAction?: ReactNode;\n side?: \"left\" | \"right\";\n size?: \"md\" | \"lg\";\n ref?: Ref<HTMLDivElement>;\n}\n\nconst panelSizeClasses = {\n md: \"aivex:w-[384px]\",\n lg: \"aivex:w-[450px]\",\n} as const;\n\nfunction Panel({\n open,\n onOpenChange,\n title,\n children,\n headerAction,\n side = \"right\",\n size = \"md\",\n ref,\n}: PanelProps) {\n const autoFocus = useModalAutoFocus();\n return (\n <RadixDialog.Root open={open} onOpenChange={onOpenChange}>\n <RadixDialog.Portal>\n <RadixDialog.Overlay\n className={cn(\"aivex:panel-overlay\", overlayVariants({ variant: \"dim\" }))}\n />\n <RadixDialog.Content\n ref={ref}\n data-side={side}\n // 패널은 설명을 두지 않는다 — 명시해야 Radix가 개발 모드 경고를 내지 않는다.\n aria-describedby={undefined}\n className={cn(\n drawerVariants({ side }),\n \"aivex:max-w-[calc(100vw-32px)]\",\n panelSizeClasses[size],\n )}\n {...autoFocus}\n onKeyDown={(event) => {\n event.stopPropagation();\n }}\n >\n <div className=\"aivex:flex aivex:h-12 aivex:w-full aivex:shrink-0 aivex:items-center aivex:justify-between aivex:gap-lg aivex:border-b aivex:border-border-subtle aivex:px-xl aivex:py-lg\">\n <RadixDialog.Title className=\"aivex:m-0 aivex:min-w-0 aivex:flex-1 aivex:truncate aivex:text-label-xl aivex:text-text-primary\">\n {title}\n </RadixDialog.Title>\n <div className=\"aivex:flex aivex:shrink-0 aivex:items-center aivex:gap-md\">\n {headerAction}\n <RadixDialog.Close asChild>\n <button\n type=\"button\"\n className={cn(\n \"aivex:flex aivex:h-6 aivex:w-6 aivex:shrink-0 aivex:cursor-pointer aivex:items-center aivex:justify-center aivex:rounded-sm\",\n \"aivex:text-icon-secondary aivex:transition-colors\",\n \"aivex:hover:bg-bg-tertiary aivex:hover:text-icon-primary\",\n \"aivex:focus-visible:outline-none aivex:focus-visible:ring-2 aivex:focus-visible:ring-border-brand\",\n )}\n aria-label=\"Close panel\"\n >\n <CloseIcon size={20} />\n </button>\n </RadixDialog.Close>\n </div>\n </div>\n <div className=\"aivex:flex aivex:min-h-0 aivex:flex-1 aivex:flex-col\">{children}</div>\n </RadixDialog.Content>\n </RadixDialog.Portal>\n </RadixDialog.Root>\n );\n}\n\nexport { Panel };\n"],"mappings":";;;;;;;;;AAmBA,IAAM,IAAmB;CACvB,IAAI;CACJ,IAAI;CACL;AAED,SAAS,EAAM,EACb,SACA,iBACA,UACA,aACA,iBACA,UAAO,SACP,UAAO,MACP,UACa;CACb,IAAM,IAAY,GAAmB;AACrC,QACE,kBAAC,EAAY,MAAb;EAAwB;EAAoB;YAC1C,kBAAC,EAAY,QAAb,EAAA,UAAA,CACE,kBAAC,EAAY,SAAb,EACE,WAAW,EAAG,uBAAuB,EAAgB,EAAE,SAAS,OAAO,CAAC,CAAC,EACzE,CAAA,EACF,kBAAC,EAAY,SAAb;GACO;GACL,aAAW;GAEX,oBAAkB,KAAA;GAClB,WAAW,EACT,EAAe,EAAE,SAAM,CAAC,EACxB,kCACA,EAAiB,GAClB;GACD,GAAI;GACJ,YAAY,MAAU;AACpB,MAAM,iBAAiB;;aAZ3B,CAeE,kBAAC,OAAD;IAAK,WAAU;cAAf,CACE,kBAAC,EAAY,OAAb;KAAmB,WAAU;eAC1B;KACiB,CAAA,EACpB,kBAAC,OAAD;KAAK,WAAU;eAAf,CACG,GACD,kBAAC,EAAY,OAAb;MAAmB,SAAA;gBACjB,kBAAC,UAAD;OACE,MAAK;OACL,WAAW,EACT,+HACA,qDACA,4DACA,oGACD;OACD,cAAW;iBAEX,kBAAC,GAAD,EAAW,MAAM,IAAM,CAAA;OAChB,CAAA;MACS,CAAA,CAChB;OACF;OACN,kBAAC,OAAD;IAAK,WAAU;IAAwD;IAAe,CAAA,CAClE;KACH,EAAA,CAAA;EACJ,CAAA"}
1
+ {"version":3,"file":"Panel.js","names":[],"sources":["../../../src/components/Panel/Panel.tsx"],"sourcesContent":["import { cva } from \"class-variance-authority\";\nimport {\n type CSSProperties,\n createContext,\n type ReactNode,\n type Ref,\n useContext,\n useId,\n} from \"react\";\nimport { cn } from \"@/utils/cn\";\nimport {\n SHEET_DEFAULT_WIDTH,\n sheetActionsClassName,\n sheetBodyClassName,\n sheetBodyPaddingClassName,\n sheetHeaderClassName,\n sheetTitleClassName,\n} from \"@/utils/sheet\";\n\nconst PanelTitleIdContext = createContext<string | undefined>(undefined);\n\n/**\n * 화면 레이아웃 안에 자리를 차지하는 사이드 패널의 표면 — 편집기 속성 패널,\n * 이미지 상세 옆 라벨 목록처럼 본문 옆에 붙어 함께 보이는 영역. Figma Panel처럼\n * 그림자 없이 본문 쪽 모서리의 구분선으로 나뉜다.\n */\nconst panelVariants = cva(\n \"aivex:flex aivex:h-full aivex:min-h-0 aivex:shrink-0 aivex:flex-col aivex:border-border-subtle aivex:bg-bg-primary\",\n {\n variants: {\n side: {\n left: \"aivex:border-r\",\n right: \"aivex:border-l\",\n },\n },\n defaultVariants: {\n side: \"right\",\n },\n },\n);\n\n/**\n * 레이아웃용 사이드 패널. 화면 위에 덮이는 시트가 필요하면 Drawer를 쓴다.\n *\n * ```tsx\n * <div className=\"flex h-full\">\n * <main className=\"min-w-0 flex-1\">…</main>\n * <Panel side=\"right\" width={300}>\n * <Panel.Header action={…}>라벨</Panel.Header>\n * <Panel.Section title=\"클래스\">…</Panel.Section>\n * <Panel.Section title=\"라벨 목록\" fill>…</Panel.Section>\n * <Panel.Footer>…</Panel.Footer>\n * </Panel>\n * </div>\n * ```\n */\nexport interface PanelProps {\n /** 패널 내용 — Panel.Header·Section·Body·Footer를 조합한다. */\n children: ReactNode;\n /**\n * 패널이 본문의 어느 쪽에 붙는지 — 구분선이 반대쪽 모서리에 생긴다.\n * @default \"right\"\n */\n side?: \"left\" | \"right\";\n /**\n * 폭. 숫자는 px, 문자열은 CSS 길이. 기본 420px(Figma). style.width가 있으면 그쪽이 이긴다.\n * @default 420\n */\n width?: number | string;\n /**\n * 접근성 이름. 생략하면 Panel.Header의 제목을 쓴다. 둘 다 없으면 이름 없는\n * complementary 영역이 된다.\n */\n \"aria-label\"?: string;\n className?: string;\n /** 인라인 스타일. style.width는 width prop보다 우선한다. */\n style?: CSSProperties;\n ref?: Ref<HTMLElement>;\n}\n\nfunction PanelRoot({\n children,\n side = \"right\",\n width = SHEET_DEFAULT_WIDTH,\n \"aria-label\": ariaLabel,\n className,\n style,\n ref,\n}: PanelProps) {\n const titleId = useId();\n return (\n <PanelTitleIdContext.Provider value={titleId}>\n <aside\n ref={ref}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabel ? undefined : titleId}\n data-side={side}\n className={cn(panelVariants({ side }), className)}\n style={{ width, ...style }}\n >\n {children}\n </aside>\n </PanelTitleIdContext.Provider>\n );\n}\n\nexport interface PanelHeaderProps {\n /** 제목 — 패널의 접근성 이름도 된다. */\n children: ReactNode;\n /** 제목 아래 보조 설명. */\n description?: ReactNode;\n /** 오른쪽 끝의 보조 동작(설정·닫기·접기 버튼 등). */\n action?: ReactNode;\n className?: string;\n}\n\n/** 표준 헤더 — 제목·설명·보조 동작. Drawer.Header와 같은 높이(50px)·간격·구분선(Figma Header). */\nfunction PanelHeader({ children, description, action, className }: PanelHeaderProps) {\n const titleId = useContext(PanelTitleIdContext);\n return (\n <div className={cn(sheetHeaderClassName, className)}>\n <div className=\"aivex:flex aivex:min-w-0 aivex:flex-1 aivex:flex-col aivex:gap-2xs\">\n <h2 id={titleId} className={sheetTitleClassName}>\n {children}\n </h2>\n {description ? (\n <p className=\"aivex:m-0 aivex:text-body-sm-regular aivex:text-text-secondary\">\n {description}\n </p>\n ) : null}\n </div>\n {action ? <div className={sheetActionsClassName}>{action}</div> : null}\n </div>\n );\n}\n\nexport interface PanelSectionProps {\n /** 섹션 내용 */\n children?: ReactNode;\n /** 섹션 제목. 생략하면 제목 줄 없이 내용만 둔다. */\n title?: ReactNode;\n /** 제목 줄 오른쪽 보조 동작(메뉴 버튼 등). */\n action?: ReactNode;\n /**\n * 남은 높이를 채우고 내용이 넘치면 섹션 안에서 세로 스크롤한다 — 라벨 목록처럼\n * 길어지는 섹션에 쓴다. 기본은 내용 높이만큼 차지한다.\n * @default false\n */\n fill?: boolean;\n className?: string;\n}\n\n/** 제목이 붙은 묶음. 섹션이 이어지면 사이에 구분선이 생긴다. */\nfunction PanelSection({ children, title, action, fill = false, className }: PanelSectionProps) {\n return (\n <section\n className={cn(\n \"aivex:flex aivex:flex-col aivex:gap-md aivex:px-xl aivex:py-lg\",\n \"aivex:[&+section]:border-t aivex:[&+section]:border-border-subtle\",\n fill ? \"aivex:min-h-0 aivex:flex-1\" : \"aivex:shrink-0\",\n className,\n )}\n >\n {title || action ? (\n <div className=\"aivex:flex aivex:min-h-8 aivex:shrink-0 aivex:items-center aivex:justify-between aivex:gap-md\">\n <h3 className=\"aivex:m-0 aivex:min-w-0 aivex:truncate aivex:text-body-md-medium aivex:text-text-primary\">\n {title}\n </h3>\n {action ? (\n <div className=\"aivex:flex aivex:shrink-0 aivex:items-center aivex:gap-xs\">\n {action}\n </div>\n ) : null}\n </div>\n ) : null}\n {fill ? (\n <div className=\"aivex:flex aivex:min-h-0 aivex:flex-1 aivex:flex-col aivex:overflow-y-auto\">\n {children}\n </div>\n ) : (\n children\n )}\n </section>\n );\n}\n\nexport interface PanelBodyProps {\n /** 본문 내용 */\n children: ReactNode;\n /**\n * 사방 16px 여백(Figma Body). 기본 true. 목록·표처럼 가장자리까지 붙는 내용은\n * false로 끈다.\n * @default true\n */\n padded?: boolean;\n className?: string;\n}\n\n/** 헤더·푸터 사이 남은 높이를 채우는 본문 — 넘치면 이 안에서 세로 스크롤한다. */\nfunction PanelBody({ children, padded = true, className }: PanelBodyProps) {\n return (\n <div className={cn(sheetBodyClassName, padded && sheetBodyPaddingClassName, className)}>\n {children}\n </div>\n );\n}\n\nexport interface PanelFooterProps {\n /** 푸터 내용(버튼·슬라이더 등) */\n children: ReactNode;\n className?: string;\n}\n\n/** 아래에 고정되는 영역(값 조절, 적용 버튼 등). 위에 구분선이 생긴다. */\nfunction PanelFooter({ children, className }: PanelFooterProps) {\n return (\n <div\n className={cn(\n \"aivex:mt-auto aivex:flex aivex:shrink-0 aivex:flex-col aivex:gap-md aivex:border-t aivex:border-border-subtle aivex:px-xl aivex:py-lg\",\n className,\n )}\n >\n {children}\n </div>\n );\n}\n\n/**\n * 화면 레이아웃 안에 자리를 차지하고 본문 옆에 늘 붙어 있는 사이드 패널.\n *\n * 편집기 속성 패널, 이미지 상세 옆 라벨 목록처럼 본문과 함께 계속 보이는 영역에 쓴다.\n * 화면 위에 덮였다가 닫히는 시트가 필요하면 Drawer를 쓴다. 열림 상태·포털·애니메이션이\n * 없는 `<aside>`라 flex 행 안에 직접 배치하고, 부모가 높이를 정해 줘야 한다. 접근성 이름은\n * Panel.Header 제목이나 `aria-label`로 준다.\n *\n * @example\n * ```tsx\n * import { Button, Panel } from \"@aivex/ui\";\n *\n * <div className=\"flex h-full\">\n * <main className=\"min-w-0 flex-1\">…</main>\n * <Panel side=\"right\" width={300}>\n * <Panel.Header description=\"선택한 이미지의 라벨\">이미지 상세</Panel.Header>\n * <Panel.Section title=\"클래스\">scratch · dent</Panel.Section>\n * <Panel.Section title=\"라벨 목록\" fill>…</Panel.Section>\n * <Panel.Footer>\n * <Button>적용</Button>\n * </Panel.Footer>\n * </Panel>\n * </div>\n * ```\n */\nconst Panel = Object.assign(PanelRoot, {\n /** 표준 헤더 — 제목(패널 접근성 이름 겸)·설명·보조 동작. */\n Header: PanelHeader,\n /** 제목이 붙은 내용 묶음. fill이면 남은 높이를 채우고 스크롤한다. */\n Section: PanelSection,\n /** 섹션 없이 하나의 스크롤 본문으로 쓸 때의 본문 영역. */\n Body: PanelBody,\n /** 아래에 고정되는 영역(적용 버튼 등). */\n Footer: PanelFooter,\n});\n\nexport { Panel };\n"],"mappings":";;;;;;;AAmBA,IAAM,IAAsB,EAAkC,KAAA,EAAU,EAOlE,IAAgB,EACpB,sHACA;CACE,UAAU,EACR,MAAM;EACJ,MAAM;EACN,OAAO;EACR,EACF;CACD,iBAAiB,EACf,MAAM,SACP;CACF,CACF;AAyCD,SAAS,EAAU,EACjB,aACA,UAAO,SACP,WAAA,KACA,cAAc,GACd,cACA,UACA,UACa;CACb,IAAM,IAAU,GAAO;AACvB,QACE,kBAAC,EAAoB,UAArB;EAA8B,OAAO;YACnC,kBAAC,SAAD;GACO;GACL,cAAY;GACZ,mBAAiB,IAAY,KAAA,IAAY;GACzC,aAAW;GACX,WAAW,EAAG,EAAc,EAAE,SAAM,CAAC,EAAE,EAAU;GACjD,OAAO;IAAE;IAAO,GAAG;IAAO;GAEzB;GACK,CAAA;EACqB,CAAA;;AAenC,SAAS,EAAY,EAAE,aAAU,gBAAa,WAAQ,gBAA+B;CACnF,IAAM,IAAU,EAAW,EAAoB;AAC/C,QACE,kBAAC,OAAD;EAAK,WAAW,EAAG,GAAsB,EAAU;YAAnD,CACE,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,MAAD;IAAI,IAAI;IAAS,WAAW;IACzB;IACE,CAAA,EACJ,IACC,kBAAC,KAAD;IAAG,WAAU;cACV;IACC,CAAA,GACF,KACA;MACL,IAAS,kBAAC,OAAD;GAAK,WAAW;aAAwB;GAAa,CAAA,GAAG,KAC9D;;;AAqBV,SAAS,EAAa,EAAE,aAAU,UAAO,WAAQ,UAAO,IAAO,gBAAgC;AAC7F,QACE,kBAAC,WAAD;EACE,WAAW,EACT,kEACA,qEACA,IAAO,+BAA+B,kBACtC,EACD;YANH,CAQG,KAAS,IACR,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,MAAD;IAAI,WAAU;cACX;IACE,CAAA,EACJ,IACC,kBAAC,OAAD;IAAK,WAAU;cACZ;IACG,CAAA,GACJ,KACA;OACJ,MACH,IACC,kBAAC,OAAD;GAAK,WAAU;GACZ;GACG,CAAA,GAEN,EAEM;;;AAiBd,SAAS,EAAU,EAAE,aAAU,YAAS,IAAM,gBAA6B;AACzE,QACE,kBAAC,OAAD;EAAK,WAAW,EAAG,GAAoB,KAAA,cAAqC,EAAU;EACnF;EACG,CAAA;;AAWV,SAAS,EAAY,EAAE,aAAU,gBAA+B;AAC9D,QACE,kBAAC,OAAD;EACE,WAAW,EACT,yIACA,EACD;EAEA;EACG,CAAA;;AA6BV,IAAM,IAAQ,OAAO,OAAO,GAAW;CAErC,QAAQ;CAER,SAAS;CAET,MAAM;CAEN,QAAQ;CACT,CAAC"}
@@ -0,0 +1,2 @@
1
+ export type { PanelBodyProps, PanelFooterProps, PanelHeaderProps, PanelProps, PanelSectionProps, } from "./Panel.cjs";
2
+ export { Panel } from "./Panel.cjs";
@@ -1,2 +1,2 @@
1
- export type { PanelProps } from "./Panel";
2
- export { Panel } from "./Panel";
1
+ export type { PanelBodyProps, PanelFooterProps, PanelHeaderProps, PanelProps, PanelSectionProps, } from "./Panel.js";
2
+ export { Panel } from "./Panel.js";
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.cjs","names":[],"sources":["../../../src/components/Popover/Popover.tsx"],"sourcesContent":["\"use client\";\n\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\";\nimport type { ComponentPropsWithoutRef, ReactNode, Ref } from \"react\";\nimport { cn } from \"@/utils/cn\";\n\n// ─── Content shell ─────────────────────────────────────────────────────────────\n\n/**\n * Popover 계열 카드의 공통 골격 — 세로 레이아웃·최대 높이·패딩·쌓임·열림/닫힘\n * 애니메이션. Popover와 Coachmark가 함께 쓰고 폭·표면(배경·테두리)만 각자 정한다.\n */\nconst popoverContentBaseClassName = cn(\n \"aivex:flex aivex:flex-col aivex:gap-lg aivex:max-h-[448px] aivex:p-xl\",\n \"aivex:rounded-xl aivex:shadow-md\",\n \"aivex:z-(--aivex-z-dropdown) aivex:outline-none\",\n \"aivex:data-[state=open]:animate-in aivex:data-[state=closed]:animate-out\",\n \"aivex:data-[state=closed]:fade-out-0 aivex:data-[state=open]:fade-in-0\",\n \"aivex:data-[state=closed]:zoom-out-95 aivex:data-[state=open]:zoom-in-95\",\n);\n\n// 폭 277px은 Figma Popover-Dropdown 사양이다(Coachmark의 Popover-Bubble은 280px).\nconst contentClassName = cn(\n popoverContentBaseClassName,\n \"aivex:w-[277px]\",\n // 포털로 body에 붙으므로 글자색을 호스트 body에서 상속받지 않게 배경과 짝으로 지정한다.\n \"aivex:bg-bg-primary aivex:text-text-primary aivex:border aivex:border-border-subtle aivex:overflow-clip\",\n);\n\n// ─── Root ─────────────────────────────────────────────────────────────────────\n\ntype PopoverRootProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>;\n\nfunction PopoverRoot(props: PopoverRootProps) {\n return <PopoverPrimitive.Root {...props} />;\n}\n\n// ─── Trigger ──────────────────────────────────────────────────────────────────\n\ntype PopoverTriggerProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger> & {\n ref?: Ref<HTMLButtonElement>;\n};\n\n/** asChild로 ToggleButton 등 임의의 요소를 트리거로 사용할 수 있습니다. */\nfunction PopoverTrigger({ ref, ...props }: PopoverTriggerProps) {\n return <PopoverPrimitive.Trigger ref={ref} {...props} />;\n}\n\n// ─── Anchor ───────────────────────────────────────────────────────────────────\n\ntype PopoverAnchorProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Anchor>;\n\n/** 트리거와 다른 요소를 기준으로 위치를 잡고 싶을 때 사용합니다. */\nfunction PopoverAnchor(props: PopoverAnchorProps) {\n return <PopoverPrimitive.Anchor {...props} />;\n}\n\n// ─── Close ────────────────────────────────────────────────────────────────────\n\ntype PopoverCloseProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Close> & {\n ref?: Ref<HTMLButtonElement>;\n};\n\n/** asChild로 감싸면 하단 버튼 클릭 시 팝오버가 닫힙니다. */\nfunction PopoverClose({ ref, ...props }: PopoverCloseProps) {\n return <PopoverPrimitive.Close ref={ref} {...props} />;\n}\n\n// ─── Content ──────────────────────────────────────────────────────────────────\n\ntype PopoverContentProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> & {\n /** 포털 대상. 생략하면 document.body — Shadow DOM 안에서는 그 루트 안의 요소를 넘긴다. */\n container?: ComponentPropsWithoutRef<typeof PopoverPrimitive.Portal>[\"container\"];\n ref?: Ref<HTMLDivElement>;\n};\n\nfunction PopoverContent({\n className,\n sideOffset = 8,\n align = \"start\",\n container,\n ref,\n ...props\n}: PopoverContentProps) {\n return (\n <PopoverPrimitive.Portal container={container}>\n <PopoverPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n align={align}\n className={cn(contentClassName, className)}\n {...props}\n />\n </PopoverPrimitive.Portal>\n );\n}\n\n// ─── Title ────────────────────────────────────────────────────────────────────\n\ntype PopoverTitleProps = ComponentPropsWithoutRef<\"div\"> & {\n ref?: Ref<HTMLDivElement>;\n};\n\nfunction PopoverTitle({ className, ref, ...props }: PopoverTitleProps) {\n return (\n <div\n ref={ref}\n className={cn(\n \"aivex:w-full aivex:px-xs aivex:text-body-md-medium aivex:text-text-primary aivex:truncate\",\n className,\n )}\n {...props}\n />\n );\n}\n\n// ─── Body (ItemArea) ────────────────────────────────────────────────────────────\n\ntype PopoverBodyProps = ComponentPropsWithoutRef<\"div\"> & {\n ref?: Ref<HTMLDivElement>;\n};\n\n/** 검색창·목록 등 자유롭게 들어가는 스크롤 영역입니다. */\nfunction PopoverBody({ className, ref, ...props }: PopoverBodyProps) {\n return (\n <div\n ref={ref}\n className={cn(\n \"aivex:flex aivex:min-h-0 aivex:w-full aivex:flex-1 aivex:flex-col aivex:gap-md aivex:overflow-y-auto\",\n className,\n )}\n {...props}\n />\n );\n}\n\n// ─── Footer (BtnContainer) ──────────────────────────────────────────────────────\n\ninterface PopoverFooterProps extends ComponentPropsWithoutRef<\"div\"> {\n /** 좌측에 넓게 붙는 영역(예: 옵션 tertiary 버튼). 지정 시 나머지 버튼은 우측 정렬됩니다. */\n start?: ReactNode;\n ref?: Ref<HTMLDivElement>;\n}\n\nfunction PopoverFooter({ className, start, children, ref, ...props }: PopoverFooterProps) {\n return (\n <div\n ref={ref}\n className={cn(\n \"aivex:flex aivex:w-full aivex:items-center aivex:justify-end aivex:gap-md\",\n className,\n )}\n {...props}\n >\n {start && (\n <div className=\"aivex:flex aivex:min-w-0 aivex:flex-1 aivex:flex-col aivex:items-start aivex:justify-center\">\n {start}\n </div>\n )}\n {children}\n </div>\n );\n}\n\n// ─── Compound export ──────────────────────────────────────────────────────────\n\nconst Popover = Object.assign(PopoverRoot, {\n Trigger: PopoverTrigger,\n Anchor: PopoverAnchor,\n Close: PopoverClose,\n Content: PopoverContent,\n Title: PopoverTitle,\n Body: PopoverBody,\n Footer: PopoverFooter,\n});\n\nexport type {\n PopoverAnchorProps,\n PopoverBodyProps,\n PopoverCloseProps,\n PopoverContentProps,\n PopoverFooterProps,\n PopoverRootProps,\n PopoverTitleProps,\n PopoverTriggerProps,\n};\nexport { Popover, popoverContentBaseClassName };\n"],"mappings":"wMAYA,IAAM,EAA8B,EAAA,GAClC,wEACA,mCACA,kDACA,2EACA,yEACA,2EACD,CAGK,EAAmB,EAAA,GACvB,EACA,kBAEA,0GACD,CAMD,SAAS,EAAY,EAAyB,CAC5C,OAAO,EAAA,EAAA,KAAC,EAAiB,KAAlB,CAAuB,GAAI,EAAS,CAAA,CAU7C,SAAS,EAAe,CAAE,MAAK,GAAG,GAA8B,CAC9D,OAAO,EAAA,EAAA,KAAC,EAAiB,QAAlB,CAA+B,MAAK,GAAI,EAAS,CAAA,CAQ1D,SAAS,EAAc,EAA2B,CAChD,OAAO,EAAA,EAAA,KAAC,EAAiB,OAAlB,CAAyB,GAAI,EAAS,CAAA,CAU/C,SAAS,EAAa,CAAE,MAAK,GAAG,GAA4B,CAC1D,OAAO,EAAA,EAAA,KAAC,EAAiB,MAAlB,CAA6B,MAAK,GAAI,EAAS,CAAA,CAWxD,SAAS,EAAe,CACtB,YACA,aAAa,EACb,QAAQ,QACR,YACA,MACA,GAAG,GACmB,CACtB,OACE,EAAA,EAAA,KAAC,EAAiB,OAAlB,CAAoC,sBAClC,EAAA,EAAA,KAAC,EAAiB,QAAlB,CACO,MACO,aACL,QACP,UAAW,EAAA,GAAG,EAAkB,EAAU,CAC1C,GAAI,EACJ,CAAA,CACsB,CAAA,CAU9B,SAAS,EAAa,CAAE,YAAW,MAAK,GAAG,GAA4B,CACrE,OACE,EAAA,EAAA,KAAC,MAAD,CACO,MACL,UAAW,EAAA,GACT,4FACA,EACD,CACD,GAAI,EACJ,CAAA,CAWN,SAAS,EAAY,CAAE,YAAW,MAAK,GAAG,GAA2B,CACnE,OACE,EAAA,EAAA,KAAC,MAAD,CACO,MACL,UAAW,EAAA,GACT,uGACA,EACD,CACD,GAAI,EACJ,CAAA,CAYN,SAAS,EAAc,CAAE,YAAW,QAAO,WAAU,MAAK,GAAG,GAA6B,CACxF,OACE,EAAA,EAAA,MAAC,MAAD,CACO,MACL,UAAW,EAAA,GACT,4EACA,EACD,CACD,GAAI,WANN,CAQG,IACC,EAAA,EAAA,KAAC,MAAD,CAAK,UAAU,uGACZ,EACG,CAAA,CAEP,EACG,GAMV,IAAM,EAAU,OAAO,OAAO,EAAa,CACzC,QAAS,EACT,OAAQ,EACR,MAAO,EACP,QAAS,EACT,MAAO,EACP,KAAM,EACN,OAAQ,EACT,CAAC"}
1
+ {"version":3,"file":"Popover.cjs","names":[],"sources":["../../../src/components/Popover/Popover.tsx"],"sourcesContent":["\"use client\";\n\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\";\nimport type { ComponentPropsWithoutRef, ReactNode, Ref } from \"react\";\nimport { cn } from \"@/utils/cn\";\n\n// ─── Content shell ─────────────────────────────────────────────────────────────\n\n/**\n * Popover 계열 카드의 공통 골격 — 세로 레이아웃·최대 높이·패딩·쌓임·열림/닫힘\n * 애니메이션. Popover와 Coachmark가 함께 쓰고 폭·표면(배경·테두리)만 각자 정한다.\n */\nconst popoverContentBaseClassName = cn(\n \"aivex:flex aivex:flex-col aivex:gap-lg aivex:max-h-[448px] aivex:p-xl\",\n \"aivex:rounded-xl aivex:shadow-md\",\n \"aivex:z-(--aivex-z-dropdown) aivex:outline-none\",\n \"aivex:data-[state=open]:animate-in aivex:data-[state=closed]:animate-out\",\n \"aivex:data-[state=closed]:fade-out-0 aivex:data-[state=open]:fade-in-0\",\n \"aivex:data-[state=closed]:zoom-out-95 aivex:data-[state=open]:zoom-in-95\",\n);\n\n// 폭 277px은 Figma Popover-Dropdown 사양이다(Coachmark의 Popover-Bubble은 280px).\nconst contentClassName = cn(\n popoverContentBaseClassName,\n \"aivex:w-[277px]\",\n // 포털로 body에 붙으므로 글자색을 호스트 body에서 상속받지 않게 배경과 짝으로 지정한다.\n \"aivex:bg-bg-primary aivex:text-text-primary aivex:border aivex:border-border-subtle aivex:overflow-clip\",\n);\n\n// ─── Root ─────────────────────────────────────────────────────────────────────\n\n/** Popover 루트 props — Radix Popover.Root 그대로(open·defaultOpen·onOpenChange·modal). */\ntype PopoverRootProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>;\n\nfunction PopoverRoot(props: PopoverRootProps) {\n return <PopoverPrimitive.Root {...props} />;\n}\n\n// ─── Trigger ──────────────────────────────────────────────────────────────────\n\n/** Popover.Trigger props — Radix Popover.Trigger 그대로. */\ntype PopoverTriggerProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger> & {\n ref?: Ref<HTMLButtonElement>;\n};\n\n/** asChild로 ToggleButton 등 임의의 요소를 트리거로 사용할 수 있습니다. */\nfunction PopoverTrigger({ ref, ...props }: PopoverTriggerProps) {\n return <PopoverPrimitive.Trigger ref={ref} {...props} />;\n}\n\n// ─── Anchor ───────────────────────────────────────────────────────────────────\n\n/** Popover.Anchor props — Radix Popover.Anchor 그대로. */\ntype PopoverAnchorProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Anchor>;\n\n/** 트리거와 다른 요소를 기준으로 위치를 잡고 싶을 때 사용합니다. */\nfunction PopoverAnchor(props: PopoverAnchorProps) {\n return <PopoverPrimitive.Anchor {...props} />;\n}\n\n// ─── Close ────────────────────────────────────────────────────────────────────\n\n/** Popover.Close props — Radix Popover.Close 그대로. */\ntype PopoverCloseProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Close> & {\n ref?: Ref<HTMLButtonElement>;\n};\n\n/** asChild로 감싸면 하단 버튼 클릭 시 팝오버가 닫힙니다. */\nfunction PopoverClose({ ref, ...props }: PopoverCloseProps) {\n return <PopoverPrimitive.Close ref={ref} {...props} />;\n}\n\n// ─── Content ──────────────────────────────────────────────────────────────────\n\n/** Popover.Content props — Radix Popover.Content(side·align·sideOffset 등) + 포털 대상. */\ntype PopoverContentProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> & {\n /** 포털 대상. 생략하면 document.body — Shadow DOM 안에서는 그 루트 안의 요소를 넘긴다. */\n container?: ComponentPropsWithoutRef<typeof PopoverPrimitive.Portal>[\"container\"];\n ref?: Ref<HTMLDivElement>;\n};\n\n/**\n * 포털로 띄우는 277px 폭 카드. 기본 sideOffset 8, align \"start\".\n * 안에 Popover.Title·Body·Footer를 순서대로 둔다.\n */\nfunction PopoverContent({\n className,\n sideOffset = 8,\n align = \"start\",\n container,\n ref,\n ...props\n}: PopoverContentProps) {\n return (\n <PopoverPrimitive.Portal container={container}>\n <PopoverPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n align={align}\n className={cn(contentClassName, className)}\n {...props}\n />\n </PopoverPrimitive.Portal>\n );\n}\n\n// ─── Title ────────────────────────────────────────────────────────────────────\n\n/** Popover.Title props — div 속성. */\ntype PopoverTitleProps = ComponentPropsWithoutRef<\"div\"> & {\n ref?: Ref<HTMLDivElement>;\n};\n\n/** 카드 상단 한 줄 제목(넘치면 말줄임). 시각적 제목이며 aria 연결은 하지 않는다. */\nfunction PopoverTitle({ className, ref, ...props }: PopoverTitleProps) {\n return (\n <div\n ref={ref}\n className={cn(\n \"aivex:w-full aivex:px-xs aivex:text-body-md-medium aivex:text-text-primary aivex:truncate\",\n className,\n )}\n {...props}\n />\n );\n}\n\n// ─── Body (ItemArea) ────────────────────────────────────────────────────────────\n\n/** Popover.Body props — div 속성. */\ntype PopoverBodyProps = ComponentPropsWithoutRef<\"div\"> & {\n ref?: Ref<HTMLDivElement>;\n};\n\n/** 검색창·목록 등 자유롭게 들어가는 스크롤 영역입니다. */\nfunction PopoverBody({ className, ref, ...props }: PopoverBodyProps) {\n return (\n <div\n ref={ref}\n className={cn(\n \"aivex:flex aivex:min-h-0 aivex:w-full aivex:flex-1 aivex:flex-col aivex:gap-md aivex:overflow-y-auto\",\n className,\n )}\n {...props}\n />\n );\n}\n\n// ─── Footer (BtnContainer) ──────────────────────────────────────────────────────\n\n/** Popover.Footer props — div 속성 + 좌측 슬롯. */\ninterface PopoverFooterProps extends ComponentPropsWithoutRef<\"div\"> {\n /** 좌측에 넓게 붙는 영역(예: 옵션 tertiary 버튼). 지정 시 나머지 버튼은 우측 정렬됩니다. */\n start?: ReactNode;\n ref?: Ref<HTMLDivElement>;\n}\n\n/** 하단 버튼 줄 — children은 우측 정렬, start는 좌측에 붙는다. */\nfunction PopoverFooter({ className, start, children, ref, ...props }: PopoverFooterProps) {\n return (\n <div\n ref={ref}\n className={cn(\n \"aivex:flex aivex:w-full aivex:items-center aivex:justify-end aivex:gap-md\",\n className,\n )}\n {...props}\n >\n {start && (\n <div className=\"aivex:flex aivex:min-w-0 aivex:flex-1 aivex:flex-col aivex:items-start aivex:justify-center\">\n {start}\n </div>\n )}\n {children}\n </div>\n );\n}\n\n// ─── Compound export ──────────────────────────────────────────────────────────\n\n/**\n * 트리거 옆에 뜨는 비모달 카드(필터·옵션 선택 등)를 만드는 컴파운드 컴포넌트.\n *\n * 버튼을 눌러 검색·체크 목록·적용 버튼 같은 상호작용 내용을 띄울 때 쓴다. 호버로 짧은 설명만\n * 보이면 Tooltip, 화면을 막고 작업을 받아야 하면 Modal을 쓴다. open/onOpenChange로 제어하거나\n * 비제어로 쓰며, 바깥 클릭·Esc로 닫힌다. 버튼으로 닫으려면 Popover.Close asChild로 감싼다.\n *\n * @example\n * ```tsx\n * import { Button, Popover, ToggleButton } from \"@aivex/ui\";\n *\n * <Popover>\n * <Popover.Trigger asChild>\n * <ToggleButton>필터</ToggleButton>\n * </Popover.Trigger>\n * <Popover.Content>\n * <Popover.Title>상태 필터</Popover.Title>\n * <Popover.Body>…</Popover.Body>\n * <Popover.Footer start={<Button variant=\"ghost\">초기화</Button>}>\n * <Popover.Close asChild>\n * <Button variant=\"solid\" color=\"secondary\">취소</Button>\n * </Popover.Close>\n * <Button onClick={apply}>적용하기</Button>\n * </Popover.Footer>\n * </Popover.Content>\n * </Popover>\n * ```\n */\nconst Popover = Object.assign(PopoverRoot, {\n Trigger: PopoverTrigger,\n Anchor: PopoverAnchor,\n Close: PopoverClose,\n Content: PopoverContent,\n Title: PopoverTitle,\n Body: PopoverBody,\n Footer: PopoverFooter,\n});\n\nexport type {\n PopoverAnchorProps,\n PopoverBodyProps,\n PopoverCloseProps,\n PopoverContentProps,\n PopoverFooterProps,\n PopoverRootProps,\n PopoverTitleProps,\n PopoverTriggerProps,\n};\nexport { Popover, popoverContentBaseClassName };\n"],"mappings":"wMAYA,IAAM,EAA8B,EAAA,GAClC,wEACA,mCACA,kDACA,2EACA,yEACA,2EACD,CAGK,EAAmB,EAAA,GACvB,EACA,kBAEA,0GACD,CAOD,SAAS,EAAY,EAAyB,CAC5C,OAAO,EAAA,EAAA,KAAC,EAAiB,KAAlB,CAAuB,GAAI,EAAS,CAAA,CAW7C,SAAS,EAAe,CAAE,MAAK,GAAG,GAA8B,CAC9D,OAAO,EAAA,EAAA,KAAC,EAAiB,QAAlB,CAA+B,MAAK,GAAI,EAAS,CAAA,CAS1D,SAAS,EAAc,EAA2B,CAChD,OAAO,EAAA,EAAA,KAAC,EAAiB,OAAlB,CAAyB,GAAI,EAAS,CAAA,CAW/C,SAAS,EAAa,CAAE,MAAK,GAAG,GAA4B,CAC1D,OAAO,EAAA,EAAA,KAAC,EAAiB,MAAlB,CAA6B,MAAK,GAAI,EAAS,CAAA,CAgBxD,SAAS,EAAe,CACtB,YACA,aAAa,EACb,QAAQ,QACR,YACA,MACA,GAAG,GACmB,CACtB,OACE,EAAA,EAAA,KAAC,EAAiB,OAAlB,CAAoC,sBAClC,EAAA,EAAA,KAAC,EAAiB,QAAlB,CACO,MACO,aACL,QACP,UAAW,EAAA,GAAG,EAAkB,EAAU,CAC1C,GAAI,EACJ,CAAA,CACsB,CAAA,CAY9B,SAAS,EAAa,CAAE,YAAW,MAAK,GAAG,GAA4B,CACrE,OACE,EAAA,EAAA,KAAC,MAAD,CACO,MACL,UAAW,EAAA,GACT,4FACA,EACD,CACD,GAAI,EACJ,CAAA,CAYN,SAAS,EAAY,CAAE,YAAW,MAAK,GAAG,GAA2B,CACnE,OACE,EAAA,EAAA,KAAC,MAAD,CACO,MACL,UAAW,EAAA,GACT,uGACA,EACD,CACD,GAAI,EACJ,CAAA,CAcN,SAAS,EAAc,CAAE,YAAW,QAAO,WAAU,MAAK,GAAG,GAA6B,CACxF,OACE,EAAA,EAAA,MAAC,MAAD,CACO,MACL,UAAW,EAAA,GACT,4EACA,EACD,CACD,GAAI,WANN,CAQG,IACC,EAAA,EAAA,KAAC,MAAD,CAAK,UAAU,uGACZ,EACG,CAAA,CAEP,EACG,GAkCV,IAAM,EAAU,OAAO,OAAO,EAAa,CACzC,QAAS,EACT,OAAQ,EACR,MAAO,EACP,QAAS,EACT,MAAO,EACP,KAAM,EACN,OAAQ,EACT,CAAC"}
@@ -0,0 +1,96 @@
1
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
2
+ import type { ComponentPropsWithoutRef, ReactNode, Ref } from "react";
3
+ /**
4
+ * Popover 계열 카드의 공통 골격 — 세로 레이아웃·최대 높이·패딩·쌓임·열림/닫힘
5
+ * 애니메이션. Popover와 Coachmark가 함께 쓰고 폭·표면(배경·테두리)만 각자 정한다.
6
+ */
7
+ declare const popoverContentBaseClassName: string;
8
+ /** Popover 루트 props — Radix Popover.Root 그대로(open·defaultOpen·onOpenChange·modal). */
9
+ type PopoverRootProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>;
10
+ declare function PopoverRoot(props: PopoverRootProps): import("react/jsx-runtime").JSX.Element;
11
+ /** Popover.Trigger props — Radix Popover.Trigger 그대로. */
12
+ type PopoverTriggerProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger> & {
13
+ ref?: Ref<HTMLButtonElement>;
14
+ };
15
+ /** asChild로 ToggleButton 등 임의의 요소를 트리거로 사용할 수 있습니다. */
16
+ declare function PopoverTrigger({ ref, ...props }: PopoverTriggerProps): import("react/jsx-runtime").JSX.Element;
17
+ /** Popover.Anchor props — Radix Popover.Anchor 그대로. */
18
+ type PopoverAnchorProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Anchor>;
19
+ /** 트리거와 다른 요소를 기준으로 위치를 잡고 싶을 때 사용합니다. */
20
+ declare function PopoverAnchor(props: PopoverAnchorProps): import("react/jsx-runtime").JSX.Element;
21
+ /** Popover.Close props — Radix Popover.Close 그대로. */
22
+ type PopoverCloseProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Close> & {
23
+ ref?: Ref<HTMLButtonElement>;
24
+ };
25
+ /** asChild로 감싸면 하단 버튼 클릭 시 팝오버가 닫힙니다. */
26
+ declare function PopoverClose({ ref, ...props }: PopoverCloseProps): import("react/jsx-runtime").JSX.Element;
27
+ /** Popover.Content props — Radix Popover.Content(side·align·sideOffset 등) + 포털 대상. */
28
+ type PopoverContentProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> & {
29
+ /** 포털 대상. 생략하면 document.body — Shadow DOM 안에서는 그 루트 안의 요소를 넘긴다. */
30
+ container?: ComponentPropsWithoutRef<typeof PopoverPrimitive.Portal>["container"];
31
+ ref?: Ref<HTMLDivElement>;
32
+ };
33
+ /**
34
+ * 포털로 띄우는 277px 폭 카드. 기본 sideOffset 8, align "start".
35
+ * 안에 Popover.Title·Body·Footer를 순서대로 둔다.
36
+ */
37
+ declare function PopoverContent({ className, sideOffset, align, container, ref, ...props }: PopoverContentProps): import("react/jsx-runtime").JSX.Element;
38
+ /** Popover.Title props — div 속성. */
39
+ type PopoverTitleProps = ComponentPropsWithoutRef<"div"> & {
40
+ ref?: Ref<HTMLDivElement>;
41
+ };
42
+ /** 카드 상단 한 줄 제목(넘치면 말줄임). 시각적 제목이며 aria 연결은 하지 않는다. */
43
+ declare function PopoverTitle({ className, ref, ...props }: PopoverTitleProps): import("react/jsx-runtime").JSX.Element;
44
+ /** Popover.Body props — div 속성. */
45
+ type PopoverBodyProps = ComponentPropsWithoutRef<"div"> & {
46
+ ref?: Ref<HTMLDivElement>;
47
+ };
48
+ /** 검색창·목록 등 자유롭게 들어가는 스크롤 영역입니다. */
49
+ declare function PopoverBody({ className, ref, ...props }: PopoverBodyProps): import("react/jsx-runtime").JSX.Element;
50
+ /** Popover.Footer props — div 속성 + 좌측 슬롯. */
51
+ interface PopoverFooterProps extends ComponentPropsWithoutRef<"div"> {
52
+ /** 좌측에 넓게 붙는 영역(예: 옵션 tertiary 버튼). 지정 시 나머지 버튼은 우측 정렬됩니다. */
53
+ start?: ReactNode;
54
+ ref?: Ref<HTMLDivElement>;
55
+ }
56
+ /** 하단 버튼 줄 — children은 우측 정렬, start는 좌측에 붙는다. */
57
+ declare function PopoverFooter({ className, start, children, ref, ...props }: PopoverFooterProps): import("react/jsx-runtime").JSX.Element;
58
+ /**
59
+ * 트리거 옆에 뜨는 비모달 카드(필터·옵션 선택 등)를 만드는 컴파운드 컴포넌트.
60
+ *
61
+ * 버튼을 눌러 검색·체크 목록·적용 버튼 같은 상호작용 내용을 띄울 때 쓴다. 호버로 짧은 설명만
62
+ * 보이면 Tooltip, 화면을 막고 작업을 받아야 하면 Modal을 쓴다. open/onOpenChange로 제어하거나
63
+ * 비제어로 쓰며, 바깥 클릭·Esc로 닫힌다. 버튼으로 닫으려면 Popover.Close asChild로 감싼다.
64
+ *
65
+ * @example
66
+ * ```tsx
67
+ * import { Button, Popover, ToggleButton } from "@aivex/ui";
68
+ *
69
+ * <Popover>
70
+ * <Popover.Trigger asChild>
71
+ * <ToggleButton>필터</ToggleButton>
72
+ * </Popover.Trigger>
73
+ * <Popover.Content>
74
+ * <Popover.Title>상태 필터</Popover.Title>
75
+ * <Popover.Body>…</Popover.Body>
76
+ * <Popover.Footer start={<Button variant="ghost">초기화</Button>}>
77
+ * <Popover.Close asChild>
78
+ * <Button variant="solid" color="secondary">취소</Button>
79
+ * </Popover.Close>
80
+ * <Button onClick={apply}>적용하기</Button>
81
+ * </Popover.Footer>
82
+ * </Popover.Content>
83
+ * </Popover>
84
+ * ```
85
+ */
86
+ declare const Popover: typeof PopoverRoot & {
87
+ Trigger: typeof PopoverTrigger;
88
+ Anchor: typeof PopoverAnchor;
89
+ Close: typeof PopoverClose;
90
+ Content: typeof PopoverContent;
91
+ Title: typeof PopoverTitle;
92
+ Body: typeof PopoverBody;
93
+ Footer: typeof PopoverFooter;
94
+ };
95
+ export type { PopoverAnchorProps, PopoverBodyProps, PopoverCloseProps, PopoverContentProps, PopoverFooterProps, PopoverRootProps, PopoverTitleProps, PopoverTriggerProps, };
96
+ export { Popover, popoverContentBaseClassName };
@@ -5,42 +5,84 @@ import type { ComponentPropsWithoutRef, ReactNode, Ref } from "react";
5
5
  * 애니메이션. Popover와 Coachmark가 함께 쓰고 폭·표면(배경·테두리)만 각자 정한다.
6
6
  */
7
7
  declare const popoverContentBaseClassName: string;
8
+ /** Popover 루트 props — Radix Popover.Root 그대로(open·defaultOpen·onOpenChange·modal). */
8
9
  type PopoverRootProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>;
9
10
  declare function PopoverRoot(props: PopoverRootProps): import("react/jsx-runtime").JSX.Element;
11
+ /** Popover.Trigger props — Radix Popover.Trigger 그대로. */
10
12
  type PopoverTriggerProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger> & {
11
13
  ref?: Ref<HTMLButtonElement>;
12
14
  };
13
15
  /** asChild로 ToggleButton 등 임의의 요소를 트리거로 사용할 수 있습니다. */
14
16
  declare function PopoverTrigger({ ref, ...props }: PopoverTriggerProps): import("react/jsx-runtime").JSX.Element;
17
+ /** Popover.Anchor props — Radix Popover.Anchor 그대로. */
15
18
  type PopoverAnchorProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Anchor>;
16
19
  /** 트리거와 다른 요소를 기준으로 위치를 잡고 싶을 때 사용합니다. */
17
20
  declare function PopoverAnchor(props: PopoverAnchorProps): import("react/jsx-runtime").JSX.Element;
21
+ /** Popover.Close props — Radix Popover.Close 그대로. */
18
22
  type PopoverCloseProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Close> & {
19
23
  ref?: Ref<HTMLButtonElement>;
20
24
  };
21
25
  /** asChild로 감싸면 하단 버튼 클릭 시 팝오버가 닫힙니다. */
22
26
  declare function PopoverClose({ ref, ...props }: PopoverCloseProps): import("react/jsx-runtime").JSX.Element;
27
+ /** Popover.Content props — Radix Popover.Content(side·align·sideOffset 등) + 포털 대상. */
23
28
  type PopoverContentProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> & {
24
29
  /** 포털 대상. 생략하면 document.body — Shadow DOM 안에서는 그 루트 안의 요소를 넘긴다. */
25
30
  container?: ComponentPropsWithoutRef<typeof PopoverPrimitive.Portal>["container"];
26
31
  ref?: Ref<HTMLDivElement>;
27
32
  };
33
+ /**
34
+ * 포털로 띄우는 277px 폭 카드. 기본 sideOffset 8, align "start".
35
+ * 안에 Popover.Title·Body·Footer를 순서대로 둔다.
36
+ */
28
37
  declare function PopoverContent({ className, sideOffset, align, container, ref, ...props }: PopoverContentProps): import("react/jsx-runtime").JSX.Element;
38
+ /** Popover.Title props — div 속성. */
29
39
  type PopoverTitleProps = ComponentPropsWithoutRef<"div"> & {
30
40
  ref?: Ref<HTMLDivElement>;
31
41
  };
42
+ /** 카드 상단 한 줄 제목(넘치면 말줄임). 시각적 제목이며 aria 연결은 하지 않는다. */
32
43
  declare function PopoverTitle({ className, ref, ...props }: PopoverTitleProps): import("react/jsx-runtime").JSX.Element;
44
+ /** Popover.Body props — div 속성. */
33
45
  type PopoverBodyProps = ComponentPropsWithoutRef<"div"> & {
34
46
  ref?: Ref<HTMLDivElement>;
35
47
  };
36
48
  /** 검색창·목록 등 자유롭게 들어가는 스크롤 영역입니다. */
37
49
  declare function PopoverBody({ className, ref, ...props }: PopoverBodyProps): import("react/jsx-runtime").JSX.Element;
50
+ /** Popover.Footer props — div 속성 + 좌측 슬롯. */
38
51
  interface PopoverFooterProps extends ComponentPropsWithoutRef<"div"> {
39
52
  /** 좌측에 넓게 붙는 영역(예: 옵션 tertiary 버튼). 지정 시 나머지 버튼은 우측 정렬됩니다. */
40
53
  start?: ReactNode;
41
54
  ref?: Ref<HTMLDivElement>;
42
55
  }
56
+ /** 하단 버튼 줄 — children은 우측 정렬, start는 좌측에 붙는다. */
43
57
  declare function PopoverFooter({ className, start, children, ref, ...props }: PopoverFooterProps): import("react/jsx-runtime").JSX.Element;
58
+ /**
59
+ * 트리거 옆에 뜨는 비모달 카드(필터·옵션 선택 등)를 만드는 컴파운드 컴포넌트.
60
+ *
61
+ * 버튼을 눌러 검색·체크 목록·적용 버튼 같은 상호작용 내용을 띄울 때 쓴다. 호버로 짧은 설명만
62
+ * 보이면 Tooltip, 화면을 막고 작업을 받아야 하면 Modal을 쓴다. open/onOpenChange로 제어하거나
63
+ * 비제어로 쓰며, 바깥 클릭·Esc로 닫힌다. 버튼으로 닫으려면 Popover.Close asChild로 감싼다.
64
+ *
65
+ * @example
66
+ * ```tsx
67
+ * import { Button, Popover, ToggleButton } from "@aivex/ui";
68
+ *
69
+ * <Popover>
70
+ * <Popover.Trigger asChild>
71
+ * <ToggleButton>필터</ToggleButton>
72
+ * </Popover.Trigger>
73
+ * <Popover.Content>
74
+ * <Popover.Title>상태 필터</Popover.Title>
75
+ * <Popover.Body>…</Popover.Body>
76
+ * <Popover.Footer start={<Button variant="ghost">초기화</Button>}>
77
+ * <Popover.Close asChild>
78
+ * <Button variant="solid" color="secondary">취소</Button>
79
+ * </Popover.Close>
80
+ * <Button onClick={apply}>적용하기</Button>
81
+ * </Popover.Footer>
82
+ * </Popover.Content>
83
+ * </Popover>
84
+ * ```
85
+ */
44
86
  declare const Popover: typeof PopoverRoot & {
45
87
  Trigger: typeof PopoverTrigger;
46
88
  Anchor: typeof PopoverAnchor;
@@ -1 +1 @@
1
- {"version":3,"file":"Popover.js","names":[],"sources":["../../../src/components/Popover/Popover.tsx"],"sourcesContent":["\"use client\";\n\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\";\nimport type { ComponentPropsWithoutRef, ReactNode, Ref } from \"react\";\nimport { cn } from \"@/utils/cn\";\n\n// ─── Content shell ─────────────────────────────────────────────────────────────\n\n/**\n * Popover 계열 카드의 공통 골격 — 세로 레이아웃·최대 높이·패딩·쌓임·열림/닫힘\n * 애니메이션. Popover와 Coachmark가 함께 쓰고 폭·표면(배경·테두리)만 각자 정한다.\n */\nconst popoverContentBaseClassName = cn(\n \"aivex:flex aivex:flex-col aivex:gap-lg aivex:max-h-[448px] aivex:p-xl\",\n \"aivex:rounded-xl aivex:shadow-md\",\n \"aivex:z-(--aivex-z-dropdown) aivex:outline-none\",\n \"aivex:data-[state=open]:animate-in aivex:data-[state=closed]:animate-out\",\n \"aivex:data-[state=closed]:fade-out-0 aivex:data-[state=open]:fade-in-0\",\n \"aivex:data-[state=closed]:zoom-out-95 aivex:data-[state=open]:zoom-in-95\",\n);\n\n// 폭 277px은 Figma Popover-Dropdown 사양이다(Coachmark의 Popover-Bubble은 280px).\nconst contentClassName = cn(\n popoverContentBaseClassName,\n \"aivex:w-[277px]\",\n // 포털로 body에 붙으므로 글자색을 호스트 body에서 상속받지 않게 배경과 짝으로 지정한다.\n \"aivex:bg-bg-primary aivex:text-text-primary aivex:border aivex:border-border-subtle aivex:overflow-clip\",\n);\n\n// ─── Root ─────────────────────────────────────────────────────────────────────\n\ntype PopoverRootProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>;\n\nfunction PopoverRoot(props: PopoverRootProps) {\n return <PopoverPrimitive.Root {...props} />;\n}\n\n// ─── Trigger ──────────────────────────────────────────────────────────────────\n\ntype PopoverTriggerProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger> & {\n ref?: Ref<HTMLButtonElement>;\n};\n\n/** asChild로 ToggleButton 등 임의의 요소를 트리거로 사용할 수 있습니다. */\nfunction PopoverTrigger({ ref, ...props }: PopoverTriggerProps) {\n return <PopoverPrimitive.Trigger ref={ref} {...props} />;\n}\n\n// ─── Anchor ───────────────────────────────────────────────────────────────────\n\ntype PopoverAnchorProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Anchor>;\n\n/** 트리거와 다른 요소를 기준으로 위치를 잡고 싶을 때 사용합니다. */\nfunction PopoverAnchor(props: PopoverAnchorProps) {\n return <PopoverPrimitive.Anchor {...props} />;\n}\n\n// ─── Close ────────────────────────────────────────────────────────────────────\n\ntype PopoverCloseProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Close> & {\n ref?: Ref<HTMLButtonElement>;\n};\n\n/** asChild로 감싸면 하단 버튼 클릭 시 팝오버가 닫힙니다. */\nfunction PopoverClose({ ref, ...props }: PopoverCloseProps) {\n return <PopoverPrimitive.Close ref={ref} {...props} />;\n}\n\n// ─── Content ──────────────────────────────────────────────────────────────────\n\ntype PopoverContentProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> & {\n /** 포털 대상. 생략하면 document.body — Shadow DOM 안에서는 그 루트 안의 요소를 넘긴다. */\n container?: ComponentPropsWithoutRef<typeof PopoverPrimitive.Portal>[\"container\"];\n ref?: Ref<HTMLDivElement>;\n};\n\nfunction PopoverContent({\n className,\n sideOffset = 8,\n align = \"start\",\n container,\n ref,\n ...props\n}: PopoverContentProps) {\n return (\n <PopoverPrimitive.Portal container={container}>\n <PopoverPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n align={align}\n className={cn(contentClassName, className)}\n {...props}\n />\n </PopoverPrimitive.Portal>\n );\n}\n\n// ─── Title ────────────────────────────────────────────────────────────────────\n\ntype PopoverTitleProps = ComponentPropsWithoutRef<\"div\"> & {\n ref?: Ref<HTMLDivElement>;\n};\n\nfunction PopoverTitle({ className, ref, ...props }: PopoverTitleProps) {\n return (\n <div\n ref={ref}\n className={cn(\n \"aivex:w-full aivex:px-xs aivex:text-body-md-medium aivex:text-text-primary aivex:truncate\",\n className,\n )}\n {...props}\n />\n );\n}\n\n// ─── Body (ItemArea) ────────────────────────────────────────────────────────────\n\ntype PopoverBodyProps = ComponentPropsWithoutRef<\"div\"> & {\n ref?: Ref<HTMLDivElement>;\n};\n\n/** 검색창·목록 등 자유롭게 들어가는 스크롤 영역입니다. */\nfunction PopoverBody({ className, ref, ...props }: PopoverBodyProps) {\n return (\n <div\n ref={ref}\n className={cn(\n \"aivex:flex aivex:min-h-0 aivex:w-full aivex:flex-1 aivex:flex-col aivex:gap-md aivex:overflow-y-auto\",\n className,\n )}\n {...props}\n />\n );\n}\n\n// ─── Footer (BtnContainer) ──────────────────────────────────────────────────────\n\ninterface PopoverFooterProps extends ComponentPropsWithoutRef<\"div\"> {\n /** 좌측에 넓게 붙는 영역(예: 옵션 tertiary 버튼). 지정 시 나머지 버튼은 우측 정렬됩니다. */\n start?: ReactNode;\n ref?: Ref<HTMLDivElement>;\n}\n\nfunction PopoverFooter({ className, start, children, ref, ...props }: PopoverFooterProps) {\n return (\n <div\n ref={ref}\n className={cn(\n \"aivex:flex aivex:w-full aivex:items-center aivex:justify-end aivex:gap-md\",\n className,\n )}\n {...props}\n >\n {start && (\n <div className=\"aivex:flex aivex:min-w-0 aivex:flex-1 aivex:flex-col aivex:items-start aivex:justify-center\">\n {start}\n </div>\n )}\n {children}\n </div>\n );\n}\n\n// ─── Compound export ──────────────────────────────────────────────────────────\n\nconst Popover = Object.assign(PopoverRoot, {\n Trigger: PopoverTrigger,\n Anchor: PopoverAnchor,\n Close: PopoverClose,\n Content: PopoverContent,\n Title: PopoverTitle,\n Body: PopoverBody,\n Footer: PopoverFooter,\n});\n\nexport type {\n PopoverAnchorProps,\n PopoverBodyProps,\n PopoverCloseProps,\n PopoverContentProps,\n PopoverFooterProps,\n PopoverRootProps,\n PopoverTitleProps,\n PopoverTriggerProps,\n};\nexport { Popover, popoverContentBaseClassName };\n"],"mappings":";;;;;;AAYA,IAAM,IAA8B,EAClC,yEACA,oCACA,mDACA,4EACA,0EACA,2EACD,EAGK,IAAmB,EACvB,GACA,mBAEA,0GACD;AAMD,SAAS,EAAY,GAAyB;AAC5C,QAAO,kBAAC,EAAiB,MAAlB,EAAuB,GAAI,GAAS,CAAA;;AAU7C,SAAS,EAAe,EAAE,QAAK,GAAG,KAA8B;AAC9D,QAAO,kBAAC,EAAiB,SAAlB;EAA+B;EAAK,GAAI;EAAS,CAAA;;AAQ1D,SAAS,EAAc,GAA2B;AAChD,QAAO,kBAAC,EAAiB,QAAlB,EAAyB,GAAI,GAAS,CAAA;;AAU/C,SAAS,EAAa,EAAE,QAAK,GAAG,KAA4B;AAC1D,QAAO,kBAAC,EAAiB,OAAlB;EAA6B;EAAK,GAAI;EAAS,CAAA;;AAWxD,SAAS,EAAe,EACtB,cACA,gBAAa,GACb,WAAQ,SACR,cACA,QACA,GAAG,KACmB;AACtB,QACE,kBAAC,EAAiB,QAAlB;EAAoC;YAClC,kBAAC,EAAiB,SAAlB;GACO;GACO;GACL;GACP,WAAW,EAAG,GAAkB,EAAU;GAC1C,GAAI;GACJ,CAAA;EACsB,CAAA;;AAU9B,SAAS,EAAa,EAAE,cAAW,QAAK,GAAG,KAA4B;AACrE,QACE,kBAAC,OAAD;EACO;EACL,WAAW,EACT,6FACA,EACD;EACD,GAAI;EACJ,CAAA;;AAWN,SAAS,EAAY,EAAE,cAAW,QAAK,GAAG,KAA2B;AACnE,QACE,kBAAC,OAAD;EACO;EACL,WAAW,EACT,wGACA,EACD;EACD,GAAI;EACJ,CAAA;;AAYN,SAAS,EAAc,EAAE,cAAW,UAAO,aAAU,QAAK,GAAG,KAA6B;AACxF,QACE,kBAAC,OAAD;EACO;EACL,WAAW,EACT,6EACA,EACD;EACD,GAAI;YANN,CAQG,KACC,kBAAC,OAAD;GAAK,WAAU;aACZ;GACG,CAAA,EAEP,EACG;;;AAMV,IAAM,IAAU,OAAO,OAAO,GAAa;CACzC,SAAS;CACT,QAAQ;CACR,OAAO;CACP,SAAS;CACT,OAAO;CACP,MAAM;CACN,QAAQ;CACT,CAAC"}
1
+ {"version":3,"file":"Popover.js","names":[],"sources":["../../../src/components/Popover/Popover.tsx"],"sourcesContent":["\"use client\";\n\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\";\nimport type { ComponentPropsWithoutRef, ReactNode, Ref } from \"react\";\nimport { cn } from \"@/utils/cn\";\n\n// ─── Content shell ─────────────────────────────────────────────────────────────\n\n/**\n * Popover 계열 카드의 공통 골격 — 세로 레이아웃·최대 높이·패딩·쌓임·열림/닫힘\n * 애니메이션. Popover와 Coachmark가 함께 쓰고 폭·표면(배경·테두리)만 각자 정한다.\n */\nconst popoverContentBaseClassName = cn(\n \"aivex:flex aivex:flex-col aivex:gap-lg aivex:max-h-[448px] aivex:p-xl\",\n \"aivex:rounded-xl aivex:shadow-md\",\n \"aivex:z-(--aivex-z-dropdown) aivex:outline-none\",\n \"aivex:data-[state=open]:animate-in aivex:data-[state=closed]:animate-out\",\n \"aivex:data-[state=closed]:fade-out-0 aivex:data-[state=open]:fade-in-0\",\n \"aivex:data-[state=closed]:zoom-out-95 aivex:data-[state=open]:zoom-in-95\",\n);\n\n// 폭 277px은 Figma Popover-Dropdown 사양이다(Coachmark의 Popover-Bubble은 280px).\nconst contentClassName = cn(\n popoverContentBaseClassName,\n \"aivex:w-[277px]\",\n // 포털로 body에 붙으므로 글자색을 호스트 body에서 상속받지 않게 배경과 짝으로 지정한다.\n \"aivex:bg-bg-primary aivex:text-text-primary aivex:border aivex:border-border-subtle aivex:overflow-clip\",\n);\n\n// ─── Root ─────────────────────────────────────────────────────────────────────\n\n/** Popover 루트 props — Radix Popover.Root 그대로(open·defaultOpen·onOpenChange·modal). */\ntype PopoverRootProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>;\n\nfunction PopoverRoot(props: PopoverRootProps) {\n return <PopoverPrimitive.Root {...props} />;\n}\n\n// ─── Trigger ──────────────────────────────────────────────────────────────────\n\n/** Popover.Trigger props — Radix Popover.Trigger 그대로. */\ntype PopoverTriggerProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger> & {\n ref?: Ref<HTMLButtonElement>;\n};\n\n/** asChild로 ToggleButton 등 임의의 요소를 트리거로 사용할 수 있습니다. */\nfunction PopoverTrigger({ ref, ...props }: PopoverTriggerProps) {\n return <PopoverPrimitive.Trigger ref={ref} {...props} />;\n}\n\n// ─── Anchor ───────────────────────────────────────────────────────────────────\n\n/** Popover.Anchor props — Radix Popover.Anchor 그대로. */\ntype PopoverAnchorProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Anchor>;\n\n/** 트리거와 다른 요소를 기준으로 위치를 잡고 싶을 때 사용합니다. */\nfunction PopoverAnchor(props: PopoverAnchorProps) {\n return <PopoverPrimitive.Anchor {...props} />;\n}\n\n// ─── Close ────────────────────────────────────────────────────────────────────\n\n/** Popover.Close props — Radix Popover.Close 그대로. */\ntype PopoverCloseProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Close> & {\n ref?: Ref<HTMLButtonElement>;\n};\n\n/** asChild로 감싸면 하단 버튼 클릭 시 팝오버가 닫힙니다. */\nfunction PopoverClose({ ref, ...props }: PopoverCloseProps) {\n return <PopoverPrimitive.Close ref={ref} {...props} />;\n}\n\n// ─── Content ──────────────────────────────────────────────────────────────────\n\n/** Popover.Content props — Radix Popover.Content(side·align·sideOffset 등) + 포털 대상. */\ntype PopoverContentProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Content> & {\n /** 포털 대상. 생략하면 document.body — Shadow DOM 안에서는 그 루트 안의 요소를 넘긴다. */\n container?: ComponentPropsWithoutRef<typeof PopoverPrimitive.Portal>[\"container\"];\n ref?: Ref<HTMLDivElement>;\n};\n\n/**\n * 포털로 띄우는 277px 폭 카드. 기본 sideOffset 8, align \"start\".\n * 안에 Popover.Title·Body·Footer를 순서대로 둔다.\n */\nfunction PopoverContent({\n className,\n sideOffset = 8,\n align = \"start\",\n container,\n ref,\n ...props\n}: PopoverContentProps) {\n return (\n <PopoverPrimitive.Portal container={container}>\n <PopoverPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n align={align}\n className={cn(contentClassName, className)}\n {...props}\n />\n </PopoverPrimitive.Portal>\n );\n}\n\n// ─── Title ────────────────────────────────────────────────────────────────────\n\n/** Popover.Title props — div 속성. */\ntype PopoverTitleProps = ComponentPropsWithoutRef<\"div\"> & {\n ref?: Ref<HTMLDivElement>;\n};\n\n/** 카드 상단 한 줄 제목(넘치면 말줄임). 시각적 제목이며 aria 연결은 하지 않는다. */\nfunction PopoverTitle({ className, ref, ...props }: PopoverTitleProps) {\n return (\n <div\n ref={ref}\n className={cn(\n \"aivex:w-full aivex:px-xs aivex:text-body-md-medium aivex:text-text-primary aivex:truncate\",\n className,\n )}\n {...props}\n />\n );\n}\n\n// ─── Body (ItemArea) ────────────────────────────────────────────────────────────\n\n/** Popover.Body props — div 속성. */\ntype PopoverBodyProps = ComponentPropsWithoutRef<\"div\"> & {\n ref?: Ref<HTMLDivElement>;\n};\n\n/** 검색창·목록 등 자유롭게 들어가는 스크롤 영역입니다. */\nfunction PopoverBody({ className, ref, ...props }: PopoverBodyProps) {\n return (\n <div\n ref={ref}\n className={cn(\n \"aivex:flex aivex:min-h-0 aivex:w-full aivex:flex-1 aivex:flex-col aivex:gap-md aivex:overflow-y-auto\",\n className,\n )}\n {...props}\n />\n );\n}\n\n// ─── Footer (BtnContainer) ──────────────────────────────────────────────────────\n\n/** Popover.Footer props — div 속성 + 좌측 슬롯. */\ninterface PopoverFooterProps extends ComponentPropsWithoutRef<\"div\"> {\n /** 좌측에 넓게 붙는 영역(예: 옵션 tertiary 버튼). 지정 시 나머지 버튼은 우측 정렬됩니다. */\n start?: ReactNode;\n ref?: Ref<HTMLDivElement>;\n}\n\n/** 하단 버튼 줄 — children은 우측 정렬, start는 좌측에 붙는다. */\nfunction PopoverFooter({ className, start, children, ref, ...props }: PopoverFooterProps) {\n return (\n <div\n ref={ref}\n className={cn(\n \"aivex:flex aivex:w-full aivex:items-center aivex:justify-end aivex:gap-md\",\n className,\n )}\n {...props}\n >\n {start && (\n <div className=\"aivex:flex aivex:min-w-0 aivex:flex-1 aivex:flex-col aivex:items-start aivex:justify-center\">\n {start}\n </div>\n )}\n {children}\n </div>\n );\n}\n\n// ─── Compound export ──────────────────────────────────────────────────────────\n\n/**\n * 트리거 옆에 뜨는 비모달 카드(필터·옵션 선택 등)를 만드는 컴파운드 컴포넌트.\n *\n * 버튼을 눌러 검색·체크 목록·적용 버튼 같은 상호작용 내용을 띄울 때 쓴다. 호버로 짧은 설명만\n * 보이면 Tooltip, 화면을 막고 작업을 받아야 하면 Modal을 쓴다. open/onOpenChange로 제어하거나\n * 비제어로 쓰며, 바깥 클릭·Esc로 닫힌다. 버튼으로 닫으려면 Popover.Close asChild로 감싼다.\n *\n * @example\n * ```tsx\n * import { Button, Popover, ToggleButton } from \"@aivex/ui\";\n *\n * <Popover>\n * <Popover.Trigger asChild>\n * <ToggleButton>필터</ToggleButton>\n * </Popover.Trigger>\n * <Popover.Content>\n * <Popover.Title>상태 필터</Popover.Title>\n * <Popover.Body>…</Popover.Body>\n * <Popover.Footer start={<Button variant=\"ghost\">초기화</Button>}>\n * <Popover.Close asChild>\n * <Button variant=\"solid\" color=\"secondary\">취소</Button>\n * </Popover.Close>\n * <Button onClick={apply}>적용하기</Button>\n * </Popover.Footer>\n * </Popover.Content>\n * </Popover>\n * ```\n */\nconst Popover = Object.assign(PopoverRoot, {\n Trigger: PopoverTrigger,\n Anchor: PopoverAnchor,\n Close: PopoverClose,\n Content: PopoverContent,\n Title: PopoverTitle,\n Body: PopoverBody,\n Footer: PopoverFooter,\n});\n\nexport type {\n PopoverAnchorProps,\n PopoverBodyProps,\n PopoverCloseProps,\n PopoverContentProps,\n PopoverFooterProps,\n PopoverRootProps,\n PopoverTitleProps,\n PopoverTriggerProps,\n};\nexport { Popover, popoverContentBaseClassName };\n"],"mappings":";;;;;;AAYA,IAAM,IAA8B,EAClC,yEACA,oCACA,mDACA,4EACA,0EACA,2EACD,EAGK,IAAmB,EACvB,GACA,mBAEA,0GACD;AAOD,SAAS,EAAY,GAAyB;AAC5C,QAAO,kBAAC,EAAiB,MAAlB,EAAuB,GAAI,GAAS,CAAA;;AAW7C,SAAS,EAAe,EAAE,QAAK,GAAG,KAA8B;AAC9D,QAAO,kBAAC,EAAiB,SAAlB;EAA+B;EAAK,GAAI;EAAS,CAAA;;AAS1D,SAAS,EAAc,GAA2B;AAChD,QAAO,kBAAC,EAAiB,QAAlB,EAAyB,GAAI,GAAS,CAAA;;AAW/C,SAAS,EAAa,EAAE,QAAK,GAAG,KAA4B;AAC1D,QAAO,kBAAC,EAAiB,OAAlB;EAA6B;EAAK,GAAI;EAAS,CAAA;;AAgBxD,SAAS,EAAe,EACtB,cACA,gBAAa,GACb,WAAQ,SACR,cACA,QACA,GAAG,KACmB;AACtB,QACE,kBAAC,EAAiB,QAAlB;EAAoC;YAClC,kBAAC,EAAiB,SAAlB;GACO;GACO;GACL;GACP,WAAW,EAAG,GAAkB,EAAU;GAC1C,GAAI;GACJ,CAAA;EACsB,CAAA;;AAY9B,SAAS,EAAa,EAAE,cAAW,QAAK,GAAG,KAA4B;AACrE,QACE,kBAAC,OAAD;EACO;EACL,WAAW,EACT,6FACA,EACD;EACD,GAAI;EACJ,CAAA;;AAYN,SAAS,EAAY,EAAE,cAAW,QAAK,GAAG,KAA2B;AACnE,QACE,kBAAC,OAAD;EACO;EACL,WAAW,EACT,wGACA,EACD;EACD,GAAI;EACJ,CAAA;;AAcN,SAAS,EAAc,EAAE,cAAW,UAAO,aAAU,QAAK,GAAG,KAA6B;AACxF,QACE,kBAAC,OAAD;EACO;EACL,WAAW,EACT,6EACA,EACD;EACD,GAAI;YANN,CAQG,KACC,kBAAC,OAAD;GAAK,WAAU;aACZ;GACG,CAAA,EAEP,EACG;;;AAkCV,IAAM,IAAU,OAAO,OAAO,GAAa;CACzC,SAAS;CACT,QAAQ;CACR,OAAO;CACP,SAAS;CACT,OAAO;CACP,MAAM;CACN,QAAQ;CACT,CAAC"}
@@ -0,0 +1,2 @@
1
+ export type { PopoverAnchorProps, PopoverBodyProps, PopoverCloseProps, PopoverContentProps, PopoverFooterProps, PopoverRootProps, PopoverTitleProps, PopoverTriggerProps, } from "./Popover.cjs";
2
+ export { Popover } from "./Popover.cjs";