react-public-components 1.2.1 → 1.2.2

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 (685) 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 +63 -0
  46. package/dist/CodeSnippet/index.css.map +1 -0
  47. package/dist/CodeSnippet/index.d.ts +14 -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 +10 -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-24ND5WB7.cjs +69 -0
  428. package/dist/chunk-24ND5WB7.cjs.map +1 -0
  429. package/dist/chunk-2ARM7X7A.js +44 -0
  430. package/dist/chunk-2ARM7X7A.js.map +1 -0
  431. package/dist/chunk-2ORGQ2IY.js +153 -0
  432. package/dist/chunk-2ORGQ2IY.js.map +1 -0
  433. package/dist/chunk-3JJP4D5L.js +92 -0
  434. package/dist/chunk-3JJP4D5L.js.map +1 -0
  435. package/dist/chunk-4DUMEO5E.cjs +107 -0
  436. package/dist/chunk-4DUMEO5E.cjs.map +1 -0
  437. package/dist/chunk-4GQ3X7MG.cjs +241 -0
  438. package/dist/chunk-4GQ3X7MG.cjs.map +1 -0
  439. package/dist/chunk-4IBF4R3H.cjs +66 -0
  440. package/dist/chunk-4IBF4R3H.cjs.map +1 -0
  441. package/dist/chunk-4MRZVLM6.cjs +103 -0
  442. package/dist/chunk-4MRZVLM6.cjs.map +1 -0
  443. package/dist/chunk-4VGH44DT.js +69 -0
  444. package/dist/chunk-4VGH44DT.js.map +1 -0
  445. package/dist/chunk-4YPT2HUD.cjs +61 -0
  446. package/dist/chunk-4YPT2HUD.cjs.map +1 -0
  447. package/dist/chunk-5G3XVLJF.js +71 -0
  448. package/dist/chunk-5G3XVLJF.js.map +1 -0
  449. package/dist/chunk-5GCEQDBM.cjs +99 -0
  450. package/dist/chunk-5GCEQDBM.cjs.map +1 -0
  451. package/dist/chunk-5GOF5EZU.cjs +87 -0
  452. package/dist/chunk-5GOF5EZU.cjs.map +1 -0
  453. package/dist/chunk-5LA2NPLG.cjs +81 -0
  454. package/dist/chunk-5LA2NPLG.cjs.map +1 -0
  455. package/dist/chunk-5MQCVYVD.js +33 -0
  456. package/dist/chunk-5MQCVYVD.js.map +1 -0
  457. package/dist/chunk-5NI6HK5V.js +159 -0
  458. package/dist/chunk-5NI6HK5V.js.map +1 -0
  459. package/dist/chunk-5WHBZH44.cjs +127 -0
  460. package/dist/chunk-5WHBZH44.cjs.map +1 -0
  461. package/dist/chunk-5YQVSOHK.js +44 -0
  462. package/dist/chunk-5YQVSOHK.js.map +1 -0
  463. package/dist/chunk-62NPVN7T.js +229 -0
  464. package/dist/chunk-62NPVN7T.js.map +1 -0
  465. package/dist/chunk-6OKTK3AQ.cjs +108 -0
  466. package/dist/chunk-6OKTK3AQ.cjs.map +1 -0
  467. package/dist/chunk-6TKNFV4B.js +53 -0
  468. package/dist/chunk-6TKNFV4B.js.map +1 -0
  469. package/dist/chunk-7AKHSOSZ.js +134 -0
  470. package/dist/chunk-7AKHSOSZ.js.map +1 -0
  471. package/dist/chunk-7JLQOQJZ.cjs +106 -0
  472. package/dist/chunk-7JLQOQJZ.cjs.map +1 -0
  473. package/dist/chunk-7JRGQL63.js +59 -0
  474. package/dist/chunk-7JRGQL63.js.map +1 -0
  475. package/dist/chunk-A4LXKZQ5.js +80 -0
  476. package/dist/chunk-A4LXKZQ5.js.map +1 -0
  477. package/dist/chunk-AIIXJB34.js +125 -0
  478. package/dist/chunk-AIIXJB34.js.map +1 -0
  479. package/dist/chunk-AJIIY2QT.cjs +161 -0
  480. package/dist/chunk-AJIIY2QT.cjs.map +1 -0
  481. package/dist/chunk-AVSFSS7S.cjs +924 -0
  482. package/dist/chunk-AVSFSS7S.cjs.map +1 -0
  483. package/dist/chunk-AXHJC7FV.js +106 -0
  484. package/dist/chunk-AXHJC7FV.js.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-BXFP7EAW.cjs +176 -0
  490. package/dist/chunk-BXFP7EAW.cjs.map +1 -0
  491. package/dist/chunk-C5B5Y4S2.cjs +292 -0
  492. package/dist/chunk-C5B5Y4S2.cjs.map +1 -0
  493. package/dist/chunk-D7ZE4NMX.cjs +30 -0
  494. package/dist/chunk-D7ZE4NMX.cjs.map +1 -0
  495. package/dist/chunk-DATPWEQK.cjs +73 -0
  496. package/dist/chunk-DATPWEQK.cjs.map +1 -0
  497. package/dist/chunk-DFHFXKR5.cjs +113 -0
  498. package/dist/chunk-DFHFXKR5.cjs.map +1 -0
  499. package/dist/chunk-DKTB6PKI.js +44 -0
  500. package/dist/chunk-DKTB6PKI.js.map +1 -0
  501. package/dist/chunk-DNRZCHZG.js +110 -0
  502. package/dist/chunk-DNRZCHZG.js.map +1 -0
  503. package/dist/chunk-EIFN6XMU.cjs +117 -0
  504. package/dist/chunk-EIFN6XMU.cjs.map +1 -0
  505. package/dist/chunk-EJNMH7ND.js +122 -0
  506. package/dist/chunk-EJNMH7ND.js.map +1 -0
  507. package/dist/chunk-ELI3LL3K.cjs +76 -0
  508. package/dist/chunk-ELI3LL3K.cjs.map +1 -0
  509. package/dist/chunk-EQ7S5SYM.js +67 -0
  510. package/dist/chunk-EQ7S5SYM.js.map +1 -0
  511. package/dist/chunk-ES3KKDLM.js +245 -0
  512. package/dist/chunk-ES3KKDLM.js.map +1 -0
  513. package/dist/chunk-F36V2QTN.js +28 -0
  514. package/dist/chunk-F36V2QTN.js.map +1 -0
  515. package/dist/chunk-F42Z33L7.cjs +103 -0
  516. package/dist/chunk-F42Z33L7.cjs.map +1 -0
  517. package/dist/chunk-F5X3V6A3.cjs +55 -0
  518. package/dist/chunk-F5X3V6A3.cjs.map +1 -0
  519. package/dist/chunk-FBOTWA6O.cjs +97 -0
  520. package/dist/chunk-FBOTWA6O.cjs.map +1 -0
  521. package/dist/chunk-FRGH3Q75.cjs +159 -0
  522. package/dist/chunk-FRGH3Q75.cjs.map +1 -0
  523. package/dist/chunk-FWRVCH7T.js +37 -0
  524. package/dist/chunk-FWRVCH7T.js.map +1 -0
  525. package/dist/chunk-FYFL4PFD.cjs +69 -0
  526. package/dist/chunk-FYFL4PFD.cjs.map +1 -0
  527. package/dist/chunk-G564WB32.cjs +57 -0
  528. package/dist/chunk-G564WB32.cjs.map +1 -0
  529. package/dist/chunk-GCMI5JGQ.cjs +126 -0
  530. package/dist/chunk-GCMI5JGQ.cjs.map +1 -0
  531. package/dist/chunk-GZCNFM6C.js +234 -0
  532. package/dist/chunk-GZCNFM6C.js.map +1 -0
  533. package/dist/chunk-H3AASAXK.cjs +82 -0
  534. package/dist/chunk-H3AASAXK.cjs.map +1 -0
  535. package/dist/chunk-H5VPBP7U.js +115 -0
  536. package/dist/chunk-H5VPBP7U.js.map +1 -0
  537. package/dist/chunk-HQ65GEM7.js +127 -0
  538. package/dist/chunk-HQ65GEM7.js.map +1 -0
  539. package/dist/chunk-HSYTBMLN.cjs +44 -0
  540. package/dist/chunk-HSYTBMLN.cjs.map +1 -0
  541. package/dist/chunk-HTA5EG6X.cjs +625 -0
  542. package/dist/chunk-HTA5EG6X.cjs.map +1 -0
  543. package/dist/chunk-I3HBI52O.js +67 -0
  544. package/dist/chunk-I3HBI52O.js.map +1 -0
  545. package/dist/chunk-IECISUOZ.js +920 -0
  546. package/dist/chunk-IECISUOZ.js.map +1 -0
  547. package/dist/chunk-IRU5E252.cjs +65 -0
  548. package/dist/chunk-IRU5E252.cjs.map +1 -0
  549. package/dist/chunk-IUR7SPDA.js +322 -0
  550. package/dist/chunk-IUR7SPDA.js.map +1 -0
  551. package/dist/chunk-J3IKUWXD.js +102 -0
  552. package/dist/chunk-J3IKUWXD.js.map +1 -0
  553. package/dist/chunk-JD4TEUIV.js +47 -0
  554. package/dist/chunk-JD4TEUIV.js.map +1 -0
  555. package/dist/chunk-K3JC52JH.cjs +49 -0
  556. package/dist/chunk-K3JC52JH.cjs.map +1 -0
  557. package/dist/chunk-K5FWY6HB.cjs +129 -0
  558. package/dist/chunk-K5FWY6HB.cjs.map +1 -0
  559. package/dist/chunk-KBBLTGIU.js +73 -0
  560. package/dist/chunk-KBBLTGIU.js.map +1 -0
  561. package/dist/chunk-KCXXUUWC.js +47 -0
  562. package/dist/chunk-KCXXUUWC.js.map +1 -0
  563. package/dist/chunk-KUW2ZR2A.cjs +183 -0
  564. package/dist/chunk-KUW2ZR2A.cjs.map +1 -0
  565. package/dist/chunk-L7ULSFW6.cjs +35 -0
  566. package/dist/chunk-L7ULSFW6.cjs.map +1 -0
  567. package/dist/chunk-LBEGRYTP.js +219 -0
  568. package/dist/chunk-LBEGRYTP.js.map +1 -0
  569. package/dist/chunk-N7IQ6LYD.cjs +71 -0
  570. package/dist/chunk-N7IQ6LYD.cjs.map +1 -0
  571. package/dist/chunk-NCNDJTOK.js +101 -0
  572. package/dist/chunk-NCNDJTOK.js.map +1 -0
  573. package/dist/chunk-NFC2C2TD.js +181 -0
  574. package/dist/chunk-NFC2C2TD.js.map +1 -0
  575. package/dist/chunk-NMYXVZQP.cjs +121 -0
  576. package/dist/chunk-NMYXVZQP.cjs.map +1 -0
  577. package/dist/chunk-NNS4YN3C.js +42 -0
  578. package/dist/chunk-NNS4YN3C.js.map +1 -0
  579. package/dist/chunk-ODV3XF5W.cjs +71 -0
  580. package/dist/chunk-ODV3XF5W.cjs.map +1 -0
  581. package/dist/chunk-OJEZ3TKT.js +119 -0
  582. package/dist/chunk-OJEZ3TKT.js.map +1 -0
  583. package/dist/chunk-OYRX4AY6.js +159 -0
  584. package/dist/chunk-OYRX4AY6.js.map +1 -0
  585. package/dist/chunk-PBPGBVQQ.cjs +98 -0
  586. package/dist/chunk-PBPGBVQQ.cjs.map +1 -0
  587. package/dist/chunk-PIIJVF5D.cjs +108 -0
  588. package/dist/chunk-PIIJVF5D.cjs.map +1 -0
  589. package/dist/chunk-PMNTOEXC.js +97 -0
  590. package/dist/chunk-PMNTOEXC.js.map +1 -0
  591. package/dist/chunk-PVKBGP6Q.js +174 -0
  592. package/dist/chunk-PVKBGP6Q.js.map +1 -0
  593. package/dist/chunk-Q4QF6UYX.cjs +520 -0
  594. package/dist/chunk-Q4QF6UYX.cjs.map +1 -0
  595. package/dist/chunk-QI7XQDFZ.cjs +221 -0
  596. package/dist/chunk-QI7XQDFZ.cjs.map +1 -0
  597. package/dist/chunk-QKSCFVN2.js +96 -0
  598. package/dist/chunk-QKSCFVN2.js.map +1 -0
  599. package/dist/chunk-R77VVMV5.cjs +328 -0
  600. package/dist/chunk-R77VVMV5.cjs.map +1 -0
  601. package/dist/chunk-R7CRWOHG.js +101 -0
  602. package/dist/chunk-R7CRWOHG.js.map +1 -0
  603. package/dist/chunk-RIR43PO3.js +69 -0
  604. package/dist/chunk-RIR43PO3.js.map +1 -0
  605. package/dist/chunk-RTAQSOVE.cjs +161 -0
  606. package/dist/chunk-RTAQSOVE.cjs.map +1 -0
  607. package/dist/chunk-RWZSTG6Q.cjs +131 -0
  608. package/dist/chunk-RWZSTG6Q.cjs.map +1 -0
  609. package/dist/chunk-SMVAHIBN.cjs +46 -0
  610. package/dist/chunk-SMVAHIBN.cjs.map +1 -0
  611. package/dist/chunk-TGSKTHTV.js +494 -0
  612. package/dist/chunk-TGSKTHTV.js.map +1 -0
  613. package/dist/chunk-TNKJCJ3U.cjs +94 -0
  614. package/dist/chunk-TNKJCJ3U.cjs.map +1 -0
  615. package/dist/chunk-U2TTRBES.js +286 -0
  616. package/dist/chunk-U2TTRBES.js.map +1 -0
  617. package/dist/chunk-UT5UXO44.js +125 -0
  618. package/dist/chunk-UT5UXO44.js.map +1 -0
  619. package/dist/chunk-VIJ3PXCW.cjs +104 -0
  620. package/dist/chunk-VIJ3PXCW.cjs.map +1 -0
  621. package/dist/chunk-VJM2XBHZ.cjs +31 -0
  622. package/dist/chunk-VJM2XBHZ.cjs.map +1 -0
  623. package/dist/chunk-VPHHGQWP.js +104 -0
  624. package/dist/chunk-VPHHGQWP.js.map +1 -0
  625. package/dist/chunk-VQKPZ4YE.cjs +251 -0
  626. package/dist/chunk-VQKPZ4YE.cjs.map +1 -0
  627. package/dist/chunk-VTANPKPT.js +71 -0
  628. package/dist/chunk-VTANPKPT.js.map +1 -0
  629. package/dist/chunk-W6BUNUQM.cjs +46 -0
  630. package/dist/chunk-W6BUNUQM.cjs.map +1 -0
  631. package/dist/chunk-WBN5SAY5.js +53 -0
  632. package/dist/chunk-WBN5SAY5.js.map +1 -0
  633. package/dist/chunk-WWL4VEPH.js +51 -0
  634. package/dist/chunk-WWL4VEPH.js.map +1 -0
  635. package/dist/chunk-WZ2GV4HA.js +49 -0
  636. package/dist/chunk-WZ2GV4HA.js.map +1 -0
  637. package/dist/chunk-X2F2DVMB.js +85 -0
  638. package/dist/chunk-X2F2DVMB.js.map +1 -0
  639. package/dist/chunk-X4MEHYWV.js +105 -0
  640. package/dist/chunk-X4MEHYWV.js.map +1 -0
  641. package/dist/chunk-X7EE5DXL.js +64 -0
  642. package/dist/chunk-X7EE5DXL.js.map +1 -0
  643. package/dist/chunk-XB3BT6BU.js +619 -0
  644. package/dist/chunk-XB3BT6BU.js.map +1 -0
  645. package/dist/chunk-XMBTKO5I.cjs +136 -0
  646. package/dist/chunk-XMBTKO5I.cjs.map +1 -0
  647. package/dist/chunk-XO6PBAAM.cjs +73 -0
  648. package/dist/chunk-XO6PBAAM.cjs.map +1 -0
  649. package/dist/chunk-XWHITF5V.cjs +31 -0
  650. package/dist/chunk-XWHITF5V.cjs.map +1 -0
  651. package/dist/chunk-XYJMP23P.cjs +159 -0
  652. package/dist/chunk-XYJMP23P.cjs.map +1 -0
  653. package/dist/chunk-Y7A3WQQN.js +79 -0
  654. package/dist/chunk-Y7A3WQQN.js.map +1 -0
  655. package/dist/chunk-YJESCN4Y.cjs +39 -0
  656. package/dist/chunk-YJESCN4Y.cjs.map +1 -0
  657. package/dist/chunk-YPVRTMX6.js +91 -0
  658. package/dist/chunk-YPVRTMX6.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-Z5LFRNNJ.js +157 -0
  662. package/dist/chunk-Z5LFRNNJ.js.map +1 -0
  663. package/dist/chunk-ZAHKA2V2.js +106 -0
  664. package/dist/chunk-ZAHKA2V2.js.map +1 -0
  665. package/dist/chunk-ZFBLVX7E.cjs +51 -0
  666. package/dist/chunk-ZFBLVX7E.cjs.map +1 -0
  667. package/dist/chunk-ZGWBLJ6U.cjs +55 -0
  668. package/dist/chunk-ZGWBLJ6U.cjs.map +1 -0
  669. package/dist/chunk-ZLHNRKOQ.js +29 -0
  670. package/dist/chunk-ZLHNRKOQ.js.map +1 -0
  671. package/dist/chunk-ZQBEQK2I.cjs +231 -0
  672. package/dist/chunk-ZQBEQK2I.cjs.map +1 -0
  673. package/dist/chunk-ZSK74QFN.cjs +49 -0
  674. package/dist/chunk-ZSK74QFN.cjs.map +1 -0
  675. package/dist/index.cjs +334 -8101
  676. package/dist/index.cjs.map +1 -1
  677. package/dist/index.js +63 -8026
  678. package/dist/index.js.map +1 -1
  679. package/dist/src/icons.d.ts +70 -0
  680. package/dist/src/index.d.ts +124 -0
  681. package/dist/tsup.config.d.ts +2 -0
  682. package/dist/vite.config.d.ts +2 -0
  683. package/package.json +17 -3
  684. package/dist/index.d.cts +0 -1624
  685. package/dist/index.d.ts +0 -1624
