@ktnpm_devops/react-component 0.2.0 → 0.3.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 (263) hide show
  1. package/dist/index.cjs +34 -33
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.ts +1 -0
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +34 -33
  6. package/dist/index.js.map +1 -1
  7. package/dist/index10.cjs +15 -4
  8. package/dist/index10.cjs.map +1 -1
  9. package/dist/index10.js +15 -4
  10. package/dist/index10.js.map +1 -1
  11. package/dist/index11.cjs +4 -16
  12. package/dist/index11.cjs.map +1 -1
  13. package/dist/index11.js +4 -16
  14. package/dist/index11.js.map +1 -1
  15. package/dist/index12.cjs +16 -10
  16. package/dist/index12.cjs.map +1 -1
  17. package/dist/index12.js +16 -10
  18. package/dist/index12.js.map +1 -1
  19. package/dist/index13.cjs +10 -100
  20. package/dist/index13.cjs.map +1 -1
  21. package/dist/index13.js +11 -101
  22. package/dist/index13.js.map +1 -1
  23. package/dist/index14.cjs +100 -20
  24. package/dist/index14.cjs.map +1 -1
  25. package/dist/index14.js +101 -21
  26. package/dist/index14.js.map +1 -1
  27. package/dist/index15.cjs +20 -90
  28. package/dist/index15.cjs.map +1 -1
  29. package/dist/index15.js +21 -91
  30. package/dist/index15.js.map +1 -1
  31. package/dist/index16.cjs +85 -153
  32. package/dist/index16.cjs.map +1 -1
  33. package/dist/index16.js +87 -155
  34. package/dist/index16.js.map +1 -1
  35. package/dist/index17.cjs +150 -128
  36. package/dist/index17.cjs.map +1 -1
  37. package/dist/index17.js +150 -128
  38. package/dist/index17.js.map +1 -1
  39. package/dist/index18.cjs +121 -106
  40. package/dist/index18.cjs.map +1 -1
  41. package/dist/index18.js +122 -107
  42. package/dist/index18.js.map +1 -1
  43. package/dist/index19.cjs +121 -17
  44. package/dist/index19.cjs.map +1 -1
  45. package/dist/index19.js +121 -17
  46. package/dist/index19.js.map +1 -1
  47. package/dist/index20.cjs +17 -8
  48. package/dist/index20.cjs.map +1 -1
  49. package/dist/index20.js +18 -9
  50. package/dist/index20.js.map +1 -1
  51. package/dist/index21.cjs +7 -130
  52. package/dist/index21.cjs.map +1 -1
  53. package/dist/index21.js +9 -132
  54. package/dist/index21.js.map +1 -1
  55. package/dist/index22.cjs +128 -35
  56. package/dist/index22.cjs.map +1 -1
  57. package/dist/index22.js +129 -36
  58. package/dist/index22.js.map +1 -1
  59. package/dist/index23.cjs +36 -222
  60. package/dist/index23.cjs.map +1 -1
  61. package/dist/index23.js +37 -223
  62. package/dist/index23.js.map +1 -1
  63. package/dist/index24.cjs +218 -28
  64. package/dist/index24.cjs.map +1 -1
  65. package/dist/index24.js +220 -30
  66. package/dist/index24.js.map +1 -1
  67. package/dist/index25.cjs +29 -73
  68. package/dist/index25.cjs.map +1 -1
  69. package/dist/index25.js +31 -75
  70. package/dist/index25.js.map +1 -1
  71. package/dist/index26.cjs +69 -144
  72. package/dist/index26.cjs.map +1 -1
  73. package/dist/index26.js +70 -145
  74. package/dist/index26.js.map +1 -1
  75. package/dist/index27.cjs +152 -7
  76. package/dist/index27.cjs.map +1 -1
  77. package/dist/index27.js +154 -9
  78. package/dist/index27.js.map +1 -1
  79. package/dist/index28.cjs +8 -17
  80. package/dist/index28.cjs.map +1 -1
  81. package/dist/index28.js +9 -18
  82. package/dist/index28.js.map +1 -1
  83. package/dist/index29.cjs +15 -75
  84. package/dist/index29.cjs.map +1 -1
  85. package/dist/index29.js +15 -75
  86. package/dist/index29.js.map +1 -1
  87. package/dist/index3.cjs +76 -16
  88. package/dist/index3.cjs.map +1 -1
  89. package/dist/index3.js +76 -16
  90. package/dist/index3.js.map +1 -1
  91. package/dist/index30.cjs +68 -134
  92. package/dist/index30.cjs.map +1 -1
  93. package/dist/index30.js +70 -136
  94. package/dist/index30.js.map +1 -1
  95. package/dist/index31.cjs +136 -98
  96. package/dist/index31.cjs.map +1 -1
  97. package/dist/index31.js +137 -99
  98. package/dist/index31.js.map +1 -1
  99. package/dist/index32.cjs +105 -6
  100. package/dist/index32.cjs.map +1 -1
  101. package/dist/index32.js +106 -7
  102. package/dist/index32.js.map +1 -1
  103. package/dist/index33.cjs +6 -216
  104. package/dist/index33.cjs.map +1 -1
  105. package/dist/index33.js +7 -217
  106. package/dist/index33.js.map +1 -1
  107. package/dist/index34.cjs +215 -7
  108. package/dist/index34.cjs.map +1 -1
  109. package/dist/index34.js +217 -9
  110. package/dist/index34.js.map +1 -1
  111. package/dist/index35.cjs +10 -16
  112. package/dist/index35.cjs.map +1 -1
  113. package/dist/index35.js +9 -15
  114. package/dist/index35.js.map +1 -1
  115. package/dist/index36.cjs +15 -15
  116. package/dist/index36.cjs.map +1 -1
  117. package/dist/index36.js +15 -15
  118. package/dist/index36.js.map +1 -1
  119. package/dist/index37.cjs +5 -20
  120. package/dist/index37.cjs.map +1 -1
  121. package/dist/index37.js +5 -20
  122. package/dist/index37.js.map +1 -1
  123. package/dist/index38.cjs +15 -67
  124. package/dist/index38.cjs.map +1 -1
  125. package/dist/index38.js +14 -66
  126. package/dist/index38.js.map +1 -1
  127. package/dist/index39.cjs +67 -84
  128. package/dist/index39.cjs.map +1 -1
  129. package/dist/index39.js +66 -83
  130. package/dist/index39.js.map +1 -1
  131. package/dist/index4.cjs +12 -8
  132. package/dist/index4.cjs.map +1 -1
  133. package/dist/index4.js +12 -8
  134. package/dist/index4.js.map +1 -1
  135. package/dist/index40.cjs +35 -2
  136. package/dist/index40.cjs.map +1 -1
  137. package/dist/index40.js +36 -3
  138. package/dist/index40.js.map +1 -1
  139. package/dist/index41.cjs +15 -6
  140. package/dist/index41.cjs.map +1 -1
  141. package/dist/index41.js +16 -7
  142. package/dist/index41.js.map +1 -1
  143. package/dist/index42.cjs +52 -13
  144. package/dist/index42.cjs.map +1 -1
  145. package/dist/index42.js +52 -13
  146. package/dist/index42.js.map +1 -1
  147. package/dist/index43.cjs +14 -5
  148. package/dist/index43.cjs.map +1 -1
  149. package/dist/index43.js +14 -5
  150. package/dist/index43.js.map +1 -1
  151. package/dist/index44.cjs +30 -24
  152. package/dist/index44.cjs.map +1 -1
  153. package/dist/index44.js +30 -24
  154. package/dist/index44.js.map +1 -1
  155. package/dist/index45.cjs +14 -2
  156. package/dist/index45.cjs.map +1 -1
  157. package/dist/index45.js +14 -2
  158. package/dist/index45.js.map +1 -1
  159. package/dist/index46.cjs +14 -2
  160. package/dist/index46.cjs.map +1 -1
  161. package/dist/index46.js +15 -3
  162. package/dist/index46.js.map +1 -1
  163. package/dist/index47.cjs +2 -53
  164. package/dist/index47.cjs.map +1 -1
  165. package/dist/index47.js +3 -54
  166. package/dist/index47.js.map +1 -1
  167. package/dist/index48.cjs +2 -29
  168. package/dist/index48.cjs.map +1 -1
  169. package/dist/index48.js +3 -30
  170. package/dist/index48.js.map +1 -1
  171. package/dist/index49.cjs +2 -53
  172. package/dist/index49.cjs.map +1 -1
  173. package/dist/index49.js +3 -54
  174. package/dist/index49.js.map +1 -1
  175. package/dist/index5.cjs +9 -16
  176. package/dist/index5.cjs.map +1 -1
  177. package/dist/index5.js +10 -17
  178. package/dist/index5.js.map +1 -1
  179. package/dist/index50.cjs +32 -35
  180. package/dist/index50.cjs.map +1 -1
  181. package/dist/index50.js +32 -35
  182. package/dist/index50.js.map +1 -1
  183. package/dist/index51.cjs +48 -36
  184. package/dist/index51.cjs.map +1 -1
  185. package/dist/index51.js +48 -36
  186. package/dist/index51.js.map +1 -1
  187. package/dist/index52.cjs +16 -34
  188. package/dist/index52.cjs.map +1 -1
  189. package/dist/index52.js +16 -34
  190. package/dist/index52.js.map +1 -1
  191. package/dist/index53.cjs +31 -22
  192. package/dist/index53.cjs.map +1 -1
  193. package/dist/index53.js +32 -23
  194. package/dist/index53.js.map +1 -1
  195. package/dist/index54.cjs +52 -13
  196. package/dist/index54.cjs.map +1 -1
  197. package/dist/index54.js +53 -14
  198. package/dist/index54.js.map +1 -1
  199. package/dist/index55.cjs +134 -55
  200. package/dist/index55.cjs.map +1 -1
  201. package/dist/index55.js +133 -54
  202. package/dist/index55.js.map +1 -1
  203. package/dist/index56.cjs +46 -134
  204. package/dist/index56.cjs.map +1 -1
  205. package/dist/index56.js +45 -133
  206. package/dist/index56.js.map +1 -1
  207. package/dist/index57.cjs +16 -28
  208. package/dist/index57.cjs.map +1 -1
  209. package/dist/index57.js +17 -29
  210. package/dist/index57.js.map +1 -1
  211. package/dist/index58.cjs +22 -16
  212. package/dist/index58.cjs.map +1 -1
  213. package/dist/index58.js +22 -16
  214. package/dist/index58.js.map +1 -1
  215. package/dist/index59.cjs +10 -19
  216. package/dist/index59.cjs.map +1 -1
  217. package/dist/index59.js +10 -19
  218. package/dist/index59.js.map +1 -1
  219. package/dist/index6.cjs +19 -65
  220. package/dist/index6.cjs.map +1 -1
  221. package/dist/index6.js +19 -65
  222. package/dist/index6.js.map +1 -1
  223. package/dist/index60.cjs +17 -32
  224. package/dist/index60.cjs.map +1 -1
  225. package/dist/index60.js +18 -33
  226. package/dist/index60.js.map +1 -1
  227. package/dist/index61.cjs +78 -9
  228. package/dist/index61.cjs.map +1 -1
  229. package/dist/index61.js +79 -10
  230. package/dist/index61.js.map +1 -1
  231. package/dist/index62.cjs +37 -16
  232. package/dist/index62.cjs.map +1 -1
  233. package/dist/index62.js +37 -16
  234. package/dist/index62.js.map +1 -1
  235. package/dist/index63.cjs +16 -13
  236. package/dist/index63.cjs.map +1 -1
  237. package/dist/index63.js +17 -14
  238. package/dist/index63.js.map +1 -1
  239. package/dist/index65.cjs +18 -0
  240. package/dist/index65.cjs.map +1 -0
  241. package/dist/index65.js +18 -0
  242. package/dist/index65.js.map +1 -0
  243. package/dist/index7.cjs +58 -75
  244. package/dist/index7.cjs.map +1 -1
  245. package/dist/index7.js +58 -75
  246. package/dist/index7.js.map +1 -1
  247. package/dist/index8.cjs +82 -15
  248. package/dist/index8.cjs.map +1 -1
  249. package/dist/index8.js +82 -15
  250. package/dist/index8.js.map +1 -1
  251. package/dist/index9.cjs +14 -15
  252. package/dist/index9.cjs.map +1 -1
  253. package/dist/index9.js +15 -16
  254. package/dist/index9.js.map +1 -1
  255. package/dist/style.css +271 -0
  256. package/dist/tokens/semantic-tokens.css +21 -0
  257. package/dist/tokens/tokens.d.ts +35 -0
  258. package/dist/tokens/tokens.d.ts.map +1 -1
  259. package/package.json +1 -1
  260. package/dist/index2.cjs +0 -44
  261. package/dist/index2.cjs.map +0 -1
  262. package/dist/index2.js +0 -44
  263. package/dist/index2.js.map +0 -1
