@sima-land/ui-nucleons 44.2.9 → 45.0.0-alpha.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 (376) hide show
  1. package/_internal/custom-scrollbar/index.d.ts +13 -7
  2. package/_internal/custom-scrollbar/index.js +29 -15
  3. package/_internal/dropdown-loading/index.d.ts +3 -3
  4. package/_internal/dropdown-loading/index.js +4 -2
  5. package/_internal/page-scroll-lock/adapters/body-scroll-lock.d.ts +39 -0
  6. package/_internal/page-scroll-lock/adapters/body-scroll-lock.js +62 -0
  7. package/_internal/page-scroll-lock/adapters/ui-nucleons.d.ts +25 -0
  8. package/_internal/page-scroll-lock/adapters/ui-nucleons.js +103 -0
  9. package/_internal/page-scroll-lock/context.d.ts +13 -0
  10. package/_internal/page-scroll-lock/context.js +54 -0
  11. package/_internal/page-scroll-lock/hook.d.ts +12 -0
  12. package/_internal/page-scroll-lock/hook.js +26 -0
  13. package/_internal/page-scroll-lock/index.d.ts +4 -0
  14. package/_internal/page-scroll-lock/index.js +9 -0
  15. package/_internal/page-scroll-lock/types.d.ts +22 -0
  16. package/_internal/{checkbox/index.js → page-scroll-lock/types.js} +0 -0
  17. package/_internal/readme.md +2 -0
  18. package/_internal/utils/dropdown.d.ts +1 -0
  19. package/_internal/utils/dropdown.js +1 -0
  20. package/alert/alert.module.scss +1 -24
  21. package/alert/index.d.ts +11 -17
  22. package/alert/index.js +33 -16
  23. package/arrow-button/arrow-button.module.scss +2 -0
  24. package/arrow-button/index.d.ts +2 -2
  25. package/autocomplete/autocomplete.d.ts +8 -0
  26. package/autocomplete/autocomplete.js +190 -0
  27. package/autocomplete/autocomplete.module.scss +2 -15
  28. package/autocomplete/index.d.ts +2 -27
  29. package/autocomplete/index.js +2 -126
  30. package/autocomplete/types.d.ts +19 -0
  31. package/autocomplete/types.js +2 -0
  32. package/autocomplete-deprecated/autocomplete.module.scss +20 -0
  33. package/autocomplete-deprecated/index.d.ts +28 -0
  34. package/autocomplete-deprecated/index.js +130 -0
  35. package/avatar/index.d.ts +2 -2
  36. package/avatar/user.d.ts +1 -1
  37. package/base-input/base-input.d.ts +11 -0
  38. package/base-input/base-input.js +96 -0
  39. package/base-input/base-input.module.scss +3 -3
  40. package/base-input/index.d.ts +2 -23
  41. package/base-input/index.js +2 -76
  42. package/base-input/types.d.ts +31 -0
  43. package/base-input/types.js +2 -0
  44. package/base-input/utils.d.ts +6 -0
  45. package/base-input/utils.js +14 -0
  46. package/base-input-deprecated/base-input.module.scss +66 -0
  47. package/base-input-deprecated/index.d.ts +24 -0
  48. package/base-input-deprecated/index.js +80 -0
  49. package/bordered-layout/index.d.ts +1 -0
  50. package/bordered-layout/index.js +1 -0
  51. package/bottom-bar/bottom-bar-util.scss +20 -0
  52. package/bottom-bar/bottom-bar.d.ts +12 -0
  53. package/bottom-bar/bottom-bar.js +47 -0
  54. package/bottom-bar/bottom-bar.module.scss +14 -0
  55. package/bottom-bar/index.d.ts +2 -21
  56. package/bottom-bar/index.js +5 -44
  57. package/bottom-bar/types.d.ts +10 -0
  58. package/bottom-bar/types.js +2 -0
  59. package/box/index.d.ts +1 -1
  60. package/breakpoints.scss +1 -1
  61. package/button/button.module.scss +70 -53
  62. package/button/index.d.ts +26 -41
  63. package/button/index.js +22 -46
  64. package/card/index.d.ts +2 -1
  65. package/card/index.js +23 -6
  66. package/card/slots.d.ts +17 -3
  67. package/card/slots.js +15 -13
  68. package/carousel/draggable.d.ts +7 -3
  69. package/carousel/draggable.js +10 -3
  70. package/carousel/helpers/draggable-event.d.ts +5 -2
  71. package/carousel/helpers/draggable-event.js +5 -0
  72. package/carousel/index.d.ts +1 -1
  73. package/carousel/index.js +24 -24
  74. package/checkbox/checkbox.module.scss +2 -0
  75. package/checkbox/index.d.ts +3 -3
  76. package/checkbox-field/index.d.ts +3 -0
  77. package/checkbox-field/index.js +3 -0
  78. package/clean-buttons/clean-buttons-util.scss +15 -0
  79. package/clean-buttons/clean-buttons.module.scss +5 -3
  80. package/clean-buttons/index.d.ts +16 -7
  81. package/clean-buttons/index.js +17 -14
  82. package/clean-buttons/types.d.ts +1 -1
  83. package/clean-buttons/utils.d.ts +5 -1
  84. package/clean-buttons/utils.js +4 -0
  85. package/{colors.d.ts → colors/index.d.ts} +1 -1
  86. package/{colors.js → colors/index.js} +0 -0
  87. package/dot-nav/index.d.ts +1 -1
  88. package/dropdown/index.d.ts +1 -0
  89. package/dropdown/utils.d.ts +19 -0
  90. package/dropdown/utils.js +45 -0
  91. package/dropdown-item/dropdown-item.module.scss +80 -15
  92. package/dropdown-item/index.d.ts +20 -9
  93. package/dropdown-item/index.js +12 -9
  94. package/dropdown-item/types.d.ts +3 -0
  95. package/dropdown-item/types.js +2 -0
  96. package/dropdown-item/utils.d.ts +45 -0
  97. package/dropdown-item/utils.js +89 -0
  98. package/expandable/utils.js +3 -3
  99. package/field-block/field-block.module.scss +155 -0
  100. package/field-block/index.d.ts +63 -0
  101. package/field-block/index.js +43 -0
  102. package/field-grid/index.d.ts +5 -4
  103. package/field-grid/index.js +1 -0
  104. package/helpers/bounds-of.d.ts +5 -1
  105. package/helpers/bounds-of.js +5 -0
  106. package/helpers/center-of.d.ts +4 -1
  107. package/helpers/center-of.js +8 -1
  108. package/helpers/create-container.d.ts +5 -2
  109. package/helpers/create-container.js +7 -2
  110. package/helpers/define-slots.d.ts +3 -3
  111. package/helpers/define-slots.js +5 -3
  112. package/helpers/events.d.ts +16 -8
  113. package/helpers/events.js +41 -15
  114. package/helpers/find-child-element.d.ts +12 -9
  115. package/helpers/find-child-element.js +9 -5
  116. package/helpers/find-offset-parent.d.ts +1 -2
  117. package/helpers/find-offset-parent.js +2 -2
  118. package/helpers/find-sibling-index.d.ts +11 -8
  119. package/helpers/find-sibling-index.js +8 -3
  120. package/helpers/fit-element-height.d.ts +5 -5
  121. package/helpers/fit-element-height.js +9 -7
  122. package/helpers/format-date.d.ts +11 -11
  123. package/helpers/format-date.js +15 -13
  124. package/helpers/format-number.d.ts +1 -1
  125. package/helpers/format-number.js +2 -2
  126. package/helpers/get-date-interval-data.d.ts +4 -1
  127. package/helpers/get-date-interval-data.js +7 -2
  128. package/helpers/get-declination.d.ts +5 -1
  129. package/helpers/get-declination.js +5 -0
  130. package/helpers/get-fraction-depth.d.ts +1 -1
  131. package/helpers/get-fraction-depth.js +2 -2
  132. package/helpers/get-no-index.d.ts +2 -2
  133. package/helpers/get-no-index.js +4 -3
  134. package/helpers/get-relative-pos.d.ts +4 -1
  135. package/helpers/get-relative-pos.js +7 -2
  136. package/helpers/get-scroll-parent.d.ts +1 -2
  137. package/helpers/get-scroll-parent.js +5 -5
  138. package/helpers/is-browser.d.ts +4 -1
  139. package/helpers/is-browser.js +8 -1
  140. package/helpers/is-fully-scrolled.d.ts +3 -3
  141. package/helpers/is-fully-scrolled.js +2 -2
  142. package/helpers/is-touch-device.d.ts +1 -1
  143. package/helpers/is-touch-device.js +4 -5
  144. package/helpers/layer.d.ts +1 -1
  145. package/helpers/layer.js +2 -2
  146. package/helpers/max-index-of.d.ts +4 -1
  147. package/helpers/max-index-of.js +7 -2
  148. package/helpers/media-query-list.d.ts +1 -1
  149. package/helpers/media-query-list.js +2 -2
  150. package/helpers/on.d.ts +4 -1
  151. package/helpers/on.js +7 -2
  152. package/helpers/point.d.ts +4 -1
  153. package/helpers/point.js +8 -1
  154. package/helpers/rename.d.ts +3 -1
  155. package/helpers/rename.js +1 -0
  156. package/helpers/scroll-to-child.d.ts +1 -1
  157. package/helpers/scroll-to-child.js +3 -2
  158. package/helpers/styles.d.ts +8 -2
  159. package/helpers/styles.js +18 -4
  160. package/helpers/with-prevent.d.ts +9 -6
  161. package/helpers/with-prevent.js +16 -9
  162. package/hint/hint-view.d.ts +26 -0
  163. package/hint/hint-view.js +43 -0
  164. package/hint/hint-view.module.scss +31 -0
  165. package/hint/hint.d.ts +14 -0
  166. package/hint/hint.js +41 -0
  167. package/hint/index.d.ts +5 -8
  168. package/hint/index.js +13 -48
  169. package/hint/utils.d.ts +61 -0
  170. package/hint/utils.js +161 -0
  171. package/{hint → hint-deprecated}/hint.module.scss +0 -0
  172. package/hint-deprecated/index.d.ts +11 -0
  173. package/hint-deprecated/index.js +53 -0
  174. package/hooks/breakpoint/index.d.ts +7 -4
  175. package/hooks/breakpoint/index.js +21 -13
  176. package/hooks/breakpoint/types.d.ts +3 -4
  177. package/hooks/breakpoint/utils.d.ts +2 -1
  178. package/hooks/breakpoint/utils.js +2 -1
  179. package/hooks/index.d.ts +8 -8
  180. package/hooks/index.js +27 -19
  181. package/hooks/intersection/test-utils.d.ts +1 -1
  182. package/hooks/intersection/test-utils.js +2 -1
  183. package/hooks/styles.d.ts +6 -0
  184. package/hooks/styles.js +26 -0
  185. package/info-text/index.d.ts +23 -0
  186. package/info-text/index.js +60 -0
  187. package/info-text/info-text.module.scss +28 -0
  188. package/input/index.d.ts +32 -0
  189. package/input/index.js +96 -0
  190. package/input/input.module.scss +20 -0
  191. package/input/utils.d.ts +36 -0
  192. package/input/utils.js +71 -0
  193. package/layout/index.d.ts +6 -11
  194. package/layout/index.js +6 -60
  195. package/layout/layout.d.ts +10 -0
  196. package/layout/layout.js +32 -0
  197. package/layout/layout.module.scss +33 -26
  198. package/layout/legacy.d.ts +15 -0
  199. package/layout/legacy.js +68 -0
  200. package/layout/legacy.module.scss +49 -0
  201. package/layout/types.d.ts +6 -0
  202. package/layout/types.js +2 -0
  203. package/link/index.d.ts +4 -1
  204. package/link/index.js +2 -2
  205. package/link/link.module.scss +10 -0
  206. package/loading-overlay/index.d.ts +1 -0
  207. package/loading-overlay/index.js +1 -0
  208. package/masked-field/index.d.ts +1 -0
  209. package/masked-field/index.js +1 -0
  210. package/masked-input/hook.d.ts +8 -0
  211. package/masked-input/hook.js +72 -0
  212. package/masked-input/index.d.ts +5 -0
  213. package/masked-input/index.js +7 -0
  214. package/masked-input/masked-input.d.ts +8 -0
  215. package/masked-input/masked-input.js +73 -0
  216. package/masked-input/types.d.ts +51 -0
  217. package/masked-input/types.js +2 -0
  218. package/masked-input/utils.d.ts +15 -0
  219. package/masked-input/utils.js +49 -0
  220. package/modal/index.d.ts +10 -12
  221. package/modal/index.js +27 -64
  222. package/modal/modal.module.scss +98 -55
  223. package/modal/slots.d.ts +13 -10
  224. package/modal/slots.js +30 -28
  225. package/modal/utils.d.ts +8 -10
  226. package/modal/utils.js +2 -26
  227. package/modal-overlay/index.d.ts +13 -0
  228. package/modal-overlay/index.js +60 -0
  229. package/modal-overlay/modal-overlay-util.scss +1 -0
  230. package/modal-overlay/modal-overlay.module.scss +14 -0
  231. package/modal-overlay/utils.d.ts +14 -0
  232. package/modal-overlay/utils.js +32 -0
  233. package/package.json +49 -41
  234. package/pagination/utils.d.ts +2 -2
  235. package/panel/index.d.ts +27 -13
  236. package/panel/index.js +43 -9
  237. package/panel/panel.module.scss +49 -8
  238. package/phone-input/index.d.ts +4 -28
  239. package/phone-input/index.js +2 -121
  240. package/phone-input/phone-input.d.ts +8 -0
  241. package/phone-input/phone-input.js +133 -0
  242. package/phone-input/phone-input.module.scss +8 -32
  243. package/phone-input/presets.d.ts +21 -22
  244. package/phone-input/presets.js +1 -2
  245. package/phone-input/types.d.ts +6 -0
  246. package/phone-input/types.js +2 -0
  247. package/phone-input/utils.d.ts +30 -1
  248. package/phone-input/utils.js +52 -3
  249. package/phone-input-deprecated/index.d.ts +29 -0
  250. package/phone-input-deprecated/index.js +124 -0
  251. package/phone-input-deprecated/phone-input.module.scss +41 -0
  252. package/plate/index.d.ts +3 -3
  253. package/plate/index.js +2 -2
  254. package/plate/plate.module.scss +3 -0
  255. package/popup/index.d.ts +5 -0
  256. package/popup/index.js +12 -0
  257. package/popup/popup-view.d.ts +14 -0
  258. package/popup/popup-view.js +35 -0
  259. package/popup/popup-view.module.scss +40 -0
  260. package/popup/popup.d.ts +17 -0
  261. package/popup/popup.js +73 -0
  262. package/popup/utils.d.ts +38 -0
  263. package/popup/utils.js +83 -0
  264. package/price/index.d.ts +1 -1
  265. package/price/index.js +3 -3
  266. package/price/utils.d.ts +5 -5
  267. package/price/utils.js +33 -23
  268. package/radio-button/index.d.ts +10 -0
  269. package/radio-button/index.js +33 -0
  270. package/radio-button/radio-button.module.scss +46 -0
  271. package/rating/index.d.ts +2 -1
  272. package/rating/types.d.ts +1 -1
  273. package/readme.md +34 -41
  274. package/screen/index.d.ts +4 -2
  275. package/screen/index.js +34 -3
  276. package/screen/screen.module.scss +0 -2
  277. package/screen/slots.d.ts +2 -8
  278. package/screen/slots.js +8 -9
  279. package/screen/utils.d.ts +2 -1
  280. package/select/index.d.ts +2 -33
  281. package/select/index.js +3 -109
  282. package/select/parts/block.d.ts +8 -0
  283. package/select/parts/block.js +70 -0
  284. package/select/parts/block.module.scss +3 -0
  285. package/select/parts/button.d.ts +8 -0
  286. package/select/parts/button.js +69 -0
  287. package/select/parts/menu.d.ts +8 -0
  288. package/select/parts/menu.js +105 -0
  289. package/select/parts/menu.module.scss +4 -0
  290. package/select/select.d.ts +14 -0
  291. package/select/select.js +145 -0
  292. package/select/types.d.ts +55 -0
  293. package/select/types.js +2 -0
  294. package/select/utils.d.ts +3 -0
  295. package/select/utils.js +13 -0
  296. package/select-deprecated/index.d.ts +34 -0
  297. package/select-deprecated/index.js +112 -0
  298. package/{select → select-deprecated}/select.module.scss +0 -0
  299. package/shadows.scss +18 -0
  300. package/side-page/index.d.ts +11 -26
  301. package/side-page/index.js +21 -26
  302. package/side-page/side-page.module.scss +35 -29
  303. package/side-page/slots.d.ts +12 -20
  304. package/side-page/slots.js +16 -28
  305. package/spinner/index.d.ts +18 -6
  306. package/spinner/index.js +25 -12
  307. package/spinner/spinner.module.scss +8 -0
  308. package/stepper/index.d.ts +18 -10
  309. package/stepper/index.js +17 -8
  310. package/stepper/stepper.module.scss +14 -15
  311. package/styling/fonts.d.ts +3 -3
  312. package/switcher-row/index.d.ts +42 -0
  313. package/switcher-row/index.js +59 -0
  314. package/switcher-row/switcher-row.module.scss +55 -0
  315. package/text/index.d.ts +1 -1
  316. package/text-button/index.d.ts +42 -0
  317. package/text-button/index.js +46 -0
  318. package/text-button/text-button.module.scss +99 -0
  319. package/text-field/index.d.ts +7 -6
  320. package/text-field/index.js +3 -2
  321. package/textarea/index.d.ts +21 -0
  322. package/textarea/index.js +85 -0
  323. package/textarea/textarea.module.scss +15 -0
  324. package/toggle/index.d.ts +3 -3
  325. package/toggle/toggle.module.scss +17 -8
  326. package/tooltip/index.d.ts +1 -0
  327. package/tooltip/index.js +1 -0
  328. package/top-bar/index.d.ts +3 -40
  329. package/top-bar/index.js +4 -60
  330. package/top-bar/top-bar-util.scss +29 -0
  331. package/top-bar/top-bar.d.ts +9 -0
  332. package/top-bar/top-bar.js +101 -0
  333. package/top-bar/top-bar.module.scss +129 -67
  334. package/top-bar/types.d.ts +31 -0
  335. package/top-bar/types.js +2 -0
  336. package/top-bar/utils.d.ts +14 -0
  337. package/top-bar/utils.js +56 -0
  338. package/touch-slider/index.d.ts +1 -0
  339. package/touch-slider/index.js +3 -2
  340. package/types.d.ts +18 -0
  341. package/types.js +2 -0
  342. package/unknown-content/index.d.ts +3 -3
  343. package/unknown-content/index.js +3 -3
  344. package/unknown-content/unknown-content.module.scss +16 -12
  345. package/upload-area/index.d.ts +2 -0
  346. package/upload-area/index.js +5 -0
  347. package/upload-area/types.d.ts +32 -0
  348. package/upload-area/types.js +2 -0
  349. package/upload-area/upload-area-util.scss +17 -0
  350. package/upload-area/upload-area.d.ts +8 -0
  351. package/upload-area/upload-area.js +105 -0
  352. package/upload-area/upload-area.module.scss +78 -0
  353. package/{upload → upload-area}/upload.svg +0 -0
  354. package/upload-area/utils.d.ts +17 -0
  355. package/upload-area/utils.js +48 -0
  356. package/utils.scss +74 -1
  357. package/with-hint/index.d.ts +3 -2
  358. package/with-hint/index.js +1 -0
  359. package/with-hint/positioning-hint.d.ts +1 -1
  360. package/with-hint/positioning-hint.js +2 -2
  361. package/with-tooltip/index.d.ts +2 -1
  362. package/with-tooltip/index.js +1 -0
  363. package/with-tooltip/utils.d.ts +2 -2
  364. package/_internal/body-scroll.d.ts +0 -23
  365. package/_internal/body-scroll.js +0 -41
  366. package/_internal/checkbox/index.d.ts +0 -5
  367. package/constants.d.ts +0 -6
  368. package/constants.js +0 -9
  369. package/nav-bar/index.d.ts +0 -46
  370. package/nav-bar/index.js +0 -76
  371. package/nav-bar/nav-bar.module.scss +0 -95
  372. package/upload/area.d.ts +0 -25
  373. package/upload/area.js +0 -65
  374. package/upload/area.module.scss +0 -44
  375. package/upload/utils.d.ts +0 -29
  376. package/upload/utils.js +0 -45