@@ -0,0 +1,924 @@
1
+ 'use strict';
2
+
3
+ var chunkQ4QF6UYX_cjs = require('./chunk-Q4QF6UYX.cjs');
4
+ var react = require('react');
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+
7
+ // ColorPicker/Color.ts
8
+ var parseGradientStops = (gradientStr) => {
9
+ let clean = gradientStr.trim();
10
+ if (clean.toLowerCase().startsWith("linear-gradient")) {
11
+ const match = clean.match(/linear-gradient\([^,]+,\s*(.+)\)$/i);
12
+ if (match) {
13
+ clean = match[1];
14
+ }
15
+ }
16
+ const parts = clean.split(/,\s*(?=[a-zA-Z#])/);
17
+ const stops = [];
18
+ parts.forEach((part, index) => {
19
+ const percentMatch = part.match(/\s+(\d+(?:\.\d+)?)%\s*$/);
20
+ let percent = index === 0 ? 0 : 100;
21
+ let colorStr = part;
22
+ if (percentMatch) {
23
+ percent = parseFloat(percentMatch[1]);
24
+ colorStr = part.replace(/\s+\d+(?:\.\d+)?%\s*$/, "").trim();
25
+ }
26
+ stops.push({
27
+ color: generateColor(colorStr),
28
+ percent
29
+ });
30
+ });
31
+ if (stops.length === 0) {
32
+ return [
33
+ { color: generateColor("rgb(16,142,233)"), percent: 0 },
34
+ { color: generateColor("rgb(135,208,104)"), percent: 100 }
35
+ ];
36
+ }
37
+ return stops;
38
+ };
39
+ var formatGradientCss = (stops) => {
40
+ const sorted = [...stops].sort((a, b) => a.percent - b.percent);
41
+ return `linear-gradient(90deg, ${sorted.map((s) => `${s.color.toCssString()} ${s.percent}%`).join(", ")})`;
42
+ };
43
+ var formatGradientText = (stops) => {
44
+ const sorted = [...stops].sort((a, b) => a.percent - b.percent);
45
+ return sorted.map((s) => `${s.color.toCssString()} ${s.percent}%`).join(", ");
46
+ };
47
+ var Color = class _Color {
48
+ // 0 ~ 1
49
+ constructor(colorInput) {
50
+ this.h = 0;
51
+ // 0 ~ 360
52
+ this.s = 0;
53
+ // 0 ~ 100
54
+ this.b = 0;
55
+ // 0 ~ 100
56
+ this.a = 1;
57
+ var _a, _b;
58
+ if (!colorInput) {
59
+ this.h = 215;
60
+ this.s = 91;
61
+ this.b = 100;
62
+ this.a = 1;
63
+ return;
64
+ }
65
+ if (colorInput instanceof _Color) {
66
+ this.h = colorInput.h;
67
+ this.s = colorInput.s;
68
+ this.b = colorInput.b;
69
+ this.a = colorInput.a;
70
+ return;
71
+ }
72
+ if (typeof colorInput === "string") {
73
+ const parsed = _Color.parseString(colorInput);
74
+ this.h = parsed.h;
75
+ this.s = parsed.s;
76
+ this.b = parsed.b;
77
+ this.a = parsed.a;
78
+ return;
79
+ }
80
+ if (typeof colorInput === "object") {
81
+ if ("r" in colorInput && "g" in colorInput && "b" in colorInput) {
82
+ const hsb = _Color.rgbToHsb(colorInput.r, colorInput.g, colorInput.b, (_a = colorInput.a) != null ? _a : 1);
83
+ this.h = hsb.h;
84
+ this.s = hsb.s;
85
+ this.b = hsb.b;
86
+ this.a = hsb.a;
87
+ } else if ("h" in colorInput && "s" in colorInput && "b" in colorInput) {
88
+ this.h = Math.min(360, Math.max(0, colorInput.h));
89
+ this.s = Math.min(100, Math.max(0, colorInput.s));
90
+ this.b = Math.min(100, Math.max(0, colorInput.b));
91
+ this.a = Math.min(1, Math.max(0, (_b = colorInput.a) != null ? _b : 1));
92
+ }
93
+ }
94
+ }
95
+ static rgbToHsb(r, g, b, a = 1) {
96
+ const rNorm = r / 255;
97
+ const gNorm = g / 255;
98
+ const bNorm = b / 255;
99
+ const max = Math.max(rNorm, gNorm, bNorm);
100
+ const min = Math.min(rNorm, gNorm, bNorm);
101
+ const delta = max - min;
102
+ let h = 0;
103
+ if (delta !== 0) {
104
+ if (max === rNorm) {
105
+ h = (gNorm - bNorm) / delta % 6;
106
+ } else if (max === gNorm) {
107
+ h = (bNorm - rNorm) / delta + 2;
108
+ } else {
109
+ h = (rNorm - gNorm) / delta + 4;
110
+ }
111
+ h = Math.round(h * 60);
112
+ if (h < 0) h += 360;
113
+ }
114
+ const s = max === 0 ? 0 : Math.round(delta / max * 100);
115
+ const v = Math.round(max * 100);
116
+ return { h, s, b: v, a };
117
+ }
118
+ static hsbToRgb(h, s, b, a = 1) {
119
+ const sNorm = s / 100;
120
+ const vNorm = b / 100;
121
+ const c = vNorm * sNorm;
122
+ const x = c * (1 - Math.abs(h / 60 % 2 - 1));
123
+ const m = vNorm - c;
124
+ let rPrime = 0;
125
+ let gPrime = 0;
126
+ let bPrime = 0;
127
+ if (h >= 0 && h < 60) {
128
+ rPrime = c;
129
+ gPrime = x;
130
+ bPrime = 0;
131
+ } else if (h >= 60 && h < 120) {
132
+ rPrime = x;
133
+ gPrime = c;
134
+ bPrime = 0;
135
+ } else if (h >= 120 && h < 180) {
136
+ rPrime = 0;
137
+ gPrime = c;
138
+ bPrime = x;
139
+ } else if (h >= 180 && h < 240) {
140
+ rPrime = 0;
141
+ gPrime = x;
142
+ bPrime = c;
143
+ } else if (h >= 240 && h < 300) {
144
+ rPrime = x;
145
+ gPrime = 0;
146
+ bPrime = c;
147
+ } else if (h >= 300 && h <= 360) {
148
+ rPrime = c;
149
+ gPrime = 0;
150
+ bPrime = x;
151
+ }
152
+ const r = Math.round((rPrime + m) * 255);
153
+ const g = Math.round((gPrime + m) * 255);
154
+ const bRes = Math.round((bPrime + m) * 255);
155
+ return { r, g, b: bRes, a };
156
+ }
157
+ static parseString(str) {
158
+ const trimmed = str.trim().toLowerCase();
159
+ if (trimmed.startsWith("#")) {
160
+ let hex = trimmed.slice(1);
161
+ if (hex.length === 3) {
162
+ hex = hex.split("").map((c) => c + c).join("");
163
+ }
164
+ if (hex.length === 6) {
165
+ const r = parseInt(hex.slice(0, 2), 16);
166
+ const g = parseInt(hex.slice(2, 4), 16);
167
+ const b = parseInt(hex.slice(4, 6), 16);
168
+ return _Color.rgbToHsb(r, g, b, 1);
169
+ }
170
+ if (hex.length === 8) {
171
+ const r = parseInt(hex.slice(0, 2), 16);
172
+ const g = parseInt(hex.slice(2, 4), 16);
173
+ const b = parseInt(hex.slice(4, 6), 16);
174
+ const a = parseInt(hex.slice(6, 8), 16) / 255;
175
+ return _Color.rgbToHsb(r, g, b, a);
176
+ }
177
+ }
178
+ const rgbMatch = trimmed.match(
179
+ /^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)(?:\s*,\s*([\d.]+))?\s*\)$/
180
+ );
181
+ if (rgbMatch) {
182
+ const r = parseInt(rgbMatch[1], 10);
183
+ const g = parseInt(rgbMatch[2], 10);
184
+ const b = parseInt(rgbMatch[3], 10);
185
+ const a = rgbMatch[4] !== void 0 ? parseFloat(rgbMatch[4]) : 1;
186
+ return _Color.rgbToHsb(r, g, b, a);
187
+ }
188
+ const hsbMatch = trimmed.match(
189
+ /^hsba?\(\s*(\d+)\s*,\s*(\d+)%?\s*,\s*(\d+)%?(?:\s*,\s*([\d.]+))?\s*\)$/
190
+ );
191
+ if (hsbMatch) {
192
+ const h = parseInt(hsbMatch[1], 10);
193
+ const s = parseInt(hsbMatch[2], 10);
194
+ const b = parseInt(hsbMatch[3], 10);
195
+ const a = hsbMatch[4] !== void 0 ? parseFloat(hsbMatch[4]) : 1;
196
+ return { h, s, b, a };
197
+ }
198
+ return { h: 215, s: 91, b: 100, a: 1 };
199
+ }
200
+ toRgb() {
201
+ return _Color.hsbToRgb(this.h, this.s, this.b, this.a);
202
+ }
203
+ toRgbString() {
204
+ const { r, g, b, a } = this.toRgb();
205
+ if (a < 1) {
206
+ return `rgba(${r}, ${g}, ${b}, ${Number(a.toFixed(2))})`;
207
+ }
208
+ return `rgb(${r}, ${g}, ${b})`;
209
+ }
210
+ toHsb() {
211
+ return {
212
+ h: Math.round(this.h),
213
+ s: Math.round(this.s),
214
+ b: Math.round(this.b),
215
+ a: Number(this.a.toFixed(2))
216
+ };
217
+ }
218
+ toHsbString() {
219
+ const { h, s, b, a } = this.toHsb();
220
+ if (a < 1) {
221
+ return `hsba(${h}, ${s}%, ${b}%, ${a})`;
222
+ }
223
+ return `hsb(${h}, ${s}%, ${b}%)`;
224
+ }
225
+ toHex() {
226
+ const { r, g, b } = this.toRgb();
227
+ const rHex = r.toString(16).padStart(2, "0");
228
+ const gHex = g.toString(16).padStart(2, "0");
229
+ const bHex = b.toString(16).padStart(2, "0");
230
+ return `${rHex}${gHex}${bHex}`;
231
+ }
232
+ toHexString() {
233
+ return `#${this.toHex()}`;
234
+ }
235
+ toCssString() {
236
+ if (this.a < 1) {
237
+ return this.toRgbString();
238
+ }
239
+ return this.toHexString();
240
+ }
241
+ };
242
+ var generateColor = (color) => {
243
+ if (color instanceof Color) {
244
+ return color;
245
+ }
246
+ return new Color(color);
247
+ };
248
+ var ColorPicker = (props) => {
249
+ var _a, _b, _c, _d;
250
+ const {
251
+ allowClear = false,
252
+ arrow = true,
253
+ children,
254
+ defaultValue = "#1677ff",
255
+ defaultFormat = "hex",
256
+ disabled = false,
257
+ disabledAlpha = false,
258
+ disabledFormat = false,
259
+ destroyOnHidden = false,
260
+ format,
261
+ mode = "single",
262
+ open,
263
+ presets,
264
+ placement = "bottomLeft",
265
+ panelRender,
266
+ showText,
267
+ size = "middle",
268
+ trigger = "click",
269
+ value,
270
+ onChange,
271
+ onChangeComplete,
272
+ onFormatChange,
273
+ onOpenChange,
274
+ onClear,
275
+ className = "",
276
+ style,
277
+ ...restProps
278
+ } = props;
279
+ const modeOptions = Array.isArray(mode) ? mode : mode === "gradient" ? ["gradient"] : ["single"];
280
+ const [activeMode, setActiveMode] = react.useState((_a = modeOptions[0]) != null ? _a : "single");
281
+ const [internalOpen, setInternalOpen] = react.useState(false);
282
+ const isOpen = open !== void 0 ? open : internalOpen;
283
+ const [gradientStops, setGradientStops] = react.useState(() => {
284
+ if (typeof defaultValue === "string" && defaultValue.includes("%")) {
285
+ return parseGradientStops(defaultValue);
286
+ }
287
+ return [
288
+ { color: generateColor("rgb(16, 142, 233)"), percent: 0 },
289
+ { color: generateColor("rgb(135, 208, 104)"), percent: 100 }
290
+ ];
291
+ });
292
+ const [activeStopIndex, setActiveStopIndex] = react.useState(0);
293
+ const [internalColor, setInternalColor] = react.useState(() => generateColor(defaultValue));
294
+ const currentColor = activeMode === "gradient" ? (_c = (_b = gradientStops[activeStopIndex]) == null ? void 0 : _b.color) != null ? _c : internalColor : value !== void 0 ? generateColor(value) : internalColor;
295
+ const [internalFormat, setInternalFormat] = react.useState(defaultFormat);
296
+ const currentFormat = format !== void 0 ? format : internalFormat;
297
+ const containerRef = react.useRef(null);
298
+ const paletteRef = react.useRef(null);
299
+ const hueSliderRef = react.useRef(null);
300
+ const alphaSliderRef = react.useRef(null);
301
+ const gradientRailRef = react.useRef(null);
302
+ const isDraggingRef = react.useRef(false);
303
+ const handleOpenChange = react.useCallback(
304
+ (nextOpen) => {
305
+ if (disabled) return;
306
+ if (open === void 0) {
307
+ setInternalOpen(nextOpen);
308
+ }
309
+ onOpenChange == null ? void 0 : onOpenChange(nextOpen);
310
+ },
311
+ [disabled, open, onOpenChange]
312
+ );
313
+ const updateColor = react.useCallback(
314
+ (nextColor, isComplete = false) => {
315
+ if (activeMode === "gradient") {
316
+ const nextStops = [...gradientStops];
317
+ nextStops[activeStopIndex] = {
318
+ ...nextStops[activeStopIndex],
319
+ color: nextColor
320
+ };
321
+ setGradientStops(nextStops);
322
+ const cssStr = formatGradientCss(nextStops);
323
+ onChange == null ? void 0 : onChange(nextColor, cssStr);
324
+ if (isComplete) {
325
+ onChangeComplete == null ? void 0 : onChangeComplete(nextColor);
326
+ }
327
+ return;
328
+ }
329
+ if (value === void 0) {
330
+ setInternalColor(nextColor);
331
+ }
332
+ onChange == null ? void 0 : onChange(nextColor, nextColor.toCssString());
333
+ if (isComplete) {
334
+ onChangeComplete == null ? void 0 : onChangeComplete(nextColor);
335
+ }
336
+ },
337
+ [activeMode, gradientStops, activeStopIndex, value, onChange, onChangeComplete]
338
+ );
339
+ const currentColorRef = react.useRef(currentColor);
340
+ currentColorRef.current = currentColor;
341
+ const updateColorRef = react.useRef(updateColor);
342
+ updateColorRef.current = updateColor;
343
+ react.useEffect(() => {
344
+ if (!isOpen) return;
345
+ const handleClickOutside = (e) => {
346
+ if (containerRef.current && !containerRef.current.contains(e.target)) {
347
+ handleOpenChange(false);
348
+ }
349
+ };
350
+ document.addEventListener("mousedown", handleClickOutside);
351
+ return () => {
352
+ document.removeEventListener("mousedown", handleClickOutside);
353
+ };
354
+ }, [isOpen, handleOpenChange]);
355
+ const handlePaletteDrag = react.useCallback(
356
+ (e) => {
357
+ if (!paletteRef.current) return;
358
+ const rect = paletteRef.current.getBoundingClientRect();
359
+ const x = Math.max(0, Math.min(rect.width, e.clientX - rect.left));
360
+ const y = Math.max(0, Math.min(rect.height, e.clientY - rect.top));
361
+ const s = Math.round(x / rect.width * 100);
362
+ const b = Math.round((1 - y / rect.height) * 100);
363
+ const curr = currentColorRef.current;
364
+ const targetAlpha = curr.a === 0 ? 1 : curr.a;
365
+ const newColor = new Color({
366
+ h: curr.h,
367
+ s,
368
+ b,
369
+ a: targetAlpha
370
+ });
371
+ updateColorRef.current(newColor);
372
+ },
373
+ []
374
+ );
375
+ const handlePaletteMouseDown = (e) => {
376
+ e.preventDefault();
377
+ isDraggingRef.current = true;
378
+ handlePaletteDrag(e);
379
+ const handleMouseMove = (moveEvent) => {
380
+ if (isDraggingRef.current) {
381
+ handlePaletteDrag(moveEvent);
382
+ }
383
+ };
384
+ const handleMouseUp = () => {
385
+ if (isDraggingRef.current) {
386
+ isDraggingRef.current = false;
387
+ onChangeComplete == null ? void 0 : onChangeComplete(currentColorRef.current);
388
+ }
389
+ window.removeEventListener("mousemove", handleMouseMove);
390
+ window.removeEventListener("mouseup", handleMouseUp);
391
+ };
392
+ window.addEventListener("mousemove", handleMouseMove);
393
+ window.addEventListener("mouseup", handleMouseUp);
394
+ };
395
+ const handleHueDrag = react.useCallback(
396
+ (e) => {
397
+ if (!hueSliderRef.current) return;
398
+ const rect = hueSliderRef.current.getBoundingClientRect();
399
+ const x = Math.max(0, Math.min(rect.width, e.clientX - rect.left));
400
+ const h = Math.round(x / rect.width * 360);
401
+ const curr = currentColorRef.current;
402
+ const targetAlpha = curr.a === 0 ? 1 : curr.a;
403
+ const newColor = new Color({
404
+ h: h === 360 ? 0 : h,
405
+ s: curr.s,
406
+ b: curr.b,
407
+ a: targetAlpha
408
+ });
409
+ updateColorRef.current(newColor);
410
+ },
411
+ []
412
+ );
413
+ const handleHueMouseDown = (e) => {
414
+ e.preventDefault();
415
+ handleHueDrag(e);
416
+ const handleMouseMove = (moveEvent) => {
417
+ handleHueDrag(moveEvent);
418
+ };
419
+ const handleMouseUp = () => {
420
+ onChangeComplete == null ? void 0 : onChangeComplete(currentColorRef.current);
421
+ window.removeEventListener("mousemove", handleMouseMove);
422
+ window.removeEventListener("mouseup", handleMouseUp);
423
+ };
424
+ window.addEventListener("mousemove", handleMouseMove);
425
+ window.addEventListener("mouseup", handleMouseUp);
426
+ };
427
+ const handleAlphaDrag = react.useCallback(
428
+ (e) => {
429
+ if (!alphaSliderRef.current) return;
430
+ const rect = alphaSliderRef.current.getBoundingClientRect();
431
+ const x = Math.max(0, Math.min(rect.width, e.clientX - rect.left));
432
+ const a = Number((x / rect.width).toFixed(2));
433
+ const curr = currentColorRef.current;
434
+ const newColor = new Color({
435
+ h: curr.h,
436
+ s: curr.s,
437
+ b: curr.b,
438
+ a
439
+ });
440
+ updateColorRef.current(newColor);
441
+ },
442
+ []
443
+ );
444
+ const handleAlphaMouseDown = (e) => {
445
+ e.preventDefault();
446
+ handleAlphaDrag(e);
447
+ const handleMouseMove = (moveEvent) => {
448
+ handleAlphaDrag(moveEvent);
449
+ };
450
+ const handleMouseUp = () => {
451
+ onChangeComplete == null ? void 0 : onChangeComplete(currentColorRef.current);
452
+ window.removeEventListener("mousemove", handleMouseMove);
453
+ window.removeEventListener("mouseup", handleMouseUp);
454
+ };
455
+ window.addEventListener("mousemove", handleMouseMove);
456
+ window.addEventListener("mouseup", handleMouseUp);
457
+ };
458
+ const handleGradientStopDrag = react.useCallback(
459
+ (index, e) => {
460
+ if (!gradientRailRef.current) return;
461
+ const rect = gradientRailRef.current.getBoundingClientRect();
462
+ const x = Math.max(0, Math.min(rect.width, e.clientX - rect.left));
463
+ const percent = Math.round(x / rect.width * 100);
464
+ const nextStops = [...gradientStops];
465
+ nextStops[index] = {
466
+ ...nextStops[index],
467
+ percent
468
+ };
469
+ setGradientStops(nextStops);
470
+ onChange == null ? void 0 : onChange(nextStops[index].color, formatGradientCss(nextStops));
471
+ },
472
+ [gradientStops, onChange]
473
+ );
474
+ const handleGradientStopMouseDown = (index, e) => {
475
+ e.stopPropagation();
476
+ e.preventDefault();
477
+ setActiveStopIndex(index);
478
+ const handleMouseMove = (moveEvent) => {
479
+ handleGradientStopDrag(index, moveEvent);
480
+ };
481
+ const handleMouseUp = () => {
482
+ window.removeEventListener("mousemove", handleMouseMove);
483
+ window.removeEventListener("mouseup", handleMouseUp);
484
+ };
485
+ window.addEventListener("mousemove", handleMouseMove);
486
+ window.addEventListener("mouseup", handleMouseUp);
487
+ };
488
+ const handleGradientRailClick = (e) => {
489
+ if (!gradientRailRef.current) return;
490
+ const rect = gradientRailRef.current.getBoundingClientRect();
491
+ const x = Math.max(0, Math.min(rect.width, e.clientX - rect.left));
492
+ const percent = Math.round(x / rect.width * 100);
493
+ const newStopColor = generateColor("#1677ff");
494
+ const nextStops = [...gradientStops, { color: newStopColor, percent }];
495
+ setGradientStops(nextStops);
496
+ setActiveStopIndex(nextStops.length - 1);
497
+ onChange == null ? void 0 : onChange(newStopColor, formatGradientCss(nextStops));
498
+ };
499
+ const handleFormatSelectChange = (newFormat) => {
500
+ if (format === void 0) {
501
+ setInternalFormat(newFormat);
502
+ }
503
+ onFormatChange == null ? void 0 : onFormatChange(newFormat);
504
+ };
505
+ const handleClearClick = (e) => {
506
+ e.stopPropagation();
507
+ const cleared = new Color({ h: 0, s: 0, b: 100, a: 0 });
508
+ updateColor(cleared, true);
509
+ onClear == null ? void 0 : onClear();
510
+ };
511
+ const renderPickerContent = () => {
512
+ const hueColor = new Color({ h: currentColor.h, s: 100, b: 100, a: 1 }).toHexString();
513
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "react-public-color-picker-panel-body", children: [
514
+ (modeOptions.length > 1 || allowClear && !disabled) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "react-public-color-picker-panel-header", children: [
515
+ modeOptions.length > 1 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "react-public-color-picker-mode-segmented", children: [
516
+ /* @__PURE__ */ jsxRuntime.jsx(
517
+ "div",
518
+ {
519
+ className: `react-public-color-picker-mode-option ${activeMode === "single" ? "active" : ""}`,
520
+ onClick: () => setActiveMode("single"),
521
+ children: "\u5355\u8272"
522
+ }
523
+ ),
524
+ /* @__PURE__ */ jsxRuntime.jsx(
525
+ "div",
526
+ {
527
+ className: `react-public-color-picker-mode-option ${activeMode === "gradient" ? "active" : ""}`,
528
+ onClick: () => setActiveMode("gradient"),
529
+ children: "\u6E10\u53D8"
530
+ }
531
+ )
532
+ ] }) : /* @__PURE__ */ jsxRuntime.jsx("div", {}),
533
+ allowClear && !disabled && /* @__PURE__ */ jsxRuntime.jsx(
534
+ "div",
535
+ {
536
+ className: "react-public-color-picker-panel-clear-btn",
537
+ onClick: handleClearClick,
538
+ title: "\u6E05\u9664\u989C\u8272",
539
+ children: /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", width: "14", height: "14", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx("line", { x1: "4", y1: "4", x2: "20", y2: "20", stroke: "#ff4d4f", strokeWidth: "2.5", strokeLinecap: "round" }) })
540
+ }
541
+ )
542
+ ] }),
543
+ activeMode === "gradient" && /* @__PURE__ */ jsxRuntime.jsxs(
544
+ "div",
545
+ {
546
+ ref: gradientRailRef,
547
+ className: "react-public-color-picker-gradient-slider",
548
+ onClick: handleGradientRailClick,
549
+ children: [
550
+ /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.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__ */ jsxRuntime.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__ */ jsxRuntime.jsx("div", { className: "react-public-color-picker-saturation-bg" }),
581
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "react-public-color-picker-brightness-bg" }),
582
+ /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsxs("div", { className: "react-public-color-picker-slider-container", children: [
597
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "react-public-color-picker-slider-group", children: [
598
+ /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.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__ */ jsxRuntime.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__ */ jsxRuntime.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__ */ jsxRuntime.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__ */ jsxRuntime.jsx("div", { className: "react-public-color-picker-side-block", children: /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsxs("div", { className: "react-public-color-picker-inputs", children: [
660
+ /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsx("option", { value: "hex", children: "HEX" }),
668
+ /* @__PURE__ */ jsxRuntime.jsx("option", { value: "rgb", children: "RGB" }),
669
+ /* @__PURE__ */ jsxRuntime.jsx("option", { value: "hsb", children: "HSB" })
670
+ ]
671
+ }
672
+ ),
673
+ currentFormat === "hex" && /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.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__ */ jsxRuntime.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__ */ jsxRuntime.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] = react.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__ */ jsxRuntime.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__ */ jsxRuntime.jsxs("div", { style: { marginBottom: 8 }, children: [
764
+ preset.label && /* @__PURE__ */ jsxRuntime.jsxs(
765
+ "div",
766
+ {
767
+ className: "react-public-color-picker-preset-title",
768
+ onClick: () => togglePresetCollapse(idx),
769
+ children: [
770
+ /* @__PURE__ */ jsxRuntime.jsx(
771
+ chunkQ4QF6UYX_cjs.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__ */ jsxRuntime.jsx("div", { className: "react-public-color-picker-preset-colors", children: preset.colors.map((c, colorIdx) => {
786
+ const presetColor = generateColor(c);
787
+ return /* @__PURE__ */ jsxRuntime.jsx(
788
+ "div",
789
+ {
790
+ className: "react-public-color-picker-preset-item",
791
+ onClick: () => updateColor(presetColor, true),
792
+ title: presetColor.toCssString(),
793
+ children: /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.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__ */ jsxRuntime.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__ */ jsxRuntime.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__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
863
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "react-public-color-picker-color-block", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "react-public-color-picker-color-inner", style: triggerBgStyle }) }),
864
+ renderText()
865
+ ] })
866
+ }
867
+ );
868
+ }
869
+ return /* @__PURE__ */ jsxRuntime.jsxs(
870
+ "div",
871
+ {
872
+ ref: containerRef,
873
+ style: { position: "relative", display: "inline-block" },
874
+ ...triggerProps,
875
+ children: [
876
+ /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
884
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "react-public-color-picker-color-block", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "react-public-color-picker-color-inner", style: triggerBgStyle }) }),
885
+ renderText()
886
+ ] }),
887
+ allowClear && !disabled && /* @__PURE__ */ jsxRuntime.jsx(
888
+ chunkQ4QF6UYX_cjs.CloseCircleFilled,
889
+ {
890
+ className: "react-public-color-picker-clear-icon",
891
+ onClick: handleClearClick
892
+ }
893
+ )
894
+ ]
895
+ }
896
+ ),
897
+ isOpen && /* @__PURE__ */ jsxRuntime.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__ */ jsxRuntime.jsx("div", { className: "react-public-color-picker-arrow" }),
910
+ finalPanel
911
+ ]
912
+ }
913
+ )
914
+ ]
915
+ }
916
+ );
917
+ };
918
+ var ColorPicker_default = ColorPicker;
919
+
920
+ exports.Color = Color;
921
+ exports.ColorPicker_default = ColorPicker_default;
922
+ exports.generateColor = generateColor;
923
+ //# sourceMappingURL=chunk-AVSFSS7S.cjs.map
924
+ //# sourceMappingURL=chunk-AVSFSS7S.cjs.map