@ozen-ui/kit 0.64.0 → 0.66.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 (453) hide show
  1. package/BaseBottomSheet/package.json +5 -0
  2. package/ChipGroup/package.json +5 -0
  3. package/DialogNext/package.json +5 -0
  4. package/DrawerNext/package.json +5 -0
  5. package/Title/package.json +5 -0
  6. package/__inner__/cjs/components/AutocompleteNext/Autocomplete.css +1 -0
  7. package/__inner__/cjs/components/AutocompleteNext/Autocomplete.js +11 -11
  8. package/__inner__/cjs/components/AutocompleteNext/components/AutocompleteInput/AutocompleteInput.js +2 -2
  9. package/__inner__/cjs/components/AutocompleteNext/components/AutocompleteInput/types.d.ts +2 -1
  10. package/__inner__/cjs/components/AutocompleteNext/components/AutocompleteRenderRight/AutocompleteRenderRight.d.ts +2 -1
  11. package/__inner__/cjs/components/AutocompleteNext/components/AutocompleteRenderRight/AutocompleteRenderRight.js +14 -9
  12. package/__inner__/cjs/components/AutocompleteNext/constants.d.ts +1 -0
  13. package/__inner__/cjs/components/AutocompleteNext/constants.js +2 -1
  14. package/__inner__/cjs/components/AutocompleteNext/helpers.d.ts +1 -0
  15. package/__inner__/cjs/components/AutocompleteNext/types.d.ts +4 -0
  16. package/__inner__/cjs/components/AutocompleteNext/types.js +6 -0
  17. package/__inner__/cjs/components/ButtonNext/types.d.ts +4 -1
  18. package/__inner__/cjs/components/ChipGroup/ChipGroup.css +16 -0
  19. package/__inner__/cjs/components/ChipGroup/ChipGroup.d.ts +4 -0
  20. package/__inner__/cjs/components/ChipGroup/ChipGroup.js +52 -0
  21. package/__inner__/cjs/components/ChipGroup/ChipGroupContext.d.ts +10 -0
  22. package/__inner__/cjs/components/ChipGroup/ChipGroupContext.js +5 -0
  23. package/__inner__/cjs/components/ChipGroup/constants.d.ts +5 -0
  24. package/__inner__/cjs/components/ChipGroup/constants.js +6 -0
  25. package/__inner__/cjs/components/ChipGroup/index.d.ts +2 -0
  26. package/__inner__/cjs/components/ChipGroup/index.js +5 -0
  27. package/__inner__/cjs/components/ChipGroup/types.d.ts +33 -0
  28. package/__inner__/cjs/components/ChipGroup/types.js +2 -0
  29. package/__inner__/cjs/components/ChipNext/Chip.css +50 -17
  30. package/__inner__/cjs/components/ChipNext/Chip.js +32 -5
  31. package/__inner__/cjs/components/ChipNext/types.d.ts +9 -5
  32. package/__inner__/cjs/components/ChipNext/types.js +9 -2
  33. package/__inner__/cjs/components/Dialog/Dialog.d.ts +1 -3
  34. package/__inner__/cjs/components/Drawer/Drawer.d.ts +4 -3
  35. package/__inner__/cjs/components/Drawer/Drawer.js +3 -0
  36. package/__inner__/cjs/components/DrawerNext/Drawer.css +117 -0
  37. package/__inner__/cjs/components/DrawerNext/Drawer.d.ts +11 -0
  38. package/__inner__/cjs/components/DrawerNext/Drawer.js +55 -0
  39. package/__inner__/cjs/components/DrawerNext/DrawerContext.d.ts +10 -0
  40. package/__inner__/cjs/components/DrawerNext/DrawerContext.js +21 -0
  41. package/__inner__/cjs/components/DrawerNext/constants.d.ts +8 -0
  42. package/__inner__/cjs/components/DrawerNext/constants.js +11 -0
  43. package/__inner__/cjs/components/DrawerNext/entities/device.d.ts +2 -0
  44. package/__inner__/cjs/components/DrawerNext/entities/device.js +4 -0
  45. package/__inner__/cjs/components/DrawerNext/entities/index.d.ts +4 -0
  46. package/__inner__/cjs/components/DrawerNext/entities/index.js +7 -0
  47. package/__inner__/cjs/components/DrawerNext/entities/placement.d.ts +2 -0
  48. package/__inner__/cjs/components/DrawerNext/entities/placement.js +4 -0
  49. package/__inner__/cjs/components/DrawerNext/entities/size.d.ts +11 -0
  50. package/__inner__/cjs/components/DrawerNext/entities/size.js +7 -0
  51. package/__inner__/cjs/components/DrawerNext/entities/variant.d.ts +2 -0
  52. package/__inner__/cjs/components/DrawerNext/entities/variant.js +4 -0
  53. package/__inner__/cjs/components/DrawerNext/hooks/index.d.ts +1 -0
  54. package/__inner__/cjs/components/DrawerNext/hooks/index.js +4 -0
  55. package/__inner__/cjs/components/DrawerNext/hooks/useDrawerWidth.d.ts +7 -0
  56. package/__inner__/cjs/components/DrawerNext/hooks/useDrawerWidth.js +36 -0
  57. package/__inner__/cjs/components/DrawerNext/index.d.ts +5 -0
  58. package/__inner__/cjs/components/DrawerNext/index.js +8 -0
  59. package/__inner__/cjs/components/DrawerNext/modules/DrawerBody/DrawerBody.css +20 -0
  60. package/__inner__/cjs/components/DrawerNext/modules/DrawerBody/DrawerBody.d.ts +4 -0
  61. package/__inner__/cjs/components/DrawerNext/modules/DrawerBody/DrawerBody.js +17 -0
  62. package/__inner__/cjs/components/DrawerNext/modules/DrawerBody/index.d.ts +2 -0
  63. package/__inner__/cjs/components/DrawerNext/modules/DrawerBody/index.js +5 -0
  64. package/__inner__/cjs/components/DrawerNext/modules/DrawerBody/types.d.ts +11 -0
  65. package/__inner__/cjs/components/DrawerNext/modules/DrawerBody/types.js +2 -0
  66. package/__inner__/cjs/components/DrawerNext/modules/DrawerCloseButton/DrawerCloseButton.d.ts +3 -0
  67. package/__inner__/cjs/components/DrawerNext/modules/DrawerCloseButton/DrawerCloseButton.js +21 -0
  68. package/__inner__/cjs/components/DrawerNext/modules/DrawerCloseButton/constants.d.ts +1 -0
  69. package/__inner__/cjs/components/DrawerNext/modules/DrawerCloseButton/constants.js +4 -0
  70. package/__inner__/cjs/components/DrawerNext/modules/DrawerCloseButton/index.d.ts +2 -0
  71. package/__inner__/cjs/components/DrawerNext/modules/DrawerCloseButton/index.js +5 -0
  72. package/__inner__/cjs/components/DrawerNext/modules/DrawerCloseButton/types.d.ts +7 -0
  73. package/__inner__/cjs/components/DrawerNext/modules/DrawerCloseButton/types.js +2 -0
  74. package/__inner__/cjs/components/DrawerNext/modules/DrawerFooter/DrawerFooter.css +21 -0
  75. package/__inner__/cjs/components/DrawerNext/modules/DrawerFooter/DrawerFooter.d.ts +4 -0
  76. package/__inner__/cjs/components/DrawerNext/modules/DrawerFooter/DrawerFooter.js +18 -0
  77. package/__inner__/cjs/components/DrawerNext/modules/DrawerFooter/constants.d.ts +1 -0
  78. package/__inner__/cjs/components/DrawerNext/modules/DrawerFooter/constants.js +4 -0
  79. package/__inner__/cjs/components/DrawerNext/modules/DrawerFooter/entities/index.d.ts +1 -0
  80. package/__inner__/cjs/components/DrawerNext/modules/DrawerFooter/entities/index.js +4 -0
  81. package/__inner__/cjs/components/DrawerNext/modules/DrawerFooter/entities/mode.d.ts +2 -0
  82. package/__inner__/cjs/components/DrawerNext/modules/DrawerFooter/entities/mode.js +4 -0
  83. package/__inner__/cjs/components/DrawerNext/modules/DrawerFooter/index.d.ts +3 -0
  84. package/__inner__/cjs/components/DrawerNext/modules/DrawerFooter/index.js +6 -0
  85. package/__inner__/cjs/components/DrawerNext/modules/DrawerFooter/types.d.ts +14 -0
  86. package/__inner__/cjs/components/DrawerNext/modules/DrawerFooter/types.js +2 -0
  87. package/__inner__/cjs/components/DrawerNext/modules/DrawerFooterButton/DrawerFooterButton.d.ts +3 -0
  88. package/__inner__/cjs/components/DrawerNext/modules/DrawerFooterButton/DrawerFooterButton.js +15 -0
  89. package/__inner__/cjs/components/DrawerNext/modules/DrawerFooterButton/constants.d.ts +1 -0
  90. package/__inner__/cjs/components/DrawerNext/modules/DrawerFooterButton/constants.js +4 -0
  91. package/__inner__/cjs/components/DrawerNext/modules/DrawerFooterButton/index.d.ts +2 -0
  92. package/__inner__/cjs/components/DrawerNext/modules/DrawerFooterButton/index.js +5 -0
  93. package/__inner__/cjs/components/DrawerNext/modules/DrawerFooterButton/types.d.ts +6 -0
  94. package/__inner__/cjs/components/DrawerNext/modules/DrawerFooterButton/types.js +2 -0
  95. package/__inner__/cjs/components/DrawerNext/modules/DrawerFooterButtonsGroup/DrawerFooterButtonsGroup.css +13 -0
  96. package/__inner__/cjs/components/DrawerNext/modules/DrawerFooterButtonsGroup/DrawerFooterButtonsGroup.d.ts +4 -0
  97. package/__inner__/cjs/components/DrawerNext/modules/DrawerFooterButtonsGroup/DrawerFooterButtonsGroup.js +17 -0
  98. package/__inner__/cjs/components/DrawerNext/modules/DrawerFooterButtonsGroup/index.d.ts +2 -0
  99. package/__inner__/cjs/components/DrawerNext/modules/DrawerFooterButtonsGroup/index.js +5 -0
  100. package/__inner__/cjs/components/DrawerNext/modules/DrawerFooterButtonsGroup/types.d.ts +11 -0
  101. package/__inner__/cjs/components/DrawerNext/modules/DrawerFooterButtonsGroup/types.js +2 -0
  102. package/__inner__/cjs/components/DrawerNext/modules/DrawerHeader/DrawerHeader.css +14 -0
  103. package/__inner__/cjs/components/DrawerNext/modules/DrawerHeader/DrawerHeader.d.ts +4 -0
  104. package/__inner__/cjs/components/DrawerNext/modules/DrawerHeader/DrawerHeader.js +17 -0
  105. package/__inner__/cjs/components/DrawerNext/modules/DrawerHeader/index.d.ts +2 -0
  106. package/__inner__/cjs/components/DrawerNext/modules/DrawerHeader/index.js +5 -0
  107. package/__inner__/cjs/components/DrawerNext/modules/DrawerHeader/types.d.ts +11 -0
  108. package/__inner__/cjs/components/DrawerNext/modules/DrawerHeader/types.js +2 -0
  109. package/__inner__/cjs/components/DrawerNext/modules/DrawerSubtitle/DrawerSubtitle.css +22 -0
  110. package/__inner__/cjs/components/DrawerNext/modules/DrawerSubtitle/DrawerSubtitle.d.ts +4 -0
  111. package/__inner__/cjs/components/DrawerNext/modules/DrawerSubtitle/DrawerSubtitle.js +17 -0
  112. package/__inner__/cjs/components/DrawerNext/modules/DrawerSubtitle/index.d.ts +2 -0
  113. package/__inner__/cjs/components/DrawerNext/modules/DrawerSubtitle/index.js +5 -0
  114. package/__inner__/cjs/components/DrawerNext/modules/DrawerSubtitle/types.d.ts +11 -0
  115. package/__inner__/cjs/components/DrawerNext/modules/DrawerSubtitle/types.js +2 -0
  116. package/__inner__/cjs/components/DrawerNext/modules/DrawerTitle/DrawerTitle.css +14 -0
  117. package/__inner__/cjs/components/DrawerNext/modules/DrawerTitle/DrawerTitle.d.ts +4 -0
  118. package/__inner__/cjs/components/DrawerNext/modules/DrawerTitle/DrawerTitle.js +17 -0
  119. package/__inner__/cjs/components/DrawerNext/modules/DrawerTitle/index.d.ts +2 -0
  120. package/__inner__/cjs/components/DrawerNext/modules/DrawerTitle/index.js +5 -0
  121. package/__inner__/cjs/components/DrawerNext/modules/DrawerTitle/types.d.ts +11 -0
  122. package/__inner__/cjs/components/DrawerNext/modules/DrawerTitle/types.js +2 -0
  123. package/__inner__/cjs/components/DrawerNext/modules/index.d.ts +8 -0
  124. package/__inner__/cjs/components/DrawerNext/modules/index.js +11 -0
  125. package/__inner__/cjs/components/DrawerNext/types.d.ts +30 -0
  126. package/__inner__/cjs/components/DrawerNext/types.js +2 -0
  127. package/__inner__/cjs/components/DrawerNext/utils.d.ts +8 -0
  128. package/__inner__/cjs/components/DrawerNext/utils.js +17 -0
  129. package/__inner__/cjs/components/FormGroup/types.d.ts +2 -0
  130. package/__inner__/cjs/components/FormTitle/FormTitle.d.ts +1 -0
  131. package/__inner__/cjs/components/IconButtonNext/types.d.ts +4 -1
  132. package/__inner__/cjs/components/IconButtonNext/utils.d.ts +2 -2
  133. package/__inner__/cjs/components/InputOTP/constants.d.ts +1 -1
  134. package/__inner__/cjs/components/Modal/Modal.d.ts +1 -3
  135. package/__inner__/cjs/components/Modal/types.d.ts +1 -3
  136. package/__inner__/cjs/components/Paper/types.d.ts +2 -0
  137. package/__inner__/cjs/components/TagNext/types.d.ts +1 -1
  138. package/__inner__/cjs/components/TagNext/types.js +1 -0
  139. package/__inner__/cjs/components/ThemeProvider/types.d.ts +8 -2
  140. package/__inner__/cjs/components/Title/Title.d.ts +4 -0
  141. package/__inner__/cjs/components/Title/Title.js +27 -0
  142. package/__inner__/cjs/components/Title/TitleContext.d.ts +8 -0
  143. package/__inner__/cjs/components/Title/TitleContext.js +17 -0
  144. package/__inner__/cjs/components/Title/components/index.d.ts +1 -0
  145. package/__inner__/cjs/components/Title/components/index.js +4 -0
  146. package/__inner__/cjs/components/Title/components/variant/TitleVariant.d.ts +2 -0
  147. package/__inner__/cjs/components/Title/components/variant/TitleVariant.js +24 -0
  148. package/__inner__/cjs/components/Title/components/variant/index.d.ts +4 -0
  149. package/__inner__/cjs/components/Title/components/variant/index.js +7 -0
  150. package/__inner__/cjs/components/Title/components/variant/main/TitleMain.css +38 -0
  151. package/__inner__/cjs/components/Title/components/variant/main/TitleMain.d.ts +4 -0
  152. package/__inner__/cjs/components/Title/components/variant/main/TitleMain.js +35 -0
  153. package/__inner__/cjs/components/Title/components/variant/main/config.d.ts +3 -0
  154. package/__inner__/cjs/components/Title/components/variant/main/config.js +7 -0
  155. package/__inner__/cjs/components/Title/components/variant/main/index.d.ts +2 -0
  156. package/__inner__/cjs/components/Title/components/variant/main/index.js +5 -0
  157. package/__inner__/cjs/components/Title/components/variant/main/types.d.ts +19 -0
  158. package/__inner__/cjs/components/Title/components/variant/main/types.js +2 -0
  159. package/__inner__/cjs/components/Title/components/variant/secondary/TitleSecondary.css +26 -0
  160. package/__inner__/cjs/components/Title/components/variant/secondary/TitleSecondary.d.ts +4 -0
  161. package/__inner__/cjs/components/Title/components/variant/secondary/TitleSecondary.js +15 -0
  162. package/__inner__/cjs/components/Title/components/variant/secondary/index.d.ts +2 -0
  163. package/__inner__/cjs/components/Title/components/variant/secondary/index.js +5 -0
  164. package/__inner__/cjs/components/Title/components/variant/secondary/types.d.ts +13 -0
  165. package/__inner__/cjs/components/Title/components/variant/secondary/types.js +2 -0
  166. package/__inner__/cjs/components/Title/components/variant/types.d.ts +8 -0
  167. package/__inner__/cjs/components/Title/components/variant/types.js +2 -0
  168. package/__inner__/cjs/components/Title/constants.d.ts +4 -0
  169. package/__inner__/cjs/components/Title/constants.js +6 -0
  170. package/__inner__/cjs/components/Title/entities/icon.d.ts +3 -0
  171. package/__inner__/cjs/components/Title/entities/icon.js +2 -0
  172. package/__inner__/cjs/components/Title/entities/index.d.ts +3 -0
  173. package/__inner__/cjs/components/Title/entities/index.js +6 -0
  174. package/__inner__/cjs/components/Title/entities/size.d.ts +2 -0
  175. package/__inner__/cjs/components/Title/entities/size.js +4 -0
  176. package/__inner__/cjs/components/Title/entities/variant.d.ts +7 -0
  177. package/__inner__/cjs/components/Title/entities/variant.js +4 -0
  178. package/__inner__/cjs/components/Title/index.d.ts +4 -0
  179. package/__inner__/cjs/components/Title/index.js +7 -0
  180. package/__inner__/cjs/components/Title/modules/icon-button/TitleIconButton.d.ts +3 -0
  181. package/__inner__/cjs/components/Title/modules/icon-button/TitleIconButton.js +16 -0
  182. package/__inner__/cjs/components/Title/modules/icon-button/constants.d.ts +1 -0
  183. package/__inner__/cjs/components/Title/modules/icon-button/constants.js +4 -0
  184. package/__inner__/cjs/components/Title/modules/icon-button/index.d.ts +2 -0
  185. package/__inner__/cjs/components/Title/modules/icon-button/index.js +5 -0
  186. package/__inner__/cjs/components/Title/modules/icon-button/types.d.ts +6 -0
  187. package/__inner__/cjs/components/Title/modules/icon-button/types.js +2 -0
  188. package/__inner__/cjs/components/Title/modules/index.d.ts +2 -0
  189. package/__inner__/cjs/components/Title/modules/index.js +5 -0
  190. package/__inner__/cjs/components/Title/modules/tag/TitleTag.css +4 -0
  191. package/__inner__/cjs/components/Title/modules/tag/TitleTag.d.ts +3 -0
  192. package/__inner__/cjs/components/Title/modules/tag/TitleTag.js +11 -0
  193. package/__inner__/cjs/components/Title/modules/tag/constants.d.ts +1 -0
  194. package/__inner__/cjs/components/Title/modules/tag/constants.js +4 -0
  195. package/__inner__/cjs/components/Title/modules/tag/index.d.ts +2 -0
  196. package/__inner__/cjs/components/Title/modules/tag/index.js +5 -0
  197. package/__inner__/cjs/components/Title/modules/tag/types.d.ts +6 -0
  198. package/__inner__/cjs/components/Title/modules/tag/types.js +2 -0
  199. package/__inner__/cjs/components/Title/types.d.ts +10 -0
  200. package/__inner__/cjs/components/Title/types.js +2 -0
  201. package/__inner__/cjs/constants/environment/index.d.ts +4 -0
  202. package/__inner__/cjs/constants/environment/index.js +7 -0
  203. package/__inner__/cjs/constants/environment/isClient.d.ts +1 -0
  204. package/__inner__/cjs/constants/environment/isClient.js +5 -0
  205. package/__inner__/cjs/constants/environment/isDev.d.ts +1 -0
  206. package/__inner__/cjs/constants/environment/isDev.js +5 -0
  207. package/__inner__/cjs/constants/environment/isProduction.d.ts +1 -0
  208. package/__inner__/cjs/constants/environment/isProduction.js +4 -0
  209. package/__inner__/cjs/constants/environment/isServer.d.ts +1 -0
  210. package/__inner__/cjs/constants/environment/isServer.js +4 -0
  211. package/__inner__/cjs/types/object/index.d.ts +1 -0
  212. package/__inner__/cjs/types/object/index.js +4 -0
  213. package/__inner__/cjs/types/object/withPartial.d.ts +3 -0
  214. package/__inner__/cjs/types/object/withPartial.js +2 -0
  215. package/__inner__/cjs/utils/css/generate-variable-name/generateCSSVariableName.d.ts +1 -0
  216. package/__inner__/cjs/utils/css/generate-variable-name/generateCSSVariableName.js +11 -0
  217. package/__inner__/cjs/utils/css/generate-variable-name/index.d.ts +1 -0
  218. package/__inner__/cjs/utils/css/generate-variable-name/index.js +4 -0
  219. package/__inner__/cjs/utils/css/generate-variables/generateCSSVariables.d.ts +2 -0
  220. package/__inner__/cjs/utils/css/generate-variables/generateCSSVariables.js +14 -0
  221. package/__inner__/cjs/utils/css/generate-variables/index.d.ts +1 -0
  222. package/__inner__/cjs/utils/css/generate-variables/index.js +4 -0
  223. package/__inner__/cjs/utils/css/index.d.ts +3 -0
  224. package/__inner__/cjs/utils/css/index.js +6 -0
  225. package/__inner__/cjs/utils/css/is-variable-name/index.d.ts +1 -0
  226. package/__inner__/cjs/utils/css/is-variable-name/index.js +4 -0
  227. package/__inner__/cjs/utils/css/is-variable-name/isCSSVariableName.d.ts +1 -0
  228. package/__inner__/cjs/utils/css/is-variable-name/isCSSVariableName.js +5 -0
  229. package/__inner__/esm/components/AutocompleteNext/Autocomplete.css +1 -0
  230. package/__inner__/esm/components/AutocompleteNext/Autocomplete.js +12 -12
  231. package/__inner__/esm/components/AutocompleteNext/components/AutocompleteInput/AutocompleteInput.js +2 -2
  232. package/__inner__/esm/components/AutocompleteNext/components/AutocompleteInput/types.d.ts +2 -1
  233. package/__inner__/esm/components/AutocompleteNext/components/AutocompleteRenderRight/AutocompleteRenderRight.d.ts +2 -1
  234. package/__inner__/esm/components/AutocompleteNext/components/AutocompleteRenderRight/AutocompleteRenderRight.js +14 -9
  235. package/__inner__/esm/components/AutocompleteNext/constants.d.ts +1 -0
  236. package/__inner__/esm/components/AutocompleteNext/constants.js +1 -0
  237. package/__inner__/esm/components/AutocompleteNext/helpers.d.ts +1 -0
  238. package/__inner__/esm/components/AutocompleteNext/types.d.ts +4 -0
  239. package/__inner__/esm/components/AutocompleteNext/types.js +5 -1
  240. package/__inner__/esm/components/ButtonNext/types.d.ts +4 -1
  241. package/__inner__/esm/components/ChipGroup/ChipGroup.css +16 -0
  242. package/__inner__/esm/components/ChipGroup/ChipGroup.d.ts +4 -0
  243. package/__inner__/esm/components/ChipGroup/ChipGroup.js +49 -0
  244. package/__inner__/esm/components/ChipGroup/ChipGroupContext.d.ts +10 -0
  245. package/__inner__/esm/components/ChipGroup/ChipGroupContext.js +2 -0
  246. package/__inner__/esm/components/ChipGroup/constants.d.ts +5 -0
  247. package/__inner__/esm/components/ChipGroup/constants.js +3 -0
  248. package/__inner__/esm/components/ChipGroup/index.d.ts +2 -0
  249. package/__inner__/esm/components/ChipGroup/index.js +2 -0
  250. package/__inner__/esm/components/ChipGroup/types.d.ts +33 -0
  251. package/__inner__/esm/components/ChipGroup/types.js +1 -0
  252. package/__inner__/esm/components/ChipNext/Chip.css +50 -17
  253. package/__inner__/esm/components/ChipNext/Chip.js +32 -5
  254. package/__inner__/esm/components/ChipNext/types.d.ts +9 -5
  255. package/__inner__/esm/components/ChipNext/types.js +8 -1
  256. package/__inner__/esm/components/Dialog/Dialog.d.ts +1 -3
  257. package/__inner__/esm/components/Drawer/Drawer.d.ts +4 -3
  258. package/__inner__/esm/components/Drawer/Drawer.js +3 -0
  259. package/__inner__/esm/components/DrawerNext/Drawer.css +117 -0
  260. package/__inner__/esm/components/DrawerNext/Drawer.d.ts +11 -0
  261. package/__inner__/esm/components/DrawerNext/Drawer.js +52 -0
  262. package/__inner__/esm/components/DrawerNext/DrawerContext.d.ts +10 -0
  263. package/__inner__/esm/components/DrawerNext/DrawerContext.js +17 -0
  264. package/__inner__/esm/components/DrawerNext/constants.d.ts +8 -0
  265. package/__inner__/esm/components/DrawerNext/constants.js +8 -0
  266. package/__inner__/esm/components/DrawerNext/entities/device.d.ts +2 -0
  267. package/__inner__/esm/components/DrawerNext/entities/device.js +1 -0
  268. package/__inner__/esm/components/DrawerNext/entities/index.d.ts +4 -0
  269. package/__inner__/esm/components/DrawerNext/entities/index.js +4 -0
  270. package/__inner__/esm/components/DrawerNext/entities/placement.d.ts +2 -0
  271. package/__inner__/esm/components/DrawerNext/entities/placement.js +1 -0
  272. package/__inner__/esm/components/DrawerNext/entities/size.d.ts +11 -0
  273. package/__inner__/esm/components/DrawerNext/entities/size.js +4 -0
  274. package/__inner__/esm/components/DrawerNext/entities/variant.d.ts +2 -0
  275. package/__inner__/esm/components/DrawerNext/entities/variant.js +1 -0
  276. package/__inner__/esm/components/DrawerNext/hooks/index.d.ts +1 -0
  277. package/__inner__/esm/components/DrawerNext/hooks/index.js +1 -0
  278. package/__inner__/esm/components/DrawerNext/hooks/useDrawerWidth.d.ts +7 -0
  279. package/__inner__/esm/components/DrawerNext/hooks/useDrawerWidth.js +32 -0
  280. package/__inner__/esm/components/DrawerNext/index.d.ts +5 -0
  281. package/__inner__/esm/components/DrawerNext/index.js +5 -0
  282. package/__inner__/esm/components/DrawerNext/modules/DrawerBody/DrawerBody.css +20 -0
  283. package/__inner__/esm/components/DrawerNext/modules/DrawerBody/DrawerBody.d.ts +4 -0
  284. package/__inner__/esm/components/DrawerNext/modules/DrawerBody/DrawerBody.js +14 -0
  285. package/__inner__/esm/components/DrawerNext/modules/DrawerBody/index.d.ts +2 -0
  286. package/__inner__/esm/components/DrawerNext/modules/DrawerBody/index.js +2 -0
  287. package/__inner__/esm/components/DrawerNext/modules/DrawerBody/types.d.ts +11 -0
  288. package/__inner__/esm/components/DrawerNext/modules/DrawerBody/types.js +1 -0
  289. package/__inner__/esm/components/DrawerNext/modules/DrawerCloseButton/DrawerCloseButton.d.ts +3 -0
  290. package/__inner__/esm/components/DrawerNext/modules/DrawerCloseButton/DrawerCloseButton.js +18 -0
  291. package/__inner__/esm/components/DrawerNext/modules/DrawerCloseButton/constants.d.ts +1 -0
  292. package/__inner__/esm/components/DrawerNext/modules/DrawerCloseButton/constants.js +1 -0
  293. package/__inner__/esm/components/DrawerNext/modules/DrawerCloseButton/index.d.ts +2 -0
  294. package/__inner__/esm/components/DrawerNext/modules/DrawerCloseButton/index.js +2 -0
  295. package/__inner__/esm/components/DrawerNext/modules/DrawerCloseButton/types.d.ts +7 -0
  296. package/__inner__/esm/components/DrawerNext/modules/DrawerCloseButton/types.js +1 -0
  297. package/__inner__/esm/components/DrawerNext/modules/DrawerFooter/DrawerFooter.css +21 -0
  298. package/__inner__/esm/components/DrawerNext/modules/DrawerFooter/DrawerFooter.d.ts +4 -0
  299. package/__inner__/esm/components/DrawerNext/modules/DrawerFooter/DrawerFooter.js +15 -0
  300. package/__inner__/esm/components/DrawerNext/modules/DrawerFooter/constants.d.ts +1 -0
  301. package/__inner__/esm/components/DrawerNext/modules/DrawerFooter/constants.js +1 -0
  302. package/__inner__/esm/components/DrawerNext/modules/DrawerFooter/entities/index.d.ts +1 -0
  303. package/__inner__/esm/components/DrawerNext/modules/DrawerFooter/entities/index.js +1 -0
  304. package/__inner__/esm/components/DrawerNext/modules/DrawerFooter/entities/mode.d.ts +2 -0
  305. package/__inner__/esm/components/DrawerNext/modules/DrawerFooter/entities/mode.js +1 -0
  306. package/__inner__/esm/components/DrawerNext/modules/DrawerFooter/index.d.ts +3 -0
  307. package/__inner__/esm/components/DrawerNext/modules/DrawerFooter/index.js +3 -0
  308. package/__inner__/esm/components/DrawerNext/modules/DrawerFooter/types.d.ts +14 -0
  309. package/__inner__/esm/components/DrawerNext/modules/DrawerFooter/types.js +1 -0
  310. package/__inner__/esm/components/DrawerNext/modules/DrawerFooterButton/DrawerFooterButton.d.ts +3 -0
  311. package/__inner__/esm/components/DrawerNext/modules/DrawerFooterButton/DrawerFooterButton.js +12 -0
  312. package/__inner__/esm/components/DrawerNext/modules/DrawerFooterButton/constants.d.ts +1 -0
  313. package/__inner__/esm/components/DrawerNext/modules/DrawerFooterButton/constants.js +1 -0
  314. package/__inner__/esm/components/DrawerNext/modules/DrawerFooterButton/index.d.ts +2 -0
  315. package/__inner__/esm/components/DrawerNext/modules/DrawerFooterButton/index.js +2 -0
  316. package/__inner__/esm/components/DrawerNext/modules/DrawerFooterButton/types.d.ts +6 -0
  317. package/__inner__/esm/components/DrawerNext/modules/DrawerFooterButton/types.js +1 -0
  318. package/__inner__/esm/components/DrawerNext/modules/DrawerFooterButtonsGroup/DrawerFooterButtonsGroup.css +13 -0
  319. package/__inner__/esm/components/DrawerNext/modules/DrawerFooterButtonsGroup/DrawerFooterButtonsGroup.d.ts +4 -0
  320. package/__inner__/esm/components/DrawerNext/modules/DrawerFooterButtonsGroup/DrawerFooterButtonsGroup.js +14 -0
  321. package/__inner__/esm/components/DrawerNext/modules/DrawerFooterButtonsGroup/index.d.ts +2 -0
  322. package/__inner__/esm/components/DrawerNext/modules/DrawerFooterButtonsGroup/index.js +2 -0
  323. package/__inner__/esm/components/DrawerNext/modules/DrawerFooterButtonsGroup/types.d.ts +11 -0
  324. package/__inner__/esm/components/DrawerNext/modules/DrawerFooterButtonsGroup/types.js +1 -0
  325. package/__inner__/esm/components/DrawerNext/modules/DrawerHeader/DrawerHeader.css +14 -0
  326. package/__inner__/esm/components/DrawerNext/modules/DrawerHeader/DrawerHeader.d.ts +4 -0
  327. package/__inner__/esm/components/DrawerNext/modules/DrawerHeader/DrawerHeader.js +14 -0
  328. package/__inner__/esm/components/DrawerNext/modules/DrawerHeader/index.d.ts +2 -0
  329. package/__inner__/esm/components/DrawerNext/modules/DrawerHeader/index.js +2 -0
  330. package/__inner__/esm/components/DrawerNext/modules/DrawerHeader/types.d.ts +11 -0
  331. package/__inner__/esm/components/DrawerNext/modules/DrawerHeader/types.js +1 -0
  332. package/__inner__/esm/components/DrawerNext/modules/DrawerSubtitle/DrawerSubtitle.css +22 -0
  333. package/__inner__/esm/components/DrawerNext/modules/DrawerSubtitle/DrawerSubtitle.d.ts +4 -0
  334. package/__inner__/esm/components/DrawerNext/modules/DrawerSubtitle/DrawerSubtitle.js +14 -0
  335. package/__inner__/esm/components/DrawerNext/modules/DrawerSubtitle/index.d.ts +2 -0
  336. package/__inner__/esm/components/DrawerNext/modules/DrawerSubtitle/index.js +2 -0
  337. package/__inner__/esm/components/DrawerNext/modules/DrawerSubtitle/types.d.ts +11 -0
  338. package/__inner__/esm/components/DrawerNext/modules/DrawerSubtitle/types.js +1 -0
  339. package/__inner__/esm/components/DrawerNext/modules/DrawerTitle/DrawerTitle.css +14 -0
  340. package/__inner__/esm/components/DrawerNext/modules/DrawerTitle/DrawerTitle.d.ts +4 -0
  341. package/__inner__/esm/components/DrawerNext/modules/DrawerTitle/DrawerTitle.js +14 -0
  342. package/__inner__/esm/components/DrawerNext/modules/DrawerTitle/index.d.ts +2 -0
  343. package/__inner__/esm/components/DrawerNext/modules/DrawerTitle/index.js +2 -0
  344. package/__inner__/esm/components/DrawerNext/modules/DrawerTitle/types.d.ts +11 -0
  345. package/__inner__/esm/components/DrawerNext/modules/DrawerTitle/types.js +1 -0
  346. package/__inner__/esm/components/DrawerNext/modules/index.d.ts +8 -0
  347. package/__inner__/esm/components/DrawerNext/modules/index.js +8 -0
  348. package/__inner__/esm/components/DrawerNext/types.d.ts +30 -0
  349. package/__inner__/esm/components/DrawerNext/types.js +1 -0
  350. package/__inner__/esm/components/DrawerNext/utils.d.ts +8 -0
  351. package/__inner__/esm/components/DrawerNext/utils.js +14 -0
  352. package/__inner__/esm/components/FormGroup/types.d.ts +2 -0
  353. package/__inner__/esm/components/FormTitle/FormTitle.d.ts +1 -0
  354. package/__inner__/esm/components/IconButtonNext/types.d.ts +4 -1
  355. package/__inner__/esm/components/IconButtonNext/utils.d.ts +2 -2
  356. package/__inner__/esm/components/InputOTP/constants.d.ts +1 -1
  357. package/__inner__/esm/components/Modal/Modal.d.ts +1 -3
  358. package/__inner__/esm/components/Modal/types.d.ts +1 -3
  359. package/__inner__/esm/components/Paper/types.d.ts +2 -0
  360. package/__inner__/esm/components/TagNext/types.d.ts +1 -1
  361. package/__inner__/esm/components/TagNext/types.js +1 -0
  362. package/__inner__/esm/components/ThemeProvider/types.d.ts +8 -2
  363. package/__inner__/esm/components/Title/Title.d.ts +4 -0
  364. package/__inner__/esm/components/Title/Title.js +24 -0
  365. package/__inner__/esm/components/Title/TitleContext.d.ts +8 -0
  366. package/__inner__/esm/components/Title/TitleContext.js +12 -0
  367. package/__inner__/esm/components/Title/components/index.d.ts +1 -0
  368. package/__inner__/esm/components/Title/components/index.js +1 -0
  369. package/__inner__/esm/components/Title/components/variant/TitleVariant.d.ts +2 -0
  370. package/__inner__/esm/components/Title/components/variant/TitleVariant.js +21 -0
  371. package/__inner__/esm/components/Title/components/variant/index.d.ts +4 -0
  372. package/__inner__/esm/components/Title/components/variant/index.js +4 -0
  373. package/__inner__/esm/components/Title/components/variant/main/TitleMain.css +38 -0
  374. package/__inner__/esm/components/Title/components/variant/main/TitleMain.d.ts +4 -0
  375. package/__inner__/esm/components/Title/components/variant/main/TitleMain.js +32 -0
  376. package/__inner__/esm/components/Title/components/variant/main/config.d.ts +3 -0
  377. package/__inner__/esm/components/Title/components/variant/main/config.js +4 -0
  378. package/__inner__/esm/components/Title/components/variant/main/index.d.ts +2 -0
  379. package/__inner__/esm/components/Title/components/variant/main/index.js +2 -0
  380. package/__inner__/esm/components/Title/components/variant/main/types.d.ts +19 -0
  381. package/__inner__/esm/components/Title/components/variant/main/types.js +1 -0
  382. package/__inner__/esm/components/Title/components/variant/secondary/TitleSecondary.css +26 -0
  383. package/__inner__/esm/components/Title/components/variant/secondary/TitleSecondary.d.ts +4 -0
  384. package/__inner__/esm/components/Title/components/variant/secondary/TitleSecondary.js +12 -0
  385. package/__inner__/esm/components/Title/components/variant/secondary/index.d.ts +2 -0
  386. package/__inner__/esm/components/Title/components/variant/secondary/index.js +2 -0
  387. package/__inner__/esm/components/Title/components/variant/secondary/types.d.ts +13 -0
  388. package/__inner__/esm/components/Title/components/variant/secondary/types.js +1 -0
  389. package/__inner__/esm/components/Title/components/variant/types.d.ts +8 -0
  390. package/__inner__/esm/components/Title/components/variant/types.js +1 -0
  391. package/__inner__/esm/components/Title/constants.d.ts +4 -0
  392. package/__inner__/esm/components/Title/constants.js +3 -0
  393. package/__inner__/esm/components/Title/entities/icon.d.ts +3 -0
  394. package/__inner__/esm/components/Title/entities/icon.js +1 -0
  395. package/__inner__/esm/components/Title/entities/index.d.ts +3 -0
  396. package/__inner__/esm/components/Title/entities/index.js +3 -0
  397. package/__inner__/esm/components/Title/entities/size.d.ts +2 -0
  398. package/__inner__/esm/components/Title/entities/size.js +1 -0
  399. package/__inner__/esm/components/Title/entities/variant.d.ts +7 -0
  400. package/__inner__/esm/components/Title/entities/variant.js +1 -0
  401. package/__inner__/esm/components/Title/index.d.ts +4 -0
  402. package/__inner__/esm/components/Title/index.js +4 -0
  403. package/__inner__/esm/components/Title/modules/icon-button/TitleIconButton.d.ts +3 -0
  404. package/__inner__/esm/components/Title/modules/icon-button/TitleIconButton.js +13 -0
  405. package/__inner__/esm/components/Title/modules/icon-button/constants.d.ts +1 -0
  406. package/__inner__/esm/components/Title/modules/icon-button/constants.js +1 -0
  407. package/__inner__/esm/components/Title/modules/icon-button/index.d.ts +2 -0
  408. package/__inner__/esm/components/Title/modules/icon-button/index.js +2 -0
  409. package/__inner__/esm/components/Title/modules/icon-button/types.d.ts +6 -0
  410. package/__inner__/esm/components/Title/modules/icon-button/types.js +1 -0
  411. package/__inner__/esm/components/Title/modules/index.d.ts +2 -0
  412. package/__inner__/esm/components/Title/modules/index.js +2 -0
  413. package/__inner__/esm/components/Title/modules/tag/TitleTag.css +4 -0
  414. package/__inner__/esm/components/Title/modules/tag/TitleTag.d.ts +3 -0
  415. package/__inner__/esm/components/Title/modules/tag/TitleTag.js +8 -0
  416. package/__inner__/esm/components/Title/modules/tag/constants.d.ts +1 -0
  417. package/__inner__/esm/components/Title/modules/tag/constants.js +1 -0
  418. package/__inner__/esm/components/Title/modules/tag/index.d.ts +2 -0
  419. package/__inner__/esm/components/Title/modules/tag/index.js +2 -0
  420. package/__inner__/esm/components/Title/modules/tag/types.d.ts +6 -0
  421. package/__inner__/esm/components/Title/modules/tag/types.js +1 -0
  422. package/__inner__/esm/components/Title/types.d.ts +10 -0
  423. package/__inner__/esm/components/Title/types.js +1 -0
  424. package/__inner__/esm/constants/environment/index.d.ts +4 -0
  425. package/__inner__/esm/constants/environment/index.js +4 -0
  426. package/__inner__/esm/constants/environment/isClient.d.ts +1 -0
  427. package/__inner__/esm/constants/environment/isClient.js +2 -0
  428. package/__inner__/esm/constants/environment/isDev.d.ts +1 -0
  429. package/__inner__/esm/constants/environment/isDev.js +2 -0
  430. package/__inner__/esm/constants/environment/isProduction.d.ts +1 -0
  431. package/__inner__/esm/constants/environment/isProduction.js +1 -0
  432. package/__inner__/esm/constants/environment/isServer.d.ts +1 -0
  433. package/__inner__/esm/constants/environment/isServer.js +1 -0
  434. package/__inner__/esm/types/object/index.d.ts +1 -0
  435. package/__inner__/esm/types/object/index.js +1 -0
  436. package/__inner__/esm/types/object/withPartial.d.ts +3 -0
  437. package/__inner__/esm/types/object/withPartial.js +1 -0
  438. package/__inner__/esm/utils/css/generate-variable-name/generateCSSVariableName.d.ts +1 -0
  439. package/__inner__/esm/utils/css/generate-variable-name/generateCSSVariableName.js +7 -0
  440. package/__inner__/esm/utils/css/generate-variable-name/index.d.ts +1 -0
  441. package/__inner__/esm/utils/css/generate-variable-name/index.js +1 -0
  442. package/__inner__/esm/utils/css/generate-variables/generateCSSVariables.d.ts +2 -0
  443. package/__inner__/esm/utils/css/generate-variables/generateCSSVariables.js +10 -0
  444. package/__inner__/esm/utils/css/generate-variables/index.d.ts +1 -0
  445. package/__inner__/esm/utils/css/generate-variables/index.js +1 -0
  446. package/__inner__/esm/utils/css/index.d.ts +3 -0
  447. package/__inner__/esm/utils/css/index.js +3 -0
  448. package/__inner__/esm/utils/css/is-variable-name/index.d.ts +1 -0
  449. package/__inner__/esm/utils/css/is-variable-name/index.js +1 -0
  450. package/__inner__/esm/utils/css/is-variable-name/isCSSVariableName.d.ts +1 -0
  451. package/__inner__/esm/utils/css/is-variable-name/isCSSVariableName.js +1 -0
  452. package/package.json +4 -4
  453. package/useResizeObserverExternal/package.json +5 -0
