@acronis-platform/ui-react 0.62.0 → 2.0.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 (237) hide show
  1. package/dist/components/ui/alert/alert.js +118 -60
  2. package/dist/components/ui/alert/alert.js.map +1 -1
  3. package/dist/components/ui/button-group/button-group.js +57 -0
  4. package/dist/components/ui/button-group/button-group.js.map +1 -0
  5. package/dist/components/ui/button-icon-menu/button-icon-menu.js +26 -0
  6. package/dist/components/ui/button-icon-menu/button-icon-menu.js.map +1 -0
  7. package/dist/components/ui/calendar-panel/calendar-panel.js.map +1 -1
  8. package/dist/components/ui/checkbox/checkbox.js +1 -1
  9. package/dist/components/ui/checkbox/checkbox.js.map +1 -1
  10. package/dist/components/ui/chip/chip.js +33 -33
  11. package/dist/components/ui/chip/chip.js.map +1 -1
  12. package/dist/components/ui/data-table/data-table-bulk-actions-bar.js +38 -0
  13. package/dist/components/ui/data-table/data-table-bulk-actions-bar.js.map +1 -0
  14. package/dist/components/ui/data-table/data-table-column-header.js +23 -20
  15. package/dist/components/ui/data-table/data-table-column-header.js.map +1 -1
  16. package/dist/components/ui/data-table/data-table-expand-trigger.js +23 -15
  17. package/dist/components/ui/data-table/data-table-expand-trigger.js.map +1 -1
  18. package/dist/components/ui/data-table/data-table-pagination.js +29 -28
  19. package/dist/components/ui/data-table/data-table-pagination.js.map +1 -1
  20. package/dist/components/ui/data-table/data-table-selection.js +7 -0
  21. package/dist/components/ui/data-table/data-table-selection.js.map +1 -0
  22. package/dist/components/ui/data-table/data-table-toolbar.js +21 -23
  23. package/dist/components/ui/data-table/data-table-toolbar.js.map +1 -1
  24. package/dist/components/ui/data-table/data-table-view-options.js +12 -10
  25. package/dist/components/ui/data-table/data-table-view-options.js.map +1 -1
  26. package/dist/components/ui/data-table/data-table.js +347 -183
  27. package/dist/components/ui/data-table/data-table.js.map +1 -1
  28. package/dist/components/ui/date-range-picker/date-range-picker-utils.js +11 -23
  29. package/dist/components/ui/date-range-picker/date-range-picker-utils.js.map +1 -1
  30. package/dist/components/ui/date-range-picker/date-range-picker.js +94 -134
  31. package/dist/components/ui/date-range-picker/date-range-picker.js.map +1 -1
  32. package/dist/components/ui/dropdown-menu/dropdown-menu.js +129 -72
  33. package/dist/components/ui/dropdown-menu/dropdown-menu.js.map +1 -1
  34. package/dist/components/ui/filter-chips/filter-chips.js +44 -0
  35. package/dist/components/ui/filter-chips/filter-chips.js.map +1 -0
  36. package/dist/components/ui/filter-search/filter-search.js +184 -138
  37. package/dist/components/ui/filter-search/filter-search.js.map +1 -1
  38. package/dist/components/ui/fitted-actions/fitted-actions.js +139 -0
  39. package/dist/components/ui/fitted-actions/fitted-actions.js.map +1 -0
  40. package/dist/components/ui/input-date-picker/input-date-picker.js +103 -93
  41. package/dist/components/ui/input-date-picker/input-date-picker.js.map +1 -1
  42. package/dist/components/ui/input-password/input-password.js +76 -66
  43. package/dist/components/ui/input-password/input-password.js.map +1 -1
  44. package/dist/components/ui/input-search/input-search.js +9 -9
  45. package/dist/components/ui/input-search/input-search.js.map +1 -1
  46. package/dist/components/ui/input-select/input-select.js +8 -8
  47. package/dist/components/ui/input-select/input-select.js.map +1 -1
  48. package/dist/components/ui/input-text/input-text.js +77 -66
  49. package/dist/components/ui/input-text/input-text.js.map +1 -1
  50. package/dist/components/ui/input-text-area/input-text-area.js +76 -66
  51. package/dist/components/ui/input-text-area/input-text-area.js.map +1 -1
  52. package/dist/components/ui/link/link.js +50 -35
  53. package/dist/components/ui/link/link.js.map +1 -1
  54. package/dist/components/ui/number-field/number-field.js +1 -1
  55. package/dist/components/ui/number-field/number-field.js.map +1 -1
  56. package/dist/components/ui/popover/popover.js +75 -56
  57. package/dist/components/ui/popover/popover.js.map +1 -1
  58. package/dist/components/ui/scroll-area/scroll-area.js +46 -30
  59. package/dist/components/ui/scroll-area/scroll-area.js.map +1 -1
  60. package/dist/components/ui/stepper/stepper.js +70 -0
  61. package/dist/components/ui/stepper/stepper.js.map +1 -0
  62. package/dist/components/ui/stepper-item/stepper-item.js +97 -0
  63. package/dist/components/ui/stepper-item/stepper-item.js.map +1 -0
  64. package/dist/components/ui/table/table-pagination.js +54 -47
  65. package/dist/components/ui/table/table-pagination.js.map +1 -1
  66. package/dist/components/ui/table/table-view-options.js +32 -19
  67. package/dist/components/ui/table/table-view-options.js.map +1 -1
  68. package/dist/components/ui/table/table.js +112 -63
  69. package/dist/components/ui/table/table.js.map +1 -1
  70. package/dist/components/ui/timeline/timeline.js +10 -10
  71. package/dist/components/ui/timeline/timeline.js.map +1 -1
  72. package/dist/components/ui/timer/timer.js +47 -0
  73. package/dist/components/ui/timer/timer.js.map +1 -0
  74. package/dist/components/ui/toast/toast.js +168 -61
  75. package/dist/components/ui/toast/toast.js.map +1 -1
  76. package/dist/components/ui/truncate-text/middle-truncate.js +20 -0
  77. package/dist/components/ui/truncate-text/middle-truncate.js.map +1 -0
  78. package/dist/components/ui/truncate-text/text-width.js +12 -0
  79. package/dist/components/ui/truncate-text/text-width.js.map +1 -0
  80. package/dist/components/ui/truncate-text/truncate-text.js +152 -0
  81. package/dist/components/ui/truncate-text/truncate-text.js.map +1 -0
  82. package/dist/index.js +516 -471
  83. package/dist/index.js.map +1 -1
  84. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/addDays.js +5 -5
  85. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/addDays.js.map +1 -1
  86. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/constants.js +3 -6
  87. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/constants.js.map +1 -1
  88. package/dist/react.js +516 -471
  89. package/dist/react.js.map +1 -1
  90. package/dist/src/components/ui/alert/alert.d.ts +34 -3
  91. package/dist/src/components/ui/alert/index.d.ts +2 -2
  92. package/dist/src/components/ui/button/button.d.ts +1 -1
  93. package/dist/src/components/ui/button-group/button-group.d.ts +38 -0
  94. package/dist/src/components/ui/button-group/index.d.ts +1 -0
  95. package/dist/src/components/ui/button-icon/button-icon.d.ts +1 -1
  96. package/dist/src/components/ui/button-icon-menu/button-icon-menu.d.ts +28 -0
  97. package/dist/src/components/ui/button-icon-menu/index.d.ts +1 -0
  98. package/dist/src/components/ui/button-menu/button-menu.d.ts +1 -1
  99. package/dist/src/components/ui/calendar-panel/calendar-panel.d.ts +2 -2
  100. package/dist/src/components/ui/chip/chip.d.ts +1 -1
  101. package/dist/src/components/ui/data-table/data-table-bulk-actions-bar.d.ts +26 -0
  102. package/dist/src/components/ui/data-table/data-table-column-header.d.ts +6 -1
  103. package/dist/src/components/ui/data-table/data-table-expand-trigger.d.ts +4 -0
  104. package/dist/src/components/ui/data-table/data-table-pagination.d.ts +15 -1
  105. package/dist/src/components/ui/data-table/data-table-selection.d.ts +11 -0
  106. package/dist/src/components/ui/data-table/data-table-view-options.d.ts +3 -2
  107. package/dist/src/components/ui/data-table/data-table.d.ts +88 -3
  108. package/dist/src/components/ui/data-table/data-table.docs.d.ts +61 -1
  109. package/dist/src/components/ui/data-table/index.d.ts +3 -1
  110. package/dist/src/components/ui/date-range-picker/date-range-picker-utils.d.ts +10 -16
  111. package/dist/src/components/ui/date-range-picker/date-range-picker.d.ts +46 -2
  112. package/dist/src/components/ui/dropdown-menu/dropdown-menu.d.ts +8 -1
  113. package/dist/src/components/ui/dropdown-menu/index.d.ts +1 -1
  114. package/dist/src/components/ui/filter-chips/filter-chips.d.ts +25 -0
  115. package/dist/src/components/ui/filter-chips/index.d.ts +1 -0
  116. package/dist/src/components/ui/filter-search/filter-search.d.ts +39 -1
  117. package/dist/src/components/ui/fitted-actions/fitted-actions.d.ts +50 -0
  118. package/dist/src/components/ui/fitted-actions/fitted-actions.docs.d.ts +45 -0
  119. package/dist/src/components/ui/fitted-actions/index.d.ts +1 -0
  120. package/dist/src/components/ui/link/index.d.ts +1 -1
  121. package/dist/src/components/ui/link/link.d.ts +22 -4
  122. package/dist/src/components/ui/metric/metric.d.ts +1 -1
  123. package/dist/src/components/ui/popover/popover.d.ts +30 -1
  124. package/dist/src/components/ui/popover/popover.docs.d.ts +27 -2
  125. package/dist/src/components/ui/scroll-area/scroll-area.d.ts +24 -0
  126. package/dist/src/components/ui/stepper/index.d.ts +1 -0
  127. package/dist/src/components/ui/stepper/stepper.d.ts +40 -0
  128. package/dist/src/components/ui/stepper-item/index.d.ts +1 -0
  129. package/dist/src/components/ui/stepper-item/stepper-item.d.ts +41 -0
  130. package/dist/src/components/ui/table/index.d.ts +1 -1
  131. package/dist/src/components/ui/table/table-pagination.d.ts +21 -0
  132. package/dist/src/components/ui/table/table-view-options.d.ts +9 -2
  133. package/dist/src/components/ui/table/table.d.ts +40 -1
  134. package/dist/src/components/ui/tag/tag.d.ts +1 -1
  135. package/dist/src/components/ui/timer/index.d.ts +1 -0
  136. package/dist/src/components/ui/timer/timer.d.ts +28 -0
  137. package/dist/src/components/ui/toast/index.d.ts +1 -1
  138. package/dist/src/components/ui/toast/toast.d.ts +51 -18
  139. package/dist/src/components/ui/toast/toast.docs.d.ts +4 -0
  140. package/dist/src/components/ui/trend-indicator/trend-indicator.d.ts +1 -1
  141. package/dist/src/components/ui/truncate-text/__tests__/middle-truncate.test.d.ts +1 -0
  142. package/dist/src/components/ui/truncate-text/index.d.ts +3 -0
  143. package/dist/src/components/ui/truncate-text/middle-truncate.d.ts +13 -0
  144. package/dist/src/components/ui/truncate-text/text-width.d.ts +11 -0
  145. package/dist/src/components/ui/truncate-text/truncate-text.d.ts +45 -0
  146. package/dist/src/components/ui/truncate-text/truncate-text.docs.d.ts +35 -0
  147. package/dist/src/index.d.ts +8 -0
  148. package/dist/ui-react.css +1 -1
  149. package/package.json +4 -4
  150. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getDefaultOptions.js +0 -8
  151. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getDefaultOptions.js.map +0 -1
  152. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getISODay.js +0 -9
  153. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/getISODay.js.map +0 -1
  154. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/Parser.js +0 -23
  155. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/Parser.js.map +0 -1
  156. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/Setter.js +0 -42
  157. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/Setter.js.map +0 -1
  158. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/constants.js +0 -50
  159. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/constants.js.map +0 -1
  160. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +0 -50
  161. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js.map +0 -1
  162. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +0 -50
  163. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js.map +0 -1
  164. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DateParser.js +0 -62
  165. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DateParser.js.map +0 -1
  166. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +0 -52
  167. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js.map +0 -1
  168. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DayParser.js +0 -50
  169. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DayParser.js.map +0 -1
  170. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +0 -50
  171. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js.map +0 -1
  172. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/EraParser.js +0 -34
  173. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/EraParser.js.map +0 -1
  174. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +0 -22
  175. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js.map +0 -1
  176. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +0 -23
  177. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js.map +0 -1
  178. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +0 -33
  179. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js.map +0 -1
  180. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +0 -33
  181. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js.map +0 -1
  182. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +0 -34
  183. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js.map +0 -1
  184. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +0 -34
  185. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js.map +0 -1
  186. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +0 -106
  187. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js.map +0 -1
  188. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +0 -49
  189. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js.map +0 -1
  190. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +0 -49
  191. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js.map +0 -1
  192. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +0 -50
  193. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js.map +0 -1
  194. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +0 -41
  195. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js.map +0 -1
  196. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +0 -81
  197. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js.map +0 -1
  198. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +0 -49
  199. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js.map +0 -1
  200. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +0 -70
  201. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js.map +0 -1
  202. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +0 -33
  203. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js.map +0 -1
  204. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +0 -78
  205. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/MonthParser.js.map +0 -1
  206. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +0 -76
  207. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js.map +0 -1
  208. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +0 -33
  209. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/SecondParser.js.map +0 -1
  210. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +0 -81
  211. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js.map +0 -1
  212. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +0 -78
  213. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js.map +0 -1
  214. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +0 -76
  215. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js.map +0 -1
  216. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +0 -23
  217. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js.map +0 -1
  218. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +0 -23
  219. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js.map +0 -1
  220. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/YearParser.js +0 -50
  221. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers/YearParser.js.map +0 -1
  222. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers.js +0 -68
  223. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/parsers.js.map +0 -1
  224. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/utils.js +0 -104
  225. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse/_lib/utils.js.map +0 -1
  226. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse.js +0 -86
  227. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/parse.js.map +0 -1
  228. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setDay.js +0 -12
  229. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setDay.js.map +0 -1
  230. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setISODay.js +0 -11
  231. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setISODay.js.map +0 -1
  232. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setISOWeek.js +0 -10
  233. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setISOWeek.js.map +0 -1
  234. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setWeek.js +0 -10
  235. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/setWeek.js.map +0 -1
  236. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/transpose.js +0 -18
  237. package/dist/node_modules/.pnpm/date-fns@4.3.0/node_modules/date-fns/transpose.js.map +0 -1
