@ikas/core 1.0.52 → 1.0.53

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 (415) hide show
  1. package/dist/components/rich-text-editor/image-modal/index.d.ts.map +1 -1
  2. package/dist/index108.cjs +1 -1
  3. package/dist/index108.js +25 -24
  4. package/dist/index117.cjs +1 -1
  5. package/dist/index117.js +275 -235
  6. package/dist/index118.cjs +1 -1
  7. package/dist/index118.js +2 -83
  8. package/dist/index119.cjs +1 -1
  9. package/dist/index119.js +28 -277
  10. package/dist/index120.js +2 -2
  11. package/dist/index121.cjs +1 -1
  12. package/dist/index121.js +239 -30
  13. package/dist/index122.cjs +1 -1
  14. package/dist/index122.js +83 -2
  15. package/dist/index130.cjs +1 -1
  16. package/dist/index130.js +1 -1
  17. package/dist/index131.cjs +1 -1
  18. package/dist/index131.js +4 -4
  19. package/dist/index132.cjs +1 -1
  20. package/dist/index132.js +4 -8
  21. package/dist/index133.cjs +1 -1
  22. package/dist/index133.js +7 -6
  23. package/dist/index134.cjs +1 -1
  24. package/dist/index134.js +6 -3
  25. package/dist/index154.cjs +1 -1
  26. package/dist/index154.js +2 -2
  27. package/dist/index155.cjs +1 -1
  28. package/dist/index155.js +1 -1
  29. package/dist/index156.cjs +1 -1
  30. package/dist/index156.js +1 -1
  31. package/dist/index158.cjs +1 -1
  32. package/dist/index158.js +1 -1
  33. package/dist/index160.cjs +1 -1
  34. package/dist/index160.js +2 -2
  35. package/dist/index162.cjs +1 -1
  36. package/dist/index162.js +1 -1
  37. package/dist/index164.cjs +1 -1
  38. package/dist/index164.js +2 -2
  39. package/dist/index165.cjs +1 -1
  40. package/dist/index165.js +2 -2
  41. package/dist/index166.cjs +1 -1
  42. package/dist/index166.js +1 -1
  43. package/dist/index168.cjs +1 -1
  44. package/dist/index168.js +4 -4
  45. package/dist/index185.cjs +1 -1
  46. package/dist/index185.js +1 -1
  47. package/dist/index187.cjs +1 -1
  48. package/dist/index187.js +1 -1
  49. package/dist/index195.cjs +1 -1
  50. package/dist/index195.js +26 -14
  51. package/dist/index196.cjs +1 -1
  52. package/dist/index196.js +2 -2
  53. package/dist/index197.cjs +1 -1
  54. package/dist/index197.js +27 -7
  55. package/dist/index198.cjs +1 -2
  56. package/dist/index198.js +29 -324
  57. package/dist/index199.cjs +1 -1
  58. package/dist/index199.js +113 -47
  59. package/dist/index200.cjs +1 -1
  60. package/dist/index200.js +56 -23
  61. package/dist/index201.cjs +1 -1
  62. package/dist/index201.js +60 -2
  63. package/dist/index202.cjs +1 -1
  64. package/dist/index202.js +14 -25
  65. package/dist/index203.cjs +1 -1
  66. package/dist/index203.js +14 -31
  67. package/dist/index204.cjs +1 -1
  68. package/dist/index204.js +2 -116
  69. package/dist/index205.cjs +1 -1
  70. package/dist/index205.js +7 -59
  71. package/dist/index206.cjs +2 -1
  72. package/dist/index206.js +323 -56
  73. package/dist/index207.cjs +1 -1
  74. package/dist/index207.js +48 -15
  75. package/dist/index208.cjs +1 -1
  76. package/dist/index208.js +5 -17
  77. package/dist/index209.cjs +1 -1
  78. package/dist/index209.js +8 -12
  79. package/dist/index210.cjs +1 -1
  80. package/dist/index210.js +8 -8
  81. package/dist/index211.cjs +1 -1
  82. package/dist/index211.js +2 -6
  83. package/dist/index212.cjs +1 -1
  84. package/dist/index212.js +17 -8
  85. package/dist/index213.cjs +1 -1
  86. package/dist/index213.js +11 -7
  87. package/dist/index214.cjs +1 -1
  88. package/dist/index214.js +9 -2
  89. package/dist/index216.cjs +1 -1
  90. package/dist/index216.js +1 -1
  91. package/dist/index217.cjs +1 -1
  92. package/dist/index217.js +27 -70
  93. package/dist/index219.cjs +1 -1
  94. package/dist/index219.js +1 -1
  95. package/dist/index220.cjs +1 -1
  96. package/dist/index220.js +2 -2
  97. package/dist/index221.cjs +1 -1
  98. package/dist/index221.js +70 -27
  99. package/dist/index235.cjs +1 -1
  100. package/dist/index235.js +26 -16
  101. package/dist/index236.cjs +1 -1
  102. package/dist/index236.js +16 -6
  103. package/dist/index237.cjs +1 -1
  104. package/dist/index237.js +42 -3
  105. package/dist/index238.cjs +1 -1
  106. package/dist/index238.js +13 -28
  107. package/dist/index239.cjs +1 -1
  108. package/dist/index239.js +13 -7
  109. package/dist/index240.cjs +1 -1
  110. package/dist/index240.js +60 -4
  111. package/dist/index241.cjs +1 -1
  112. package/dist/index241.js +9 -6
  113. package/dist/index242.cjs +1 -1
  114. package/dist/index242.js +14 -10
  115. package/dist/index243.cjs +1 -1
  116. package/dist/index243.js +4 -26
  117. package/dist/index244.cjs +1 -1
  118. package/dist/index244.js +8 -16
  119. package/dist/index245.cjs +1 -1
  120. package/dist/index245.js +4 -42
  121. package/dist/index246.cjs +1 -1
  122. package/dist/index246.js +5 -13
  123. package/dist/index247.cjs +1 -1
  124. package/dist/index247.js +16 -13
  125. package/dist/index248.cjs +1 -1
  126. package/dist/index248.js +5 -60
  127. package/dist/index249.cjs +1 -1
  128. package/dist/index249.js +3 -10
  129. package/dist/index250.cjs +1 -1
  130. package/dist/index250.js +28 -14
  131. package/dist/index251.cjs +1 -1
  132. package/dist/index251.js +6 -3
  133. package/dist/index252.cjs +1 -1
  134. package/dist/index252.js +4 -7
  135. package/dist/index253.cjs +1 -1
  136. package/dist/index253.js +7 -4
  137. package/dist/index254.cjs +1 -1
  138. package/dist/index254.js +10 -5
  139. package/dist/index257.cjs +1 -1
  140. package/dist/index257.js +3 -5
  141. package/dist/index258.cjs +1 -1
  142. package/dist/index258.js +6 -3
  143. package/dist/index259.cjs +1 -1
  144. package/dist/index259.js +6 -5
  145. package/dist/index260.cjs +1 -1
  146. package/dist/index260.js +5 -7
  147. package/dist/index263.cjs +1 -1
  148. package/dist/index263.js +5 -17
  149. package/dist/index264.cjs +1 -1
  150. package/dist/index264.js +4 -4
  151. package/dist/index265.cjs +1 -1
  152. package/dist/index265.js +5 -4
  153. package/dist/index266.cjs +1 -1
  154. package/dist/index266.js +12 -3
  155. package/dist/index267.cjs +1 -1
  156. package/dist/index267.js +9 -3
  157. package/dist/index268.cjs +1 -1
  158. package/dist/index268.js +4 -14
  159. package/dist/index269.cjs +1 -1
  160. package/dist/index269.js +26 -9
  161. package/dist/index270.cjs +1 -1
  162. package/dist/index270.js +9 -3
  163. package/dist/index271.cjs +1 -1
  164. package/dist/index271.js +4 -9
  165. package/dist/index272.cjs +1 -1
  166. package/dist/index272.js +5 -6
  167. package/dist/index273.cjs +1 -1
  168. package/dist/index273.js +5 -5
  169. package/dist/index274.cjs +1 -1
  170. package/dist/index274.js +5 -6
  171. package/dist/index275.cjs +1 -1
  172. package/dist/index275.js +9 -6
  173. package/dist/index276.cjs +1 -1
  174. package/dist/index276.js +5 -8
  175. package/dist/index277.cjs +1 -1
  176. package/dist/index277.js +7 -5
  177. package/dist/index278.cjs +1 -1
  178. package/dist/index278.js +6 -4
  179. package/dist/index279.cjs +1 -1
  180. package/dist/index279.js +6 -9
  181. package/dist/index280.cjs +1 -1
  182. package/dist/index280.js +17 -13
  183. package/dist/index281.cjs +1 -1
  184. package/dist/index281.js +5 -5
  185. package/dist/index282.cjs +1 -1
  186. package/dist/index282.js +4 -5
  187. package/dist/index283.cjs +1 -1
  188. package/dist/index283.js +3 -17
  189. package/dist/index284.cjs +1 -1
  190. package/dist/index284.js +3 -12
  191. package/dist/index285.cjs +1 -1
  192. package/dist/index285.js +14 -5
  193. package/dist/index286.cjs +1 -1
  194. package/dist/index286.js +8 -3
  195. package/dist/index287.cjs +1 -1
  196. package/dist/index287.js +3 -12
  197. package/dist/index288.cjs +1 -1
  198. package/dist/index288.js +11 -4
  199. package/dist/index289.cjs +1 -1
  200. package/dist/index289.js +6 -5
  201. package/dist/index290.cjs +1 -1
  202. package/dist/index290.js +5 -5
  203. package/dist/index291.cjs +1 -1
  204. package/dist/index291.js +6 -12
  205. package/dist/index292.cjs +1 -1
  206. package/dist/index292.js +6 -4
  207. package/dist/index293.cjs +1 -1
  208. package/dist/index293.js +8 -27
  209. package/dist/index294.cjs +1 -1
  210. package/dist/index294.js +4 -8
  211. package/dist/index295.cjs +1 -1
  212. package/dist/index295.js +4 -6
  213. package/dist/index296.cjs +1 -1
  214. package/dist/index296.js +13 -5
  215. package/dist/index297.cjs +1 -1
  216. package/dist/index297.js +5 -6
  217. package/dist/index298.cjs +1 -1
  218. package/dist/index298.js +5 -5
  219. package/dist/index299.cjs +1 -1
  220. package/dist/index299.js +17 -9
  221. package/dist/index300.cjs +1 -1
  222. package/dist/index300.js +12 -4
  223. package/dist/index301.cjs +1 -1
  224. package/dist/index301.js +12 -7
  225. package/dist/index302.cjs +1 -1
  226. package/dist/index302.js +4 -6
  227. package/dist/index303.cjs +1 -1
  228. package/dist/index303.js +5 -6
  229. package/dist/index304.cjs +1 -1
  230. package/dist/index304.js +2 -39
  231. package/dist/index305.cjs +1 -1
  232. package/dist/index305.js +7 -2
  233. package/dist/index306.cjs +1 -1
  234. package/dist/index306.js +7 -6
  235. package/dist/index307.cjs +1 -1
  236. package/dist/index307.js +3 -7
  237. package/dist/index308.cjs +1 -1
  238. package/dist/index308.js +38 -3
  239. package/dist/index309.cjs +1 -1
  240. package/dist/index309.js +2 -2
  241. package/dist/index310.cjs +1 -1
  242. package/dist/index310.js +6 -5
  243. package/dist/index311.cjs +1 -1
  244. package/dist/index311.js +29 -14
  245. package/dist/index312.cjs +1 -1
  246. package/dist/index312.js +9 -3
  247. package/dist/index313.cjs +1 -1
  248. package/dist/index313.js +2 -4
  249. package/dist/index314.cjs +1 -1
  250. package/dist/index314.js +16 -6
  251. package/dist/index315.cjs +1 -1
  252. package/dist/index315.js +5 -3
  253. package/dist/index316.cjs +1 -1
  254. package/dist/index316.js +5 -9
  255. package/dist/index317.cjs +1 -1
  256. package/dist/index317.js +5 -3
  257. package/dist/index318.cjs +1 -1
  258. package/dist/index318.js +4 -9
  259. package/dist/index319.cjs +1 -1
  260. package/dist/index319.js +9 -11
  261. package/dist/index320.cjs +1 -1
  262. package/dist/index320.js +5 -3
  263. package/dist/index321.cjs +1 -1
  264. package/dist/index321.js +4 -9
  265. package/dist/index322.cjs +1 -1
  266. package/dist/index322.js +5 -5
  267. package/dist/index323.cjs +1 -1
  268. package/dist/index323.js +4 -5
  269. package/dist/index324.cjs +1 -1
  270. package/dist/index324.js +17 -5
  271. package/dist/index325.cjs +1 -1
  272. package/dist/index325.js +9 -4
  273. package/dist/index326.cjs +1 -1
  274. package/dist/index326.js +12 -16
  275. package/dist/index327.cjs +1 -1
  276. package/dist/index327.js +12 -14
  277. package/dist/index328.cjs +1 -1
  278. package/dist/index328.js +14 -12
  279. package/dist/index329.cjs +1 -1
  280. package/dist/index329.js +5 -13
  281. package/dist/index330.cjs +1 -1
  282. package/dist/index330.js +13 -7
  283. package/dist/index331.cjs +1 -1
  284. package/dist/index331.js +3 -6
  285. package/dist/index332.cjs +1 -1
  286. package/dist/index332.js +6 -7
  287. package/dist/index333.cjs +1 -1
  288. package/dist/index333.js +3 -6
  289. package/dist/index334.cjs +1 -1
  290. package/dist/index334.js +9 -29
  291. package/dist/index335.cjs +1 -1
  292. package/dist/index335.js +5 -8
  293. package/dist/index336.cjs +1 -1
  294. package/dist/index336.js +9 -4
  295. package/dist/index337.cjs +1 -1
  296. package/dist/index337.js +10 -15
  297. package/dist/index338.cjs +1 -1
  298. package/dist/index338.js +1 -1
  299. package/dist/index341.cjs +1 -1
  300. package/dist/index341.js +11 -5
  301. package/dist/index342.cjs +1 -1
  302. package/dist/index342.js +37 -7
  303. package/dist/index343.cjs +1 -1
  304. package/dist/index343.js +42 -7
  305. package/dist/index344.cjs +1 -1
  306. package/dist/index344.js +33 -5
  307. package/dist/index345.cjs +1 -1
  308. package/dist/index345.js +26 -7
  309. package/dist/index346.cjs +1 -1
  310. package/dist/index346.js +7 -10
  311. package/dist/index347.cjs +1 -1
  312. package/dist/index347.js +7 -5
  313. package/dist/index348.cjs +1 -1
  314. package/dist/index348.js +6 -4
  315. package/dist/index349.cjs +1 -1
  316. package/dist/index349.js +10 -4
  317. package/dist/index350.cjs +1 -1
  318. package/dist/index350.js +5 -5
  319. package/dist/index351.cjs +1 -1
  320. package/dist/index351.js +5 -3
  321. package/dist/index352.cjs +1 -1
  322. package/dist/index352.js +4 -11
  323. package/dist/index353.cjs +1 -1
  324. package/dist/index353.js +5 -7
  325. package/dist/index354.cjs +1 -1
  326. package/dist/index354.js +5 -37
  327. package/dist/index355.cjs +1 -1
  328. package/dist/index355.js +3 -43
  329. package/dist/index356.cjs +1 -1
  330. package/dist/index356.js +5 -33
  331. package/dist/index357.cjs +1 -1
  332. package/dist/index357.js +8 -26
  333. package/dist/index358.cjs +1 -1
  334. package/dist/index358.js +10 -13
  335. package/dist/index359.cjs +1 -1
  336. package/dist/index359.js +5 -2
  337. package/dist/index360.cjs +1 -1
  338. package/dist/index360.js +3 -2
  339. package/dist/index361.cjs +1 -1
  340. package/dist/index361.js +6 -17
  341. package/dist/index362.cjs +1 -1
  342. package/dist/index362.js +6 -5
  343. package/dist/index363.cjs +1 -1
  344. package/dist/index363.js +6 -10
  345. package/dist/index364.cjs +1 -1
  346. package/dist/index364.js +4 -7
  347. package/dist/index365.cjs +1 -1
  348. package/dist/index365.js +4 -4
  349. package/dist/index366.cjs +1 -1
  350. package/dist/index366.js +4 -7
  351. package/dist/index367.cjs +1 -1
  352. package/dist/index367.js +4 -7
  353. package/dist/index368.cjs +1 -1
  354. package/dist/index368.js +14 -6
  355. package/dist/index369.cjs +1 -1
  356. package/dist/index369.js +3 -4
  357. package/dist/index370.cjs +1 -1
  358. package/dist/index370.js +8 -4
  359. package/dist/index371.cjs +1 -1
  360. package/dist/index371.js +5 -4
  361. package/dist/index372.cjs +1 -1
  362. package/dist/index372.js +18 -4
  363. package/dist/index373.cjs +1 -1
  364. package/dist/index373.js +5 -14
  365. package/dist/index374.cjs +1 -1
  366. package/dist/index374.js +14 -8
  367. package/dist/index375.cjs +1 -1
  368. package/dist/index375.js +3 -4
  369. package/dist/index376.cjs +1 -1
  370. package/dist/index376.js +5 -7
  371. package/dist/index377.cjs +1 -1
  372. package/dist/index377.js +8 -5
  373. package/dist/index378.cjs +1 -1
  374. package/dist/index378.js +4 -4
  375. package/dist/index379.cjs +1 -1
  376. package/dist/index379.js +3 -10
  377. package/dist/index380.cjs +1 -1
  378. package/dist/index380.js +4 -6
  379. package/dist/index381.cjs +1 -1
  380. package/dist/index381.js +3 -5
  381. package/dist/index382.cjs +1 -1
  382. package/dist/index382.js +10 -4
  383. package/dist/index383.cjs +1 -1
  384. package/dist/index383.js +6 -4
  385. package/dist/index384.cjs +1 -1
  386. package/dist/index384.js +6 -3
  387. package/dist/index385.cjs +1 -1
  388. package/dist/index385.js +1 -1
  389. package/dist/index386.cjs +1 -1
  390. package/dist/index386.js +3 -3
  391. package/dist/index387.cjs +1 -1
  392. package/dist/index387.js +4 -6
  393. package/dist/index388.cjs +1 -1
  394. package/dist/index388.js +9 -8
  395. package/dist/index389.cjs +1 -1
  396. package/dist/index389.js +6 -3
  397. package/dist/index390.cjs +1 -1
  398. package/dist/index390.js +8 -3
  399. package/dist/index391.cjs +1 -1
  400. package/dist/index391.js +3 -5
  401. package/dist/index392.cjs +1 -1
  402. package/dist/index392.js +3 -8
  403. package/dist/index393.cjs +1 -1
  404. package/dist/index393.js +15 -3
  405. package/dist/index394.cjs +1 -1
  406. package/dist/index394.js +3 -16
  407. package/dist/index50.cjs +1 -1
  408. package/dist/index50.js +3 -3
  409. package/dist/index51.cjs +1 -1
  410. package/dist/index51.js +2 -2
  411. package/dist/index56.cjs +1 -1
  412. package/dist/index56.js +2 -2
  413. package/dist/index57.cjs +1 -1
  414. package/dist/index57.js +2 -2
  415. package/package.json +1 -1