@@ -0,0 +1,11 @@
1
+ import type { ComponentRef, ReactNode } from 'react';
2
+ import type { ExtendableComponentPropsWithRef } from '../../../../types/ExtendableComponentPropsWithRef';
3
+ export type DrawerBodyRef = ComponentRef<'div'>;
4
+ export type DrawerBodyProps = ExtendableComponentPropsWithRef<{
5
+ /** Содержимое */
6
+ children: ReactNode;
7
+ /** Дополнительные CSS-классы */
8
+ className?: string;
9
+ /** Идентификатор компонента для тестов */
10
+ 'data-testid'?: string;
11
+ }, 'div'>;
@@ -0,0 +1,3 @@
1
+ import type { DrawerCloseButtonBaseProps } from './types';
2
+ export declare const cnDrawerCloseButton: import("@bem-react/classname").ClassNameFormatter;
3
+ export declare const DrawerCloseButton: import("../../../../utils/polymorphicComponentWithRef").PolymorphicComponentWithRef<DrawerCloseButtonBaseProps, "button">;
@@ -0,0 +1,18 @@
1
+ import { __assign, __rest } from "tslib";
2
+ import React from 'react';
3
+ import { CrossIcon } from '@ozen-ui/icons';
4
+ import { cn } from '../../../../utils/classname';
5
+ import { polymorphicComponentWithRef } from '../../../../utils/polymorphicComponentWithRef';
6
+ import { IconButton } from '../../../IconButtonNext';
7
+ import { useDrawerContext } from '../../DrawerContext';
8
+ import { DRAWER_CLOSE_BUTTON_DEFAULT_TAG } from './constants';
9
+ export var cnDrawerCloseButton = cn('DrawerNextCloseButton');
10
+ export var DrawerCloseButton = polymorphicComponentWithRef(function (_a, ref) {
11
+ var _b = _a.as, as = _b === void 0 ? DRAWER_CLOSE_BUTTON_DEFAULT_TAG : _b, className = _a.className, onClickProp = _a.onClick, _c = _a.icon, icon = _c === void 0 ? CrossIcon : _c, _d = _a.variant, variant = _d === void 0 ? 'ghost' : _d, _e = _a.name, name = _e === void 0 ? 'close' : _e, other = __rest(_a, ["as", "className", "onClick", "icon", "variant", "name"]);
12
+ var _f = useDrawerContext(), size = _f.size, onClose = _f.onClose;
13
+ var onClick = function (event) {
14
+ onClickProp === null || onClickProp === void 0 ? void 0 : onClickProp(event);
15
+ onClose();
16
+ };
17
+ return (React.createElement(IconButton, __assign({ variant: variant, name: name, as: as, size: size, ref: ref, className: cnDrawerCloseButton('', [className]), onClick: onClick, icon: icon, compressed: true }, other)));
18
+ });
@@ -0,0 +1 @@
1
+ export declare const DRAWER_CLOSE_BUTTON_DEFAULT_TAG = "button";
@@ -0,0 +1 @@
1
+ export var DRAWER_CLOSE_BUTTON_DEFAULT_TAG = 'button';
@@ -0,0 +1,2 @@
1
+ export * from './DrawerCloseButton';
2
+ export * from './types';
@@ -0,0 +1,2 @@
1
+ export * from './DrawerCloseButton';
2
+ export * from './types';
@@ -0,0 +1,7 @@
1
+ import type { ElementType } from 'react';
2
+ import type { WithPartial } from '../../../../types/object';
3
+ import type { PolymorphicComponentPropsWithoutRef } from '../../../../utils/polymorphicComponentWithRef';
4
+ import type { IconButtonBaseProps } from '../../../IconButtonNext';
5
+ import type { DRAWER_CLOSE_BUTTON_DEFAULT_TAG } from './constants';
6
+ export type DrawerCloseButtonBaseProps = WithPartial<Omit<IconButtonBaseProps, 'size'>, 'icon'>;
7
+ export type DrawerCloseButtonProps<As extends ElementType = typeof DRAWER_CLOSE_BUTTON_DEFAULT_TAG> = PolymorphicComponentPropsWithoutRef<DrawerCloseButtonBaseProps, As>;
@@ -0,0 +1,21 @@
1
+ .DrawerNextFooter {
2
+ display: flex;
3
+ padding-inline: var(--drawer-inline-padding);
4
+ padding-block: var(--drawer-blocks-gap) var(--drawer-block-padding);
5
+ margin-block-start: auto;
6
+ }
7
+
8
+ /* ---- MODE ---- */
9
+ .DrawerNextFooter_mode_start {
10
+ justify-content: flex-start;
11
+ }
12
+ .DrawerNextFooter_mode_end {
13
+ justify-content: flex-end;
14
+ }
15
+ .DrawerNextFooter_mode_space-between {
16
+ justify-content: space-between;
17
+ }
18
+ /* ---- DEVICE TYPE ---- */
19
+ .DrawerNextFooter_deviceType_mobile {
20
+ flex-direction: column;
21
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { DrawerFooterProps } from './types';
3
+ export declare const cnDrawerFooter: import("@bem-react/classname").ClassNameFormatter;
4
+ export declare const DrawerFooter: React.ForwardRefExoticComponent<Omit<DrawerFooterProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,15 @@
1
+ import { __assign, __rest } from "tslib";
2
+ import React, { forwardRef } from 'react';
3
+ import { cn } from '../../../../utils/classname';
4
+ import { useDrawerContext } from '../../DrawerContext';
5
+ import { DRAWER_FOOTER_DEFAULT_MODE } from './constants';
6
+ export var cnDrawerFooter = cn('DrawerNextFooter');
7
+ export var DrawerFooter = forwardRef(function (_a, ref) {
8
+ var children = _a.children, className = _a.className, _b = _a.mode, mode = _b === void 0 ? DRAWER_FOOTER_DEFAULT_MODE : _b, other = __rest(_a, ["children", "className", "mode"]);
9
+ var deviceType = useDrawerContext().deviceType;
10
+ return (React.createElement("div", __assign({ ref: ref, className: cnDrawerFooter({
11
+ mode: mode,
12
+ deviceType: deviceType,
13
+ }, [className]) }, other), children));
14
+ });
15
+ DrawerFooter.displayName = 'DrawerFooter';
@@ -0,0 +1 @@
1
+ export declare const DRAWER_FOOTER_DEFAULT_MODE = "end";
@@ -0,0 +1 @@
1
+ export var DRAWER_FOOTER_DEFAULT_MODE = 'end';
@@ -0,0 +1,2 @@
1
+ export declare const drawerFooterMode: readonly ["start", "end", "space-between"];
2
+ export type DrawerFooterMode = (typeof drawerFooterMode)[number];
@@ -0,0 +1 @@
1
+ export var drawerFooterMode = ['start', 'end', 'space-between'];
@@ -0,0 +1,3 @@
1
+ export * from './entities';
2
+ export * from './DrawerFooter';
3
+ export * from './types';
@@ -0,0 +1,3 @@
1
+ export * from './entities';
2
+ export * from './DrawerFooter';
3
+ export * from './types';
@@ -0,0 +1,14 @@
1
+ import type { ComponentRef, ReactNode } from 'react';
2
+ import type { ExtendableComponentPropsWithRef } from '../../../../types/ExtendableComponentPropsWithRef';
3
+ import type { DrawerFooterMode } from './entities';
4
+ export type DrawerFooterRef = ComponentRef<'div'>;
5
+ export type DrawerFooterProps = ExtendableComponentPropsWithRef<{
6
+ /** Содержимое */
7
+ children: ReactNode;
8
+ /** Режим отображения */
9
+ mode?: DrawerFooterMode;
10
+ /** Дополнительные CSS-классы */
11
+ className?: string;
12
+ /** Идентификатор компонента для тестов */
13
+ 'data-testid'?: string;
14
+ }, 'div'>;
@@ -0,0 +1,3 @@
1
+ import type { DrawerFooterButtonProps } from './types';
2
+ export declare const cnDrawerFooterButton: import("@bem-react/classname").ClassNameFormatter;
3
+ export declare const DrawerFooterButton: import("../../../../utils/polymorphicComponentWithRef").PolymorphicComponentWithRef<DrawerFooterButtonProps, "button">;
@@ -0,0 +1,12 @@
1
+ import { __assign, __rest } from "tslib";
2
+ import React from 'react';
3
+ import { cn } from '../../../../utils/classname';
4
+ import { polymorphicComponentWithRef } from '../../../../utils/polymorphicComponentWithRef';
5
+ import { Button } from '../../../ButtonNext';
6
+ import { useDrawerContext } from '../../DrawerContext';
7
+ export var cnDrawerFooterButton = cn('DrawerNextFooterButton');
8
+ export var DrawerFooterButton = polymorphicComponentWithRef(function (_a, ref) {
9
+ var as = _a.as, children = _a.children, className = _a.className, other = __rest(_a, ["as", "children", "className"]);
10
+ var size = useDrawerContext().size;
11
+ return (React.createElement(Button, __assign({}, other, { as: as, ref: ref, size: size, className: cnDrawerFooterButton('', [className]) }), children));
12
+ });
@@ -0,0 +1 @@
1
+ export declare const DRAWER_FOOTER_BUTTON_DEFAULT_TAG = "button";
@@ -0,0 +1 @@
1
+ export var DRAWER_FOOTER_BUTTON_DEFAULT_TAG = 'button';
@@ -0,0 +1,2 @@
1
+ export * from './DrawerFooterButton';
2
+ export * from './types';
@@ -0,0 +1,2 @@
1
+ export * from './DrawerFooterButton';
2
+ export * from './types';
@@ -0,0 +1,6 @@
1
+ import type { ElementType } from 'react';
2
+ import type { PolymorphicComponentPropsWithoutRef } from '../../../../utils/polymorphicComponentWithRef';
3
+ import type { ButtonBaseProps } from '../../../ButtonNext';
4
+ import type { DRAWER_FOOTER_BUTTON_DEFAULT_TAG } from './constants';
5
+ export type DrawerFooterButtonBaseProps = Omit<ButtonBaseProps, 'size'>;
6
+ export type DrawerFooterButtonProps<As extends ElementType = typeof DRAWER_FOOTER_BUTTON_DEFAULT_TAG> = PolymorphicComponentPropsWithoutRef<DrawerFooterButtonBaseProps, As>;
@@ -0,0 +1,13 @@
1
+ .DrawerNextFooterButtonsGroup {
2
+ --drawer-footer-button-gap: var(--spacing-s);
3
+ display: flex;
4
+ gap: var(--drawer-footer-button-gap);
5
+ }
6
+
7
+ /* ---- DEVICE TYPE ---- */
8
+ .DrawerNextFooterButtonsGroup_deviceType_desktop.DrawerNextFooterButtonsGroup_size_s {
9
+ --drawer-footer-button-gap: var(--spacing-xs);
10
+ }
11
+ .DrawerNextFooterButtonsGroup_deviceType_mobile {
12
+ flex-direction: column;
13
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { DrawerFooterButtonsGroupProps } from './types';
3
+ export declare const cnDrawerFooterButtonGroup: import("@bem-react/classname").ClassNameFormatter;
4
+ export declare const DrawerFooterButtonsGroup: React.ForwardRefExoticComponent<Omit<DrawerFooterButtonsGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,14 @@
1
+ import { __assign, __rest } from "tslib";
2
+ import React, { forwardRef } from 'react';
3
+ import { cn } from '../../../../utils/classname';
4
+ import { useDrawerContext } from '../../DrawerContext';
5
+ export var cnDrawerFooterButtonGroup = cn('DrawerNextFooterButtonsGroup');
6
+ export var DrawerFooterButtonsGroup = forwardRef(function (_a, ref) {
7
+ var children = _a.children, className = _a.className, other = __rest(_a, ["children", "className"]);
8
+ var _b = useDrawerContext(), size = _b.size, deviceType = _b.deviceType;
9
+ return (React.createElement("div", __assign({ ref: ref, className: cnDrawerFooterButtonGroup({
10
+ size: size,
11
+ deviceType: deviceType,
12
+ }, [className]) }, other), children));
13
+ });
14
+ DrawerFooterButtonsGroup.displayName = 'DrawerFooterButtonsGroup';
@@ -0,0 +1,2 @@
1
+ export * from './DrawerFooterButtonsGroup';
2
+ export * from './types';
@@ -0,0 +1,2 @@
1
+ export * from './DrawerFooterButtonsGroup';
2
+ export * from './types';
@@ -0,0 +1,11 @@
1
+ import type { ComponentRef, ReactNode } from 'react';
2
+ import type { ExtendableComponentPropsWithRef } from '../../../../types/ExtendableComponentPropsWithRef';
3
+ export type DrawerFooterButtonsGroupRef = ComponentRef<'div'>;
4
+ export type DrawerFooterButtonsGroupProps = ExtendableComponentPropsWithRef<{
5
+ /** Содержимое */
6
+ children: ReactNode;
7
+ /** Дополнительные CSS-классы */
8
+ className?: string;
9
+ /** Идентификатор компонента для тестов */
10
+ 'data-testid'?: string;
11
+ }, 'div'>;
@@ -0,0 +1,14 @@
1
+ .DrawerNextHeader {
2
+ --drawer-header-padding-bottom: var(--drawer-blocks-gap);
3
+ padding-inline: var(--drawer-inline-padding);
4
+ padding-block: var(--drawer-block-padding) var(--drawer-header-padding-bottom);
5
+ }
6
+
7
+
8
+ /* ---- DEVICE TYPE ---- */
9
+ .DrawerNextHeader_deviceType_desktop.DrawerNextHeader_size_s {
10
+ --drawer-header-padding-bottom: var(--spacing-s);
11
+ }
12
+ .DrawerNextHeader_deviceType_desktop.DrawerNextHeader_size_m {
13
+ --drawer-header-padding-bottom: var(--spacing-m);
14
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { DrawerHeaderProps } from './types';
3
+ export declare const cnDrawerHeader: import("@bem-react/classname").ClassNameFormatter;
4
+ export declare const DrawerHeader: React.ForwardRefExoticComponent<Omit<DrawerHeaderProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,14 @@
1
+ import { __assign, __rest } from "tslib";
2
+ import React, { forwardRef } from 'react';
3
+ import { cn } from '../../../../utils/classname';
4
+ import { useDrawerContext } from '../../DrawerContext';
5
+ export var cnDrawerHeader = cn('DrawerNextHeader');
6
+ export var DrawerHeader = forwardRef(function (_a, ref) {
7
+ var children = _a.children, className = _a.className, other = __rest(_a, ["children", "className"]);
8
+ var _b = useDrawerContext(), size = _b.size, deviceType = _b.deviceType;
9
+ return (React.createElement("div", __assign({ ref: ref, className: cnDrawerHeader({
10
+ size: size,
11
+ deviceType: deviceType,
12
+ }, [className]) }, other), children));
13
+ });
14
+ DrawerHeader.displayName = 'DrawerHeader';
@@ -0,0 +1,2 @@
1
+ export * from './DrawerHeader';
2
+ export * from './types';
@@ -0,0 +1,2 @@
1
+ export * from './DrawerHeader';
2
+ export * from './types';
@@ -0,0 +1,11 @@
1
+ import type { ComponentRef, ReactNode } from 'react';
2
+ import type { ExtendableComponentPropsWithRef } from '../../../../types/ExtendableComponentPropsWithRef';
3
+ export type DrawerHeaderRef = ComponentRef<'div'>;
4
+ export type DrawerHeaderProps = ExtendableComponentPropsWithRef<{
5
+ /** Содержимое */
6
+ children: ReactNode;
7
+ /** Дополнительные CSS-классы */
8
+ className?: string;
9
+ /** Идентификатор компонента для тестов */
10
+ 'data-testid'?: string;
11
+ }, 'div'>;
@@ -0,0 +1,22 @@
1
+ /* stylelint-disable */
2
+ .DrawerNextSubtitle {
3
+ --drawer-subtitle-gap: var(--spacing-2xs);
4
+
5
+ font: var(--typography-text-l-font);
6
+
7
+ letter-spacing: var(--typography-text-l-letter_spacing, 0);
8
+
9
+ text-transform: var(--typography-text-l-text_transform, none);
10
+ color: var(--color-content-secondary);
11
+ margin-block-start: var(--drawer-subtitle-gap);
12
+ padding-inline-end: var(--drawer-header-item-padding-right);
13
+ }
14
+ .DrawerNextSubtitle_deviceType_desktop.DrawerNextSubtitle_size_s {
15
+ --drawer-subtitle-gap: var(--spacing-3xs);
16
+
17
+ font: var(--typography-text-s-font);
18
+
19
+ letter-spacing: var(--typography-text-s-letter_spacing, 0);
20
+
21
+ text-transform: var(--typography-text-s-text_transform, none);
22
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { DrawerSubtitleProps } from './types';
3
+ export declare const cnDrawerSubtitle: import("@bem-react/classname").ClassNameFormatter;
4
+ export declare const DrawerSubtitle: React.ForwardRefExoticComponent<Omit<DrawerSubtitleProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,14 @@
1
+ import { __assign, __rest } from "tslib";
2
+ import React, { forwardRef } from 'react';
3
+ import { cn } from '../../../../utils/classname';
4
+ import { useDrawerContext } from '../../DrawerContext';
5
+ export var cnDrawerSubtitle = cn('DrawerNextSubtitle');
6
+ export var DrawerSubtitle = forwardRef(function (_a, ref) {
7
+ var children = _a.children, className = _a.className, other = __rest(_a, ["children", "className"]);
8
+ var _b = useDrawerContext(), size = _b.size, deviceType = _b.deviceType;
9
+ return (React.createElement("div", __assign({ ref: ref, className: cnDrawerSubtitle({
10
+ size: size,
11
+ deviceType: deviceType,
12
+ }, [className]) }, other), children));
13
+ });
14
+ DrawerSubtitle.displayName = 'DrawerSubtitle';
@@ -0,0 +1,2 @@
1
+ export * from './DrawerSubtitle';
2
+ export * from './types';
@@ -0,0 +1,2 @@
1
+ export * from './DrawerSubtitle';
2
+ export * from './types';
@@ -0,0 +1,11 @@
1
+ import type { ComponentRef, ReactNode } from 'react';
2
+ import type { ExtendableComponentPropsWithRef } from '../../../../types/ExtendableComponentPropsWithRef';
3
+ export type DrawerSubtitleRef = ComponentRef<'div'>;
4
+ export type DrawerSubtitleProps = ExtendableComponentPropsWithRef<{
5
+ /** Содержимое */
6
+ children: ReactNode;
7
+ /** Дополнительные CSS-классы */
8
+ className?: string;
9
+ /** Идентификатор компонента для тестов */
10
+ 'data-testid'?: string;
11
+ }, 'div'>;
@@ -0,0 +1,14 @@
1
+ /* stylelint-disable */
2
+ .DrawerNextTitle {
3
+ font: var(--typography-heading-2xl-font);
4
+ letter-spacing: var(--typography-heading-2xl-letter_spacing, 0);
5
+ text-transform: var(--typography-heading-2xl-text_transform, none);
6
+ color: var(--color-content-primary);
7
+ padding-inline-end: var(--drawer-header-item-padding-right);
8
+ margin: 0;
9
+ }
10
+ .DrawerNextTitle_deviceType_desktop.DrawerNextTitle_size_s {
11
+ font: var(--typography-heading-xl-font);
12
+ letter-spacing: var(--typography-heading-xl-letter_spacing, 0);
13
+ text-transform: var(--typography-heading-xl-text_transform, none);
14
+ }
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { DrawerTitleProps } from './types';
3
+ export declare const cnDrawerTitle: import("@bem-react/classname").ClassNameFormatter;
4
+ export declare const DrawerTitle: React.ForwardRefExoticComponent<Omit<DrawerTitleProps, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
@@ -0,0 +1,14 @@
1
+ import { __assign, __rest } from "tslib";
2
+ import React, { forwardRef } from 'react';
3
+ import { cn } from '../../../../utils/classname';
4
+ import { useDrawerContext } from '../../DrawerContext';
5
+ export var cnDrawerTitle = cn('DrawerNextTitle');
6
+ export var DrawerTitle = forwardRef(function (_a, ref) {
7
+ var children = _a.children, className = _a.className, other = __rest(_a, ["children", "className"]);
8
+ var _b = useDrawerContext(), size = _b.size, deviceType = _b.deviceType;
9
+ return (React.createElement("h2", __assign({ ref: ref, className: cnDrawerTitle({
10
+ size: size,
11
+ deviceType: deviceType,
12
+ }, className) }, other), children));
13
+ });
14
+ DrawerTitle.displayName = 'DrawerTitle';
@@ -0,0 +1,2 @@
1
+ export * from './DrawerTitle';
2
+ export * from './types';
@@ -0,0 +1,2 @@
1
+ export * from './DrawerTitle';
2
+ export * from './types';
@@ -0,0 +1,11 @@
1
+ import type { ComponentRef, ReactNode } from 'react';
2
+ import type { ExtendableComponentPropsWithRef } from '../../../../types/ExtendableComponentPropsWithRef';
3
+ export type DrawerTitleRef = ComponentRef<'h2'>;
4
+ export type DrawerTitleProps = ExtendableComponentPropsWithRef<{
5
+ /** Содержимое */
6
+ children: ReactNode;
7
+ /** Дополнительные CSS-классы */
8
+ className?: string;
9
+ /** Идентификатор компонента для тестов */
10
+ 'data-testid'?: string;
11
+ }, 'h2'>;
@@ -0,0 +1,8 @@
1
+ export * from './DrawerBody';
2
+ export * from './DrawerCloseButton';
3
+ export * from './DrawerFooter';
4
+ export * from './DrawerFooterButton';
5
+ export * from './DrawerFooterButtonsGroup';
6
+ export * from './DrawerHeader';
7
+ export * from './DrawerSubtitle';
8
+ export * from './DrawerTitle';
@@ -0,0 +1,8 @@
1
+ export * from './DrawerBody';
2
+ export * from './DrawerCloseButton';
3
+ export * from './DrawerFooter';
4
+ export * from './DrawerFooterButton';
5
+ export * from './DrawerFooterButtonsGroup';
6
+ export * from './DrawerHeader';
7
+ export * from './DrawerSubtitle';
8
+ export * from './DrawerTitle';
@@ -0,0 +1,30 @@
1
+ import type { RenderContentType } from '../../utils/renderContent';
2
+ import type { ModalProps, ModalRef } from '../Modal';
3
+ import type { DRAWER_DEFAULT_DEVICE_TYPE } from './constants';
4
+ import type { DrawerDeviceType, DrawerPlacementVariant, DrawerSizeVariantByDeviceType, DrawerVariant } from './entities';
5
+ export type DrawerRef = ModalRef;
6
+ export type DrawerRenderCloseButton = RenderContentType<{}>['content'];
7
+ export type DrawerBaseProps = {
8
+ /** Вариант представления шторки */
9
+ variant?: DrawerVariant;
10
+ /** Расположение шторки */
11
+ placement?: DrawerPlacementVariant;
12
+ /** Признак по которому кнопка закрытия шторки будет скрыта */
13
+ hideCloseButton?: boolean;
14
+ /** Идентификатор компонента для тестов */
15
+ 'data-testid'?: string;
16
+ /** Кнопка закрытия */
17
+ renderCloseButton?: DrawerRenderCloseButton;
18
+ } & ModalProps;
19
+ export type DrawerDeviceTypeProps<DeviceType extends DrawerDeviceType | undefined> = DrawerBaseProps & (DeviceType extends DrawerDeviceType ? {
20
+ /** Размер */
21
+ size?: DrawerSizeVariantByDeviceType[DeviceType];
22
+ /** Тип устройства */
23
+ deviceType: DeviceType;
24
+ } : {
25
+ /** Размер */
26
+ size?: DrawerSizeVariantByDeviceType[typeof DRAWER_DEFAULT_DEVICE_TYPE];
27
+ /** Тип устройства */
28
+ deviceType?: undefined;
29
+ });
30
+ export type DrawerProps = DrawerDeviceTypeProps<'mobile'> | DrawerDeviceTypeProps<'desktop'> | DrawerDeviceTypeProps<undefined>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { PaperRadiusVariant } from '../Paper';
2
+ import type { DrawerDeviceType, DrawerValueBySize, DrawerVariant } from './entities';
3
+ export declare const maxWidthByVariant: Readonly<{
4
+ [key in DrawerVariant]: number;
5
+ }>;
6
+ export declare const paperRadiusBySize: Readonly<{
7
+ [key in DrawerDeviceType]: DrawerValueBySize<key, PaperRadiusVariant>;
8
+ }>;
@@ -0,0 +1,14 @@
1
+ export var maxWidthByVariant = {
2
+ little: 320,
3
+ medium: 480,
4
+ large: 640,
5
+ };
6
+ export var paperRadiusBySize = {
7
+ mobile: {
8
+ m: 'xl',
9
+ },
10
+ desktop: {
11
+ s: 'l',
12
+ m: 'xl',
13
+ },
14
+ };
@@ -13,5 +13,7 @@ export type FormGroupBaseProps = {
13
13
  children?: ReactNode;
14
14
  /** Направление */
15
15
  direction?: FormGroupDirectionVariant;
16
+ /** data-атрибут для тестирования */
17
+ 'data-testid'?: string;
16
18
  };
17
19
  export type FormGroupProps<As extends ElementType = 'div'> = PolymorphicComponentPropsWithoutRef<FormGroupBaseProps, As>;
@@ -5,6 +5,7 @@ import { type PolymorphicComponentPropsWithoutRef } from '../../utils/polymorphi
5
5
  export type FormTitleBaseProps = {
6
6
  /** Размер — влияет на размер шрифта и отступы заголовка */
7
7
  size?: FormElementSizeVariant;
8
+ 'data-testid'?: string;
8
9
  };
9
10
  export type FormTitleProps<As extends ElementType = 'div'> = PolymorphicComponentPropsWithoutRef<FormTitleBaseProps, As>;
10
11
  export declare const cnFormTitle: import("@bem-react/classname").ClassNameFormatter;
@@ -8,6 +8,7 @@ export declare const iconButtonColorVariant: readonly ["primary", "secondary", "
8
8
  export declare const iconButtonVariant: readonly ["contained", "contained-additional", "ghost", "function", "floating"];
9
9
  export type IconButtonVariant = (typeof iconButtonVariant)[number];
10
10
  export type IconButtonColorVariant = (typeof iconButtonColorVariant)[number];
11
+ export type IconButtonSize = FormElementSizeVariant;
11
12
  export type IconButtonIcon = RenderContentType<IconProps>['content'];
12
13
  export type IconButtonBaseProps = {
13
14
  /** Иконка */
@@ -15,7 +16,7 @@ export type IconButtonBaseProps = {
15
16
  /** Вариант представления компонента */
16
17
  variant?: IconButtonVariant;
17
18
  /** Размер */
18
- size?: FormElementSizeVariant;
19
+ size?: IconButtonSize;
19
20
  /** Основной цвет компонента */
20
21
  color?: IconButtonColorVariant;
21
22
  /** Цвет иконки кнопки */
@@ -30,6 +31,8 @@ export type IconButtonBaseProps = {
30
31
  className?: string;
31
32
  /** Если `true` делает компонент круглым */
32
33
  rounded?: boolean;
34
+ /** Идентификатор компонента для тестов */
35
+ 'data-testid'?: string;
33
36
  children?: never;
34
37
  };
35
38
  export type IconButtonProps<As extends ElementType = typeof ICON_BUTTON_DEFAULT_TAG> = PolymorphicComponentPropsWithoutRef<IconButtonBaseProps, As>;
@@ -1,5 +1,5 @@
1
- import type { FormElementSizeVariant } from '../../types/FormElementSizeVariant';
2
1
  import type { LoaderSizeVariant } from '../Loader';
2
+ import type { IconButtonSize } from './types';
3
3
  export declare const loaderSizeMapper: {
4
- [key in FormElementSizeVariant]: LoaderSizeVariant;
4
+ [key in IconButtonSize]: LoaderSizeVariant;
5
5
  };