react-public-components 1.2.1 → 1.2.3

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 (687) hide show
  1. package/dist/ActivityLog/index.cjs +9 -0
  2. package/dist/ActivityLog/index.cjs.map +1 -0
  3. package/dist/ActivityLog/index.css +117 -0
  4. package/dist/ActivityLog/index.css.map +1 -0
  5. package/dist/ActivityLog/index.d.ts +32 -0
  6. package/dist/ActivityLog/index.js +3 -0
  7. package/dist/ActivityLog/index.js.map +1 -0
  8. package/dist/AnnouncementBar/index.cjs +9 -0
  9. package/dist/AnnouncementBar/index.cjs.map +1 -0
  10. package/dist/AnnouncementBar/index.css +37 -0
  11. package/dist/AnnouncementBar/index.css.map +1 -0
  12. package/dist/AnnouncementBar/index.d.ts +18 -0
  13. package/dist/AnnouncementBar/index.js +3 -0
  14. package/dist/AnnouncementBar/index.js.map +1 -0
  15. package/dist/AudioPlayer/index.cjs +10 -0
  16. package/dist/AudioPlayer/index.cjs.map +1 -0
  17. package/dist/AudioPlayer/index.css +105 -0
  18. package/dist/AudioPlayer/index.css.map +1 -0
  19. package/dist/AudioPlayer/index.d.ts +18 -0
  20. package/dist/AudioPlayer/index.js +4 -0
  21. package/dist/AudioPlayer/index.js.map +1 -0
  22. package/dist/BadgeRibbon/index.cjs +9 -0
  23. package/dist/BadgeRibbon/index.cjs.map +1 -0
  24. package/dist/BadgeRibbon/index.css +48 -0
  25. package/dist/BadgeRibbon/index.css.map +1 -0
  26. package/dist/BadgeRibbon/index.d.ts +19 -0
  27. package/dist/BadgeRibbon/index.js +3 -0
  28. package/dist/BadgeRibbon/index.js.map +1 -0
  29. package/dist/BorderBeam/index.cjs +9 -0
  30. package/dist/BorderBeam/index.cjs.map +1 -0
  31. package/dist/BorderBeam/index.css +40 -0
  32. package/dist/BorderBeam/index.css.map +1 -0
  33. package/dist/BorderBeam/index.d.ts +24 -0
  34. package/dist/BorderBeam/index.js +3 -0
  35. package/dist/BorderBeam/index.js.map +1 -0
  36. package/dist/CascadeDrawer/index.cjs +9 -0
  37. package/dist/CascadeDrawer/index.cjs.map +1 -0
  38. package/dist/CascadeDrawer/index.css +73 -0
  39. package/dist/CascadeDrawer/index.css.map +1 -0
  40. package/dist/CascadeDrawer/index.d.ts +23 -0
  41. package/dist/CascadeDrawer/index.js +3 -0
  42. package/dist/CascadeDrawer/index.js.map +1 -0
  43. package/dist/CodeSnippet/index.cjs +9 -0
  44. package/dist/CodeSnippet/index.cjs.map +1 -0
  45. package/dist/CodeSnippet/index.css +131 -0
  46. package/dist/CodeSnippet/index.css.map +1 -0
  47. package/dist/CodeSnippet/index.d.ts +23 -0
  48. package/dist/CodeSnippet/index.js +3 -0
  49. package/dist/CodeSnippet/index.js.map +1 -0
  50. package/dist/CollapseBox/index.cjs +10 -0
  51. package/dist/CollapseBox/index.cjs.map +1 -0
  52. package/dist/CollapseBox/index.css +106 -0
  53. package/dist/CollapseBox/index.css.map +1 -0
  54. package/dist/CollapseBox/index.d.ts +17 -0
  55. package/dist/CollapseBox/index.js +4 -0
  56. package/dist/CollapseBox/index.js.map +1 -0
  57. package/dist/ColorPicker/Color.d.ts +48 -0
  58. package/dist/ColorPicker/index.cjs +23 -0
  59. package/dist/ColorPicker/index.cjs.map +1 -0
  60. package/dist/ColorPicker/index.css +422 -0
  61. package/dist/ColorPicker/index.css.map +1 -0
  62. package/dist/ColorPicker/index.d.ts +48 -0
  63. package/dist/ColorPicker/index.js +4 -0
  64. package/dist/ColorPicker/index.js.map +1 -0
  65. package/dist/ContextMenu/index.cjs +10 -0
  66. package/dist/ContextMenu/index.cjs.map +1 -0
  67. package/dist/ContextMenu/index.css +107 -0
  68. package/dist/ContextMenu/index.css.map +1 -0
  69. package/dist/ContextMenu/index.d.ts +42 -0
  70. package/dist/ContextMenu/index.js +4 -0
  71. package/dist/ContextMenu/index.js.map +1 -0
  72. package/dist/CopyButton/index.cjs +10 -0
  73. package/dist/CopyButton/index.cjs.map +1 -0
  74. package/dist/CopyButton/index.css +122 -0
  75. package/dist/CopyButton/index.css.map +1 -0
  76. package/dist/CopyButton/index.d.ts +36 -0
  77. package/dist/CopyButton/index.js +4 -0
  78. package/dist/CopyButton/index.js.map +1 -0
  79. package/dist/CountUp/index.cjs +9 -0
  80. package/dist/CountUp/index.cjs.map +1 -0
  81. package/dist/CountUp/index.css +23 -0
  82. package/dist/CountUp/index.css.map +1 -0
  83. package/dist/CountUp/index.d.ts +40 -0
  84. package/dist/CountUp/index.js +3 -0
  85. package/dist/CountUp/index.js.map +1 -0
  86. package/dist/CronPicker/index.cjs +11 -0
  87. package/dist/CronPicker/index.cjs.map +1 -0
  88. package/dist/CronPicker/index.css +215 -0
  89. package/dist/CronPicker/index.css.map +1 -0
  90. package/dist/CronPicker/index.d.ts +17 -0
  91. package/dist/CronPicker/index.js +5 -0
  92. package/dist/CronPicker/index.js.map +1 -0
  93. package/dist/DebounceSelect/index.cjs +10 -0
  94. package/dist/DebounceSelect/index.cjs.map +1 -0
  95. package/dist/DebounceSelect/index.css +156 -0
  96. package/dist/DebounceSelect/index.css.map +1 -0
  97. package/dist/DebounceSelect/index.d.ts +39 -0
  98. package/dist/DebounceSelect/index.js +4 -0
  99. package/dist/DebounceSelect/index.js.map +1 -0
  100. package/dist/DiffViewer/index.cjs +9 -0
  101. package/dist/DiffViewer/index.cjs.map +1 -0
  102. package/dist/DiffViewer/index.css +90 -0
  103. package/dist/DiffViewer/index.css.map +1 -0
  104. package/dist/DiffViewer/index.d.ts +21 -0
  105. package/dist/DiffViewer/index.js +3 -0
  106. package/dist/DiffViewer/index.js.map +1 -0
  107. package/dist/DisabledBox/index.cjs +10 -0
  108. package/dist/DisabledBox/index.cjs.map +1 -0
  109. package/dist/DisabledBox/index.css +35 -0
  110. package/dist/DisabledBox/index.css.map +1 -0
  111. package/dist/DisabledBox/index.d.ts +18 -0
  112. package/dist/DisabledBox/index.js +4 -0
  113. package/dist/DisabledBox/index.js.map +1 -0
  114. package/dist/DragSortList/index.cjs +9 -0
  115. package/dist/DragSortList/index.cjs.map +1 -0
  116. package/dist/DragSortList/index.css +44 -0
  117. package/dist/DragSortList/index.css.map +1 -0
  118. package/dist/DragSortList/index.d.ts +18 -0
  119. package/dist/DragSortList/index.js +3 -0
  120. package/dist/DragSortList/index.js.map +1 -0
  121. package/dist/DualRangeSlider/index.cjs +9 -0
  122. package/dist/DualRangeSlider/index.cjs.map +1 -0
  123. package/dist/DualRangeSlider/index.css +41 -0
  124. package/dist/DualRangeSlider/index.css.map +1 -0
  125. package/dist/DualRangeSlider/index.d.ts +22 -0
  126. package/dist/DualRangeSlider/index.js +3 -0
  127. package/dist/DualRangeSlider/index.js.map +1 -0
  128. package/dist/EnvBadge/index.cjs +9 -0
  129. package/dist/EnvBadge/index.cjs.map +1 -0
  130. package/dist/EnvBadge/index.css +123 -0
  131. package/dist/EnvBadge/index.css.map +1 -0
  132. package/dist/EnvBadge/index.d.ts +36 -0
  133. package/dist/EnvBadge/index.js +3 -0
  134. package/dist/EnvBadge/index.js.map +1 -0
  135. package/dist/FileDropZone/index.cjs +9 -0
  136. package/dist/FileDropZone/index.cjs.map +1 -0
  137. package/dist/FileDropZone/index.css +39 -0
  138. package/dist/FileDropZone/index.css.map +1 -0
  139. package/dist/FileDropZone/index.d.ts +20 -0
  140. package/dist/FileDropZone/index.js +3 -0
  141. package/dist/FileDropZone/index.js.map +1 -0
  142. package/dist/FilePreviewer/index.cjs +19 -0
  143. package/dist/FilePreviewer/index.cjs.map +1 -0
  144. package/dist/FilePreviewer/index.css +155 -0
  145. package/dist/FilePreviewer/index.css.map +1 -0
  146. package/dist/FilePreviewer/index.d.ts +38 -0
  147. package/dist/FilePreviewer/index.js +4 -0
  148. package/dist/FilePreviewer/index.js.map +1 -0
  149. package/dist/FilterChips/index.cjs +9 -0
  150. package/dist/FilterChips/index.cjs.map +1 -0
  151. package/dist/FilterChips/index.css +52 -0
  152. package/dist/FilterChips/index.css.map +1 -0
  153. package/dist/FilterChips/index.d.ts +23 -0
  154. package/dist/FilterChips/index.js +3 -0
  155. package/dist/FilterChips/index.js.map +1 -0
  156. package/dist/FlipCard/index.cjs +9 -0
  157. package/dist/FlipCard/index.cjs.map +1 -0
  158. package/dist/FlipCard/index.css +46 -0
  159. package/dist/FlipCard/index.css.map +1 -0
  160. package/dist/FlipCard/index.d.ts +28 -0
  161. package/dist/FlipCard/index.js +3 -0
  162. package/dist/FlipCard/index.js.map +1 -0
  163. package/dist/Fullscreen/index.cjs +10 -0
  164. package/dist/Fullscreen/index.cjs.map +1 -0
  165. package/dist/Fullscreen/index.css +112 -0
  166. package/dist/Fullscreen/index.css.map +1 -0
  167. package/dist/Fullscreen/index.d.ts +49 -0
  168. package/dist/Fullscreen/index.js +4 -0
  169. package/dist/Fullscreen/index.js.map +1 -0
  170. package/dist/GradientText/index.cjs +9 -0
  171. package/dist/GradientText/index.cjs.map +1 -0
  172. package/dist/GradientText/index.css +22 -0
  173. package/dist/GradientText/index.css.map +1 -0
  174. package/dist/GradientText/index.d.ts +18 -0
  175. package/dist/GradientText/index.js +3 -0
  176. package/dist/GradientText/index.js.map +1 -0
  177. package/dist/GuidedTour/index.cjs +10 -0
  178. package/dist/GuidedTour/index.cjs.map +1 -0
  179. package/dist/GuidedTour/index.css +105 -0
  180. package/dist/GuidedTour/index.css.map +1 -0
  181. package/dist/GuidedTour/index.d.ts +35 -0
  182. package/dist/GuidedTour/index.js +4 -0
  183. package/dist/GuidedTour/index.js.map +1 -0
  184. package/dist/HoverCard/index.cjs +9 -0
  185. package/dist/HoverCard/index.cjs.map +1 -0
  186. package/dist/HoverCard/index.css +31 -0
  187. package/dist/HoverCard/index.css.map +1 -0
  188. package/dist/HoverCard/index.d.ts +18 -0
  189. package/dist/HoverCard/index.js +3 -0
  190. package/dist/HoverCard/index.js.map +1 -0
  191. package/dist/ImageCropper/index.cjs +10 -0
  192. package/dist/ImageCropper/index.cjs.map +1 -0
  193. package/dist/ImageCropper/index.css +181 -0
  194. package/dist/ImageCropper/index.css.map +1 -0
  195. package/dist/ImageCropper/index.d.ts +45 -0
  196. package/dist/ImageCropper/index.js +4 -0
  197. package/dist/ImageCropper/index.js.map +1 -0
  198. package/dist/InfiniteScrollList/index.cjs +10 -0
  199. package/dist/InfiniteScrollList/index.cjs.map +1 -0
  200. package/dist/InfiniteScrollList/index.css +35 -0
  201. package/dist/InfiniteScrollList/index.css.map +1 -0
  202. package/dist/InfiniteScrollList/index.d.ts +28 -0
  203. package/dist/InfiniteScrollList/index.js +4 -0
  204. package/dist/InfiniteScrollList/index.js.map +1 -0
  205. package/dist/JsonDiffViewer/index.cjs +9 -0
  206. package/dist/JsonDiffViewer/index.cjs.map +1 -0
  207. package/dist/JsonDiffViewer/index.css +48 -0
  208. package/dist/JsonDiffViewer/index.css.map +1 -0
  209. package/dist/JsonDiffViewer/index.d.ts +14 -0
  210. package/dist/JsonDiffViewer/index.js +3 -0
  211. package/dist/JsonDiffViewer/index.js.map +1 -0
  212. package/dist/JsonEditor/index.cjs +11 -0
  213. package/dist/JsonEditor/index.cjs.map +1 -0
  214. package/dist/JsonEditor/index.css +230 -0
  215. package/dist/JsonEditor/index.css.map +1 -0
  216. package/dist/JsonEditor/index.d.ts +26 -0
  217. package/dist/JsonEditor/index.js +5 -0
  218. package/dist/JsonEditor/index.js.map +1 -0
  219. package/dist/JsonTree/index.cjs +9 -0
  220. package/dist/JsonTree/index.cjs.map +1 -0
  221. package/dist/JsonTree/index.css +58 -0
  222. package/dist/JsonTree/index.css.map +1 -0
  223. package/dist/JsonTree/index.d.ts +14 -0
  224. package/dist/JsonTree/index.js +3 -0
  225. package/dist/JsonTree/index.js.map +1 -0
  226. package/dist/KanbanBoard/index.cjs +9 -0
  227. package/dist/KanbanBoard/index.cjs.map +1 -0
  228. package/dist/KanbanBoard/index.css +80 -0
  229. package/dist/KanbanBoard/index.css.map +1 -0
  230. package/dist/KanbanBoard/index.d.ts +24 -0
  231. package/dist/KanbanBoard/index.js +3 -0
  232. package/dist/KanbanBoard/index.js.map +1 -0
  233. package/dist/KeyValEditor/index.cjs +10 -0
  234. package/dist/KeyValEditor/index.cjs.map +1 -0
  235. package/dist/KeyValEditor/index.css +72 -0
  236. package/dist/KeyValEditor/index.css.map +1 -0
  237. package/dist/KeyValEditor/index.d.ts +28 -0
  238. package/dist/KeyValEditor/index.js +4 -0
  239. package/dist/KeyValEditor/index.js.map +1 -0
  240. package/dist/Marquee/index.cjs +9 -0
  241. package/dist/Marquee/index.cjs.map +1 -0
  242. package/dist/Marquee/index.css +99 -0
  243. package/dist/Marquee/index.css.map +1 -0
  244. package/dist/Marquee/index.d.ts +27 -0
  245. package/dist/Marquee/index.js +3 -0
  246. package/dist/Marquee/index.js.map +1 -0
  247. package/dist/Masonry/index.cjs +9 -0
  248. package/dist/Masonry/index.cjs.map +1 -0
  249. package/dist/Masonry/index.css +15 -0
  250. package/dist/Masonry/index.css.map +1 -0
  251. package/dist/Masonry/index.d.ts +58 -0
  252. package/dist/Masonry/index.js +3 -0
  253. package/dist/Masonry/index.js.map +1 -0
  254. package/dist/MetricCard/index.cjs +10 -0
  255. package/dist/MetricCard/index.cjs.map +1 -0
  256. package/dist/MetricCard/index.css +105 -0
  257. package/dist/MetricCard/index.css.map +1 -0
  258. package/dist/MetricCard/index.d.ts +32 -0
  259. package/dist/MetricCard/index.js +4 -0
  260. package/dist/MetricCard/index.js.map +1 -0
  261. package/dist/MiniSparkline/index.cjs +9 -0
  262. package/dist/MiniSparkline/index.cjs.map +1 -0
  263. package/dist/MiniSparkline/index.css +11 -0
  264. package/dist/MiniSparkline/index.css.map +1 -0
  265. package/dist/MiniSparkline/index.d.ts +20 -0
  266. package/dist/MiniSparkline/index.js +3 -0
  267. package/dist/MiniSparkline/index.js.map +1 -0
  268. package/dist/NumberStepper/index.cjs +9 -0
  269. package/dist/NumberStepper/index.cjs.map +1 -0
  270. package/dist/NumberStepper/index.css +45 -0
  271. package/dist/NumberStepper/index.css.map +1 -0
  272. package/dist/NumberStepper/index.d.ts +24 -0
  273. package/dist/NumberStepper/index.js +3 -0
  274. package/dist/NumberStepper/index.js.map +1 -0
  275. package/dist/NumericRangeInput/index.cjs +9 -0
  276. package/dist/NumericRangeInput/index.cjs.map +1 -0
  277. package/dist/NumericRangeInput/index.css +87 -0
  278. package/dist/NumericRangeInput/index.css.map +1 -0
  279. package/dist/NumericRangeInput/index.d.ts +39 -0
  280. package/dist/NumericRangeInput/index.js +3 -0
  281. package/dist/NumericRangeInput/index.js.map +1 -0
  282. package/dist/PasswordStrength/index.cjs +19 -0
  283. package/dist/PasswordStrength/index.cjs.map +1 -0
  284. package/dist/PasswordStrength/index.css +66 -0
  285. package/dist/PasswordStrength/index.css.map +1 -0
  286. package/dist/PasswordStrength/index.d.ts +31 -0
  287. package/dist/PasswordStrength/index.js +4 -0
  288. package/dist/PasswordStrength/index.js.map +1 -0
  289. package/dist/PdfViewer/index.cjs +10 -0
  290. package/dist/PdfViewer/index.cjs.map +1 -0
  291. package/dist/PdfViewer/index.css +65 -0
  292. package/dist/PdfViewer/index.css.map +1 -0
  293. package/dist/PdfViewer/index.d.ts +20 -0
  294. package/dist/PdfViewer/index.js +4 -0
  295. package/dist/PdfViewer/index.js.map +1 -0
  296. package/dist/PhotoViewer/index.cjs +9 -0
  297. package/dist/PhotoViewer/index.cjs.map +1 -0
  298. package/dist/PhotoViewer/index.css +129 -0
  299. package/dist/PhotoViewer/index.css.map +1 -0
  300. package/dist/PhotoViewer/index.d.ts +23 -0
  301. package/dist/PhotoViewer/index.js +3 -0
  302. package/dist/PhotoViewer/index.js.map +1 -0
  303. package/dist/QrCodeCard/index.cjs +10 -0
  304. package/dist/QrCodeCard/index.cjs.map +1 -0
  305. package/dist/QrCodeCard/index.css +109 -0
  306. package/dist/QrCodeCard/index.css.map +1 -0
  307. package/dist/QrCodeCard/index.d.ts +27 -0
  308. package/dist/QrCodeCard/index.js +4 -0
  309. package/dist/QrCodeCard/index.js.map +1 -0
  310. package/dist/QuickDateRange/index.cjs +9 -0
  311. package/dist/QuickDateRange/index.cjs.map +1 -0
  312. package/dist/QuickDateRange/index.css +30 -0
  313. package/dist/QuickDateRange/index.css.map +1 -0
  314. package/dist/QuickDateRange/index.d.ts +22 -0
  315. package/dist/QuickDateRange/index.js +3 -0
  316. package/dist/QuickDateRange/index.js.map +1 -0
  317. package/dist/ScrollTracker/index.cjs +22 -0
  318. package/dist/ScrollTracker/index.cjs.map +1 -0
  319. package/dist/ScrollTracker/index.css +48 -0
  320. package/dist/ScrollTracker/index.css.map +1 -0
  321. package/dist/ScrollTracker/index.d.ts +37 -0
  322. package/dist/ScrollTracker/index.js +3 -0
  323. package/dist/ScrollTracker/index.js.map +1 -0
  324. package/dist/SegmentedProgress/index.cjs +9 -0
  325. package/dist/SegmentedProgress/index.cjs.map +1 -0
  326. package/dist/SegmentedProgress/index.css +42 -0
  327. package/dist/SegmentedProgress/index.css.map +1 -0
  328. package/dist/SegmentedProgress/index.d.ts +24 -0
  329. package/dist/SegmentedProgress/index.js +3 -0
  330. package/dist/SegmentedProgress/index.js.map +1 -0
  331. package/dist/SensitiveMask/index.cjs +20 -0
  332. package/dist/SensitiveMask/index.cjs.map +1 -0
  333. package/dist/SensitiveMask/index.css +149 -0
  334. package/dist/SensitiveMask/index.css.map +1 -0
  335. package/dist/SensitiveMask/index.d.ts +30 -0
  336. package/dist/SensitiveMask/index.js +5 -0
  337. package/dist/SensitiveMask/index.js.map +1 -0
  338. package/dist/ShimmerSkeleton/index.cjs +9 -0
  339. package/dist/ShimmerSkeleton/index.cjs.map +1 -0
  340. package/dist/ShimmerSkeleton/index.css +55 -0
  341. package/dist/ShimmerSkeleton/index.css.map +1 -0
  342. package/dist/ShimmerSkeleton/index.d.ts +19 -0
  343. package/dist/ShimmerSkeleton/index.js +3 -0
  344. package/dist/ShimmerSkeleton/index.js.map +1 -0
  345. package/dist/Splitter/index.cjs +10 -0
  346. package/dist/Splitter/index.cjs.map +1 -0
  347. package/dist/Splitter/index.d.ts +94 -0
  348. package/dist/Splitter/index.js +4 -0
  349. package/dist/Splitter/index.js.map +1 -0
  350. package/dist/SpotlightCard/index.cjs +9 -0
  351. package/dist/SpotlightCard/index.cjs.map +1 -0
  352. package/dist/SpotlightCard/index.css +34 -0
  353. package/dist/SpotlightCard/index.css.map +1 -0
  354. package/dist/SpotlightCard/index.d.ts +18 -0
  355. package/dist/SpotlightCard/index.js +3 -0
  356. package/dist/SpotlightCard/index.js.map +1 -0
  357. package/dist/StatusTimeline/index.cjs +9 -0
  358. package/dist/StatusTimeline/index.cjs.map +1 -0
  359. package/dist/StatusTimeline/index.css +111 -0
  360. package/dist/StatusTimeline/index.css.map +1 -0
  361. package/dist/StatusTimeline/index.d.ts +25 -0
  362. package/dist/StatusTimeline/index.js +3 -0
  363. package/dist/StatusTimeline/index.js.map +1 -0
  364. package/dist/TagInput/index.cjs +10 -0
  365. package/dist/TagInput/index.cjs.map +1 -0
  366. package/dist/TagInput/index.css +108 -0
  367. package/dist/TagInput/index.css.map +1 -0
  368. package/dist/TagInput/index.d.ts +32 -0
  369. package/dist/TagInput/index.js +4 -0
  370. package/dist/TagInput/index.js.map +1 -0
  371. package/dist/TextEllipsis/index.cjs +11 -0
  372. package/dist/TextEllipsis/index.cjs.map +1 -0
  373. package/dist/TextEllipsis/index.css +217 -0
  374. package/dist/TextEllipsis/index.css.map +1 -0
  375. package/dist/TextEllipsis/index.d.ts +34 -0
  376. package/dist/TextEllipsis/index.js +5 -0
  377. package/dist/TextEllipsis/index.js.map +1 -0
  378. package/dist/TiltCard/index.cjs +9 -0
  379. package/dist/TiltCard/index.cjs.map +1 -0
  380. package/dist/TiltCard/index.css +32 -0
  381. package/dist/TiltCard/index.css.map +1 -0
  382. package/dist/TiltCard/index.d.ts +20 -0
  383. package/dist/TiltCard/index.js +3 -0
  384. package/dist/TiltCard/index.js.map +1 -0
  385. package/dist/TreeFilterPanel/index.cjs +9 -0
  386. package/dist/TreeFilterPanel/index.cjs.map +1 -0
  387. package/dist/TreeFilterPanel/index.css +67 -0
  388. package/dist/TreeFilterPanel/index.css.map +1 -0
  389. package/dist/TreeFilterPanel/index.d.ts +27 -0
  390. package/dist/TreeFilterPanel/index.js +3 -0
  391. package/dist/TreeFilterPanel/index.js.map +1 -0
  392. package/dist/TreeTransfer/index.cjs +10 -0
  393. package/dist/TreeTransfer/index.cjs.map +1 -0
  394. package/dist/TreeTransfer/index.css +67 -0
  395. package/dist/TreeTransfer/index.css.map +1 -0
  396. package/dist/TreeTransfer/index.d.ts +27 -0
  397. package/dist/TreeTransfer/index.js +4 -0
  398. package/dist/TreeTransfer/index.js.map +1 -0
  399. package/dist/TrendIndicator/index.cjs +9 -0
  400. package/dist/TrendIndicator/index.cjs.map +1 -0
  401. package/dist/TrendIndicator/index.css +42 -0
  402. package/dist/TrendIndicator/index.css.map +1 -0
  403. package/dist/TrendIndicator/index.d.ts +22 -0
  404. package/dist/TrendIndicator/index.js +3 -0
  405. package/dist/TrendIndicator/index.js.map +1 -0
  406. package/dist/VideoPlayer/index.cjs +10 -0
  407. package/dist/VideoPlayer/index.cjs.map +1 -0
  408. package/dist/VideoPlayer/index.css +122 -0
  409. package/dist/VideoPlayer/index.css.map +1 -0
  410. package/dist/VideoPlayer/index.d.ts +24 -0
  411. package/dist/VideoPlayer/index.js +4 -0
  412. package/dist/VideoPlayer/index.js.map +1 -0
  413. package/dist/VirtualList/index.cjs +9 -0
  414. package/dist/VirtualList/index.cjs.map +1 -0
  415. package/dist/VirtualList/index.css +26 -0
  416. package/dist/VirtualList/index.css.map +1 -0
  417. package/dist/VirtualList/index.d.ts +22 -0
  418. package/dist/VirtualList/index.js +3 -0
  419. package/dist/VirtualList/index.js.map +1 -0
  420. package/dist/Watermark/index.cjs +9 -0
  421. package/dist/Watermark/index.cjs.map +1 -0
  422. package/dist/Watermark/index.css +24 -0
  423. package/dist/Watermark/index.css.map +1 -0
  424. package/dist/Watermark/index.d.ts +28 -0
  425. package/dist/Watermark/index.js +3 -0
  426. package/dist/Watermark/index.js.map +1 -0
  427. package/dist/chunk-2DIU347W.cjs +159 -0
  428. package/dist/chunk-2DIU347W.cjs.map +1 -0
  429. package/dist/chunk-2MDYHFLH.cjs +73 -0
  430. package/dist/chunk-2MDYHFLH.cjs.map +1 -0
  431. package/dist/chunk-2O2A5XYF.js +59 -0
  432. package/dist/chunk-2O2A5XYF.js.map +1 -0
  433. package/dist/chunk-2UCTE6YN.cjs +176 -0
  434. package/dist/chunk-2UCTE6YN.cjs.map +1 -0
  435. package/dist/chunk-3JJP4D5L.js +92 -0
  436. package/dist/chunk-3JJP4D5L.js.map +1 -0
  437. package/dist/chunk-3R3NOO4K.js +71 -0
  438. package/dist/chunk-3R3NOO4K.js.map +1 -0
  439. package/dist/chunk-3UNZXPOT.cjs +926 -0
  440. package/dist/chunk-3UNZXPOT.cjs.map +1 -0
  441. package/dist/chunk-4BDO5TJH.cjs +213 -0
  442. package/dist/chunk-4BDO5TJH.cjs.map +1 -0
  443. package/dist/chunk-4OXVTRYV.cjs +106 -0
  444. package/dist/chunk-4OXVTRYV.cjs.map +1 -0
  445. package/dist/chunk-56TD4LDC.js +125 -0
  446. package/dist/chunk-56TD4LDC.js.map +1 -0
  447. package/dist/chunk-5E36FGRP.cjs +98 -0
  448. package/dist/chunk-5E36FGRP.cjs.map +1 -0
  449. package/dist/chunk-5GLC2HU6.js +174 -0
  450. package/dist/chunk-5GLC2HU6.js.map +1 -0
  451. package/dist/chunk-5GOF5EZU.cjs +87 -0
  452. package/dist/chunk-5GOF5EZU.cjs.map +1 -0
  453. package/dist/chunk-5HIRDMZH.js +96 -0
  454. package/dist/chunk-5HIRDMZH.js.map +1 -0
  455. package/dist/chunk-5LA2NPLG.cjs +81 -0
  456. package/dist/chunk-5LA2NPLG.cjs.map +1 -0
  457. package/dist/chunk-5R2YXBXM.js +126 -0
  458. package/dist/chunk-5R2YXBXM.js.map +1 -0
  459. package/dist/chunk-5V4UAS6I.cjs +103 -0
  460. package/dist/chunk-5V4UAS6I.cjs.map +1 -0
  461. package/dist/chunk-5VSEUDVY.js +45 -0
  462. package/dist/chunk-5VSEUDVY.js.map +1 -0
  463. package/dist/chunk-5YQVSOHK.js +44 -0
  464. package/dist/chunk-5YQVSOHK.js.map +1 -0
  465. package/dist/chunk-64LBDDZU.js +104 -0
  466. package/dist/chunk-64LBDDZU.js.map +1 -0
  467. package/dist/chunk-6FVAQECF.js +103 -0
  468. package/dist/chunk-6FVAQECF.js.map +1 -0
  469. package/dist/chunk-6IXVUD2M.js +71 -0
  470. package/dist/chunk-6IXVUD2M.js.map +1 -0
  471. package/dist/chunk-6TKNFV4B.js +53 -0
  472. package/dist/chunk-6TKNFV4B.js.map +1 -0
  473. package/dist/chunk-6UKUAYN3.cjs +625 -0
  474. package/dist/chunk-6UKUAYN3.cjs.map +1 -0
  475. package/dist/chunk-6UTLBY6Y.js +51 -0
  476. package/dist/chunk-6UTLBY6Y.js.map +1 -0
  477. package/dist/chunk-7SIUSULP.cjs +103 -0
  478. package/dist/chunk-7SIUSULP.cjs.map +1 -0
  479. package/dist/chunk-A4LXKZQ5.js +80 -0
  480. package/dist/chunk-A4LXKZQ5.js.map +1 -0
  481. package/dist/chunk-AFR7V4A4.js +81 -0
  482. package/dist/chunk-AFR7V4A4.js.map +1 -0
  483. package/dist/chunk-AMCCRVHG.cjs +57 -0
  484. package/dist/chunk-AMCCRVHG.cjs.map +1 -0
  485. package/dist/chunk-B3HZIYQQ.cjs +46 -0
  486. package/dist/chunk-B3HZIYQQ.cjs.map +1 -0
  487. package/dist/chunk-B4VXFHER.js +63 -0
  488. package/dist/chunk-B4VXFHER.js.map +1 -0
  489. package/dist/chunk-B7NN6SZD.cjs +108 -0
  490. package/dist/chunk-B7NN6SZD.cjs.map +1 -0
  491. package/dist/chunk-BFQV5MYD.js +159 -0
  492. package/dist/chunk-BFQV5MYD.js.map +1 -0
  493. package/dist/chunk-BRHXKRG6.js +98 -0
  494. package/dist/chunk-BRHXKRG6.js.map +1 -0
  495. package/dist/chunk-BZXMWKD2.js +922 -0
  496. package/dist/chunk-BZXMWKD2.js.map +1 -0
  497. package/dist/chunk-CPQLXDBR.cjs +176 -0
  498. package/dist/chunk-CPQLXDBR.cjs.map +1 -0
  499. package/dist/chunk-CT66HLZ5.js +229 -0
  500. package/dist/chunk-CT66HLZ5.js.map +1 -0
  501. package/dist/chunk-D7ZE4NMX.cjs +30 -0
  502. package/dist/chunk-D7ZE4NMX.cjs.map +1 -0
  503. package/dist/chunk-DJQEBDEP.cjs +128 -0
  504. package/dist/chunk-DJQEBDEP.cjs.map +1 -0
  505. package/dist/chunk-EGZSSZBX.js +211 -0
  506. package/dist/chunk-EGZSSZBX.js.map +1 -0
  507. package/dist/chunk-EOGYWPX7.cjs +47 -0
  508. package/dist/chunk-EOGYWPX7.cjs.map +1 -0
  509. package/dist/chunk-EPYD35KB.cjs +99 -0
  510. package/dist/chunk-EPYD35KB.cjs.map +1 -0
  511. package/dist/chunk-EQ7S5SYM.js +67 -0
  512. package/dist/chunk-EQ7S5SYM.js.map +1 -0
  513. package/dist/chunk-ES3KKDLM.js +245 -0
  514. package/dist/chunk-ES3KKDLM.js.map +1 -0
  515. package/dist/chunk-EUOBMHFF.cjs +45 -0
  516. package/dist/chunk-EUOBMHFF.cjs.map +1 -0
  517. package/dist/chunk-F36V2QTN.js +28 -0
  518. package/dist/chunk-F36V2QTN.js.map +1 -0
  519. package/dist/chunk-F5X3V6A3.cjs +55 -0
  520. package/dist/chunk-F5X3V6A3.cjs.map +1 -0
  521. package/dist/chunk-FYFL4PFD.cjs +69 -0
  522. package/dist/chunk-FYFL4PFD.cjs.map +1 -0
  523. package/dist/chunk-GMZSBGSL.cjs +66 -0
  524. package/dist/chunk-GMZSBGSL.cjs.map +1 -0
  525. package/dist/chunk-GV2RRQ2S.cjs +45 -0
  526. package/dist/chunk-GV2RRQ2S.cjs.map +1 -0
  527. package/dist/chunk-H3AASAXK.cjs +82 -0
  528. package/dist/chunk-H3AASAXK.cjs.map +1 -0
  529. package/dist/chunk-HFPWBZID.js +89 -0
  530. package/dist/chunk-HFPWBZID.js.map +1 -0
  531. package/dist/chunk-HSYTBMLN.cjs +44 -0
  532. package/dist/chunk-HSYTBMLN.cjs.map +1 -0
  533. package/dist/chunk-HUXPCMNP.js +127 -0
  534. package/dist/chunk-HUXPCMNP.js.map +1 -0
  535. package/dist/chunk-HZERTFL6.js +97 -0
  536. package/dist/chunk-HZERTFL6.js.map +1 -0
  537. package/dist/chunk-IBI6AT5Z.js +37 -0
  538. package/dist/chunk-IBI6AT5Z.js.map +1 -0
  539. package/dist/chunk-IBOCJ2ZS.js +147 -0
  540. package/dist/chunk-IBOCJ2ZS.js.map +1 -0
  541. package/dist/chunk-IBYFOFSS.js +79 -0
  542. package/dist/chunk-IBYFOFSS.js.map +1 -0
  543. package/dist/chunk-IRU5E252.cjs +65 -0
  544. package/dist/chunk-IRU5E252.cjs.map +1 -0
  545. package/dist/chunk-ISUXPTLV.js +504 -0
  546. package/dist/chunk-ISUXPTLV.js.map +1 -0
  547. package/dist/chunk-J3IKUWXD.js +102 -0
  548. package/dist/chunk-J3IKUWXD.js.map +1 -0
  549. package/dist/chunk-JAW7Q2YC.cjs +127 -0
  550. package/dist/chunk-JAW7Q2YC.cjs.map +1 -0
  551. package/dist/chunk-JECYRODB.js +619 -0
  552. package/dist/chunk-JECYRODB.js.map +1 -0
  553. package/dist/chunk-JEDW76LI.cjs +107 -0
  554. package/dist/chunk-JEDW76LI.cjs.map +1 -0
  555. package/dist/chunk-K3JC52JH.cjs +49 -0
  556. package/dist/chunk-K3JC52JH.cjs.map +1 -0
  557. package/dist/chunk-KCXXUUWC.js +47 -0
  558. package/dist/chunk-KCXXUUWC.js.map +1 -0
  559. package/dist/chunk-KGZNVN7P.cjs +39 -0
  560. package/dist/chunk-KGZNVN7P.cjs.map +1 -0
  561. package/dist/chunk-KXZM322K.cjs +70 -0
  562. package/dist/chunk-KXZM322K.cjs.map +1 -0
  563. package/dist/chunk-L7X3RVEY.js +101 -0
  564. package/dist/chunk-L7X3RVEY.js.map +1 -0
  565. package/dist/chunk-LFXMUCEO.cjs +73 -0
  566. package/dist/chunk-LFXMUCEO.cjs.map +1 -0
  567. package/dist/chunk-LLWK5VKA.js +125 -0
  568. package/dist/chunk-LLWK5VKA.js.map +1 -0
  569. package/dist/chunk-MBOWSS4B.cjs +530 -0
  570. package/dist/chunk-MBOWSS4B.cjs.map +1 -0
  571. package/dist/chunk-MC3NERDH.js +43 -0
  572. package/dist/chunk-MC3NERDH.js.map +1 -0
  573. package/dist/chunk-MGUNFP6P.js +68 -0
  574. package/dist/chunk-MGUNFP6P.js.map +1 -0
  575. package/dist/chunk-MGYDOC76.cjs +81 -0
  576. package/dist/chunk-MGYDOC76.cjs.map +1 -0
  577. package/dist/chunk-MLYM5LAX.js +53 -0
  578. package/dist/chunk-MLYM5LAX.js.map +1 -0
  579. package/dist/chunk-MNY5P5EG.cjs +232 -0
  580. package/dist/chunk-MNY5P5EG.cjs.map +1 -0
  581. package/dist/chunk-MY4M7HVW.cjs +161 -0
  582. package/dist/chunk-MY4M7HVW.cjs.map +1 -0
  583. package/dist/chunk-NJIYP6SC.cjs +123 -0
  584. package/dist/chunk-NJIYP6SC.cjs.map +1 -0
  585. package/dist/chunk-NNS4YN3C.js +42 -0
  586. package/dist/chunk-NNS4YN3C.js.map +1 -0
  587. package/dist/chunk-NUTVJGVT.cjs +153 -0
  588. package/dist/chunk-NUTVJGVT.cjs.map +1 -0
  589. package/dist/chunk-O2YTJPG4.js +64 -0
  590. package/dist/chunk-O2YTJPG4.js.map +1 -0
  591. package/dist/chunk-OBK6XTUY.js +119 -0
  592. package/dist/chunk-OBK6XTUY.js.map +1 -0
  593. package/dist/chunk-OCN7L2ID.cjs +106 -0
  594. package/dist/chunk-OCN7L2ID.cjs.map +1 -0
  595. package/dist/chunk-ODNGFJVN.cjs +100 -0
  596. package/dist/chunk-ODNGFJVN.cjs.map +1 -0
  597. package/dist/chunk-ODV3XF5W.cjs +71 -0
  598. package/dist/chunk-ODV3XF5W.cjs.map +1 -0
  599. package/dist/chunk-OKCQZO5E.js +315 -0
  600. package/dist/chunk-OKCQZO5E.js.map +1 -0
  601. package/dist/chunk-PJB7ADK6.js +225 -0
  602. package/dist/chunk-PJB7ADK6.js.map +1 -0
  603. package/dist/chunk-PUJJHD22.js +106 -0
  604. package/dist/chunk-PUJJHD22.js.map +1 -0
  605. package/dist/chunk-PUTAVQJZ.js +286 -0
  606. package/dist/chunk-PUTAVQJZ.js.map +1 -0
  607. package/dist/chunk-QNSEJGF6.cjs +121 -0
  608. package/dist/chunk-QNSEJGF6.cjs.map +1 -0
  609. package/dist/chunk-QZZGBUW4.js +121 -0
  610. package/dist/chunk-QZZGBUW4.js.map +1 -0
  611. package/dist/chunk-RAF7I4A5.js +44 -0
  612. package/dist/chunk-RAF7I4A5.js.map +1 -0
  613. package/dist/chunk-RIR43PO3.js +69 -0
  614. package/dist/chunk-RIR43PO3.js.map +1 -0
  615. package/dist/chunk-TNKJCJ3U.cjs +94 -0
  616. package/dist/chunk-TNKJCJ3U.cjs.map +1 -0
  617. package/dist/chunk-UCG7ZVK5.cjs +46 -0
  618. package/dist/chunk-UCG7ZVK5.cjs.map +1 -0
  619. package/dist/chunk-V4O325BX.cjs +84 -0
  620. package/dist/chunk-V4O325BX.cjs.map +1 -0
  621. package/dist/chunk-V7IUSCQS.js +157 -0
  622. package/dist/chunk-V7IUSCQS.js.map +1 -0
  623. package/dist/chunk-VF5P7XMC.cjs +161 -0
  624. package/dist/chunk-VF5P7XMC.cjs.map +1 -0
  625. package/dist/chunk-VIJ3PXCW.cjs +104 -0
  626. package/dist/chunk-VIJ3PXCW.cjs.map +1 -0
  627. package/dist/chunk-VJM2XBHZ.cjs +31 -0
  628. package/dist/chunk-VJM2XBHZ.cjs.map +1 -0
  629. package/dist/chunk-VQKPZ4YE.cjs +251 -0
  630. package/dist/chunk-VQKPZ4YE.cjs.map +1 -0
  631. package/dist/chunk-VS2YVJOB.cjs +129 -0
  632. package/dist/chunk-VS2YVJOB.cjs.map +1 -0
  633. package/dist/chunk-WDHU3BSM.cjs +55 -0
  634. package/dist/chunk-WDHU3BSM.cjs.map +1 -0
  635. package/dist/chunk-WEGDIRDB.js +101 -0
  636. package/dist/chunk-WEGDIRDB.js.map +1 -0
  637. package/dist/chunk-WEOMKZC6.js +174 -0
  638. package/dist/chunk-WEOMKZC6.js.map +1 -0
  639. package/dist/chunk-WN557PFJ.js +122 -0
  640. package/dist/chunk-WN557PFJ.js.map +1 -0
  641. package/dist/chunk-WWXBH57R.cjs +95 -0
  642. package/dist/chunk-WWXBH57R.cjs.map +1 -0
  643. package/dist/chunk-WZ2GV4HA.js +49 -0
  644. package/dist/chunk-WZ2GV4HA.js.map +1 -0
  645. package/dist/chunk-WZRUBHS3.cjs +231 -0
  646. package/dist/chunk-WZRUBHS3.cjs.map +1 -0
  647. package/dist/chunk-X2F2DVMB.js +85 -0
  648. package/dist/chunk-X2F2DVMB.js.map +1 -0
  649. package/dist/chunk-XOMV26WS.js +105 -0
  650. package/dist/chunk-XOMV26WS.js.map +1 -0
  651. package/dist/chunk-XWHITF5V.cjs +31 -0
  652. package/dist/chunk-XWHITF5V.cjs.map +1 -0
  653. package/dist/chunk-XWXFENGT.js +159 -0
  654. package/dist/chunk-XWXFENGT.js.map +1 -0
  655. package/dist/chunk-Y7A3WQQN.js +79 -0
  656. package/dist/chunk-Y7A3WQQN.js.map +1 -0
  657. package/dist/chunk-YFHKH6HL.js +43 -0
  658. package/dist/chunk-YFHKH6HL.js.map +1 -0
  659. package/dist/chunk-YXTLWTY4.js +29 -0
  660. package/dist/chunk-YXTLWTY4.js.map +1 -0
  661. package/dist/chunk-ZFBLVX7E.cjs +51 -0
  662. package/dist/chunk-ZFBLVX7E.cjs.map +1 -0
  663. package/dist/chunk-ZKM664KC.cjs +126 -0
  664. package/dist/chunk-ZKM664KC.cjs.map +1 -0
  665. package/dist/chunk-ZLHNRKOQ.js +29 -0
  666. package/dist/chunk-ZLHNRKOQ.js.map +1 -0
  667. package/dist/chunk-ZLWY7QS2.cjs +292 -0
  668. package/dist/chunk-ZLWY7QS2.cjs.map +1 -0
  669. package/dist/chunk-ZNFW6L3E.cjs +321 -0
  670. package/dist/chunk-ZNFW6L3E.cjs.map +1 -0
  671. package/dist/chunk-ZUW3XLZQ.cjs +131 -0
  672. package/dist/chunk-ZUW3XLZQ.cjs.map +1 -0
  673. package/dist/chunk-ZVSN7ADO.cjs +61 -0
  674. package/dist/chunk-ZVSN7ADO.cjs.map +1 -0
  675. package/dist/index.cjs +334 -8101
  676. package/dist/index.cjs.map +1 -1
  677. package/dist/index.css +79 -11
  678. package/dist/index.css.map +1 -1
  679. package/dist/index.js +63 -8026
  680. package/dist/index.js.map +1 -1
  681. package/dist/src/icons.d.ts +70 -0
  682. package/dist/src/index.d.ts +124 -0
  683. package/dist/tsup.config.d.ts +2 -0
  684. package/dist/vite.config.d.ts +2 -0
  685. package/package.json +17 -3
  686. package/dist/index.d.cts +0 -1624
  687. package/dist/index.d.ts +0 -1624