package/dist/index48.cjs CHANGED
@@ -1,36 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const root = "krc-root-rUudF";
4
- const header = "krc-header-zjbPA";
5
- const title = "krc-title-ScYja";
6
- const timeRangeGroup = "krc-timeRangeGroup-FP1TP";
7
- const timeRangeButton = "krc-timeRangeButton-9XCxb";
8
- const timeRangeButtonActive = "krc-timeRangeButtonActive-Y-KCh";
9
- const chartContainer = "krc-chartContainer-6rb4Z";
10
- const loading = "krc-loading-EWhol";
11
- const error = "krc-error-erDaP";
12
- const empty = "krc-empty---cYi";
3
+ const root = "krc-root-FVKOX";
13
4
  const styles = {
14
- root,
15
- header,
16
- title,
17
- timeRangeGroup,
18
- timeRangeButton,
19
- timeRangeButtonActive,
20
- chartContainer,
21
- loading,
22
- error,
23
- empty
5
+ root
24
6
  };
25
- exports.chartContainer = chartContainer;
26
7
  exports.default = styles;
27
- exports.empty = empty;
28
- exports.error = error;
29
- exports.header = header;
30
- exports.loading = loading;
31
8
  exports.root = root;
32
- exports.timeRangeButton = timeRangeButton;
33
- exports.timeRangeButtonActive = timeRangeButtonActive;
34
- exports.timeRangeGroup = timeRangeGroup;
35
- exports.title = title;
36
9
  //# sourceMappingURL=index48.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index48.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index48.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
