@astral/ui 4.92.3 → 4.93.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 (231) hide show
  1. package/components/BottomDrawer/index.d.ts +1 -1
  2. package/components/BottomDrawer/index.js +1 -1
  3. package/components/ClickAwayListener/ClickAwayListener.d.ts +1 -1
  4. package/components/ClickAwayListener/ClickAwayListener.js +8 -2
  5. package/components/Radio/Radio.js +1 -1
  6. package/components/Radio/constants.d.ts +3 -0
  7. package/components/Radio/constants.js +3 -0
  8. package/components/Radio/index.d.ts +1 -1
  9. package/components/Radio/index.js +1 -1
  10. package/components/Radio/styles.js +9 -9
  11. package/components/Tree/MultipleTreeList/MultipleTreeList.js +2 -2
  12. package/components/Tree/MultipleTreeList/TreeItem/TreeItem.js +4 -7
  13. package/components/Tree/MultipleTreeList/TreeItem/styles.d.ts +1 -17
  14. package/components/Tree/MultipleTreeList/TreeItem/styles.js +19 -2
  15. package/components/Tree/MultipleTreeList/TreeItem/useLogic/useLogic.d.ts +4 -1
  16. package/components/Tree/MultipleTreeList/TreeItem/useLogic/useLogic.js +8 -2
  17. package/components/Tree/MultipleTreeList/styles.d.ts +4 -0
  18. package/components/Tree/MultipleTreeList/styles.js +25 -0
  19. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanel.d.ts +2 -0
  20. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanel.js +11 -0
  21. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/MobileSlidePanelContent.d.ts +2 -0
  22. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/MobileSlidePanelContent.js +50 -0
  23. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/index.d.ts +1 -0
  24. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/index.js +1 -0
  25. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/styles.d.ts +404 -0
  26. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/styles.js +172 -0
  27. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/types.d.ts +11 -0
  28. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/types.js +1 -0
  29. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/hooks/index.d.ts +3 -0
  30. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/hooks/index.js +3 -0
  31. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/hooks/useDelayedUnmount/index.d.ts +1 -0
  32. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/hooks/useDelayedUnmount/index.js +1 -0
  33. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/hooks/useDelayedUnmount/useDelayedUnmount.d.ts +11 -0
  34. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/hooks/useDelayedUnmount/useDelayedUnmount.js +18 -0
  35. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/hooks/usePanelHeader/index.d.ts +1 -0
  36. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/hooks/usePanelHeader/index.js +1 -0
  37. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/hooks/usePanelHeader/usePanelHeader.d.ts +24 -0
  38. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/hooks/usePanelHeader/usePanelHeader.js +50 -0
  39. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/hooks/useRegisterClose/index.d.ts +1 -0
  40. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/hooks/useRegisterClose/index.js +1 -0
  41. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/hooks/useRegisterClose/useRegisterClose.d.ts +13 -0
  42. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/hooks/useRegisterClose/useRegisterClose.js +17 -0
  43. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/index.d.ts +1 -0
  44. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/index.js +1 -0
  45. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/useLogic.d.ts +19 -0
  46. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/useLogic.js +39 -0
  47. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContext/MobileSlidePanelContext.d.ts +13 -0
  48. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContext/MobileSlidePanelContext.js +6 -0
  49. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContext/MobileSlidePanelContextProvider/MobileSlidePanelContextProvider.d.ts +7 -0
  50. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContext/MobileSlidePanelContextProvider/MobileSlidePanelContextProvider.js +12 -0
  51. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContext/MobileSlidePanelContextProvider/index.d.ts +1 -0
  52. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContext/MobileSlidePanelContextProvider/index.js +1 -0
  53. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContext/index.d.ts +2 -0
  54. package/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContext/index.js +2 -0
  55. package/components/Tree/TreeItem/MobileSlidePanel/constants.d.ts +11 -0
  56. package/components/Tree/TreeItem/MobileSlidePanel/constants.js +12 -0
  57. package/components/Tree/TreeItem/MobileSlidePanel/index.d.ts +2 -0
  58. package/components/Tree/TreeItem/MobileSlidePanel/index.js +2 -0
  59. package/components/Tree/TreeItem/MobileSlidePanel/types.d.ts +49 -0
  60. package/components/Tree/TreeItem/MobileSlidePanel/types.js +1 -0
  61. package/components/Tree/TreeItem/MobileSlidePanel/useLogic/hooks/index.d.ts +1 -0
  62. package/components/Tree/TreeItem/MobileSlidePanel/useLogic/hooks/index.js +1 -0
  63. package/components/Tree/TreeItem/MobileSlidePanel/useLogic/hooks/usePanelStack/index.d.ts +1 -0
  64. package/components/Tree/TreeItem/MobileSlidePanel/useLogic/hooks/usePanelStack/index.js +1 -0
  65. package/components/Tree/TreeItem/MobileSlidePanel/useLogic/hooks/usePanelStack/usePanelStack.d.ts +14 -0
  66. package/components/Tree/TreeItem/MobileSlidePanel/useLogic/hooks/usePanelStack/usePanelStack.js +62 -0
  67. package/components/Tree/TreeItem/MobileSlidePanel/useLogic/index.d.ts +1 -0
  68. package/components/Tree/TreeItem/MobileSlidePanel/useLogic/index.js +1 -0
  69. package/components/Tree/TreeItem/MobileSlidePanel/useLogic/useLogic.d.ts +9 -0
  70. package/components/Tree/TreeItem/MobileSlidePanel/useLogic/useLogic.js +11 -0
  71. package/components/Tree/TreeItem/TreeItem.d.ts +2 -1
  72. package/components/Tree/TreeItem/TreeItem.js +49 -9
  73. package/components/Tree/TreeItem/constants.d.ts +9 -0
  74. package/components/Tree/TreeItem/constants.js +9 -0
  75. package/components/Tree/TreeItem/styles.d.ts +4 -13
  76. package/components/Tree/TreeItem/styles.js +153 -39
  77. package/components/Tree/TreeItem/types.d.ts +18 -0
  78. package/components/Tree/TreeItem/useLogic/useLogic.d.ts +21 -7
  79. package/components/Tree/TreeItem/useLogic/useLogic.js +40 -2
  80. package/components/Tree/TreeList/TreeItem/TreeItem.js +5 -5
  81. package/components/Tree/TreeList/TreeItem/styles.d.ts +19 -0
  82. package/components/Tree/TreeList/TreeItem/styles.js +36 -0
  83. package/components/Tree/TreeList/TreeItem/useLogic/useLogic.d.ts +6 -0
  84. package/components/Tree/TreeList/TreeItem/useLogic/useLogic.js +11 -0
  85. package/components/Tree/TreeList/TreeList.js +2 -2
  86. package/components/Tree/TreeList/styles.d.ts +4 -0
  87. package/components/Tree/TreeList/styles.js +26 -0
  88. package/components/TreeAsyncAutocomplete/OptionsModal/NoData/styles.js +5 -0
  89. package/components/TreeAsyncAutocomplete/OptionsModal/OptionsModal.js +2 -3
  90. package/components/TreeAsyncAutocomplete/OptionsModal/styles.d.ts +17 -0
  91. package/components/TreeAsyncAutocomplete/OptionsModal/styles.js +75 -5
  92. package/components/TreeAutocomplete/OptionsModal/NoData/styles.js +5 -0
  93. package/components/TreeAutocomplete/OptionsModal/OptionsModal.js +2 -3
  94. package/components/TreeAutocomplete/OptionsModal/styles.d.ts +17 -0
  95. package/components/TreeAutocomplete/OptionsModal/styles.js +36 -0
  96. package/components/TreeLikeAsyncAutocomplete/OptionsModal/NoData/styles.js +5 -0
  97. package/components/TreeLikeAsyncAutocomplete/OptionsModal/OptionsModal.js +5 -9
  98. package/components/TreeLikeAsyncAutocomplete/OptionsModal/styles.d.ts +35 -0
  99. package/components/TreeLikeAsyncAutocomplete/OptionsModal/styles.js +96 -5
  100. package/components/TreeLikeAsyncAutocomplete/OptionsModal/useLogic/useLogic.d.ts +1 -0
  101. package/components/TreeLikeAsyncAutocomplete/OptionsModal/useLogic/useLogic.js +17 -2
  102. package/components/TreeLikeAutocomplete/OptionsModal/NoData/styles.js +5 -0
  103. package/components/TreeLikeAutocomplete/OptionsModal/OptionsModal.js +5 -6
  104. package/components/TreeLikeAutocomplete/OptionsModal/styles.d.ts +27 -0
  105. package/components/TreeLikeAutocomplete/OptionsModal/styles.js +44 -1
  106. package/components/TreeLikeAutocomplete/OptionsModal/useLogic/useLogic.d.ts +1 -0
  107. package/components/TreeLikeAutocomplete/OptionsModal/useLogic/useLogic.js +14 -1
  108. package/components/TreeLikeList/TreeItem/TreeItem.js +11 -4
  109. package/components/TreeLikeList/TreeItem/styles.d.ts +14 -17
  110. package/components/TreeLikeList/TreeItem/styles.js +48 -1
  111. package/components/TreeLikeList/TreeItem/useLogic/useLogic.d.ts +8 -2
  112. package/components/TreeLikeList/TreeItem/useLogic/useLogic.js +35 -13
  113. package/components/TreeLikeList/TreeLikeList.js +2 -2
  114. package/components/TreeLikeList/styles.d.ts +4 -0
  115. package/components/TreeLikeList/styles.js +25 -0
  116. package/node/components/BottomDrawer/index.d.ts +1 -1
  117. package/node/components/BottomDrawer/index.js +3 -1
  118. package/node/components/ClickAwayListener/ClickAwayListener.d.ts +1 -1
  119. package/node/components/ClickAwayListener/ClickAwayListener.js +8 -2
  120. package/node/components/Radio/Radio.js +1 -1
  121. package/node/components/Radio/constants.d.ts +3 -0
  122. package/node/components/Radio/constants.js +4 -1
  123. package/node/components/Radio/index.d.ts +1 -1
  124. package/node/components/Radio/index.js +3 -1
  125. package/node/components/Radio/styles.js +8 -8
  126. package/node/components/Tree/MultipleTreeList/MultipleTreeList.js +1 -1
  127. package/node/components/Tree/MultipleTreeList/TreeItem/TreeItem.js +4 -7
  128. package/node/components/Tree/MultipleTreeList/TreeItem/styles.d.ts +1 -17
  129. package/node/components/Tree/MultipleTreeList/TreeItem/styles.js +18 -1
  130. package/node/components/Tree/MultipleTreeList/TreeItem/useLogic/useLogic.d.ts +4 -1
  131. package/node/components/Tree/MultipleTreeList/TreeItem/useLogic/useLogic.js +8 -2
  132. package/node/components/Tree/MultipleTreeList/styles.d.ts +4 -0
  133. package/node/components/Tree/MultipleTreeList/styles.js +26 -1
  134. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanel.d.ts +2 -0
  135. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanel.js +15 -0
  136. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/MobileSlidePanelContent.d.ts +2 -0
  137. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/MobileSlidePanelContent.js +54 -0
  138. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/index.d.ts +1 -0
  139. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/index.js +17 -0
  140. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/styles.d.ts +404 -0
  141. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/styles.js +175 -0
  142. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/types.d.ts +11 -0
  143. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/types.js +2 -0
  144. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/hooks/index.d.ts +3 -0
  145. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/hooks/index.js +19 -0
  146. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/hooks/useDelayedUnmount/index.d.ts +1 -0
  147. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/hooks/useDelayedUnmount/index.js +17 -0
  148. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/hooks/useDelayedUnmount/useDelayedUnmount.d.ts +11 -0
  149. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/hooks/useDelayedUnmount/useDelayedUnmount.js +22 -0
  150. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/hooks/usePanelHeader/index.d.ts +1 -0
  151. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/hooks/usePanelHeader/index.js +17 -0
  152. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/hooks/usePanelHeader/usePanelHeader.d.ts +24 -0
  153. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/hooks/usePanelHeader/usePanelHeader.js +54 -0
  154. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/hooks/useRegisterClose/index.d.ts +1 -0
  155. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/hooks/useRegisterClose/index.js +17 -0
  156. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/hooks/useRegisterClose/useRegisterClose.d.ts +13 -0
  157. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/hooks/useRegisterClose/useRegisterClose.js +21 -0
  158. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/index.d.ts +1 -0
  159. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/index.js +17 -0
  160. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/useLogic.d.ts +19 -0
  161. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContent/useLogic/useLogic.js +43 -0
  162. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContext/MobileSlidePanelContext.d.ts +13 -0
  163. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContext/MobileSlidePanelContext.js +9 -0
  164. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContext/MobileSlidePanelContextProvider/MobileSlidePanelContextProvider.d.ts +7 -0
  165. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContext/MobileSlidePanelContextProvider/MobileSlidePanelContextProvider.js +16 -0
  166. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContext/MobileSlidePanelContextProvider/index.d.ts +1 -0
  167. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContext/MobileSlidePanelContextProvider/index.js +17 -0
  168. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContext/index.d.ts +2 -0
  169. package/node/components/Tree/TreeItem/MobileSlidePanel/MobileSlidePanelContext/index.js +18 -0
  170. package/node/components/Tree/TreeItem/MobileSlidePanel/constants.d.ts +11 -0
  171. package/node/components/Tree/TreeItem/MobileSlidePanel/constants.js +15 -0
  172. package/node/components/Tree/TreeItem/MobileSlidePanel/index.d.ts +2 -0
  173. package/node/components/Tree/TreeItem/MobileSlidePanel/index.js +18 -0
  174. package/node/components/Tree/TreeItem/MobileSlidePanel/types.d.ts +49 -0
  175. package/node/components/Tree/TreeItem/MobileSlidePanel/types.js +2 -0
  176. package/node/components/Tree/TreeItem/MobileSlidePanel/useLogic/hooks/index.d.ts +1 -0
  177. package/node/components/Tree/TreeItem/MobileSlidePanel/useLogic/hooks/index.js +17 -0
  178. package/node/components/Tree/TreeItem/MobileSlidePanel/useLogic/hooks/usePanelStack/index.d.ts +1 -0
  179. package/node/components/Tree/TreeItem/MobileSlidePanel/useLogic/hooks/usePanelStack/index.js +17 -0
  180. package/node/components/Tree/TreeItem/MobileSlidePanel/useLogic/hooks/usePanelStack/usePanelStack.d.ts +14 -0
  181. package/node/components/Tree/TreeItem/MobileSlidePanel/useLogic/hooks/usePanelStack/usePanelStack.js +66 -0
  182. package/node/components/Tree/TreeItem/MobileSlidePanel/useLogic/index.d.ts +1 -0
  183. package/node/components/Tree/TreeItem/MobileSlidePanel/useLogic/index.js +17 -0
  184. package/node/components/Tree/TreeItem/MobileSlidePanel/useLogic/useLogic.d.ts +9 -0
  185. package/node/components/Tree/TreeItem/MobileSlidePanel/useLogic/useLogic.js +15 -0
  186. package/node/components/Tree/TreeItem/TreeItem.d.ts +2 -1
  187. package/node/components/Tree/TreeItem/TreeItem.js +48 -9
  188. package/node/components/Tree/TreeItem/constants.d.ts +9 -0
  189. package/node/components/Tree/TreeItem/constants.js +10 -1
  190. package/node/components/Tree/TreeItem/styles.d.ts +4 -13
  191. package/node/components/Tree/TreeItem/styles.js +153 -39
  192. package/node/components/Tree/TreeItem/types.d.ts +18 -0
  193. package/node/components/Tree/TreeItem/useLogic/useLogic.d.ts +21 -7
  194. package/node/components/Tree/TreeItem/useLogic/useLogic.js +39 -1
  195. package/node/components/Tree/TreeList/TreeItem/TreeItem.js +4 -4
  196. package/node/components/Tree/TreeList/TreeItem/styles.d.ts +19 -0
  197. package/node/components/Tree/TreeList/TreeItem/styles.js +60 -1
  198. package/node/components/Tree/TreeList/TreeItem/useLogic/useLogic.d.ts +6 -0
  199. package/node/components/Tree/TreeList/TreeItem/useLogic/useLogic.js +11 -0
  200. package/node/components/Tree/TreeList/TreeList.js +1 -1
  201. package/node/components/Tree/TreeList/styles.d.ts +4 -0
  202. package/node/components/Tree/TreeList/styles.js +27 -1
  203. package/node/components/TreeAsyncAutocomplete/OptionsModal/NoData/styles.js +5 -0
  204. package/node/components/TreeAsyncAutocomplete/OptionsModal/OptionsModal.js +1 -2
  205. package/node/components/TreeAsyncAutocomplete/OptionsModal/styles.d.ts +17 -0
  206. package/node/components/TreeAsyncAutocomplete/OptionsModal/styles.js +76 -6
  207. package/node/components/TreeAutocomplete/OptionsModal/NoData/styles.js +5 -0
  208. package/node/components/TreeAutocomplete/OptionsModal/OptionsModal.js +1 -2
  209. package/node/components/TreeAutocomplete/OptionsModal/styles.d.ts +17 -0
  210. package/node/components/TreeAutocomplete/OptionsModal/styles.js +37 -1
  211. package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/NoData/styles.js +5 -0
  212. package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/OptionsModal.js +3 -7
  213. package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/styles.d.ts +35 -0
  214. package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/styles.js +97 -6
  215. package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/useLogic/useLogic.d.ts +1 -0
  216. package/node/components/TreeLikeAsyncAutocomplete/OptionsModal/useLogic/useLogic.js +17 -2
  217. package/node/components/TreeLikeAutocomplete/OptionsModal/NoData/styles.js +5 -0
  218. package/node/components/TreeLikeAutocomplete/OptionsModal/OptionsModal.js +3 -4
  219. package/node/components/TreeLikeAutocomplete/OptionsModal/styles.d.ts +27 -0
  220. package/node/components/TreeLikeAutocomplete/OptionsModal/styles.js +45 -2
  221. package/node/components/TreeLikeAutocomplete/OptionsModal/useLogic/useLogic.d.ts +1 -0
  222. package/node/components/TreeLikeAutocomplete/OptionsModal/useLogic/useLogic.js +14 -1
  223. package/node/components/TreeLikeList/TreeItem/TreeItem.js +9 -2
  224. package/node/components/TreeLikeList/TreeItem/styles.d.ts +14 -17
  225. package/node/components/TreeLikeList/TreeItem/styles.js +48 -1
  226. package/node/components/TreeLikeList/TreeItem/useLogic/useLogic.d.ts +8 -2
  227. package/node/components/TreeLikeList/TreeItem/useLogic/useLogic.js +34 -12
  228. package/node/components/TreeLikeList/TreeLikeList.js +1 -1
  229. package/node/components/TreeLikeList/styles.d.ts +4 -0
  230. package/node/components/TreeLikeList/styles.js +26 -1
  231. package/package.json +1 -1