@@ -0,0 +1,922 @@
1
+ import { CloseCircleFilled, DownOutlined } from './chunk-ISUXPTLV.js';
2
+ import { useState, useRef, useCallback, useEffect } from 'react';
3
+ import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
4
+
5
+ // ColorPicker/Color.ts
6
+ var parseGradientStops = (gradientStr) => {
7
+ let clean = gradientStr.trim();
8
+ if (clean.toLowerCase().startsWith("linear-gradient")) {
9
+ const match = clean.match(/linear-gradient\([^,]+,\s*(.+)\)$/i);
10
+ if (match) {
11
+ clean = match[1];
12
+ }
13
+ }
14
+ const parts = clean.split(/,\s*(?=[a-zA-Z#])/);
15
+ const stops = [];
16
+ parts.forEach((part, index) => {
17
+ const percentMatch = part.match(/\s+(\d+(?:\.\d+)?)%\s*$/);
18
+ let percent = index === 0 ? 0 : 100;
19
+ let colorStr = part;
20
+ if (percentMatch) {
21
+ percent = parseFloat(percentMatch[1]);
22
+ colorStr = part.replace(/\s+\d+(?:\.\d+)?%\s*$/, "").trim();
23
+ }
24
+ stops.push({
25
+ color: generateColor(colorStr),
26
+ percent
27
+ });
28
+ });
29
+ if (stops.length === 0) {
30
+ return [
31
+ { color: generateColor("rgb(16,142,233)"), percent: 0 },
32
+ { color: generateColor("rgb(135,208,104)"), percent: 100 }
33
+ ];
34
+ }
35
+ return stops;
36
+ };
37
+ var formatGradientCss = (stops) => {
38
+ const sorted = [...stops].sort((a, b) => a.percent - b.percent);
39
+ return `linear-gradient(90deg, ${sorted.map((s) => `${s.color.toCssString()} ${s.percent}%`).join(", ")})`;
40
+ };
41
+ var formatGradientText = (stops) => {
42
+ const sorted = [...stops].sort((a, b) => a.percent - b.percent);
43
+ return sorted.map((s) => `${s.color.toCssString()} ${s.percent}%`).join(", ");
44
+ };
45
+ var Color = class _Color {
46
+ // 0 ~ 1
47
+ constructor(colorInput) {
48
+ this.h = 0;
49
+ // 0 ~ 360
50
+ this.s = 0;
51
+ // 0 ~ 100
52
+ this.b = 0;
53
+ // 0 ~ 100
54
+ this.a = 1;
55
+ var _a, _b;
56
+ if (!colorInput) {
57
+ this.h = 215;
58
+ this.s = 91;
59
+ this.b = 100;
60
+ this.a = 1;
61
+ return;
62
+ }
63
+ if (colorInput instanceof _Color) {
64
+ this.h = colorInput.h;
65
+ this.s = colorInput.s;
66
+ this.b = colorInput.b;
67
+ this.a = colorInput.a;
68
+ return;
69
+ }
70
+ if (typeof colorInput === "string") {
71
+ const parsed = _Color.parseString(colorInput);
72
+ this.h = parsed.h;
73
+ this.s = parsed.s;
74
+ this.b = parsed.b;
75
+ this.a = parsed.a;
76
+ return;
77
+ }
78
+ if (typeof colorInput === "object") {
79
+ if ("r" in colorInput && "g" in colorInput && "b" in colorInput) {
80
+ const hsb = _Color.rgbToHsb(colorInput.r, colorInput.g, colorInput.b, (_a = colorInput.a) != null ? _a : 1);
81
+ this.h = hsb.h;
82
+ this.s = hsb.s;
83
+ this.b = hsb.b;
84
+ this.a = hsb.a;
85
+ } else if ("h" in colorInput && "s" in colorInput && "b" in colorInput) {
86
+ this.h = Math.min(360, Math.max(0, colorInput.h));
87
+ this.s = Math.min(100, Math.max(0, colorInput.s));
88
+ this.b = Math.min(100, Math.max(0, colorInput.b));
89
+ this.a = Math.min(1, Math.max(0, (_b = colorInput.a) != null ? _b : 1));
90
+ }
91
+ }
92
+ }
93
+ static rgbToHsb(r, g, b, a = 1) {
94
+ const rNorm = r / 255;
95
+ const gNorm = g / 255;
96
+ const bNorm = b / 255;
97
+ const max = Math.max(rNorm, gNorm, bNorm);
98
+ const min = Math.min(rNorm, gNorm, bNorm);
99
+ const delta = max - min;
100
+ let h = 0;
101
+ if (delta !== 0) {
102
+ if (max === rNorm) {
103
+ h = (gNorm - bNorm) / delta % 6;
104
+ } else if (max === gNorm) {
105
+ h = (bNorm - rNorm) / delta + 2;
106
+ } else {
107
+ h = (rNorm - gNorm) / delta + 4;
108
+ }
109
+ h = Math.round(h * 60);
110
+ if (h < 0) h += 360;
111
+ }
112
+ const s = max === 0 ? 0 : Math.round(delta / max * 100);
113
+ const v = Math.round(max * 100);
114
+ return { h, s, b: v, a };
115
+ }
116
+ static hsbToRgb(h, s, b, a = 1) {
117
+ const sNorm = s / 100;
118
+ const vNorm = b / 100;
119
+ const c = vNorm * sNorm;
120
+ const x = c * (1 - Math.abs(h / 60 % 2 - 1));
121
+ const m = vNorm - c;
122
+ let rPrime = 0;
123
+ let gPrime = 0;
124
+ let bPrime = 0;
125
+ if (h >= 0 && h < 60) {
126
+ rPrime = c;
127
+ gPrime = x;
128
+ bPrime = 0;
129
+ } else if (h >= 60 && h < 120) {
130
+ rPrime = x;
131
+ gPrime = c;
132
+ bPrime = 0;
133
+ } else if (h >= 120 && h < 180) {
134
+ rPrime = 0;
135
+ gPrime = c;
136
+ bPrime = x;
137
+ } else if (h >= 180 && h < 240) {
138
+ rPrime = 0;
139
+ gPrime = x;
140
+ bPrime = c;
141
+ } else if (h >= 240 && h < 300) {
142
+ rPrime = x;
143
+ gPrime = 0;
144
+ bPrime = c;
145
+ } else if (h >= 300 && h <= 360) {
146
+ rPrime = c;
147
+ gPrime = 0;
148
+ bPrime = x;
149
+ }
150
+ const r = Math.round((rPrime + m) * 255);
151
+ const g = Math.round((gPrime + m) * 255);
152
+ const bRes = Math.round((bPrime + m) * 255);
153
+ return { r, g, b: bRes, a };
154
+ }
155
+ static parseString(str) {
156
+ const trimmed = str.trim().toLowerCase();
157
+ if (trimmed.startsWith("#")) {
158
+ let hex = trimmed.slice(1);
159
+ if (hex.length === 3) {
160
+ hex = hex.split("").map((c) => c + c).join("");
161
+ }
162
+ if (hex.length === 6) {
163
+ const r = parseInt(hex.slice(0, 2), 16);
164
+ const g = parseInt(hex.slice(2, 4), 16);
165
+ const b = parseInt(hex.slice(4, 6), 16);
166
+ return _Color.rgbToHsb(r, g, b, 1);
167
+ }
168
+ if (hex.length === 8) {
169
+ const r = parseInt(hex.slice(0, 2), 16);
170
+ const g = parseInt(hex.slice(2, 4), 16);
171
+ const b = parseInt(hex.slice(4, 6), 16);
172
+ const a = parseInt(hex.slice(6, 8), 16) / 255;
173
+ return _Color.rgbToHsb(r, g, b, a);
174
+ }
175
+ }
176
+ const rgbMatch = trimmed.match(
177
+ /^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)(?:\s*,\s*([\d.]+))?\s*\)$/
178
+ );
179
+ if (rgbMatch) {
180
+ const r = parseInt(rgbMatch[1], 10);
181
+ const g = parseInt(rgbMatch[2], 10);
182
+ const b = parseInt(rgbMatch[3], 10);
183
+ const a = rgbMatch[4] !== void 0 ? parseFloat(rgbMatch[4]) : 1;
184
+ return _Color.rgbToHsb(r, g, b, a);
185
+ }
186
+ const hsbMatch = trimmed.match(
187
+ /^hsba?\(\s*(\d+)\s*,\s*(\d+)%?\s*,\s*(\d+)%?(?:\s*,\s*([\d.]+))?\s*\)$/
188
+ );
189
+ if (hsbMatch) {
190
+ const h = parseInt(hsbMatch[1], 10);
191
+ const s = parseInt(hsbMatch[2], 10);
192
+ const b = parseInt(hsbMatch[3], 10);
193
+ const a = hsbMatch[4] !== void 0 ? parseFloat(hsbMatch[4]) : 1;
194
+ return { h, s, b, a };
195
+ }
196
+ return { h: 215, s: 91, b: 100, a: 1 };
197
+ }
198
+ toRgb() {
199
+ return _Color.hsbToRgb(this.h, this.s, this.b, this.a);
200
+ }
201
+ toRgbString() {
202
+ const { r, g, b, a } = this.toRgb();
203
+ if (a < 1) {
204
+ return `rgba(${r}, ${g}, ${b}, ${Number(a.toFixed(2))})`;
205
+ }
206
+ return `rgb(${r}, ${g}, ${b})`;
207
+ }
208
+ toHsb() {
209
+ return {
210
+ h: Math.round(this.h),
211
+ s: Math.round(this.s),
212
+ b: Math.round(this.b),
213
+ a: Number(this.a.toFixed(2))
214
+ };
215
+ }
216
+ toHsbString() {
217
+ const { h, s, b, a } = this.toHsb();
218
+ if (a < 1) {
219
+ return `hsba(${h}, ${s}%, ${b}%, ${a})`;
220
+ }
221
+ return `hsb(${h}, ${s}%, ${b}%)`;
222
+ }
223
+ toHex() {
224
+ const { r, g, b } = this.toRgb();
225
+ const rHex = r.toString(16).padStart(2, "0");
226
+ const gHex = g.toString(16).padStart(2, "0");
227
+ const bHex = b.toString(16).padStart(2, "0");
228
+ return `${rHex}${gHex}${bHex}`;
229
+ }
230
+ toHexString() {
231
+ return `#${this.toHex()}`;
232
+ }
233
+ toCssString() {
234
+ if (this.a < 1) {
235
+ return this.toRgbString();
236
+ }
237
+ return this.toHexString();
238
+ }
239
+ };
240
+ var generateColor = (color) => {
241
+ if (color instanceof Color) {
242
+ return color;
243
+ }
244
+ return new Color(color);
245
+ };
246
+ var ColorPicker = (props) => {
247
+ var _a, _b, _c, _d;
248
+ const {
249
+ allowClear = false,
250
+ arrow = true,
251
+ children,
252
+ defaultValue = "#1677ff",
253
+ defaultFormat = "hex",
254
+ disabled = false,
255
+ disabledAlpha = false,
256
+ disabledFormat = false,
257
+ destroyOnHidden = false,
258
+ format,
259
+ mode = "single",
260
+ open,
261
+ presets,
262
+ placement = "bottomLeft",
263
+ panelRender,
264
+ showText,
265
+ size = "middle",
266
+ trigger = "click",
267
+ value,
268
+ onChange,
269
+ onChangeComplete,
270
+ onFormatChange,
271
+ onOpenChange,
272
+ onClear,
273
+ className = "",
274
+ style,
275
+ ...restProps
276
+ } = props;
277
+ const modeOptions = Array.isArray(mode) ? mode : mode === "gradient" ? ["gradient"] : ["single"];
278
+ const [activeMode, setActiveMode] = useState((_a = modeOptions[0]) != null ? _a : "single");
279
+ const [internalOpen, setInternalOpen] = useState(false);
280
+ const isOpen = open !== void 0 ? open : internalOpen;
281
+ const [gradientStops, setGradientStops] = useState(() => {
282
+ if (typeof defaultValue === "string" && defaultValue.includes("%")) {
283
+ return parseGradientStops(defaultValue);
284
+ }
285
+ return [
286
+ { color: generateColor("rgb(16, 142, 233)"), percent: 0 },
287
+ { color: generateColor("rgb(135, 208, 104)"), percent: 100 }
288
+ ];
289
+ });
290
+ const [activeStopIndex, setActiveStopIndex] = useState(0);
291
+ const [internalColor, setInternalColor] = useState(() => generateColor(defaultValue));
292
+ const currentColor = activeMode === "gradient" ? (_c = (_b = gradientStops[activeStopIndex]) == null ? void 0 : _b.color) != null ? _c : internalColor : value !== void 0 ? generateColor(value) : internalColor;
293
+ const [internalFormat, setInternalFormat] = useState(defaultFormat);
294
+ const currentFormat = format !== void 0 ? format : internalFormat;
295
+ const containerRef = useRef(null);
296
+ const paletteRef = useRef(null);
297
+ const hueSliderRef = useRef(null);
298
+ const alphaSliderRef = useRef(null);
299
+ const gradientRailRef = useRef(null);
300
+ const isDraggingRef = useRef(false);
301
+ const handleOpenChange = useCallback(
302
+ (nextOpen) => {
303
+ if (disabled) return;
304
+ if (open === void 0) {
305
+ setInternalOpen(nextOpen);
306
+ }
307
+ onOpenChange == null ? void 0 : onOpenChange(nextOpen);
308
+ },
309
+ [disabled, open, onOpenChange]
310
+ );
311
+ const updateColor = useCallback(
312
+ (nextColor, isComplete = false) => {
313
+ if (activeMode === "gradient") {
314
+ const nextStops = [...gradientStops];
315
+ nextStops[activeStopIndex] = {
316
+ ...nextStops[activeStopIndex],
317
+ color: nextColor
318
+ };
319
+ setGradientStops(nextStops);
320
+ const cssStr = formatGradientCss(nextStops);
321
+ onChange == null ? void 0 : onChange(nextColor, cssStr);
322
+ if (isComplete) {
323
+ onChangeComplete == null ? void 0 : onChangeComplete(nextColor);
324
+ }
325
+ return;
326
+ }
327
+ if (value === void 0) {
328
+ setInternalColor(nextColor);
329
+ }
330
+ onChange == null ? void 0 : onChange(nextColor, nextColor.toCssString());
331
+ if (isComplete) {
332
+ onChangeComplete == null ? void 0 : onChangeComplete(nextColor);
333
+ }
334
+ },
335
+ [activeMode, gradientStops, activeStopIndex, value, onChange, onChangeComplete]
336
+ );
337
+ const currentColorRef = useRef(currentColor);
338
+ currentColorRef.current = currentColor;
339
+ const updateColorRef = useRef(updateColor);
340
+ updateColorRef.current = updateColor;
341
+ useEffect(() => {
342
+ if (!isOpen) return;
343
+ const handleClickOutside = (e) => {
344
+ if (containerRef.current && !containerRef.current.contains(e.target)) {
345
+ handleOpenChange(false);
346
+ }
347
+ };
348
+ document.addEventListener("mousedown", handleClickOutside);
349
+ return () => {
350
+ document.removeEventListener("mousedown", handleClickOutside);
351
+ };
352
+ }, [isOpen, handleOpenChange]);
353
+ const handlePaletteDrag = useCallback((e) => {
354
+ if (!paletteRef.current) return;
355
+ const rect = paletteRef.current.getBoundingClientRect();
356
+ const x = Math.max(0, Math.min(rect.width, e.clientX - rect.left));
357
+ const y = Math.max(0, Math.min(rect.height, e.clientY - rect.top));
358
+ const s = Math.round(x / rect.width * 100);
359
+ const b = Math.round((1 - y / rect.height) * 100);
360
+ const curr = currentColorRef.current;
361
+ const targetAlpha = curr.a === 0 ? 1 : curr.a;
362
+ const newColor = new Color({
363
+ h: curr.h,
364
+ s,
365
+ b,
366
+ a: targetAlpha
367
+ });
368
+ updateColorRef.current(newColor);
369
+ }, []);
370
+ const handlePaletteMouseDown = (e) => {
371
+ e.preventDefault();
372
+ isDraggingRef.current = true;
373
+ handlePaletteDrag(e);
374
+ const handleMouseMove = (moveEvent) => {
375
+ if (isDraggingRef.current) {
376
+ handlePaletteDrag(moveEvent);
377
+ }
378
+ };
379
+ const handleMouseUp = () => {
380
+ if (isDraggingRef.current) {
381
+ isDraggingRef.current = false;
382
+ onChangeComplete == null ? void 0 : onChangeComplete(currentColorRef.current);
383
+ }
384
+ window.removeEventListener("mousemove", handleMouseMove);
385
+ window.removeEventListener("mouseup", handleMouseUp);
386
+ };
387
+ window.addEventListener("mousemove", handleMouseMove);
388
+ window.addEventListener("mouseup", handleMouseUp);
389
+ };
390
+ const handleHueDrag = useCallback((e) => {
391
+ if (!hueSliderRef.current) return;
392
+ const rect = hueSliderRef.current.getBoundingClientRect();
393
+ const x = Math.max(0, Math.min(rect.width, e.clientX - rect.left));
394
+ const h = Math.round(x / rect.width * 360);
395
+ const curr = currentColorRef.current;
396
+ const targetAlpha = curr.a === 0 ? 1 : curr.a;
397
+ const newColor = new Color({
398
+ h: h === 360 ? 0 : h,
399
+ s: curr.s,
400
+ b: curr.b,
401
+ a: targetAlpha
402
+ });
403
+ updateColorRef.current(newColor);
404
+ }, []);
405
+ const handleHueMouseDown = (e) => {
406
+ e.preventDefault();
407
+ handleHueDrag(e);
408
+ const handleMouseMove = (moveEvent) => {
409
+ handleHueDrag(moveEvent);
410
+ };
411
+ const handleMouseUp = () => {
412
+ onChangeComplete == null ? void 0 : onChangeComplete(currentColorRef.current);
413
+ window.removeEventListener("mousemove", handleMouseMove);
414
+ window.removeEventListener("mouseup", handleMouseUp);
415
+ };
416
+ window.addEventListener("mousemove", handleMouseMove);
417
+ window.addEventListener("mouseup", handleMouseUp);
418
+ };
419
+ const handleAlphaDrag = useCallback((e) => {
420
+ if (!alphaSliderRef.current) return;
421
+ const rect = alphaSliderRef.current.getBoundingClientRect();
422
+ const x = Math.max(0, Math.min(rect.width, e.clientX - rect.left));
423
+ const a = Number((x / rect.width).toFixed(2));
424
+ const curr = currentColorRef.current;
425
+ const newColor = new Color({
426
+ h: curr.h,
427
+ s: curr.s,
428
+ b: curr.b,
429
+ a
430
+ });
431
+ updateColorRef.current(newColor);
432
+ }, []);
433
+ const handleAlphaMouseDown = (e) => {
434
+ e.preventDefault();
435
+ handleAlphaDrag(e);
436
+ const handleMouseMove = (moveEvent) => {
437
+ handleAlphaDrag(moveEvent);
438
+ };
439
+ const handleMouseUp = () => {
440
+ onChangeComplete == null ? void 0 : onChangeComplete(currentColorRef.current);
441
+ window.removeEventListener("mousemove", handleMouseMove);
442
+ window.removeEventListener("mouseup", handleMouseUp);
443
+ };
444
+ window.addEventListener("mousemove", handleMouseMove);
445
+ window.addEventListener("mouseup", handleMouseUp);
446
+ };
447
+ const handleGradientStopDrag = useCallback(
448
+ (index, e) => {
449
+ if (!gradientRailRef.current) return;
450
+ const rect = gradientRailRef.current.getBoundingClientRect();
451
+ const x = Math.max(0, Math.min(rect.width, e.clientX - rect.left));
452
+ const percent = Math.round(x / rect.width * 100);
453
+ const nextStops = [...gradientStops];
454
+ nextStops[index] = {
455
+ ...nextStops[index],
456
+ percent
457
+ };
458
+ setGradientStops(nextStops);
459
+ onChange == null ? void 0 : onChange(nextStops[index].color, formatGradientCss(nextStops));
460
+ },
461
+ [gradientStops, onChange]
462
+ );
463
+ const handleGradientStopMouseDown = (index, e) => {
464
+ e.stopPropagation();
465
+ e.preventDefault();
466
+ setActiveStopIndex(index);
467
+ const handleMouseMove = (moveEvent) => {
468
+ handleGradientStopDrag(index, moveEvent);
469
+ };
470
+ const handleMouseUp = () => {
471
+ window.removeEventListener("mousemove", handleMouseMove);
472
+ window.removeEventListener("mouseup", handleMouseUp);
473
+ };
474
+ window.addEventListener("mousemove", handleMouseMove);
475
+ window.addEventListener("mouseup", handleMouseUp);
476
+ };
477
+ const handleGradientRailClick = (e) => {
478
+ if (!gradientRailRef.current) return;
479
+ const rect = gradientRailRef.current.getBoundingClientRect();
480
+ const x = Math.max(0, Math.min(rect.width, e.clientX - rect.left));
481
+ const percent = Math.round(x / rect.width * 100);
482
+ const newStopColor = generateColor("#1677ff");
483
+ const nextStops = [...gradientStops, { color: newStopColor, percent }];
484
+ setGradientStops(nextStops);
485
+ setActiveStopIndex(nextStops.length - 1);
486
+ onChange == null ? void 0 : onChange(newStopColor, formatGradientCss(nextStops));
487
+ };
488
+ const handleFormatSelectChange = (newFormat) => {
489
+ if (format === void 0) {
490
+ setInternalFormat(newFormat);
491
+ }
492
+ onFormatChange == null ? void 0 : onFormatChange(newFormat);
493
+ };
494
+ const handleClearClick = (e) => {
495
+ e.stopPropagation();
496
+ const cleared = new Color({ h: 0, s: 0, b: 100, a: 0 });
497
+ updateColor(cleared, true);
498
+ onClear == null ? void 0 : onClear();
499
+ };
500
+ const renderPickerContent = () => {
501
+ const hueColor = new Color({ h: currentColor.h, s: 100, b: 100, a: 1 }).toHexString();
502
+ return /* @__PURE__ */ jsxs("div", { className: "react-public-color-picker-panel-body", children: [
503
+ (modeOptions.length > 1 || allowClear && !disabled) && /* @__PURE__ */ jsxs("div", { className: "react-public-color-picker-panel-header", children: [
504
+ modeOptions.length > 1 ? /* @__PURE__ */ jsxs("div", { className: "react-public-color-picker-mode-segmented", children: [
505
+ /* @__PURE__ */ jsx(
506
+ "div",
507
+ {
508
+ className: `react-public-color-picker-mode-option ${activeMode === "single" ? "active" : ""}`,
509
+ onClick: () => setActiveMode("single"),
510
+ children: "\u5355\u8272"
511
+ }
512
+ ),
513
+ /* @__PURE__ */ jsx(
514
+ "div",
515
+ {
516
+ className: `react-public-color-picker-mode-option ${activeMode === "gradient" ? "active" : ""}`,
517
+ onClick: () => setActiveMode("gradient"),
518
+ children: "\u6E10\u53D8"
519
+ }
520
+ )
521
+ ] }) : /* @__PURE__ */ jsx("div", {}),
522
+ allowClear && !disabled && /* @__PURE__ */ jsx(
523
+ "div",
524
+ {
525
+ className: "react-public-color-picker-panel-clear-btn",
526
+ onClick: handleClearClick,
527
+ title: "\u6E05\u9664\u989C\u8272",
528
+ children: /* @__PURE__ */ jsx("svg", { viewBox: "0 0 24 24", width: "14", height: "14", fill: "none", children: /* @__PURE__ */ jsx(
529
+ "line",
530
+ {
531
+ x1: "4",
532
+ y1: "4",
533
+ x2: "20",
534
+ y2: "20",
535
+ stroke: "#ff4d4f",
536
+ strokeWidth: "2.5",
537
+ strokeLinecap: "round"
538
+ }
539
+ ) })
540
+ }
541
+ )
542
+ ] }),
543
+ activeMode === "gradient" && /* @__PURE__ */ jsxs(
544
+ "div",
545
+ {
546
+ ref: gradientRailRef,
547
+ className: "react-public-color-picker-gradient-slider",
548
+ onClick: handleGradientRailClick,
549
+ children: [
550
+ /* @__PURE__ */ jsx(
551
+ "div",
552
+ {
553
+ className: "react-public-color-picker-gradient-bg",
554
+ style: { background: formatGradientCss(gradientStops) }
555
+ }
556
+ ),
557
+ gradientStops.map((stop, idx) => /* @__PURE__ */ jsx(
558
+ "div",
559
+ {
560
+ className: `react-public-color-picker-gradient-stop-handle ${activeStopIndex === idx ? "active" : ""}`,
561
+ style: {
562
+ left: `${stop.percent}%`,
563
+ backgroundColor: stop.color.toCssString()
564
+ },
565
+ onMouseDown: (e) => handleGradientStopMouseDown(idx, e)
566
+ },
567
+ idx
568
+ ))
569
+ ]
570
+ }
571
+ ),
572
+ /* @__PURE__ */ jsxs(
573
+ "div",
574
+ {
575
+ ref: paletteRef,
576
+ className: "react-public-color-picker-palette",
577
+ style: { backgroundColor: hueColor },
578
+ onMouseDown: handlePaletteMouseDown,
579
+ children: [
580
+ /* @__PURE__ */ jsx("div", { className: "react-public-color-picker-saturation-bg" }),
581
+ /* @__PURE__ */ jsx("div", { className: "react-public-color-picker-brightness-bg" }),
582
+ /* @__PURE__ */ jsx(
583
+ "div",
584
+ {
585
+ className: "react-public-color-picker-handler",
586
+ style: {
587
+ left: `${currentColor.s}%`,
588
+ top: `${100 - currentColor.b}%`,
589
+ backgroundColor: currentColor.toCssString()
590
+ }
591
+ }
592
+ )
593
+ ]
594
+ }
595
+ ),
596
+ /* @__PURE__ */ jsxs("div", { className: "react-public-color-picker-slider-container", children: [
597
+ /* @__PURE__ */ jsxs("div", { className: "react-public-color-picker-slider-group", children: [
598
+ /* @__PURE__ */ jsx(
599
+ "div",
600
+ {
601
+ ref: hueSliderRef,
602
+ className: "react-public-color-picker-slider react-public-color-picker-hue-slider",
603
+ onMouseDown: handleHueMouseDown,
604
+ children: /* @__PURE__ */ jsx(
605
+ "div",
606
+ {
607
+ className: "react-public-color-picker-slider-handler",
608
+ style: {
609
+ left: `${currentColor.h / 360 * 100}%`,
610
+ backgroundColor: hueColor
611
+ }
612
+ }
613
+ )
614
+ }
615
+ ),
616
+ !disabledAlpha && /* @__PURE__ */ jsxs(
617
+ "div",
618
+ {
619
+ ref: alphaSliderRef,
620
+ className: "react-public-color-picker-slider react-public-color-picker-alpha-slider",
621
+ onMouseDown: handleAlphaMouseDown,
622
+ children: [
623
+ /* @__PURE__ */ jsx(
624
+ "div",
625
+ {
626
+ className: "react-public-color-picker-alpha-bg",
627
+ style: {
628
+ background: `linear-gradient(to right, transparent, ${new Color({
629
+ h: currentColor.h,
630
+ s: currentColor.s,
631
+ b: currentColor.b,
632
+ a: 1
633
+ }).toHexString()})`
634
+ }
635
+ }
636
+ ),
637
+ /* @__PURE__ */ jsx(
638
+ "div",
639
+ {
640
+ className: "react-public-color-picker-slider-handler",
641
+ style: {
642
+ left: `${currentColor.a * 100}%`,
643
+ backgroundColor: currentColor.toCssString()
644
+ }
645
+ }
646
+ )
647
+ ]
648
+ }
649
+ )
650
+ ] }),
651
+ /* @__PURE__ */ jsx("div", { className: "react-public-color-picker-side-block", children: /* @__PURE__ */ jsx(
652
+ "div",
653
+ {
654
+ className: "react-public-color-picker-color-inner",
655
+ style: activeMode === "gradient" ? { background: formatGradientCss(gradientStops) } : { backgroundColor: currentColor.toCssString() }
656
+ }
657
+ ) })
658
+ ] }),
659
+ !disabledFormat && /* @__PURE__ */ jsxs("div", { className: "react-public-color-picker-inputs", children: [
660
+ /* @__PURE__ */ jsxs(
661
+ "select",
662
+ {
663
+ className: "react-public-color-picker-format-select",
664
+ value: currentFormat,
665
+ onChange: (e) => handleFormatSelectChange(e.target.value),
666
+ children: [
667
+ /* @__PURE__ */ jsx("option", { value: "hex", children: "HEX" }),
668
+ /* @__PURE__ */ jsx("option", { value: "rgb", children: "RGB" }),
669
+ /* @__PURE__ */ jsx("option", { value: "hsb", children: "HSB" })
670
+ ]
671
+ }
672
+ ),
673
+ currentFormat === "hex" && /* @__PURE__ */ jsx(
674
+ "input",
675
+ {
676
+ className: "react-public-color-picker-input-field",
677
+ value: currentColor.toHex(),
678
+ onChange: (e) => {
679
+ const val = e.target.value;
680
+ const newC = new Color(`#${val}`);
681
+ newC.a = currentColor.a;
682
+ updateColor(newC, true);
683
+ }
684
+ }
685
+ ),
686
+ currentFormat === "rgb" && /* @__PURE__ */ jsx(
687
+ "input",
688
+ {
689
+ className: "react-public-color-picker-input-field",
690
+ value: `${currentColor.toRgb().r}, ${currentColor.toRgb().g}, ${currentColor.toRgb().b}`,
691
+ onChange: (e) => {
692
+ const parts = e.target.value.split(",").map((v) => parseInt(v.trim(), 10));
693
+ if (parts.length >= 3 && !parts.some((n) => isNaN(n))) {
694
+ const newC = new Color({
695
+ r: parts[0],
696
+ g: parts[1],
697
+ b: parts[2],
698
+ a: currentColor.a
699
+ });
700
+ updateColor(newC, true);
701
+ }
702
+ }
703
+ }
704
+ ),
705
+ currentFormat === "hsb" && /* @__PURE__ */ jsx(
706
+ "input",
707
+ {
708
+ className: "react-public-color-picker-input-field",
709
+ value: `${currentColor.h}\xB0, ${currentColor.s}%, ${currentColor.b}%`,
710
+ onChange: (e) => {
711
+ const parts = e.target.value.replace(/[%°]/g, "").split(",").map((v) => parseInt(v.trim(), 10));
712
+ if (parts.length >= 3 && !parts.some((n) => isNaN(n))) {
713
+ const newC = new Color({
714
+ h: parts[0],
715
+ s: parts[1],
716
+ b: parts[2],
717
+ a: currentColor.a
718
+ });
719
+ updateColor(newC, true);
720
+ }
721
+ }
722
+ }
723
+ ),
724
+ !disabledAlpha && /* @__PURE__ */ jsx(
725
+ "input",
726
+ {
727
+ className: "react-public-color-picker-alpha-input",
728
+ value: `${Math.round(currentColor.a * 100)}%`,
729
+ onChange: (e) => {
730
+ const val = parseInt(e.target.value.replace("%", ""), 10);
731
+ if (!isNaN(val)) {
732
+ const newA = Math.max(0, Math.min(1, val / 100));
733
+ const newC = new Color({
734
+ h: currentColor.h,
735
+ s: currentColor.s,
736
+ b: currentColor.b,
737
+ a: newA
738
+ });
739
+ updateColor(newC, true);
740
+ }
741
+ }
742
+ }
743
+ )
744
+ ] })
745
+ ] });
746
+ };
747
+ const [collapsedPresets, setCollapsedPresets] = useState({});
748
+ const togglePresetCollapse = (idx) => {
749
+ setCollapsedPresets((prev) => ({
750
+ ...prev,
751
+ [idx]: !prev[idx]
752
+ }));
753
+ };
754
+ const renderPresetsContent = (isStandalone = false) => {
755
+ if (!presets || presets.length === 0) return null;
756
+ return /* @__PURE__ */ jsx(
757
+ "div",
758
+ {
759
+ className: `react-public-color-picker-presets ${isStandalone ? "react-public-color-picker-presets-standalone" : ""}`,
760
+ children: presets.map((preset, idx) => {
761
+ var _a2, _b2;
762
+ const isCollapsed = (_a2 = collapsedPresets[idx]) != null ? _a2 : preset.defaultOpen === false;
763
+ return /* @__PURE__ */ jsxs("div", { style: { marginBottom: 8 }, children: [
764
+ preset.label && /* @__PURE__ */ jsxs(
765
+ "div",
766
+ {
767
+ className: "react-public-color-picker-preset-title",
768
+ onClick: () => togglePresetCollapse(idx),
769
+ children: [
770
+ /* @__PURE__ */ jsx(
771
+ DownOutlined,
772
+ {
773
+ style: {
774
+ fontSize: 10,
775
+ color: "#8c8c8c",
776
+ transition: "transform 0.2s ease",
777
+ transform: isCollapsed ? "rotate(-90deg)" : "rotate(0deg)"
778
+ }
779
+ }
780
+ ),
781
+ preset.label
782
+ ]
783
+ }
784
+ ),
785
+ !isCollapsed && /* @__PURE__ */ jsx("div", { className: "react-public-color-picker-preset-colors", children: preset.colors.map((c, colorIdx) => {
786
+ const presetColor = generateColor(c);
787
+ return /* @__PURE__ */ jsx(
788
+ "div",
789
+ {
790
+ className: "react-public-color-picker-preset-item",
791
+ onClick: () => updateColor(presetColor, true),
792
+ title: presetColor.toCssString(),
793
+ children: /* @__PURE__ */ jsx(
794
+ "div",
795
+ {
796
+ className: "react-public-color-picker-preset-item-inner",
797
+ style: { backgroundColor: presetColor.toCssString() }
798
+ }
799
+ )
800
+ },
801
+ colorIdx
802
+ );
803
+ }) })
804
+ ] }, (_b2 = preset.key) != null ? _b2 : idx);
805
+ })
806
+ }
807
+ );
808
+ };
809
+ const defaultPanel = /* @__PURE__ */ jsxs("div", { children: [
810
+ renderPickerContent(),
811
+ renderPresetsContent(true)
812
+ ] });
813
+ const finalPanel = panelRender ? panelRender(defaultPanel, {
814
+ components: {
815
+ Picker: renderPickerContent,
816
+ Presets: () => renderPresetsContent(false)
817
+ }
818
+ }) : defaultPanel;
819
+ const triggerBgStyle = activeMode === "gradient" ? { background: formatGradientCss(gradientStops) } : { backgroundColor: currentColor.toCssString() };
820
+ const renderText = () => {
821
+ if (!showText) return null;
822
+ if (typeof showText === "function") {
823
+ return showText(activeMode === "gradient" ? gradientStops : currentColor);
824
+ }
825
+ const textContent = activeMode === "gradient" ? formatGradientText(gradientStops) : currentColor.toCssString();
826
+ return /* @__PURE__ */ jsx("span", { style: { fontSize: 13, color: "#595959" }, children: textContent });
827
+ };
828
+ const renderCustomTrigger = () => {
829
+ if (!children) return null;
830
+ if (typeof children === "function") {
831
+ return children(currentColor);
832
+ }
833
+ return children;
834
+ };
835
+ const triggerProps = {
836
+ onClick: () => {
837
+ if (trigger === "click") {
838
+ handleOpenChange(!isOpen);
839
+ }
840
+ },
841
+ onMouseEnter: () => {
842
+ if (trigger === "hover") {
843
+ handleOpenChange(true);
844
+ }
845
+ },
846
+ onMouseLeave: () => {
847
+ if (trigger === "hover") {
848
+ handleOpenChange(false);
849
+ }
850
+ }
851
+ };
852
+ const showArrow = typeof arrow === "boolean" ? arrow : (_d = arrow == null ? void 0 : arrow.pointAtCenter) != null ? _d : true;
853
+ if (destroyOnHidden && !isOpen) {
854
+ return /* @__PURE__ */ jsx(
855
+ "div",
856
+ {
857
+ ref: containerRef,
858
+ className: `react-public-color-picker-trigger react-public-color-picker-size-${size} ${disabled ? "react-public-color-picker-disabled" : ""} ${className}`.trim(),
859
+ style,
860
+ ...triggerProps,
861
+ ...restProps,
862
+ children: children ? renderCustomTrigger() : /* @__PURE__ */ jsxs(Fragment, { children: [
863
+ /* @__PURE__ */ jsx("div", { className: "react-public-color-picker-color-block", children: /* @__PURE__ */ jsx("div", { className: "react-public-color-picker-color-inner", style: triggerBgStyle }) }),
864
+ renderText()
865
+ ] })
866
+ }
867
+ );
868
+ }
869
+ return /* @__PURE__ */ jsxs(
870
+ "div",
871
+ {
872
+ ref: containerRef,
873
+ style: { position: "relative", display: "inline-block" },
874
+ ...triggerProps,
875
+ children: [
876
+ /* @__PURE__ */ jsxs(
877
+ "div",
878
+ {
879
+ className: `react-public-color-picker-trigger react-public-color-picker-size-${size} ${disabled ? "react-public-color-picker-disabled" : ""} ${className}`.trim(),
880
+ style,
881
+ ...restProps,
882
+ children: [
883
+ children ? renderCustomTrigger() : /* @__PURE__ */ jsxs(Fragment, { children: [
884
+ /* @__PURE__ */ jsx("div", { className: "react-public-color-picker-color-block", children: /* @__PURE__ */ jsx("div", { className: "react-public-color-picker-color-inner", style: triggerBgStyle }) }),
885
+ renderText()
886
+ ] }),
887
+ allowClear && !disabled && /* @__PURE__ */ jsx(
888
+ CloseCircleFilled,
889
+ {
890
+ className: "react-public-color-picker-clear-icon",
891
+ onClick: handleClearClick
892
+ }
893
+ )
894
+ ]
895
+ }
896
+ ),
897
+ isOpen && /* @__PURE__ */ jsxs(
898
+ "div",
899
+ {
900
+ className: `react-public-color-picker-popover react-public-color-picker-popover-${placement}`,
901
+ style: {
902
+ top: placement.startsWith("bottom") ? "calc(100% + 8px)" : void 0,
903
+ bottom: placement.startsWith("top") ? "calc(100% + 8px)" : void 0,
904
+ left: placement.endsWith("Left") || placement === "bottom" ? 0 : void 0,
905
+ right: placement.endsWith("Right") ? 0 : void 0
906
+ },
907
+ onClick: (e) => e.stopPropagation(),
908
+ children: [
909
+ showArrow && /* @__PURE__ */ jsx("div", { className: "react-public-color-picker-arrow" }),
910
+ finalPanel
911
+ ]
912
+ }
913
+ )
914
+ ]
915
+ }
916
+ );
917
+ };
918
+ var ColorPicker_default = ColorPicker;
919
+
920
+ export { Color, ColorPicker_default, generateColor };
921
+ //# sourceMappingURL=chunk-BZXMWKD2.js.map
922
+ //# sourceMappingURL=chunk-BZXMWKD2.js.map