@ktnpm_devops/react-component 0.16.0 → 0.17.0

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 (391) hide show
  1. package/README.md +38 -2
  2. package/dist/constants.d.ts +7 -3
  3. package/dist/constants.d.ts.map +1 -1
  4. package/dist/geo/GeoMapCard/GeoMapCard.d.ts +1 -1
  5. package/dist/geo/GeoMapCard/GeoMapCard.d.ts.map +1 -1
  6. package/dist/geo/GeoMapCard/GeoMapCard.types.d.ts +28 -2
  7. package/dist/geo/GeoMapCard/GeoMapCard.types.d.ts.map +1 -1
  8. package/dist/geo/GeoMapCard/MapStatusBars.d.ts +11 -0
  9. package/dist/geo/GeoMapCard/MapStatusBars.d.ts.map +1 -0
  10. package/dist/geo/GeoMapCard/ViewportReporter.d.ts +15 -0
  11. package/dist/geo/GeoMapCard/ViewportReporter.d.ts.map +1 -0
  12. package/dist/geo/GeoMapCard/describePoints.d.ts +7 -0
  13. package/dist/geo/GeoMapCard/describePoints.d.ts.map +1 -0
  14. package/dist/geo/GeoMapCard/normalizeViewport.d.ts +13 -0
  15. package/dist/geo/GeoMapCard/normalizeViewport.d.ts.map +1 -0
  16. package/dist/geo/GeoMapCard/normalizeViewport.test.d.ts +2 -0
  17. package/dist/geo/GeoMapCard/normalizeViewport.test.d.ts.map +1 -0
  18. package/dist/geo/GeoMapCard/resolveTiles.d.ts +9 -0
  19. package/dist/geo/GeoMapCard/resolveTiles.d.ts.map +1 -0
  20. package/dist/geo/GeoMapCard/warnMissingBasemapKey.d.ts +9 -0
  21. package/dist/geo/GeoMapCard/warnMissingBasemapKey.d.ts.map +1 -0
  22. package/dist/index.d.ts +1 -1
  23. package/dist/index.d.ts.map +1 -1
  24. package/dist/index10.cjs +1 -1
  25. package/dist/index10.js +1 -1
  26. package/dist/index100.cjs +39 -39
  27. package/dist/index100.cjs.map +1 -1
  28. package/dist/index100.js +38 -38
  29. package/dist/index100.js.map +1 -1
  30. package/dist/index101.cjs +9 -58
  31. package/dist/index101.cjs.map +1 -1
  32. package/dist/index101.js +8 -57
  33. package/dist/index101.js.map +1 -1
  34. package/dist/index102.cjs +9 -38
  35. package/dist/index102.cjs.map +1 -1
  36. package/dist/index102.js +10 -39
  37. package/dist/index102.js.map +1 -1
  38. package/dist/index103.cjs +19 -92
  39. package/dist/index103.cjs.map +1 -1
  40. package/dist/index103.js +19 -92
  41. package/dist/index103.js.map +1 -1
  42. package/dist/index104.cjs +14 -40
  43. package/dist/index104.cjs.map +1 -1
  44. package/dist/index104.js +13 -39
  45. package/dist/index104.js.map +1 -1
  46. package/dist/index105.cjs +8 -113
  47. package/dist/index105.cjs.map +1 -1
  48. package/dist/index105.js +8 -113
  49. package/dist/index105.js.map +1 -1
  50. package/dist/index106.cjs +51 -24
  51. package/dist/index106.cjs.map +1 -1
  52. package/dist/index106.js +52 -25
  53. package/dist/index106.js.map +1 -1
  54. package/dist/index107.cjs +9 -15
  55. package/dist/index107.cjs.map +1 -1
  56. package/dist/index107.js +10 -16
  57. package/dist/index107.js.map +1 -1
  58. package/dist/index108.cjs +48 -10
  59. package/dist/index108.cjs.map +1 -1
  60. package/dist/index108.js +47 -9
  61. package/dist/index108.js.map +1 -1
  62. package/dist/index109.cjs +16 -34
  63. package/dist/index109.cjs.map +1 -1
  64. package/dist/index109.js +16 -34
  65. package/dist/index109.js.map +1 -1
  66. package/dist/index110.cjs +36 -43
  67. package/dist/index110.cjs.map +1 -1
  68. package/dist/index110.js +35 -42
  69. package/dist/index110.js.map +1 -1
  70. package/dist/index111.cjs +54 -24
  71. package/dist/index111.cjs.map +1 -1
  72. package/dist/index111.js +53 -23
  73. package/dist/index111.js.map +1 -1
  74. package/dist/index112.cjs +40 -20
  75. package/dist/index112.cjs.map +1 -1
  76. package/dist/index112.js +39 -19
  77. package/dist/index112.js.map +1 -1
  78. package/dist/index113.cjs +16 -14
  79. package/dist/index113.cjs.map +1 -1
  80. package/dist/index113.js +15 -13
  81. package/dist/index113.js.map +1 -1
  82. package/dist/index114.cjs +15 -54
  83. package/dist/index114.cjs.map +1 -1
  84. package/dist/index114.js +16 -55
  85. package/dist/index114.js.map +1 -1
  86. package/dist/index115.cjs +36 -18
  87. package/dist/index115.cjs.map +1 -1
  88. package/dist/index115.js +36 -18
  89. package/dist/index115.js.map +1 -1
  90. package/dist/index116.cjs +64 -13
  91. package/dist/index116.cjs.map +1 -1
  92. package/dist/index116.js +65 -14
  93. package/dist/index116.js.map +1 -1
  94. package/dist/index117.cjs +52 -16
  95. package/dist/index117.cjs.map +1 -1
  96. package/dist/index117.js +52 -16
  97. package/dist/index117.js.map +1 -1
  98. package/dist/index119.cjs +16 -34
  99. package/dist/index119.cjs.map +1 -1
  100. package/dist/index119.js +16 -34
  101. package/dist/index119.js.map +1 -1
  102. package/dist/index12.cjs +1 -1
  103. package/dist/index12.js +1 -1
  104. package/dist/index120.cjs +16 -46
  105. package/dist/index120.cjs.map +1 -1
  106. package/dist/index120.js +16 -46
  107. package/dist/index120.js.map +1 -1
  108. package/dist/index121.cjs +7 -18
  109. package/dist/index121.cjs.map +1 -1
  110. package/dist/index121.js +6 -17
  111. package/dist/index121.js.map +1 -1
  112. package/dist/index122.cjs +15 -33
  113. package/dist/index122.cjs.map +1 -1
  114. package/dist/index122.js +15 -33
  115. package/dist/index122.js.map +1 -1
  116. package/dist/index123.cjs +2 -38
  117. package/dist/index123.cjs.map +1 -1
  118. package/dist/index123.js +3 -39
  119. package/dist/index123.js.map +1 -1
  120. package/dist/index124.cjs +19 -1164
  121. package/dist/index124.cjs.map +1 -1
  122. package/dist/index124.js +17 -1163
  123. package/dist/index124.js.map +1 -1
  124. package/dist/index125.cjs +84 -1575
  125. package/dist/index125.cjs.map +1 -1
  126. package/dist/index125.js +83 -1575
  127. package/dist/index125.js.map +1 -1
  128. package/dist/index126.cjs +24 -0
  129. package/dist/index126.cjs.map +1 -0
  130. package/dist/index126.js +24 -0
  131. package/dist/index126.js.map +1 -0
  132. package/dist/index127.cjs +36 -0
  133. package/dist/index127.cjs.map +1 -0
  134. package/dist/index127.js +36 -0
  135. package/dist/index127.js.map +1 -0
  136. package/dist/index128.cjs +1166 -0
  137. package/dist/index128.cjs.map +1 -0
  138. package/dist/index128.js +1167 -0
  139. package/dist/index128.js.map +1 -0
  140. package/dist/index129.cjs +1578 -0
  141. package/dist/index129.cjs.map +1 -0
  142. package/dist/index129.js +1579 -0
  143. package/dist/index129.js.map +1 -0
  144. package/dist/index13.cjs +1 -1
  145. package/dist/index13.js +1 -1
  146. package/dist/index130.cjs +37 -0
  147. package/dist/index130.cjs.map +1 -0
  148. package/dist/index130.js +37 -0
  149. package/dist/index130.js.map +1 -0
  150. package/dist/index14.cjs +1 -1
  151. package/dist/index14.js +1 -1
  152. package/dist/index15.cjs +1 -1
  153. package/dist/index15.js +1 -1
  154. package/dist/index16.cjs +2 -2
  155. package/dist/index16.js +2 -2
  156. package/dist/index17.cjs +1 -1
  157. package/dist/index17.js +1 -1
  158. package/dist/index19.cjs +1 -1
  159. package/dist/index19.js +1 -1
  160. package/dist/index20.cjs +1 -1
  161. package/dist/index20.js +1 -1
  162. package/dist/index21.cjs +1 -1
  163. package/dist/index21.js +1 -1
  164. package/dist/index22.cjs +2 -2
  165. package/dist/index22.js +2 -2
  166. package/dist/index23.cjs +2 -2
  167. package/dist/index23.js +2 -2
  168. package/dist/index24.cjs +2 -2
  169. package/dist/index24.js +2 -2
  170. package/dist/index25.cjs +1 -1
  171. package/dist/index25.js +1 -1
  172. package/dist/index26.cjs +1 -1
  173. package/dist/index26.js +1 -1
  174. package/dist/index27.cjs +1 -1
  175. package/dist/index27.js +1 -1
  176. package/dist/index28.cjs +1 -1
  177. package/dist/index28.js +1 -1
  178. package/dist/index29.cjs +2 -2
  179. package/dist/index29.js +2 -2
  180. package/dist/index30.cjs +37 -35
  181. package/dist/index30.cjs.map +1 -1
  182. package/dist/index30.js +35 -33
  183. package/dist/index30.js.map +1 -1
  184. package/dist/index31.cjs +4 -4
  185. package/dist/index31.js +4 -4
  186. package/dist/index32.cjs +3 -3
  187. package/dist/index32.js +3 -3
  188. package/dist/index33.cjs +1 -1
  189. package/dist/index33.js +1 -1
  190. package/dist/index34.cjs +2 -2
  191. package/dist/index34.js +2 -2
  192. package/dist/index35.cjs +2 -2
  193. package/dist/index35.js +2 -2
  194. package/dist/index36.cjs +2 -2
  195. package/dist/index36.js +2 -2
  196. package/dist/index37.cjs +1 -1
  197. package/dist/index37.js +1 -1
  198. package/dist/index38.cjs +2 -2
  199. package/dist/index38.js +2 -2
  200. package/dist/index39.cjs +1 -1
  201. package/dist/index39.js +1 -1
  202. package/dist/index40.cjs +2 -2
  203. package/dist/index40.js +2 -2
  204. package/dist/index41.cjs +2 -2
  205. package/dist/index41.js +2 -2
  206. package/dist/index42.cjs +2 -2
  207. package/dist/index42.js +2 -2
  208. package/dist/index43.cjs +1 -1
  209. package/dist/index43.js +1 -1
  210. package/dist/index44.cjs +2 -2
  211. package/dist/index44.js +2 -2
  212. package/dist/index45.cjs +4 -4
  213. package/dist/index45.js +4 -4
  214. package/dist/index46.cjs +1 -1
  215. package/dist/index46.js +1 -1
  216. package/dist/index47.cjs +1 -1
  217. package/dist/index47.js +1 -1
  218. package/dist/index48.cjs +1 -1
  219. package/dist/index48.js +1 -1
  220. package/dist/index49.cjs +2 -2
  221. package/dist/index49.js +2 -2
  222. package/dist/index50.cjs +2 -2
  223. package/dist/index50.js +2 -2
  224. package/dist/index51.cjs +1 -1
  225. package/dist/index51.js +1 -1
  226. package/dist/index52.cjs +3 -3
  227. package/dist/index52.js +3 -3
  228. package/dist/index53.cjs +1 -1
  229. package/dist/index53.js +1 -1
  230. package/dist/index54.cjs +1 -1
  231. package/dist/index54.js +1 -1
  232. package/dist/index55.cjs +3 -3
  233. package/dist/index55.js +3 -3
  234. package/dist/index56.cjs +1 -1
  235. package/dist/index56.js +1 -1
  236. package/dist/index57.cjs +1 -1
  237. package/dist/index57.js +1 -1
  238. package/dist/index58.cjs +2 -2
  239. package/dist/index58.js +2 -2
  240. package/dist/index60.cjs +13 -22
  241. package/dist/index60.cjs.map +1 -1
  242. package/dist/index60.js +13 -22
  243. package/dist/index60.js.map +1 -1
  244. package/dist/index61.cjs +18 -21
  245. package/dist/index61.cjs.map +1 -1
  246. package/dist/index61.js +19 -22
  247. package/dist/index61.js.map +1 -1
  248. package/dist/index62.cjs +13 -13
  249. package/dist/index62.js +13 -13
  250. package/dist/index63.cjs +10 -143
  251. package/dist/index63.cjs.map +1 -1
  252. package/dist/index63.js +8 -141
  253. package/dist/index63.js.map +1 -1
  254. package/dist/index64.cjs +143 -25
  255. package/dist/index64.cjs.map +1 -1
  256. package/dist/index64.js +141 -23
  257. package/dist/index64.js.map +1 -1
  258. package/dist/index65.cjs +16 -13
  259. package/dist/index65.cjs.map +1 -1
  260. package/dist/index65.js +17 -14
  261. package/dist/index65.js.map +1 -1
  262. package/dist/index66.cjs +19 -13
  263. package/dist/index66.cjs.map +1 -1
  264. package/dist/index66.js +20 -14
  265. package/dist/index66.js.map +1 -1
  266. package/dist/index68.cjs +35 -14
  267. package/dist/index68.cjs.map +1 -1
  268. package/dist/index68.js +36 -15
  269. package/dist/index68.js.map +1 -1
  270. package/dist/index69.cjs +28 -28
  271. package/dist/index69.js +28 -28
  272. package/dist/index70.cjs +19 -19
  273. package/dist/index70.js +20 -20
  274. package/dist/index71.cjs +4 -46
  275. package/dist/index71.cjs.map +1 -1
  276. package/dist/index71.js +5 -47
  277. package/dist/index71.js.map +1 -1
  278. package/dist/index72.cjs +116 -7
  279. package/dist/index72.cjs.map +1 -1
  280. package/dist/index72.js +115 -6
  281. package/dist/index72.js.map +1 -1
  282. package/dist/index73.cjs +35 -77
  283. package/dist/index73.cjs.map +1 -1
  284. package/dist/index73.js +35 -77
  285. package/dist/index73.js.map +1 -1
  286. package/dist/index74.cjs +52 -52
  287. package/dist/index74.js +52 -52
  288. package/dist/index75.cjs +39 -39
  289. package/dist/index75.cjs.map +1 -1
  290. package/dist/index75.js +38 -38
  291. package/dist/index75.js.map +1 -1
  292. package/dist/index76.cjs +89 -14
  293. package/dist/index76.cjs.map +1 -1
  294. package/dist/index76.js +89 -14
  295. package/dist/index76.js.map +1 -1
  296. package/dist/index77.cjs +35 -2
  297. package/dist/index77.cjs.map +1 -1
  298. package/dist/index77.js +36 -3
  299. package/dist/index77.js.map +1 -1
  300. package/dist/index78.cjs +22 -6
  301. package/dist/index78.cjs.map +1 -1
  302. package/dist/index78.js +21 -5
  303. package/dist/index78.js.map +1 -1
  304. package/dist/index79.cjs +70 -10
  305. package/dist/index79.cjs.map +1 -1
  306. package/dist/index79.js +68 -8
  307. package/dist/index79.js.map +1 -1
  308. package/dist/index80.cjs +7 -33
  309. package/dist/index80.cjs.map +1 -1
  310. package/dist/index80.js +6 -32
  311. package/dist/index80.js.map +1 -1
  312. package/dist/index81.cjs +34 -16
  313. package/dist/index81.cjs.map +1 -1
  314. package/dist/index81.js +35 -17
  315. package/dist/index81.js.map +1 -1
  316. package/dist/index82.cjs +134 -16
  317. package/dist/index82.cjs.map +1 -1
  318. package/dist/index82.js +133 -15
  319. package/dist/index82.js.map +1 -1
  320. package/dist/index83.cjs +36 -15
  321. package/dist/index83.cjs.map +1 -1
  322. package/dist/index83.js +37 -16
  323. package/dist/index83.js.map +1 -1
  324. package/dist/index84.cjs +1 -1
  325. package/dist/index84.js +1 -1
  326. package/dist/index85.cjs +32 -17
  327. package/dist/index85.cjs.map +1 -1
  328. package/dist/index85.js +33 -18
  329. package/dist/index85.js.map +1 -1
  330. package/dist/index86.cjs +28 -64
  331. package/dist/index86.cjs.map +1 -1
  332. package/dist/index86.js +28 -64
  333. package/dist/index86.js.map +1 -1
  334. package/dist/index87.cjs +2 -20
  335. package/dist/index87.cjs.map +1 -1
  336. package/dist/index87.js +3 -21
  337. package/dist/index87.js.map +1 -1
  338. package/dist/index88.cjs +17 -2
  339. package/dist/index88.cjs.map +1 -1
  340. package/dist/index88.js +18 -3
  341. package/dist/index88.js.map +1 -1
  342. package/dist/index89.cjs +20 -2
  343. package/dist/index89.cjs.map +1 -1
  344. package/dist/index89.js +20 -2
  345. package/dist/index89.js.map +1 -1
  346. package/dist/index90.cjs +46 -10
  347. package/dist/index90.cjs.map +1 -1
  348. package/dist/index90.js +47 -11
  349. package/dist/index90.js.map +1 -1
  350. package/dist/index91.cjs +22 -13
  351. package/dist/index91.cjs.map +1 -1
  352. package/dist/index91.js +23 -14
  353. package/dist/index91.js.map +1 -1
  354. package/dist/index92.cjs +22 -49
  355. package/dist/index92.cjs.map +1 -1
  356. package/dist/index92.js +22 -49
  357. package/dist/index92.js.map +1 -1
  358. package/dist/index93.cjs +7 -134
  359. package/dist/index93.cjs.map +1 -1
  360. package/dist/index93.js +6 -133
  361. package/dist/index93.js.map +1 -1
  362. package/dist/index94.cjs +13 -40
  363. package/dist/index94.cjs.map +1 -1
  364. package/dist/index94.js +14 -41
  365. package/dist/index94.js.map +1 -1
  366. package/dist/index95.cjs +3 -36
  367. package/dist/index95.cjs.map +1 -1
  368. package/dist/index95.js +3 -36
  369. package/dist/index95.js.map +1 -1
  370. package/dist/index96.cjs +15 -24
  371. package/dist/index96.cjs.map +1 -1
  372. package/dist/index96.js +15 -24
  373. package/dist/index96.js.map +1 -1
  374. package/dist/index97.cjs +33 -20
  375. package/dist/index97.cjs.map +1 -1
  376. package/dist/index97.js +33 -20
  377. package/dist/index97.js.map +1 -1
  378. package/dist/index98.cjs +37 -63
  379. package/dist/index98.cjs.map +1 -1
  380. package/dist/index98.js +37 -63
  381. package/dist/index98.js.map +1 -1
  382. package/dist/index99.cjs +23 -6
  383. package/dist/index99.cjs.map +1 -1
  384. package/dist/index99.js +23 -6
  385. package/dist/index99.js.map +1 -1
  386. package/dist/style.css +45 -0
  387. package/dist/types/geo.types.d.ts +14 -0
  388. package/dist/types/geo.types.d.ts.map +1 -1
  389. package/dist/types/index.d.ts +1 -1
  390. package/dist/types/index.d.ts.map +1 -1
  391. package/package.json +1 -1