@@ -2,16 +2,16 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.TreeItem = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
- const TreeItem_1 = require("../../TreeItem");
6
5
  const styles_1 = require("./styles");
7
6
  const useLogic_1 = require("./useLogic");
8
7
  const TreeItem = (props) => {
9
- const { isSelected, isDefaultExpanded, isDisabled, disabledReason, nextLevel, handleChange, } = (0, useLogic_1.useLogic)(props);
8
+ const { isSelected, isDefaultExpanded, isDisabled, disabledReason, nextLevel, handleChange, formControlLabelProps, } = (0, useLogic_1.useLogic)(props);
10
9
  const { item, prefixId, level, renderItem, value, isInitialExpanded, expandedLevel, chainToSelectedItem, disabledItems, onChange, isObjectMode, } = props;
11
10
  const { id, label, note, children = [], options } = item;
11
+ const itemLabel = renderItem ? renderItem({ label, note, id }) : label;
12
12
  if (children.length) {
13
- return ((0, jsx_runtime_1.jsx)(TreeItem_1.TreeItem, { id: id, prefixId: prefixId, isSelected: isSelected, isDefaultExpanded: isDefaultExpanded, isForceExpanded: options?.isForceExpanded, isDisabled: isDisabled, disabledReason: disabledReason, component: "li", label: label, renderItem: renderItem, note: note, level: level, onClick: handleChange, children: (0, jsx_runtime_1.jsx)(styles_1.List, { children: children.map((child) => ((0, jsx_runtime_1.jsx)(exports.TreeItem, { item: child, prefixId: prefixId, renderItem: renderItem, level: nextLevel, isInitialExpanded: isInitialExpanded, expandedLevel: expandedLevel, chainToSelectedItem: chainToSelectedItem, disabledItems: disabledItems, value: value, onChange: onChange, isObjectMode: isObjectMode }, child.id))) }) }));
13
+ return ((0, jsx_runtime_1.jsx)(styles_1.StyledTreeItem, { id: id, prefixId: prefixId, isSelected: isSelected, isDefaultExpanded: isDefaultExpanded, isForceExpanded: options?.isForceExpanded, isDisabled: isDisabled, disabledReason: disabledReason, component: "li", label: (0, jsx_runtime_1.jsx)(styles_1.StyledFormControlLabel, { control: (0, jsx_runtime_1.jsx)(styles_1.StyledRadio, { checked: isSelected, disabled: isDisabled, value: id }), label: itemLabel, ...formControlLabelProps }), note: renderItem ? null : note, mobileHeaderLabel: itemLabel, mobileHeaderControl: (0, jsx_runtime_1.jsx)(styles_1.StyledRadio, { checked: isSelected, disabled: isDisabled, value: id, onChange: handleChange }), level: level, onClick: handleChange, children: (0, jsx_runtime_1.jsx)(styles_1.List, { children: children.map((child) => ((0, jsx_runtime_1.jsx)(exports.TreeItem, { item: child, prefixId: prefixId, renderItem: renderItem, level: nextLevel, isInitialExpanded: isInitialExpanded, expandedLevel: expandedLevel, chainToSelectedItem: chainToSelectedItem, disabledItems: disabledItems, value: value, onChange: onChange, isObjectMode: isObjectMode }, child.id))) }) }));
14
14
  }
15
- return ((0, jsx_runtime_1.jsx)(TreeItem_1.TreeItem, { id: id, prefixId: prefixId, isSelected: isSelected, isDisabled: isDisabled, disabledReason: disabledReason, component: "li", label: label, renderItem: renderItem, note: note, level: level, onClick: handleChange }));
15
+ return ((0, jsx_runtime_1.jsx)(styles_1.StyledTreeItem, { id: id, prefixId: prefixId, isSelected: isSelected, isDisabled: isDisabled, disabledReason: disabledReason, note: renderItem ? null : note, component: "li", label: (0, jsx_runtime_1.jsx)(styles_1.StyledFormControlLabel, { control: (0, jsx_runtime_1.jsx)(styles_1.StyledRadio, { checked: isSelected, disabled: isDisabled, value: id }), label: itemLabel, ...formControlLabelProps }), level: level, onClick: handleChange }));
16
16
  };
