@consta/uikit 5.21.0 → 5.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (279) hide show
  1. package/__internal__/src/components/AutoComplete/types.d.ts +1 -1
  2. package/__internal__/src/components/AutoComplete/types.js.map +1 -1
  3. package/__internal__/src/components/AutoCompleteCanary/types.d.ts +3 -3
  4. package/__internal__/src/components/AutoCompleteCanary/types.js.map +1 -1
  5. package/__internal__/src/components/AvatarGroup/helpers.d.ts +66 -56
  6. package/__internal__/src/components/AvatarGroup/types.d.ts +1 -1
  7. package/__internal__/src/components/AvatarGroup/types.js.map +1 -1
  8. package/__internal__/src/components/BadgeGroup/types.d.ts +1 -1
  9. package/__internal__/src/components/BadgeGroup/types.js.map +1 -1
  10. package/__internal__/src/components/BookmarkTabs/BookmarkTabs.js.map +1 -1
  11. package/__internal__/src/components/BookmarkTabs/BookmarkTabsTab/BookmarkTabsTab.css +1 -1
  12. package/__internal__/src/components/BookmarkTabs/helper.d.ts +66 -56
  13. package/__internal__/src/components/BookmarkTabs/types.d.ts +3 -3
  14. package/__internal__/src/components/BookmarkTabs/types.js.map +1 -1
  15. package/__internal__/src/components/Breadcrumbs/BreadcrumbsMore/BreadcrumbsMore.d.ts +1 -1
  16. package/__internal__/src/components/Breadcrumbs/helpers.d.ts +66 -56
  17. package/__internal__/src/components/Breadcrumbs/types.d.ts +7 -7
  18. package/__internal__/src/components/Breadcrumbs/types.js.map +1 -1
  19. package/__internal__/src/components/Card/Card.d.ts +3 -2
  20. package/__internal__/src/components/Card/Card.js.map +1 -1
  21. package/__internal__/src/components/CheckboxGroup/helper.d.ts +66 -56
  22. package/__internal__/src/components/CheckboxGroup/types.d.ts +1 -1
  23. package/__internal__/src/components/CheckboxGroup/types.js.map +1 -1
  24. package/__internal__/src/components/Chips/ChipsChoice/types.d.ts +1 -1
  25. package/__internal__/src/components/Chips/ChipsChoice/types.js.map +1 -1
  26. package/__internal__/src/components/Chips/types.d.ts +1 -1
  27. package/__internal__/src/components/Chips/types.js.map +1 -1
  28. package/__internal__/src/components/ChoiceGroup/helper.d.ts +66 -56
  29. package/__internal__/src/components/ChoiceGroup/types.d.ts +1 -1
  30. package/__internal__/src/components/ChoiceGroup/types.js.map +1 -1
  31. package/__internal__/src/components/Collapse/types.d.ts +1 -1
  32. package/__internal__/src/components/Collapse/types.js.map +1 -1
  33. package/__internal__/src/components/CollapseGroup/helpers.d.ts +2 -2
  34. package/__internal__/src/components/CollapseGroup/helpers.js.map +1 -1
  35. package/__internal__/src/components/Combobox/helpers.d.ts +4 -4
  36. package/__internal__/src/components/Combobox/helpers.js.map +1 -1
  37. package/__internal__/src/components/ComboboxDeprecated/helpers.d.ts +4 -4
  38. package/__internal__/src/components/ComboboxDeprecated/helpers.js.map +1 -1
  39. package/__internal__/src/components/ContextMenu/ContextMenuLevelWrapper/ContextMenuLevelWrapper.d.ts +1 -1
  40. package/__internal__/src/components/ContextMenu/ContextMenuWrapper/ContextMenuWrapper.d.ts +1 -1
  41. package/__internal__/src/components/ContextMenu/helpers.d.ts +2 -2
  42. package/__internal__/src/components/ContextMenu/types.d.ts +4 -4
  43. package/__internal__/src/components/ContextMenu/types.js.map +1 -1
  44. package/__internal__/src/components/DatePicker/DatePickerDropdown/DatePickerDropdown.d.ts +1 -1
  45. package/__internal__/src/components/DatePicker/DatePickerDropdown/DatePickerDropdown.js.map +1 -1
  46. package/__internal__/src/components/DatePicker/DatePickerFieldTypeDate/DatePickerFieldTypeDate.d.ts +1 -1
  47. package/__internal__/src/components/DatePicker/DatePickerFieldTypeDateRange/DatePickerFieldTypeDateRange.d.ts +1 -1
  48. package/__internal__/src/components/DatePicker/DatePickerFieldTypeDateTime/DatePickerFieldTypeDateTime.d.ts +1 -1
  49. package/__internal__/src/components/DatePicker/DatePickerFieldTypeDateTimeRange/DatePickerFieldTypeDateTimeRange.d.ts +1 -1
  50. package/__internal__/src/components/DatePicker/DatePickerFieldTypeMonth/DatePickerFieldTypeMonth.d.ts +1 -1
  51. package/__internal__/src/components/DatePicker/DatePickerFieldTypeMonthRange/DatePickerFieldTypeMonthRange.d.ts +1 -1
  52. package/__internal__/src/components/DatePicker/DatePickerFieldTypeTime/DatePickerFieldTypeTime.d.ts +1 -1
  53. package/__internal__/src/components/DatePicker/DatePickerFieldTypeYear/DatePickerFieldTypeYear.d.ts +1 -1
  54. package/__internal__/src/components/DatePicker/DatePickerFieldTypeYearRange/DatePickerFieldTypeYearRange.d.ts +1 -1
  55. package/__internal__/src/components/DatePicker/types.d.ts +2 -2
  56. package/__internal__/src/components/DatePicker/types.js.map +1 -1
  57. package/__internal__/src/components/DateTime/DateTimeCell/DateTimeCell.d.ts +1 -1
  58. package/__internal__/src/components/DateTime/DateTimeItem/DateTimeItem.d.ts +1 -1
  59. package/__internal__/src/components/DateTime/helpers/types.d.ts +2 -2
  60. package/__internal__/src/components/DateTime/helpers/types.js.map +1 -1
  61. package/__internal__/src/components/EventInterceptor/EventInterceptor.d.ts +1 -1
  62. package/__internal__/src/components/FieldComponents/FieldArrayValueInlineControl/types.d.ts +1 -1
  63. package/__internal__/src/components/FieldComponents/FieldArrayValueInlineControl/types.js.map +1 -1
  64. package/__internal__/src/components/FieldComponents/FieldButton/FieldButton.d.ts +1 -1
  65. package/__internal__/src/components/FieldComponents/FieldClearButton/FieldClearButton.d.ts +1 -1
  66. package/__internal__/src/components/FieldComponents/FieldControlLayout/FieldControlLayout.d.ts +1 -1
  67. package/__internal__/src/components/FieldComponents/FieldControlLayout/helpers.d.ts +1 -1
  68. package/__internal__/src/components/FieldComponents/FieldControlLayout/helpers.js.map +1 -1
  69. package/__internal__/src/components/FieldComponents/FieldControlLayout/types.d.ts +2 -2
  70. package/__internal__/src/components/FieldComponents/FieldControlLayout/types.js.map +1 -1
  71. package/__internal__/src/components/FieldComponents/FieldCounter/FieldCounter.d.ts +1 -1
  72. package/__internal__/src/components/FieldComponents/FieldInput/FieldInput.d.ts +1 -1
  73. package/__internal__/src/components/FieldComponents/FieldToggleVisiblePasswordButton/FieldToggleVisiblePasswordButton.d.ts +1 -1
  74. package/__internal__/src/components/FieldComponents/renderSide.d.ts +1 -1
  75. package/__internal__/src/components/Grid/helpers.d.ts +1 -1
  76. package/__internal__/src/components/ListCanary/ListAddItem/ListAddItem.d.ts +1 -1
  77. package/__internal__/src/components/ListCanary/ListBox/ListBox.d.ts +1 -1
  78. package/__internal__/src/components/ListCanary/ListDivider/ListDivider.d.ts +1 -1
  79. package/__internal__/src/components/ListCanary/ListGroupLabel/ListGroupLabel.d.ts +1 -1
  80. package/__internal__/src/components/ListCanary/ListLoader/ListLoader.d.ts +1 -1
  81. package/__internal__/src/components/ListCanary/types.d.ts +3 -3
  82. package/__internal__/src/components/ListCanary/types.js.map +1 -1
  83. package/__internal__/src/components/Modal/Modal.js +1 -1
  84. package/__internal__/src/components/Modal/Modal.js.map +1 -1
  85. package/__internal__/src/components/Pagination/PaginationArrow/PaginationArrow.d.ts +1 -1
  86. package/__internal__/src/components/Pagination/types.d.ts +3 -3
  87. package/__internal__/src/components/Pagination/types.js.map +1 -1
  88. package/__internal__/src/components/PaginationDeprecated/PaginationDeprecated.d.ts +1 -1
  89. package/__internal__/src/components/PaginationDeprecated/PaginationDeprecated.js.map +1 -1
  90. package/__internal__/src/components/Picture/Picture.d.ts +1 -1
  91. package/__internal__/src/components/Popover/Popover.d.ts +1 -1
  92. package/__internal__/src/components/Popover/Popover.js +1 -1
  93. package/__internal__/src/components/Popover/Popover.js.map +1 -1
  94. package/__internal__/src/components/PortalWithTheme/PortalWithTheme.d.ts +1 -1
  95. package/__internal__/src/components/PortalWithTheme/PortalWithTheme.js +1 -1
  96. package/__internal__/src/components/PortalWithTheme/PortalWithTheme.js.map +1 -1
  97. package/__internal__/src/components/PortalWithTheme/PortalWithThemeConsumer/PortalWithThemeConsumer.d.ts +10 -0
  98. package/__internal__/src/components/PortalWithTheme/PortalWithThemeConsumer/PortalWithThemeConsumer.js +2 -0
  99. package/__internal__/src/components/PortalWithTheme/PortalWithThemeConsumer/PortalWithThemeConsumer.js.map +1 -0
  100. package/__internal__/src/components/PortalWithTheme/PortalWithThemeConsumer/index.d.ts +1 -0
  101. package/__internal__/src/components/PortalWithTheme/PortalWithThemeConsumer/index.js +2 -0
  102. package/__internal__/src/components/PortalWithTheme/PortalWithThemeConsumer/index.js.map +1 -0
  103. package/__internal__/src/components/PortalWithTheme/index.d.ts +1 -0
  104. package/__internal__/src/components/PortalWithTheme/index.js +1 -1
  105. package/__internal__/src/components/PortalWithTheme/index.js.map +1 -1
  106. package/__internal__/src/components/ProgressLine/helpers.d.ts +66 -56
  107. package/__internal__/src/components/ProgressLine/types.d.ts +1 -1
  108. package/__internal__/src/components/ProgressLine/types.js.map +1 -1
  109. package/__internal__/src/components/ProgressStepBar/ProgressStepBarLine/ProgressStepBarLine.d.ts +1 -1
  110. package/__internal__/src/components/ProgressStepBar/helpers.d.ts +3 -3
  111. package/__internal__/src/components/ProgressStepBar/helpers.js.map +1 -1
  112. package/__internal__/src/components/RadioGroup/helper.d.ts +66 -56
  113. package/__internal__/src/components/RadioGroup/types.d.ts +1 -1
  114. package/__internal__/src/components/RadioGroup/types.js.map +1 -1
  115. package/__internal__/src/components/Select/helpers.d.ts +4 -4
  116. package/__internal__/src/components/Select/helpers.js.map +1 -1
  117. package/__internal__/src/components/SelectCanary/SelectControlLayout/SelectControlLayout.d.ts +1 -1
  118. package/__internal__/src/components/SelectCanary/SelectCreateButton/SelectCreateButton.d.ts +1 -1
  119. package/__internal__/src/components/SelectCanary/SelectCreateButton/SelectCreateButton.js.map +1 -1
  120. package/__internal__/src/components/SelectCanary/SelectDropdown/SelectDropdown.d.ts +1 -1
  121. package/__internal__/src/components/SelectCanary/SelectDropdown/SelectDropdown.js.map +1 -1
  122. package/__internal__/src/components/SelectCanary/SelectInput/SelectInput.d.ts +1 -1
  123. package/__internal__/src/components/SelectCanary/SelectLoader/SelectLoader.d.ts +1 -1
  124. package/__internal__/src/components/SelectCanary/SelectMultipleValue/SelectMultipleValue.d.ts +2 -2
  125. package/__internal__/src/components/SelectCanary/SelectMultipleValue/SelectMultipleValue.js.map +1 -1
  126. package/__internal__/src/components/SelectCanary/SelectRenderItem/SelectRenderItem.d.ts +1 -1
  127. package/__internal__/src/components/SelectCanary/SelectRenderItem/SelectRenderItem.js.map +1 -1
  128. package/__internal__/src/components/SelectCanary/helpers.d.ts +1 -1
  129. package/__internal__/src/components/SelectCanary/types.d.ts +1 -1
  130. package/__internal__/src/components/SelectCanary/types.js.map +1 -1
  131. package/__internal__/src/components/SelectComponents/SelectContainer/SelectContainer.d.ts +1 -1
  132. package/__internal__/src/components/SelectComponents/SelectDropdown/SelectDropdown.d.ts +2 -2
  133. package/__internal__/src/components/SelectComponents/SelectDropdown/SelectDropdown.js.map +1 -1
  134. package/__internal__/src/components/SelectComponents/SelectLoader/SelectLoader.d.ts +1 -1
  135. package/__internal__/src/components/SelectComponentsDeprecated/SelectContainer/SelectContainer.d.ts +1 -1
  136. package/__internal__/src/components/SelectComponentsDeprecated/SelectDropdown/SelectDropdown.d.ts +2 -2
  137. package/__internal__/src/components/SelectComponentsDeprecated/SelectDropdown/SelectDropdown.js.map +1 -1
  138. package/__internal__/src/components/SelectComponentsDeprecated/SelectItemAll/SelectSelectAll.d.ts +1 -1
  139. package/__internal__/src/components/SelectComponentsDeprecated/SelectLoader/SelectLoader.d.ts +1 -1
  140. package/__internal__/src/components/SelectDeprecated/helpers.d.ts +4 -4
  141. package/__internal__/src/components/SelectDeprecated/helpers.js.map +1 -1
  142. package/__internal__/src/components/Sidebar/Sidebar.js +1 -1
  143. package/__internal__/src/components/Sidebar/Sidebar.js.map +1 -1
  144. package/__internal__/src/components/Skeleton/SkeletonBrick/SkeletonBrick.d.ts +1 -1
  145. package/__internal__/src/components/Skeleton/SkeletonCircle/SkeletonCircle.d.ts +1 -1
  146. package/__internal__/src/components/Slider/SliderInput/SliderInput.d.ts +1 -1
  147. package/__internal__/src/components/Slider/SliderLine/SliderLine.d.ts +1 -1
  148. package/__internal__/src/components/Slider/SliderPoint/SliderPoint.d.ts +1 -1
  149. package/__internal__/src/components/Slider/helper.d.ts +1 -1
  150. package/__internal__/src/components/Slider/helper.js.map +1 -1
  151. package/__internal__/src/components/SnackBar/SnackBarItem/SnackBarItem.d.ts +1 -1
  152. package/__internal__/src/components/SnackBar/helper.d.ts +67 -57
  153. package/__internal__/src/components/SnackBar/types.d.ts +2 -2
  154. package/__internal__/src/components/SnackBar/types.js.map +1 -1
  155. package/__internal__/src/components/Steps/helper.d.ts +66 -56
  156. package/__internal__/src/components/Steps/types.d.ts +1 -1
  157. package/__internal__/src/components/Steps/types.js.map +1 -1
  158. package/__internal__/src/components/StepsCanary/helper.d.ts +66 -56
  159. package/__internal__/src/components/StepsCanary/types.d.ts +1 -1
  160. package/__internal__/src/components/StepsCanary/types.js.map +1 -1
  161. package/__internal__/src/components/Switch/Switch.d.ts +2 -1
  162. package/__internal__/src/components/Switch/Switch.js +1 -1
  163. package/__internal__/src/components/Switch/Switch.js.map +1 -1
  164. package/__internal__/src/components/Switch/types.d.ts +1 -0
  165. package/__internal__/src/components/Switch/types.js.map +1 -1
  166. package/__internal__/src/components/SwitchGroup/helpers.d.ts +66 -56
  167. package/__internal__/src/components/SwitchGroup/types.d.ts +1 -1
  168. package/__internal__/src/components/SwitchGroup/types.js.map +1 -1
  169. package/__internal__/src/components/Table/Cell/TableCell.d.ts +1 -1
  170. package/__internal__/src/components/Table/Cell/TableCell.js.map +1 -1
  171. package/__internal__/src/components/Table/Header/TableHeader.d.ts +1 -1
  172. package/__internal__/src/components/Table/Header/TableHeader.js.map +1 -1
  173. package/__internal__/src/components/Table/Resizer/TableResizer.d.ts +1 -1
  174. package/__internal__/src/components/Table/Resizer/TableResizer.js.map +1 -1
  175. package/__internal__/src/components/Table/Table.d.ts +1 -1
  176. package/__internal__/src/components/Table/Table.js.map +1 -1
  177. package/__internal__/src/components/Table/__mock__/data.mock.d.ts +1 -1
  178. package/__internal__/src/components/Tabs/Tabs.js.map +1 -1
  179. package/__internal__/src/components/Tabs/TabsFitModeDropdownWrapper/TabsFitModeDropdownWrapper.d.ts +1 -1
  180. package/__internal__/src/components/Tabs/TabsFitModeDropdownWrapper/TabsFitModeDropdownWrapper.js.map +1 -1
  181. package/__internal__/src/components/Tabs/TabsFitModeScrollWrapper/TabsFitModeScrollWrapper.d.ts +1 -1
  182. package/__internal__/src/components/Tabs/TabsFitModeScrollWrapper/TabsFitModeScrollWrapper.js.map +1 -1
  183. package/__internal__/src/components/Tabs/TabsListWrapper/TabsListWrapper.d.ts +1 -1
  184. package/__internal__/src/components/Tabs/helpers.d.ts +199 -169
  185. package/__internal__/src/components/Tabs/types.d.ts +4 -4
  186. package/__internal__/src/components/Tabs/types.js.map +1 -1
  187. package/__internal__/src/components/Tag/Tag.d.ts +1 -1
  188. package/__internal__/src/components/Tag/Tag.js.map +1 -1
  189. package/__internal__/src/components/TagBase/TagBase.d.ts +1 -1
  190. package/__internal__/src/components/TextField/TextField.d.ts +1 -1
  191. package/__internal__/src/components/TextField/types.d.ts +1 -1
  192. package/__internal__/src/components/TextField/types.js.map +1 -1
  193. package/__internal__/src/components/TextFieldCanary/TextFieldTypeTextArray/TextFieldTypeTextArray.js +1 -1
  194. package/__internal__/src/components/TextFieldCanary/TextFieldTypeTextArray/TextFieldTypeTextArray.js.map +1 -1
  195. package/__internal__/src/components/TextFieldCanary/types.d.ts +2 -2
  196. package/__internal__/src/components/TextFieldCanary/types.js.map +1 -1
  197. package/__internal__/src/components/ThemeToggler/helpers.d.ts +66 -56
  198. package/__internal__/src/components/ThemeToggler/types.d.ts +1 -1
  199. package/__internal__/src/components/ThemeToggler/types.js.map +1 -1
  200. package/__internal__/src/components/Timer/Timer.d.ts +1 -1
  201. package/__internal__/src/components/Tooltip/Tooltip.d.ts +1 -1
  202. package/__internal__/src/components/TooltipDeprecated/TooltipDeprecated.d.ts +1 -1
  203. package/__internal__/src/components/UserSelect/helpers.d.ts +4 -4
  204. package/__internal__/src/components/UserSelect/helpers.js.map +1 -1
  205. package/__internal__/src/components/UserSelectDeprecated/helpers.d.ts +4 -4
  206. package/__internal__/src/components/UserSelectDeprecated/helpers.js.map +1 -1
  207. package/__internal__/src/docs/start/start.stand.d.ts +1 -1
  208. package/__internal__/src/fileIcons/FileIconAvi/FileIconAvi_size_m.d.ts +1 -1
  209. package/__internal__/src/fileIcons/FileIconAvi/FileIconAvi_size_s.d.ts +1 -1
  210. package/__internal__/src/fileIcons/FileIconBmp/FileIconBmp_size_m.d.ts +1 -1
  211. package/__internal__/src/fileIcons/FileIconBmp/FileIconBmp_size_s.d.ts +1 -1
  212. package/__internal__/src/fileIcons/FileIconCsv/FileIconCsv_size_m.d.ts +1 -1
  213. package/__internal__/src/fileIcons/FileIconCsv/FileIconCsv_size_s.d.ts +1 -1
  214. package/__internal__/src/fileIcons/FileIconDoc/FileIconDoc_size_m.d.ts +1 -1
  215. package/__internal__/src/fileIcons/FileIconDoc/FileIconDoc_size_s.d.ts +1 -1
  216. package/__internal__/src/fileIcons/FileIconExe/FileIconExe_size_m.d.ts +1 -1
  217. package/__internal__/src/fileIcons/FileIconExe/FileIconExe_size_s.d.ts +1 -1
  218. package/__internal__/src/fileIcons/FileIconGif/FileIconGif_size_m.d.ts +1 -1
  219. package/__internal__/src/fileIcons/FileIconGif/FileIconGif_size_s.d.ts +1 -1
  220. package/__internal__/src/fileIcons/FileIconJpg/FileIconJpg_size_m.d.ts +1 -1
  221. package/__internal__/src/fileIcons/FileIconJpg/FileIconJpg_size_s.d.ts +1 -1
  222. package/__internal__/src/fileIcons/FileIconJson/FileIconJson_size_m.d.ts +1 -1
  223. package/__internal__/src/fileIcons/FileIconJson/FileIconJson_size_s.d.ts +1 -1
  224. package/__internal__/src/fileIcons/FileIconLoading/FileIconLoading_size_m.d.ts +1 -1
  225. package/__internal__/src/fileIcons/FileIconLoading/FileIconLoading_size_s.d.ts +1 -1
  226. package/__internal__/src/fileIcons/FileIconMov/FileIconMov_size_m.d.ts +1 -1
  227. package/__internal__/src/fileIcons/FileIconMov/FileIconMov_size_s.d.ts +1 -1
  228. package/__internal__/src/fileIcons/FileIconMp3/FileIconMp3_size_m.d.ts +1 -1
  229. package/__internal__/src/fileIcons/FileIconMp3/FileIconMp3_size_s.d.ts +1 -1
  230. package/__internal__/src/fileIcons/FileIconMp4/FileIconMp4_size_m.d.ts +1 -1
  231. package/__internal__/src/fileIcons/FileIconMp4/FileIconMp4_size_s.d.ts +1 -1
  232. package/__internal__/src/fileIcons/FileIconMsg/FileIconMsg_size_m.d.ts +1 -1
  233. package/__internal__/src/fileIcons/FileIconMsg/FileIconMsg_size_s.d.ts +1 -1
  234. package/__internal__/src/fileIcons/FileIconPdf/FileIconPdf_size_m.d.ts +1 -1
  235. package/__internal__/src/fileIcons/FileIconPdf/FileIconPdf_size_s.d.ts +1 -1
  236. package/__internal__/src/fileIcons/FileIconPng/FileIconPng_size_m.d.ts +1 -1
  237. package/__internal__/src/fileIcons/FileIconPng/FileIconPng_size_s.d.ts +1 -1
  238. package/__internal__/src/fileIcons/FileIconPpt/FileIconPpt_size_m.d.ts +1 -1
  239. package/__internal__/src/fileIcons/FileIconPpt/FileIconPpt_size_s.d.ts +1 -1
  240. package/__internal__/src/fileIcons/FileIconRar/FileIconRar_size_m.d.ts +1 -1
  241. package/__internal__/src/fileIcons/FileIconRar/FileIconRar_size_s.d.ts +1 -1
  242. package/__internal__/src/fileIcons/FileIconRtf/FileIconRtf_size_m.d.ts +1 -1
  243. package/__internal__/src/fileIcons/FileIconRtf/FileIconRtf_size_s.d.ts +1 -1
  244. package/__internal__/src/fileIcons/FileIconSvg/FileIconSvg_size_m.d.ts +1 -1
  245. package/__internal__/src/fileIcons/FileIconSvg/FileIconSvg_size_s.d.ts +1 -1
  246. package/__internal__/src/fileIcons/FileIconTiff/FileIconTiff_size_m.d.ts +1 -1
  247. package/__internal__/src/fileIcons/FileIconTiff/FileIconTiff_size_s.d.ts +1 -1
  248. package/__internal__/src/fileIcons/FileIconTxt/FileIconTxt_size_m.d.ts +1 -1
  249. package/__internal__/src/fileIcons/FileIconTxt/FileIconTxt_size_s.d.ts +1 -1
  250. package/__internal__/src/fileIcons/FileIconUndefined/FileIconUndefined_size_m.d.ts +1 -1
  251. package/__internal__/src/fileIcons/FileIconUndefined/FileIconUndefined_size_s.d.ts +1 -1
  252. package/__internal__/src/fileIcons/FileIconVsd/FileIconVsd_size_m.d.ts +1 -1
  253. package/__internal__/src/fileIcons/FileIconVsd/FileIconVsd_size_s.d.ts +1 -1
  254. package/__internal__/src/fileIcons/FileIconWav/FileIconWav_size_m.d.ts +1 -1
  255. package/__internal__/src/fileIcons/FileIconWav/FileIconWav_size_s.d.ts +1 -1
  256. package/__internal__/src/fileIcons/FileIconXls/FileIconXls_size_m.d.ts +1 -1
  257. package/__internal__/src/fileIcons/FileIconXls/FileIconXls_size_s.d.ts +1 -1
  258. package/__internal__/src/fileIcons/FileIconZip/FileIconZip_size_m.d.ts +1 -1
  259. package/__internal__/src/fileIcons/FileIconZip/FileIconZip_size_s.d.ts +1 -1
  260. package/__internal__/src/hocs/withTooltip/withTooltip.d.ts +1 -1
  261. package/__internal__/src/hocs/withTooltip/withTooltip.js.map +1 -1
  262. package/__internal__/src/hooks/useForkRef/useForkRef.d.ts +1 -1
  263. package/__internal__/src/responsesImages/ResponsesImage403/ResponsesImage403Svg.d.ts +1 -1
  264. package/__internal__/src/responsesImages/ResponsesImage404/ResponsesImage404Svg.d.ts +1 -1
  265. package/__internal__/src/responsesImages/ResponsesImage500/ResponsesImage500Svg.d.ts +1 -1
  266. package/__internal__/src/responsesImages/ResponsesImage503/ResponsesImage503Svg.d.ts +1 -1
  267. package/__internal__/src/responsesImages/ResponsesImageConnectionError/ResponsesImageConnectionErrorSvg.d.ts +1 -1
  268. package/__internal__/src/responsesImages/ResponsesImageDeleted/ResponsesImageDeletedSvg.d.ts +1 -1
  269. package/__internal__/src/responsesImages/ResponsesImageEmptyBox/ResponsesImageEmptyBoxSvg.d.ts +1 -1
  270. package/__internal__/src/responsesImages/ResponsesImageEmptyPockets/ResponsesImageEmptyPocketsSvg.d.ts +1 -1
  271. package/__internal__/src/responsesImages/ResponsesImageExit/ResponsesImageExitSvg.d.ts +1 -1
  272. package/__internal__/src/responsesImages/ResponsesImageNothingFound/ResponsesImageNothingFoundSvg.d.ts +1 -1
  273. package/__internal__/src/responsesImages/ResponsesImageSuccess/ResponsesImageSuccessSvg.d.ts +1 -1
  274. package/__internal__/src/stand/standConfig.d.ts +1 -1
  275. package/__internal__/src/uiKit/components/Image/Image.d.ts +1 -1
  276. package/__internal__/src/utils/state/withCtx/withCtx.js.map +1 -1
  277. package/__internal__/src/utils/types/PropsWithAsAttributes.d.ts +2 -2
  278. package/__internal__/src/utils/types/PropsWithAsAttributes.js.map +1 -1
  279. package/package.json +1 -1