package/dist/index116.cjs CHANGED
@@ -1,21 +1,72 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const root = "krc-root-WL0sD";
4
- const left = "krc-left-9KFDB";
5
- const right = "krc-right-YmUbX";
6
- const divider = "krc-divider-jNOSU";
7
- const dividerHandle = "krc-dividerHandle-SoNqx";
3
+ const root = "krc-root-HS837";
4
+ const gapNone = "krc-gapNone-MmCvp";
5
+ const gapXs = "krc-gapXs-Jketq";
6
+ const gapSm = "krc-gapSm-BFLhK";
7
+ const gapMd = "krc-gapMd--7IRg";
8
+ const gapLg = "krc-gapLg-ehuIZ";
9
+ const gapXl = "krc-gapXl-kNEyc";
10
+ const alignStart = "krc-alignStart-q6fMC";
11
+ const alignCenter = "krc-alignCenter-Py2Kt";
12
+ const alignEnd = "krc-alignEnd-ialGn";
13
+ const alignStretch = "krc-alignStretch-J-rq4";
14
+ const alignBaseline = "krc-alignBaseline-Hg-4L";
15
+ const justifyStart = "krc-justifyStart-tBqbD";
16
+ const justifyCenter = "krc-justifyCenter-6QDaO";
17
+ const justifyEnd = "krc-justifyEnd-2tbcB";
18
+ const justifyBetween = "krc-justifyBetween-5W1AJ";
19
+ const justifyAround = "krc-justifyAround-AMU1m";
20
+ const justifyEvenly = "krc-justifyEvenly-Vj3C-";
21
+ const wrap = "krc-wrap-Q4txZ";
22
+ const nowrap = "krc-nowrap-BUcfT";
23
+ const dirRow = "krc-dirRow-NBoPO";
24
+ const dirColumn = "krc-dirColumn-gJ7qS";
8
25
  const styles = {
9
26
  root,
10
- left,
11
- right,
12
- divider,
13
- dividerHandle
27
+ gapNone,
28
+ gapXs,
29
+ gapSm,
30
+ gapMd,
31
+ gapLg,
32
+ gapXl,
33
+ alignStart,
34
+ alignCenter,
35
+ alignEnd,
36
+ alignStretch,
37
+ alignBaseline,
38
+ justifyStart,
39
+ justifyCenter,
40
+ justifyEnd,
41
+ justifyBetween,
42
+ justifyAround,
43
+ justifyEvenly,
44
+ wrap,
45
+ nowrap,
46
+ dirRow,
47
+ dirColumn
14
48
  };
