@expcat/tigercat-react 2.0.0-preview.2 → 2.0.0-preview.4

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 (294) hide show
  1. package/dist/{chunk-2YDLAZTK.mjs → chunk-3O2WHF3U.mjs} +5 -2
  2. package/dist/{chunk-MZPKFMQC.mjs → chunk-44BPUG24.mjs} +13 -7
  3. package/dist/{chunk-7TVZTASQ.mjs → chunk-44CQTGAN.mjs} +22 -3
  4. package/dist/{chunk-7PP6RECM.mjs → chunk-532RNNPH.mjs} +3 -3
  5. package/dist/{chunk-533KLM7P.mjs → chunk-5IHOOP5A.mjs} +2 -2
  6. package/dist/{chunk-CR4QBH46.mjs → chunk-5RVLBNLI.mjs} +1 -1
  7. package/dist/{chunk-UPQGB5NQ.mjs → chunk-6SEPT4C5.mjs} +22 -11
  8. package/dist/{chunk-GCOA4AO6.mjs → chunk-773LH7BK.mjs} +1 -1
  9. package/dist/{chunk-MZCGQED3.mjs → chunk-7EXOY7GD.mjs} +1 -1
  10. package/dist/{chunk-AF3N4GJJ.mjs → chunk-7KCQMXJA.mjs} +1 -1
  11. package/dist/{chunk-SNE3E22Q.mjs → chunk-A6JNS35U.mjs} +5 -2
  12. package/dist/{chunk-FWIYDMJA.mjs → chunk-AGTXDHQJ.mjs} +1 -1
  13. package/dist/{chunk-WTIEJCRV.mjs → chunk-AJJJ6HWC.mjs} +1 -1
  14. package/dist/{chunk-SHJNDDYK.mjs → chunk-ASLRAZZN.mjs} +54 -29
  15. package/dist/{chunk-WLFLQB4R.mjs → chunk-BEJZPJIK.mjs} +1 -1
  16. package/dist/{chunk-JNZHZVPW.mjs → chunk-CN3QXWK3.mjs} +1 -1
  17. package/dist/{chunk-OTRPN5ZG.mjs → chunk-CT36XD5I.mjs} +1 -1
  18. package/dist/{chunk-LJWQ7T57.mjs → chunk-CVYA3MI2.mjs} +10 -6
  19. package/dist/{chunk-6REMGSLS.mjs → chunk-D4LASFVY.mjs} +1 -1
  20. package/dist/{chunk-XHNR3A7A.mjs → chunk-DJ4PSDQS.mjs} +5 -2
  21. package/dist/{chunk-Z2NZ2XC5.mjs → chunk-EKESN747.mjs} +1 -1
  22. package/dist/{chunk-7S4TP4MZ.mjs → chunk-EW5EO7VE.mjs} +1 -1
  23. package/dist/{chunk-ZG2W4HS5.mjs → chunk-F2ITBDUS.mjs} +2 -1
  24. package/dist/chunk-F6T3OLTQ.mjs +12 -0
  25. package/dist/{chunk-NRWH5IWZ.mjs → chunk-F6WV53BS.mjs} +11 -4
  26. package/dist/{chunk-D524E52A.mjs → chunk-FDKWHP2K.mjs} +22 -6
  27. package/dist/{chunk-4R5YXNU4.mjs → chunk-FPQMJFFM.mjs} +20 -3
  28. package/dist/{chunk-2UFTDDPW.mjs → chunk-HXD7KMRP.mjs} +1 -1
  29. package/dist/{chunk-HDCC4FBL.mjs → chunk-I5TELDUV.mjs} +2 -1
  30. package/dist/{chunk-GQPKHMHA.mjs → chunk-IBSOUQGB.mjs} +1 -1
  31. package/dist/{chunk-YN4FMZX5.mjs → chunk-IPJLQSAF.mjs} +4 -4
  32. package/dist/{chunk-VBGJQPPI.mjs → chunk-IZYFETUS.mjs} +3 -3
  33. package/dist/{chunk-YTFQBXH4.mjs → chunk-JTFNGXOC.mjs} +1 -1
  34. package/dist/{chunk-TJDZFN2Z.mjs → chunk-K7MYQISG.mjs} +1 -1
  35. package/dist/{chunk-GFLKO46C.mjs → chunk-KFPQ6DIH.mjs} +1 -1
  36. package/dist/{chunk-I3SE5HMH.mjs → chunk-KMP5CVNK.mjs} +1 -1
  37. package/dist/{chunk-32PAZTVF.mjs → chunk-KVARQQAG.mjs} +64 -19
  38. package/dist/{chunk-B3O6MAC3.mjs → chunk-L55UK45A.mjs} +6 -4
  39. package/dist/{chunk-3HPDLIX3.mjs → chunk-LADKKOJT.mjs} +4 -2
  40. package/dist/{chunk-2PZICT2T.mjs → chunk-LZKBDQE4.mjs} +1 -1
  41. package/dist/{chunk-K6JLLCY7.mjs → chunk-MGQWVJHX.mjs} +2 -2
  42. package/dist/{chunk-H4MPPCTB.mjs → chunk-MOWK7CND.mjs} +1 -1
  43. package/dist/{chunk-RCUL6RZU.mjs → chunk-MXXAJSRS.mjs} +28 -8
  44. package/dist/{chunk-KWVA2DN3.mjs → chunk-O5RAMCBV.mjs} +1 -1
  45. package/dist/{chunk-ZRZB3C5J.mjs → chunk-OIGEBCAS.mjs} +1 -1
  46. package/dist/{chunk-4ZZ7YRTB.mjs → chunk-OO562MFD.mjs} +1 -1
  47. package/dist/{chunk-7RI5W465.mjs → chunk-OQLP452R.mjs} +1 -1
  48. package/dist/{chunk-BPQEM6AF.mjs → chunk-OTBXERJD.mjs} +1 -1
  49. package/dist/{chunk-YLVXXP7E.mjs → chunk-PAN256RW.mjs} +2 -2
  50. package/dist/{chunk-LAKPYMBZ.mjs → chunk-PAS347EX.mjs} +1 -1
  51. package/dist/{chunk-V23KR23W.mjs → chunk-PGD5RPKF.mjs} +20 -3
  52. package/dist/{chunk-SHDQJ5BJ.mjs → chunk-PU3JY6RE.mjs} +1 -1
  53. package/dist/{chunk-R67HTROL.mjs → chunk-PXRZ6CKY.mjs} +3 -3
  54. package/dist/{chunk-2GSXSLGC.mjs → chunk-PYDWF4ED.mjs} +7 -7
  55. package/dist/{chunk-Z6BDNV3S.mjs → chunk-QB5472NM.mjs} +1 -1
  56. package/dist/{chunk-BSXPB2V6.mjs → chunk-QGZ32NFQ.mjs} +1 -1
  57. package/dist/{chunk-MMWF2OPA.mjs → chunk-SHCBCM2W.mjs} +6 -3
  58. package/dist/{chunk-WKTIDYPD.mjs → chunk-SZBYEGKU.mjs} +1 -1
  59. package/dist/{chunk-QWOE4FGJ.mjs → chunk-TDFLUDRM.mjs} +78 -22
  60. package/dist/{chunk-4F3UTDFE.mjs → chunk-TFMEHUVZ.mjs} +1 -1
  61. package/dist/chunk-TGXBCKOU.mjs +35 -0
  62. package/dist/{chunk-3OBUJIJI.mjs → chunk-TO2URY7X.mjs} +3 -3
  63. package/dist/{chunk-VKIGZWRK.mjs → chunk-TORX7SG4.mjs} +1 -1
  64. package/dist/{chunk-LOM6NNQK.mjs → chunk-U7RLVY67.mjs} +1 -1
  65. package/dist/{chunk-XSAKD4MX.mjs → chunk-UHK2ISKR.mjs} +19 -9
  66. package/dist/{chunk-4SU6D2E7.mjs → chunk-UYQBXVFE.mjs} +1 -1
  67. package/dist/{chunk-5SX2M3LU.mjs → chunk-VA6PZWOH.mjs} +1 -1
  68. package/dist/{chunk-T6HNFCOW.mjs → chunk-VD55SSP7.mjs} +1 -1
  69. package/dist/{chunk-NJHZQBA7.mjs → chunk-W7BC4I2Y.mjs} +1 -1
  70. package/dist/{chunk-MOLUSXVC.mjs → chunk-XIVU7TWX.mjs} +4 -4
  71. package/dist/{chunk-QAIBQHIO.mjs → chunk-YSIXURBW.mjs} +16 -1
  72. package/dist/{chunk-J4HCTYJG.mjs → chunk-Z3CRHC5F.mjs} +21 -2
  73. package/dist/{chunk-YCEH4N3Z.mjs → chunk-Z47SG5L5.mjs} +3 -3
  74. package/dist/{chunk-AMEH5EHB.mjs → chunk-ZEP7I6WB.mjs} +2 -2
  75. package/dist/{chunk-ZFGSZW7S.mjs → chunk-ZMRTETN2.mjs} +1 -1
  76. package/dist/components/ActivityFeed.d.mts +5 -5
  77. package/dist/components/ActivityFeed.mjs +8 -7
  78. package/dist/components/Affix.d.mts +4 -4
  79. package/dist/components/Alert.d.mts +7 -7
  80. package/dist/components/Anchor.d.mts +9 -9
  81. package/dist/components/AreaChart.d.mts +2 -2
  82. package/dist/components/AreaChart.mjs +2 -2
  83. package/dist/components/AutoComplete.d.mts +3 -3
  84. package/dist/components/AutoComplete.mjs +3 -2
  85. package/dist/components/Avatar.d.mts +4 -4
  86. package/dist/components/Avatar.mjs +4 -2
  87. package/dist/components/AvatarGroup.d.mts +10 -6
  88. package/dist/components/AvatarGroup.mjs +3 -1
  89. package/dist/components/BackTop.d.mts +5 -5
  90. package/dist/components/Badge.d.mts +4 -4
  91. package/dist/components/Badge.mjs +3 -2
  92. package/dist/components/BarChart.d.mts +2 -2
  93. package/dist/components/BarChart.mjs +2 -2
  94. package/dist/components/Breadcrumb.d.mts +10 -10
  95. package/dist/components/Button.d.mts +5 -5
  96. package/dist/components/ButtonGroup.d.mts +4 -4
  97. package/dist/components/Calendar.d.mts +2 -2
  98. package/dist/components/Calendar.mjs +3 -2
  99. package/dist/components/Card.d.mts +7 -7
  100. package/dist/components/Carousel.d.mts +9 -5
  101. package/dist/components/Carousel.mjs +3 -1
  102. package/dist/components/Cascader.d.mts +3 -3
  103. package/dist/components/Cascader.mjs +3 -2
  104. package/dist/components/ChartAxis.d.mts +3 -3
  105. package/dist/components/ChartCanvas.d.mts +3 -3
  106. package/dist/components/ChartGrid.d.mts +3 -3
  107. package/dist/components/ChartLegend.d.mts +3 -2
  108. package/dist/components/ChartLegend.mjs +1 -1
  109. package/dist/components/ChartSeries.d.mts +4 -4
  110. package/dist/components/ChartTooltip.d.mts +2 -2
  111. package/dist/components/ChatWindow.d.mts +4 -4
  112. package/dist/components/ChatWindow.mjs +8 -6
  113. package/dist/components/Checkbox.d.mts +5 -5
  114. package/dist/components/CheckboxGroup.d.mts +4 -4
  115. package/dist/components/Code.d.mts +3 -3
  116. package/dist/components/CodeEditor.d.mts +4 -4
  117. package/dist/components/Col.d.mts +3 -3
  118. package/dist/components/Collapse.d.mts +4 -4
  119. package/dist/components/CollapsePanel.d.mts +6 -6
  120. package/dist/components/ColorPicker.d.mts +2 -2
  121. package/dist/components/ColorPicker.mjs +1 -1
  122. package/dist/components/ColorSwatch.d.mts +2 -2
  123. package/dist/components/CommentThread.d.mts +3 -3
  124. package/dist/components/CommentThread.mjs +6 -5
  125. package/dist/components/ConfigProvider.d.mts +3 -3
  126. package/dist/components/ConfigProvider.mjs +2 -1
  127. package/dist/components/Container.d.mts +4 -4
  128. package/dist/components/Content.d.mts +4 -4
  129. package/dist/components/Countdown.d.mts +3 -3
  130. package/dist/components/CronEditor.d.mts +7 -3
  131. package/dist/components/CronEditor.mjs +3 -1
  132. package/dist/components/CropUpload.d.mts +3 -3
  133. package/dist/components/CropUpload.mjs +5 -4
  134. package/dist/components/DataTableWithToolbar.d.mts +6 -6
  135. package/dist/components/DataTableWithToolbar.mjs +8 -6
  136. package/dist/components/DatePicker.d.mts +3 -3
  137. package/dist/components/DatePicker.mjs +3 -2
  138. package/dist/components/Descriptions.d.mts +7 -7
  139. package/dist/components/Divider.d.mts +3 -3
  140. package/dist/components/DonutChart.d.mts +2 -2
  141. package/dist/components/DonutChart.mjs +3 -3
  142. package/dist/components/Drawer.d.mts +7 -7
  143. package/dist/components/Drawer.mjs +3 -2
  144. package/dist/components/Dropdown.d.mts +15 -15
  145. package/dist/components/Empty.d.mts +6 -6
  146. package/dist/components/Empty.mjs +3 -2
  147. package/dist/components/FileManager.d.mts +3 -3
  148. package/dist/components/FileManager.mjs +3 -2
  149. package/dist/components/FloatButton.d.mts +9 -9
  150. package/dist/components/Footer.d.mts +4 -4
  151. package/dist/components/Form.d.mts +3 -3
  152. package/dist/components/Form.mjs +3 -2
  153. package/dist/components/FormItem.d.mts +3 -3
  154. package/dist/components/FormItem.mjs +5 -3
  155. package/dist/components/FormItemContext.d.mts +12 -0
  156. package/dist/components/FormItemContext.mjs +8 -0
  157. package/dist/components/FormWizard.d.mts +5 -5
  158. package/dist/components/FormWizard.mjs +3 -2
  159. package/dist/components/FunnelChart.d.mts +2 -2
  160. package/dist/components/FunnelChart.mjs +2 -2
  161. package/dist/components/Gantt.d.mts +2 -2
  162. package/dist/components/GaugeChart.d.mts +2 -2
  163. package/dist/components/Header.d.mts +4 -4
  164. package/dist/components/HeatmapChart.d.mts +2 -2
  165. package/dist/components/Icon.d.mts +4 -4
  166. package/dist/components/Icon.mjs +1 -1
  167. package/dist/components/Image.d.mts +5 -5
  168. package/dist/components/Image.mjs +5 -4
  169. package/dist/components/ImageAnnotation.d.mts +3 -3
  170. package/dist/components/ImageAnnotation.mjs +3 -2
  171. package/dist/components/ImageCropper.d.mts +3 -3
  172. package/dist/components/ImageCropper.mjs +3 -2
  173. package/dist/components/ImageGroup.d.mts +4 -4
  174. package/dist/components/ImageGroup.mjs +4 -3
  175. package/dist/components/ImagePreview.d.mts +2 -2
  176. package/dist/components/ImagePreview.mjs +3 -2
  177. package/dist/components/ImageViewer.d.mts +2 -2
  178. package/dist/components/ImageViewer.mjs +3 -2
  179. package/dist/components/InfiniteScroll.d.mts +5 -5
  180. package/dist/components/InfiniteScroll.mjs +3 -2
  181. package/dist/components/Input.d.mts +9 -9
  182. package/dist/components/Input.mjs +2 -1
  183. package/dist/components/InputGroup.d.mts +6 -6
  184. package/dist/components/InputNumber.d.mts +4 -4
  185. package/dist/components/InputNumber.mjs +1 -1
  186. package/dist/components/Kanban.d.mts +5 -5
  187. package/dist/components/Kanban.mjs +4 -3
  188. package/dist/components/Layout.d.mts +4 -4
  189. package/dist/components/LineChart.d.mts +2 -2
  190. package/dist/components/LineChart.mjs +2 -2
  191. package/dist/components/Link.d.mts +5 -5
  192. package/dist/components/List.d.mts +6 -6
  193. package/dist/components/List.mjs +3 -2
  194. package/dist/components/Loading.d.mts +3 -3
  195. package/dist/components/Loading.mjs +3 -2
  196. package/dist/components/MarkdownEditor.d.mts +8 -4
  197. package/dist/components/MarkdownEditor.mjs +3 -1
  198. package/dist/components/Mentions.d.mts +2 -2
  199. package/dist/components/Menu.d.mts +9 -9
  200. package/dist/components/Message.mjs +14 -1
  201. package/dist/components/MessageContainer.d.mts +2 -2
  202. package/dist/components/MessageContainer.mjs +1 -1
  203. package/dist/components/MessageRoot.mjs +1 -1
  204. package/dist/components/Modal.d.mts +6 -6
  205. package/dist/components/Modal.mjs +3 -2
  206. package/dist/components/Notification.mjs +14 -1
  207. package/dist/components/NotificationCenter.d.mts +3 -3
  208. package/dist/components/NotificationCenter.mjs +6 -5
  209. package/dist/components/NotificationContainer.d.mts +2 -2
  210. package/dist/components/NotificationContainer.mjs +1 -1
  211. package/dist/components/NotificationRoot.mjs +1 -1
  212. package/dist/components/NumberKeyboard.d.mts +3 -3
  213. package/dist/components/NumberKeyboard.mjs +3 -2
  214. package/dist/components/OrgChart.d.mts +2 -2
  215. package/dist/components/Pagination.d.mts +4 -4
  216. package/dist/components/Pagination.mjs +3 -2
  217. package/dist/components/PieChart.d.mts +2 -2
  218. package/dist/components/PieChart.mjs +2 -2
  219. package/dist/components/Popconfirm.d.mts +8 -8
  220. package/dist/components/Popover.d.mts +8 -8
  221. package/dist/components/PrintLayout.d.mts +8 -8
  222. package/dist/components/PrintLayout.mjs +1 -1
  223. package/dist/components/Progress.d.mts +3 -3
  224. package/dist/components/QRCode.d.mts +2 -2
  225. package/dist/components/QRCode.mjs +3 -2
  226. package/dist/components/RadarChart.d.mts +2 -2
  227. package/dist/components/RadarChart.mjs +2 -2
  228. package/dist/components/Radio.d.mts +4 -4
  229. package/dist/components/RadioGroup.d.mts +5 -5
  230. package/dist/components/Rate.d.mts +7 -3
  231. package/dist/components/Rate.mjs +3 -1
  232. package/dist/components/Resizable.d.mts +4 -4
  233. package/dist/components/Result.d.mts +6 -6
  234. package/dist/components/RichTextEditor.d.mts +8 -4
  235. package/dist/components/RichTextEditor.mjs +3 -1
  236. package/dist/components/Row.d.mts +4 -4
  237. package/dist/components/ScatterChart.d.mts +5 -3
  238. package/dist/components/ScatterChart.mjs +4 -2
  239. package/dist/components/ScrollSpy.d.mts +5 -5
  240. package/dist/components/Segmented.d.mts +2 -2
  241. package/dist/components/Select.d.mts +3 -3
  242. package/dist/components/Select.mjs +3 -2
  243. package/dist/components/Sidebar.d.mts +4 -4
  244. package/dist/components/Signature.d.mts +3 -3
  245. package/dist/components/Signature.mjs +3 -2
  246. package/dist/components/Skeleton.d.mts +3 -3
  247. package/dist/components/Slider.d.mts +3 -3
  248. package/dist/components/Space.d.mts +5 -5
  249. package/dist/components/Splitter.d.mts +4 -4
  250. package/dist/components/Spotlight.d.mts +3 -3
  251. package/dist/components/Spotlight.mjs +3 -2
  252. package/dist/components/Statistic.d.mts +2 -2
  253. package/dist/components/Stepper.d.mts +2 -2
  254. package/dist/components/Stepper.mjs +1 -1
  255. package/dist/components/Steps.d.mts +7 -7
  256. package/dist/components/SunburstChart.d.mts +2 -2
  257. package/dist/components/SunburstChart.mjs +2 -2
  258. package/dist/components/Switch.d.mts +3 -3
  259. package/dist/components/Table.d.mts +2 -2
  260. package/dist/components/Table.mjs +5 -4
  261. package/dist/components/Tabs.d.mts +15 -10
  262. package/dist/components/Tabs.mjs +3 -1
  263. package/dist/components/Tag.d.mts +5 -5
  264. package/dist/components/Tag.mjs +3 -2
  265. package/dist/components/TaskBoard.d.mts +8 -8
  266. package/dist/components/TaskBoard.mjs +3 -2
  267. package/dist/components/Text.d.mts +4 -4
  268. package/dist/components/Textarea.d.mts +7 -7
  269. package/dist/components/TimePicker.d.mts +3 -3
  270. package/dist/components/TimePicker.mjs +3 -2
  271. package/dist/components/Timeline.d.mts +7 -7
  272. package/dist/components/Timeline.mjs +3 -2
  273. package/dist/components/Tooltip.d.mts +6 -6
  274. package/dist/components/Tour.d.mts +2 -2
  275. package/dist/components/Tour.mjs +3 -2
  276. package/dist/components/Transfer.d.mts +6 -4
  277. package/dist/components/Transfer.mjs +3 -2
  278. package/dist/components/Tree.d.mts +4 -4
  279. package/dist/components/Tree.mjs +3 -2
  280. package/dist/components/TreeMapChart.d.mts +2 -2
  281. package/dist/components/TreeMapChart.mjs +2 -2
  282. package/dist/components/TreeSelect.d.mts +3 -3
  283. package/dist/components/TreeSelect.mjs +3 -2
  284. package/dist/components/Upload.d.mts +3 -3
  285. package/dist/components/Upload.mjs +3 -2
  286. package/dist/components/VirtualList.d.mts +3 -3
  287. package/dist/components/VirtualTable.d.mts +3 -3
  288. package/dist/components/VirtualTable.mjs +3 -2
  289. package/dist/components/Watermark.d.mts +4 -4
  290. package/dist/index.d.mts +1 -1
  291. package/dist/index.mjs +92 -0
  292. package/package.json +2 -2
  293. /package/dist/{chunk-BPFKTAF2.mjs → chunk-L5KAXWQI.mjs} +0 -0
  294. /package/dist/{chunk-FNBTGIDG.mjs → chunk-Y3SGFGN6.mjs} +0 -0
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-677VSTPW.mjs";
16
16
  import {
17
17
  ChartLegend
18
- } from "./chunk-ZG2W4HS5.mjs";
18
+ } from "./chunk-F2ITBDUS.mjs";
19
19
  import {
20
20
  ChartSeries
21
21
  } from "./chunk-SDLMB34Y.mjs";