package/dist/index48.js CHANGED
@@ -1,36 +1,9 @@
1
- const root = "krc-root-rUudF";
2
- const header = "krc-header-zjbPA";
3
- const title = "krc-title-ScYja";
4
- const timeRangeGroup = "krc-timeRangeGroup-FP1TP";
5
- const timeRangeButton = "krc-timeRangeButton-9XCxb";
6
- const timeRangeButtonActive = "krc-timeRangeButtonActive-Y-KCh";
7
- const chartContainer = "krc-chartContainer-6rb4Z";
8
- const loading = "krc-loading-EWhol";
9
- const error = "krc-error-erDaP";
10
- const empty = "krc-empty---cYi";
1
+ const root = "krc-root-FVKOX";
11
2
  const styles = {
12
- root,
13
- header,
14
- title,
15
- timeRangeGroup,
16
- timeRangeButton,
17
- timeRangeButtonActive,
18
- chartContainer,
19
- loading,
20
- error,
21
- empty
3
+ root
22
4
  };
23
5
  export {
24
- chartContainer,
25
6
  styles as default,
26
- empty,
27
- error,
28
- header,
29
- loading,
30
- root,
31
- timeRangeButton,
32
- timeRangeButtonActive,
33
- timeRangeGroup,
34
- title
7
+ root
35
8
  };
