@ikas/core 1.0.32 → 1.0.33

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 (423) hide show
  1. package/dist/core.css +1 -1
  2. package/dist/index100.cjs +1 -1
  3. package/dist/index100.js +1 -1
  4. package/dist/index101.cjs +1 -1
  5. package/dist/index101.js +1 -1
  6. package/dist/index117.cjs +1 -1
  7. package/dist/index117.js +235 -275
  8. package/dist/index118.cjs +1 -1
  9. package/dist/index118.js +83 -2
  10. package/dist/index119.cjs +1 -1
  11. package/dist/index119.js +277 -28
  12. package/dist/index120.js +2 -2
  13. package/dist/index121.cjs +1 -1
  14. package/dist/index121.js +30 -239
  15. package/dist/index122.cjs +1 -1
  16. package/dist/index122.js +2 -83
  17. package/dist/index123.cjs +1 -1
  18. package/dist/index123.js +1 -1
  19. package/dist/index125.cjs +1 -1
  20. package/dist/index125.js +1 -1
  21. package/dist/index126.cjs +1 -1
  22. package/dist/index126.js +1 -1
  23. package/dist/index127.cjs +1 -1
  24. package/dist/index127.js +1 -1
  25. package/dist/index130.cjs +1 -1
  26. package/dist/index130.js +1 -1
  27. package/dist/index131.cjs +6 -1
  28. package/dist/index131.js +27 -4
  29. package/dist/index132.cjs +6 -1
  30. package/dist/index132.js +15 -71
  31. package/dist/index133.cjs +6 -1
  32. package/dist/index133.js +10 -19
  33. package/dist/index134.cjs +6 -1
  34. package/dist/index134.js +13 -35
  35. package/dist/index135.cjs +6 -1
  36. package/dist/index135.js +17 -50
  37. package/dist/index136.cjs +6 -1
  38. package/dist/index136.js +8 -40
  39. package/dist/index137.cjs +6 -1
  40. package/dist/index137.js +8 -92
  41. package/dist/index138.cjs +6 -1
  42. package/dist/index138.js +12 -60
  43. package/dist/index139.cjs +2 -2
  44. package/dist/index139.js +34 -11
  45. package/dist/index140.cjs +2 -2
  46. package/dist/index140.js +11 -20
  47. package/dist/index141.cjs +2 -2
  48. package/dist/index141.js +7 -9
  49. package/dist/index142.cjs +1 -6
  50. package/dist/index142.js +4 -10
  51. package/dist/index143.cjs +1 -6
  52. package/dist/index143.js +4 -13
  53. package/dist/index144.cjs +1 -6
  54. package/dist/index144.js +8 -8
  55. package/dist/index145.cjs +1 -6
  56. package/dist/index145.js +7 -8
  57. package/dist/index146.cjs +1 -6
  58. package/dist/index146.js +71 -12
  59. package/dist/index147.cjs +1 -6
  60. package/dist/index147.js +18 -39
  61. package/dist/index148.cjs +1 -6
  62. package/dist/index148.js +35 -18
  63. package/dist/index149.cjs +1 -6
  64. package/dist/index149.js +50 -13
  65. package/dist/index150.cjs +1 -1
  66. package/dist/index150.js +40 -4
  67. package/dist/index151.cjs +1 -1
  68. package/dist/index151.js +91 -7
  69. package/dist/index152.cjs +1 -1
  70. package/dist/index152.js +59 -6
  71. package/dist/index153.cjs +1 -1
  72. package/dist/index153.js +1 -1
  73. package/dist/index154.cjs +1 -1
  74. package/dist/index154.js +1 -1
  75. package/dist/index164.cjs +1 -1
  76. package/dist/index164.js +1 -1
  77. package/dist/index165.cjs +1 -1
  78. package/dist/index165.js +2 -2
  79. package/dist/index166.cjs +1 -1
  80. package/dist/index166.js +1 -1
  81. package/dist/index168.cjs +1 -1
  82. package/dist/index168.js +4 -4
  83. package/dist/index171.cjs +1 -1
  84. package/dist/index171.js +2 -2
  85. package/dist/index187.cjs +1 -1
  86. package/dist/index187.js +1 -1
  87. package/dist/index191.cjs +1 -1
  88. package/dist/index191.js +3 -3
  89. package/dist/index208.cjs +1 -1
  90. package/dist/index208.js +17 -5
  91. package/dist/index209.cjs +1 -1
  92. package/dist/index209.js +12 -8
  93. package/dist/index210.cjs +1 -1
  94. package/dist/index210.js +8 -8
  95. package/dist/index211.cjs +1 -1
  96. package/dist/index211.js +6 -2
  97. package/dist/index212.cjs +1 -1
  98. package/dist/index212.js +8 -17
  99. package/dist/index213.cjs +1 -1
  100. package/dist/index213.js +8 -12
  101. package/dist/index214.cjs +1 -1
  102. package/dist/index214.js +2 -4
  103. package/dist/index215.cjs +1 -1
  104. package/dist/index215.js +4 -5
  105. package/dist/index216.cjs +1 -1
  106. package/dist/index216.js +5 -9
  107. package/dist/index218.cjs +1 -1
  108. package/dist/index218.js +5 -83
  109. package/dist/index219.cjs +1 -1
  110. package/dist/index219.js +5 -5
  111. package/dist/index220.cjs +1 -1
  112. package/dist/index220.js +20 -5
  113. package/dist/index221.cjs +1 -1
  114. package/dist/index221.js +83 -20
  115. package/dist/index238.cjs +1 -1
  116. package/dist/index238.js +1 -1
  117. package/dist/index244.cjs +1 -1
  118. package/dist/index244.js +2 -2
  119. package/dist/index248.cjs +1 -1
  120. package/dist/index248.js +1 -1
  121. package/dist/index249.cjs +1 -1
  122. package/dist/index249.js +3 -3
  123. package/dist/index250.cjs +1 -1
  124. package/dist/index250.js +7 -7
  125. package/dist/index252.cjs +1 -1
  126. package/dist/index252.js +4 -4
  127. package/dist/index253.cjs +1 -1
  128. package/dist/index253.js +2 -2
  129. package/dist/index254.cjs +1 -1
  130. package/dist/index254.js +1 -1
  131. package/dist/index257.cjs +1 -1
  132. package/dist/index257.js +3 -5
  133. package/dist/index258.cjs +1 -1
  134. package/dist/index258.js +6 -3
  135. package/dist/index259.cjs +1 -1
  136. package/dist/index259.js +6 -5
  137. package/dist/index260.cjs +1 -1
  138. package/dist/index260.js +5 -7
  139. package/dist/index263.cjs +1 -1
  140. package/dist/index263.js +5 -5
  141. package/dist/index268.cjs +1 -1
  142. package/dist/index268.js +2 -2
  143. package/dist/index269.cjs +1 -1
  144. package/dist/index269.js +1 -1
  145. package/dist/index272.cjs +1 -1
  146. package/dist/index272.js +1 -1
  147. package/dist/index273.cjs +1 -1
  148. package/dist/index273.js +1 -1
  149. package/dist/index275.cjs +1 -1
  150. package/dist/index275.js +3 -3
  151. package/dist/index276.cjs +1 -1
  152. package/dist/index276.js +2 -2
  153. package/dist/index277.cjs +1 -1
  154. package/dist/index277.js +1 -1
  155. package/dist/index278.cjs +1 -1
  156. package/dist/index278.js +2 -2
  157. package/dist/index279.cjs +1 -1
  158. package/dist/index279.js +2 -2
  159. package/dist/index280.cjs +1 -1
  160. package/dist/index280.js +3 -3
  161. package/dist/index281.cjs +1 -1
  162. package/dist/index281.js +3 -3
  163. package/dist/index282.cjs +1 -1
  164. package/dist/index282.js +1 -1
  165. package/dist/index283.cjs +1 -1
  166. package/dist/index283.js +2 -2
  167. package/dist/index284.cjs +1 -1
  168. package/dist/index284.js +3 -3
  169. package/dist/index285.cjs +1 -1
  170. package/dist/index285.js +1 -1
  171. package/dist/index286.cjs +1 -1
  172. package/dist/index286.js +2 -2
  173. package/dist/index288.cjs +1 -1
  174. package/dist/index288.js +5 -5
  175. package/dist/index289.cjs +1 -1
  176. package/dist/index289.js +4 -12
  177. package/dist/index290.cjs +1 -1
  178. package/dist/index290.js +5 -4
  179. package/dist/index291.cjs +1 -1
  180. package/dist/index291.js +12 -26
  181. package/dist/index292.cjs +1 -1
  182. package/dist/index292.js +4 -9
  183. package/dist/index293.cjs +1 -1
  184. package/dist/index293.js +26 -5
  185. package/dist/index294.cjs +1 -1
  186. package/dist/index294.js +9 -5
  187. package/dist/index295.cjs +1 -1
  188. package/dist/index295.js +5 -5
  189. package/dist/index296.cjs +1 -1
  190. package/dist/index296.js +5 -5
  191. package/dist/index297.cjs +1 -1
  192. package/dist/index297.js +5 -9
  193. package/dist/index298.cjs +1 -1
  194. package/dist/index298.js +5 -4
  195. package/dist/index299.cjs +1 -1
  196. package/dist/index299.js +9 -7
  197. package/dist/index300.cjs +1 -1
  198. package/dist/index300.js +4 -5
  199. package/dist/index301.cjs +1 -1
  200. package/dist/index301.js +6 -5
  201. package/dist/index302.cjs +1 -1
  202. package/dist/index302.js +5 -5
  203. package/dist/index303.cjs +1 -1
  204. package/dist/index303.js +6 -4
  205. package/dist/index304.cjs +1 -1
  206. package/dist/index304.js +7 -2
  207. package/dist/index305.cjs +1 -1
  208. package/dist/index305.js +7 -38
  209. package/dist/index306.cjs +1 -1
  210. package/dist/index306.js +4 -2
  211. package/dist/index307.cjs +1 -1
  212. package/dist/index307.js +2 -7
  213. package/dist/index308.cjs +1 -1
  214. package/dist/index308.js +38 -7
  215. package/dist/index309.cjs +1 -1
  216. package/dist/index309.js +2 -4
  217. package/dist/index310.cjs +1 -1
  218. package/dist/index310.js +5 -3
  219. package/dist/index311.cjs +1 -1
  220. package/dist/index311.js +15 -10
  221. package/dist/index312.cjs +1 -1
  222. package/dist/index312.js +3 -6
  223. package/dist/index313.cjs +1 -1
  224. package/dist/index313.js +3 -2
  225. package/dist/index314.cjs +1 -1
  226. package/dist/index314.js +6 -5
  227. package/dist/index315.cjs +1 -1
  228. package/dist/index315.js +4 -4
  229. package/dist/index316.cjs +1 -1
  230. package/dist/index316.js +9 -17
  231. package/dist/index317.cjs +1 -1
  232. package/dist/index317.js +5 -5
  233. package/dist/index318.cjs +1 -1
  234. package/dist/index318.js +9 -6
  235. package/dist/index319.cjs +1 -1
  236. package/dist/index319.js +11 -7
  237. package/dist/index320.cjs +1 -1
  238. package/dist/index320.js +6 -9
  239. package/dist/index321.cjs +1 -1
  240. package/dist/index321.js +7 -5
  241. package/dist/index322.cjs +1 -1
  242. package/dist/index322.js +4 -15
  243. package/dist/index323.cjs +1 -1
  244. package/dist/index323.js +10 -3
  245. package/dist/index324.cjs +1 -1
  246. package/dist/index324.js +5 -6
  247. package/dist/index325.cjs +1 -1
  248. package/dist/index325.js +3 -2
  249. package/dist/index326.cjs +1 -1
  250. package/dist/index326.js +5 -9
  251. package/dist/index327.cjs +1 -1
  252. package/dist/index327.js +4 -6
  253. package/dist/index328.cjs +1 -1
  254. package/dist/index328.js +17 -8
  255. package/dist/index329.cjs +1 -1
  256. package/dist/index329.js +8 -11
  257. package/dist/index330.cjs +1 -1
  258. package/dist/index330.js +6 -13
  259. package/dist/index331.cjs +1 -1
  260. package/dist/index331.js +14 -12
  261. package/dist/index332.cjs +1 -1
  262. package/dist/index332.js +12 -14
  263. package/dist/index333.cjs +1 -1
  264. package/dist/index333.js +13 -6
  265. package/dist/index334.cjs +1 -1
  266. package/dist/index334.js +29 -8
  267. package/dist/index335.cjs +1 -1
  268. package/dist/index335.js +8 -29
  269. package/dist/index337.cjs +1 -1
  270. package/dist/index337.js +3 -3
  271. package/dist/index338.cjs +1 -1
  272. package/dist/index338.js +1 -1
  273. package/dist/index341.cjs +1 -1
  274. package/dist/index341.js +5 -7
  275. package/dist/index342.cjs +1 -1
  276. package/dist/index342.js +3 -7
  277. package/dist/index343.cjs +1 -1
  278. package/dist/index343.js +7 -10
  279. package/dist/index344.cjs +1 -1
  280. package/dist/index344.js +7 -5
  281. package/dist/index345.cjs +1 -1
  282. package/dist/index345.js +6 -4
  283. package/dist/index346.cjs +1 -1
  284. package/dist/index346.js +10 -4
  285. package/dist/index347.cjs +1 -1
  286. package/dist/index347.js +5 -5
  287. package/dist/index348.cjs +1 -1
  288. package/dist/index348.js +5 -3
  289. package/dist/index349.cjs +1 -1
  290. package/dist/index349.js +3 -4
  291. package/dist/index350.cjs +1 -1
  292. package/dist/index350.js +5 -7
  293. package/dist/index352.cjs +1 -1
  294. package/dist/index352.js +2 -2
  295. package/dist/index353.cjs +1 -1
  296. package/dist/index353.js +4 -4
  297. package/dist/index354.cjs +1 -1
  298. package/dist/index354.js +3 -3
  299. package/dist/index355.cjs +1 -1
  300. package/dist/index355.js +3 -3
  301. package/dist/index356.cjs +1 -1
  302. package/dist/index356.js +1 -1
  303. package/dist/index357.cjs +1 -1
  304. package/dist/index357.js +7 -7
  305. package/dist/index358.cjs +1 -1
  306. package/dist/index358.js +13 -17
  307. package/dist/index359.cjs +1 -1
  308. package/dist/index359.js +3 -5
  309. package/dist/index360.cjs +1 -1
  310. package/dist/index360.js +17 -13
  311. package/dist/index361.cjs +1 -1
  312. package/dist/index361.js +5 -3
  313. package/dist/index362.cjs +1 -1
  314. package/dist/index362.js +8 -3
  315. package/dist/index363.cjs +1 -1
  316. package/dist/index363.js +5 -8
  317. package/dist/index364.cjs +1 -1
  318. package/dist/index364.js +9 -3
  319. package/dist/index365.cjs +1 -1
  320. package/dist/index365.js +6 -10
  321. package/dist/index366.cjs +1 -1
  322. package/dist/index366.js +3 -6
  323. package/dist/index367.cjs +1 -1
  324. package/dist/index367.js +6 -3
  325. package/dist/index368.cjs +1 -1
  326. package/dist/index368.js +4 -4
  327. package/dist/index369.cjs +1 -1
  328. package/dist/index369.js +6 -6
  329. package/dist/index370.cjs +1 -1
  330. package/dist/index370.js +4 -7
  331. package/dist/index371.cjs +1 -1
  332. package/dist/index371.js +4 -4
  333. package/dist/index372.cjs +1 -1
  334. package/dist/index372.js +4 -4
  335. package/dist/index373.cjs +1 -1
  336. package/dist/index373.js +4 -4
  337. package/dist/index374.cjs +1 -1
  338. package/dist/index374.js +14 -3
  339. package/dist/index375.cjs +1 -1
  340. package/dist/index375.js +3 -15
  341. package/dist/index376.cjs +1 -1
  342. package/dist/index376.js +3 -3
  343. package/dist/index377.cjs +1 -1
  344. package/dist/index377.js +8 -4
  345. package/dist/index378.cjs +1 -1
  346. package/dist/index378.js +4 -10
  347. package/dist/index379.cjs +1 -1
  348. package/dist/index379.js +4 -6
  349. package/dist/index380.cjs +1 -1
  350. package/dist/index380.js +10 -6
  351. package/dist/index381.cjs +1 -1
  352. package/dist/index381.js +6 -4
  353. package/dist/index382.cjs +1 -1
  354. package/dist/index382.js +5 -7
  355. package/dist/index383.cjs +1 -1
  356. package/dist/index383.js +4 -8
  357. package/dist/index384.cjs +1 -1
  358. package/dist/index384.js +3 -15
  359. package/dist/index385.cjs +1 -1
  360. package/dist/index385.js +6 -4
  361. package/dist/index386.cjs +1 -1
  362. package/dist/index386.js +8 -4
  363. package/dist/index387.cjs +1 -1
  364. package/dist/index387.js +8 -6
  365. package/dist/index388.cjs +1 -1
  366. package/dist/index388.js +16 -8
  367. package/dist/index389.cjs +1 -1
  368. package/dist/index389.js +2 -2
  369. package/dist/index390.cjs +1 -1
  370. package/dist/index390.js +2 -2
  371. package/dist/index391.cjs +1 -1
  372. package/dist/index391.js +5 -15
  373. package/dist/index392.cjs +1 -1
  374. package/dist/index392.js +7 -5
  375. package/dist/index393.cjs +1 -1
  376. package/dist/index393.js +3 -7
  377. package/dist/index394.cjs +1 -1
  378. package/dist/index394.js +15 -3
  379. package/dist/index50.cjs +1 -1
  380. package/dist/index50.js +3 -3
  381. package/dist/index51.cjs +1 -1
  382. package/dist/index51.js +2 -2
  383. package/dist/index54.cjs +1 -1
  384. package/dist/index54.js +1 -1
  385. package/dist/index55.cjs +1 -1
  386. package/dist/index55.js +1 -1
  387. package/dist/index56.cjs +1 -1
  388. package/dist/index56.js +2 -2
  389. package/dist/index57.cjs +1 -1
  390. package/dist/index57.js +2 -2
  391. package/dist/index63.cjs +1 -1
  392. package/dist/index63.js +1 -1
  393. package/dist/index64.cjs +1 -1
  394. package/dist/index64.js +1 -1
  395. package/dist/index65.cjs +1 -1
  396. package/dist/index65.js +1 -1
  397. package/dist/index66.cjs +1 -1
  398. package/dist/index66.js +1 -1
  399. package/dist/index68.cjs +1 -1
  400. package/dist/index68.js +1 -1
  401. package/dist/index69.cjs +1 -1
  402. package/dist/index69.js +1 -1
  403. package/dist/index70.cjs +1 -1
  404. package/dist/index70.js +1 -1
  405. package/dist/index71.cjs +1 -1
  406. package/dist/index71.js +1 -1
  407. package/dist/index72.cjs +1 -1
  408. package/dist/index72.js +1 -1
  409. package/dist/index73.cjs +1 -1
  410. package/dist/index73.js +1 -1
  411. package/dist/index74.cjs +1 -1
  412. package/dist/index74.js +1 -1
  413. package/dist/index75.cjs +1 -1
  414. package/dist/index75.js +1 -1
  415. package/dist/index80.cjs +1 -1
  416. package/dist/index80.js +1 -1
  417. package/dist/index81.cjs +1 -1
  418. package/dist/index81.js +1 -1
  419. package/dist/index82.cjs +1 -1
  420. package/dist/index82.js +1 -1
  421. package/dist/index99.cjs +1 -1
  422. package/dist/index99.js +1 -1
  423. package/package.json +1 -1