package/dist/react.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"react.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"react.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,14 +1,45 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
+ import { ButtonIconProps } from '../button-icon';
2
3
  import * as React from 'react';
3
4
  declare const alertVariants: (props?: ({
4
- variant?: "info" | "success" | "warning" | "critical" | "destructive" | "ai" | "neutral" | null | undefined;
5
+ variant?: "info" | "success" | "warning" | "critical" | "danger" | null | undefined;
5
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ export type AlertVariant = NonNullable<VariantProps<typeof alertVariants>['variant']>;
6
8
  export interface AlertProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof alertVariants> {
7
9
  }
10
+ /**
11
+ * A status banner: neutral surface, a status-colored border, and a status line
12
+ * down the leading edge. Compose it from `AlertIcon`, `AlertContent`
13
+ * (`AlertText` + `AlertTitle` / `AlertDescription`, optionally `AlertActions`)
14
+ * and `AlertClose`.
15
+ */
8
16
  declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
17
+ /**
18
+ * The leading status icon. Renders the variant's own icon when given no
19
+ * `children`; pass children to substitute a different glyph.
20
+ */
9
21
  declare const AlertIcon: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
10
22
  declare const AlertContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
23
+ /**
24
+ * The title + description block. Its own vertical padding is what keeps the
25
+ * text aligned with the icon, so keep the title and description inside it
26
+ * rather than directly under `AlertContent`.
27
+ */
28
+ declare const AlertText: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
11
29
  declare const AlertTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
12
- declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
30
+ declare const AlertDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
31
+ /**
32
+ * Action buttons under the text. Place inside `AlertContent` (after
33
+ * `AlertText`), as the Figma does — the row wraps when it runs out of width.
34
+ */
13
35
  declare const AlertActions: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
14
- export { Alert, AlertIcon, AlertContent, AlertTitle, AlertDescription, AlertActions, };
36
+ export interface AlertCloseProps extends Omit<ButtonIconProps, 'children' | 'variant' | 'render' | 'aria-label'> {
37
+ /** Accessible name for the dismiss control. */
38
+ ariaLabel?: string;
39
+ }
40
+ /**
41
+ * The trailing dismiss control. Rendering it is what makes an alert
42
+ * dismissable — wire `onClick` to remove the alert. Name it with `ariaLabel`.
43
+ */
44
+ declare const AlertClose: React.ForwardRefExoticComponent<AlertCloseProps & React.RefAttributes<HTMLButtonElement>>;
45
+ export { Alert, AlertIcon, AlertContent, AlertText, AlertTitle, AlertDescription, AlertActions, AlertClose, alertVariants, };
@@ -1,2 +1,2 @@
1
- export { Alert, AlertIcon, AlertContent, AlertTitle, AlertDescription, AlertActions, } from './alert';
2
- export type { AlertProps } from './alert';
1
+ export { Alert, AlertIcon, AlertContent, AlertText, AlertTitle, AlertDescription, AlertActions, AlertClose, alertVariants, } from './alert';
2
+ export type { AlertProps, AlertCloseProps, AlertVariant } from './alert';
@@ -2,7 +2,7 @@ import { useRender } from '@base-ui/react/use-render';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  import * as React from 'react';
4
4
  declare const buttonVariants: (props?: ({
5
- variant?: "destructive" | "ai" | "secondary" | "default" | "ghost" | null | undefined;
5
+ variant?: "ghost" | "secondary" | "default" | "destructive" | "ai" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
8
8
  /**
@@ -0,0 +1,38 @@
1
+ import { ToolbarButtonProps, ToolbarRootProps } from '@base-ui/react/toolbar';
2
+ import { VariantProps } from 'class-variance-authority';
3
+ import * as React from 'react';
4
+ declare const buttonGroupVariants: (props?: ({
5
+ variant?: "outlined" | "inlined" | null | undefined;
6
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
+ declare const buttonGroupItemVariants: (props?: import('class-variance-authority/types').ClassProp | undefined) => string;
8
+ export interface ButtonGroupProps extends Omit<ToolbarRootProps, 'className' | 'orientation'>, VariantProps<typeof buttonGroupVariants> {
9
+ className?: string;
10
+ }
11
+ /**
12
+ * A cluster of related icon-only actions sharing a single bordered box.
13
+ *
14
+ * Renders a `role="toolbar"` container: the group is one Tab stop and the
15
+ * arrow keys move between items. Give it an accessible name (`aria-label` or
16
+ * `aria-labelledby`) describing what the actions have in common.
17
+ */
18
+ declare const ButtonGroup: React.ForwardRefExoticComponent<Omit<ButtonGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
19
+ /** Mirrors the Figma `ButtonGroupItem` `order` variant. */
20
+ export type ButtonGroupItemOrder = 'first' | 'middle' | 'last';
21
+ export interface ButtonGroupItemProps extends Omit<ToolbarButtonProps, 'className'> {
22
+ className?: string;
23
+ /**
24
+ * Position within the group, mirroring the Figma `order` variant. Controls
25
+ * one thing: whether the trailing separator is drawn (`last` omits it).
26
+ *
27
+ * Leave it unset — position is derived from the DOM. Only pass it when each
28
+ * item is wrapped in another element, which defeats that derivation.
29
+ */
30
+ order?: ButtonGroupItemOrder;
31
+ }
32
+ /**
33
+ * A single action inside a `ButtonGroup`. The icon is passed as `children`;
34
+ * provide an `aria-label` (or `aria-labelledby`) so the control has an
35
+ * accessible name.
36
+ */
37
+ declare const ButtonGroupItem: React.ForwardRefExoticComponent<Omit<ButtonGroupItemProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
38
+ export { ButtonGroup, ButtonGroupItem, buttonGroupVariants, buttonGroupItemVariants, };
@@ -0,0 +1 @@
1
+ export { ButtonGroup, ButtonGroupItem, buttonGroupVariants, buttonGroupItemVariants, type ButtonGroupProps, type ButtonGroupItemProps, type ButtonGroupItemOrder, } from './button-group';
@@ -2,7 +2,7 @@ import { useRender } from '@base-ui/react/use-render';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  import * as React from 'react';
4
4
  declare const buttonIconVariants: (props?: ({
5
- variant?: "secondary" | "ghost" | null | undefined;
5
+ variant?: "ghost" | "secondary" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  export interface ButtonIconProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonIconVariants> {
8
8
  /**
@@ -0,0 +1,28 @@
1
+ import { useRender } from '@base-ui/react/use-render';
2
+ import * as React from 'react';
3
+ export interface ButtonIconMenuProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
4
+ /**
5
+ * Whether the associated menu is open. Applies the open (`*-active`)
6
+ * treatment and reflects `aria-expanded`. Control this in sync with the menu
7
+ * you trigger.
8
+ */
9
+ open?: boolean;
10
+ /**
11
+ * Accessible name for the trigger. The button is icon-only, so it has no text
12
+ * to name it — pass a localized string here.
13
+ */
14
+ ariaLabel?: string;
15
+ /**
16
+ * Replace the rendered `<button>` with another element or component
17
+ * (Base UI composition). Accepts a React element or a render function —
18
+ * the component's props and class names are merged onto it.
19
+ */
20
+ render?: useRender.RenderProp;
21
+ }
22
+ /**
23
+ * Icon-only button that opens a menu of actions — the kebab / "more options"
24
+ * trigger. The glyph is fixed (Ellipsis); for any other icon use `ButtonIcon`.
25
+ * Pair it with the menu it controls and keep the `open` prop in sync.
26
+ */
27
+ declare const ButtonIconMenu: React.ForwardRefExoticComponent<ButtonIconMenuProps & React.RefAttributes<HTMLButtonElement>>;
28
+ export { ButtonIconMenu };
@@ -0,0 +1 @@
1
+ export { ButtonIconMenu, type ButtonIconMenuProps } from './button-icon-menu';
@@ -2,7 +2,7 @@ import { useRender } from '@base-ui/react/use-render';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  import * as React from 'react';
4
4
  declare const buttonMenuVariants: (props?: ({
5
- variant?: "primary" | "secondary" | null | undefined;
5
+ variant?: "secondary" | "primary" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  export interface ButtonMenuProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'>, VariantProps<typeof buttonMenuVariants> {
8
8
  /**
@@ -36,9 +36,9 @@ interface CalendarPanelSharedProps extends Omit<React.HTMLAttributes<HTMLDivElem
36
36
  onMonthChange?: (month: Date) => void;
37
37
  /** Days that cannot be selected. */
38
38
  disabled?: Matcher | Matcher[];
39
- /** Minimum number of selectable days (`multiple` / `range`; ignored for `single`). */
39
+ /** Minimum count (`multiple` / `range`; ignored for `single`): for `multiple`, the number of selected dates; for `range`, the number of nights between start and end. */
40
40
  min?: number;
41
- /** Maximum number of selectable days (`multiple` / `range`; ignored for `single`). */
41
+ /** Maximum count (`multiple` / `range`; ignored for `single`): for `multiple`, the number of selected dates; for `range`, the number of nights between start and end. */
42
42
  max?: number;
43
43
  /** Render the leading/trailing days of the adjacent months. */
44
44
  showOutsideDays?: boolean;
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from 'react';
3
3
  declare const chipVariants: (props?: ({
4
- variant?: "removable" | "selectable" | null | undefined;
4
+ variant?: "removable" | "selectable" | "operational" | null | undefined;
5
5
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
6
  export interface ChipProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof chipVariants> {
7
7
  /** Optional leading icon, rendered at 16px before the label. */
@@ -0,0 +1,26 @@
1
+ import { ReactNode } from 'react';
2
+ import { Table } from '@tanstack/react-table';
3
+ interface DataTableBulkActionsBarProps<TData> {
4
+ table: Table<TData>;
5
+ /**
6
+ * Bulk actions offered for the current selection — rendered leading, ahead
7
+ * of the trailing summary/Deselect control. Wrapped in a native `<fieldset
8
+ * disabled>` while nothing is selected, so every nested control (a `Button`
9
+ * renders a plain `<button>`) picks up the disabled state and styling for
10
+ * free — no per-action wiring needed. Each action reads the selection off
11
+ * the same `table` instance (`table.getSelectedRowModel().rows`).
12
+ */
13
+ children?: ReactNode;
14
+ /** Builds the trailing selection summary from the selected-row count. */
15
+ selectedLabel?: (count: number) => string;
16
+ /** Label of the trailing control that clears the selection. */
17
+ clearLabel?: string;
18
+ /**
19
+ * Trailing summary shown in place of the selection summary while nothing is
20
+ * selected — e.g. `"25 of 1250 items loaded"`. Omit to render nothing in
21
+ * that state.
22
+ */
23
+ loadedLabel?: ReactNode;
24
+ }
25
+ export declare function DataTableBulkActionsBar<TData>({ table, children, selectedLabel, clearLabel, loadedLabel, }: DataTableBulkActionsBarProps<TData>): import("react/jsx-runtime").JSX.Element;
26
+ export {};
@@ -3,6 +3,11 @@ import * as React from 'react';
3
3
  interface DataTableColumnHeaderProps<TData, TValue> extends React.ButtonHTMLAttributes<HTMLButtonElement> {
4
4
  column: Column<TData, TValue>;
5
5
  title: string;
6
+ /**
7
+ * Builds the accessible label of the sort toggle from the column title.
8
+ * Override to localize.
9
+ */
10
+ sortLabel?: (title: string) => string;
6
11
  }
7
- export declare function DataTableColumnHeader<TData, TValue>({ column, title, className, ...props }: DataTableColumnHeaderProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
12
+ export declare function DataTableColumnHeader<TData, TValue>({ column, title, sortLabel, className, ...props }: DataTableColumnHeaderProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
8
13
  export {};
@@ -3,6 +3,10 @@ import * as React from 'react';
3
3
  interface DataTableExpandTriggerProps<TData> extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
4
4
  /** The row this trigger toggles. */
5
5
  row: Row<TData>;
6
+ /** Accessible name while the row is expanded. Override to localize. */
7
+ collapseLabel?: string;
8
+ /** Accessible name while the row is collapsed. Override to localize. */
9
+ expandLabel?: string;
6
10
  }
7
11
  export declare const DataTableExpandTrigger: <TData>(props: DataTableExpandTriggerProps<TData> & {
8
12
  ref?: React.Ref<HTMLButtonElement>;
@@ -3,6 +3,20 @@ interface DataTablePaginationProps<TData> {
3
3
  table: Table<TData>;
4
4
  /** Page-size options offered in the rows-per-page select. */
5
5
  pageSizeOptions?: number[];
6
+ /** Label of the rows-per-page select (also its accessible name). */
7
+ rowsPerPageLabel?: string;
8
+ /** Accessible name of the first-page control. */
9
+ firstPageLabel?: string;
10
+ /** Accessible name of the previous-page control. */
11
+ previousPageLabel?: string;
12
+ /** Accessible name of the next-page control. */
13
+ nextPageLabel?: string;
14
+ /** Accessible name of the last-page control. */
15
+ lastPageLabel?: string;
16
+ /** Builds the page indicator from the 1-based page number and page count. */
17
+ pageLabel?: (page: number, pageCount: number) => string;
18
+ /** Builds the leading selection summary from the selected and total counts. */
19
+ summaryLabel?: (selectedRows: number, totalRows: number) => string;
6
20
  }
7
- export declare function DataTablePagination<TData>({ table, pageSizeOptions, }: DataTablePaginationProps<TData>): import("react/jsx-runtime").JSX.Element;
21
+ export declare function DataTablePagination<TData>({ table, pageSizeOptions, rowsPerPageLabel, firstPageLabel, previousPageLabel, nextPageLabel, lastPageLabel, pageLabel, summaryLabel, }: DataTablePaginationProps<TData>): import("react/jsx-runtime").JSX.Element;
8
22
  export {};
@@ -0,0 +1,11 @@
1
+ import { Table } from '@tanstack/react-table';
2
+ /**
3
+ * Whether any row is currently selected — the single threshold that decides
4
+ * between per-row actions and bulk actions, per the design (Figma 5916-10470
5
+ * / 5916-10745 / 5916-11716 / 5916-11286 / 5916-11991): a single selected row
6
+ * already switches to the bulk scope (its own row actions hide, and
7
+ * `DataTableBulkActionsBar` enables), same as two or more. `TableActionsCell`
8
+ * takes this as its `bulkSelectionActive` prop, so the threshold doesn't have
9
+ * to be re-derived per consumer.
10
+ */
11
+ export declare function isBulkSelectionActive<TData>(table: Table<TData>): boolean;
@@ -1,6 +1,7 @@
1
1
  import { Table } from '@tanstack/react-table';
2
- interface DataTableViewOptionsProps<TData> {
2
+ import { TableViewOptionsProps } from '../table';
3
+ interface DataTableViewOptionsProps<TData> extends Pick<TableViewOptionsProps, 'triggerLabel' | 'iconOnly' | 'triggerAriaLabel'> {
3
4
  table: Table<TData>;
4
5
  }
5
- export declare function DataTableViewOptions<TData>({ table, }: DataTableViewOptionsProps<TData>): import("react/jsx-runtime").JSX.Element;
6
+ export declare function DataTableViewOptions<TData>({ table, ...triggerProps }: DataTableViewOptionsProps<TData>): import("react/jsx-runtime").JSX.Element;
6
7
  export {};
@@ -1,5 +1,5 @@
1
1
  import { CSSProperties, ReactNode } from 'react';
2
- import { Cell, Column, ColumnDef, ColumnSizingState, OnChangeFn, Row, RowData, SortingState, Table as TanstackTable, VisibilityState } from '@tanstack/react-table';
2
+ import { Cell, Column, ColumnDef, ColumnOrderState, ColumnSizingState, OnChangeFn, Row, RowData, RowSelectionState, SortingState, Table as TanstackTable, VisibilityState } from '@tanstack/react-table';
3
3
  declare module '@tanstack/react-table' {
4
4
  interface ColumnMeta<TData extends RowData, TValue> {
5
5
  /** Pin the column to a table edge (sticky while the grid scrolls horizontally). */
@@ -25,6 +25,27 @@ export declare function getResizeKeyboardStep(key: string, currentSize: number,
25
25
  min: number;
26
26
  max: number;
27
27
  }): number | undefined;
28
+ /**
29
+ * Moves `from` to `to`'s position in a `columnOrder` array (the drop semantics
30
+ * of the header drag gesture: the dragged column lands where the drop target
31
+ * sits, pushing it aside). Returns `order` unchanged when either id is absent,
32
+ * so a drop on a column that isn't part of the order (e.g. one added while the
33
+ * gesture was in flight) is a no-op rather than a reshuffle.
34
+ */
35
+ export declare function reorderColumn(order: string[], from: string, to: string): string[];
36
+ /** One line of the header hover tooltip: a capability and the gesture for it. */
37
+ export interface DataTableHeaderHint {
38
+ /** The capability, rendered in bold (e.g. `Sort column`). */
39
+ label: string;
40
+ /** The gesture that triggers it (e.g. `Click`). */
41
+ action: string;
42
+ }
43
+ /** Copy of the header hover tooltip, one entry per column capability. */
44
+ export interface DataTableHeaderHints {
45
+ sort: DataTableHeaderHint;
46
+ reorder: DataTableHeaderHint;
47
+ resize: DataTableHeaderHint;
48
+ }
28
49
  type DataTableDataSourceProps<TData, TValue> = {
29
50
  columns: ColumnDef<TData, TValue>[];
30
51
  data: TData[];
@@ -44,7 +65,9 @@ type DataTableDataSourceProps<TData, TValue> = {
44
65
  * only used to build DataTable's own instance) and the following props
45
66
  * no-ops (configure the equivalent directly on the external instance
46
67
  * instead): `columnVisibility`, `onColumnVisibilityChange`,
47
- * `onColumnSizingChange`, `enableColumnResizing`, `getRowCanExpand`,
68
+ * `onColumnSizingChange`, `enableColumnResizing`,
69
+ * `enableColumnReordering`, `columnOrder`, `onColumnOrderChange`,
70
+ * `getRowCanExpand`,
48
71
  * `manualSorting`, `sorting`, `onSortingChange`, `paginationMode`,
49
72
  * `onLoadMore`, `loadMoreRootMargin`, `hasNextPage`, `isLoadingMore`.
50
73
  * `meta.pin`-driven column pinning is also skipped — pin/unpin the
@@ -77,6 +100,20 @@ interface DataTableOwnProps<TData> {
77
100
  enableColumnResizing?: boolean;
78
101
  /** Passthrough for the `columnSizing` state so a consumer can persist widths. */
79
102
  onColumnSizingChange?: OnChangeFn<ColumnSizingState>;
103
+ /**
104
+ * Opt in to column reordering by dragging a header cell onto another one
105
+ * (native HTML5 drag-and-drop driving TanStack's `columnOrder`). Pinned
106
+ * columns are excluded — they're anchored to a table edge by definition.
107
+ * Pointer-only, matching the design: there is no keyboard equivalent yet.
108
+ */
109
+ enableColumnReordering?: boolean;
110
+ /**
111
+ * Controlled column-order state — pass this (with `onColumnOrderChange`) to
112
+ * persist or share the order. Uncontrolled (internal state) when omitted.
113
+ */
114
+ columnOrder?: ColumnOrderState;
115
+ /** Passthrough for the `columnOrder` state; pairs with `columnOrder`. */
116
+ onColumnOrderChange?: OnChangeFn<ColumnOrderState>;
80
117
  /**
81
118
  * Controlled column-visibility state — pass this (with
82
119
  * `onColumnVisibilityChange`) to share one visibility state with an
@@ -86,6 +123,15 @@ interface DataTableOwnProps<TData> {
86
123
  columnVisibility?: VisibilityState;
87
124
  /** Passthrough for the `columnVisibility` state; pairs with `columnVisibility`. */
88
125
  onColumnVisibilityChange?: OnChangeFn<VisibilityState>;
126
+ /**
127
+ * Controlled row-selection state — pass this (with `onRowSelectionChange`)
128
+ * to share one selection state with an external `useReactTable` instance
129
+ * (e.g. a composed toolbar/bulk-actions bar). Uncontrolled (internal state)
130
+ * when omitted.
131
+ */
132
+ rowSelection?: RowSelectionState;
133
+ /** Passthrough for the `rowSelection` state; pairs with `rowSelection`. */
134
+ onRowSelectionChange?: OnChangeFn<RowSelectionState>;
89
135
  /**
90
136
  * Opt out of client-side sorting — pass already-sorted `data` and drive
91
137
  * sorting via `sorting`/`onSortingChange` (e.g. mapped to a server query by
@@ -154,12 +200,51 @@ interface DataTableOwnProps<TData> {
154
200
  loadMoreRootMargin?: string;
155
201
  /** Whether more rows are available to load. `paginationMode="infinite"` only. */
156
202
  hasNextPage?: boolean;
203
+ /**
204
+ * Accessible name of a column's resize handle. Override to localize.
205
+ * `enableColumnResizing` only.
206
+ */
207
+ resizeColumnLabel?: string;
208
+ /**
209
+ * Text of the default empty-state row. Ignored when `renderEmptyState` is
210
+ * given. Override to localize.
211
+ */
212
+ emptyLabel?: string;
157
213
  /**
158
214
  * Whether a load is in flight — suppresses further `onLoadMore` calls and
159
215
  * renders a trailing loading row. `paginationMode="infinite"` only.
160
216
  */
161
217
  isLoadingMore?: boolean;
218
+ /**
219
+ * Hide the trailing sticky action column — the column-visibility cog in the
220
+ * header and each row's overflow-actions ellipsis. Shown by default. A
221
+ * no-op when an external `table` is passed (build the column into that
222
+ * instance's own `columns` instead).
223
+ */
224
+ hideActionColumn?: boolean;
225
+ /**
226
+ * Renders the content of a row's overflow-actions menu (e.g. `Edit`/
227
+ * `Delete` items), opened from the ellipsis trigger in the trailing action
228
+ * column. Omit to render that row without a trigger — the 48px column is
229
+ * still reserved. Suppressed (like the trigger itself) while a bulk
230
+ * selection is active, per `TableActionsCell`.
231
+ */
232
+ renderRowActions?: (row: Row<TData>) => ReactNode;
233
+ /** Accessible name of a row's overflow-actions trigger. Override to localize. */
234
+ rowActionsLabel?: string;
235
+ /**
236
+ * Accessible name of the action column's column-visibility trigger.
237
+ * Override to localize.
238
+ */
239
+ columnSettingsLabel?: string;
240
+ /**
241
+ * Copy of the tooltip shown while a header cell is hovered/focused — one
242
+ * line per capability that column actually has (sort/reorder/resize).
243
+ * Override (per capability) to localize; a column with no capability shows
244
+ * no tooltip at all.
245
+ */
246
+ headerHints?: Partial<DataTableHeaderHints>;
162
247
  }
163
248
  export type DataTableProps<TData, TValue = unknown> = DataTableOwnProps<TData> & DataTableDataSourceProps<TData, TValue>;
164
- export declare function DataTable<TData, TValue = unknown>({ columns, data, table: externalTable, getRowCanExpand, renderExpandedRow, striped, bordered, highlightCurrentRow, skeleton, skeletonRows, enableColumnResizing, onColumnSizingChange, columnVisibility: controlledColumnVisibility, onColumnVisibilityChange, manualSorting, sorting: controlledSorting, onSortingChange, renderRow, renderEmptyState, paginationMode, onLoadMore, loadMoreRootMargin, hasNextPage, isLoadingMore, }: DataTableProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
249
+ export declare function DataTable<TData, TValue = unknown>({ columns, data, table: externalTable, getRowCanExpand, renderExpandedRow, striped, bordered, highlightCurrentRow, skeleton, skeletonRows, enableColumnResizing, onColumnSizingChange, enableColumnReordering, columnOrder: controlledColumnOrder, onColumnOrderChange, columnVisibility: controlledColumnVisibility, onColumnVisibilityChange, rowSelection: controlledRowSelection, onRowSelectionChange, manualSorting, sorting: controlledSorting, onSortingChange, renderRow, renderEmptyState, paginationMode, onLoadMore, loadMoreRootMargin, hasNextPage, resizeColumnLabel, emptyLabel, isLoadingMore, hideActionColumn, renderRowActions, rowActionsLabel, columnSettingsLabel, headerHints, }: DataTableProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
165
250
  export {};
@@ -14,7 +14,8 @@ export interface DataTableProps {
14
14
  * instance as-is. Makes `columns`/`data` unnecessary and the following props
15
15
  * no-ops (configure the equivalent on the external instance instead):
16
16
  * `columnVisibility`, `onColumnVisibilityChange`, `onColumnSizingChange`,
17
- * `enableColumnResizing`, `getRowCanExpand`, `manualSorting`, `sorting`,
17
+ * `enableColumnResizing`, `enableColumnReordering`, `columnOrder`,
18
+ * `onColumnOrderChange`, `getRowCanExpand`, `manualSorting`, `sorting`,
18
19
  * `onSortingChange`, `paginationMode`, `onLoadMore`, `loadMoreRootMargin`,
19
20
  * `hasNextPage`, `isLoadingMore`. `meta.pin`-driven column pinning is also
20
21
  * skipped — pin/unpin the caller's own instance via TanStack's `column.pin()`.
@@ -39,8 +40,26 @@ export interface DataTableProps {
39
40
  * trailing edge of each resizable header (TanStack's native `columnResizing`).
40
41
  */
41
42
  enableColumnResizing?: boolean;
43
+ /**
44
+ * Accessible name of a column's resize handle (default `'Resize column'`).
45
+ * `enableColumnResizing` only. Override to localize.
46
+ */
47
+ resizeColumnLabel?: string;
42
48
  /** Passthrough for the `columnSizing` state so a consumer can persist widths. */
43
49
  onColumnSizingChange?: (updater: unknown) => void;
50
+ /**
51
+ * Opt in to column reordering by dragging a header cell onto another one
52
+ * (native HTML5 drag-and-drop driving TanStack's `columnOrder`). Pinned
53
+ * columns are excluded. Pointer-only — there is no keyboard equivalent yet.
54
+ */
55
+ enableColumnReordering?: boolean;
56
+ /**
57
+ * Controlled column-order state — pass this (with `onColumnOrderChange`) to
58
+ * persist or share the order. Uncontrolled (internal state) when omitted.
59
+ */
60
+ columnOrder?: string[];
61
+ /** Passthrough for the `columnOrder` state; pairs with `columnOrder`. */
62
+ onColumnOrderChange?: (updater: unknown) => void;
44
63
  /**
45
64
  * Controlled column-visibility state — pass this (with
46
65
  * `onColumnVisibilityChange`) to share one visibility state with an external
@@ -49,6 +68,15 @@ export interface DataTableProps {
49
68
  columnVisibility?: unknown;
50
69
  /** Passthrough for the `columnVisibility` state; pairs with `columnVisibility`. */
51
70
  onColumnVisibilityChange?: (updater: unknown) => void;
71
+ /**
72
+ * Controlled row-selection state — pass this (with `onRowSelectionChange`) to
73
+ * share one selection state with an external `useReactTable` instance (e.g. a
74
+ * composed toolbar/bulk-actions bar). Uncontrolled (internal state) when
75
+ * omitted.
76
+ */
77
+ rowSelection?: unknown;
78
+ /** Passthrough for the `rowSelection` state; pairs with `rowSelection`. */
79
+ onRowSelectionChange?: (updater: unknown) => void;
52
80
  /**
53
81
  * Opt out of client-side sorting — pass already-sorted `data` and drive
54
82
  * sorting via `sorting`/`onSortingChange` (e.g. mapped to a server query by
@@ -79,6 +107,11 @@ export interface DataTableProps {
79
107
  renderEmptyState?: (context: {
80
108
  hasFilters: boolean;
81
109
  }) => ReactNode;
110
+ /**
111
+ * Text of the default empty-state row (default `'No results.'`). Ignored when
112
+ * `renderEmptyState` is given. Override to localize.
113
+ */
114
+ emptyLabel?: string;
82
115
  /**
83
116
  * `'page'` (default) keeps today's client-paginated behavior. `'infinite'`
84
117
  * omits the paginated row model — `data` is the full accumulated array the
@@ -103,4 +136,31 @@ export interface DataTableProps {
103
136
  * renders a trailing loading row. `paginationMode="infinite"` only.
104
137
  */
105
138
  isLoadingMore?: boolean;
139
+ /**
140
+ * Hide the trailing sticky action column — the column-visibility cog in the
141
+ * header and each row's overflow-actions ellipsis. Shown by default. A
142
+ * no-op when `table` is passed.
143
+ */
144
+ hideActionColumn?: boolean;
145
+ /**
146
+ * Renders the content of a row's overflow-actions menu, opened from the
147
+ * ellipsis trigger in the trailing action column. Omit to render that row
148
+ * without a trigger — the 48px column is still reserved.
149
+ */
150
+ renderRowActions?: (row: unknown) => ReactNode;
151
+ /** Accessible name of a row's overflow-actions trigger. */
152
+ rowActionsLabel?: string;
153
+ /** Accessible name of the action column's column-visibility trigger. */
154
+ columnSettingsLabel?: string;
155
+ /**
156
+ * Copy of the tooltip shown while a header cell is hovered/focused — one
157
+ * `{ label, action }` line per capability that column actually has. Merged
158
+ * over the defaults (`sort`: "Sort column"/"Click", `reorder`: "Reorder
159
+ * column"/"Drag", `resize`: "Resize column"/"Drag border"), so any subset can
160
+ * be overridden to localize; a column with no capability shows no tooltip.
161
+ */
162
+ headerHints?: Partial<Record<'sort' | 'reorder' | 'resize', {
163
+ label: string;
164
+ action: string;
165
+ }>>;
106
166
  }
@@ -1,4 +1,6 @@
1
- export { DataTable, type DataTableProps, getCellStyle, getPinnedStyle, getColumnWidth, } from './data-table';
1
+ export { DataTable, type DataTableHeaderHint, type DataTableHeaderHints, type DataTableProps, getCellStyle, getPinnedStyle, getColumnWidth, reorderColumn, } from './data-table';
2
+ export { DataTableBulkActionsBar } from './data-table-bulk-actions-bar';
3
+ export { isBulkSelectionActive } from './data-table-selection';
2
4
  export { DataTableColumnHeader } from './data-table-column-header';
3
5
  export { DataTableExpandTrigger } from './data-table-expand-trigger';
4
6
  export { DataTablePagination } from './data-table-pagination';
@@ -1,32 +1,26 @@
1
+ import { DayPickerLocale } from 'react-day-picker';
1
2
  /** A start/end date range. Both ends are optional (a partial range while editing). */
2
3
  export interface DateRange {
3
4
  from?: Date;
4
5
  to?: Date;
5
6
  }
6
- /** The date display / parse pattern used by the trigger and the editable fields. */
7
+ /**
8
+ * The date display pattern used by the trigger. Fixed month-day-year order
9
+ * regardless of `locale` — only the month/day/era token *names* localize (see
10
+ * {@link formatDate}); true locale-aware reordering is a separate, bigger
11
+ * change (tracked, not done here).
12
+ */
7
13
  export declare const DISPLAY_FORMAT = "MMM d, yyyy";
8
14
  /**
9
15
  * Format a date with {@link DISPLAY_FORMAT}, returning `''` for a missing or
10
16
  * invalid `Date`. `date-fns`' `format` throws a `RangeError` on an invalid
11
17
  * `Date` (e.g. `new Date('garbage')`), so the `isValid` guard is load-bearing —
12
18
  * a truthy-but-invalid `Date` must not reach `format`.
13
- */
14
- export declare function formatDate(date: Date | undefined): string;
15
- /**
16
- * Parse a {@link DISPLAY_FORMAT} string into a `Date`, or `undefined` when the
17
- * text is empty, partial (mid-type), or not a real calendar date
18
- * (e.g. `"Feb 30, 2026"`). The result is normalized to the start of the day so
19
- * it round-trips with {@link formatDate} — `date-fns`' `parse` fills the unspecified
20
- * time-of-day from its reference date, which would otherwise leave a "now" time
21
- * on the value and break equality with the midnight dates the calendar emits.
22
19
  *
23
- * NOTE: the pattern is locale-fixed (US-style `MMM d, yyyy`), matching the
24
- * `InputDatePicker` trigger. Locale-aware parsing is not yet supported — a
25
- * known limitation to revisit once the design tier lands.
20
+ * `locale` only translates the month name via `date-fns`' `format` `options`
21
+ * — it does not reorder `DISPLAY_FORMAT`'s fixed month-day-year pattern.
26
22
  */
27
- export declare function parseDate(text: string): Date | undefined;
28
- /** Structural equality of two ranges by their endpoints' timestamps. */
29
- export declare function rangesEqual(a: DateRange, b: DateRange): boolean;
23
+ export declare function formatDate(date: Date | undefined, locale?: DayPickerLocale): string;
30
24
  /**
31
25
  * Return a range whose `from` is never after its `to`. When both ends are set
32
26
  * and inverted (e.g. the user typed an end date earlier than the start), the two