@ktnpm_devops/react-component 0.22.0 → 0.24.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 (566) hide show
  1. package/README.md +58 -0
  2. package/dist/charts/CounterTimeseriesChart/CounterTimeseriesChart.d.ts +1 -1
  3. package/dist/charts/CounterTimeseriesChart/CounterTimeseriesChart.d.ts.map +1 -1
  4. package/dist/charts/CounterTimeseriesChart/CounterTimeseriesChart.types.d.ts +3 -0
  5. package/dist/charts/CounterTimeseriesChart/CounterTimeseriesChart.types.d.ts.map +1 -1
  6. package/dist/charts/CountersAnalysisCard/CountersAnalysisCard.d.ts +1 -1
  7. package/dist/charts/CountersAnalysisCard/CountersAnalysisCard.d.ts.map +1 -1
  8. package/dist/charts/CountersAnalysisCard/CountersAnalysisCard.types.d.ts +3 -0
  9. package/dist/charts/CountersAnalysisCard/CountersAnalysisCard.types.d.ts.map +1 -1
  10. package/dist/charts/GroupedBarChartCard/GroupedBarChartCard.d.ts.map +1 -1
  11. package/dist/charts/GroupedBarChartCard/GroupedBarChartCard.types.d.ts +8 -11
  12. package/dist/charts/GroupedBarChartCard/GroupedBarChartCard.types.d.ts.map +1 -1
  13. package/dist/charts/GroupedBarChartCard/defaultLabels.d.ts +1 -1
  14. package/dist/charts/GroupedBarChartCard/defaultLabels.d.ts.map +1 -1
  15. package/dist/charts/StackedBarChartCard/StackedBarChartCard.d.ts +1 -1
  16. package/dist/charts/StackedBarChartCard/StackedBarChartCard.d.ts.map +1 -1
  17. package/dist/charts/StackedBarChartCard/StackedBarChartCard.types.d.ts +3 -0
  18. package/dist/charts/StackedBarChartCard/StackedBarChartCard.types.d.ts.map +1 -1
  19. package/dist/charts/TemporalTrendChartCard/TemporalTrendChartCard.d.ts +1 -1
  20. package/dist/charts/TemporalTrendChartCard/TemporalTrendChartCard.d.ts.map +1 -1
  21. package/dist/charts/TemporalTrendChartCard/TemporalTrendChartCard.types.d.ts +3 -0
  22. package/dist/charts/TemporalTrendChartCard/TemporalTrendChartCard.types.d.ts.map +1 -1
  23. package/dist/composites/CustomRangePicker/CustomRangePicker.d.ts +3 -12
  24. package/dist/composites/CustomRangePicker/CustomRangePicker.d.ts.map +1 -1
  25. package/dist/composites/CustomRangePicker/CustomRangePicker.types.d.ts +18 -0
  26. package/dist/composites/CustomRangePicker/CustomRangePicker.types.d.ts.map +1 -0
  27. package/dist/composites/CustomRangePicker/index.d.ts +1 -1
  28. package/dist/composites/CustomRangePicker/index.d.ts.map +1 -1
  29. package/dist/composites/DatePickerDropdown/DatePickerDropdown.d.ts +1 -1
  30. package/dist/composites/DatePickerDropdown/DatePickerDropdown.d.ts.map +1 -1
  31. package/dist/composites/DatePickerDropdown/DatePickerDropdown.types.d.ts +14 -4
  32. package/dist/composites/DatePickerDropdown/DatePickerDropdown.types.d.ts.map +1 -1
  33. package/dist/composites/DatePickerDropdown/calendarDates.d.ts +9 -0
  34. package/dist/composites/DatePickerDropdown/calendarDates.d.ts.map +1 -0
  35. package/dist/composites/MultiSelectDropdown/MultiSelectDropdown.d.ts +3 -32
  36. package/dist/composites/MultiSelectDropdown/MultiSelectDropdown.d.ts.map +1 -1
  37. package/dist/composites/MultiSelectDropdown/MultiSelectDropdown.types.d.ts +36 -0
  38. package/dist/composites/MultiSelectDropdown/MultiSelectDropdown.types.d.ts.map +1 -0
  39. package/dist/composites/MultiSelectDropdown/index.d.ts +1 -1
  40. package/dist/composites/MultiSelectDropdown/index.d.ts.map +1 -1
  41. package/dist/composites/SingleSelectDropdown/SingleSelectDropdown.d.ts +3 -22
  42. package/dist/composites/SingleSelectDropdown/SingleSelectDropdown.d.ts.map +1 -1
  43. package/dist/composites/SingleSelectDropdown/SingleSelectDropdown.types.d.ts +26 -0
  44. package/dist/composites/SingleSelectDropdown/SingleSelectDropdown.types.d.ts.map +1 -0
  45. package/dist/composites/SingleSelectDropdown/index.d.ts +1 -1
  46. package/dist/composites/SingleSelectDropdown/index.d.ts.map +1 -1
  47. package/dist/data/LiveExplorerTable/LiveExplorerTable.d.ts +1 -1
  48. package/dist/data/LiveExplorerTable/LiveExplorerTable.d.ts.map +1 -1
  49. package/dist/data/LiveExplorerTable/LiveExplorerTable.types.d.ts +3 -0
  50. package/dist/data/LiveExplorerTable/LiveExplorerTable.types.d.ts.map +1 -1
  51. package/dist/index.cjs +41 -37
  52. package/dist/index.cjs.map +1 -1
  53. package/dist/index.d.ts +2 -0
  54. package/dist/index.d.ts.map +1 -1
  55. package/dist/index.js +41 -37
  56. package/dist/index.js.map +1 -1
  57. package/dist/index10.cjs +2 -2
  58. package/dist/index10.js +2 -2
  59. package/dist/index100.cjs +92 -6
  60. package/dist/index100.cjs.map +1 -1
  61. package/dist/index100.js +91 -5
  62. package/dist/index100.js.map +1 -1
  63. package/dist/index101.cjs +34 -13
  64. package/dist/index101.cjs.map +1 -1
  65. package/dist/index101.js +34 -13
  66. package/dist/index101.js.map +1 -1
  67. package/dist/index102.cjs +22 -33
  68. package/dist/index102.cjs.map +1 -1
  69. package/dist/index102.js +21 -32
  70. package/dist/index102.js.map +1 -1
  71. package/dist/index103.cjs +69 -33
  72. package/dist/index103.cjs.map +1 -1
  73. package/dist/index103.js +68 -32
  74. package/dist/index103.js.map +1 -1
  75. package/dist/index104.cjs +6 -133
  76. package/dist/index104.cjs.map +1 -1
  77. package/dist/index104.js +6 -133
  78. package/dist/index104.js.map +1 -1
  79. package/dist/index105.cjs +18 -24
  80. package/dist/index105.cjs.map +1 -1
  81. package/dist/index105.js +18 -24
  82. package/dist/index105.js.map +1 -1
  83. package/dist/index106.cjs +35 -6
  84. package/dist/index106.cjs.map +1 -1
  85. package/dist/index106.js +34 -5
  86. package/dist/index106.js.map +1 -1
  87. package/dist/index107.cjs +43 -21
  88. package/dist/index107.cjs.map +1 -1
  89. package/dist/index107.js +42 -20
  90. package/dist/index107.js.map +1 -1
  91. package/dist/index108.cjs +24 -57
  92. package/dist/index108.cjs.map +1 -1
  93. package/dist/index108.js +23 -56
  94. package/dist/index108.js.map +1 -1
  95. package/dist/index109.cjs +39 -115
  96. package/dist/index109.cjs.map +1 -1
  97. package/dist/index109.js +39 -115
  98. package/dist/index109.js.map +1 -1
  99. package/dist/index11.cjs +2 -2
  100. package/dist/index11.js +2 -2
  101. package/dist/index110.cjs +9 -43
  102. package/dist/index110.cjs.map +1 -1
  103. package/dist/index110.js +8 -42
  104. package/dist/index110.js.map +1 -1
  105. package/dist/index111.cjs +10 -18
  106. package/dist/index111.cjs.map +1 -1
  107. package/dist/index111.js +9 -17
  108. package/dist/index111.js.map +1 -1
  109. package/dist/index112.cjs +20 -55
  110. package/dist/index112.cjs.map +1 -1
  111. package/dist/index112.js +19 -54
  112. package/dist/index112.js.map +1 -1
  113. package/dist/index113.cjs +13 -35
  114. package/dist/index113.cjs.map +1 -1
  115. package/dist/index113.js +13 -35
  116. package/dist/index113.js.map +1 -1
  117. package/dist/index114.cjs +7 -40
  118. package/dist/index114.cjs.map +1 -1
  119. package/dist/index114.js +7 -40
  120. package/dist/index114.js.map +1 -1
  121. package/dist/index115.cjs +69 -24
  122. package/dist/index115.cjs.map +1 -1
  123. package/dist/index115.js +68 -23
  124. package/dist/index115.js.map +1 -1
  125. package/dist/index116.cjs +18 -39
  126. package/dist/index116.cjs.map +1 -1
  127. package/dist/index116.js +17 -38
  128. package/dist/index116.js.map +1 -1
  129. package/dist/index117.cjs +7 -9
  130. package/dist/index117.cjs.map +1 -1
  131. package/dist/index117.js +6 -8
  132. package/dist/index117.js.map +1 -1
  133. package/dist/index118.cjs +57 -10
  134. package/dist/index118.cjs.map +1 -1
  135. package/dist/index118.js +56 -9
  136. package/dist/index118.js.map +1 -1
  137. package/dist/index119.cjs +40 -20
  138. package/dist/index119.cjs.map +1 -1
  139. package/dist/index119.js +39 -19
  140. package/dist/index119.js.map +1 -1
  141. package/dist/index12.cjs +2 -2
  142. package/dist/index12.js +2 -2
  143. package/dist/index120.cjs +22 -14
  144. package/dist/index120.cjs.map +1 -1
  145. package/dist/index120.js +21 -13
  146. package/dist/index120.js.map +1 -1
  147. package/dist/index121.cjs +131 -8
  148. package/dist/index121.cjs.map +1 -1
  149. package/dist/index121.js +131 -8
  150. package/dist/index121.js.map +1 -1
  151. package/dist/index122.cjs +27 -51
  152. package/dist/index122.cjs.map +1 -1
  153. package/dist/index122.js +28 -52
  154. package/dist/index122.js.map +1 -1
  155. package/dist/index123.cjs +10 -64
  156. package/dist/index123.cjs.map +1 -1
  157. package/dist/index123.js +11 -65
  158. package/dist/index123.js.map +1 -1
  159. package/dist/index124.cjs +37 -16
  160. package/dist/index124.cjs.map +1 -1
  161. package/dist/index124.js +38 -17
  162. package/dist/index124.js.map +1 -1
  163. package/dist/index125.cjs +9 -22
  164. package/dist/index125.cjs.map +1 -1
  165. package/dist/index125.js +8 -21
  166. package/dist/index125.js.map +1 -1
  167. package/dist/index126.cjs +110 -64
  168. package/dist/index126.cjs.map +1 -1
  169. package/dist/index126.js +110 -64
  170. package/dist/index126.js.map +1 -1
  171. package/dist/index127.cjs +42 -7
  172. package/dist/index127.cjs.map +1 -1
  173. package/dist/index127.js +41 -6
  174. package/dist/index127.js.map +1 -1
  175. package/dist/index128.cjs +13 -34
  176. package/dist/index128.cjs.map +1 -1
  177. package/dist/index128.js +14 -35
  178. package/dist/index128.js.map +1 -1
  179. package/dist/index129.cjs +34 -13
  180. package/dist/index129.cjs.map +1 -1
  181. package/dist/index129.js +35 -14
  182. package/dist/index129.js.map +1 -1
  183. package/dist/index13.cjs +2 -2
  184. package/dist/index13.js +2 -2
  185. package/dist/index130.cjs +10 -16
  186. package/dist/index130.cjs.map +1 -1
  187. package/dist/index130.js +11 -17
  188. package/dist/index130.js.map +1 -1
  189. package/dist/index131.cjs +28 -49
  190. package/dist/index131.cjs.map +1 -1
  191. package/dist/index131.js +27 -48
  192. package/dist/index131.js.map +1 -1
  193. package/dist/index132.cjs +33 -75
  194. package/dist/index132.cjs.map +1 -1
  195. package/dist/index132.js +32 -74
  196. package/dist/index132.js.map +1 -1
  197. package/dist/index133.cjs +39 -34
  198. package/dist/index133.cjs.map +1 -1
  199. package/dist/index133.js +38 -33
  200. package/dist/index133.js.map +1 -1
  201. package/dist/index134.cjs +24 -0
  202. package/dist/index134.cjs.map +1 -0
  203. package/dist/index134.js +24 -0
  204. package/dist/index134.js.map +1 -0
  205. package/dist/index135.cjs +51 -0
  206. package/dist/index135.cjs.map +1 -0
  207. package/dist/index135.js +51 -0
  208. package/dist/index135.js.map +1 -0
  209. package/dist/index136.cjs +78 -0
  210. package/dist/index136.cjs.map +1 -0
  211. package/dist/index136.js +78 -0
  212. package/dist/index136.js.map +1 -0
  213. package/dist/index137.cjs +1166 -0
  214. package/dist/index137.cjs.map +1 -0
  215. package/dist/index137.js +1167 -0
  216. package/dist/index137.js.map +1 -0
  217. package/dist/index138.cjs +1578 -0
  218. package/dist/index138.cjs.map +1 -0
  219. package/dist/index138.js +1579 -0
  220. package/dist/index138.js.map +1 -0
  221. package/dist/index139.cjs +37 -0
  222. package/dist/index139.cjs.map +1 -0
  223. package/dist/index139.js +37 -0
  224. package/dist/index139.js.map +1 -0
  225. package/dist/index14.cjs +2 -2
  226. package/dist/index14.js +2 -2
  227. package/dist/index15.cjs +2 -2
  228. package/dist/index15.js +2 -2
  229. package/dist/index16.cjs +3 -3
  230. package/dist/index16.js +3 -3
  231. package/dist/index17.cjs +2 -2
  232. package/dist/index17.js +2 -2
  233. package/dist/index18.cjs +2 -2
  234. package/dist/index18.js +2 -2
  235. package/dist/index19.cjs +2 -2
  236. package/dist/index19.js +2 -2
  237. package/dist/index20.cjs +2 -2
  238. package/dist/index20.js +2 -2
  239. package/dist/index21.cjs +2 -2
  240. package/dist/index21.js +2 -2
  241. package/dist/index22.cjs +15 -88
  242. package/dist/index22.cjs.map +1 -1
  243. package/dist/index22.js +17 -90
  244. package/dist/index22.js.map +1 -1
  245. package/dist/index23.cjs +85 -153
  246. package/dist/index23.cjs.map +1 -1
  247. package/dist/index23.js +87 -155
  248. package/dist/index23.js.map +1 -1
  249. package/dist/index24.cjs +158 -127
  250. package/dist/index24.cjs.map +1 -1
  251. package/dist/index24.js +158 -127
  252. package/dist/index24.js.map +1 -1
  253. package/dist/index25.cjs +138 -129
  254. package/dist/index25.cjs.map +1 -1
  255. package/dist/index25.js +138 -129
  256. package/dist/index25.js.map +1 -1
  257. package/dist/index26.cjs +144 -17
  258. package/dist/index26.cjs.map +1 -1
  259. package/dist/index26.js +144 -17
  260. package/dist/index26.js.map +1 -1
  261. package/dist/index27.cjs +92 -191
  262. package/dist/index27.cjs.map +1 -1
  263. package/dist/index27.js +92 -191
  264. package/dist/index27.js.map +1 -1
  265. package/dist/index28.cjs +17 -22
  266. package/dist/index28.cjs.map +1 -1
  267. package/dist/index28.js +17 -22
  268. package/dist/index28.js.map +1 -1
  269. package/dist/index29.cjs +119 -102
  270. package/dist/index29.cjs.map +1 -1
  271. package/dist/index29.js +118 -101
  272. package/dist/index29.js.map +1 -1
  273. package/dist/index30.cjs +21 -154
  274. package/dist/index30.cjs.map +1 -1
  275. package/dist/index30.js +22 -155
  276. package/dist/index30.js.map +1 -1
  277. package/dist/index31.cjs +135 -75
  278. package/dist/index31.cjs.map +1 -1
  279. package/dist/index31.js +136 -76
  280. package/dist/index31.js.map +1 -1
  281. package/dist/index32.cjs +147 -94
  282. package/dist/index32.cjs.map +1 -1
  283. package/dist/index32.js +149 -96
  284. package/dist/index32.js.map +1 -1
  285. package/dist/index33.cjs +86 -7
  286. package/dist/index33.cjs.map +1 -1
  287. package/dist/index33.js +88 -9
  288. package/dist/index33.js.map +1 -1
  289. package/dist/index34.cjs +99 -129
  290. package/dist/index34.cjs.map +1 -1
  291. package/dist/index34.js +101 -131
  292. package/dist/index34.js.map +1 -1
  293. package/dist/index35.cjs +6 -54
  294. package/dist/index35.cjs.map +1 -1
  295. package/dist/index35.js +8 -56
  296. package/dist/index35.js.map +1 -1
  297. package/dist/index36.cjs +138 -17
  298. package/dist/index36.cjs.map +1 -1
  299. package/dist/index36.js +140 -19
  300. package/dist/index36.js.map +1 -1
  301. package/dist/index37.cjs +55 -37
  302. package/dist/index37.cjs.map +1 -1
  303. package/dist/index37.js +55 -37
  304. package/dist/index37.js.map +1 -1
  305. package/dist/index38.cjs +16 -299
  306. package/dist/index38.cjs.map +1 -1
  307. package/dist/index38.js +18 -301
  308. package/dist/index38.js.map +1 -1
  309. package/dist/index39.cjs +43 -34
  310. package/dist/index39.cjs.map +1 -1
  311. package/dist/index39.js +44 -35
  312. package/dist/index39.js.map +1 -1
  313. package/dist/index40.cjs +305 -107
  314. package/dist/index40.cjs.map +1 -1
  315. package/dist/index40.js +307 -109
  316. package/dist/index40.js.map +1 -1
  317. package/dist/index41.cjs +30 -64
  318. package/dist/index41.cjs.map +1 -1
  319. package/dist/index41.js +31 -65
  320. package/dist/index41.js.map +1 -1
  321. package/dist/index42.cjs +113 -74
  322. package/dist/index42.cjs.map +1 -1
  323. package/dist/index42.js +115 -76
  324. package/dist/index42.js.map +1 -1
  325. package/dist/index43.cjs +63 -54
  326. package/dist/index43.cjs.map +1 -1
  327. package/dist/index43.js +64 -55
  328. package/dist/index43.js.map +1 -1
  329. package/dist/index44.cjs +69 -144
  330. package/dist/index44.cjs.map +1 -1
  331. package/dist/index44.js +70 -145
  332. package/dist/index44.js.map +1 -1
  333. package/dist/index45.cjs +57 -96
  334. package/dist/index45.cjs.map +1 -1
  335. package/dist/index45.js +59 -98
  336. package/dist/index45.js.map +1 -1
  337. package/dist/index46.cjs +147 -66
  338. package/dist/index46.cjs.map +1 -1
  339. package/dist/index46.js +149 -68
  340. package/dist/index46.js.map +1 -1
  341. package/dist/index47.cjs +97 -7
  342. package/dist/index47.cjs.map +1 -1
  343. package/dist/index47.js +99 -9
  344. package/dist/index47.js.map +1 -1
  345. package/dist/index48.cjs +72 -17
  346. package/dist/index48.cjs.map +1 -1
  347. package/dist/index48.js +73 -18
  348. package/dist/index48.js.map +1 -1
  349. package/dist/index49.cjs +7 -76
  350. package/dist/index49.cjs.map +1 -1
  351. package/dist/index49.js +9 -78
  352. package/dist/index49.js.map +1 -1
  353. package/dist/index50.cjs +17 -183
  354. package/dist/index50.cjs.map +1 -1
  355. package/dist/index50.js +17 -183
  356. package/dist/index50.js.map +1 -1
  357. package/dist/index51.cjs +72 -59
  358. package/dist/index51.cjs.map +1 -1
  359. package/dist/index51.js +74 -61
  360. package/dist/index51.js.map +1 -1
  361. package/dist/index52.cjs +184 -97
  362. package/dist/index52.cjs.map +1 -1
  363. package/dist/index52.js +185 -98
  364. package/dist/index52.js.map +1 -1
  365. package/dist/index53.cjs +49 -32
  366. package/dist/index53.cjs.map +1 -1
  367. package/dist/index53.js +49 -32
  368. package/dist/index53.js.map +1 -1
  369. package/dist/index54.cjs +114 -6
  370. package/dist/index54.cjs.map +1 -1
  371. package/dist/index54.js +115 -7
  372. package/dist/index54.js.map +1 -1
  373. package/dist/index55.cjs +44 -144
  374. package/dist/index55.cjs.map +1 -1
  375. package/dist/index55.js +45 -145
  376. package/dist/index55.js.map +1 -1
  377. package/dist/index56.cjs +6 -8
  378. package/dist/index56.cjs.map +1 -1
  379. package/dist/index56.js +6 -8
  380. package/dist/index56.js.map +1 -1
  381. package/dist/index57.cjs +143 -15
  382. package/dist/index57.cjs.map +1 -1
  383. package/dist/index57.js +145 -17
  384. package/dist/index57.js.map +1 -1
  385. package/dist/index58.cjs +7 -65
  386. package/dist/index58.cjs.map +1 -1
  387. package/dist/index58.js +9 -67
  388. package/dist/index58.js.map +1 -1
  389. package/dist/index59.cjs +19 -16
  390. package/dist/index59.cjs.map +1 -1
  391. package/dist/index59.js +18 -15
  392. package/dist/index59.js.map +1 -1
  393. package/dist/index60.cjs +67 -27
  394. package/dist/index60.cjs.map +1 -1
  395. package/dist/index60.js +66 -26
  396. package/dist/index60.js.map +1 -1
  397. package/dist/index61.cjs +3 -17
  398. package/dist/index61.cjs.map +1 -1
  399. package/dist/index61.js +3 -17
  400. package/dist/index61.js.map +1 -1
  401. package/dist/index62.cjs +10 -6
  402. package/dist/index62.cjs.map +1 -1
  403. package/dist/index62.js +9 -5
  404. package/dist/index62.js.map +1 -1
  405. package/dist/index63.cjs +15 -9
  406. package/dist/index63.cjs.map +1 -1
  407. package/dist/index63.js +15 -9
  408. package/dist/index63.js.map +1 -1
  409. package/dist/index64.cjs +25 -145
  410. package/dist/index64.cjs.map +1 -1
  411. package/dist/index64.js +23 -143
  412. package/dist/index64.js.map +1 -1
  413. package/dist/index65.cjs +15 -36
  414. package/dist/index65.cjs.map +1 -1
  415. package/dist/index65.js +15 -36
  416. package/dist/index65.js.map +1 -1
  417. package/dist/index67.cjs +13 -13
  418. package/dist/index67.js +13 -13
  419. package/dist/index68.cjs +145 -25
  420. package/dist/index68.cjs.map +1 -1
  421. package/dist/index68.js +143 -23
  422. package/dist/index68.js.map +1 -1
  423. package/dist/index69.cjs +64 -10
  424. package/dist/index69.cjs.map +1 -1
  425. package/dist/index69.js +65 -11
  426. package/dist/index69.js.map +1 -1
  427. package/dist/index70.cjs +2 -20
  428. package/dist/index70.cjs.map +1 -1
  429. package/dist/index70.js +3 -21
  430. package/dist/index70.js.map +1 -1
  431. package/dist/index71.cjs +16 -13
  432. package/dist/index71.cjs.map +1 -1
  433. package/dist/index71.js +17 -14
  434. package/dist/index71.js.map +1 -1
  435. package/dist/index72.cjs +11 -2
  436. package/dist/index72.cjs.map +1 -1
  437. package/dist/index72.js +12 -3
  438. package/dist/index72.js.map +1 -1
  439. package/dist/index73.cjs +12 -19
  440. package/dist/index73.cjs.map +1 -1
  441. package/dist/index73.js +11 -18
  442. package/dist/index73.js.map +1 -1
  443. package/dist/index74.cjs +18 -18
  444. package/dist/index74.js +19 -19
  445. package/dist/index75.cjs +24 -73
  446. package/dist/index75.cjs.map +1 -1
  447. package/dist/index75.js +23 -72
  448. package/dist/index75.js.map +1 -1
  449. package/dist/index76.cjs +73 -33
  450. package/dist/index76.cjs.map +1 -1
  451. package/dist/index76.js +72 -32
  452. package/dist/index76.js.map +1 -1
  453. package/dist/index77.cjs +29 -2
  454. package/dist/index77.cjs.map +1 -1
  455. package/dist/index77.js +30 -3
  456. package/dist/index77.js.map +1 -1
  457. package/dist/index78.cjs +2 -47
  458. package/dist/index78.cjs.map +1 -1
  459. package/dist/index78.js +3 -48
  460. package/dist/index78.js.map +1 -1
  461. package/dist/index80.cjs +46 -19
  462. package/dist/index80.cjs.map +1 -1
  463. package/dist/index80.js +46 -19
  464. package/dist/index80.js.map +1 -1
  465. package/dist/index81.cjs +34 -58
  466. package/dist/index81.cjs.map +1 -1
  467. package/dist/index81.js +33 -57
  468. package/dist/index81.js.map +1 -1
  469. package/dist/index82.cjs +19 -1164
  470. package/dist/index82.cjs.map +1 -1
  471. package/dist/index82.js +17 -1163
  472. package/dist/index82.js.map +1 -1
  473. package/dist/index83.cjs +21 -1575
  474. package/dist/index83.cjs.map +1 -1
  475. package/dist/index83.js +20 -1575
  476. package/dist/index83.js.map +1 -1
  477. package/dist/index84.cjs +16 -10
  478. package/dist/index84.cjs.map +1 -1
  479. package/dist/index84.js +17 -11
  480. package/dist/index84.js.map +1 -1
  481. package/dist/index85.cjs +7 -48
  482. package/dist/index85.cjs.map +1 -1
  483. package/dist/index85.js +6 -47
  484. package/dist/index85.js.map +1 -1
  485. package/dist/index86.cjs +7 -18
  486. package/dist/index86.cjs.map +1 -1
  487. package/dist/index86.js +6 -17
  488. package/dist/index86.js.map +1 -1
  489. package/dist/index87.cjs +19 -31
  490. package/dist/index87.cjs.map +1 -1
  491. package/dist/index87.js +19 -31
  492. package/dist/index87.js.map +1 -1
  493. package/dist/index88.cjs +16 -10
  494. package/dist/index88.cjs.map +1 -1
  495. package/dist/index88.js +17 -11
  496. package/dist/index88.js.map +1 -1
  497. package/dist/index89.cjs +5 -17
  498. package/dist/index89.cjs.map +1 -1
  499. package/dist/index89.js +6 -18
  500. package/dist/index89.js.map +1 -1
  501. package/dist/index90.cjs +48 -10
  502. package/dist/index90.cjs.map +1 -1
  503. package/dist/index90.js +47 -9
  504. package/dist/index90.js.map +1 -1
  505. package/dist/index91.cjs +18 -7
  506. package/dist/index91.cjs.map +1 -1
  507. package/dist/index91.js +17 -6
  508. package/dist/index91.js.map +1 -1
  509. package/dist/index92.cjs +31 -34
  510. package/dist/index92.cjs.map +1 -1
  511. package/dist/index92.js +31 -34
  512. package/dist/index92.js.map +1 -1
  513. package/dist/index93.cjs +17 -21
  514. package/dist/index93.cjs.map +1 -1
  515. package/dist/index93.js +16 -20
  516. package/dist/index93.js.map +1 -1
  517. package/dist/index94.cjs +6 -39
  518. package/dist/index94.cjs.map +1 -1
  519. package/dist/index94.js +5 -38
  520. package/dist/index94.js.map +1 -1
  521. package/dist/index95.cjs +54 -92
  522. package/dist/index95.cjs.map +1 -1
  523. package/dist/index95.js +53 -91
  524. package/dist/index95.js.map +1 -1
  525. package/dist/index96.cjs +17 -23
  526. package/dist/index96.cjs.map +1 -1
  527. package/dist/index96.js +18 -24
  528. package/dist/index96.js.map +1 -1
  529. package/dist/index97.cjs +50 -32
  530. package/dist/index97.cjs.map +1 -1
  531. package/dist/index97.js +50 -32
  532. package/dist/index97.js.map +1 -1
  533. package/dist/index98.cjs +16 -19
  534. package/dist/index98.cjs.map +1 -1
  535. package/dist/index98.js +17 -20
  536. package/dist/index98.js.map +1 -1
  537. package/dist/index99.cjs +39 -42
  538. package/dist/index99.cjs.map +1 -1
  539. package/dist/index99.js +38 -41
  540. package/dist/index99.js.map +1 -1
  541. package/dist/labels/ComponentLabels.types.d.ts +164 -0
  542. package/dist/labels/ComponentLabels.types.d.ts.map +1 -0
  543. package/dist/labels/ComponentLabelsContext.d.ts +5 -0
  544. package/dist/labels/ComponentLabelsContext.d.ts.map +1 -0
  545. package/dist/labels/ComponentLabelsProvider.d.ts +11 -0
  546. package/dist/labels/ComponentLabelsProvider.d.ts.map +1 -0
  547. package/dist/labels/assignDefined.d.ts +3 -0
  548. package/dist/labels/assignDefined.d.ts.map +1 -0
  549. package/dist/labels/defaults.d.ts +5 -0
  550. package/dist/labels/defaults.d.ts.map +1 -0
  551. package/dist/labels/defaults.test.d.ts +2 -0
  552. package/dist/labels/defaults.test.d.ts.map +1 -0
  553. package/dist/labels/index.d.ts +4 -0
  554. package/dist/labels/index.d.ts.map +1 -0
  555. package/dist/labels/useComponentLabels.d.ts +9 -0
  556. package/dist/labels/useComponentLabels.d.ts.map +1 -0
  557. package/dist/primitives/Modal/Modal.d.ts +2 -14
  558. package/dist/primitives/Modal/Modal.d.ts.map +1 -1
  559. package/dist/primitives/Modal/Modal.types.d.ts +18 -0
  560. package/dist/primitives/Modal/Modal.types.d.ts.map +1 -0
  561. package/dist/primitives/Modal/index.d.ts +1 -1
  562. package/dist/primitives/Modal/index.d.ts.map +1 -1
  563. package/dist/primitives/Pagination/Pagination.d.ts.map +1 -1
  564. package/dist/primitives/Pagination/Pagination.types.d.ts +4 -0
  565. package/dist/primitives/Pagination/Pagination.types.d.ts.map +1 -1
  566. package/package.json +1 -1