package/dist/index152.js CHANGED
@@ -1,9 +1,62 @@
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
+ import { jsxs as C, jsx as t } from "react/jsx-runtime";
2
+ import { useState as u } from "react";
3
+ import { observer as V } from "mobx-react-lite";
4
+ import { DrawerImageSelect as U } from "./index37.js";
5
+ import v from "./index55.js";
6
+ import T from "./index80.js";
7
+ function j(n) {
8
+ var m;
9
+ const { value: s, rowData: r, columnDefinition: e, onValueChange: p } = n, [w, g] = u(!1), I = r && e.getDrawerTitle ? e.getDrawerTitle(r) : void 0, f = r && e.getGalleryImages ? e.getGalleryImages(r) : void 0, b = r && e.disableUpload ? e.disableUpload(r) : void 0, d = r && e.productImages ? e.productImages(r) : void 0, x = d == null ? void 0 : d.map((a) => ({
10
+ imageId: a.id ?? null,
11
+ fileName: a.name ?? null
12
+ })), N = (a) => {
13
+ var l;
14
+ a.stopPropagation(), g(!0), r && ((l = e.onDrawerToggle) == null || l.call(e, r, !0));
15
+ }, h = () => {
16
+ var a;
17
+ g(!1), r && ((a = e.onDrawerToggle) == null || a.call(e, r, !1));
18
+ }, S = e.onImageNameSave ? (a) => {
19
+ var c;
20
+ const l = s == null ? void 0 : s.find((y) => y.id === a.imageId);
21
+ r && l && ((c = e.onImageNameSave) == null || c.call(e, r, l, a.name ?? ""));
22
+ } : void 0, o = s != null && s.length ? s.find((a) => !(a != null && a.isVideo)) : void 0, i = (o == null ? void 0 : o.thumbnailSrc) || (o == null ? void 0 : o.url) || (o == null ? void 0 : o.src);
23
+ return /* @__PURE__ */ C("div", { className: "flex items-center", children: [
24
+ /* @__PURE__ */ t(
25
+ "button",
26
+ {
27
+ type: "button",
28
+ className: "flex-shrink-0 w-9 h-9 flex items-center justify-center rounded border border-solid border-gray-blue-2 bg-gray-blue-0 cursor-pointer overflow-hidden outline-none",
29
+ onClick: N,
30
+ children: i ? /* @__PURE__ */ t(
31
+ "img",
32
+ {
33
+ src: i,
34
+ alt: (o == null ? void 0 : o.name) ?? "",
35
+ className: "w-full h-full object-cover"
36
+ }
37
+ ) : s != null && s.length && e.allowVideoUpload ? /* @__PURE__ */ t(v, { className: "h-[18px] w-[18px] text-gray-blue-7" }) : /* @__PURE__ */ t(T, { className: "h-[18px] w-[18px] text-gray-blue-7" })
38
+ }
39
+ ),
40
+ r && ((m = e.rightContent) == null ? void 0 : m.call(e, r)),
41
+ /* @__PURE__ */ t(
42
+ U,
43
+ {
44
+ allowVideoUpload: e.allowVideoUpload,
45
+ title: I,
46
+ visible: w,
47
+ images: s,
48
+ galleryImages: f,
49
+ disableUpload: b,
50
+ onChange: (a) => p(a),
51
+ onClose: h,
52
+ onImageNameSave: S,
53
+ imageNameMaxLength: e.imageNameMaxLength,
54
+ productImages: x
55
+ }
56
+ )
57
+ ] });
6
58
  }