36
9
  //# sourceMappingURL=index48.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index48.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index48.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
package/dist/index49.cjs CHANGED
@@ -1,60 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const root = "krc-root-GYECa";
4
- const header = "krc-header-7V-0i";
5
- const title = "krc-title-SiRcV";
6
- const headerActions = "krc-headerActions-HY6nM";
7
- const splitContainer = "krc-splitContainer-ovkIf";
8
- const tablePanel = "krc-tablePanel-gbWQx";
9
- const chartPanel = "krc-chartPanel-eBJ9W";
10
- const table = "krc-table-40WZx";
11
- const tableRow = "krc-tableRow-yQlEa";
12
- const tableRowSelected = "krc-tableRowSelected-vIEfO";
13
- const pagination = "krc-pagination-nyCxO";
14
- const paginationButton = "krc-paginationButton-k-cQB";
15
- const paginationInfo = "krc-paginationInfo-ouuPw";
16
- const placeholder = "krc-placeholder-YDeIw";
17
- const loading = "krc-loading-UoiCd";
18
- const error = "krc-error-Subfi";
19
- const retryButton = "krc-retryButton-k8HPu";
20
- const empty = "krc-empty-OoPZo";
3
+ const root = "krc-root-jba0x";
21
4
  const styles = {
22
- root,
23
- header,
24
- title,
25
- headerActions,
26
- splitContainer,
27
- tablePanel,
28
- chartPanel,
29
- table,
30
- tableRow,
31
- tableRowSelected,
32
- pagination,
33
- paginationButton,
34
- paginationInfo,
35
- placeholder,
36
- loading,
37
- error,
38
- retryButton,
39
- empty
5
+ root
40
6
  };
41
- exports.chartPanel = chartPanel;
42
7
  exports.default = styles;
43
- exports.empty = empty;
44
- exports.error = error;
45
- exports.header = header;
46
- exports.headerActions = headerActions;
47
- exports.loading = loading;
48
- exports.pagination = pagination;
49
- exports.paginationButton = paginationButton;
50
- exports.paginationInfo = paginationInfo;
51
- exports.placeholder = placeholder;
52
- exports.retryButton = retryButton;
53
8
  exports.root = root;
54
- exports.splitContainer = splitContainer;
55
- exports.table = table;
56
- exports.tablePanel = tablePanel;
57
- exports.tableRow = tableRow;
58
- exports.tableRowSelected = tableRowSelected;
59
- exports.title = title;
60
9
  //# sourceMappingURL=index49.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index49.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index49.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
package/dist/index49.js CHANGED
@@ -1,60 +1,9 @@
1
- const root = "krc-root-GYECa";
2
- const header = "krc-header-7V-0i";
3
- const title = "krc-title-SiRcV";
4
- const headerActions = "krc-headerActions-HY6nM";
5
- const splitContainer = "krc-splitContainer-ovkIf";
6
- const tablePanel = "krc-tablePanel-gbWQx";
7
- const chartPanel = "krc-chartPanel-eBJ9W";
8
- const table = "krc-table-40WZx";
9
- const tableRow = "krc-tableRow-yQlEa";
10
- const tableRowSelected = "krc-tableRowSelected-vIEfO";
11
- const pagination = "krc-pagination-nyCxO";
12
- const paginationButton = "krc-paginationButton-k-cQB";
13
- const paginationInfo = "krc-paginationInfo-ouuPw";
14
- const placeholder = "krc-placeholder-YDeIw";
15
- const loading = "krc-loading-UoiCd";
16
- const error = "krc-error-Subfi";
17
- const retryButton = "krc-retryButton-k8HPu";
18
- const empty = "krc-empty-OoPZo";
1
+ const root = "krc-root-jba0x";
19
2
  const styles = {
20
- root,
21
- header,
22
- title,
23
- headerActions,
24
- splitContainer,
25
- tablePanel,
26
- chartPanel,
27
- table,
28
- tableRow,
29
- tableRowSelected,
30
- pagination,
31
- paginationButton,
32
- paginationInfo,
33
- placeholder,
34
- loading,
35
- error,
36
- retryButton,
37
- empty
3
+ root
38
4
  };