package/dist/index122.js CHANGED
@@ -1,4 +1,85 @@
1
- var e = { exports: {} };
1
+ import { jsx as p } from "react/jsx-runtime";
2
+ import { observer as v } from "mobx-react-lite";
3
+ import { action as H } from "mobx";
4
+ import { Checkbox as E } from "@ikas/ui";
5
+ import { cn as b } from "./index3.js";
6
+ function j(k) {
7
+ const { model: e, rowData: s, isHeader: a, isSummary: r, isDisabled: l, isHovered: u } = k, g = a || r, I = e.selectedIdSet, D = a && e.displayedEnabledData.length > 0 && e.displayedEnabledData.every((o) => I.has(e.getRowId(o))), h = a ? D : I.has(e.getRowId(s)), x = a && !D && e.displayedEnabledData.some((o) => I.has(e.getRowId(o))), C = H((o) => {
8
+ var y;
9
+ o.stopPropagation();
10
+ const R = o.shiftKey, S = e.lastCheckedRow;
11
+ e.lastCheckedRow = s ?? null;
12
+ const w = e.displayedData.findIndex(
13
+ (t) => e.getRowId(t) === e.getRowId(S)
14
+ ), f = e.displayedData.findIndex(
15
+ (t) => e.getRowId(t) === e.getRowId(s)
16
+ );
17
+ let n = s ? [s] : [];
18
+ if (w !== -1 && f !== -1 && R) {
19
+ const t = Math.min(w, f), d = Math.max(w, f);
20
+ n = e.displayedData.slice(t, d + 1);
21
+ }
22
+ if (h)
23
+ if (a) {
24
+ const t = new Set(
25
+ e.displayedData.map((d) => e.getRowId(d))
26
+ );
27
+ e.selectedData = e.selectedData.filter(
28
+ (d) => !t.has(e.getRowId(d))
29
+ );
30
+ } else if (R) {
31
+ const t = new Set(n.map((d) => e.getRowId(d)));
32
+ e.selectedData = e.selectedData.filter(
33
+ (d) => !t.has(e.getRowId(d))
34
+ );
35
+ } else {
36
+ const t = e.getRowId(s);
37
+ e.selectedData = e.selectedData.filter(
38
+ (d) => e.getRowId(d) !== t
39
+ );
40
+ }
41
+ else if (a) {
42
+ const t = new Set(e.selectedData.map((i) => e.getRowId(i))), d = e.disabledIdSet, c = [...e.selectedData];
43
+ for (const i of e.displayedData) {
44
+ const m = e.getRowId(i);
45
+ !t.has(m) && !d.has(m) && (c.push(i), t.add(m));
46
+ }
47
+ e.selectedData = c;
48
+ } else {
49
+ const t = new Set(e.selectedData.map((c) => e.getRowId(c))), d = n.filter((c) => !t.has(e.getRowId(c)));
50
+ d.length > 0 && (e.selectedData = [...e.selectedData, ...d]);
51
+ }
52
+ (y = e.onCheckboxChange) == null || y.call(e, {
53
+ isHeader: !!a,
54
+ data: a ? e.displayedData : n,
55
+ checked: !!h
56
+ });
57
+ });
58
+ return /* @__PURE__ */ p(
59
+ "div",
60
+ {
61
+ className: b(
62
+ "w-10 flex items-center justify-center",
63
+ l ? "cursor-not-allowed" : "cursor-pointer",
64
+ g && !e.hideHeaderBackgroundColor && "bg-gray-blue-1",
65
+ !g && "bg-white",
66
+ e.isStickyColumnEnabled && "sticky left-0 z-[2]"
67
+ ),
68
+ ...!l && !r ? { onClick: C } : {},
69
+ children: !r && // Row hover -> checkbox border purple (original .ikas-checkbox-inner
70
+ // hover style). @ikas/ui Checkbox renders a Radix root with role="checkbox".
71
+ /* @__PURE__ */ p("div", { className: b(u && !l && "[&_[role=checkbox]]:border-purple"), children: /* @__PURE__ */ p(
72
+ E,
73
+ {
74
+ checked: !!h,
75
+ indeterminate: !!x,
76
+ disabled: l
77
+ }
78
+ ) })
79
+ }
80
+ );
81
+ }
82
+ const B = v(j);
2
83
  export {
3
- e as __module
84
+ B as CheckboxCell
4
85
  };
