@redis-ui/components 39.12.0 → 41.3.2

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 (374) hide show
  1. package/dist/AppSelectionMenu/components/Icon/Icon.cjs +3 -1
  2. package/dist/AppSelectionMenu/components/Icon/Icon.js +3 -1
  3. package/dist/AppSelectionMenu/components/Item/Item.styles.d.ts +1 -1
  4. package/dist/AppSelectionMenu/components/Trigger/Trigger.styles.cjs +1 -1
  5. package/dist/AppSelectionMenu/components/Trigger/Trigger.styles.js +1 -1
  6. package/dist/AutoCompleteSelect/AutoCompleteSelect.style.d.ts +4 -4
  7. package/dist/Banner/Banner.d.ts +4 -4
  8. package/dist/Banner/components/Actions/Actions.d.ts +1 -1
  9. package/dist/Banner/components/Compose/Compose.style.d.ts +1 -1
  10. package/dist/Banner/components/Message/Message.style.d.ts +1 -1
  11. package/dist/Banner/components/Message/Message.types.d.ts +2 -2
  12. package/dist/BoxSelectionGroup/BoxSelectionGroup.d.ts +1 -1
  13. package/dist/BoxSelectionGroup/BoxSelectionGroup.style.d.ts +1 -1
  14. package/dist/BoxSelectionGroup/MultiBoxSelectionGroup.d.ts +1 -1
  15. package/dist/BoxSelectionGroup/components/Item/Item.d.ts +1 -1
  16. package/dist/BoxSelectionGroup/components/Item/components/Compose/Compose.d.ts +1 -1
  17. package/dist/BoxSelectionGroup/components/Item/components/Compose/Compose.types.d.ts +1 -1
  18. package/dist/Button/IconButton/IconButton.cjs +2 -2
  19. package/dist/Button/IconButton/IconButton.js +4 -4
  20. package/dist/Button/ToggleButton/components/IndicatorCount/IndicatorCount.types.d.ts +2 -2
  21. package/dist/Checkbox/components/Label/Label.style.d.ts +1 -1
  22. package/dist/Chip/Chip.d.ts +2 -2
  23. package/dist/Chip/components/Title/Title.d.ts +2 -2
  24. package/dist/ChipList/Components/ExtraItem.cjs +3 -0
  25. package/dist/ChipList/Components/ExtraItem.js +3 -0
  26. package/dist/ChipList/Components/ExtraItem.style.d.ts +1 -1
  27. package/dist/Drawer/Drawer.d.ts +3 -3
  28. package/dist/Drawer/components/Body/Body.cjs +17 -3
  29. package/dist/Drawer/components/Body/Body.d.ts +1 -1
  30. package/dist/Drawer/components/Body/Body.js +17 -3
  31. package/dist/Drawer/components/Body/Body.types.d.ts +3 -1
  32. package/dist/Drawer/components/Description/Description.d.ts +1 -1
  33. package/dist/Drawer/components/Description/components/Text/Text.style.d.ts +1 -1
  34. package/dist/Drawer/components/Description/components/Text/Text.types.d.ts +2 -2
  35. package/dist/Drawer/components/Header/components/Compose/Compose.style.js +2 -2
  36. package/dist/Drawer/components/Header/components/Title/Title.style.d.ts +1 -1
  37. package/dist/Drawer/components/Header/components/Title/Title.types.d.ts +2 -2
  38. package/dist/Filters/components/MultiSelectFilter/MultiSelectFilter.styles.d.ts +5 -5
  39. package/dist/FormField/FormField.context.d.ts +6 -2
  40. package/dist/FormField/FormField.d.ts +2 -4
  41. package/dist/FormField/components/AdditionalText/AdditionalText.style.d.ts +1 -1
  42. package/dist/FormField/components/AdditionalText/AdditionalText.types.d.ts +2 -2
  43. package/dist/FormField/components/Compose/Compose.d.ts +1 -1
  44. package/dist/FormField/components/Compose/Compose.types.d.ts +2 -2
  45. package/dist/FormField/components/Nested/Nested.cjs +25 -8
  46. package/dist/FormField/components/Nested/Nested.d.ts +1 -1
  47. package/dist/FormField/components/Nested/Nested.js +25 -8
  48. package/dist/FormField/components/Nested/Nested.types.d.ts +2 -0
  49. package/dist/Helpers/common.types.d.ts +1 -1
  50. package/dist/Helpers/contexts/NullableContext.cjs +17 -0
  51. package/dist/Helpers/contexts/NullableContext.d.ts +4 -0
  52. package/dist/Helpers/contexts/NullableContext.js +17 -0
  53. package/dist/Helpers/contexts/PrimitiveContextState.cjs +27 -0
  54. package/dist/Helpers/contexts/PrimitiveContextState.d.ts +7 -2
  55. package/dist/Helpers/contexts/PrimitiveContextState.js +27 -0
  56. package/dist/Helpers/hooks/useScrollable.cjs +32 -0
  57. package/dist/Helpers/hooks/useScrollable.d.ts +3 -0
  58. package/dist/Helpers/hooks/useScrollable.js +32 -0
  59. package/dist/Helpers/index.d.ts +3 -0
  60. package/dist/Helpers/react.utils.cjs +4 -0
  61. package/dist/Helpers/react.utils.d.ts +3 -1
  62. package/dist/Helpers/react.utils.js +6 -2
  63. package/dist/Inputs/Input/Input.d.ts +2 -2
  64. package/dist/Inputs/NumericInput/NumericInput.d.ts +2 -2
  65. package/dist/Inputs/PasswordInput/components/Compose/Compose.style.d.ts +1 -1
  66. package/dist/Inputs/PasswordInput/components/PasswordButton/PasswordButton.js +2 -2
  67. package/dist/Inputs/QuantityCounter/QuantityCounter.d.ts +3 -3
  68. package/dist/Inputs/QuantityCounter/components/Compose/Compose.style.d.ts +1 -1
  69. package/dist/Inputs/QuantityCounter/components/Compose/components/ErrorTooltip/ErrorTooltip.style.d.ts +1 -1
  70. package/dist/Inputs/QuantityCounter/components/InputGroup/InputGroup.d.ts +1 -1
  71. package/dist/Inputs/QuantityCounter/components/InputGroup/components/ValueLabel/ValueLabel.style.d.ts +1 -1
  72. package/dist/Inputs/SearchInput/SearchInput.d.ts +1 -1
  73. package/dist/Inputs/TextArea/TextArea.d.ts +2 -2
  74. package/dist/Inputs/TextArea/components/Compose/Compose.style.d.ts +2 -2
  75. package/dist/Inputs/components/Compose/Compose.style.d.ts +1 -1
  76. package/dist/Inputs/components/Context/Field.context.d.ts +3 -1
  77. package/dist/Inputs/components/ResetButton/ResetButton.style.js +2 -2
  78. package/dist/Inputs/components/StatusIndicator/StatusIndicator.style.d.ts +1 -1
  79. package/dist/Label/components/Optional/Optional.style.d.ts +1 -1
  80. package/dist/Label/components/Optional/Optional.types.d.ts +2 -2
  81. package/dist/Label/components/Required/Required.style.d.ts +1 -1
  82. package/dist/Label/components/Required/Required.types.d.ts +2 -2
  83. package/dist/Label/components/Text/Text.style.d.ts +1 -1
  84. package/dist/Label/components/Text/Text.types.d.ts +2 -2
  85. package/dist/Link/Link.cjs +17 -12
  86. package/dist/Link/Link.js +17 -12
  87. package/dist/Link/Link.style.d.ts +1 -1
  88. package/dist/Loader/Loader.style.cjs +1 -1
  89. package/dist/Loader/Loader.style.js +1 -1
  90. package/dist/Menu/Menu.d.ts +5 -5
  91. package/dist/Menu/components/Content/Content.d.ts +4 -4
  92. package/dist/Menu/components/Content/components/Item/Components/SubHead/SubHead.style.d.ts +1 -1
  93. package/dist/Menu/components/Content/components/Item/Components/Text/Text.types.d.ts +2 -2
  94. package/dist/Menu/components/Content/components/Item/Item.d.ts +2 -2
  95. package/dist/Menu/components/Content/components/Label/Label.d.ts +2 -2
  96. package/dist/Menu/components/Content/components/Label/components/Text/Text.style.d.ts +1 -1
  97. package/dist/Menu/components/Content/components/Label/components/Text/Text.types.d.ts +2 -2
  98. package/dist/Modal/Modal.d.ts +3 -3
  99. package/dist/Modal/components/Content/Content.d.ts +3 -3
  100. package/dist/Modal/components/Content/components/Body/Body.d.ts +1 -1
  101. package/dist/Modal/components/Content/components/Body/components/Text/Text.style.d.ts +1 -1
  102. package/dist/Modal/components/Content/components/Body/components/Text/Text.types.d.ts +2 -2
  103. package/dist/Modal/components/Content/components/Close/Close.style.js +2 -2
  104. package/dist/Modal/components/Content/components/Description/Description.d.ts +1 -1
  105. package/dist/Modal/components/Content/components/Description/components/Text/Text.style.d.ts +1 -1
  106. package/dist/Modal/components/Content/components/Description/components/Text/Text.types.d.ts +2 -2
  107. package/dist/Modal/components/Content/components/Header/components/Title/Title.style.d.ts +1 -1
  108. package/dist/Modal/components/Content/components/Header/components/Title/Title.types.d.ts +2 -2
  109. package/dist/MultiSelect/MultiSelect.d.ts +7 -7
  110. package/dist/MultiSelect/components/Compose/hooks/useMultiSelectContextApi.d.ts +1 -1
  111. package/dist/MultiSelect/components/Content/Content.d.ts +1 -1
  112. package/dist/MultiSelect/components/Content/components/Option/Option.d.ts +2 -2
  113. package/dist/MultiSelect/components/Content/components/Option/components/Compose/Compose.style.d.ts +1 -1
  114. package/dist/MultiSelect/components/Content/components/Option/components/Compose/Compose.style.js +2 -2
  115. package/dist/MultiSelect/components/Trigger/Trigger.d.ts +1 -1
  116. package/dist/Pagination/Pagination.cjs +19 -0
  117. package/dist/Pagination/Pagination.context.cjs +15 -0
  118. package/dist/Pagination/Pagination.context.d.ts +5 -0
  119. package/dist/Pagination/Pagination.context.js +15 -0
  120. package/dist/Pagination/Pagination.d.ts +18 -0
  121. package/dist/Pagination/Pagination.js +19 -0
  122. package/dist/Pagination/Pagination.style.cjs +35 -0
  123. package/dist/Pagination/Pagination.style.d.ts +40 -0
  124. package/dist/Pagination/Pagination.style.js +33 -0
  125. package/dist/Pagination/Pagination.types.d.ts +26 -0
  126. package/dist/Pagination/components/Compose.cjs +53 -0
  127. package/dist/Pagination/components/Compose.d.ts +5 -0
  128. package/dist/Pagination/components/Compose.js +53 -0
  129. package/dist/Pagination/components/InfoLabel.cjs +14 -0
  130. package/dist/Pagination/components/InfoLabel.d.ts +8 -0
  131. package/dist/Pagination/components/InfoLabel.js +14 -0
  132. package/dist/Pagination/components/NavigationButton.cjs +78 -0
  133. package/dist/Pagination/components/NavigationButton.d.ts +8 -0
  134. package/dist/Pagination/components/NavigationButton.js +78 -0
  135. package/dist/Pagination/components/PageSelect.cjs +51 -0
  136. package/dist/Pagination/components/PageSelect.d.ts +10 -0
  137. package/dist/Pagination/components/PageSelect.js +51 -0
  138. package/dist/Pagination/components/PageSizeSelect.cjs +55 -0
  139. package/dist/Pagination/components/PageSizeSelect.d.ts +12 -0
  140. package/dist/Pagination/components/PageSizeSelect.js +55 -0
  141. package/dist/Pagination/index.d.ts +7 -0
  142. package/dist/Popover/Popover.d.ts +7 -7
  143. package/dist/Popover/components/Content/Content.d.ts +4 -4
  144. package/dist/Popover/components/Content/components/Body/Body.d.ts +1 -1
  145. package/dist/Popover/components/Content/components/Body/components/BodyText/BodyText.d.ts +2 -2
  146. package/dist/Popover/components/Content/components/Body/components/BodyText/BodyText.styles.d.ts +1 -1
  147. package/dist/Popover/components/Content/components/Close/Close.style.js +2 -2
  148. package/dist/Popover/components/Content/components/Header/Header.d.ts +1 -1
  149. package/dist/Popover/components/Content/components/Header/components/HeaderTitle/HeaderTitle.d.ts +2 -2
  150. package/dist/Popover/components/Content/components/Header/components/HeaderTitle/HeaderTitle.styles.d.ts +1 -1
  151. package/dist/Popover/components/Content/components/Text/Text.d.ts +2 -2
  152. package/dist/Popover/components/Content/components/Text/Text.styles.d.ts +1 -1
  153. package/dist/Popover/components/Content/components/WindowBar/WindowBar.d.ts +1 -1
  154. package/dist/Popover/components/Content/components/WindowBar/WindowBar.style.d.ts +1 -1
  155. package/dist/Popover/components/PopoverCard/PopoverCard.d.ts +3 -3
  156. package/dist/ProfileIcon/ProfileIcon.types.d.ts +1 -1
  157. package/dist/ProgressBar/ProgressBar.styles.d.ts +1 -1
  158. package/dist/ScreenReaderAnnounce/ScreenReaderAnnounce.cjs +32 -0
  159. package/dist/ScreenReaderAnnounce/ScreenReaderAnnounce.d.ts +8 -0
  160. package/dist/ScreenReaderAnnounce/ScreenReaderAnnounce.js +32 -0
  161. package/dist/ScreenReaderAnnounce/index.d.ts +1 -0
  162. package/dist/Section/Section.cjs +11 -8
  163. package/dist/Section/Section.d.ts +9 -7
  164. package/dist/Section/Section.js +11 -8
  165. package/dist/Section/Section.types.d.ts +8 -2
  166. package/dist/Section/components/Body/Body.cjs +10 -6
  167. package/dist/Section/components/Body/Body.d.ts +1 -1
  168. package/dist/Section/components/Body/Body.js +11 -7
  169. package/dist/Section/components/Body/Body.style.cjs +1 -1
  170. package/dist/Section/components/Body/Body.style.js +1 -1
  171. package/dist/Section/components/Body/Body.types.d.ts +2 -5
  172. package/dist/Section/components/Compose/Compose.cjs +18 -7
  173. package/dist/Section/components/Compose/Compose.d.ts +1 -1
  174. package/dist/Section/components/Compose/Compose.js +18 -7
  175. package/dist/Section/components/Compose/Compose.types.d.ts +2 -2
  176. package/dist/Section/components/Header/Header.cjs +12 -20
  177. package/dist/Section/components/Header/Header.d.ts +5 -4
  178. package/dist/Section/components/Header/Header.js +12 -20
  179. package/dist/Section/components/Header/Header.types.d.ts +7 -3
  180. package/dist/Section/components/Header/components/CategoryValueList/CategoryValueList.style.d.ts +1 -1
  181. package/dist/Section/components/Header/components/CategoryValueList/components/CategoryValueChip/CategoryValueChip.style.d.ts +2 -2
  182. package/dist/Section/components/Header/components/CollapseButton/CollapseButton.cjs +34 -0
  183. package/dist/Section/components/Header/components/CollapseButton/CollapseButton.d.ts +2 -0
  184. package/dist/Section/components/Header/components/CollapseButton/CollapseButton.js +34 -0
  185. package/dist/Section/components/Header/components/CollapseButton/CollapseButton.style.cjs +30 -0
  186. package/dist/Section/components/Header/components/CollapseButton/CollapseButton.style.d.ts +3 -0
  187. package/dist/Section/components/Header/components/CollapseButton/CollapseButton.style.js +28 -0
  188. package/dist/Section/components/Header/components/CollapseButton/CollapseButton.types.d.ts +6 -0
  189. package/dist/Section/components/Header/components/Compose/Compose.cjs +2 -30
  190. package/dist/Section/components/Header/components/Compose/Compose.d.ts +1 -1
  191. package/dist/Section/components/Header/components/Compose/Compose.js +3 -31
  192. package/dist/Section/components/Header/components/Compose/Compose.style.cjs +3 -36
  193. package/dist/Section/components/Header/components/Compose/Compose.style.d.ts +1 -9
  194. package/dist/Section/components/Header/components/Compose/Compose.style.js +5 -38
  195. package/dist/Section/components/Header/components/Compose/Compose.types.d.ts +2 -5
  196. package/dist/Section/components/Header/components/Group/Group.types.d.ts +1 -1
  197. package/dist/Section/components/Header/components/Label/Label.cjs +18 -7
  198. package/dist/Section/components/Header/components/Label/Label.js +19 -8
  199. package/dist/Section/components/Header/components/Label/Label.style.cjs +17 -4
  200. package/dist/Section/components/Header/components/Label/Label.style.d.ts +2 -1
  201. package/dist/Section/components/Header/components/Label/Label.style.js +17 -4
  202. package/dist/Section/components/Header/components/Label/Label.types.d.ts +2 -2
  203. package/dist/Section/components/SummaryBar/SummaryBar.cjs +14 -0
  204. package/dist/Section/components/SummaryBar/SummaryBar.d.ts +2 -0
  205. package/dist/Section/components/SummaryBar/SummaryBar.js +14 -0
  206. package/dist/Section/components/SummaryBar/SummaryBar.style.cjs +22 -0
  207. package/dist/Section/components/SummaryBar/SummaryBar.style.d.ts +3 -0
  208. package/dist/Section/components/SummaryBar/SummaryBar.style.js +20 -0
  209. package/dist/Section/components/SummaryBar/SummaryBar.types.d.ts +4 -0
  210. package/dist/Select/Select.cjs +2 -2
  211. package/dist/Select/Select.d.ts +5 -5
  212. package/dist/Select/Select.js +2 -2
  213. package/dist/Select/components/Content/Content.d.ts +1 -1
  214. package/dist/Select/components/Content/components/Option/Option.d.ts +2 -2
  215. package/dist/Select/components/Content/components/Search/SelectSearchInput.style.d.ts +1 -1
  216. package/dist/Select/components/Context/hooks/useSelectContextApi.d.ts +1 -1
  217. package/dist/Select/components/Trigger/Trigger.d.ts +1 -1
  218. package/dist/SideBar/SideBar.cjs +7 -5
  219. package/dist/SideBar/SideBar.d.ts +1 -1
  220. package/dist/SideBar/SideBar.js +7 -5
  221. package/dist/SideBar/SideBar.types.d.ts +1 -0
  222. package/dist/SideBar/components/Button/Button.style.d.ts +1 -1
  223. package/dist/SideBar/components/Footer/Footer.style.cjs +4 -1
  224. package/dist/SideBar/components/Footer/Footer.style.js +5 -2
  225. package/dist/SideBar/components/Footer/components/Text/Text.style.d.ts +1 -1
  226. package/dist/SideBar/components/Footer/components/Text/Text.types.d.ts +2 -2
  227. package/dist/SideBar/components/Header/Header.cjs +15 -2
  228. package/dist/SideBar/components/Header/Header.js +15 -2
  229. package/dist/SideBar/components/Header/Header.style.cjs +4 -3
  230. package/dist/SideBar/components/Header/Header.style.d.ts +1 -1
  231. package/dist/SideBar/components/Header/Header.style.js +4 -3
  232. package/dist/SideBar/components/Item/Item.d.ts +1 -1
  233. package/dist/SideBar/components/Item/Item.style.d.ts +1 -1
  234. package/dist/SideBar/components/Item/components/Text/Text.style.d.ts +1 -1
  235. package/dist/SideBar/components/Item/components/Text/Text.types.d.ts +2 -2
  236. package/dist/SideBar/components/ScrollContainer/ScrollContainer.types.d.ts +1 -1
  237. package/dist/Stepper/Stepper.cjs +15 -27
  238. package/dist/Stepper/Stepper.context.cjs +13 -0
  239. package/dist/Stepper/Stepper.context.d.ts +12 -0
  240. package/dist/Stepper/Stepper.context.js +13 -0
  241. package/dist/Stepper/Stepper.d.ts +14 -5
  242. package/dist/Stepper/Stepper.js +15 -25
  243. package/dist/Stepper/Stepper.types.d.ts +9 -3
  244. package/dist/Stepper/components/Compose/Compose.cjs +42 -0
  245. package/dist/Stepper/components/Compose/Compose.d.ts +10 -0
  246. package/dist/Stepper/components/Compose/Compose.js +42 -0
  247. package/dist/Stepper/{Stepper.style.cjs → components/Compose/Compose.style.cjs} +4 -4
  248. package/dist/Stepper/components/Compose/Compose.style.d.ts +1 -0
  249. package/dist/Stepper/{Stepper.style.js → components/Compose/Compose.style.js} +4 -4
  250. package/dist/Stepper/components/Compose/Compose.types.d.ts +6 -0
  251. package/dist/Stepper/components/Step/Step.cjs +10 -17
  252. package/dist/Stepper/components/Step/Step.context.d.ts +3 -3
  253. package/dist/Stepper/components/Step/Step.d.ts +7 -5
  254. package/dist/Stepper/components/Step/Step.js +10 -17
  255. package/dist/Stepper/components/Step/Step.types.cjs +2 -2
  256. package/dist/Stepper/components/Step/Step.types.d.ts +6 -8
  257. package/dist/Stepper/components/Step/Step.types.js +2 -2
  258. package/dist/Stepper/components/Step/components/Compose/Compose.cjs +36 -4
  259. package/dist/Stepper/components/Step/components/Compose/Compose.d.ts +1 -1
  260. package/dist/Stepper/components/Step/components/Compose/Compose.js +37 -5
  261. package/dist/Stepper/components/Step/components/Compose/Compose.style.cjs +8 -4
  262. package/dist/Stepper/components/Step/components/Compose/Compose.style.d.ts +1 -1
  263. package/dist/Stepper/components/Step/components/Compose/Compose.style.js +10 -6
  264. package/dist/Stepper/components/Step/components/Compose/Compose.types.d.ts +2 -5
  265. package/dist/Stepper/components/Step/components/Icon/Icon.cjs +11 -6
  266. package/dist/Stepper/components/Step/components/Icon/Icon.d.ts +1 -1
  267. package/dist/Stepper/components/Step/components/Icon/Icon.js +12 -7
  268. package/dist/Stepper/components/Step/components/Icon/Icon.style.cjs +1 -1
  269. package/dist/Stepper/components/Step/components/Icon/Icon.style.js +2 -2
  270. package/dist/Stepper/components/Step/components/Label/Label.cjs +11 -13
  271. package/dist/Stepper/components/Step/components/Label/Label.d.ts +1 -1
  272. package/dist/Stepper/components/Step/components/Label/Label.js +12 -14
  273. package/dist/Stepper/components/Step/components/Label/Label.style.cjs +8 -8
  274. package/dist/Stepper/components/Step/components/Label/Label.style.d.ts +1 -1
  275. package/dist/Stepper/components/Step/components/Label/Label.style.js +9 -9
  276. package/dist/Stepper/components/Step/components/Label/Label.types.d.ts +3 -2
  277. package/dist/Stepper/hooks/useStepIndexing.cjs +38 -0
  278. package/dist/Stepper/hooks/useStepIndexing.d.ts +10 -0
  279. package/dist/Stepper/hooks/useStepIndexing.js +38 -0
  280. package/dist/Stepper/hooks/useStepRegistration.cjs +25 -0
  281. package/dist/Stepper/hooks/useStepRegistration.d.ts +5 -0
  282. package/dist/Stepper/hooks/useStepRegistration.js +25 -0
  283. package/dist/Stepper/hooks/useStepperInteractive.cjs +96 -0
  284. package/dist/Stepper/hooks/useStepperInteractive.d.ts +30 -0
  285. package/dist/Stepper/hooks/useStepperInteractive.js +96 -0
  286. package/dist/Switch/Switch.d.ts +1 -1
  287. package/dist/Switch/components/Title/Title.style.d.ts +1 -1
  288. package/dist/TableHeading/TableHeading.d.ts +2 -2
  289. package/dist/TableHeading/TableHeading.style.d.ts +1 -1
  290. package/dist/TableHeading/components/TableTitle/TableTitle.d.ts +2 -2
  291. package/dist/Tabs/Tabs.d.ts +6 -6
  292. package/dist/Tabs/components/ContentPane/ContentPane.d.ts +1 -1
  293. package/dist/Tabs/components/TabBar/TabBar.d.ts +5 -5
  294. package/dist/Tabs/components/TabBar/components/Trigger/Trigger.d.ts +3 -3
  295. package/dist/Toast/Toast.d.ts +8 -8
  296. package/dist/Toast/components/Actions/Actions.d.ts +1 -1
  297. package/dist/Toast/components/Actions/Actions.types.d.ts +1 -1
  298. package/dist/Toast/components/Actions/components/Action/Action.cjs +1 -1
  299. package/dist/Toast/components/Actions/components/Action/Action.js +1 -1
  300. package/dist/Toast/components/Actions/components/Compose/Compose.d.ts +1 -1
  301. package/dist/Toast/components/Compose/Compose.cjs +2 -2
  302. package/dist/Toast/components/Compose/Compose.d.ts +1 -1
  303. package/dist/Toast/components/Compose/Compose.js +2 -2
  304. package/dist/Toast/components/Compose/Compose.style.d.ts +1 -1
  305. package/dist/Toast/components/Content/Content.d.ts +3 -3
  306. package/dist/Toast/components/Content/Content.types.d.ts +1 -1
  307. package/dist/Toast/components/Content/components/Compose/Compose.cjs +15 -3
  308. package/dist/Toast/components/Content/components/Compose/Compose.d.ts +1 -1
  309. package/dist/Toast/components/Content/components/Compose/Compose.js +15 -3
  310. package/dist/Toast/components/Content/components/Description/Description.cjs +1 -1
  311. package/dist/Toast/components/Content/components/Description/Description.js +1 -1
  312. package/dist/Toast/components/Content/components/Description/Description.style.d.ts +1 -1
  313. package/dist/Toast/components/Content/components/Description/Description.types.d.ts +2 -2
  314. package/dist/Toast/components/Content/components/Message/Message.cjs +1 -1
  315. package/dist/Toast/components/Content/components/Message/Message.js +1 -1
  316. package/dist/Toast/components/Content/components/Message/Message.style.d.ts +1 -1
  317. package/dist/Toast/components/Content/components/Message/Message.types.d.ts +2 -2
  318. package/dist/Toast/components/Icon/Icon.cjs +1 -0
  319. package/dist/Toast/components/Icon/Icon.js +1 -0
  320. package/dist/Toast/core/content.helper.cjs +1 -1
  321. package/dist/Toast/core/content.helper.js +2 -2
  322. package/dist/Toast/core/context.cjs +4 -5
  323. package/dist/Toast/core/context.d.ts +1 -2
  324. package/dist/Toast/core/context.js +4 -5
  325. package/dist/Toast/core/core.cjs +2 -0
  326. package/dist/Toast/core/core.d.ts +9 -8
  327. package/dist/Toast/core/core.js +3 -1
  328. package/dist/Toast/core/mapping.helpers.cjs +24 -16
  329. package/dist/Toast/core/mapping.helpers.d.ts +8 -6
  330. package/dist/Toast/core/mapping.helpers.js +25 -17
  331. package/dist/Toast/core/mapping.types.d.ts +9 -8
  332. package/dist/Tooltip/Tooltip.d.ts +3 -3
  333. package/dist/Tooltip/Tooltip.types.d.ts +1 -1
  334. package/dist/Tooltip/components/Content/Content.d.ts +1 -1
  335. package/dist/Tooltip/components/Content/components/Text/Text.d.ts +2 -2
  336. package/dist/Tooltip/components/Content/components/Text/Text.styles.d.ts +1 -1
  337. package/dist/Tooltip/components/TooltipCard/TooltipCard.d.ts +2 -2
  338. package/dist/Tooltip/components/TooltipCard/components/Header/TooltipHeader.d.ts +1 -1
  339. package/dist/TreeView/components/TreeItem/components/Checkbox/Checkbox.style.d.ts +1 -1
  340. package/dist/TreeView/components/TreeItem/components/ExpandButton/ExpandButton.style.js +2 -2
  341. package/dist/Typography/Typography.d.ts +3 -3
  342. package/dist/Typography/Typography.types.d.ts +1 -0
  343. package/dist/Typography/components/Body/Body.d.ts +2 -2
  344. package/dist/Typography/components/Body/Body.style.cjs +2 -10
  345. package/dist/Typography/components/Body/Body.style.d.ts +8 -1
  346. package/dist/Typography/components/Body/Body.style.js +2 -10
  347. package/dist/Typography/components/Body/Body.types.d.ts +9 -15
  348. package/dist/Typography/components/Code/Code.d.ts +2 -2
  349. package/dist/Typography/components/Code/Code.style.cjs +1 -9
  350. package/dist/Typography/components/Code/Code.style.d.ts +8 -1
  351. package/dist/Typography/components/Code/Code.style.js +1 -9
  352. package/dist/Typography/components/Code/Code.types.d.ts +8 -14
  353. package/dist/Typography/components/Heading/Heading.cjs +21 -18
  354. package/dist/Typography/components/Heading/Heading.d.ts +2 -2
  355. package/dist/Typography/components/Heading/Heading.js +21 -18
  356. package/dist/Typography/components/Heading/Heading.style.cjs +4 -9
  357. package/dist/Typography/components/Heading/Heading.style.d.ts +5 -3
  358. package/dist/Typography/components/Heading/Heading.style.js +4 -9
  359. package/dist/Typography/components/Heading/Heading.types.d.ts +9 -5
  360. package/dist/Typography/index.d.ts +4 -0
  361. package/dist/index.cjs +13 -1
  362. package/dist/index.d.ts +2 -0
  363. package/dist/index.js +15 -3
  364. package/package.json +3 -3
  365. package/dist/Section/components/Header/components/ActionButton/ActionButton.cjs +0 -23
  366. package/dist/Section/components/Header/components/ActionButton/ActionButton.js +0 -23
  367. package/dist/Section/components/Header/components/CollapseIndicator/CollapseIndicator.cjs +0 -19
  368. package/dist/Section/components/Header/components/CollapseIndicator/CollapseIndicator.d.ts +0 -2
  369. package/dist/Section/components/Header/components/CollapseIndicator/CollapseIndicator.js +0 -19
  370. package/dist/Section/components/Header/components/CollapseIndicator/CollapseIndicator.style.cjs +0 -11
  371. package/dist/Section/components/Header/components/CollapseIndicator/CollapseIndicator.style.d.ts +0 -1
  372. package/dist/Section/components/Header/components/CollapseIndicator/CollapseIndicator.style.js +0 -9
  373. package/dist/Section/components/Header/components/CollapseIndicator/CollapseIndicator.types.d.ts +0 -2
  374. package/dist/Stepper/Stepper.style.d.ts +0 -1