39
5
  export {
40
- chartPanel,
41
6
  styles as default,
42
- empty,
43
- error,
44
- header,
45
- headerActions,
46
- loading,
47
- pagination,
48
- paginationButton,
49
- paginationInfo,
50
- placeholder,
51
- retryButton,
52
- root,
53
- splitContainer,
54
- table,
55
- tablePanel,
56
- tableRow,
57
- tableRowSelected,
58
- title
7
+ root
59
8
  };
60
9
  //# sourceMappingURL=index49.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index49.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index49.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
package/dist/index5.cjs CHANGED
@@ -1,22 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const react = require("react");
4
- function useResizeObserver(ref) {
5
- const [size, setSize] = react.useState({ width: 0, height: 0 });
4
+ function useEscapeKey(handler, enabled = true) {
6
5
  react.useEffect(() => {
7
- const element = ref.current;
8
- if (!element) return;
9
- const observer = new ResizeObserver((entries) => {
10
- const entry = entries[0];
11
- if (entry) {
12
- const { width, height } = entry.contentRect;
13
- setSize({ width, height });
14
- }
15
- });
16
- observer.observe(element);
17
- return () => observer.disconnect();
18
- }, [ref]);
19
- return size;
6
+ if (!enabled) return;
7
+ const onKeyDown = (e) => {
8
+ if (e.key === "Escape") handler();
9
+ };
10
+ document.addEventListener("keydown", onKeyDown);
11
+ return () => document.removeEventListener("keydown", onKeyDown);
12
+ }, [handler, enabled]);
20
13
  }
21
- exports.useResizeObserver = useResizeObserver;
14
+ exports.useEscapeKey = useEscapeKey;
22
15
  //# sourceMappingURL=index5.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index5.cjs","sources":["../src/hooks/useResizeObserver.ts"],"sourcesContent":["import { useEffect, useState, type RefObject } from 'react';\n\ninterface Size {\n width: number;\n height: number;\n}\n\n/** Observes the size of the element referenced by `ref` via ResizeObserver. */\nexport function useResizeObserver<T extends HTMLElement>(ref: RefObject<T | null>): Size {\n const [size, setSize] = useState<Size>({ width: 0, height: 0 });\n\n useEffect(() => {\n const element = ref.current;\n if (!element) return;\n\n const observer = new ResizeObserver((entries) => {\n const entry = entries[0];\n if (entry) {\n const { width, height } = entry.contentRect;\n setSize({ width, height });\n }\n });\n\n observer.observe(element);\n return () => observer.disconnect();\n }, [ref]);\n\n return size;\n}\n"],"names":["useState","useEffect"],"mappings":";;;AAQO,SAAS,kBAAyC,KAAgC;AACvF,QAAM,CAAC,MAAM,OAAO,IAAIA,MAAAA,SAAe,EAAE,OAAO,GAAG,QAAQ,GAAG;AAE9DC,QAAAA,UAAU,MAAM;AACd,UAAM,UAAU,IAAI;AACpB,QAAI,CAAC,QAAS;AAEd,UAAM,WAAW,IAAI,eAAe,CAAC,YAAY;AAC/C,YAAM,QAAQ,QAAQ,CAAC;AACvB,UAAI,OAAO;AACT,cAAM,EAAE,OAAO,OAAA,IAAW,MAAM;AAChC,gBAAQ,EAAE,OAAO,QAAQ;AAAA,MAC3B;AAAA,IACF,CAAC;AAED,aAAS,QAAQ,OAAO;AACxB,WAAO,MAAM,SAAS,WAAA;AAAA,EACxB,GAAG,CAAC,GAAG,CAAC;AAER,SAAO;AACT;;"}
