@kjun-ui/react 0.21.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/README.md +19 -5
  2. package/dist/index.cjs +8405 -3740
  3. package/dist/index.js +8199 -3512
  4. package/dist/styles.css +2610 -454
  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 +6 -2
  8. package/dist/types/packages/react/src/app-navigation.d.ts +6 -2
  9. package/dist/types/packages/react/src/avatar-group.d.cts +36 -0
  10. package/dist/types/packages/react/src/avatar-group.d.ts +36 -0
  11. package/dist/types/packages/react/src/button.d.cts +14 -6
  12. package/dist/types/packages/react/src/button.d.ts +14 -6
  13. package/dist/types/packages/react/src/calendar.d.cts +6 -2
  14. package/dist/types/packages/react/src/calendar.d.ts +6 -2
  15. package/dist/types/packages/react/src/card.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 +26 -6
  34. package/dist/types/packages/react/src/display.d.ts +26 -6
  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 +19 -5
  38. package/dist/types/packages/react/src/dropdown.d.ts +19 -5
  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 +14 -1
  54. package/dist/types/packages/react/src/input.d.ts +14 -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 +39 -8
  64. package/dist/types/packages/react/src/list.d.ts +39 -8
  65. package/dist/types/packages/react/src/market-model.d.cts +13 -1
  66. package/dist/types/packages/react/src/market-model.d.ts +13 -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.d.cts +47 -0
  94. package/dist/types/packages/react/src/side-navigation-layout.d.ts +47 -0
  95. package/dist/types/packages/react/src/side-navigation.d.cts +74 -0
  96. package/dist/types/packages/react/src/side-navigation.d.ts +74 -0
  97. package/dist/types/packages/react/src/skeletons.d.cts +18 -3
  98. package/dist/types/packages/react/src/skeletons.d.ts +18 -3
  99. package/dist/types/packages/react/src/spinner-glyph.d.cts +8 -0
  100. package/dist/types/packages/react/src/spinner-glyph.d.ts +8 -0
  101. package/dist/types/packages/react/src/split-pane.d.cts +18 -5
  102. package/dist/types/packages/react/src/split-pane.d.ts +18 -5
  103. package/dist/types/packages/react/src/stacked-bar.d.cts +3 -1
  104. package/dist/types/packages/react/src/stacked-bar.d.ts +3 -1
  105. package/dist/types/packages/react/src/steps.d.cts +26 -0
  106. package/dist/types/packages/react/src/steps.d.ts +26 -0
  107. package/dist/types/packages/react/src/table-cards.d.cts +4 -12
  108. package/dist/types/packages/react/src/table-cards.d.ts +4 -12
  109. package/dist/types/packages/react/src/table-grid.d.cts +3 -7
  110. package/dist/types/packages/react/src/table-grid.d.ts +3 -7
  111. package/dist/types/packages/react/src/table-groups.d.cts +5 -0
  112. package/dist/types/packages/react/src/table-groups.d.ts +5 -0
  113. package/dist/types/packages/react/src/table-list.d.cts +2 -9
  114. package/dist/types/packages/react/src/table-list.d.ts +2 -9
  115. package/dist/types/packages/react/src/table-model.d.cts +6 -2
  116. package/dist/types/packages/react/src/table-model.d.ts +6 -2
  117. package/dist/types/packages/react/src/tabs.d.cts +3 -1
  118. package/dist/types/packages/react/src/tabs.d.ts +3 -1
  119. package/dist/types/packages/react/src/textarea.d.cts +6 -3
  120. package/dist/types/packages/react/src/textarea.d.ts +6 -3
  121. package/dist/types/packages/react/src/tiles.d.cts +18 -0
  122. package/dist/types/packages/react/src/tiles.d.ts +18 -0
  123. package/dist/types/packages/react/src/time-picker.d.cts +12 -2
  124. package/dist/types/packages/react/src/time-picker.d.ts +12 -2
  125. package/dist/types/packages/react/src/time-wheel.d.cts +18 -0
  126. package/dist/types/packages/react/src/time-wheel.d.ts +18 -0
  127. package/dist/types/packages/react/src/use-filter-scroll.d.cts +5 -0
  128. package/dist/types/packages/react/src/use-filter-scroll.d.ts +5 -0
  129. package/dist/types/shared/package-runtime/accordion-state.d.cts +2 -0
  130. package/dist/types/shared/package-runtime/accordion-state.d.ts +2 -0
  131. package/dist/types/shared/package-runtime/action-size.d.cts +4 -0
  132. package/dist/types/shared/package-runtime/action-size.d.ts +4 -0
  133. package/dist/types/shared/package-runtime/alert-actions.d.cts +7 -0
  134. package/dist/types/shared/package-runtime/alert-actions.d.ts +7 -0
  135. package/dist/types/shared/package-runtime/alert-exit.d.cts +6 -0
  136. package/dist/types/shared/package-runtime/alert-exit.d.ts +6 -0
  137. package/dist/types/shared/package-runtime/alert-live.d.cts +2 -0
  138. package/dist/types/shared/package-runtime/alert-live.d.ts +2 -0
  139. package/dist/types/shared/package-runtime/avatar-group.d.cts +18 -0
  140. package/dist/types/shared/package-runtime/avatar-group.d.ts +18 -0
  141. package/dist/types/shared/package-runtime/badge-tone.d.cts +8 -2
  142. package/dist/types/shared/package-runtime/badge-tone.d.ts +8 -2
  143. package/dist/types/shared/package-runtime/bottom-bar.d.cts +1 -1
  144. package/dist/types/shared/package-runtime/bottom-bar.d.ts +1 -1
  145. package/dist/types/shared/package-runtime/bottom-navigation.d.cts +5 -0
  146. package/dist/types/shared/package-runtime/bottom-navigation.d.ts +5 -0
  147. package/dist/types/shared/package-runtime/calendar.d.cts +21 -7
  148. package/dist/types/shared/package-runtime/calendar.d.ts +21 -7
  149. package/dist/types/shared/package-runtime/card-layout.d.cts +8 -0
  150. package/dist/types/shared/package-runtime/card-layout.d.ts +8 -0
  151. package/dist/types/shared/package-runtime/carousel-scroll.d.cts +2 -0
  152. package/dist/types/shared/package-runtime/carousel-scroll.d.ts +2 -0
  153. package/dist/types/shared/package-runtime/carousel.d.cts +12 -2
  154. package/dist/types/shared/package-runtime/carousel.d.ts +12 -2
  155. package/dist/types/shared/package-runtime/chart-skeleton.d.cts +1 -1
  156. package/dist/types/shared/package-runtime/chart-skeleton.d.ts +1 -1
  157. package/dist/types/shared/package-runtime/clipboard.d.cts +6 -0
  158. package/dist/types/shared/package-runtime/clipboard.d.ts +6 -0
  159. package/dist/types/shared/package-runtime/combobox-options.d.cts +13 -0
  160. package/dist/types/shared/package-runtime/combobox-options.d.ts +13 -0
  161. package/dist/types/shared/package-runtime/combobox.d.cts +3 -1
  162. package/dist/types/shared/package-runtime/combobox.d.ts +3 -1
  163. package/dist/types/shared/package-runtime/copy-button.d.cts +11 -0
  164. package/dist/types/shared/package-runtime/copy-button.d.ts +11 -0
  165. package/dist/types/shared/package-runtime/data-cells.d.cts +36 -0
  166. package/dist/types/shared/package-runtime/data-cells.d.ts +36 -0
  167. package/dist/types/shared/package-runtime/development.d.cts +4 -0
  168. package/dist/types/shared/package-runtime/development.d.ts +4 -0
  169. package/dist/types/shared/package-runtime/distribution.d.cts +36 -1
  170. package/dist/types/shared/package-runtime/distribution.d.ts +36 -1
  171. package/dist/types/shared/package-runtime/drawer-geometry.d.cts +7 -0
  172. package/dist/types/shared/package-runtime/drawer-geometry.d.ts +7 -0
  173. package/dist/types/shared/package-runtime/event-calendar.d.cts +81 -0
  174. package/dist/types/shared/package-runtime/event-calendar.d.ts +81 -0
  175. package/dist/types/shared/package-runtime/external-link.d.cts +4 -0
  176. package/dist/types/shared/package-runtime/external-link.d.ts +4 -0
  177. package/dist/types/shared/package-runtime/file-upload.d.cts +128 -0
  178. package/dist/types/shared/package-runtime/file-upload.d.ts +128 -0
  179. package/dist/types/shared/package-runtime/filter-scroll.d.cts +5 -0
  180. package/dist/types/shared/package-runtime/filter-scroll.d.ts +5 -0
  181. package/dist/types/shared/package-runtime/filter-value.d.cts +2 -0
  182. package/dist/types/shared/package-runtime/filter-value.d.ts +2 -0
  183. package/dist/types/shared/package-runtime/input-field.d.cts +23 -0
  184. package/dist/types/shared/package-runtime/input-field.d.ts +23 -0
  185. package/dist/types/shared/package-runtime/input-variant.d.cts +7 -0
  186. package/dist/types/shared/package-runtime/input-variant.d.ts +7 -0
  187. package/dist/types/shared/package-runtime/kpi.d.cts +13 -0
  188. package/dist/types/shared/package-runtime/kpi.d.ts +13 -0
  189. package/dist/types/shared/package-runtime/layout-primitives.d.cts +115 -6
  190. package/dist/types/shared/package-runtime/layout-primitives.d.ts +115 -6
  191. package/dist/types/shared/package-runtime/list-row.d.cts +43 -6
  192. package/dist/types/shared/package-runtime/list-row.d.ts +43 -6
  193. package/dist/types/shared/package-runtime/market-layout.d.cts +3 -1
  194. package/dist/types/shared/package-runtime/market-layout.d.ts +3 -1
  195. package/dist/types/shared/package-runtime/market-query.d.cts +6 -0
  196. package/dist/types/shared/package-runtime/market-query.d.ts +6 -0
  197. package/dist/types/shared/package-runtime/market-table.d.cts +32 -0
  198. package/dist/types/shared/package-runtime/market-table.d.ts +32 -0
  199. package/dist/types/shared/package-runtime/menu-button.d.cts +4 -0
  200. package/dist/types/shared/package-runtime/menu-button.d.ts +4 -0
  201. package/dist/types/shared/package-runtime/messages/ko.d.cts +74 -1
  202. package/dist/types/shared/package-runtime/messages/ko.d.ts +74 -1
  203. package/dist/types/shared/package-runtime/messages-context.d.cts +66 -1
  204. package/dist/types/shared/package-runtime/messages-context.d.ts +66 -1
  205. package/dist/types/shared/package-runtime/minimum-loading.d.cts +3 -0
  206. package/dist/types/shared/package-runtime/minimum-loading.d.ts +3 -0
  207. package/dist/types/shared/package-runtime/modal-geometry.d.cts +15 -0
  208. package/dist/types/shared/package-runtime/modal-geometry.d.ts +15 -0
  209. package/dist/types/shared/package-runtime/navigation.d.cts +9 -2
  210. package/dist/types/shared/package-runtime/navigation.d.ts +9 -2
  211. package/dist/types/shared/package-runtime/nested-controls.d.cts +7 -0
  212. package/dist/types/shared/package-runtime/nested-controls.d.ts +7 -0
  213. package/dist/types/shared/package-runtime/number-input.d.cts +63 -0
  214. package/dist/types/shared/package-runtime/number-input.d.ts +63 -0
  215. package/dist/types/shared/package-runtime/options.d.cts +25 -5
  216. package/dist/types/shared/package-runtime/options.d.ts +25 -5
  217. package/dist/types/shared/package-runtime/pagination.d.cts +12 -0
  218. package/dist/types/shared/package-runtime/pagination.d.ts +12 -0
  219. package/dist/types/shared/package-runtime/press-repeat.d.cts +13 -0
  220. package/dist/types/shared/package-runtime/press-repeat.d.ts +13 -0
  221. package/dist/types/shared/package-runtime/progress-circle.d.cts +5 -0
  222. package/dist/types/shared/package-runtime/progress-circle.d.ts +5 -0
  223. package/dist/types/shared/package-runtime/progress-marker.d.cts +7 -0
  224. package/dist/types/shared/package-runtime/progress-marker.d.ts +7 -0
  225. package/dist/types/shared/package-runtime/select-trigger.d.cts +23 -0
  226. package/dist/types/shared/package-runtime/select-trigger.d.ts +23 -0
  227. package/dist/types/shared/package-runtime/sheet-drag.d.cts +24 -0
  228. package/dist/types/shared/package-runtime/sheet-drag.d.ts +24 -0
  229. package/dist/types/shared/package-runtime/side-navigation-keys.d.cts +23 -0
  230. package/dist/types/shared/package-runtime/side-navigation-keys.d.ts +23 -0
  231. package/dist/types/shared/package-runtime/side-navigation-scroll.d.cts +7 -0
  232. package/dist/types/shared/package-runtime/side-navigation-scroll.d.ts +7 -0
  233. package/dist/types/shared/package-runtime/side-navigation.d.cts +277 -0
  234. package/dist/types/shared/package-runtime/side-navigation.d.ts +277 -0
  235. package/dist/types/shared/package-runtime/signed-number.d.cts +33 -0
  236. package/dist/types/shared/package-runtime/signed-number.d.ts +33 -0
  237. package/dist/types/shared/package-runtime/skeleton-text.d.cts +4 -0
  238. package/dist/types/shared/package-runtime/skeleton-text.d.ts +4 -0
  239. package/dist/types/shared/package-runtime/slider-view.d.cts +17 -2
  240. package/dist/types/shared/package-runtime/slider-view.d.ts +17 -2
  241. package/dist/types/shared/package-runtime/sparkline.d.cts +8 -4
  242. package/dist/types/shared/package-runtime/sparkline.d.ts +8 -4
  243. package/dist/types/shared/package-runtime/spinner-geometry.d.cts +14 -0
  244. package/dist/types/shared/package-runtime/spinner-geometry.d.ts +14 -0
  245. package/dist/types/shared/package-runtime/split-pane.d.cts +40 -1
  246. package/dist/types/shared/package-runtime/split-pane.d.ts +40 -1
  247. package/dist/types/shared/package-runtime/steps.d.cts +37 -0
  248. package/dist/types/shared/package-runtime/steps.d.ts +37 -0
  249. package/dist/types/shared/package-runtime/tab-keyboard.d.cts +6 -0
  250. package/dist/types/shared/package-runtime/tab-keyboard.d.ts +6 -0
  251. package/dist/types/shared/package-runtime/table-columns.d.cts +8 -0
  252. package/dist/types/shared/package-runtime/table-columns.d.ts +8 -0
  253. package/dist/types/shared/package-runtime/table-model.d.cts +23 -3
  254. package/dist/types/shared/package-runtime/table-model.d.ts +23 -3
  255. package/dist/types/shared/package-runtime/table-presentation.d.cts +11 -2
  256. package/dist/types/shared/package-runtime/table-presentation.d.ts +11 -2
  257. package/dist/types/shared/package-runtime/table.d.cts +15 -2
  258. package/dist/types/shared/package-runtime/table.d.ts +15 -2
  259. package/dist/types/shared/package-runtime/textarea.d.cts +6 -4
  260. package/dist/types/shared/package-runtime/textarea.d.ts +6 -4
  261. package/dist/types/shared/package-runtime/tiles-children.d.cts +7 -0
  262. package/dist/types/shared/package-runtime/tiles-children.d.ts +7 -0
  263. package/dist/types/shared/package-runtime/tiles.d.cts +18 -0
  264. package/dist/types/shared/package-runtime/tiles.d.ts +18 -0
  265. package/dist/types/shared/package-runtime/time-segments.d.cts +24 -0
  266. package/dist/types/shared/package-runtime/time-segments.d.ts +24 -0
  267. package/dist/types/shared/package-runtime/time-wheel.d.cts +54 -0
  268. package/dist/types/shared/package-runtime/time-wheel.d.ts +54 -0
  269. package/dist/types/shared/package-runtime/trailing-overflow.d.cts +1 -0
  270. package/dist/types/shared/package-runtime/trailing-overflow.d.ts +1 -0
  271. package/dist/types/shared/package-runtime/use-color-picker.d.cts +3 -0
  272. package/dist/types/shared/package-runtime/use-color-picker.d.ts +3 -0
  273. package/dist/types/shared/package-runtime/use-copy-feedback.d.cts +10 -0
  274. package/dist/types/shared/package-runtime/use-copy-feedback.d.ts +10 -0
  275. package/dist/types/shared/package-runtime/use-open-state.d.cts +5 -0
  276. package/dist/types/shared/package-runtime/use-open-state.d.ts +5 -0
  277. package/dist/types/shared/package-runtime/use-pending-action.d.cts +6 -0
  278. package/dist/types/shared/package-runtime/use-pending-action.d.ts +6 -0
  279. package/dist/types/shared/package-runtime/use-side-navigation-state.d.cts +25 -0
  280. package/dist/types/shared/package-runtime/use-side-navigation-state.d.ts +25 -0
  281. package/dist/types/shared/package-runtime/use-slide.d.cts +3 -0
  282. package/dist/types/shared/package-runtime/use-slide.d.ts +3 -0
  283. package/package.json +3 -3
  284. package/dist/types/packages/react/src/compound-control.d.cts +0 -1
  285. package/dist/types/packages/react/src/compound-control.d.ts +0 -1
  286. package/dist/types/shared/package-runtime/center-option.d.cts +0 -1
  287. package/dist/types/shared/package-runtime/center-option.d.ts +0 -1