49
+ exports.alignBaseline = alignBaseline;
50
+ exports.alignCenter = alignCenter;
51
+ exports.alignEnd = alignEnd;
52
+ exports.alignStart = alignStart;
53
+ exports.alignStretch = alignStretch;
15
54
  exports.default = styles;
16
- exports.divider = divider;
17
- exports.dividerHandle = dividerHandle;
18
- exports.left = left;
19
- exports.right = right;
55
+ exports.dirColumn = dirColumn;
56
+ exports.dirRow = dirRow;
57
+ exports.gapLg = gapLg;
58
+ exports.gapMd = gapMd;
59
+ exports.gapNone = gapNone;
60
+ exports.gapSm = gapSm;
61
+ exports.gapXl = gapXl;
62
+ exports.gapXs = gapXs;
63
+ exports.justifyAround = justifyAround;
64
+ exports.justifyBetween = justifyBetween;
65
+ exports.justifyCenter = justifyCenter;
66
+ exports.justifyEnd = justifyEnd;
67
+ exports.justifyEvenly = justifyEvenly;
68
+ exports.justifyStart = justifyStart;
69
+ exports.nowrap = nowrap;
20
70
  exports.root = root;
71
+ exports.wrap = wrap;
21
72
  //# sourceMappingURL=index116.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index116.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index116.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index116.js CHANGED