1
+ {"version":3,"file":"index5.cjs","sources":["../src/hooks/useEscapeKey.ts"],"sourcesContent":["import { useEffect } from 'react';\n\n/** Calls `handler` when the Escape key is pressed while `enabled` is true. */\nexport function useEscapeKey(handler: () => void, enabled = true) {\n useEffect(() => {\n if (!enabled) return;\n const onKeyDown = (e: KeyboardEvent) => {\n if (e.key === 'Escape') handler();\n };\n document.addEventListener('keydown', onKeyDown);\n return () => document.removeEventListener('keydown', onKeyDown);\n }, [handler, enabled]);\n}\n"],"names":["useEffect"],"mappings":";;;AAGO,SAAS,aAAa,SAAqB,UAAU,MAAM;AAChEA,QAAAA,UAAU,MAAM;AACd,QAAI,CAAC,QAAS;AACd,UAAM,YAAY,CAAC,MAAqB;AACtC,UAAI,EAAE,QAAQ,SAAU,SAAA;AAAA,IAC1B;AACA,aAAS,iBAAiB,WAAW,SAAS;AAC9C,WAAO,MAAM,SAAS,oBAAoB,WAAW,SAAS;AAAA,EAChE,GAAG,CAAC,SAAS,OAAO,CAAC;AACvB;;"}
package/dist/index5.js CHANGED
@@ -1,22 +1,15 @@
1
- import { useState, useEffect } from "react";
2
- function useResizeObserver(ref) {
3
- const [size, setSize] = useState({ width: 0, height: 0 });
1
+ import { useEffect } from "react";
2
+ function useEscapeKey(handler, enabled = true) {
4
3
  useEffect(() => {
5
- const element = ref.current;
6
- if (!element) return;
7
- const observer = new ResizeObserver((entries) => {
8
- const entry = entries[0];
9
- if (entry) {
10
- const { width, height } = entry.contentRect;
11
- setSize({ width, height });
12
- }
13
- });
14
- observer.observe(element);
15
- return () => observer.disconnect();
16
- }, [ref]);
17
- return size;
4
+ if (!enabled) return;
5
+ const onKeyDown = (e) => {
6
+ if (e.key === "Escape") handler();
7
+ };
8
+ document.addEventListener("keydown", onKeyDown);
9
+ return () => document.removeEventListener("keydown", onKeyDown);
10
+ }, [handler, enabled]);
18
11
  }
19
12
  export {
20
- useResizeObserver
13
+ useEscapeKey
21
14
  };
22
15
  //# sourceMappingURL=index5.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index5.js","sources":["../src/hooks/useResizeObserver.ts"],"sourcesContent":["import { useEffect, useState, type RefObject } from 'react';\n\ninterface Size {\n width: number;\n height: number;\n}\n\n/** Observes the size of the element referenced by `ref` via ResizeObserver. */\nexport function useResizeObserver<T extends HTMLElement>(ref: RefObject<T | null>): Size {\n const [size, setSize] = useState<Size>({ width: 0, height: 0 });\n\n useEffect(() => {\n const element = ref.current;\n if (!element) return;\n\n const observer = new ResizeObserver((entries) => {\n const entry = entries[0];\n if (entry) {\n const { width, height } = entry.contentRect;\n setSize({ width, height });\n }\n });\n\n observer.observe(element);\n return () => observer.disconnect();\n }, [ref]);\n\n return size;\n}\n"],"names":[],"mappings":";AAQO,SAAS,kBAAyC,KAAgC;AACvF,QAAM,CAAC,MAAM,OAAO,IAAI,SAAe,EAAE,OAAO,GAAG,QAAQ,GAAG;AAE9D,YAAU,MAAM;AACd,UAAM,UAAU,IAAI;AACpB,QAAI,CAAC,QAAS;AAEd,UAAM,WAAW,IAAI,eAAe,CAAC,YAAY;AAC/C,YAAM,QAAQ,QAAQ,CAAC;AACvB,UAAI,OAAO;AACT,cAAM,EAAE,OAAO,OAAA,IAAW,MAAM;AAChC,gBAAQ,EAAE,OAAO,QAAQ;AAAA,MAC3B;AAAA,IACF,CAAC;AAED,aAAS,QAAQ,OAAO;AACxB,WAAO,MAAM,SAAS,WAAA;AAAA,EACxB,GAAG,CAAC,GAAG,CAAC;AAER,SAAO;AACT;"}
