@kjun-ui/react 0.21.0 → 0.23.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 (297) hide show
  1. package/README.md +19 -5
  2. package/dist/index.cjs +8795 -3753
  3. package/dist/index.js +9349 -4284
  4. package/dist/styles.css +2736 -480
  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 -4
  8. package/dist/types/packages/react/src/app-navigation.d.ts +14 -4
  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 +15 -6
  12. package/dist/types/packages/react/src/button.d.ts +15 -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.d.cts +10 -3
  16. package/dist/types/packages/react/src/card.d.ts +10 -3
  17. package/dist/types/packages/react/src/carousel.d.cts +8 -1
  18. package/dist/types/packages/react/src/carousel.d.ts +8 -1
  19. package/dist/types/packages/react/src/choice-controls.d.cts +99 -0
  20. package/dist/types/packages/react/src/choice-controls.d.ts +99 -0
  21. package/dist/types/packages/react/src/collapse.d.cts +4 -1
  22. package/dist/types/packages/react/src/collapse.d.ts +4 -1
  23. package/dist/types/packages/react/src/color-picker.d.cts +8 -1
  24. package/dist/types/packages/react/src/color-picker.d.ts +8 -1
  25. package/dist/types/packages/react/src/combobox.d.cts +18 -5
  26. package/dist/types/packages/react/src/combobox.d.ts +18 -5
  27. package/dist/types/packages/react/src/controls.d.cts +7 -74
  28. package/dist/types/packages/react/src/controls.d.ts +7 -74
  29. package/dist/types/packages/react/src/data-state.d.cts +19 -6
  30. package/dist/types/packages/react/src/data-state.d.ts +19 -6
  31. package/dist/types/packages/react/src/date-picker.d.cts +8 -2
  32. package/dist/types/packages/react/src/date-picker.d.ts +8 -2
  33. package/dist/types/packages/react/src/display.d.cts +33 -8
  34. package/dist/types/packages/react/src/display.d.ts +33 -8
  35. package/dist/types/packages/react/src/drawer.d.cts +11 -2
  36. package/dist/types/packages/react/src/drawer.d.ts +11 -2
  37. package/dist/types/packages/react/src/dropdown.d.cts +21 -6
  38. package/dist/types/packages/react/src/dropdown.d.ts +21 -6
  39. package/dist/types/packages/react/src/event-calendar.d.cts +47 -0
  40. package/dist/types/packages/react/src/event-calendar.d.ts +47 -0
  41. package/dist/types/packages/react/src/fab.d.cts +2 -0
  42. package/dist/types/packages/react/src/fab.d.ts +2 -0
  43. package/dist/types/packages/react/src/file-upload-row.d.cts +23 -0
  44. package/dist/types/packages/react/src/file-upload-row.d.ts +23 -0
  45. package/dist/types/packages/react/src/file-upload.d.cts +38 -0
  46. package/dist/types/packages/react/src/file-upload.d.ts +38 -0
  47. package/dist/types/packages/react/src/financial-display.d.cts +32 -11
  48. package/dist/types/packages/react/src/financial-display.d.ts +32 -11
  49. package/dist/types/packages/react/src/floating-panel.d.cts +6 -2
  50. package/dist/types/packages/react/src/floating-panel.d.ts +6 -2
  51. package/dist/types/packages/react/src/index.d.cts +12 -1
  52. package/dist/types/packages/react/src/index.d.ts +12 -1
  53. package/dist/types/packages/react/src/input.d.cts +27 -1
  54. package/dist/types/packages/react/src/input.d.ts +27 -1
  55. package/dist/types/packages/react/src/kpi-hero.d.cts +2 -0
  56. package/dist/types/packages/react/src/kpi-hero.d.ts +2 -0
  57. package/dist/types/packages/react/src/kpi-row.d.cts +5 -0
  58. package/dist/types/packages/react/src/kpi-row.d.ts +5 -0
  59. package/dist/types/packages/react/src/layout-primitives.d.cts +71 -139
  60. package/dist/types/packages/react/src/layout-primitives.d.ts +71 -139
  61. package/dist/types/packages/react/src/list-context.d.cts +2 -1
  62. package/dist/types/packages/react/src/list-context.d.ts +2 -1
  63. package/dist/types/packages/react/src/list.d.cts +49 -12
  64. package/dist/types/packages/react/src/list.d.ts +49 -12
  65. package/dist/types/packages/react/src/market-model.d.cts +15 -1
  66. package/dist/types/packages/react/src/market-model.d.ts +15 -1
  67. package/dist/types/packages/react/src/market-parts.d.cts +9 -0
  68. package/dist/types/packages/react/src/market-parts.d.ts +9 -0
  69. package/dist/types/packages/react/src/market-skeleton.d.cts +7 -1
  70. package/dist/types/packages/react/src/market-skeleton.d.ts +7 -1
  71. package/dist/types/packages/react/src/media.d.cts +6 -2
  72. package/dist/types/packages/react/src/media.d.ts +6 -2
  73. package/dist/types/packages/react/src/modal.d.cts +11 -2
  74. package/dist/types/packages/react/src/modal.d.ts +11 -2
  75. package/dist/types/packages/react/src/navigation.d.cts +34 -5
  76. package/dist/types/packages/react/src/navigation.d.ts +34 -5
  77. package/dist/types/packages/react/src/number-display.d.cts +8 -5
  78. package/dist/types/packages/react/src/number-display.d.ts +8 -5
  79. package/dist/types/packages/react/src/number-input.d.cts +28 -0
  80. package/dist/types/packages/react/src/number-input.d.ts +28 -0
  81. package/dist/types/packages/react/src/popover.d.cts +5 -2
  82. package/dist/types/packages/react/src/popover.d.ts +5 -2
  83. package/dist/types/packages/react/src/pressable.d.cts +17 -0
  84. package/dist/types/packages/react/src/pressable.d.ts +17 -0
  85. package/dist/types/packages/react/src/quantity-stepper.d.cts +3 -1
  86. package/dist/types/packages/react/src/quantity-stepper.d.ts +3 -1
  87. package/dist/types/packages/react/src/range-input.d.cts +15 -3
  88. package/dist/types/packages/react/src/range-input.d.ts +15 -3
  89. package/dist/types/packages/react/src/search-input.d.cts +6 -3
  90. package/dist/types/packages/react/src/search-input.d.ts +6 -3
  91. package/dist/types/packages/react/src/select-control.d.cts +7 -2
  92. package/dist/types/packages/react/src/select-control.d.ts +7 -2
  93. package/dist/types/packages/react/src/side-navigation-layout-spaces.d.cts +31 -0
  94. package/dist/types/packages/react/src/side-navigation-layout-spaces.d.ts +31 -0
  95. package/dist/types/packages/react/src/side-navigation-layout.d.cts +63 -0
  96. package/dist/types/packages/react/src/side-navigation-layout.d.ts +63 -0
  97. package/dist/types/packages/react/src/side-navigation.d.cts +74 -0
  98. package/dist/types/packages/react/src/side-navigation.d.ts +74 -0
  99. package/dist/types/packages/react/src/skeletons.d.cts +18 -3
  100. package/dist/types/packages/react/src/skeletons.d.ts +18 -3
  101. package/dist/types/packages/react/src/spinner-glyph.d.cts +8 -0
  102. package/dist/types/packages/react/src/spinner-glyph.d.ts +8 -0
  103. package/dist/types/packages/react/src/split-pane.d.cts +20 -5
  104. package/dist/types/packages/react/src/split-pane.d.ts +20 -5
  105. package/dist/types/packages/react/src/stacked-bar.d.cts +3 -1
  106. package/dist/types/packages/react/src/stacked-bar.d.ts +3 -1
  107. package/dist/types/packages/react/src/steps.d.cts +27 -0
  108. package/dist/types/packages/react/src/steps.d.ts +27 -0
  109. package/dist/types/packages/react/src/table-cards.d.cts +4 -12
  110. package/dist/types/packages/react/src/table-cards.d.ts +4 -12
  111. package/dist/types/packages/react/src/table-grid.d.cts +3 -7
  112. package/dist/types/packages/react/src/table-grid.d.ts +3 -7
  113. package/dist/types/packages/react/src/table-groups.d.cts +5 -0
  114. package/dist/types/packages/react/src/table-groups.d.ts +5 -0
  115. package/dist/types/packages/react/src/table-list.d.cts +2 -9
  116. package/dist/types/packages/react/src/table-list.d.ts +2 -9
  117. package/dist/types/packages/react/src/table-model.d.cts +6 -2
  118. package/dist/types/packages/react/src/table-model.d.ts +6 -2
  119. package/dist/types/packages/react/src/tabs.d.cts +3 -1
  120. package/dist/types/packages/react/src/tabs.d.ts +3 -1
  121. package/dist/types/packages/react/src/textarea.d.cts +6 -3
  122. package/dist/types/packages/react/src/textarea.d.ts +6 -3
  123. package/dist/types/packages/react/src/tiles.d.cts +18 -0
  124. package/dist/types/packages/react/src/tiles.d.ts +18 -0
  125. package/dist/types/packages/react/src/time-picker.d.cts +12 -2
  126. package/dist/types/packages/react/src/time-picker.d.ts +12 -2
  127. package/dist/types/packages/react/src/time-wheel.d.cts +18 -0
  128. package/dist/types/packages/react/src/time-wheel.d.ts +18 -0
  129. package/dist/types/packages/react/src/use-filter-scroll.d.cts +5 -0
  130. package/dist/types/packages/react/src/use-filter-scroll.d.ts +5 -0
  131. package/dist/types/shared/package-runtime/accordion-state.d.cts +2 -0
  132. package/dist/types/shared/package-runtime/accordion-state.d.ts +2 -0
  133. package/dist/types/shared/package-runtime/action-size.d.cts +4 -0
  134. package/dist/types/shared/package-runtime/action-size.d.ts +4 -0
  135. package/dist/types/shared/package-runtime/alert-actions.d.cts +7 -0
  136. package/dist/types/shared/package-runtime/alert-actions.d.ts +7 -0
  137. package/dist/types/shared/package-runtime/alert-exit.d.cts +6 -0
  138. package/dist/types/shared/package-runtime/alert-exit.d.ts +6 -0
  139. package/dist/types/shared/package-runtime/alert-live.d.cts +2 -0
  140. package/dist/types/shared/package-runtime/alert-live.d.ts +2 -0
  141. package/dist/types/shared/package-runtime/avatar-group.d.cts +18 -0
  142. package/dist/types/shared/package-runtime/avatar-group.d.ts +18 -0
  143. package/dist/types/shared/package-runtime/badge-tone.d.cts +8 -2
  144. package/dist/types/shared/package-runtime/badge-tone.d.ts +8 -2
  145. package/dist/types/shared/package-runtime/bottom-bar.d.cts +1 -1
  146. package/dist/types/shared/package-runtime/bottom-bar.d.ts +1 -1
  147. package/dist/types/shared/package-runtime/bottom-navigation.d.cts +10 -0
  148. package/dist/types/shared/package-runtime/bottom-navigation.d.ts +10 -0
  149. package/dist/types/shared/package-runtime/calendar.d.cts +21 -7
  150. package/dist/types/shared/package-runtime/calendar.d.ts +21 -7
  151. package/dist/types/shared/package-runtime/card-layout.d.cts +8 -0
  152. package/dist/types/shared/package-runtime/card-layout.d.ts +8 -0
  153. package/dist/types/shared/package-runtime/carousel-scroll.d.cts +2 -0
  154. package/dist/types/shared/package-runtime/carousel-scroll.d.ts +2 -0
  155. package/dist/types/shared/package-runtime/carousel.d.cts +12 -2
  156. package/dist/types/shared/package-runtime/carousel.d.ts +12 -2
  157. package/dist/types/shared/package-runtime/chart-skeleton.d.cts +1 -1
  158. package/dist/types/shared/package-runtime/chart-skeleton.d.ts +1 -1
  159. package/dist/types/shared/package-runtime/clipboard.d.cts +6 -0
  160. package/dist/types/shared/package-runtime/clipboard.d.ts +6 -0
  161. package/dist/types/shared/package-runtime/combobox-options.d.cts +13 -0
  162. package/dist/types/shared/package-runtime/combobox-options.d.ts +13 -0
  163. package/dist/types/shared/package-runtime/combobox.d.cts +3 -1
  164. package/dist/types/shared/package-runtime/combobox.d.ts +3 -1
  165. package/dist/types/shared/package-runtime/copy-button.d.cts +11 -0
  166. package/dist/types/shared/package-runtime/copy-button.d.ts +11 -0
  167. package/dist/types/shared/package-runtime/data-cells.d.cts +36 -0
  168. package/dist/types/shared/package-runtime/data-cells.d.ts +36 -0
  169. package/dist/types/shared/package-runtime/development.d.cts +4 -0
  170. package/dist/types/shared/package-runtime/development.d.ts +4 -0
  171. package/dist/types/shared/package-runtime/distribution.d.cts +36 -1
  172. package/dist/types/shared/package-runtime/distribution.d.ts +36 -1
  173. package/dist/types/shared/package-runtime/drawer-geometry.d.cts +7 -0
  174. package/dist/types/shared/package-runtime/drawer-geometry.d.ts +7 -0
  175. package/dist/types/shared/package-runtime/event-calendar.d.cts +81 -0
  176. package/dist/types/shared/package-runtime/event-calendar.d.ts +81 -0
  177. package/dist/types/shared/package-runtime/external-link.d.cts +4 -0
  178. package/dist/types/shared/package-runtime/external-link.d.ts +4 -0
  179. package/dist/types/shared/package-runtime/field-group.d.cts +17 -0
  180. package/dist/types/shared/package-runtime/field-group.d.ts +17 -0
  181. package/dist/types/shared/package-runtime/file-upload.d.cts +128 -0
  182. package/dist/types/shared/package-runtime/file-upload.d.ts +128 -0
  183. package/dist/types/shared/package-runtime/filter-scroll.d.cts +5 -0
  184. package/dist/types/shared/package-runtime/filter-scroll.d.ts +5 -0
  185. package/dist/types/shared/package-runtime/filter-value.d.cts +2 -0
  186. package/dist/types/shared/package-runtime/filter-value.d.ts +2 -0
  187. package/dist/types/shared/package-runtime/input-field.d.cts +23 -0
  188. package/dist/types/shared/package-runtime/input-field.d.ts +23 -0
  189. package/dist/types/shared/package-runtime/input-variant.d.cts +7 -0
  190. package/dist/types/shared/package-runtime/input-variant.d.ts +7 -0
  191. package/dist/types/shared/package-runtime/kpi.d.cts +13 -0
  192. package/dist/types/shared/package-runtime/kpi.d.ts +13 -0
  193. package/dist/types/shared/package-runtime/layout-primitives.d.cts +115 -6
  194. package/dist/types/shared/package-runtime/layout-primitives.d.ts +115 -6
  195. package/dist/types/shared/package-runtime/list-row.d.cts +71 -8
  196. package/dist/types/shared/package-runtime/list-row.d.ts +71 -8
  197. package/dist/types/shared/package-runtime/market-layout.d.cts +3 -1
  198. package/dist/types/shared/package-runtime/market-layout.d.ts +3 -1
  199. package/dist/types/shared/package-runtime/market-query.d.cts +6 -0
  200. package/dist/types/shared/package-runtime/market-query.d.ts +6 -0
  201. package/dist/types/shared/package-runtime/market-table.d.cts +32 -0
  202. package/dist/types/shared/package-runtime/market-table.d.ts +32 -0
  203. package/dist/types/shared/package-runtime/menu-button.d.cts +4 -0
  204. package/dist/types/shared/package-runtime/menu-button.d.ts +4 -0
  205. package/dist/types/shared/package-runtime/messages/ko.d.cts +77 -1
  206. package/dist/types/shared/package-runtime/messages/ko.d.ts +77 -1
  207. package/dist/types/shared/package-runtime/messages-context.d.cts +69 -1
  208. package/dist/types/shared/package-runtime/messages-context.d.ts +69 -1
  209. package/dist/types/shared/package-runtime/minimum-loading.d.cts +3 -0
  210. package/dist/types/shared/package-runtime/minimum-loading.d.ts +3 -0
  211. package/dist/types/shared/package-runtime/modal-geometry.d.cts +15 -0
  212. package/dist/types/shared/package-runtime/modal-geometry.d.ts +15 -0
  213. package/dist/types/shared/package-runtime/navigation.d.cts +9 -2
  214. package/dist/types/shared/package-runtime/navigation.d.ts +9 -2
  215. package/dist/types/shared/package-runtime/nested-controls.d.cts +7 -0
  216. package/dist/types/shared/package-runtime/nested-controls.d.ts +7 -0
  217. package/dist/types/shared/package-runtime/node-text.d.cts +1 -0
  218. package/dist/types/shared/package-runtime/node-text.d.ts +1 -0
  219. package/dist/types/shared/package-runtime/number-input.d.cts +73 -0
  220. package/dist/types/shared/package-runtime/number-input.d.ts +73 -0
  221. package/dist/types/shared/package-runtime/options.d.cts +25 -5
  222. package/dist/types/shared/package-runtime/options.d.ts +25 -5
  223. package/dist/types/shared/package-runtime/pagination.d.cts +12 -0
  224. package/dist/types/shared/package-runtime/pagination.d.ts +12 -0
  225. package/dist/types/shared/package-runtime/press-repeat.d.cts +13 -0
  226. package/dist/types/shared/package-runtime/press-repeat.d.ts +13 -0
  227. package/dist/types/shared/package-runtime/progress-circle.d.cts +5 -0
  228. package/dist/types/shared/package-runtime/progress-circle.d.ts +5 -0
  229. package/dist/types/shared/package-runtime/progress-marker.d.cts +7 -0
  230. package/dist/types/shared/package-runtime/progress-marker.d.ts +7 -0
  231. package/dist/types/shared/package-runtime/progress-tone.d.cts +6 -0
  232. package/dist/types/shared/package-runtime/progress-tone.d.ts +6 -0
  233. package/dist/types/shared/package-runtime/select-trigger.d.cts +23 -0
  234. package/dist/types/shared/package-runtime/select-trigger.d.ts +23 -0
  235. package/dist/types/shared/package-runtime/sheet-drag.d.cts +24 -0
  236. package/dist/types/shared/package-runtime/sheet-drag.d.ts +24 -0
  237. package/dist/types/shared/package-runtime/side-navigation-keys.d.cts +23 -0
  238. package/dist/types/shared/package-runtime/side-navigation-keys.d.ts +23 -0
  239. package/dist/types/shared/package-runtime/side-navigation-layout.d.cts +24 -0
  240. package/dist/types/shared/package-runtime/side-navigation-layout.d.ts +24 -0
  241. package/dist/types/shared/package-runtime/side-navigation-scroll.d.cts +7 -0
  242. package/dist/types/shared/package-runtime/side-navigation-scroll.d.ts +7 -0
  243. package/dist/types/shared/package-runtime/side-navigation.d.cts +277 -0
  244. package/dist/types/shared/package-runtime/side-navigation.d.ts +277 -0
  245. package/dist/types/shared/package-runtime/signed-number.d.cts +33 -0
  246. package/dist/types/shared/package-runtime/signed-number.d.ts +33 -0
  247. package/dist/types/shared/package-runtime/skeleton-text.d.cts +4 -0
  248. package/dist/types/shared/package-runtime/skeleton-text.d.ts +4 -0
  249. package/dist/types/shared/package-runtime/slider-view.d.cts +17 -2
  250. package/dist/types/shared/package-runtime/slider-view.d.ts +17 -2
  251. package/dist/types/shared/package-runtime/sparkline.d.cts +8 -4
  252. package/dist/types/shared/package-runtime/sparkline.d.ts +8 -4
  253. package/dist/types/shared/package-runtime/spinner-geometry.d.cts +14 -0
  254. package/dist/types/shared/package-runtime/spinner-geometry.d.ts +14 -0
  255. package/dist/types/shared/package-runtime/split-pane.d.cts +40 -1
  256. package/dist/types/shared/package-runtime/split-pane.d.ts +40 -1
  257. package/dist/types/shared/package-runtime/steps.d.cts +51 -0
  258. package/dist/types/shared/package-runtime/steps.d.ts +51 -0
  259. package/dist/types/shared/package-runtime/tab-keyboard.d.cts +6 -0
  260. package/dist/types/shared/package-runtime/tab-keyboard.d.ts +6 -0
  261. package/dist/types/shared/package-runtime/table-columns.d.cts +8 -0
  262. package/dist/types/shared/package-runtime/table-columns.d.ts +8 -0
  263. package/dist/types/shared/package-runtime/table-model.d.cts +23 -3
  264. package/dist/types/shared/package-runtime/table-model.d.ts +23 -3
  265. package/dist/types/shared/package-runtime/table-presentation.d.cts +12 -2
  266. package/dist/types/shared/package-runtime/table-presentation.d.ts +12 -2
  267. package/dist/types/shared/package-runtime/table.d.cts +17 -2
  268. package/dist/types/shared/package-runtime/table.d.ts +17 -2
  269. package/dist/types/shared/package-runtime/textarea.d.cts +6 -4
  270. package/dist/types/shared/package-runtime/textarea.d.ts +6 -4
  271. package/dist/types/shared/package-runtime/tiles-children.d.cts +7 -0
  272. package/dist/types/shared/package-runtime/tiles-children.d.ts +7 -0
  273. package/dist/types/shared/package-runtime/tiles.d.cts +18 -0
  274. package/dist/types/shared/package-runtime/tiles.d.ts +18 -0
  275. package/dist/types/shared/package-runtime/time-segments.d.cts +24 -0
  276. package/dist/types/shared/package-runtime/time-segments.d.ts +24 -0
  277. package/dist/types/shared/package-runtime/time-wheel.d.cts +54 -0
  278. package/dist/types/shared/package-runtime/time-wheel.d.ts +54 -0
  279. package/dist/types/shared/package-runtime/trailing-overflow.d.cts +1 -0
  280. package/dist/types/shared/package-runtime/trailing-overflow.d.ts +1 -0
  281. package/dist/types/shared/package-runtime/use-color-picker.d.cts +3 -0
  282. package/dist/types/shared/package-runtime/use-color-picker.d.ts +3 -0
  283. package/dist/types/shared/package-runtime/use-copy-feedback.d.cts +10 -0
  284. package/dist/types/shared/package-runtime/use-copy-feedback.d.ts +10 -0
  285. package/dist/types/shared/package-runtime/use-open-state.d.cts +5 -0
  286. package/dist/types/shared/package-runtime/use-open-state.d.ts +5 -0
  287. package/dist/types/shared/package-runtime/use-pending-action.d.cts +6 -0
  288. package/dist/types/shared/package-runtime/use-pending-action.d.ts +6 -0
  289. package/dist/types/shared/package-runtime/use-side-navigation-state.d.cts +25 -0
  290. package/dist/types/shared/package-runtime/use-side-navigation-state.d.ts +25 -0
  291. package/dist/types/shared/package-runtime/use-slide.d.cts +3 -0
  292. package/dist/types/shared/package-runtime/use-slide.d.ts +3 -0
  293. package/package.json +3 -3
  294. package/dist/types/packages/react/src/compound-control.d.cts +0 -1
  295. package/dist/types/packages/react/src/compound-control.d.ts +0 -1
  296. package/dist/types/shared/package-runtime/center-option.d.cts +0 -1
  297. package/dist/types/shared/package-runtime/center-option.d.ts +0 -1