package/dist/index132.cjs CHANGED
@@ -1,78 +1,36 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const constants = require("./index64.cjs");
4
- const DEFAULT_PLACEMENT = { align: "start", side: "bottom" };
5
- function resolveHorizontal(anchor, width, boundary, margin) {
6
- const left = boundary.left + margin;
7
- const right = boundary.right - margin;
8
- if (anchor.left + width <= right) return { align: "start" };
9
- if (anchor.right - width >= left) return { align: "end" };
10
- return { align: "start", shift: Math.max(right - width, left) - anchor.left };
11
- }
12
- const shrink = (rect, margin) => ({
13
- top: rect.top + margin,
14
- bottom: rect.bottom - margin
15
- });
16
- function resolveVertical(anchor, panel, box, currentSide, margin) {
17
- const inside = shrink(box.vertical, margin);
18
- const escape = box.escape && shrink(box.escape, margin);
19
- const room = (side2, rect) => side2 === "bottom" ? rect.bottom - (anchor.bottom + panel.gap) : anchor.top - panel.gap - rect.top;
20
- const candidates = [
21
- { side: "bottom", outside: false },
22
- { side: "top", outside: false }
23
- ];
24
- if (escape) candidates.push({ side: "bottom", outside: true }, { side: "top", outside: true });
25
- const fits = (c) => panel.height <= room(c.side, c.outside && escape ? escape : inside);
26
- const kept = currentSide && candidates.find((c) => c.side === currentSide && fits(c));
27
- const first = kept || candidates.find(fits);
28
- if (first) return first;
29
- const limit = escape ?? inside;
30
- const side = room("bottom", limit) >= room("top", limit) ? "bottom" : "top";
31
- return {
32
- side,
33
- outside: room(side, inside) < room(side, limit),
34
- maxHeight: Math.max(room(side, limit), 0)
35
- };
36
- }
37
- function fixedStyle(anchor, panel, viewportBottom, horizontal, vertical) {
38
- const below = vertical.side === "bottom";
39
- return {
40
- position: "fixed",
41
- top: below ? anchor.bottom + panel.gap : "auto",
42
- bottom: below ? "auto" : viewportBottom - anchor.top + panel.gap,
43
- left: horizontal.align === "start" ? anchor.left + (horizontal.shift ?? 0) : anchor.right - panel.width,
44
- right: "auto",
45
- width: panel.width,
46
- boxSizing: "border-box"
47
- };
48
- }
49
- function resolvePanelPlacement({
50
- anchor,
51
- panel,
52
- box,
53
- currentSide,
54
- margin = constants.PANEL_EDGE_MARGIN
55
- }) {
56
- if (panel.width === 0 || panel.height === 0) return DEFAULT_PLACEMENT;
57
- const horizontal = resolveHorizontal(anchor, panel.width, box.horizontal, margin);
58
- const vertical = resolveVertical(anchor, panel, box, currentSide, margin);
59
- const { align } = horizontal;
60
- const { side, maxHeight } = vertical;
61
- const style = vertical.outside ? fixedStyle(anchor, panel, box.viewport.bottom, horizontal, vertical) : {};
62
- if (!vertical.outside && horizontal.shift !== void 0) {
63
- style.transform = `translateX(${horizontal.shift}px)`;
64
- }
65
- if (maxHeight !== void 0) style.maxHeight = maxHeight;
66
- return Object.keys(style).length ? { align, side, style } : { align, side };
67
- }
68
- const sameStyle = (a = {}, b = {}) => {
69
- const keys = Object.keys(a);
70
- return keys.length === Object.keys(b).length && keys.every((key) => a[key] === b[key]);
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const overlay = "krc-overlay-WWw5c";
4
+ const modal = "krc-modal-ZLlQ4";
5
+ const resizable = "krc-resizable-G8TND";
6
+ const header = "krc-header-RFEXB";
7
+ const title = "krc-title-FhVKX";
8
+ const headerActions = "krc-headerActions-Qj5SG";
9
+ const close = "krc-close-EQ-3d";
10
+ const body = "krc-body-ZLPhV";
11
+ const loading = "krc-loading-lxD8d";
12
+ const resizeHandle = "krc-resizeHandle-Q0J-B";
13
+ const styles = {
14
+ overlay,
15
+ modal,
16
+ resizable,
17
+ header,
18
+ title,
19
+ headerActions,
20
+ close,
21
+ body,
22
+ loading,
23
+ resizeHandle
71
24
  };
72
- const samePlacement = (a, b) => a.align === b.align && a.side === b.side && sameStyle(a.style, b.style);
73
- exports.DEFAULT_PLACEMENT = DEFAULT_PLACEMENT;
74
- exports.resolveHorizontal = resolveHorizontal;
75
- exports.resolvePanelPlacement = resolvePanelPlacement;
76
- exports.resolveVertical = resolveVertical;
77
- exports.samePlacement = samePlacement;
25
+ exports.body = body;
26
+ exports.close = close;
27
+ exports.default = styles;
28
+ exports.header = header;
29
+ exports.headerActions = headerActions;
30
+ exports.loading = loading;
31
+ exports.modal = modal;
32
+ exports.overlay = overlay;
33
+ exports.resizable = resizable;
34
+ exports.resizeHandle = resizeHandle;
35
+ exports.title = title;
78
36
  //# sourceMappingURL=index132.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index132.cjs","sources":["../src/utils/panelPlacement.ts"],"sourcesContent":["import type { CSSProperties } from 'react';\nimport { PANEL_EDGE_MARGIN } from '../constants';\nimport type {\n AnchorRect,\n ClippingBox,\n HorizontalRect,\n PanelAlign,\n PanelPlacement,\n PanelSide,\n PanelSize,\n PlacementInput,\n VerticalRect,\n} from './panelPlacement.types';\n\nexport const DEFAULT_PLACEMENT: PanelPlacement = { align: 'start', side: 'bottom' };\n\ninterface HorizontalPlacement {\n align: PanelAlign;\n /** Px to move the start-aligned panel by, when it fits on neither side. */\n shift?: number;\n}\n\ninterface VerticalPlacement {\n side: PanelSide;\n /** True when the panel is placed against the viewport, outside the clipping box. */\n outside: boolean;\n maxHeight?: number;\n}\n\n/**\n * Left-aligned if it fits rightwards, else right-aligned if it fits leftwards, else\n * shifted just enough to fit, keeping its left edge visible first.\n */\nexport function resolveHorizontal(\n anchor: HorizontalRect,\n width: number,\n boundary: HorizontalRect,\n margin: number,\n): HorizontalPlacement {\n const left = boundary.left + margin;\n const right = boundary.right - margin;\n\n if (anchor.left + width <= right) return { align: 'start' };\n if (anchor.right - width >= left) return { align: 'end' };\n return { align: 'start', shift: Math.max(right - width, left) - anchor.left };\n}\n\nconst shrink = (rect: VerticalRect, margin: number): VerticalRect => ({\n top: rect.top + margin,\n bottom: rect.bottom - margin,\n});\n\n/**\n * Below, else above, inside the clipping box; else below, else above, in the escape\n * box; else on the side with more room, with the height limited to it. While open, the\n * current side is kept as long as the panel still fits on it.\n */\nexport function resolveVertical(\n anchor: VerticalRect,\n panel: PanelSize,\n box: ClippingBox,\n currentSide: PanelSide | null,\n margin: number,\n): VerticalPlacement {\n const inside = shrink(box.vertical, margin);\n const escape = box.escape && shrink(box.escape, margin);\n const room = (side: PanelSide, rect: VerticalRect) =>\n side === 'bottom'\n ? rect.bottom - (anchor.bottom + panel.gap)\n : anchor.top - panel.gap - rect.top;\n\n const candidates: VerticalPlacement[] = [\n { side: 'bottom', outside: false },\n { side: 'top', outside: false },\n ];\n if (escape) candidates.push({ side: 'bottom', outside: true }, { side: 'top', outside: true });\n const fits = (c: VerticalPlacement) =>\n panel.height <= room(c.side, c.outside && escape ? escape : inside);\n\n const kept = currentSide && candidates.find((c) => c.side === currentSide && fits(c));\n const first = kept || candidates.find(fits);\n if (first) return first;\n\n const limit = escape ?? inside;\n const side: PanelSide = room('bottom', limit) >= room('top', limit) ? 'bottom' : 'top';\n return {\n side,\n outside: room(side, inside) < room(side, limit),\n maxHeight: Math.max(room(side, limit), 0),\n };\n}\n\nfunction fixedStyle(\n anchor: AnchorRect,\n panel: PanelSize,\n viewportBottom: number,\n horizontal: HorizontalPlacement,\n vertical: VerticalPlacement,\n): CSSProperties {\n const below = vertical.side === 'bottom';\n return {\n position: 'fixed',\n top: below ? anchor.bottom + panel.gap : 'auto',\n bottom: below ? 'auto' : viewportBottom - anchor.top + panel.gap,\n left:\n horizontal.align === 'start'\n ? anchor.left + (horizontal.shift ?? 0)\n : anchor.right - panel.width,\n right: 'auto',\n width: panel.width,\n boxSizing: 'border-box',\n };\n}\n\n/**\n * Places a dropdown panel against its trigger so the boxes that clip it never cut it\n * off. Pure: takes the measured trigger, the panel measured in its default layout and\n * the clipping box. A panel that was never laid out keeps the default placement.\n */\nexport function resolvePanelPlacement({\n anchor,\n panel,\n box,\n currentSide,\n margin = PANEL_EDGE_MARGIN,\n}: PlacementInput): PanelPlacement {\n if (panel.width === 0 || panel.height === 0) return DEFAULT_PLACEMENT;\n\n const horizontal = resolveHorizontal(anchor, panel.width, box.horizontal, margin);\n const vertical = resolveVertical(anchor, panel, box, currentSide, margin);\n const { align } = horizontal;\n const { side, maxHeight } = vertical;\n\n const style: CSSProperties = vertical.outside\n ? fixedStyle(anchor, panel, box.viewport.bottom, horizontal, vertical)\n : {};\n if (!vertical.outside && horizontal.shift !== undefined) {\n style.transform = `translateX(${horizontal.shift}px)`;\n }\n if (maxHeight !== undefined) style.maxHeight = maxHeight;\n\n return Object.keys(style).length ? { align, side, style } : { align, side };\n}\n\nconst sameStyle = (a: CSSProperties = {}, b: CSSProperties = {}) => {\n const keys = Object.keys(a) as (keyof CSSProperties)[];\n return keys.length === Object.keys(b).length && keys.every((key) => a[key] === b[key]);\n};\n\nexport const samePlacement = (a: PanelPlacement, b: PanelPlacement) =>\n a.align === b.align && a.side === b.side && sameStyle(a.style, b.style);\n"],"names":["side","PANEL_EDGE_MARGIN"],"mappings":";;;AAcO,MAAM,oBAAoC,EAAE,OAAO,SAAS,MAAM,SAAA;AAmBlE,SAAS,kBACd,QACA,OACA,UACA,QACqB;AACrB,QAAM,OAAO,SAAS,OAAO;AAC7B,QAAM,QAAQ,SA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AW,OAAO,KAAK,CAAC,EAAE,UAAU,KAAK,MAAM,CAAC,QAAQ,EAAE,GAAG,MAAM,EAAE,GAAG,CAAC;AACvF;AAEO,MAAM,gBAAgB,CAAC,GAAmB,MAC/C,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,UAAU,EAAE,OAAO,EAAE,KAAK;;;;;;"}
1
+ {"version":3,"file":"index132.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index132.js CHANGED
@@ -1,78 +1,36 @@
1
- import { PANEL_EDGE_MARGIN } from "./index64.js";
2
- const DEFAULT_PLACEMENT = { align: "start", side: "bottom" };
3
- function resolveHorizontal(anchor, width, boundary, margin) {
4
- const left = boundary.left + margin;
5
- const right = boundary.right - margin;
6
- if (anchor.left + width <= right) return { align: "start" };
7
- if (anchor.right - width >= left) return { align: "end" };
8
- return { align: "start", shift: Math.max(right - width, left) - anchor.left };
9
- }
10
- const shrink = (rect, margin) => ({
11
- top: rect.top + margin,
12
- bottom: rect.bottom - margin
13
- });
14
- function resolveVertical(anchor, panel, box, currentSide, margin) {
15
- const inside = shrink(box.vertical, margin);
16
- const escape = box.escape && shrink(box.escape, margin);
17
- const room = (side2, rect) => side2 === "bottom" ? rect.bottom - (anchor.bottom + panel.gap) : anchor.top - panel.gap - rect.top;
18
- const candidates = [
19
- { side: "bottom", outside: false },
20
- { side: "top", outside: false }
21
- ];
22
- if (escape) candidates.push({ side: "bottom", outside: true }, { side: "top", outside: true });
23
- const fits = (c) => panel.height <= room(c.side, c.outside && escape ? escape : inside);
24
- const kept = currentSide && candidates.find((c) => c.side === currentSide && fits(c));
25
- const first = kept || candidates.find(fits);
26
- if (first) return first;
27
- const limit = escape ?? inside;
28
- const side = room("bottom", limit) >= room("top", limit) ? "bottom" : "top";
29
- return {
30
- side,
31
- outside: room(side, inside) < room(side, limit),
32
- maxHeight: Math.max(room(side, limit), 0)
33
- };
34
- }
35
- function fixedStyle(anchor, panel, viewportBottom, horizontal, vertical) {
36
- const below = vertical.side === "bottom";
37
- return {
38
- position: "fixed",
39
- top: below ? anchor.bottom + panel.gap : "auto",
40
- bottom: below ? "auto" : viewportBottom - anchor.top + panel.gap,
41
- left: horizontal.align === "start" ? anchor.left + (horizontal.shift ?? 0) : anchor.right - panel.width,
42
- right: "auto",
43
- width: panel.width,
44
- boxSizing: "border-box"
45
- };
46
- }
47
- function resolvePanelPlacement({
48
- anchor,
49
- panel,
50
- box,
51
- currentSide,
52
- margin = PANEL_EDGE_MARGIN
53
- }) {
54
- if (panel.width === 0 || panel.height === 0) return DEFAULT_PLACEMENT;
55
- const horizontal = resolveHorizontal(anchor, panel.width, box.horizontal, margin);
56
- const vertical = resolveVertical(anchor, panel, box, currentSide, margin);
57
- const { align } = horizontal;
58
- const { side, maxHeight } = vertical;
59
- const style = vertical.outside ? fixedStyle(anchor, panel, box.viewport.bottom, horizontal, vertical) : {};
60
- if (!vertical.outside && horizontal.shift !== void 0) {
61
- style.transform = `translateX(${horizontal.shift}px)`;
62
- }
63
- if (maxHeight !== void 0) style.maxHeight = maxHeight;
64
- return Object.keys(style).length ? { align, side, style } : { align, side };
65
- }
66
- const sameStyle = (a = {}, b = {}) => {
67
- const keys = Object.keys(a);
68
- return keys.length === Object.keys(b).length && keys.every((key) => a[key] === b[key]);
1
+ const overlay = "krc-overlay-WWw5c";
2
+ const modal = "krc-modal-ZLlQ4";
3
+ const resizable = "krc-resizable-G8TND";
4
+ const header = "krc-header-RFEXB";
5
+ const title = "krc-title-FhVKX";
6
+ const headerActions = "krc-headerActions-Qj5SG";
7
+ const close = "krc-close-EQ-3d";
8
+ const body = "krc-body-ZLPhV";
9
+ const loading = "krc-loading-lxD8d";
10
+ const resizeHandle = "krc-resizeHandle-Q0J-B";
11
+ const styles = {
12
+ overlay,
13
+ modal,
14
+ resizable,
15
+ header,
16
+ title,
17
+ headerActions,
18
+ close,
19
+ body,
20
+ loading,
21
+ resizeHandle
69
22
  };
70
- const samePlacement = (a, b) => a.align === b.align && a.side === b.side && sameStyle(a.style, b.style);
71
23
  export {
72
- DEFAULT_PLACEMENT,
73
- resolveHorizontal,
74
- resolvePanelPlacement,
75
- resolveVertical,
76
- samePlacement
24
+ body,
25
+ close,
26
+ styles as default,
27
+ header,
28
+ headerActions,
29
+ loading,
30
+ modal,
31
+ overlay,
32
+ resizable,
33
+ resizeHandle,
34
+ title
77
35
  };
78
36
  //# sourceMappingURL=index132.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index132.js","sources":["../src/utils/panelPlacement.ts"],"sourcesContent":["import type { CSSProperties } from 'react';\nimport { PANEL_EDGE_MARGIN } from '../constants';\nimport type {\n AnchorRect,\n ClippingBox,\n HorizontalRect,\n PanelAlign,\n PanelPlacement,\n PanelSide,\n PanelSize,\n PlacementInput,\n VerticalRect,\n} from './panelPlacement.types';\n\nexport const DEFAULT_PLACEMENT: PanelPlacement = { align: 'start', side: 'bottom' };\n\ninterface HorizontalPlacement {\n align: PanelAlign;\n /** Px to move the start-aligned panel by, when it fits on neither side. */\n shift?: number;\n}\n\ninterface VerticalPlacement {\n side: PanelSide;\n /** True when the panel is placed against the viewport, outside the clipping box. */\n outside: boolean;\n maxHeight?: number;\n}\n\n/**\n * Left-aligned if it fits rightwards, else right-aligned if it fits leftwards, else\n * shifted just enough to fit, keeping its left edge visible first.\n */\nexport function resolveHorizontal(\n anchor: HorizontalRect,\n width: number,\n boundary: HorizontalRect,\n margin: number,\n): HorizontalPlacement {\n const left = boundary.left + margin;\n const right = boundary.right - margin;\n\n if (anchor.left + width <= right) return { align: 'start' };\n if (anchor.right - width >= left) return { align: 'end' };\n return { align: 'start', shift: Math.max(right - width, left) - anchor.left };\n}\n\nconst shrink = (rect: VerticalRect, margin: number): VerticalRect => ({\n top: rect.top + margin,\n bottom: rect.bottom - margin,\n});\n\n/**\n * Below, else above, inside the clipping box; else below, else above, in the escape\n * box; else on the side with more room, with the height limited to it. While open, the\n * current side is kept as long as the panel still fits on it.\n */\nexport function resolveVertical(\n anchor: VerticalRect,\n panel: PanelSize,\n box: ClippingBox,\n currentSide: PanelSide | null,\n margin: number,\n): VerticalPlacement {\n const inside = shrink(box.vertical, margin);\n const escape = box.escape && shrink(box.escape, margin);\n const room = (side: PanelSide, rect: VerticalRect) =>\n side === 'bottom'\n ? rect.bottom - (anchor.bottom + panel.gap)\n : anchor.top - panel.gap - rect.top;\n\n const candidates: VerticalPlacement[] = [\n { side: 'bottom', outside: false },\n { side: 'top', outside: false },\n ];\n if (escape) candidates.push({ side: 'bottom', outside: true }, { side: 'top', outside: true });\n const fits = (c: VerticalPlacement) =>\n panel.height <= room(c.side, c.outside && escape ? escape : inside);\n\n const kept = currentSide && candidates.find((c) => c.side === currentSide && fits(c));\n const first = kept || candidates.find(fits);\n if (first) return first;\n\n const limit = escape ?? inside;\n const side: PanelSide = room('bottom', limit) >= room('top', limit) ? 'bottom' : 'top';\n return {\n side,\n outside: room(side, inside) < room(side, limit),\n maxHeight: Math.max(room(side, limit), 0),\n };\n}\n\nfunction fixedStyle(\n anchor: AnchorRect,\n panel: PanelSize,\n viewportBottom: number,\n horizontal: HorizontalPlacement,\n vertical: VerticalPlacement,\n): CSSProperties {\n const below = vertical.side === 'bottom';\n return {\n position: 'fixed',\n top: below ? anchor.bottom + panel.gap : 'auto',\n bottom: below ? 'auto' : viewportBottom - anchor.top + panel.gap,\n left:\n horizontal.align === 'start'\n ? anchor.left + (horizontal.shift ?? 0)\n : anchor.right - panel.width,\n right: 'auto',\n width: panel.width,\n boxSizing: 'border-box',\n };\n}\n\n/**\n * Places a dropdown panel against its trigger so the boxes that clip it never cut it\n * off. Pure: takes the measured trigger, the panel measured in its default layout and\n * the clipping box. A panel that was never laid out keeps the default placement.\n */\nexport function resolvePanelPlacement({\n anchor,\n panel,\n box,\n currentSide,\n margin = PANEL_EDGE_MARGIN,\n}: PlacementInput): PanelPlacement {\n if (panel.width === 0 || panel.height === 0) return DEFAULT_PLACEMENT;\n\n const horizontal = resolveHorizontal(anchor, panel.width, box.horizontal, margin);\n const vertical = resolveVertical(anchor, panel, box, currentSide, margin);\n const { align } = horizontal;\n const { side, maxHeight } = vertical;\n\n const style: CSSProperties = vertical.outside\n ? fixedStyle(anchor, panel, box.viewport.bottom, horizontal, vertical)\n : {};\n if (!vertical.outside && horizontal.shift !== undefined) {\n style.transform = `translateX(${horizontal.shift}px)`;\n }\n if (maxHeight !== undefined) style.maxHeight = maxHeight;\n\n return Object.keys(style).length ? { align, side, style } : { align, side };\n}\n\nconst sameStyle = (a: CSSProperties = {}, b: CSSProperties = {}) => {\n const keys = Object.keys(a) as (keyof CSSProperties)[];\n return keys.length === Object.keys(b).length && keys.every((key) => a[key] === b[key]);\n};\n\nexport const samePlacement = (a: PanelPlacement, b: PanelPlacement) =>\n a.align === b.align && a.side === b.side && sameStyle(a.style, b.style);\n"],"names":["side"],"mappings":";AAcO,MAAM,oBAAoC,EAAE,OAAO,SAAS,MAAM,SAAA;AAmBlE,SAAS,kBACd,QACA,OACA,UACA,QACqB;AACrB,QAAM,OAAO,SAAS,OAAO;AAC7B,QAAM,QAAQ,SAAS,QAAQ;AAE/B,MAAI,OAAO,OAAO,SAAS,MAAO,QAAO,EAAE,OAAO,QAAA;AAClD,MAAI,OAAO,QAAQ,SAAS,KAAM,QAAO,EAAE,OAAO,MAAA;AAClD,SAAO,EAAE,OAAO,SAAS,OAAO,KAAK,IAAI,QAAQ,OAAO,IAAI,IAAI,OAAO,KAAA;AACzE;AAEA,MAAM,SAAS,CAAC,MAAoB,YAAkC;AAAA,EACpE,KAAK,KAAK,MAAM;AAAA,EAChB,QAAQ,KAAK,SAAS;AACxB;AAOO,SAAS,gBACd,QACA,OACA,KACA,aACA,QACmB;AACnB,QAAM,SAAS,OAAO,IAAI,UAAU,MAAM;AAC1C,QAAM,SAAS,IAAI,UAAU,OAAO,IAAI,QAAQ,MAAM;AACtD,QAAM,OAAO,CAACA,OAAiB,SAC7BA,UAAS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A;AAAA,EACA,SAAS;AACX,GAAmC;AACjC,MAAI,MAAM,UAAU,KAAK,MAAM,WAAW,EAAG,QAAO;AAEpD,QAAM,aAAa,kBAAkB,QAAQ,MAAM,OAAO,IAAI,YAAY,MAAM;AAChF,QAAM,WAAW,gBAAgB,QAAQ,OAAO,KAAK,aAAa,MAAM;AACxE,QAAM,EAAE,UAAU;AAClB,QAAM,EAAE,MAAM,UAAA,IAAc;AAE5B,QAAM,QAAuB,SAAS,UAClC,WAAW,QAAQ,OAAO,IAAI,SAAS,QAAQ,YAAY,QAAQ,IACnE,CAAA;AACJ,MAAI,CAAC,SAAS,WAAW,WAAW,UAAU,QAAW;AACvD,UAAM,YAAY,cAAc,WAAW,KAAK;AAAA,EAClD;AACA,MAAI,cAAc,OAAW,OAAM,YAAY;AAE/C,SAAO,OAAO,KAAK,KAAK,EAAE,SAAS,EAAE,OAAO,MAAM,MAAA,IAAU,EAAE,OAAO,KAAA;AACvE;AAEA,MAAM,YAAY,CAAC,IAAmB,IAAI,IAAmB,CAAA,MAAO;AAClE,QAAM,OAAO,OAAO,KAAK,CAAC;AAC1B,SAAO,KAAK,WAAW,OAAO,KAAK,CAAC,EAAE,UAAU,KAAK,MAAM,CAAC,QAAQ,EAAE,GAAG,MAAM,EAAE,GAAG,CAAC;AACvF;AAEO,MAAM,gBAAgB,CAAC,GAAmB,MAC/C,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,UAAU,EAAE,OAAO,EAAE,KAAK;"}
1
+ {"version":3,"file":"index132.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index133.cjs CHANGED
@@ -1,37 +1,42 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const MAX_LATITUDE = 90;
4
- const MAX_LONGITUDE = 180;
5
- const FULL_TURN = 360;
6
- const clamp = (value, limit) => Math.min(Math.max(value, -limit), limit);
7
- const wrapOffset = (longitude) => FULL_TURN * Math.round(longitude / FULL_TURN);
8
- const normalizeViewport = (raw, zoom, center) => {
9
- const south = clamp(raw.south, MAX_LATITUDE);
10
- const north = clamp(raw.north, MAX_LATITUDE);
11
- const normalizedCenter = [
12
- clamp(center[0], MAX_LATITUDE),
13
- center[1] - wrapOffset(center[1])
14
- ];
15
- if (raw.east - raw.west >= FULL_TURN) {
16
- return {
17
- bounds: { west: -MAX_LONGITUDE, south, east: MAX_LONGITUDE, north },
18
- zoom,
19
- center: normalizedCenter
20
- };
21
- }
22
- const offset = wrapOffset((raw.west + raw.east) / 2);
23
- return {
24
- bounds: {
25
- west: clamp(raw.west - offset, MAX_LONGITUDE),
26
- south,
27
- east: clamp(raw.east - offset, MAX_LONGITUDE),
28
- north
29
- },
30
- zoom,
31
- center: normalizedCenter
32
- };
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const throbber = "krc-throbber-sSMfc";
4
+ const spinner = "krc-spinner-vmNIY";
5
+ const loadingSpin = "krc-loading-spin-cFeV6";
6
+ const titleRow = "krc-titleRow--Go1f";
7
+ const titleSpinner = "krc-titleSpinner-BPUs5";
8
+ const steps = "krc-steps-zu1EV";
9
+ const step = "krc-step-hzz-Q";
10
+ const pending = "krc-pending-sxbM4";
11
+ const iconSlot = "krc-iconSlot-74ZD2";
12
+ const stepSpinner = "krc-stepSpinner-0d1jM";
13
+ const checkIcon = "krc-checkIcon-FhWlj";
14
+ const nonClosable = "krc-nonClosable-7NB7j";
15
+ const styles = {
16
+ throbber,
17
+ spinner,
18
+ loadingSpin,
19
+ titleRow,
20
+ titleSpinner,
21
+ steps,
22
+ step,
23
+ pending,
24
+ iconSlot,
25
+ stepSpinner,
26
+ checkIcon,
27
+ nonClosable
33
28
  };
34
- const sameViewport = (a, b) => a.zoom === b.zoom && a.center[0] === b.center[0] && a.center[1] === b.center[1] && a.bounds.west === b.bounds.west && a.bounds.south === b.bounds.south && a.bounds.east === b.bounds.east && a.bounds.north === b.bounds.north;
35
- exports.normalizeViewport = normalizeViewport;
36
- exports.sameViewport = sameViewport;
29
+ exports.checkIcon = checkIcon;
30
+ exports.default = styles;
31
+ exports.iconSlot = iconSlot;
32
+ exports.loadingSpin = loadingSpin;
33
+ exports.nonClosable = nonClosable;
34
+ exports.pending = pending;
35
+ exports.spinner = spinner;
36
+ exports.step = step;
37
+ exports.stepSpinner = stepSpinner;
38
+ exports.steps = steps;
39
+ exports.throbber = throbber;
40
+ exports.titleRow = titleRow;
41
+ exports.titleSpinner = titleSpinner;
37
42
  //# sourceMappingURL=index133.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index133.cjs","sources":["../src/geo/GeoMapCard/normalizeViewport.ts"],"sourcesContent":["import type { GeoViewport, GeoViewportBounds } from '../../types/geo.types';\n\nconst MAX_LATITUDE = 90;\nconst MAX_LONGITUDE = 180;\nconst FULL_TURN = 360;\n\nconst clamp = (value: number, limit: number): number => Math.min(Math.max(value, -limit), limit);\n\n/** Whole turns to subtract so a longitude lands in `[-180, 180]`. */\nconst wrapOffset = (longitude: number): number => FULL_TURN * Math.round(longitude / FULL_TURN);\n\n/**\n * Bring Leaflet's raw viewport back onto a single world.\n *\n * Panning past the antimeridian makes Leaflet report longitudes such as `-190`.\n * Both edges are shifted by the turns that bring the midpoint home, then clamped:\n * the sliver past ±180° is dropped rather than emitting `west > east`, which a\n * naive `BETWEEN west AND east` query would turn into an empty result.\n */\nexport const normalizeViewport = (\n raw: GeoViewportBounds,\n zoom: number,\n center: [number, number],\n): GeoViewport => {\n const south = clamp(raw.south, MAX_LATITUDE);\n const north = clamp(raw.north, MAX_LATITUDE);\n const normalizedCenter: [number, number] = [\n clamp(center[0], MAX_LATITUDE),\n center[1] - wrapOffset(center[1]),\n ];\n\n if (raw.east - raw.west >= FULL_TURN) {\n return {\n bounds: { west: -MAX_LONGITUDE, south, east: MAX_LONGITUDE, north },\n zoom,\n center: normalizedCenter,\n };\n }\n\n const offset = wrapOffset((raw.west + raw.east) / 2);\n\n return {\n bounds: {\n west: clamp(raw.west - offset, MAX_LONGITUDE),\n south,\n east: clamp(raw.east - offset, MAX_LONGITUDE),\n north,\n },\n zoom,\n center: normalizedCenter,\n };\n};\n\nexport const sameViewport = (a: GeoViewport, b: GeoViewport): boolean =>\n a.zoom === b.zoom &&\n a.center[0] === b.center[0] &&\n a.center[1] === b.center[1] &&\n a.bounds.west === b.bounds.west &&\n a.bounds.south === b.bounds.south &&\n a.bounds.east === b.bounds.east &&\n a.bounds.north === b.bounds.north;\n"],"names":[],"mappings":";;AAEA,MAAM,eAAe;AACrB,MAAM,gBAAgB;AACtB,MAAM,YAAY;AAElB,MAAM,QAAQ,CAAC,OAAe,UAA0B,KAAK,IAAI,KAAK,IAAI,OAAO,CAAC,KAAK,GAAG,KAAK;AAG/F,MAAM,aAAa,CAAC,cAA8B,YAAY,KAAK,MAAM,YAAY,SAAS;AAUvF,MAAM,oBAAoB,CAC/B,KACA,MACA,WACgB;AAChB,QAAM,QAAQ,MAAM,IAAI,OAAO,YAAY;AAC3C,QAAM,QAAQ,MAAM,IAAI,OAAO,YAAY;AAC3C,QAAM,mBAAqC;AAAA,IACzC,MAAM,OAAO,CAAC,GAAG,YAAY;AAAA,IAC7B,OAAO,CAAC,IAAI,WAAW,OAAO,CAAC,CAAC;AAAA,EAAA;AAGlC,MAAI,IAAI,OAAO,IAAI,QAAQ,WAAW;AACpC,WAAO;AAAA,MACL,QAAQ,EAAE,MAAM,CAAC,eAAe,OAAO,MAAM,eAAe,MAAA;AAAA,MAC5D;AAAA,MACA,QAAQ;AAAA,IAAA;AAAA,EAEZ;AAEA,QAAM,SAAS,YAAY,IAAI,OAAO,IAAI,QAAQ,CAAC;AAEnD,SAAO;AAAA,IACL,QAAQ;AAAA,MACN,MAAM,MAAM,IAAI,OAAO,QAAQ,aAAa;AAAA,MAC5C;AAAA,MACA,MAAM,MAAM,IAAI,OAAO,QAAQ,aAAa;AAAA,MAC5C;AAAA,IAAA;AAAA,IAEF;AAAA,IACA,QAAQ;AAAA,EAAA;AAEZ;AAEO,MAAM,eAAe,CAAC,GAAgB,MAC3C,EAAE,SAAS,EAAE,QACb,EAAE,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,KAC1B,EAAE,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,KAC1B,EAAE,OAAO,SAAS,EAAE,OAAO,QAC3B,EAAE,OAAO,UAAU,EAAE,OAAO,SAC5B,EAAE,OAAO,SAAS,EAAE,OAAO,QAC3B,EAAE,OAAO,UAAU,EAAE,OAAO;;;"}
1
+ {"version":3,"file":"index133.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index133.js CHANGED
@@ -1,37 +1,42 @@
1
- const MAX_LATITUDE = 90;
2
- const MAX_LONGITUDE = 180;
3
- const FULL_TURN = 360;
4
- const clamp = (value, limit) => Math.min(Math.max(value, -limit), limit);
5
- const wrapOffset = (longitude) => FULL_TURN * Math.round(longitude / FULL_TURN);
6
- const normalizeViewport = (raw, zoom, center) => {
7
- const south = clamp(raw.south, MAX_LATITUDE);
8
- const north = clamp(raw.north, MAX_LATITUDE);
9
- const normalizedCenter = [
10
- clamp(center[0], MAX_LATITUDE),
11
- center[1] - wrapOffset(center[1])
12
- ];
13
- if (raw.east - raw.west >= FULL_TURN) {
14
- return {
15
- bounds: { west: -MAX_LONGITUDE, south, east: MAX_LONGITUDE, north },
16
- zoom,
17
- center: normalizedCenter
18
- };
19
- }
20
- const offset = wrapOffset((raw.west + raw.east) / 2);
21
- return {
22
- bounds: {
23
- west: clamp(raw.west - offset, MAX_LONGITUDE),
24
- south,
25
- east: clamp(raw.east - offset, MAX_LONGITUDE),
26
- north
27
- },
28
- zoom,
29
- center: normalizedCenter
30
- };
1
+ const throbber = "krc-throbber-sSMfc";
2
+ const spinner = "krc-spinner-vmNIY";
3
+ const loadingSpin = "krc-loading-spin-cFeV6";
4
+ const titleRow = "krc-titleRow--Go1f";
5
+ const titleSpinner = "krc-titleSpinner-BPUs5";
6
+ const steps = "krc-steps-zu1EV";
7
+ const step = "krc-step-hzz-Q";
8
+ const pending = "krc-pending-sxbM4";
9
+ const iconSlot = "krc-iconSlot-74ZD2";
10
+ const stepSpinner = "krc-stepSpinner-0d1jM";
11
+ const checkIcon = "krc-checkIcon-FhWlj";
12
+ const nonClosable = "krc-nonClosable-7NB7j";
13
+ const styles = {
14
+ throbber,
15
+ spinner,
16
+ loadingSpin,
17
+ titleRow,
18
+ titleSpinner,
19
+ steps,
20
+ step,
21
+ pending,
22
+ iconSlot,
23
+ stepSpinner,
24
+ checkIcon,
25
+ nonClosable
31
26
  };
32
- const sameViewport = (a, b) => a.zoom === b.zoom && a.center[0] === b.center[0] && a.center[1] === b.center[1] && a.bounds.west === b.bounds.west && a.bounds.south === b.bounds.south && a.bounds.east === b.bounds.east && a.bounds.north === b.bounds.north;
33
27
  export {
34
- normalizeViewport,
35
- sameViewport
28
+ checkIcon,
29
+ styles as default,
30
+ iconSlot,
31
+ loadingSpin,
32
+ nonClosable,
33
+ pending,
34
+ spinner,
35
+ step,
36
+ stepSpinner,
37
+ steps,
38
+ throbber,
39
+ titleRow,
40
+ titleSpinner
36
41
  };
37
42
  //# sourceMappingURL=index133.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index133.js","sources":["../src/geo/GeoMapCard/normalizeViewport.ts"],"sourcesContent":["import type { GeoViewport, GeoViewportBounds } from '../../types/geo.types';\n\nconst MAX_LATITUDE = 90;\nconst MAX_LONGITUDE = 180;\nconst FULL_TURN = 360;\n\nconst clamp = (value: number, limit: number): number => Math.min(Math.max(value, -limit), limit);\n\n/** Whole turns to subtract so a longitude lands in `[-180, 180]`. */\nconst wrapOffset = (longitude: number): number => FULL_TURN * Math.round(longitude / FULL_TURN);\n\n/**\n * Bring Leaflet's raw viewport back onto a single world.\n *\n * Panning past the antimeridian makes Leaflet report longitudes such as `-190`.\n * Both edges are shifted by the turns that bring the midpoint home, then clamped:\n * the sliver past ±180° is dropped rather than emitting `west > east`, which a\n * naive `BETWEEN west AND east` query would turn into an empty result.\n */\nexport const normalizeViewport = (\n raw: GeoViewportBounds,\n zoom: number,\n center: [number, number],\n): GeoViewport => {\n const south = clamp(raw.south, MAX_LATITUDE);\n const north = clamp(raw.north, MAX_LATITUDE);\n const normalizedCenter: [number, number] = [\n clamp(center[0], MAX_LATITUDE),\n center[1] - wrapOffset(center[1]),\n ];\n\n if (raw.east - raw.west >= FULL_TURN) {\n return {\n bounds: { west: -MAX_LONGITUDE, south, east: MAX_LONGITUDE, north },\n zoom,\n center: normalizedCenter,\n };\n }\n\n const offset = wrapOffset((raw.west + raw.east) / 2);\n\n return {\n bounds: {\n west: clamp(raw.west - offset, MAX_LONGITUDE),\n south,\n east: clamp(raw.east - offset, MAX_LONGITUDE),\n north,\n },\n zoom,\n center: normalizedCenter,\n };\n};\n\nexport const sameViewport = (a: GeoViewport, b: GeoViewport): boolean =>\n a.zoom === b.zoom &&\n a.center[0] === b.center[0] &&\n a.center[1] === b.center[1] &&\n a.bounds.west === b.bounds.west &&\n a.bounds.south === b.bounds.south &&\n a.bounds.east === b.bounds.east &&\n a.bounds.north === b.bounds.north;\n"],"names":[],"mappings":"AAEA,MAAM,eAAe;AACrB,MAAM,gBAAgB;AACtB,MAAM,YAAY;AAElB,MAAM,QAAQ,CAAC,OAAe,UAA0B,KAAK,IAAI,KAAK,IAAI,OAAO,CAAC,KAAK,GAAG,KAAK;AAG/F,MAAM,aAAa,CAAC,cAA8B,YAAY,KAAK,MAAM,YAAY,SAAS;AAUvF,MAAM,oBAAoB,CAC/B,KACA,MACA,WACgB;AAChB,QAAM,QAAQ,MAAM,IAAI,OAAO,YAAY;AAC3C,QAAM,QAAQ,MAAM,IAAI,OAAO,YAAY;AAC3C,QAAM,mBAAqC;AAAA,IACzC,MAAM,OAAO,CAAC,GAAG,YAAY;AAAA,IAC7B,OAAO,CAAC,IAAI,WAAW,OAAO,CAAC,CAAC;AAAA,EAAA;AAGlC,MAAI,IAAI,OAAO,IAAI,QAAQ,WAAW;AACpC,WAAO;AAAA,MACL,QAAQ,EAAE,MAAM,CAAC,eAAe,OAAO,MAAM,eAAe,MAAA;AAAA,MAC5D;AAAA,MACA,QAAQ;AAAA,IAAA;AAAA,EAEZ;AAEA,QAAM,SAAS,YAAY,IAAI,OAAO,IAAI,QAAQ,CAAC;AAEnD,SAAO;AAAA,IACL,QAAQ;AAAA,MACN,MAAM,MAAM,IAAI,OAAO,QAAQ,aAAa;AAAA,MAC5C;AAAA,MACA,MAAM,MAAM,IAAI,OAAO,QAAQ,aAAa;AAAA,MAC5C;AAAA,IAAA;AAAA,IAEF;AAAA,IACA,QAAQ;AAAA,EAAA;AAEZ;AAEO,MAAM,eAAe,CAAC,GAAgB,MAC3C,EAAE,SAAS,EAAE,QACb,EAAE,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,KAC1B,EAAE,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,KAC1B,EAAE,OAAO,SAAS,EAAE,OAAO,QAC3B,EAAE,OAAO,UAAU,EAAE,OAAO,SAC5B,EAAE,OAAO,SAAS,EAAE,OAAO,QAC3B,EAAE,OAAO,UAAU,EAAE,OAAO;"}
1
+ {"version":3,"file":"index133.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
+ const root = "krc-root-pS02L";
4
+ const sidebar = "krc-sidebar-n1HeR";
5
+ const conversationList = "krc-conversationList-E8ODD";
6
+ const mainArea = "krc-mainArea-E0cNf";
7
+ const messages = "krc-messages-S9aU-";
8
+ const input = "krc-input-HAMJ3";
9
+ const styles = {
10
+ root,
11
+ sidebar,
12
+ conversationList,
13
+ mainArea,
14
+ messages,
15
+ input
16
+ };
17
+ exports.conversationList = conversationList;
18
+ exports.default = styles;
19
+ exports.input = input;
20
+ exports.mainArea = mainArea;
21
+ exports.messages = messages;
22
+ exports.root = root;
23
+ exports.sidebar = sidebar;
24
+ //# sourceMappingURL=index134.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index134.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
@@ -0,0 +1,24 @@
1
+ const root = "krc-root-pS02L";
2
+ const sidebar = "krc-sidebar-n1HeR";
3
+ const conversationList = "krc-conversationList-E8ODD";
4
+ const mainArea = "krc-mainArea-E0cNf";
5
+ const messages = "krc-messages-S9aU-";
6
+ const input = "krc-input-HAMJ3";
7
+ const styles = {
8
+ root,
9
+ sidebar,
10
+ conversationList,
11
+ mainArea,
12
+ messages,
13
+ input
14
+ };
15
+ export {
16
+ conversationList,
17
+ styles as default,
18
+ input,
19
+ mainArea,
20
+ messages,
21
+ root,
22
+ sidebar
23
+ };
24
+ //# sourceMappingURL=index134.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index134.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const CLIPPING_OVERFLOW = /* @__PURE__ */ new Set(["hidden", "auto", "scroll", "clip"]);
4
+ const CONTAINING_CONTAIN = /paint|layout|strict|content/;
5
+ const CONTAINING_WILL_CHANGE = /transform|perspective|filter/;
6
+ const isSet = (value) => Boolean(value) && value !== "none";
7
+ function trapsFixed(style) {
8
+ return isSet(style.transform) || isSet(style.perspective) || isSet(style.filter) || isSet(style.backdropFilter) || CONTAINING_CONTAIN.test(style.contain ?? "") || CONTAINING_WILL_CHANGE.test(style.willChange ?? "") || isSet(style.containerType) && style.containerType !== "normal";
9
+ }
10
+ function clipsVertically(style) {
11
+ if (CLIPPING_OVERFLOW.has(style.overflowY)) return true;
12
+ return style.overflowX !== "clip" && CLIPPING_OVERFLOW.has(style.overflowX);
13
+ }
14
+ const intersect = (a, b) => ({
15
+ top: Math.max(a.top, b.top),
16
+ bottom: Math.min(a.bottom, b.bottom)
17
+ });
18
+ function getClippingRect(element) {
19
+ const root = document.documentElement;
20
+ const viewport = { top: 0, bottom: root.clientHeight };
21
+ let horizontal = null;
22
+ const clippers = [];
23
+ let trapped = false;
24
+ for (let el = element.parentElement; el; el = el.parentElement) {
25
+ const style = getComputedStyle(el);
26
+ if (!trapped && trapsFixed(style)) trapped = true;
27
+ if (el === document.body || el === root) continue;
28
+ const clipsX = CLIPPING_OVERFLOW.has(style.overflowX);
29
+ const clipsY = clipsVertically(style);
30
+ if (!clipsX && !clipsY) continue;
31
+ const rect = el.getBoundingClientRect();
32
+ if (clipsX && !horizontal) {
33
+ const left = rect.left + el.clientLeft;
34
+ horizontal = { left, right: left + el.clientWidth };
35
+ }
36
+ if (clipsY) {
37
+ const top = rect.top + el.clientTop;
38
+ clippers.push({ top, bottom: top + el.clientHeight });
39
+ }
40
+ }
41
+ const viewportWidth = root.clientWidth;
42
+ const outermost = clippers[clippers.length - 1];
43
+ return {
44
+ horizontal: horizontal ? { left: Math.max(horizontal.left, 0), right: Math.min(horizontal.right, viewportWidth) } : { left: 0, right: viewportWidth },
45
+ vertical: clippers.reduce(intersect, viewport),
46
+ viewport,
47
+ escape: trapped || clippers.length < 2 ? null : intersect(outermost, viewport)
48
+ };
49
+ }
50
+ exports.getClippingRect = getClippingRect;
51
+ //# sourceMappingURL=index135.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index135.cjs","sources":["../src/utils/clippingRect.ts"],"sourcesContent":["import type { ClippingBox, HorizontalRect, VerticalRect } from './panelPlacement.types';\n\nconst CLIPPING_OVERFLOW = new Set(['hidden', 'auto', 'scroll', 'clip']);\nconst CONTAINING_CONTAIN = /paint|layout|strict|content/;\nconst CONTAINING_WILL_CHANGE = /transform|perspective|filter/;\n\nconst isSet = (value: string | undefined) => Boolean(value) && value !== 'none';\n\n/**\n * Whether `style` makes its element the containing block of `position: fixed`\n * descendants, so they are no longer positioned against the viewport.\n */\nfunction trapsFixed(style: CSSStyleDeclaration): boolean {\n return (\n isSet(style.transform) ||\n isSet(style.perspective) ||\n isSet(style.filter) ||\n isSet(style.backdropFilter) ||\n CONTAINING_CONTAIN.test(style.contain ?? '') ||\n CONTAINING_WILL_CHANGE.test(style.willChange ?? '') ||\n (isSet(style.containerType) && style.containerType !== 'normal')\n );\n}\n\n/**\n * `overflow-y` clips when it is not `visible`, and also when only `overflow-x` is set:\n * CSS computes a `visible` axis to `auto` when the other one is not `visible` (except\n * with `clip`). Browsers report the computed value; this also covers test DOMs that\n * reflect inline styles only.\n */\nfunction clipsVertically(style: CSSStyleDeclaration): boolean {\n if (CLIPPING_OVERFLOW.has(style.overflowY)) return true;\n return style.overflowX !== 'clip' && CLIPPING_OVERFLOW.has(style.overflowX);\n}\n\nconst intersect = (a: VerticalRect, b: VerticalRect): VerticalRect => ({\n top: Math.max(a.top, b.top),\n bottom: Math.min(a.bottom, b.bottom),\n});\n\n/**\n * The boxes that clip `element`'s overflow, measured as inner boxes (no border, no\n * scrollbar) and intersected with the viewport:\n * - horizontally, the nearest ancestor whose `overflow-x` is not `visible`;\n * - vertically, every ancestor whose `overflow-y` is not `visible`;\n * - the escape box, the outermost of those, when there are at least two.\n *\n * The overflow walk stops below `<body>`: overflow set on `<body>` or `<html>` applies\n * to the viewport, which is already the outer limit. The fixed-position trap is checked\n * up to `<html>`.\n */\nexport function getClippingRect(element: HTMLElement): ClippingBox {\n const root = document.documentElement;\n const viewport: VerticalRect = { top: 0, bottom: root.clientHeight };\n let horizontal: HorizontalRect | null = null;\n const clippers: VerticalRect[] = [];\n let trapped = false;\n\n for (let el = element.parentElement; el; el = el.parentElement) {\n const style = getComputedStyle(el);\n if (!trapped && trapsFixed(style)) trapped = true;\n if (el === document.body || el === root) continue;\n\n const clipsX = CLIPPING_OVERFLOW.has(style.overflowX);\n const clipsY = clipsVertically(style);\n if (!clipsX && !clipsY) continue;\n\n const rect = el.getBoundingClientRect();\n if (clipsX && !horizontal) {\n const left = rect.left + el.clientLeft;\n horizontal = { left, right: left + el.clientWidth };\n }\n if (clipsY) {\n const top = rect.top + el.clientTop;\n clippers.push({ top, bottom: top + el.clientHeight });\n }\n }\n\n const viewportWidth = root.clientWidth;\n const outermost = clippers[clippers.length - 1];\n return {\n horizontal: horizontal\n ? { left: Math.max(horizontal.left, 0), right: Math.min(horizontal.right, viewportWidth) }\n : { left: 0, right: viewportWidth },\n vertical: clippers.reduce(intersect, viewport),\n viewport,\n escape: trapped || clippers.length < 2 ? null : intersect(outermost, viewport),\n };\n}\n"],"names":[],"mappings":";;AAEA,MAAM,wCAAwB,IAAI,CAAC,UAAU,QAAQ,UAAU,MAAM,CAAC;AACtE,MAAM,qBAAqB;AAC3B,MAAM,yBAAyB;AAE/B,MAAM,QAAQ,CAAC,UAA8B,QAAQ,KAAK,KAAK,UAAU;AAMzE,SAAS,WAAW,OAAqC;AACvD,SACE,MAAM,MAAM,SAAS,KACrB,MAAM,MAAM,WAAW,KACvB,MAAM,MAAM,MAAM,KAClB,MAAM,MAAM,cAAc,KAC1B,mBAAmB,KAAK,MAAM,WAAW,EAAE,KAC3C,uBAAuB,KAAK,MAAM,cAAc,EAAE,KACjD,MAAM,MAAM,aAAa,KAAK,MAAM,kBAAkB;AAE3D;AAQA,SAAS,gBAAgB,OAAqC;AAC5D,MAAI,kBAAkB,IAAI,MAAM,SAAS,EAAG,QAAO;AACnD,SAAO,MAAM,cAAc,UAAU,kBAAkB,IAAI,MAAM,SAAS;AAC5E;AAEA,MAAM,YAAY,CAAC,GAAiB,OAAmC;AAAA,EACrE,KAAK,KAAK,IAAI,EAAE,KAAK,EAAE,GAAG;AAAA,EAC1B,QAAQ,KAAK,IAAI,EAAE,QAAQ,EAAE,MAAM;AACrC;AAaO,SAAS,gBAAgB,SAAmC;AACjE,QAAM,OAAO,SAAS;AACtB,QAAM,W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|perspective|filter/;
4
+ const isSet = (value) => Boolean(value) && value !== "none";
5
+ function trapsFixed(style) {
6
+ return isSet(style.transform) || isSet(style.perspective) || isSet(style.filter) || isSet(style.backdropFilter) || CONTAINING_CONTAIN.test(style.contain ?? "") || CONTAINING_WILL_CHANGE.test(style.willChange ?? "") || isSet(style.containerType) && style.containerType !== "normal";
7
+ }
8
+ function clipsVertically(style) {
9
+ if (CLIPPING_OVERFLOW.has(style.overflowY)) return true;
10
+ return style.overflowX !== "clip" && CLIPPING_OVERFLOW.has(style.overflowX);
11
+ }
12
+ const intersect = (a, b) => ({
13
+ top: Math.max(a.top, b.top),
14
+ bottom: Math.min(a.bottom, b.bottom)
15
+ });
16
+ function getClippingRect(element) {
17
+ const root = document.documentElement;
18
+ const viewport = { top: 0, bottom: root.clientHeight };
19
+ let horizontal = null;
20
+ const clippers = [];
21
+ let trapped = false;
22
+ for (let el = element.parentElement; el; el = el.parentElement) {
23
+ const style = getComputedStyle(el);
24
+ if (!trapped && trapsFixed(style)) trapped = true;
25
+ if (el === document.body || el === root) continue;
26
+ const clipsX = CLIPPING_OVERFLOW.has(style.overflowX);
27
+ const clipsY = clipsVertically(style);
28
+ if (!clipsX && !clipsY) continue;
29
+ const rect = el.getBoundingClientRect();
30
+ if (clipsX && !horizontal) {
31
+ const left = rect.left + el.clientLeft;
32
+ horizontal = { left, right: left + el.clientWidth };
33
+ }
34
+ if (clipsY) {
35
+ const top = rect.top + el.clientTop;
36
+ clippers.push({ top, bottom: top + el.clientHeight });
37
+ }
38
+ }
39
+ const viewportWidth = root.clientWidth;
40
+ const outermost = clippers[clippers.length - 1];
41
+ return {
42
+ horizontal: horizontal ? { left: Math.max(horizontal.left, 0), right: Math.min(horizontal.right, viewportWidth) } : { left: 0, right: viewportWidth },
43
+ vertical: clippers.reduce(intersect, viewport),
44
+ viewport,
45
+ escape: trapped || clippers.length < 2 ? null : intersect(outermost, viewport)
46
+ };
47
+ }
48
+ export {
49
+ getClippingRect
50
+ };
51
+ //# sourceMappingURL=index135.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index135.js","sources":["../src/utils/clippingRect.ts"],"sourcesContent":["import type { ClippingBox, HorizontalRect, VerticalRect } from './panelPlacement.types';\n\nconst CLIPPING_OVERFLOW = new Set(['hidden', 'auto', 'scroll', 'clip']);\nconst CONTAINING_CONTAIN = /paint|layout|strict|content/;\nconst CONTAINING_WILL_CHANGE = /transform|perspective|filter/;\n\nconst isSet = (value: string | undefined) => Boolean(value) && value !== 'none';\n\n/**\n * Whether `style` makes its element the containing block of `position: fixed`\n * descendants, so they are no longer positioned against the viewport.\n */\nfunction trapsFixed(style: CSSStyleDeclaration): boolean {\n return (\n isSet(style.transform) ||\n isSet(style.perspective) ||\n isSet(style.filter) ||\n isSet(style.backdropFilter) ||\n CONTAINING_CONTAIN.test(style.contain ?? '') ||\n CONTAINING_WILL_CHANGE.test(style.willChange ?? '') ||\n (isSet(style.containerType) && style.containerType !== 'normal')\n );\n}\n\n/**\n * `overflow-y` clips when it is not `visible`, and also when only `overflow-x` is set:\n * CSS computes a `visible` axis to `auto` when the other one is not `visible` (except\n * with `clip`). Browsers report the computed value; this also covers test DOMs that\n * reflect inline styles only.\n */\nfunction clipsVertically(style: CSSStyleDeclaration): boolean {\n if (CLIPPING_OVERFLOW.has(style.overflowY)) return true;\n return style.overflowX !== 'clip' && CLIPPING_OVERFLOW.has(style.overflowX);\n}\n\nconst intersect = (a: VerticalRect, b: VerticalRect): VerticalRect => ({\n top: Math.max(a.top, b.top),\n bottom: Math.min(a.bottom, b.bottom),\n});\n\n/**\n * The boxes that clip `element`'s overflow, measured as inner boxes (no border, no\n * scrollbar) and intersected with the viewport:\n * - horizontally, the nearest ancestor whose `overflow-x` is not `visible`;\n * - vertically, every ancestor whose `overflow-y` is not `visible`;\n * - the escape box, the outermost of those, when there are at least two.\n *\n * The overflow walk stops below `<body>`: overflow set on `<body>` or `<html>` applies\n * to the viewport, which is already the outer limit. The fixed-position trap is checked\n * up to `<html>`.\n */\nexport function getClippingRect(element: HTMLElement): ClippingBox {\n const root = document.documentElement;\n const viewport: VerticalRect = { top: 0, bottom: root.clientHeight };\n let horizontal: HorizontalRect | null = null;\n const clippers: VerticalRect[] = [];\n let trapped = false;\n\n for (let el = element.parentElement; el; el = el.parentElement) {\n const style = getComputedStyle(el);\n if (!trapped && trapsFixed(style)) trapped = true;\n if (el === document.body || el === root) continue;\n\n const clipsX = CLIPPING_OVERFLOW.has(style.overflowX);\n const clipsY = clipsVertically(style);\n if (!clipsX && !clipsY) continue;\n\n const rect = el.getBoundingClientRect();\n if (clipsX && !horizontal) {\n const left = rect.left + el.clientLeft;\n horizontal = { left, right: left + el.clientWidth };\n }\n if (clipsY) {\n const top = rect.top + el.clientTop;\n clippers.push({ top, bottom: top + el.clientHeight });\n }\n }\n\n const viewportWidth = root.clientWidth;\n const outermost = clippers[clippers.length - 1];\n return {\n horizontal: horizontal\n ? { left: Math.max(horizontal.left, 0), right: Math.min(horizontal.right, viewportWidth) }\n : { left: 0, right: viewportWidth },\n vertical: clippers.reduce(intersect, viewport),\n viewport,\n escape: trapped || clippers.length < 2 ? null : intersect(outermost, viewport),\n };\n}\n"],"names":[],"mappings":"AAEA,MAAM,wCAAwB,IAAI,CAAC,UAAU,QAAQ,UAAU,MAAM,CAAC;AACtE,MAAM,qBAAqB;AAC3B,MAAM,yBAAyB;AAE/B,MAAM,QAAQ,CAAC,UAA8B,QAAQ,KAAK,KAAK,UAAU;AAMzE,SAAS,WAAW,OAAqC;AACvD,SACE,MAAM,MAAM,SAAS,KACrB,MAAM,MAAM,WAAW,KACvB,MAAM,MAAM,MAAM,KAClB,MAAM,MAAM,cAAc,KAC1B,mBAAmB,KAAK,MAAM,WAAW,EAAE,KAC3C,uBAAuB,KAAK,MAAM,cAAc,EAAE,KACjD,MAAM,MAAM,aAAa,KAAK,MAAM,kBAAkB;AAE3D;AAQA,SAAS,gBAAgB,OAAqC;AAC5D,MAAI,kBAAkB,IAAI,MAAM,S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