package/top-bar/index.js CHANGED
@@ -1,62 +1,6 @@
1
1
  "use strict";
2
- var __rest = (this && this.__rest) || function (s, e) {
3
- var t = {};
4
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
5
- t[p] = s[p];
6
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
7
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
8
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
9
- t[p[i]] = s[p[i]];
10
- }
11
- return t;
12
- };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.IconButton = exports.TopBar = exports.TOP_BAR_HEIGHT = void 0;
18
- const react_1 = __importDefault(require("react"));
19
- const bind_1 = __importDefault(require("classnames/bind"));
20
- const lodash_1 = require("lodash");
21
- const top_bar_module_scss_1 = __importDefault(require("./top-bar.module.scss"));
22
- const borders_1 = require("../styling/borders");
23
- // некоторым компонентам нужно знать конкретную высоту, делаем единый источник
24
- exports.TOP_BAR_HEIGHT = {
25
- s: 64,
26
- m: 80,
27
- };
28
- const cx = bind_1.default.bind(top_bar_module_scss_1.default);
29
- /**
30
- * Компонент шапки модальных окон/экранов.
31
- * @param props Свойства.
32
- * @return Элемент.
33
- */
34
- const TopBar = ({ divided, size = 'm', title, subtitle, buttonsProps: { start, startSecondary, end, endSecondary } = {}, className, }) => {
35
- const hasStart = (0, lodash_1.has)(start, 'icon');
36
- const hasStartSecondary = (0, lodash_1.has)(startSecondary, 'icon');
37
- const hasEnd = (0, lodash_1.has)(end, 'icon');
38
- const hasEndSecondary = (0, lodash_1.has)(endSecondary, 'icon');
39
- const stub = hasStart || hasEnd ? iconStub : null;
40
- const secondaryStub = hasStartSecondary || hasEndSecondary ? iconStub : null;
41
- return (react_1.default.createElement("div", { className: cx('root', `size-${size}`, className, divided && borders_1.InnerBorder.bottom), style: { height: `${exports.TOP_BAR_HEIGHT[size]}px` } },
42
- hasStart ? react_1.default.createElement(exports.IconButton, Object.assign({}, start)) : stub,
43
- hasStartSecondary ? react_1.default.createElement(exports.IconButton, Object.assign({}, startSecondary)) : secondaryStub,
44
- react_1.default.createElement("div", { className: cx('main-section') },
45
- react_1.default.createElement("div", { className: cx('title', 'ellipsis') }, title),
46
- Boolean(subtitle) && react_1.default.createElement("div", { className: cx('subtitle', 'ellipsis') }, subtitle)),
47
- hasEndSecondary ? react_1.default.createElement(exports.IconButton, Object.assign({}, endSecondary)) : secondaryStub,
48
- hasEnd ? react_1.default.createElement(exports.IconButton, Object.assign({}, end)) : stub));
49
- };
50
- exports.TopBar = TopBar;
51
- /**
52
- * Компонент кнопки-иконки.
53
- * @param props Свойства. Поддерживаются свойства button.
54
- * @param props.icon Иконка.
55
- * @return Элемент.
56
- */
57
- const IconButton = (_a) => {
58
- var { icon } = _a, buttonProps = __rest(_a, ["icon"]);
59
- return (react_1.default.createElement("button", Object.assign({}, buttonProps, { type: 'button', className: cx('icon-button') }), icon));
60
- };
61
- exports.IconButton = IconButton;
62
- const iconStub = react_1.default.createElement("div", { className: cx('icon-button', 'stub') });
3
+ exports.TOP_BAR_HEIGHT = exports.TopBar = void 0;
4
+ var top_bar_1 = require("./top-bar");
5
+ Object.defineProperty(exports, "TopBar", { enumerable: true, get: function () { return top_bar_1.TopBar; } });
6
+ Object.defineProperty(exports, "TOP_BAR_HEIGHT", { enumerable: true, get: function () { return top_bar_1.TOP_BAR_HEIGHT; } });
@@ -0,0 +1,29 @@
1
+ $size-s-height: 56px;
2
+ $size-m-height: 64px;
3
+ $size-xl-height: 80px;
4
+
5
+ @mixin size-s {
6
+ --top-bar-height: #{$size-s-height};
7
+ --top-bar-title-size: 16px;
8
+ --top-bar-title-height: 24px;
9
+ --top-bar-gutter: 16px;
10
+ --top-bar-icon-button-width: 52px;
11
+ }
12
+
13
+ @mixin size-m {
14
+ --top-bar-height: #{$size-m-height};
15
+ --top-bar-title-size: 16px;
16
+ --top-bar-title-height: 24px;
17
+ --top-bar-gutter: 24px;
18
+ --top-bar-icon-button-width: 60px;
19
+ }
20
+
21
+ @mixin size-xl {
22
+ --top-bar-height: #{$size-xl-height};
23
+ --top-bar-title-size: 16px;
24
+ --top-bar-title-height: 24px;
25
+ --top-bar-gutter: 40px;
26
+ --top-bar-icon-button-width: 76px;
27
+ --top-bar-title-only-size: 20px;
28
+ --top-bar-title-only-height: 28px;
29
+ }
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { TopBarProps, TopBarSize } from './types';
3
+ export declare const TOP_BAR_HEIGHT: Readonly<Record<TopBarSize, number>>;
4
+ /**
5
+ * Компонент шапки модальных окон/экранов.
6
+ * @param props Свойства.
7
+ * @return Элемент.
8
+ */
9
+ export declare function TopBar({ divided, size, title, subtitle, buttons: { start, startSecondary, end, endSecondary }, className, 'data-testid': testId, }: TopBarProps): JSX.Element;
@@ -0,0 +1,101 @@
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
+ };
25
+ var __rest = (this && this.__rest) || function (s, e) {
26
+ var t = {};
27
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
28
+ t[p] = s[p];
29
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
30
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
31
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
32
+ t[p[i]] = s[p[i]];
33
+ }
34
+ return t;
35
+ };
36
+ var __importDefault = (this && this.__importDefault) || function (mod) {
37
+ return (mod && mod.__esModule) ? mod : { "default": mod };
38
+ };
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ exports.TopBar = exports.TOP_BAR_HEIGHT = void 0;
41
+ const react_1 = __importStar(require("react"));
42
+ const utils_1 = require("./utils");
43
+ const borders_1 = require("../styling/borders");
44
+ const bind_1 = __importDefault(require("classnames/bind"));
45
+ const top_bar_module_scss_1 = __importDefault(require("./top-bar.module.scss"));
46
+ // некоторым компонентам нужно знать конкретную высоту
47
+ exports.TOP_BAR_HEIGHT = {
48
+ s: 56,
49
+ m: 64,
50
+ xl: 80,
51
+ };
52
+ const cx = bind_1.default.bind(top_bar_module_scss_1.default);
53
+ /**
54
+ * Компонент шапки модальных окон/экранов.
55
+ * @param props Свойства.
56
+ * @return Элемент.
57
+ */
58
+ function TopBar({ divided, size = 'm', title, subtitle, buttons: { start, startSecondary, end, endSecondary } = {}, className, 'data-testid': testId = 'top-bar', }) {
59
+ const hasStartButtons = start || startSecondary;
60
+ const hasEndButtons = end || endSecondary;
61
+ const hasButtons = hasStartButtons || hasEndButtons;
62
+ const rootClasses = cx('root', `size-${size}`, className, divided && borders_1.InnerBorder.bottom, !subtitle && 'no-subtitle');
63
+ return (react_1.default.createElement("div", { className: rootClasses, "data-testid": testId },
64
+ hasButtons && (react_1.default.createElement("div", { className: cx('side') },
65
+ hasStartButtons && (react_1.default.createElement(TopBarButtonGroup, null,
66
+ start && react_1.default.createElement(TopBarButton, Object.assign({}, start)),
67
+ startSecondary && react_1.default.createElement(TopBarButton, Object.assign({}, startSecondary)))),
68
+ hasEndButtons && (react_1.default.createElement(TopBarButtonGroup, { stub: true, end: true },
69
+ endSecondary && react_1.default.createElement(TopBarButton, Object.assign({}, endSecondary)),
70
+ end && react_1.default.createElement(TopBarButton, Object.assign({}, end)))))),
71
+ react_1.default.createElement("div", { className: cx('main') },
72
+ title && react_1.default.createElement("div", { className: cx('title') }, title),
73
+ subtitle && react_1.default.createElement("div", { className: cx('subtitle') }, subtitle)),
74
+ hasButtons && (react_1.default.createElement("div", { className: cx('side') },
75
+ hasEndButtons && (react_1.default.createElement(TopBarButtonGroup, { end: true },
76
+ endSecondary && react_1.default.createElement(TopBarButton, Object.assign({}, endSecondary)),
77
+ end && react_1.default.createElement(TopBarButton, Object.assign({}, end)))),
78
+ hasStartButtons && (react_1.default.createElement(TopBarButtonGroup, { stub: true },
79
+ start && react_1.default.createElement(TopBarButton, Object.assign({}, start)),
80
+ startSecondary && react_1.default.createElement(TopBarButton, Object.assign({}, startSecondary))))))));
81
+ }
82
+ exports.TopBar = TopBar;
83
+ /**
84
+ * Компонент группы кнопок.
85
+ * @param props Свойства.
86
+ * @return Элемент.
87
+ */
88
+ function TopBarButtonGroup({ children, stub, end, }) {
89
+ return (react_1.default.createElement(utils_1.TopBarButtonGroupContext.Provider, { value: { stub } },
90
+ react_1.default.createElement("div", { className: cx('button-group', { stub, end }) }, children)));
91
+ }
92
+ /**
93
+ * Компонент кнопки-иконки.
94
+ * @param props Свойства.
95
+ * @return Элемент.
96
+ */
97
+ function TopBarButton(_a) {
98
+ var { text, icon, className, 'data-testid': testId = 'top-bar:button' } = _a, buttonProps = __rest(_a, ["text", "icon", "className", 'data-testid']);
99
+ const { stub } = (0, react_1.useContext)(utils_1.TopBarButtonGroupContext);
100
+ return (react_1.default.createElement("button", Object.assign({}, (!stub && Object.assign(Object.assign({}, buttonProps), { 'data-testid': testId })), { type: 'button', className: cx('button', icon && 'iconic', stub && 'stub', className), "aria-hidden": stub }), icon && !stub ? icon : text));
101
+ }
@@ -1,95 +1,157 @@
1
1
  @use '../colors';
