@kjun-ui/react 0.20.0 → 0.22.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 (327) hide show
  1. package/README.md +19 -5
  2. package/dist/index.cjs +11354 -4458
  3. package/dist/index.js +10951 -4033
  4. package/dist/styles.css +3948 -738
  5. package/dist/types/packages/react/src/actions.d.cts +21 -16
  6. package/dist/types/packages/react/src/actions.d.ts +21 -16
  7. package/dist/types/packages/react/src/app-navigation.d.cts +14 -5
  8. package/dist/types/packages/react/src/app-navigation.d.ts +14 -5
  9. package/dist/types/packages/react/src/avatar-group.d.cts +36 -0
  10. package/dist/types/packages/react/src/avatar-group.d.ts +36 -0
  11. package/dist/types/packages/react/src/button.d.cts +14 -6
  12. package/dist/types/packages/react/src/button.d.ts +14 -6
  13. package/dist/types/packages/react/src/calendar.d.cts +6 -2
  14. package/dist/types/packages/react/src/calendar.d.ts +6 -2
  15. package/dist/types/packages/react/src/card-actions-context.d.cts +2 -0
  16. package/dist/types/packages/react/src/card-actions-context.d.ts +2 -0
  17. package/dist/types/packages/react/src/card.d.cts +23 -6
  18. package/dist/types/packages/react/src/card.d.ts +23 -6
  19. package/dist/types/packages/react/src/carousel.d.cts +8 -1
  20. package/dist/types/packages/react/src/carousel.d.ts +8 -1
  21. package/dist/types/packages/react/src/chip.d.cts +4 -2
  22. package/dist/types/packages/react/src/chip.d.ts +4 -2
  23. package/dist/types/packages/react/src/choice-controls.d.cts +99 -0
  24. package/dist/types/packages/react/src/choice-controls.d.ts +99 -0
  25. package/dist/types/packages/react/src/collapse.d.cts +4 -1
  26. package/dist/types/packages/react/src/collapse.d.ts +4 -1
  27. package/dist/types/packages/react/src/color-picker-parts.d.cts +58 -0
  28. package/dist/types/packages/react/src/color-picker-parts.d.ts +58 -0
  29. package/dist/types/packages/react/src/color-picker.d.cts +58 -0
  30. package/dist/types/packages/react/src/color-picker.d.ts +58 -0
  31. package/dist/types/packages/react/src/combobox.d.cts +18 -5
  32. package/dist/types/packages/react/src/combobox.d.ts +18 -5
  33. package/dist/types/packages/react/src/controls.d.cts +7 -74
  34. package/dist/types/packages/react/src/controls.d.ts +7 -74
  35. package/dist/types/packages/react/src/data-state.d.cts +22 -9
  36. package/dist/types/packages/react/src/data-state.d.ts +22 -9
  37. package/dist/types/packages/react/src/date-picker.d.cts +8 -2
  38. package/dist/types/packages/react/src/date-picker.d.ts +8 -2
  39. package/dist/types/packages/react/src/display.d.cts +40 -11
  40. package/dist/types/packages/react/src/display.d.ts +40 -11
  41. package/dist/types/packages/react/src/drawer.d.cts +11 -2
  42. package/dist/types/packages/react/src/drawer.d.ts +11 -2
  43. package/dist/types/packages/react/src/dropdown.d.cts +19 -5
  44. package/dist/types/packages/react/src/dropdown.d.ts +19 -5
  45. package/dist/types/packages/react/src/event-calendar.d.cts +47 -0
  46. package/dist/types/packages/react/src/event-calendar.d.ts +47 -0
  47. package/dist/types/packages/react/src/fab.d.cts +18 -7
  48. package/dist/types/packages/react/src/fab.d.ts +18 -7
  49. package/dist/types/packages/react/src/file-upload-row.d.cts +23 -0
  50. package/dist/types/packages/react/src/file-upload-row.d.ts +23 -0
  51. package/dist/types/packages/react/src/file-upload.d.cts +38 -0
  52. package/dist/types/packages/react/src/file-upload.d.ts +38 -0
  53. package/dist/types/packages/react/src/financial-display.d.cts +32 -11
  54. package/dist/types/packages/react/src/financial-display.d.ts +32 -11
  55. package/dist/types/packages/react/src/floating-panel.d.cts +6 -2
  56. package/dist/types/packages/react/src/floating-panel.d.ts +6 -2
  57. package/dist/types/packages/react/src/index.d.cts +16 -1
  58. package/dist/types/packages/react/src/index.d.ts +16 -1
  59. package/dist/types/packages/react/src/input.d.cts +14 -1
  60. package/dist/types/packages/react/src/input.d.ts +14 -1
  61. package/dist/types/packages/react/src/kpi-hero.d.cts +55 -0
  62. package/dist/types/packages/react/src/kpi-hero.d.ts +55 -0
  63. package/dist/types/packages/react/src/kpi-row.d.cts +46 -0
  64. package/dist/types/packages/react/src/kpi-row.d.ts +46 -0
  65. package/dist/types/packages/react/src/kpi.d.cts +2 -72
  66. package/dist/types/packages/react/src/kpi.d.ts +2 -72
  67. package/dist/types/packages/react/src/layout-primitives.d.cts +71 -139
  68. package/dist/types/packages/react/src/layout-primitives.d.ts +71 -139
  69. package/dist/types/packages/react/src/list-context.d.cts +9 -0
  70. package/dist/types/packages/react/src/list-context.d.ts +9 -0
  71. package/dist/types/packages/react/src/list.d.cts +84 -11
  72. package/dist/types/packages/react/src/list.d.ts +84 -11
  73. package/dist/types/packages/react/src/market-model.d.cts +13 -1
  74. package/dist/types/packages/react/src/market-model.d.ts +13 -1
  75. package/dist/types/packages/react/src/market-parts.d.cts +9 -0
  76. package/dist/types/packages/react/src/market-parts.d.ts +9 -0
  77. package/dist/types/packages/react/src/market-skeleton.d.cts +7 -1
  78. package/dist/types/packages/react/src/market-skeleton.d.ts +7 -1
  79. package/dist/types/packages/react/src/media.d.cts +6 -2
  80. package/dist/types/packages/react/src/media.d.ts +6 -2
  81. package/dist/types/packages/react/src/modal.d.cts +14 -2
  82. package/dist/types/packages/react/src/modal.d.ts +14 -2
  83. package/dist/types/packages/react/src/navigation.d.cts +36 -6
  84. package/dist/types/packages/react/src/navigation.d.ts +36 -6
  85. package/dist/types/packages/react/src/number-display.d.cts +10 -5
  86. package/dist/types/packages/react/src/number-display.d.ts +10 -5
  87. package/dist/types/packages/react/src/number-input.d.cts +28 -0
  88. package/dist/types/packages/react/src/number-input.d.ts +28 -0
  89. package/dist/types/packages/react/src/popover.d.cts +5 -2
  90. package/dist/types/packages/react/src/popover.d.ts +5 -2
  91. package/dist/types/packages/react/src/pressable.d.cts +17 -0
  92. package/dist/types/packages/react/src/pressable.d.ts +17 -0
  93. package/dist/types/packages/react/src/quantity-stepper.d.cts +3 -1
  94. package/dist/types/packages/react/src/quantity-stepper.d.ts +3 -1
  95. package/dist/types/packages/react/src/range-input.d.cts +15 -3
  96. package/dist/types/packages/react/src/range-input.d.ts +15 -3
  97. package/dist/types/packages/react/src/reorder-controls.d.cts +43 -0
  98. package/dist/types/packages/react/src/reorder-controls.d.ts +43 -0
  99. package/dist/types/packages/react/src/search-input.d.cts +6 -3
  100. package/dist/types/packages/react/src/search-input.d.ts +6 -3
  101. package/dist/types/packages/react/src/select-control.d.cts +7 -2
  102. package/dist/types/packages/react/src/select-control.d.ts +7 -2
  103. package/dist/types/packages/react/src/side-navigation-layout.d.cts +47 -0
  104. package/dist/types/packages/react/src/side-navigation-layout.d.ts +47 -0
  105. package/dist/types/packages/react/src/side-navigation.d.cts +74 -0
  106. package/dist/types/packages/react/src/side-navigation.d.ts +74 -0
  107. package/dist/types/packages/react/src/skeletons.d.cts +19 -3
  108. package/dist/types/packages/react/src/skeletons.d.ts +19 -3
  109. package/dist/types/packages/react/src/spinner-glyph.d.cts +8 -0
  110. package/dist/types/packages/react/src/spinner-glyph.d.ts +8 -0
  111. package/dist/types/packages/react/src/split-pane.d.cts +43 -0
  112. package/dist/types/packages/react/src/split-pane.d.ts +43 -0
  113. package/dist/types/packages/react/src/stacked-bar.d.cts +24 -0
  114. package/dist/types/packages/react/src/stacked-bar.d.ts +24 -0
  115. package/dist/types/packages/react/src/steps.d.cts +26 -0
  116. package/dist/types/packages/react/src/steps.d.ts +26 -0
  117. package/dist/types/packages/react/src/table-cards.d.cts +4 -12
  118. package/dist/types/packages/react/src/table-cards.d.ts +4 -12
  119. package/dist/types/packages/react/src/table-grid.d.cts +3 -7
  120. package/dist/types/packages/react/src/table-grid.d.ts +3 -7
  121. package/dist/types/packages/react/src/table-groups.d.cts +5 -0
  122. package/dist/types/packages/react/src/table-groups.d.ts +5 -0
  123. package/dist/types/packages/react/src/table-list.d.cts +2 -9
  124. package/dist/types/packages/react/src/table-list.d.ts +2 -9
  125. package/dist/types/packages/react/src/table-model.d.cts +6 -2
  126. package/dist/types/packages/react/src/table-model.d.ts +6 -2
  127. package/dist/types/packages/react/src/tabs.d.cts +3 -1
  128. package/dist/types/packages/react/src/tabs.d.ts +3 -1
  129. package/dist/types/packages/react/src/textarea.d.cts +6 -3
  130. package/dist/types/packages/react/src/textarea.d.ts +6 -3
  131. package/dist/types/packages/react/src/tiles.d.cts +18 -0
  132. package/dist/types/packages/react/src/tiles.d.ts +18 -0
  133. package/dist/types/packages/react/src/time-picker.d.cts +12 -2
  134. package/dist/types/packages/react/src/time-picker.d.ts +12 -2
  135. package/dist/types/packages/react/src/time-wheel.d.cts +18 -0
  136. package/dist/types/packages/react/src/time-wheel.d.ts +18 -0
  137. package/dist/types/packages/react/src/use-filter-scroll.d.cts +5 -0
  138. package/dist/types/packages/react/src/use-filter-scroll.d.ts +5 -0
  139. package/dist/types/packages/react/src/zone-gauge.d.cts +28 -0
  140. package/dist/types/packages/react/src/zone-gauge.d.ts +28 -0
  141. package/dist/types/shared/package-runtime/accordion-state.d.cts +2 -0
  142. package/dist/types/shared/package-runtime/accordion-state.d.ts +2 -0
  143. package/dist/types/shared/package-runtime/action-size.d.cts +4 -0
  144. package/dist/types/shared/package-runtime/action-size.d.ts +4 -0
  145. package/dist/types/shared/package-runtime/alert-action-size.d.cts +1 -0
  146. package/dist/types/shared/package-runtime/alert-action-size.d.ts +1 -0
  147. package/dist/types/shared/package-runtime/alert-actions.d.cts +7 -0
  148. package/dist/types/shared/package-runtime/alert-actions.d.ts +7 -0
  149. package/dist/types/shared/package-runtime/alert-exit.d.cts +6 -0
  150. package/dist/types/shared/package-runtime/alert-exit.d.ts +6 -0
  151. package/dist/types/shared/package-runtime/alert-live.d.cts +2 -0
  152. package/dist/types/shared/package-runtime/alert-live.d.ts +2 -0
  153. package/dist/types/shared/package-runtime/avatar-group.d.cts +18 -0
  154. package/dist/types/shared/package-runtime/avatar-group.d.ts +18 -0
  155. package/dist/types/shared/package-runtime/badge-tone.d.cts +8 -2
  156. package/dist/types/shared/package-runtime/badge-tone.d.ts +8 -2
  157. package/dist/types/shared/package-runtime/bottom-bar.d.cts +15 -0
  158. package/dist/types/shared/package-runtime/bottom-bar.d.ts +15 -0
  159. package/dist/types/shared/package-runtime/bottom-navigation.d.cts +30 -0
  160. package/dist/types/shared/package-runtime/bottom-navigation.d.ts +30 -0
  161. package/dist/types/shared/package-runtime/calendar.d.cts +21 -7
  162. package/dist/types/shared/package-runtime/calendar.d.ts +21 -7
  163. package/dist/types/shared/package-runtime/card-layout.d.cts +42 -0
  164. package/dist/types/shared/package-runtime/card-layout.d.ts +42 -0
  165. package/dist/types/shared/package-runtime/carousel-scroll.d.cts +2 -0
  166. package/dist/types/shared/package-runtime/carousel-scroll.d.ts +2 -0
  167. package/dist/types/shared/package-runtime/carousel.d.cts +12 -2
  168. package/dist/types/shared/package-runtime/carousel.d.ts +12 -2
  169. package/dist/types/shared/package-runtime/chart-skeleton.d.cts +2 -2
  170. package/dist/types/shared/package-runtime/chart-skeleton.d.ts +2 -2
  171. package/dist/types/shared/package-runtime/chip-size.d.cts +4 -0
  172. package/dist/types/shared/package-runtime/chip-size.d.ts +4 -0
  173. package/dist/types/shared/package-runtime/clipboard.d.cts +6 -0
  174. package/dist/types/shared/package-runtime/clipboard.d.ts +6 -0
  175. package/dist/types/shared/package-runtime/color-picker-model.d.cts +51 -0
  176. package/dist/types/shared/package-runtime/color-picker-model.d.ts +51 -0
  177. package/dist/types/shared/package-runtime/color-picker.d.cts +92 -0
  178. package/dist/types/shared/package-runtime/color-picker.d.ts +92 -0
  179. package/dist/types/shared/package-runtime/color.d.cts +22 -0
  180. package/dist/types/shared/package-runtime/color.d.ts +22 -0
  181. package/dist/types/shared/package-runtime/combobox-options.d.cts +13 -0
  182. package/dist/types/shared/package-runtime/combobox-options.d.ts +13 -0
  183. package/dist/types/shared/package-runtime/combobox.d.cts +3 -1
  184. package/dist/types/shared/package-runtime/combobox.d.ts +3 -1
  185. package/dist/types/shared/package-runtime/copy-button.d.cts +11 -0
  186. package/dist/types/shared/package-runtime/copy-button.d.ts +11 -0
  187. package/dist/types/shared/package-runtime/data-cells.d.cts +36 -0
  188. package/dist/types/shared/package-runtime/data-cells.d.ts +36 -0
  189. package/dist/types/shared/package-runtime/development.d.cts +4 -0
  190. package/dist/types/shared/package-runtime/development.d.ts +4 -0
  191. package/dist/types/shared/package-runtime/distribution.d.cts +168 -0
  192. package/dist/types/shared/package-runtime/distribution.d.ts +168 -0
  193. package/dist/types/shared/package-runtime/drawer-geometry.d.cts +7 -0
  194. package/dist/types/shared/package-runtime/drawer-geometry.d.ts +7 -0
  195. package/dist/types/shared/package-runtime/empty-geometry.d.cts +19 -0
  196. package/dist/types/shared/package-runtime/empty-geometry.d.ts +19 -0
  197. package/dist/types/shared/package-runtime/event-calendar.d.cts +81 -0
  198. package/dist/types/shared/package-runtime/event-calendar.d.ts +81 -0
  199. package/dist/types/shared/package-runtime/external-link.d.cts +4 -0
  200. package/dist/types/shared/package-runtime/external-link.d.ts +4 -0
  201. package/dist/types/shared/package-runtime/file-upload.d.cts +128 -0
  202. package/dist/types/shared/package-runtime/file-upload.d.ts +128 -0
  203. package/dist/types/shared/package-runtime/filter-scroll.d.cts +5 -0
  204. package/dist/types/shared/package-runtime/filter-scroll.d.ts +5 -0
  205. package/dist/types/shared/package-runtime/filter-value.d.cts +2 -0
  206. package/dist/types/shared/package-runtime/filter-value.d.ts +2 -0
  207. package/dist/types/shared/package-runtime/input-field.d.cts +23 -0
  208. package/dist/types/shared/package-runtime/input-field.d.ts +23 -0
  209. package/dist/types/shared/package-runtime/input-variant.d.cts +7 -0
  210. package/dist/types/shared/package-runtime/input-variant.d.ts +7 -0
  211. package/dist/types/shared/package-runtime/kpi.d.cts +102 -0
  212. package/dist/types/shared/package-runtime/kpi.d.ts +102 -0
  213. package/dist/types/shared/package-runtime/layer-state.d.cts +2 -1
  214. package/dist/types/shared/package-runtime/layer-state.d.ts +2 -1
  215. package/dist/types/shared/package-runtime/layout-primitives.d.cts +115 -6
  216. package/dist/types/shared/package-runtime/layout-primitives.d.ts +115 -6
  217. package/dist/types/shared/package-runtime/list-leading.d.cts +38 -0
  218. package/dist/types/shared/package-runtime/list-leading.d.ts +38 -0
  219. package/dist/types/shared/package-runtime/list-row.d.cts +152 -4
  220. package/dist/types/shared/package-runtime/list-row.d.ts +152 -4
  221. package/dist/types/shared/package-runtime/market-layout.d.cts +6 -2
  222. package/dist/types/shared/package-runtime/market-layout.d.ts +6 -2
  223. package/dist/types/shared/package-runtime/market-query.d.cts +21 -0
  224. package/dist/types/shared/package-runtime/market-query.d.ts +21 -0
  225. package/dist/types/shared/package-runtime/market-table.d.cts +32 -0
  226. package/dist/types/shared/package-runtime/market-table.d.ts +32 -0
  227. package/dist/types/shared/package-runtime/menu-button.d.cts +4 -0
  228. package/dist/types/shared/package-runtime/menu-button.d.ts +4 -0
  229. package/dist/types/shared/package-runtime/messages/ko.d.cts +101 -1
  230. package/dist/types/shared/package-runtime/messages/ko.d.ts +101 -1
  231. package/dist/types/shared/package-runtime/messages-context.d.cts +93 -1
  232. package/dist/types/shared/package-runtime/messages-context.d.ts +93 -1
  233. package/dist/types/shared/package-runtime/minimum-loading.d.cts +3 -0
  234. package/dist/types/shared/package-runtime/minimum-loading.d.ts +3 -0
  235. package/dist/types/shared/package-runtime/modal-geometry.d.cts +15 -0
  236. package/dist/types/shared/package-runtime/modal-geometry.d.ts +15 -0
  237. package/dist/types/shared/package-runtime/navigation.d.cts +9 -2
  238. package/dist/types/shared/package-runtime/navigation.d.ts +9 -2
  239. package/dist/types/shared/package-runtime/nested-controls.d.cts +7 -0
  240. package/dist/types/shared/package-runtime/nested-controls.d.ts +7 -0
  241. package/dist/types/shared/package-runtime/number-input.d.cts +63 -0
  242. package/dist/types/shared/package-runtime/number-input.d.ts +63 -0
  243. package/dist/types/shared/package-runtime/number-sign.d.cts +9 -0
  244. package/dist/types/shared/package-runtime/number-sign.d.ts +9 -0
  245. package/dist/types/shared/package-runtime/options.d.cts +25 -5
  246. package/dist/types/shared/package-runtime/options.d.ts +25 -5
  247. package/dist/types/shared/package-runtime/pagination.d.cts +12 -0
  248. package/dist/types/shared/package-runtime/pagination.d.ts +12 -0
  249. package/dist/types/shared/package-runtime/popover-scroll.d.cts +3 -0
  250. package/dist/types/shared/package-runtime/popover-scroll.d.ts +3 -0
  251. package/dist/types/shared/package-runtime/press-repeat.d.cts +13 -0
  252. package/dist/types/shared/package-runtime/press-repeat.d.ts +13 -0
  253. package/dist/types/shared/package-runtime/progress-circle.d.cts +5 -0
  254. package/dist/types/shared/package-runtime/progress-circle.d.ts +5 -0
  255. package/dist/types/shared/package-runtime/progress-marker.d.cts +7 -0
  256. package/dist/types/shared/package-runtime/progress-marker.d.ts +7 -0
  257. package/dist/types/shared/package-runtime/radio-keyboard.d.cts +2 -0
  258. package/dist/types/shared/package-runtime/radio-keyboard.d.ts +2 -0
  259. package/dist/types/shared/package-runtime/reorder-session.d.cts +62 -0
  260. package/dist/types/shared/package-runtime/reorder-session.d.ts +62 -0
  261. package/dist/types/shared/package-runtime/reorder.d.cts +81 -0
  262. package/dist/types/shared/package-runtime/reorder.d.ts +81 -0
  263. package/dist/types/shared/package-runtime/select-trigger.d.cts +23 -0
  264. package/dist/types/shared/package-runtime/select-trigger.d.ts +23 -0
  265. package/dist/types/shared/package-runtime/sheet-drag.d.cts +24 -0
  266. package/dist/types/shared/package-runtime/sheet-drag.d.ts +24 -0
  267. package/dist/types/shared/package-runtime/side-navigation-keys.d.cts +23 -0
  268. package/dist/types/shared/package-runtime/side-navigation-keys.d.ts +23 -0
  269. package/dist/types/shared/package-runtime/side-navigation-scroll.d.cts +7 -0
  270. package/dist/types/shared/package-runtime/side-navigation-scroll.d.ts +7 -0
  271. package/dist/types/shared/package-runtime/side-navigation.d.cts +277 -0
  272. package/dist/types/shared/package-runtime/side-navigation.d.ts +277 -0
  273. package/dist/types/shared/package-runtime/signed-number.d.cts +33 -0
  274. package/dist/types/shared/package-runtime/signed-number.d.ts +33 -0
  275. package/dist/types/shared/package-runtime/skeleton-text.d.cts +18 -0
  276. package/dist/types/shared/package-runtime/skeleton-text.d.ts +18 -0
  277. package/dist/types/shared/package-runtime/slider-view.d.cts +17 -2
  278. package/dist/types/shared/package-runtime/slider-view.d.ts +17 -2
  279. package/dist/types/shared/package-runtime/sparkline.d.cts +8 -4
  280. package/dist/types/shared/package-runtime/sparkline.d.ts +8 -4
  281. package/dist/types/shared/package-runtime/spinner-geometry.d.cts +14 -0
  282. package/dist/types/shared/package-runtime/spinner-geometry.d.ts +14 -0
  283. package/dist/types/shared/package-runtime/split-pane.d.cts +85 -0
  284. package/dist/types/shared/package-runtime/split-pane.d.ts +85 -0
  285. package/dist/types/shared/package-runtime/steps.d.cts +37 -0
  286. package/dist/types/shared/package-runtime/steps.d.ts +37 -0
  287. package/dist/types/shared/package-runtime/tab-keyboard.d.cts +6 -0
  288. package/dist/types/shared/package-runtime/tab-keyboard.d.ts +6 -0
  289. package/dist/types/shared/package-runtime/table-columns.d.cts +36 -0
  290. package/dist/types/shared/package-runtime/table-columns.d.ts +36 -0
  291. package/dist/types/shared/package-runtime/table-model.d.cts +23 -3
  292. package/dist/types/shared/package-runtime/table-model.d.ts +23 -3
  293. package/dist/types/shared/package-runtime/table-presentation.d.cts +33 -4
  294. package/dist/types/shared/package-runtime/table-presentation.d.ts +33 -4
  295. package/dist/types/shared/package-runtime/table.d.cts +44 -2
  296. package/dist/types/shared/package-runtime/table.d.ts +44 -2
  297. package/dist/types/shared/package-runtime/textarea.d.cts +6 -4
  298. package/dist/types/shared/package-runtime/textarea.d.ts +6 -4
  299. package/dist/types/shared/package-runtime/tiles-children.d.cts +7 -0
  300. package/dist/types/shared/package-runtime/tiles-children.d.ts +7 -0
  301. package/dist/types/shared/package-runtime/tiles.d.cts +18 -0
  302. package/dist/types/shared/package-runtime/tiles.d.ts +18 -0
  303. package/dist/types/shared/package-runtime/time-segments.d.cts +24 -0
  304. package/dist/types/shared/package-runtime/time-segments.d.ts +24 -0
  305. package/dist/types/shared/package-runtime/time-wheel.d.cts +54 -0
  306. package/dist/types/shared/package-runtime/time-wheel.d.ts +54 -0
  307. package/dist/types/shared/package-runtime/trailing-overflow.d.cts +1 -0
  308. package/dist/types/shared/package-runtime/trailing-overflow.d.ts +1 -0
  309. package/dist/types/shared/package-runtime/use-color-picker.d.cts +54 -0
  310. package/dist/types/shared/package-runtime/use-color-picker.d.ts +54 -0
  311. package/dist/types/shared/package-runtime/use-copy-feedback.d.cts +10 -0
  312. package/dist/types/shared/package-runtime/use-copy-feedback.d.ts +10 -0
  313. package/dist/types/shared/package-runtime/use-layer.d.cts +4 -2
  314. package/dist/types/shared/package-runtime/use-layer.d.ts +4 -2
  315. package/dist/types/shared/package-runtime/use-open-state.d.cts +5 -0
  316. package/dist/types/shared/package-runtime/use-open-state.d.ts +5 -0
  317. package/dist/types/shared/package-runtime/use-pending-action.d.cts +6 -0
  318. package/dist/types/shared/package-runtime/use-pending-action.d.ts +6 -0
  319. package/dist/types/shared/package-runtime/use-side-navigation-state.d.cts +25 -0
  320. package/dist/types/shared/package-runtime/use-side-navigation-state.d.ts +25 -0
  321. package/dist/types/shared/package-runtime/use-slide.d.cts +3 -0
  322. package/dist/types/shared/package-runtime/use-slide.d.ts +3 -0
  323. package/package.json +3 -3
  324. package/dist/types/packages/react/src/compound-control.d.cts +0 -1
  325. package/dist/types/packages/react/src/compound-control.d.ts +0 -1
  326. package/dist/types/shared/package-runtime/center-option.d.cts +0 -1
  327. package/dist/types/shared/package-runtime/center-option.d.ts +0 -1