1
+ {"version":3,"file":"index5.js","sources":["../src/hooks/useEscapeKey.ts"],"sourcesContent":["import { useEffect } from 'react';\n\n/** Calls `handler` when the Escape key is pressed while `enabled` is true. */\nexport function useEscapeKey(handler: () => void, enabled = true) {\n useEffect(() => {\n if (!enabled) return;\n const onKeyDown = (e: KeyboardEvent) => {\n if (e.key === 'Escape') handler();\n };\n document.addEventListener('keydown', onKeyDown);\n return () => document.removeEventListener('keydown', onKeyDown);\n }, [handler, enabled]);\n}\n"],"names":[],"mappings":";AAGO,SAAS,aAAa,SAAqB,UAAU,MAAM;AAChE,YAAU,MAAM;AACd,QAAI,CAAC,QAAS;AACd,UAAM,YAAY,CAAC,MAAqB;AACtC,UAAI,EAAE,QAAQ,SAAU,SAAA;AAAA,IAC1B;AACA,aAAS,iBAAiB,WAAW,SAAS;AAC9C,WAAO,MAAM,SAAS,oBAAoB,WAAW,SAAS;AAAA,EAChE,GAAG,CAAC,SAAS,OAAO,CAAC;AACvB;"}
package/dist/index50.cjs CHANGED
@@ -1,45 +1,42 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const root = "krc-root-0iK-T";
4
- const header = "krc-header-vLmNI";
5
- const title = "krc-title-J9FSG";
6
- const headerActions = "krc-headerActions-8Sd6i";
7
- const toolbar = "krc-toolbar-65kLR";
8
- const toolbarLabel = "krc-toolbarLabel-kmRLQ";
9
- const toolbarSelect = "krc-toolbarSelect-t7OKN";
10
- const chartContainer = "krc-chartContainer-1-iIe";
11
- const loading = "krc-loading-MRlom";
12
- const error = "krc-error-esslq";
13
- const retryButton = "krc-retryButton-js385";
14
- const empty = "krc-empty-qYFPa";
15
- const warning = "krc-warning-ll4Hc";
3
+ const root = "krc-root-7cxYt";
4
+ const chip = "krc-chip-tgAQw";
5
+ const active = "krc-active-hboGd";
6
+ const summary = "krc-summary-E-FXy";
7
+ const popover = "krc-popover-IJFWK";
8
+ const popoverHeader = "krc-popoverHeader-mdeD8";
9
+ const fields = "krc-fields-h5R5w";
10
+ const field = "krc-field-u9yvp";
11
+ const error = "krc-error-jsFkv";
12
+ const actions = "krc-actions-prbFX";
13
+ const btnGhost = "krc-btnGhost-x8cbA";
14
+ const btnPrimary = "krc-btnPrimary-T0w2q";
16
15
  const styles = {
17
16
  root,
18
- header,
19
- title,
20
- headerActions,
21
- toolbar,
22
- toolbarLabel,
23
- toolbarSelect,
24
- chartContainer,
25
- loading,
17
+ chip,
18
+ active,
19
+ summary,
20
+ popover,
21
+ popoverHeader,
22
+ fields,
23
+ field,
26
24
  error,
27
- retryButton,
28
- empty,
29
- warning
25
+ actions,
26
+ btnGhost,
27
+ btnPrimary
30
28
  };
31
- exports.chartContainer = chartContainer;
29
+ exports.actions = actions;
30
+ exports.active = active;
31
+ exports.btnGhost = btnGhost;
32
+ exports.btnPrimary = btnPrimary;
33
+ exports.chip = chip;
32
34
  exports.default = styles;
33
- exports.empty = empty;
34
35
  exports.error = error;
35
- exports.header = header;
36
- exports.headerActions = headerActions;
37
- exports.loading = loading;
38
- exports.retryButton = retryButton;
36
+ exports.field = field;
37
+ exports.fields = fields;
38
+ exports.popover = popover;
39
+ exports.popoverHeader = popoverHeader;
39
40
  exports.root = root;
40
- exports.title = title;
41
- exports.toolbar = toolbar;
42
- exports.toolbarLabel = toolbarLabel;
43
- exports.toolbarSelect = toolbarSelect;
44
- exports.warning = warning;
41
+ exports.summary = summary;
45
42
  //# sourceMappingURL=index50.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index50.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index50.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index50.js CHANGED
@@ -1,45 +1,42 @@
1
- const root = "krc-root-0iK-T";
2
- const header = "krc-header-vLmNI";
3
- const title = "krc-title-J9FSG";
4
- const headerActions = "krc-headerActions-8Sd6i";
5
- const toolbar = "krc-toolbar-65kLR";
6
- const toolbarLabel = "krc-toolbarLabel-kmRLQ";
7
- const toolbarSelect = "krc-toolbarSelect-t7OKN";
8
- const chartContainer = "krc-chartContainer-1-iIe";
9
- const loading = "krc-loading-MRlom";
10
- const error = "krc-error-esslq";
11
- const retryButton = "krc-retryButton-js385";
12
- const empty = "krc-empty-qYFPa";
13
- const warning = "krc-warning-ll4Hc";
1
+ const root = "krc-root-7cxYt";
2
+ const chip = "krc-chip-tgAQw";
3
+ const active = "krc-active-hboGd";
4
+ const summary = "krc-summary-E-FXy";
5
+ const popover = "krc-popover-IJFWK";
6
+ const popoverHeader = "krc-popoverHeader-mdeD8";
7
+ const fields = "krc-fields-h5R5w";
8
+ const field = "krc-field-u9yvp";
9
+ const error = "krc-error-jsFkv";
10
+ const actions = "krc-actions-prbFX";
11
+ const btnGhost = "krc-btnGhost-x8cbA";
12
+ const btnPrimary = "krc-btnPrimary-T0w2q";
14
13
  const styles = {
15
14
  root,
16
- header,
17
- title,
18
- headerActions,
19
- toolbar,
20
- toolbarLabel,
21
- toolbarSelect,
22
- chartContainer,
23
- loading,
15
+ chip,
16
+ active,
17
+ summary,
18
+ popover,
19
+ popoverHeader,
20
+ fields,
21
+ field,
24
22
  error,
25
- retryButton,
26
- empty,
27
- warning
23
+ actions,
24
+ btnGhost,
25
+ btnPrimary
28
26
  };
