@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/index38.js CHANGED
@@ -1,70 +1,18 @@
1
- const ICON_SIZE = {
2
- SM: 14,
3
- MD: 16,
4
- LG: 18
1
+ const root = "krc-root-AouLD";
2
+ const header = "krc-header-pNze5";
3
+ const content = "krc-content-egG2e";
4
+ const footer = "krc-footer-WJw5Z";
5
+ const styles = {
6
+ root,
7
+ header,
8
+ content,
9
+ footer
5
10
  };
6
- const SVG_VIEWBOX = "0 0 24 24";
7
- const SVG_STROKE_WIDTH = 2;
8
- const KEYBOARD_STEP = 2;
9
- const VIEWPORT_MARGIN = 32;
10
- const CONTEXT_MENU_MARGIN = 10;
11
- const CHART_MODAL = {
12
- MIN_WIDTH: 960,
13
- MIN_HEIGHT: 480,
14
- MAX_WIDTH: 2400,
15
- MAX_HEIGHT: 1300,
16
- DEFAULT_WIDTH: 1500,
17
- DEFAULT_HEIGHT: 820,
18
- FALLBACK_WIDTH: 1400,
19
- FALLBACK_HEIGHT: 800
20
- };
21
- const MAX_SANKEY_NODES = 150;
22
- const MAX_SERIES = 20;
23
- const MAX_CATEGORIES = 20;
24
- const MAX_SUBCATEGORIES = 10;
25
- const CHART_COLORS = [
26
- "#FF6B5A",
27
- "#5B8DEF",
28
- "#4ECDC4",
29
- "#F7B731",
30
- "#A55EEA",
31
- "#26DE81",
32
- "#FC5C65",
33
- "#45AAF2",
34
- "#FD9644",
35
- "#2BCBBA",
36
- "#D1D8E0",
37
- "#778CA3",
38
- "#EB3B5A",
39
- "#3867D6",
40
- "#20BF6B",
41
- "#F7B731",
42
- "#8854D0",
43
- "#0FB9B1",
44
- "#FA8231",
45
- "#4B6584"
46
- ];
47
- const MIN_COLUMN_WIDTH = 40;
48
- const SIDEBAR = {
49
- WIDTH: 240,
50
- COLLAPSED_WIDTH: 80
51
- };
52
- const COUNTERS_PAGE_SIZE = 100;
53
11
  export {
54
- CHART_COLORS,
55
- CHART_MODAL,
56
- CONTEXT_MENU_MARGIN,
57
- COUNTERS_PAGE_SIZE,
58
- ICON_SIZE,
59
- KEYBOARD_STEP,
60
- MAX_CATEGORIES,
61
- MAX_SANKEY_NODES,
62
- MAX_SERIES,
63
- MAX_SUBCATEGORIES,
64
- MIN_COLUMN_WIDTH,
65
- SIDEBAR,
66
- SVG_STROKE_WIDTH,
67
- SVG_VIEWBOX,
68
- VIEWPORT_MARGIN
12
+ content,
13
+ styles as default,
14
+ footer,
15
+ header,
16
+ root
69
17
  };
70
18
  //# sourceMappingURL=index38.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index38.js","sources":["../src/constants.ts"],"sourcesContent":["/**\n * Shared constants for the component library.\n * Centralises magic numbers used across components.\n */\n\n/** SVG icon rendered sizes (px — used as HTML/SVG attributes, not CSS). */\nexport const ICON_SIZE = {\n SM: 14,\n MD: 16,\n LG: 18,\n} as const;\n\n/** Standard SVG viewBox for 24×24 icon grid. */\nexport const SVG_VIEWBOX = '0 0 24 24';\n\n/** Standard SVG stroke width. */\nexport const SVG_STROKE_WIDTH = 2;\n\n/** Keyboard accessibility step (percentage points per arrow press). */\nexport const KEYBOARD_STEP = 2;\n\n/** Viewport safety margin (px — used in JS calculations with DOM APIs). */\nexport const VIEWPORT_MARGIN = 32;\n\n/** ContextMenu viewport margin (px). */\nexport const CONTEXT_MENU_MARGIN = 10;\n\n/** ChartExpandModal dimension constraints (px — used with window.innerWidth). */\nexport const CHART_MODAL = {\n MIN_WIDTH: 960,\n MIN_HEIGHT: 480,\n MAX_WIDTH: 2400,\n MAX_HEIGHT: 1300,\n DEFAULT_WIDTH: 1500,\n DEFAULT_HEIGHT: 820,\n FALLBACK_WIDTH: 1400,\n FALLBACK_HEIGHT: 800,\n} as const;\n\n/** Maximum Sankey nodes before truncation warning. */\nexport const MAX_SANKEY_NODES = 150;\n\n/** Maximum stacked series before \"Other\" aggregation. */\nexport const MAX_SERIES = 20;\n\n/** Maximum categories in stacked bar chart. */\nexport const MAX_CATEGORIES = 20;\n\n/** Maximum subcategories per category. */\nexport const MAX_SUBCATEGORIES = 10;\n\n/** Time range preset durations in milliseconds. */\nexport const TIME_PRESET_MS = {\n '1h': 3_600_000,\n '6h': 21_600_000,\n '24h': 86_400_000,\n '7d': 604_800_000,\n '30d': 2_592_000_000,\n} as const;\n\n/** Default chart color palette. */\nexport const CHART_COLORS = [\n '#FF6B5A', '#5B8DEF', '#4ECDC4', '#F7B731', '#A55EEA',\n '#26DE81', '#FC5C65', '#45AAF2', '#FD9644', '#2BCBBA',\n '#D1D8E0', '#778CA3', '#EB3B5A', '#3867D6', '#20BF6B',\n '#F7B731', '#8854D0', '#0FB9B1', '#FA8231', '#4B6584',\n] as const;\n\n/** Minimum column width for resizable tables (px — used in JS calculations). */\nexport const MIN_COLUMN_WIDTH = 40;\n\n/** Sidebar dimension constants (px — used as inline styles). */\nexport const SIDEBAR = {\n WIDTH: 240,\n COLLAPSED_WIDTH: 80,\n} as const;\n\n/** Counters analysis pagination. */\nexport const COUNTERS_PAGE_SIZE = 100;\n"],"names":[],"mappings":"AAMO,MAAM,YAAY;AAAA,EACvB,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAGO,MAAM,cAAc;AAGpB,MAAM,mBAAmB;AAGzB,MAAM,gBAAgB;AAGtB,MAAM,kBAAkB;AAGxB,MAAM,sBAAsB;AAG5B,MAAM,cAAc;AAAA,EACzB,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,iBAAiB;AACnB;AAGO,MAAM,mBAAmB;AAGzB,MAAM,aAAa;AAGnB,MAAM,iBAAiB;AAGvB,MAAM,oBAAoB;AAY1B,MAAM,eAAe;AAAA,EAC1B;AAAA,EAAW;AAAA,EAAW;AAAA,EAAW;AAAA,EAAW;AAAA,EAC5C;AAAA,EAAW;AAAA,EAAW;AAAA,EAAW;AAAA,EAAW;AAAA,EAC5C;AAAA,EAAW;AAAA,EAAW;AAAA,EAAW;AAAA,EAAW;AAAA,EAC5C;AAAA,EAAW;AAAA,EAAW;AAAA,EAAW;AAAA,EAAW;AAC9C;AAGO,MAAM,mBAAmB;AAGzB,MAAM,UAAU;AAAA,EACrB,OAAO;AAAA,EACP,iBAAiB;AACnB;AAGO,MAAM,qBAAqB;"}
1
+ {"version":3,"file":"index38.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
package/dist/index39.cjs CHANGED
@@ -1,87 +1,70 @@
1
1
  "use strict";
2
- Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const root = "krc-root-WYIsp";
4
- const trigger = "krc-trigger-UedSS";
5
- const active = "krc-active-cH8Tl";
6
- const triggerContent = "krc-triggerContent-Kkhoi";
7
- const chevron = "krc-chevron-NoNsI";
8
- const label = "krc-label-RPlXR";
9
- const valueGroup = "krc-valueGroup-xfNcx";
10
- const value = "krc-value-aKdIW";
11
- const badge = "krc-badge-yVq9o";
12
- const clear = "krc-clear-11V9Q";
13
- const panel = "krc-panel-xf2f8";
14
- const header = "krc-header--VMR-";
15
- const search = "krc-search-4gQgB";
16
- const headerActions = "krc-headerActions-orxXD";
17
- const chip = "krc-chip--n-9m";
18
- const chipGhost = "krc-chipGhost-oayjh";
19
- const list = "krc-list-NRoxf";
20
- const status = "krc-status-j7xbM";
21
- const statusError = "krc-statusError-u6rfB";
22
- const option = "krc-option-ZAXum";
23
- const optionLabel = "krc-optionLabel-MdDyI";
24
- const optionCount = "krc-optionCount-JSQl9";
25
- const create = "krc-create-hO8Cq";
26
- const footer = "krc-footer-2yk6S";
27
- const selection = "krc-selection-aYDH-";
28
- const selectionDelta = "krc-selectionDelta-S1dV7";
29
- const footerActions = "krc-footerActions-77iCX";
30
- const styles = {
31
- root,
32
- trigger,
33
- active,
34
- triggerContent,
35
- chevron,
36
- label,
37
- valueGroup,
38
- value,
39
- badge,
40
- clear,
41
- panel,
42
- header,
43
- search,
44
- headerActions,
45
- chip,
46
- chipGhost,
47
- list,
48
- status,
49
- statusError,
50
- option,
51
- optionLabel,
52
- optionCount,
53
- create,
54
- footer,
55
- selection,
56
- selectionDelta,
57
- footerActions
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const ICON_SIZE = {
4
+ SM: 14,
5
+ MD: 16,
6
+ LG: 18
58
7
  };
59
- exports.active = active;
60
- exports.badge = badge;
61
- exports.chevron = chevron;
62
- exports.chip = chip;
63
- exports.chipGhost = chipGhost;
64
- exports.clear = clear;
65
- exports.create = create;
66
- exports.default = styles;
67
- exports.footer = footer;
68
- exports.footerActions = footerActions;
69
- exports.header = header;
70
- exports.headerActions = headerActions;
71
- exports.label = label;
72
- exports.list = list;
73
- exports.option = option;
74
- exports.optionCount = optionCount;
75
- exports.optionLabel = optionLabel;
76
- exports.panel = panel;
77
- exports.root = root;
78
- exports.search = search;
79
- exports.selection = selection;
80
- exports.selectionDelta = selectionDelta;
81
- exports.status = status;
82
- exports.statusError = statusError;
83
- exports.trigger = trigger;
84
- exports.triggerContent = triggerContent;
85
- exports.value = value;
86
- exports.valueGroup = valueGroup;
8
+ const SVG_VIEWBOX = "0 0 24 24";
9
+ const SVG_STROKE_WIDTH = 2;
10
+ const KEYBOARD_STEP = 2;
11
+ const VIEWPORT_MARGIN = 32;
12
+ const CONTEXT_MENU_MARGIN = 10;
13
+ const CHART_MODAL = {
14
+ MIN_WIDTH: 960,
15
+ MIN_HEIGHT: 480,
16
+ MAX_WIDTH: 2400,
17
+ MAX_HEIGHT: 1300,
18
+ DEFAULT_WIDTH: 1500,
19
+ DEFAULT_HEIGHT: 820,
20
+ FALLBACK_WIDTH: 1400,
21
+ FALLBACK_HEIGHT: 800
22
+ };
23
+ const MAX_SANKEY_NODES = 150;
24
+ const MAX_SERIES = 20;
25
+ const MAX_CATEGORIES = 20;
26
+ const MAX_SUBCATEGORIES = 10;
27
+ const CHART_COLORS = [
28
+ "#FF6B5A",
29
+ "#5B8DEF",
30
+ "#4ECDC4",
31
+ "#F7B731",
32
+ "#A55EEA",
33
+ "#26DE81",
34
+ "#FC5C65",
35
+ "#45AAF2",
36
+ "#FD9644",
37
+ "#2BCBBA",
38
+ "#D1D8E0",
39
+ "#778CA3",
40
+ "#EB3B5A",
41
+ "#3867D6",
42
+ "#20BF6B",
43
+ "#F7B731",
44
+ "#8854D0",
45
+ "#0FB9B1",
46
+ "#FA8231",
47
+ "#4B6584"
48
+ ];
49
+ const MIN_COLUMN_WIDTH = 40;
50
+ const SIDEBAR = {
51
+ WIDTH: 240,
52
+ COLLAPSED_WIDTH: 80
53
+ };
54
+ const COUNTERS_PAGE_SIZE = 100;
55
+ exports.CHART_COLORS = CHART_COLORS;
56
+ exports.CHART_MODAL = CHART_MODAL;
57
+ exports.CONTEXT_MENU_MARGIN = CONTEXT_MENU_MARGIN;
58
+ exports.COUNTERS_PAGE_SIZE = COUNTERS_PAGE_SIZE;
59
+ exports.ICON_SIZE = ICON_SIZE;
60
+ exports.KEYBOARD_STEP = KEYBOARD_STEP;
61
+ exports.MAX_CATEGORIES = MAX_CATEGORIES;
62
+ exports.MAX_SANKEY_NODES = MAX_SANKEY_NODES;
63
+ exports.MAX_SERIES = MAX_SERIES;
64
+ exports.MAX_SUBCATEGORIES = MAX_SUBCATEGORIES;
65
+ exports.MIN_COLUMN_WIDTH = MIN_COLUMN_WIDTH;
66
+ exports.SIDEBAR = SIDEBAR;
67
+ exports.SVG_STROKE_WIDTH = SVG_STROKE_WIDTH;
68
+ exports.SVG_VIEWBOX = SVG_VIEWBOX;
69
+ exports.VIEWPORT_MARGIN = VIEWPORT_MARGIN;
87
70
  //# sourceMappingURL=index39.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index39.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index39.cjs","sources":["../src/constants.ts"],"sourcesContent":["/**\n * Shared constants for the component library.\n * Centralises magic numbers used across components.\n */\n\n/** SVG icon rendered sizes (px — used as HTML/SVG attributes, not CSS). */\nexport const ICON_SIZE = {\n SM: 14,\n MD: 16,\n LG: 18,\n} as const;\n\n/** Standard SVG viewBox for 24×24 icon grid. */\nexport const SVG_VIEWBOX = '0 0 24 24';\n\n/** Standard SVG stroke width. */\nexport const SVG_STROKE_WIDTH = 2;\n\n/** Keyboard accessibility step (percentage points per arrow press). */\nexport const KEYBOARD_STEP = 2;\n\n/** Viewport safety margin (px — used in JS calculations with DOM APIs). */\nexport const VIEWPORT_MARGIN = 32;\n\n/** ContextMenu viewport margin (px). */\nexport const CONTEXT_MENU_MARGIN = 10;\n\n/** ChartExpandModal dimension constraints (px — used with window.innerWidth). */\nexport const CHART_MODAL = {\n MIN_WIDTH: 960,\n MIN_HEIGHT: 480,\n MAX_WIDTH: 2400,\n MAX_HEIGHT: 1300,\n DEFAULT_WIDTH: 1500,\n DEFAULT_HEIGHT: 820,\n FALLBACK_WIDTH: 1400,\n FALLBACK_HEIGHT: 800,\n} as const;\n\n/** Maximum Sankey nodes before truncation warning. */\nexport const MAX_SANKEY_NODES = 150;\n\n/** Maximum stacked series before \"Other\" aggregation. */\nexport const MAX_SERIES = 20;\n\n/** Maximum categories in stacked bar chart. */\nexport const MAX_CATEGORIES = 20;\n\n/** Maximum subcategories per category. */\nexport const MAX_SUBCATEGORIES = 10;\n\n/** Time range preset durations in milliseconds. */\nexport const TIME_PRESET_MS = {\n '1h': 3_600_000,\n '6h': 21_600_000,\n '24h': 86_400_000,\n '7d': 604_800_000,\n '30d': 2_592_000_000,\n} as const;\n\n/** Default chart color palette. */\nexport const CHART_COLORS = [\n '#FF6B5A', '#5B8DEF', '#4ECDC4', '#F7B731', '#A55EEA',\n '#26DE81', '#FC5C65', '#45AAF2', '#FD9644', '#2BCBBA',\n '#D1D8E0', '#778CA3', '#EB3B5A', '#3867D6', '#20BF6B',\n '#F7B731', '#8854D0', '#0FB9B1', '#FA8231', '#4B6584',\n] as const;\n\n/** Minimum column width for resizable tables (px — used in JS calculations). */\nexport const MIN_COLUMN_WIDTH = 40;\n\n/** Sidebar dimension constants (px — used as inline styles). */\nexport const SIDEBAR = {\n WIDTH: 240,\n COLLAPSED_WIDTH: 80,\n} as const;\n\n/** Counters analysis pagination. */\nexport const COUNTERS_PAGE_SIZE = 100;\n"],"names":[],"mappings":";;AAMO,MAAM,YAAY;AAAA,EACvB,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAGO,MAAM,cAAc;AAGpB,MAAM,mBAAmB;AAGzB,MAAM,gBAAgB;AAGtB,MAAM,kBAAkB;AAGxB,MAAM,sBAAsB;AAG5B,MAAM,cAAc;AAAA,EACzB,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,iBAAiB;AACnB;AAGO,MAAM,mBAAmB;AAGzB,MAAM,aAAa;AAGnB,MAAM,iBAAiB;AAGvB,MAAM,oBAAoB;AAY1B,MAAM,eAAe;AAAA,EAC1B;AAAA,EAAW;AAAA,EAAW;AAAA,EAAW;AAAA,EAAW;AAAA,EAC5C;AAAA,EAAW;AAAA,EAAW;AAAA,EAAW;AAAA,EAAW;AAAA,EAC5C;AAAA,EAAW;AAAA,EAAW;AAAA,EAAW;AAAA,EAAW;AAAA,EAC5C;AAAA,EAAW;AAAA,EAAW;AAAA,EAAW;AAAA,EAAW;AAC9C;AAGO,MAAM,mBAAmB;AAGzB,MAAM,UAAU;AAAA,EACrB,OAAO;AAAA,EACP,iBAAiB;AACnB;AAGO,MAAM,qBAAqB;;;;;;;;;;;;;;;;"}
package/dist/index39.js CHANGED
@@ -1,87 +1,70 @@
1
- const root = "krc-root-WYIsp";
2
- const trigger = "krc-trigger-UedSS";
3
- const active = "krc-active-cH8Tl";
4
- const triggerContent = "krc-triggerContent-Kkhoi";
5
- const chevron = "krc-chevron-NoNsI";
6
- const label = "krc-label-RPlXR";
7
- const valueGroup = "krc-valueGroup-xfNcx";
8
- const value = "krc-value-aKdIW";
9
- const badge = "krc-badge-yVq9o";
10
- const clear = "krc-clear-11V9Q";
11
- const panel = "krc-panel-xf2f8";
12
- const header = "krc-header--VMR-";
13
- const search = "krc-search-4gQgB";
14
- const headerActions = "krc-headerActions-orxXD";
15
- const chip = "krc-chip--n-9m";
16
- const chipGhost = "krc-chipGhost-oayjh";
17
- const list = "krc-list-NRoxf";
18
- const status = "krc-status-j7xbM";
19
- const statusError = "krc-statusError-u6rfB";
20
- const option = "krc-option-ZAXum";
21
- const optionLabel = "krc-optionLabel-MdDyI";
22
- const optionCount = "krc-optionCount-JSQl9";
23
- const create = "krc-create-hO8Cq";
24
- const footer = "krc-footer-2yk6S";
25
- const selection = "krc-selection-aYDH-";
26
- const selectionDelta = "krc-selectionDelta-S1dV7";
27
- const footerActions = "krc-footerActions-77iCX";
28
- const styles = {
29
- root,
30
- trigger,
31
- active,
32
- triggerContent,
33
- chevron,
34
- label,
35
- valueGroup,
36
- value,
37
- badge,
38
- clear,
39
- panel,
40
- header,
41
- search,
42
- headerActions,
43
- chip,
44
- chipGhost,
45
- list,
46
- status,
47
- statusError,
48
- option,
49
- optionLabel,
50
- optionCount,
51
- create,
52
- footer,
53
- selection,
54
- selectionDelta,
55
- footerActions
1
+ const ICON_SIZE = {
2
+ SM: 14,
3
+ MD: 16,
4
+ LG: 18
56
5
  };
6
+ const SVG_VIEWBOX = "0 0 24 24";
7
+ const SVG_STROKE_WIDTH = 2;
8
+ const KEYBOARD_STEP = 2;
9
+ const VIEWPORT_MARGIN = 32;
10
+ const CONTEXT_MENU_MARGIN = 10;
11
+ const CHART_MODAL = {
12
+ MIN_WIDTH: 960,
13
+ MIN_HEIGHT: 480,
14
+ MAX_WIDTH: 2400,
15
+ MAX_HEIGHT: 1300,
16
+ DEFAULT_WIDTH: 1500,
17
+ DEFAULT_HEIGHT: 820,
18
+ FALLBACK_WIDTH: 1400,
19
+ FALLBACK_HEIGHT: 800
20
+ };
21
+ const MAX_SANKEY_NODES = 150;
22
+ const MAX_SERIES = 20;
23
+ const MAX_CATEGORIES = 20;
24
+ const MAX_SUBCATEGORIES = 10;
25
+ const CHART_COLORS = [
26
+ "#FF6B5A",
27
+ "#5B8DEF",
28
+ "#4ECDC4",
29
+ "#F7B731",
30
+ "#A55EEA",
31
+ "#26DE81",
32
+ "#FC5C65",
33
+ "#45AAF2",
34
+ "#FD9644",
35
+ "#2BCBBA",
36
+ "#D1D8E0",
37
+ "#778CA3",
38
+ "#EB3B5A",
39
+ "#3867D6",
40
+ "#20BF6B",
41
+ "#F7B731",
42
+ "#8854D0",
43
+ "#0FB9B1",
44
+ "#FA8231",
45
+ "#4B6584"
46
+ ];
47
+ const MIN_COLUMN_WIDTH = 40;
48
+ const SIDEBAR = {
49
+ WIDTH: 240,
50
+ COLLAPSED_WIDTH: 80
51
+ };
52
+ const COUNTERS_PAGE_SIZE = 100;
57
53
  export {
58
- active,
59
- badge,
60
- chevron,
61
- chip,
62
- chipGhost,
63
- clear,
64
- create,
65
- styles as default,
66
- footer,
67
- footerActions,
68
- header,
69
- headerActions,
70
- label,
71
- list,
72
- option,
73
- optionCount,
74
- optionLabel,
75
- panel,
76
- root,
77
- search,
78
- selection,
79
- selectionDelta,
80
- status,
81
- statusError,
82
- trigger,
83
- triggerContent,
84
- value,
85
- valueGroup
54
+ CHART_COLORS,
55
+ CHART_MODAL,
56
+ CONTEXT_MENU_MARGIN,
57
+ COUNTERS_PAGE_SIZE,
58
+ ICON_SIZE,
59
+ KEYBOARD_STEP,
60
+ MAX_CATEGORIES,
61
+ MAX_SANKEY_NODES,
62
+ MAX_SERIES,
63
+ MAX_SUBCATEGORIES,
64
+ MIN_COLUMN_WIDTH,
65
+ SIDEBAR,
66
+ SVG_STROKE_WIDTH,
67
+ SVG_VIEWBOX,
68
+ VIEWPORT_MARGIN
86
69
  };
87
70
  //# sourceMappingURL=index39.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index39.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index39.js","sources":["../src/constants.ts"],"sourcesContent":["/**\n * Shared constants for the component library.\n * Centralises magic numbers used across components.\n */\n\n/** SVG icon rendered sizes (px — used as HTML/SVG attributes, not CSS). */\nexport const ICON_SIZE = {\n SM: 14,\n MD: 16,\n LG: 18,\n} as const;\n\n/** Standard SVG viewBox for 24×24 icon grid. */\nexport const SVG_VIEWBOX = '0 0 24 24';\n\n/** Standard SVG stroke width. */\nexport const SVG_STROKE_WIDTH = 2;\n\n/** Keyboard accessibility step (percentage points per arrow press). */\nexport const KEYBOARD_STEP = 2;\n\n/** Viewport safety margin (px — used in JS calculations with DOM APIs). */\nexport const VIEWPORT_MARGIN = 32;\n\n/** ContextMenu viewport margin (px). */\nexport const CONTEXT_MENU_MARGIN = 10;\n\n/** ChartExpandModal dimension constraints (px — used with window.innerWidth). */\nexport const CHART_MODAL = {\n MIN_WIDTH: 960,\n MIN_HEIGHT: 480,\n MAX_WIDTH: 2400,\n MAX_HEIGHT: 1300,\n DEFAULT_WIDTH: 1500,\n DEFAULT_HEIGHT: 820,\n FALLBACK_WIDTH: 1400,\n FALLBACK_HEIGHT: 800,\n} as const;\n\n/** Maximum Sankey nodes before truncation warning. */\nexport const MAX_SANKEY_NODES = 150;\n\n/** Maximum stacked series before \"Other\" aggregation. */\nexport const MAX_SERIES = 20;\n\n/** Maximum categories in stacked bar chart. */\nexport const MAX_CATEGORIES = 20;\n\n/** Maximum subcategories per category. */\nexport const MAX_SUBCATEGORIES = 10;\n\n/** Time range preset durations in milliseconds. */\nexport const TIME_PRESET_MS = {\n '1h': 3_600_000,\n '6h': 21_600_000,\n '24h': 86_400_000,\n '7d': 604_800_000,\n '30d': 2_592_000_000,\n} as const;\n\n/** Default chart color palette. */\nexport const CHART_COLORS = [\n '#FF6B5A', '#5B8DEF', '#4ECDC4', '#F7B731', '#A55EEA',\n '#26DE81', '#FC5C65', '#45AAF2', '#FD9644', '#2BCBBA',\n '#D1D8E0', '#778CA3', '#EB3B5A', '#3867D6', '#20BF6B',\n '#F7B731', '#8854D0', '#0FB9B1', '#FA8231', '#4B6584',\n] as const;\n\n/** Minimum column width for resizable tables (px — used in JS calculations). */\nexport const MIN_COLUMN_WIDTH = 40;\n\n/** Sidebar dimension constants (px — used as inline styles). */\nexport const SIDEBAR = {\n WIDTH: 240,\n COLLAPSED_WIDTH: 80,\n} as const;\n\n/** Counters analysis pagination. */\nexport const COUNTERS_PAGE_SIZE = 100;\n"],"names":[],"mappings":"AAMO,MAAM,YAAY;AAAA,EACvB,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAGO,MAAM,cAAc;AAGpB,MAAM,mBAAmB;AAGzB,MAAM,gBAAgB;AAGtB,MAAM,kBAAkB;AAGxB,MAAM,sBAAsB;AAG5B,MAAM,cAAc;AAAA,EACzB,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,YAAY;AAAA,EACZ,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,iBAAiB;AACnB;AAGO,MAAM,mBAAmB;AAGzB,MAAM,aAAa;AAGnB,MAAM,iBAAiB;AAGvB,MAAM,oBAAoB;AAY1B,MAAM,eAAe;AAAA,EAC1B;AAAA,EAAW;AAAA,EAAW;AAAA,EAAW;AAAA,EAAW;AAAA,EAC5C;AAAA,EAAW;AAAA,EAAW;AAAA,EAAW;AAAA,EAAW;AAAA,EAC5C;AAAA,EAAW;AAAA,EAAW;AAAA,EAAW;AAAA,EAAW;AAAA,EAC5C;AAAA,EAAW;AAAA,EAAW;AAAA,EAAW;AAAA,EAAW;AAC9C;AAGO,MAAM,mBAAmB;AAGzB,MAAM,UAAU;AAAA,EACrB,OAAO;AAAA,EACP,iBAAiB;AACnB;AAGO,MAAM,qBAAqB;"}
package/dist/index4.cjs CHANGED
@@ -1,15 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const react = require("react");
4
- function useEscapeKey(handler, enabled = true) {
4
+ function useClickOutside(ref, handler) {
5
5
  react.useEffect(() => {
6
- if (!enabled) return;
7
- const onKeyDown = (e) => {
8
- if (e.key === "Escape") handler();
6
+ const listener = (event) => {
7
+ if (!ref.current || ref.current.contains(event.target)) return;
8
+ handler(event);
9
9
  };
10
- document.addEventListener("keydown", onKeyDown);
11
- return () => document.removeEventListener("keydown", onKeyDown);
12
- }, [handler, enabled]);
10
+ document.addEventListener("mousedown", listener);
11
+ document.addEventListener("touchstart", listener);
12
+ return () => {
13
+ document.removeEventListener("mousedown", listener);
14
+ document.removeEventListener("touchstart", listener);
15
+ };
16
+ }, [ref, handler]);
13
17
  }
14
- exports.useEscapeKey = useEscapeKey;
18
+ exports.useClickOutside = useClickOutside;
15
19
  //# sourceMappingURL=index4.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index4.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;;"}
1
+ {"version":3,"file":"index4.cjs","sources":["../src/hooks/useClickOutside.ts"],"sourcesContent":["import { useEffect, type RefObject } from 'react';\n\n/** Calls `handler` when a click occurs outside the element referenced by `ref`. */\nexport function useClickOutside<T extends HTMLElement>(\n ref: RefObject<T | null>,\n handler: (event: MouseEvent | TouchEvent) => void,\n) {\n useEffect(() => {\n const listener = (event: MouseEvent | TouchEvent) => {\n if (!ref.current || ref.current.contains(event.target as Node)) return;\n handler(event);\n };\n document.addEventListener('mousedown', listener);\n document.addEventListener('touchstart', listener);\n return () => {\n document.removeEventListener('mousedown', listener);\n document.removeEventListener('touchstart', listener);\n };\n }, [ref, handler]);\n}\n"],"names":["useEffect"],"mappings":";;;AAGO,SAAS,gBACd,KACA,SACA;AACAA,QAAAA,UAAU,MAAM;AACd,UAAM,WAAW,CAAC,UAAmC;AACnD,UAAI,CAAC,IAAI,WAAW,IAAI,QAAQ,SAAS,MAAM,MAAc,EAAG;AAChE,cAAQ,KAAK;AAAA,IACf;AACA,aAAS,iBAAiB,aAAa,QAAQ;AAC/C,aAAS,iBAAiB,cAAc,QAAQ;AAChD,WAAO,MAAM;AACX,eAAS,oBAAoB,aAAa,QAAQ;AAClD,eAAS,oBAAoB,cAAc,QAAQ;AAAA,IACrD;AAAA,EACF,GAAG,CAAC,KAAK,OAAO,CAAC;AACnB;;"}
package/dist/index4.js CHANGED
@@ -1,15 +1,19 @@
1
1
  import { useEffect } from "react";
2
- function useEscapeKey(handler, enabled = true) {
2
+ function useClickOutside(ref, handler) {
3
3
  useEffect(() => {
4
- if (!enabled) return;
5
- const onKeyDown = (e) => {
6
- if (e.key === "Escape") handler();
4
+ const listener = (event) => {
5
+ if (!ref.current || ref.current.contains(event.target)) return;
6
+ handler(event);
7
7
  };
8
- document.addEventListener("keydown", onKeyDown);
9
- return () => document.removeEventListener("keydown", onKeyDown);
10
- }, [handler, enabled]);
8
+ document.addEventListener("mousedown", listener);
9
+ document.addEventListener("touchstart", listener);
10
+ return () => {
11
+ document.removeEventListener("mousedown", listener);
12
+ document.removeEventListener("touchstart", listener);
13
+ };
14
+ }, [ref, handler]);
11
15
  }
12
16
  export {
13
- useEscapeKey
17
+ useClickOutside
14
18
  };
15
19
  //# sourceMappingURL=index4.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index4.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;"}
1
+ {"version":3,"file":"index4.js","sources":["../src/hooks/useClickOutside.ts"],"sourcesContent":["import { useEffect, type RefObject } from 'react';\n\n/** Calls `handler` when a click occurs outside the element referenced by `ref`. */\nexport function useClickOutside<T extends HTMLElement>(\n ref: RefObject<T | null>,\n handler: (event: MouseEvent | TouchEvent) => void,\n) {\n useEffect(() => {\n const listener = (event: MouseEvent | TouchEvent) => {\n if (!ref.current || ref.current.contains(event.target as Node)) return;\n handler(event);\n };\n document.addEventListener('mousedown', listener);\n document.addEventListener('touchstart', listener);\n return () => {\n document.removeEventListener('mousedown', listener);\n document.removeEventListener('touchstart', listener);\n };\n }, [ref, handler]);\n}\n"],"names":[],"mappings":";AAGO,SAAS,gBACd,KACA,SACA;AACA,YAAU,MAAM;AACd,UAAM,WAAW,CAAC,UAAmC;AACnD,UAAI,CAAC,IAAI,WAAW,IAAI,QAAQ,SAAS,MAAM,MAAc,EAAG;AAChE,cAAQ,KAAK;AAAA,IACf;AACA,aAAS,iBAAiB,aAAa,QAAQ;AAC/C,aAAS,iBAAiB,cAAc,QAAQ;AAChD,WAAO,MAAM;AACX,eAAS,oBAAoB,aAAa,QAAQ;AAClD,eAAS,oBAAoB,cAAc,QAAQ;AAAA,IACrD;AAAA,EACF,GAAG,CAAC,KAAK,OAAO,CAAC;AACnB;"}
package/dist/index40.cjs CHANGED
@@ -1,9 +1,42 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const root = "krc-root-FVKOX";
3
+ const root = "krc-root-uKAJr";
4
+ const header = "krc-header-BWJPo";
5
+ const body = "krc-body-LCUxY";
6
+ const footer = "krc-footer-z4n8R";
7
+ const toggle = "krc-toggle-9T9IZ";
8
+ const section = "krc-section-us0Me";
9
+ const sectionTitle = "krc-sectionTitle-On1X-";
10
+ const sectionToggle = "krc-sectionToggle-eriVJ";
11
+ const sectionChevron = "krc-sectionChevron-cgn7M";
12
+ const sectionChevronOpen = "krc-sectionChevronOpen-Ja5Y3";
13
+ const sectionItems = "krc-sectionItems-iwvxo";
14
+ const collapsed = "krc-collapsed-JRXBy";
4
15
  const styles = {
5
- root
16
+ root,
17
+ header,
18
+ body,
19
+ footer,
20
+ toggle,
21
+ section,
22
+ sectionTitle,
23
+ sectionToggle,
24
+ sectionChevron,
25
+ sectionChevronOpen,
26
+ sectionItems,
27
+ collapsed
6
28
  };
29
+ exports.body = body;
30
+ exports.collapsed = collapsed;
7
31
  exports.default = styles;
32
+ exports.footer = footer;
33
+ exports.header = header;
8
34
  exports.root = root;
35
+ exports.section = section;
36
+ exports.sectionChevron = sectionChevron;
37
+ exports.sectionChevronOpen = sectionChevronOpen;
38
+ exports.sectionItems = sectionItems;
39
+ exports.sectionTitle = sectionTitle;
40
+ exports.sectionToggle = sectionToggle;
41
+ exports.toggle = toggle;
9
42
  //# sourceMappingURL=index40.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index40.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
1
+ {"version":3,"file":"index40.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index40.js CHANGED
@@ -1,9 +1,42 @@
1
- const root = "krc-root-FVKOX";
1
+ const root = "krc-root-uKAJr";
2
+ const header = "krc-header-BWJPo";
3
+ const body = "krc-body-LCUxY";
4
+ const footer = "krc-footer-z4n8R";
5
+ const toggle = "krc-toggle-9T9IZ";
6
+ const section = "krc-section-us0Me";
7
+ const sectionTitle = "krc-sectionTitle-On1X-";
8
+ const sectionToggle = "krc-sectionToggle-eriVJ";
9
+ const sectionChevron = "krc-sectionChevron-cgn7M";
10
+ const sectionChevronOpen = "krc-sectionChevronOpen-Ja5Y3";
11
+ const sectionItems = "krc-sectionItems-iwvxo";
12
+ const collapsed = "krc-collapsed-JRXBy";
2
13
  const styles = {
3
- root
14
+ root,
15
+ header,
16
+ body,
17
+ footer,
18
+ toggle,
19
+ section,
20
+ sectionTitle,
21
+ sectionToggle,
22
+ sectionChevron,
23
+ sectionChevronOpen,
24
+ sectionItems,
25
+ collapsed
4
26
  };
5
27
  export {
28
+ body,
29
+ collapsed,
6
30
  styles as default,
7
- root
31
+ footer,
32
+ header,
33
+ root,
34
+ section,
35
+ sectionChevron,
36
+ sectionChevronOpen,
37
+ sectionItems,
38
+ sectionTitle,
39
+ sectionToggle,
40
+ toggle
8
41
  };
9
42
  //# sourceMappingURL=index40.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index40.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
1
+ {"version":3,"file":"index40.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index41.cjs CHANGED
@@ -1,18 +1,27 @@
1
1
  "use strict";
2
2
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
3
- const root = "krc-root-AouLD";
4
- const header = "krc-header-pNze5";
5
- const content = "krc-content-egG2e";
6
- const footer = "krc-footer-WJw5Z";
3
+ const overlay = "krc-overlay-4gFc3";
4
+ const root = "krc-root-eKDda";
5
+ const header = "krc-header-YrzLd";
6
+ const title = "krc-title-9rzEH";
7
+ const closeBtn = "krc-closeBtn-vGJ7P";
8
+ const body = "krc-body-g43Cd";
9
+ const footer = "krc-footer-JRwi5";
7
10
  const styles = {
11
+ overlay,
8
12
  root,
9
13
  header,
10
- content,
14
+ title,
15
+ closeBtn,
16
+ body,
11
17
  footer
12
18
  };
13
- exports.content = content;
19
+ exports.body = body;
20
+ exports.closeBtn = closeBtn;
14
21
  exports.default = styles;
15
22
  exports.footer = footer;
16
23
  exports.header = header;
24
+ exports.overlay = overlay;
17
25
  exports.root = root;
26
+ exports.title = title;
18
27
  //# sourceMappingURL=index41.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index41.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index41.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}