17
17
  exports.TreeItem = TreeItem;
@@ -1,5 +1,24 @@
1
1
  /// <reference types="react" />
2
+ export declare const StyledRadio: import("@emotion/styled/dist/declarations/src/types").StyledComponent<import("react").HTMLAttributes<HTMLDivElement> & {
3
+ checked?: boolean | undefined;
4
+ isError?: boolean | undefined;
5
+ onChange?: ((event: import("react").ChangeEvent<HTMLInputElement, Element>, checked: boolean) => void) | undefined;
6
+ name?: string | undefined;
7
+ value?: string | undefined;
8
+ autoFocus?: boolean | undefined;
9
+ disabled?: boolean | undefined;
10
+ style?: import("react").CSSProperties | undefined;
11
+ inputRef?: import("react").RefObject<HTMLInputElement> | undefined;
12
+ } & import("react").RefAttributes<HTMLInputElement> & {
13
+ theme?: import("@emotion/react").Theme | undefined;
14
+ }, {}, {}>;
15
+ export declare const StyledTreeItem: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../../TreeItem").TreeItemProps, "ref"> & import("react").RefAttributes<HTMLLIElement> & {
16
+ theme?: import("@emotion/react").Theme | undefined;
17
+ }, {}, {}>;
2
18
  export declare const List: import("@emotion/styled/dist/declarations/src/types").StyledComponent<{
3
19
  theme?: import("@emotion/react").Theme | undefined;
4
20
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
21
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, {}>;
22
+ export declare const StyledFormControlLabel: import("@emotion/styled/dist/declarations/src/types").StyledComponent<import("@mui/material/FormControlLabel").FormControlLabelProps & {
23
+ theme?: import("@emotion/react").Theme | undefined;
24
+ }, {}, {}>;
@@ -1,8 +1,67 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.List = void 0;
26
+ exports.StyledFormControlLabel = exports.List = exports.StyledTreeItem = exports.StyledRadio = void 0;
27
+ const FormControlLabel_1 = __importStar(require("@mui/material/FormControlLabel"));
28
+ const Radio_1 = require("../../../Radio");
4
29
  const styled_1 = require("../../../styled");
5
30
  const mixins_1 = require("../../../styled/mixins");
31
+ const TreeItem_1 = require("../../TreeItem");
32
+ exports.StyledRadio = (0, styled_1.styled)(Radio_1.Radio) `
33
+ ${({ theme }) => theme.breakpoints.up('sm')} {
34
+ display: none;
35
+ }
36
+
37
+ ${({ theme }) => theme.breakpoints.down('sm')} {
38
+ height: 20px;
39
+
40
+ & .${Radio_1.radioClassnames.iconWrapper}, & .${Radio_1.radioClassnames.input} {
41
+ height: 20px;
42
+ }
43
+ }
44
+ `;
45
+ exports.StyledTreeItem = (0, styled_1.styled)(TreeItem_1.TreeItem) `
46
+ ${({ theme }) => theme.breakpoints.down('sm')} {
47
+ .${TreeItem_1.treeClassnames.note} {
48
+
49
+ /* Добавляем к отступу ширину контейнера с радио кнопкой */
50
+ margin-left: ${({ theme }) => `calc(${theme.spacing(1)} + ${Radio_1.MOBILE_RADIO_SIZE})`};
51
+ }
52
+ }
53
+ `;
6
54
  exports.List = styled_1.styled.ul `
7
55
  ${mixins_1.listContainer}
8
56
  `;
57
+ exports.StyledFormControlLabel = (0, styled_1.styled)(FormControlLabel_1.default) `
58
+ margin-left: 0;
59
+
60
+ & .${FormControlLabel_1.formControlLabelClasses.label} {
61
+ margin-left: 0;
62
+ }
63
+
64
+ ${({ theme }) => theme.breakpoints.down('sm')} {
65
+ gap: ${({ theme }) => theme.spacing(1)};
66
+ }
67
+ `;
@@ -1,3 +1,4 @@
1
+ import { type SyntheticEvent } from 'react';
1
2
  import type { TreeListItemValue } from '../../types';
2
3
  import { type TreeItemProps } from '../types';
3
4
  type UseLogicProps<TValue extends TreeListItemValue = string> = TreeItemProps<TValue>;
@@ -8,5 +9,10 @@ export declare const useLogic: <TValue extends TreeListItemValue = string>({ val
8
9
  disabledReason: string | undefined;
9
10
  nextLevel: number;
10
11
  handleChange: () => void | undefined;
12
+ formControlLabelProps: {
13
+ disabled: boolean;
14
+ onChange: () => void | undefined;
15
+ onClick: (event: SyntheticEvent) => void;
16
+ };
11
17
  };
12
18
  export {};
@@ -30,6 +30,12 @@ const useLogic = ({ value, level, item, isInitialExpanded, expandedLevel, chainT
30
30
  }
31
31
  return onChange?.(id);
32
32
  };
33
+ /**
34
+ * Предотвращаем всплытие события, так как клик в области radio или label вызывает обработчик на уровне всего item
35
+ */
36
+ const handleClick = (event) => {
37
+ event.stopPropagation();
38
+ };
33
39
  return {
34
40
  isSelected,
35
41
  isDefaultExpanded,
@@ -37,6 +43,11 @@ const useLogic = ({ value, level, item, isInitialExpanded, expandedLevel, chainT
37
43
  disabledReason,
38
44
  nextLevel,
39
45
  handleChange,
46
+ formControlLabelProps: {
47
+ disabled: isDisabled,
48
+ onChange: handleChange,
49
+ onClick: handleClick,
50
+ },
40
51
  };
41
52
  };
42
53
  exports.useLogic = useLogic;
@@ -11,6 +11,6 @@ const INITIAL_LEVEL = 0;
11
11
  const TreeList = (props) => {
12
12
  const { listProps, itemProps } = (0, useLogic_1.useLogic)(props);
13
13
  const { data, className, expandedLevel = 10, disabledItems, ...restProps } = props;
14
- return ((0, jsx_runtime_1.jsx)(styles_1.List, { className: (0, cn_1.cn)(className, constants_1.treeListClassnames.list), ...listProps, children: data.map((item) => ((0, jsx_runtime_1.jsx)(TreeItem_1.TreeItem, { item: item, level: INITIAL_LEVEL, expandedLevel: expandedLevel, ...itemProps, ...restProps }, item.id))) }));
14
+ return ((0, jsx_runtime_1.jsx)(styles_1.ListWrapper, { children: (0, jsx_runtime_1.jsx)(styles_1.List, { className: (0, cn_1.cn)(className, constants_1.treeListClassnames.list), ...listProps, children: data.map((item) => ((0, jsx_runtime_1.jsx)(TreeItem_1.TreeItem, { item: item, level: INITIAL_LEVEL, expandedLevel: expandedLevel, ...itemProps, ...restProps }, item.id))) }) }));
15
15
  };
16
16
  exports.TreeList = TreeList;
@@ -1,4 +1,8 @@
1
1
  /// <reference types="react" />
2
+ export declare const ListWrapper: import("@emotion/styled/dist/declarations/src/types").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
5
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
2
6
  export declare const List: import("@emotion/styled/dist/declarations/src/types").StyledComponent<{
3
7
  theme?: import("@emotion/react").Theme | undefined;
4
8
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
@@ -1,9 +1,35 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.List = void 0;
3
+ exports.List = exports.ListWrapper = void 0;
4
4
  const styled_1 = require("../../styled");
5
5
  const mixins_1 = require("../../styled/mixins");
6
+ exports.ListWrapper = styled_1.styled.div `
7
+ display: contents;
8
+
9
+ ${({ theme }) => theme.breakpoints.down('sm')} {
10
+ position: relative;
11
+ z-index: 0;
12
+
13
+ display: flex;
14
+ flex-direction: column;
15
+
16
+ height: 100%;
17
+ min-height: 0;
18
+
19
+ overflow: hidden;
20
+
21
+ transform: translateZ(0);
22
+ }
23
+ `;
6
24
  exports.List = styled_1.styled.ul `
7
25
  ${mixins_1.listContainer};
26
+ position: relative;
8
27
  overflow: hidden;
28
+
29
+ ${({ theme }) => theme.breakpoints.down('sm')} {
30
+ flex-grow: 1;
31
+ min-height: 0;
32
+
33
+ overflow-y: auto;
34
+ }
9
35
  `;
@@ -8,4 +8,9 @@ exports.Wrapper = styled_1.styled.div `
8
8
  justify-content: center;
9
9
 
10
10
  height: 100%;
11
+
12
+ ${({ theme }) => theme.breakpoints.down('sm')} {
13
+ padding: ${({ theme }) => theme.spacing(0, 4)};
14
+ text-align: center;
15
+ }
11
16
  `;
@@ -5,7 +5,6 @@ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const Button_1 = require("../../Button");
6
6
  const Dialog_1 = require("../../Dialog");
7
7
  const DialogActions_1 = require("../../DialogActions");
8
- const Paper_1 = require("../../Paper");
9
8
  const Tree_1 = require("../../Tree");
10
9
  const Typography_1 = require("../../Typography");
11
10
  const constants_1 = require("./constants");
@@ -32,6 +31,6 @@ const OptionsModal = (props) => {
32
31
  }
33
32
  return ((0, jsx_runtime_1.jsx)(Tree_1.TreeList, { ...treeProps, ...treeListProps }));
34
33
  };
35
- return ((0, jsx_runtime_1.jsxs)(Dialog_1.Dialog, { ...modalProps, children: [(0, jsx_runtime_1.jsxs)(styles_1.StyledDialogContent, { "$size": modalProps.size, children: [(0, jsx_runtime_1.jsx)(styles_1.StyledSearchField, { fullWidth: true, ...searchFieldProps, isLoading: isShowSearchFieldLoader, helperText: constants_1.SEARCH_FIELD_HELPER_TEXT }), (0, jsx_runtime_1.jsx)(Paper_1.Paper, { variant: "outlined", children: (0, jsx_runtime_1.jsxs)(styles_1.TreeListWrapper, { children: [renderComponent(), isShowUserHint && ((0, jsx_runtime_1.jsx)(styles_1.UserHintWrapper, { children: (0, jsx_runtime_1.jsx)(Typography_1.Typography, { variant: "caption", color: "grey", colorIntensity: "600", children: "\u0423\u0442\u043E\u0447\u043D\u0438\u0442\u0435 \u0437\u0430\u043F\u0440\u043E\u0441 \u0434\u043B\u044F \u0431\u043E\u043B\u0435\u0435 \u043B\u0443\u0447\u0448\u0435\u0433\u043E \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u0430 \u043F\u043E\u0438\u0441\u043A\u0430" }) }))] }) })] }), (0, jsx_runtime_1.jsxs)(DialogActions_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(Button_1.Button, { variant: "text", ...cancelButtonProps, children: "\u041E\u0442\u043C\u0435\u043D\u0430" }), (0, jsx_runtime_1.jsx)(Button_1.Button, { ...confirmButtonProps, children: "\u0412\u044B\u0431\u0440\u0430\u0442\u044C" })] })] }));
34
+ return ((0, jsx_runtime_1.jsxs)(Dialog_1.Dialog, { ...modalProps, children: [(0, jsx_runtime_1.jsxs)(styles_1.StyledDialogContent, { "$size": modalProps.size, children: [(0, jsx_runtime_1.jsx)(styles_1.SearchFieldWrapper, { children: (0, jsx_runtime_1.jsx)(styles_1.StyledSearchField, { fullWidth: true, ...searchFieldProps, isLoading: isShowSearchFieldLoader, helperText: constants_1.SEARCH_FIELD_HELPER_TEXT }) }), (0, jsx_runtime_1.jsx)(styles_1.StyledPaper, { variant: "outlined", children: (0, jsx_runtime_1.jsxs)(styles_1.TreeListWrapper, { children: [renderComponent(), isShowUserHint && ((0, jsx_runtime_1.jsx)(styles_1.UserHintWrapper, { children: (0, jsx_runtime_1.jsx)(Typography_1.Typography, { variant: "caption", color: "grey", colorIntensity: "600", children: "\u0423\u0442\u043E\u0447\u043D\u0438\u0442\u0435 \u0437\u0430\u043F\u0440\u043E\u0441 \u0434\u043B\u044F \u0431\u043E\u043B\u0435\u0435 \u043B\u0443\u0447\u0448\u0435\u0433\u043E \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u0430 \u043F\u043E\u0438\u0441\u043A\u0430" }) }))] }) })] }), (0, jsx_runtime_1.jsxs)(DialogActions_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(styles_1.CancelButton, { variant: "text", ...cancelButtonProps, children: "\u041E\u0442\u043C\u0435\u043D\u0430" }), (0, jsx_runtime_1.jsx)(Button_1.Button, { ...confirmButtonProps, children: "\u0412\u044B\u0431\u0440\u0430\u0442\u044C" })] })] }));
36
35
  };