@@ -1,21 +1,72 @@
1
- const root = "krc-root-WL0sD";
2
- const left = "krc-left-9KFDB";
3
- const right = "krc-right-YmUbX";
4
- const divider = "krc-divider-jNOSU";
5
- const dividerHandle = "krc-dividerHandle-SoNqx";
1
+ const root = "krc-root-HS837";
2
+ const gapNone = "krc-gapNone-MmCvp";
3
+ const gapXs = "krc-gapXs-Jketq";
4
+ const gapSm = "krc-gapSm-BFLhK";
5
+ const gapMd = "krc-gapMd--7IRg";
6
+ const gapLg = "krc-gapLg-ehuIZ";
7
+ const gapXl = "krc-gapXl-kNEyc";
8
+ const alignStart = "krc-alignStart-q6fMC";
9
+ const alignCenter = "krc-alignCenter-Py2Kt";
10
+ const alignEnd = "krc-alignEnd-ialGn";
11
+ const alignStretch = "krc-alignStretch-J-rq4";
12
+ const alignBaseline = "krc-alignBaseline-Hg-4L";
13
+ const justifyStart = "krc-justifyStart-tBqbD";
14
+ const justifyCenter = "krc-justifyCenter-6QDaO";
15
+ const justifyEnd = "krc-justifyEnd-2tbcB";
16
+ const justifyBetween = "krc-justifyBetween-5W1AJ";
17
+ const justifyAround = "krc-justifyAround-AMU1m";
18
+ const justifyEvenly = "krc-justifyEvenly-Vj3C-";
19
+ const wrap = "krc-wrap-Q4txZ";
20
+ const nowrap = "krc-nowrap-BUcfT";
21
+ const dirRow = "krc-dirRow-NBoPO";
22
+ const dirColumn = "krc-dirColumn-gJ7qS";
6
23
  const styles = {
7
24
  root,
8
- left,
9
- right,
10
- divider,
11
- dividerHandle
25
+ gapNone,
26
+ gapXs,
27
+ gapSm,
28
+ gapMd,
29
+ gapLg,
30
+ gapXl,
31
+ alignStart,
32
+ alignCenter,
33
+ alignEnd,
34
+ alignStretch,
35
+ alignBaseline,
36
+ justifyStart,
37
+ justifyCenter,
38
+ justifyEnd,
39
+ justifyBetween,
40
+ justifyAround,
41
+ justifyEvenly,
42
+ wrap,
43
+ nowrap,
44
+ dirRow,
45
+ dirColumn
12
46
  };