2
+ @use './top-bar-util';
2
3
 
3
4
  .root {
5
+ width: 100%;
4
6
  display: flex;
5
- align-items: center;
6
7
  justify-content: center;
7
8
  background: #fff;
8
- overflow: hidden;
9
- box-sizing: border-box;
10
- .main-section {
11
- display: flex;
12
- width: 0;
13
- flex-direction: column;
14
- justify-content: center;
15
- flex-grow: 1;
16
- flex-shrink: 1;
17
- text-align: center;
18
- box-sizing: border-box;
9
+ height: var(--top-bar-height);
10
+ &.size-s {
11
+ @include top-bar-util.size-s;
19
12
  }
20
- .title {
21
- font-weight: 600;
22
- font-size: 16px;
23
- line-height: 24px;
13
+ &.size-m {
14
+ @include top-bar-util.size-m;
24
15
  }
25
- .subtitle {
26
- font-size: 12px;
27
- line-height: 16px;
28
- color: colors.$basic-gray38;
16
+ &.size-xl {
17
+ @include top-bar-util.size-xl;
29
18
  }
30
- .icon-button {
31
- + .icon-button {
32
- margin-left: 24px;
33
- }
19
+ }
20
+
21
+ .main {
22
+ display: flex;
23
+ flex-direction: column;
24
+ flex-grow: 1;
25
+ justify-content: center;
26
+ overflow: hidden;
27
+ text-align: center;
28
+
29
+ // когда нет кнопок
30
+ &:first-child:last-child {
31
+ margin: 0 var(--top-bar-gutter);
34
32
  }
35
- &.size-s {
36
- .main-section {
37
- margin: 0 24px;
38
- }
39
- .icon-button {
40
- &:first-child {
41
- margin-left: 24px;
33
+ }
34
+
35
+ .title {
36
+ color: colors.$basic-gray87;
37
+ font-size: var(--top-bar-title-size);
38
+ line-height: var(--top-bar-title-height);
39
+ font-weight: 600;
40
+
41
+ // когда нет подзаголовка
42
+ &:first-child:last-child {
43
+ font-size: var(--top-bar-title-only-size, var(--top-bar-title-size));
44
+ line-height: var(--top-bar-title-only-height, var(--top-bar-title-height));
45
+ }
46
+ }
47
+
48
+ .subtitle {
49
+ color: colors.$basic-gray38;
50
+ font-size: 12px;
51
+ line-height: 16px;
52
+ font-weight: 400;
53
+ margin-top: -4px;
54
+ }
55
+
56
+ .title,
57
+ .subtitle {
58
+ overflow: hidden;
59
+ text-overflow: ellipsis;
60
+ white-space: nowrap;
61
+ }
62
+
63
+ .side {
64
+ height: 100%;
65
+ display: flex;
66
+ flex-direction: column;
67
+ }
68
+
69
+ .button-group {
70
+ display: flex;
71
+ align-items: center;
72
+ width: 100%;
73
+ &:not(.end) {
74
+ .iconic {
75
+ &:first-child:last-child {
76
+ justify-content: flex-start;
77
+ padding-left: var(--top-bar-gutter);
42
78
  }
43
- &:last-child {
44
- margin-right: 24px;
79
+ &:not(:last-child):first-child {
80
+ justify-content: flex-start;
81
+ padding-left: var(--top-bar-gutter);
82
+ }
83
+ &:not(:first-child):last-child {
84
+ justify-content: flex-end;
85
+ padding-right: var(--top-bar-gutter);
45
86
  }
46
87
  }
47
88
  }
48
- &.size-m {
49
- .main-section {
50
- margin: 0 40px;
51
- }
52
- .title {
53
- font-size: 20px;
54
- line-height: 28px;
55
- }
56
- .icon-button {
57
- &:first-child {
58
- margin-left: 40px;
89
+ &.end {
90
+ justify-content: flex-end;
91
+ .iconic {
92
+ &:first-child:last-child {
93
+ justify-content: flex-end;
94
+ padding-right: var(--top-bar-gutter);
59
95
  }
60
- &:last-child {
61
- margin-right: 40px;
96
+ &:not(:last-child):first-child {
97
+ justify-content: flex-start;
98
+ padding-left: var(--top-bar-gutter);
62
99
  }
100
+ &:not(:first-child):last-child {
101
+ justify-content: flex-end;
102
+ padding-right: var(--top-bar-gutter);
103
+ }
104
+ }
105
+ :not(.iconic) {
106
+ justify-content: flex-end;
63
107
  }
64
108
  }
109
+ &:not(.stub) {
110
+ height: 100%;
111
+ }
65
112
  }
66
113
 
67
- .ellipsis {
68
- white-space: nowrap;
69
- overflow: hidden;
70
- text-overflow: ellipsis;
71
- }
72
-
73
- .icon-button {
114
+ .button {
115
+ background: transparent;
116
+ border: 0;
117
+ box-sizing: border-box;
118
+ font-family: inherit;
119
+ font-size: 14px;
120
+ line-height: 20px;
121
+ font-weight: 600;
122
+ margin: 0;
123
+ outline: 0;
124
+ text-align: inherit;
125
+ height: 100%;
74
126
  display: flex;
75
127
  align-items: center;
76
- justify-content: center;
77
- margin: 0;
78
128
  padding: 0;
79
- border: 0;
80
- outline: 0;
81
- width: 24px;
82
- height: 24px;
83
- flex-grow: 0;
84
- flex-shrink: 0;
85
- overflow: hidden;
86
- background: transparent;
87
- color: colors.$basic-gray87;
88
- &:not(.stub):hover {
129
+ &:hover {
89
130
  cursor: pointer;
90
- color: colors.$basic-gray54;
91
131
  }
92
- > svg {
132
+ &.iconic {
133
+ color: colors.$basic-gray87;
134
+ width: var(--top-bar-icon-button-width);
135
+ &:hover {
136
+ color: colors.$basic-gray54;
137
+ }
138
+ }
139
+ &:not(.iconic) {
140
+ color: colors.$basic-blue;
141
+ width: 100%;
142
+ padding: 0 var(--top-bar-gutter);
143
+ &:hover {
144
+ color: colors.$additional-deep-blue;
145
+ }
146
+ }
147
+ &.stub {
148
+ height: 0;
149
+ overflow: hidden;
150
+ }
151
+ svg {
152
+ // чтобы выравнивались по центру по вертикали
153
+ display: block;
154
+ flex-shrink: 0;
93
155
  fill: currentColor;
94
156
  }
95
157
  }
@@ -0,0 +1,31 @@
1
+ /// <reference types="react" />
2
+ export type TopBarSize = 's' | 'm' | 'xl';
3
+ export interface TopBarButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
4
+ /** Иконка. */
5
+ icon?: React.ReactNode;
6
+ /** Текст. */
7
+ text?: string;
8
+ /** Идентификатор для систем автоматизированного тестирования. */
9
+ 'data-testid'?: string;
10
+ }
11
+ export interface TopBarProps {
12
+ /** Свойства кнопок. */
13
+ buttons?: {
14
+ start?: TopBarButtonProps;
15
+ startSecondary?: TopBarButtonProps;
16
+ end?: TopBarButtonProps;
17
+ endSecondary?: TopBarButtonProps;
18
+ };
19
+ /** CSS-класс корневого элемента. */
20
+ className?: string;
21
+ /** Размер. */
22
+ size?: TopBarSize | 'unset';
23
+ /** Подзаголовок. */
24
+ subtitle?: string;
25
+ /** Заголовок. */
26
+ title?: string;
27
+ /** Нужна ли разделительная черта снизу. */
28
+ divided?: boolean;
29
+ /** Идентификатор для систем автоматизированного тестирования. */
30
+ 'data-testid'?: string;
31
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import { TopBarProps } from './types';
3
+ export declare const TopBarButtonGroupContext: React.Context<{
4
+ stub?: boolean | undefined;
5
+ }>;
6
+ /**
7
+ * Позволяет быстро определить кнопки-иконки "назад" и "закрыть" в TopBar.
8
+ * @param props Свойства. При указании onBack/onClose будет выведена соответствующая кнопка иконка.
9
+ * @return Опция buttons для TopBar.
10
+ */
11
+ export declare function navigationButtons({ buttons, onBack, onClose, }: Pick<TopBarProps, 'buttons'> & {
12
+ onBack?: VoidFunction;
13
+ onClose?: VoidFunction;
14
+ }): TopBarProps['buttons'];
@@ -0,0 +1,56 @@
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
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.navigationButtons = exports.TopBarButtonGroupContext = void 0;
30
+ const react_1 = __importStar(require("react"));
31
+ const cross_1 = __importDefault(require("@sima-land/ui-quarks/icons/24x24/Stroked/cross"));
32
+ const arrow_left_1 = __importDefault(require("@sima-land/ui-quarks/icons/24x24/Stroked/arrow-left"));
33
+ exports.TopBarButtonGroupContext = (0, react_1.createContext)({
34
+ stub: false,
35
+ });
36
+ /**
37
+ * Позволяет быстро определить кнопки-иконки "назад" и "закрыть" в TopBar.
38
+ * @param props Свойства. При указании onBack/onClose будет выведена соответствующая кнопка иконка.
39
+ * @return Опция buttons для TopBar.
40
+ */
41
+ function navigationButtons({ buttons, onBack, onClose, }) {
42
+ return Object.assign(Object.assign(Object.assign({}, buttons), (onBack && {
43
+ start: {
44
+ 'data-testid': 'top-bar:back',
45
+ onClick: onBack,
46
+ icon: react_1.default.createElement(arrow_left_1.default, null),
47
+ },
48
+ })), (onClose && {
49
+ end: {
50
+ 'data-testid': 'top-bar:close',
51
+ onClick: onClose,
52
+ icon: react_1.default.createElement(cross_1.default, null),
53
+ },
54
+ }));
55
+ }
56
+ exports.navigationButtons = navigationButtons;
@@ -6,6 +6,7 @@ export interface TouchSliderProps {
6
6
  /**
7
7
  * Компонент блока, прокручиваемого по горизонтали. Реализует отступы MobileLayout.
8
8
  * Предназначен для использования на странице без дополнительных отступов по горизонтали.
9
+ * @deprecated Следует использовать Carousel. Отказались от "волшебной обрезки" прокручиваемой области (экспериментально).
9
10
  * @param props Свойства.
10
11
  * @return Элемент.
11
12
  */
@@ -6,15 +6,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.TouchSlider = void 0;
7
7
  const react_1 = __importDefault(require("react"));
8
8
  const layout_1 = require("../layout");
9
- const constants_1 = require("../constants");
9
+ const page_scroll_lock_1 = require("../_internal/page-scroll-lock");
10
10
  const touch_slider_module_scss_1 = __importDefault(require("./touch-slider.module.scss"));
11
11
  /**
12
12
  * Компонент блока, прокручиваемого по горизонтали. Реализует отступы MobileLayout.
13
13
  * Предназначен для использования на странице без дополнительных отступов по горизонтали.
14
+ * @deprecated Следует использовать Carousel. Отказались от "волшебной обрезки" прокручиваемой области (экспериментально).
14
15
  * @param props Свойства.
15
16
  * @return Элемент.
16
17
  */
17
18
  const TouchSlider = ({ children }) => (react_1.default.createElement(layout_1.MobileLayout, null,
18
- react_1.default.createElement("div", Object.assign({ className: touch_slider_module_scss_1.default.outer }, { [constants_1.BSL_IGNORE_ATTR]: true }),
19
+ react_1.default.createElement("div", Object.assign({ className: touch_slider_module_scss_1.default.outer }, { [page_scroll_lock_1.BSL_IGNORE_ATTR]: true }),
19
20
  react_1.default.createElement("div", { className: touch_slider_module_scss_1.default.inner }, children))));
20
21
  exports.TouchSlider = TouchSlider;
package/types.d.ts ADDED
@@ -0,0 +1,18 @@
1
+ import type { InputHTMLAttributes } from 'react';
2
+ /**
3
+ * Обозначение точки остановки в соответствии дизайн-гайдами.
4
+ */
5
+ export type Breakpoint = 'mxs' | 'ms' | 'mm' | 'ml' | 'xs' | 's' | 'm' | 'l' | 'xl';
6
+ /** Свойства компонента для маркировки атрибутом "data-testid". */
7
+ export interface WithTestId {
8
+ /** Идентификатор для систем автоматизированного тестирования. */
9
+ 'data-testid'?: string;
10
+ }
11
+ /** Свойства любого поля ввода. */
12
+ export interface FieldProps {
13
+ /** Состояние с ошибками валидации. */
14
+ failed?: boolean;
15
+ }
16
+ /** Свойства компонента поля переключателя (input[type="checkbox"]). */
17
+ export interface CheckboxInputProps extends InputHTMLAttributes<HTMLInputElement>, FieldProps, WithTestId {
18
+ }
package/types.js ADDED
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +1,13 @@
1
- import React from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  export interface UnknownContentProps extends React.HTMLAttributes<HTMLDivElement> {
3
3
  /** Строка с html-версткой. */
4
4
  markup?: string;
5
5
  /** Содержимое. */
6
- children?: React.ReactNode;
6
+ children?: ReactNode;
7
7
  }
8
8
  /**
9
9
  * Компонент, стилизующий верстку по гайдам.
10
10
  * @param props Свойства.
11
11
  * @return Элемент.
12
12
  */
13
- export declare const UnknownContent: ({ markup, children, className }: UnknownContentProps) => JSX.Element;
13
+ export declare function UnknownContent({ markup, children, className }: UnknownContentProps): JSX.Element;
@@ -28,19 +28,19 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.UnknownContent = void 0;
30
30
  const react_1 = __importStar(require("react"));
31
+ const utils_1 = require("./utils");
31
32
  const classnames_1 = __importDefault(require("classnames"));
32
33
  const unknown_content_module_scss_1 = __importDefault(require("./unknown-content.module.scss"));
33
- const utils_1 = require("./utils");
34
34
  /**
35
35
  * Компонент, стилизующий верстку по гайдам.
36
36
  * @param props Свойства.
37
37
  * @return Элемент.
38
38
  */
39
- const UnknownContent = ({ markup, children, className }) => {
39
+ function UnknownContent({ markup, children, className }) {
40
40
  const ref = (0, react_1.useRef)(null);
41
41
  (0, react_1.useEffect)(() => {
42
42
  ref.current && (0, utils_1.setTableRowLabels)(ref.current);
43
43
  });
44
44
  return (react_1.default.createElement("div", Object.assign({ ref: ref, className: (0, classnames_1.default)(unknown_content_module_scss_1.default.root, className) }, (children ? { children } : { dangerouslySetInnerHTML: { __html: markup || '' } }))));
45
- };
45
+ }
46
46
  exports.UnknownContent = UnknownContent;