59
+ const q = V(j);
7
60
  export {
8
- c as unsafeStringify
61
+ q as ImageSelectCell
9
62
  };
package/dist/index153.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),c=require("react"),v=require("mobx-react-lite"),S=require("@ikas/ui"),p=require("./index5.cjs"),T=require("./index143.cjs"),b=5;function L(o){return o.length>b?`${o.slice(0,b)}...`:o}function j(o){var f;const{filterRow:u,model:i,onChange:d}=o,[r,g]=c.useState(""),s=u.filterValue.value||[],h=c.useMemo(()=>{switch(i.locale){case"tr":return"tr-TR";case"en":return"en-US";case"de":return"de-DE";default:return"tr-TR"}},[i.locale]),a=c.useMemo(()=>i.filters.find(e=>{var t;return e.key===((t=u.filterValue)==null?void 0:t.key)}),[i.filters,(f=u.filterValue)==null?void 0:f.key]),x=c.useMemo(()=>{var m;const e=((m=a==null?void 0:a.options)==null?void 0:m.map(n=>({label:n.label,value:n.value})))??[],t=s.filter(n=>!e.some(w=>w.value===n)).map(n=>({label:L(n),value:n}));return[...e,...t]},[a==null?void 0:a.options,s]),y=e=>{e.key!=="Enter"||!r||(e.preventDefault(),e.stopPropagation(),r.trim()!==""&&!s.find(t=>r===t)&&d([...s,r]),g(""))};return l.jsxs("div",{className:"relative",style:{maxWidth:330,minWidth:330},onKeyDownCapture:y,children:[l.jsx(S.Select,{mode:"tags",maxTagCount:"responsive",value:s,showSearch:!0,searchValue:r,onSearch:g,onChange:e=>{const t=e;t.length<=s.length&&d(t)},options:x,tagClosable:!0,filterOption:(e,t)=>t?String(t.label??"").toLocaleLowerCase(h).includes(e.toLocaleLowerCase(h)):!1,style:{width:"100%"},placeholder:p.coreTranslations.common.actions.enterValue}),!!r.length&&l.jsxs("div",{className:"pointer-events-none absolute right-9 top-1/2 -translate-y-1/2 flex items-center gap-1.5 bg-white",children:[l.jsx(T.default,{className:"h-4 w-4 text-gray-blue-5"}),l.jsx("span",{className:"text-sm leading-5 text-gray-blue-9",children:p.coreTranslations.common.actions.enter})]})]})}const C=v.observer(j);exports.FilterStringInput=C;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),c=require("react"),v=require("mobx-react-lite"),S=require("@ikas/ui"),p=require("./index5.cjs"),T=require("./index134.cjs"),b=5;function L(o){return o.length>b?`${o.slice(0,b)}...`:o}function j(o){var f;const{filterRow:u,model:i,onChange:d}=o,[r,g]=c.useState(""),s=u.filterValue.value||[],h=c.useMemo(()=>{switch(i.locale){case"tr":return"tr-TR";case"en":return"en-US";case"de":return"de-DE";default:return"tr-TR"}},[i.locale]),a=c.useMemo(()=>i.filters.find(e=>{var t;return e.key===((t=u.filterValue)==null?void 0:t.key)}),[i.filters,(f=u.filterValue)==null?void 0:f.key]),x=c.useMemo(()=>{var m;const e=((m=a==null?void 0:a.options)==null?void 0:m.map(n=>({label:n.label,value:n.value})))??[],t=s.filter(n=>!e.some(w=>w.value===n)).map(n=>({label:L(n),value:n}));return[...e,...t]},[a==null?void 0:a.options,s]),y=e=>{e.key!=="Enter"||!r||(e.preventDefault(),e.stopPropagation(),r.trim()!==""&&!s.find(t=>r===t)&&d([...s,r]),g(""))};return l.jsxs("div",{className:"relative",style:{maxWidth:330,minWidth:330},onKeyDownCapture:y,children:[l.jsx(S.Select,{mode:"tags",maxTagCount:"responsive",value:s,showSearch:!0,searchValue:r,onSearch:g,onChange:e=>{const t=e;t.length<=s.length&&d(t)},options:x,tagClosable:!0,filterOption:(e,t)=>t?String(t.label??"").toLocaleLowerCase(h).includes(e.toLocaleLowerCase(h)):!1,style:{width:"100%"},placeholder:p.coreTranslations.common.actions.enterValue}),!!r.length&&l.jsxs("div",{className:"pointer-events-none absolute right-9 top-1/2 -translate-y-1/2 flex items-center gap-1.5 bg-white",children:[l.jsx(T.default,{className:"h-4 w-4 text-gray-blue-5"}),l.jsx("span",{className:"text-sm leading-5 text-gray-blue-9",children:p.coreTranslations.common.actions.enter})]})]})}const C=v.observer(j);exports.FilterStringInput=C;
package/dist/index153.js CHANGED
@@ -3,7 +3,7 @@ import { useState as x, useMemo as m } from "react";
3
3
  import { observer as C } from "mobx-react-lite";
