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,926 @@
1
+ 'use strict';
2
+
3
+ var chunkMBOWSS4B_cjs = require('./chunk-MBOWSS4B.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((e) => {
356
+ if (!paletteRef.current) return;
357
+ const rect = paletteRef.current.getBoundingClientRect();
358
+ const x = Math.max(0, Math.min(rect.width, e.clientX - rect.left));
359
+ const y = Math.max(0, Math.min(rect.height, e.clientY - rect.top));
360
+ const s = Math.round(x / rect.width * 100);
361
+ const b = Math.round((1 - y / rect.height) * 100);
362
+ const curr = currentColorRef.current;
363
+ const targetAlpha = curr.a === 0 ? 1 : curr.a;
364
+ const newColor = new Color({
365
+ h: curr.h,
366
+ s,
367
+ b,
368
+ a: targetAlpha
369
+ });
370
+ updateColorRef.current(newColor);
371
+ }, []);
372
+ const handlePaletteMouseDown = (e) => {
373
+ e.preventDefault();
374
+ isDraggingRef.current = true;
375
+ handlePaletteDrag(e);
376
+ const handleMouseMove = (moveEvent) => {
377
+ if (isDraggingRef.current) {
378
+ handlePaletteDrag(moveEvent);
379
+ }
380
+ };
381
+ const handleMouseUp = () => {
382
+ if (isDraggingRef.current) {
383
+ isDraggingRef.current = false;
384
+ onChangeComplete == null ? void 0 : onChangeComplete(currentColorRef.current);
385
+ }
386
+ window.removeEventListener("mousemove", handleMouseMove);
387
+ window.removeEventListener("mouseup", handleMouseUp);
388
+ };
389
+ window.addEventListener("mousemove", handleMouseMove);
390
+ window.addEventListener("mouseup", handleMouseUp);
391
+ };
392
+ const handleHueDrag = react.useCallback((e) => {
393
+ if (!hueSliderRef.current) return;
394
+ const rect = hueSliderRef.current.getBoundingClientRect();
395
+ const x = Math.max(0, Math.min(rect.width, e.clientX - rect.left));
396
+ const h = Math.round(x / rect.width * 360);
397
+ const curr = currentColorRef.current;
398
+ const targetAlpha = curr.a === 0 ? 1 : curr.a;
399
+ const newColor = new Color({
400
+ h: h === 360 ? 0 : h,
401
+ s: curr.s,
402
+ b: curr.b,
403
+ a: targetAlpha
404
+ });
405
+ updateColorRef.current(newColor);
406
+ }, []);
407
+ const handleHueMouseDown = (e) => {
408
+ e.preventDefault();
409
+ handleHueDrag(e);
410
+ const handleMouseMove = (moveEvent) => {
411
+ handleHueDrag(moveEvent);
412
+ };
413
+ const handleMouseUp = () => {
414
+ onChangeComplete == null ? void 0 : onChangeComplete(currentColorRef.current);
415
+ window.removeEventListener("mousemove", handleMouseMove);
416
+ window.removeEventListener("mouseup", handleMouseUp);
417
+ };
418
+ window.addEventListener("mousemove", handleMouseMove);
419
+ window.addEventListener("mouseup", handleMouseUp);
420
+ };
421
+ const handleAlphaDrag = react.useCallback((e) => {
422
+ if (!alphaSliderRef.current) return;
423
+ const rect = alphaSliderRef.current.getBoundingClientRect();
424
+ const x = Math.max(0, Math.min(rect.width, e.clientX - rect.left));
425
+ const a = Number((x / rect.width).toFixed(2));
426
+ const curr = currentColorRef.current;
427
+ const newColor = new Color({
428
+ h: curr.h,
429
+ s: curr.s,
430
+ b: curr.b,
431
+ a
432
+ });
433
+ updateColorRef.current(newColor);
434
+ }, []);
435
+ const handleAlphaMouseDown = (e) => {
436
+ e.preventDefault();
437
+ handleAlphaDrag(e);
438
+ const handleMouseMove = (moveEvent) => {
439
+ handleAlphaDrag(moveEvent);
440
+ };
441
+ const handleMouseUp = () => {
442
+ onChangeComplete == null ? void 0 : onChangeComplete(currentColorRef.current);
443
+ window.removeEventListener("mousemove", handleMouseMove);
444
+ window.removeEventListener("mouseup", handleMouseUp);
445
+ };
446
+ window.addEventListener("mousemove", handleMouseMove);
447
+ window.addEventListener("mouseup", handleMouseUp);
448
+ };
449
+ const handleGradientStopDrag = react.useCallback(
450
+ (index, e) => {
451
+ if (!gradientRailRef.current) return;
452
+ const rect = gradientRailRef.current.getBoundingClientRect();
453
+ const x = Math.max(0, Math.min(rect.width, e.clientX - rect.left));
454
+ const percent = Math.round(x / rect.width * 100);
455
+ const nextStops = [...gradientStops];
456
+ nextStops[index] = {
457
+ ...nextStops[index],
458
+ percent
459
+ };
460
+ setGradientStops(nextStops);
461
+ onChange == null ? void 0 : onChange(nextStops[index].color, formatGradientCss(nextStops));
462
+ },
463
+ [gradientStops, onChange]
464
+ );
465
+ const handleGradientStopMouseDown = (index, e) => {
466
+ e.stopPropagation();
467
+ e.preventDefault();
468
+ setActiveStopIndex(index);
469
+ const handleMouseMove = (moveEvent) => {
470
+ handleGradientStopDrag(index, moveEvent);
471
+ };
472
+ const handleMouseUp = () => {
473
+ window.removeEventListener("mousemove", handleMouseMove);
474
+ window.removeEventListener("mouseup", handleMouseUp);
475
+ };
476
+ window.addEventListener("mousemove", handleMouseMove);
477
+ window.addEventListener("mouseup", handleMouseUp);
478
+ };
479
+ const handleGradientRailClick = (e) => {
480
+ if (!gradientRailRef.current) return;
481
+ const rect = gradientRailRef.current.getBoundingClientRect();
482
+ const x = Math.max(0, Math.min(rect.width, e.clientX - rect.left));
483
+ const percent = Math.round(x / rect.width * 100);
484
+ const newStopColor = generateColor("#1677ff");
485
+ const nextStops = [...gradientStops, { color: newStopColor, percent }];
486
+ setGradientStops(nextStops);
487
+ setActiveStopIndex(nextStops.length - 1);
488
+ onChange == null ? void 0 : onChange(newStopColor, formatGradientCss(nextStops));
489
+ };
490
+ const handleFormatSelectChange = (newFormat) => {
491
+ if (format === void 0) {
492
+ setInternalFormat(newFormat);
493
+ }
494
+ onFormatChange == null ? void 0 : onFormatChange(newFormat);
495
+ };
496
+ const handleClearClick = (e) => {
497
+ e.stopPropagation();
498
+ const cleared = new Color({ h: 0, s: 0, b: 100, a: 0 });
499
+ updateColor(cleared, true);
500
+ onClear == null ? void 0 : onClear();
501
+ };
502
+ const renderPickerContent = () => {
503
+ const hueColor = new Color({ h: currentColor.h, s: 100, b: 100, a: 1 }).toHexString();
504
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "react-public-color-picker-panel-body", children: [
505
+ (modeOptions.length > 1 || allowClear && !disabled) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "react-public-color-picker-panel-header", children: [
506
+ modeOptions.length > 1 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "react-public-color-picker-mode-segmented", children: [
507
+ /* @__PURE__ */ jsxRuntime.jsx(
508
+ "div",
509
+ {
510
+ className: `react-public-color-picker-mode-option ${activeMode === "single" ? "active" : ""}`,
511
+ onClick: () => setActiveMode("single"),
512
+ children: "\u5355\u8272"
513
+ }
514
+ ),
515
+ /* @__PURE__ */ jsxRuntime.jsx(
516
+ "div",
517
+ {
518
+ className: `react-public-color-picker-mode-option ${activeMode === "gradient" ? "active" : ""}`,
519
+ onClick: () => setActiveMode("gradient"),
520
+ children: "\u6E10\u53D8"
521
+ }
522
+ )
523
+ ] }) : /* @__PURE__ */ jsxRuntime.jsx("div", {}),
524
+ allowClear && !disabled && /* @__PURE__ */ jsxRuntime.jsx(
525
+ "div",
526
+ {
527
+ className: "react-public-color-picker-panel-clear-btn",
528
+ onClick: handleClearClick,
529
+ title: "\u6E05\u9664\u989C\u8272",
530
+ children: /* @__PURE__ */ jsxRuntime.jsx("svg", { viewBox: "0 0 24 24", width: "14", height: "14", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
531
+ "line",
532
+ {
533
+ x1: "4",
534
+ y1: "4",
535
+ x2: "20",
536
+ y2: "20",
537
+ stroke: "#ff4d4f",
538
+ strokeWidth: "2.5",
539
+ strokeLinecap: "round"
540
+ }
541
+ ) })
542
+ }
543
+ )
544
+ ] }),
545
+ activeMode === "gradient" && /* @__PURE__ */ jsxRuntime.jsxs(
546
+ "div",
547
+ {
548
+ ref: gradientRailRef,
549
+ className: "react-public-color-picker-gradient-slider",
550
+ onClick: handleGradientRailClick,
551
+ children: [
552
+ /* @__PURE__ */ jsxRuntime.jsx(
553
+ "div",
554
+ {
555
+ className: "react-public-color-picker-gradient-bg",
556
+ style: { background: formatGradientCss(gradientStops) }
557
+ }
558
+ ),
559
+ gradientStops.map((stop, idx) => /* @__PURE__ */ jsxRuntime.jsx(
560
+ "div",
561
+ {
562
+ className: `react-public-color-picker-gradient-stop-handle ${activeStopIndex === idx ? "active" : ""}`,
563
+ style: {
564
+ left: `${stop.percent}%`,
565
+ backgroundColor: stop.color.toCssString()
566
+ },
567
+ onMouseDown: (e) => handleGradientStopMouseDown(idx, e)
568
+ },
569
+ idx
570
+ ))
571
+ ]
572
+ }
573
+ ),
574
+ /* @__PURE__ */ jsxRuntime.jsxs(
575
+ "div",
576
+ {
577
+ ref: paletteRef,
578
+ className: "react-public-color-picker-palette",
579
+ style: { backgroundColor: hueColor },
580
+ onMouseDown: handlePaletteMouseDown,
581
+ children: [
582
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "react-public-color-picker-saturation-bg" }),
583
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "react-public-color-picker-brightness-bg" }),
584
+ /* @__PURE__ */ jsxRuntime.jsx(
585
+ "div",
586
+ {
587
+ className: "react-public-color-picker-handler",
588
+ style: {
589
+ left: `${currentColor.s}%`,
590
+ top: `${100 - currentColor.b}%`,
591
+ backgroundColor: currentColor.toCssString()
592
+ }
593
+ }
594
+ )
595
+ ]
596
+ }
597
+ ),
598
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "react-public-color-picker-slider-container", children: [
599
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "react-public-color-picker-slider-group", children: [
600
+ /* @__PURE__ */ jsxRuntime.jsx(
601
+ "div",
602
+ {
603
+ ref: hueSliderRef,
604
+ className: "react-public-color-picker-slider react-public-color-picker-hue-slider",
605
+ onMouseDown: handleHueMouseDown,
606
+ children: /* @__PURE__ */ jsxRuntime.jsx(
607
+ "div",
608
+ {
609
+ className: "react-public-color-picker-slider-handler",
610
+ style: {
611
+ left: `${currentColor.h / 360 * 100}%`,
612
+ backgroundColor: hueColor
613
+ }
614
+ }
615
+ )
616
+ }
617
+ ),
618
+ !disabledAlpha && /* @__PURE__ */ jsxRuntime.jsxs(
619
+ "div",
620
+ {
621
+ ref: alphaSliderRef,
622
+ className: "react-public-color-picker-slider react-public-color-picker-alpha-slider",
623
+ onMouseDown: handleAlphaMouseDown,
624
+ children: [
625
+ /* @__PURE__ */ jsxRuntime.jsx(
626
+ "div",
627
+ {
628
+ className: "react-public-color-picker-alpha-bg",
629
+ style: {
630
+ background: `linear-gradient(to right, transparent, ${new Color({
631
+ h: currentColor.h,
632
+ s: currentColor.s,
633
+ b: currentColor.b,
634
+ a: 1
635
+ }).toHexString()})`
636
+ }
637
+ }
638
+ ),
639
+ /* @__PURE__ */ jsxRuntime.jsx(
640
+ "div",
641
+ {
642
+ className: "react-public-color-picker-slider-handler",
643
+ style: {
644
+ left: `${currentColor.a * 100}%`,
645
+ backgroundColor: currentColor.toCssString()
646
+ }
647
+ }
648
+ )
649
+ ]
650
+ }
651
+ )
652
+ ] }),
653
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: "react-public-color-picker-side-block", children: /* @__PURE__ */ jsxRuntime.jsx(
654
+ "div",
655
+ {
656
+ className: "react-public-color-picker-color-inner",
657
+ style: activeMode === "gradient" ? { background: formatGradientCss(gradientStops) } : { backgroundColor: currentColor.toCssString() }
658
+ }
659
+ ) })
660
+ ] }),
661
+ !disabledFormat && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "react-public-color-picker-inputs", children: [
662
+ /* @__PURE__ */ jsxRuntime.jsxs(
663
+ "select",
664
+ {
665
+ className: "react-public-color-picker-format-select",
666
+ value: currentFormat,
667
+ onChange: (e) => handleFormatSelectChange(e.target.value),
668
+ children: [
669
+ /* @__PURE__ */ jsxRuntime.jsx("option", { value: "hex", children: "HEX" }),
670
+ /* @__PURE__ */ jsxRuntime.jsx("option", { value: "rgb", children: "RGB" }),
671
+ /* @__PURE__ */ jsxRuntime.jsx("option", { value: "hsb", children: "HSB" })
672
+ ]
673
+ }
674
+ ),
675
+ currentFormat === "hex" && /* @__PURE__ */ jsxRuntime.jsx(
676
+ "input",
677
+ {
678
+ className: "react-public-color-picker-input-field",
679
+ value: currentColor.toHex(),
680
+ onChange: (e) => {
681
+ const val = e.target.value;
682
+ const newC = new Color(`#${val}`);
683
+ newC.a = currentColor.a;
684
+ updateColor(newC, true);
685
+ }
686
+ }
687
+ ),
688
+ currentFormat === "rgb" && /* @__PURE__ */ jsxRuntime.jsx(
689
+ "input",
690
+ {
691
+ className: "react-public-color-picker-input-field",
692
+ value: `${currentColor.toRgb().r}, ${currentColor.toRgb().g}, ${currentColor.toRgb().b}`,
693
+ onChange: (e) => {
694
+ const parts = e.target.value.split(",").map((v) => parseInt(v.trim(), 10));
695
+ if (parts.length >= 3 && !parts.some((n) => isNaN(n))) {
696
+ const newC = new Color({
697
+ r: parts[0],
698
+ g: parts[1],
699
+ b: parts[2],
700
+ a: currentColor.a
701
+ });
702
+ updateColor(newC, true);
703
+ }
704
+ }
705
+ }
706
+ ),
707
+ currentFormat === "hsb" && /* @__PURE__ */ jsxRuntime.jsx(
708
+ "input",
709
+ {
710
+ className: "react-public-color-picker-input-field",
711
+ value: `${currentColor.h}\xB0, ${currentColor.s}%, ${currentColor.b}%`,
712
+ onChange: (e) => {
713
+ const parts = e.target.value.replace(/[%°]/g, "").split(",").map((v) => parseInt(v.trim(), 10));
714
+ if (parts.length >= 3 && !parts.some((n) => isNaN(n))) {
715
+ const newC = new Color({
716
+ h: parts[0],
717
+ s: parts[1],
718
+ b: parts[2],
719
+ a: currentColor.a
720
+ });
721
+ updateColor(newC, true);
722
+ }
723
+ }
724
+ }
725
+ ),
726
+ !disabledAlpha && /* @__PURE__ */ jsxRuntime.jsx(
727
+ "input",
728
+ {
729
+ className: "react-public-color-picker-alpha-input",
730
+ value: `${Math.round(currentColor.a * 100)}%`,
731
+ onChange: (e) => {
732
+ const val = parseInt(e.target.value.replace("%", ""), 10);
733
+ if (!isNaN(val)) {
734
+ const newA = Math.max(0, Math.min(1, val / 100));
735
+ const newC = new Color({
736
+ h: currentColor.h,
737
+ s: currentColor.s,
738
+ b: currentColor.b,
739
+ a: newA
740
+ });
741
+ updateColor(newC, true);
742
+ }
743
+ }
744
+ }
745
+ )
746
+ ] })
747
+ ] });
748
+ };
749
+ const [collapsedPresets, setCollapsedPresets] = react.useState({});
750
+ const togglePresetCollapse = (idx) => {
751
+ setCollapsedPresets((prev) => ({
752
+ ...prev,
753
+ [idx]: !prev[idx]
754
+ }));
755
+ };
756
+ const renderPresetsContent = (isStandalone = false) => {
757
+ if (!presets || presets.length === 0) return null;
758
+ return /* @__PURE__ */ jsxRuntime.jsx(
759
+ "div",
760
+ {
761
+ className: `react-public-color-picker-presets ${isStandalone ? "react-public-color-picker-presets-standalone" : ""}`,
762
+ children: presets.map((preset, idx) => {
763
+ var _a2, _b2;
764
+ const isCollapsed = (_a2 = collapsedPresets[idx]) != null ? _a2 : preset.defaultOpen === false;
765
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { style: { marginBottom: 8 }, children: [
766
+ preset.label && /* @__PURE__ */ jsxRuntime.jsxs(
767
+ "div",
768
+ {
769
+ className: "react-public-color-picker-preset-title",
770
+ onClick: () => togglePresetCollapse(idx),
771
+ children: [
772
+ /* @__PURE__ */ jsxRuntime.jsx(
773
+ chunkMBOWSS4B_cjs.DownOutlined,
774
+ {
775
+ style: {
776
+ fontSize: 10,
777
+ color: "#8c8c8c",
778
+ transition: "transform 0.2s ease",
779
+ transform: isCollapsed ? "rotate(-90deg)" : "rotate(0deg)"
780
+ }
781
+ }
782
+ ),
783
+ preset.label
784
+ ]
785
+ }
786
+ ),
787
+ !isCollapsed && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "react-public-color-picker-preset-colors", children: preset.colors.map((c, colorIdx) => {
788
+ const presetColor = generateColor(c);
789
+ return /* @__PURE__ */ jsxRuntime.jsx(
790
+ "div",
791
+ {
792
+ className: "react-public-color-picker-preset-item",
793
+ onClick: () => updateColor(presetColor, true),
794
+ title: presetColor.toCssString(),
795
+ children: /* @__PURE__ */ jsxRuntime.jsx(
796
+ "div",
797
+ {
798
+ className: "react-public-color-picker-preset-item-inner",
799
+ style: { backgroundColor: presetColor.toCssString() }
800
+ }
801
+ )
802
+ },
803
+ colorIdx
804
+ );
805
+ }) })
806
+ ] }, (_b2 = preset.key) != null ? _b2 : idx);
807
+ })
808
+ }
809
+ );
810
+ };
811
+ const defaultPanel = /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
812
+ renderPickerContent(),
813
+ renderPresetsContent(true)
814
+ ] });
815
+ const finalPanel = panelRender ? panelRender(defaultPanel, {
816
+ components: {
817
+ Picker: renderPickerContent,
818
+ Presets: () => renderPresetsContent(false)
819
+ }
820
+ }) : defaultPanel;
821
+ const triggerBgStyle = activeMode === "gradient" ? { background: formatGradientCss(gradientStops) } : { backgroundColor: currentColor.toCssString() };
822
+ const renderText = () => {
823
+ if (!showText) return null;
824
+ if (typeof showText === "function") {
825
+ return showText(activeMode === "gradient" ? gradientStops : currentColor);
826
+ }
827
+ const textContent = activeMode === "gradient" ? formatGradientText(gradientStops) : currentColor.toCssString();
828
+ return /* @__PURE__ */ jsxRuntime.jsx("span", { style: { fontSize: 13, color: "#595959" }, children: textContent });
829
+ };
830
+ const renderCustomTrigger = () => {
831
+ if (!children) return null;
832
+ if (typeof children === "function") {
833
+ return children(currentColor);
834
+ }
835
+ return children;
836
+ };
837
+ const triggerProps = {
838
+ onClick: () => {
839
+ if (trigger === "click") {
840
+ handleOpenChange(!isOpen);
841
+ }
842
+ },
843
+ onMouseEnter: () => {
844
+ if (trigger === "hover") {
845
+ handleOpenChange(true);
846
+ }
847
+ },
848
+ onMouseLeave: () => {
849
+ if (trigger === "hover") {
850
+ handleOpenChange(false);
851
+ }
852
+ }
853
+ };
854
+ const showArrow = typeof arrow === "boolean" ? arrow : (_d = arrow == null ? void 0 : arrow.pointAtCenter) != null ? _d : true;
855
+ if (destroyOnHidden && !isOpen) {
856
+ return /* @__PURE__ */ jsxRuntime.jsx(
857
+ "div",
858
+ {
859
+ ref: containerRef,
860
+ className: `react-public-color-picker-trigger react-public-color-picker-size-${size} ${disabled ? "react-public-color-picker-disabled" : ""} ${className}`.trim(),
861
+ style,
862
+ ...triggerProps,
863
+ ...restProps,
864
+ children: children ? renderCustomTrigger() : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
865
+ /* @__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 }) }),
866
+ renderText()
867
+ ] })
868
+ }
869
+ );
870
+ }
871
+ return /* @__PURE__ */ jsxRuntime.jsxs(
872
+ "div",
873
+ {
874
+ ref: containerRef,
875
+ style: { position: "relative", display: "inline-block" },
876
+ ...triggerProps,
877
+ children: [
878
+ /* @__PURE__ */ jsxRuntime.jsxs(
879
+ "div",
880
+ {
881
+ className: `react-public-color-picker-trigger react-public-color-picker-size-${size} ${disabled ? "react-public-color-picker-disabled" : ""} ${className}`.trim(),
882
+ style,
883
+ ...restProps,
884
+ children: [
885
+ children ? renderCustomTrigger() : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
886
+ /* @__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 }) }),
887
+ renderText()
888
+ ] }),
889
+ allowClear && !disabled && /* @__PURE__ */ jsxRuntime.jsx(
890
+ chunkMBOWSS4B_cjs.CloseCircleFilled,
891
+ {
892
+ className: "react-public-color-picker-clear-icon",
893
+ onClick: handleClearClick
894
+ }
895
+ )
896
+ ]
897
+ }
898
+ ),
899
+ isOpen && /* @__PURE__ */ jsxRuntime.jsxs(
900
+ "div",
901
+ {
902
+ className: `react-public-color-picker-popover react-public-color-picker-popover-${placement}`,
903
+ style: {
904
+ top: placement.startsWith("bottom") ? "calc(100% + 8px)" : void 0,
905
+ bottom: placement.startsWith("top") ? "calc(100% + 8px)" : void 0,
906
+ left: placement.endsWith("Left") || placement === "bottom" ? 0 : void 0,
907
+ right: placement.endsWith("Right") ? 0 : void 0
908
+ },
909
+ onClick: (e) => e.stopPropagation(),
910
+ children: [
911
+ showArrow && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "react-public-color-picker-arrow" }),
912
+ finalPanel
913
+ ]
914
+ }
915
+ )
916
+ ]
917
+ }
918
+ );
919
+ };
920
+ var ColorPicker_default = ColorPicker;
921
+
922
+ exports.Color = Color;
923
+ exports.ColorPicker_default = ColorPicker_default;
924
+ exports.generateColor = generateColor;
925
+ //# sourceMappingURL=chunk-3UNZXPOT.cjs.map
926
+ //# sourceMappingURL=chunk-3UNZXPOT.cjs.map