37
36
  exports.OptionsModal = OptionsModal;
@@ -9,9 +9,26 @@ export declare const TreeListWrapper: import("@emotion/styled/dist/declarations/
9
9
  theme?: import("@emotion/react").Theme | undefined;
10
10
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
11
11
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
12
+ export declare const SearchFieldWrapper: import("@emotion/styled/dist/declarations/src/types").StyledComponent<{
13
+ theme?: import("@emotion/react").Theme | undefined;
14
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
15
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
12
16
  export declare const StyledSearchField: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../../SearchField").SearchFieldProps, "ref"> & import("react").RefAttributes<HTMLDivElement> & {
13
17
  theme?: import("@emotion/react").Theme | undefined;
14
18
  }, {}, {}>;
19
+ export declare const StyledPaper: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../../Paper").PaperProps, "ref"> & import("react").RefAttributes<HTMLDivElement> & {
20
+ theme?: import("@emotion/react").Theme | undefined;
21
+ }, {}, {}>;
22
+ export declare const CancelButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
23
+ variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
24
+ loading?: boolean | undefined;
25
+ color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
26
+ component?: import("react").ElementType | undefined;
27
+ selected?: boolean | undefined;
28
+ size?: "large" | "medium" | undefined;
29
+ } & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
30
+ theme?: import("@emotion/react").Theme | undefined;
31
+ }, {}, {}>;
15
32
  export declare const UserHintWrapper: import("@emotion/styled/dist/declarations/src/types").StyledComponent<{
16
33
  theme?: import("@emotion/react").Theme | undefined;
17
34
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
@@ -1,10 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserHintWrapper = exports.StyledSearchField = exports.TreeListWrapper = exports.StyledDialogContent = void 0;
3
+ exports.UserHintWrapper = exports.CancelButton = exports.StyledPaper = exports.StyledSearchField = exports.SearchFieldWrapper = exports.TreeListWrapper = exports.StyledDialogContent = void 0;
4
4
  const FormHelperText_1 = require("@mui/material/FormHelperText");
5
+ const InputBase_1 = require("@mui/material/InputBase");
6
+ const Paper_1 = require("@mui/material/Paper");
7
+ const BottomDrawer_1 = require("../../BottomDrawer");
8
+ const Button_1 = require("../../Button");
5
9
  const Dialog_1 = require("../../Dialog");
6
10
  const DialogContent_1 = require("../../DialogContent");
11
+ const Loader_1 = require("../../Loader");
12
+ const Paper_2 = require("../../Paper");
7
13
  const SearchField_1 = require("../../SearchField");
14
+ const SvgIcon_1 = require("../../SvgIcon");
8
15
  const styled_1 = require("../../styled");
9
16
  const Tree_1 = require("../../Tree");
10
17
  exports.StyledDialogContent = (0, styled_1.styled)(DialogContent_1.DialogContent, {
@@ -17,29 +24,87 @@ exports.StyledDialogContent = (0, styled_1.styled)(DialogContent_1.DialogContent
17
24
 
18
25
  width: ${({ $size }) => Dialog_1.DIALOG_SIZES[$size].minWidth};
19
26
  height: ${({ $size }) => Dialog_1.DIALOG_SIZES[$size].minWidth};
20
-
27
+
21
28
  ${({ theme }) => theme.breakpoints.down('sm')} {
22
29
  width: auto;
30
+ padding: 0;
31
+ gap: ${({ theme }) => theme.spacing(3)};
32
+
33
+ height: calc(100vh - ${BottomDrawer_1.OFFSET_TOP_SCREEN} - ${BottomDrawer_1.DEFAULT_HEADER_HEIGHT}px - 72px);
34
+
35
+ /* Причина игнора: Прогрессивное улучшение */
36
+ /* stylelint-disable plugin/no-unsupported-browser-features */
37
+ @supports (height: 100dvh) {
38
+ height: calc(100dvh - ${BottomDrawer_1.OFFSET_TOP_SCREEN} - ${BottomDrawer_1.DEFAULT_HEADER_HEIGHT}px - 72px);
39
+ }
40
+ /* stylelint-enable plugin/no-unsupported-browser-features */
23
41
  }
24
42
  `;
25
43
  exports.TreeListWrapper = styled_1.styled.div `
26
- overflow: auto;
44
+ overflow: auto;
45
+
46
+ height: 100%;
27
47
 
28
- height: 100%;
29
-
30
48
  & .${Tree_1.treeListClassnames.list} {
31
49
  width: auto;
32
50
  min-width: max-content;
33
51
  }
52
+
53
+ ${({ theme }) => theme.breakpoints.down('sm')} {
54
+ & .${Tree_1.treeListClassnames.list} {
55
+ min-width: unset;
56
+ }
57
+
58
+ /* stylelint-disable plugin/no-unsupported-browser-features */
59
+ &:not(:has(.${Tree_1.treeListClassnames.list})) {
60
+ height: 100%;
61
+ }
62
+ /* stylelint-enable plugin/no-unsupported-browser-features */
63
+
64
+ height: auto;
65
+ }
66
+ `;
67
+ exports.SearchFieldWrapper = styled_1.styled.div `
68
+ ${({ theme }) => theme.breakpoints.down('sm')} {
69
+ padding: ${({ theme }) => theme.spacing(3, 4, 0)};
70
+ }
34
71
  `;
35
72
  exports.StyledSearchField = (0, styled_1.styled)(SearchField_1.SearchField) `
36
73
  & .${FormHelperText_1.formHelperTextClasses.root} {
37
74
  display: flex;
38
75
 
39
76
  margin-top: ${({ theme }) => theme.spacing(2)};
40
-
77
+
41
78
  color: ${({ theme }) => theme.palette.grey[500]};
42
79
  }
80
+
81
+ ${({ theme }) => theme.breakpoints.down('sm')} {
82
+ & .${FormHelperText_1.formHelperTextClasses.root} {
83
+ display: none;
84
+ }
85
+
86
+ & .${InputBase_1.inputBaseClasses.root}.${InputBase_1.inputBaseClasses.adornedEnd} .${Loader_1.loaderClassnames.root} .${SvgIcon_1.svgIconClassnames.root} {
87
+ width: 20px;
88
+ height: 20px;
89
+ }
90
+ }
91
+ `;
92
+ exports.StyledPaper = (0, styled_1.styled)(Paper_2.Paper) `
93
+ ${({ theme }) => theme.breakpoints.down('sm')} {
94
+ &.${Paper_1.paperClasses.root} {
95
+ border-top-left-radius: 0;
96
+ border-top-right-radius: 0;
97
+ }
98
+
99
+ border: unset;
100
+
101
+ overflow: auto;
102
+ }
103
+ `;
104
+ exports.CancelButton = (0, styled_1.styled)(Button_1.Button) `
105
+ ${({ theme }) => theme.breakpoints.down('sm')} {
106
+ display: none;
107
+ }
43
108
  `;
44
109
  exports.UserHintWrapper = styled_1.styled.div `
45
110
  display: flex;
@@ -47,4 +112,9 @@ exports.UserHintWrapper = styled_1.styled.div `
47
112
  justify-content: center;
48
113
 
49
114
  height: 36px;
115
+
116
+ ${({ theme }) => theme.breakpoints.down('sm')} {
117
+ height: auto;
118
+ padding: ${({ theme }) => theme.spacing(3, 4)};
119
+ }
50
120
  `;
@@ -8,4 +8,9 @@ exports.Wrapper = styled_1.styled.div `
8
8
  justify-content: center;
9
9
 
10
10
  height: 100%;
11
+
12
+ ${({ theme }) => theme.breakpoints.down('sm')} {
13
+ padding: ${({ theme }) => theme.spacing(0, 4)};
14
+ text-align: center;
15
+ }
11
16
  `;
@@ -5,7 +5,6 @@ const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const Button_1 = require("../../Button");
6
6
  const Dialog_1 = require("../../Dialog");
7
7
  const DialogActions_1 = require("../../DialogActions");
8
- const Paper_1 = require("../../Paper");
9
8
  const SearchField_1 = require("../../SearchField");
10
9
  const Tree_1 = require("../../Tree");
11
10
  const ErrorMessage_1 = require("./ErrorMessage");
@@ -28,6 +27,6 @@ const OptionsModal = (props) => {
28
27
  }
29
28
  return (0, jsx_runtime_1.jsx)(Tree_1.TreeList, { ...treeProps, ...treeListProps });
30
29
  };
31
- return ((0, jsx_runtime_1.jsxs)(Dialog_1.Dialog, { ...externalDialogProps, disableRestoreFocus: true, open: isOpen, ...modalProps, children: [(0, jsx_runtime_1.jsxs)(styles_1.StyledDialogContent, { "$size": modalProps.size, children: [(0, jsx_runtime_1.jsx)(SearchField_1.SearchField, { fullWidth: true, ...searchFieldProps }), (0, jsx_runtime_1.jsx)(Paper_1.Paper, { variant: "outlined", children: (0, jsx_runtime_1.jsx)(styles_1.TreeListWrapper, { children: renderComponent() }) })] }), (0, jsx_runtime_1.jsxs)(DialogActions_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(Button_1.Button, { variant: "text", ...cancelButtonProps, children: "\u041E\u0442\u043C\u0435\u043D\u0430" }), (0, jsx_runtime_1.jsx)(Button_1.Button, { ...confirmButtonProps, children: "\u0412\u044B\u0431\u0440\u0430\u0442\u044C" })] })] }));
30
+ return ((0, jsx_runtime_1.jsxs)(Dialog_1.Dialog, { ...externalDialogProps, disableRestoreFocus: true, open: isOpen, ...modalProps, children: [(0, jsx_runtime_1.jsxs)(styles_1.StyledDialogContent, { "$size": modalProps.size, children: [(0, jsx_runtime_1.jsx)(styles_1.SearchFieldWrapper, { children: (0, jsx_runtime_1.jsx)(SearchField_1.SearchField, { fullWidth: true, ...searchFieldProps }) }), (0, jsx_runtime_1.jsx)(styles_1.StyledPaper, { variant: "outlined", children: (0, jsx_runtime_1.jsx)(styles_1.TreeListWrapper, { children: renderComponent() }) })] }), (0, jsx_runtime_1.jsxs)(DialogActions_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(styles_1.CancelButton, { variant: "text", ...cancelButtonProps, children: "\u041E\u0442\u043C\u0435\u043D\u0430" }), (0, jsx_runtime_1.jsx)(Button_1.Button, { ...confirmButtonProps, children: "\u0412\u044B\u0431\u0440\u0430\u0442\u044C" })] })] }));
32
31
  };