13
47
  export {
48
+ alignBaseline,
49
+ alignCenter,
50
+ alignEnd,
51
+ alignStart,
52
+ alignStretch,
14
53
  styles as default,
15
- divider,
16
- dividerHandle,
17
- left,
18
- right,
19
- root
54
+ dirColumn,
55
+ dirRow,
56
+ gapLg,
57
+ gapMd,
58
+ gapNone,
59
+ gapSm,
60
+ gapXl,
61
+ gapXs,
62
+ justifyAround,
63
+ justifyBetween,
64
+ justifyCenter,
65
+ justifyEnd,
66
+ justifyEvenly,
67
+ justifyStart,
68
+ nowrap,
69
+ root,
70
+ wrap
20
71
  };
21
72
  //# sourceMappingURL=index116.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index116.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
1
+ {"version":3,"file":"index116.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index117.cjs CHANGED
@@ -1,24 +1,60 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const root = "krc-root-jkFwM";
4
- const sidebar = "krc-sidebar-g7vxQ";
5
- const sidebarCollapsed = "krc-sidebarCollapsed-Xiswa";
6
- const main = "krc-main-B4HyG";
7
- const content = "krc-content-72sFf";
8
- const title = "krc-title-pe-1P";
3
+ const root = "krc-root--s1oD";
4
+ const trigger = "krc-trigger-WMlNa";
5
+ const active = "krc-active-O65lj";
6
+ const triggerContent = "krc-triggerContent-JipmE";
7
+ const chevron = "krc-chevron-J2Zsy";
8
+ const label = "krc-label-lZlV-";
9
+ const value = "krc-value-HsQrC";
10
+ const clear = "krc-clear-bsi5j";
11
+ const panel = "krc-panel--0odx";
12
+ const searchContainer = "krc-searchContainer-WRS-U";
13
+ const search = "krc-search-Dh3pY";
14
+ const list = "krc-list-1RUtr";
15
+ const noResults = "krc-noResults-Hin1U";
16
+ const option = "krc-option-0mFGi";
17
+ const focused = "krc-focused-0-7tE";
18
+ const selected = "krc-selected-1zIqI";
19
+ const optionLabel = "krc-optionLabel-pj-hL";
20
+ const optionCount = "krc-optionCount-rVlCP";
9
21
  const styles = {
10
22
  root,
11
- sidebar,
12
- sidebarCollapsed,
13
- main,
14
- content,
15
- title
23
+ trigger,
24
+ active,
25
+ triggerContent,
26
+ chevron,
27
+ label,
28
+ value,
29
+ clear,
30
+ panel,
31
+ searchContainer,
32
+ search,
33
+ list,
34
+ noResults,
35
+ option,
36
+ focused,
37
+ selected,
38
+ optionLabel,
39
+ optionCount
16
40
  };
17
- exports.content = content;
41
+ exports.active = active;
42
+ exports.chevron = chevron;
43
+ exports.clear = clear;
18
44
  exports.default = styles;
19
- exports.main = main;
45
+ exports.focused = focused;
46
+ exports.label = label;
47
+ exports.list = list;
48
+ exports.noResults = noResults;
49
+ exports.option = option;
50
+ exports.optionCount = optionCount;
51
+ exports.optionLabel = optionLabel;
52
+ exports.panel = panel;
20
53
  exports.root = root;
21
- exports.sidebar = sidebar;
22
- exports.sidebarCollapsed = sidebarCollapsed;
23
- exports.title = title;
54
+ exports.search = search;
55
+ exports.searchContainer = searchContainer;
56
+ exports.selected = selected;
57
+ exports.trigger = trigger;
58
+ exports.triggerContent = triggerContent;
59
+ exports.value = value;
24
60
  //# sourceMappingURL=index117.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index117.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index117.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index117.js CHANGED
@@ -1,24 +1,60 @@
1
- const root = "krc-root-jkFwM";
2
- const sidebar = "krc-sidebar-g7vxQ";
3
- const sidebarCollapsed = "krc-sidebarCollapsed-Xiswa";
4
- const main = "krc-main-B4HyG";
5
- const content = "krc-content-72sFf";
6
- const title = "krc-title-pe-1P";
1
+ const root = "krc-root--s1oD";
2
+ const trigger = "krc-trigger-WMlNa";
3
+ const active = "krc-active-O65lj";
4
+ const triggerContent = "krc-triggerContent-JipmE";
5
+ const chevron = "krc-chevron-J2Zsy";
6
+ const label = "krc-label-lZlV-";
7
+ const value = "krc-value-HsQrC";
8
+ const clear = "krc-clear-bsi5j";
9
+ const panel = "krc-panel--0odx";
10
+ const searchContainer = "krc-searchContainer-WRS-U";
11
+ const search = "krc-search-Dh3pY";
12
+ const list = "krc-list-1RUtr";
13
+ const noResults = "krc-noResults-Hin1U";
14
+ const option = "krc-option-0mFGi";
15
+ const focused = "krc-focused-0-7tE";
16
+ const selected = "krc-selected-1zIqI";
17
+ const optionLabel = "krc-optionLabel-pj-hL";
18
+ const optionCount = "krc-optionCount-rVlCP";
7
19
  const styles = {
8
20
  root,
9
- sidebar,
10
- sidebarCollapsed,
11
- main,
12
- content,
13
- title
21
+ trigger,
22
+ active,
23
+ triggerContent,
24
+ chevron,
25
+ label,
26
+ value,
27
+ clear,
28
+ panel,
29
+ searchContainer,
30
+ search,
31
+ list,
32
+ noResults,
33
+ option,
34
+ focused,
35
+ selected,
36
+ optionLabel,
37
+ optionCount
14
38
  };
15
39
  export {
16
- content,
40
+ active,
41
+ chevron,
42
+ clear,
17
43
  styles as default,
18
- main,
44
+ focused,
45
+ label,
46
+ list,
47
+ noResults,
48
+ option,
49
+ optionCount,
50
+ optionLabel,
51
+ panel,
19
52
  root,
20
- sidebar,
21
- sidebarCollapsed,
22
- title
53
+ search,
54
+ searchContainer,
55
+ selected,
56
+ trigger,
57
+ triggerContent,
58
+ value
23
59
  };
24
60
  //# sourceMappingURL=index117.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index117.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index117.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index119.cjs CHANGED
@@ -1,42 +1,24 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const root = "krc-root-uKAJr";
4
- const header = "krc-header-BWJPo";
5
- const body = "krc-body-LCUxY";
6
- const footer = "krc-footer-z4n8R";
7
- const toggle = "krc-toggle-9T9IZ";
8
- const section = "krc-section-us0Me";
9
- const sectionTitle = "krc-sectionTitle-On1X-";
10
- const sectionToggle = "krc-sectionToggle-eriVJ";
11
- const sectionChevron = "krc-sectionChevron-cgn7M";
12
- const sectionChevronOpen = "krc-sectionChevronOpen-Ja5Y3";
13
- const sectionItems = "krc-sectionItems-iwvxo";
14
- const collapsed = "krc-collapsed-JRXBy";
3
+ const root = "krc-root-rzEDE";
4
+ const sidebar = "krc-sidebar-ediN2";
5
+ const sidebarCollapsed = "krc-sidebarCollapsed--qs43";
6
+ const main = "krc-main-E8utR";
7
+ const filterBar = "krc-filterBar-O8ajX";
8
+ const content = "krc-content-lY5l-";
15
9
  const styles = {
16
10
  root,
17
- header,
18
- body,
19
- footer,
20
- toggle,
21
- section,
22
- sectionTitle,
23
- sectionToggle,
24
- sectionChevron,
25
- sectionChevronOpen,
26
- sectionItems,
27
- collapsed
11
+ sidebar,
12
+ sidebarCollapsed,
13
+ main,
14
+ filterBar,
15
+ content
28
16
  };
29
- exports.body = body;
30
- exports.collapsed = collapsed;
17
+ exports.content = content;
31
18
  exports.default = styles;
32
- exports.footer = footer;
33
- exports.header = header;
19
+ exports.filterBar = filterBar;
20
+ exports.main = main;
34
21
  exports.root = root;
35
- exports.section = section;
36
- exports.sectionChevron = sectionChevron;
37
- exports.sectionChevronOpen = sectionChevronOpen;
38
- exports.sectionItems = sectionItems;
39
- exports.sectionTitle = sectionTitle;
40
- exports.sectionToggle = sectionToggle;
41
- exports.toggle = toggle;
22
+ exports.sidebar = sidebar;
23
+ exports.sidebarCollapsed = sidebarCollapsed;
42
24
  //# sourceMappingURL=index119.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index119.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index119.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index119.js CHANGED
@@ -1,42 +1,24 @@
1
- const root = "krc-root-uKAJr";
2
- const header = "krc-header-BWJPo";
3
- const body = "krc-body-LCUxY";
4
- const footer = "krc-footer-z4n8R";
5
- const toggle = "krc-toggle-9T9IZ";
6
- const section = "krc-section-us0Me";
7
- const sectionTitle = "krc-sectionTitle-On1X-";
8
- const sectionToggle = "krc-sectionToggle-eriVJ";
9
- const sectionChevron = "krc-sectionChevron-cgn7M";
10
- const sectionChevronOpen = "krc-sectionChevronOpen-Ja5Y3";
11
- const sectionItems = "krc-sectionItems-iwvxo";
12
- const collapsed = "krc-collapsed-JRXBy";
1
+ const root = "krc-root-rzEDE";
2
+ const sidebar = "krc-sidebar-ediN2";
3
+ const sidebarCollapsed = "krc-sidebarCollapsed--qs43";
4
+ const main = "krc-main-E8utR";
5
+ const filterBar = "krc-filterBar-O8ajX";
6
+ const content = "krc-content-lY5l-";
13
7
  const styles = {
14
8
  root,
15
- header,
16
- body,
17
- footer,
18
- toggle,
19
- section,
20
- sectionTitle,
21
- sectionToggle,
22
- sectionChevron,
23
- sectionChevronOpen,
24
- sectionItems,
25
- collapsed
9
+ sidebar,
10
+ sidebarCollapsed,
11
+ main,
12
+ filterBar,
13
+ content
26
14
  };
27
15
  export {
28
- body,
29
- collapsed,
16
+ content,
30
17
  styles as default,
31
- footer,
32
- header,
18
+ filterBar,
19
+ main,
33
20
  root,
34
- section,
35
- sectionChevron,
36
- sectionChevronOpen,
37
- sectionItems,
38
- sectionTitle,
39
- sectionToggle,
40
- toggle
21
+ sidebar,
22
+ sidebarCollapsed
41
23
  };
42
24
  //# sourceMappingURL=index119.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index119.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index119.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
package/dist/index12.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const jsxRuntime = require("react/jsx-runtime");
4
4
  const clsx = require("./index59.cjs");
5
- const Avatar_module = require("./index82.cjs");
5
+ const Avatar_module = require("./index113.cjs");
6
6
  const Avatar = ({ label, size = "md", className, ...props }) => {
7
7
  const initials = label.split(" ").filter(Boolean).map((part) => part[0]).join("").slice(0, 2).toUpperCase();
8
8
  return /* @__PURE__ */ jsxRuntime.jsx(
package/dist/index12.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { clsx } from "./index59.js";
3
- import styles from "./index82.js";
3
+ import styles from "./index113.js";
4
4
  const Avatar = ({ label, size = "md", className, ...props }) => {
5
5
  const initials = label.split(" ").filter(Boolean).map((part) => part[0]).join("").slice(0, 2).toUpperCase();
6
6
  return /* @__PURE__ */ jsx(
package/dist/index120.cjs CHANGED
@@ -1,50 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const jsxRuntime = require("react/jsx-runtime");
4
- const constants = require("./index63.cjs");
5
- const HeatmapMatrix_module = require("./index122.cjs");
6
- function ColumnHeader({ column, rowSpan }) {
7
- return /* @__PURE__ */ jsxRuntime.jsx("th", { scope: "col", rowSpan, className: HeatmapMatrix_module.default.colh, title: column.title, children: column.label });
8
- }
9
- function HeatmapMatrixHeader({
10
- columns,
11
- runs,
12
- columnGroups,
13
- cornerLabel
14
- }) {
15
- const rowSpan = runs ? constants.HEATMAP_GROUPED_HEADER_ROWS : void 0;
16
- const corner = /* @__PURE__ */ jsxRuntime.jsx("th", { scope: "col", rowSpan, className: HeatmapMatrix_module.default.corner, "aria-hidden": cornerLabel == null, children: cornerLabel });
17
- if (!runs) {
18
- return /* @__PURE__ */ jsxRuntime.jsx("thead", { children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
19
- corner,
20
- columns.map((column) => /* @__PURE__ */ jsxRuntime.jsx(ColumnHeader, { column }, column.key))
21
- ] }) });
3
+ const marked_esm = require("./index128.cjs");
4
+ const purify_es = require("./index129.cjs");
5
+ const renderer = {
6
+ link({ href, tokens }) {
7
+ var _a;
8
+ const text = ((_a = this.parser) == null ? void 0 : _a.parseInline(tokens)) ?? tokens.map((t) => t.raw).join("");
9
+ return `<a href="${href}" target="_blank" rel="noopener noreferrer">${text}</a>`;
22
10
  }
23
- const groupsByKey = new Map(columnGroups == null ? void 0 : columnGroups.map((group) => [group.key, group]));
24
- const groupedColumns = runs.filter((run) => run.group !== void 0).flatMap((run) => run.columns);
25
- return /* @__PURE__ */ jsxRuntime.jsxs("thead", { children: [
26
- /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
27
- corner,
28
- runs.map((run) => {
29
- if (run.group === void 0) {
30
- return run.columns.map((column) => /* @__PURE__ */ jsxRuntime.jsx(ColumnHeader, { column, rowSpan }, column.key));
31
- }
32
- const entry = groupsByKey.get(run.group);
33
- return /* @__PURE__ */ jsxRuntime.jsx(
34
- "th",
35
- {
36
- scope: "colgroup",
37
- colSpan: run.columns.length,
38
- className: HeatmapMatrix_module.default.group,
39
- title: entry == null ? void 0 : entry.title,
40
- children: (entry == null ? void 0 : entry.label) ?? run.group
41
- },
42
- `group-${run.start}`
43
- );
44
- })
45
- ] }),
46
- /* @__PURE__ */ jsxRuntime.jsx("tr", { children: groupedColumns.map((column) => /* @__PURE__ */ jsxRuntime.jsx(ColumnHeader, { column }, column.key)) })
47
- ] });
48
- }
49
- exports.HeatmapMatrixHeader = HeatmapMatrixHeader;
11
+ };
12
+ marked_esm.marked.use({ gfm: true, breaks: true, renderer });
13
+ const sanitizeHtml = (html) => purify_es.sanitize(html, {
14
+ USE_PROFILES: { html: true },
15
+ ADD_ATTR: ["target", "rel"]
16
+ });
17
+ const parseMarkdown = (markdown) => sanitizeHtml(marked_esm.marked.parse(markdown));
18
+ exports.parseMarkdown = parseMarkdown;
19
+ exports.sanitizeHtml = sanitizeHtml;
50
20
  //# sourceMappingURL=index120.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index120.cjs","sources":["../src/data/HeatmapMatrix/HeatmapMatrixHeader.tsx"],"sourcesContent":["import { HEATMAP_GROUPED_HEADER_ROWS } from '../../constants';\nimport type { HeatmapColumnHeaderProps, HeatmapMatrixHeaderProps } from './HeatmapMatrix.types';\nimport styles from './HeatmapMatrix.module.css';\n\nfunction ColumnHeader({ column, rowSpan }: HeatmapColumnHeaderProps) {\n return (\n <th scope=\"col\" rowSpan={rowSpan} className={styles.colh} title={column.title}>\n {column.label}\n </th>\n );\n}\n\n/**\n * Flat (one row) when `runs` is undefined, so the DOM stays as it was before column groups.\n * Grouped: the corner and ungrouped columns span both rows; each grouped run gets one\n * `scope=\"colgroup\"` header above its columns.\n */\nexport function HeatmapMatrixHeader({\n columns,\n runs,\n columnGroups,\n cornerLabel,\n}: HeatmapMatrixHeaderProps) {\n const rowSpan = runs ? HEATMAP_GROUPED_HEADER_ROWS : undefined;\n const corner = (\n <th scope=\"col\" rowSpan={rowSpan} className={styles.corner} aria-hidden={cornerLabel == null}>\n {cornerLabel}\n </th>\n );\n\n if (!runs) {\n return (\n <thead>\n <tr>\n {corner}\n {columns.map((column) => (\n <ColumnHeader key={column.key} column={column} />\n ))}\n </tr>\n </thead>\n );\n }\n\n const groupsByKey = new Map(columnGroups?.map((group) => [group.key, group]));\n const groupedColumns = runs\n .filter((run) => run.group !== undefined)\n .flatMap((run) => run.columns);\n\n return (\n <thead>\n <tr>\n {corner}\n {runs.map((run) => {\n if (run.group === undefined) {\n return run.columns.map((column) => (\n <ColumnHeader key={column.key} column={column} rowSpan={rowSpan} />\n ));\n }\n const entry = groupsByKey.get(run.group);\n return (\n <th\n key={`group-${run.start}`}\n scope=\"colgroup\"\n colSpan={run.columns.length}\n className={styles.group}\n title={entry?.title}\n >\n {entry?.label ?? run.group}\n </th>\n );\n })}\n </tr>\n <tr>\n {groupedColumns.map((column) => (\n <ColumnHeader key={column.key} column={column} />\n ))}\n </tr>\n </thead>\n );\n}\n"],"names":["jsx","styles","HEATMAP_GROUPED_HEADER_ROWS","jsxs"],"mappings":";;;;;AAIA,SAAS,aAAa,EAAE,QAAQ,WAAqC;AACnE,SACEA,2BAAAA,IAAC,MAAA,EAAG,OAAM,OAAM,SAAkB,WAAWC,qBAAAA,QAAO,MAAM,OAAO,OAAO,OACrE,UAAA,OAAO,OACV;AAEJ;AAOO,SAAS,oBAAoB;AAAA,EAClC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAA6B;AAC3B,QAAM,UAAU,OAAOC,UAAAA,8BAA8B;AACrD,QAAM,SACJF,2BAAAA,IAAC,MAAA,EAAG,OAAM,OAAM,SAAkB,WAAWC,qBAAAA,QAAO,QAAQ,eAAa,eAAe,MACrF,UAAA,aACH;AAGF,MAAI,CAAC,MAAM;AACT,WACED,2BAAAA,IAAC,SAAA,EACC,UAAAG,2BAAAA,KAAC,MAAA,EACE,UAAA;AAAA,MAAA;AAAA,MACA,QAAQ,IAAI,CAAC,0CACX,cAAA,EAA8B,OAAA,GAAZ,OAAO,GAAqB,CAChD;AAAA,IAAA,EAAA,CACH,EAAA,CACF;AAAA,EAEJ;AAEA,QAAM,cAAc,IAAI,IAAI,6CAAc,IAAI,CAAC,UAAU,CAAC,MAAM,KAAK,KAAK,EAAE;AAC5E,QAAM,iBAAiB,KACpB,OAAO,CAAC,QAAQ,IAAI,UAAU,MAAS,EACvC,QAAQ,CAAC,QAAQ,IAAI,OAAO;AAE/B,yCACG,SAAA,EACC,UAAA;AAAA,IAAAA,gCAAC,MAAA,EACE,UAAA;AAAA,MAAA;AAAA,MACA,KAAK,IAAI,CAAC,QAAQ;AACjB,YAAI,IAAI,UAAU,QAAW;AAC3B,iBAAO,IAAI,QAAQ,IAAI,CAAC,WACtBH,2BAAAA,IAAC,cAAA,EAA8B,QAAgB,QAAA,GAA5B,OAAO,GAAuC,CAClE;AAAA,QACH;AACA,cAAM,QAAQ,YAAY,IAAI,IAAI,KAAK;AACvC,eACEA,2BAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YAEC,OAAM;AAAA,YACN,SAAS,IAAI,QAAQ;AAAA,YACrB,WAAWC,qBAAAA,QAAO;AAAA,YAClB,OAAO,+BAAO;AAAA,YAEb,WAAA,+BAAO,UAAS,IAAI;AAAA,UAAA;AAAA,UANhB,SAAS,IAAI,KAAK;AAAA,QAAA;AAAA,MAS7B,CAAC;AAAA,IAAA,GACH;AAAA,IACAD,2BAAAA,IAAC,MAAA,EACE,UAAA,eAAe,IAAI,CAAC,WACnBA,2BAAAA,IAAC,cAAA,EAA8B,OAAA,GAAZ,OAAO,GAAqB,CAChD,EAAA,CACH;AAAA,EAAA,GACF;AAEJ;;"}
