@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,75 +1,7 @@
1
- import { type ButtonSize, type InputSize } from "@kjun-ui/tokens";
2
- import { type ReactNode, type Ref } from "react";
1
+ import { type ButtonSize } from "@kjun-ui/tokens";
3
2
  import { groupKeydown } from "../../../shared/package-runtime/group-keyboard.cjs";
4
- export type ChoiceValue = string | number | boolean | null;
5
- export interface ChoiceOption<T = ChoiceValue> {
6
- value: T;
7
- label: string;
8
- disabled?: boolean;
9
- icon?: string;
10
- dot?: string;
11
- }
12
- export interface KjunCheckboxProps<T = ChoiceValue> {
13
- value: boolean | T[];
14
- /** Mixed selection display; value and change callbacks keep their boolean/array shape. */
15
- indeterminate?: boolean;
16
- val?: T;
17
- label?: string;
18
- ariaLabel?: string;
19
- disabled?: boolean;
20
- size?: InputSize;
21
- children?: ReactNode;
22
- onValueChange?: (value: boolean | T[]) => void;
23
- onChange?: (value: boolean | T[]) => void;
24
- }
25
- export declare function KjunCheckbox<T = ChoiceValue>({ value, indeterminate, val, label, ariaLabel, disabled, size, children, onValueChange, onChange, }: KjunCheckboxProps<T>): import("react/jsx-runtime").JSX.Element;
26
- export interface KjunSwitchProps {
27
- value: boolean;
28
- label?: string;
29
- ariaLabel?: string;
30
- disabled?: boolean;
31
- size?: InputSize;
32
- /** Supporting text under the label; it also describes the switch to screen readers. */
33
- description?: string;
34
- /** Saving: a spinner turns in the thumb and presses are ignored, without dimming the switch like disabled. */
35
- loading?: boolean;
36
- children?: ReactNode;
37
- /** Submits with a form under this name while the switch is on. */
38
- name?: string;
39
- /** The value a form submits while on (default "on"). */
40
- formValue?: string;
41
- id?: string;
42
- autoFocus?: boolean;
43
- onFocus?: () => void;
44
- onBlur?: () => void;
45
- /** The switch's input, e.g. to move focus back after a failed save. */
46
- inputRef?: Ref<HTMLInputElement>;
47
- onValueChange?: (value: boolean) => void;
48
- onChange?: (value: boolean) => void;
49
- }
50
- export declare function KjunSwitch({ value, label, ariaLabel, disabled, size, description, loading, children, name, formValue, id, autoFocus, onFocus, onBlur, inputRef, onValueChange, onChange, }: KjunSwitchProps): import("react/jsx-runtime").JSX.Element;
51
- export interface KjunRadioProps {
52
- value?: ChoiceValue;
53
- val: ChoiceValue;
54
- label?: string;
55
- disabled?: boolean;
56
- name?: string;
57
- ariaLabel?: string;
58
- children?: ReactNode;
59
- onValueChange?: (value: ChoiceValue) => void;
60
- onChange?: (value: ChoiceValue) => void;
61
- }
62
- export declare function KjunRadio({ value, val, label, disabled, name, ariaLabel, children, onValueChange, onChange, }: KjunRadioProps): import("react/jsx-runtime").JSX.Element;
63
- export interface KjunRadioGroupProps {
64
- value: ChoiceValue;
65
- options?: ChoiceOption[];
66
- direction?: "horizontal" | "vertical";
67
- ariaLabel?: string;
68
- children?: ReactNode;
69
- onValueChange?: (value: ChoiceValue) => void;
70
- onChange?: (value: ChoiceValue) => void;
71
- }
72
- export declare function KjunRadioGroup({ value, options, direction, ariaLabel, children, onValueChange, onChange, }: KjunRadioGroupProps): import("react/jsx-runtime").JSX.Element;
3
+ export * from "./choice-controls.cjs";
4
+ import type { ChoiceOption, ChoiceValue } from "./choice-controls.cjs";
73
5
  export { KjunTextarea } from "./textarea.cjs";
74
6
  export type { KjunTextareaProps } from "./textarea.cjs";
75
7
  export { groupKeydown };