@@ -0,0 +1,31 @@
1
+ import { type SideNavigationPanelSurface } from "../../../shared/package-runtime/side-navigation-layout.cjs";
2
+ import { type CSSProperties, type ReactNode } from "react";
3
+ type Slot<S> = ReactNode | ((state: S) => ReactNode);
4
+ type State = {
5
+ collapsed: boolean;
6
+ drawer: boolean;
7
+ closeDrawer: () => void;
8
+ };
9
+ export interface SpacesLayoutProps {
10
+ spaces: Slot<State>;
11
+ nav: Slot<State>;
12
+ children?: ReactNode;
13
+ spacesTitle?: ReactNode;
14
+ panelSurface: SideNavigationPanelSurface;
15
+ panelCollapsed: boolean;
16
+ onPanelCollapsedChange?: (collapsed: boolean) => void;
17
+ panelLabel?: string;
18
+ narrow: boolean;
19
+ navOpen: boolean;
20
+ onNavOpenChange?: (open: boolean) => void;
21
+ closeDrawer: () => void;
22
+ drawerLabel?: string;
23
+ sticky: boolean;
24
+ offset?: CSSProperties;
25
+ classes: string;
26
+ }
27
+ /** KjunSideNavigationLayout with a spaces rail: a band in the rail colour holds the rail and the menu panel, whose head
28
+ * carries the space's name and the collapse button; the rail's top cell holds the expand button while the panel is
29
+ * collapsed. Below the breakpoint the whole band opens in the drawer, the panel always open there. */
30
+ export declare function SpacesLayout(p: SpacesLayoutProps): import("react/jsx-runtime").JSX.Element;
31
+ export {};
@@ -0,0 +1,31 @@
1
+ import { type SideNavigationPanelSurface } from "../../../shared/package-runtime/side-navigation-layout.js";
2
+ import { type CSSProperties, type ReactNode } from "react";
3
+ type Slot<S> = ReactNode | ((state: S) => ReactNode);
4
+ type State = {
5
+ collapsed: boolean;
6
+ drawer: boolean;
7
+ closeDrawer: () => void;
8
+ };
9
+ export interface SpacesLayoutProps {
10
+ spaces: Slot<State>;
11
+ nav: Slot<State>;
12
+ children?: ReactNode;
13
+ spacesTitle?: ReactNode;
14
+ panelSurface: SideNavigationPanelSurface;
15
+ panelCollapsed: boolean;
16
+ onPanelCollapsedChange?: (collapsed: boolean) => void;
17
+ panelLabel?: string;
18
+ narrow: boolean;
19
+ navOpen: boolean;
20
+ onNavOpenChange?: (open: boolean) => void;
21
+ closeDrawer: () => void;
22
+ drawerLabel?: string;
23
+ sticky: boolean;
24
+ offset?: CSSProperties;
25
+ classes: string;
26
+ }
27
+ /** KjunSideNavigationLayout with a spaces rail: a band in the rail colour holds the rail and the menu panel, whose head
28
+ * carries the space's name and the collapse button; the rail's top cell holds the expand button while the panel is
29
+ * collapsed. Below the breakpoint the whole band opens in the drawer, the panel always open there. */
30
+ export declare function SpacesLayout(p: SpacesLayoutProps): import("react/jsx-runtime").JSX.Element;
31
+ export {};
@@ -0,0 +1,63 @@
1
+ import { type SideNavigationWidth } from "../../../shared/package-runtime/side-navigation.cjs";
2
+ import { type ReactNode } from "react";
3
+ import { type SideNavigationPanelSurface } from "../../../shared/package-runtime/side-navigation-layout.cjs";
4
+ export type { SideNavigationWidth } from "../../../shared/package-runtime/side-navigation.cjs";
5
+ export type { SideNavigationPanelSurface } from "../../../shared/package-runtime/side-navigation-layout.cjs";
6
+ /** Where the menu is drawn: in the column (collapsed or open) or in the drawer of a narrow screen, which is always open.
7
+ * closeDrawer closes that drawer, e.g. in the menu's onNavigate; in the column it does nothing. */
8
+ export type SideNavigationLayoutState = {
9
+ collapsed: boolean;
10
+ drawer: boolean;
11
+ closeDrawer: () => void;
12
+ };
13
+ export interface KjunSideNavigationLayoutProps {
14
+ /** The menu, usually a KjunSideNavigation. A function receives where it is drawn, so it can pass collapsed on, show
15
+ * the full menu in the drawer and close the drawer after navigating. */
16
+ nav: ReactNode | ((state: SideNavigationLayoutState) => ReactNode);
17
+ /** The page beside the menu. */
18
+ children?: ReactNode;
19
+ /** The column shrinks to the rail of icons. Pass the same value to the menu. */
20
+ collapsed?: boolean;
21
+ /** railBreakpoint asks to collapse or widen the column as the viewport crosses it. */
22
+ onCollapsedChange?: (collapsed: boolean) => void;
23
+ /** Below this viewport width the column asks to shrink to the rail (onCollapsedChange(true)), and above it to widen
24
+ * again; between crossings the menu's own toggle stands. Default 0, off. */
25
+ railBreakpoint?: number;
26
+ /** The menu shows names under its icons while collapsed (KjunSideNavigation railLabels), so the rail is wider. */
27
+ railLabels?: boolean;
28
+ /** The open column's width: sm 224, md 256 (default), lg 288. */
29
+ width?: SideNavigationWidth;
30
+ /** The column stays in view as the page scrolls (default), the viewport's height, scrolling on its own. false lets it
31
+ * scroll away with the page. */
32
+ sticky?: boolean;
33
+ /** How far below the viewport's top the sticky column stays, such as the height of a fixed top bar; the column is
34
+ * that much shorter than the viewport. Default 0. */
35
+ stickyOffset?: number;
36
+ /** Below this viewport width the column goes away and the menu opens in a drawer from the start edge (navOpen).
37
+ * Default tokens.responsive.sideNavigationLayout (768); 0 keeps the column at every width. */
38
+ breakpoint?: number;
39
+ /** The drawer of a narrow screen. Open it from the app's own menu button, and close it with the nav state's
40
+ * closeDrawer. Widening past the breakpoint closes it (onNavOpenChange(false)). */
41
+ navOpen?: boolean;
42
+ onNavOpenChange?: (open: boolean) => void;
43
+ /** The drawer's name for assistive technology; the menu's name by default. */
44
+ drawerLabel?: string;
45
+ /** A rail of spaces, usually a collapsed KjunSideNavigation, before a menu panel that holds nav. The rail and the panel sit
46
+ * in a band in the navigation-rail-bg colour; the panel's head shows spacesTitle and a collapse button, and below the
47
+ * breakpoint the drawer holds both. With spaces, collapsed, railLabels and width do not apply, and railBreakpoint asks
48
+ * onPanelCollapsedChange instead. A function receives where it is drawn (collapsed is true: the rail is a collapsed menu). */
49
+ spaces?: ReactNode | ((state: SideNavigationLayoutState) => ReactNode);
50
+ /** The chosen space's name at the top of the panel, on one line. */
51
+ spacesTitle?: ReactNode;
52
+ /** The panel: a card set into the band ("card", default) or flat against it with a line before the page ("flat"). */
53
+ panelSurface?: SideNavigationPanelSurface;
54
+ /** The panel is collapsed and only the rail stays; the rail's top cell then holds the expand button. Default false. */
55
+ panelCollapsed?: boolean;
56
+ onPanelCollapsedChange?: (collapsed: boolean) => void;
57
+ /** The panel's name for assistive technology; "메뉴 패널" by default. */
58
+ panelLabel?: string;
59
+ className?: string;
60
+ }
61
+ /** A page with a side menu: a column that keeps the menu's width tokens (open or collapsed, sticky by default) beside the
62
+ * page, and a drawer for the menu below a breakpoint. The column's width follows collapsed with the collapse motion. */
63
+ export declare function KjunSideNavigationLayout({ nav, children, collapsed, onCollapsedChange, railBreakpoint, railLabels, width, sticky, stickyOffset, breakpoint, navOpen, onNavOpenChange, drawerLabel, spaces, spacesTitle, panelSurface, panelCollapsed, onPanelCollapsedChange, panelLabel, className }: KjunSideNavigationLayoutProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,63 @@
1
+ import { type SideNavigationWidth } from "../../../shared/package-runtime/side-navigation.js";
2
+ import { type ReactNode } from "react";
3
+ import { type SideNavigationPanelSurface } from "../../../shared/package-runtime/side-navigation-layout.js";
4
+ export type { SideNavigationWidth } from "../../../shared/package-runtime/side-navigation.js";
5
+ export type { SideNavigationPanelSurface } from "../../../shared/package-runtime/side-navigation-layout.js";
6
+ /** Where the menu is drawn: in the column (collapsed or open) or in the drawer of a narrow screen, which is always open.
7
+ * closeDrawer closes that drawer, e.g. in the menu's onNavigate; in the column it does nothing. */
8
+ export type SideNavigationLayoutState = {
9
+ collapsed: boolean;
10
+ drawer: boolean;
11
+ closeDrawer: () => void;
12
+ };
13
+ export interface KjunSideNavigationLayoutProps {
14
+ /** The menu, usually a KjunSideNavigation. A function receives where it is drawn, so it can pass collapsed on, show
15
+ * the full menu in the drawer and close the drawer after navigating. */
16
+ nav: ReactNode | ((state: SideNavigationLayoutState) => ReactNode);
17
+ /** The page beside the menu. */
18
+ children?: ReactNode;
19
+ /** The column shrinks to the rail of icons. Pass the same value to the menu. */
20
+ collapsed?: boolean;
21
+ /** railBreakpoint asks to collapse or widen the column as the viewport crosses it. */
22
+ onCollapsedChange?: (collapsed: boolean) => void;
23
+ /** Below this viewport width the column asks to shrink to the rail (onCollapsedChange(true)), and above it to widen
24
+ * again; between crossings the menu's own toggle stands. Default 0, off. */
25
+ railBreakpoint?: number;
26
+ /** The menu shows names under its icons while collapsed (KjunSideNavigation railLabels), so the rail is wider. */
27
+ railLabels?: boolean;
28
+ /** The open column's width: sm 224, md 256 (default), lg 288. */
29
+ width?: SideNavigationWidth;
30
+ /** The column stays in view as the page scrolls (default), the viewport's height, scrolling on its own. false lets it
31
+ * scroll away with the page. */
32
+ sticky?: boolean;
33
+ /** How far below the viewport's top the sticky column stays, such as the height of a fixed top bar; the column is
34
+ * that much shorter than the viewport. Default 0. */
35
+ stickyOffset?: number;
36
+ /** Below this viewport width the column goes away and the menu opens in a drawer from the start edge (navOpen).
37
+ * Default tokens.responsive.sideNavigationLayout (768); 0 keeps the column at every width. */
38
+ breakpoint?: number;
39
+ /** The drawer of a narrow screen. Open it from the app's own menu button, and close it with the nav state's
40
+ * closeDrawer. Widening past the breakpoint closes it (onNavOpenChange(false)). */
41
+ navOpen?: boolean;
42
+ onNavOpenChange?: (open: boolean) => void;
43
+ /** The drawer's name for assistive technology; the menu's name by default. */
44
+ drawerLabel?: string;
45
+ /** A rail of spaces, usually a collapsed KjunSideNavigation, before a menu panel that holds nav. The rail and the panel sit
46
+ * in a band in the navigation-rail-bg colour; the panel's head shows spacesTitle and a collapse button, and below the
47
+ * breakpoint the drawer holds both. With spaces, collapsed, railLabels and width do not apply, and railBreakpoint asks
48
+ * onPanelCollapsedChange instead. A function receives where it is drawn (collapsed is true: the rail is a collapsed menu). */
49
+ spaces?: ReactNode | ((state: SideNavigationLayoutState) => ReactNode);
50
+ /** The chosen space's name at the top of the panel, on one line. */
51
+ spacesTitle?: ReactNode;
52
+ /** The panel: a card set into the band ("card", default) or flat against it with a line before the page ("flat"). */
53
+ panelSurface?: SideNavigationPanelSurface;
54
+ /** The panel is collapsed and only the rail stays; the rail's top cell then holds the expand button. Default false. */
55
+ panelCollapsed?: boolean;
56
+ onPanelCollapsedChange?: (collapsed: boolean) => void;
57
+ /** The panel's name for assistive technology; "메뉴 패널" by default. */
58
+ panelLabel?: string;
59
+ className?: string;
60
+ }
61
+ /** A page with a side menu: a column that keeps the menu's width tokens (open or collapsed, sticky by default) beside the
62
+ * page, and a drawer for the menu below a breakpoint. The column's width follows collapsed with the collapse motion. */
63
+ export declare function KjunSideNavigationLayout({ nav, children, collapsed, onCollapsedChange, railBreakpoint, railLabels, width, sticky, stickyOffset, breakpoint, navOpen, onNavOpenChange, drawerLabel, spaces, spacesTitle, panelSurface, panelCollapsed, onPanelCollapsedChange, panelLabel, className }: KjunSideNavigationLayoutProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,74 @@
1
+ import { type SideNavigationCollapsedParent, type SideNavigationEntry, type SideNavigationHeadingLevel, type SideNavigationRail } from "../../../shared/package-runtime/side-navigation.cjs";
2
+ import { type ElementType, type MouseEvent, type ReactNode } from "react";
3
+ export type { SideNavigationAction, SideNavigationBadgeTone, SideNavigationCollapsedParent, SideNavigationDestination, SideNavigationHeadingLevel, SideNavigationParent, SideNavigationSubParent, SideNavigationItem, SideNavigationGroup, SideNavigationEntry, SideNavigationRail } from "../../../shared/package-runtime/side-navigation.cjs";
4
+ type Navigate = (key: string, event: MouseEvent<HTMLAnchorElement>) => void;
5
+ /** A header or footer: content, or a function of collapsed so it can swap to an icon-only form. */
6
+ export type SideNavigationSlot = ReactNode | ((collapsed: boolean) => ReactNode);
7
+ export interface KjunSideNavigationProps {
8
+ /** Destinations, parents with up to two levels under them, and titled groups of either. A destination has the bottom
9
+ * navigation's shape. */
10
+ items: SideNavigationEntry[];
11
+ /** The current destination's key (a child's key when the page is under a parent); null for a page outside the menu. */
12
+ value: string | null;
13
+ ariaLabel?: string;
14
+ /** A plain click on a destination of this tab. Modified clicks (new tab) and target links are left to the browser.
15
+ * With linkAs the router link already navigates: use this only for side effects such as closing a drawer. */
16
+ onNavigate?: Navigate;
17
+ /** The current destination was pressed again, e.g. to scroll its page back to the top. */
18
+ onReselect?: Navigate;
19
+ /** The open parents, at both levels. Without it the navigation keeps the list itself, starting with the parents of the
20
+ * current destination open. */
21
+ expanded?: string[];
22
+ /** Also called when moving to a page under a closed parent opens it. */
23
+ onExpandedChange?: (expanded: string[]) => void;
24
+ /** Icons only, for a narrowed column. Names show as tooltips, and children stay hidden behind their parent. */
25
+ collapsed?: boolean;
26
+ /** A parent or group was pressed while collapsed (collapsedParent="widen"), or the collapse toggle was pressed. */
27
+ onCollapsedChange?: (collapsed: boolean) => void;
28
+ /** Group titles become toggles that show or hide their group. A group's own collapsible overrides this. The group of
29
+ * the current destination starts open, and so do groups marked defaultOpen. */
30
+ collapsibleGroups?: boolean;
31
+ /** The open groups by key (a group's key, else its title). Without it the navigation keeps the list itself. */
32
+ expandedGroups?: string[];
33
+ /** Also called when moving to a page in a closed group opens it. */
34
+ onExpandedGroupsChange?: (expandedGroups: string[]) => void;
35
+ /** A group title that opens and closes ends with how many rows its group holds (a dot instead while a closed group has
36
+ * a badge inside). */
37
+ groupCounts?: boolean;
38
+ /** The groups (by key) showing every row past their limit. Without it the navigation keeps the list itself. */
39
+ showAll?: string[];
40
+ onShowAllChange?: (showAll: string[]) => void;
41
+ /** While collapsed: one icon per top-level item ("items"), or one per group ("groups", from the group's icon).
42
+ * Loose items between groups keep their own row. */
43
+ rail?: SideNavigationRail;
44
+ /** While collapsed: a short name (shortLabel, else the label) under each icon, in a 72 wide column. The current page,
45
+ * hover and press fill a 56 by 32 indicator around the icon, a count stays a number, and a tooltip shows only a name
46
+ * that was shortened. */
47
+ railLabels?: boolean;
48
+ /** While collapsed, pressing a parent or a rail group: "widen" asks for the full width with it open (onCollapsedChange);
49
+ * "flyout" shows its rows in a panel beside the icon and keeps the column narrow. */
50
+ collapsedParent?: SideNavigationCollapsedParent;
51
+ /** While collapsed, a hairline the icon's width between groups, on top of the gap that separates them. Off: the gap alone. */
52
+ railDividers?: boolean;
53
+ /** "compact": 32 tall rows and 30 tall children under a mouse, and counts as quiet numbers, for long lists (documentation,
54
+ * settings). A touch pointer keeps the touch heights. */
55
+ density?: "default" | "compact";
56
+ /** The level of the group titles' headings (default 2), to fit the page's outline. */
57
+ headingLevel?: SideNavigationHeadingLevel;
58
+ /** Above the list, such as a logo, a workspace switcher or search. With a header or footer only the list scrolls. */
59
+ header?: SideNavigationSlot;
60
+ /** Below the list, such as the account. */
61
+ footer?: SideNavigationSlot;
62
+ /** A button at the end of the footer that asks to collapse or widen the column (onCollapsedChange). */
63
+ collapseToggle?: boolean;
64
+ /** An action button of a row (the row's key) or a group title (the group's key) was pressed. */
65
+ onAction?: (key: string, action: string, event: MouseEvent<HTMLButtonElement>) => void;
66
+ /** Renders enabled links with the app's router link (Next.js Link, React Router Link) instead of <a>. It receives href,
67
+ * className, the aria-* and data-* attributes, onClick and children, and must render an <a> with them. */
68
+ linkAs?: ElementType;
69
+ /** Brings the current row into the menu's own scrolling column when the menu mounts, when the page changes and when
70
+ * items that hold it arrive. */
71
+ scrollToCurrent?: boolean;
72
+ }
73
+ /** A vertical menu for the side of a wide screen: links aligned to the start, the current one filled, groups with titles and up to two levels of children. */
74
+ export declare function KjunSideNavigation({ items, value, ariaLabel, onNavigate, onReselect, expanded, onExpandedChange, collapsed, onCollapsedChange, collapsibleGroups, expandedGroups, onExpandedGroupsChange, groupCounts, showAll, onShowAllChange, rail, railLabels, collapsedParent, railDividers, density, headingLevel, header, footer, collapseToggle, onAction, linkAs, scrollToCurrent }: KjunSideNavigationProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,74 @@
1
+ import { type SideNavigationCollapsedParent, type SideNavigationEntry, type SideNavigationHeadingLevel, type SideNavigationRail } from "../../../shared/package-runtime/side-navigation.js";
2
+ import { type ElementType, type MouseEvent, type ReactNode } from "react";
3
+ export type { SideNavigationAction, SideNavigationBadgeTone, SideNavigationCollapsedParent, SideNavigationDestination, SideNavigationHeadingLevel, SideNavigationParent, SideNavigationSubParent, SideNavigationItem, SideNavigationGroup, SideNavigationEntry, SideNavigationRail } from "../../../shared/package-runtime/side-navigation.js";
4
+ type Navigate = (key: string, event: MouseEvent<HTMLAnchorElement>) => void;
5
+ /** A header or footer: content, or a function of collapsed so it can swap to an icon-only form. */
6
+ export type SideNavigationSlot = ReactNode | ((collapsed: boolean) => ReactNode);
7
+ export interface KjunSideNavigationProps {
8
+ /** Destinations, parents with up to two levels under them, and titled groups of either. A destination has the bottom
9
+ * navigation's shape. */
10
+ items: SideNavigationEntry[];
11
+ /** The current destination's key (a child's key when the page is under a parent); null for a page outside the menu. */
12
+ value: string | null;
13
+ ariaLabel?: string;
14
+ /** A plain click on a destination of this tab. Modified clicks (new tab) and target links are left to the browser.
15
+ * With linkAs the router link already navigates: use this only for side effects such as closing a drawer. */
16
+ onNavigate?: Navigate;
17
+ /** The current destination was pressed again, e.g. to scroll its page back to the top. */
18
+ onReselect?: Navigate;
19
+ /** The open parents, at both levels. Without it the navigation keeps the list itself, starting with the parents of the
20
+ * current destination open. */
21
+ expanded?: string[];
22
+ /** Also called when moving to a page under a closed parent opens it. */
23
+ onExpandedChange?: (expanded: string[]) => void;
24
+ /** Icons only, for a narrowed column. Names show as tooltips, and children stay hidden behind their parent. */
25
+ collapsed?: boolean;
26
+ /** A parent or group was pressed while collapsed (collapsedParent="widen"), or the collapse toggle was pressed. */
27
+ onCollapsedChange?: (collapsed: boolean) => void;
28
+ /** Group titles become toggles that show or hide their group. A group's own collapsible overrides this. The group of
29
+ * the current destination starts open, and so do groups marked defaultOpen. */
30
+ collapsibleGroups?: boolean;
31
+ /** The open groups by key (a group's key, else its title). Without it the navigation keeps the list itself. */
32
+ expandedGroups?: string[];
33
+ /** Also called when moving to a page in a closed group opens it. */
34
+ onExpandedGroupsChange?: (expandedGroups: string[]) => void;
35
+ /** A group title that opens and closes ends with how many rows its group holds (a dot instead while a closed group has
36
+ * a badge inside). */
37
+ groupCounts?: boolean;
38
+ /** The groups (by key) showing every row past their limit. Without it the navigation keeps the list itself. */
39
+ showAll?: string[];
40
+ onShowAllChange?: (showAll: string[]) => void;
41
+ /** While collapsed: one icon per top-level item ("items"), or one per group ("groups", from the group's icon).
42
+ * Loose items between groups keep their own row. */
43
+ rail?: SideNavigationRail;
44
+ /** While collapsed: a short name (shortLabel, else the label) under each icon, in a 72 wide column. The current page,
45
+ * hover and press fill a 56 by 32 indicator around the icon, a count stays a number, and a tooltip shows only a name
46
+ * that was shortened. */
47
+ railLabels?: boolean;
48
+ /** While collapsed, pressing a parent or a rail group: "widen" asks for the full width with it open (onCollapsedChange);
49
+ * "flyout" shows its rows in a panel beside the icon and keeps the column narrow. */
50
+ collapsedParent?: SideNavigationCollapsedParent;
51
+ /** While collapsed, a hairline the icon's width between groups, on top of the gap that separates them. Off: the gap alone. */
52
+ railDividers?: boolean;
53
+ /** "compact": 32 tall rows and 30 tall children under a mouse, and counts as quiet numbers, for long lists (documentation,
54
+ * settings). A touch pointer keeps the touch heights. */
55
+ density?: "default" | "compact";
56
+ /** The level of the group titles' headings (default 2), to fit the page's outline. */
57
+ headingLevel?: SideNavigationHeadingLevel;
58
+ /** Above the list, such as a logo, a workspace switcher or search. With a header or footer only the list scrolls. */
59
+ header?: SideNavigationSlot;
60
+ /** Below the list, such as the account. */
61
+ footer?: SideNavigationSlot;
62
+ /** A button at the end of the footer that asks to collapse or widen the column (onCollapsedChange). */
63
+ collapseToggle?: boolean;
64
+ /** An action button of a row (the row's key) or a group title (the group's key) was pressed. */
65
+ onAction?: (key: string, action: string, event: MouseEvent<HTMLButtonElement>) => void;
66
+ /** Renders enabled links with the app's router link (Next.js Link, React Router Link) instead of <a>. It receives href,
67
+ * className, the aria-* and data-* attributes, onClick and children, and must render an <a> with them. */
68
+ linkAs?: ElementType;
69
+ /** Brings the current row into the menu's own scrolling column when the menu mounts, when the page changes and when
70
+ * items that hold it arrive. */
71
+ scrollToCurrent?: boolean;
72
+ }
73
+ /** A vertical menu for the side of a wide screen: links aligned to the start, the current one filled, groups with titles and up to two levels of children. */
74
+ export declare function KjunSideNavigation({ items, value, ariaLabel, onNavigate, onReselect, expanded, onExpandedChange, collapsed, onCollapsedChange, collapsibleGroups, expandedGroups, onExpandedGroupsChange, groupCounts, showAll, onShowAllChange, rail, railLabels, collapsedParent, railDividers, density, headingLevel, header, footer, collapseToggle, onAction, linkAs, scrollToCurrent }: KjunSideNavigationProps): import("react/jsx-runtime").JSX.Element;
@@ -15,8 +15,11 @@ export interface KjunListSkeletonProps {
15
15
  trailing?: "value" | "switch" | "chevron";
16
16
  /** Announces loading to screen readers (a status); the skeleton itself stays silent. */
17
17
  loadingText?: string;
18
+ className?: string;
19
+ style?: CSSProperties;
20
+ id?: string;
18
21
  }
19
- export declare function KjunListSkeleton({ rows, variant, avatar, avatarSize: ownAvatarSize, quote, description, trailing, loadingText, }: KjunListSkeletonProps): import("react/jsx-runtime").JSX.Element;
22
+ export declare function KjunListSkeleton({ rows, variant, avatar, avatarSize: ownAvatarSize, quote, description, trailing, loadingText, className, style, id, }: KjunListSkeletonProps): import("react/jsx-runtime").JSX.Element;
20
23
  export interface KjunFormSkeletonProps {
21
24
  fields?: (string | {
22
25
  label?: string;
@@ -25,10 +28,18 @@ export interface KjunFormSkeletonProps {
25
28
  columns?: number;
26
29
  multiline?: boolean;
27
30
  size?: InputSize;
31
+ /**
32
+ * Bars for a FormActions row under the fields, end-aligned at the size's button height; the last is the primary
33
+ * button. Give the real FormActions the same size so nothing moves when the form arrives. Default 0.
34
+ */
35
+ actions?: number;
28
36
  /** Announces loading to screen readers (a status); the skeleton itself stays silent. */
29
37
  loadingText?: string;
38
+ className?: string;
39
+ style?: CSSProperties;
40
+ id?: string;
30
41
  }
31
- export declare function KjunFormSkeleton({ fields, columns, multiline, size, loadingText, }: KjunFormSkeletonProps): import("react/jsx-runtime").JSX.Element;
42
+ export declare function KjunFormSkeleton({ fields, columns, multiline, size, actions, loadingText, className, style, id, }: KjunFormSkeletonProps): import("react/jsx-runtime").JSX.Element;
32
43
  export interface KjunChartSkeletonProps {
33
44
  kind?: KjunChartSkeletonKind;
34
45
  height?: CSSProperties["height"];
@@ -43,7 +54,11 @@ export interface KjunChartSkeletonProps {
43
54
  xTicks?: number;
44
55
  /** Frame: y-axis label width in px (default 40); label bars fill it, less the label gap. */
45
56
  axisWidth?: number;
57
+ className?: string;
58
+ /** Merged over the root's height and reveal styles. */
59
+ style?: CSSProperties;
60
+ id?: string;
46
61
  }
47
- export declare function KjunChartSkeleton({ kind: requestedKind, height, loadingText, skeleton, loadingDelay, rows, columns, gridLines, xTicks, axisWidth, }: KjunChartSkeletonProps): import("react/jsx-runtime").JSX.Element;
62
+ export declare function KjunChartSkeleton({ kind: requestedKind, height, loadingText, skeleton, loadingDelay, rows, columns, gridLines, xTicks, axisWidth, className, style, id, }: KjunChartSkeletonProps): import("react/jsx-runtime").JSX.Element;
48
63
  export { KjunMarketTableSkeleton } from "./market-skeleton.cjs";
49
64
  export type { KjunMarketTableSkeletonProps } from "./market-skeleton.cjs";
@@ -15,8 +15,11 @@ export interface KjunListSkeletonProps {
15
15
  trailing?: "value" | "switch" | "chevron";
16
16
  /** Announces loading to screen readers (a status); the skeleton itself stays silent. */
17
17
  loadingText?: string;
18
+ className?: string;
19
+ style?: CSSProperties;
20
+ id?: string;
18
21
  }
19
- export declare function KjunListSkeleton({ rows, variant, avatar, avatarSize: ownAvatarSize, quote, description, trailing, loadingText, }: KjunListSkeletonProps): import("react/jsx-runtime").JSX.Element;
22
+ export declare function KjunListSkeleton({ rows, variant, avatar, avatarSize: ownAvatarSize, quote, description, trailing, loadingText, className, style, id, }: KjunListSkeletonProps): import("react/jsx-runtime").JSX.Element;
20
23
  export interface KjunFormSkeletonProps {
21
24
  fields?: (string | {
22
25
  label?: string;
@@ -25,10 +28,18 @@ export interface KjunFormSkeletonProps {
25
28
  columns?: number;
26
29
  multiline?: boolean;
27
30
  size?: InputSize;
31
+ /**
32
+ * Bars for a FormActions row under the fields, end-aligned at the size's button height; the last is the primary
33
+ * button. Give the real FormActions the same size so nothing moves when the form arrives. Default 0.
34
+ */
35
+ actions?: number;
28
36
  /** Announces loading to screen readers (a status); the skeleton itself stays silent. */
29
37
  loadingText?: string;
38
+ className?: string;
39
+ style?: CSSProperties;
40
+ id?: string;
30
41
  }
31
- export declare function KjunFormSkeleton({ fields, columns, multiline, size, loadingText, }: KjunFormSkeletonProps): import("react/jsx-runtime").JSX.Element;
42
+ export declare function KjunFormSkeleton({ fields, columns, multiline, size, actions, loadingText, className, style, id, }: KjunFormSkeletonProps): import("react/jsx-runtime").JSX.Element;
32
43
  export interface KjunChartSkeletonProps {
33
44
  kind?: KjunChartSkeletonKind;
34
45
  height?: CSSProperties["height"];
@@ -43,7 +54,11 @@ export interface KjunChartSkeletonProps {
43
54
  xTicks?: number;
44
55
  /** Frame: y-axis label width in px (default 40); label bars fill it, less the label gap. */
45
56
  axisWidth?: number;
57
+ className?: string;
58
+ /** Merged over the root's height and reveal styles. */
59
+ style?: CSSProperties;
60
+ id?: string;
46
61
  }
47
- export declare function KjunChartSkeleton({ kind: requestedKind, height, loadingText, skeleton, loadingDelay, rows, columns, gridLines, xTicks, axisWidth, }: KjunChartSkeletonProps): import("react/jsx-runtime").JSX.Element;
62
+ export declare function KjunChartSkeleton({ kind: requestedKind, height, loadingText, skeleton, loadingDelay, rows, columns, gridLines, xTicks, axisWidth, className, style, id, }: KjunChartSkeletonProps): import("react/jsx-runtime").JSX.Element;
48
63
  export { KjunMarketTableSkeleton } from "./market-skeleton.js";
49
64
  export type { KjunMarketTableSkeletonProps } from "./market-skeleton.js";
@@ -0,0 +1,8 @@
1
+ import type { CSSProperties } from "react";
2
+ /** Internal loading ring shared by Spinner, Button, Fab, List, Switch and Toast. Decorative: the owner announces the state. */
3
+ export declare function KjunSpinnerGlyph({ size, stroke, className, style }: {
4
+ size: number;
5
+ stroke?: number;
6
+ className?: string;
7
+ style?: CSSProperties;
8
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import type { CSSProperties } from "react";
2
+ /** Internal loading ring shared by Spinner, Button, Fab, List, Switch and Toast. Decorative: the owner announces the state. */
3
+ export declare function KjunSpinnerGlyph({ size, stroke, className, style }: {
4
+ size: number;
5
+ stroke?: number;
6
+ className?: string;
7
+ style?: CSSProperties;
8
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,13 +1,18 @@
1
- import { type SplitDirection, type SplitMax, type SplitMin } from "../../../shared/package-runtime/split-pane.cjs";
1
+ import { type SplitDirection, type SplitMax, type SplitMin, type SplitUnit } from "../../../shared/package-runtime/split-pane.cjs";
2
2
  import { type CSSProperties, type ReactNode } from "react";
3
3
  export interface KjunSplitPaneProps {
4
4
  /** horizontal puts the panes side by side; vertical stacks them and needs a height from its parent. */
5
5
  direction?: SplitDirection;
6
- /** Controlled share (0–1) of the room beside the handle that the first pane takes; pair with onSizeChange. */
6
+ /**
7
+ * "ratio": sizes are the first pane's share (0–1) of the room beside the handle, so the split keeps its proportion as
8
+ * the container resizes. "px": sizes are the first pane's pixels, so a side list keeps its width.
9
+ */
10
+ sizeUnit?: SplitUnit;
11
+ /** Controlled size of the first pane in sizeUnit; pair with onSizeChange. */
7
12
  size?: number;
8
- /** The starting share without size, and the share Enter restores. */
13
+ /** The starting size without size, and the size a double press (or Enter, when the pane does not collapse) restores. Half the room without it. */
9
14
  defaultSize?: number;
10
- /** Smallest pixels of the first and second pane. A minimum beats the share and the maximums. */
15
+ /** Smallest pixels of the first and second pane. A minimum beats the size and the maximums. */
11
16
  minSize?: SplitMin;
12
17
  /** Largest pixels of the first and second pane; null leaves a pane unlimited. */
13
18
  maxSize?: SplitMax;
@@ -15,6 +20,16 @@ export interface KjunSplitPaneProps {
15
20
  ariaLabel: string;
16
21
  /** Keeps the split where it is: the handle takes no pointer, key or focus. */
17
22
  disabled?: boolean;
23
+ /** The first pane collapses to collapsedSize when dragged past half its minimum, or with Enter or Home. */
24
+ collapsible?: boolean;
25
+ /** Pixels a collapsed first pane keeps, e.g. 48 for an icon rail the app draws in first. 0 hides the pane. */
26
+ collapsedSize?: number;
27
+ /** Controlled collapsed state; pair with onCollapsedChange. */
28
+ collapsed?: boolean;
29
+ defaultCollapsed?: boolean;
30
+ onCollapsedChange?: (collapsed: boolean) => void;
31
+ /** Hides the second pane and the handle; the first pane takes the whole room and stays mounted, keeping its scroll, selection and focus (a list that opens its detail beside it). second stays mounted too. */
32
+ secondHidden?: boolean;
18
33
  /** Every step of a drag or key press. */
19
34
  onSizeChange?: (size: number) => void;
20
35
  /** Once when a drag ends or a key moves the handle; the place to save the size. */
@@ -27,4 +42,4 @@ export interface KjunSplitPaneProps {
27
42
  id?: string;
28
43
  }
29
44
  /** Two panes with a handle between them; dragging it or pressing arrow keys, Home, End or Enter resizes the first pane. */
30
- export declare function KjunSplitPane({ direction, size, defaultSize, minSize, maxSize, ariaLabel, disabled, onSizeChange, onChangeCommit, first, second, className, style, id }: KjunSplitPaneProps): import("react/jsx-runtime").JSX.Element;
45
+ export declare function KjunSplitPane({ direction, sizeUnit, size, defaultSize, minSize, maxSize, ariaLabel, disabled, collapsible, collapsedSize, collapsed, defaultCollapsed, onCollapsedChange, secondHidden, onSizeChange, onChangeCommit, first, second, className, style, id }: KjunSplitPaneProps): import("react/jsx-runtime").JSX.Element;
@@ -1,13 +1,18 @@
1
- import { type SplitDirection, type SplitMax, type SplitMin } from "../../../shared/package-runtime/split-pane.js";
1
+ import { type SplitDirection, type SplitMax, type SplitMin, type SplitUnit } from "../../../shared/package-runtime/split-pane.js";
2
2
  import { type CSSProperties, type ReactNode } from "react";
3
3
  export interface KjunSplitPaneProps {
4
4
  /** horizontal puts the panes side by side; vertical stacks them and needs a height from its parent. */
5
5
  direction?: SplitDirection;
6
- /** Controlled share (0–1) of the room beside the handle that the first pane takes; pair with onSizeChange. */
6
+ /**
7
+ * "ratio": sizes are the first pane's share (0–1) of the room beside the handle, so the split keeps its proportion as
8
+ * the container resizes. "px": sizes are the first pane's pixels, so a side list keeps its width.
9
+ */
10
+ sizeUnit?: SplitUnit;
11
+ /** Controlled size of the first pane in sizeUnit; pair with onSizeChange. */
7
12
  size?: number;
8
- /** The starting share without size, and the share Enter restores. */
13
+ /** The starting size without size, and the size a double press (or Enter, when the pane does not collapse) restores. Half the room without it. */
9
14
  defaultSize?: number;
10
- /** Smallest pixels of the first and second pane. A minimum beats the share and the maximums. */
15
+ /** Smallest pixels of the first and second pane. A minimum beats the size and the maximums. */
11
16
  minSize?: SplitMin;
12
17
  /** Largest pixels of the first and second pane; null leaves a pane unlimited. */
13
18
  maxSize?: SplitMax;
@@ -15,6 +20,16 @@ export interface KjunSplitPaneProps {
15
20
  ariaLabel: string;
16
21
  /** Keeps the split where it is: the handle takes no pointer, key or focus. */
17
22
  disabled?: boolean;
23
+ /** The first pane collapses to collapsedSize when dragged past half its minimum, or with Enter or Home. */
24
+ collapsible?: boolean;
25
+ /** Pixels a collapsed first pane keeps, e.g. 48 for an icon rail the app draws in first. 0 hides the pane. */
26
+ collapsedSize?: number;
27
+ /** Controlled collapsed state; pair with onCollapsedChange. */
28
+ collapsed?: boolean;
29
+ defaultCollapsed?: boolean;
30
+ onCollapsedChange?: (collapsed: boolean) => void;
31
+ /** Hides the second pane and the handle; the first pane takes the whole room and stays mounted, keeping its scroll, selection and focus (a list that opens its detail beside it). second stays mounted too. */
32
+ secondHidden?: boolean;
18
33
  /** Every step of a drag or key press. */
19
34
  onSizeChange?: (size: number) => void;
20
35
  /** Once when a drag ends or a key moves the handle; the place to save the size. */
@@ -27,4 +42,4 @@ export interface KjunSplitPaneProps {
27
42
  id?: string;
28
43
  }
29
44
  /** Two panes with a handle between them; dragging it or pressing arrow keys, Home, End or Enter resizes the first pane. */
30
- export declare function KjunSplitPane({ direction, size, defaultSize, minSize, maxSize, ariaLabel, disabled, onSizeChange, onChangeCommit, first, second, className, style, id }: KjunSplitPaneProps): import("react/jsx-runtime").JSX.Element;
45
+ export declare function KjunSplitPane({ direction, sizeUnit, size, defaultSize, minSize, maxSize, ariaLabel, disabled, collapsible, collapsedSize, collapsed, defaultCollapsed, onCollapsedChange, secondHidden, onSizeChange, onChangeCommit, first, second, className, style, id }: KjunSplitPaneProps): import("react/jsx-runtime").JSX.Element;
@@ -8,6 +8,8 @@ export interface KjunStackedBarProps {
8
8
  label?: string;
9
9
  /** The accessible name when there is no visible label, or a fuller one than it. */
10
10
  ariaLabel?: string;
11
+ /** The app's summary at the end of the caption line, such as a total or a verdict; read after the name. Data that is missing shows missingText there instead. */
12
+ valueText?: string;
11
13
  size?: "sm" | "md";
12
14
  /** Each part's colour, name, value and share under the bar, so parts are not told apart by colour alone. */
13
15
  legend?: boolean;
@@ -19,4 +21,4 @@ export interface KjunStackedBarProps {
19
21
  id?: string;
20
22
  }
21
23
  /** The parts of a whole: each segment is as long as its share. It shows a breakdown; it is not a control. */
22
- export declare function KjunStackedBar({ items, label, ariaLabel, size, legend, formatValue, missingText, className, style, id }: KjunStackedBarProps): import("react/jsx-runtime").JSX.Element;
24
+ export declare function KjunStackedBar({ items, label, ariaLabel, valueText, size, legend, formatValue, missingText, className, style, id }: KjunStackedBarProps): import("react/jsx-runtime").JSX.Element;
@@ -8,6 +8,8 @@ export interface KjunStackedBarProps {
8
8
  label?: string;
9
9
  /** The accessible name when there is no visible label, or a fuller one than it. */
10
10
  ariaLabel?: string;
11
+ /** The app's summary at the end of the caption line, such as a total or a verdict; read after the name. Data that is missing shows missingText there instead. */
12
+ valueText?: string;
11
13
  size?: "sm" | "md";
12
14
  /** Each part's colour, name, value and share under the bar, so parts are not told apart by colour alone. */
13
15
  legend?: boolean;
@@ -19,4 +21,4 @@ export interface KjunStackedBarProps {
19
21
  id?: string;
20
22
  }
21
23
  /** The parts of a whole: each segment is as long as its share. It shows a breakdown; it is not a control. */
22
- export declare function KjunStackedBar({ items, label, ariaLabel, size, legend, formatValue, missingText, className, style, id }: KjunStackedBarProps): import("react/jsx-runtime").JSX.Element;
24
+ export declare function KjunStackedBar({ items, label, ariaLabel, valueText, size, legend, formatValue, missingText, className, style, id }: KjunStackedBarProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,27 @@
1
+ import { type KjunStepItem, type KjunStepStatus, type KjunStepsCurrentStatus, type KjunStepsLayout, type KjunStepsSelectable } from "../../../shared/package-runtime/steps.cjs";
2
+ import { type CSSProperties } from "react";
3
+ export type { KjunStepItem, KjunStepStatus, KjunStepsCurrentStatus, KjunStepsLayout, KjunStepsSelectable };
4
+ export interface KjunStepsProps {
5
+ /** The steps in order. Two or more. */
6
+ items: KjunStepItem[];
7
+ /** Index of the current step, counted from 0. items.length means every step is complete. Optional when the items carry
8
+ * their own status: the first step marked current or error is then the current one. */
9
+ current?: number;
10
+ /** error marks the current step as failed (a failed payment, a failed delivery). */
11
+ currentStatus?: KjunStepsCurrentStatus;
12
+ orientation?: "horizontal" | "vertical";
13
+ /** Horizontal only. auto folds to a compact header and bare markers when the container is narrower than 80px per step. */
14
+ layout?: KjunStepsLayout;
15
+ /** Names the list; defaults to the "진행 단계" message. */
16
+ ariaLabel?: string;
17
+ /** Makes steps buttons in the wide horizontal layout and in the vertical one: completed ones, or with selectable="all" every step but the current one. */
18
+ onStepSelect?: (index: number) => void;
19
+ /** "complete" (default) lets onStepSelect go back only; "all" also lets it skip ahead to a later step. */
20
+ selectable?: KjunStepsSelectable;
21
+ className?: string;
22
+ style?: CSSProperties;
23
+ id?: string;
24
+ [data: `data-${string}`]: string | undefined;
25
+ }
26
+ /** Progress through an ordered flow: a wizard, a checkout, a delivery trail. */
27
+ export declare function KjunSteps({ items, current, currentStatus, orientation, layout, ariaLabel, onStepSelect, selectable, className, style, id, ...rest }: KjunStepsProps): import("react/jsx-runtime").JSX.Element;