33
32
  exports.OptionsModal = OptionsModal;
@@ -9,4 +9,21 @@ export declare const TreeListWrapper: import("@emotion/styled/dist/declarations/
9
9
  theme?: import("@emotion/react").Theme | undefined;
10
10
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
11
11
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
12
+ export declare const SearchFieldWrapper: import("@emotion/styled/dist/declarations/src/types").StyledComponent<{
13
+ theme?: import("@emotion/react").Theme | undefined;
14
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
15
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
16
+ export declare const StyledPaper: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../../Paper").PaperProps, "ref"> & import("react").RefAttributes<HTMLDivElement> & {
17
+ theme?: import("@emotion/react").Theme | undefined;
18
+ }, {}, {}>;
19
+ export declare const CancelButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
20
+ variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
21
+ loading?: boolean | undefined;
22
+ color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
23
+ component?: import("react").ElementType | undefined;
24
+ selected?: boolean | undefined;
25
+ size?: "large" | "medium" | undefined;
26
+ } & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
27
+ theme?: import("@emotion/react").Theme | undefined;
28
+ }, {}, {}>;
12
29
  export {};
@@ -1,8 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TreeListWrapper = exports.StyledDialogContent = void 0;
3
+ exports.CancelButton = exports.StyledPaper = exports.SearchFieldWrapper = exports.TreeListWrapper = exports.StyledDialogContent = void 0;
4
+ const Paper_1 = require("@mui/material/Paper");
5
+ const BottomDrawer_1 = require("../../BottomDrawer");
6
+ const Button_1 = require("../../Button");
4
7
  const Dialog_1 = require("../../Dialog");