@@ -15,6 +15,7 @@ const Icon = ({
15
15
  customIcon: icon,
16
16
  variant,
17
17
  size,
18
+ "aria-hidden": true,
18
19
  ...props
19
20
  });
20
21
  };
@@ -13,6 +13,7 @@ const Icon = ({
13
13
  customIcon: icon,
14
14
  variant,
15
15
  size,
16
+ "aria-hidden": true,
16
17
  ...props
17
18
  });
18
19
  };
@@ -13,7 +13,7 @@ const renderContent = (content) => {
13
13
  ...content
14
14
  });
15
15
  };
16
- const wrapInContextProvider = (contextProps, content) => jsxRuntime.jsxRuntimeExports.jsx(context.Context.Provider, {
16
+ const wrapInContextProvider = (contextProps, content) => jsxRuntime.jsxRuntimeExports.jsx(context.ToastContextProvider, {
17
17
  value: contextProps,
18
18
  children: content
19
19
  });
@@ -1,7 +1,7 @@
1
1
  import { j as jsxRuntimeExports } from "../../node_modules/react/jsx-runtime.js";
2
2
  import { isValidElement } from "react";
3
3
  import Toast from "../Toast.js";
4
- import { Context } from "./context.js";
4
+ import { ToastContextProvider } from "./context.js";
5
5
  const renderContent = (content) => {
6
6
  if (typeof content === "string" || !content) return jsxRuntimeExports.jsx(Toast, {
7
7
  message: content
@@ -11,7 +11,7 @@ const renderContent = (content) => {
11
11
  ...content
12
12
  });
13
13
  };
14
- const wrapInContextProvider = (contextProps, content) => jsxRuntimeExports.jsx(Context.Provider, {
14
+ const wrapInContextProvider = (contextProps, content) => jsxRuntimeExports.jsx(ToastContextProvider, {
15
15
  value: contextProps,
16
16
  children: content
17
17
  });
@@ -1,9 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const React = require("react");
4
- const Context = React.createContext({
5
- variant: "informative"
3
+ const NullableContext = require("../../Helpers/contexts/NullableContext.cjs");
4
+ const [useToastParams, ToastContextProvider] = NullableContext.createNullableContext({
5
+ forComponentName: "Toast"
6
6
  });
7
- const useToastParams = () => React.useContext(Context);
8
- exports.Context = Context;
7
+ exports.ToastContextProvider = ToastContextProvider;
9
8
  exports.useToastParams = useToastParams;
@@ -1,4 +1,3 @@
1
1
  /// <reference types="react" />
2
2
  import { ToastContextProps } from './core.types';
3
- export declare const Context: import("react").Context<ToastContextProps>;
4
- export declare const useToastParams: () => ToastContextProps;
3
+ export declare const useToastParams: () => ToastContextProps, ToastContextProvider: import("react").Provider<ToastContextProps>;
@@ -1,9 +1,8 @@
1
- import { createContext, useContext } from "react";
2
- const Context = createContext({
3
- variant: "informative"
1
+ import { createNullableContext } from "../../Helpers/contexts/NullableContext.js";
2
+ const [useToastParams, ToastContextProvider] = createNullableContext({
3
+ forComponentName: "Toast"
4
4
  });
5
- const useToastParams = () => useContext(Context);
6
5
  export {
7
- Context,
6
+ ToastContextProvider,
8
7
  useToastParams
9
8
  };
@@ -18,8 +18,10 @@ const ToastPositions = {
18
18
  BottomRight: "bottom-right"
19
19
  };
20
20
  const toast = (content, options) => mapping_helpers.createToast((contextProps) => content_helper.wrapInContextProvider(contextProps, content_helper.renderContent(content)), options);
21
+ const update = (id, content, options) => mapping_helpers.updateToast(id, (contextProps) => content_helper.wrapInContextProvider(contextProps, content_helper.renderContent(content)), options);
21
22
  toast.Position = ToastPositions;
22
23
  toast.Variant = ToastVariants;
24
+ toast.update = update;
23
25
  toast.dismiss = mapping_helpers.dismiss;
24
26
  toast.isActive = mapping_helpers.isActive;
25
27
  toast.addChangeListener = mapping_helpers.addChangeListener;
@@ -1,6 +1,6 @@
1
- import type { ToastContent, ToastOptions } from './core.types';
1
+ import { ToastContent, ToastId, ToastOptions } from './core.types';
2
2
  export declare const toast: {
3
- (content: ToastContent, options?: ToastOptions): import("react-toastify").Id;
3
+ (content: ToastContent, options?: ToastOptions): ToastId;
4
4
  Position: {
5
5
  readonly TopLeft: "top-left";
6
6
  readonly TopCenter: "top-center";
@@ -16,11 +16,12 @@ export declare const toast: {
16
16
  readonly Attention: "attention";
17
17
  readonly Danger: "danger";
18
18
  };
19
- dismiss: (id?: import("react-toastify").Id | undefined) => void;
20
- isActive: (id: import("react-toastify").Id) => boolean;
19
+ update: (id: ToastId, content: ToastContent, options?: ToastOptions) => void;
20
+ dismiss: (id?: ToastId | undefined) => void;
21
+ isActive: (id: ToastId) => boolean;
21
22
  addChangeListener: (callback: import("react-toastify/dist/core").OnChangeCallback) => () => void;
22
- notice: (content: ToastContent, options?: Omit<ToastOptions, 'variant'>) => import("react-toastify").Id;
23
- attention: (content: ToastContent, options?: Omit<ToastOptions, 'variant'>) => import("react-toastify").Id;
24
- danger: (content: ToastContent, options?: Omit<ToastOptions, 'variant'>) => import("react-toastify").Id;
25
- success: (content: ToastContent, options?: Omit<ToastOptions, 'variant'>) => import("react-toastify").Id;
23
+ notice: (content: ToastContent, options?: Omit<ToastOptions, 'variant'>) => ToastId;
24
+ attention: (content: ToastContent, options?: Omit<ToastOptions, 'variant'>) => ToastId;
25
+ danger: (content: ToastContent, options?: Omit<ToastOptions, 'variant'>) => ToastId;
26
+ success: (content: ToastContent, options?: Omit<ToastOptions, 'variant'>) => ToastId;
26
27
  };
@@ -1,5 +1,5 @@
1
1
  import { wrapInContextProvider, renderContent } from "./content.helper.js";
2
- import { createToast, dismiss, isActive, addChangeListener } from "./mapping.helpers.js";
2
+ import { createToast, dismiss, isActive, addChangeListener, updateToast } from "./mapping.helpers.js";
3
3
  const ToastVariants = {
4
4
  Notice: "notice",
5
5
  Informative: "informative",
@@ -16,8 +16,10 @@ const ToastPositions = {
16
16
  BottomRight: "bottom-right"
17
17
  };
18
18
  const toast = (content, options) => createToast((contextProps) => wrapInContextProvider(contextProps, renderContent(content)), options);
19
+ const update = (id, content, options) => updateToast(id, (contextProps) => wrapInContextProvider(contextProps, renderContent(content)), options);
19
20
  toast.Position = ToastPositions;
20
21
  toast.Variant = ToastVariants;
22
+ toast.update = update;
21
23
  toast.dismiss = dismiss;
22
24
  toast.isActive = isActive;
23
25
  toast.addChangeListener = addChangeListener;
@@ -1,23 +1,30 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const reactToastify_esm = require("../../node_modules/react-toastify/dist/react-toastify.esm.cjs");
4
- const extractContextProps = (props, options) => ({
5
- ...props.toastProps,
6
- variant: (options == null ? void 0 : options.variant) || "informative"
4
+ const extractContextProps = (props) => ({
5
+ variant: "informative",
6
+ liveRole: "alert",
7
+ ...props.toastProps
8
+ });
9
+ const cleanupOptions = (options) => ({
10
+ ...options,
11
+ type: options == null ? void 0 : options.variant,
12
+ icon: false,
13
+ closeButton: false,
14
+ hideProgressBar: true,
15
+ draggable: false,
16
+ theme: "none",
17
+ role: "group",
18
+ ...(options == null ? void 0 : options.role) ? {
19
+ liveRole: options == null ? void 0 : options.role
20
+ } : {}
21
+ // save real role for inner container, only if specified
22
+ });
23
+ const createToast = (render, options) => reactToastify_esm.toast((props) => render(extractContextProps(props)), cleanupOptions(options));
24
+ const updateToast = (id, render, options) => reactToastify_esm.toast.update(id, {
25
+ render: (props) => render(extractContextProps(props)),
26
+ ...cleanupOptions(options)
7
27
  });
8
- function cleanupOptions(options) {
9
- return options && {
10
- ...options,
11
- type: options.variant,
12
- icon: false,
13
- closeButton: false,
14
- hideProgressBar: true,
15
- draggable: false,
16
- theme: "none"
17
- // use dummy theme (later custom themes can be used)
18
- };
19
- }
20
- const createToast = (render, options) => reactToastify_esm.toast((props) => render(extractContextProps(props, options)), cleanupOptions(options));
21
28
  const {
22
29
  dismiss,
23
30
  isActive
@@ -27,3 +34,4 @@ exports.addChangeListener = addChangeListener;
27
34
  exports.createToast = createToast;
28
35
  exports.dismiss = dismiss;
29
36
  exports.isActive = isActive;
37
+ exports.updateToast = updateToast;
@@ -1,13 +1,15 @@
1
1
  /**
2
2
  * This file maps toastify api to redis-ui api
3
3
  */
4
- /// <reference types="react" />
5
- import { ToastContextProps, ToastOptions } from './mapping.types';
4
+ import { ReactElement } from 'react';
5
+ import { ToastContextProps, ToastId, ToastOptions, ToastUpdateOptions } from './mapping.types';
6
6
  /**
7
7
  * converts parameters to/from toastify and calls toastify toast
8
- * @param render
9
- * @param options
10
8
  */
11
- export declare const createToast: (render: (contextProps: ToastContextProps) => JSX.Element, options?: ToastOptions) => import("react-toastify").Id;
12
- export declare const dismiss: (id?: import("react-toastify").Id | undefined) => void, isActive: (id: import("react-toastify").Id) => boolean;
9
+ export declare const createToast: (render: (contextProps: ToastContextProps) => ReactElement, options?: ToastOptions) => ToastId;
10
+ /**
11
+ * converts parameters to/from toastify and calls toastify update
12
+ */
13
+ export declare const updateToast: (id: ToastId, render: (contextProps: ToastContextProps) => ReactElement, options?: ToastUpdateOptions) => void;
14
+ export declare const dismiss: (id?: ToastId | undefined) => void, isActive: (id: ToastId) => boolean;
13
15
  export declare const addChangeListener: (callback: import("react-toastify/dist/core").OnChangeCallback) => () => void;
@@ -1,21 +1,28 @@
1
1
  import { toast as Q } from "../../node_modules/react-toastify/dist/react-toastify.esm.js";
2
- const extractContextProps = (props, options) => ({
3
- ...props.toastProps,
4
- variant: (options == null ? void 0 : options.variant) || "informative"
2
+ const extractContextProps = (props) => ({
3
+ variant: "informative",
4
+ liveRole: "alert",
5
+ ...props.toastProps
6
+ });
7
+ const cleanupOptions = (options) => ({
8
+ ...options,
9
+ type: options == null ? void 0 : options.variant,
10
+ icon: false,
11
+ closeButton: false,
12
+ hideProgressBar: true,
13
+ draggable: false,
14
+ theme: "none",
15
+ role: "group",
16
+ ...(options == null ? void 0 : options.role) ? {
17
+ liveRole: options == null ? void 0 : options.role
18
+ } : {}
19
+ // save real role for inner container, only if specified
20
+ });
21
+ const createToast = (render, options) => Q((props) => render(extractContextProps(props)), cleanupOptions(options));
22
+ const updateToast = (id, render, options) => Q.update(id, {
23
+ render: (props) => render(extractContextProps(props)),
24
+ ...cleanupOptions(options)
5
25
  });
6
- function cleanupOptions(options) {
7
- return options && {
8
- ...options,
9
- type: options.variant,
10
- icon: false,
11
- closeButton: false,
12
- hideProgressBar: true,
13
- draggable: false,
14
- theme: "none"
15
- // use dummy theme (later custom themes can be used)
16
- };
17
- }
18
- const createToast = (render, options) => Q((props) => render(extractContextProps(props, options)), cleanupOptions(options));
19
26
  const {
20
27
  dismiss,
21
28
  isActive
@@ -25,5 +32,6 @@ export {
25
32
  addChangeListener,
26
33
  createToast,
27
34
  dismiss,
28
- isActive
35
+ isActive,
36
+ updateToast
29
37
  };
@@ -4,12 +4,11 @@
4
4
  import { RefAttributes } from 'react';
5
5
  import { ToastContainerProps as RcToastContainerProps, ToastContentProps as RcToastContentProps, ToastOptions as RcToastOptions, ToastPosition as RcToastPosition } from 'react-toastify';
6
6
  import { SemanticVariant } from '../../Banner/components/BannerSemanticComponents';
7
- declare const pickToastOptions: readonly ["pauseOnHover", "closeOnClick", "autoClose", "position", "role", "rtl", "containerId", "transition", "toastId", "delay", "onClose"];
8
- type PickToastOptions = (typeof pickToastOptions)[number];
9
- declare const pickToastProps: readonly ["pauseOnHover", "closeOnClick", "autoClose", "position", "role", "rtl", "containerId", "transition", "toastId", "delay", "onClose", "closeToast"];
10
- type PickToastProps = (typeof pickToastProps)[number];
11
- declare const pickToasterProps: readonly ["pauseOnHover", "closeOnClick", "autoClose", "position", "role", "rtl", "containerId", "transition", "newestOnTop", "limit", "style"];
12
- type PickToasterProps = (typeof pickToasterProps)[number];
7
+ export type { Id as ToastId } from 'react-toastify';
8
+ type PickCommonOptions = 'pauseOnHover' | 'closeOnClick' | 'autoClose' | 'position' | 'role' | 'rtl' | 'containerId' | 'transition';
9
+ type PickToastOptions = PickCommonOptions | 'toastId' | 'delay' | 'onClose';
10
+ type PickToastProps = PickToastOptions | 'closeToast';
11
+ type PickToasterProps = PickCommonOptions | 'newestOnTop' | 'limit' | 'style';
13
12
  export type ToasterProps = Pick<RcToastContainerProps, PickToasterProps> & RefAttributes<HTMLDivElement> & {
14
13
  className?: string;
15
14
  };
@@ -18,6 +17,8 @@ type ToastOverriddenOptions = {
18
17
  variant: ToastVariant;
19
18
  };
20
19
  export type ToastOptions = Pick<RcToastOptions, PickToastOptions> & Partial<ToastOverriddenOptions>;
21
- export type ToastContextProps = Partial<Pick<RcToastContentProps['toastProps'], PickToastProps>> & ToastOverriddenOptions;
20
+ export type ToastUpdateOptions = ToastOptions;
21
+ export type ToastContextProps = Partial<Pick<RcToastContentProps['toastProps'], PickToastProps>> & ToastOverriddenOptions & {
22
+ liveRole: string;
23
+ };
22
24
  export type ToastPosition = RcToastPosition;
23
- export {};
@@ -3,18 +3,18 @@ declare const Tooltip: (({ children, openDelayDuration, open, onOpenChange, defa
3
3
  Compose: ({ children, openDelayDuration, open, disabled, onOpenChange, defaultOpen, interactive }: import("./components/Compose/Compose.types").TooltipComposeProps) => import("react/jsx-runtime").JSX.Element;
4
4
  Content: (({ content, ...composeProps }: import("./components/Content/Content.types").TooltipContentProps) => import("react/jsx-runtime").JSX.Element | null) & {
5
5
  Compose: ({ children, backgroundColor, maxWidth, placement, sideOffset, portal, ...restProps }: import("./components/Content/components/Compose/Compose.types").ComposeProps) => import("react/jsx-runtime").JSX.Element;
6
- Text: (props: import("../Typography/components/Body/Body.types").BodyProps) => import("react/jsx-runtime").JSX.Element;
6
+ Text: (props: import("..").TypographyBodyProps) => import("react/jsx-runtime").JSX.Element;
7
7
  };
8
8
  Trigger: ({ withButton, ...restProps }: import("./components/Trigger/Trigger.types").TooltipTriggerProps) => import("react/jsx-runtime").JSX.Element;
9
9
  Card: (({ text, title, actionButtonText, actionButtonHandler, link, linkText, ...composeProps }: import("./components/TooltipCard").TooltipCardProps) => import("react/jsx-runtime").JSX.Element) & {
10
10
  Compose: ({ children, ...restProps }: import("./components/TooltipCard/components/Compose/Compose.types").ComposeProps) => import("react/jsx-runtime").JSX.Element;
11
11
  Header: ((props: import("../Popover/components/Content/components/Header/Header.types").ContentHeaderProps) => import("react/jsx-runtime").JSX.Element) & {
12
12
  Compose: (props: import("../Popover/components/Content/components/Header/components/Compose/Compose.types").ContentHeaderComposeProps) => import("react/jsx-runtime").JSX.Element;
13
- Title: ({ children, ...restProps }: import("../Typography/components/Heading/Heading.types").HeadingProps) => import("react/jsx-runtime").JSX.Element;
13
+ Title: ({ children, ...restProps }: import("..").TypographyHeadingProps) => import("react/jsx-runtime").JSX.Element;
14
14
  };
15
15
  Body: (({ text, ...restProps }: import("../Popover/components/Content/components/Body/Body.types").ContentBodyProps) => import("react/jsx-runtime").JSX.Element) & {
16
16
  Compose: (props: import("../Popover/components/Content/components/Body/components/Compose/Compose.types").ContentBodyComposeProps) => import("react/jsx-runtime").JSX.Element;
17
- Text: (props: import("../Typography/components/Body/Body.types").BodyProps) => import("react/jsx-runtime").JSX.Element;
17
+ Text: (props: import("..").TypographyBodyProps) => import("react/jsx-runtime").JSX.Element;
18
18
  };
19
19
  Footer: (({ actionButtonText, actionButtonHandler, link, linkText, ...restProps }: import("../Popover/components/Content/components/Footer/Footer.types").ContentFooterProps) => import("react/jsx-runtime").JSX.Element | null) & {
20
20
  Compose: (props: import("../Popover/components/Content/components/Footer/components/Compose/Compose.types").ContentFooterComposeProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { TooltipComposeProps } from './components/Compose/Compose.types';
2
2
  import { TooltipContentProps } from './components/Content/Content.types';
3
3
  import { TooltipTriggerProps } from './components/Trigger/Trigger.types';
4
- export interface TooltipProps extends Omit<TooltipContentProps, 'backgroundColor'>, Omit<TooltipComposeProps, 'children'>, TooltipTriggerProps {
4
+ export interface TooltipProps extends TooltipContentProps, Omit<TooltipComposeProps, 'children'>, TooltipTriggerProps {
5
5
  }
@@ -1,6 +1,6 @@
1
1
  import { TooltipContentProps } from './Content.types';
2
2
  declare const Content: (({ content, ...composeProps }: TooltipContentProps) => import("react/jsx-runtime").JSX.Element | null) & {
3
3
  Compose: ({ children, backgroundColor, maxWidth, placement, sideOffset, portal, ...restProps }: import("./components/Compose/Compose.types").ComposeProps) => import("react/jsx-runtime").JSX.Element;
4
- Text: (props: import("../../../Typography/components/Body/Body.types").BodyProps) => import("react/jsx-runtime").JSX.Element;
4
+ Text: (props: import("../../..").TypographyBodyProps) => import("react/jsx-runtime").JSX.Element;
5
5
  };
6
6
  export default Content;
@@ -1,3 +1,3 @@
1
- import { BodyProps } from '../../../../../Typography/components/Body/Body.types';
2
- declare const Text: (props: BodyProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { TypographyBodyProps } from '../../../../../Typography';
2
+ declare const Text: (props: TypographyBodyProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Text;
@@ -1 +1 @@
1
- export declare const Text: import("styled-components").StyledComponent<({ size, variant, color, component, ellipsis, ...restProps }: import("../../../../../Typography/components/Body/Body.types").BodyProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
1
+ export declare const Text: import("styled-components").StyledComponent<({ size, variant, color, component, ellipsis, ...restProps }: import("../../../../../Typography").TypographyBodyProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
@@ -3,11 +3,11 @@ declare const TooltipCard: (({ text, title, actionButtonText, actionButtonHandle
3
3
  Compose: ({ children, ...restProps }: import("./components/Compose/Compose.types").ComposeProps) => import("react/jsx-runtime").JSX.Element;
4
4
  Header: ((props: import("../../../Popover/components/Content/components/Header/Header.types").ContentHeaderProps) => import("react/jsx-runtime").JSX.Element) & {
5
5
  Compose: (props: import("../../../Popover/components/Content/components/Header/components/Compose/Compose.types").ContentHeaderComposeProps) => import("react/jsx-runtime").JSX.Element;
6
- Title: ({ children, ...restProps }: import("../../../Typography/components/Heading/Heading.types").HeadingProps) => import("react/jsx-runtime").JSX.Element;
6
+ Title: ({ children, ...restProps }: import("../../..").TypographyHeadingProps) => import("react/jsx-runtime").JSX.Element;
7
7
  };
8
8
  Body: (({ text, ...restProps }: import("../../../Popover/components/Content/components/Body/Body.types").ContentBodyProps) => import("react/jsx-runtime").JSX.Element) & {
9
9
  Compose: (props: import("../../../Popover/components/Content/components/Body/components/Compose/Compose.types").ContentBodyComposeProps) => import("react/jsx-runtime").JSX.Element;
10
- Text: (props: import("../../../Typography/components/Body/Body.types").BodyProps) => import("react/jsx-runtime").JSX.Element;
10
+ Text: (props: import("../../..").TypographyBodyProps) => import("react/jsx-runtime").JSX.Element;
11
11
  };
12
12
  Footer: (({ actionButtonText, actionButtonHandler, link, linkText, ...restProps }: import("../../../Popover/components/Content/components/Footer/Footer.types").ContentFooterProps) => import("react/jsx-runtime").JSX.Element | null) & {
13
13
  Compose: (props: import("../../../Popover/components/Content/components/Footer/components/Compose/Compose.types").ContentFooterComposeProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { ContentHeaderProps } from '../../../../../Popover/components/Content/components/Header/Header.types';
2
2
  declare const TooltipHeader: ((props: ContentHeaderProps) => import("react/jsx-runtime").JSX.Element) & {
3
3
  Compose: (props: import("../../../../../Popover/components/Content/components/Header/components/Compose/Compose.types").ContentHeaderComposeProps) => import("react/jsx-runtime").JSX.Element;
4
- Title: ({ children, ...restProps }: import("../../../../../Typography/components/Heading/Heading.types").HeadingProps) => import("react/jsx-runtime").JSX.Element;
4
+ Title: ({ children, ...restProps }: import("../../../../..").TypographyHeadingProps) => import("react/jsx-runtime").JSX.Element;
5
5
  };
6
6
  export default TooltipHeader;
@@ -1,3 +1,3 @@
1
1
  export declare const FullWidthCheckbox: import("styled-components").StyledComponent<({ defaultChecked, checked, onCheckedChange, required, disabled, id, variant, ...restProps }: import("../../../../../Checkbox/components/Compose/Compose.types").CheckboxComposeProps & import("../../../../../Checkbox/components/Compose/Compose.types").RestCheckboxComposeProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
2
2
  export declare const FullWidthCheckboxLabel: import("styled-components").StyledComponent<({ children, ...restProps }: import("../../../../../Checkbox/components/Label/Label.types").CheckboxLabelProps) => import("react/jsx-runtime").JSX.Element | null, any, {}, never>;
3
- export declare const TextEllipsis: import("styled-components").StyledComponent<({ size, variant, color, component, ellipsis, ...restProps }: import("../../../../../Typography/components/Body/Body.types").BodyProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
3
+ export declare const TextEllipsis: import("styled-components").StyledComponent<({ size, variant, color, component, ellipsis, ...restProps }: import("../../../../../Typography").TypographyBodyProps) => import("react/jsx-runtime").JSX.Element, any, {}, never>;
@@ -1,7 +1,7 @@
1
1
  import _styled from "styled-components";
2
2
  import { useTheme } from "@redislabsdev/redis-ui-styles";
3
- import IconButtonComponent from "../../../../../Button/IconButton/IconButton.js";
4
- const CustomIconButton = _styled(IconButtonComponent).withConfig({
3
+ import IconButton from "../../../../../Button/IconButton/IconButton.js";
4
+ const CustomIconButton = _styled(IconButton).withConfig({
5
5
  displayName: "ExpandButtonstyle__CustomIconButton",
6
6
  componentId: "RedisUI__sc-xgirc0-0"
7
7
  })(["color:", ";flex-shrink:0;"], () => useTheme().components.treeView.arrow.iconColor);
@@ -1,6 +1,6 @@
1
1
  declare const Typography: {
2
- Heading: ({ size, ellipsis, color, ...restProps }: import("./components/Heading/Heading.types").HeadingProps) => import("react/jsx-runtime").JSX.Element;
3
- Body: ({ size, variant, color, component, ellipsis, ...restProps }: import("./components/Body/Body.types").BodyProps) => import("react/jsx-runtime").JSX.Element;
4
- Code: ({ size, variant, color, ellipsis, ...restProps }: import("./components/Code/Code.types").CodeProps) => import("react/jsx-runtime").JSX.Element;
2
+ Heading: ({ size, ellipsis, color, variant, component, ...restProps }: import(".").TypographyHeadingProps) => import("react/jsx-runtime").JSX.Element;
3
+ Body: ({ size, variant, color, component, ellipsis, ...restProps }: import(".").TypographyBodyProps) => import("react/jsx-runtime").JSX.Element;
4
+ Code: ({ size, variant, color, ellipsis, ...restProps }: import(".").TypographyCodeProps) => import("react/jsx-runtime").JSX.Element;
5
5
  };
6
6
  export default Typography;
@@ -0,0 +1 @@
1
+ export type TypographyColor = 'primary' | 'secondary';
@@ -1,3 +1,3 @@
1
- import { BodyProps } from './Body.types';
2
- declare const Body: ({ size, variant, color, component, ellipsis, ...restProps }: BodyProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { TypographyBodyProps } from './Body.types';
2
+ declare const Body: ({ size, variant, color, component, ellipsis, ...restProps }: TypographyBodyProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Body;
@@ -12,20 +12,12 @@ const useBodyStyles = ({
12
12
  } = {}) => {
13
13
  const theme = redisUiStyles.useTheme();
14
14
  const bodyTheme = theme.components.typography.body;
15
- const getColorValue = (color) => {
16
- if (!color) return "inherit";
17
- if (color === "primary") return theme.components.typography.colors.primary;
18
- if (color === "secondary") return theme.components.typography.colors.secondary;
19
- return "inherit";
20
- };
21
15
  return _styled.css`
22
16
  font-family: ${bodyTheme.fontFamily};
23
- font-size: ${bodyTheme.fontSizes[$size]};
17
+ font-size: ${$size === "auto" ? "inherit" : bodyTheme.fontSizes[$size]};
24
18
  font-weight: ${bodyTheme.fontWeight[$variant]};
25
19
  font-style: ${bodyTheme.fontStyle[$variant]};
26
- ${$color && _styled.css`
27
- color: ${getColorValue($color)};
28
- `}
20
+ color: ${$color && theme.components.typography.colors[$color] || "unset"};
29
21
  ${$ellipsis && _styled.css`
30
22
  overflow: hidden;
31
23
  text-overflow: ellipsis;
@@ -1,3 +1,10 @@
1
- import { MapProps } from './Body.types';
1
+ import { HTMLAttributes } from 'react';
2
+ import { TypographyBodyProps } from './Body.types';
3
+ export interface MapProps extends HTMLAttributes<HTMLElement> {
4
+ $size?: TypographyBodyProps['size'];
5
+ $variant?: TypographyBodyProps['variant'];
6
+ $ellipsis?: boolean;
7
+ $color?: TypographyBodyProps['color'];
8
+ }
2
9
  export declare const useBodyStyles: ({ $size, $variant, $ellipsis, $color }?: MapProps) => import("styled-components").FlattenSimpleInterpolation;
3
10
  export declare const Body: import("styled-components").StyledComponent<"span", any, MapProps, never>;
@@ -8,20 +8,12 @@ const useBodyStyles = ({
8
8
  } = {}) => {
9
9
  const theme = useTheme();
10
10
  const bodyTheme = theme.components.typography.body;
11
- const getColorValue = (color) => {
12
- if (!color) return "inherit";
13
- if (color === "primary") return theme.components.typography.colors.primary;
14
- if (color === "secondary") return theme.components.typography.colors.secondary;
15
- return "inherit";
16
- };
17
11
  return css`
18
12
  font-family: ${bodyTheme.fontFamily};
19
- font-size: ${bodyTheme.fontSizes[$size]};
13
+ font-size: ${$size === "auto" ? "inherit" : bodyTheme.fontSizes[$size]};
20
14
  font-weight: ${bodyTheme.fontWeight[$variant]};
21
15
  font-style: ${bodyTheme.fontStyle[$variant]};
22
- ${$color && css`
23
- color: ${getColorValue($color)};
24
- `}
16
+ color: ${$color && theme.components.typography.colors[$color] || "unset"};
25
17
  ${$ellipsis && css`
26
18
  overflow: hidden;
27
19
  text-overflow: ellipsis;
@@ -1,20 +1,14 @@
1
1
  import React, { HTMLAttributes } from 'react';
2
2
  import { EllipsisTooltipParams } from '../../hooks/useEllipsisTooltip';
3
- export type BodySizesType = 'XL' | 'L' | 'M' | 'S' | 'XS';
4
- export type VariantType = 'regular' | 'semiBold' | 'italic';
5
- export type ComponentType = 'p' | 'span' | 'div';
6
- export type ColorType = 'primary' | 'secondary';
7
- export interface BodyProps extends Omit<HTMLAttributes<HTMLElement>, 'children' | 'color'>, Pick<EllipsisTooltipParams, 'tooltipOnEllipsis'> {
3
+ import { TypographyColor } from '../../Typography.types';
4
+ export type TypographyBodySize = 'XL' | 'L' | 'M' | 'S' | 'XS' | 'auto';
5
+ export type TypographyBodyVariant = 'regular' | 'semiBold' | 'italic';
6
+ export type TypographyBodyComponent = 'p' | 'span' | 'div';
7
+ export interface TypographyBodyProps extends Omit<HTMLAttributes<HTMLElement>, 'children' | 'color'>, Pick<EllipsisTooltipParams, 'tooltipOnEllipsis'> {
8
8
  children: React.ReactNode;
9
- component?: ComponentType;
10
- size?: BodySizesType;
11
- variant?: VariantType;
9
+ component?: TypographyBodyComponent;
10
+ size?: TypographyBodySize;
11
+ variant?: TypographyBodyVariant;
12
12
  ellipsis?: boolean;
13
- color?: ColorType;
14
- }
15
- export interface MapProps extends HTMLAttributes<HTMLElement> {
16
- $size?: BodyProps['size'];
17
- $variant?: BodyProps['variant'];
18
- $ellipsis?: boolean;
19
- $color?: BodyProps['color'];
13
+ color?: TypographyColor;
20
14
  }
@@ -1,3 +1,3 @@
1
- import { CodeProps } from './Code.types';
2
- declare const Code: ({ size, variant, color, ellipsis, ...restProps }: CodeProps) => import("react/jsx-runtime").JSX.Element;
1
+ import { TypographyCodeProps } from './Code.types';
2
+ declare const Code: ({ size, variant, color, ellipsis, ...restProps }: TypographyCodeProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Code;
@@ -12,19 +12,11 @@ const useCodeStyles = ({
12
12
  } = {}) => {
13
13
  const theme = redisUiStyles.useTheme();
14
14
  const codeTheme = theme.components.typography.code;
15
- const getColorValue = (color) => {
16
- if (!color) return "inherit";
17
- if (color === "primary") return theme.components.typography.colors.primary;
18
- if (color === "secondary") return theme.components.typography.colors.secondary;
19
- return "inherit";
20
- };
21
15
  return _styled.css`
22
16
  font-family: ${codeTheme.fontFamily};
23
17
  font-size: ${codeTheme.fontSizes[$size]};
24
18
  font-weight: ${codeTheme.fontWeight[$variant]};
25
- ${$color && _styled.css`
26
- color: ${getColorValue($color)};
27
- `}
19
+ color: ${$color && theme.components.typography.colors[$color] || "unset"};
28
20
  ${$ellipsis && _styled.css`
29
21
  overflow: hidden;
30
22
  text-overflow: ellipsis;
@@ -1,2 +1,9 @@
1
- import { MapProps } from './Code.types';
1
+ import { HTMLAttributes } from 'react';
2
+ import { TypographyCodeProps } from './Code.types';
3
+ export interface MapProps extends HTMLAttributes<HTMLElement> {
4
+ $size?: TypographyCodeProps['size'];
5
+ $variant?: TypographyCodeProps['variant'];
6
+ $ellipsis?: boolean;
7
+ $color?: TypographyCodeProps['color'];
8
+ }
2
9
  export declare const Code: import("styled-components").StyledComponent<"code", any, MapProps, never>;
@@ -8,19 +8,11 @@ const useCodeStyles = ({
8
8
  } = {}) => {
9
9
  const theme = useTheme();
10
10
  const codeTheme = theme.components.typography.code;
11
- const getColorValue = (color) => {
12
- if (!color) return "inherit";
13
- if (color === "primary") return theme.components.typography.colors.primary;
14
- if (color === "secondary") return theme.components.typography.colors.secondary;
15
- return "inherit";
16
- };
17
11
  return css`
18
12
  font-family: ${codeTheme.fontFamily};
19
13
  font-size: ${codeTheme.fontSizes[$size]};
20
14
  font-weight: ${codeTheme.fontWeight[$variant]};
21
- ${$color && css`
22
- color: ${getColorValue($color)};
23
- `}
15
+ color: ${$color && theme.components.typography.colors[$color] || "unset"};
24
16
  ${$ellipsis && css`
25
17
  overflow: hidden;
26
18
  text-overflow: ellipsis;
@@ -1,18 +1,12 @@
1
- import React, { HTMLAttributes } from 'react';
1
+ import React from 'react';
2
2
  import { EllipsisTooltipParams } from '../../hooks/useEllipsisTooltip';
3
- export type CodeSizeType = 'S' | 'M' | 'L';
4
- export type CodeVariantType = 'regular' | 'semiBold';
5
- export type ColorType = 'primary' | 'secondary';
6
- export interface CodeProps extends Omit<React.HTMLAttributes<HTMLElement>, 'children' | 'color'>, Pick<EllipsisTooltipParams, 'tooltipOnEllipsis'> {
3
+ import { TypographyColor } from '../../Typography.types';
4
+ export type TypographyCodeSize = 'S' | 'M' | 'L';
5
+ export type TypographyCodeVariant = 'regular' | 'semiBold';
6
+ export interface TypographyCodeProps extends Omit<React.HTMLAttributes<HTMLElement>, 'children' | 'color'>, Pick<EllipsisTooltipParams, 'tooltipOnEllipsis'> {
7
7
  children: React.ReactNode;
8
- size?: CodeSizeType;
9
- variant?: CodeVariantType;
8
+ size?: TypographyCodeSize;
9
+ variant?: TypographyCodeVariant;
10
10
  ellipsis?: boolean;
11
- color?: ColorType;
12
- }
13
- export interface MapProps extends HTMLAttributes<HTMLElement> {
14
- $size?: CodeProps['size'];
15
- $variant?: CodeProps['variant'];
16
- $ellipsis?: boolean;
17
- $color?: CodeProps['color'];
11
+ color?: TypographyColor;
18
12
  }