4
4
  import { Select as S } from "@ikas/ui";
5
5
  import { coreTranslations as w } from "./index5.js";
6
- import T from "./index143.js";
6
+ import T from "./index134.js";
7
7
  const y = 5;
8
8
  function L(l) {
9
9
  return l.length > y ? `${l.slice(0, y)}...` : l;
package/dist/index154.cjs CHANGED
@@ -1 +1 @@
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;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("./index142.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,4 +1,4 @@
1
- import { getDefaultExportFromCjs as r } from "./index131.js";
1
+ import { getDefaultExportFromCjs as r } from "./index142.js";
2
2
  import { __require as t } from "./index195.js";
3
3
  var e = t();
4
4
  const i = /* @__PURE__ */ r(e);
package/dist/index164.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const e=require("./index131.cjs"),r=require("./index203.cjs");var s=r.__require();const o=e.getDefaultExportFromCjs(s);module.exports=o;
1
+ "use strict";const e=require("./index142.cjs"),r=require("./index203.cjs");var s=r.__require();const o=e.getDefaultExportFromCjs(s);module.exports=o;
package/dist/index164.js CHANGED
@@ -1,4 +1,4 @@
1
- import { getDefaultExportFromCjs as r } from "./index131.js";
1
+ import { getDefaultExportFromCjs as r } from "./index142.js";
2
2
  import { __require as o } from "./index203.js";
3
3
  var p = /* @__PURE__ */ o();
4
4
  const s = /* @__PURE__ */ r(p);
package/dist/index165.cjs CHANGED
@@ -1 +1 @@
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;
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;
package/dist/index165.js CHANGED
@@ -1,5 +1,5 @@
1
- import t from "./index212.js";
2
- import a from "./index213.js";
1
+ import t from "./index208.js";
2
+ import a from "./index209.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("./index216.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("./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;
package/dist/index166.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import s from "./index97.js";
2
- import l from "./index216.js";
2
+ import l from "./index210.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("./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;
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;
package/dist/index168.js CHANGED
@@ -1,7 +1,7 @@
1
- import t from "./index208.js";
2
- import o from "./index209.js";
3
- import p from "./index210.js";
4
- import e from "./index211.js";
1
+ import t from "./index211.js";
2
+ import o from "./index212.js";
3
+ import p from "./index213.js";
4
+ import e from "./index214.js";
5
5
  function n(r, a) {
6
6
  var m = e(r) ? t : p;
7
7
  return m(r, o(a));
package/dist/index171.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react"),u=require("./index154.cjs"),f=require("./index166.cjs"),h=require("./index214.cjs");require("./index155.cjs");require("./index156.cjs");const o=require("./index157.cjs");require("./index158.cjs");require("./index159.cjs");require("./index160.cjs");require("./index162.cjs");const g=require("./index215.cjs");var b=(function(){function n(l,r){for(var t=0;t<r.length;t++){var e=r[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(l,e.key,e)}}return function(l,r,t){return r&&n(l.prototype,r),t&&n(l,t),l}})();function c(n,l){if(!(n instanceof l))throw new TypeError("Cannot call a class as a function")}function d(n,l){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:n}function v(n,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);n.prototype=Object.create(l&&l.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(n,l):n.__proto__=l)}var a=(function(n){v(l,n);function l(r){c(this,l);var t=d(this,(l.__proto__||Object.getPrototypeOf(l)).call(this));return t.toggleViews=function(){t.state.view==="hex"?t.setState({view:"rgb"}):t.state.view==="rgb"?t.setState({view:"hsl"}):t.state.view==="hsl"&&(t.props.hsl.a===1?t.setState({view:"hex"}):t.setState({view:"rgb"}))},t.handleChange=function(e,s){e.hex?f.isValidHex(e.hex)&&t.props.onChange({hex:e.hex,source:"hex"},s):e.r||e.g||e.b?t.props.onChange({r:e.r||t.props.rgb.r,g:e.g||t.props.rgb.g,b:e.b||t.props.rgb.b,source:"rgb"},s):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),t.props.onChange({h:t.props.hsl.h,s:t.props.hsl.s,l:t.props.hsl.l,a:Math.round(e.a*100)/100,source:"rgb"},s)):(e.h||e.s||e.l)&&(typeof e.s=="string"&&e.s.includes("%")&&(e.s=e.s.replace("%","")),typeof e.l=="string"&&e.l.includes("%")&&(e.l=e.l.replace("%","")),e.s==1?e.s=.01:e.l==1&&(e.l=.01),t.props.onChange({h:e.h||t.props.hsl.h,s:Number(h(e.s)?t.props.hsl.s:e.s),l:Number(h(e.l)?t.props.hsl.l:e.l),source:"hsl"},s))},t.showHighlight=function(e){e.currentTarget.style.background="#eee"},t.hideHighlight=function(e){e.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?t.state={view:"rgb"}:t.state={view:r.view},t}return b(l,[{key:"render",value:function(){var t=this,e=u.default({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),s=void 0;return this.state.view==="hex"?s=i.createElement("div",{style:e.fields,className:"flexbox-fix"},i.createElement("div",{style:e.field},i.createElement(o.EditableInput,{style:{input:e.input,label:e.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?s=i.createElement("div",{style:e.fields,className:"flexbox-fix"},i.createElement("div",{style:e.field},i.createElement(o.EditableInput,{style:{input:e.input,label:e.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),i.createElement("div",{style:e.field},i.createElement(o.EditableInput,{style:{input:e.input,label:e.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),i.createElement("div",{style:e.field},i.createElement(o.EditableInput,{style:{input:e.input,label:e.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),i.createElement("div",{style:e.alpha},i.createElement(o.EditableInput,{style:{input:e.input,label:e.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(s=i.createElement("div",{style:e.fields,className:"flexbox-fix"},i.createElement("div",{style:e.field},i.createElement(o.EditableInput,{style:{input:e.input,label:e.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),i.createElement("div",{style:e.field},i.createElement(o.EditableInput,{style:{input:e.input,label:e.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),i.createElement("div",{style:e.field},i.createElement(o.EditableInput,{style:{input:e.input,label:e.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),i.createElement("div",{style:e.alpha},i.createElement(o.EditableInput,{style:{input:e.input,label:e.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),i.createElement("div",{style:e.wrap,className:"flexbox-fix"},s,i.createElement("div",{style:e.toggle},i.createElement("div",{style:e.icon,onClick:this.toggleViews,ref:function(p){return t.icon=p}},i.createElement(g,{style:e.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(t,e){return t.hsl.a!==1&&e.view==="hex"?{view:"rgb"}:null}}]),l})(i.Component);a.defaultProps={view:"hex"};exports.ChromeFields=a;exports.default=a;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("react"),u=require("./index154.cjs"),f=require("./index166.cjs"),h=require("./index215.cjs");require("./index155.cjs");require("./index156.cjs");const o=require("./index157.cjs");require("./index158.cjs");require("./index159.cjs");require("./index160.cjs");require("./index162.cjs");const g=require("./index216.cjs");var b=(function(){function n(l,r){for(var t=0;t<r.length;t++){var e=r[t];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(l,e.key,e)}}return function(l,r,t){return r&&n(l.prototype,r),t&&n(l,t),l}})();function c(n,l){if(!(n instanceof l))throw new TypeError("Cannot call a class as a function")}function d(n,l){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return l&&(typeof l=="object"||typeof l=="function")?l:n}function v(n,l){if(typeof l!="function"&&l!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof l);n.prototype=Object.create(l&&l.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l&&(Object.setPrototypeOf?Object.setPrototypeOf(n,l):n.__proto__=l)}var a=(function(n){v(l,n);function l(r){c(this,l);var t=d(this,(l.__proto__||Object.getPrototypeOf(l)).call(this));return t.toggleViews=function(){t.state.view==="hex"?t.setState({view:"rgb"}):t.state.view==="rgb"?t.setState({view:"hsl"}):t.state.view==="hsl"&&(t.props.hsl.a===1?t.setState({view:"hex"}):t.setState({view:"rgb"}))},t.handleChange=function(e,s){e.hex?f.isValidHex(e.hex)&&t.props.onChange({hex:e.hex,source:"hex"},s):e.r||e.g||e.b?t.props.onChange({r:e.r||t.props.rgb.r,g:e.g||t.props.rgb.g,b:e.b||t.props.rgb.b,source:"rgb"},s):e.a?(e.a<0?e.a=0:e.a>1&&(e.a=1),t.props.onChange({h:t.props.hsl.h,s:t.props.hsl.s,l:t.props.hsl.l,a:Math.round(e.a*100)/100,source:"rgb"},s)):(e.h||e.s||e.l)&&(typeof e.s=="string"&&e.s.includes("%")&&(e.s=e.s.replace("%","")),typeof e.l=="string"&&e.l.includes("%")&&(e.l=e.l.replace("%","")),e.s==1?e.s=.01:e.l==1&&(e.l=.01),t.props.onChange({h:e.h||t.props.hsl.h,s:Number(h(e.s)?t.props.hsl.s:e.s),l:Number(h(e.l)?t.props.hsl.l:e.l),source:"hsl"},s))},t.showHighlight=function(e){e.currentTarget.style.background="#eee"},t.hideHighlight=function(e){e.currentTarget.style.background="transparent"},r.hsl.a!==1&&r.view==="hex"?t.state={view:"rgb"}:t.state={view:r.view},t}return b(l,[{key:"render",value:function(){var t=this,e=u.default({default:{wrap:{paddingTop:"16px",display:"flex"},fields:{flex:"1",display:"flex",marginLeft:"-6px"},field:{paddingLeft:"6px",width:"100%"},alpha:{paddingLeft:"6px",width:"100%"},toggle:{width:"32px",textAlign:"right",position:"relative"},icon:{marginRight:"-4px",marginTop:"12px",cursor:"pointer",position:"relative"},iconHighlight:{position:"absolute",width:"24px",height:"28px",background:"#eee",borderRadius:"4px",top:"10px",left:"12px",display:"none"},input:{fontSize:"11px",color:"#333",width:"100%",borderRadius:"2px",border:"none",boxShadow:"inset 0 0 0 1px #dadada",height:"21px",textAlign:"center"},label:{textTransform:"uppercase",fontSize:"11px",lineHeight:"11px",color:"#969696",textAlign:"center",display:"block",marginTop:"12px"},svg:{fill:"#333",width:"24px",height:"24px",border:"1px transparent solid",borderRadius:"5px"}},disableAlpha:{alpha:{display:"none"}}},this.props,this.state),s=void 0;return this.state.view==="hex"?s=i.createElement("div",{style:e.fields,className:"flexbox-fix"},i.createElement("div",{style:e.field},i.createElement(o.EditableInput,{style:{input:e.input,label:e.label},label:"hex",value:this.props.hex,onChange:this.handleChange}))):this.state.view==="rgb"?s=i.createElement("div",{style:e.fields,className:"flexbox-fix"},i.createElement("div",{style:e.field},i.createElement(o.EditableInput,{style:{input:e.input,label:e.label},label:"r",value:this.props.rgb.r,onChange:this.handleChange})),i.createElement("div",{style:e.field},i.createElement(o.EditableInput,{style:{input:e.input,label:e.label},label:"g",value:this.props.rgb.g,onChange:this.handleChange})),i.createElement("div",{style:e.field},i.createElement(o.EditableInput,{style:{input:e.input,label:e.label},label:"b",value:this.props.rgb.b,onChange:this.handleChange})),i.createElement("div",{style:e.alpha},i.createElement(o.EditableInput,{style:{input:e.input,label:e.label},label:"a",value:this.props.rgb.a,arrowOffset:.01,onChange:this.handleChange}))):this.state.view==="hsl"&&(s=i.createElement("div",{style:e.fields,className:"flexbox-fix"},i.createElement("div",{style:e.field},i.createElement(o.EditableInput,{style:{input:e.input,label:e.label},label:"h",value:Math.round(this.props.hsl.h),onChange:this.handleChange})),i.createElement("div",{style:e.field},i.createElement(o.EditableInput,{style:{input:e.input,label:e.label},label:"s",value:Math.round(this.props.hsl.s*100)+"%",onChange:this.handleChange})),i.createElement("div",{style:e.field},i.createElement(o.EditableInput,{style:{input:e.input,label:e.label},label:"l",value:Math.round(this.props.hsl.l*100)+"%",onChange:this.handleChange})),i.createElement("div",{style:e.alpha},i.createElement(o.EditableInput,{style:{input:e.input,label:e.label},label:"a",value:this.props.hsl.a,arrowOffset:.01,onChange:this.handleChange})))),i.createElement("div",{style:e.wrap,className:"flexbox-fix"},s,i.createElement("div",{style:e.toggle},i.createElement("div",{style:e.icon,onClick:this.toggleViews,ref:function(p){return t.icon=p}},i.createElement(g,{style:e.svg,onMouseOver:this.showHighlight,onMouseEnter:this.showHighlight,onMouseOut:this.hideHighlight}))))}}],[{key:"getDerivedStateFromProps",value:function(t,e){return t.hsl.a!==1&&e.view==="hex"?{view:"rgb"}:null}}]),l})(i.Component);a.defaultProps={view:"hex"};exports.ChromeFields=a;exports.default=a;
package/dist/index171.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import i from "react";
2
2
  import p from "./index154.js";
3
3
  import { isValidHex as f } from "./index166.js";
4
- import h from "./index214.js";
4
+ import h from "./index215.js";
5
5
  import "./index155.js";
6
6
  import "./index156.js";
7
7
  import { EditableInput as s } from "./index157.js";
@@ -9,7 +9,7 @@ import "./index158.js";
9
9
  import "./index159.js";
10
10
  import "./index160.js";
11
11
  import "./index162.js";
12
- import u from "./index215.js";
12
+ import u from "./index216.js";
13
13
  var g = /* @__PURE__ */ (function() {
14
14
  function n(l, r) {
15
15
  for (var t = 0; t < r.length; t++) {
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("./index218.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 "./index218.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/index191.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const q=require("./index219.cjs"),h=require("./index220.cjs"),b=require("./index221.cjs");var y="Expected a function",R=Math.max,p=Math.min;function A(x,i,u){var a,c,o,f,n,r,d=0,E=!1,l=!1,g=!0;if(typeof x!="function")throw new TypeError(y);i=b(i)||0,q(u)&&(E=!!u.leading,l="maxWait"in u,o=l?R(b(u.maxWait)||0,i):o,g="trailing"in u?!!u.trailing:g);function v(e){var t=a,s=c;return a=c=void 0,d=e,f=x.apply(s,t),f}function C(e){return d=e,n=setTimeout(m,i),E?v(e):f}function L(e){var t=e-r,s=e-d,W=i-t;return l?p(W,o-s):W}function k(e){var t=e-r,s=e-d;return r===void 0||t>=i||t<0||l&&s>=o}function m(){var e=h();if(k(e))return I(e);n=setTimeout(m,L(e))}function I(e){return n=void 0,g&&a?v(e):(a=c=void 0,f)}function M(){n!==void 0&&clearTimeout(n),d=0,a=r=c=n=void 0}function S(){return n===void 0?f:I(h())}function T(){var e=h(),t=k(e);if(a=arguments,c=this,r=e,t){if(n===void 0)return C(r);if(l)return clearTimeout(n),n=setTimeout(m,i),v(r)}return n===void 0&&(n=setTimeout(m,i)),f}return T.cancel=M,T.flush=S,T}module.exports=A;
1
+ "use strict";const q=require("./index218.cjs"),h=require("./index219.cjs"),b=require("./index220.cjs");var y="Expected a function",R=Math.max,p=Math.min;function A(x,i,u){var a,c,o,f,n,r,d=0,E=!1,l=!1,g=!0;if(typeof x!="function")throw new TypeError(y);i=b(i)||0,q(u)&&(E=!!u.leading,l="maxWait"in u,o=l?R(b(u.maxWait)||0,i):o,g="trailing"in u?!!u.trailing:g);function v(e){var t=a,s=c;return a=c=void 0,d=e,f=x.apply(s,t),f}function C(e){return d=e,n=setTimeout(m,i),E?v(e):f}function L(e){var t=e-r,s=e-d,W=i-t;return l?p(W,o-s):W}function k(e){var t=e-r,s=e-d;return r===void 0||t>=i||t<0||l&&s>=o}function m(){var e=h();if(k(e))return I(e);n=setTimeout(m,L(e))}function I(e){return n=void 0,g&&a?v(e):(a=c=void 0,f)}function M(){n!==void 0&&clearTimeout(n),d=0,a=r=c=n=void 0}function S(){return n===void 0?f:I(h())}function T(){var e=h(),t=k(e);if(a=arguments,c=this,r=e,t){if(n===void 0)return C(r);if(l)return clearTimeout(n),n=setTimeout(m,i),v(r)}return n===void 0&&(n=setTimeout(m,i)),f}return T.cancel=M,T.flush=S,T}module.exports=A;
package/dist/index191.js CHANGED
@@ -1,6 +1,6 @@
1
- import S from "./index219.js";
2
- import h from "./index220.js";
3
- import W from "./index221.js";
1
+ import S from "./index218.js";
2
+ import h from "./index219.js";
3
+ import W from "./index220.js";
4
4
  var y = "Expected a function", R = Math.max, A = Math.min;
5
5
  function _(x, i, u) {
6
6
  var a, d, c, f, n, r, l = 0, E = !1, m = !1, g = !0;
package/dist/index208.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";function i(e,u){for(var t=-1,n=e==null?0:e.length,l=Array(n);++t<n;)l[t]=u(e[t],t,e);return l}module.exports=i;
1
+ "use strict";const _=require("./index241.cjs"),d=require("./index242.cjs"),g=require("./index243.cjs"),M=require("./index244.cjs"),o=require("./index218.cjs"),p=require("./index245.cjs"),a=require("./index246.cjs");function t(e,n,u,s,r){e!==n&&g(n,function(f,i){if(r||(r=new _),o(f))M(e,n,i,u,t,s,r);else{var q=s?s(a(e,i),f,i+"",e,n,r):void 0;q===void 0&&(q=f),d(e,i,q)}},p)}module.exports=t;
package/dist/index208.js CHANGED
@@ -1,8 +1,20 @@
1
- function h(e, u) {
2
- for (var l = -1, n = e == null ? 0 : e.length, t = Array(n); ++l < n; )
3
- t[l] = u(e[l], l, e);
4
- return t;
1
+ import t from "./index241.js";
2
+ import d from "./index242.js";
3
+ import g from "./index243.js";
4
+ import a from "./index244.js";
5
+ import M from "./index218.js";
6
+ import v from "./index245.js";
7
+ import x from "./index246.js";
8
+ function D(f, r, e, n, i) {
9
+ f !== r && g(r, function(o, m) {
10
+ if (i || (i = new t()), M(o))
11
+ a(f, r, m, e, D, n, i);
12
+ else {
13
+ var p = n ? n(x(f, m), o, m + "", f, r, i) : void 0;
14
+ p === void 0 && (p = o), d(f, m, p);
15
+ }
16
+ }, v);
5
17
  }
6
18
  export {
7
- h as default
19
+ D as default
8
20
  };
package/dist/index209.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const t=require("./index249.cjs"),e=require("./index250.cjs"),n=require("./index251.cjs"),i=require("./index211.cjs"),s=require("./index252.cjs");function o(r){return typeof r=="function"?r:r==null?n:typeof r=="object"?i(r)?e(r[0],r[1]):t(r):s(r)}module.exports=o;
1
+ "use strict";const a=require("./index247.cjs"),l=require("./index248.cjs");function g(f){return a(function(i,n){var d=-1,e=n.length,t=e>1?n[e-1]:void 0,r=e>2?n[2]:void 0;for(t=f.length>3&&typeof t=="function"?(e--,t):void 0,r&&l(n[0],n[1],r)&&(t=e<3?void 0:t,e=1),i=Object(i);++d<e;){var u=n[d];u&&f(i,u,d,t)}return i})}module.exports=g;
package/dist/index209.js CHANGED
@@ -1,11 +1,15 @@
1
- import t from "./index249.js";
2
- import o from "./index250.js";
3
- import f from "./index251.js";
4
- import i from "./index211.js";
5
- import e from "./index252.js";
6
- function c(r) {
7
- return typeof r == "function" ? r : r == null ? f : typeof r == "object" ? i(r) ? o(r[0], r[1]) : t(r) : e(r);
1
+ import l from "./index247.js";
2
+ import u from "./index248.js";
3
+ function h(d) {
4
+ return l(function(i, e) {
5
+ var f = -1, n = e.length, t = n > 1 ? e[n - 1] : void 0, r = n > 2 ? e[2] : void 0;
6
+ for (t = d.length > 3 && typeof t == "function" ? (n--, t) : void 0, r && u(e[0], e[1], r) && (t = n < 3 ? void 0 : t, n = 1), i = Object(i); ++f < n; ) {
7
+ var a = e[f];
8
+ a && d(i, a, f, t);
9
+ }
10
+ return i;
11
+ });
8
12
  }
9
13
  export {
10
- c as default
14
+ h as default
11
15
  };
package/dist/index210.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const i=require("./index253.cjs"),b=require("./index254.cjs");function c(r,s){var t=-1,e=b(r)?Array(r.length):[];return i(r,function(a,n,u){e[++t]=s(a,n,u)}),e}module.exports=c;
1
+ "use strict";const s=require("./index288.cjs"),t=require("./index253.cjs"),a=require("./index289.cjs"),n=require("./index214.cjs");function u(r,e){var c=n(r)?s:t;return c(r,a(e))}module.exports=u;
package/dist/index210.js CHANGED
@@ -1,11 +1,11 @@
1
- import s from "./index253.js";
2
- import u from "./index254.js";
3
- function o(r, e) {
4
- var t = -1, a = u(r) ? Array(r.length) : [];
5
- return s(r, function(f, i, n) {
6
- a[++t] = e(f, i, n);
7
- }), a;
1
+ import t from "./index288.js";
2
+ import f from "./index253.js";
3
+ import m from "./index289.js";
4
+ import i from "./index214.js";
5
+ function s(r, a) {
6
+ var o = i(r) ? t : f;
7
+ return o(r, m(a));
8
8
  }
9
9
  export {
10
- o as default
10
+ s as default
11
11
  };
package/dist/index211.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";var r=Array.isArray;module.exports=r;
1
+ "use strict";function i(e,u){for(var t=-1,n=e==null?0:e.length,l=Array(n);++t<n;)l[t]=u(e[t],t,e);return l}module.exports=i;
package/dist/index211.js CHANGED
@@ -1,4 +1,8 @@
1
- var r = Array.isArray;
1
+ function h(e, u) {
2
+ for (var l = -1, n = e == null ? 0 : e.length, t = Array(n); ++l < n; )
3
+ t[l] = u(e[l], l, e);
4
+ return t;
5
+ }
2
6
  export {
3
- r as default
7
+ h as default
4
8
  };
package/dist/index212.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const _=require("./index241.cjs"),d=require("./index242.cjs"),g=require("./index243.cjs"),M=require("./index244.cjs"),o=require("./index219.cjs"),p=require("./index245.cjs"),a=require("./index246.cjs");function t(e,n,u,s,r){e!==n&&g(n,function(f,i){if(r||(r=new _),o(f))M(e,n,i,u,t,s,r);else{var q=s?s(a(e,i),f,i+"",e,n,r):void 0;q===void 0&&(q=f),d(e,i,q)}},p)}module.exports=t;
1
+ "use strict";const t=require("./index249.cjs"),e=require("./index250.cjs"),n=require("./index251.cjs"),i=require("./index214.cjs"),s=require("./index252.cjs");function o(r){return typeof r=="function"?r:r==null?n:typeof r=="object"?i(r)?e(r[0],r[1]):t(r):s(r)}module.exports=o;
package/dist/index212.js CHANGED
@@ -1,20 +1,11 @@
1
- import t from "./index241.js";
2
- import d from "./index242.js";
3
- import g from "./index243.js";
4
- import a from "./index244.js";
5
- import M from "./index219.js";
6
- import v from "./index245.js";
7
- import x from "./index246.js";
8
- function D(f, r, e, n, i) {
9
- f !== r && g(r, function(o, m) {
10
- if (i || (i = new t()), M(o))
11
- a(f, r, m, e, D, n, i);
12
- else {
13
- var p = n ? n(x(f, m), o, m + "", f, r, i) : void 0;
14
- p === void 0 && (p = o), d(f, m, p);
15
- }
16
- }, v);
1
+ import t from "./index249.js";
2
+ import o from "./index250.js";
3
+ import f from "./index251.js";
4
+ import i from "./index214.js";
5
+ import e from "./index252.js";
6
+ function c(r) {
7
+ return typeof r == "function" ? r : r == null ? f : typeof r == "object" ? i(r) ? o(r[0], r[1]) : t(r) : e(r);
17
8
  }
18
9
  export {
19
- D as default
10
+ c as default
20
11
  };
package/dist/index213.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const a=require("./index247.cjs"),l=require("./index248.cjs");function g(f){return a(function(i,n){var d=-1,e=n.length,t=e>1?n[e-1]:void 0,r=e>2?n[2]:void 0;for(t=f.length>3&&typeof t=="function"?(e--,t):void 0,r&&l(n[0],n[1],r)&&(t=e<3?void 0:t,e=1),i=Object(i);++d<e;){var u=n[d];u&&f(i,u,d,t)}return i})}module.exports=g;
1
+ "use strict";const i=require("./index253.cjs"),b=require("./index254.cjs");function c(r,s){var t=-1,e=b(r)?Array(r.length):[];return i(r,function(a,n,u){e[++t]=s(a,n,u)}),e}module.exports=c;
package/dist/index213.js CHANGED
@@ -1,15 +1,11 @@
1
- import l from "./index247.js";
2
- import u from "./index248.js";
3
- function h(d) {
4
- return l(function(i, e) {
5
- var f = -1, n = e.length, t = n > 1 ? e[n - 1] : void 0, r = n > 2 ? e[2] : void 0;
6
- for (t = d.length > 3 && typeof t == "function" ? (n--, t) : void 0, r && u(e[0], e[1], r) && (t = n < 3 ? void 0 : t, n = 1), i = Object(i); ++f < n; ) {
7
- var a = e[f];
8
- a && d(i, a, f, t);
9
- }
10
- return i;
11
- });
1
+ import s from "./index253.js";
2
+ import u from "./index254.js";
3
+ function o(r, e) {
4
+ var t = -1, a = u(r) ? Array(r.length) : [];
5
+ return s(r, function(f, i, n) {
6
+ a[++t] = e(f, i, n);
7
+ }), a;
12
8
  }
13
9
  export {
14
- h as default
10
+ o as default
15
11
  };
package/dist/index214.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";function n(e){return e===void 0}module.exports=n;
1
+ "use strict";var r=Array.isArray;module.exports=r;
package/dist/index214.js CHANGED
@@ -1,6 +1,4 @@
1
- function n(e) {
2
- return e === void 0;
3
- }
1
+ var r = Array.isArray;
4
2
  export {
5
- n as default
3
+ r as default
6
4
  };
package/dist/index215.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const o=require("./index131.cjs"),r=require("./index255.cjs");var e=r.__require();const n=o.getDefaultExportFromCjs(e);module.exports=n;
1
+ "use strict";function n(e){return e===void 0}module.exports=n;
package/dist/index215.js CHANGED
@@ -1,7 +1,6 @@
1
- import { getDefaultExportFromCjs as o } from "./index131.js";
2
- import { __require as r } from "./index255.js";
3
- var t = r();
4
- const a = /* @__PURE__ */ o(t);
1
+ function n(e) {
2
+ return e === void 0;
3
+ }
5
4
  export {
6
- a as default
5
+ n as default
7
6
  };
package/dist/index216.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const s=require("./index302.cjs"),t=require("./index253.cjs"),a=require("./index303.cjs"),n=require("./index211.cjs");function u(r,e){var c=n(r)?s:t;return c(r,a(e))}module.exports=u;
1
+ "use strict";const o=require("./index142.cjs"),r=require("./index255.cjs");var e=r.__require();const n=o.getDefaultExportFromCjs(e);module.exports=n;
package/dist/index216.js CHANGED
@@ -1,11 +1,7 @@
1
- import t from "./index302.js";
2
- import f from "./index253.js";
3
- import m from "./index303.js";
4
- import i from "./index211.js";
5
- function s(r, a) {
6
- var o = i(r) ? t : f;
7
- return o(r, m(a));
8
- }
1
+ import { getDefaultExportFromCjs as o } from "./index142.js";
2
+ import { __require as r } from "./index255.js";
3
+ var t = r();
4
+ const a = /* @__PURE__ */ o(t);
9
5
  export {
10
- s as default
6
+ a as default
11
7
  };
package/dist/index218.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react"),d=require("./index154.cjs"),h=require("./index166.cjs");require("./index155.cjs");require("./index156.cjs");require("./index157.cjs");require("./index158.cjs");require("./index159.cjs");require("./index160.cjs");const F=require("./index162.cjs"),p=require("./index257.cjs");var l=function(e){var o=e.color,t=e.onClick,i=t===void 0?function(){}:t,a=e.onSwatchHover,n=e.first,s=e.last,u=e.active,c=d.default({default:{color:{width:"40px",height:"24px",cursor:"pointer",background:o,marginBottom:"1px"},check:{color:h.getContrastingColor(o),marginLeft:"8px",display:"none"}},first:{color:{overflow:"hidden",borderRadius:"2px 2px 0 0"}},last:{color:{overflow:"hidden",borderRadius:"0 0 2px 2px"}},active:{check:{display:"block"}},"color-#FFFFFF":{color:{boxShadow:"inset 0 0 0 1px #ddd"},check:{color:"#333"}},transparent:{check:{color:"#333"}}},{first:n,last:s,active:u,"color-#FFFFFF":o==="#FFFFFF",transparent:o==="transparent"});return r.createElement(F.default,{color:o,style:c.color,onClick:i,onHover:a,focusStyle:{boxShadow:"0 0 4px "+o}},r.createElement("div",{style:c.check},r.createElement(p,null)))};exports.SwatchesColor=l;exports.default=l;
1
+ "use strict";function n(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}module.exports=n;
package/dist/index218.js CHANGED
@@ -1,85 +1,7 @@
1
- import t from "react";
2
- import s from "./index154.js";
3
- import { getContrastingColor as d } from "./index166.js";
4
- import "./index155.js";
5
- import "./index156.js";
6
- import "./index157.js";
7
- import "./index158.js";
8
- import "./index159.js";
9
- import "./index160.js";
10
- import m from "./index162.js";
11
- import h from "./index257.js";
12
- var E = function(o) {
13
- var r = o.color, e = o.onClick, a = e === void 0 ? function() {
14
- } : e, l = o.onSwatchHover, i = o.first, n = o.last, p = o.active, c = s({
15
- default: {
16
- color: {
17
- width: "40px",
18
- height: "24px",
19
- cursor: "pointer",
20
- background: r,
21
- marginBottom: "1px"
22
- },
23
- check: {
24
- color: d(r),
25
- marginLeft: "8px",
26
- display: "none"
27
- }
28
- },
29
- first: {
30
- color: {
31
- overflow: "hidden",
32
- borderRadius: "2px 2px 0 0"
33
- }
34
- },
35
- last: {
36
- color: {
37
- overflow: "hidden",
38
- borderRadius: "0 0 2px 2px"
39
- }
40
- },
41
- active: {
42
- check: {
43
- display: "block"
44
- }
45
- },
46
- "color-#FFFFFF": {
47
- color: {
48
- boxShadow: "inset 0 0 0 1px #ddd"
49
- },
50
- check: {
51
- color: "#333"
52
- }
53
- },
54
- transparent: {
55
- check: {
56
- color: "#333"
57
- }
58
- }
59
- }, {
60
- first: i,
61
- last: n,
62
- active: p,
63
- "color-#FFFFFF": r === "#FFFFFF",
64
- transparent: r === "transparent"
65
- });
66
- return t.createElement(
67
- m,
68
- {
69
- color: r,
70
- style: c.color,
71
- onClick: a,
72
- onHover: l,
73
- focusStyle: { boxShadow: "0 0 4px " + r }
74
- },
75
- t.createElement(
76
- "div",
77
- { style: c.check },
78
- t.createElement(h, null)
79
- )
80
- );
81
- };
1
+ function n(t) {
2
+ var e = typeof t;
3
+ return t != null && (e == "object" || e == "function");
4
+ }
82
5
  export {
83
- E as SwatchesColor,
84
- E as default
6
+ n as default
85
7
  };
package/dist/index219.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";function n(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}module.exports=n;
1
+ "use strict";const r=require("./index257.cjs");var t=function(){return r.Date.now()};module.exports=t;
package/dist/index219.js CHANGED
@@ -1,7 +1,7 @@
1
- function n(t) {
2
- var e = typeof t;
3
- return t != null && (e == "object" || e == "function");
4
- }
1
+ import o from "./index257.js";
2
+ var t = function() {
3
+ return o.Date.now();
4
+ };
5
5
  export {
6
- n as default
6
+ t as default
7
7
  };
package/dist/index220.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";const r=require("./index258.cjs");var t=function(){return r.Date.now()};module.exports=t;
1
+ "use strict";const e=require("./index258.cjs"),s=require("./index218.cjs"),f=require("./index259.cjs");var n=NaN,o=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,b=/^0o[0-7]+$/i,y=parseInt;function p(r){if(typeof r=="number")return r;if(f(r))return n;if(s(r)){var t=typeof r.valueOf=="function"?r.valueOf():r;r=s(t)?t+"":t}if(typeof r!="string")return r===0?r:+r;r=e(r);var i=c.test(r);return i||b.test(r)?y(r.slice(2),i?2:8):o.test(r)?n:+r}module.exports=p;