5
8
  const DialogContent_1 = require("../../DialogContent");
9
+ const Paper_2 = require("../../Paper");
6
10
  const styled_1 = require("../../styled");
7
11
  exports.StyledDialogContent = (0, styled_1.styled)(DialogContent_1.DialogContent, {
8
12
  shouldForwardProp: (prop) => !['$size'].includes(prop),
@@ -17,6 +21,17 @@ exports.StyledDialogContent = (0, styled_1.styled)(DialogContent_1.DialogContent
17
21
 
18
22
  ${({ theme }) => theme.breakpoints.down('sm')} {
19
23
  width: auto;
24
+ padding: 0;
25
+ gap: ${({ theme }) => theme.spacing(3)};
26
+
27
+ height: calc(100vh - ${BottomDrawer_1.OFFSET_TOP_SCREEN} - ${BottomDrawer_1.DEFAULT_HEADER_HEIGHT}px - 72px);
28
+
29
+ /* Причина игнора: Прогрессивное улучшение */
30
+ /* stylelint-disable plugin/no-unsupported-browser-features */
31
+ @supports (height: 100dvh) {
32
+ height: calc(100dvh - ${BottomDrawer_1.OFFSET_TOP_SCREEN} - ${BottomDrawer_1.DEFAULT_HEADER_HEIGHT}px - 72px);
33
+ }
34
+ /* stylelint-enable plugin/no-unsupported-browser-features */
20
35
  }
21
36
  `;
22
37
  exports.TreeListWrapper = styled_1.styled.div `
@@ -24,3 +39,24 @@ exports.TreeListWrapper = styled_1.styled.div `
24
39
 
25
40
  height: 100%;
26
41
  `;
42
+ exports.SearchFieldWrapper = styled_1.styled.div `
43
+ ${({ theme }) => theme.breakpoints.down('sm')} {
44
+ padding: ${({ theme }) => theme.spacing(3, 4, 0)};
45
+ }
46
+ `;
47
+ exports.StyledPaper = (0, styled_1.styled)(Paper_2.Paper) `
48
+ ${({ theme }) => theme.breakpoints.down('sm')} {
49
+
50
+ &.${Paper_1.paperClasses.root} {
51
+ border-top-left-radius: 0;
52
+ border-top-right-radius: 0;
53
+ }
54
+
55
+ border: unset;
56
+ }
57
+ `;
58
+ exports.CancelButton = (0, styled_1.styled)(Button_1.Button) `
59
+ ${({ theme }) => theme.breakpoints.down('sm')} {
60
+ display: none;
61
+ }
62
+ `;
@@ -8,4 +8,9 @@ exports.Wrapper = styled_1.styled.div `
8
8
  justify-content: center;
9
9
 
10
10
  height: 100%;
11
+
12
+ ${({ theme }) => theme.breakpoints.down('sm')} {
13
+ padding: ${({ theme }) => theme.spacing(0, 4)};
14
+ text-align: center;
15
+ }
11
16
  `;
@@ -6,7 +6,6 @@ const Button_1 = require("../../Button");
6
6
  const CheckableTag_1 = require("../../CheckableTag");
7
7
  const Dialog_1 = require("../../Dialog");
8
8
  const DialogActions_1 = require("../../DialogActions");
9
- const Paper_1 = require("../../Paper");
10
9
  const TagBadge_1 = require("../../TagBadge");
11
10
  const TreeLikeList_1 = require("../../TreeLikeList");
12
11
  const Typography_1 = require("../../Typography");
@@ -18,7 +17,7 @@ const SearchSuggestion_1 = require("./SearchSuggestion");
18
17
  const styles_1 = require("./styles");
19
18
  const useLogic_1 = require("./useLogic");
20
19
  const OptionsModal = (props) => {
21
- const { isNoResult, searchFieldProps, modalProps, treeListProps, cancelButtonProps, confirmButtonProps, handleRetry, isShowUserHint, isShowModalLoader, isShowSearchFieldLoader, isShowSearchSuggestion, isLoadingError, treeProps, loadingErrorMsg, badgeContent, checkableTagProps, isShowSelectedTree, selectedTreeProps, } = (0, useLogic_1.useLogic)(props);
20
+ const { isNoResult, searchFieldProps, modalProps, treeListProps, cancelButtonProps, confirmButtonProps, resetButtonProps, handleRetry, isShowUserHint, isShowModalLoader, isShowSearchFieldLoader, isShowSearchSuggestion, isLoadingError, treeProps, loadingErrorMsg, badgeContent, checkableTagProps, isShowSelectedTree, selectedTreeProps, } = (0, useLogic_1.useLogic)(props);
22
21
  const renderComponent = () => {
23
22
  if (isShowSearchSuggestion) {
24
23
  return (0, jsx_runtime_1.jsx)(SearchSuggestion_1.SearchSuggestion, {});
@@ -32,11 +31,8 @@ const OptionsModal = (props) => {
32
31
  if (isNoResult) {
33
32
  return (0, jsx_runtime_1.jsx)(NoData_1.NoData, {});
34
33
  }
35
- if (isShowSelectedTree) {
36
- return ((0, jsx_runtime_1.jsx)(TreeLikeList_1.TreeLikeList, { ...treeProps, ...selectedTreeProps }));
37
- }
38
- return ((0, jsx_runtime_1.jsx)(TreeLikeList_1.TreeLikeList, { ...treeProps, ...treeListProps }));
34
+ return ((0, jsx_runtime_1.jsx)(styles_1.TreeViewSlot, { children: (0, jsx_runtime_1.jsx)(TreeLikeList_1.TreeLikeList, { ...treeProps, ...(isShowSelectedTree ? selectedTreeProps : treeListProps) }, isShowSelectedTree ? 'selected-tree' : 'options-tree') }));
39
35
  };
40
- return ((0, jsx_runtime_1.jsxs)(Dialog_1.Dialog, { ...modalProps, children: [(0, jsx_runtime_1.jsxs)(styles_1.StyledDialogContent, { "$size": modalProps.size, children: [(0, jsx_runtime_1.jsx)(styles_1.StyledSearchField, { fullWidth: true, ...searchFieldProps, isLoading: isShowSearchFieldLoader, helperText: constants_1.SEARCH_FIELD_HELPER_TEXT }), (0, jsx_runtime_1.jsx)(CheckableTag_1.CheckableTag, { ...checkableTagProps, endAddon: (badgeProps) => ((0, jsx_runtime_1.jsx)(TagBadge_1.TagBadge, { ...badgeProps, badgeContent: badgeContent, showZero: true })) }), (0, jsx_runtime_1.jsx)(Paper_1.Paper, { variant: "outlined", children: (0, jsx_runtime_1.jsxs)(styles_1.TreeListWrapper, { children: [renderComponent(), isShowUserHint && ((0, jsx_runtime_1.jsx)(styles_1.UserHintWrapper, { children: (0, jsx_runtime_1.jsx)(Typography_1.Typography, { variant: "caption", color: "grey", colorIntensity: "600", children: "\u0423\u0442\u043E\u0447\u043D\u0438\u0442\u0435 \u0437\u0430\u043F\u0440\u043E\u0441 \u0434\u043B\u044F \u0431\u043E\u043B\u0435\u0435 \u043B\u0443\u0447\u0448\u0435\u0433\u043E \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u0430 \u043F\u043E\u0438\u0441\u043A\u0430" }) }))] }) })] }), (0, jsx_runtime_1.jsxs)(DialogActions_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(Button_1.Button, { variant: "text", ...cancelButtonProps, children: "\u041E\u0442\u043C\u0435\u043D\u0430" }), (0, jsx_runtime_1.jsx)(Button_1.Button, { ...confirmButtonProps, children: "\u0412\u044B\u0431\u0440\u0430\u0442\u044C" })] })] }));
36
+ return ((0, jsx_runtime_1.jsxs)(Dialog_1.Dialog, { ...modalProps, headerContent: (0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(styles_1.ResetButton, { variant: "text", color: "primary", ...resetButtonProps, children: "\u0421\u0431\u0440\u043E\u0441\u0438\u0442\u044C" }), modalProps.headerContent] }), children: [(0, jsx_runtime_1.jsxs)(styles_1.StyledDialogContent, { "$size": modalProps.size, children: [(0, jsx_runtime_1.jsx)(styles_1.SearchFieldWrapper, { children: (0, jsx_runtime_1.jsx)(styles_1.StyledSearchField, { fullWidth: true, ...searchFieldProps, isLoading: isShowSearchFieldLoader, helperText: constants_1.SEARCH_FIELD_HELPER_TEXT }) }), (0, jsx_runtime_1.jsx)(styles_1.CheckableTagWrapper, { children: (0, jsx_runtime_1.jsx)(CheckableTag_1.CheckableTag, { ...checkableTagProps, endAddon: (badgeProps) => ((0, jsx_runtime_1.jsx)(TagBadge_1.TagBadge, { ...badgeProps, badgeContent: badgeContent, showZero: true })) }) }), (0, jsx_runtime_1.jsx)(styles_1.StyledPaper, { variant: "outlined", children: (0, jsx_runtime_1.jsxs)(styles_1.TreeListWrapper, { children: [renderComponent(), isShowUserHint && ((0, jsx_runtime_1.jsx)(styles_1.UserHintWrapper, { children: (0, jsx_runtime_1.jsx)(Typography_1.Typography, { variant: "caption", color: "grey", colorIntensity: "600", children: "\u0423\u0442\u043E\u0447\u043D\u0438\u0442\u0435 \u0437\u0430\u043F\u0440\u043E\u0441 \u0434\u043B\u044F \u0431\u043E\u043B\u0435\u0435 \u043B\u0443\u0447\u0448\u0435\u0433\u043E \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\u0430 \u043F\u043E\u0438\u0441\u043A\u0430" }) }))] }) })] }), (0, jsx_runtime_1.jsxs)(DialogActions_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(styles_1.CancelButton, { variant: "text", ...cancelButtonProps, children: "\u041E\u0442\u043C\u0435\u043D\u0430" }), (0, jsx_runtime_1.jsx)(Button_1.Button, { ...confirmButtonProps, children: "\u0412\u044B\u0431\u0440\u0430\u0442\u044C" })] })] }));
41
37
  };
