@aivex/ui 1.2.0-dev.55 → 1.2.0-dev.57

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 (696) 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.map +1 -1
  142. package/dist/components/Drawer/Drawer.d.cts +149 -0
  143. package/dist/components/Drawer/Drawer.d.ts +64 -5
  144. package/dist/components/Drawer/Drawer.js.map +1 -1
  145. package/dist/components/Drawer/index.d.cts +2 -0
  146. package/dist/components/Drawer/index.d.ts +2 -2
  147. package/dist/components/Field/Field.cjs +1 -1
  148. package/dist/components/Field/Field.cjs.map +1 -1
  149. package/dist/components/Field/Field.d.cts +100 -0
  150. package/dist/components/Field/Field.d.ts +59 -5
  151. package/dist/components/Field/Field.js +49 -42
  152. package/dist/components/Field/Field.js.map +1 -1
  153. package/dist/components/Field/index.d.cts +1 -0
  154. package/dist/components/Field/index.d.ts +1 -1
  155. package/dist/components/FilterModal/FilterModal.cjs +1 -1
  156. package/dist/components/FilterModal/FilterModal.cjs.map +1 -1
  157. package/dist/components/FilterModal/FilterModal.d.cts +83 -0
  158. package/dist/components/FilterModal/FilterModal.d.ts +52 -1
  159. package/dist/components/FilterModal/FilterModal.js +5 -4
  160. package/dist/components/FilterModal/FilterModal.js.map +1 -1
  161. package/dist/components/FilterModal/index.d.cts +2 -0
  162. package/dist/components/FilterModal/index.d.ts +2 -2
  163. package/dist/components/Icon/index.cjs.map +1 -1
  164. package/dist/components/Icon/index.d.cts +2077 -0
  165. package/dist/components/Icon/index.d.ts +41 -0
  166. package/dist/components/Icon/index.js.map +1 -1
  167. package/dist/components/Icon/svgA11y.d.cts +10 -0
  168. package/dist/components/Icon/uniqueSvgIds.d.cts +8 -0
  169. package/dist/components/IconButton/IconButton.cjs +1 -1
  170. package/dist/components/IconButton/IconButton.cjs.map +1 -1
  171. package/dist/components/IconButton/IconButton.d.cts +45 -0
  172. package/dist/components/IconButton/IconButton.d.ts +31 -3
  173. package/dist/components/IconButton/IconButton.js +25 -24
  174. package/dist/components/IconButton/IconButton.js.map +1 -1
  175. package/dist/components/IconButton/index.d.cts +2 -0
  176. package/dist/components/IconButton/index.d.ts +2 -2
  177. package/dist/components/Illustration/Illustration.cjs +2 -0
  178. package/dist/components/Illustration/Illustration.cjs.map +1 -0
  179. package/dist/components/Illustration/Illustration.d.cts +37 -0
  180. package/dist/components/Illustration/Illustration.d.ts +37 -0
  181. package/dist/components/Illustration/Illustration.js +40 -0
  182. package/dist/components/Illustration/Illustration.js.map +1 -0
  183. package/dist/components/Illustration/assets/box-dark.webp.cjs +2 -0
  184. package/dist/components/Illustration/assets/box-dark.webp.cjs.map +1 -0
  185. package/dist/components/Illustration/assets/box-dark.webp.js +7 -0
  186. package/dist/components/Illustration/assets/box-dark.webp.js.map +1 -0
  187. package/dist/components/Illustration/assets/box-light.webp.cjs +2 -0
  188. package/dist/components/Illustration/assets/box-light.webp.cjs.map +1 -0
  189. package/dist/components/Illustration/assets/box-light.webp.js +7 -0
  190. package/dist/components/Illustration/assets/box-light.webp.js.map +1 -0
  191. package/dist/components/Illustration/assets/equipment-dark.webp.cjs +2 -0
  192. package/dist/components/Illustration/assets/equipment-dark.webp.cjs.map +1 -0
  193. package/dist/components/Illustration/assets/equipment-dark.webp.js +7 -0
  194. package/dist/components/Illustration/assets/equipment-dark.webp.js.map +1 -0
  195. package/dist/components/Illustration/assets/equipment-light.webp.cjs +2 -0
  196. package/dist/components/Illustration/assets/equipment-light.webp.cjs.map +1 -0
  197. package/dist/components/Illustration/assets/equipment-light.webp.js +7 -0
  198. package/dist/components/Illustration/assets/equipment-light.webp.js.map +1 -0
  199. package/dist/components/Illustration/assets/failed-dark.webp.cjs +2 -0
  200. package/dist/components/Illustration/assets/failed-dark.webp.cjs.map +1 -0
  201. package/dist/components/Illustration/assets/failed-dark.webp.js +7 -0
  202. package/dist/components/Illustration/assets/failed-dark.webp.js.map +1 -0
  203. package/dist/components/Illustration/assets/failed-light.webp.cjs +2 -0
  204. package/dist/components/Illustration/assets/failed-light.webp.cjs.map +1 -0
  205. package/dist/components/Illustration/assets/failed-light.webp.js +7 -0
  206. package/dist/components/Illustration/assets/failed-light.webp.js.map +1 -0
  207. package/dist/components/Illustration/assets/file-dark.webp.cjs +2 -0
  208. package/dist/components/Illustration/assets/file-dark.webp.cjs.map +1 -0
  209. package/dist/components/Illustration/assets/file-dark.webp.js +7 -0
  210. package/dist/components/Illustration/assets/file-dark.webp.js.map +1 -0
  211. package/dist/components/Illustration/assets/file-light.webp.cjs +2 -0
  212. package/dist/components/Illustration/assets/file-light.webp.cjs.map +1 -0
  213. package/dist/components/Illustration/assets/file-light.webp.js +7 -0
  214. package/dist/components/Illustration/assets/file-light.webp.js.map +1 -0
  215. package/dist/components/Illustration/assets/images-dark.webp.cjs +2 -0
  216. package/dist/components/Illustration/assets/images-dark.webp.cjs.map +1 -0
  217. package/dist/components/Illustration/assets/images-dark.webp.js +7 -0
  218. package/dist/components/Illustration/assets/images-dark.webp.js.map +1 -0
  219. package/dist/components/Illustration/assets/images-light.webp.cjs +2 -0
  220. package/dist/components/Illustration/assets/images-light.webp.cjs.map +1 -0
  221. package/dist/components/Illustration/assets/images-light.webp.js +7 -0
  222. package/dist/components/Illustration/assets/images-light.webp.js.map +1 -0
  223. package/dist/components/Illustration/assets/letter-dark.webp.cjs +2 -0
  224. package/dist/components/Illustration/assets/letter-dark.webp.cjs.map +1 -0
  225. package/dist/components/Illustration/assets/letter-dark.webp.js +7 -0
  226. package/dist/components/Illustration/assets/letter-dark.webp.js.map +1 -0
  227. package/dist/components/Illustration/assets/letter-light.webp.cjs +2 -0
  228. package/dist/components/Illustration/assets/letter-light.webp.cjs.map +1 -0
  229. package/dist/components/Illustration/assets/letter-light.webp.js +7 -0
  230. package/dist/components/Illustration/assets/letter-light.webp.js.map +1 -0
  231. package/dist/components/Illustration/assets/message-dark.webp.cjs +2 -0
  232. package/dist/components/Illustration/assets/message-dark.webp.cjs.map +1 -0
  233. package/dist/components/Illustration/assets/message-dark.webp.js +7 -0
  234. package/dist/components/Illustration/assets/message-dark.webp.js.map +1 -0
  235. package/dist/components/Illustration/assets/message-light.webp.cjs +2 -0
  236. package/dist/components/Illustration/assets/message-light.webp.cjs.map +1 -0
  237. package/dist/components/Illustration/assets/message-light.webp.js +7 -0
  238. package/dist/components/Illustration/assets/message-light.webp.js.map +1 -0
  239. package/dist/components/Illustration/assets/network-dark.webp.cjs +2 -0
  240. package/dist/components/Illustration/assets/network-dark.webp.cjs.map +1 -0
  241. package/dist/components/Illustration/assets/network-dark.webp.js +7 -0
  242. package/dist/components/Illustration/assets/network-dark.webp.js.map +1 -0
  243. package/dist/components/Illustration/assets/network-light.webp.cjs +2 -0
  244. package/dist/components/Illustration/assets/network-light.webp.cjs.map +1 -0
  245. package/dist/components/Illustration/assets/network-light.webp.js +7 -0
  246. package/dist/components/Illustration/assets/network-light.webp.js.map +1 -0
  247. package/dist/components/Illustration/assets/no-data-dark.webp.cjs +2 -0
  248. package/dist/components/Illustration/assets/no-data-dark.webp.cjs.map +1 -0
  249. package/dist/components/Illustration/assets/no-data-dark.webp.js +7 -0
  250. package/dist/components/Illustration/assets/no-data-dark.webp.js.map +1 -0
  251. package/dist/components/Illustration/assets/no-data-light.webp.cjs +2 -0
  252. package/dist/components/Illustration/assets/no-data-light.webp.cjs.map +1 -0
  253. package/dist/components/Illustration/assets/no-data-light.webp.js +7 -0
  254. package/dist/components/Illustration/assets/no-data-light.webp.js.map +1 -0
  255. package/dist/components/Illustration/assets/paper-dark.webp.cjs +2 -0
  256. package/dist/components/Illustration/assets/paper-dark.webp.cjs.map +1 -0
  257. package/dist/components/Illustration/assets/paper-dark.webp.js +7 -0
  258. package/dist/components/Illustration/assets/paper-dark.webp.js.map +1 -0
  259. package/dist/components/Illustration/assets/paper-light.webp.cjs +2 -0
  260. package/dist/components/Illustration/assets/paper-light.webp.cjs.map +1 -0
  261. package/dist/components/Illustration/assets/paper-light.webp.js +7 -0
  262. package/dist/components/Illustration/assets/paper-light.webp.js.map +1 -0
  263. package/dist/components/Illustration/assets/success-dark.webp.cjs +2 -0
  264. package/dist/components/Illustration/assets/success-dark.webp.cjs.map +1 -0
  265. package/dist/components/Illustration/assets/success-dark.webp.js +7 -0
  266. package/dist/components/Illustration/assets/success-dark.webp.js.map +1 -0
  267. package/dist/components/Illustration/assets/success-light.webp.cjs +2 -0
  268. package/dist/components/Illustration/assets/success-light.webp.cjs.map +1 -0
  269. package/dist/components/Illustration/assets/success-light.webp.js +7 -0
  270. package/dist/components/Illustration/assets/success-light.webp.js.map +1 -0
  271. package/dist/components/Illustration/assets/warning-dark.webp.cjs +2 -0
  272. package/dist/components/Illustration/assets/warning-dark.webp.cjs.map +1 -0
  273. package/dist/components/Illustration/assets/warning-dark.webp.js +7 -0
  274. package/dist/components/Illustration/assets/warning-dark.webp.js.map +1 -0
  275. package/dist/components/Illustration/assets/warning-light.webp.cjs +2 -0
  276. package/dist/components/Illustration/assets/warning-light.webp.cjs.map +1 -0
  277. package/dist/components/Illustration/assets/warning-light.webp.js +7 -0
  278. package/dist/components/Illustration/assets/warning-light.webp.js.map +1 -0
  279. package/dist/components/Illustration/illustrations.cjs +2 -0
  280. package/dist/components/Illustration/illustrations.cjs.map +1 -0
  281. package/dist/components/Illustration/illustrations.d.cts +81 -0
  282. package/dist/components/Illustration/illustrations.d.ts +81 -0
  283. package/dist/components/Illustration/illustrations.js +104 -0
  284. package/dist/components/Illustration/illustrations.js.map +1 -0
  285. package/dist/components/Illustration/index.d.cts +1 -0
  286. package/dist/components/Illustration/index.d.ts +1 -0
  287. package/dist/components/InputBase/InputBase.cjs.map +1 -1
  288. package/dist/components/InputBase/InputBase.d.cts +59 -0
  289. package/dist/components/InputBase/InputBase.d.ts +30 -0
  290. package/dist/components/InputBase/InputBase.js.map +1 -1
  291. package/dist/components/InputBase/index.d.cts +1 -0
  292. package/dist/components/InputBase/index.d.ts +1 -1
  293. package/dist/components/InputBase/useInputState.d.cts +19 -0
  294. package/dist/components/InteractionLayer/InteractionLayer.cjs.map +1 -1
  295. package/dist/components/InteractionLayer/InteractionLayer.d.cts +43 -0
  296. package/dist/components/InteractionLayer/InteractionLayer.d.ts +34 -0
  297. package/dist/components/InteractionLayer/InteractionLayer.js.map +1 -1
  298. package/dist/components/InteractionLayer/index.d.cts +1 -0
  299. package/dist/components/InteractionLayer/index.d.ts +1 -1
  300. package/dist/components/Logo/index.cjs.map +1 -1
  301. package/dist/components/Logo/index.d.cts +73 -0
  302. package/dist/components/Logo/index.d.ts +27 -1
  303. package/dist/components/Logo/index.js.map +1 -1
  304. package/dist/components/Menu/Menu.cjs.map +1 -1
  305. package/dist/components/Menu/Menu.d.cts +146 -0
  306. package/dist/components/Menu/Menu.d.ts +62 -0
  307. package/dist/components/Menu/Menu.js.map +1 -1
  308. package/dist/components/Menu/index.d.cts +2 -0
  309. package/dist/components/Menu/index.d.ts +2 -2
  310. package/dist/components/Messagebox/Messagebox.cjs.map +1 -1
  311. package/dist/components/Messagebox/Messagebox.d.cts +50 -0
  312. package/dist/components/Messagebox/Messagebox.d.ts +33 -3
  313. package/dist/components/Messagebox/Messagebox.js.map +1 -1
  314. package/dist/components/Messagebox/index.d.cts +2 -0
  315. package/dist/components/Messagebox/index.d.ts +2 -2
  316. package/dist/components/Modal/Modal.cjs +1 -1
  317. package/dist/components/Modal/Modal.cjs.map +1 -1
  318. package/dist/components/Modal/Modal.d.cts +149 -0
  319. package/dist/components/Modal/Modal.d.ts +109 -4
  320. package/dist/components/Modal/Modal.js +30 -28
  321. package/dist/components/Modal/Modal.js.map +1 -1
  322. package/dist/components/Modal/ModalBase.cjs.map +1 -1
  323. package/dist/components/Modal/ModalBase.d.cts +71 -0
  324. package/dist/components/Modal/ModalBase.d.ts +39 -1
  325. package/dist/components/Modal/ModalBase.js.map +1 -1
  326. package/dist/components/Modal/index.d.cts +4 -0
  327. package/dist/components/Modal/index.d.ts +4 -4
  328. package/dist/components/Nav/Nav.cjs.map +1 -1
  329. package/dist/components/Nav/Nav.d.cts +69 -0
  330. package/dist/components/Nav/Nav.d.ts +46 -0
  331. package/dist/components/Nav/Nav.js.map +1 -1
  332. package/dist/components/Nav/index.d.cts +2 -0
  333. package/dist/components/Nav/index.d.ts +2 -2
  334. package/dist/components/Overlay/Overlay.cjs.map +1 -1
  335. package/dist/components/Overlay/Overlay.d.cts +36 -0
  336. package/dist/components/Overlay/Overlay.d.ts +20 -2
  337. package/dist/components/Overlay/Overlay.js.map +1 -1
  338. package/dist/components/Overlay/index.d.cts +2 -0
  339. package/dist/components/Overlay/index.d.ts +2 -2
  340. package/dist/components/Pagination/Pagination.cjs +1 -1
  341. package/dist/components/Pagination/Pagination.cjs.map +1 -1
  342. package/dist/components/Pagination/Pagination.d.cts +68 -0
  343. package/dist/components/Pagination/Pagination.d.ts +43 -1
  344. package/dist/components/Pagination/Pagination.js +55 -41
  345. package/dist/components/Pagination/Pagination.js.map +1 -1
  346. package/dist/components/Pagination/index.d.cts +2 -0
  347. package/dist/components/Pagination/index.d.ts +2 -2
  348. package/dist/components/Panel/Panel.cjs.map +1 -1
  349. package/dist/components/Panel/Panel.d.cts +124 -0
  350. package/dist/components/Panel/Panel.d.ts +45 -3
  351. package/dist/components/Panel/Panel.js.map +1 -1
  352. package/dist/components/Panel/index.d.cts +2 -0
  353. package/dist/components/Panel/index.d.ts +2 -2
  354. package/dist/components/Popover/Popover.cjs.map +1 -1
  355. package/dist/components/Popover/Popover.d.cts +96 -0
  356. package/dist/components/Popover/Popover.d.ts +42 -0
  357. package/dist/components/Popover/Popover.js.map +1 -1
  358. package/dist/components/Popover/index.d.cts +2 -0
  359. package/dist/components/Popover/index.d.ts +2 -2
  360. package/dist/components/ProgressBar/ProgressBar.cjs.map +1 -1
  361. package/dist/components/ProgressBar/ProgressBar.d.cts +45 -0
  362. package/dist/components/ProgressBar/ProgressBar.d.ts +32 -0
  363. package/dist/components/ProgressBar/ProgressBar.js.map +1 -1
  364. package/dist/components/ProgressBar/index.d.cts +2 -0
  365. package/dist/components/ProgressBar/index.d.ts +2 -2
  366. package/dist/components/Radio/Radio.cjs.map +1 -1
  367. package/dist/components/Radio/Radio.d.cts +32 -0
  368. package/dist/components/Radio/Radio.d.ts +21 -0
  369. package/dist/components/Radio/Radio.js.map +1 -1
  370. package/dist/components/Radio/index.d.cts +2 -0
  371. package/dist/components/Radio/index.d.ts +2 -2
  372. package/dist/components/ScrollArea/ScrollArea.cjs.map +1 -1
  373. package/dist/components/ScrollArea/ScrollArea.d.cts +42 -0
  374. package/dist/components/ScrollArea/ScrollArea.d.ts +24 -0
  375. package/dist/components/ScrollArea/ScrollArea.js.map +1 -1
  376. package/dist/components/ScrollArea/index.d.cts +2 -0
  377. package/dist/components/ScrollArea/index.d.ts +2 -2
  378. package/dist/components/Segmented/Segmented.cjs.map +1 -1
  379. package/dist/components/Segmented/Segmented.d.cts +41 -0
  380. package/dist/components/Segmented/Segmented.d.ts +26 -0
  381. package/dist/components/Segmented/Segmented.js.map +1 -1
  382. package/dist/components/Segmented/index.d.cts +2 -0
  383. package/dist/components/Segmented/index.d.ts +2 -2
  384. package/dist/components/SelectBox/SelectBox.cjs +1 -1
  385. package/dist/components/SelectBox/SelectBox.cjs.map +1 -1
  386. package/dist/components/SelectBox/SelectBox.d.cts +95 -0
  387. package/dist/components/SelectBox/SelectBox.d.ts +55 -3
  388. package/dist/components/SelectBox/SelectBox.js +17 -12
  389. package/dist/components/SelectBox/SelectBox.js.map +1 -1
  390. package/dist/components/SelectBox/index.d.cts +2 -0
  391. package/dist/components/SelectBox/index.d.ts +2 -2
  392. package/dist/components/SelectButton/SelectButton.cjs +1 -1
  393. package/dist/components/SelectButton/SelectButton.cjs.map +1 -1
  394. package/dist/components/SelectButton/SelectButton.d.cts +54 -0
  395. package/dist/components/SelectButton/SelectButton.d.ts +37 -1
  396. package/dist/components/SelectButton/SelectButton.js +31 -31
  397. package/dist/components/SelectButton/SelectButton.js.map +1 -1
  398. package/dist/components/SelectButton/index.d.cts +2 -0
  399. package/dist/components/SelectButton/index.d.ts +2 -2
  400. package/dist/components/ShapeEditor/ShapeEditor.cjs +1 -1
  401. package/dist/components/ShapeEditor/ShapeEditor.cjs.map +1 -1
  402. package/dist/components/ShapeEditor/ShapeEditor.d.cts +40 -0
  403. package/dist/components/ShapeEditor/ShapeEditor.d.ts +36 -3
  404. package/dist/components/ShapeEditor/ShapeEditor.js +1 -1
  405. package/dist/components/ShapeEditor/ShapeEditor.js.map +1 -1
  406. package/dist/components/ShapeEditor/ShapeViewer.cjs +1 -1
  407. package/dist/components/ShapeEditor/ShapeViewer.cjs.map +1 -1
  408. package/dist/components/ShapeEditor/ShapeViewer.d.cts +92 -0
  409. package/dist/components/ShapeEditor/ShapeViewer.d.ts +55 -5
  410. package/dist/components/ShapeEditor/ShapeViewer.js +47 -41
  411. package/dist/components/ShapeEditor/ShapeViewer.js.map +1 -1
  412. package/dist/components/ShapeEditor/_components/AssistantOverlay.d.cts +17 -0
  413. package/dist/components/ShapeEditor/_components/AssistantOverlay.d.ts +2 -2
  414. package/dist/components/ShapeEditor/_components/ContextMenu.d.cts +13 -0
  415. package/dist/components/ShapeEditor/_components/ContextMenu.d.ts +1 -1
  416. package/dist/components/ShapeEditor/_components/CursorGuide.d.cts +8 -0
  417. package/dist/components/ShapeEditor/_components/ImageStateOverlay.d.cts +17 -0
  418. package/dist/components/ShapeEditor/_components/ImageStateOverlay.d.ts +1 -1
  419. package/dist/components/ShapeEditor/_components/Minimap.d.cts +46 -0
  420. package/dist/components/ShapeEditor/_components/Minimap.d.ts +6 -6
  421. package/dist/components/ShapeEditor/_components/MinimapShape.d.cts +6 -0
  422. package/dist/components/ShapeEditor/_components/MinimapShape.d.ts +1 -1
  423. package/dist/components/ShapeEditor/_components/RegionOverlay.d.cts +21 -0
  424. package/dist/components/ShapeEditor/_components/RegionOverlay.d.ts +1 -1
  425. package/dist/components/ShapeEditor/_components/SelectionInfo.d.cts +20 -0
  426. package/dist/components/ShapeEditor/_components/SelectionInfo.d.ts +3 -3
  427. package/dist/components/ShapeEditor/_components/SettingsPanel.cjs.map +1 -1
  428. package/dist/components/ShapeEditor/_components/SettingsPanel.d.cts +28 -0
  429. package/dist/components/ShapeEditor/_components/SettingsPanel.d.ts +5 -5
  430. package/dist/components/ShapeEditor/_components/SettingsPanel.js.map +1 -1
  431. package/dist/components/ShapeEditor/_constants.cjs +1 -1
  432. package/dist/components/ShapeEditor/_constants.cjs.map +1 -1
  433. package/dist/components/ShapeEditor/_constants.d.cts +15 -0
  434. package/dist/components/ShapeEditor/_constants.d.ts +0 -21
  435. package/dist/components/ShapeEditor/_constants.js +1 -1
  436. package/dist/components/ShapeEditor/_constants.js.map +1 -1
  437. package/dist/components/ShapeEditor/_model/brush.d.cts +3 -0
  438. package/dist/components/ShapeEditor/_model/brush.d.ts +1 -1
  439. package/dist/components/ShapeEditor/_model/clipboard.d.cts +22 -0
  440. package/dist/components/ShapeEditor/_model/clipboard.d.ts +1 -1
  441. package/dist/components/ShapeEditor/_model/cursors.d.cts +23 -0
  442. package/dist/components/ShapeEditor/_model/cursors.d.ts +2 -2
  443. package/dist/components/ShapeEditor/_model/geometry.cjs.map +1 -1
  444. package/dist/components/ShapeEditor/_model/geometry.d.cts +182 -0
  445. package/dist/components/ShapeEditor/_model/geometry.d.ts +17 -1
  446. package/dist/components/ShapeEditor/_model/geometry.js.map +1 -1
  447. package/dist/components/ShapeEditor/_model/imageDiagnosis.cjs +1 -1
  448. package/dist/components/ShapeEditor/_model/imageDiagnosis.cjs.map +1 -1
  449. package/dist/components/ShapeEditor/_model/imageDiagnosis.d.cts +38 -0
  450. package/dist/components/ShapeEditor/_model/imageDiagnosis.d.ts +4 -1
  451. package/dist/components/ShapeEditor/_model/imageDiagnosis.js +29 -20
  452. package/dist/components/ShapeEditor/_model/imageDiagnosis.js.map +1 -1
  453. package/dist/components/ShapeEditor/_model/imageLoad.d.cts +29 -0
  454. package/dist/components/ShapeEditor/_model/imageSignature.d.cts +18 -0
  455. package/dist/components/ShapeEditor/_model/imageTiles.d.cts +11 -0
  456. package/dist/components/ShapeEditor/_model/keymap.cjs.map +1 -1
  457. package/dist/components/ShapeEditor/_model/keymap.d.cts +17 -0
  458. package/dist/components/ShapeEditor/_model/keymap.d.ts +2 -0
  459. package/dist/components/ShapeEditor/_model/keymap.js.map +1 -1
  460. package/dist/components/ShapeEditor/_model/overlays.d.cts +108 -0
  461. package/dist/components/ShapeEditor/_model/overlays.d.ts +1 -1
  462. package/dist/components/ShapeEditor/_model/pinIcon.d.cts +13 -0
  463. package/dist/components/ShapeEditor/_model/polygonFill.d.cts +2 -0
  464. package/dist/components/ShapeEditor/_model/polygonFill.d.ts +1 -1
  465. package/dist/components/ShapeEditor/_model/props.d.cts +13 -0
  466. package/dist/components/ShapeEditor/_model/props.d.ts +8 -8
  467. package/dist/components/ShapeEditor/_model/scalarMask.d.cts +21 -0
  468. package/dist/components/ShapeEditor/_model/scalarMask.d.ts +1 -1
  469. package/dist/components/ShapeEditor/_model/shapeHitTest.d.cts +14 -0
  470. package/dist/components/ShapeEditor/_model/shapeHitTest.d.ts +2 -2
  471. package/dist/components/ShapeEditor/_model/shapeRenderStyle.d.cts +16 -0
  472. package/dist/components/ShapeEditor/_model/shapeRenderStyle.d.ts +1 -1
  473. package/dist/components/ShapeEditor/_model/strings.cjs.map +1 -1
  474. package/dist/components/ShapeEditor/_model/strings.d.cts +62 -0
  475. package/dist/components/ShapeEditor/_model/strings.d.ts +2 -1
  476. package/dist/components/ShapeEditor/_model/strings.js.map +1 -1
  477. package/dist/components/ShapeEditor/_model/tools.cjs.map +1 -1
  478. package/dist/components/ShapeEditor/_model/tools.d.cts +29 -0
  479. package/dist/components/ShapeEditor/_model/tools.d.ts +4 -2
  480. package/dist/components/ShapeEditor/_model/tools.js.map +1 -1
  481. package/dist/components/ShapeEditor/_model/types/assistant.d.cts +37 -0
  482. package/dist/components/ShapeEditor/_model/types/assistant.d.ts +3 -1
  483. package/dist/components/ShapeEditor/_model/types/handle.d.cts +124 -0
  484. package/dist/components/ShapeEditor/_model/types/handle.d.ts +30 -4
  485. package/dist/components/ShapeEditor/_model/types/props.d.cts +430 -0
  486. package/dist/components/ShapeEditor/_model/types/props.d.ts +83 -20
  487. package/dist/components/ShapeEditor/_model/viewSettings.cjs.map +1 -1
  488. package/dist/components/ShapeEditor/_model/viewSettings.d.cts +73 -0
  489. package/dist/components/ShapeEditor/_model/viewSettings.d.ts +13 -1
  490. package/dist/components/ShapeEditor/_model/viewSettings.js.map +1 -1
  491. package/dist/components/ShapeEditor/_model/viewerPatch.d.cts +60 -0
  492. package/dist/components/ShapeEditor/_model/viewerPatch.d.ts +1 -1
  493. package/dist/components/ShapeEditor/_model/viewport.d.cts +36 -0
  494. package/dist/components/ShapeEditor/_model/viewport.d.ts +1 -1
  495. package/dist/components/ShapeEditor/_renderers/PixiRenderer.cjs +1 -1
  496. package/dist/components/ShapeEditor/_renderers/PixiRenderer.cjs.map +1 -1
  497. package/dist/components/ShapeEditor/_renderers/PixiRenderer.d.cts +121 -0
  498. package/dist/components/ShapeEditor/_renderers/PixiRenderer.d.ts +5 -5
  499. package/dist/components/ShapeEditor/_renderers/PixiRenderer.js +1 -1
  500. package/dist/components/ShapeEditor/_renderers/PixiRenderer.js.map +1 -1
  501. package/dist/components/ShapeEditor/_renderers/imageLayer.d.cts +35 -0
  502. package/dist/components/ShapeEditor/_renderers/overlayLayer.d.cts +36 -0
  503. package/dist/components/ShapeEditor/_renderers/overlayLayer.d.ts +2 -2
  504. package/dist/components/ShapeEditor/_renderers/previewLayer.cjs +1 -1
  505. package/dist/components/ShapeEditor/_renderers/previewLayer.cjs.map +1 -1
  506. package/dist/components/ShapeEditor/_renderers/previewLayer.d.cts +34 -0
  507. package/dist/components/ShapeEditor/_renderers/previewLayer.d.ts +5 -3
  508. package/dist/components/ShapeEditor/_renderers/previewLayer.js +3 -0
  509. package/dist/components/ShapeEditor/_renderers/previewLayer.js.map +1 -1
  510. package/dist/components/ShapeEditor/_renderers/shapeLayer.d.cts +49 -0
  511. package/dist/components/ShapeEditor/_renderers/shapeLayer.d.ts +3 -3
  512. package/dist/components/ShapeEditor/_renderers/shapePainter.d.cts +27 -0
  513. package/dist/components/ShapeEditor/_renderers/shapePainter.d.ts +1 -1
  514. package/dist/components/ShapeEditor/_renderers/transformDriver.d.cts +55 -0
  515. package/dist/components/ShapeEditor/_renderers/transformDriver.d.ts +3 -3
  516. package/dist/components/ShapeEditor/_renderers/transformSession.d.cts +74 -0
  517. package/dist/components/ShapeEditor/_renderers/transformSession.d.ts +1 -1
  518. package/dist/components/ShapeEditor/_renderers/transformerLayer.d.cts +69 -0
  519. package/dist/components/ShapeEditor/_renderers/transformerLayer.d.ts +2 -2
  520. package/dist/components/ShapeEditor/_renderers/types.d.cts +129 -0
  521. package/dist/components/ShapeEditor/_renderers/types.d.ts +6 -6
  522. package/dist/components/ShapeEditor/_state/buildContextMenuItems.d.cts +26 -0
  523. package/dist/components/ShapeEditor/_state/buildContextMenuItems.d.ts +5 -5
  524. package/dist/components/ShapeEditor/_state/buildHotkeyActions.d.cts +42 -0
  525. package/dist/components/ShapeEditor/_state/buildHotkeyActions.d.ts +7 -7
  526. package/dist/components/ShapeEditor/_state/createInteractionController.d.cts +73 -0
  527. package/dist/components/ShapeEditor/_state/createInteractionController.d.ts +9 -9
  528. package/dist/components/ShapeEditor/_state/drawSessionState.d.cts +6 -0
  529. package/dist/components/ShapeEditor/_state/drawSessionState.d.ts +2 -2
  530. package/dist/components/ShapeEditor/_state/useAssistant.d.cts +48 -0
  531. package/dist/components/ShapeEditor/_state/useAssistant.d.ts +3 -3
  532. package/dist/components/ShapeEditor/_state/useDrawSession.d.cts +61 -0
  533. package/dist/components/ShapeEditor/_state/useDrawSession.d.ts +5 -5
  534. package/dist/components/ShapeEditor/_state/useEditorDocument.d.cts +23 -0
  535. package/dist/components/ShapeEditor/_state/useEditorDocument.d.ts +1 -1
  536. package/dist/components/ShapeEditor/_state/useEditorHandle.d.cts +34 -0
  537. package/dist/components/ShapeEditor/_state/useEditorHandle.d.ts +9 -9
  538. package/dist/components/ShapeEditor/_state/useEditorHotkeys.cjs +1 -1
  539. package/dist/components/ShapeEditor/_state/useEditorHotkeys.cjs.map +1 -1
  540. package/dist/components/ShapeEditor/_state/useEditorHotkeys.d.cts +25 -0
  541. package/dist/components/ShapeEditor/_state/useEditorHotkeys.d.ts +1 -1
  542. package/dist/components/ShapeEditor/_state/useEditorHotkeys.js +15 -15
  543. package/dist/components/ShapeEditor/_state/useEditorHotkeys.js.map +1 -1
  544. package/dist/components/ShapeEditor/_state/useEditorView.d.cts +15 -0
  545. package/dist/components/ShapeEditor/_state/useEditorView.d.ts +1 -1
  546. package/dist/components/ShapeEditor/_state/useEngineLifecycle.cjs +1 -1
  547. package/dist/components/ShapeEditor/_state/useEngineLifecycle.cjs.map +1 -1
  548. package/dist/components/ShapeEditor/_state/useEngineLifecycle.d.cts +89 -0
  549. package/dist/components/ShapeEditor/_state/useEngineLifecycle.d.ts +6 -6
  550. package/dist/components/ShapeEditor/_state/useEngineLifecycle.js +23 -20
  551. package/dist/components/ShapeEditor/_state/useEngineLifecycle.js.map +1 -1
  552. package/dist/components/ShapeEditor/_state/useLatestRef.d.cts +7 -0
  553. package/dist/components/ShapeEditor/_state/useMinimapNavigation.d.cts +27 -0
  554. package/dist/components/ShapeEditor/_state/useMinimapNavigation.d.ts +1 -1
  555. package/dist/components/ShapeEditor/_state/useMinimapSync.d.cts +26 -0
  556. package/dist/components/ShapeEditor/_state/useMinimapSync.d.ts +3 -3
  557. package/dist/components/ShapeEditor/_state/useSelectionActions.d.cts +31 -0
  558. package/dist/components/ShapeEditor/_state/useSelectionActions.d.ts +2 -2
  559. package/dist/components/ShapeEditor/_state/useSelectionInfoOverlay.d.cts +32 -0
  560. package/dist/components/ShapeEditor/_state/useSelectionInfoOverlay.d.ts +4 -4
  561. package/dist/components/ShapeEditor/_state/useSelectionModel.d.cts +24 -0
  562. package/dist/components/ShapeEditor/_state/useSelectionModel.d.ts +4 -4
  563. package/dist/components/ShapeEditor/_state/useViewportControls.d.cts +23 -0
  564. package/dist/components/ShapeEditor/_state/useViewportControls.d.ts +3 -3
  565. package/dist/components/ShapeEditor/index.d.cts +13 -0
  566. package/dist/components/ShapeEditor/index.d.ts +13 -8
  567. package/dist/components/Shortcut/Shortcut.cjs.map +1 -1
  568. package/dist/components/Shortcut/Shortcut.d.cts +24 -0
  569. package/dist/components/Shortcut/Shortcut.d.ts +16 -0
  570. package/dist/components/Shortcut/Shortcut.js.map +1 -1
  571. package/dist/components/Shortcut/index.d.cts +2 -0
  572. package/dist/components/Shortcut/index.d.ts +2 -2
  573. package/dist/components/Skeleton/Skeleton.cjs.map +1 -1
  574. package/dist/components/Skeleton/Skeleton.d.cts +26 -0
  575. package/dist/components/Skeleton/Skeleton.d.ts +19 -0
  576. package/dist/components/Skeleton/Skeleton.js.map +1 -1
  577. package/dist/components/Skeleton/index.d.cts +2 -0
  578. package/dist/components/Skeleton/index.d.ts +2 -2
  579. package/dist/components/Slider/Slider.cjs +1 -1
  580. package/dist/components/Slider/Slider.cjs.map +1 -1
  581. package/dist/components/Slider/Slider.d.cts +45 -0
  582. package/dist/components/Slider/Slider.d.ts +33 -1
  583. package/dist/components/Slider/Slider.js +18 -14
  584. package/dist/components/Slider/Slider.js.map +1 -1
  585. package/dist/components/Slider/index.d.cts +2 -0
  586. package/dist/components/Slider/index.d.ts +2 -2
  587. package/dist/components/Spinner/Spinner.cjs.map +1 -1
  588. package/dist/components/Spinner/Spinner.d.cts +32 -0
  589. package/dist/components/Spinner/Spinner.d.ts +18 -1
  590. package/dist/components/Spinner/Spinner.js.map +1 -1
  591. package/dist/components/Spinner/index.d.cts +2 -0
  592. package/dist/components/Spinner/index.d.ts +2 -2
  593. package/dist/components/Switch/Switch.cjs +1 -1
  594. package/dist/components/Switch/Switch.cjs.map +1 -1
  595. package/dist/components/Switch/Switch.d.cts +29 -0
  596. package/dist/components/Switch/Switch.d.ts +16 -0
  597. package/dist/components/Switch/Switch.js +1 -1
  598. package/dist/components/Switch/Switch.js.map +1 -1
  599. package/dist/components/Switch/index.d.cts +2 -0
  600. package/dist/components/Switch/index.d.ts +2 -2
  601. package/dist/components/Tab/Tab.cjs.map +1 -1
  602. package/dist/components/Tab/Tab.d.cts +45 -0
  603. package/dist/components/Tab/Tab.d.ts +26 -0
  604. package/dist/components/Tab/Tab.js.map +1 -1
  605. package/dist/components/Tab/index.d.cts +2 -0
  606. package/dist/components/Tab/index.d.ts +2 -2
  607. package/dist/components/Tag/Tag.cjs.map +1 -1
  608. package/dist/components/Tag/Tag.d.cts +50 -0
  609. package/dist/components/Tag/Tag.d.ts +32 -1
  610. package/dist/components/Tag/Tag.js.map +1 -1
  611. package/dist/components/Tag/index.d.cts +2 -0
  612. package/dist/components/Tag/index.d.ts +2 -2
  613. package/dist/components/Tagbox/Tagbox.cjs +1 -1
  614. package/dist/components/Tagbox/Tagbox.cjs.map +1 -1
  615. package/dist/components/Tagbox/Tagbox.d.cts +67 -0
  616. package/dist/components/Tagbox/Tagbox.d.ts +46 -3
  617. package/dist/components/Tagbox/Tagbox.js +5 -3
  618. package/dist/components/Tagbox/Tagbox.js.map +1 -1
  619. package/dist/components/Tagbox/index.d.cts +2 -0
  620. package/dist/components/Tagbox/index.d.ts +2 -2
  621. package/dist/components/Textarea/Textarea.cjs +1 -1
  622. package/dist/components/Textarea/Textarea.cjs.map +1 -1
  623. package/dist/components/Textarea/Textarea.d.cts +51 -0
  624. package/dist/components/Textarea/Textarea.d.ts +32 -3
  625. package/dist/components/Textarea/Textarea.js +20 -19
  626. package/dist/components/Textarea/Textarea.js.map +1 -1
  627. package/dist/components/Textarea/index.d.cts +2 -0
  628. package/dist/components/Textarea/index.d.ts +2 -2
  629. package/dist/components/Textbox/Textbox.cjs.map +1 -1
  630. package/dist/components/Textbox/Textbox.d.cts +49 -0
  631. package/dist/components/Textbox/Textbox.d.ts +30 -1
  632. package/dist/components/Textbox/Textbox.js.map +1 -1
  633. package/dist/components/Textbox/index.d.cts +2 -0
  634. package/dist/components/Textbox/index.d.ts +2 -2
  635. package/dist/components/Toast/Toast.cjs +1 -1
  636. package/dist/components/Toast/Toast.cjs.map +1 -1
  637. package/dist/components/Toast/Toast.d.cts +99 -0
  638. package/dist/components/Toast/Toast.d.ts +72 -4
  639. package/dist/components/Toast/Toast.js +3 -2
  640. package/dist/components/Toast/Toast.js.map +1 -1
  641. package/dist/components/Toast/index.d.cts +2 -0
  642. package/dist/components/Toast/index.d.ts +2 -2
  643. package/dist/components/ToggleButton/ToggleButton.cjs.map +1 -1
  644. package/dist/components/ToggleButton/ToggleButton.d.cts +41 -0
  645. package/dist/components/ToggleButton/ToggleButton.d.ts +21 -0
  646. package/dist/components/ToggleButton/ToggleButton.js.map +1 -1
  647. package/dist/components/ToggleButton/index.d.cts +2 -0
  648. package/dist/components/ToggleButton/index.d.ts +2 -2
  649. package/dist/components/Tooltip/Tooltip.cjs.map +1 -1
  650. package/dist/components/Tooltip/Tooltip.d.cts +40 -0
  651. package/dist/components/Tooltip/Tooltip.d.ts +27 -0
  652. package/dist/components/Tooltip/Tooltip.js.map +1 -1
  653. package/dist/components/Tooltip/index.d.cts +2 -0
  654. package/dist/components/Tooltip/index.d.ts +2 -2
  655. package/dist/components/TruncatedText/TruncatedText.cjs.map +1 -1
  656. package/dist/components/TruncatedText/TruncatedText.d.cts +44 -0
  657. package/dist/components/TruncatedText/TruncatedText.d.ts +22 -0
  658. package/dist/components/TruncatedText/TruncatedText.js.map +1 -1
  659. package/dist/components/TruncatedText/index.d.cts +2 -0
  660. package/dist/components/TruncatedText/index.d.ts +2 -2
  661. package/dist/components/Typography/Typography.cjs.map +1 -1
  662. package/dist/components/Typography/Typography.d.cts +33 -0
  663. package/dist/components/Typography/Typography.d.ts +21 -0
  664. package/dist/components/Typography/Typography.js.map +1 -1
  665. package/dist/components/Typography/index.d.cts +2 -0
  666. package/dist/components/Typography/index.d.ts +2 -2
  667. package/dist/components/UploadArea/UploadArea.cjs +1 -1
  668. package/dist/components/UploadArea/UploadArea.cjs.map +1 -1
  669. package/dist/components/UploadArea/UploadArea.d.cts +82 -0
  670. package/dist/components/UploadArea/UploadArea.d.ts +66 -1
  671. package/dist/components/UploadArea/UploadArea.js +55 -34
  672. package/dist/components/UploadArea/UploadArea.js.map +1 -1
  673. package/dist/components/UploadArea/index.d.cts +2 -0
  674. package/dist/components/UploadArea/index.d.ts +2 -2
  675. package/dist/illustration.cjs +1 -0
  676. package/dist/illustration.js +3 -0
  677. package/dist/index.d.cts +52 -0
  678. package/dist/index.d.ts +52 -52
  679. package/dist/llms-full.txt +6009 -0
  680. package/dist/llms.txt +118 -0
  681. package/dist/shape-editor.cjs +2 -1
  682. package/dist/shape-editor.cjs.map +1 -0
  683. package/dist/shape-editor.js +8 -3
  684. package/dist/shape-editor.js.map +1 -0
  685. package/dist/styles.css +2 -2
  686. package/dist/tailwind.css +434 -0
  687. package/dist/utils/cn.d.cts +12 -0
  688. package/dist/utils/cn.d.ts +10 -0
  689. package/dist/utils/keyboard.d.cts +3 -0
  690. package/dist/utils/sheet.d.cts +17 -0
  691. package/dist/utils/useControllableState.d.cts +17 -0
  692. package/dist/utils/useModalAutoFocus.d.cts +11 -0
  693. package/dist/utils/useResizableWidth.d.cts +30 -0
  694. package/dist/utils.cjs.map +1 -1
  695. package/dist/utils.js.map +1 -1
  696. package/package.json +54 -17