package/dist/index130.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index134.cjs"),r=require("./index192.cjs");var t=r.__require();const o=e.getDefaultExportFromCjs(t);module.exports=o;
1
+ "use strict";const e=require("./index131.cjs"),r=require("./index192.cjs");var t=r.__require();const o=e.getDefaultExportFromCjs(t);module.exports=o;
package/dist/index130.js CHANGED
@@ -1,4 +1,4 @@
1
- import { getDefaultExportFromCjs as e } from "./index134.js";
1
+ import { getDefaultExportFromCjs as e } from "./index131.js";
2
2
  import { __require as r } from "./index192.js";
3
3
  var t = r();
4
4
  const a = /* @__PURE__ */ e(t);
package/dist/index131.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const o=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),t={randomUUID:o};module.exports=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}exports.getDefaultExportFromCjs=e;
package/dist/index131.js CHANGED
@@ -1,6 +1,6 @@
1
- const o = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), t = {
2
- randomUUID: o
3
- };
1
+ function e(t) {
2
+ return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
3
+ }
4
4
  export {
5
- t as default
5
+ e as getDefaultExportFromCjs
6
6
  };
package/dist/index132.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";let t;const e=new Uint8Array(16);function o(){if(!t&&(t=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!t))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return t(e)}module.exports=o;
1
+ "use strict";const o=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),t={randomUUID:o};module.exports=t;
package/dist/index132.js CHANGED
@@ -1,10 +1,6 @@
1
- let t;
2
- const e = new Uint8Array(16);
3
- function o() {
4
- if (!t && (t = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !t))
5
- throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
6
- return t(e);
7
- }
1
+ const o = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), t = {
2
+ randomUUID: o
3
+ };
8
4
  export {
9
- o as default
5
+ t as default
10
6
  };
