@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
@@ -51,13 +51,21 @@ export declare const useKjunMessages: () => {
51
51
  optional: string;
52
52
  clearSelection: string;
53
53
  searchOptions: string;
54
+ avatarGroupCount: (count: number) => string;
54
55
  selectedCount: (count: number) => string;
56
+ eventCount: (count: number) => string;
57
+ holiday: string;
55
58
  loadMore: string;
56
59
  clearInput: string;
60
+ revealPassword: string;
61
+ concealPassword: string;
62
+ revealPasswordLabel: string;
63
+ concealPasswordLabel: string;
57
64
  clearValue: (label: string) => string;
58
65
  datePlaceholder: string;
59
66
  clearDate: string;
60
67
  calendarTitle: (year: number, month: number) => string;
68
+ weekTitle: (y1: number, m1: number, d1: number, y2: number, m2: number, d2: number) => string;
61
69
  weekdays: string;
62
70
  previousMonth: string;
63
71
  nextMonth: string;
@@ -70,6 +78,8 @@ export declare const useKjunMessages: () => {
70
78
  rangeEndDay: string;
71
79
  inRangeDay: string;
72
80
  chooseEndDate: string;
81
+ rangePresets: string;
82
+ rangeLength: (minDays?: number, maxDays?: number) => string;
73
83
  today: string;
74
84
  apply: string;
75
85
  rangePlaceholder: string;
@@ -84,6 +94,8 @@ export declare const useKjunMessages: () => {
84
94
  minute: string;
85
95
  second: string;
86
96
  timePlaceholder: string;
97
+ selectTime: string;
98
+ now: string;
87
99
  value: string;
88
100
  minimum: string;
89
101
  maximum: string;
@@ -114,6 +126,7 @@ export declare const useKjunMessages: () => {
114
126
  searchTable: string;
115
127
  expandRow: string;
116
128
  collapse: string;
129
+ expand: string;
117
130
  showDetails: string;
118
131
  ascending: string;
119
132
  sortBy: string;
@@ -123,6 +136,15 @@ export declare const useKjunMessages: () => {
123
136
  showPath: string;
124
137
  breadcrumb: string;
125
138
  mainNavigation: string;
139
+ collapseNavigation: string;
140
+ expandNavigation: string;
141
+ spacesPanel: string;
142
+ collapseSpacesPanel: string;
143
+ expandSpacesPanel: string;
144
+ showMoreItems: (count: number) => string;
145
+ showFewerItems: string;
146
+ showMoreText: string;
147
+ showLessText: string;
126
148
  newCount: (count: number) => string;
127
149
  saving: string;
128
150
  charactersLeft: (count: number) => string;
@@ -130,8 +152,10 @@ export declare const useKjunMessages: () => {
130
152
  pagination: string;
131
153
  itemsPerPage: string;
132
154
  perPage: (count: number) => string;
133
- pageRange: (from: number, to: number, total: string) => string;
155
+ pageSizeMenu: (label: string) => string;
156
+ pageRange: (from: string, to: string, total: string) => string;
134
157
  page: (page: number) => string;
158
+ filterCount: (label: string, count: string) => string;
135
159
  firstPage: string;
136
160
  previousPage: string;
137
161
  nextPage: string;
@@ -143,6 +167,14 @@ export declare const useKjunMessages: () => {
143
167
  nextSlide: string;
144
168
  goToSlide: (slide: number) => string;
145
169
  slideOf: (slide: number, total: number) => string;
170
+ steps: string;
171
+ stepComplete: string;
172
+ stepCurrent: string;
173
+ stepError: string;
174
+ stepUpcoming: string;
175
+ stepNext: string;
176
+ stepPosition: (index: number) => string;
177
+ stepCount: (index: number, total: number) => string;
146
178
  moveUp: (name: string) => string;
147
179
  moveDown: (name: string) => string;
148
180
  reorderMoved: (name: string, position: number, total: number) => string;
@@ -150,6 +182,7 @@ export declare const useKjunMessages: () => {
150
182
  reorderGrabbed: (name: string) => string;
151
183
  reorderDropped: (name: string, position: number, total: number) => string;
152
184
  reorderCancelled: (name: string) => string;
185
+ tableReorderColumn: string;
153
186
  tableReorderLocked: string;
154
187
  colorPlaceholder: string;
155
188
  colorPicker: string;
@@ -173,6 +206,9 @@ export declare const useKjunMessages: () => {
173
206
  metrics: string;
174
207
  watchToggle: (name: string, active: boolean) => string;
175
208
  favoriteToggle: (name: string, active: boolean) => string;
209
+ interestMark: string;
210
+ favoriteMark: string;
211
+ collectionMarks: string;
176
212
  lastUpdated: string;
177
213
  unitLabel: string;
178
214
  totalCount: (count: number, unit: string) => string;
@@ -188,4 +224,36 @@ export declare const useKjunMessages: () => {
188
224
  statusFailed: string;
189
225
  statusUnknown: string;
190
226
  statusNoRuns: string;
227
+ uploadDropOrSelect: string;
228
+ uploadSelect: string;
229
+ uploadAddOrDrop: string;
230
+ uploadAdd: string;
231
+ uploadDropHere: string;
232
+ uploadDropCount: (count: number) => string;
233
+ uploadDropOverflow: (room: number, extra: number) => string;
234
+ uploadTypeBlockedTitle: string;
235
+ uploadTypeBlocked: (types: string) => string;
236
+ uploadRejected: (name: string, reason: string, detail: string) => string;
237
+ uploadRejectedMore: (count: number) => string;
238
+ uploadFull: (max: number) => string;
239
+ uploadFullHint: string;
240
+ uploadQueued: string;
241
+ uploadDone: string;
242
+ uploadFailed: string;
243
+ uploadProgress: (name: string) => string;
244
+ uploadRetry: (name: string) => string;
245
+ uploadRetryFailed: string;
246
+ uploadCancel: (name: string) => string;
247
+ uploadEmpty: string;
248
+ uploadReplace: string;
249
+ uploadReplaceFile: (name: string) => string;
250
+ uploadFiles: string;
251
+ uploadFailedCount: (count: number) => string;
252
+ uploadHint: (types: string, size?: string, count?: number) => string;
253
+ uploadAnnounce: (name: string, status: string) => string;
254
+ uploadGroup: (group: string) => string;
255
+ numberRangeMin: (limit: string) => string;
256
+ numberRangeMax: (limit: string) => string;
257
+ numberUnitEok: string;
258
+ numberUnitMan: string;
191
259
  };
@@ -0,0 +1,3 @@
1
+ /** Keeps a loading state visible for the token minimum so a fast request does not flash. React and Native; Vue 3 keeps
2
+ * its own form in packages/vue3/src/button.tsx. */
3
+ export declare function useMinimumLoading(loading: boolean): boolean;
@@ -0,0 +1,3 @@
1
+ /** Keeps a loading state visible for the token minimum so a fast request does not flash. React and Native; Vue 3 keeps
2
+ * its own form in packages/vue3/src/button.tsx. */
3
+ export declare function useMinimumLoading(loading: boolean): boolean;
@@ -0,0 +1,15 @@
1
+ /** The web close button: a 32px square with its own radius. Inline, because the button sets its size and radius inline. */
2
+ export declare const modalCloseStyle: {
3
+ borderRadius: 8;
4
+ width: 32;
5
+ height: 32;
6
+ padding: number;
7
+ };
8
+ /** The Native close button: React Native's own padding keys, which the button's padding would otherwise win over. */
9
+ export declare const nativeModalCloseStyle: {
10
+ borderRadius: 8;
11
+ width: 32;
12
+ height: 32;
13
+ paddingHorizontal: number;
14
+ paddingVertical: number;
15
+ };
@@ -0,0 +1,15 @@
1
+ /** The web close button: a 32px square with its own radius. Inline, because the button sets its size and radius inline. */
2
+ export declare const modalCloseStyle: {
3
+ borderRadius: 8;
4
+ width: 32;
5
+ height: 32;
6
+ padding: number;
7
+ };
8
+ /** The Native close button: React Native's own padding keys, which the button's padding would otherwise win over. */
9
+ export declare const nativeModalCloseStyle: {
10
+ borderRadius: 8;
11
+ width: 32;
12
+ height: 32;
13
+ paddingHorizontal: number;
14
+ paddingVertical: number;
15
+ };
@@ -1,6 +1,13 @@
1
1
  export declare function useInitialTab(value: string, candidate: string | undefined, change: (name: string) => void): void;
2
- export declare function useAccordionState(multiple: boolean): {
3
- opened: ReadonlySet<string>;
2
+ /** Which items of an Accordion are open. With value the group is controlled: it shows value only and onValueChange
3
+ * requests each change; without it the group keeps its own set (from defaultValue and the items' defaultOpen) and reports changes. */
4
+ export declare function useAccordionState(multiple: boolean, control?: {
5
+ value?: readonly string[];
6
+ defaultValue?: readonly string[];
7
+ onValueChange?: (value: string[]) => void;
8
+ }): {
9
+ opened: import("./accordion-state.cjs").OpenedItems;
10
+ controlled: boolean;
4
11
  toggle: (id: string) => void;
5
12
  register: (id: string, defaultOpen: boolean) => () => void;
6
13
  };
@@ -1,6 +1,13 @@
1
1
  export declare function useInitialTab(value: string, candidate: string | undefined, change: (name: string) => void): void;
2
- export declare function useAccordionState(multiple: boolean): {
3
- opened: ReadonlySet<string>;
2
+ /** Which items of an Accordion are open. With value the group is controlled: it shows value only and onValueChange
3
+ * requests each change; without it the group keeps its own set (from defaultValue and the items' defaultOpen) and reports changes. */
4
+ export declare function useAccordionState(multiple: boolean, control?: {
5
+ value?: readonly string[];
6
+ defaultValue?: readonly string[];
7
+ onValueChange?: (value: string[]) => void;
8
+ }): {
9
+ opened: import("./accordion-state.js").OpenedItems;
10
+ controlled: boolean;
4
11
  toggle: (id: string) => void;
5
12
  register: (id: string, defaultOpen: boolean) => () => void;
6
13
  };
@@ -1,2 +1,9 @@
1
1
  /** Development only: warns once per call when `root` holds a control. */
2
2
  export declare function warnNestedControls(root: Element | null | undefined, message: string): void;
3
+ /** Whether a click on a clickable row or card started on a control inside it (a button, link or field), which acts on its
4
+ * own, or came from outside the row's DOM (React bubbles portal events, such as a popover opened from a cell). The row
5
+ * then leaves the click alone. Controls do not stop clicks from bubbling, so page-level listeners still see them. */
6
+ export declare function fromNestedControl(event: {
7
+ target: EventTarget | null;
8
+ currentTarget: EventTarget | null;
9
+ }): boolean;
@@ -1,2 +1,9 @@
1
1
  /** Development only: warns once per call when `root` holds a control. */
2
2
  export declare function warnNestedControls(root: Element | null | undefined, message: string): void;
3
+ /** Whether a click on a clickable row or card started on a control inside it (a button, link or field), which acts on its
4
+ * own, or came from outside the row's DOM (React bubbles portal events, such as a popover opened from a cell). The row
5
+ * then leaves the click alone. Controls do not stop clicks from bubbling, so page-level listeners still see them. */
6
+ export declare function fromNestedControl(event: {
7
+ target: EventTarget | null;
8
+ currentTarget: EventTarget | null;
9
+ }): boolean;
@@ -0,0 +1 @@
1
+ export declare function nodeText(node: unknown): string | undefined;
@@ -0,0 +1 @@
1
+ export declare function nodeText(node: unknown): string | undefined;
@@ -0,0 +1,73 @@
1
+ import type { KjunMessageScope } from "./messages/index.cjs";
2
+ export type NumberInputFormat = "number" | "amount" | "percent";
3
+ export interface NumberInputOptions {
4
+ format?: NumberInputFormat;
5
+ decimals?: number;
6
+ grouping?: boolean;
7
+ allowNegative?: boolean;
8
+ min?: number;
9
+ max?: number;
10
+ suffix?: unknown;
11
+ /** Unit the committed value lands on, counted from `min` (or 0); ArrowUp/ArrowDown move by it. */
12
+ step?: number;
13
+ }
14
+ export interface ResolvedNumberInput {
15
+ format: NumberInputFormat;
16
+ decimals: number;
17
+ grouping: boolean;
18
+ allowNegative: boolean;
19
+ min?: number;
20
+ max?: number;
21
+ suffix?: string;
22
+ maxIntegerDigits: number;
23
+ /** A positive step rounded to `decimals`; undefined when not given or when it rounds to 0. */
24
+ step?: number;
25
+ }
26
+ /** Preset plus the caller's overrides; decimals are cut to a whole 0-6 so the scaled value stays a safe integer. */
27
+ export declare function resolveNumberInput(options: NumberInputOptions): ResolvedNumberInput;
28
+ /** A committed value moved to the nearest multiple of step from `min` (or 0); one that cannot be negative goes up a step instead.
29
+ * The range is not enforced: a value past min/max stays past it and shows the range message. No step, or "", returns `raw`. */
30
+ export declare function snapNumber(raw: string, o: ResolvedNumberInput): string;
31
+ /** ArrowUp (1) / ArrowDown (-1): the next multiple of step from `min` (or 0) in that direction, kept within min/max (and 0 when the
32
+ * value cannot be negative). An empty field starts at `min`, or 0 kept within range. Null when there is no step. */
33
+ export declare function stepNumber(raw: string, direction: 1 | -1, o: ResolvedNumberInput): string | null;
34
+ export interface SanitizeOptions {
35
+ /** Pasted or dropped text: with no decimals allowed, the fraction is dropped at the first "." ("1,234,000.00" → "1234000") instead of the dots being ignored. */
36
+ pasted?: boolean;
37
+ }
38
+ /** Keeps digits, one ".", and "-" when allowed; any "-" in the text makes the value negative. Returns the draft ("-12.5", "12.", "").
39
+ * A dot with no digits becomes "0." (or "-0.") when decimals are allowed, so ".5" can be typed. Integer digits past the limit are cut. */
40
+ export declare function sanitizeNumber(text: string, o: ResolvedNumberInput, options?: SanitizeOptions): string;
41
+ /** True when `next` holds more integer digits than the field keeps and more than `previous` did: a typed edit like that is refused, not cut. */
42
+ export declare function addsTooManyDigits(previous: string, next: string, o: ResolvedNumberInput): boolean;
43
+ /** An edit that inserted more than one character at once, or that the browser reports as a paste or drop. */
44
+ export declare function isPasteEdit(before: string, after: string, inputType?: string): boolean;
45
+ /** Whether two values name the same number: "12." and "12" do, "", "-" and "." are all empty, "" and "0" are not. */
46
+ export declare function sameNumber(a: string, b: string): boolean;
47
+ /** Display text: thousands commas only, nothing padded. */
48
+ export declare function formatNumber(raw: string, o: ResolvedNumberInput): string;
49
+ /** The value kept on blur/Enter: "" and "-" become "", a bare dot ("0.") is zero, "-0" becomes "0", the fraction is padded to decimals. */
50
+ export declare function commitNumber(raw: string, o: ResolvedNumberInput): string;
51
+ /** How many digits, "." and "-" sit before the caret. */
52
+ export declare function significantCount(text: string, caret: number): number;
53
+ /** The caret position right after that many digits, "." and "-". */
54
+ export declare function caretForCount(display: string, count: number): number;
55
+ /** Where the caret sits after an edit that turned `before` into `after`, from the text alone: right after the changed part.
56
+ * Platforms that report the selection separately from the text (React Native) can send the two in either order. */
57
+ export declare function caretAfterEdit(before: string, after: string): number;
58
+ /** Backspace right after a comma deletes the digit before it, Delete right before one deletes the digit after it. Returns the text without commas and the caret in it; null when the browser's default is right. */
59
+ export declare function deleteAcrossSeparator(display: string, start: number, end: number, key: "Backspace" | "Delete"): {
60
+ text: string;
61
+ caret: number;
62
+ } | null;
63
+ export declare function rangeIssue(raw: string, o: ResolvedNumberInput): "min" | "max" | null;
64
+ /** "100% 이하로 입력해 주세요": the limit is formatted like the value, with the suffix attached without a space. */
65
+ export declare function rangeMessage(kind: "min" | "max", o: ResolvedNumberInput, scope?: KjunMessageScope): string;
66
+ /** "1억 2,003만 5,000 원" for an integer part of 10,000 or more; empty for percent and for languages other than Korean. */
67
+ export declare function readingAid(raw: string, o: ResolvedNumberInput, scope?: KjunMessageScope): string;
68
+ /** Keyboard for a number field. A negative value needs a minus key, which the numeric pads lack (iOS shows none at all). */
69
+ export declare function numberKeyboard(o: Pick<ResolvedNumberInput, "allowNegative" | "decimals">): {
70
+ inputMode: "numeric" | "decimal" | "text";
71
+ ios: string;
72
+ android: string;
73
+ };
@@ -0,0 +1,73 @@
1
+ import type { KjunMessageScope } from "./messages/index.js";
2
+ export type NumberInputFormat = "number" | "amount" | "percent";
3
+ export interface NumberInputOptions {
4
+ format?: NumberInputFormat;
5
+ decimals?: number;
6
+ grouping?: boolean;
7
+ allowNegative?: boolean;
8
+ min?: number;
9
+ max?: number;
10
+ suffix?: unknown;
11
+ /** Unit the committed value lands on, counted from `min` (or 0); ArrowUp/ArrowDown move by it. */
12
+ step?: number;
13
+ }
14
+ export interface ResolvedNumberInput {
15
+ format: NumberInputFormat;
16
+ decimals: number;
17
+ grouping: boolean;
18
+ allowNegative: boolean;
19
+ min?: number;
20
+ max?: number;
21
+ suffix?: string;
22
+ maxIntegerDigits: number;
23
+ /** A positive step rounded to `decimals`; undefined when not given or when it rounds to 0. */
24
+ step?: number;
25
+ }
26
+ /** Preset plus the caller's overrides; decimals are cut to a whole 0-6 so the scaled value stays a safe integer. */
27
+ export declare function resolveNumberInput(options: NumberInputOptions): ResolvedNumberInput;
28
+ /** A committed value moved to the nearest multiple of step from `min` (or 0); one that cannot be negative goes up a step instead.
29
+ * The range is not enforced: a value past min/max stays past it and shows the range message. No step, or "", returns `raw`. */
30
+ export declare function snapNumber(raw: string, o: ResolvedNumberInput): string;
31
+ /** ArrowUp (1) / ArrowDown (-1): the next multiple of step from `min` (or 0) in that direction, kept within min/max (and 0 when the
32
+ * value cannot be negative). An empty field starts at `min`, or 0 kept within range. Null when there is no step. */
33
+ export declare function stepNumber(raw: string, direction: 1 | -1, o: ResolvedNumberInput): string | null;
34
+ export interface SanitizeOptions {
35
+ /** Pasted or dropped text: with no decimals allowed, the fraction is dropped at the first "." ("1,234,000.00" → "1234000") instead of the dots being ignored. */
36
+ pasted?: boolean;
37
+ }
38
+ /** Keeps digits, one ".", and "-" when allowed; any "-" in the text makes the value negative. Returns the draft ("-12.5", "12.", "").
39
+ * A dot with no digits becomes "0." (or "-0.") when decimals are allowed, so ".5" can be typed. Integer digits past the limit are cut. */
40
+ export declare function sanitizeNumber(text: string, o: ResolvedNumberInput, options?: SanitizeOptions): string;
41
+ /** True when `next` holds more integer digits than the field keeps and more than `previous` did: a typed edit like that is refused, not cut. */
42
+ export declare function addsTooManyDigits(previous: string, next: string, o: ResolvedNumberInput): boolean;
43
+ /** An edit that inserted more than one character at once, or that the browser reports as a paste or drop. */
44
+ export declare function isPasteEdit(before: string, after: string, inputType?: string): boolean;
45
+ /** Whether two values name the same number: "12." and "12" do, "", "-" and "." are all empty, "" and "0" are not. */
46
+ export declare function sameNumber(a: string, b: string): boolean;
47
+ /** Display text: thousands commas only, nothing padded. */
48
+ export declare function formatNumber(raw: string, o: ResolvedNumberInput): string;
49
+ /** The value kept on blur/Enter: "" and "-" become "", a bare dot ("0.") is zero, "-0" becomes "0", the fraction is padded to decimals. */
50
+ export declare function commitNumber(raw: string, o: ResolvedNumberInput): string;
51
+ /** How many digits, "." and "-" sit before the caret. */
52
+ export declare function significantCount(text: string, caret: number): number;
53
+ /** The caret position right after that many digits, "." and "-". */
54
+ export declare function caretForCount(display: string, count: number): number;
55
+ /** Where the caret sits after an edit that turned `before` into `after`, from the text alone: right after the changed part.
56
+ * Platforms that report the selection separately from the text (React Native) can send the two in either order. */
57
+ export declare function caretAfterEdit(before: string, after: string): number;
58
+ /** Backspace right after a comma deletes the digit before it, Delete right before one deletes the digit after it. Returns the text without commas and the caret in it; null when the browser's default is right. */
59
+ export declare function deleteAcrossSeparator(display: string, start: number, end: number, key: "Backspace" | "Delete"): {
60
+ text: string;
61
+ caret: number;
62
+ } | null;
63
+ export declare function rangeIssue(raw: string, o: ResolvedNumberInput): "min" | "max" | null;
64
+ /** "100% 이하로 입력해 주세요": the limit is formatted like the value, with the suffix attached without a space. */
65
+ export declare function rangeMessage(kind: "min" | "max", o: ResolvedNumberInput, scope?: KjunMessageScope): string;
66
+ /** "1억 2,003만 5,000 원" for an integer part of 10,000 or more; empty for percent and for languages other than Korean. */
67
+ export declare function readingAid(raw: string, o: ResolvedNumberInput, scope?: KjunMessageScope): string;
68
+ /** Keyboard for a number field. A negative value needs a minus key, which the numeric pads lack (iOS shows none at all). */
69
+ export declare function numberKeyboard(o: Pick<ResolvedNumberInput, "allowNegative" | "decimals">): {
70
+ inputMode: "numeric" | "decimal" | "text";
71
+ ios: string;
72
+ android: string;
73
+ };
@@ -10,7 +10,23 @@ export declare function optionSelected(value: OptionValue | OptionValue[] | null
10
10
  export declare function nextOptionValue(value: OptionValue | OptionValue[] | null, option: SelectOption, key: string, multiple: boolean): OptionValue | OptionValue[];
11
11
  /** 0 label starts with the query, 1 label contains it, 2 a searchKeys field contains it, -1 no match; an empty query matches as 0. */
12
12
  export declare function optionMatchRank(option: SelectOption, query: string, labelKey: string, searchKeys?: readonly string[]): 0 | 1 | 2 | -1;
13
- export declare function selectOptions<T extends SelectOption>({ options, value, labelKey, valueKey, query, pageSize, limit, loading, multiple, filterFn, searchKeys, selectedCount, }: {
13
+ /** A group is an option object whose `options` field holds its options; its label is read with labelKey. */
14
+ export declare const isOptionGroup: (option: SelectOption) => option is {
15
+ options: SelectOption[];
16
+ [key: string]: unknown;
17
+ };
18
+ export type SelectMultipleDisplay = "count" | "labels";
19
+ export interface SelectItem<T> {
20
+ option: T;
21
+ key: string;
22
+ }
23
+ /** Consecutive visible options that share a group; `label` is undefined for options outside any group. */
24
+ export interface SelectSection<T> {
25
+ key: string;
26
+ label?: string;
27
+ items: SelectItem<T>[];
28
+ }
29
+ export declare function selectOptions<T extends SelectOption>({ options, value, labelKey, valueKey, query, pageSize, limit, loading, multiple, filterFn, searchKeys, selectedCount, multipleDisplay, }: {
14
30
  options: T[];
15
31
  value: OptionValue | OptionValue[] | null;
16
32
  labelKey: string;
@@ -24,17 +40,21 @@ export declare function selectOptions<T extends SelectOption>({ options, value,
24
40
  searchKeys?: readonly string[];
25
41
  /** Trigger label for several selected options; platforms pass KjunProvider's messages.selectedCount. */
26
42
  selectedCount?: (count: number) => string;
43
+ /** "labels" names every selected option in the trigger instead of counting them. */
44
+ multipleDisplay?: SelectMultipleDisplay;
27
45
  }): {
28
46
  selected: (option: T) => boolean;
29
47
  matching: {
30
48
  option: T;
49
+ group: number;
31
50
  key: string;
32
51
  }[];
33
- visible: {
34
- option: T;
35
- key: string;
36
- }[];
52
+ visible: SelectItem<T>[];
53
+ sections: SelectSection<T>[];
54
+ grouped: boolean;
37
55
  selectedOption: T | undefined;
38
56
  label: string;
57
+ labels: string[];
58
+ hasValue: boolean;
39
59
  nextValue: (option: T) => OptionValue | OptionValue[];
40
60
  };
@@ -10,7 +10,23 @@ export declare function optionSelected(value: OptionValue | OptionValue[] | null
10
10
  export declare function nextOptionValue(value: OptionValue | OptionValue[] | null, option: SelectOption, key: string, multiple: boolean): OptionValue | OptionValue[];
11
11
  /** 0 label starts with the query, 1 label contains it, 2 a searchKeys field contains it, -1 no match; an empty query matches as 0. */
12
12
  export declare function optionMatchRank(option: SelectOption, query: string, labelKey: string, searchKeys?: readonly string[]): 0 | 1 | 2 | -1;
13
- export declare function selectOptions<T extends SelectOption>({ options, value, labelKey, valueKey, query, pageSize, limit, loading, multiple, filterFn, searchKeys, selectedCount, }: {
13
+ /** A group is an option object whose `options` field holds its options; its label is read with labelKey. */
14
+ export declare const isOptionGroup: (option: SelectOption) => option is {
15
+ options: SelectOption[];
16
+ [key: string]: unknown;
17
+ };
18
+ export type SelectMultipleDisplay = "count" | "labels";
19
+ export interface SelectItem<T> {
20
+ option: T;
21
+ key: string;
22
+ }
23
+ /** Consecutive visible options that share a group; `label` is undefined for options outside any group. */
24
+ export interface SelectSection<T> {
25
+ key: string;
26
+ label?: string;
27
+ items: SelectItem<T>[];
28
+ }
29
+ export declare function selectOptions<T extends SelectOption>({ options, value, labelKey, valueKey, query, pageSize, limit, loading, multiple, filterFn, searchKeys, selectedCount, multipleDisplay, }: {
14
30
  options: T[];
15
31
  value: OptionValue | OptionValue[] | null;
16
32
  labelKey: string;
@@ -24,17 +40,21 @@ export declare function selectOptions<T extends SelectOption>({ options, value,
24
40
  searchKeys?: readonly string[];
25
41
  /** Trigger label for several selected options; platforms pass KjunProvider's messages.selectedCount. */
26
42
  selectedCount?: (count: number) => string;
43
+ /** "labels" names every selected option in the trigger instead of counting them. */
44
+ multipleDisplay?: SelectMultipleDisplay;
27
45
  }): {
28
46
  selected: (option: T) => boolean;
29
47
  matching: {
30
48
  option: T;
49
+ group: number;
31
50
  key: string;
32
51
  }[];
33
- visible: {
34
- option: T;
35
- key: string;
36
- }[];
52
+ visible: SelectItem<T>[];
53
+ sections: SelectSection<T>[];
54
+ grouped: boolean;
37
55
  selectedOption: T | undefined;
38
56
  label: string;
57
+ labels: string[];
58
+ hasValue: boolean;
39
59
  nextValue: (option: T) => OptionValue | OptionValue[];
40
60
  };
@@ -0,0 +1,12 @@
1
+ export type PaginationItem = number | "start-ellipsis" | "end-ellipsis";
2
+ /**
3
+ * The first and last page, the current page with siblingCount pages each side, and an ellipsis for each gap.
4
+ * Once the pages outnumber the slots the list keeps one length on every page, so the arrows never move, and a gap
5
+ * of one page shows that page instead of an ellipsis (no "1 … 3").
6
+ */
7
+ export declare function paginationItems(current: number, total: number, siblingCount?: number): PaginationItem[];
8
+ /** The first and last row on the page, for the "81 - 100 / 195" line. */
9
+ export declare function pageRows(current: number, pageSize: number, totalRows: number): {
10
+ from: number;
11
+ to: number;
12
+ };
@@ -0,0 +1,12 @@
1
+ export type PaginationItem = number | "start-ellipsis" | "end-ellipsis";
2
+ /**
3
+ * The first and last page, the current page with siblingCount pages each side, and an ellipsis for each gap.
4
+ * Once the pages outnumber the slots the list keeps one length on every page, so the arrows never move, and a gap
5
+ * of one page shows that page instead of an ellipsis (no "1 … 3").
6
+ */
7
+ export declare function paginationItems(current: number, total: number, siblingCount?: number): PaginationItem[];
8
+ /** The first and last row on the page, for the "81 - 100 / 195" line. */
9
+ export declare function pageRows(current: number, pageSize: number, totalRows: number): {
10
+ from: number;
11
+ to: number;
12
+ };
@@ -0,0 +1,13 @@
1
+ /** Hold-to-repeat for step buttons (QuantityStepper ±). A press still steps once through the button's click; holding it past
2
+ * `delay` steps again every `interval` until release, and the click that ends a repeating hold is then swallowed so the
3
+ * value does not move one extra step. `step` returns false when it can go no further, which ends the repeat. */
4
+ export interface PressRepeat {
5
+ /** Pointer or touch went down on the button. With a window, release anywhere (a disabled button gets no pointerup) ends it. */
6
+ start(view?: Window): void;
7
+ stop(): void;
8
+ /** Pointer or touch came up: ends the hold; the repeated mark lasts only for the click that follows in the same input event. */
9
+ release(): void;
10
+ /** Called from the click: true when this click ends a hold that already repeated, so it must not step again. */
11
+ takeRepeated(): boolean;
12
+ }
13
+ export declare function createPressRepeat(step: () => boolean, delay: number, interval: number): PressRepeat;
@@ -0,0 +1,13 @@
1
+ /** Hold-to-repeat for step buttons (QuantityStepper ±). A press still steps once through the button's click; holding it past
2
+ * `delay` steps again every `interval` until release, and the click that ends a repeating hold is then swallowed so the
3
+ * value does not move one extra step. `step` returns false when it can go no further, which ends the repeat. */
4
+ export interface PressRepeat {
5
+ /** Pointer or touch went down on the button. With a window, release anywhere (a disabled button gets no pointerup) ends it. */
6
+ start(view?: Window): void;
7
+ stop(): void;
8
+ /** Pointer or touch came up: ends the hold; the repeated mark lasts only for the click that follows in the same input event. */
9
+ release(): void;
10
+ /** Called from the click: true when this click ends a hold that already repeated, so it must not step again. */
11
+ takeRepeated(): boolean;
12
+ }
13
+ export declare function createPressRepeat(step: () => boolean, delay: number, interval: number): PressRepeat;
@@ -14,3 +14,8 @@ export declare function progressCircle(size: ProgressCircleSize, percentage: num
14
14
  * missing data (never 0%). An omitted value keeps the 0 default before it reaches here.
15
15
  */
16
16
  export declare function progressState(value: number | null, max: number, indeterminate: boolean): "indeterminate" | "missing" | "determinate";
17
+ /**
18
+ * Whole percent for a known value, clamped to 0–100. Unfinished work never rounds up to 100:
19
+ * 99.6% reads 99%, so "100%" always means done.
20
+ */
21
+ export declare function progressPercent(value: number, max: number): number;
@@ -14,3 +14,8 @@ export declare function progressCircle(size: ProgressCircleSize, percentage: num
14
14
  * missing data (never 0%). An omitted value keeps the 0 default before it reaches here.
15
15
  */
16
16
  export declare function progressState(value: number | null, max: number, indeterminate: boolean): "indeterminate" | "missing" | "determinate";
17
+ /**
18
+ * Whole percent for a known value, clamped to 0–100. Unfinished work never rounds up to 100:
19
+ * 99.6% reads 99%, so "100%" always means done.
20
+ */
21
+ export declare function progressPercent(value: number, max: number): number;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Where a reference marker stands on a bar (such as "today" on a budget), as a percent of the rail.
3
+ * `marker` is on the value's own scale, 0 to `max`; null means there is nothing to draw.
4
+ */
5
+ export declare function progressMarker(marker: number | null | undefined, max: number): number | null;
6
+ /** How far the marker's left edge moves back from its percent, so that at 0 and at max the line stays whole inside the rail. */
7
+ export declare const progressMarkerInset: (percent: number) => number;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Where a reference marker stands on a bar (such as "today" on a budget), as a percent of the rail.
3
+ * `marker` is on the value's own scale, 0 to `max`; null means there is nothing to draw.
4
+ */
5
+ export declare function progressMarker(marker: number | null | undefined, max: number): number | null;
6
+ /** How far the marker's left edge moves back from its percent, so that at 0 and at max the line stays whole inside the rail. */
7
+ export declare const progressMarkerInset: (percent: number) => number;
@@ -0,0 +1,6 @@
1
+ /** Progress fill colours: primary takes the brand role, neutral the tertiary text role, other tones their own role. */
2
+ export type ProgressTone = "primary" | "success" | "warning" | "danger" | "info" | "neutral";
3
+ /** The KjunColors key a Native fill reads. */
4
+ export declare function progressColorKey(variant: ProgressTone): "brand" | "textTertiary" | "danger" | "success" | "warning" | "info";
5
+ /** The web role name, read as var(--_kjun-color-<role>). */
6
+ export declare function progressColorRole(variant: ProgressTone): "brand" | "textTertiary" | "danger" | "success" | "warning" | "info" | "text-tertiary";
@@ -0,0 +1,6 @@
1
+ /** Progress fill colours: primary takes the brand role, neutral the tertiary text role, other tones their own role. */
2
+ export type ProgressTone = "primary" | "success" | "warning" | "danger" | "info" | "neutral";
3
+ /** The KjunColors key a Native fill reads. */
4
+ export declare function progressColorKey(variant: ProgressTone): "brand" | "textTertiary" | "danger" | "success" | "warning" | "info";
5
+ /** The web role name, read as var(--_kjun-color-<role>). */
6
+ export declare function progressColorRole(variant: ProgressTone): "brand" | "textTertiary" | "danger" | "success" | "warning" | "info" | "text-tertiary";
@@ -0,0 +1,23 @@
1
+ /** How many labels end past the room left for them, given each label's right edge. */
2
+ export declare function hiddenLabelCount(rights: readonly number[], available: number): number;
3
+ /** Size and place of the clear button that sits over a select-like trigger, before its indicator. */
4
+ export declare function selectClearStyle(spec: {
5
+ padding: number;
6
+ iconSize: number;
7
+ affixGap: number;
8
+ clearSize: number;
9
+ }): {
10
+ right: number;
11
+ width: number;
12
+ height: number;
13
+ minHeight: number;
14
+ };
15
+ /** The filled circle drawn inside the clear button; the button keeps the larger target. */
16
+ export declare function selectClearMarkStyle(spec: {
17
+ clearMarkSize: number;
18
+ }): {
19
+ width: number;
20
+ height: number;
21
+ };
22
+ /** Web: how many of the label spans inside `text` end past its visible width. */
23
+ export declare function measureHiddenLabels(text: HTMLElement | null | undefined): number;