@@ -1,2 +1,2 @@
1
- "use client";require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../utils.cjs`),t=require(`../Icon/index.cjs`),n=require(`../InputBase/useInputState.cjs`),r=require(`../../utils/useControllableState.cjs`);let i=require(`class-variance-authority`),a=require(`react`),o=require(`react/jsx-runtime`);var s=(0,i.cva)(`aivex:relative aivex:m-0 aivex:shrink-0 aivex:rounded-xs aivex:border aivex:border-border-default aivex:bg-bg-primary aivex:appearance-none aivex:cursor-pointer aivex:transition-colors aivex:peer`,{variants:{size:{sm:`aivex:w-4 aivex:h-4`,md:`aivex:w-[18px] aivex:h-[18px]`}},defaultVariants:{size:`md`}}),c={sm:`aivex:w-5 aivex:h-5`,md:`aivex:w-6 aivex:h-6`};function l({className:i,size:l=`md`,indeterminate:u=!1,disabled:d,checked:f,defaultChecked:p,onCheckedChange:m,onChange:h,id:g,ref:_,...v}){let y=(0,a.useRef)(null),[b,x]=r.useControllableState({value:f,defaultValue:!!p,onChange:m}),S=typeof _==`object`&&_?_:y;(0,a.useEffect)(()=>{S&&`current`in S&&S.current&&(S.current.indeterminate=u)},[u,S]);let C=!!b,w=C||u,T=l??`md`,E=n.isAriaInvalid(v[`aria-invalid`]);return(0,o.jsx)(`span`,{className:e.cn(`aivex:inline-flex aivex:items-center aivex:gap-md`,d&&`aivex:opacity-disable aivex:pointer-events-none`),children:(0,o.jsxs)(`span`,{className:e.cn(`aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group`,c[T]),children:[(0,o.jsx)(`span`,{className:`aivex:absolute aivex:-inset-1 aivex:rounded-full aivex:bg-bg-inverse-strong aivex:opacity-0 aivex:group-hover:opacity-4 aivex:group-active:opacity-8 aivex:pointer-events-none aivex:transition-opacity`}),(0,o.jsx)(`input`,{ref:S,id:g,type:`checkbox`,disabled:d,checked:C,onChange:e=>{x(e.target.checked),h?.(e)},className:e.cn(s({size:T}),E&&`aivex:border-border-danger`,w&&`aivex:border-transparent aivex:bg-bg-brand`,i),...v}),w&&(0,o.jsx)(`span`,{className:`aivex:absolute aivex:inset-0 aivex:flex aivex:items-center aivex:justify-center aivex:text-icon-on-color aivex:pointer-events-none`,children:u?(0,o.jsx)(t.CheckboxIndeterminateIcon,{size:T}):(0,o.jsx)(t.CheckboxCheckIcon,{size:T})})]})})}exports.Checkbox=l,exports.checkboxVariants=s;
1
+ "use client";require(`../../_virtual/_rolldown/runtime.cjs`);const e=require(`../../utils.cjs`),t=require(`../Icon/index.cjs`),n=require(`../InputBase/useInputState.cjs`),r=require(`../../utils/useControllableState.cjs`);let i=require(`class-variance-authority`),a=require(`react`),o=require(`react/jsx-runtime`),s=require(`@radix-ui/react-compose-refs`);var c=(0,i.cva)(`aivex:relative aivex:m-0 aivex:shrink-0 aivex:rounded-xs aivex:border aivex:border-border-default aivex:bg-bg-primary aivex:appearance-none aivex:cursor-pointer aivex:transition-colors aivex:peer`,{variants:{size:{sm:`aivex:w-4 aivex:h-4`,md:`aivex:w-[18px] aivex:h-[18px]`}},defaultVariants:{size:`md`}}),l={sm:`aivex:w-5 aivex:h-5`,md:`aivex:w-6 aivex:h-6`};function u({className:i,size:u=`md`,indeterminate:d=!1,disabled:f,checked:p,defaultChecked:m,onCheckedChange:h,onChange:g,id:_,ref:v,...y}){let b=(0,a.useRef)(null),[x,S]=r.useControllableState({value:p,defaultValue:!!m,onChange:h}),C=(0,s.useComposedRefs)(v,b);(0,a.useEffect)(()=>{b.current&&(b.current.indeterminate=d)},[d]);let w=!!x,T=w||d,E=u??`md`,D=n.isAriaInvalid(y[`aria-invalid`]);return(0,o.jsx)(`span`,{className:e.cn(`aivex:inline-flex aivex:items-center aivex:gap-md`,f&&`aivex:opacity-disable aivex:pointer-events-none`),children:(0,o.jsxs)(`span`,{className:e.cn(`aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group`,l[E]),children:[(0,o.jsx)(`span`,{className:`aivex:absolute aivex:-inset-1 aivex:rounded-full aivex:bg-bg-inverse-strong aivex:opacity-0 aivex:group-hover:opacity-4 aivex:group-active:opacity-8 aivex:pointer-events-none aivex:transition-opacity`}),(0,o.jsx)(`input`,{ref:C,id:_,type:`checkbox`,disabled:f,checked:w,onChange:e=>{S(e.target.checked),g?.(e)},className:e.cn(c({size:E}),D&&`aivex:border-border-danger`,T&&`aivex:border-transparent aivex:bg-bg-brand`,i),...y}),T&&(0,o.jsx)(`span`,{className:`aivex:absolute aivex:inset-0 aivex:flex aivex:items-center aivex:justify-center aivex:text-icon-on-color aivex:pointer-events-none`,children:d?(0,o.jsx)(t.CheckboxIndeterminateIcon,{size:E}):(0,o.jsx)(t.CheckboxCheckIcon,{size:E})})]})})}exports.Checkbox=u,exports.checkboxVariants=c;
2
2
  //# sourceMappingURL=Checkbox.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.cjs","names":[],"sources":["../../../src/components/Checkbox/Checkbox.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\";\nimport { type ChangeEvent, type InputHTMLAttributes, type Ref, useEffect, useRef } from \"react\";\nimport { CheckboxCheckIcon, CheckboxIndeterminateIcon } from \"@/components/Icon\";\nimport { isAriaInvalid } from \"@/components/InputBase/useInputState\";\nimport { cn } from \"@/utils/cn\";\nimport { useControllableState } from \"@/utils/useControllableState\";\n\nconst checkboxVariants = cva(\n \"aivex:relative aivex:m-0 aivex:shrink-0 aivex:rounded-xs aivex:border aivex:border-border-default aivex:bg-bg-primary aivex:appearance-none aivex:cursor-pointer aivex:transition-colors aivex:peer\",\n {\n variants: {\n size: {\n sm: \"aivex:w-4 aivex:h-4\",\n md: \"aivex:w-[18px] aivex:h-[18px]\",\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n },\n);\n\nexport interface CheckboxProps\n extends Omit<InputHTMLAttributes<HTMLInputElement>, \"size\" | \"type\">,\n VariantProps<typeof checkboxVariants> {\n indeterminate?: boolean;\n /** 체크 상태가 바뀔 때 새 checked 값으로 호출된다. (네이티브 이벤트는 `onChange`) */\n onCheckedChange?: (checked: boolean) => void;\n ref?: Ref<HTMLInputElement>;\n}\n\nconst checkboxContainerSizeClass = {\n sm: \"aivex:w-5 aivex:h-5\",\n md: \"aivex:w-6 aivex:h-6\",\n};\n\nfunction Checkbox({\n className,\n size = \"md\",\n indeterminate = false,\n disabled,\n checked,\n defaultChecked,\n onCheckedChange,\n onChange,\n id,\n ref,\n ...props\n}: CheckboxProps) {\n const innerRef = useRef<HTMLInputElement>(null);\n const [resolvedChecked, setChecked] = useControllableState({\n value: checked,\n defaultValue: Boolean(defaultChecked),\n onChange: onCheckedChange,\n });\n\n const resolvedRef = typeof ref === \"object\" && ref !== null ? ref : innerRef;\n\n useEffect(() => {\n if (resolvedRef && \"current\" in resolvedRef && resolvedRef.current) {\n resolvedRef.current.indeterminate = indeterminate;\n }\n }, [indeterminate, resolvedRef]);\n\n const currentChecked = Boolean(resolvedChecked);\n const isChecked = currentChecked || indeterminate;\n const resolvedSize = size ?? \"md\";\n const invalid = isAriaInvalid(props[\"aria-invalid\"]);\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n setChecked(event.target.checked);\n onChange?.(event);\n };\n\n return (\n <span\n className={cn(\n \"aivex:inline-flex aivex:items-center aivex:gap-md\",\n disabled && \"aivex:opacity-disable aivex:pointer-events-none\",\n )}\n >\n <span\n className={cn(\n \"aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group\",\n checkboxContainerSizeClass[resolvedSize],\n )}\n >\n <span className=\"aivex:absolute aivex:-inset-1 aivex:rounded-full aivex:bg-bg-inverse-strong aivex:opacity-0 aivex:group-hover:opacity-4 aivex:group-active:opacity-8 aivex:pointer-events-none aivex:transition-opacity\" />\n <input\n ref={resolvedRef}\n id={id}\n type=\"checkbox\"\n disabled={disabled}\n checked={currentChecked}\n onChange={handleChange}\n className={cn(\n checkboxVariants({ size: resolvedSize }),\n invalid && \"aivex:border-border-danger\",\n isChecked && \"aivex:border-transparent aivex:bg-bg-brand\",\n className,\n )}\n {...props}\n />\n {isChecked && (\n <span className=\"aivex:absolute aivex:inset-0 aivex:flex aivex:items-center aivex:justify-center aivex:text-icon-on-color aivex:pointer-events-none\">\n {indeterminate ? (\n <CheckboxIndeterminateIcon size={resolvedSize} />\n ) : (\n <CheckboxCheckIcon size={resolvedSize} />\n )}\n </span>\n )}\n </span>\n </span>\n );\n}\n\nexport { Checkbox, checkboxVariants };\n"],"mappings":"yTAOA,IAAM,GAAA,EAAA,EAAA,KACJ,sMACA,CACE,SAAU,CACR,KAAM,CACJ,GAAI,sBACJ,GAAI,gCACL,CACF,CACD,gBAAiB,CACf,KAAM,KACP,CACF,CACF,CAWK,EAA6B,CACjC,GAAI,sBACJ,GAAI,sBACL,CAED,SAAS,EAAS,CAChB,YACA,OAAO,KACP,gBAAgB,GAChB,WACA,UACA,iBACA,kBACA,WACA,KACA,MACA,GAAG,GACa,CAChB,IAAM,GAAA,EAAA,EAAA,QAAoC,KAAK,CACzC,CAAC,EAAiB,GAAc,EAAA,qBAAqB,CACzD,MAAO,EACP,aAAc,EAAQ,EACtB,SAAU,EACX,CAAC,CAEI,EAAc,OAAO,GAAQ,UAAY,EAAe,EAAM,GAEpE,EAAA,EAAA,eAAgB,CACV,GAAe,YAAa,GAAe,EAAY,UACzD,EAAY,QAAQ,cAAgB,IAErC,CAAC,EAAe,EAAY,CAAC,CAEhC,IAAM,EAAiB,EAAQ,EACzB,EAAY,GAAkB,EAC9B,EAAe,GAAQ,KACvB,EAAU,EAAA,cAAc,EAAM,gBAAgB,CAOpD,OACE,EAAA,EAAA,KAAC,OAAD,CACE,UAAW,EAAA,GACT,oDACA,GAAY,kDACb,WAED,EAAA,EAAA,MAAC,OAAD,CACE,UAAW,EAAA,GACT,sGACA,EAA2B,GAC5B,UAJH,EAME,EAAA,EAAA,KAAC,OAAD,CAAM,UAAU,0MAA4M,CAAA,EAC5N,EAAA,EAAA,KAAC,QAAD,CACE,IAAK,EACD,KACJ,KAAK,WACK,WACV,QAAS,EACT,SAzBc,GAAyC,CAC7D,EAAW,EAAM,OAAO,QAAQ,CAChC,IAAW,EAAM,EAwBX,UAAW,EAAA,GACT,EAAiB,CAAE,KAAM,EAAc,CAAC,CACxC,GAAW,6BACX,GAAa,6CACb,EACD,CACD,GAAI,EACJ,CAAA,CACD,IACC,EAAA,EAAA,KAAC,OAAD,CAAM,UAAU,8IACb,GACC,EAAA,EAAA,KAAC,EAAA,0BAAD,CAA2B,KAAM,EAAgB,CAAA,EAEjD,EAAA,EAAA,KAAC,EAAA,kBAAD,CAAmB,KAAM,EAAgB,CAAA,CAEtC,CAAA,CAEJ,GACF,CAAA"}
1
+ {"version":3,"file":"Checkbox.cjs","names":[],"sources":["../../../src/components/Checkbox/Checkbox.tsx"],"sourcesContent":["import { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { type ChangeEvent, type InputHTMLAttributes, type Ref, useEffect, useRef } from \"react\";\nimport { CheckboxCheckIcon, CheckboxIndeterminateIcon } from \"@/components/Icon\";\nimport { isAriaInvalid } from \"@/components/InputBase/useInputState\";\nimport { cn } from \"@/utils/cn\";\nimport { useControllableState } from \"@/utils/useControllableState\";\n\n/** Checkbox 입력 박스의 크기(`size`) 클래스를 만드는 cva 변형 함수. */\nconst checkboxVariants = cva(\n \"aivex:relative aivex:m-0 aivex:shrink-0 aivex:rounded-xs aivex:border aivex:border-border-default aivex:bg-bg-primary aivex:appearance-none aivex:cursor-pointer aivex:transition-colors aivex:peer\",\n {\n variants: {\n size: {\n sm: \"aivex:w-4 aivex:h-4\",\n md: \"aivex:w-[18px] aivex:h-[18px]\",\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n },\n);\n\nexport interface CheckboxProps\n extends Omit<InputHTMLAttributes<HTMLInputElement>, \"size\" | \"type\">,\n VariantProps<typeof checkboxVariants> {\n /**\n * 일부 선택(–) 상태로 표시. `checked`보다 우선해 보이며 input의 `indeterminate` 속성도 설정한다.\n * @default false\n */\n indeterminate?: boolean;\n /** 체크 상태가 바뀔 때 새 checked 값으로 호출된다. (네이티브 이벤트는 `onChange`) */\n onCheckedChange?: (checked: boolean) => void;\n ref?: Ref<HTMLInputElement>;\n}\n\nconst checkboxContainerSizeClass = {\n sm: \"aivex:w-5 aivex:h-5\",\n md: \"aivex:w-6 aivex:h-6\",\n};\n\n/**\n * 네이티브 `<input type=\"checkbox\">` 기반 체크박스.\n *\n * `checked`(+`onCheckedChange`)로 제어하거나 `defaultChecked`로 비제어로 쓴다.\n * 라벨을 포함하지 않으므로 `Field`·`FieldControl`·`FieldLabel`로 감싸거나 `aria-label`을 준다.\n * `size`: sm(16px)·md(18px, 기본). `aria-invalid`를 주면 오류 테두리로 표시된다.\n *\n * @example\n * ```tsx\n * import { Checkbox, Field, FieldControl, FieldLabel } from \"@aivex/ui\";\n *\n * <Field orientation=\"horizontal\">\n * <FieldControl>\n * <Checkbox checked={agreed} onCheckedChange={setAgreed} />\n * </FieldControl>\n * <FieldLabel>약관에 동의합니다</FieldLabel>\n * </Field>\n * ```\n */\nfunction Checkbox({\n className,\n size = \"md\",\n indeterminate = false,\n disabled,\n checked,\n defaultChecked,\n onCheckedChange,\n onChange,\n id,\n ref,\n ...props\n}: CheckboxProps) {\n const innerRef = useRef<HTMLInputElement>(null);\n const [resolvedChecked, setChecked] = useControllableState({\n value: checked,\n defaultValue: Boolean(defaultChecked),\n onChange: onCheckedChange,\n });\n\n // 내부 ref로 indeterminate를 다루면서 객체·함수 ref 모두에 같은 input을 넘긴다.\n const resolvedRef = useComposedRefs(ref, innerRef);\n\n useEffect(() => {\n if (innerRef.current) innerRef.current.indeterminate = indeterminate;\n }, [indeterminate]);\n\n const currentChecked = Boolean(resolvedChecked);\n const isChecked = currentChecked || indeterminate;\n const resolvedSize = size ?? \"md\";\n const invalid = isAriaInvalid(props[\"aria-invalid\"]);\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n setChecked(event.target.checked);\n onChange?.(event);\n };\n\n return (\n <span\n className={cn(\n \"aivex:inline-flex aivex:items-center aivex:gap-md\",\n disabled && \"aivex:opacity-disable aivex:pointer-events-none\",\n )}\n >\n <span\n className={cn(\n \"aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group\",\n checkboxContainerSizeClass[resolvedSize],\n )}\n >\n <span className=\"aivex:absolute aivex:-inset-1 aivex:rounded-full aivex:bg-bg-inverse-strong aivex:opacity-0 aivex:group-hover:opacity-4 aivex:group-active:opacity-8 aivex:pointer-events-none aivex:transition-opacity\" />\n <input\n ref={resolvedRef}\n id={id}\n type=\"checkbox\"\n disabled={disabled}\n checked={currentChecked}\n onChange={handleChange}\n className={cn(\n checkboxVariants({ size: resolvedSize }),\n invalid && \"aivex:border-border-danger\",\n isChecked && \"aivex:border-transparent aivex:bg-bg-brand\",\n className,\n )}\n {...props}\n />\n {isChecked && (\n <span className=\"aivex:absolute aivex:inset-0 aivex:flex aivex:items-center aivex:justify-center aivex:text-icon-on-color aivex:pointer-events-none\">\n {indeterminate ? (\n <CheckboxIndeterminateIcon size={resolvedSize} />\n ) : (\n <CheckboxCheckIcon size={resolvedSize} />\n )}\n </span>\n )}\n </span>\n </span>\n );\n}\n\nexport { Checkbox, checkboxVariants };\n"],"mappings":"mWASA,IAAM,GAAA,EAAA,EAAA,KACJ,sMACA,CACE,SAAU,CACR,KAAM,CACJ,GAAI,sBACJ,GAAI,gCACL,CACF,CACD,gBAAiB,CACf,KAAM,KACP,CACF,CACF,CAeK,EAA6B,CACjC,GAAI,sBACJ,GAAI,sBACL,CAqBD,SAAS,EAAS,CAChB,YACA,OAAO,KACP,gBAAgB,GAChB,WACA,UACA,iBACA,kBACA,WACA,KACA,MACA,GAAG,GACa,CAChB,IAAM,GAAA,EAAA,EAAA,QAAoC,KAAK,CACzC,CAAC,EAAiB,GAAc,EAAA,qBAAqB,CACzD,MAAO,EACP,aAAc,EAAQ,EACtB,SAAU,EACX,CAAC,CAGI,GAAA,EAAA,EAAA,iBAA8B,EAAK,EAAS,EAElD,EAAA,EAAA,eAAgB,CACV,EAAS,UAAS,EAAS,QAAQ,cAAgB,IACtD,CAAC,EAAc,CAAC,CAEnB,IAAM,EAAiB,EAAQ,EACzB,EAAY,GAAkB,EAC9B,EAAe,GAAQ,KACvB,EAAU,EAAA,cAAc,EAAM,gBAAgB,CAOpD,OACE,EAAA,EAAA,KAAC,OAAD,CACE,UAAW,EAAA,GACT,oDACA,GAAY,kDACb,WAED,EAAA,EAAA,MAAC,OAAD,CACE,UAAW,EAAA,GACT,sGACA,EAA2B,GAC5B,UAJH,EAME,EAAA,EAAA,KAAC,OAAD,CAAM,UAAU,0MAA4M,CAAA,EAC5N,EAAA,EAAA,KAAC,QAAD,CACE,IAAK,EACD,KACJ,KAAK,WACK,WACV,QAAS,EACT,SAzBc,GAAyC,CAC7D,EAAW,EAAM,OAAO,QAAQ,CAChC,IAAW,EAAM,EAwBX,UAAW,EAAA,GACT,EAAiB,CAAE,KAAM,EAAc,CAAC,CACxC,GAAW,6BACX,GAAa,6CACb,EACD,CACD,GAAI,EACJ,CAAA,CACD,IACC,EAAA,EAAA,KAAC,OAAD,CAAM,UAAU,8IACb,GACC,EAAA,EAAA,KAAC,EAAA,0BAAD,CAA2B,KAAM,EAAgB,CAAA,EAEjD,EAAA,EAAA,KAAC,EAAA,kBAAD,CAAmB,KAAM,EAAgB,CAAA,CAEtC,CAAA,CAEJ,GACF,CAAA"}
@@ -0,0 +1,37 @@
1
+ import { type VariantProps } from "class-variance-authority";
2
+ import { type InputHTMLAttributes, type Ref } from "react";
3
+ /** Checkbox 입력 박스의 크기(`size`) 클래스를 만드는 cva 변형 함수. */
4
+ declare const checkboxVariants: (props?: ({
5
+ size?: "md" | "sm" | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
+ export interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type">, VariantProps<typeof checkboxVariants> {
8
+ /**
9
+ * 일부 선택(–) 상태로 표시. `checked`보다 우선해 보이며 input의 `indeterminate` 속성도 설정한다.
10
+ * @default false
11
+ */
12
+ indeterminate?: boolean;
13
+ /** 체크 상태가 바뀔 때 새 checked 값으로 호출된다. (네이티브 이벤트는 `onChange`) */
14
+ onCheckedChange?: (checked: boolean) => void;
15
+ ref?: Ref<HTMLInputElement>;
16
+ }
17
+ /**
18
+ * 네이티브 `<input type="checkbox">` 기반 체크박스.
19
+ *
20
+ * `checked`(+`onCheckedChange`)로 제어하거나 `defaultChecked`로 비제어로 쓴다.
21
+ * 라벨을 포함하지 않으므로 `Field`·`FieldControl`·`FieldLabel`로 감싸거나 `aria-label`을 준다.
22
+ * `size`: sm(16px)·md(18px, 기본). `aria-invalid`를 주면 오류 테두리로 표시된다.
23
+ *
24
+ * @example
25
+ * ```tsx
26
+ * import { Checkbox, Field, FieldControl, FieldLabel } from "@aivex/ui";
27
+ *
28
+ * <Field orientation="horizontal">
29
+ * <FieldControl>
30
+ * <Checkbox checked={agreed} onCheckedChange={setAgreed} />
31
+ * </FieldControl>
32
+ * <FieldLabel>약관에 동의합니다</FieldLabel>
33
+ * </Field>
34
+ * ```
35
+ */
36
+ declare function Checkbox({ className, size, indeterminate, disabled, checked, defaultChecked, onCheckedChange, onChange, id, ref, ...props }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
37
+ export { Checkbox, checkboxVariants };
@@ -1,13 +1,37 @@
1
1
  import { type VariantProps } from "class-variance-authority";
2
2
  import { type InputHTMLAttributes, type Ref } from "react";
3
+ /** Checkbox 입력 박스의 크기(`size`) 클래스를 만드는 cva 변형 함수. */
3
4
  declare const checkboxVariants: (props?: ({
4
5
  size?: "md" | "sm" | null | undefined;
5
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
7
  export interface CheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type">, VariantProps<typeof checkboxVariants> {
8
+ /**
9
+ * 일부 선택(–) 상태로 표시. `checked`보다 우선해 보이며 input의 `indeterminate` 속성도 설정한다.
10
+ * @default false
11
+ */
7
12
  indeterminate?: boolean;
8
13
  /** 체크 상태가 바뀔 때 새 checked 값으로 호출된다. (네이티브 이벤트는 `onChange`) */
9
14
  onCheckedChange?: (checked: boolean) => void;
10
15
  ref?: Ref<HTMLInputElement>;
11
16
  }
17
+ /**
18
+ * 네이티브 `<input type="checkbox">` 기반 체크박스.
19
+ *
20
+ * `checked`(+`onCheckedChange`)로 제어하거나 `defaultChecked`로 비제어로 쓴다.
21
+ * 라벨을 포함하지 않으므로 `Field`·`FieldControl`·`FieldLabel`로 감싸거나 `aria-label`을 준다.
22
+ * `size`: sm(16px)·md(18px, 기본). `aria-invalid`를 주면 오류 테두리로 표시된다.
23
+ *
24
+ * @example
25
+ * ```tsx
26
+ * import { Checkbox, Field, FieldControl, FieldLabel } from "@aivex/ui";
27
+ *
28
+ * <Field orientation="horizontal">
29
+ * <FieldControl>
30
+ * <Checkbox checked={agreed} onCheckedChange={setAgreed} />
31
+ * </FieldControl>
32
+ * <FieldLabel>약관에 동의합니다</FieldLabel>
33
+ * </Field>
34
+ * ```
35
+ */
12
36
  declare function Checkbox({ className, size, indeterminate, disabled, checked, defaultChecked, onCheckedChange, onChange, id, ref, ...props }: CheckboxProps): import("react/jsx-runtime").JSX.Element;
13
37
  export { Checkbox, checkboxVariants };
@@ -6,54 +6,55 @@ import { useControllableState as i } from "../../utils/useControllableState.js";
6
6
  import { cva as a } from "class-variance-authority";
7
7
  import { useEffect as o, useRef as s } from "react";
8
8
  import { jsx as c, jsxs as l } from "react/jsx-runtime";
9
+ import { useComposedRefs as u } from "@radix-ui/react-compose-refs";
9
10
  //#region src/components/Checkbox/Checkbox.tsx
10
- var u = a("aivex:relative aivex:m-0 aivex:shrink-0 aivex:rounded-xs aivex:border aivex:border-border-default aivex:bg-bg-primary aivex:appearance-none aivex:cursor-pointer aivex:transition-colors aivex:peer", {
11
+ var d = a("aivex:relative aivex:m-0 aivex:shrink-0 aivex:rounded-xs aivex:border aivex:border-border-default aivex:bg-bg-primary aivex:appearance-none aivex:cursor-pointer aivex:transition-colors aivex:peer", {
11
12
  variants: { size: {
12
13
  sm: "aivex:w-4 aivex:h-4",
13
14
  md: "aivex:w-[18px] aivex:h-[18px]"
14
15
  } },
15
16
  defaultVariants: { size: "md" }
16
- }), d = {
17
+ }), f = {
17
18
  sm: "aivex:w-5 aivex:h-5",
18
19
  md: "aivex:w-6 aivex:h-6"
19
20
  };
20
- function f({ className: a, size: f = "md", indeterminate: p = !1, disabled: m, checked: h, defaultChecked: g, onCheckedChange: _, onChange: v, id: y, ref: b, ...x }) {
21
- let S = s(null), [C, w] = i({
22
- value: h,
23
- defaultValue: !!g,
24
- onChange: _
25
- }), T = typeof b == "object" && b ? b : S;
21
+ function p({ className: a, size: p = "md", indeterminate: m = !1, disabled: h, checked: g, defaultChecked: _, onCheckedChange: v, onChange: y, id: b, ref: x, ...S }) {
22
+ let C = s(null), [w, T] = i({
23
+ value: g,
24
+ defaultValue: !!_,
25
+ onChange: v
26
+ }), E = u(x, C);
26
27
  o(() => {
27
- T && "current" in T && T.current && (T.current.indeterminate = p);
28
- }, [p, T]);
29
- let E = !!C, D = E || p, O = f ?? "md", k = r(x["aria-invalid"]);
28
+ C.current && (C.current.indeterminate = m);
29
+ }, [m]);
30
+ let D = !!w, O = D || m, k = p ?? "md", A = r(S["aria-invalid"]);
30
31
  return /* @__PURE__ */ c("span", {
31
- className: e("aivex:inline-flex aivex:items-center aivex:gap-md", m && "aivex:opacity-disable aivex:pointer-events-none"),
32
+ className: e("aivex:inline-flex aivex:items-center aivex:gap-md", h && "aivex:opacity-disable aivex:pointer-events-none"),
32
33
  children: /* @__PURE__ */ l("span", {
33
- className: e("aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group", d[O]),
34
+ className: e("aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group", f[k]),
34
35
  children: [
35
36
  /* @__PURE__ */ c("span", { className: "aivex:absolute aivex:-inset-1 aivex:rounded-full aivex:bg-bg-inverse-strong aivex:opacity-0 aivex:group-hover:opacity-4 aivex:group-active:opacity-8 aivex:pointer-events-none aivex:transition-opacity" }),
36
37
  /* @__PURE__ */ c("input", {
37
- ref: T,
38
- id: y,
38
+ ref: E,
39
+ id: b,
39
40
  type: "checkbox",
40
- disabled: m,
41
- checked: E,
41
+ disabled: h,
42
+ checked: D,
42
43
  onChange: (e) => {
43
- w(e.target.checked), v?.(e);
44
+ T(e.target.checked), y?.(e);
44
45
  },
45
- className: e(u({ size: O }), k && "aivex:border-border-danger", D && "aivex:border-transparent aivex:bg-bg-brand", a),
46
- ...x
46
+ className: e(d({ size: k }), A && "aivex:border-border-danger", O && "aivex:border-transparent aivex:bg-bg-brand", a),
47
+ ...S
47
48
  }),
48
- D && /* @__PURE__ */ c("span", {
49
+ O && /* @__PURE__ */ c("span", {
49
50
  className: "aivex:absolute aivex:inset-0 aivex:flex aivex:items-center aivex:justify-center aivex:text-icon-on-color aivex:pointer-events-none",
50
- children: c(p ? n : t, { size: O })
51
+ children: c(m ? n : t, { size: k })
51
52
  })
52
53
  ]
53
54
  })
54
55
  });
55
56
  }
56
57
  //#endregion
57
- export { f as Checkbox, u as checkboxVariants };
58
+ export { p as Checkbox, d as checkboxVariants };
58
59
 
59
60
  //# sourceMappingURL=Checkbox.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.js","names":[],"sources":["../../../src/components/Checkbox/Checkbox.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\";\nimport { type ChangeEvent, type InputHTMLAttributes, type Ref, useEffect, useRef } from \"react\";\nimport { CheckboxCheckIcon, CheckboxIndeterminateIcon } from \"@/components/Icon\";\nimport { isAriaInvalid } from \"@/components/InputBase/useInputState\";\nimport { cn } from \"@/utils/cn\";\nimport { useControllableState } from \"@/utils/useControllableState\";\n\nconst checkboxVariants = cva(\n \"aivex:relative aivex:m-0 aivex:shrink-0 aivex:rounded-xs aivex:border aivex:border-border-default aivex:bg-bg-primary aivex:appearance-none aivex:cursor-pointer aivex:transition-colors aivex:peer\",\n {\n variants: {\n size: {\n sm: \"aivex:w-4 aivex:h-4\",\n md: \"aivex:w-[18px] aivex:h-[18px]\",\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n },\n);\n\nexport interface CheckboxProps\n extends Omit<InputHTMLAttributes<HTMLInputElement>, \"size\" | \"type\">,\n VariantProps<typeof checkboxVariants> {\n indeterminate?: boolean;\n /** 체크 상태가 바뀔 때 새 checked 값으로 호출된다. (네이티브 이벤트는 `onChange`) */\n onCheckedChange?: (checked: boolean) => void;\n ref?: Ref<HTMLInputElement>;\n}\n\nconst checkboxContainerSizeClass = {\n sm: \"aivex:w-5 aivex:h-5\",\n md: \"aivex:w-6 aivex:h-6\",\n};\n\nfunction Checkbox({\n className,\n size = \"md\",\n indeterminate = false,\n disabled,\n checked,\n defaultChecked,\n onCheckedChange,\n onChange,\n id,\n ref,\n ...props\n}: CheckboxProps) {\n const innerRef = useRef<HTMLInputElement>(null);\n const [resolvedChecked, setChecked] = useControllableState({\n value: checked,\n defaultValue: Boolean(defaultChecked),\n onChange: onCheckedChange,\n });\n\n const resolvedRef = typeof ref === \"object\" && ref !== null ? ref : innerRef;\n\n useEffect(() => {\n if (resolvedRef && \"current\" in resolvedRef && resolvedRef.current) {\n resolvedRef.current.indeterminate = indeterminate;\n }\n }, [indeterminate, resolvedRef]);\n\n const currentChecked = Boolean(resolvedChecked);\n const isChecked = currentChecked || indeterminate;\n const resolvedSize = size ?? \"md\";\n const invalid = isAriaInvalid(props[\"aria-invalid\"]);\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n setChecked(event.target.checked);\n onChange?.(event);\n };\n\n return (\n <span\n className={cn(\n \"aivex:inline-flex aivex:items-center aivex:gap-md\",\n disabled && \"aivex:opacity-disable aivex:pointer-events-none\",\n )}\n >\n <span\n className={cn(\n \"aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group\",\n checkboxContainerSizeClass[resolvedSize],\n )}\n >\n <span className=\"aivex:absolute aivex:-inset-1 aivex:rounded-full aivex:bg-bg-inverse-strong aivex:opacity-0 aivex:group-hover:opacity-4 aivex:group-active:opacity-8 aivex:pointer-events-none aivex:transition-opacity\" />\n <input\n ref={resolvedRef}\n id={id}\n type=\"checkbox\"\n disabled={disabled}\n checked={currentChecked}\n onChange={handleChange}\n className={cn(\n checkboxVariants({ size: resolvedSize }),\n invalid && \"aivex:border-border-danger\",\n isChecked && \"aivex:border-transparent aivex:bg-bg-brand\",\n className,\n )}\n {...props}\n />\n {isChecked && (\n <span className=\"aivex:absolute aivex:inset-0 aivex:flex aivex:items-center aivex:justify-center aivex:text-icon-on-color aivex:pointer-events-none\">\n {indeterminate ? (\n <CheckboxIndeterminateIcon size={resolvedSize} />\n ) : (\n <CheckboxCheckIcon size={resolvedSize} />\n )}\n </span>\n )}\n </span>\n </span>\n );\n}\n\nexport { Checkbox, checkboxVariants };\n"],"mappings":";;;;;;;;;AAOA,IAAM,IAAmB,EACvB,uMACA;CACE,UAAU,EACR,MAAM;EACJ,IAAI;EACJ,IAAI;EACL,EACF;CACD,iBAAiB,EACf,MAAM,MACP;CACF,CACF,EAWK,IAA6B;CACjC,IAAI;CACJ,IAAI;CACL;AAED,SAAS,EAAS,EAChB,cACA,UAAO,MACP,mBAAgB,IAChB,aACA,YACA,mBACA,oBACA,aACA,OACA,QACA,GAAG,KACa;CAChB,IAAM,IAAW,EAAyB,KAAK,EACzC,CAAC,GAAiB,KAAc,EAAqB;EACzD,OAAO;EACP,cAAc,EAAQ;EACtB,UAAU;EACX,CAAC,EAEI,IAAc,OAAO,KAAQ,YAAY,IAAe,IAAM;AAEpE,SAAgB;AACd,EAAI,KAAe,aAAa,KAAe,EAAY,YACzD,EAAY,QAAQ,gBAAgB;IAErC,CAAC,GAAe,EAAY,CAAC;CAEhC,IAAM,IAAiB,EAAQ,GACzB,IAAY,KAAkB,GAC9B,IAAe,KAAQ,MACvB,IAAU,EAAc,EAAM,gBAAgB;AAOpD,QACE,kBAAC,QAAD;EACE,WAAW,EACT,qDACA,KAAY,kDACb;YAED,kBAAC,QAAD;GACE,WAAW,EACT,uGACA,EAA2B,GAC5B;aAJH;IAME,kBAAC,QAAD,EAAM,WAAU,2MAA4M,CAAA;IAC5N,kBAAC,SAAD;KACE,KAAK;KACD;KACJ,MAAK;KACK;KACV,SAAS;KACT,WAzBc,MAAyC;AAE7D,MADA,EAAW,EAAM,OAAO,QAAQ,EAChC,IAAW,EAAM;;KAwBX,WAAW,EACT,EAAiB,EAAE,MAAM,GAAc,CAAC,EACxC,KAAW,8BACX,KAAa,8CACb,EACD;KACD,GAAI;KACJ,CAAA;IACD,KACC,kBAAC,QAAD;KAAM,WAAU;eAEZ,EADD,IACE,IAEA,GAFD,EAA2B,MAAM,GAAgB,CAER;KAEtC,CAAA;IAEJ;;EACF,CAAA"}
1
+ {"version":3,"file":"Checkbox.js","names":[],"sources":["../../../src/components/Checkbox/Checkbox.tsx"],"sourcesContent":["import { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { type ChangeEvent, type InputHTMLAttributes, type Ref, useEffect, useRef } from \"react\";\nimport { CheckboxCheckIcon, CheckboxIndeterminateIcon } from \"@/components/Icon\";\nimport { isAriaInvalid } from \"@/components/InputBase/useInputState\";\nimport { cn } from \"@/utils/cn\";\nimport { useControllableState } from \"@/utils/useControllableState\";\n\n/** Checkbox 입력 박스의 크기(`size`) 클래스를 만드는 cva 변형 함수. */\nconst checkboxVariants = cva(\n \"aivex:relative aivex:m-0 aivex:shrink-0 aivex:rounded-xs aivex:border aivex:border-border-default aivex:bg-bg-primary aivex:appearance-none aivex:cursor-pointer aivex:transition-colors aivex:peer\",\n {\n variants: {\n size: {\n sm: \"aivex:w-4 aivex:h-4\",\n md: \"aivex:w-[18px] aivex:h-[18px]\",\n },\n },\n defaultVariants: {\n size: \"md\",\n },\n },\n);\n\nexport interface CheckboxProps\n extends Omit<InputHTMLAttributes<HTMLInputElement>, \"size\" | \"type\">,\n VariantProps<typeof checkboxVariants> {\n /**\n * 일부 선택(–) 상태로 표시. `checked`보다 우선해 보이며 input의 `indeterminate` 속성도 설정한다.\n * @default false\n */\n indeterminate?: boolean;\n /** 체크 상태가 바뀔 때 새 checked 값으로 호출된다. (네이티브 이벤트는 `onChange`) */\n onCheckedChange?: (checked: boolean) => void;\n ref?: Ref<HTMLInputElement>;\n}\n\nconst checkboxContainerSizeClass = {\n sm: \"aivex:w-5 aivex:h-5\",\n md: \"aivex:w-6 aivex:h-6\",\n};\n\n/**\n * 네이티브 `<input type=\"checkbox\">` 기반 체크박스.\n *\n * `checked`(+`onCheckedChange`)로 제어하거나 `defaultChecked`로 비제어로 쓴다.\n * 라벨을 포함하지 않으므로 `Field`·`FieldControl`·`FieldLabel`로 감싸거나 `aria-label`을 준다.\n * `size`: sm(16px)·md(18px, 기본). `aria-invalid`를 주면 오류 테두리로 표시된다.\n *\n * @example\n * ```tsx\n * import { Checkbox, Field, FieldControl, FieldLabel } from \"@aivex/ui\";\n *\n * <Field orientation=\"horizontal\">\n * <FieldControl>\n * <Checkbox checked={agreed} onCheckedChange={setAgreed} />\n * </FieldControl>\n * <FieldLabel>약관에 동의합니다</FieldLabel>\n * </Field>\n * ```\n */\nfunction Checkbox({\n className,\n size = \"md\",\n indeterminate = false,\n disabled,\n checked,\n defaultChecked,\n onCheckedChange,\n onChange,\n id,\n ref,\n ...props\n}: CheckboxProps) {\n const innerRef = useRef<HTMLInputElement>(null);\n const [resolvedChecked, setChecked] = useControllableState({\n value: checked,\n defaultValue: Boolean(defaultChecked),\n onChange: onCheckedChange,\n });\n\n // 내부 ref로 indeterminate를 다루면서 객체·함수 ref 모두에 같은 input을 넘긴다.\n const resolvedRef = useComposedRefs(ref, innerRef);\n\n useEffect(() => {\n if (innerRef.current) innerRef.current.indeterminate = indeterminate;\n }, [indeterminate]);\n\n const currentChecked = Boolean(resolvedChecked);\n const isChecked = currentChecked || indeterminate;\n const resolvedSize = size ?? \"md\";\n const invalid = isAriaInvalid(props[\"aria-invalid\"]);\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n setChecked(event.target.checked);\n onChange?.(event);\n };\n\n return (\n <span\n className={cn(\n \"aivex:inline-flex aivex:items-center aivex:gap-md\",\n disabled && \"aivex:opacity-disable aivex:pointer-events-none\",\n )}\n >\n <span\n className={cn(\n \"aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:shrink-0 aivex:group\",\n checkboxContainerSizeClass[resolvedSize],\n )}\n >\n <span className=\"aivex:absolute aivex:-inset-1 aivex:rounded-full aivex:bg-bg-inverse-strong aivex:opacity-0 aivex:group-hover:opacity-4 aivex:group-active:opacity-8 aivex:pointer-events-none aivex:transition-opacity\" />\n <input\n ref={resolvedRef}\n id={id}\n type=\"checkbox\"\n disabled={disabled}\n checked={currentChecked}\n onChange={handleChange}\n className={cn(\n checkboxVariants({ size: resolvedSize }),\n invalid && \"aivex:border-border-danger\",\n isChecked && \"aivex:border-transparent aivex:bg-bg-brand\",\n className,\n )}\n {...props}\n />\n {isChecked && (\n <span className=\"aivex:absolute aivex:inset-0 aivex:flex aivex:items-center aivex:justify-center aivex:text-icon-on-color aivex:pointer-events-none\">\n {indeterminate ? (\n <CheckboxIndeterminateIcon size={resolvedSize} />\n ) : (\n <CheckboxCheckIcon size={resolvedSize} />\n )}\n </span>\n )}\n </span>\n </span>\n );\n}\n\nexport { Checkbox, checkboxVariants };\n"],"mappings":";;;;;;;;;;AASA,IAAM,IAAmB,EACvB,uMACA;CACE,UAAU,EACR,MAAM;EACJ,IAAI;EACJ,IAAI;EACL,EACF;CACD,iBAAiB,EACf,MAAM,MACP;CACF,CACF,EAeK,IAA6B;CACjC,IAAI;CACJ,IAAI;CACL;AAqBD,SAAS,EAAS,EAChB,cACA,UAAO,MACP,mBAAgB,IAChB,aACA,YACA,mBACA,oBACA,aACA,OACA,QACA,GAAG,KACa;CAChB,IAAM,IAAW,EAAyB,KAAK,EACzC,CAAC,GAAiB,KAAc,EAAqB;EACzD,OAAO;EACP,cAAc,EAAQ;EACtB,UAAU;EACX,CAAC,EAGI,IAAc,EAAgB,GAAK,EAAS;AAElD,SAAgB;AACd,EAAI,EAAS,YAAS,EAAS,QAAQ,gBAAgB;IACtD,CAAC,EAAc,CAAC;CAEnB,IAAM,IAAiB,EAAQ,GACzB,IAAY,KAAkB,GAC9B,IAAe,KAAQ,MACvB,IAAU,EAAc,EAAM,gBAAgB;AAOpD,QACE,kBAAC,QAAD;EACE,WAAW,EACT,qDACA,KAAY,kDACb;YAED,kBAAC,QAAD;GACE,WAAW,EACT,uGACA,EAA2B,GAC5B;aAJH;IAME,kBAAC,QAAD,EAAM,WAAU,2MAA4M,CAAA;IAC5N,kBAAC,SAAD;KACE,KAAK;KACD;KACJ,MAAK;KACK;KACV,SAAS;KACT,WAzBc,MAAyC;AAE7D,MADA,EAAW,EAAM,OAAO,QAAQ,EAChC,IAAW,EAAM;;KAwBX,WAAW,EACT,EAAiB,EAAE,MAAM,GAAc,CAAC,EACxC,KAAW,8BACX,KAAa,8CACb,EACD;KACD,GAAI;KACJ,CAAA;IACD,KACC,kBAAC,QAAD;KAAM,WAAU;eAEZ,EADD,IACE,IAEA,GAFD,EAA2B,MAAM,GAAgB,CAER;KAEtC,CAAA;IAEJ;;EACF,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"ChipsCheckbox.cjs","names":[],"sources":["../../../src/components/Checkbox/ChipsCheckbox.tsx"],"sourcesContent":["import type { ChangeEvent, InputHTMLAttributes, MouseEventHandler, Ref } from \"react\";\nimport { CheckboxCheckIcon } from \"@/components/Icon\";\nimport { InteractionLayer } from \"@/components/InteractionLayer\";\nimport { cn } from \"@/utils/cn\";\nimport { useControllableState } from \"@/utils/useControllableState\";\n\nexport interface ChipsCheckboxProps\n extends Omit<InputHTMLAttributes<HTMLInputElement>, \"type\" | \"onClick\"> {\n ref?: Ref<HTMLInputElement>;\n /** 체크 상태가 바뀔 때 새 checked 값으로 호출된다. (네이티브 이벤트는 `onChange`) */\n onCheckedChange?: (checked: boolean) => void;\n onClick?: MouseEventHandler<HTMLLabelElement>;\n}\n\nfunction ChipsCheckbox({\n className,\n disabled,\n checked,\n defaultChecked,\n onCheckedChange,\n onChange,\n onClick,\n id,\n ref,\n ...props\n}: ChipsCheckboxProps) {\n const [resolvedChecked, setChecked] = useControllableState({\n value: checked,\n defaultValue: Boolean(defaultChecked),\n onChange: onCheckedChange,\n });\n const currentChecked = Boolean(resolvedChecked);\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n setChecked(event.target.checked);\n onChange?.(event);\n };\n\n return (\n // biome-ignore lint/a11y/useKeyWithClickEvents: 키보드는 안쪽 checkbox input이 받는다\n <label\n onClick={onClick}\n className={cn(\n \"aivex:relative aivex:overflow-hidden aivex:group aivex:inline-flex aivex:items-center aivex:justify-center\",\n \"aivex:h-8 aivex:w-8 aivex:shrink-0 aivex:rounded-lg aivex:border aivex:cursor-pointer aivex:select-none aivex:transition-colors\",\n currentChecked\n ? \"aivex:bg-bg-brand-subtle aivex:border-border-brand-subtle\"\n : \"aivex:bg-bg-tertiary aivex:border-border-default\",\n disabled && \"aivex:opacity-disable aivex:pointer-events-none\",\n className,\n )}\n >\n <InteractionLayer />\n <input\n ref={ref}\n id={id}\n type=\"checkbox\"\n disabled={disabled}\n checked={currentChecked}\n onChange={handleChange}\n onClick={(e) => e.stopPropagation()}\n className=\"aivex:sr-only\"\n {...props}\n />\n <span className=\"aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:w-5 aivex:h-5 aivex:shrink-0\">\n <span\n className={cn(\n \"aivex:w-4 aivex:h-4 aivex:rounded-xs aivex:border aivex:transition-colors\",\n currentChecked\n ? \"aivex:bg-bg-brand aivex:border-transparent\"\n : \"aivex:bg-bg-primary aivex:border-border-default\",\n )}\n />\n {currentChecked && (\n <span className=\"aivex:absolute aivex:inset-0 aivex:flex aivex:items-center aivex:justify-center aivex:text-icon-on-color aivex:pointer-events-none\">\n <CheckboxCheckIcon size=\"sm\" />\n </span>\n )}\n </span>\n </label>\n );\n}\n\nexport { ChipsCheckbox };\n"],"mappings":"0QAcA,SAAS,EAAc,CACrB,YACA,WACA,UACA,iBACA,kBACA,WACA,UACA,KACA,MACA,GAAG,GACkB,CACrB,GAAM,CAAC,EAAiB,GAAc,EAAA,qBAAqB,CACzD,MAAO,EACP,aAAc,EAAQ,EACtB,SAAU,EACX,CAAC,CACI,EAAiB,EAAQ,EAO/B,OAEE,EAAA,EAAA,MAAC,QAAD,CACW,UACT,UAAW,EAAA,GACT,6GACA,kIACA,EACI,4DACA,mDACJ,GAAY,kDACZ,EACD,UAVH,EAYE,EAAA,EAAA,KAAC,EAAA,iBAAD,EAAoB,CAAA,EACpB,EAAA,EAAA,KAAC,QAAD,CACO,MACD,KACJ,KAAK,WACK,WACV,QAAS,EACT,SA1BgB,GAAyC,CAC7D,EAAW,EAAM,OAAO,QAAQ,CAChC,IAAW,EAAM,EAyBb,QAAU,GAAM,EAAE,iBAAiB,CACnC,UAAU,gBACV,GAAI,EACJ,CAAA,EACF,EAAA,EAAA,MAAC,OAAD,CAAM,UAAU,uHAAhB,EACE,EAAA,EAAA,KAAC,OAAD,CACE,UAAW,EAAA,GACT,4EACA,EACI,6CACA,kDACL,CACD,CAAA,CACD,IACC,EAAA,EAAA,KAAC,OAAD,CAAM,UAAU,+IACd,EAAA,EAAA,KAAC,EAAA,kBAAD,CAAmB,KAAK,KAAO,CAAA,CAC1B,CAAA,CAEJ,GACD"}
1
+ {"version":3,"file":"ChipsCheckbox.cjs","names":[],"sources":["../../../src/components/Checkbox/ChipsCheckbox.tsx"],"sourcesContent":["import type { ChangeEvent, InputHTMLAttributes, MouseEventHandler, Ref } from \"react\";\nimport { CheckboxCheckIcon } from \"@/components/Icon\";\nimport { InteractionLayer } from \"@/components/InteractionLayer\";\nimport { cn } from \"@/utils/cn\";\nimport { useControllableState } from \"@/utils/useControllableState\";\n\nexport interface ChipsCheckboxProps\n extends Omit<InputHTMLAttributes<HTMLInputElement>, \"type\" | \"onClick\"> {\n ref?: Ref<HTMLInputElement>;\n /** 체크 상태가 바뀔 때 새 checked 값으로 호출된다. (네이티브 이벤트는 `onChange`) */\n onCheckedChange?: (checked: boolean) => void;\n /** 바깥 `<label>`(칩 전체) 클릭 핸들러. 안쪽 input의 클릭은 label로 전파되지 않는다. */\n onClick?: MouseEventHandler<HTMLLabelElement>;\n}\n\n/**\n * 32×32 칩 모양 배경 안에 체크박스를 담은 정사각형 선택 컨트롤.\n *\n * 체크 시 칩 배경·테두리가 brand-subtle로 바뀐다. 텍스트 라벨이 없으므로 `aria-label`을 반드시 준다.\n * 일반 폼의 체크박스는 `Checkbox`를 쓴다. `checked`(+`onCheckedChange`) 제어형, `defaultChecked` 비제어형 모두 지원한다.\n * `className`은 바깥 `<label>`에, 그 외 input 속성은 안쪽 input에 적용된다.\n *\n * @example\n * ```tsx\n * import { ChipsCheckbox } from \"@aivex/ui\";\n *\n * <ChipsCheckbox aria-label=\"행 선택\" checked={selected} onCheckedChange={setSelected} />\n * ```\n */\nfunction ChipsCheckbox({\n className,\n disabled,\n checked,\n defaultChecked,\n onCheckedChange,\n onChange,\n onClick,\n id,\n ref,\n ...props\n}: ChipsCheckboxProps) {\n const [resolvedChecked, setChecked] = useControllableState({\n value: checked,\n defaultValue: Boolean(defaultChecked),\n onChange: onCheckedChange,\n });\n const currentChecked = Boolean(resolvedChecked);\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n setChecked(event.target.checked);\n onChange?.(event);\n };\n\n return (\n // biome-ignore lint/a11y/useKeyWithClickEvents: 키보드는 안쪽 checkbox input이 받는다\n <label\n onClick={onClick}\n className={cn(\n \"aivex:relative aivex:overflow-hidden aivex:group aivex:inline-flex aivex:items-center aivex:justify-center\",\n \"aivex:h-8 aivex:w-8 aivex:shrink-0 aivex:rounded-lg aivex:border aivex:cursor-pointer aivex:select-none aivex:transition-colors\",\n currentChecked\n ? \"aivex:bg-bg-brand-subtle aivex:border-border-brand-subtle\"\n : \"aivex:bg-bg-tertiary aivex:border-border-default\",\n disabled && \"aivex:opacity-disable aivex:pointer-events-none\",\n className,\n )}\n >\n <InteractionLayer />\n <input\n ref={ref}\n id={id}\n type=\"checkbox\"\n disabled={disabled}\n checked={currentChecked}\n onChange={handleChange}\n onClick={(e) => e.stopPropagation()}\n className=\"aivex:sr-only\"\n {...props}\n />\n <span className=\"aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:w-5 aivex:h-5 aivex:shrink-0\">\n <span\n className={cn(\n \"aivex:w-4 aivex:h-4 aivex:rounded-xs aivex:border aivex:transition-colors\",\n currentChecked\n ? \"aivex:bg-bg-brand aivex:border-transparent\"\n : \"aivex:bg-bg-primary aivex:border-border-default\",\n )}\n />\n {currentChecked && (\n <span className=\"aivex:absolute aivex:inset-0 aivex:flex aivex:items-center aivex:justify-center aivex:text-icon-on-color aivex:pointer-events-none\">\n <CheckboxCheckIcon size=\"sm\" />\n </span>\n )}\n </span>\n </label>\n );\n}\n\nexport { ChipsCheckbox };\n"],"mappings":"0QA6BA,SAAS,EAAc,CACrB,YACA,WACA,UACA,iBACA,kBACA,WACA,UACA,KACA,MACA,GAAG,GACkB,CACrB,GAAM,CAAC,EAAiB,GAAc,EAAA,qBAAqB,CACzD,MAAO,EACP,aAAc,EAAQ,EACtB,SAAU,EACX,CAAC,CACI,EAAiB,EAAQ,EAO/B,OAEE,EAAA,EAAA,MAAC,QAAD,CACW,UACT,UAAW,EAAA,GACT,6GACA,kIACA,EACI,4DACA,mDACJ,GAAY,kDACZ,EACD,UAVH,EAYE,EAAA,EAAA,KAAC,EAAA,iBAAD,EAAoB,CAAA,EACpB,EAAA,EAAA,KAAC,QAAD,CACO,MACD,KACJ,KAAK,WACK,WACV,QAAS,EACT,SA1BgB,GAAyC,CAC7D,EAAW,EAAM,OAAO,QAAQ,CAChC,IAAW,EAAM,EAyBb,QAAU,GAAM,EAAE,iBAAiB,CACnC,UAAU,gBACV,GAAI,EACJ,CAAA,EACF,EAAA,EAAA,MAAC,OAAD,CAAM,UAAU,uHAAhB,EACE,EAAA,EAAA,KAAC,OAAD,CACE,UAAW,EAAA,GACT,4EACA,EACI,6CACA,kDACL,CACD,CAAA,CACD,IACC,EAAA,EAAA,KAAC,OAAD,CAAM,UAAU,+IACd,EAAA,EAAA,KAAC,EAAA,kBAAD,CAAmB,KAAK,KAAO,CAAA,CAC1B,CAAA,CAEJ,GACD"}
@@ -0,0 +1,24 @@
1
+ import type { InputHTMLAttributes, MouseEventHandler, Ref } from "react";
2
+ export interface ChipsCheckboxProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "onClick"> {
3
+ ref?: Ref<HTMLInputElement>;
4
+ /** 체크 상태가 바뀔 때 새 checked 값으로 호출된다. (네이티브 이벤트는 `onChange`) */
5
+ onCheckedChange?: (checked: boolean) => void;
6
+ /** 바깥 `<label>`(칩 전체) 클릭 핸들러. 안쪽 input의 클릭은 label로 전파되지 않는다. */
7
+ onClick?: MouseEventHandler<HTMLLabelElement>;
8
+ }
9
+ /**
10
+ * 32×32 칩 모양 배경 안에 체크박스를 담은 정사각형 선택 컨트롤.
11
+ *
12
+ * 체크 시 칩 배경·테두리가 brand-subtle로 바뀐다. 텍스트 라벨이 없으므로 `aria-label`을 반드시 준다.
13
+ * 일반 폼의 체크박스는 `Checkbox`를 쓴다. `checked`(+`onCheckedChange`) 제어형, `defaultChecked` 비제어형 모두 지원한다.
14
+ * `className`은 바깥 `<label>`에, 그 외 input 속성은 안쪽 input에 적용된다.
15
+ *
16
+ * @example
17
+ * ```tsx
18
+ * import { ChipsCheckbox } from "@aivex/ui";
19
+ *
20
+ * <ChipsCheckbox aria-label="행 선택" checked={selected} onCheckedChange={setSelected} />
21
+ * ```
22
+ */
23
+ declare function ChipsCheckbox({ className, disabled, checked, defaultChecked, onCheckedChange, onChange, onClick, id, ref, ...props }: ChipsCheckboxProps): import("react/jsx-runtime").JSX.Element;
24
+ export { ChipsCheckbox };
@@ -3,7 +3,22 @@ export interface ChipsCheckboxProps extends Omit<InputHTMLAttributes<HTMLInputEl
3
3
  ref?: Ref<HTMLInputElement>;
4
4
  /** 체크 상태가 바뀔 때 새 checked 값으로 호출된다. (네이티브 이벤트는 `onChange`) */
5
5
  onCheckedChange?: (checked: boolean) => void;
6
+ /** 바깥 `<label>`(칩 전체) 클릭 핸들러. 안쪽 input의 클릭은 label로 전파되지 않는다. */
6
7
  onClick?: MouseEventHandler<HTMLLabelElement>;
7
8
  }
9
+ /**
10
+ * 32×32 칩 모양 배경 안에 체크박스를 담은 정사각형 선택 컨트롤.
11
+ *
12
+ * 체크 시 칩 배경·테두리가 brand-subtle로 바뀐다. 텍스트 라벨이 없으므로 `aria-label`을 반드시 준다.
13
+ * 일반 폼의 체크박스는 `Checkbox`를 쓴다. `checked`(+`onCheckedChange`) 제어형, `defaultChecked` 비제어형 모두 지원한다.
14
+ * `className`은 바깥 `<label>`에, 그 외 input 속성은 안쪽 input에 적용된다.
15
+ *
16
+ * @example
17
+ * ```tsx
18
+ * import { ChipsCheckbox } from "@aivex/ui";
19
+ *
20
+ * <ChipsCheckbox aria-label="행 선택" checked={selected} onCheckedChange={setSelected} />
21
+ * ```
22
+ */
8
23
  declare function ChipsCheckbox({ className, disabled, checked, defaultChecked, onCheckedChange, onChange, onClick, id, ref, ...props }: ChipsCheckboxProps): import("react/jsx-runtime").JSX.Element;
9
24
  export { ChipsCheckbox };
@@ -1 +1 @@
1
- {"version":3,"file":"ChipsCheckbox.js","names":[],"sources":["../../../src/components/Checkbox/ChipsCheckbox.tsx"],"sourcesContent":["import type { ChangeEvent, InputHTMLAttributes, MouseEventHandler, Ref } from \"react\";\nimport { CheckboxCheckIcon } from \"@/components/Icon\";\nimport { InteractionLayer } from \"@/components/InteractionLayer\";\nimport { cn } from \"@/utils/cn\";\nimport { useControllableState } from \"@/utils/useControllableState\";\n\nexport interface ChipsCheckboxProps\n extends Omit<InputHTMLAttributes<HTMLInputElement>, \"type\" | \"onClick\"> {\n ref?: Ref<HTMLInputElement>;\n /** 체크 상태가 바뀔 때 새 checked 값으로 호출된다. (네이티브 이벤트는 `onChange`) */\n onCheckedChange?: (checked: boolean) => void;\n onClick?: MouseEventHandler<HTMLLabelElement>;\n}\n\nfunction ChipsCheckbox({\n className,\n disabled,\n checked,\n defaultChecked,\n onCheckedChange,\n onChange,\n onClick,\n id,\n ref,\n ...props\n}: ChipsCheckboxProps) {\n const [resolvedChecked, setChecked] = useControllableState({\n value: checked,\n defaultValue: Boolean(defaultChecked),\n onChange: onCheckedChange,\n });\n const currentChecked = Boolean(resolvedChecked);\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n setChecked(event.target.checked);\n onChange?.(event);\n };\n\n return (\n // biome-ignore lint/a11y/useKeyWithClickEvents: 키보드는 안쪽 checkbox input이 받는다\n <label\n onClick={onClick}\n className={cn(\n \"aivex:relative aivex:overflow-hidden aivex:group aivex:inline-flex aivex:items-center aivex:justify-center\",\n \"aivex:h-8 aivex:w-8 aivex:shrink-0 aivex:rounded-lg aivex:border aivex:cursor-pointer aivex:select-none aivex:transition-colors\",\n currentChecked\n ? \"aivex:bg-bg-brand-subtle aivex:border-border-brand-subtle\"\n : \"aivex:bg-bg-tertiary aivex:border-border-default\",\n disabled && \"aivex:opacity-disable aivex:pointer-events-none\",\n className,\n )}\n >\n <InteractionLayer />\n <input\n ref={ref}\n id={id}\n type=\"checkbox\"\n disabled={disabled}\n checked={currentChecked}\n onChange={handleChange}\n onClick={(e) => e.stopPropagation()}\n className=\"aivex:sr-only\"\n {...props}\n />\n <span className=\"aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:w-5 aivex:h-5 aivex:shrink-0\">\n <span\n className={cn(\n \"aivex:w-4 aivex:h-4 aivex:rounded-xs aivex:border aivex:transition-colors\",\n currentChecked\n ? \"aivex:bg-bg-brand aivex:border-transparent\"\n : \"aivex:bg-bg-primary aivex:border-border-default\",\n )}\n />\n {currentChecked && (\n <span className=\"aivex:absolute aivex:inset-0 aivex:flex aivex:items-center aivex:justify-center aivex:text-icon-on-color aivex:pointer-events-none\">\n <CheckboxCheckIcon size=\"sm\" />\n </span>\n )}\n </span>\n </label>\n );\n}\n\nexport { ChipsCheckbox };\n"],"mappings":";;;;;;;AAcA,SAAS,EAAc,EACrB,cACA,aACA,YACA,mBACA,oBACA,aACA,YACA,OACA,QACA,GAAG,KACkB;CACrB,IAAM,CAAC,GAAiB,KAAc,EAAqB;EACzD,OAAO;EACP,cAAc,EAAQ;EACtB,UAAU;EACX,CAAC,EACI,IAAiB,EAAQ;AAO/B,QAEE,kBAAC,SAAD;EACW;EACT,WAAW,EACT,8GACA,mIACA,IACI,8DACA,oDACJ,KAAY,mDACZ,EACD;YAVH;GAYE,kBAAC,GAAD,EAAoB,CAAA;GACpB,kBAAC,SAAD;IACO;IACD;IACJ,MAAK;IACK;IACV,SAAS;IACT,WA1BgB,MAAyC;AAE7D,KADA,EAAW,EAAM,OAAO,QAAQ,EAChC,IAAW,EAAM;;IAyBb,UAAU,MAAM,EAAE,iBAAiB;IACnC,WAAU;IACV,GAAI;IACJ,CAAA;GACF,kBAAC,QAAD;IAAM,WAAU;cAAhB,CACE,kBAAC,QAAD,EACE,WAAW,EACT,6EACA,IACI,+CACA,kDACL,EACD,CAAA,EACD,KACC,kBAAC,QAAD;KAAM,WAAU;eACd,kBAAC,GAAD,EAAmB,MAAK,MAAO,CAAA;KAC1B,CAAA,CAEJ;;GACD"}
1
+ {"version":3,"file":"ChipsCheckbox.js","names":[],"sources":["../../../src/components/Checkbox/ChipsCheckbox.tsx"],"sourcesContent":["import type { ChangeEvent, InputHTMLAttributes, MouseEventHandler, Ref } from \"react\";\nimport { CheckboxCheckIcon } from \"@/components/Icon\";\nimport { InteractionLayer } from \"@/components/InteractionLayer\";\nimport { cn } from \"@/utils/cn\";\nimport { useControllableState } from \"@/utils/useControllableState\";\n\nexport interface ChipsCheckboxProps\n extends Omit<InputHTMLAttributes<HTMLInputElement>, \"type\" | \"onClick\"> {\n ref?: Ref<HTMLInputElement>;\n /** 체크 상태가 바뀔 때 새 checked 값으로 호출된다. (네이티브 이벤트는 `onChange`) */\n onCheckedChange?: (checked: boolean) => void;\n /** 바깥 `<label>`(칩 전체) 클릭 핸들러. 안쪽 input의 클릭은 label로 전파되지 않는다. */\n onClick?: MouseEventHandler<HTMLLabelElement>;\n}\n\n/**\n * 32×32 칩 모양 배경 안에 체크박스를 담은 정사각형 선택 컨트롤.\n *\n * 체크 시 칩 배경·테두리가 brand-subtle로 바뀐다. 텍스트 라벨이 없으므로 `aria-label`을 반드시 준다.\n * 일반 폼의 체크박스는 `Checkbox`를 쓴다. `checked`(+`onCheckedChange`) 제어형, `defaultChecked` 비제어형 모두 지원한다.\n * `className`은 바깥 `<label>`에, 그 외 input 속성은 안쪽 input에 적용된다.\n *\n * @example\n * ```tsx\n * import { ChipsCheckbox } from \"@aivex/ui\";\n *\n * <ChipsCheckbox aria-label=\"행 선택\" checked={selected} onCheckedChange={setSelected} />\n * ```\n */\nfunction ChipsCheckbox({\n className,\n disabled,\n checked,\n defaultChecked,\n onCheckedChange,\n onChange,\n onClick,\n id,\n ref,\n ...props\n}: ChipsCheckboxProps) {\n const [resolvedChecked, setChecked] = useControllableState({\n value: checked,\n defaultValue: Boolean(defaultChecked),\n onChange: onCheckedChange,\n });\n const currentChecked = Boolean(resolvedChecked);\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n setChecked(event.target.checked);\n onChange?.(event);\n };\n\n return (\n // biome-ignore lint/a11y/useKeyWithClickEvents: 키보드는 안쪽 checkbox input이 받는다\n <label\n onClick={onClick}\n className={cn(\n \"aivex:relative aivex:overflow-hidden aivex:group aivex:inline-flex aivex:items-center aivex:justify-center\",\n \"aivex:h-8 aivex:w-8 aivex:shrink-0 aivex:rounded-lg aivex:border aivex:cursor-pointer aivex:select-none aivex:transition-colors\",\n currentChecked\n ? \"aivex:bg-bg-brand-subtle aivex:border-border-brand-subtle\"\n : \"aivex:bg-bg-tertiary aivex:border-border-default\",\n disabled && \"aivex:opacity-disable aivex:pointer-events-none\",\n className,\n )}\n >\n <InteractionLayer />\n <input\n ref={ref}\n id={id}\n type=\"checkbox\"\n disabled={disabled}\n checked={currentChecked}\n onChange={handleChange}\n onClick={(e) => e.stopPropagation()}\n className=\"aivex:sr-only\"\n {...props}\n />\n <span className=\"aivex:relative aivex:inline-flex aivex:items-center aivex:justify-center aivex:w-5 aivex:h-5 aivex:shrink-0\">\n <span\n className={cn(\n \"aivex:w-4 aivex:h-4 aivex:rounded-xs aivex:border aivex:transition-colors\",\n currentChecked\n ? \"aivex:bg-bg-brand aivex:border-transparent\"\n : \"aivex:bg-bg-primary aivex:border-border-default\",\n )}\n />\n {currentChecked && (\n <span className=\"aivex:absolute aivex:inset-0 aivex:flex aivex:items-center aivex:justify-center aivex:text-icon-on-color aivex:pointer-events-none\">\n <CheckboxCheckIcon size=\"sm\" />\n </span>\n )}\n </span>\n </label>\n );\n}\n\nexport { ChipsCheckbox };\n"],"mappings":";;;;;;;AA6BA,SAAS,EAAc,EACrB,cACA,aACA,YACA,mBACA,oBACA,aACA,YACA,OACA,QACA,GAAG,KACkB;CACrB,IAAM,CAAC,GAAiB,KAAc,EAAqB;EACzD,OAAO;EACP,cAAc,EAAQ;EACtB,UAAU;EACX,CAAC,EACI,IAAiB,EAAQ;AAO/B,QAEE,kBAAC,SAAD;EACW;EACT,WAAW,EACT,8GACA,mIACA,IACI,8DACA,oDACJ,KAAY,mDACZ,EACD;YAVH;GAYE,kBAAC,GAAD,EAAoB,CAAA;GACpB,kBAAC,SAAD;IACO;IACD;IACJ,MAAK;IACK;IACV,SAAS;IACT,WA1BgB,MAAyC;AAE7D,KADA,EAAW,EAAM,OAAO,QAAQ,EAChC,IAAW,EAAM;;IAyBb,UAAU,MAAM,EAAE,iBAAiB;IACnC,WAAU;IACV,GAAI;IACJ,CAAA;GACF,kBAAC,QAAD;IAAM,WAAU;cAAhB,CACE,kBAAC,QAAD,EACE,WAAW,EACT,6EACA,IACI,+CACA,kDACL,EACD,CAAA,EACD,KACC,kBAAC,QAAD;KAAM,WAAU;eACd,kBAAC,GAAD,EAAmB,MAAK,MAAO,CAAA;KAC1B,CAAA,CAEJ;;GACD"}
@@ -0,0 +1,4 @@
1
+ export type { CheckboxProps } from "./Checkbox.cjs";
2
+ export { Checkbox, checkboxVariants } from "./Checkbox.cjs";
3
+ export type { ChipsCheckboxProps } from "./ChipsCheckbox.cjs";
4
+ export { ChipsCheckbox } from "./ChipsCheckbox.cjs";
@@ -1,4 +1,4 @@
1
- export type { CheckboxProps } from "./Checkbox";
2
- export { Checkbox, checkboxVariants } from "./Checkbox";
3
- export type { ChipsCheckboxProps } from "./ChipsCheckbox";
4
- export { ChipsCheckbox } from "./ChipsCheckbox";
1
+ export type { CheckboxProps } from "./Checkbox.js";
2
+ export { Checkbox, checkboxVariants } from "./Checkbox.js";
3
+ export type { ChipsCheckboxProps } from "./ChipsCheckbox.js";
4
+ export { ChipsCheckbox } from "./ChipsCheckbox.js";
@@ -1 +1 @@
1
- {"version":3,"file":"Coachmark.cjs","names":[],"sources":["../../../src/components/Coachmark/Coachmark.tsx"],"sourcesContent":["\"use client\";\n\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\";\nimport type { ComponentPropsWithoutRef, ReactNode, Ref } from \"react\";\nimport { Button, type ButtonProps } from \"@/components/Button\";\nimport { CloseIcon } from \"@/components/Icon\";\nimport { IconButton } from \"@/components/IconButton\";\nimport { popoverContentBaseClassName } from \"@/components/Popover/Popover\";\nimport { cn } from \"@/utils/cn\";\n\n// 진한 배경(static-gray) 위 코치마크 콘텐츠. Radix가 side/충돌 회피/화살표 위치를 처리한다.\n// 폭 280px은 Figma Popover-Bubble(3848:11976) 사양이다(Popover-Dropdown은 277px).\nconst contentClassName = cn(\n popoverContentBaseClassName,\n \"aivex:w-[280px] aivex:bg-static-gray aivex:text-text-on-color\",\n);\n\n/** 버튼은 라벨을 children으로 받고, 스타일(variant/color/size)은 Coachmark가 고정한다. */\nexport interface CoachmarkButtonProps\n extends Omit<\n ButtonProps,\n \"asChild\" | \"children\" | \"className\" | \"color\" | \"ref\" | \"size\" | \"style\" | \"variant\"\n > {\n children: ReactNode;\n}\n\nfunction CoachmarkActionButton({\n button,\n variant,\n className,\n}: {\n button: CoachmarkButtonProps;\n variant: ButtonProps[\"variant\"];\n className?: string;\n}) {\n const { children, ...props } = button;\n\n return (\n <Button\n variant={variant}\n color=\"primary\"\n size=\"md\"\n // 진한 배경 위라 세 버튼 모두 text/on-color(흰색)다. ghost의 기본 브랜드색을 덮는다.\n className={cn(\"aivex:text-text-on-color\", className)}\n {...props}\n >\n {children}\n </Button>\n );\n}\n\n// ─── Root ───────────────────────────────────────────────────────────────────\ntype CoachmarkRootProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>;\n\nfunction CoachmarkRoot(props: CoachmarkRootProps) {\n return <PopoverPrimitive.Root {...props} />;\n}\n\n// ─── Trigger / Anchor ────────────────────────────────────────────────────────\ntype CoachmarkTriggerProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger> & {\n ref?: Ref<HTMLButtonElement>;\n};\n\n/** 코치마크를 붙일 요소. asChild로 임의 요소를 감싼다. */\nfunction CoachmarkTrigger({ ref, ...props }: CoachmarkTriggerProps) {\n return <PopoverPrimitive.Trigger ref={ref} {...props} />;\n}\n\ntype CoachmarkAnchorProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Anchor>;\n\n/** 클릭 트리거 없이 특정 요소를 기준점으로만 쓸 때 사용한다. */\nfunction CoachmarkAnchor(props: CoachmarkAnchorProps) {\n return <PopoverPrimitive.Anchor {...props} />;\n}\n\n// ─── Content ─────────────────────────────────────────────────────────────────\ninterface CoachmarkContentProps\n extends Omit<ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>, \"children\" | \"title\"> {\n /** 상단 타이틀. 생략하면 타이틀 영역을 렌더하지 않는다. */\n title?: ReactNode;\n /** 본문(텍스트·이미지 등, min 40 / max 200px, 초과 시 스크롤). */\n children?: ReactNode;\n /** 좌측 하단 보조 버튼(예: 넘기기). */\n tertiaryButton?: CoachmarkButtonProps;\n /** 우측 보조 버튼(예: 이전). */\n secondaryButton?: CoachmarkButtonProps;\n /** 우측 주요 버튼(예: 다음). */\n primaryButton?: CoachmarkButtonProps;\n /** 지정하면 타이틀 우측에 닫기(X) 버튼을 렌더한다. */\n onClose?: () => void;\n /** 포털 대상. 생략하면 document.body — Shadow DOM 안에서는 그 루트 안의 요소를 넘긴다. */\n container?: ComponentPropsWithoutRef<typeof PopoverPrimitive.Portal>[\"container\"];\n /** 닫기 버튼 aria-label. 기본 \"닫기\". */\n closeAriaLabel?: string;\n ref?: Ref<HTMLDivElement>;\n}\n\nfunction CoachmarkContent({\n className,\n sideOffset = 8,\n title,\n children,\n tertiaryButton,\n secondaryButton,\n primaryButton,\n onClose,\n closeAriaLabel = \"닫기\",\n container,\n ref,\n ...props\n}: CoachmarkContentProps) {\n const hasBtnArea = Boolean(tertiaryButton || secondaryButton || primaryButton);\n\n return (\n <PopoverPrimitive.Portal container={container}>\n <PopoverPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n // 코치마크는 페이지 흐름을 방해하지 않도록 열릴 때 포커스를 뺏지 않는다.\n onOpenAutoFocus={(event) => event.preventDefault()}\n className={cn(contentClassName, className)}\n {...props}\n >\n {(title != null || onClose != null) && (\n <div className=\"aivex:flex aivex:w-full aivex:items-center aivex:gap-2.5 aivex:px-xs\">\n <div className=\"aivex:min-w-0 aivex:flex-1 aivex:truncate aivex:text-label-lg\">\n {title}\n </div>\n {onClose != null && (\n <IconButton aria-label={closeAriaLabel} color=\"white\" size=\"xs\" onClick={onClose}>\n <CloseIcon size={20} />\n </IconButton>\n )}\n </div>\n )}\n\n <div className=\"aivex:flex aivex:max-h-[200px] aivex:min-h-[40px] aivex:w-full aivex:flex-col aivex:gap-md aivex:overflow-y-auto aivex:text-body-md-regular\">\n {children}\n </div>\n\n {hasBtnArea && (\n <div className=\"aivex:flex aivex:w-full aivex:items-center aivex:justify-end aivex:gap-md\">\n <div className=\"aivex:flex aivex:min-w-0 aivex:flex-1 aivex:items-start\">\n {tertiaryButton && (\n <CoachmarkActionButton\n button={tertiaryButton}\n variant=\"ghost\"\n className=\"aivex:min-w-9\"\n />\n )}\n </div>\n <div className=\"aivex:flex aivex:items-start aivex:gap-md\">\n {secondaryButton && (\n <CoachmarkActionButton\n button={secondaryButton}\n variant=\"ghost\"\n className=\"aivex:min-w-[60px]\"\n />\n )}\n {primaryButton && (\n <CoachmarkActionButton\n button={primaryButton}\n variant=\"solid\"\n className=\"aivex:min-w-[60px]\"\n />\n )}\n </div>\n </div>\n )}\n\n <PopoverPrimitive.Arrow width={20} height={10} className=\"aivex:fill-static-gray\" />\n </PopoverPrimitive.Content>\n </PopoverPrimitive.Portal>\n );\n}\n\n/**\n * 특정 요소를 가리키며 안내·온보딩 정보를 띄우는 코치마크(Popover-Bubble, 3848:11976).\n * `@radix-ui/react-popover` 기반이라 side/정렬/충돌 회피/화살표 위치를 Radix가 처리한다.\n * 진한 배경 위에 타이틀·닫기·본문·버튼(넘기기/이전/다음)을 담는다.\n *\n * ```tsx\n * <Coachmark open={open} onOpenChange={setOpen}>\n * <Coachmark.Anchor asChild><TriggerEl /></Coachmark.Anchor>\n * <Coachmark.Content side=\"bottom\" title=\"…\" onClose={dismiss}>본문</Coachmark.Content>\n * </Coachmark>\n * ```\n */\nconst Coachmark = Object.assign(CoachmarkRoot, {\n Trigger: CoachmarkTrigger,\n Anchor: CoachmarkAnchor,\n Content: CoachmarkContent,\n});\n\nexport type {\n CoachmarkAnchorProps,\n CoachmarkContentProps,\n CoachmarkRootProps,\n CoachmarkTriggerProps,\n};\nexport { Coachmark };\n"],"mappings":"uVAYA,IAAM,EAAmB,EAAA,GACvB,EAAA,4BACA,gEACD,CAWD,SAAS,EAAsB,CAC7B,SACA,UACA,aAKC,CACD,GAAM,CAAE,WAAU,GAAG,GAAU,EAE/B,OACE,EAAA,EAAA,KAAC,EAAA,OAAD,CACW,UACT,MAAM,UACN,KAAK,KAEL,UAAW,EAAA,GAAG,2BAA4B,EAAU,CACpD,GAAI,EAEH,WACM,CAAA,CAOb,SAAS,EAAc,EAA2B,CAChD,OAAO,EAAA,EAAA,KAAC,EAAiB,KAAlB,CAAuB,GAAI,EAAS,CAAA,CAS7C,SAAS,EAAiB,CAAE,MAAK,GAAG,GAAgC,CAClE,OAAO,EAAA,EAAA,KAAC,EAAiB,QAAlB,CAA+B,MAAK,GAAI,EAAS,CAAA,CAM1D,SAAS,EAAgB,EAA6B,CACpD,OAAO,EAAA,EAAA,KAAC,EAAiB,OAAlB,CAAyB,GAAI,EAAS,CAAA,CAyB/C,SAAS,EAAiB,CACxB,YACA,aAAa,EACb,QACA,WACA,iBACA,kBACA,gBACA,UACA,iBAAiB,KACjB,YACA,MACA,GAAG,GACqB,CACxB,IAAM,EAAa,GAAQ,GAAkB,GAAmB,GAEhE,OACE,EAAA,EAAA,KAAC,EAAiB,OAAlB,CAAoC,sBAClC,EAAA,EAAA,MAAC,EAAiB,QAAlB,CACO,MACO,aAEZ,gBAAkB,GAAU,EAAM,gBAAgB,CAClD,UAAW,EAAA,GAAG,EAAkB,EAAU,CAC1C,GAAI,WANN,EAQI,GAAS,MAAQ,GAAW,QAC5B,EAAA,EAAA,MAAC,MAAD,CAAK,UAAU,gFAAf,EACE,EAAA,EAAA,KAAC,MAAD,CAAK,UAAU,yEACZ,EACG,CAAA,CACL,GAAW,OACV,EAAA,EAAA,KAAC,EAAA,WAAD,CAAY,aAAY,EAAgB,MAAM,QAAQ,KAAK,KAAK,QAAS,YACvE,EAAA,EAAA,KAAC,EAAA,UAAD,CAAW,KAAM,GAAM,CAAA,CACZ,CAAA,CAEX,IAGR,EAAA,EAAA,KAAC,MAAD,CAAK,UAAU,8IACZ,WACG,CAAA,CAEL,IACC,EAAA,EAAA,MAAC,MAAD,CAAK,UAAU,qFAAf,EACE,EAAA,EAAA,KAAC,MAAD,CAAK,UAAU,mEACZ,IACC,EAAA,EAAA,KAAC,EAAD,CACE,OAAQ,EACR,QAAQ,QACR,UAAU,gBACV,CAAA,CAEA,CAAA,EACN,EAAA,EAAA,MAAC,MAAD,CAAK,UAAU,qDAAf,CACG,IACC,EAAA,EAAA,KAAC,EAAD,CACE,OAAQ,EACR,QAAQ,QACR,UAAU,qBACV,CAAA,CAEH,IACC,EAAA,EAAA,KAAC,EAAD,CACE,OAAQ,EACR,QAAQ,QACR,UAAU,qBACV,CAAA,CAEA,GACF,IAGR,EAAA,EAAA,KAAC,EAAiB,MAAlB,CAAwB,MAAO,GAAI,OAAQ,GAAI,UAAU,yBAA2B,CAAA,CAC3D,GACH,CAAA,CAgB9B,IAAM,EAAY,OAAO,OAAO,EAAe,CAC7C,QAAS,EACT,OAAQ,EACR,QAAS,EACV,CAAC"}
1
+ {"version":3,"file":"Coachmark.cjs","names":[],"sources":["../../../src/components/Coachmark/Coachmark.tsx"],"sourcesContent":["\"use client\";\n\nimport * as PopoverPrimitive from \"@radix-ui/react-popover\";\nimport type { ComponentPropsWithoutRef, ReactNode, Ref } from \"react\";\nimport { Button, type ButtonProps } from \"@/components/Button\";\nimport { CloseIcon } from \"@/components/Icon\";\nimport { IconButton } from \"@/components/IconButton\";\nimport { popoverContentBaseClassName } from \"@/components/Popover/Popover\";\nimport { cn } from \"@/utils/cn\";\n\n// 진한 배경(static-gray) 위 코치마크 콘텐츠. Radix가 side/충돌 회피/화살표 위치를 처리한다.\n// 폭 280px은 Figma Popover-Bubble(3848:11976) 사양이다(Popover-Dropdown은 277px).\nconst contentClassName = cn(\n popoverContentBaseClassName,\n \"aivex:w-[280px] aivex:bg-static-gray aivex:text-text-on-color\",\n);\n\n/** 버튼은 라벨을 children으로 받고, 스타일(variant/color/size)은 Coachmark가 고정한다. */\nexport interface CoachmarkButtonProps\n extends Omit<\n ButtonProps,\n \"asChild\" | \"children\" | \"className\" | \"color\" | \"ref\" | \"size\" | \"style\" | \"variant\"\n > {\n /** 버튼 라벨 */\n children: ReactNode;\n}\n\nfunction CoachmarkActionButton({\n button,\n variant,\n className,\n}: {\n button: CoachmarkButtonProps;\n variant: ButtonProps[\"variant\"];\n className?: string;\n}) {\n const { children, ...props } = button;\n\n return (\n <Button\n variant={variant}\n color=\"primary\"\n size=\"md\"\n // 진한 배경 위라 세 버튼 모두 text/on-color(흰색)다. ghost의 기본 브랜드색을 덮는다.\n className={cn(\"aivex:text-text-on-color\", className)}\n {...props}\n >\n {children}\n </Button>\n );\n}\n\n// ─── Root ───────────────────────────────────────────────────────────────────\n/** Coachmark 루트 props (Radix `Popover.Root`와 동일: `open`·`defaultOpen`·`onOpenChange`·`modal`). */\ntype CoachmarkRootProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>;\n\n/** 코치마크의 열림 상태를 관리하는 루트(Radix Popover.Root). */\nfunction CoachmarkRoot(props: CoachmarkRootProps) {\n return <PopoverPrimitive.Root {...props} />;\n}\n\n// ─── Trigger / Anchor ────────────────────────────────────────────────────────\n/** Coachmark.Trigger props (Radix `Popover.Trigger`와 동일). */\ntype CoachmarkTriggerProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger> & {\n ref?: Ref<HTMLButtonElement>;\n};\n\n/** 클릭하면 코치마크를 여닫는 기준 요소. asChild로 임의 요소를 감싼다. */\nfunction CoachmarkTrigger({ ref, ...props }: CoachmarkTriggerProps) {\n return <PopoverPrimitive.Trigger ref={ref} {...props} />;\n}\n\n/** Coachmark.Anchor props (Radix `Popover.Anchor`와 동일). */\ntype CoachmarkAnchorProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Anchor>;\n\n/** 클릭 트리거 없이 특정 요소를 기준점으로만 쓸 때 사용한다. */\nfunction CoachmarkAnchor(props: CoachmarkAnchorProps) {\n return <PopoverPrimitive.Anchor {...props} />;\n}\n\n// ─── Content ─────────────────────────────────────────────────────────────────\n/** Coachmark.Content props. `side`·`align`·`sideOffset` 등 Radix `Popover.Content` 위치 props도 받는다. */\ninterface CoachmarkContentProps\n extends Omit<ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>, \"children\" | \"title\"> {\n /** 상단 타이틀. 생략하면 타이틀 영역을 렌더하지 않는다. */\n title?: ReactNode;\n /** 본문(텍스트·이미지 등, min 40 / max 200px, 초과 시 스크롤). */\n children?: ReactNode;\n /** 좌측 하단 보조 버튼(예: 넘기기). */\n tertiaryButton?: CoachmarkButtonProps;\n /** 우측 보조 버튼(예: 이전). */\n secondaryButton?: CoachmarkButtonProps;\n /** 우측 주요 버튼(예: 다음). */\n primaryButton?: CoachmarkButtonProps;\n /** 지정하면 타이틀 우측에 닫기(X) 버튼을 렌더한다. */\n onClose?: () => void;\n /** 포털 대상. 생략하면 document.body — Shadow DOM 안에서는 그 루트 안의 요소를 넘긴다. */\n container?: ComponentPropsWithoutRef<typeof PopoverPrimitive.Portal>[\"container\"];\n /**\n * 닫기 버튼 aria-label\n * @default \"닫기\"\n */\n closeAriaLabel?: string;\n ref?: Ref<HTMLDivElement>;\n}\n\n/**\n * 진한 배경의 말풍선 본체. 포털로 렌더링되고 열릴 때 포커스를 가져가지 않는다.\n * `sideOffset` 기본값은 8이다.\n */\nfunction CoachmarkContent({\n className,\n sideOffset = 8,\n title,\n children,\n tertiaryButton,\n secondaryButton,\n primaryButton,\n onClose,\n closeAriaLabel = \"닫기\",\n container,\n ref,\n ...props\n}: CoachmarkContentProps) {\n const hasBtnArea = Boolean(tertiaryButton || secondaryButton || primaryButton);\n\n return (\n <PopoverPrimitive.Portal container={container}>\n <PopoverPrimitive.Content\n ref={ref}\n sideOffset={sideOffset}\n // 코치마크는 페이지 흐름을 방해하지 않도록 열릴 때 포커스를 뺏지 않는다.\n onOpenAutoFocus={(event) => event.preventDefault()}\n className={cn(contentClassName, className)}\n {...props}\n >\n {(title != null || onClose != null) && (\n <div className=\"aivex:flex aivex:w-full aivex:items-center aivex:gap-2.5 aivex:px-xs\">\n <div className=\"aivex:min-w-0 aivex:flex-1 aivex:truncate aivex:text-label-lg\">\n {title}\n </div>\n {onClose != null && (\n <IconButton aria-label={closeAriaLabel} color=\"white\" size=\"xs\" onClick={onClose}>\n <CloseIcon size={20} />\n </IconButton>\n )}\n </div>\n )}\n\n <div className=\"aivex:flex aivex:max-h-[200px] aivex:min-h-[40px] aivex:w-full aivex:flex-col aivex:gap-md aivex:overflow-y-auto aivex:text-body-md-regular\">\n {children}\n </div>\n\n {hasBtnArea && (\n <div className=\"aivex:flex aivex:w-full aivex:items-center aivex:justify-end aivex:gap-md\">\n <div className=\"aivex:flex aivex:min-w-0 aivex:flex-1 aivex:items-start\">\n {tertiaryButton && (\n <CoachmarkActionButton\n button={tertiaryButton}\n variant=\"ghost\"\n className=\"aivex:min-w-9\"\n />\n )}\n </div>\n <div className=\"aivex:flex aivex:items-start aivex:gap-md\">\n {secondaryButton && (\n <CoachmarkActionButton\n button={secondaryButton}\n variant=\"ghost\"\n className=\"aivex:min-w-[60px]\"\n />\n )}\n {primaryButton && (\n <CoachmarkActionButton\n button={primaryButton}\n variant=\"solid\"\n className=\"aivex:min-w-[60px]\"\n />\n )}\n </div>\n </div>\n )}\n\n <PopoverPrimitive.Arrow width={20} height={10} className=\"aivex:fill-static-gray\" />\n </PopoverPrimitive.Content>\n </PopoverPrimitive.Portal>\n );\n}\n\n/**\n * 특정 요소를 가리키며 온보딩·기능 안내를 띄우는 진한 말풍선 코치마크.\n *\n * Figma Popover-Bubble(3848:11976). `@radix-ui/react-popover` 기반이라 side/정렬/충돌 회피/화살표 위치를 Radix가 처리한다.\n * 진한 배경 위에 타이틀·닫기·본문·버튼(넘기기/이전/다음)을 담는다. 일반 드롭다운·폼 팝업은 `Popover`, 짧은 hover 설명은 `Tooltip`을 쓴다.\n * 구성: `Coachmark`(루트, `open`/`onOpenChange`) > `Coachmark.Trigger` 또는 `Coachmark.Anchor`(asChild) + `Coachmark.Content`.\n * 바깥 클릭 등으로도 닫히므로 보통 `open`을 제어형으로 관리한다.\n *\n * @example\n * ```tsx\n * import { Button, Coachmark } from \"@aivex/ui\";\n *\n * const [open, setOpen] = useState(true);\n *\n * <Coachmark open={open} onOpenChange={setOpen}>\n * <Coachmark.Anchor asChild>\n * <Button variant=\"outline\" color=\"secondary\">새 기능</Button>\n * </Coachmark.Anchor>\n * <Coachmark.Content\n * side=\"bottom\"\n * title=\"새 기능 안내\"\n * onClose={() => setOpen(false)}\n * tertiaryButton={{ children: \"넘기기\", onClick: () => setOpen(false) }}\n * primaryButton={{ children: \"다음\", onClick: goNext }}\n * >\n * 여기서 데이터를 내보낼 수 있습니다.\n * </Coachmark.Content>\n * </Coachmark>\n * ```\n */\nconst Coachmark = Object.assign(CoachmarkRoot, {\n Trigger: CoachmarkTrigger,\n Anchor: CoachmarkAnchor,\n Content: CoachmarkContent,\n});\n\nexport type {\n CoachmarkAnchorProps,\n CoachmarkContentProps,\n CoachmarkRootProps,\n CoachmarkTriggerProps,\n};\nexport { Coachmark };\n"],"mappings":"uVAYA,IAAM,EAAmB,EAAA,GACvB,EAAA,4BACA,gEACD,CAYD,SAAS,EAAsB,CAC7B,SACA,UACA,aAKC,CACD,GAAM,CAAE,WAAU,GAAG,GAAU,EAE/B,OACE,EAAA,EAAA,KAAC,EAAA,OAAD,CACW,UACT,MAAM,UACN,KAAK,KAEL,UAAW,EAAA,GAAG,2BAA4B,EAAU,CACpD,GAAI,EAEH,WACM,CAAA,CASb,SAAS,EAAc,EAA2B,CAChD,OAAO,EAAA,EAAA,KAAC,EAAiB,KAAlB,CAAuB,GAAI,EAAS,CAAA,CAU7C,SAAS,EAAiB,CAAE,MAAK,GAAG,GAAgC,CAClE,OAAO,EAAA,EAAA,KAAC,EAAiB,QAAlB,CAA+B,MAAK,GAAI,EAAS,CAAA,CAO1D,SAAS,EAAgB,EAA6B,CACpD,OAAO,EAAA,EAAA,KAAC,EAAiB,OAAlB,CAAyB,GAAI,EAAS,CAAA,CAiC/C,SAAS,EAAiB,CACxB,YACA,aAAa,EACb,QACA,WACA,iBACA,kBACA,gBACA,UACA,iBAAiB,KACjB,YACA,MACA,GAAG,GACqB,CACxB,IAAM,EAAa,GAAQ,GAAkB,GAAmB,GAEhE,OACE,EAAA,EAAA,KAAC,EAAiB,OAAlB,CAAoC,sBAClC,EAAA,EAAA,MAAC,EAAiB,QAAlB,CACO,MACO,aAEZ,gBAAkB,GAAU,EAAM,gBAAgB,CAClD,UAAW,EAAA,GAAG,EAAkB,EAAU,CAC1C,GAAI,WANN,EAQI,GAAS,MAAQ,GAAW,QAC5B,EAAA,EAAA,MAAC,MAAD,CAAK,UAAU,gFAAf,EACE,EAAA,EAAA,KAAC,MAAD,CAAK,UAAU,yEACZ,EACG,CAAA,CACL,GAAW,OACV,EAAA,EAAA,KAAC,EAAA,WAAD,CAAY,aAAY,EAAgB,MAAM,QAAQ,KAAK,KAAK,QAAS,YACvE,EAAA,EAAA,KAAC,EAAA,UAAD,CAAW,KAAM,GAAM,CAAA,CACZ,CAAA,CAEX,IAGR,EAAA,EAAA,KAAC,MAAD,CAAK,UAAU,8IACZ,WACG,CAAA,CAEL,IACC,EAAA,EAAA,MAAC,MAAD,CAAK,UAAU,qFAAf,EACE,EAAA,EAAA,KAAC,MAAD,CAAK,UAAU,mEACZ,IACC,EAAA,EAAA,KAAC,EAAD,CACE,OAAQ,EACR,QAAQ,QACR,UAAU,gBACV,CAAA,CAEA,CAAA,EACN,EAAA,EAAA,MAAC,MAAD,CAAK,UAAU,qDAAf,CACG,IACC,EAAA,EAAA,KAAC,EAAD,CACE,OAAQ,EACR,QAAQ,QACR,UAAU,qBACV,CAAA,CAEH,IACC,EAAA,EAAA,KAAC,EAAD,CACE,OAAQ,EACR,QAAQ,QACR,UAAU,qBACV,CAAA,CAEA,GACF,IAGR,EAAA,EAAA,KAAC,EAAiB,MAAlB,CAAwB,MAAO,GAAI,OAAQ,GAAI,UAAU,yBAA2B,CAAA,CAC3D,GACH,CAAA,CAkC9B,IAAM,EAAY,OAAO,OAAO,EAAe,CAC7C,QAAS,EACT,OAAQ,EACR,QAAS,EACV,CAAC"}
@@ -0,0 +1,87 @@
1
+ import * as PopoverPrimitive from "@radix-ui/react-popover";
2
+ import type { ComponentPropsWithoutRef, ReactNode, Ref } from "react";
3
+ import { type ButtonProps } from "../Button/index.cjs";
4
+ /** 버튼은 라벨을 children으로 받고, 스타일(variant/color/size)은 Coachmark가 고정한다. */
5
+ export interface CoachmarkButtonProps extends Omit<ButtonProps, "asChild" | "children" | "className" | "color" | "ref" | "size" | "style" | "variant"> {
6
+ /** 버튼 라벨 */
7
+ children: ReactNode;
8
+ }
9
+ /** Coachmark 루트 props (Radix `Popover.Root`와 동일: `open`·`defaultOpen`·`onOpenChange`·`modal`). */
10
+ type CoachmarkRootProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>;
11
+ /** 코치마크의 열림 상태를 관리하는 루트(Radix Popover.Root). */
12
+ declare function CoachmarkRoot(props: CoachmarkRootProps): import("react/jsx-runtime").JSX.Element;
13
+ /** Coachmark.Trigger props (Radix `Popover.Trigger`와 동일). */
14
+ type CoachmarkTriggerProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger> & {
15
+ ref?: Ref<HTMLButtonElement>;
16
+ };
17
+ /** 클릭하면 코치마크를 여닫는 기준 요소. asChild로 임의 요소를 감싼다. */
18
+ declare function CoachmarkTrigger({ ref, ...props }: CoachmarkTriggerProps): import("react/jsx-runtime").JSX.Element;
19
+ /** Coachmark.Anchor props (Radix `Popover.Anchor`와 동일). */
20
+ type CoachmarkAnchorProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Anchor>;
21
+ /** 클릭 트리거 없이 특정 요소를 기준점으로만 쓸 때 사용한다. */
22
+ declare function CoachmarkAnchor(props: CoachmarkAnchorProps): import("react/jsx-runtime").JSX.Element;
23
+ /** Coachmark.Content props. `side`·`align`·`sideOffset` 등 Radix `Popover.Content` 위치 props도 받는다. */
24
+ interface CoachmarkContentProps extends Omit<ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>, "children" | "title"> {
25
+ /** 상단 타이틀. 생략하면 타이틀 영역을 렌더하지 않는다. */
26
+ title?: ReactNode;
27
+ /** 본문(텍스트·이미지 등, min 40 / max 200px, 초과 시 스크롤). */
28
+ children?: ReactNode;
29
+ /** 좌측 하단 보조 버튼(예: 넘기기). */
30
+ tertiaryButton?: CoachmarkButtonProps;
31
+ /** 우측 보조 버튼(예: 이전). */
32
+ secondaryButton?: CoachmarkButtonProps;
33
+ /** 우측 주요 버튼(예: 다음). */
34
+ primaryButton?: CoachmarkButtonProps;
35
+ /** 지정하면 타이틀 우측에 닫기(X) 버튼을 렌더한다. */
36
+ onClose?: () => void;
37
+ /** 포털 대상. 생략하면 document.body — Shadow DOM 안에서는 그 루트 안의 요소를 넘긴다. */
38
+ container?: ComponentPropsWithoutRef<typeof PopoverPrimitive.Portal>["container"];
39
+ /**
40
+ * 닫기 버튼 aria-label
41
+ * @default "닫기"
42
+ */
43
+ closeAriaLabel?: string;
44
+ ref?: Ref<HTMLDivElement>;
45
+ }
46
+ /**
47
+ * 진한 배경의 말풍선 본체. 포털로 렌더링되고 열릴 때 포커스를 가져가지 않는다.
48
+ * `sideOffset` 기본값은 8이다.
49
+ */
50
+ declare function CoachmarkContent({ className, sideOffset, title, children, tertiaryButton, secondaryButton, primaryButton, onClose, closeAriaLabel, container, ref, ...props }: CoachmarkContentProps): import("react/jsx-runtime").JSX.Element;
51
+ /**
52
+ * 특정 요소를 가리키며 온보딩·기능 안내를 띄우는 진한 말풍선 코치마크.
53
+ *
54
+ * Figma Popover-Bubble(3848:11976). `@radix-ui/react-popover` 기반이라 side/정렬/충돌 회피/화살표 위치를 Radix가 처리한다.
55
+ * 진한 배경 위에 타이틀·닫기·본문·버튼(넘기기/이전/다음)을 담는다. 일반 드롭다운·폼 팝업은 `Popover`, 짧은 hover 설명은 `Tooltip`을 쓴다.
56
+ * 구성: `Coachmark`(루트, `open`/`onOpenChange`) > `Coachmark.Trigger` 또는 `Coachmark.Anchor`(asChild) + `Coachmark.Content`.
57
+ * 바깥 클릭 등으로도 닫히므로 보통 `open`을 제어형으로 관리한다.
58
+ *
59
+ * @example
60
+ * ```tsx
61
+ * import { Button, Coachmark } from "@aivex/ui";
62
+ *
63
+ * const [open, setOpen] = useState(true);
64
+ *
65
+ * <Coachmark open={open} onOpenChange={setOpen}>
66
+ * <Coachmark.Anchor asChild>
67
+ * <Button variant="outline" color="secondary">새 기능</Button>
68
+ * </Coachmark.Anchor>
69
+ * <Coachmark.Content
70
+ * side="bottom"
71
+ * title="새 기능 안내"
72
+ * onClose={() => setOpen(false)}
73
+ * tertiaryButton={{ children: "넘기기", onClick: () => setOpen(false) }}
74
+ * primaryButton={{ children: "다음", onClick: goNext }}
75
+ * >
76
+ * 여기서 데이터를 내보낼 수 있습니다.
77
+ * </Coachmark.Content>
78
+ * </Coachmark>
79
+ * ```
80
+ */
81
+ declare const Coachmark: typeof CoachmarkRoot & {
82
+ Trigger: typeof CoachmarkTrigger;
83
+ Anchor: typeof CoachmarkAnchor;
84
+ Content: typeof CoachmarkContent;
85
+ };
86
+ export type { CoachmarkAnchorProps, CoachmarkContentProps, CoachmarkRootProps, CoachmarkTriggerProps, };
87
+ export { Coachmark };
@@ -1,20 +1,26 @@
1
1
  import * as PopoverPrimitive from "@radix-ui/react-popover";
2
2
  import type { ComponentPropsWithoutRef, ReactNode, Ref } from "react";
3
- import { type ButtonProps } from "@/components/Button";
3
+ import { type ButtonProps } from "../Button/index.js";
4
4
  /** 버튼은 라벨을 children으로 받고, 스타일(variant/color/size)은 Coachmark가 고정한다. */
5
5
  export interface CoachmarkButtonProps extends Omit<ButtonProps, "asChild" | "children" | "className" | "color" | "ref" | "size" | "style" | "variant"> {
6
+ /** 버튼 라벨 */
6
7
  children: ReactNode;
7
8
  }
9
+ /** Coachmark 루트 props (Radix `Popover.Root`와 동일: `open`·`defaultOpen`·`onOpenChange`·`modal`). */
8
10
  type CoachmarkRootProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Root>;
11
+ /** 코치마크의 열림 상태를 관리하는 루트(Radix Popover.Root). */
9
12
  declare function CoachmarkRoot(props: CoachmarkRootProps): import("react/jsx-runtime").JSX.Element;
13
+ /** Coachmark.Trigger props (Radix `Popover.Trigger`와 동일). */
10
14
  type CoachmarkTriggerProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Trigger> & {
11
15
  ref?: Ref<HTMLButtonElement>;
12
16
  };
13
- /** 코치마크를 붙일 요소. asChild로 임의 요소를 감싼다. */
17
+ /** 클릭하면 코치마크를 여닫는 기준 요소. asChild로 임의 요소를 감싼다. */
14
18
  declare function CoachmarkTrigger({ ref, ...props }: CoachmarkTriggerProps): import("react/jsx-runtime").JSX.Element;
19
+ /** Coachmark.Anchor props (Radix `Popover.Anchor`와 동일). */
15
20
  type CoachmarkAnchorProps = ComponentPropsWithoutRef<typeof PopoverPrimitive.Anchor>;
16
21
  /** 클릭 트리거 없이 특정 요소를 기준점으로만 쓸 때 사용한다. */
17
22
  declare function CoachmarkAnchor(props: CoachmarkAnchorProps): import("react/jsx-runtime").JSX.Element;
23
+ /** Coachmark.Content props. `side`·`align`·`sideOffset` 등 Radix `Popover.Content` 위치 props도 받는다. */
18
24
  interface CoachmarkContentProps extends Omit<ComponentPropsWithoutRef<typeof PopoverPrimitive.Content>, "children" | "title"> {
19
25
  /** 상단 타이틀. 생략하면 타이틀 영역을 렌더하지 않는다. */
20
26
  title?: ReactNode;
@@ -30,20 +36,45 @@ interface CoachmarkContentProps extends Omit<ComponentPropsWithoutRef<typeof Pop
30
36
  onClose?: () => void;
31
37
  /** 포털 대상. 생략하면 document.body — Shadow DOM 안에서는 그 루트 안의 요소를 넘긴다. */
32
38
  container?: ComponentPropsWithoutRef<typeof PopoverPrimitive.Portal>["container"];
33
- /** 닫기 버튼 aria-label. 기본 "닫기". */
39
+ /**
40
+ * 닫기 버튼 aria-label
41
+ * @default "닫기"
42
+ */
34
43
  closeAriaLabel?: string;
35
44
  ref?: Ref<HTMLDivElement>;
36
45
  }
46
+ /**
47
+ * 진한 배경의 말풍선 본체. 포털로 렌더링되고 열릴 때 포커스를 가져가지 않는다.
48
+ * `sideOffset` 기본값은 8이다.
49
+ */
37
50
  declare function CoachmarkContent({ className, sideOffset, title, children, tertiaryButton, secondaryButton, primaryButton, onClose, closeAriaLabel, container, ref, ...props }: CoachmarkContentProps): import("react/jsx-runtime").JSX.Element;
38
51
  /**
39
- * 특정 요소를 가리키며 안내·온보딩 정보를 띄우는 코치마크(Popover-Bubble, 3848:11976).
40
- * `@radix-ui/react-popover` 기반이라 side/정렬/충돌 회피/화살표 위치를 Radix가 처리한다.
41
- * 진한 배경 위에 타이틀·닫기·본문·버튼(넘기기/이전/다음)을 담는다.
52
+ * 특정 요소를 가리키며 온보딩·기능 안내를 띄우는 진한 말풍선 코치마크.
53
+ *
54
+ * Figma Popover-Bubble(3848:11976). `@radix-ui/react-popover` 기반이라 side/정렬/충돌 회피/화살표 위치를 Radix가 처리한다.
55
+ * 진한 배경 위에 타이틀·닫기·본문·버튼(넘기기/이전/다음)을 담는다. 일반 드롭다운·폼 팝업은 `Popover`, 짧은 hover 설명은 `Tooltip`을 쓴다.
56
+ * 구성: `Coachmark`(루트, `open`/`onOpenChange`) > `Coachmark.Trigger` 또는 `Coachmark.Anchor`(asChild) + `Coachmark.Content`.
57
+ * 바깥 클릭 등으로도 닫히므로 보통 `open`을 제어형으로 관리한다.
42
58
  *
59
+ * @example
43
60
  * ```tsx
61
+ * import { Button, Coachmark } from "@aivex/ui";
62
+ *
63
+ * const [open, setOpen] = useState(true);
64
+ *
44
65
  * <Coachmark open={open} onOpenChange={setOpen}>
45
- * <Coachmark.Anchor asChild><TriggerEl /></Coachmark.Anchor>
46
- * <Coachmark.Content side="bottom" title="…" onClose={dismiss}>본문</Coachmark.Content>
66
+ * <Coachmark.Anchor asChild>
67
+ * <Button variant="outline" color="secondary">새 기능</Button>
68
+ * </Coachmark.Anchor>
69
+ * <Coachmark.Content
70
+ * side="bottom"
71
+ * title="새 기능 안내"
72
+ * onClose={() => setOpen(false)}
73
+ * tertiaryButton={{ children: "넘기기", onClick: () => setOpen(false) }}
74
+ * primaryButton={{ children: "다음", onClick: goNext }}
75
+ * >
76
+ * 여기서 데이터를 내보낼 수 있습니다.
77
+ * </Coachmark.Content>
47
78
  * </Coachmark>
48
79
  * ```
49
80
  */