@@ -1,10 +1,11 @@
1
1
  import { type BreadcrumbItem } from "../../../shared/package-runtime/breadcrumb.cjs";
2
- import { type ReactNode } from "react";
2
+ import { type CSSProperties, type MouseEvent, type ReactNode } from "react";
3
3
  export * from "./tabs.cjs";
4
4
  export interface KjunAccordionProps {
5
5
  multiple?: boolean;
6
+ /** The group's fill (default muted: an in-flow panel set apart by its fill, not an outline; card sits it on the card colour). */
6
7
  tone?: "card" | "muted";
7
- /** Draws a line between items from the text start, like ListSection (default false: rows are set apart by height alone). */
8
+ /** Draws a line between items from the text start, like ListSection (default true; false sets rows apart by height alone). */
8
9
  divider?: boolean;
9
10
  /** Gives every item its own rounded surface with a gap between them; divider has no effect then. */
10
11
  separated?: boolean;
@@ -12,10 +13,19 @@ export interface KjunAccordionProps {
12
13
  headingLevel?: AccordionHeadingLevel;
13
14
  /** Open panels are labelled regions (default true). Turn off for long lists, where many landmarks crowd a screen reader. */
14
15
  region?: boolean;
16
+ /** Controlled open items, by each item's value (give the items a value). A single-open Accordion shows the last one. */
17
+ value?: string[];
18
+ /** The items open at first, by value, when value is not given. */
19
+ defaultValue?: string[];
20
+ /** Requests a change when controlled; reports every change otherwise. Items without a value report an internal id. */
21
+ onValueChange?: (value: string[]) => void;
22
+ className?: string;
23
+ style?: CSSProperties;
24
+ id?: string;
15
25
  children: ReactNode;
16
26
  }
17
27
  export type AccordionHeadingLevel = 2 | 3 | 4 | 5 | 6 | false;
18
- export declare function KjunAccordion({ multiple, tone, divider, separated, headingLevel, region, children, }: KjunAccordionProps): import("react/jsx-runtime").JSX.Element;
28
+ export declare function KjunAccordion({ multiple, tone, divider, separated, headingLevel, region, value, defaultValue, onValueChange, className, style, id, children, }: KjunAccordionProps): import("react/jsx-runtime").JSX.Element;
19
29
  export interface KjunAccordionItemProps {
20
30
  title?: string;
21
31
  /** A secondary line under the title (caption, secondary text). */
@@ -27,6 +37,10 @@ export interface KjunAccordionItemProps {
27
37
  open?: boolean;
28
38
  /** Requests a change on a controlled item; reports every change on an uncontrolled one (also when a sibling closes it). */
29
39
  onOpenChange?: (open: boolean) => void;
40
+ /** Called once the item has finished opening, after its height motion: the panel has its full height (e.g. to scroll a result into view). */
41
+ onAfterOpen?: () => void;
42
+ /** Called once the item has finished closing. */
43
+ onAfterClose?: () => void;
30
44
  /** Keeps the body mounted after it first opens, so inputs keep their state while closed. */
31
45
  keepMounted?: boolean;
32
46
  disabled?: boolean;
@@ -34,18 +48,29 @@ export interface KjunAccordionItemProps {
34
48
  header?: ReactNode;
35
49
  /** The header's accessible name when header is not plain text. */
36
50
  ariaLabel?: string;
51
+ /** Names the item in the Accordion's value, defaultValue and onValueChange. */
52
+ value?: string;
53
+ /** Information at the end of the header, before the chevron, such as a status badge, an amount or a count.
54
+ * It is part of the header button, so no buttons or links. */
55
+ trailing?: ReactNode;
56
+ className?: string;
57
+ style?: CSSProperties;
58
+ id?: string;
37
59
  children: ReactNode;
38
60
  }
39
- export declare function KjunAccordionItem({ title, description, icon, defaultOpen, disabled, header, ariaLabel, open: openProp, onOpenChange, keepMounted, children, }: KjunAccordionItemProps): import("react/jsx-runtime").JSX.Element;
61
+ export declare function KjunAccordionItem({ title, description, icon, defaultOpen, disabled, header, ariaLabel, open: openProp, onOpenChange, onAfterOpen, onAfterClose, keepMounted, value, trailing, className, style, id: rootId, children, }: KjunAccordionItemProps): import("react/jsx-runtime").JSX.Element;
40
62
  export type { BreadcrumbItem };
41
63
  export interface KjunBreadcrumbProps {
42
64
  items: BreadcrumbItem[];
43
65
  renderLink?: (item: BreadcrumbItem, children: ReactNode) => ReactNode;
66
+ /** A step with `to` was chosen. Trail links keep their href and pass the click: call event.preventDefault() to route in the app.
67
+ * Steps folded into the "…" menu call it without an event and no longer follow their href, so a router reaches them too. */
68
+ onNavigate?: (item: BreadcrumbItem, event?: MouseEvent<HTMLAnchorElement>) => void;
44
69
  ariaLabel?: string;
45
70
  /** Folds a long trail: the first step and the last maxItems - 1 stay, and the steps between open from a "…" menu. */
46
71
  maxItems?: number;
47
72
  }
48
- export declare function KjunBreadcrumb({ items, renderLink, ariaLabel, maxItems, }: KjunBreadcrumbProps): import("react/jsx-runtime").JSX.Element | null;
73
+ export declare function KjunBreadcrumb({ items, renderLink, onNavigate, ariaLabel, maxItems, }: KjunBreadcrumbProps): import("react/jsx-runtime").JSX.Element | null;
49
74
  export interface KjunPaginationProps {
50
75
  currentPage?: number;
51
76
  page?: number;
@@ -57,9 +82,14 @@ export interface KjunPaginationProps {
57
82
  showInfo?: boolean;
58
83
  showSizeSelector?: boolean;
59
84
  showFirstLast?: boolean;
85
+ /** "auto" switches to the short form below the pagination breakpoint; "full" and "compact" keep one form. */
86
+ layout?: KjunPaginationLayout;
87
+ /** Locks every control, for example while the next page loads. The current page keeps its fill. */
88
+ disabled?: boolean;
60
89
  formatter?: (value: number) => string;
61
90
  onPageChange?: (page: number) => void;
62
91
  onChange?: (page: number) => void;
63
92
  onPageSizeChange?: (size: number) => void;
64
93
  }
65
- export declare function KjunPagination({ currentPage, page, totalPages, totalRows, pageSize, pageSizeOptions, siblingCount, showInfo, showSizeSelector, showFirstLast, formatter, onPageChange, onChange, onPageSizeChange, }: KjunPaginationProps): import("react/jsx-runtime").JSX.Element | null;
94
+ export type KjunPaginationLayout = "auto" | "full" | "compact";
95
+ export declare function KjunPagination({ currentPage, page, totalPages, totalRows, pageSize, pageSizeOptions, siblingCount, showInfo, showSizeSelector, showFirstLast, layout, disabled, formatter, onPageChange, onChange, onPageSizeChange, }: KjunPaginationProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,10 +1,11 @@
1
1
  import { type BreadcrumbItem } from "../../../shared/package-runtime/breadcrumb.js";
2
- import { type ReactNode } from "react";
2
+ import { type CSSProperties, type MouseEvent, type ReactNode } from "react";
3
3
  export * from "./tabs.js";
4
4
  export interface KjunAccordionProps {
5
5
  multiple?: boolean;
6
+ /** The group's fill (default muted: an in-flow panel set apart by its fill, not an outline; card sits it on the card colour). */
6
7
  tone?: "card" | "muted";
7
- /** Draws a line between items from the text start, like ListSection (default false: rows are set apart by height alone). */
8
+ /** Draws a line between items from the text start, like ListSection (default true; false sets rows apart by height alone). */
8
9
  divider?: boolean;
9
10
  /** Gives every item its own rounded surface with a gap between them; divider has no effect then. */
10
11
  separated?: boolean;
@@ -12,10 +13,19 @@ export interface KjunAccordionProps {
12
13
  headingLevel?: AccordionHeadingLevel;
13
14
  /** Open panels are labelled regions (default true). Turn off for long lists, where many landmarks crowd a screen reader. */
14
15
  region?: boolean;
16
+ /** Controlled open items, by each item's value (give the items a value). A single-open Accordion shows the last one. */
17
+ value?: string[];
18
+ /** The items open at first, by value, when value is not given. */
19
+ defaultValue?: string[];
20
+ /** Requests a change when controlled; reports every change otherwise. Items without a value report an internal id. */
21
+ onValueChange?: (value: string[]) => void;
22
+ className?: string;
23
+ style?: CSSProperties;
24
+ id?: string;
15
25
  children: ReactNode;
16
26
  }
17
27
  export type AccordionHeadingLevel = 2 | 3 | 4 | 5 | 6 | false;
18
- export declare function KjunAccordion({ multiple, tone, divider, separated, headingLevel, region, children, }: KjunAccordionProps): import("react/jsx-runtime").JSX.Element;
28
+ export declare function KjunAccordion({ multiple, tone, divider, separated, headingLevel, region, value, defaultValue, onValueChange, className, style, id, children, }: KjunAccordionProps): import("react/jsx-runtime").JSX.Element;
19
29
  export interface KjunAccordionItemProps {
20
30
  title?: string;
21
31
  /** A secondary line under the title (caption, secondary text). */
@@ -27,6 +37,10 @@ export interface KjunAccordionItemProps {
27
37
  open?: boolean;
28
38
  /** Requests a change on a controlled item; reports every change on an uncontrolled one (also when a sibling closes it). */
29
39
  onOpenChange?: (open: boolean) => void;
40
+ /** Called once the item has finished opening, after its height motion: the panel has its full height (e.g. to scroll a result into view). */
41
+ onAfterOpen?: () => void;
42
+ /** Called once the item has finished closing. */
43
+ onAfterClose?: () => void;
30
44
  /** Keeps the body mounted after it first opens, so inputs keep their state while closed. */
31
45
  keepMounted?: boolean;
32
46
  disabled?: boolean;
@@ -34,18 +48,29 @@ export interface KjunAccordionItemProps {
34
48
  header?: ReactNode;
35
49
  /** The header's accessible name when header is not plain text. */
36
50
  ariaLabel?: string;
51
+ /** Names the item in the Accordion's value, defaultValue and onValueChange. */
52
+ value?: string;
53
+ /** Information at the end of the header, before the chevron, such as a status badge, an amount or a count.
54
+ * It is part of the header button, so no buttons or links. */
55
+ trailing?: ReactNode;
56
+ className?: string;
57
+ style?: CSSProperties;
58
+ id?: string;
37
59
  children: ReactNode;
38
60
  }
39
- export declare function KjunAccordionItem({ title, description, icon, defaultOpen, disabled, header, ariaLabel, open: openProp, onOpenChange, keepMounted, children, }: KjunAccordionItemProps): import("react/jsx-runtime").JSX.Element;
61
+ export declare function KjunAccordionItem({ title, description, icon, defaultOpen, disabled, header, ariaLabel, open: openProp, onOpenChange, onAfterOpen, onAfterClose, keepMounted, value, trailing, className, style, id: rootId, children, }: KjunAccordionItemProps): import("react/jsx-runtime").JSX.Element;
40
62
  export type { BreadcrumbItem };
41
63
  export interface KjunBreadcrumbProps {
42
64
  items: BreadcrumbItem[];
43
65
  renderLink?: (item: BreadcrumbItem, children: ReactNode) => ReactNode;
66
+ /** A step with `to` was chosen. Trail links keep their href and pass the click: call event.preventDefault() to route in the app.
67
+ * Steps folded into the "…" menu call it without an event and no longer follow their href, so a router reaches them too. */
68
+ onNavigate?: (item: BreadcrumbItem, event?: MouseEvent<HTMLAnchorElement>) => void;
44
69
  ariaLabel?: string;
45
70
  /** Folds a long trail: the first step and the last maxItems - 1 stay, and the steps between open from a "…" menu. */
46
71
  maxItems?: number;
47
72
  }
48
- export declare function KjunBreadcrumb({ items, renderLink, ariaLabel, maxItems, }: KjunBreadcrumbProps): import("react/jsx-runtime").JSX.Element | null;
73
+ export declare function KjunBreadcrumb({ items, renderLink, onNavigate, ariaLabel, maxItems, }: KjunBreadcrumbProps): import("react/jsx-runtime").JSX.Element | null;
49
74
  export interface KjunPaginationProps {
50
75
  currentPage?: number;
51
76
  page?: number;
@@ -57,9 +82,14 @@ export interface KjunPaginationProps {
57
82
  showInfo?: boolean;
58
83
  showSizeSelector?: boolean;
59
84
  showFirstLast?: boolean;
85
+ /** "auto" switches to the short form below the pagination breakpoint; "full" and "compact" keep one form. */
86
+ layout?: KjunPaginationLayout;
87
+ /** Locks every control, for example while the next page loads. The current page keeps its fill. */
88
+ disabled?: boolean;
60
89
  formatter?: (value: number) => string;
61
90
  onPageChange?: (page: number) => void;
62
91
  onChange?: (page: number) => void;
63
92
  onPageSizeChange?: (size: number) => void;
64
93
  }
65
- export declare function KjunPagination({ currentPage, page, totalPages, totalRows, pageSize, pageSizeOptions, siblingCount, showInfo, showSizeSelector, showFirstLast, formatter, onPageChange, onChange, onPageSizeChange, }: KjunPaginationProps): import("react/jsx-runtime").JSX.Element | null;
94
+ export type KjunPaginationLayout = "auto" | "full" | "compact";
95
+ export declare function KjunPagination({ currentPage, page, totalPages, totalRows, pageSize, pageSizeOptions, siblingCount, showInfo, showSizeSelector, showFirstLast, layout, disabled, formatter, onPageChange, onChange, onPageSizeChange, }: KjunPaginationProps): import("react/jsx-runtime").JSX.Element | null;
@@ -1,6 +1,8 @@
1
1
  import { type ReactNode } from "react";
2
- export declare const finiteNumber: (value: unknown) => number | null;
3
- export declare const format: (value: number, decimals?: number) => string;
2
+ import { type PriceFlash } from "../../../shared/package-runtime/data-cells.cjs";
3
+ /** A leading sign drawn tight to its digits (see splitNumberSign); other content passes through. */
4
+ export declare function signedText(value: ReactNode): ReactNode;
5
+ export { finiteNumber, format } from "../../../shared/package-runtime/signed-number.cjs";
4
6
  export declare function useCountUp(value: number | string, animated: boolean, fromPrevious: boolean): string | number;
5
7
  export interface KjunAnimatedNumberProps {
6
8
  value: number | string;
@@ -24,14 +26,17 @@ export interface KjunPriceCellProps {
24
26
  /** The app's status after the price, such as a KjunBadge; KJUN owns only its spacing and alignment.
25
27
  * With no price (value null) a status still shows after a dash, for states such as "거래정지"; without one null is loading. */
26
28
  status?: ReactNode;
29
+ /** Flash when the value moves: true or "text" colours the digits up or down, "background" fills the cell's pill.
30
+ * Off under reduced motion. */
31
+ flash?: PriceFlash;
32
+ /** @deprecated Use flash. A class the app adds and removes itself. */
27
33
  flashClass?: string;
28
34
  fromPrevious?: boolean;
29
35
  }
30
- export declare function KjunPriceCell({ value, formatter, stale, status, flashClass, fromPrevious, }: KjunPriceCellProps): import("react/jsx-runtime").JSX.Element;
36
+ export declare function KjunPriceCell({ value, formatter, stale, status, flash, flashClass, fromPrevious, }: KjunPriceCellProps): import("react/jsx-runtime").JSX.Element;
31
37
  export interface KjunSignedValueProps {
32
38
  value?: number | string | null;
33
39
  format?: "number" | "percent";
34
- isRaw?: boolean;
35
40
  decimals?: number;
36
41
  prefix?: string;
37
42
  suffix?: string;
@@ -41,4 +46,4 @@ export interface KjunSignedValueProps {
41
46
  stale?: boolean;
42
47
  formatter?: (value: number) => string;
43
48
  }
44
- export declare function KjunSignedValue({ value, format: kind, isRaw, decimals, prefix, suffix, showSign, tone, loading, stale, formatter, }: KjunSignedValueProps): import("react/jsx-runtime").JSX.Element;
49
+ export declare function KjunSignedValue({ value, format: kind, decimals, prefix, suffix, showSign, tone, loading, stale, formatter, }: KjunSignedValueProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,8 @@
1
1
  import { type ReactNode } from "react";
2
- export declare const finiteNumber: (value: unknown) => number | null;
3
- export declare const format: (value: number, decimals?: number) => string;
2
+ import { type PriceFlash } from "../../../shared/package-runtime/data-cells.js";
3
+ /** A leading sign drawn tight to its digits (see splitNumberSign); other content passes through. */
4
+ export declare function signedText(value: ReactNode): ReactNode;
5
+ export { finiteNumber, format } from "../../../shared/package-runtime/signed-number.js";
4
6
  export declare function useCountUp(value: number | string, animated: boolean, fromPrevious: boolean): string | number;
5
7
  export interface KjunAnimatedNumberProps {
6
8
  value: number | string;
@@ -24,14 +26,17 @@ export interface KjunPriceCellProps {
24
26
  /** The app's status after the price, such as a KjunBadge; KJUN owns only its spacing and alignment.
25
27
  * With no price (value null) a status still shows after a dash, for states such as "거래정지"; without one null is loading. */
26
28
  status?: ReactNode;
29
+ /** Flash when the value moves: true or "text" colours the digits up or down, "background" fills the cell's pill.
30
+ * Off under reduced motion. */
31
+ flash?: PriceFlash;
32
+ /** @deprecated Use flash. A class the app adds and removes itself. */
27
33
  flashClass?: string;
28
34
  fromPrevious?: boolean;
29
35
  }
30
- export declare function KjunPriceCell({ value, formatter, stale, status, flashClass, fromPrevious, }: KjunPriceCellProps): import("react/jsx-runtime").JSX.Element;
36
+ export declare function KjunPriceCell({ value, formatter, stale, status, flash, flashClass, fromPrevious, }: KjunPriceCellProps): import("react/jsx-runtime").JSX.Element;
31
37
  export interface KjunSignedValueProps {
32
38
  value?: number | string | null;
33
39
  format?: "number" | "percent";
34
- isRaw?: boolean;
35
40
  decimals?: number;
36
41
  prefix?: string;
37
42
  suffix?: string;
@@ -41,4 +46,4 @@ export interface KjunSignedValueProps {
41
46
  stale?: boolean;
42
47
  formatter?: (value: number) => string;
43
48
  }
44
- export declare function KjunSignedValue({ value, format: kind, isRaw, decimals, prefix, suffix, showSign, tone, loading, stale, formatter, }: KjunSignedValueProps): import("react/jsx-runtime").JSX.Element;
49
+ export declare function KjunSignedValue({ value, format: kind, decimals, prefix, suffix, showSign, tone, loading, stale, formatter, }: KjunSignedValueProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,28 @@
1
+ import { type CSSProperties, type ReactNode } from "react";
2
+ import { type InputSize } from "@kjun-ui/tokens";
3
+ import { type NumberInputOptions } from "../../../shared/package-runtime/number-input.cjs";
4
+ export interface KjunNumberInputProps extends NumberInputOptions {
5
+ /** Normalized value without group separators: "", "1250000", "-3.5", "12.50". */
6
+ value: string;
7
+ prefix?: ReactNode;
8
+ suffix?: ReactNode;
9
+ /** Shows "1억 2,003만 5,000 원" under the field for integers of 10,000 or more. */
10
+ readingAid?: boolean;
11
+ align?: "start" | "end";
12
+ size?: InputSize;
13
+ disabled?: boolean;
14
+ readOnly?: boolean;
15
+ error?: boolean;
16
+ id?: string;
17
+ ariaLabel?: string;
18
+ placeholder?: string;
19
+ /** Submits the normalized value ("1250000", fraction padded) with a surrounding form under this name; not sent while disabled. */
20
+ name?: string;
21
+ /** Every edit, unpadded; also the committed value when committing or cancelling changes it. */
22
+ onValueChange?: (value: string) => void;
23
+ /** Blur or Enter, with the fraction padded to `decimals`. */
24
+ onChangeCommit?: (value: string) => void;
25
+ className?: string;
26
+ style?: CSSProperties;
27
+ }
28
+ export declare function KjunNumberInput({ value, format, decimals, grouping, allowNegative, min, max, prefix, suffix, readingAid, align, size, disabled, readOnly, error, id, ariaLabel, placeholder, name, onValueChange, onChangeCommit, className, style, }: KjunNumberInputProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,28 @@
1
+ import { type CSSProperties, type ReactNode } from "react";
2
+ import { type InputSize } from "@kjun-ui/tokens";
3
+ import { type NumberInputOptions } from "../../../shared/package-runtime/number-input.js";
4
+ export interface KjunNumberInputProps extends NumberInputOptions {
5
+ /** Normalized value without group separators: "", "1250000", "-3.5", "12.50". */
6
+ value: string;
7
+ prefix?: ReactNode;
8
+ suffix?: ReactNode;
9
+ /** Shows "1억 2,003만 5,000 원" under the field for integers of 10,000 or more. */
10
+ readingAid?: boolean;
11
+ align?: "start" | "end";
12
+ size?: InputSize;
13
+ disabled?: boolean;
14
+ readOnly?: boolean;
15
+ error?: boolean;
16
+ id?: string;
17
+ ariaLabel?: string;
18
+ placeholder?: string;
19
+ /** Submits the normalized value ("1250000", fraction padded) with a surrounding form under this name; not sent while disabled. */
20
+ name?: string;
21
+ /** Every edit, unpadded; also the committed value when committing or cancelling changes it. */
22
+ onValueChange?: (value: string) => void;
23
+ /** Blur or Enter, with the fraction padded to `decimals`. */
24
+ onChangeCommit?: (value: string) => void;
25
+ className?: string;
26
+ style?: CSSProperties;
27
+ }
28
+ export declare function KjunNumberInput({ value, format, decimals, grouping, allowNegative, min, max, prefix, suffix, readingAid, align, size, disabled, readOnly, error, id, ariaLabel, placeholder, name, onValueChange, onChangeCommit, className, style, }: KjunNumberInputProps): import("react/jsx-runtime").JSX.Element;
@@ -19,6 +19,9 @@ export interface KjunPopoverProps {
19
19
  /** Fixed header above the body; only the body scrolls and maxHeight covers both. Names the dialog without ariaLabel.
20
20
  * A function receives close, for a close button in the header. */
21
21
  header?: ReactNode | ((close: () => void) => ReactNode);
22
+ /** Fixed footer below the body (actions such as FormActions); only the body scrolls and fades above it.
23
+ * A function receives close. */
24
+ footer?: ReactNode | ((close: () => void) => ReactNode);
22
25
  /** false keeps the page usable: Tab can leave, and an outside press or focus move closes without returning focus. */
23
26
  modal?: boolean;
24
27
  /** Attach to this screen rectangle (or a function read every frame while open) instead of the trigger. Web only.
@@ -27,8 +30,8 @@ export interface KjunPopoverProps {
27
30
  trigger?: ReactNode | ((open: boolean) => ReactNode);
28
31
  children: ReactNode | ((close: () => void) => ReactNode);
29
32
  }
30
- export type PopoverPlacement = "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end";
31
- export declare function KjunPopover({ noPadding, open: controlled, onOpenChange, manualTrigger, matchTriggerWidth, width, maxHeight, flip, focusOnOpen, ariaLabel, placement, returnFocus, header, modal, anchorRect, trigger, children, }: KjunPopoverProps): import("react/jsx-runtime").JSX.Element;
33
+ export type PopoverPlacement = "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end";
34
+ export declare function KjunPopover({ noPadding, open: controlled, onOpenChange, manualTrigger, matchTriggerWidth, width, maxHeight, flip, focusOnOpen, ariaLabel, placement, returnFocus, header, footer, modal, anchorRect, trigger, children, }: KjunPopoverProps): import("react/jsx-runtime").JSX.Element;
32
35
  export interface KjunTooltipProps {
33
36
  content?: string;
34
37
  /** A bolder line above content (a file name above its path). Read together with content. */
@@ -19,6 +19,9 @@ export interface KjunPopoverProps {
19
19
  /** Fixed header above the body; only the body scrolls and maxHeight covers both. Names the dialog without ariaLabel.
20
20
  * A function receives close, for a close button in the header. */
21
21
  header?: ReactNode | ((close: () => void) => ReactNode);
22
+ /** Fixed footer below the body (actions such as FormActions); only the body scrolls and fades above it.
23
+ * A function receives close. */
24
+ footer?: ReactNode | ((close: () => void) => ReactNode);
22
25
  /** false keeps the page usable: Tab can leave, and an outside press or focus move closes without returning focus. */
23
26
  modal?: boolean;
24
27
  /** Attach to this screen rectangle (or a function read every frame while open) instead of the trigger. Web only.
@@ -27,8 +30,8 @@ export interface KjunPopoverProps {
27
30
  trigger?: ReactNode | ((open: boolean) => ReactNode);
28
31
  children: ReactNode | ((close: () => void) => ReactNode);
29
32
  }
30
- export type PopoverPlacement = "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end";
31
- export declare function KjunPopover({ noPadding, open: controlled, onOpenChange, manualTrigger, matchTriggerWidth, width, maxHeight, flip, focusOnOpen, ariaLabel, placement, returnFocus, header, modal, anchorRect, trigger, children, }: KjunPopoverProps): import("react/jsx-runtime").JSX.Element;
33
+ export type PopoverPlacement = "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end";
34
+ export declare function KjunPopover({ noPadding, open: controlled, onOpenChange, manualTrigger, matchTriggerWidth, width, maxHeight, flip, focusOnOpen, ariaLabel, placement, returnFocus, header, footer, modal, anchorRect, trigger, children, }: KjunPopoverProps): import("react/jsx-runtime").JSX.Element;
32
35
  export interface KjunTooltipProps {
33
36
  content?: string;
34
37
  /** A bolder line above content (a file name above its path). Read together with content. */
@@ -0,0 +1,17 @@
1
+ import { type HTMLAttributes } from "react";
2
+ export interface KjunPressableProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "autoFocus"> {
3
+ /** The name read by screen readers; needed when the content has no text of its own. */
4
+ ariaLabel?: string;
5
+ /** Blocks presses and dims the content. */
6
+ disabled?: boolean;
7
+ /** "overlay" (default) lays a tint over the content on hover and press, which shows on photos as well as on text; "none" leaves the content to show its own. */
8
+ pressEffect?: "overlay" | "none";
9
+ /** Draws the keyboard focus ring inside the area, for one that reaches the screen edge or sits in a clipping parent. */
10
+ focusRingInset?: boolean;
11
+ }
12
+ /**
13
+ * An area that presses, with no shape of its own: for content that is not a button, a card or a list row
14
+ * (a map preview, a photo tile). The app gives the shape through className or style; KJUN supplies the press layer,
15
+ * the focus ring, the button role and the disabled state. Do not put buttons or links inside.
16
+ */
17
+ export declare const KjunPressable: import("react").ForwardRefExoticComponent<KjunPressableProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,17 @@
1
+ import { type HTMLAttributes } from "react";
2
+ export interface KjunPressableProps extends Omit<HTMLAttributes<HTMLDivElement>, "onChange" | "autoFocus"> {
3
+ /** The name read by screen readers; needed when the content has no text of its own. */
4
+ ariaLabel?: string;
5
+ /** Blocks presses and dims the content. */
6
+ disabled?: boolean;
7
+ /** "overlay" (default) lays a tint over the content on hover and press, which shows on photos as well as on text; "none" leaves the content to show its own. */
8
+ pressEffect?: "overlay" | "none";
9
+ /** Draws the keyboard focus ring inside the area, for one that reaches the screen edge or sits in a clipping parent. */
10
+ focusRingInset?: boolean;
11
+ }
12
+ /**
13
+ * An area that presses, with no shape of its own: for content that is not a button, a card or a list row
14
+ * (a map preview, a photo tile). The app gives the shape through className or style; KJUN supplies the press layer,
15
+ * the focus ring, the button role and the disabled state. Do not put buttons or links inside.
16
+ */
17
+ export declare const KjunPressable: import("react").ForwardRefExoticComponent<KjunPressableProps & import("react").RefAttributes<HTMLDivElement>>;
@@ -11,8 +11,10 @@ export interface KjunQuantityStepperProps {
11
11
  block?: boolean;
12
12
  id?: string;
13
13
  ariaLabel?: string;
14
+ /** Submits the value with a surrounding form under this name (a hidden input); not sent while disabled. */
15
+ name?: string;
14
16
  onValueChange?: (value: number) => void;
15
17
  onChangeCommit?: (value: number) => void;
16
18
  onInvalidInput?: (draft: string) => void;
17
19
  }
18
- export declare function KjunQuantityStepper({ value, min, max, step, precision, disabled, error, size, block, id, ariaLabel, onValueChange, onChangeCommit, onInvalidInput }: KjunQuantityStepperProps): import("react/jsx-runtime").JSX.Element;
20
+ export declare function KjunQuantityStepper({ value, min, max, step, precision, disabled, error, size, block, id, ariaLabel, name, onValueChange, onChangeCommit, onInvalidInput }: KjunQuantityStepperProps): import("react/jsx-runtime").JSX.Element;
@@ -11,8 +11,10 @@ export interface KjunQuantityStepperProps {
11
11
  block?: boolean;
12
12
  id?: string;
13
13
  ariaLabel?: string;
14
+ /** Submits the value with a surrounding form under this name (a hidden input); not sent while disabled. */
15
+ name?: string;
14
16
  onValueChange?: (value: number) => void;
15
17
  onChangeCommit?: (value: number) => void;
16
18
  onInvalidInput?: (draft: string) => void;
17
19
  }
18
- export declare function KjunQuantityStepper({ value, min, max, step, precision, disabled, error, size, block, id, ariaLabel, onValueChange, onChangeCommit, onInvalidInput }: KjunQuantityStepperProps): import("react/jsx-runtime").JSX.Element;
20
+ export declare function KjunQuantityStepper({ value, min, max, step, precision, disabled, error, size, block, id, ariaLabel, name, onValueChange, onChangeCommit, onInvalidInput }: KjunQuantityStepperProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,6 @@
1
- import { type SliderMarks, type SliderOrientation } from "../../../shared/package-runtime/slider-view.cjs";
2
- export type { KjunSliderMark } from "../../../shared/package-runtime/slider-view.cjs";
1
+ import { type SliderMarks, type SliderOrientation, type SliderValueLabel } from "../../../shared/package-runtime/slider-view.cjs";
2
+ export type { KjunSliderMark, SliderValueLabel as KjunSliderValueLabel } from "../../../shared/package-runtime/slider-view.cjs";
3
+ import { type CSSProperties } from "react";
3
4
  export interface KjunSliderProps {
4
5
  value: number;
5
6
  min?: number;
@@ -19,14 +20,25 @@ export interface KjunSliderProps {
19
20
  /** vertical: the rail runs bottom (min) to top (max), `length` px long. */
20
21
  orientation?: SliderOrientation;
21
22
  length?: number;
23
+ /** The value in a bubble on the thumb: "drag" while dragging or keyboard-focused, "always", or "off" (default). Follows formatValue. */
24
+ valueLabel?: SliderValueLabel;
25
+ /** The fill grows from this value instead of min, for two-way values such as -50…50; a tick marks it. Single slider only. */
26
+ fillOrigin?: number;
27
+ /** Submitted with a form through a hidden input; a range submits two values under the name. */
28
+ name?: string;
29
+ id?: string;
30
+ className?: string;
31
+ style?: CSSProperties;
22
32
  onValueChange?: (value: number) => void;
23
33
  onChangeCommit?: (value: number) => void;
24
34
  }
25
- export interface KjunRangeSliderProps extends Omit<KjunSliderProps, "value" | "onValueChange" | "onChangeCommit"> {
35
+ export interface KjunRangeSliderProps extends Omit<KjunSliderProps, "value" | "fillOrigin" | "onValueChange" | "onChangeCommit"> {
26
36
  value: [
27
37
  number,
28
38
  number
29
39
  ];
40
+ /** The fewest steps the two thumbs keep between them; 0 (default) lets them meet. */
41
+ minStepsBetweenThumbs?: number;
30
42
  thumbLabels?: [
31
43
  string,
32
44
  string
@@ -1,5 +1,6 @@
1
- import { type SliderMarks, type SliderOrientation } from "../../../shared/package-runtime/slider-view.js";
2
- export type { KjunSliderMark } from "../../../shared/package-runtime/slider-view.js";
1
+ import { type SliderMarks, type SliderOrientation, type SliderValueLabel } from "../../../shared/package-runtime/slider-view.js";
2
+ export type { KjunSliderMark, SliderValueLabel as KjunSliderValueLabel } from "../../../shared/package-runtime/slider-view.js";
3
+ import { type CSSProperties } from "react";
3
4
  export interface KjunSliderProps {
4
5
  value: number;
5
6
  min?: number;
@@ -19,14 +20,25 @@ export interface KjunSliderProps {
19
20
  /** vertical: the rail runs bottom (min) to top (max), `length` px long. */
20
21
  orientation?: SliderOrientation;
21
22
  length?: number;
23
+ /** The value in a bubble on the thumb: "drag" while dragging or keyboard-focused, "always", or "off" (default). Follows formatValue. */
24
+ valueLabel?: SliderValueLabel;
25
+ /** The fill grows from this value instead of min, for two-way values such as -50…50; a tick marks it. Single slider only. */
26
+ fillOrigin?: number;
27
+ /** Submitted with a form through a hidden input; a range submits two values under the name. */
28
+ name?: string;
29
+ id?: string;
30
+ className?: string;
31
+ style?: CSSProperties;
22
32
  onValueChange?: (value: number) => void;
23
33
  onChangeCommit?: (value: number) => void;
24
34
  }
25
- export interface KjunRangeSliderProps extends Omit<KjunSliderProps, "value" | "onValueChange" | "onChangeCommit"> {
35
+ export interface KjunRangeSliderProps extends Omit<KjunSliderProps, "value" | "fillOrigin" | "onValueChange" | "onChangeCommit"> {
26
36
  value: [
27
37
  number,
28
38
  number
29
39
  ];
40
+ /** The fewest steps the two thumbs keep between them; 0 (default) lets them meet. */
41
+ minStepsBetweenThumbs?: number;
30
42
  thumbLabels?: [
31
43
  string,
32
44
  string
@@ -0,0 +1,43 @@
1
+ import { type ReorderMove } from "../../../shared/package-runtime/reorder.cjs";
2
+ import { type ReorderSession } from "../../../shared/package-runtime/reorder-session.cjs";
3
+ import type { ListChoiceValue } from "../../../shared/package-runtime/list-row.cjs";
4
+ export type KjunListReorderMove = ReorderMove<ListChoiceValue>;
5
+ export type KjunListReorderControls = "buttons" | "handle" | "both";
6
+ /** A reorderable section's or table's order and its move actions, for the rows inside it; null outside one. */
7
+ export interface ReorderScope {
8
+ order?: readonly ListChoiceValue[];
9
+ /** The rows on screen when they are only part of the order (a table page, a search): a step past a hidden row is off. */
10
+ shown?: ReadonlySet<ListChoiceValue>;
11
+ disabled: boolean;
12
+ controls: KjunListReorderControls;
13
+ /** The row held by its handle, by a keyboard grab or a pointer drag. */
14
+ grabbed: ListChoiceValue | null;
15
+ /** Id of the text that says why moving is off. */
16
+ noteId?: string;
17
+ session: ReorderSession;
18
+ }
19
+ export declare const ReorderContext: import("react").Context<ReorderScope | null>;
20
+ /** A row's move controls; the row draws them only when the section's order lists its value. */
21
+ export declare function ReorderControls({ value, name }: {
22
+ value: ListChoiceValue;
23
+ name: string;
24
+ }): import("react/jsx-runtime").JSX.Element | null;
25
+ /** The section's side: reports moves, announces them and keeps focus on the moved row's control. */
26
+ export declare function useReorder({ reorderable, order, shown, disabled, controls, noteId, list, selector, owner, onOrderChange, onReorder }: {
27
+ reorderable: boolean;
28
+ order?: readonly ListChoiceValue[];
29
+ shown?: ReadonlySet<ListChoiceValue>;
30
+ disabled: boolean;
31
+ controls: KjunListReorderControls;
32
+ noteId?: string;
33
+ list: HTMLElement | null;
34
+ /** Where the movable rows' controls are inside list (a Table's rows rather than a list section's). */
35
+ selector?: string;
36
+ /** The root selector that owns those controls, so a table nested in a row keeps its own. */
37
+ owner?: string;
38
+ onOrderChange?: (order: ListChoiceValue[]) => void;
39
+ onReorder?: (move: KjunListReorderMove) => void;
40
+ }): {
41
+ context: ReorderScope | null;
42
+ said: string;
43
+ };
@@ -0,0 +1,43 @@
1
+ import { type ReorderMove } from "../../../shared/package-runtime/reorder.js";
2
+ import { type ReorderSession } from "../../../shared/package-runtime/reorder-session.js";
3
+ import type { ListChoiceValue } from "../../../shared/package-runtime/list-row.js";
4
+ export type KjunListReorderMove = ReorderMove<ListChoiceValue>;
5
+ export type KjunListReorderControls = "buttons" | "handle" | "both";
6
+ /** A reorderable section's or table's order and its move actions, for the rows inside it; null outside one. */
7
+ export interface ReorderScope {
8
+ order?: readonly ListChoiceValue[];
9
+ /** The rows on screen when they are only part of the order (a table page, a search): a step past a hidden row is off. */
10
+ shown?: ReadonlySet<ListChoiceValue>;
11
+ disabled: boolean;
12
+ controls: KjunListReorderControls;
13
+ /** The row held by its handle, by a keyboard grab or a pointer drag. */
14
+ grabbed: ListChoiceValue | null;
15
+ /** Id of the text that says why moving is off. */
16
+ noteId?: string;
17
+ session: ReorderSession;
18
+ }
19
+ export declare const ReorderContext: import("react").Context<ReorderScope | null>;
20
+ /** A row's move controls; the row draws them only when the section's order lists its value. */
21
+ export declare function ReorderControls({ value, name }: {
22
+ value: ListChoiceValue;
23
+ name: string;
24
+ }): import("react/jsx-runtime").JSX.Element | null;
25
+ /** The section's side: reports moves, announces them and keeps focus on the moved row's control. */
26
+ export declare function useReorder({ reorderable, order, shown, disabled, controls, noteId, list, selector, owner, onOrderChange, onReorder }: {
27
+ reorderable: boolean;
28
+ order?: readonly ListChoiceValue[];
29
+ shown?: ReadonlySet<ListChoiceValue>;
30
+ disabled: boolean;
31
+ controls: KjunListReorderControls;
32
+ noteId?: string;
33
+ list: HTMLElement | null;
34
+ /** Where the movable rows' controls are inside list (a Table's rows rather than a list section's). */
35
+ selector?: string;
36
+ /** The root selector that owns those controls, so a table nested in a row keeps its own. */
37
+ owner?: string;
38
+ onOrderChange?: (order: ListChoiceValue[]) => void;
39
+ onReorder?: (move: KjunListReorderMove) => void;
40
+ }): {
41
+ context: ReorderScope | null;
42
+ said: string;
43
+ };
@@ -1,13 +1,16 @@
1
1
  import { type InputSize } from "@kjun-ui/tokens";
2
- import { type ReactNode } from "react";
2
+ import { type ReactElement, type ReactNode, type RefAttributes } from "react";
3
3
  import { type SearchInputModelProps } from "../../../shared/package-runtime/search-input.cjs";
4
+ import { type SearchFieldInputProps } from "./combobox.cjs";
4
5
  import { SelectOption } from "./select-options.cjs";
5
- export interface KjunSearchInputProps<T extends SelectOption = SelectOption> extends SearchInputModelProps<T> {
6
+ export interface KjunSearchInputProps<T extends SelectOption = SelectOption> extends SearchInputModelProps<T>, Pick<SearchFieldInputProps, "id" | "name" | "className" | "style" | "autoFocus" | "autoComplete" | "readOnly" | "required" | "inputMode" | "enterKeyHint" | "onFocus" | "onBlur" | "aria-describedby" | "aria-labelledby"> {
6
7
  placeholder?: string;
7
8
  ariaLabel?: string;
8
9
  error?: boolean;
9
10
  clearable?: boolean;
10
11
  size?: InputSize;
12
+ /** Plain mode: the search icon turns into a spinner while results load elsewhere on the page (a table, a grid). */
13
+ loading?: boolean;
11
14
  itemKey?: string;
12
15
  labelField?: string;
13
16
  emptyText?: string;
@@ -18,4 +21,4 @@ export interface KjunSearchInputProps<T extends SelectOption = SelectOption> ext
18
21
  onEnter?: () => void;
19
22
  onClear?: () => void;
20
23
  }
21
- export declare function KjunSearchInput<T extends SelectOption = SelectOption>({ value, placeholder, ariaLabel, disabled, error, clearable, debounce, size, loadOptions, itemKey, labelField, minChars, emptyText, errorText, renderOption, onValueChange, onSelect, onSearchError, onEnter, onClear, }: KjunSearchInputProps<T>): import("react/jsx-runtime").JSX.Element;
24
+ export declare const KjunSearchInput: <T extends SelectOption = SelectOption>(props: KjunSearchInputProps<T> & RefAttributes<HTMLInputElement>) => ReactElement;