29
27
  export {
30
- chartContainer,
28
+ actions,
29
+ active,
30
+ btnGhost,
31
+ btnPrimary,
32
+ chip,
31
33
  styles as default,
32
- empty,
33
34
  error,
34
- header,
35
- headerActions,
36
- loading,
37
- retryButton,
35
+ field,
36
+ fields,
37
+ popover,
38
+ popoverHeader,
38
39
  root,
39
- title,
40
- toolbar,
41
- toolbarLabel,
42
- toolbarSelect,
43
- warning
40
+ summary
44
41
  };
45
42
  //# sourceMappingURL=index50.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index50.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index50.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index51.cjs CHANGED
@@ -1,45 +1,57 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const root = "krc-root-xM3Jn";
4
- const header = "krc-header-Pg9ER";
5
- const title = "krc-title-MRZQn";
6
- const headerRight = "krc-headerRight-b0xzW";
7
- const toolbar = "krc-toolbar--rsIi";
8
- const select = "krc-select-79sIN";
9
- const legendToggle = "krc-legendToggle--ofSS";
10
- const legendToggleActive = "krc-legendToggleActive-14gdq";
11
- const chartContainer = "krc-chartContainer-tDTrg";
12
- const loading = "krc-loading-WkgGt";
13
- const error = "krc-error-yzAKV";
14
- const retryButton = "krc-retryButton-wTkWq";
15
- const empty = "krc-empty-1EZzg";
3
+ const root = "krc-root-W2sel";
4
+ const tableContainer = "krc-tableContainer-Ed3uk";
5
+ const table = "krc-table-7p0H-";
6
+ const th = "krc-th-fNmfv";
7
+ const sortable = "krc-sortable-Ve0MQ";
8
+ const thContent = "krc-thContent-BRDIL";
9
+ const sortIndicator = "krc-sortIndicator-PtGYj";
10
+ const resizeHandle = "krc-resizeHandle--St-g";
11
+ const td = "krc-td-ZVsrU";
12
+ const row = "krc-row-JivMH";
13
+ const rowClickable = "krc-rowClickable-lTgQW";
14
+ const rowSelected = "krc-rowSelected-Sv0qs";
15
+ const skeletonRow = "krc-skeletonRow-uD1y7";
16
+ const skeleton = "krc-skeleton-eeYso";
17
+ const empty = "krc-empty-xKpKS";
18
+ const loadMore = "krc-loadMore-njxDN";
19
+ const loadMoreButton = "krc-loadMoreButton-C3Q-f";
16
20
  const styles = {
17
21
  root,
18
- header,
19
- title,
20
- headerRight,
21
- toolbar,
22
- select,
23
- legendToggle,
24
- legendToggleActive,
25
- chartContainer,
26
- loading,
27
- error,
28
- retryButton,
29
- empty
22
+ tableContainer,
23
+ table,
24
+ th,
25
+ sortable,
26
+ thContent,
27
+ sortIndicator,
28
+ resizeHandle,
29
+ td,
30
+ row,
31
+ rowClickable,
32
+ rowSelected,
33
+ skeletonRow,
34
+ skeleton,
35
+ empty,
36
+ loadMore,
37
+ loadMoreButton
30
38
  };
31
- exports.chartContainer = chartContainer;
32
39
  exports.default = styles;
33
40
  exports.empty = empty;
34
- exports.error = error;
35
- exports.header = header;
36
- exports.headerRight = headerRight;
37
- exports.legendToggle = legendToggle;
38
- exports.legendToggleActive = legendToggleActive;
39
- exports.loading = loading;
40
- exports.retryButton = retryButton;
41
+ exports.loadMore = loadMore;
42
+ exports.loadMoreButton = loadMoreButton;
43
+ exports.resizeHandle = resizeHandle;
41
44
  exports.root = root;
42
- exports.select = select;
43
- exports.title = title;
44
- exports.toolbar = toolbar;
45
+ exports.row = row;
46
+ exports.rowClickable = rowClickable;
47
+ exports.rowSelected = rowSelected;
48
+ exports.skeleton = skeleton;
49
+ exports.skeletonRow = skeletonRow;
50
+ exports.sortIndicator = sortIndicator;
51
+ exports.sortable = sortable;
52
+ exports.table = table;
53
+ exports.tableContainer = tableContainer;
54
+ exports.td = td;
55
+ exports.th = th;
56
+ exports.thContent = thContent;
45
57
  //# sourceMappingURL=index51.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index51.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index51.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}