42
38
  exports.OptionsModal = OptionsModal;
@@ -9,9 +9,44 @@ export declare const TreeListWrapper: import("@emotion/styled/dist/declarations/
9
9
  theme?: import("@emotion/react").Theme | undefined;
10
10
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
11
11
  }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
12
+ export declare const TreeViewSlot: import("@emotion/styled/dist/declarations/src/types").StyledComponent<{
13
+ theme?: import("@emotion/react").Theme | undefined;
14
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
15
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
16
+ export declare const SearchFieldWrapper: import("@emotion/styled/dist/declarations/src/types").StyledComponent<{
17
+ theme?: import("@emotion/react").Theme | undefined;
18
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
19
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
20
+ export declare const CheckableTagWrapper: import("@emotion/styled/dist/declarations/src/types").StyledComponent<{
21
+ theme?: import("@emotion/react").Theme | undefined;
22
+ as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
23
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
12
24
  export declare const StyledSearchField: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../../SearchField").SearchFieldProps, "ref"> & import("react").RefAttributes<HTMLDivElement> & {
13
25
  theme?: import("@emotion/react").Theme | undefined;
14
26
  }, {}, {}>;
27
+ export declare const StyledPaper: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../../Paper").PaperProps, "ref"> & import("react").RefAttributes<HTMLDivElement> & {
28
+ theme?: import("@emotion/react").Theme | undefined;
29
+ }, {}, {}>;
30
+ export declare const CancelButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
31
+ variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
32
+ loading?: boolean | undefined;
33
+ color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
34
+ component?: import("react").ElementType | undefined;
35
+ selected?: boolean | undefined;
36
+ size?: "large" | "medium" | undefined;
37
+ } & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
38
+ theme?: import("@emotion/react").Theme | undefined;
39
+ }, {}, {}>;
40
+ export declare const ResetButton: import("@emotion/styled/dist/declarations/src/types").StyledComponent<Omit<import("../..").WithoutEmotionSpecific<import("@mui/material").ButtonProps>, "color" | "component" | "size" | "variant" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple"> & {
41
+ variant?: "light" | "link" | "text" | "contained" | "outlined" | undefined;
42
+ loading?: boolean | undefined;
43
+ color?: "primary" | "success" | "warning" | "error" | "grey" | undefined;
44
+ component?: import("react").ElementType | undefined;
45
+ selected?: boolean | undefined;
46
+ size?: "large" | "medium" | undefined;
47
+ } & Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, ""> & import("react").RefAttributes<HTMLButtonElement> & {
48
+ theme?: import("@emotion/react").Theme | undefined;
49
+ }, {}, {}>;
15
50
  export declare const UserHintWrapper: import("@emotion/styled/dist/declarations/src/types").StyledComponent<{
16
51
  theme?: import("@emotion/react").Theme | undefined;
17
52
  as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;