@@ -41,10 +41,12 @@ import {
41
41
  defaultSeriesXYTooltipFormatter
42
42
  } from "@expcat/tigercat-core";
43
43
  import { jsx, jsxs } from "react/jsx-runtime";
44
+ var DEFAULT_CARTESIAN_PADDING = { top: 24, right: 24, bottom: 52, left: 52 };
44
45
  var LineChart = ({
45
46
  width = 320,
46
47
  height = 200,
47
- padding = 24,
48
+ padding = DEFAULT_CARTESIAN_PADDING,
49
+ responsive = false,
48
50
  data,
49
51
  series,
50
52
  xScale: xScaleProp,
@@ -297,6 +299,7 @@ var LineChart = ({
297
299
  width,
298
300
  height,
299
301
  padding,
302
+ responsive,
300
303
  title,
301
304
  desc,
302
305
  className: classNames(className),
@@ -1,6 +1,9 @@
1
1
  import {
2
2
  useFormContext
3
- } from "./chunk-7RI5W465.mjs";
3
+ } from "./chunk-OQLP452R.mjs";
4
+ import {
5
+ FormItemControlProvider
6
+ } from "./chunk-F6T3OLTQ.mjs";
4
7
 
5
8
  // src/components/FormItem.tsx
6
9
  import React, { useMemo, useEffect, useState, useCallback, useId, useRef } from "react";
@@ -162,8 +165,6 @@ var FormItem = ({
162
165
  };
163
166
  if (!isNativeElement) {
164
167
  nextProps.status = hasError ? "error" : onlyChild.props.status;
165
- nextProps.errorMessage = hasError && !showMessage ? errorMessage : onlyChild.props.errorMessage;
166
- nextProps._shakeTrigger = hasError ? shakeTrigger : void 0;
167
168
  }
168
169
  return React.cloneElement(onlyChild, nextProps);
169
170
  }, [
@@ -172,9 +173,6 @@ var FormItem = ({
172
173
  onlyChild,
173
174
  effectiveFieldId,
174
175
  hasError,
175
- errorMessage,
176
- showMessage,
177
- shakeTrigger,
178
176
  isRequired,
179
177
  conditionState.disabled,
180
178
  formContext?.disabled,
@@ -183,6 +181,14 @@ var FormItem = ({
183
181
  handleBlur,
184
182
  handleChange
185
183
  ]);
184
+ const controlValue = useMemo(
185
+ () => ({
186
+ status: hasError ? "error" : void 0,
187
+ errorMessage: hasError && !showMessage ? errorMessage : void 0,
188
+ shakeTrigger: hasError ? shakeTrigger : void 0
189
+ }),
190
+ [hasError, showMessage, errorMessage, shakeTrigger]
191
+ );
186
192
  const formItemClasses = useMemo(
187
193
  () => classNames(
188
194
  getFormItemClasses({
@@ -249,7 +255,7 @@ var FormItem = ({
249
255
  "aria-invalid": hasError ? true : void 0,
250
256
  onBlur: isClonableChild ? void 0 : handleBlur,
251
257
  onChange: isClonableChild ? void 0 : handleChange,
252
- children: enhancedChild
258
+ children: /* @__PURE__ */ jsx(FormItemControlProvider, { value: controlValue, children: enhancedChild })
253
259
  }
254
260
  ),
255
261
  showMessage && /* @__PURE__ */ jsx(
@@ -15,10 +15,13 @@ import {
15
15
  } from "./chunk-677VSTPW.mjs";
16
16
  import {
17
17
  ChartLegend
18
- } from "./chunk-ZG2W4HS5.mjs";
18
+ } from "./chunk-F2ITBDUS.mjs";
19
19
  import {
20
20
  ChartSeries
21
21
  } from "./chunk-SDLMB34Y.mjs";
22
+ import {
23
+ useTigerConfig
24
+ } from "./chunk-YSIXURBW.mjs";
22
25
 
23
26
  // src/components/ScatterChart.tsx
24
27
  import { useId, useMemo, useState, useEffect } from "react";
@@ -37,13 +40,16 @@ import {
37
40
  SCATTER_ENTRANCE_CLASS,
38
41
  resolveChartPalette,
39
42
  buildChartLegendItems,
40
- resolveChartTooltipContent
43
+ resolveChartTooltipContent,
44
+ mergeTigerLocale,
45
+ getChartLabels
41
46
  } from "@expcat/tigercat-core";
42
47
  import { jsx, jsxs } from "react/jsx-runtime";
43
48
  var ScatterChart = ({
44
49
  width = 320,
45
50
  height = 200,
46
51
  padding = 24,
52
+ responsive = false,
47
53
  data,
48
54
  xScale,
49
55
  yScale,
@@ -94,14 +100,25 @@ var ScatterChart = ({
94
100
  colors,
95
101
  title,
96
102
  desc,
103
+ locale,
104
+ labels: labelsOverride,
97
105
  className
98
106
  }) => {
107
+ const config = useTigerConfig();
99
108
  const gradientId = useId();
100
109
  const gradientPrefix = useMemo(
101
110
  () => getStableChartGradientPrefix("scatter", gradientId),
102
111
  [gradientId]
103
112
  );
104
113
  const [mounted, setMounted] = useState(false);
114
+ const mergedLocale = useMemo(
115
+ () => mergeTigerLocale(config.locale, locale),
116
+ [config.locale, locale]
117
+ );
118
+ const labels = useMemo(
119
+ () => getChartLabels(mergedLocale, labelsOverride),
120
+ [mergedLocale, labelsOverride]
121
+ );
105
122
  useEffect(() => {
106
123
  if (animated) setMounted(true);
107
124
  }, [animated]);
@@ -211,6 +228,7 @@ var ScatterChart = ({
211
228
  width,
212
229
  height,
213
230
  padding,
231
+ responsive,
214
232
  title,
215
233
  desc,
216
234
  className: classNames(className),
@@ -292,7 +310,7 @@ var ScatterChart = ({
292
310
  style: Object.keys(styleObj).length > 0 ? styleObj : void 0,
293
311
  tabIndex: selectable ? 0 : void 0,
294
312
  role: selectable ? "button" : "img",
295
- "aria-label": point.datum.label ?? `Point ${index + 1}: (${point.datum.x}, ${point.datum.y})`,
313
+ "aria-label": point.datum.label ?? labels.pointAriaLabel.replace("{index}", String(index + 1)).replace("{x}", String(point.datum.x)).replace("{y}", String(point.datum.y)),
296
314
  "data-point-index": index,
297
315
  onMouseEnter: (e) => handleMouseEnter(index, e),
298
316
  onMouseMove: handleMouseMove,
@@ -349,6 +367,7 @@ var ScatterChart = ({
349
367
  position: legendPosition,
350
368
  markerSize: legendMarkerSize,
351
369
  gap: legendGap,
370
+ ariaLabel: labels.legendAriaLabel,
352
371
  interactive,
353
372
  onItemClick: handleLegendClick,
354
373
  onItemHover: handleLegendHover,
@@ -1,16 +1,16 @@
1
1
  import {
2
2
  TabPane,
3
3
  Tabs
4
- } from "./chunk-J4HCTYJG.mjs";
4
+ } from "./chunk-Z3CRHC5F.mjs";
5
5
  import {
6
6
  List
7
- } from "./chunk-6REMGSLS.mjs";
7
+ } from "./chunk-D4LASFVY.mjs";
8
8
  import {
9
9
  Button
10
10
  } from "./chunk-5TE7KLE5.mjs";
11
11
  import {
12
12
  Loading
13
- } from "./chunk-WTIEJCRV.mjs";
13
+ } from "./chunk-AJJJ6HWC.mjs";
14
14
  import {
15
15
  Text
16
16
  } from "./chunk-HLS4CHWX.mjs";
@@ -6,13 +6,13 @@ import {
6
6
  } from "./chunk-5TE7KLE5.mjs";
7
7
  import {
8
8
  Tag
9
- } from "./chunk-MZCGQED3.mjs";
9
+ } from "./chunk-7EXOY7GD.mjs";
10
10
  import {
11
11
  Text
12
12
  } from "./chunk-HLS4CHWX.mjs";
13
13
  import {
14
14
  Avatar
15
- } from "./chunk-4ZZ7YRTB.mjs";
15
+ } from "./chunk-OO562MFD.mjs";
16
16
 
17
17
  // src/components/CommentThread.tsx
18
18
  import { useMemo, useState } from "react";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-FLYJVZED.mjs";
10
10
  import {
11
11
  useTigerConfig
12
- } from "./chunk-QAIBQHIO.mjs";
12
+ } from "./chunk-YSIXURBW.mjs";
13
13
 
14
14
  // src/components/Tour.tsx
15
15
  import { useState, useEffect, useRef, useCallback, useMemo } from "react";
@@ -1,5 +1,5 @@
1
1
  // src/components/PrintLayout.tsx
2
- import { useMemo } from "react";
2
+ import React, { useMemo, useContext } from "react";
3
3
  import {
4
4
  classNames,
5
5
  getPrintLayoutClasses,
@@ -8,6 +8,9 @@ import {
8
8
  printLayoutPageBreakClasses
9
9
  } from "@expcat/tigercat-core";
10
10
  import { jsx, jsxs } from "react/jsx-runtime";
11
+ var PrintLayoutContext = React.createContext({
12
+ showPageBreaks: true
13
+ });
11
14
  var PrintLayout = ({
12
15
  pageSize = "A4",
13
16
  orientation = "portrait",
@@ -17,6 +20,7 @@ var PrintLayout = ({
17
20
  footerText,
18
21
  headerRender,
19
22
  footerRender,
23
+ showPageBreaks = true,
20
24
  className,
21
25
  children,
22
26
  ...rest
@@ -25,20 +29,27 @@ var PrintLayout = ({
25
29
  () => getPrintLayoutClasses(pageSize, orientation, className),
26
30
  [pageSize, orientation, className]
27
31
  );
28
- return /* @__PURE__ */ jsxs("div", { ...rest, className: classes, children: [
32
+ const contextValue = useMemo(() => ({ showPageBreaks }), [showPageBreaks]);
33
+ return /* @__PURE__ */ jsx(PrintLayoutContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs("div", { ...rest, className: classes, children: [
29
34
  showHeader && (headerRender || headerText) && /* @__PURE__ */ jsx("div", { className: printLayoutHeaderClasses, children: headerRender || headerText }),
30
35
  /* @__PURE__ */ jsx("div", { className: "tiger-print-content", children }),
31
36
  showFooter && (footerRender || footerText) && /* @__PURE__ */ jsx("div", { className: printLayoutFooterClasses, children: footerRender || footerText })
32
- ] });
37
+ ] }) });
38
+ };
39
+ var PrintPageBreak = (props) => {
40
+ const { showPageBreaks } = useContext(PrintLayoutContext);
41
+ return /* @__PURE__ */ jsx(
42
+ "div",
43
+ {
44
+ ...props,
45
+ className: classNames(
46
+ showPageBreaks && printLayoutPageBreakClasses,
47
+ "print:break-before-page"
48
+ ),
49
+ "aria-hidden": "true"
50
+ }
51
+ );
33
52
  };
34
- var PrintPageBreak = (props) => /* @__PURE__ */ jsx(
35
- "div",
36
- {
37
- ...props,
38
- className: classNames(printLayoutPageBreakClasses, "print:break-before-page"),
39
- "aria-hidden": "true"
40
- }
41
- );
42
53
 
43
54
  export {
44
55
  PrintLayout,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useTigerConfig
3
- } from "./chunk-QAIBQHIO.mjs";
3
+ } from "./chunk-YSIXURBW.mjs";
4
4
 
5
5
  // src/components/TaskBoard.tsx
6
6
  import React, { useCallback, useEffect, useMemo, useRef, useState } from "react";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useTigerConfig
3
- } from "./chunk-QAIBQHIO.mjs";
3
+ } from "./chunk-YSIXURBW.mjs";
4
4
 
5
5
  // src/components/Tag.tsx
6
6
  import { useMemo, useState } from "react";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-DKNVSQSV.mjs";
10
10
  import {
11
11
  ChartLegend
12
- } from "./chunk-ZG2W4HS5.mjs";
12
+ } from "./chunk-F2ITBDUS.mjs";
13
13
 
14
14
  // src/components/FunnelChart.tsx
15
15
  import { useId, useMemo } from "react";
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-677VSTPW.mjs";
16
16
  import {
17
17
  ChartLegend
18
- } from "./chunk-ZG2W4HS5.mjs";
18
+ } from "./chunk-F2ITBDUS.mjs";
19
19
  import {
20
20
  ChartSeries
21
21
  } from "./chunk-SDLMB34Y.mjs";
@@ -41,10 +41,12 @@ import {
41
41
  barValueLabelInsideClasses
42
42
  } from "@expcat/tigercat-core";
43
43
  import { jsx, jsxs } from "react/jsx-runtime";
44
+ var DEFAULT_CARTESIAN_PADDING = { top: 24, right: 24, bottom: 52, left: 52 };
44
45
  var BarChart = ({
45
46
  width = 320,
46
47
  height = 200,
47
- padding = 24,
48
+ padding = DEFAULT_CARTESIAN_PADDING,
49
+ responsive = false,
48
50
  data,
49
51
  xScale,
50
52
  yScale,
@@ -223,6 +225,7 @@ var BarChart = ({
223
225
  width,
224
226
  height,
225
227
  padding,
228
+ responsive,
226
229
  title,
227
230
  desc,
228
231
  className: classNames(className),
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useTigerConfig
3
- } from "./chunk-QAIBQHIO.mjs";
3
+ } from "./chunk-YSIXURBW.mjs";
4
4
 
5
5
  // src/components/Pagination.tsx
6
6
  import { useState, useCallback, useEffect, useMemo, useRef } from "react";
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-SEWNVIHH.mjs";
5
5
  import {
6
6
  useTigerConfig
7
- } from "./chunk-QAIBQHIO.mjs";
7
+ } from "./chunk-YSIXURBW.mjs";
8
8
 
9
9
  // src/components/Loading.tsx
10
10
  import { useEffect, useState, useMemo } from "react";
@@ -1,6 +1,9 @@
1
1
  import {
2
2
  useControlledState
3
3
  } from "./chunk-MEFARVQI.mjs";
4
+ import {
5
+ useTigerConfig
6
+ } from "./chunk-YSIXURBW.mjs";
4
7
 
5
8
  // src/components/RichTextEditor.tsx
6
9
  import { useRef, useState, useCallback, useEffect, useMemo } from "react";
@@ -18,7 +21,9 @@ import {
18
21
  isContentEmpty,
19
22
  parseHeight,
20
23
  builtinRichTextEngine,
21
- isToolbarSeparator
24
+ isToolbarSeparator,
25
+ mergeTigerLocale,
26
+ getRichTextEditorLabels
22
27
  } from "@expcat/tigercat-core";
23
28
  import { jsx, jsxs } from "react/jsx-runtime";
24
29
  var RichTextEditor = ({
@@ -31,10 +36,13 @@ var RichTextEditor = ({
31
36
  readOnly = false,
32
37
  disabled = false,
33
38
  onChange,
39
+ locale,
40
+ labels: labelsOverride,
34
41
  className,
35
42
  engine,
36
43
  ...restProps
37
44
  }) => {
45
+ const config = useTigerConfig();
38
46
  const editorRef = useRef(null);
39
47
  const engineRef = useRef(null);
40
48
  const [currentContent, setContent] = useControlledState(value, defaultValue, onChange);
@@ -42,6 +50,14 @@ var RichTextEditor = ({
42
50
  const [activeFormats, setActiveFormats] = useState(/* @__PURE__ */ new Set());
43
51
  const toolbarItems = toolbar ?? defaultToolbar;
44
52
  const empty = isContentEmpty(currentContent);
53
+ const mergedLocale = useMemo(
54
+ () => mergeTigerLocale(config.locale, locale),
55
+ [config.locale, locale]
56
+ );
57
+ const labels = useMemo(
58
+ () => getRichTextEditorLabels(mergedLocale, labelsOverride),
59
+ [mergedLocale, labelsOverride]
60
+ );
45
61
  useEffect(() => {
46
62
  if (!editorRef.current) return;
47
63
  const factory = engine ?? builtinRichTextEngine;
@@ -102,35 +118,43 @@ var RichTextEditor = ({
102
118
  return { height: ht };
103
119
  }, [height]);
104
120
  return /* @__PURE__ */ jsxs("div", { className: containerClasses, style: containerStyle, ...restProps, children: [
105
- /* @__PURE__ */ jsx("div", { className: richTextToolbarClasses, role: "toolbar", "aria-label": "Text formatting", children: toolbarItems.map((item, idx) => {
106
- if (isToolbarSeparator(item)) {
107
- return /* @__PURE__ */ jsx(
108
- "div",
109
- {
110
- className: richTextToolbarSeparatorClasses,
111
- role: "separator",
112
- "aria-orientation": "vertical"
113
- },
114
- `sep-${idx}`
115
- );
121
+ /* @__PURE__ */ jsx(
122
+ "div",
123
+ {
124
+ className: richTextToolbarClasses,
125
+ role: "toolbar",
126
+ "aria-label": labels.formattingToolbarAriaLabel,
127
+ children: toolbarItems.map((item, idx) => {
128
+ if (isToolbarSeparator(item)) {
129
+ return /* @__PURE__ */ jsx(
130
+ "div",
131
+ {
132
+ className: richTextToolbarSeparatorClasses,
133
+ role: "separator",
134
+ "aria-orientation": "vertical"
135
+ },
136
+ `sep-${idx}`
137
+ );
138
+ }
139
+ const btn = item;
140
+ return /* @__PURE__ */ jsx(
141
+ "button",
142
+ {
143
+ type: "button",
144
+ className: getToolbarButtonClasses(activeFormats.has(btn.name)),
145
+ title: btn.tooltip ?? btn.label,
146
+ "aria-label": btn.label,
147
+ "aria-pressed": isInlineFormat(btn.name) ? activeFormats.has(btn.name) : void 0,
148
+ disabled: disabled || readOnly,
149
+ onMouseDown: (e) => e.preventDefault(),
150
+ onClick: () => execButtonAction(btn),
151
+ children: btn.icon ? /* @__PURE__ */ jsx("span", { dangerouslySetInnerHTML: { __html: btn.icon } }) : btn.label
152
+ },
153
+ btn.name
154
+ );
155
+ })
116
156
  }
117
- const btn = item;
118
- return /* @__PURE__ */ jsx(
119
- "button",
120
- {
121
- type: "button",
122
- className: getToolbarButtonClasses(activeFormats.has(btn.name)),
123
- title: btn.tooltip ?? btn.label,
124
- "aria-label": btn.label,
125
- "aria-pressed": isInlineFormat(btn.name) ? activeFormats.has(btn.name) : void 0,
126
- disabled: disabled || readOnly,
127
- onMouseDown: (e) => e.preventDefault(),
128
- onClick: () => execButtonAction(btn),
129
- children: btn.icon ? /* @__PURE__ */ jsx("span", { dangerouslySetInnerHTML: { __html: btn.icon } }) : btn.label
130
- },
131
- btn.name
132
- );
133
- }) }),
157
+ ),
134
158
  /* @__PURE__ */ jsxs("div", { className: "relative flex-1 overflow-hidden", children: [
135
159
  /* @__PURE__ */ jsx(
136
160
  "div",
@@ -138,6 +162,7 @@ var RichTextEditor = ({
138
162
  ref: editorRef,
139
163
  className: editorAreaClasses,
140
164
  role: "textbox",
165
+ "aria-label": labels.editorAriaLabel,
141
166
  "aria-multiline": true,
142
167
  "aria-readonly": readOnly || void 0,
143
168
  "aria-disabled": disabled || void 0,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useTigerConfig
3
- } from "./chunk-QAIBQHIO.mjs";
3
+ } from "./chunk-YSIXURBW.mjs";
4
4
 
5
5
  // src/components/Calendar.tsx
6
6
  import { useState, useMemo, useCallback, useRef, useEffect } from "react";
@@ -104,7 +104,7 @@ var NotificationItem = ({ notification, onClose }) => {
104
104
  e.stopPropagation();
105
105
  handleClose();
106
106
  },
107
- "aria-label": "Close notification",
107
+ "aria-label": notification.closeAriaLabel ?? "Close notification",
108
108
  type: "button",
109
109
  children: /* @__PURE__ */ jsx(StatusIcon, { path: notificationCloseIconPath, className: notificationCloseIconClasses })
110
110
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useTigerConfig
3
- } from "./chunk-QAIBQHIO.mjs";
3
+ } from "./chunk-YSIXURBW.mjs";
4
4
 
5
5
  // src/components/ImageAnnotation.tsx
6
6
  import { useCallback, useEffect, useMemo, useRef, useState } from "react";
@@ -3,14 +3,14 @@ import {
3
3
  } from "./chunk-Y5X3G2LD.mjs";
4
4
  import {
5
5
  useTigerConfig
6
- } from "./chunk-QAIBQHIO.mjs";
6
+ } from "./chunk-YSIXURBW.mjs";
7
7
 
8
8
  // src/components/Tree.tsx
9
9
  import {
10
10
  classNames as classNames3,
11
11
  treeBaseClasses,
12
12
  treeEmptyStateClasses,
13
- resolveLocaleText
13
+ resolveLocaleText as resolveLocaleText2
14
14
  } from "@expcat/tigercat-core";
15
15
 
16
16
  // src/components/Tree/state.ts
@@ -408,7 +408,8 @@ import {
408
408
  treeNodeIndentClasses as treeNodeIndentClasses2,
409
409
  treeNodeCheckboxClasses,
410
410
  treeNodeIconClasses,
411
- treeNodeLabelClasses
411
+ treeNodeLabelClasses,
412
+ resolveLocaleText
412
413
  } from "@expcat/tigercat-core";
413
414
 
414
415
  // src/components/Tree/icons.tsx
@@ -540,7 +541,10 @@ function renderTreeRow(ctx, node, level) {
540
541
  "input",
541
542
  {
542
543
  type: "checkbox",
543
- "aria-label": `Select ${node.label}`,
544
+ "aria-label": resolveLocaleText(
545
+ `Select ${node.label}`,
546
+ ctx.mergedLocale?.locale?.toLowerCase().startsWith("zh") ? `\u9009\u62E9${node.label}` : void 0
547
+ ),
544
548
  className: treeNodeCheckboxClasses,
545
549
  checked: isChecked,
546
550
  ref: (input) => {
@@ -602,7 +606,7 @@ var Tree = (props) => {
602
606
  className: classNames3(treeBaseClasses, "p-4", ctx.className),
603
607
  role: "tree",
604
608
  "aria-label": ctx.ariaLabel,
605
- children: /* @__PURE__ */ jsx4("div", { className: treeEmptyStateClasses, children: resolveLocaleText("No data", ctx.emptyText, ctx.mergedLocale?.common?.emptyText) })
609
+ children: /* @__PURE__ */ jsx4("div", { className: treeEmptyStateClasses, children: resolveLocaleText2("No data", ctx.emptyText, ctx.mergedLocale?.common?.emptyText) })
606
610
  }
607
611
  );
608
612
  }
@@ -619,7 +623,7 @@ var Tree = (props) => {
619
623
  {
620
624
  type: "text",
621
625
  className: "w-full mb-2 px-2 py-1 text-sm border border-[var(--tiger-border,#e5e7eb)] rounded bg-[var(--tiger-surface,#ffffff)] focus:outline-none focus:ring-1 focus:ring-[var(--tiger-primary,#2563eb)]",
622
- placeholder: resolveLocaleText("Search...", ctx.mergedLocale?.common?.searchPlaceholder),
626
+ placeholder: resolveLocaleText2("Search...", ctx.mergedLocale?.common?.searchPlaceholder),
623
627
  value: ctx.internalSearchValue,
624
628
  onChange: (e) => ctx.setInternalSearchValue(e.target.value)
625
629
  }
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-Y5X3G2LD.mjs";
4
4
  import {
5
5
  useTigerConfig
6
- } from "./chunk-QAIBQHIO.mjs";
6
+ } from "./chunk-YSIXURBW.mjs";
7
7
 
8
8
  // src/components/List.tsx
9
9
  import React, { useMemo, useState } from "react";
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-677VSTPW.mjs";
16
16
  import {
17
17
  ChartLegend
18
- } from "./chunk-ZG2W4HS5.mjs";
18
+ } from "./chunk-F2ITBDUS.mjs";
19
19
  import {
20
20
  ChartSeries
21
21
  } from "./chunk-SDLMB34Y.mjs";
@@ -42,10 +42,12 @@ import {
42
42
  defaultSeriesXYTooltipFormatter
43
43
  } from "@expcat/tigercat-core";
44
44
  import { jsx, jsxs } from "react/jsx-runtime";
45
+ var DEFAULT_CARTESIAN_PADDING = { top: 24, right: 24, bottom: 52, left: 52 };
45
46
  var AreaChart = ({
46
47
  width = 320,
47
48
  height = 200,
48
- padding = 24,
49
+ padding = DEFAULT_CARTESIAN_PADDING,
50
+ responsive = false,
49
51
  data,
50
52
  series,
51
53
  xScale: xScaleProp,
@@ -330,6 +332,7 @@ var AreaChart = ({
330
332
  width,
331
333
  height,
332
334
  padding,
335
+ responsive,
333
336
  title,
334
337
  desc,
335
338
  className: classNames(className),
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ImagePreview
3
- } from "./chunk-WKTIDYPD.mjs";
3
+ } from "./chunk-SZBYEGKU.mjs";
4
4
 
5
5
  // src/components/ImageGroup.tsx
6
6
  import { useState, useCallback, useMemo, createContext, useRef } from "react";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  PieChart
3
- } from "./chunk-BSXPB2V6.mjs";
3
+ } from "./chunk-QGZ32NFQ.mjs";
4
4
 
5
5
  // src/components/DonutChart.tsx
6
6
  import { useEffect, useMemo, useState } from "react";
@@ -8,6 +8,7 @@ var ChartLegend = ({
8
8
  markerSize = 10,
9
9
  gap = 8,
10
10
  interactive = false,
11
+ ariaLabel = "Chart legend",
11
12
  className,
12
13
  onItemClick,
13
14
  onItemHover,
@@ -44,7 +45,7 @@ var ChartLegend = ({
44
45
  {
45
46
  className: containerClasses,
46
47
  role: interactive ? "group" : "list",
47
- "aria-label": "Chart legend",
48
+ "aria-label": ariaLabel,
48
49
  style: { gap: `${gap}px` },
49
50
  "data-chart-legend": "true",
50
51
  children: items.map((item) => {
@@ -0,0 +1,12 @@
1
+ // src/components/FormItemContext.tsx
2
+ import { createContext, useContext } from "react";
3
+ var FormItemControlContext = createContext(null);
4
+ var FormItemControlProvider = FormItemControlContext.Provider;
5
+ function useFormItemControlContext() {
6
+ return useContext(FormItemControlContext);
7
+ }
8
+
9
+ export {
10
+ FormItemControlProvider,
11
+ useFormItemControlContext
12
+ };