@@ -42,13 +42,23 @@ export declare const kjunMessagesKo: {
42
42
  optional: string;
43
43
  clearSelection: string;
44
44
  searchOptions: string;
45
+ avatarGroupCount: (count: number) => string;
45
46
  selectedCount: (count: number) => string;
47
+ eventCount: (count: number) => string;
48
+ holiday: string;
46
49
  loadMore: string;
47
50
  clearInput: string;
51
+ /** The reveal button's visible text and its name, which says what it shows. */
52
+ revealPassword: string;
53
+ concealPassword: string;
54
+ revealPasswordLabel: string;
55
+ concealPasswordLabel: string;
48
56
  clearValue: (label: string) => string;
49
57
  datePlaceholder: string;
50
58
  clearDate: string;
51
59
  calendarTitle: (year: number, month: number) => string;
60
+ /** A week of the event calendar: the second date drops the year and month it shares with the first. */
61
+ weekTitle: (y1: number, m1: number, d1: number, y2: number, m2: number, d2: number) => string;
52
62
  weekdays: string;
53
63
  previousMonth: string;
54
64
  nextMonth: string;
@@ -61,6 +71,10 @@ export declare const kjunMessagesKo: {
61
71
  rangeEndDay: string;
62
72
  inRangeDay: string;
63
73
  chooseEndDate: string;
74
+ /** The range presets' group name. */
75
+ rangePresets: string;
76
+ /** The note while a range's end is picked under minDays or maxDays (either may be missing). */
77
+ rangeLength: (minDays?: number, maxDays?: number) => string;
64
78
  today: string;
65
79
  apply: string;
66
80
  rangePlaceholder: string;
@@ -75,6 +89,8 @@ export declare const kjunMessagesKo: {
75
89
  minute: string;
76
90
  second: string;
77
91
  timePlaceholder: string;
92
+ selectTime: string;
93
+ now: string;
78
94
  value: string;
79
95
  minimum: string;
80
96
  maximum: string;
@@ -105,6 +121,7 @@ export declare const kjunMessagesKo: {
105
121
  searchTable: string;
106
122
  expandRow: string;
107
123
  collapse: string;
124
+ expand: string;
108
125
  showDetails: string;
109
126
  ascending: string;
110
127
  sortBy: string;
@@ -114,6 +131,12 @@ export declare const kjunMessagesKo: {
114
131
  showPath: string;
115
132
  breadcrumb: string;
116
133
  mainNavigation: string;
134
+ collapseNavigation: string;
135
+ expandNavigation: string;
136
+ showMoreItems: (count: number) => string;
137
+ showFewerItems: string;
138
+ showMoreText: string;
139
+ showLessText: string;
117
140
  newCount: (count: number) => string;
118
141
  saving: string;
119
142
  charactersLeft: (count: number) => string;
@@ -121,8 +144,13 @@ export declare const kjunMessagesKo: {
121
144
  pagination: string;
122
145
  itemsPerPage: string;
123
146
  perPage: (count: number) => string;
124
- pageRange: (from: number, to: number, total: string) => string;
147
+ /** Pagination page-size button: its accessible name, which keeps the shown label ("20개씩"). */
148
+ pageSizeMenu: (label: string) => string;
149
+ /** The rows on the page and the total, each already passed through Pagination formatter. */
150
+ pageRange: (from: string, to: string, total: string) => string;
125
151
  page: (page: number) => string;
152
+ /** A FilterGroup chip with a count: its accessible name. count is already formatted. */
153
+ filterCount: (label: string, count: string) => string;
126
154
  firstPage: string;
127
155
  previousPage: string;
128
156
  nextPage: string;
@@ -134,6 +162,14 @@ export declare const kjunMessagesKo: {
134
162
  nextSlide: string;
135
163
  goToSlide: (slide: number) => string;
136
164
  slideOf: (slide: number, total: number) => string;
165
+ steps: string;
166
+ stepComplete: string;
167
+ stepCurrent: string;
168
+ stepError: string;
169
+ stepUpcoming: string;
170
+ stepNext: string;
171
+ stepPosition: (index: number) => string;
172
+ stepCount: (index: number, total: number) => string;
137
173
  moveUp: (name: string) => string;
138
174
  moveDown: (name: string) => string;
139
175
  reorderMoved: (name: string, position: number, total: number) => string;
@@ -141,6 +177,7 @@ export declare const kjunMessagesKo: {
141
177
  reorderGrabbed: (name: string) => string;
142
178
  reorderDropped: (name: string, position: number, total: number) => string;
143
179
  reorderCancelled: (name: string) => string;
180
+ tableReorderColumn: string;
144
181
  tableReorderLocked: string;
145
182
  colorPlaceholder: string;
146
183
  colorPicker: string;
@@ -164,6 +201,10 @@ export declare const kjunMessagesKo: {
164
201
  metrics: string;
165
202
  watchToggle: (name: string, active: boolean) => string;
166
203
  favoriteToggle: (name: string, active: boolean) => string;
204
+ /** CollectionMark names: an active mark, and the market header column that holds both marks. */
205
+ interestMark: string;
206
+ favoriteMark: string;
207
+ collectionMarks: string;
167
208
  lastUpdated: string;
168
209
  unitLabel: string;
169
210
  totalCount: (count: number, unit: string) => string;
@@ -179,5 +220,37 @@ export declare const kjunMessagesKo: {
179
220
  statusFailed: string;
180
221
  statusUnknown: string;
181
222
  statusNoRuns: string;
223
+ uploadDropOrSelect: string;
224
+ uploadSelect: string;
225
+ uploadAddOrDrop: string;
226
+ uploadAdd: string;
227
+ uploadDropHere: string;
228
+ uploadDropCount: (count: number) => string;
229
+ uploadDropOverflow: (room: number, extra: number) => string;
230
+ uploadTypeBlockedTitle: string;
231
+ uploadTypeBlocked: (types: string) => string;
232
+ uploadRejected: (name: string, reason: string, detail: string) => string;
233
+ uploadRejectedMore: (count: number) => string;
234
+ uploadFull: (max: number) => string;
235
+ uploadFullHint: string;
236
+ uploadQueued: string;
237
+ uploadDone: string;
238
+ uploadFailed: string;
239
+ uploadProgress: (name: string) => string;
240
+ uploadRetry: (name: string) => string;
241
+ uploadRetryFailed: string;
242
+ uploadCancel: (name: string) => string;
243
+ uploadEmpty: string;
244
+ uploadReplace: string;
245
+ uploadReplaceFile: (name: string) => string;
246
+ uploadFiles: string;
247
+ uploadFailedCount: (count: number) => string;
248
+ uploadHint: (types: string, size?: string, count?: number) => string;
249
+ uploadAnnounce: (name: string, status: string) => string;
250
+ uploadGroup: (group: string) => string;
251
+ numberRangeMin: (limit: string) => string;
252
+ numberRangeMax: (limit: string) => string;
253
+ numberUnitEok: string;
254
+ numberUnitMan: string;
182
255
  };
183
256
  export type KjunMessages = typeof kjunMessagesKo;
@@ -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,12 @@ export declare const useKjunMessages: () => {
123
136
  showPath: string;
124
137
  breadcrumb: string;
125
138
  mainNavigation: string;
139
+ collapseNavigation: string;
140
+ expandNavigation: string;
141
+ showMoreItems: (count: number) => string;
142
+ showFewerItems: string;
143
+ showMoreText: string;
144
+ showLessText: string;
126
145
  newCount: (count: number) => string;
127
146
  saving: string;
128
147
  charactersLeft: (count: number) => string;
@@ -130,8 +149,10 @@ export declare const useKjunMessages: () => {
130
149
  pagination: string;
131
150
  itemsPerPage: string;
132
151
  perPage: (count: number) => string;
133
- pageRange: (from: number, to: number, total: string) => string;
152
+ pageSizeMenu: (label: string) => string;
153
+ pageRange: (from: string, to: string, total: string) => string;
134
154
  page: (page: number) => string;
155
+ filterCount: (label: string, count: string) => string;
135
156
  firstPage: string;
136
157
  previousPage: string;
137
158
  nextPage: string;
@@ -143,6 +164,14 @@ export declare const useKjunMessages: () => {
143
164
  nextSlide: string;
144
165
  goToSlide: (slide: number) => string;
145
166
  slideOf: (slide: number, total: number) => string;
167
+ steps: string;
168
+ stepComplete: string;
169
+ stepCurrent: string;
170
+ stepError: string;
171
+ stepUpcoming: string;
172
+ stepNext: string;
173
+ stepPosition: (index: number) => string;
174
+ stepCount: (index: number, total: number) => string;
146
175
  moveUp: (name: string) => string;
147
176
  moveDown: (name: string) => string;
148
177
  reorderMoved: (name: string, position: number, total: number) => string;
@@ -150,6 +179,7 @@ export declare const useKjunMessages: () => {
150
179
  reorderGrabbed: (name: string) => string;
151
180
  reorderDropped: (name: string, position: number, total: number) => string;
152
181
  reorderCancelled: (name: string) => string;
182
+ tableReorderColumn: string;
153
183
  tableReorderLocked: string;
154
184
  colorPlaceholder: string;
155
185
  colorPicker: string;
@@ -173,6 +203,9 @@ export declare const useKjunMessages: () => {
173
203
  metrics: string;
174
204
  watchToggle: (name: string, active: boolean) => string;
175
205
  favoriteToggle: (name: string, active: boolean) => string;
206
+ interestMark: string;
207
+ favoriteMark: string;
208
+ collectionMarks: string;
176
209
  lastUpdated: string;
177
210
  unitLabel: string;
178
211
  totalCount: (count: number, unit: string) => string;
@@ -188,4 +221,36 @@ export declare const useKjunMessages: () => {
188
221
  statusFailed: string;
189
222
  statusUnknown: string;
190
223
  statusNoRuns: string;
224
+ uploadDropOrSelect: string;
225
+ uploadSelect: string;
226
+ uploadAddOrDrop: string;
227
+ uploadAdd: string;
228
+ uploadDropHere: string;
229
+ uploadDropCount: (count: number) => string;
230
+ uploadDropOverflow: (room: number, extra: number) => string;
231
+ uploadTypeBlockedTitle: string;
232
+ uploadTypeBlocked: (types: string) => string;
233
+ uploadRejected: (name: string, reason: string, detail: string) => string;
234
+ uploadRejectedMore: (count: number) => string;
235
+ uploadFull: (max: number) => string;
236
+ uploadFullHint: string;
237
+ uploadQueued: string;
238
+ uploadDone: string;
239
+ uploadFailed: string;
240
+ uploadProgress: (name: string) => string;
241
+ uploadRetry: (name: string) => string;
242
+ uploadRetryFailed: string;
243
+ uploadCancel: (name: string) => string;
244
+ uploadEmpty: string;
245
+ uploadReplace: string;
246
+ uploadReplaceFile: (name: string) => string;
247
+ uploadFiles: string;
248
+ uploadFailedCount: (count: number) => string;
249
+ uploadHint: (types: string, size?: string, count?: number) => string;
250
+ uploadAnnounce: (name: string, status: string) => string;
251
+ uploadGroup: (group: string) => string;
252
+ numberRangeMin: (limit: string) => string;
253
+ numberRangeMax: (limit: string) => string;
254
+ numberUnitEok: string;
255
+ numberUnitMan: string;
191
256
  };
@@ -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,12 @@ export declare const useKjunMessages: () => {
123
136
  showPath: string;
124
137
  breadcrumb: string;
125
138
  mainNavigation: string;
139
+ collapseNavigation: string;
140
+ expandNavigation: string;
141
+ showMoreItems: (count: number) => string;
142
+ showFewerItems: string;
143
+ showMoreText: string;
144
+ showLessText: string;
126
145
  newCount: (count: number) => string;
127
146
  saving: string;
128
147
  charactersLeft: (count: number) => string;
@@ -130,8 +149,10 @@ export declare const useKjunMessages: () => {
130
149
  pagination: string;
131
150
  itemsPerPage: string;
132
151
  perPage: (count: number) => string;
133
- pageRange: (from: number, to: number, total: string) => string;
152
+ pageSizeMenu: (label: string) => string;
153
+ pageRange: (from: string, to: string, total: string) => string;
134
154
  page: (page: number) => string;
155
+ filterCount: (label: string, count: string) => string;
135
156
  firstPage: string;
136
157
  previousPage: string;
137
158
  nextPage: string;
@@ -143,6 +164,14 @@ export declare const useKjunMessages: () => {
143
164
  nextSlide: string;
144
165
  goToSlide: (slide: number) => string;
145
166
  slideOf: (slide: number, total: number) => string;
167
+ steps: string;
168
+ stepComplete: string;
169
+ stepCurrent: string;
170
+ stepError: string;
171
+ stepUpcoming: string;
172
+ stepNext: string;
173
+ stepPosition: (index: number) => string;
174
+ stepCount: (index: number, total: number) => string;
146
175
  moveUp: (name: string) => string;
147
176
  moveDown: (name: string) => string;
148
177
  reorderMoved: (name: string, position: number, total: number) => string;
@@ -150,6 +179,7 @@ export declare const useKjunMessages: () => {
150
179
  reorderGrabbed: (name: string) => string;
151
180
  reorderDropped: (name: string, position: number, total: number) => string;
152
181
  reorderCancelled: (name: string) => string;
182
+ tableReorderColumn: string;
153
183
  tableReorderLocked: string;
154
184
  colorPlaceholder: string;
155
185
  colorPicker: string;
@@ -173,6 +203,9 @@ export declare const useKjunMessages: () => {
173
203
  metrics: string;
174
204
  watchToggle: (name: string, active: boolean) => string;
175
205
  favoriteToggle: (name: string, active: boolean) => string;
206
+ interestMark: string;
207
+ favoriteMark: string;
208
+ collectionMarks: string;
176
209
  lastUpdated: string;
177
210
  unitLabel: string;
178
211
  totalCount: (count: number, unit: string) => string;
@@ -188,4 +221,36 @@ export declare const useKjunMessages: () => {
188
221
  statusFailed: string;
189
222
  statusUnknown: string;
190
223
  statusNoRuns: string;
224
+ uploadDropOrSelect: string;
225
+ uploadSelect: string;
226
+ uploadAddOrDrop: string;
227
+ uploadAdd: string;
228
+ uploadDropHere: string;
229
+ uploadDropCount: (count: number) => string;
230
+ uploadDropOverflow: (room: number, extra: number) => string;
231
+ uploadTypeBlockedTitle: string;
232
+ uploadTypeBlocked: (types: string) => string;
233
+ uploadRejected: (name: string, reason: string, detail: string) => string;
234
+ uploadRejectedMore: (count: number) => string;
235
+ uploadFull: (max: number) => string;
236
+ uploadFullHint: string;
237
+ uploadQueued: string;
238
+ uploadDone: string;
239
+ uploadFailed: string;
240
+ uploadProgress: (name: string) => string;
241
+ uploadRetry: (name: string) => string;
242
+ uploadRetryFailed: string;
243
+ uploadCancel: (name: string) => string;
244
+ uploadEmpty: string;
245
+ uploadReplace: string;
246
+ uploadReplaceFile: (name: string) => string;
247
+ uploadFiles: string;
248
+ uploadFailedCount: (count: number) => string;
249
+ uploadHint: (types: string, size?: string, count?: number) => string;
250
+ uploadAnnounce: (name: string, status: string) => string;
251
+ uploadGroup: (group: string) => string;
252
+ numberRangeMin: (limit: string) => string;
253
+ numberRangeMax: (limit: string) => string;
254
+ numberUnitEok: string;
255
+ numberUnitMan: string;
191
256
  };
@@ -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,63 @@
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
+ }
12
+ export interface ResolvedNumberInput {
13
+ format: NumberInputFormat;
14
+ decimals: number;
15
+ grouping: boolean;
16
+ allowNegative: boolean;
17
+ min?: number;
18
+ max?: number;
19
+ suffix?: string;
20
+ maxIntegerDigits: number;
21
+ }
22
+ /** Preset plus the caller's overrides; decimals are cut to a whole 0-6 so the scaled value stays a safe integer. */
23
+ export declare function resolveNumberInput(options: NumberInputOptions): ResolvedNumberInput;
24
+ export interface SanitizeOptions {
25
+ /** 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. */
26
+ pasted?: boolean;
27
+ }
28
+ /** Keeps digits, one ".", and "-" when allowed; any "-" in the text makes the value negative. Returns the draft ("-12.5", "12.", "").
29
+ * 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. */
30
+ export declare function sanitizeNumber(text: string, o: ResolvedNumberInput, options?: SanitizeOptions): string;
31
+ /** 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. */
32
+ export declare function addsTooManyDigits(previous: string, next: string, o: ResolvedNumberInput): boolean;
33
+ /** An edit that inserted more than one character at once, or that the browser reports as a paste or drop. */
34
+ export declare function isPasteEdit(before: string, after: string, inputType?: string): boolean;
35
+ /** Whether two values name the same number: "12." and "12" do, "", "-" and "." are all empty, "" and "0" are not. */
36
+ export declare function sameNumber(a: string, b: string): boolean;
37
+ /** Display text: thousands commas only, nothing padded. */
38
+ export declare function formatNumber(raw: string, o: ResolvedNumberInput): string;
39
+ /** The value kept on blur/Enter: "" and "-" become "", a bare dot ("0.") is zero, "-0" becomes "0", the fraction is padded to decimals. */
40
+ export declare function commitNumber(raw: string, o: ResolvedNumberInput): string;
41
+ /** How many digits, "." and "-" sit before the caret. */
42
+ export declare function significantCount(text: string, caret: number): number;
43
+ /** The caret position right after that many digits, "." and "-". */
44
+ export declare function caretForCount(display: string, count: number): number;
45
+ /** Where the caret sits after an edit that turned `before` into `after`, from the text alone: right after the changed part.
46
+ * Platforms that report the selection separately from the text (React Native) can send the two in either order. */
47
+ export declare function caretAfterEdit(before: string, after: string): number;
48
+ /** 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. */
49
+ export declare function deleteAcrossSeparator(display: string, start: number, end: number, key: "Backspace" | "Delete"): {
50
+ text: string;
51
+ caret: number;
52
+ } | null;
53
+ export declare function rangeIssue(raw: string, o: ResolvedNumberInput): "min" | "max" | null;
54
+ /** "100% 이하로 입력해 주세요": the limit is formatted like the value, with the suffix attached without a space. */
55
+ export declare function rangeMessage(kind: "min" | "max", o: ResolvedNumberInput, scope?: KjunMessageScope): string;
56
+ /** "1억 2,003만 5,000 원" for an integer part of 10,000 or more; empty for percent and for languages other than Korean. */
57
+ export declare function readingAid(raw: string, o: ResolvedNumberInput, scope?: KjunMessageScope): string;
58
+ /** Keyboard for a number field. A negative value needs a minus key, which the numeric pads lack (iOS shows none at all). */
59
+ export declare function numberKeyboard(o: Pick<ResolvedNumberInput, "allowNegative" | "decimals">): {
60
+ inputMode: "numeric" | "decimal" | "text";
61
+ ios: string;
62
+ android: string;
63
+ };
@@ -0,0 +1,63 @@
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
+ }
12
+ export interface ResolvedNumberInput {
13
+ format: NumberInputFormat;
14
+ decimals: number;
15
+ grouping: boolean;
16
+ allowNegative: boolean;
17
+ min?: number;
18
+ max?: number;
19
+ suffix?: string;
20
+ maxIntegerDigits: number;
21
+ }
22
+ /** Preset plus the caller's overrides; decimals are cut to a whole 0-6 so the scaled value stays a safe integer. */
23
+ export declare function resolveNumberInput(options: NumberInputOptions): ResolvedNumberInput;
24
+ export interface SanitizeOptions {
25
+ /** 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. */
26
+ pasted?: boolean;
27
+ }
28
+ /** Keeps digits, one ".", and "-" when allowed; any "-" in the text makes the value negative. Returns the draft ("-12.5", "12.", "").
29
+ * 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. */
30
+ export declare function sanitizeNumber(text: string, o: ResolvedNumberInput, options?: SanitizeOptions): string;
31
+ /** 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. */
32
+ export declare function addsTooManyDigits(previous: string, next: string, o: ResolvedNumberInput): boolean;
33
+ /** An edit that inserted more than one character at once, or that the browser reports as a paste or drop. */
34
+ export declare function isPasteEdit(before: string, after: string, inputType?: string): boolean;
35
+ /** Whether two values name the same number: "12." and "12" do, "", "-" and "." are all empty, "" and "0" are not. */
36
+ export declare function sameNumber(a: string, b: string): boolean;
37
+ /** Display text: thousands commas only, nothing padded. */
38
+ export declare function formatNumber(raw: string, o: ResolvedNumberInput): string;
39
+ /** The value kept on blur/Enter: "" and "-" become "", a bare dot ("0.") is zero, "-0" becomes "0", the fraction is padded to decimals. */
40
+ export declare function commitNumber(raw: string, o: ResolvedNumberInput): string;
41
+ /** How many digits, "." and "-" sit before the caret. */
42
+ export declare function significantCount(text: string, caret: number): number;
43
+ /** The caret position right after that many digits, "." and "-". */
44
+ export declare function caretForCount(display: string, count: number): number;
45
+ /** Where the caret sits after an edit that turned `before` into `after`, from the text alone: right after the changed part.
46
+ * Platforms that report the selection separately from the text (React Native) can send the two in either order. */
47
+ export declare function caretAfterEdit(before: string, after: string): number;
48
+ /** 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. */
49
+ export declare function deleteAcrossSeparator(display: string, start: number, end: number, key: "Backspace" | "Delete"): {
50
+ text: string;
51
+ caret: number;
52
+ } | null;
53
+ export declare function rangeIssue(raw: string, o: ResolvedNumberInput): "min" | "max" | null;
54
+ /** "100% 이하로 입력해 주세요": the limit is formatted like the value, with the suffix attached without a space. */
55
+ export declare function rangeMessage(kind: "min" | "max", o: ResolvedNumberInput, scope?: KjunMessageScope): string;
56
+ /** "1억 2,003만 5,000 원" for an integer part of 10,000 or more; empty for percent and for languages other than Korean. */
57
+ export declare function readingAid(raw: string, o: ResolvedNumberInput, scope?: KjunMessageScope): string;
58
+ /** Keyboard for a number field. A negative value needs a minus key, which the numeric pads lack (iOS shows none at all). */
59
+ export declare function numberKeyboard(o: Pick<ResolvedNumberInput, "allowNegative" | "decimals">): {
60
+ inputMode: "numeric" | "decimal" | "text";
61
+ ios: string;
62
+ android: string;
63
+ };