@@ -77,7 +9,6 @@ export interface KjunButtonGroupProps {
77
9
  value: ChoiceValue;
78
10
  options: ChoiceOption[];
79
11
  size?: ButtonSize;
80
- variant?: "primary" | "secondary" | "ghost";
81
12
  disabled?: boolean;
82
13
  fullWidth?: boolean;
83
14
  ariaLabel?: string;
@@ -85,11 +16,13 @@ export interface KjunButtonGroupProps {
85
16
  onChange?: (value: ChoiceValue) => void;
86
17
  }
87
18
  export declare function KjunButtonGroup({ value, options, size, disabled, fullWidth, ariaLabel, onValueChange, onChange, }: KjunButtonGroupProps): import("react/jsx-runtime").JSX.Element;
88
- export interface KjunFilterGroupProps extends Omit<KjunButtonGroupProps, "value" | "onValueChange" | "onChange" | "fullWidth" | "variant"> {
19
+ export interface KjunFilterGroupProps extends Omit<KjunButtonGroupProps, "value" | "onValueChange" | "onChange" | "fullWidth"> {
89
20
  value: ChoiceValue | ChoiceValue[];
90
21
  multiple?: boolean;
91
22
  scroll?: boolean;
23
+ /** Extra class on the group root, for placement in the page layout. */
24
+ className?: string;
92
25
  onValueChange?: (value: ChoiceValue | ChoiceValue[]) => void;
93
26
  onChange?: (value: ChoiceValue | ChoiceValue[]) => void;
94
27
  }
95
- export declare function KjunFilterGroup({ value, options, size, disabled, multiple, scroll, ariaLabel, onValueChange, onChange, }: KjunFilterGroupProps): import("react/jsx-runtime").JSX.Element;
28
+ export declare function KjunFilterGroup({ value, options, size, disabled, multiple, scroll, ariaLabel, className, onValueChange, onChange, }: KjunFilterGroupProps): import("react/jsx-runtime").JSX.Element;
@@ -1,75 +1,7 @@
1
- import { type ButtonSize, type InputSize } from "@kjun-ui/tokens";
2
- import { type ReactNode, type Ref } from "react";
1
+ import { type ButtonSize } from "@kjun-ui/tokens";
3
2
  import { groupKeydown } from "../../../shared/package-runtime/group-keyboard.js";
4
- export type ChoiceValue = string | number | boolean | null;
5
- export interface ChoiceOption<T = ChoiceValue> {
6
- value: T;
7
- label: string;
8
- disabled?: boolean;
9
- icon?: string;
10
- dot?: string;
11
- }
12
- export interface KjunCheckboxProps<T = ChoiceValue> {
13
- value: boolean | T[];
14
- /** Mixed selection display; value and change callbacks keep their boolean/array shape. */
15
- indeterminate?: boolean;
16
- val?: T;
17
- label?: string;
18
- ariaLabel?: string;
19
- disabled?: boolean;
20
- size?: InputSize;
21
- children?: ReactNode;
22
- onValueChange?: (value: boolean | T[]) => void;
23
- onChange?: (value: boolean | T[]) => void;
24
- }
25
- export declare function KjunCheckbox<T = ChoiceValue>({ value, indeterminate, val, label, ariaLabel, disabled, size, children, onValueChange, onChange, }: KjunCheckboxProps<T>): import("react/jsx-runtime").JSX.Element;
26
- export interface KjunSwitchProps {
27
- value: boolean;
28
- label?: string;
29
- ariaLabel?: string;
30
- disabled?: boolean;
31
- size?: InputSize;
32
- /** Supporting text under the label; it also describes the switch to screen readers. */
33
- description?: string;
34
- /** Saving: a spinner turns in the thumb and presses are ignored, without dimming the switch like disabled. */
35
- loading?: boolean;
36
- children?: ReactNode;
37
- /** Submits with a form under this name while the switch is on. */
38
- name?: string;
39
- /** The value a form submits while on (default "on"). */
40
- formValue?: string;
41
- id?: string;
42
- autoFocus?: boolean;
43
- onFocus?: () => void;
44
- onBlur?: () => void;
45
- /** The switch's input, e.g. to move focus back after a failed save. */
46
- inputRef?: Ref<HTMLInputElement>;
47
- onValueChange?: (value: boolean) => void;
48
- onChange?: (value: boolean) => void;
49
- }
50
- export declare function KjunSwitch({ value, label, ariaLabel, disabled, size, description, loading, children, name, formValue, id, autoFocus, onFocus, onBlur, inputRef, onValueChange, onChange, }: KjunSwitchProps): import("react/jsx-runtime").JSX.Element;
51
- export interface KjunRadioProps {
52
- value?: ChoiceValue;
53
- val: ChoiceValue;
54
- label?: string;
55
- disabled?: boolean;
56
- name?: string;
57
- ariaLabel?: string;
58
- children?: ReactNode;
59
- onValueChange?: (value: ChoiceValue) => void;
60
- onChange?: (value: ChoiceValue) => void;
61
- }
62
- export declare function KjunRadio({ value, val, label, disabled, name, ariaLabel, children, onValueChange, onChange, }: KjunRadioProps): import("react/jsx-runtime").JSX.Element;
63
- export interface KjunRadioGroupProps {
64
- value: ChoiceValue;
65
- options?: ChoiceOption[];
66
- direction?: "horizontal" | "vertical";
67
- ariaLabel?: string;
68
- children?: ReactNode;
69
- onValueChange?: (value: ChoiceValue) => void;
70
- onChange?: (value: ChoiceValue) => void;
71
- }
72
- export declare function KjunRadioGroup({ value, options, direction, ariaLabel, children, onValueChange, onChange, }: KjunRadioGroupProps): import("react/jsx-runtime").JSX.Element;
3
+ export * from "./choice-controls.js";
4
+ import type { ChoiceOption, ChoiceValue } from "./choice-controls.js";
73
5
  export { KjunTextarea } from "./textarea.js";
74
6
  export type { KjunTextareaProps } from "./textarea.js";
75
7
  export { groupKeydown };
@@ -77,7 +9,6 @@ export interface KjunButtonGroupProps {
77
9
  value: ChoiceValue;
78
10
  options: ChoiceOption[];
79
11
  size?: ButtonSize;
80
- variant?: "primary" | "secondary" | "ghost";
81
12
  disabled?: boolean;
82
13
  fullWidth?: boolean;
83
14
  ariaLabel?: string;
@@ -85,11 +16,13 @@ export interface KjunButtonGroupProps {
85
16
  onChange?: (value: ChoiceValue) => void;
86
17
  }
87
18
  export declare function KjunButtonGroup({ value, options, size, disabled, fullWidth, ariaLabel, onValueChange, onChange, }: KjunButtonGroupProps): import("react/jsx-runtime").JSX.Element;
88
- export interface KjunFilterGroupProps extends Omit<KjunButtonGroupProps, "value" | "onValueChange" | "onChange" | "fullWidth" | "variant"> {
19
+ export interface KjunFilterGroupProps extends Omit<KjunButtonGroupProps, "value" | "onValueChange" | "onChange" | "fullWidth"> {
89
20
  value: ChoiceValue | ChoiceValue[];
90
21
  multiple?: boolean;
91
22
  scroll?: boolean;
23
+ /** Extra class on the group root, for placement in the page layout. */
24
+ className?: string;
92
25
  onValueChange?: (value: ChoiceValue | ChoiceValue[]) => void;
93
26
  onChange?: (value: ChoiceValue | ChoiceValue[]) => void;
94
27
  }
95
- export declare function KjunFilterGroup({ value, options, size, disabled, multiple, scroll, ariaLabel, onValueChange, onChange, }: KjunFilterGroupProps): import("react/jsx-runtime").JSX.Element;
28
+ export declare function KjunFilterGroup({ value, options, size, disabled, multiple, scroll, ariaLabel, className, onValueChange, onChange, }: KjunFilterGroupProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,3 @@
1
- import type { KjunMessageScope } from "../../../shared/package-runtime/messages/index.cjs";
2
1
  import { type QueryDisplayProps } from "@kjun-ui/tokens";
3
2
  import { Component, type ErrorInfo, type ReactNode } from "react";
4
3
  import { type KjunSkeletonProps } from "./display.cjs";
@@ -17,6 +16,8 @@ export interface KjunDataStateProps extends QueryDisplayProps {
17
16
  loadingPadding?: "default" | "none";
18
17
  empty?: boolean;
19
18
  emptyText?: string;
19
+ /** Why it is empty and what to do next, under the title. */
20
+ emptyDescription?: string;
20
21
  emptyIcon?: string;
21
22
  emptyActionText?: string;
22
23
  loadingText?: string;
@@ -34,25 +35,37 @@ export interface KjunDataStateProps extends QueryDisplayProps {
34
35
  onRetry?: () => void;
35
36
  onEmptyAction?: () => void;
36
37
  }
37
- export declare function KjunDataState({ preserveContent, refreshing, refreshError, refreshingText, loadingPadding, empty, emptyText, emptyIcon, emptyActionText, loadingText, loadingDelay, retryText, size, skeleton, skeletonType, skeletonCount, children, loadingContent, emptyContent, errorContent, onRetry, onEmptyAction, ...query }: KjunDataStateProps): import("react/jsx-runtime").JSX.Element;
38
+ export declare function KjunDataState({ preserveContent, refreshing, refreshError, refreshingText, loadingPadding, empty, emptyText, emptyDescription, emptyIcon, emptyActionText, loadingText, loadingDelay, retryText, size, skeleton, skeletonType, skeletonCount, children, loadingContent, emptyContent, errorContent, onRetry, onEmptyAction, ...query }: KjunDataStateProps): import("react/jsx-runtime").JSX.Element;
38
39
  export interface KjunErrorBoundaryProps {
39
40
  children: ReactNode;
40
41
  fallbackMessage?: string;
41
- fallback?: ReactNode;
42
+ /** The default fallback's padding and minimum height, like KjunDataState: md for pages and panels, sm for cards, lg for full pages. */
43
+ size?: "sm" | "md" | "lg";
44
+ /** Replaces the default fallback; a function receives the caught error and reset, like Vue's fallback slot. */
45
+ fallback?: ReactNode | ((props: KjunErrorFallbackProps) => ReactNode);
46
+ /** A change in any of these values (a route, a query) resets a failed boundary, like pressing retry. */
47
+ resetKeys?: readonly unknown[];
42
48
  onError?: (error: Error, info: ErrorInfo) => void;
49
+ /** Called after the boundary resets, from retry, a fallback's reset or a resetKeys change. */
43
50
  onReset?: () => void;
44
51
  }
52
+ export interface KjunErrorFallbackProps {
53
+ error: Error;
54
+ reset: () => void;
55
+ }
45
56
  export declare class KjunErrorBoundary extends Component<KjunErrorBoundaryProps, {
46
- error: boolean;
57
+ error: Error | null;
47
58
  }> {
48
- static contextType: import("react").Context<KjunMessageScope>;
49
- context: KjunMessageScope;
50
59
  state: {
51
- error: boolean;
60
+ error: Error | null;
52
61
  };
53
- static getDerivedStateFromError(): {
54
- error: boolean;
62
+ static getDerivedStateFromError(error: unknown): {
63
+ error: Error;
55
64
  };
56
65
  componentDidCatch(error: Error, info: ErrorInfo): void;
66
+ componentDidUpdate(previous: KjunErrorBoundaryProps, state: {
67
+ error: Error | null;
68
+ }): void;
69
+ reset: () => void;
57
70
  render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
58
71
  }
@@ -1,4 +1,3 @@
1
- import type { KjunMessageScope } from "../../../shared/package-runtime/messages/index.js";
2
1
  import { type QueryDisplayProps } from "@kjun-ui/tokens";
3
2
  import { Component, type ErrorInfo, type ReactNode } from "react";
4
3
  import { type KjunSkeletonProps } from "./display.js";
@@ -17,6 +16,8 @@ export interface KjunDataStateProps extends QueryDisplayProps {
17
16
  loadingPadding?: "default" | "none";
18
17
  empty?: boolean;
19
18
  emptyText?: string;
19
+ /** Why it is empty and what to do next, under the title. */
20
+ emptyDescription?: string;
20
21
  emptyIcon?: string;
21
22
  emptyActionText?: string;
22
23
  loadingText?: string;
@@ -34,25 +35,37 @@ export interface KjunDataStateProps extends QueryDisplayProps {
34
35
  onRetry?: () => void;
35
36
  onEmptyAction?: () => void;
36
37
  }
37
- export declare function KjunDataState({ preserveContent, refreshing, refreshError, refreshingText, loadingPadding, empty, emptyText, emptyIcon, emptyActionText, loadingText, loadingDelay, retryText, size, skeleton, skeletonType, skeletonCount, children, loadingContent, emptyContent, errorContent, onRetry, onEmptyAction, ...query }: KjunDataStateProps): import("react/jsx-runtime").JSX.Element;
38
+ export declare function KjunDataState({ preserveContent, refreshing, refreshError, refreshingText, loadingPadding, empty, emptyText, emptyDescription, emptyIcon, emptyActionText, loadingText, loadingDelay, retryText, size, skeleton, skeletonType, skeletonCount, children, loadingContent, emptyContent, errorContent, onRetry, onEmptyAction, ...query }: KjunDataStateProps): import("react/jsx-runtime").JSX.Element;
38
39
  export interface KjunErrorBoundaryProps {
39
40
  children: ReactNode;
40
41
  fallbackMessage?: string;
41
- fallback?: ReactNode;
42
+ /** The default fallback's padding and minimum height, like KjunDataState: md for pages and panels, sm for cards, lg for full pages. */
43
+ size?: "sm" | "md" | "lg";
44
+ /** Replaces the default fallback; a function receives the caught error and reset, like Vue's fallback slot. */
45
+ fallback?: ReactNode | ((props: KjunErrorFallbackProps) => ReactNode);
46
+ /** A change in any of these values (a route, a query) resets a failed boundary, like pressing retry. */
47
+ resetKeys?: readonly unknown[];
42
48
  onError?: (error: Error, info: ErrorInfo) => void;
49
+ /** Called after the boundary resets, from retry, a fallback's reset or a resetKeys change. */
43
50
  onReset?: () => void;
44
51
  }
52
+ export interface KjunErrorFallbackProps {
53
+ error: Error;
54
+ reset: () => void;
55
+ }
45
56
  export declare class KjunErrorBoundary extends Component<KjunErrorBoundaryProps, {
46
- error: boolean;
57
+ error: Error | null;
47
58
  }> {
48
- static contextType: import("react").Context<KjunMessageScope>;
49
- context: KjunMessageScope;
50
59
  state: {
51
- error: boolean;
60
+ error: Error | null;
52
61
  };
53
- static getDerivedStateFromError(): {
54
- error: boolean;
62
+ static getDerivedStateFromError(error: unknown): {
63
+ error: Error;
55
64
  };
56
65
  componentDidCatch(error: Error, info: ErrorInfo): void;
66
+ componentDidUpdate(previous: KjunErrorBoundaryProps, state: {
67
+ error: Error | null;
68
+ }): void;
69
+ reset: () => void;
57
70
  render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | null | undefined;
58
71
  }
@@ -17,6 +17,9 @@ interface DateFieldProps extends CalendarOptions {
17
17
  id?: string;
18
18
  /** Submits the value with a form through a hidden input. */
19
19
  name?: string;
20
+ /** Opens and closes the calendar from the app; leave it out to let the field own it. */
21
+ open?: boolean;
22
+ onOpenChange?: (open: boolean) => void;
20
23
  }
21
24
  export interface KjunDatePickerProps extends DateFieldProps {
22
25
  /** YYYY-MM-DD, or an empty string. */
@@ -24,7 +27,7 @@ export interface KjunDatePickerProps extends DateFieldProps {
24
27
  onValueChange?: (value: string) => void;
25
28
  onChange?: (value: string) => void;
26
29
  }
27
- export declare function KjunDatePicker({ value, placeholder, clearable, min, max, weekStart, markSunday, isDateUnavailable, onValueChange, onChange, ...field }: KjunDatePickerProps): import("react/jsx-runtime").JSX.Element;
30
+ export declare function KjunDatePicker({ value, placeholder, clearable, min, max, weekStart, markSunday, markSaturday, isDateUnavailable, onValueChange, onChange, open: controlled, onOpenChange, ...field }: KjunDatePickerProps): import("react/jsx-runtime").JSX.Element;
28
31
  export interface KjunDateRangePickerProps extends DateFieldProps {
29
32
  /** Start and end as YYYY-MM-DD; empty strings while unset. A reversed or out-of-bounds range is shown in order and inside the bounds. */
30
33
  value: DateRange;
@@ -34,7 +37,10 @@ export interface KjunDateRangePickerProps extends DateFieldProps {
34
37
  presets?: readonly DateRangePreset[];
35
38
  /** Commits as soon as the second day is picked, without Apply. */
36
39
  autoApply?: boolean;
40
+ /** Shortest and longest range in days, counting both ends; other ends fade while the end is picked and start a new range when pressed. */
41
+ minDays?: number;
42
+ maxDays?: number;
37
43
  }
38
44
  /** Two dates picked in one calendar: the first pick starts the range, the second ends it, and Apply commits it. */
39
- export declare function KjunDateRangePicker({ value: given, placeholder, clearable, min, max, weekStart, markSunday, isDateUnavailable, presets, autoApply, onValueChange, onChange, ...field }: KjunDateRangePickerProps): import("react/jsx-runtime").JSX.Element;
45
+ export declare function KjunDateRangePicker({ value: given, placeholder, clearable, min, max, weekStart, markSunday, markSaturday, isDateUnavailable, presets, autoApply, minDays, maxDays, onValueChange, onChange, open: controlled, onOpenChange, ...field }: KjunDateRangePickerProps): import("react/jsx-runtime").JSX.Element;
40
46
  export type { DateRange, DateRangePreset };
@@ -17,6 +17,9 @@ interface DateFieldProps extends CalendarOptions {
17
17
  id?: string;
18
18
  /** Submits the value with a form through a hidden input. */
19
19
  name?: string;
20
+ /** Opens and closes the calendar from the app; leave it out to let the field own it. */
21
+ open?: boolean;
22
+ onOpenChange?: (open: boolean) => void;
20
23
  }
21
24
  export interface KjunDatePickerProps extends DateFieldProps {
22
25
  /** YYYY-MM-DD, or an empty string. */
@@ -24,7 +27,7 @@ export interface KjunDatePickerProps extends DateFieldProps {
24
27
  onValueChange?: (value: string) => void;
25
28
  onChange?: (value: string) => void;
26
29
  }
27
- export declare function KjunDatePicker({ value, placeholder, clearable, min, max, weekStart, markSunday, isDateUnavailable, onValueChange, onChange, ...field }: KjunDatePickerProps): import("react/jsx-runtime").JSX.Element;
30
+ export declare function KjunDatePicker({ value, placeholder, clearable, min, max, weekStart, markSunday, markSaturday, isDateUnavailable, onValueChange, onChange, open: controlled, onOpenChange, ...field }: KjunDatePickerProps): import("react/jsx-runtime").JSX.Element;
28
31
  export interface KjunDateRangePickerProps extends DateFieldProps {
29
32
  /** Start and end as YYYY-MM-DD; empty strings while unset. A reversed or out-of-bounds range is shown in order and inside the bounds. */
30
33
  value: DateRange;
@@ -34,7 +37,10 @@ export interface KjunDateRangePickerProps extends DateFieldProps {
34
37
  presets?: readonly DateRangePreset[];
35
38
  /** Commits as soon as the second day is picked, without Apply. */
36
39
  autoApply?: boolean;
40
+ /** Shortest and longest range in days, counting both ends; other ends fade while the end is picked and start a new range when pressed. */
41
+ minDays?: number;
42
+ maxDays?: number;
37
43
  }
38
44
  /** Two dates picked in one calendar: the first pick starts the range, the second ends it, and Apply commits it. */
39
- export declare function KjunDateRangePicker({ value: given, placeholder, clearable, min, max, weekStart, markSunday, isDateUnavailable, presets, autoApply, onValueChange, onChange, ...field }: KjunDateRangePickerProps): import("react/jsx-runtime").JSX.Element;
45
+ export declare function KjunDateRangePicker({ value: given, placeholder, clearable, min, max, weekStart, markSunday, markSaturday, isDateUnavailable, presets, autoApply, minDays, maxDays, onValueChange, onChange, open: controlled, onOpenChange, ...field }: KjunDateRangePickerProps): import("react/jsx-runtime").JSX.Element;
40
46
  export type { DateRange, DateRangePreset };
@@ -1,6 +1,7 @@
1
1
  import { type AlertLive } from "../../../shared/package-runtime/alert-live.cjs";
2
+ import { type EmptySize } from "../../../shared/package-runtime/empty-geometry.cjs";
2
3
  import { type TypographyRole } from "@kjun-ui/tokens";
3
- import { type CSSProperties, type HTMLAttributes, type ReactNode } from "react";
4
+ import { type CSSProperties, type HTMLAttributes, type ReactElement, type ReactNode } from "react";
4
5
  export type DisplaySize = "xs" | "sm" | "md" | "lg" | "xl";
5
6
  export type SemanticTone = "primary" | "success" | "warning" | "danger" | "info";
6
7
  export interface KjunBadgeProps extends HTMLAttributes<HTMLSpanElement> {
@@ -14,16 +15,25 @@ export interface KjunBadgeProps extends HTMLAttributes<HTMLSpanElement> {
14
15
  /** What the badge means to a screen reader, e.g. "읽지 않은 알림 3개"; the drawn text is then hidden from it. Give it to a dot-only badge. */
15
16
  label?: string;
16
17
  }
17
- export declare function KjunBadge({ variant, size, dot, count, max, label, children, style, ...props }: KjunBadgeProps): import("react/jsx-runtime").JSX.Element | null;
18
+ /** Like Chip, the ref reaches the badge's root span. */
19
+ export declare const KjunBadge: import("react").ForwardRefExoticComponent<KjunBadgeProps & import("react").RefAttributes<HTMLSpanElement>>;
18
20
  export { KjunCard } from "./card.cjs";
19
21
  export type { KjunCardProps } from "./card.cjs";
20
- export interface KjunEmptyProps {
22
+ export interface KjunEmptyProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
21
23
  text?: string;
22
- description?: string;
23
- icon?: string;
24
+ /** Why it is empty and what to do next; a node can carry a link or emphasis. */
25
+ description?: ReactNode;
26
+ /** An icon name drawn as a quiet line icon, or your own element (an illustration, a KjunIcon of another size). */
27
+ icon?: string | ReactElement;
28
+ /** md for pages and panels; sm for cards and list areas. */
29
+ size?: EmptySize;
30
+ /** Renders the title as an h2–h6 so it joins the page outline; false keeps a paragraph. */
31
+ headingLevel?: false | 2 | 3 | 4 | 5 | 6;
32
+ /** polite announces the message when it appears (role status), such as a search that just came back empty. */
33
+ live?: "polite" | "off";
24
34
  children?: ReactNode;
25
35
  }
26
- export declare function KjunEmpty({ text, description, icon, children, }: KjunEmptyProps): import("react/jsx-runtime").JSX.Element;
36
+ export declare function KjunEmpty({ text, description, icon, size, headingLevel, live, children, className, ...rest }: KjunEmptyProps): import("react/jsx-runtime").JSX.Element;
27
37
  export interface KjunSpinnerProps {
28
38
  size?: DisplaySize;
29
39
  text?: string;
@@ -34,15 +44,19 @@ export interface KjunAlertProps {
34
44
  variant?: SemanticTone;
35
45
  size?: "sm" | "md" | "lg";
36
46
  title?: ReactNode;
47
+ /** An icon name in place of the tone's icon (its filled form when the icon has one), or false for no icon. */
48
+ icon?: string | false;
37
49
  closable?: boolean;
38
50
  /** How screen readers announce it: assertive (role alert), polite (status) or off; defaults to alert for danger, status otherwise. */
39
51
  live?: AlertLive;
40
52
  children?: ReactNode;
41
- /** Buttons placed under the message; unsized KjunButtons follow the alert size. */
53
+ /** Buttons for the alert, under the message when it has a title, beside it otherwise (under it when the alert is too narrow for both); unsized KjunButtons follow the alert size. */
42
54
  actions?: ReactNode;
55
+ /** Extra class on the alert root, for placement in the page layout; it leaves with the alert when closed. */
56
+ className?: string;
43
57
  onClose?: () => void;
44
58
  }
45
- export declare function KjunAlert({ type, variant, size, title, closable, live, children, actions, onClose, }: KjunAlertProps): import("react/jsx-runtime").JSX.Element | null;
59
+ export declare function KjunAlert({ type, variant, size, title, icon, closable, live, children, actions, className, onClose, }: KjunAlertProps): import("react/jsx-runtime").JSX.Element | null;
46
60
  export interface KjunProgressProps {
47
61
  /** null is missing data; omission keeps the zero default. */
48
62
  value?: number | null;
@@ -52,23 +66,38 @@ export interface KjunProgressProps {
52
66
  size?: "sm" | "md" | "lg";
53
67
  variant?: SemanticTone;
54
68
  showLabel?: boolean;
69
+ /** Shown and read in place of the rounded percent while the value is known, e.g. "37.4%" or "3.2 / 8 GB". */
70
+ valueText?: string;
71
+ /** A reference point across the bar on the value's own scale (0 to max), such as today's share of a budget. Bars only; not drawn while indeterminate or missing. */
72
+ marker?: number;
73
+ /** Read by screen readers as the bar's description, e.g. "오늘 기준 53%". Put visible wording in subLabel. */
74
+ markerLabel?: string;
55
75
  label?: ReactNode;
56
76
  subLabel?: ReactNode;
57
77
  shape?: "bar" | "circle";
58
78
  }
59
- export declare function KjunProgress({ value, indeterminate, max, size, variant, showLabel, label, subLabel, shape, }: KjunProgressProps): import("react/jsx-runtime").JSX.Element;
79
+ export declare function KjunProgress({ value, indeterminate, max, size, variant, showLabel, valueText, marker, markerLabel, label, subLabel, shape, }: KjunProgressProps): import("react/jsx-runtime").JSX.Element;
60
80
  export interface KjunSkeletonProps {
61
81
  /** "line" is one line of text: a bar in the line box of `role`, or of the surrounding text when no role is given. */
62
82
  type?: "text" | "line" | "avatar" | "card" | "table" | "stat" | "block";
63
- /** Typography role for type="line"; omit it to take the surrounding text's line height. */
83
+ /**
84
+ * Typography role of the text a "line" or "text" skeleton stands in for. Omitted, a line takes the surrounding
85
+ * text's line height and a paragraph the body role.
86
+ */
64
87
  role?: TypographyRole;
65
88
  /** Announces loading to screen readers (a status); the skeleton itself stays silent. */
66
89
  loadingText?: string;
90
+ /** Lines of a "text" or "card" skeleton, body rows of a "table" one; floored, 0–100. */
67
91
  rows?: number;
92
+ /** Columns of a "table" skeleton; floored, 0–100. */
68
93
  columns?: number;
69
94
  height?: CSSProperties["height"];
70
95
  width?: CSSProperties["width"];
71
96
  animated?: boolean;
72
97
  rounded?: boolean;
98
+ className?: string;
99
+ /** Merged over the root's own width. */
100
+ style?: CSSProperties;
101
+ id?: string;
73
102
  }
74
- export declare function KjunSkeleton({ type, rows, columns, height, width, animated, rounded, role, loadingText, }: KjunSkeletonProps): import("react/jsx-runtime").JSX.Element;
103
+ export declare function KjunSkeleton({ type, rows, columns, height, width, animated, rounded, role, loadingText, className, style, id, }: KjunSkeletonProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,7 @@
1
1
  import { type AlertLive } from "../../../shared/package-runtime/alert-live.js";
2
+ import { type EmptySize } from "../../../shared/package-runtime/empty-geometry.js";
2
3
  import { type TypographyRole } from "@kjun-ui/tokens";
3
- import { type CSSProperties, type HTMLAttributes, type ReactNode } from "react";
4
+ import { type CSSProperties, type HTMLAttributes, type ReactElement, type ReactNode } from "react";
4
5
  export type DisplaySize = "xs" | "sm" | "md" | "lg" | "xl";
5
6
  export type SemanticTone = "primary" | "success" | "warning" | "danger" | "info";
6
7
  export interface KjunBadgeProps extends HTMLAttributes<HTMLSpanElement> {
@@ -14,16 +15,25 @@ export interface KjunBadgeProps extends HTMLAttributes<HTMLSpanElement> {
14
15
  /** What the badge means to a screen reader, e.g. "읽지 않은 알림 3개"; the drawn text is then hidden from it. Give it to a dot-only badge. */
15
16
  label?: string;
16
17
  }
17
- export declare function KjunBadge({ variant, size, dot, count, max, label, children, style, ...props }: KjunBadgeProps): import("react/jsx-runtime").JSX.Element | null;
18
+ /** Like Chip, the ref reaches the badge's root span. */
19
+ export declare const KjunBadge: import("react").ForwardRefExoticComponent<KjunBadgeProps & import("react").RefAttributes<HTMLSpanElement>>;
18
20
  export { KjunCard } from "./card.js";
19
21
  export type { KjunCardProps } from "./card.js";
20
- export interface KjunEmptyProps {
22
+ export interface KjunEmptyProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"> {
21
23
  text?: string;
22
- description?: string;
23
- icon?: string;
24
+ /** Why it is empty and what to do next; a node can carry a link or emphasis. */
25
+ description?: ReactNode;
26
+ /** An icon name drawn as a quiet line icon, or your own element (an illustration, a KjunIcon of another size). */
27
+ icon?: string | ReactElement;
28
+ /** md for pages and panels; sm for cards and list areas. */
29
+ size?: EmptySize;
30
+ /** Renders the title as an h2–h6 so it joins the page outline; false keeps a paragraph. */
31
+ headingLevel?: false | 2 | 3 | 4 | 5 | 6;
32
+ /** polite announces the message when it appears (role status), such as a search that just came back empty. */
33
+ live?: "polite" | "off";
24
34
  children?: ReactNode;
25
35
  }
26
- export declare function KjunEmpty({ text, description, icon, children, }: KjunEmptyProps): import("react/jsx-runtime").JSX.Element;
36
+ export declare function KjunEmpty({ text, description, icon, size, headingLevel, live, children, className, ...rest }: KjunEmptyProps): import("react/jsx-runtime").JSX.Element;
27
37
  export interface KjunSpinnerProps {
28
38
  size?: DisplaySize;
29
39
  text?: string;
@@ -34,15 +44,19 @@ export interface KjunAlertProps {
34
44
  variant?: SemanticTone;
35
45
  size?: "sm" | "md" | "lg";
36
46
  title?: ReactNode;
47
+ /** An icon name in place of the tone's icon (its filled form when the icon has one), or false for no icon. */
48
+ icon?: string | false;
37
49
  closable?: boolean;
38
50
  /** How screen readers announce it: assertive (role alert), polite (status) or off; defaults to alert for danger, status otherwise. */
39
51
  live?: AlertLive;
40
52
  children?: ReactNode;
41
- /** Buttons placed under the message; unsized KjunButtons follow the alert size. */
53
+ /** Buttons for the alert, under the message when it has a title, beside it otherwise (under it when the alert is too narrow for both); unsized KjunButtons follow the alert size. */
42
54
  actions?: ReactNode;
55
+ /** Extra class on the alert root, for placement in the page layout; it leaves with the alert when closed. */
56
+ className?: string;
43
57
  onClose?: () => void;
44
58
  }
45
- export declare function KjunAlert({ type, variant, size, title, closable, live, children, actions, onClose, }: KjunAlertProps): import("react/jsx-runtime").JSX.Element | null;
59
+ export declare function KjunAlert({ type, variant, size, title, icon, closable, live, children, actions, className, onClose, }: KjunAlertProps): import("react/jsx-runtime").JSX.Element | null;
46
60
  export interface KjunProgressProps {
47
61
  /** null is missing data; omission keeps the zero default. */
48
62
  value?: number | null;
@@ -52,23 +66,38 @@ export interface KjunProgressProps {
52
66
  size?: "sm" | "md" | "lg";
53
67
  variant?: SemanticTone;
54
68
  showLabel?: boolean;
69
+ /** Shown and read in place of the rounded percent while the value is known, e.g. "37.4%" or "3.2 / 8 GB". */
70
+ valueText?: string;
71
+ /** A reference point across the bar on the value's own scale (0 to max), such as today's share of a budget. Bars only; not drawn while indeterminate or missing. */
72
+ marker?: number;
73
+ /** Read by screen readers as the bar's description, e.g. "오늘 기준 53%". Put visible wording in subLabel. */
74
+ markerLabel?: string;
55
75
  label?: ReactNode;
56
76
  subLabel?: ReactNode;
57
77
  shape?: "bar" | "circle";
58
78
  }
59
- export declare function KjunProgress({ value, indeterminate, max, size, variant, showLabel, label, subLabel, shape, }: KjunProgressProps): import("react/jsx-runtime").JSX.Element;
79
+ export declare function KjunProgress({ value, indeterminate, max, size, variant, showLabel, valueText, marker, markerLabel, label, subLabel, shape, }: KjunProgressProps): import("react/jsx-runtime").JSX.Element;
60
80
  export interface KjunSkeletonProps {
61
81
  /** "line" is one line of text: a bar in the line box of `role`, or of the surrounding text when no role is given. */
62
82
  type?: "text" | "line" | "avatar" | "card" | "table" | "stat" | "block";
63
- /** Typography role for type="line"; omit it to take the surrounding text's line height. */
83
+ /**
84
+ * Typography role of the text a "line" or "text" skeleton stands in for. Omitted, a line takes the surrounding
85
+ * text's line height and a paragraph the body role.
86
+ */
64
87
  role?: TypographyRole;
65
88
  /** Announces loading to screen readers (a status); the skeleton itself stays silent. */
66
89
  loadingText?: string;
90
+ /** Lines of a "text" or "card" skeleton, body rows of a "table" one; floored, 0–100. */
67
91
  rows?: number;
92
+ /** Columns of a "table" skeleton; floored, 0–100. */
68
93
  columns?: number;
69
94
  height?: CSSProperties["height"];
70
95
  width?: CSSProperties["width"];
71
96
  animated?: boolean;
72
97
  rounded?: boolean;
98
+ className?: string;
99
+ /** Merged over the root's own width. */
100
+ style?: CSSProperties;
101
+ id?: string;
73
102
  }
74
- export declare function KjunSkeleton({ type, rows, columns, height, width, animated, rounded, role, loadingText, }: KjunSkeletonProps): import("react/jsx-runtime").JSX.Element;
103
+ export declare function KjunSkeleton({ type, rows, columns, height, width, animated, rounded, role, loadingText, className, style, id, }: KjunSkeletonProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,5 @@
1
- import type { ReactNode } from "react";
1
+ import { type ReactNode } from "react";
2
+ import { type FocusReturn } from "./floating-panel.cjs";
2
3
  export interface KjunDrawerProps {
3
4
  open: boolean;
4
5
  onOpenChange: (v: boolean) => void;
@@ -10,15 +11,23 @@ export interface KjunDrawerProps {
10
11
  closeOnEsc?: boolean;
11
12
  noPadding?: boolean;
12
13
  header?: ReactNode;
14
+ /** Secondary actions in the title row, before the close button (such as a reset button). */
15
+ headerActions?: ReactNode;
13
16
  footer?: ReactNode;
14
17
  children: ReactNode;
15
18
  onClose?: () => void;
16
19
  /** Called once after the close finishes and the layer has left the screen (not when it mounts closed or reopens during the exit). */
17
20
  onAfterClose?: () => void;
18
21
  ariaLabel?: string;
22
+ /** Id of the element that describes the drawer, read after its name. */
23
+ ariaDescribedBy?: string;
24
+ /** Read after the exit finishes; a missing target falls back to the opener or parent window. */
25
+ returnFocus?: FocusReturn;
26
+ /** Bottom drawers: a grab handle above the header; dragging the handle or header down closes the drawer. */
27
+ handle?: boolean;
19
28
  /** Keeps clear of KjunProvider's safe area (default true): padded inside the panel and kept clear beyond a sheet. */
20
29
  safeArea?: boolean;
21
30
  /** Height limit in px for top and bottom drawers; by default they stop a sheet gap short of the opposite edge. */
22
31
  maxHeight?: number;
23
32
  }
24
- export declare function KjunDrawer({ open, onOpenChange, title, position, width, closable, closeOnOverlay, closeOnEsc, noPadding, header, footer, children, onClose, onAfterClose, ariaLabel, safeArea, maxHeight, }: KjunDrawerProps): import("react/jsx-runtime").JSX.Element | null;
33
+ export declare function KjunDrawer({ open, onOpenChange, title, position, width, closable, closeOnOverlay, closeOnEsc, noPadding, header, headerActions, footer, children, onClose, onAfterClose, ariaLabel, ariaDescribedBy, returnFocus, handle, safeArea, maxHeight, }: KjunDrawerProps): import("react/jsx-runtime").JSX.Element | null;