@@ -18,14 +18,17 @@ export declare function withDefaultGetters(props: StepsProps): {
18
18
  suppressContentEditableWarning?: boolean | undefined | undefined;
19
19
  suppressHydrationWarning?: boolean | undefined | undefined;
20
20
  accessKey?: string | undefined | undefined;
21
- contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
21
+ autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
22
+ autoFocus?: boolean | undefined | undefined;
23
+ contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
22
24
  contextMenu?: string | undefined | undefined;
23
25
  dir?: string | undefined | undefined;
24
26
  draggable?: (boolean | "true" | "false") | undefined;
27
+ enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
25
28
  hidden?: boolean | undefined | undefined;
26
29
  id?: string | undefined | undefined;
27
30
  lang?: string | undefined | undefined;
28
- placeholder?: string | undefined | undefined;
31
+ nonce?: string | undefined | undefined;
29
32
  slot?: string | undefined | undefined;
30
33
  spellCheck?: (boolean | "true" | "false") | undefined;
31
34
  style?: import("react").CSSProperties | undefined;
@@ -35,14 +38,16 @@ export declare function withDefaultGetters(props: StepsProps): {
35
38
  radioGroup?: string | undefined | undefined;
36
39
  role?: import("react").AriaRole | undefined;
37
40
  about?: string | undefined | undefined;
41
+ content?: string | undefined | undefined;
38
42
  datatype?: string | undefined | undefined;
39
43
  inlist?: any;
40
44
  prefix?: string | undefined | undefined;
41
45
  property?: string | undefined | undefined;
46
+ rel?: string | undefined | undefined;
42
47
  resource?: string | undefined | undefined;
48
+ rev?: string | undefined | undefined;
43
49
  typeof?: string | undefined | undefined;
44
50
  vocab?: string | undefined | undefined;
45
- autoCapitalize?: string | undefined | undefined;
46
51
  autoCorrect?: string | undefined | undefined;
47
52
  autoSave?: string | undefined | undefined;
48
53
  color?: string | undefined | undefined;
@@ -56,57 +61,64 @@ export declare function withDefaultGetters(props: StepsProps): {
56
61
  unselectable?: "on" | "off" | undefined | undefined;
57
62
  inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
58
63
  is?: string | undefined | undefined;
59
- 'aria-activedescendant'?: string | undefined | undefined;
60
- 'aria-atomic'?: (boolean | "true" | "false") | undefined;
61
- 'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined | undefined;
62
- 'aria-busy'?: (boolean | "true" | "false") | undefined;
63
- 'aria-checked'?: boolean | "false" | "mixed" | "true" | undefined | undefined;
64
- 'aria-colcount'?: number | undefined | undefined;
65
- 'aria-colindex'?: number | undefined | undefined;
66
- 'aria-colspan'?: number | undefined | undefined;
67
- 'aria-controls'?: string | undefined | undefined;
68
- 'aria-current'?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
69
- 'aria-describedby'?: string | undefined | undefined;
70
- 'aria-details'?: string | undefined | undefined;
71
- 'aria-disabled'?: (boolean | "true" | "false") | undefined;
72
- 'aria-dropeffect'?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
73
- 'aria-errormessage'?: string | undefined | undefined;
74
- 'aria-expanded'?: (boolean | "true" | "false") | undefined;
75
- 'aria-flowto'?: string | undefined | undefined;
76
- 'aria-grabbed'?: (boolean | "true" | "false") | undefined;
77
- 'aria-haspopup'?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
78
- 'aria-hidden'?: (boolean | "true" | "false") | undefined;
79
- 'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
80
- 'aria-keyshortcuts'?: string | undefined | undefined;
81
- 'aria-label'?: string | undefined | undefined;
82
- 'aria-labelledby'?: string | undefined | undefined;
83
- 'aria-level'?: number | undefined | undefined;
84
- 'aria-live'?: "off" | "assertive" | "polite" | undefined | undefined;
85
- 'aria-modal'?: (boolean | "true" | "false") | undefined;
86
- 'aria-multiline'?: (boolean | "true" | "false") | undefined;
87
- 'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
88
- 'aria-orientation'?: "horizontal" | "vertical" | undefined | undefined;
89
- 'aria-owns'?: string | undefined | undefined;
90
- 'aria-placeholder'?: string | undefined | undefined;
91
- 'aria-posinset'?: number | undefined | undefined;
92
- 'aria-pressed'?: boolean | "false" | "mixed" | "true" | undefined | undefined;
93
- 'aria-readonly'?: (boolean | "true" | "false") | undefined;
94
- 'aria-relevant'?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
95
- 'aria-required'?: (boolean | "true" | "false") | undefined;
96
- 'aria-roledescription'?: string | undefined | undefined;
97
- 'aria-rowcount'?: number | undefined | undefined;
98
- 'aria-rowindex'?: number | undefined | undefined;
99
- 'aria-rowspan'?: number | undefined | undefined;
100
- 'aria-selected'?: (boolean | "true" | "false") | undefined;
101
- 'aria-setsize'?: number | undefined | undefined;
102
- 'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
103
- 'aria-valuemax'?: number | undefined | undefined;
104
- 'aria-valuemin'?: number | undefined | undefined;
105
- 'aria-valuenow'?: number | undefined | undefined;
106
- 'aria-valuetext'?: string | undefined | undefined;
64
+ exportparts?: string | undefined | undefined;
65
+ part?: string | undefined | undefined;
66
+ "aria-activedescendant"?: string | undefined | undefined;
67
+ "aria-atomic"?: (boolean | "true" | "false") | undefined;
68
+ "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
69
+ "aria-braillelabel"?: string | undefined | undefined;
70
+ "aria-brailleroledescription"?: string | undefined | undefined;
71
+ "aria-busy"?: (boolean | "true" | "false") | undefined;
72
+ "aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
73
+ "aria-colcount"?: number | undefined | undefined;
74
+ "aria-colindex"?: number | undefined | undefined;
75
+ "aria-colindextext"?: string | undefined | undefined;
76
+ "aria-colspan"?: number | undefined | undefined;
77
+ "aria-controls"?: string | undefined | undefined;
78
+ "aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
79
+ "aria-describedby"?: string | undefined | undefined;
80
+ "aria-description"?: string | undefined | undefined;
81
+ "aria-details"?: string | undefined | undefined;
82
+ "aria-disabled"?: (boolean | "true" | "false") | undefined;
83
+ "aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
84
+ "aria-errormessage"?: string | undefined | undefined;
85
+ "aria-expanded"?: (boolean | "true" | "false") | undefined;
86
+ "aria-flowto"?: string | undefined | undefined;
87
+ "aria-grabbed"?: (boolean | "true" | "false") | undefined;
88
+ "aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
89
+ "aria-hidden"?: (boolean | "true" | "false") | undefined;
90
+ "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
91
+ "aria-keyshortcuts"?: string | undefined | undefined;
92
+ "aria-label"?: string | undefined | undefined;
93
+ "aria-labelledby"?: string | undefined | undefined;
94
+ "aria-level"?: number | undefined | undefined;
95
+ "aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
96
+ "aria-modal"?: (boolean | "true" | "false") | undefined;
97
+ "aria-multiline"?: (boolean | "true" | "false") | undefined;
98
+ "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
99
+ "aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
100
+ "aria-owns"?: string | undefined | undefined;
101
+ "aria-placeholder"?: string | undefined | undefined;
102
+ "aria-posinset"?: number | undefined | undefined;
103
+ "aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
104
+ "aria-readonly"?: (boolean | "true" | "false") | undefined;
105
+ "aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
106
+ "aria-required"?: (boolean | "true" | "false") | undefined;
107
+ "aria-roledescription"?: string | undefined | undefined;
108
+ "aria-rowcount"?: number | undefined | undefined;
109
+ "aria-rowindex"?: number | undefined | undefined;
110
+ "aria-rowindextext"?: string | undefined | undefined;
111
+ "aria-rowspan"?: number | undefined | undefined;
112
+ "aria-selected"?: (boolean | "true" | "false") | undefined;
113
+ "aria-setsize"?: number | undefined | undefined;
114
+ "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
115
+ "aria-valuemax"?: number | undefined | undefined;
116
+ "aria-valuemin"?: number | undefined | undefined;
117
+ "aria-valuenow"?: number | undefined | undefined;
118
+ "aria-valuetext"?: string | undefined | undefined;
107
119
  children?: import("react").ReactNode;
108
120
  dangerouslySetInnerHTML?: {
109
- __html: string;
121
+ __html: string | TrustedHTML;
110
122
  } | undefined | undefined;
111
123
  onCopy?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
112
124
  onCopyCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
@@ -125,7 +137,7 @@ export declare function withDefaultGetters(props: StepsProps): {
125
137
  onBlur?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
126
138
  onBlurCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
127
139
  onChangeCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
128
- onBeforeInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
140
+ onBeforeInput?: import("react").InputEventHandler<HTMLDivElement> | undefined;
129
141
  onBeforeInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
130
142
  onInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
131
143
  onInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
@@ -244,9 +256,7 @@ export declare function withDefaultGetters(props: StepsProps): {
244
256
  onPointerCancel?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
245
257
  onPointerCancelCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
246
258
  onPointerEnter?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
247
- onPointerEnterCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
248
259
  onPointerLeave?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
249
- onPointerLeaveCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
250
260
  onPointerOver?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
251
261
  onPointerOverCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
252
262
  onPointerOut?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
@@ -267,6 +277,6 @@ export declare function withDefaultGetters(props: StepsProps): {
267
277
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
268
278
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
269
279
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
270
- ref?: import("react").Ref<HTMLDivElement> | undefined;
280
+ ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
271
281
  key?: import("react").Key | null | undefined;
272
282
  };
@@ -36,4 +36,4 @@ export type StepsProps<ITEM = StepsItemDefault> = PropsWithHTMLAttributesAndRef<
36
36
  } ? {} : {
37
37
  getItemLabel: StepsPropGetItemLabel<ITEM>;
38
38
  });
39
- export type StepsComponent = <ITEM>(props: StepsProps<ITEM>) => React.ReactElement | null;
39
+ export type StepsComponent = <ITEM>(props: StepsProps<ITEM>) => React.ReactNode | null;
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":[],"sources":["../../../../../src/components/StepsCanary/types.ts"],"sourcesContent":["import { IconComponent } from '@consta/icons/Icon';\n\nimport { PropsWithHTMLAttributesAndRef } from '../../utils/types/PropsWithHTMLAttributes';\n\nexport type StepsPropSize = 's' | 'm' | 'l';\n\nexport type StepsPropOnChange<ITEM> = (\n value: ITEM,\n props: {\n e: React.MouseEvent;\n },\n) => void;\n\nexport type StepItemStatus = 'resolved' | 'error';\n\nexport type StepsPropGetItemLabel<ITEM> = (item: ITEM) => string;\n\nexport type StepsPropGetItemDescription<ITEM> = (\n item: ITEM,\n) => string | undefined;\n\nexport type StepsPropGetItemDisabled<ITEM> = (\n item: ITEM,\n) => boolean | undefined;\n\nexport type StepsPropGetItemStatus<ITEM> = (\n item: ITEM,\n) => StepItemStatus | undefined;\n\nexport type StepsPropGetItemIcon<ITEM> = (\n item: ITEM,\n) => IconComponent | undefined;\n\nexport type StepsItemDefault = {\n label: string;\n description?: string;\n disabled?: boolean;\n status?: StepItemStatus;\n icon?: IconComponent;\n};\n\nexport type StepsProps<ITEM = StepsItemDefault> = PropsWithHTMLAttributesAndRef<\n {\n items: ITEM[];\n value: ITEM;\n onChange: StepsPropOnChange<ITEM>;\n getItemLabel?: StepsPropGetItemLabel<ITEM>;\n getItemDisabled?: StepsPropGetItemDisabled<ITEM>;\n getItemStatus?: StepsPropGetItemStatus<ITEM>;\n getItemDescription?: StepsPropGetItemDescription<ITEM>;\n getItemIcon?: StepsPropGetItemIcon<ITEM>;\n size?: StepsPropSize;\n className?: string;\n withNumber?: boolean;\n fitMode?: 'scroll' | 'scrollWithButtons';\n labelWordWrap?: boolean;\n },\n HTMLDivElement\n> &\n (ITEM extends { label: StepsItemDefault['label'] }\n ? {}\n : {\n getItemLabel: StepsPropGetItemLabel<ITEM>;\n });\n\nexport type StepsComponent = <ITEM>(\n props: StepsProps<ITEM>,\n) => React.ReactElement | null;\n"],"mappings":""}
1
+ {"version":3,"file":"types.js","names":[],"sources":["../../../../../src/components/StepsCanary/types.ts"],"sourcesContent":["import { IconComponent } from '@consta/icons/Icon';\n\nimport { PropsWithHTMLAttributesAndRef } from '../../utils/types/PropsWithHTMLAttributes';\n\nexport type StepsPropSize = 's' | 'm' | 'l';\n\nexport type StepsPropOnChange<ITEM> = (\n value: ITEM,\n props: {\n e: React.MouseEvent;\n },\n) => void;\n\nexport type StepItemStatus = 'resolved' | 'error';\n\nexport type StepsPropGetItemLabel<ITEM> = (item: ITEM) => string;\n\nexport type StepsPropGetItemDescription<ITEM> = (\n item: ITEM,\n) => string | undefined;\n\nexport type StepsPropGetItemDisabled<ITEM> = (\n item: ITEM,\n) => boolean | undefined;\n\nexport type StepsPropGetItemStatus<ITEM> = (\n item: ITEM,\n) => StepItemStatus | undefined;\n\nexport type StepsPropGetItemIcon<ITEM> = (\n item: ITEM,\n) => IconComponent | undefined;\n\nexport type StepsItemDefault = {\n label: string;\n description?: string;\n disabled?: boolean;\n status?: StepItemStatus;\n icon?: IconComponent;\n};\n\nexport type StepsProps<ITEM = StepsItemDefault> = PropsWithHTMLAttributesAndRef<\n {\n items: ITEM[];\n value: ITEM;\n onChange: StepsPropOnChange<ITEM>;\n getItemLabel?: StepsPropGetItemLabel<ITEM>;\n getItemDisabled?: StepsPropGetItemDisabled<ITEM>;\n getItemStatus?: StepsPropGetItemStatus<ITEM>;\n getItemDescription?: StepsPropGetItemDescription<ITEM>;\n getItemIcon?: StepsPropGetItemIcon<ITEM>;\n size?: StepsPropSize;\n className?: string;\n withNumber?: boolean;\n fitMode?: 'scroll' | 'scrollWithButtons';\n labelWordWrap?: boolean;\n },\n HTMLDivElement\n> &\n (ITEM extends { label: StepsItemDefault['label'] }\n ? {}\n : {\n getItemLabel: StepsPropGetItemLabel<ITEM>;\n });\n\nexport type StepsComponent = <ITEM>(\n props: StepsProps<ITEM>,\n) => React.ReactNode | null;\n"],"mappings":""}
@@ -21,4 +21,5 @@ export declare const Switch: React.ForwardRefExoticComponent<{
21
21
  tabIndex?: number;
22
22
  inputRef?: React.Ref<HTMLInputElement>;
23
23
  children?: never;
24
- } & Omit<React.HTMLAttributes<HTMLLabelElement>, "css" | "className" | "tabIndex" | "children" | "onFocus" | "onBlur" | "onChange" | "size" | "view" | "label" | "step" | "name" | "autoFocus" | "disabled" | "checked" | "readOnly" | "required" | "align" | "inputRef"> & React.RefAttributes<HTMLLabelElement>>;
24
+ inputId?: string;
25
+ } & Omit<React.HTMLAttributes<HTMLLabelElement>, "css" | "autoFocus" | "className" | "tabIndex" | "children" | "onFocus" | "onBlur" | "onChange" | "size" | "view" | "step" | "label" | "name" | "disabled" | "align" | "checked" | "readOnly" | "required" | "inputRef" | "inputId"> & React.RefAttributes<HTMLLabelElement>>;
@@ -1,2 +1,2 @@
1
- import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["checked","name","size","view","align","disabled","className","label","onChange","onFocus","onBlur","readOnly","required","step","tabIndex","inputRef"];import"./Switch.css";import React,{useRef}from"react";import{useForkRef}from"../../hooks/useForkRef/useForkRef";import{cnMixFocus}from"../../mixs/MixFocus/MixFocus";import{cn}from"../../utils/bem";import{usePropsHandler}from"../EventInterceptor/usePropsHandler";import{switchPropAlignDefault,switchPropOnChangeDefault,switchPropSizeDefault,switchPropViewDefault}from"./types";export var cnSwitch=cn("Switch");export var COMPONENT_NAME="Switch";export var Switch=React.forwardRef(function(a,b){var c=useRef(null),d=usePropsHandler(COMPONENT_NAME,a,c),e=d.checked,f=d.name,g=d.size,h=void 0===g?switchPropSizeDefault:g,i=d.view,j=void 0===i?switchPropViewDefault:i,k=d.align,l=void 0===k?switchPropAlignDefault:k,m=d.disabled,n=d.className,o=d.label,p=d.onChange,q=void 0===p?switchPropOnChangeDefault:p,r=d.onFocus,s=d.onBlur,t=d.readOnly,u=d.required,v=d.step,w=d.tabIndex,x=d.inputRef,y=_objectWithoutProperties(d,_excluded);return React.createElement("label",Object.assign({},y,{className:cnSwitch({size:h,view:j,disabled:m,align:l},[n]),ref:useForkRef([c,b])}),React.createElement("input",{type:"checkbox",name:f,className:cnSwitch("Input",[cnMixFocus()]),checked:void 0!==e&&e,disabled:m,onChange:q,onFocus:r,onBlur:s,readOnly:t,required:u,step:v,tabIndex:w,ref:x}),o&&React.createElement("span",{className:cnSwitch("Label")},o))});
1
+ import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["checked","name","size","view","align","disabled","className","label","onChange","onFocus","onBlur","readOnly","required","step","tabIndex","inputRef","inputId"];import"./Switch.css";import React,{useRef}from"react";import{useForkRef}from"../../hooks/useForkRef/useForkRef";import{cnMixFocus}from"../../mixs/MixFocus/MixFocus";import{cn}from"../../utils/bem";import{usePropsHandler}from"../EventInterceptor/usePropsHandler";import{switchPropAlignDefault,switchPropOnChangeDefault,switchPropSizeDefault,switchPropViewDefault}from"./types";export var cnSwitch=cn("Switch");export var COMPONENT_NAME="Switch";export var Switch=React.forwardRef(function(a,b){var c=useRef(null),d=usePropsHandler(COMPONENT_NAME,a,c),e=d.checked,f=d.name,g=d.size,h=void 0===g?switchPropSizeDefault:g,i=d.view,j=void 0===i?switchPropViewDefault:i,k=d.align,l=void 0===k?switchPropAlignDefault:k,m=d.disabled,n=d.className,o=d.label,p=d.onChange,q=void 0===p?switchPropOnChangeDefault:p,r=d.onFocus,s=d.onBlur,t=d.readOnly,u=d.required,v=d.step,w=d.tabIndex,x=d.inputRef,y=d.inputId,z=_objectWithoutProperties(d,_excluded);return React.createElement("label",Object.assign({},z,{className:cnSwitch({size:h,view:j,disabled:m,align:l},[n]),ref:useForkRef([c,b])}),React.createElement("input",{type:"checkbox",name:f,className:cnSwitch("Input",[cnMixFocus()]),checked:void 0!==e&&e,disabled:m,onChange:q,onFocus:r,onBlur:s,readOnly:t,required:u,step:v,tabIndex:w,ref:x,id:y}),o&&React.createElement("span",{className:cnSwitch("Label")},o))});
2
2
  //# sourceMappingURL=Switch.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Switch.js","names":["React","useRef","useForkRef","cnMixFocus","cn","usePropsHandler","switchPropAlignDefault","switchPropOnChangeDefault","switchPropSizeDefault","switchPropViewDefault","cnSwitch","COMPONENT_NAME","Switch","forwardRef","props","ref","switchRef","checked","name","size","view","align","disabled","className","label","onChange","onFocus","onBlur","readOnly","required","step","tabIndex","inputRef","otherProps"],"sources":["../../../../../src/components/Switch/Switch.tsx"],"sourcesContent":["import './Switch.css';\n\nimport React, { useRef } from 'react';\n\nimport { useForkRef } from '../../hooks/useForkRef/useForkRef';\nimport { cnMixFocus } from '../../mixs/MixFocus/MixFocus';\nimport { cn } from '../../utils/bem';\nimport { usePropsHandler } from '../EventInterceptor/usePropsHandler';\nimport {\n switchPropAlignDefault,\n switchPropOnChangeDefault,\n SwitchProps,\n switchPropSizeDefault,\n switchPropViewDefault,\n} from './types';\n\nexport const cnSwitch = cn('Switch');\n\nexport const COMPONENT_NAME = 'Switch' as const;\n\nexport const Switch = React.forwardRef<HTMLLabelElement, SwitchProps>(\n (props, ref) => {\n const switchRef = useRef<HTMLLabelElement>(null);\n const {\n checked = false,\n name,\n size = switchPropSizeDefault,\n view = switchPropViewDefault,\n align = switchPropAlignDefault,\n disabled,\n className,\n label,\n onChange = switchPropOnChangeDefault,\n onFocus,\n onBlur,\n readOnly,\n required,\n step,\n tabIndex,\n inputRef,\n ...otherProps\n } = usePropsHandler(COMPONENT_NAME, props, switchRef);\n\n return (\n <label\n {...otherProps}\n className={cnSwitch({ size, view, disabled, align }, [className])}\n ref={useForkRef([switchRef, ref])}\n >\n <input\n type=\"checkbox\"\n name={name}\n className={cnSwitch('Input', [cnMixFocus()])}\n checked={checked}\n disabled={disabled}\n onChange={onChange}\n onFocus={onFocus}\n onBlur={onBlur}\n readOnly={readOnly}\n required={required}\n step={step}\n tabIndex={tabIndex}\n ref={inputRef}\n />\n {label && <span className={cnSwitch('Label')}>{label}</span>}\n </label>\n );\n },\n);\n"],"mappings":"4PAAA,qBAEA,MAAOA,MAAP,EAAgBC,MAAhB,KAA8B,OAA9B,CAEA,OAASC,UAAT,yCACA,OAASC,UAAT,oCACA,OAASC,EAAT,uBACA,OAASC,eAAT,2CACA,OACEC,sBADF,CAEEC,yBAFF,CAIEC,qBAJF,CAKEC,qBALF,eAQA,MAAO,IAAMC,SAAQ,CAAGN,EAAE,CAAC,QAAD,CAAnB,CAEP,MAAO,IAAMO,eAAc,CAAG,QAAvB,CAEP,MAAO,IAAMC,OAAM,CAAGZ,KAAK,CAACa,UAAN,CACpB,SAACC,CAAD,CAAQC,CAAR,CAAgB,IACRC,EAAS,CAAGf,MAAM,CAAmB,IAAnB,CADV,GAoBVI,eAAe,CAACM,cAAD,CAAiBG,CAAjB,CAAwBE,CAAxB,CApBL,KAGZC,OAHY,CAIZC,CAJY,GAIZA,IAJY,KAKZC,IALY,CAKZA,CALY,YAKLX,qBALK,OAMZY,IANY,CAMZA,CANY,YAMLX,qBANK,OAOZY,KAPY,CAOZA,CAPY,YAOJf,sBAPI,GAQZgB,CARY,GAQZA,QARY,CASZC,CATY,GASZA,SATY,CAUZC,CAVY,GAUZA,KAVY,KAWZC,QAXY,CAWZA,CAXY,YAWDlB,yBAXC,GAYZmB,CAZY,GAYZA,OAZY,CAaZC,CAbY,GAaZA,MAbY,CAcZC,CAdY,GAcZA,QAdY,CAeZC,CAfY,GAeZA,QAfY,CAgBZC,CAhBY,GAgBZA,IAhBY,CAiBZC,CAjBY,GAiBZA,QAjBY,CAkBZC,CAlBY,GAkBZA,QAlBY,CAmBTC,CAnBS,uCAsBd,MACE,8CACMA,CADN,EAEE,SAAS,CAAEvB,QAAQ,CAAC,CAAES,IAAI,CAAJA,CAAF,CAAQC,IAAI,CAAJA,CAAR,CAAcE,QAAQ,CAARA,CAAd,CAAwBD,KAAK,CAALA,CAAxB,CAAD,CAAkC,CAACE,CAAD,CAAlC,CAFrB,CAGE,GAAG,CAAErB,UAAU,CAAC,CAACc,CAAD,CAAYD,CAAZ,CAAD,CAHjB,GAKE,6BACE,IAAI,CAAC,UADP,CAEE,IAAI,CAAEG,CAFR,CAGE,SAAS,CAAER,QAAQ,CAAC,OAAD,CAAU,CAACP,UAAU,EAAX,CAAV,CAHrB,CAIE,OAAO,cAJT,CAKE,QAAQ,CAAEmB,CALZ,CAME,QAAQ,CAAEG,CANZ,CAOE,OAAO,CAAEC,CAPX,CAQE,MAAM,CAAEC,CARV,CASE,QAAQ,CAAEC,CATZ,CAUE,QAAQ,CAAEC,CAVZ,CAWE,IAAI,CAAEC,CAXR,CAYE,QAAQ,CAAEC,CAZZ,CAaE,GAAG,CAAEC,CAbP,EALF,CAoBGR,CAAK,EAAI,4BAAM,SAAS,CAAEd,QAAQ,CAAC,OAAD,CAAzB,EAAqCc,CAArC,CApBZ,CAuBH,CA/CmB,CAAf"}
1
+ {"version":3,"file":"Switch.js","names":["React","useRef","useForkRef","cnMixFocus","cn","usePropsHandler","switchPropAlignDefault","switchPropOnChangeDefault","switchPropSizeDefault","switchPropViewDefault","cnSwitch","COMPONENT_NAME","Switch","forwardRef","props","ref","switchRef","checked","name","size","view","align","disabled","className","label","onChange","onFocus","onBlur","readOnly","required","step","tabIndex","inputRef","inputId","otherProps"],"sources":["../../../../../src/components/Switch/Switch.tsx"],"sourcesContent":["import './Switch.css';\n\nimport React, { useRef } from 'react';\n\nimport { useForkRef } from '../../hooks/useForkRef/useForkRef';\nimport { cnMixFocus } from '../../mixs/MixFocus/MixFocus';\nimport { cn } from '../../utils/bem';\nimport { usePropsHandler } from '../EventInterceptor/usePropsHandler';\nimport {\n switchPropAlignDefault,\n switchPropOnChangeDefault,\n SwitchProps,\n switchPropSizeDefault,\n switchPropViewDefault,\n} from './types';\n\nexport const cnSwitch = cn('Switch');\n\nexport const COMPONENT_NAME = 'Switch' as const;\n\nexport const Switch = React.forwardRef<HTMLLabelElement, SwitchProps>(\n (props, ref) => {\n const switchRef = useRef<HTMLLabelElement>(null);\n const {\n checked = false,\n name,\n size = switchPropSizeDefault,\n view = switchPropViewDefault,\n align = switchPropAlignDefault,\n disabled,\n className,\n label,\n onChange = switchPropOnChangeDefault,\n onFocus,\n onBlur,\n readOnly,\n required,\n step,\n tabIndex,\n inputRef,\n inputId,\n ...otherProps\n } = usePropsHandler(COMPONENT_NAME, props, switchRef);\n\n return (\n <label\n {...otherProps}\n className={cnSwitch({ size, view, disabled, align }, [className])}\n ref={useForkRef([switchRef, ref])}\n >\n <input\n type=\"checkbox\"\n name={name}\n className={cnSwitch('Input', [cnMixFocus()])}\n checked={checked}\n disabled={disabled}\n onChange={onChange}\n onFocus={onFocus}\n onBlur={onBlur}\n readOnly={readOnly}\n required={required}\n step={step}\n tabIndex={tabIndex}\n ref={inputRef}\n id={inputId}\n />\n {label && <span className={cnSwitch('Label')}>{label}</span>}\n </label>\n );\n },\n);\n"],"mappings":"sQAAA,qBAEA,MAAOA,MAAP,EAAgBC,MAAhB,KAA8B,OAA9B,CAEA,OAASC,UAAT,yCACA,OAASC,UAAT,oCACA,OAASC,EAAT,uBACA,OAASC,eAAT,2CACA,OACEC,sBADF,CAEEC,yBAFF,CAIEC,qBAJF,CAKEC,qBALF,eAQA,MAAO,IAAMC,SAAQ,CAAGN,EAAE,CAAC,QAAD,CAAnB,CAEP,MAAO,IAAMO,eAAc,CAAG,QAAvB,CAEP,MAAO,IAAMC,OAAM,CAAGZ,KAAK,CAACa,UAAN,CACpB,SAACC,CAAD,CAAQC,CAAR,CAAgB,IACRC,EAAS,CAAGf,MAAM,CAAmB,IAAnB,CADV,GAqBVI,eAAe,CAACM,cAAD,CAAiBG,CAAjB,CAAwBE,CAAxB,CArBL,KAGZC,OAHY,CAIZC,CAJY,GAIZA,IAJY,KAKZC,IALY,CAKZA,CALY,YAKLX,qBALK,OAMZY,IANY,CAMZA,CANY,YAMLX,qBANK,OAOZY,KAPY,CAOZA,CAPY,YAOJf,sBAPI,GAQZgB,CARY,GAQZA,QARY,CASZC,CATY,GASZA,SATY,CAUZC,CAVY,GAUZA,KAVY,KAWZC,QAXY,CAWZA,CAXY,YAWDlB,yBAXC,GAYZmB,CAZY,GAYZA,OAZY,CAaZC,CAbY,GAaZA,MAbY,CAcZC,CAdY,GAcZA,QAdY,CAeZC,CAfY,GAeZA,QAfY,CAgBZC,CAhBY,GAgBZA,IAhBY,CAiBZC,CAjBY,GAiBZA,QAjBY,CAkBZC,CAlBY,GAkBZA,QAlBY,CAmBZC,CAnBY,GAmBZA,OAnBY,CAoBTC,CApBS,uCAuBd,MACE,8CACMA,CADN,EAEE,SAAS,CAAExB,QAAQ,CAAC,CAAES,IAAI,CAAJA,CAAF,CAAQC,IAAI,CAAJA,CAAR,CAAcE,QAAQ,CAARA,CAAd,CAAwBD,KAAK,CAALA,CAAxB,CAAD,CAAkC,CAACE,CAAD,CAAlC,CAFrB,CAGE,GAAG,CAAErB,UAAU,CAAC,CAACc,CAAD,CAAYD,CAAZ,CAAD,CAHjB,GAKE,6BACE,IAAI,CAAC,UADP,CAEE,IAAI,CAAEG,CAFR,CAGE,SAAS,CAAER,QAAQ,CAAC,OAAD,CAAU,CAACP,UAAU,EAAX,CAAV,CAHrB,CAIE,OAAO,cAJT,CAKE,QAAQ,CAAEmB,CALZ,CAME,QAAQ,CAAEG,CANZ,CAOE,OAAO,CAAEC,CAPX,CAQE,MAAM,CAAEC,CARV,CASE,QAAQ,CAAEC,CATZ,CAUE,QAAQ,CAAEC,CAVZ,CAWE,IAAI,CAAEC,CAXR,CAYE,QAAQ,CAAEC,CAZZ,CAaE,GAAG,CAAEC,CAbP,CAcE,EAAE,CAAEC,CAdN,EALF,CAqBGT,CAAK,EAAI,4BAAM,SAAS,CAAEd,QAAQ,CAAC,OAAD,CAAzB,EAAqCc,CAArC,CArBZ,CAwBH,CAjDmB,CAAf"}
@@ -31,4 +31,5 @@ export type SwitchProps = PropsWithHTMLAttributes<{
31
31
  tabIndex?: number;
32
32
  inputRef?: React.Ref<HTMLInputElement>;
33
33
  children?: never;
34
+ inputId?: string;
34
35
  }, HTMLLabelElement>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":["switchPropSize","switchPropSizeDefault","switchPropView","switchPropViewDefault","switchPropAlign","switchPropAlignDefault","switchPropOnChangeDefault"],"sources":["../../../../../src/components/Switch/types.ts"],"sourcesContent":["import { PropsWithHTMLAttributes } from '##/utils/types/PropsWithHTMLAttributes';\n\nexport const switchPropSize = ['m', 'xs', 's', 'l'] as const;\nexport type SwitchPropSize = typeof switchPropSize[number];\nexport const switchPropSizeDefault: SwitchPropSize = switchPropSize[0];\n\nexport const switchPropView = ['primary', 'ghost'] as const;\nexport type SwitchPropView = typeof switchPropView[number];\nexport const switchPropViewDefault: SwitchPropView = switchPropView[0];\n\nexport const switchPropAlign = ['center', 'top'] as const;\nexport type SwitchPropAlign = typeof switchPropAlign[number];\nexport const switchPropAlignDefault: SwitchPropAlign = switchPropAlign[0];\n\nexport const switchPropOnChangeDefault = () => {};\n\nexport type SwitchPropOnChange = (\n checked: boolean,\n params: {\n e: React.ChangeEvent<HTMLInputElement>;\n },\n) => void;\n\nexport type SwitchProps = PropsWithHTMLAttributes<\n {\n checked: boolean | undefined;\n size?: SwitchPropSize;\n view?: SwitchPropView;\n align?: SwitchPropAlign;\n disabled?: boolean;\n className?: string;\n label?: string;\n onChange?: React.ChangeEventHandler<HTMLInputElement>;\n name?: string;\n onFocus?: React.FocusEventHandler<HTMLInputElement>;\n onBlur?: React.FocusEventHandler<HTMLInputElement>;\n autoFocus?: boolean;\n readOnly?: boolean;\n required?: boolean;\n step?: number | string;\n tabIndex?: number;\n inputRef?: React.Ref<HTMLInputElement>;\n children?: never;\n },\n HTMLLabelElement\n>;\n"],"mappings":"AAEA,MAAO,IAAMA,eAAc,CAAG,CAAC,GAAD,CAAM,IAAN,CAAY,GAAZ,CAAiB,GAAjB,CAAvB,CAEP,MAAO,IAAMC,sBAAqC,CAAGD,cAAc,CAAC,CAAD,CAA5D,CAEP,MAAO,IAAME,eAAc,CAAG,CAAC,SAAD,CAAY,OAAZ,CAAvB,CAEP,MAAO,IAAMC,sBAAqC,CAAGD,cAAc,CAAC,CAAD,CAA5D,CAEP,MAAO,IAAME,gBAAe,CAAG,CAAC,QAAD,CAAW,KAAX,CAAxB,CAEP,MAAO,IAAMC,uBAAuC,CAAGD,eAAe,CAAC,CAAD,CAA/D,CAEP,MAAO,IAAME,0BAAyB,CAAG,UAAM,CAAE,CAA1C"}
1
+ {"version":3,"file":"types.js","names":["switchPropSize","switchPropSizeDefault","switchPropView","switchPropViewDefault","switchPropAlign","switchPropAlignDefault","switchPropOnChangeDefault"],"sources":["../../../../../src/components/Switch/types.ts"],"sourcesContent":["import { PropsWithHTMLAttributes } from '##/utils/types/PropsWithHTMLAttributes';\n\nexport const switchPropSize = ['m', 'xs', 's', 'l'] as const;\nexport type SwitchPropSize = typeof switchPropSize[number];\nexport const switchPropSizeDefault: SwitchPropSize = switchPropSize[0];\n\nexport const switchPropView = ['primary', 'ghost'] as const;\nexport type SwitchPropView = typeof switchPropView[number];\nexport const switchPropViewDefault: SwitchPropView = switchPropView[0];\n\nexport const switchPropAlign = ['center', 'top'] as const;\nexport type SwitchPropAlign = typeof switchPropAlign[number];\nexport const switchPropAlignDefault: SwitchPropAlign = switchPropAlign[0];\n\nexport const switchPropOnChangeDefault = () => {};\n\nexport type SwitchPropOnChange = (\n checked: boolean,\n params: {\n e: React.ChangeEvent<HTMLInputElement>;\n },\n) => void;\n\nexport type SwitchProps = PropsWithHTMLAttributes<\n {\n checked: boolean | undefined;\n size?: SwitchPropSize;\n view?: SwitchPropView;\n align?: SwitchPropAlign;\n disabled?: boolean;\n className?: string;\n label?: string;\n onChange?: React.ChangeEventHandler<HTMLInputElement>;\n name?: string;\n onFocus?: React.FocusEventHandler<HTMLInputElement>;\n onBlur?: React.FocusEventHandler<HTMLInputElement>;\n autoFocus?: boolean;\n readOnly?: boolean;\n required?: boolean;\n step?: number | string;\n tabIndex?: number;\n inputRef?: React.Ref<HTMLInputElement>;\n children?: never;\n inputId?: string;\n },\n HTMLLabelElement\n>;\n"],"mappings":"AAEA,MAAO,IAAMA,eAAc,CAAG,CAAC,GAAD,CAAM,IAAN,CAAY,GAAZ,CAAiB,GAAjB,CAAvB,CAEP,MAAO,IAAMC,sBAAqC,CAAGD,cAAc,CAAC,CAAD,CAA5D,CAEP,MAAO,IAAME,eAAc,CAAG,CAAC,SAAD,CAAY,OAAZ,CAAvB,CAEP,MAAO,IAAMC,sBAAqC,CAAGD,cAAc,CAAC,CAAD,CAA5D,CAEP,MAAO,IAAME,gBAAe,CAAG,CAAC,QAAD,CAAW,KAAX,CAAxB,CAEP,MAAO,IAAMC,uBAAuC,CAAGD,eAAe,CAAC,CAAD,CAA/D,CAEP,MAAO,IAAME,0BAAyB,CAAG,UAAM,CAAE,CAA1C"}
@@ -16,14 +16,17 @@ export declare const withDefaultGetters: (props: SwitchGroupProps) => {
16
16
  suppressContentEditableWarning?: boolean | undefined | undefined;
17
17
  suppressHydrationWarning?: boolean | undefined | undefined;
18
18
  accessKey?: string | undefined | undefined;
19
- contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
19
+ autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
20
+ autoFocus?: boolean | undefined | undefined;
21
+ contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
20
22
  contextMenu?: string | undefined | undefined;
21
23
  dir?: string | undefined | undefined;
22
24
  draggable?: (boolean | "true" | "false") | undefined;
25
+ enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
23
26
  hidden?: boolean | undefined | undefined;
24
27
  id?: string | undefined | undefined;
25
28
  lang?: string | undefined | undefined;
26
- placeholder?: string | undefined | undefined;
29
+ nonce?: string | undefined | undefined;
27
30
  slot?: string | undefined | undefined;
28
31
  spellCheck?: (boolean | "true" | "false") | undefined;
29
32
  style?: import("react").CSSProperties | undefined;
@@ -33,14 +36,16 @@ export declare const withDefaultGetters: (props: SwitchGroupProps) => {
33
36
  radioGroup?: string | undefined | undefined;
34
37
  role?: import("react").AriaRole | undefined;
35
38
  about?: string | undefined | undefined;
39
+ content?: string | undefined | undefined;
36
40
  datatype?: string | undefined | undefined;
37
41
  inlist?: any;
38
42
  prefix?: string | undefined | undefined;
39
43
  property?: string | undefined | undefined;
44
+ rel?: string | undefined | undefined;
40
45
  resource?: string | undefined | undefined;
46
+ rev?: string | undefined | undefined;
41
47
  typeof?: string | undefined | undefined;
42
48
  vocab?: string | undefined | undefined;
43
- autoCapitalize?: string | undefined | undefined;
44
49
  autoCorrect?: string | undefined | undefined;
45
50
  autoSave?: string | undefined | undefined;
46
51
  color?: string | undefined | undefined;
@@ -54,57 +59,64 @@ export declare const withDefaultGetters: (props: SwitchGroupProps) => {
54
59
  unselectable?: "on" | "off" | undefined | undefined;
55
60
  inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
56
61
  is?: string | undefined | undefined;
57
- 'aria-activedescendant'?: string | undefined | undefined;
58
- 'aria-atomic'?: (boolean | "true" | "false") | undefined;
59
- 'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined | undefined;
60
- 'aria-busy'?: (boolean | "true" | "false") | undefined;
61
- 'aria-checked'?: boolean | "false" | "mixed" | "true" | undefined | undefined;
62
- 'aria-colcount'?: number | undefined | undefined;
63
- 'aria-colindex'?: number | undefined | undefined;
64
- 'aria-colspan'?: number | undefined | undefined;
65
- 'aria-controls'?: string | undefined | undefined;
66
- 'aria-current'?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
67
- 'aria-describedby'?: string | undefined | undefined;
68
- 'aria-details'?: string | undefined | undefined;
69
- 'aria-disabled'?: (boolean | "true" | "false") | undefined;
70
- 'aria-dropeffect'?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
71
- 'aria-errormessage'?: string | undefined | undefined;
72
- 'aria-expanded'?: (boolean | "true" | "false") | undefined;
73
- 'aria-flowto'?: string | undefined | undefined;
74
- 'aria-grabbed'?: (boolean | "true" | "false") | undefined;
75
- 'aria-haspopup'?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
76
- 'aria-hidden'?: (boolean | "true" | "false") | undefined;
77
- 'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
78
- 'aria-keyshortcuts'?: string | undefined | undefined;
79
- 'aria-label'?: string | undefined | undefined;
80
- 'aria-labelledby'?: string | undefined | undefined;
81
- 'aria-level'?: number | undefined | undefined;
82
- 'aria-live'?: "off" | "assertive" | "polite" | undefined | undefined;
83
- 'aria-modal'?: (boolean | "true" | "false") | undefined;
84
- 'aria-multiline'?: (boolean | "true" | "false") | undefined;
85
- 'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
86
- 'aria-orientation'?: "horizontal" | "vertical" | undefined | undefined;
87
- 'aria-owns'?: string | undefined | undefined;
88
- 'aria-placeholder'?: string | undefined | undefined;
89
- 'aria-posinset'?: number | undefined | undefined;
90
- 'aria-pressed'?: boolean | "false" | "mixed" | "true" | undefined | undefined;
91
- 'aria-readonly'?: (boolean | "true" | "false") | undefined;
92
- 'aria-relevant'?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
93
- 'aria-required'?: (boolean | "true" | "false") | undefined;
94
- 'aria-roledescription'?: string | undefined | undefined;
95
- 'aria-rowcount'?: number | undefined | undefined;
96
- 'aria-rowindex'?: number | undefined | undefined;
97
- 'aria-rowspan'?: number | undefined | undefined;
98
- 'aria-selected'?: (boolean | "true" | "false") | undefined;
99
- 'aria-setsize'?: number | undefined | undefined;
100
- 'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
101
- 'aria-valuemax'?: number | undefined | undefined;
102
- 'aria-valuemin'?: number | undefined | undefined;
103
- 'aria-valuenow'?: number | undefined | undefined;
104
- 'aria-valuetext'?: string | undefined | undefined;
62
+ exportparts?: string | undefined | undefined;
63
+ part?: string | undefined | undefined;
64
+ "aria-activedescendant"?: string | undefined | undefined;
65
+ "aria-atomic"?: (boolean | "true" | "false") | undefined;
66
+ "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
67
+ "aria-braillelabel"?: string | undefined | undefined;
68
+ "aria-brailleroledescription"?: string | undefined | undefined;
69
+ "aria-busy"?: (boolean | "true" | "false") | undefined;
70
+ "aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
71
+ "aria-colcount"?: number | undefined | undefined;
72
+ "aria-colindex"?: number | undefined | undefined;
73
+ "aria-colindextext"?: string | undefined | undefined;
74
+ "aria-colspan"?: number | undefined | undefined;
75
+ "aria-controls"?: string | undefined | undefined;
76
+ "aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
77
+ "aria-describedby"?: string | undefined | undefined;
78
+ "aria-description"?: string | undefined | undefined;
79
+ "aria-details"?: string | undefined | undefined;
80
+ "aria-disabled"?: (boolean | "true" | "false") | undefined;
81
+ "aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
82
+ "aria-errormessage"?: string | undefined | undefined;
83
+ "aria-expanded"?: (boolean | "true" | "false") | undefined;
84
+ "aria-flowto"?: string | undefined | undefined;
85
+ "aria-grabbed"?: (boolean | "true" | "false") | undefined;
86
+ "aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
87
+ "aria-hidden"?: (boolean | "true" | "false") | undefined;
88
+ "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
89
+ "aria-keyshortcuts"?: string | undefined | undefined;
90
+ "aria-label"?: string | undefined | undefined;
91
+ "aria-labelledby"?: string | undefined | undefined;
92
+ "aria-level"?: number | undefined | undefined;
93
+ "aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
94
+ "aria-modal"?: (boolean | "true" | "false") | undefined;
95
+ "aria-multiline"?: (boolean | "true" | "false") | undefined;
96
+ "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
97
+ "aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
98
+ "aria-owns"?: string | undefined | undefined;
99
+ "aria-placeholder"?: string | undefined | undefined;
100
+ "aria-posinset"?: number | undefined | undefined;
101
+ "aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
102
+ "aria-readonly"?: (boolean | "true" | "false") | undefined;
103
+ "aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
104
+ "aria-required"?: (boolean | "true" | "false") | undefined;
105
+ "aria-roledescription"?: string | undefined | undefined;
106
+ "aria-rowcount"?: number | undefined | undefined;
107
+ "aria-rowindex"?: number | undefined | undefined;
108
+ "aria-rowindextext"?: string | undefined | undefined;
109
+ "aria-rowspan"?: number | undefined | undefined;
110
+ "aria-selected"?: (boolean | "true" | "false") | undefined;
111
+ "aria-setsize"?: number | undefined | undefined;
112
+ "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
113
+ "aria-valuemax"?: number | undefined | undefined;
114
+ "aria-valuemin"?: number | undefined | undefined;
115
+ "aria-valuenow"?: number | undefined | undefined;
116
+ "aria-valuetext"?: string | undefined | undefined;
105
117
  children?: import("react").ReactNode;
106
118
  dangerouslySetInnerHTML?: {
107
- __html: string;
119
+ __html: string | TrustedHTML;
108
120
  } | undefined | undefined;
109
121
  onCopy?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
110
122
  onCopyCapture?: import("react").ClipboardEventHandler<HTMLDivElement> | undefined;
@@ -123,7 +135,7 @@ export declare const withDefaultGetters: (props: SwitchGroupProps) => {
123
135
  onBlur?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
124
136
  onBlurCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
125
137
  onChangeCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
126
- onBeforeInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
138
+ onBeforeInput?: import("react").InputEventHandler<HTMLDivElement> | undefined;
127
139
  onBeforeInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
128
140
  onInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
129
141
  onInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
@@ -242,9 +254,7 @@ export declare const withDefaultGetters: (props: SwitchGroupProps) => {
242
254
  onPointerCancel?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
243
255
  onPointerCancelCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
244
256
  onPointerEnter?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
245
- onPointerEnterCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
246
257
  onPointerLeave?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
247
- onPointerLeaveCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
248
258
  onPointerOver?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
249
259
  onPointerOverCapture?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
250
260
  onPointerOut?: import("react").PointerEventHandler<HTMLDivElement> | undefined;
@@ -265,6 +275,6 @@ export declare const withDefaultGetters: (props: SwitchGroupProps) => {
265
275
  onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
266
276
  onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
267
277
  onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
268
- ref?: import("react").Ref<HTMLDivElement> | undefined;
278
+ ref?: import("react").LegacyRef<HTMLDivElement> | undefined;
269
279
  key?: import("react").Key | null | undefined;
270
280
  };
@@ -29,4 +29,4 @@ export type SwitchGroupProps<ITEM = SwitchGroupDefaultItem> = PropsWithHTMLAttri
29
29
  } ? {} : {
30
30
  getItemLabel: SwitchGroupPropGetItemLabel<ITEM>;
31
31
  });
32
- export type SwitchGroupComponent = <ITEM>(props: SwitchGroupProps<ITEM>) => React.ReactElement | null;
32
+ export type SwitchGroupComponent = <ITEM>(props: SwitchGroupProps<ITEM>) => React.ReactNode | null;
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","names":["switchGroupDirections","switchGroupDefaultDirection"],"sources":["../../../../../src/components/SwitchGroup/types.ts"],"sourcesContent":["import { PropsWithHTMLAttributesAndRef } from '../../utils/types/PropsWithHTMLAttributes';\nimport { SwitchPropSize, SwitchPropView } from '../Switch/types';\n\nexport type SwitchGroupDefaultItem = {\n label: string;\n disabled?: boolean;\n};\n\nexport const switchGroupDirections = ['column', 'row'] as const;\nexport type SwitchGroupDirection = typeof switchGroupDirections[number];\nexport const switchGroupDefaultDirection: SwitchGroupDirection =\n switchGroupDirections[0];\n\nexport type SwitchGroupPropGetItemLabel<ITEM> = (item: ITEM) => string;\nexport type SwitchGroupPropGetItemDisabled<ITEM> = (\n item: ITEM,\n) => boolean | undefined;\n\nexport type SwitchGroupPropOnChange<ITEM> = (\n value: ITEM[] | null,\n props: {\n e: React.ChangeEvent<HTMLInputElement>;\n },\n) => void;\n\nexport type SwitchGroupProps<ITEM = SwitchGroupDefaultItem> =\n PropsWithHTMLAttributesAndRef<\n {\n value?: ITEM[] | null;\n items: ITEM[];\n getItemLabel?: SwitchGroupPropGetItemLabel<ITEM>;\n getItemDisabled?: SwitchGroupPropGetItemDisabled<ITEM>;\n onChange?: SwitchGroupPropOnChange<ITEM>;\n name: string;\n direction?: SwitchGroupDirection;\n size?: SwitchPropSize;\n view?: SwitchPropView;\n disabled?: boolean;\n className?: string;\n },\n HTMLDivElement\n > &\n (ITEM extends { label: SwitchGroupDefaultItem['label'] }\n ? {}\n : {\n getItemLabel: SwitchGroupPropGetItemLabel<ITEM>;\n });\n\nexport type SwitchGroupComponent = <ITEM>(\n props: SwitchGroupProps<ITEM>,\n) => React.ReactElement | null;\n"],"mappings":"AAQA,MAAO,IAAMA,sBAAqB,CAAG,CAAC,QAAD,CAAW,KAAX,CAA9B,CAEP,MAAO,IAAMC,4BAAiD,CAC5DD,qBAAqB,CAAC,CAAD,CADhB"}
1
+ {"version":3,"file":"types.js","names":["switchGroupDirections","switchGroupDefaultDirection"],"sources":["../../../../../src/components/SwitchGroup/types.ts"],"sourcesContent":["import { PropsWithHTMLAttributesAndRef } from '../../utils/types/PropsWithHTMLAttributes';\nimport { SwitchPropSize, SwitchPropView } from '../Switch/types';\n\nexport type SwitchGroupDefaultItem = {\n label: string;\n disabled?: boolean;\n};\n\nexport const switchGroupDirections = ['column', 'row'] as const;\nexport type SwitchGroupDirection = typeof switchGroupDirections[number];\nexport const switchGroupDefaultDirection: SwitchGroupDirection =\n switchGroupDirections[0];\n\nexport type SwitchGroupPropGetItemLabel<ITEM> = (item: ITEM) => string;\nexport type SwitchGroupPropGetItemDisabled<ITEM> = (\n item: ITEM,\n) => boolean | undefined;\n\nexport type SwitchGroupPropOnChange<ITEM> = (\n value: ITEM[] | null,\n props: {\n e: React.ChangeEvent<HTMLInputElement>;\n },\n) => void;\n\nexport type SwitchGroupProps<ITEM = SwitchGroupDefaultItem> =\n PropsWithHTMLAttributesAndRef<\n {\n value?: ITEM[] | null;\n items: ITEM[];\n getItemLabel?: SwitchGroupPropGetItemLabel<ITEM>;\n getItemDisabled?: SwitchGroupPropGetItemDisabled<ITEM>;\n onChange?: SwitchGroupPropOnChange<ITEM>;\n name: string;\n direction?: SwitchGroupDirection;\n size?: SwitchPropSize;\n view?: SwitchPropView;\n disabled?: boolean;\n className?: string;\n },\n HTMLDivElement\n > &\n (ITEM extends { label: SwitchGroupDefaultItem['label'] }\n ? {}\n : {\n getItemLabel: SwitchGroupPropGetItemLabel<ITEM>;\n });\n\nexport type SwitchGroupComponent = <ITEM>(\n props: SwitchGroupProps<ITEM>,\n) => React.ReactNode | null;\n"],"mappings":"AAQA,MAAO,IAAMA,sBAAqB,CAAG,CAAC,QAAD,CAAW,KAAX,CAA9B,CAEP,MAAO,IAAMC,4BAAiD,CAC5DD,qBAAqB,CAAC,CAAD,CADhB"}
@@ -32,6 +32,6 @@ type Props<T extends TableRow> = {
32
32
  } | {
33
33
  type: 'resizer';
34
34
  }) & React.RefAttributes<HTMLDivElement>;
35
- type TableCell = <T extends TableRow>(props: Props<T>) => React.ReactElement | null;
35
+ type TableCell = <T extends TableRow>(props: Props<T>) => React.ReactNode | null;
36
36
  export declare const TableCell: TableCell;
37
37
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"TableCell.js","names":["React","cn","cnTableCell","verticalAligns","horizontalAligns","getCellClasses","props","column","showVerticalShadow","className","isSticky","isResized","type","isSortable","sortable","isHeader","isResizer","stickyOnTop","stickyOnLeft","isFilterable","filterable","isControl","control","withoutBorder","isClickable","isBorderTop","isBorderLeft","getWrapperClasses","wrapperClassName","withoutPadding","verticalAlign","horizontalAlign","align","wrap","TableCell","forwardRef","ref","style","onClick","onContextMenu","children","propsWithRole","role"],"sources":["../../../../../../src/components/Table/Cell/TableCell.tsx"],"sourcesContent":["import './TableCell.css';\n\nimport React from 'react';\n\nimport { cn } from '../../../utils/bem';\nimport { TableColumn, TableRow } from '../Table';\n\nconst cnTableCell = cn('TableCell');\n\nexport const verticalAligns = ['top', 'center', 'bottom'] as const;\nexport type VerticalAlign = typeof verticalAligns[number];\nexport const horizontalAligns = ['left', 'center', 'right'] as const;\nexport type HorizontalAlign = typeof horizontalAligns[number];\n\ntype Props<T extends TableRow> = {\n column: TableColumn<T> & {\n isSticky?: boolean;\n isResized?: boolean;\n filterable?: boolean;\n };\n onClick?: (e: React.SyntheticEvent) => void;\n onContextMenu?: (e: React.SyntheticEvent) => void;\n style?: React.CSSProperties;\n className?: string;\n wrapperClassName?: string;\n children: React.ReactNode;\n wrap?: 'truncate' | 'break';\n showVerticalShadow?: boolean;\n verticalAlign?: VerticalAlign;\n} & (\n | {\n type: 'header';\n isSticky?: boolean;\n isResized?: boolean;\n }\n | {\n type: 'content';\n isClickable?: boolean;\n isBorderTop?: boolean;\n isBorderLeft?: boolean;\n }\n | {\n type: 'resizer';\n }\n) &\n React.RefAttributes<HTMLDivElement>;\n\ntype TableCell = <T extends TableRow>(\n props: Props<T>,\n) => React.ReactElement | null;\n\nconst getCellClasses = <T extends TableRow>(props: Props<T>): string => {\n const { column, showVerticalShadow, className } = props;\n\n return cnTableCell(\n {\n showVerticalShadow,\n isSticky: column.isSticky,\n isResized: props.type === 'header' ? props.isResized : column.isResized,\n isSortable: column.sortable,\n isHeader: props.type === 'header',\n isResizer: props.type === 'resizer',\n stickyOnTop:\n (props.type === 'header' && props.isSticky) || props.type === 'resizer',\n stickyOnLeft: column.isSticky,\n isFilterable: column.filterable,\n isControl: Boolean(column.control),\n withoutBorder: props.type === 'resizer',\n isClickable: 'isClickable' in props && props.isClickable,\n isBorderTop: 'isBorderTop' in props && props.isBorderTop,\n isBorderLeft: 'isBorderLeft' in props && props.isBorderLeft,\n },\n [className],\n );\n};\n\nconst getWrapperClasses = <T extends TableRow>(props: Props<T>): string => {\n const { column, wrapperClassName } = props;\n\n return cnTableCell(\n 'Wrapper',\n {\n withoutPadding: column.withoutPadding || props.type === 'resizer',\n verticalAlign: props.verticalAlign,\n horizontalAlign: column.align,\n isHeader: props.type === 'header',\n wrap: props.wrap,\n },\n [wrapperClassName],\n );\n};\n\nexport const TableCell: TableCell = React.forwardRef((props, ref) => {\n const { style, onClick, onContextMenu, children } = props;\n\n const propsWithRole = onClick\n ? {\n role: 'button',\n onClick,\n }\n : {\n role: 'cell',\n };\n\n return (\n <div\n {...propsWithRole}\n onContextMenu={onContextMenu}\n ref={ref}\n className={getCellClasses(props)}\n style={style}\n >\n <div className={getWrapperClasses(props)}>{children}</div>\n </div>\n );\n});\n"],"mappings":"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"}
1
+ {"version":3,"file":"TableCell.js","names":["React","cn","cnTableCell","verticalAligns","horizontalAligns","getCellClasses","props","column","showVerticalShadow","className","isSticky","isResized","type","isSortable","sortable","isHeader","isResizer","stickyOnTop","stickyOnLeft","isFilterable","filterable","isControl","control","withoutBorder","isClickable","isBorderTop","isBorderLeft","getWrapperClasses","wrapperClassName","withoutPadding","verticalAlign","horizontalAlign","align","wrap","TableCell","forwardRef","ref","style","onClick","onContextMenu","children","propsWithRole","role"],"sources":["../../../../../../src/components/Table/Cell/TableCell.tsx"],"sourcesContent":["import './TableCell.css';\n\nimport React from 'react';\n\nimport { cn } from '../../../utils/bem';\nimport { TableColumn, TableRow } from '../Table';\n\nconst cnTableCell = cn('TableCell');\n\nexport const verticalAligns = ['top', 'center', 'bottom'] as const;\nexport type VerticalAlign = typeof verticalAligns[number];\nexport const horizontalAligns = ['left', 'center', 'right'] as const;\nexport type HorizontalAlign = typeof horizontalAligns[number];\n\ntype Props<T extends TableRow> = {\n column: TableColumn<T> & {\n isSticky?: boolean;\n isResized?: boolean;\n filterable?: boolean;\n };\n onClick?: (e: React.SyntheticEvent) => void;\n onContextMenu?: (e: React.SyntheticEvent) => void;\n style?: React.CSSProperties;\n className?: string;\n wrapperClassName?: string;\n children: React.ReactNode;\n wrap?: 'truncate' | 'break';\n showVerticalShadow?: boolean;\n verticalAlign?: VerticalAlign;\n} & (\n | {\n type: 'header';\n isSticky?: boolean;\n isResized?: boolean;\n }\n | {\n type: 'content';\n isClickable?: boolean;\n isBorderTop?: boolean;\n isBorderLeft?: boolean;\n }\n | {\n type: 'resizer';\n }\n) &\n React.RefAttributes<HTMLDivElement>;\n\ntype TableCell = <T extends TableRow>(\n props: Props<T>,\n) => React.ReactNode | null;\n\nconst getCellClasses = <T extends TableRow>(props: Props<T>): string => {\n const { column, showVerticalShadow, className } = props;\n\n return cnTableCell(\n {\n showVerticalShadow,\n isSticky: column.isSticky,\n isResized: props.type === 'header' ? props.isResized : column.isResized,\n isSortable: column.sortable,\n isHeader: props.type === 'header',\n isResizer: props.type === 'resizer',\n stickyOnTop:\n (props.type === 'header' && props.isSticky) || props.type === 'resizer',\n stickyOnLeft: column.isSticky,\n isFilterable: column.filterable,\n isControl: Boolean(column.control),\n withoutBorder: props.type === 'resizer',\n isClickable: 'isClickable' in props && props.isClickable,\n isBorderTop: 'isBorderTop' in props && props.isBorderTop,\n isBorderLeft: 'isBorderLeft' in props && props.isBorderLeft,\n },\n [className],\n );\n};\n\nconst getWrapperClasses = <T extends TableRow>(props: Props<T>): string => {\n const { column, wrapperClassName } = props;\n\n return cnTableCell(\n 'Wrapper',\n {\n withoutPadding: column.withoutPadding || props.type === 'resizer',\n verticalAlign: props.verticalAlign,\n horizontalAlign: column.align,\n isHeader: props.type === 'header',\n wrap: props.wrap,\n },\n [wrapperClassName],\n );\n};\n\nexport const TableCell: TableCell = React.forwardRef((props, ref) => {\n const { style, onClick, onContextMenu, children } = props;\n\n const propsWithRole = onClick\n ? {\n role: 'button',\n onClick,\n }\n : {\n role: 'cell',\n };\n\n return (\n <div\n {...propsWithRole}\n onContextMenu={onContextMenu}\n ref={ref}\n className={getCellClasses(props)}\n style={style}\n >\n <div className={getWrapperClasses(props)}>{children}</div>\n </div>\n );\n});\n"],"mappings":"AAAA,wBAEA,MAAOA,MAAP,KAAkB,OAAlB,CAEA,OAASC,EAAT,0BAGA,GAAMC,YAAW,CAAGD,EAAE,CAAC,WAAD,CAAtB,CAEA,MAAO,IAAME,eAAc,CAAG,CAAC,KAAD,CAAQ,QAAR,CAAkB,QAAlB,CAAvB,CAEP,MAAO,IAAMC,iBAAgB,CAAG,CAAC,MAAD,CAAS,QAAT,CAAmB,OAAnB,CAAzB,C,GAwCDC,eAAc,CAAG,SAAqBC,CAArB,CAAiD,CACtE,GAAQC,EAAR,CAAkDD,CAAlD,CAAQC,MAAR,CAAgBC,CAAhB,CAAkDF,CAAlD,CAAgBE,kBAAhB,CAAoCC,CAApC,CAAkDH,CAAlD,CAAoCG,SAApC,CAEA,MAAOP,YAAW,CAChB,CACEM,kBAAkB,CAAlBA,CADF,CAEEE,QAAQ,CAAEH,CAAM,CAACG,QAFnB,CAGEC,SAAS,CAAiB,QAAf,GAAAL,CAAK,CAACM,IAAN,CAA0BN,CAAK,CAACK,SAAhC,CAA4CJ,CAAM,CAACI,SAHhE,CAIEE,UAAU,CAAEN,CAAM,CAACO,QAJrB,CAKEC,QAAQ,CAAiB,QAAf,GAAAT,CAAK,CAACM,IALlB,CAMEI,SAAS,CAAiB,SAAf,GAAAV,CAAK,CAACM,IANnB,CAOEK,WAAW,CACO,QAAf,GAAAX,CAAK,CAACM,IAAN,EAA2BN,CAAK,CAACI,QAAlC,EAA8D,SAAf,GAAAJ,CAAK,CAACM,IARzD,CASEM,YAAY,CAAEX,CAAM,CAACG,QATvB,CAUES,YAAY,CAAEZ,CAAM,CAACa,UAVvB,CAWEC,SAAS,GAAUd,CAAM,CAACe,OAX5B,CAYEC,aAAa,CAAiB,SAAf,GAAAjB,CAAK,CAACM,IAZvB,CAaEY,WAAW,CAAE,eAAiBlB,EAAjB,EAA0BA,CAAK,CAACkB,WAb/C,CAcEC,WAAW,CAAE,eAAiBnB,EAAjB,EAA0BA,CAAK,CAACmB,WAd/C,CAeEC,YAAY,CAAE,gBAAkBpB,EAAlB,EAA2BA,CAAK,CAACoB,YAfjD,CADgB,CAkBhB,CAACjB,CAAD,CAlBgB,CAoBnB,C,CAEKkB,iBAAiB,CAAG,SAAqBrB,CAArB,CAAiD,CACzE,GAAQC,EAAR,CAAqCD,CAArC,CAAQC,MAAR,CAAgBqB,CAAhB,CAAqCtB,CAArC,CAAgBsB,gBAAhB,CAEA,MAAO1B,YAAW,CAChB,SADgB,CAEhB,CACE2B,cAAc,CAAEtB,CAAM,CAACsB,cAAP,EAAwC,SAAf,GAAAvB,CAAK,CAACM,IADjD,CAEEkB,aAAa,CAAExB,CAAK,CAACwB,aAFvB,CAGEC,eAAe,CAAExB,CAAM,CAACyB,KAH1B,CAIEjB,QAAQ,CAAiB,QAAf,GAAAT,CAAK,CAACM,IAJlB,CAKEqB,IAAI,CAAE3B,CAAK,CAAC2B,IALd,CAFgB,CAShB,CAACL,CAAD,CATgB,CAWnB,C,CAED,MAAO,IAAMM,UAAoB,CAAGlC,KAAK,CAACmC,UAAN,CAAiB,SAAC7B,CAAD,CAAQ8B,CAAR,CAAgB,IAC3DC,EAD2D,CACf/B,CADe,CAC3D+B,KAD2D,CACpDC,CADoD,CACfhC,CADe,CACpDgC,OADoD,CAC3CC,CAD2C,CACfjC,CADe,CAC3CiC,aAD2C,CAC5BC,CAD4B,CACflC,CADe,CAC5BkC,QAD4B,CAG7DC,CAAa,CAAGH,CAAO,CACzB,CACEI,IAAI,CAAE,QADR,CAEEJ,OAAO,CAAPA,CAFF,CADyB,CAKzB,CACEI,IAAI,CAAE,MADR,CAR+D,CAYnE,MACE,4CACMD,CADN,EAEE,aAAa,CAAEF,CAFjB,CAGE,GAAG,CAAEH,CAHP,CAIE,SAAS,CAAE/B,cAAc,CAACC,CAAD,CAJ3B,CAKE,KAAK,CAAE+B,CALT,GAOE,2BAAK,SAAS,CAAEV,iBAAiB,CAACrB,CAAD,CAAjC,EAA2CkC,CAA3C,CAPF,CAUH,CAvBmC,CAA7B"}
@@ -25,5 +25,5 @@ type Props<T extends TableRow> = {
25
25
  showHorizontalCellShadow: boolean;
26
26
  borderBetweenColumns: boolean;
27
27
  };
28
- export declare const TableHeader: <T extends TableRow>({ isStickyHeader, headersWithMetaData, headerRowsHeights, headerRowsRefs, getStickyLeftOffset, stickyColumnsGrid, showVerticalCellShadow, headerVerticalAlign, getSortIcon, handleSortClick, handleFilterTogglerClick, handleCellClick, handleTooltipSave, filters, visibleFilter, selectedFilters, showHorizontalCellShadow, borderBetweenColumns, }: Props<T>) => React.ReactElement;
28
+ export declare const TableHeader: <T extends TableRow>({ isStickyHeader, headersWithMetaData, headerRowsHeights, headerRowsRefs, getStickyLeftOffset, stickyColumnsGrid, showVerticalCellShadow, headerVerticalAlign, getSortIcon, handleSortClick, handleFilterTogglerClick, handleCellClick, handleTooltipSave, filters, visibleFilter, selectedFilters, showHorizontalCellShadow, borderBetweenColumns, }: Props<T>) => React.ReactNode;
29
29
  export {};