1
+ {"version":3,"file":"index120.cjs","sources":["../src/utils/markdown.ts"],"sourcesContent":["import { marked, type Renderer } from 'marked';\nimport DOMPurify from 'dompurify';\n\n// Use a function (not arrow) so `this` binds to marked's renderer instance,\n// which exposes `parser.parseInline`. The default `text` arg is the raw link\n// label (`**bold** text`) — passing it through unchanged would print the\n// asterisks instead of rendering nested inline markdown. `parseInline(tokens)`\n// recurses into bold / italic / code / etc. inside the link text.\nconst renderer: Partial<Renderer> = {\n link({ href, tokens }) {\n /* `this.parser` is provided at runtime when marked wires the renderer\n into its pipeline; the type definition models it as possibly\n undefined for standalone use. `parseInline(tokens)` falls back to\n the join of token raw strings when the parser is absent. */\n const text = this.parser?.parseInline(tokens) ?? tokens.map((t) => t.raw).join('');\n return `<a href=\"${href}\" target=\"_blank\" rel=\"noopener noreferrer\">${text}</a>`;\n },\n};\n\nmarked.use({ gfm: true, breaks: true, renderer });\n\nexport const sanitizeHtml = (html: string): string =>\n DOMPurify.sanitize(html, {\n USE_PROFILES: { html: true },\n ADD_ATTR: ['target', 'rel'],\n });\n\nexport const parseMarkdown = (markdown: string): string =>\n sanitizeHtml(marked.parse(markdown) as string);\n"],"names":["marked","DOMPurify"],"mappings":";;;;AAQA,MAAM,WAA8B;AAAA,EAClC,KAAK,EAAE,MAAM,UAAU;;AAKrB,UAAM,SAAO,UAAK,WAAL,mBAAa,YAAY,YAAW,OAAO,IAAI,CAAC,MAAM,EAAE,GAAG,EAAE,KAAK,EAAE;AACjF,WAAO,YAAY,IAAI,+CAA+C,IAAI;AAAA,EAC5E;AACF;AAEAA,WAAAA,OAAO,IAAI,EAAE,KAAK,MAAM,QAAQ,MAAM,UAAU;AAEzC,MAAM,eAAe,CAAC,SAC3BC,UAAU,SAAS,MAAM;AAAA,EACvB,cAAc,EAAE,MAAM,KAAA;AAAA,EACtB,UAAU,CAAC,UAAU,KAAK;AAC5B,CAAC;AAEI,MAAM,gBAAgB,CAAC,aAC5B,aAAaD,WAAAA,OAAO,MAAM,QAAQ,CAAW;;;"}
package/dist/index120.js CHANGED
@@ -1,50 +1,20 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { HEATMAP_GROUPED_HEADER_ROWS } from "./index63.js";
3
- import styles from "./index122.js";
4
- function ColumnHeader({ column, rowSpan }) {
5
- return /* @__PURE__ */ jsx("th", { scope: "col", rowSpan, className: styles.colh, title: column.title, children: column.label });
6
- }
7
- function HeatmapMatrixHeader({
8
- columns,
9
- runs,
10
- columnGroups,
11
- cornerLabel
12
- }) {
13
- const rowSpan = runs ? HEATMAP_GROUPED_HEADER_ROWS : void 0;
14
- const corner = /* @__PURE__ */ jsx("th", { scope: "col", rowSpan, className: styles.corner, "aria-hidden": cornerLabel == null, children: cornerLabel });
15
- if (!runs) {
16
- return /* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
17
- corner,
18
- columns.map((column) => /* @__PURE__ */ jsx(ColumnHeader, { column }, column.key))
19
- ] }) });
1
+ import { marked as g } from "./index128.js";
2
+ import purify from "./index129.js";
3
+ const renderer = {
4
+ link({ href, tokens }) {
5
+ var _a;
6
+ const text = ((_a = this.parser) == null ? void 0 : _a.parseInline(tokens)) ?? tokens.map((t) => t.raw).join("");
7
+ return `<a href="${href}" target="_blank" rel="noopener noreferrer">${text}</a>`;
20
8
  }
21
- const groupsByKey = new Map(columnGroups == null ? void 0 : columnGroups.map((group) => [group.key, group]));
22
- const groupedColumns = runs.filter((run) => run.group !== void 0).flatMap((run) => run.columns);
23
- return /* @__PURE__ */ jsxs("thead", { children: [
24
- /* @__PURE__ */ jsxs("tr", { children: [
25
- corner,
26
- runs.map((run) => {
27
- if (run.group === void 0) {
28
- return run.columns.map((column) => /* @__PURE__ */ jsx(ColumnHeader, { column, rowSpan }, column.key));
29
- }
30
- const entry = groupsByKey.get(run.group);
31
- return /* @__PURE__ */ jsx(
32
- "th",
33
- {
34
- scope: "colgroup",
35
- colSpan: run.columns.length,
36
- className: styles.group,
37
- title: entry == null ? void 0 : entry.title,
38
- children: (entry == null ? void 0 : entry.label) ?? run.group
39
- },
40
- `group-${run.start}`
41
- );
42
- })
43
- ] }),
44
- /* @__PURE__ */ jsx("tr", { children: groupedColumns.map((column) => /* @__PURE__ */ jsx(ColumnHeader, { column }, column.key)) })
45
- ] });
46
- }
9
+ };
10
+ g.use({ gfm: true, breaks: true, renderer });
11
+ const sanitizeHtml = (html) => purify.sanitize(html, {
12
+ USE_PROFILES: { html: true },
13
+ ADD_ATTR: ["target", "rel"]
14
+ });
15
+ const parseMarkdown = (markdown) => sanitizeHtml(g.parse(markdown));
47
16
  export {
48
- HeatmapMatrixHeader
17
+ parseMarkdown,
18
+ sanitizeHtml
49
19
  };
50
20
  //# sourceMappingURL=index120.js.map