package/dist/index133.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=[];for(let i=0;i<256;++i)n.push((i+256).toString(16).slice(1));function c(i,u=0){return n[i[u+0]]+n[i[u+1]]+n[i[u+2]]+n[i[u+3]]+"-"+n[i[u+4]]+n[i[u+5]]+"-"+n[i[u+6]]+n[i[u+7]]+"-"+n[i[u+8]]+n[i[u+9]]+"-"+n[i[u+10]]+n[i[u+11]]+n[i[u+12]]+n[i[u+13]]+n[i[u+14]]+n[i[u+15]]}exports.unsafeStringify=c;
1
+ "use strict";let t;const e=new Uint8Array(16);function o(){if(!t&&(t=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!t))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return t(e)}module.exports=o;
package/dist/index133.js CHANGED
@@ -1,9 +1,10 @@
1
- const i = [];
2
- for (let n = 0; n < 256; ++n)
3
- i.push((n + 256).toString(16).slice(1));
4
- function c(n, u = 0) {
5
- return i[n[u + 0]] + i[n[u + 1]] + i[n[u + 2]] + i[n[u + 3]] + "-" + i[n[u + 4]] + i[n[u + 5]] + "-" + i[n[u + 6]] + i[n[u + 7]] + "-" + i[n[u + 8]] + i[n[u + 9]] + "-" + i[n[u + 10]] + i[n[u + 11]] + i[n[u + 12]] + i[n[u + 13]] + i[n[u + 14]] + i[n[u + 15]];
1
+ let t;
2
+ const e = new Uint8Array(16);
3
+ function o() {
4
+ if (!t && (t = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !t))
5
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
6
+ return t(e);
6
7
  }
7
8
  export {
8
- c as unsafeStringify
9
+ o as default
9
10
  };
package/dist/index134.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function e(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}exports.getDefaultExportFromCjs=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=[];for(let i=0;i<256;++i)n.push((i+256).toString(16).slice(1));function c(i,u=0){return n[i[u+0]]+n[i[u+1]]+n[i[u+2]]+n[i[u+3]]+"-"+n[i[u+4]]+n[i[u+5]]+"-"+n[i[u+6]]+n[i[u+7]]+"-"+n[i[u+8]]+n[i[u+9]]+"-"+n[i[u+10]]+n[i[u+11]]+n[i[u+12]]+n[i[u+13]]+n[i[u+14]]+n[i[u+15]]}exports.unsafeStringify=c;
package/dist/index134.js CHANGED
@@ -1,6 +1,9 @@
1
- function e(t) {
2
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
1
+ const i = [];
2
+ for (let n = 0; n < 256; ++n)
3
+ i.push((n + 256).toString(16).slice(1));
4
+ function c(n, u = 0) {
5
+ return i[n[u + 0]] + i[n[u + 1]] + i[n[u + 2]] + i[n[u + 3]] + "-" + i[n[u + 4]] + i[n[u + 5]] + "-" + i[n[u + 6]] + i[n[u + 7]] + "-" + i[n[u + 8]] + i[n[u + 9]] + "-" + i[n[u + 10]] + i[n[u + 11]] + i[n[u + 12]] + i[n[u + 13]] + i[n[u + 14]] + i[n[u + 15]];
3
6
  }
4
7
  export {
5
- e as getDefaultExportFromCjs
8
+ c as unsafeStringify
6
9
  };
package/dist/index154.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index134.cjs"),t=require("./index200.cjs");var e=t.__require();const o=r.getDefaultExportFromCjs(e);exports.default=o;exports.libExports=e;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index131.cjs"),t=require("./index195.cjs");var e=t.__require();const o=r.getDefaultExportFromCjs(e);exports.default=o;exports.libExports=e;
package/dist/index154.js CHANGED
@@ -1,5 +1,5 @@
1
- import { getDefaultExportFromCjs as r } from "./index134.js";
2
- import { __require as t } from "./index200.js";
1
+ import { getDefaultExportFromCjs as r } from "./index131.js";
2
+ import { __require as t } from "./index195.js";
3
3
  var e = t();
4
4
  const i = /* @__PURE__ */ r(e);
5
5
  export {
package/dist/index155.cjs CHANGED
@@ -1,3 +1,3 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react"),f=require("./index154.cjs"),b=require("./index243.cjs"),v=require("./index156.cjs");var g=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])}return n},m=(function(){function n(t,o){for(var r=0;r<o.length;r++){var e=o[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}return function(t,o,r){return o&&n(t.prototype,o),r&&n(t,r),t}})();function w(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function c(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var d=(function(n){y(t,n);function t(){var o,r,e,i;w(this,t);for(var l=arguments.length,u=Array(l),p=0;p<l;p++)u[p]=arguments[p];return i=(r=(e=c(this,(o=t.__proto__||Object.getPrototypeOf(t)).call.apply(o,[this].concat(u))),e),e.handleChange=function(s){var h=b.calculateChange(s,e.props.hsl,e.props.direction,e.props.a,e.container);h&&typeof e.props.onChange=="function"&&e.props.onChange(h,s)},e.handleMouseDown=function(s){e.handleChange(s),window.addEventListener("mousemove",e.handleChange),window.addEventListener("mouseup",e.handleMouseUp)},e.handleMouseUp=function(){e.unbindEventListeners()},e.unbindEventListeners=function(){window.removeEventListener("mousemove",e.handleChange),window.removeEventListener("mouseup",e.handleMouseUp)},r),c(e,i)}return m(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var r=this,e=this.props.rgb,i=f.default({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+e.r+","+e.g+","+e.b+`, 0) 0%,
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react"),f=require("./index154.cjs"),b=require("./index235.cjs"),v=require("./index156.cjs");var g=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])}return n},m=(function(){function n(t,o){for(var r=0;r<o.length;r++){var e=o[r];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}return function(t,o,r){return o&&n(t.prototype,o),r&&n(t,r),t}})();function w(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function c(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function y(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var d=(function(n){y(t,n);function t(){var o,r,e,i;w(this,t);for(var l=arguments.length,u=Array(l),p=0;p<l;p++)u[p]=arguments[p];return i=(r=(e=c(this,(o=t.__proto__||Object.getPrototypeOf(t)).call.apply(o,[this].concat(u))),e),e.handleChange=function(s){var h=b.calculateChange(s,e.props.hsl,e.props.direction,e.props.a,e.container);h&&typeof e.props.onChange=="function"&&e.props.onChange(h,s)},e.handleMouseDown=function(s){e.handleChange(s),window.addEventListener("mousemove",e.handleChange),window.addEventListener("mouseup",e.handleMouseUp)},e.handleMouseUp=function(){e.unbindEventListeners()},e.unbindEventListeners=function(){window.removeEventListener("mousemove",e.handleChange),window.removeEventListener("mouseup",e.handleMouseUp)},r),c(e,i)}return m(t,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"render",value:function(){var r=this,e=this.props.rgb,i=f.default({default:{alpha:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},checkboard:{absolute:"0px 0px 0px 0px",overflow:"hidden",borderRadius:this.props.radius},gradient:{absolute:"0px 0px 0px 0px",background:"linear-gradient(to right, rgba("+e.r+","+e.g+","+e.b+`, 0) 0%,
2
2
  rgba(`+e.r+","+e.g+","+e.b+", 1) 100%)",boxShadow:this.props.shadow,borderRadius:this.props.radius},container:{position:"relative",height:"100%",margin:"0 3px"},pointer:{position:"absolute",left:e.a*100+"%"},slider:{width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",marginTop:"1px",transform:"translateX(-2px)"}},vertical:{gradient:{background:"linear-gradient(to bottom, rgba("+e.r+","+e.g+","+e.b+`, 0) 0%,
3
3
  rgba(`+e.r+","+e.g+","+e.b+", 1) 100%)"},pointer:{left:0,top:e.a*100+"%"}},overwrite:g({},this.props.style)},{vertical:this.props.direction==="vertical",overwrite:!0});return a.createElement("div",{style:i.alpha},a.createElement("div",{style:i.checkboard},a.createElement(v.Checkboard,{renderers:this.props.renderers})),a.createElement("div",{style:i.gradient}),a.createElement("div",{style:i.container,ref:function(u){return r.container=u},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},a.createElement("div",{style:i.pointer},this.props.pointer?a.createElement(this.props.pointer,this.props):a.createElement("div",{style:i.slider}))))}}]),t})(a.PureComponent||a.Component);exports.Alpha=d;exports.default=d;
package/dist/index155.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import i, { PureComponent as d, Component as f } from "react";
2
2
  import b from "./index154.js";
3
- import { calculateChange as v } from "./index243.js";
3
+ import { calculateChange as v } from "./index235.js";
4
4
  import { Checkboard as g } from "./index156.js";
5
5
  var m = Object.assign || function(n) {
6
6
  for (var t = 1; t < arguments.length; t++) {
package/dist/index156.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react"),g=require("./index154.cjs"),h=require("./index244.cjs");var i=Object.assign||function(d){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(d[t]=r[t])}return d},o=function(e){var r=e.white,t=e.grey,l=e.size,u=e.renderers,c=e.borderRadius,b=e.boxShadow,a=e.children,s=g.default({default:{grid:{borderRadius:c,boxShadow:b,absolute:"0px 0px 0px 0px",background:"url("+h.get(r,t,l,u.canvas)+") center left"}}});return n.isValidElement(a)?n.cloneElement(a,i({},a.props,{style:i({},a.props.style,s.grid)})):n.createElement("div",{style:s.grid})};o.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};exports.Checkboard=o;exports.default=o;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("react"),g=require("./index154.cjs"),h=require("./index236.cjs");var i=Object.assign||function(d){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(d[t]=r[t])}return d},o=function(e){var r=e.white,t=e.grey,l=e.size,u=e.renderers,c=e.borderRadius,b=e.boxShadow,a=e.children,s=g.default({default:{grid:{borderRadius:c,boxShadow:b,absolute:"0px 0px 0px 0px",background:"url("+h.get(r,t,l,u.canvas)+") center left"}}});return n.isValidElement(a)?n.cloneElement(a,i({},a.props,{style:i({},a.props.style,s.grid)})):n.createElement("div",{style:s.grid})};o.defaultProps={size:8,white:"transparent",grey:"rgba(0,0,0,.08)",renderers:{}};exports.Checkboard=o;exports.default=o;
package/dist/index156.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import n, { isValidElement as u } from "react";
2
2
  import b from "./index154.js";
3
- import { get as g } from "./index244.js";
3
+ import { get as g } from "./index236.js";
4
4
  var s = Object.assign || function(o) {
5
5
  for (var r = 1; r < arguments.length; r++) {
6
6
  var e = arguments[r];
package/dist/index158.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react"),d=require("./index154.cjs"),v=require("./index245.cjs");var b=(function(){function t(e,o){for(var r=0;r<o.length;r++){var n=o[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,o,r){return o&&t(e.prototype,o),r&&t(e,r),e}})();function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function m(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var c=(function(t){m(e,t);function e(){var o,r,n,u;g(this,e);for(var a=arguments.length,l=Array(a),f=0;f<a;f++)l[f]=arguments[f];return u=(r=(n=p(this,(o=e.__proto__||Object.getPrototypeOf(e)).call.apply(o,[this].concat(l))),n),n.handleChange=function(h){var s=v.calculateChange(h,n.props.direction,n.props.hsl,n.container);s&&typeof n.props.onChange=="function"&&n.props.onChange(s,h)},n.handleMouseDown=function(h){n.handleChange(h),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},r),p(n,u)}return b(e,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var r=this,n=this.props.direction,u=n===void 0?"horizontal":n,a=d.default({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:this.props.hsl.h*100/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-(this.props.hsl.h*100/360)+100+"%"}}},{vertical:u==="vertical"});return i.createElement("div",{style:a.hue},i.createElement("div",{className:"hue-"+u,style:a.container,ref:function(f){return r.container=f},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.createElement("style",null,`
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react"),d=require("./index154.cjs"),v=require("./index237.cjs");var b=(function(){function t(e,o){for(var r=0;r<o.length;r++){var n=o[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,o,r){return o&&t(e.prototype,o),r&&t(e,r),e}})();function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:t}function m(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var c=(function(t){m(e,t);function e(){var o,r,n,u;g(this,e);for(var a=arguments.length,l=Array(a),f=0;f<a;f++)l[f]=arguments[f];return u=(r=(n=p(this,(o=e.__proto__||Object.getPrototypeOf(e)).call.apply(o,[this].concat(l))),n),n.handleChange=function(h){var s=v.calculateChange(h,n.props.direction,n.props.hsl,n.container);s&&typeof n.props.onChange=="function"&&n.props.onChange(s,h)},n.handleMouseDown=function(h){n.handleChange(h),window.addEventListener("mousemove",n.handleChange),window.addEventListener("mouseup",n.handleMouseUp)},n.handleMouseUp=function(){n.unbindEventListeners()},r),p(n,u)}return b(e,[{key:"componentWillUnmount",value:function(){this.unbindEventListeners()}},{key:"unbindEventListeners",value:function(){window.removeEventListener("mousemove",this.handleChange),window.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var r=this,n=this.props.direction,u=n===void 0?"horizontal":n,a=d.default({default:{hue:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius,boxShadow:this.props.shadow},container:{padding:"0 2px",position:"relative",height:"100%",borderRadius:this.props.radius},pointer:{position:"absolute",left:this.props.hsl.h*100/360+"%"},slider:{marginTop:"1px",width:"4px",borderRadius:"1px",height:"8px",boxShadow:"0 0 2px rgba(0, 0, 0, .6)",background:"#fff",transform:"translateX(-2px)"}},vertical:{pointer:{left:"0px",top:-(this.props.hsl.h*100/360)+100+"%"}}},{vertical:u==="vertical"});return i.createElement("div",{style:a.hue},i.createElement("div",{className:"hue-"+u,style:a.container,ref:function(f){return r.container=f},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.createElement("style",null,`
2
2
  .hue-horizontal {
3
3
  background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0
4
4
  33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
package/dist/index158.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import f, { PureComponent as c, Component as d } from "react";
2
2
  import v from "./index154.js";
3
- import { calculateChange as m } from "./index245.js";
3
+ import { calculateChange as m } from "./index237.js";
4
4
  var b = /* @__PURE__ */ (function() {
5
5
  function t(e, o) {
6
6
  for (var r = 0; r < o.length; r++) {
package/dist/index160.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react"),f=require("./index154.cjs"),b=require("./index246.cjs"),v=require("./index247.cjs");var g=(function(){function r(t,o){for(var e=0;e<o.length;e++){var n=o[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,o,e){return o&&r(t.prototype,o),e&&r(t,e),t}})();function w(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function m(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function y(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var l=(function(r){y(t,r);function t(o){w(this,t);var e=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,o));return e.handleChange=function(n){typeof e.props.onChange=="function"&&e.throttle(e.props.onChange,v.calculateChange(n,e.props.hsl,e.container),n)},e.handleMouseDown=function(n){e.handleChange(n);var a=e.getContainerRenderWindow();a.addEventListener("mousemove",e.handleChange),a.addEventListener("mouseup",e.handleMouseUp)},e.handleMouseUp=function(){e.unbindEventListeners()},e.throttle=b(function(n,a,s){n(a,s)},50),e}return g(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,n=window;!n.document.contains(e)&&n.parent!==n;)n=n.parent;return n}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,n=this.props.style||{},a=n.color,s=n.white,c=n.black,h=n.pointer,p=n.circle,u=f.default({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-(this.props.hsv.v*100)+100+"%",left:this.props.hsv.s*100+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react"),f=require("./index154.cjs"),b=require("./index238.cjs"),v=require("./index239.cjs");var g=(function(){function r(t,o){for(var e=0;e<o.length;e++){var n=o[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(t,o,e){return o&&r(t.prototype,o),e&&r(t,e),t}})();function w(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function m(r,t){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:r}function y(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(r,t):r.__proto__=t)}var l=(function(r){y(t,r);function t(o){w(this,t);var e=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,o));return e.handleChange=function(n){typeof e.props.onChange=="function"&&e.throttle(e.props.onChange,v.calculateChange(n,e.props.hsl,e.container),n)},e.handleMouseDown=function(n){e.handleChange(n);var a=e.getContainerRenderWindow();a.addEventListener("mousemove",e.handleChange),a.addEventListener("mouseup",e.handleMouseUp)},e.handleMouseUp=function(){e.unbindEventListeners()},e.throttle=b(function(n,a,s){n(a,s)},50),e}return g(t,[{key:"componentWillUnmount",value:function(){this.throttle.cancel(),this.unbindEventListeners()}},{key:"getContainerRenderWindow",value:function(){for(var e=this.container,n=window;!n.document.contains(e)&&n.parent!==n;)n=n.parent;return n}},{key:"unbindEventListeners",value:function(){var e=this.getContainerRenderWindow();e.removeEventListener("mousemove",this.handleChange),e.removeEventListener("mouseup",this.handleMouseUp)}},{key:"render",value:function(){var e=this,n=this.props.style||{},a=n.color,s=n.white,c=n.black,h=n.pointer,p=n.circle,u=f.default({default:{color:{absolute:"0px 0px 0px 0px",background:"hsl("+this.props.hsl.h+",100%, 50%)",borderRadius:this.props.radius},white:{absolute:"0px 0px 0px 0px",borderRadius:this.props.radius},black:{absolute:"0px 0px 0px 0px",boxShadow:this.props.shadow,borderRadius:this.props.radius},pointer:{position:"absolute",top:-(this.props.hsv.v*100)+100+"%",left:this.props.hsv.s*100+"%",cursor:"default"},circle:{width:"4px",height:"4px",boxShadow:`0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),
2
2
  0 0 1px 2px rgba(0,0,0,.4)`,borderRadius:"50%",cursor:"hand",transform:"translate(-2px, -2px)"}},custom:{color:a,white:s,black:c,pointer:h,circle:p}},{custom:!!this.props.style});return i.createElement("div",{style:u.color,ref:function(d){return e.container=d},onMouseDown:this.handleMouseDown,onTouchMove:this.handleChange,onTouchStart:this.handleChange},i.createElement("style",null,`
3
3
  .saturation-white {
4
4
  background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));
package/dist/index160.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import i, { PureComponent as d, Component as f } from "react";
2
2
  import b from "./index154.js";
3
- import m from "./index246.js";
4
- import { calculateChange as v } from "./index247.js";
3
+ import m from "./index238.js";
4
+ import { calculateChange as v } from "./index239.js";
5
5
  var g = /* @__PURE__ */ (function() {
6
6
  function r(t, o) {
7
7
  for (var e = 0; e < o.length; e++) {
package/dist/index162.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const v=require("react"),x=require("./index154.cjs"),E=require("./index248.cjs"),O=require("./index156.cjs");var f=Object.assign||function(o){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(o[r]=n[r])}return o},q=13,w=function(e){var n=e.color,r=e.style,a=e.onClick,i=a===void 0?function(){}:a,c=e.onHover,l=e.title,b=l===void 0?n:l,y=e.children,p=e.focus,u=e.focusStyle,S=u===void 0?{}:u,C=n==="transparent",s=x.default({default:{swatch:f({background:n,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},r,p?S:{})}}),g=function(t){return i(n,t)},k=function(t){return t.keyCode===q&&i(n,t)},m=function(t){return c(n,t)},d={};return c&&(d.onMouseOver=m),v.createElement("div",f({style:s.swatch,onClick:g,title:b,tabIndex:0,onKeyDown:k},d),y,C&&v.createElement(O.Checkboard,{borderRadius:s.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const H=E.handleFocus(w);exports.Swatch=w;exports.default=H;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const v=require("react"),x=require("./index154.cjs"),E=require("./index240.cjs"),O=require("./index156.cjs");var f=Object.assign||function(o){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(o[r]=n[r])}return o},q=13,w=function(e){var n=e.color,r=e.style,a=e.onClick,i=a===void 0?function(){}:a,c=e.onHover,l=e.title,b=l===void 0?n:l,y=e.children,p=e.focus,u=e.focusStyle,S=u===void 0?{}:u,C=n==="transparent",s=x.default({default:{swatch:f({background:n,height:"100%",width:"100%",cursor:"pointer",position:"relative",outline:"none"},r,p?S:{})}}),g=function(t){return i(n,t)},k=function(t){return t.keyCode===q&&i(n,t)},m=function(t){return c(n,t)},d={};return c&&(d.onMouseOver=m),v.createElement("div",f({style:s.swatch,onClick:g,title:b,tabIndex:0,onKeyDown:k},d),y,C&&v.createElement(O.Checkboard,{borderRadius:s.swatch.borderRadius,boxShadow:"inset 0 0 0 1px rgba(0,0,0,0.1)"}))};const H=E.handleFocus(w);exports.Swatch=w;exports.default=H;
package/dist/index162.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import f from "react";
2
2
  import g from "./index154.js";
3
- import { handleFocus as x } from "./index248.js";
3
+ import { handleFocus as x } from "./index240.js";
4
4
  import { Checkboard as E } from "./index156.js";
5
5
  var v = Object.assign || function(r) {
6
6
  for (var e = 1; e < arguments.length; e++) {
package/dist/index164.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index134.cjs"),r=require("./index195.cjs");var s=r.__require();const o=e.getDefaultExportFromCjs(s);module.exports=o;
1
+ "use strict";const e=require("./index131.cjs"),r=require("./index203.cjs");var s=r.__require();const o=e.getDefaultExportFromCjs(s);module.exports=o;
package/dist/index164.js CHANGED
@@ -1,5 +1,5 @@
1
- import { getDefaultExportFromCjs as r } from "./index134.js";
2
- import { __require as o } from "./index195.js";
1
+ import { getDefaultExportFromCjs as r } from "./index131.js";
2
+ import { __require as o } from "./index203.js";
3
3
  var p = /* @__PURE__ */ o();
4
4
  const s = /* @__PURE__ */ r(p);
5
5
  export {
package/dist/index165.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const t=require("./index208.cjs"),c=require("./index209.cjs");var i=c(function(e,r,s){t(e,r,s)});module.exports=i;
1
+ "use strict";const t=require("./index212.cjs"),c=require("./index213.cjs");var i=c(function(e,r,s){t(e,r,s)});module.exports=i;
package/dist/index165.js CHANGED
@@ -1,5 +1,5 @@
1
- import t from "./index208.js";
2
- import a from "./index209.js";
1
+ import t from "./index212.js";
2
+ import a from "./index213.js";
3
3
  var i = a(function(e, r, o) {
4
4
  t(e, r, o);
5
5
  });
package/dist/index166.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index97.cjs"),c=require("./index210.cjs");var f=function(r){var o=["r","g","b","a","h","s","l","v"],i=0,t=0;return c(o,function(e){if(r[e]&&(i+=1,isNaN(r[e])||(t+=1),e==="s"||e==="l")){var s=/^\d+%$/;s.test(r[e])&&(t+=1)}}),i===t?r:!1},v=function(r,o){var i=r.hex?a(r.hex):a(r),t=i.toHsl(),e=i.toHsv(),s=i.toRgb(),l=i.toHex();t.s===0&&(t.h=o||0,e.h=o||0);var g=l==="000000"&&s.a===0;return{hsl:t,hex:g?"transparent":"#"+l,rgb:s,hsv:e,oldHue:r.h||o||t.h,source:r.source}},u=function(r){if(r==="transparent")return!0;var o=String(r).charAt(0)==="#"?1:0;return r.length!==4+o&&r.length<7+o&&a(r).isValid()},h=function(r){if(!r)return"#fff";var o=v(r);if(o.hex==="transparent")return"rgba(0,0,0,0.4)";var i=(o.rgb.r*299+o.rgb.g*587+o.rgb.b*114)/1e3;return i>=128?"#000":"#fff"},C=function(r,o){var i=r.replace("°","");return a(o+" ("+i+")")._ok};exports.getContrastingColor=h;exports.isValidHex=u;exports.isvalidColorString=C;exports.simpleCheckForValidColor=f;exports.toState=v;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index97.cjs"),c=require("./index214.cjs");var f=function(r){var o=["r","g","b","a","h","s","l","v"],i=0,t=0;return c(o,function(e){if(r[e]&&(i+=1,isNaN(r[e])||(t+=1),e==="s"||e==="l")){var s=/^\d+%$/;s.test(r[e])&&(t+=1)}}),i===t?r:!1},v=function(r,o){var i=r.hex?a(r.hex):a(r),t=i.toHsl(),e=i.toHsv(),s=i.toRgb(),l=i.toHex();t.s===0&&(t.h=o||0,e.h=o||0);var g=l==="000000"&&s.a===0;return{hsl:t,hex:g?"transparent":"#"+l,rgb:s,hsv:e,oldHue:r.h||o||t.h,source:r.source}},u=function(r){if(r==="transparent")return!0;var o=String(r).charAt(0)==="#"?1:0;return r.length!==4+o&&r.length<7+o&&a(r).isValid()},h=function(r){if(!r)return"#fff";var o=v(r);if(o.hex==="transparent")return"rgba(0,0,0,0.4)";var i=(o.rgb.r*299+o.rgb.g*587+o.rgb.b*114)/1e3;return i>=128?"#000":"#fff"},C=function(r,o){var i=r.replace("°","");return a(o+" ("+i+")")._ok};exports.getContrastingColor=h;exports.isValidHex=u;exports.isvalidColorString=C;exports.simpleCheckForValidColor=f;exports.toState=v;
package/dist/index166.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import s from "./index97.js";
2
- import l from "./index210.js";
2
+ import l from "./index214.js";
3
3
  var u = function(r) {
4
4
  var o = ["r", "g", "b", "a", "h", "s", "l", "v"], i = 0, n = 0;
5
5
  return l(o, function(t) {
package/dist/index168.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const s=require("./index211.cjs"),t=require("./index212.cjs"),u=require("./index213.cjs"),n=require("./index214.cjs");function i(r,e){var a=n(r)?s:u;return a(r,t(e))}module.exports=i;
1
+ "use strict";const s=require("./index208.cjs"),t=require("./index209.cjs"),u=require("./index210.cjs"),n=require("./index211.cjs");function i(r,e){var a=n(r)?s:u;return a(r,t(e))}module.exports=i;
package/dist/index168.js CHANGED
@@ -1,7 +1,7 @@
1
- import t from "./index211.js";
2
- import o from "./index212.js";
3
- import p from "./index213.js";
4
- import e from "./index214.js";
1
+ import t from "./index208.js";
2
+ import o from "./index209.js";
3
+ import p from "./index210.js";
4
+ import e from "./index211.js";
5
5
  function n(r, a) {
6
6
  var m = e(r) ? t : p;
7
7
  return m(r, o(a));
package/dist/index185.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react"),h=require("./index154.cjs"),c=require("./index221.cjs");var i=function(r){var s=r.onClick,e=r.hsl,l=h.default({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),a=.1;return t.createElement("div",{style:l.swatches},t.createElement("div",{style:l.swatch},t.createElement(c.SliderSwatch,{hsl:e,offset:".80",active:Math.abs(e.l-.8)<a&&Math.abs(e.s-.5)<a,onClick:s,first:!0})),t.createElement("div",{style:l.swatch},t.createElement(c.SliderSwatch,{hsl:e,offset:".65",active:Math.abs(e.l-.65)<a&&Math.abs(e.s-.5)<a,onClick:s})),t.createElement("div",{style:l.swatch},t.createElement(c.SliderSwatch,{hsl:e,offset:".50",active:Math.abs(e.l-.5)<a&&Math.abs(e.s-.5)<a,onClick:s})),t.createElement("div",{style:l.swatch},t.createElement(c.SliderSwatch,{hsl:e,offset:".35",active:Math.abs(e.l-.35)<a&&Math.abs(e.s-.5)<a,onClick:s})),t.createElement("div",{style:l.swatch},t.createElement(c.SliderSwatch,{hsl:e,offset:".20",active:Math.abs(e.l-.2)<a&&Math.abs(e.s-.5)<a,onClick:s,last:!0})),t.createElement("div",{style:l.clear}))};exports.SliderSwatches=i;exports.default=i;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("react"),h=require("./index154.cjs"),c=require("./index217.cjs");var i=function(r){var s=r.onClick,e=r.hsl,l=h.default({default:{swatches:{marginTop:"20px"},swatch:{boxSizing:"border-box",width:"20%",paddingRight:"1px",float:"left"},clear:{clear:"both"}}}),a=.1;return t.createElement("div",{style:l.swatches},t.createElement("div",{style:l.swatch},t.createElement(c.SliderSwatch,{hsl:e,offset:".80",active:Math.abs(e.l-.8)<a&&Math.abs(e.s-.5)<a,onClick:s,first:!0})),t.createElement("div",{style:l.swatch},t.createElement(c.SliderSwatch,{hsl:e,offset:".65",active:Math.abs(e.l-.65)<a&&Math.abs(e.s-.5)<a,onClick:s})),t.createElement("div",{style:l.swatch},t.createElement(c.SliderSwatch,{hsl:e,offset:".50",active:Math.abs(e.l-.5)<a&&Math.abs(e.s-.5)<a,onClick:s})),t.createElement("div",{style:l.swatch},t.createElement(c.SliderSwatch,{hsl:e,offset:".35",active:Math.abs(e.l-.35)<a&&Math.abs(e.s-.5)<a,onClick:s})),t.createElement("div",{style:l.swatch},t.createElement(c.SliderSwatch,{hsl:e,offset:".20",active:Math.abs(e.l-.2)<a&&Math.abs(e.s-.5)<a,onClick:s,last:!0})),t.createElement("div",{style:l.clear}))};exports.SliderSwatches=i;exports.default=i;
package/dist/index185.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import t from "react";
2
2
  import i from "./index154.js";
3
- import { SliderSwatch as c } from "./index221.js";
3
+ import { SliderSwatch as c } from "./index217.js";
4
4
  var m = function(r) {
5
5
  var s = r.onClick, e = r.hsl, l = i({
6
6
  default: {
package/dist/index187.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react"),s=require("./index154.cjs"),p=require("./index168.cjs"),v=require("./index217.cjs");var c=function(e){var n=e.onClick,u=e.onSwatchHover,o=e.group,i=e.active,l=s.default({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return a.createElement("div",{style:l.group},p(o,function(t,r){return a.createElement(v.SwatchesColor,{key:t,color:t,active:t.toLowerCase()===i,first:r===0,last:r===o.length-1,onClick:n,onSwatchHover:u})}))};exports.SwatchesGroup=c;exports.default=c;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("react"),s=require("./index154.cjs"),p=require("./index168.cjs"),v=require("./index221.cjs");var c=function(e){var n=e.onClick,u=e.onSwatchHover,o=e.group,i=e.active,l=s.default({default:{group:{paddingBottom:"10px",width:"40px",float:"left",marginRight:"10px"}}});return a.createElement("div",{style:l.group},p(o,function(t,r){return a.createElement(v.SwatchesColor,{key:t,color:t,active:t.toLowerCase()===i,first:r===0,last:r===o.length-1,onClick:n,onSwatchHover:u})}))};exports.SwatchesGroup=c;exports.default=c;
package/dist/index187.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import a from "react";
2
2
  import l from "./index154.js";
3
3
  import m from "./index168.js";
4
- import { SwatchesColor as u } from "./index217.js";
4
+ import { SwatchesColor as u } from "./index221.js";
5
5
  var w = function(t) {
6
6
  var c = t.onClick, i = t.onSwatchHover, e = t.group, n = t.active, p = l({
7
7
  default: {
package/dist/index195.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index196.cjs"),t=require("./index197.cjs"),u=require("./index198.cjs"),s=require("./index199.cjs");var r;function _(){if(r)return e.__module.exports;if(r=1,process.env.NODE_ENV!=="production"){var o=t.__require(),i=!0;e.__module.exports=u.__require()(o.isElement,i)}else e.__module.exports=s.__require()();return e.__module.exports}exports.__require=_;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index196.cjs"),R=require("./index197.cjs"),N=require("./index198.cjs"),A=require("./index199.cjs"),M=require("./index200.cjs"),b=require("./index201.cjs"),H=require("./index202.cjs");var s;function L(){if(s)return e.__exports;s=1,Object.defineProperty(e.__exports,"__esModule",{value:!0}),e.__exports.ReactCSS=e.__exports.loop=e.__exports.handleActive=e.__exports.handleHover=e.__exports.hover=void 0;var i=R.__require(),n=r(i),v=N.__require(),l=r(v),p=A.__require(),f=r(p),d=M.__require(),o=r(d),c=b.__require(),x=r(c),q=H.__require(),h=r(q);function r(t){return t&&t.__esModule?t:{default:t}}e.__exports.hover=o.default,e.__exports.handleHover=o.default,e.__exports.handleActive=x.default,e.__exports.loop=h.default;var m=e.__exports.ReactCSS=function(S){for(var _=arguments.length,u=Array(_>1?_-1:0),a=1;a<_;a++)u[a-1]=arguments[a];var g=(0,n.default)(u),C=(0,l.default)(S,g);return(0,f.default)(C)};return e.__exports.default=m,e.__exports}exports.__require=L;
package/dist/index195.js CHANGED
@@ -1,17 +1,29 @@
1
- import { __module as r } from "./index196.js";
2
- import { __require as s } from "./index197.js";
3
- import { __require as t } from "./index198.js";
4
- import { __require as p } from "./index199.js";
5
- var e;
6
- function q() {
7
- if (e) return r.exports;
8
- if (e = 1, process.env.NODE_ENV !== "production") {
9
- var o = s(), i = !0;
10
- r.exports = /* @__PURE__ */ t()(o.isElement, i);
11
- } else
12
- r.exports = /* @__PURE__ */ p()();
13
- return r.exports;
1
+ import { __exports as e } from "./index196.js";
2
+ import { __require as x } from "./index197.js";
3
+ import { __require as A } from "./index198.js";
4
+ import { __require as N } from "./index199.js";
5
+ import { __require as H } from "./index200.js";
6
+ import { __require as L } from "./index201.js";
7
+ import { __require as M } from "./index202.js";
8
+ var v;
9
+ function B() {
10
+ if (v) return e;
11
+ v = 1, Object.defineProperty(e, "__esModule", {
12
+ value: !0
13
+ }), e.ReactCSS = e.loop = e.handleActive = e.handleHover = e.hover = void 0;
14
+ var f = x(), _ = r(f), l = A(), s = r(l), m = N(), n = r(m), d = H(), i = r(d), p = L(), q = r(p), c = M(), h = r(c);
15
+ function r(a) {
16
+ return a && a.__esModule ? a : { default: a };
17
+ }
18
+ e.hover = i.default, e.handleHover = i.default, e.handleActive = q.default, e.loop = h.default;
19
+ var S = e.ReactCSS = function(g) {
20
+ for (var u = arguments.length, o = Array(u > 1 ? u - 1 : 0), t = 1; t < u; t++)
21
+ o[t - 1] = arguments[t];
22
+ var C = (0, _.default)(o), R = (0, s.default)(g, C);
23
+ return (0, n.default)(R);
24
+ };
25
+ return e.default = S, e;
14
26
  }
15
27
  export {
16
- q as __require
28
+ B as __require
17
29
  };
package/dist/index196.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
package/dist/index196.js CHANGED
@@ -1,4 +1,4 @@
1
- var p = { exports: {} };
1
+ var r = {};
2
2
  export {
3
- p as __module
3
+ r as __exports
4
4
  };
package/dist/index197.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index228.cjs"),t=require("./index229.cjs"),o=require("./index230.cjs");var r;function u(){return r||(r=1,process.env.NODE_ENV==="production"?e.__module.exports=t.__require():e.__module.exports=o.__require()),e.__module.exports}exports.__require=u;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index222.cjs"),$=require("lodash/isString"),N=require("lodash/forOwn"),x=require("lodash/isPlainObject"),O=require("lodash/map");var i;function g(){if(i)return t.__exports;i=1,Object.defineProperty(t.__exports,"__esModule",{value:!0}),t.__exports.flattenNames=void 0;var f=$,_=u(f),l=N,o=u(l),c=x,d=u(c),p=O,m=u(p);function u(e){return e&&e.__esModule?e:{default:e}}var q=t.__exports.flattenNames=function e(){var v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],a=[];return(0,m.default)(v,function(r){Array.isArray(r)?e(r).map(function(n){return a.push(n)}):(0,d.default)(r)?(0,o.default)(r,function(n,s){n===!0&&a.push(s),a.push(s+"-"+n)}):(0,_.default)(r)&&a.push(r)}),a};return t.__exports.default=q,t.__exports}exports.__require=g;
package/dist/index197.js CHANGED
@@ -1,10 +1,30 @@
1
- import { __module as e } from "./index228.js";
2
- import { __require as o } from "./index229.js";
3
- import { __require as t } from "./index230.js";
4
- var r;
5
- function p() {
6
- return r ? e.exports : (r = 1, process.env.NODE_ENV === "production" ? e.exports = o() : e.exports = t(), e.exports);
1
+ import { __exports as t } from "./index222.js";
2
+ import q from "lodash/isString";
3
+ import N from "lodash/forOwn";
4
+ import O from "lodash/isPlainObject";
5
+ import P from "lodash/map";
6
+ var i;
7
+ function A() {
8
+ if (i) return t;
9
+ i = 1, Object.defineProperty(t, "__esModule", {
10
+ value: !0
11
+ }), t.flattenNames = void 0;
12
+ var s = q, m = u(s), l = N, o = u(l), _ = O, p = u(_), d = P, v = u(d);
13
+ function u(e) {
14
+ return e && e.__esModule ? e : { default: e };
15
+ }
16
+ var $ = t.flattenNames = function e() {
17
+ var c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], a = [];
18
+ return (0, v.default)(c, function(r) {
19
+ Array.isArray(r) ? e(r).map(function(n) {
20
+ return a.push(n);
21
+ }) : (0, p.default)(r) ? (0, o.default)(r, function(n, f) {
22
+ n === !0 && a.push(f), a.push(f + "-" + n);
23
+ }) : (0, m.default)(r) && a.push(r);
24
+ }), a;
25
+ };
26
+ return t.default = $, t;
7
27
  }
8
28
  export {
9
- p as __require
29
+ A as __require
10
30
  };
package/dist/index198.cjs CHANGED
@@ -1,2 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const F=require("./index197.cjs"),N=require("./index231.cjs"),ee=require("./index232.cjs"),re=require("./index233.cjs"),ne=require("./index234.cjs");var A,C;function te(){if(C)return A;C=1;var k=F.__require(),W=N.__require(),h=ee.__require(),I=re.__require(),q=ne.__require(),T=function(){};process.env.NODE_ENV!=="production"&&(T=function(x){var S="Warning: "+x;typeof console<"u"&&console.error(S);try{throw new Error(S)}catch{}});function E(){return null}return A=function(x,S){var P=typeof Symbol=="function"&&Symbol.iterator,D="@@iterator";function M(e){var r=e&&(P&&e[P]||e[D]);if(typeof r=="function")return r}var _="<<anonymous>>",w={array:p("array"),bigint:p("bigint"),bool:p("boolean"),func:p("function"),number:p("number"),object:p("object"),string:p("string"),symbol:p("symbol"),any:U(),arrayOf:$,element:B(),elementType:J(),instanceOf:z,node:H(),objectOf:X,oneOf:L,oneOfType:G,shape:K,exact:Q};function Y(e,r){return e===r?e!==0||1/e===1/r:e!==e&&r!==r}function d(e,r){this.message=e,this.data=r&&typeof r=="object"?r:{},this.stack=""}d.prototype=Error.prototype;function v(e){if(process.env.NODE_ENV!=="production")var r={},u=0;function i(f,t,a,o,s,c,y){if(o=o||_,c=c||a,y!==h){if(S){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var b=o+":"+a;!r[b]&&u<3&&(T("You are manually calling a React.PropTypes validation function for the `"+c+"` prop on `"+o+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),r[b]=!0,u++)}}return t[a]==null?f?t[a]===null?new d("The "+s+" `"+c+"` is marked as required "+("in `"+o+"`, but its value is `null`.")):new d("The "+s+" `"+c+"` is marked as required in "+("`"+o+"`, but its value is `undefined`.")):null:e(t,a,o,s,c)}var n=i.bind(null,!1);return n.isRequired=i.bind(null,!0),n}function p(e){function r(u,i,n,f,t,a){var o=u[i],s=g(o);if(s!==e){var c=O(o);return new d("Invalid "+f+" `"+t+"` of type "+("`"+c+"` supplied to `"+n+"`, expected ")+("`"+e+"`."),{expectedType:e})}return null}return v(r)}function U(){return v(E)}function $(e){function r(u,i,n,f,t){if(typeof e!="function")return new d("Property `"+t+"` of component `"+n+"` has invalid PropType notation inside arrayOf.");var a=u[i];if(!Array.isArray(a)){var o=g(a);return new d("Invalid "+f+" `"+t+"` of type "+("`"+o+"` supplied to `"+n+"`, expected an array."))}for(var s=0;s<a.length;s++){var c=e(a,s,n,f,t+"["+s+"]",h);if(c instanceof Error)return c}return null}return v(r)}function B(){function e(r,u,i,n,f){var t=r[u];if(!x(t)){var a=g(t);return new d("Invalid "+n+" `"+f+"` of type "+("`"+a+"` supplied to `"+i+"`, expected a single ReactElement."))}return null}return v(e)}function J(){function e(r,u,i,n,f){var t=r[u];if(!k.isValidElementType(t)){var a=g(t);return new d("Invalid "+n+" `"+f+"` of type "+("`"+a+"` supplied to `"+i+"`, expected a single ReactElement type."))}return null}return v(e)}function z(e){function r(u,i,n,f,t){if(!(u[i]instanceof e)){var a=e.name||_,o=V(u[i]);return new d("Invalid "+f+" `"+t+"` of type "+("`"+o+"` supplied to `"+n+"`, expected ")+("instance of `"+a+"`."))}return null}return v(r)}function L(e){if(!Array.isArray(e))return process.env.NODE_ENV!=="production"&&(arguments.length>1?T("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):T("Invalid argument supplied to oneOf, expected an array.")),E;function r(u,i,n,f,t){for(var a=u[i],o=0;o<e.length;o++)if(Y(a,e[o]))return null;var s=JSON.stringify(e,function(y,l){var b=O(l);return b==="symbol"?String(l):l});return new d("Invalid "+f+" `"+t+"` of value `"+String(a)+"` "+("supplied to `"+n+"`, expected one of "+s+"."))}return v(r)}function X(e){function r(u,i,n,f,t){if(typeof e!="function")return new d("Property `"+t+"` of component `"+n+"` has invalid PropType notation inside objectOf.");var a=u[i],o=g(a);if(o!=="object")return new d("Invalid "+f+" `"+t+"` of type "+("`"+o+"` supplied to `"+n+"`, expected an object."));for(var s in a)if(I(a,s)){var c=e(a,s,n,f,t+"."+s,h);if(c instanceof Error)return c}return null}return v(r)}function G(e){if(!Array.isArray(e))return process.env.NODE_ENV!=="production"&&T("Invalid argument supplied to oneOfType, expected an instance of array."),E;for(var r=0;r<e.length;r++){var u=e[r];if(typeof u!="function")return T("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+m(u)+" at index "+r+"."),E}function i(n,f,t,a,o){for(var s=[],c=0;c<e.length;c++){var y=e[c],l=y(n,f,t,a,o,h);if(l==null)return null;l.data&&I(l.data,"expectedType")&&s.push(l.data.expectedType)}var b=s.length>0?", expected one of type ["+s.join(", ")+"]":"";return new d("Invalid "+a+" `"+o+"` supplied to "+("`"+t+"`"+b+"."))}return v(i)}function H(){function e(r,u,i,n,f){return j(r[u])?null:new d("Invalid "+n+" `"+f+"` supplied to "+("`"+i+"`, expected a ReactNode."))}return v(e)}function R(e,r,u,i,n){return new d((e||"React class")+": "+r+" type `"+u+"."+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+n+"`.")}function K(e){function r(u,i,n,f,t){var a=u[i],o=g(a);if(o!=="object")return new d("Invalid "+f+" `"+t+"` of type `"+o+"` "+("supplied to `"+n+"`, expected `object`."));for(var s in e){var c=e[s];if(typeof c!="function")return R(n,f,t,s,O(c));var y=c(a,s,n,f,t+"."+s,h);if(y)return y}return null}return v(r)}function Q(e){function r(u,i,n,f,t){var a=u[i],o=g(a);if(o!=="object")return new d("Invalid "+f+" `"+t+"` of type `"+o+"` "+("supplied to `"+n+"`, expected `object`."));var s=W({},u[i],e);for(var c in s){var y=e[c];if(I(e,c)&&typeof y!="function")return R(n,f,t,c,O(y));if(!y)return new d("Invalid "+f+" `"+t+"` key `"+c+"` supplied to `"+n+"`.\nBad object: "+JSON.stringify(u[i],null," ")+`
2
- Valid keys: `+JSON.stringify(Object.keys(e),null," "));var l=y(a,c,n,f,t+"."+c,h);if(l)return l}return null}return v(r)}function j(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(j);if(e===null||x(e))return!0;var r=M(e);if(r){var u=r.call(e),i;if(r!==e.entries){for(;!(i=u.next()).done;)if(!j(i.value))return!1}else for(;!(i=u.next()).done;){var n=i.value;if(n&&!j(n[1]))return!1}}else return!1;return!0;default:return!1}}function Z(e,r){return e==="symbol"?!0:r?r["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&r instanceof Symbol:!1}function g(e){var r=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":Z(r,e)?"symbol":r}function O(e){if(typeof e>"u"||e===null)return""+e;var r=g(e);if(r==="object"){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return r}function m(e){var r=O(e);switch(r){case"array":case"object":return"an "+r;case"boolean":case"date":case"regexp":return"a "+r;default:return r}}function V(e){return!e.constructor||!e.constructor.name?_:e.constructor.name}return w.checkPropTypes=q,w.resetWarningCache=q.resetWarningCache,w.PropTypes=w,w},A}exports.__require=te;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index223.cjs"),c=require("lodash/forOwn"),m=require("lodash/cloneDeep");var l;function q(){if(l)return n.__exports;l=1,Object.defineProperty(n.__exports,"__esModule",{value:!0}),n.__exports.mergeClasses=void 0;var f=c,_=o(f),d=m,g=o(d),v=Object.assign||function(r){for(var t=1;t<arguments.length;t++){var u=arguments[t];for(var e in u)Object.prototype.hasOwnProperty.call(u,e)&&(r[e]=u[e])}return r};function o(r){return r&&r.__esModule?r:{default:r}}var p=n.__exports.mergeClasses=function(t){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],e=t.default&&(0,g.default)(t.default)||{};return u.map(function(i){var s=t[i];return s&&(0,_.default)(s,function(x,a){e[a]||(e[a]={}),e[a]=v({},e[a],s[a])}),i}),e};return n.__exports.default=p,n.__exports}exports.__require=q;