intergalactic 15.121.0-prerelease.2 → 15.122.0-prerelease.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 (346) hide show
  1. package/CHANGELOG.md +34 -58
  2. package/accordion/lib/cjs/Accordion.js +9 -9
  3. package/accordion/lib/es6/Accordion.js +9 -9
  4. package/accordion/package.json +1 -1
  5. package/animation/package.json +1 -1
  6. package/badge/package.json +1 -1
  7. package/base-trigger/lib/cjs/BaseTrigger.js +18 -18
  8. package/base-trigger/lib/cjs/ButtonTrigger.js +3 -3
  9. package/base-trigger/lib/cjs/FilterTrigger.js +7 -7
  10. package/base-trigger/lib/cjs/LinkTrigger.js +12 -12
  11. package/base-trigger/lib/es6/BaseTrigger.js +18 -18
  12. package/base-trigger/lib/es6/ButtonTrigger.js +3 -3
  13. package/base-trigger/lib/es6/FilterTrigger.js +7 -7
  14. package/base-trigger/lib/es6/LinkTrigger.js +12 -12
  15. package/base-trigger/package.json +1 -1
  16. package/breadcrumbs/lib/cjs/Breadcrumbs.js +8 -8
  17. package/breadcrumbs/lib/es6/Breadcrumbs.js +8 -8
  18. package/breadcrumbs/package.json +1 -1
  19. package/breakpoints/package.json +1 -1
  20. package/button/lib/cjs/component/Button/Button.js +27 -27
  21. package/button/lib/cjs/component/ButtonLink/ButtonLink.js +20 -20
  22. package/button/lib/es6/component/Button/Button.js +27 -27
  23. package/button/lib/es6/component/ButtonLink/ButtonLink.js +20 -20
  24. package/button/package.json +1 -1
  25. package/card/lib/cjs/Card.js +6 -6
  26. package/card/lib/es6/Card.js +6 -6
  27. package/card/package.json +1 -1
  28. package/carousel/lib/cjs/Carousel.js +21 -21
  29. package/carousel/lib/es6/Carousel.js +21 -21
  30. package/carousel/package.json +1 -1
  31. package/checkbox/index.d.ts +3 -1
  32. package/checkbox/lib/cjs/Checkbox.js +2 -1
  33. package/checkbox/lib/cjs/Checkbox.js.map +1 -1
  34. package/checkbox/lib/cjs/index.d.js.map +1 -1
  35. package/checkbox/lib/es6/Checkbox.js +3 -2
  36. package/checkbox/lib/es6/Checkbox.js.map +1 -1
  37. package/checkbox/lib/es6/index.d.js.map +1 -1
  38. package/checkbox/lib/types/index.d.ts +3 -1
  39. package/checkbox/package.json +1 -1
  40. package/color-picker/lib/cjs/ColorPicker.js +24 -24
  41. package/color-picker/lib/cjs/PaletteManager.js +24 -24
  42. package/color-picker/lib/cjs/components/InputColor.js +24 -24
  43. package/color-picker/lib/es6/ColorPicker.js +24 -24
  44. package/color-picker/lib/es6/PaletteManager.js +24 -24
  45. package/color-picker/lib/es6/components/InputColor.js +24 -24
  46. package/color-picker/package.json +1 -1
  47. package/components.json +34 -34
  48. package/core/package.json +1 -1
  49. package/counter/package.json +1 -1
  50. package/d3-chart/package.json +1 -1
  51. package/data-table/lib/cjs/Body.js +3 -3
  52. package/data-table/lib/cjs/DataTable.js +36 -36
  53. package/data-table/lib/cjs/style/data-table.shadow.css +9 -9
  54. package/data-table/lib/cjs/utils.js +2 -2
  55. package/data-table/lib/cjs/utils.js.map +1 -1
  56. package/data-table/lib/es6/Body.js +3 -3
  57. package/data-table/lib/es6/DataTable.js +36 -36
  58. package/data-table/lib/es6/style/data-table.shadow.css +9 -9
  59. package/data-table/lib/es6/utils.js +2 -2
  60. package/data-table/lib/es6/utils.js.map +1 -1
  61. package/data-table/package.json +1 -1
  62. package/date-picker/lib/cjs/components/Calendar.js +21 -21
  63. package/date-picker/lib/cjs/components/DateRangeComparatorAbstract.js +29 -29
  64. package/date-picker/lib/cjs/components/InputTrigger.js +29 -29
  65. package/date-picker/lib/cjs/components/PickerAbstract.js +29 -29
  66. package/date-picker/lib/cjs/components/RangePickerAbstract.js +29 -29
  67. package/date-picker/lib/es6/components/Calendar.js +21 -21
  68. package/date-picker/lib/es6/components/DateRangeComparatorAbstract.js +29 -29
  69. package/date-picker/lib/es6/components/InputTrigger.js +29 -29
  70. package/date-picker/lib/es6/components/PickerAbstract.js +29 -29
  71. package/date-picker/lib/es6/components/RangePickerAbstract.js +29 -29
  72. package/date-picker/package.json +1 -1
  73. package/divider/package.json +1 -1
  74. package/dot/package.json +1 -1
  75. package/drag-and-drop/index.d.ts +4 -0
  76. package/drag-and-drop/lib/cjs/DragAndDrop.js +25 -19
  77. package/drag-and-drop/lib/cjs/DragAndDrop.js.map +1 -1
  78. package/drag-and-drop/lib/cjs/index.d.js.map +1 -1
  79. package/drag-and-drop/lib/cjs/style/drag-and-drop.shadow.css +3 -2
  80. package/drag-and-drop/lib/es6/DragAndDrop.js +25 -19
  81. package/drag-and-drop/lib/es6/DragAndDrop.js.map +1 -1
  82. package/drag-and-drop/lib/es6/index.d.js.map +1 -1
  83. package/drag-and-drop/lib/es6/style/drag-and-drop.shadow.css +3 -2
  84. package/drag-and-drop/lib/types/index.d.ts +4 -0
  85. package/drag-and-drop/package.json +1 -1
  86. package/dropdown/lib/cjs/AbstractDropdown.js +1 -0
  87. package/dropdown/lib/cjs/AbstractDropdown.js.map +1 -1
  88. package/dropdown/lib/cjs/Dropdown.js +16 -16
  89. package/dropdown/lib/cjs/style/dropdown.shadow.css +116 -108
  90. package/dropdown/lib/es6/AbstractDropdown.js +1 -0
  91. package/dropdown/lib/es6/AbstractDropdown.js.map +1 -1
  92. package/dropdown/lib/es6/Dropdown.js +16 -16
  93. package/dropdown/lib/es6/style/dropdown.shadow.css +116 -108
  94. package/dropdown/package.json +1 -1
  95. package/dropdown-menu/lib/cjs/DropdownMenu.js +18 -18
  96. package/dropdown-menu/lib/es6/DropdownMenu.js +18 -18
  97. package/dropdown-menu/package.json +1 -1
  98. package/ellipsis/lib/cjs/Ellipsis.js +12 -12
  99. package/ellipsis/lib/cjs/Ellipsis.js.map +1 -1
  100. package/ellipsis/lib/cjs/style/ellipsis.shadow.css +3 -3
  101. package/ellipsis/lib/es6/Ellipsis.js +12 -12
  102. package/ellipsis/lib/es6/Ellipsis.js.map +1 -1
  103. package/ellipsis/lib/es6/style/ellipsis.shadow.css +3 -3
  104. package/ellipsis/package.json +1 -1
  105. package/errors/lib/cjs/Error.js +9 -9
  106. package/errors/lib/es6/Error.js +9 -9
  107. package/errors/package.json +1 -1
  108. package/feature-popover/lib/cjs/FeaturePopover.js +11 -11
  109. package/feature-popover/lib/es6/FeaturePopover.js +11 -11
  110. package/feature-popover/package.json +1 -1
  111. package/feedback-form/component/feedback-rating/FeedbackRating.d.ts +58 -1
  112. package/feedback-form/component/feedback-rating/FeedbackRating.type.d.ts +6 -2
  113. package/feedback-form/lib/cjs/FeedbackForm.js +7 -7
  114. package/feedback-form/lib/cjs/component/checkbox-button/CheckboxButton.js +12 -6
  115. package/feedback-form/lib/cjs/component/checkbox-button/CheckboxButton.js.map +1 -1
  116. package/feedback-form/lib/cjs/component/feedback-item/FeedbackItem.js +5 -3
  117. package/feedback-form/lib/cjs/component/feedback-item/FeedbackItem.js.map +1 -1
  118. package/feedback-form/lib/cjs/component/feedback-rating/FeedbackRating.js +56 -40
  119. package/feedback-form/lib/cjs/component/feedback-rating/FeedbackRating.js.map +1 -1
  120. package/feedback-form/lib/cjs/component/feedback-rating/FeedbackRating.type.js.map +1 -1
  121. package/feedback-form/lib/cjs/component/slider-rating/SliderRating.js +67 -14
  122. package/feedback-form/lib/cjs/component/slider-rating/SliderRating.js.map +1 -1
  123. package/feedback-form/lib/cjs/style/slider-rating.shadow.css +1 -0
  124. package/feedback-form/lib/cjs/translations/de.json +5 -1
  125. package/feedback-form/lib/cjs/translations/en.json +5 -1
  126. package/feedback-form/lib/cjs/translations/es.json +5 -1
  127. package/feedback-form/lib/cjs/translations/fr.json +5 -1
  128. package/feedback-form/lib/cjs/translations/it.json +5 -1
  129. package/feedback-form/lib/cjs/translations/ja.json +5 -1
  130. package/feedback-form/lib/cjs/translations/ko.json +5 -1
  131. package/feedback-form/lib/cjs/translations/nl.json +5 -1
  132. package/feedback-form/lib/cjs/translations/pl.json +5 -1
  133. package/feedback-form/lib/cjs/translations/pt.json +5 -1
  134. package/feedback-form/lib/cjs/translations/sv.json +5 -1
  135. package/feedback-form/lib/cjs/translations/tr.json +5 -1
  136. package/feedback-form/lib/cjs/translations/vi.json +5 -1
  137. package/feedback-form/lib/cjs/translations/zh.json +5 -1
  138. package/feedback-form/lib/es6/FeedbackForm.js +7 -7
  139. package/feedback-form/lib/es6/component/checkbox-button/CheckboxButton.js +12 -6
  140. package/feedback-form/lib/es6/component/checkbox-button/CheckboxButton.js.map +1 -1
  141. package/feedback-form/lib/es6/component/feedback-item/FeedbackItem.js +5 -3
  142. package/feedback-form/lib/es6/component/feedback-item/FeedbackItem.js.map +1 -1
  143. package/feedback-form/lib/es6/component/feedback-rating/FeedbackRating.js +57 -41
  144. package/feedback-form/lib/es6/component/feedback-rating/FeedbackRating.js.map +1 -1
  145. package/feedback-form/lib/es6/component/feedback-rating/FeedbackRating.type.js.map +1 -1
  146. package/feedback-form/lib/es6/component/slider-rating/SliderRating.js +70 -16
  147. package/feedback-form/lib/es6/component/slider-rating/SliderRating.js.map +1 -1
  148. package/feedback-form/lib/es6/style/slider-rating.shadow.css +1 -0
  149. package/feedback-form/lib/es6/translations/de.json +5 -1
  150. package/feedback-form/lib/es6/translations/en.json +5 -1
  151. package/feedback-form/lib/es6/translations/es.json +5 -1
  152. package/feedback-form/lib/es6/translations/fr.json +5 -1
  153. package/feedback-form/lib/es6/translations/it.json +5 -1
  154. package/feedback-form/lib/es6/translations/ja.json +5 -1
  155. package/feedback-form/lib/es6/translations/ko.json +5 -1
  156. package/feedback-form/lib/es6/translations/nl.json +5 -1
  157. package/feedback-form/lib/es6/translations/pl.json +5 -1
  158. package/feedback-form/lib/es6/translations/pt.json +5 -1
  159. package/feedback-form/lib/es6/translations/sv.json +5 -1
  160. package/feedback-form/lib/es6/translations/tr.json +5 -1
  161. package/feedback-form/lib/es6/translations/vi.json +5 -1
  162. package/feedback-form/lib/es6/translations/zh.json +5 -1
  163. package/feedback-form/lib/types/component/feedback-rating/FeedbackRating.d.ts +58 -1
  164. package/feedback-form/lib/types/component/feedback-rating/FeedbackRating.type.d.ts +6 -2
  165. package/feedback-form/lib/types/translations/__intergalactic-dynamic-locales.d.ts +56 -0
  166. package/feedback-form/package.json +1 -1
  167. package/feedback-form/translations/__intergalactic-dynamic-locales.d.ts +56 -0
  168. package/flags/package.json +1 -1
  169. package/flex-box/package.json +1 -1
  170. package/format-text/package.json +1 -1
  171. package/fullscreen-modal/lib/cjs/FullscreenModal.js +13 -13
  172. package/fullscreen-modal/lib/es6/FullscreenModal.js +13 -13
  173. package/fullscreen-modal/package.json +1 -1
  174. package/grid/package.json +1 -1
  175. package/i18n-unplugin/package.json +1 -1
  176. package/icon/ChatGPT/l/index.d.ts +6 -0
  177. package/icon/ChatGPT/l/index.js +36 -0
  178. package/icon/ChatGPT/l/index.mjs +24 -0
  179. package/icon/ChatGPT/m/index.d.ts +6 -0
  180. package/icon/ChatGPT/m/index.js +36 -0
  181. package/icon/ChatGPT/m/index.mjs +24 -0
  182. package/icon/VideoList/l/index.d.ts +6 -0
  183. package/icon/VideoList/l/index.js +41 -0
  184. package/icon/VideoList/l/index.mjs +29 -0
  185. package/icon/VideoList/m/index.d.ts +6 -0
  186. package/icon/VideoList/m/index.js +41 -0
  187. package/icon/VideoList/m/index.mjs +29 -0
  188. package/icon/VideoStreaming/l/index.d.ts +6 -0
  189. package/icon/VideoStreaming/l/index.js +41 -0
  190. package/icon/VideoStreaming/l/index.mjs +29 -0
  191. package/icon/VideoStreaming/m/index.d.ts +6 -0
  192. package/icon/VideoStreaming/m/index.js +41 -0
  193. package/icon/VideoStreaming/m/index.mjs +29 -0
  194. package/icon/color/Confluence/l/index.js +4 -4
  195. package/icon/color/Confluence/l/index.mjs +4 -4
  196. package/icon/color/Confluence/m/index.js +4 -4
  197. package/icon/color/Confluence/m/index.mjs +4 -4
  198. package/icon/color/MetaColored/l/index.js +4 -4
  199. package/icon/color/MetaColored/l/index.mjs +4 -4
  200. package/icon/color/MetaColored/m/index.js +4 -4
  201. package/icon/color/MetaColored/m/index.mjs +4 -4
  202. package/icon/color/MicrosoftOffice/l/index.js +10 -10
  203. package/icon/color/MicrosoftOffice/l/index.mjs +10 -10
  204. package/icon/color/MicrosoftOffice/m/index.js +10 -10
  205. package/icon/color/MicrosoftOffice/m/index.mjs +10 -10
  206. package/icon/lib/cjs/Icon.js +5 -5
  207. package/icon/lib/es6/Icon.js +5 -5
  208. package/icon/package.json +1 -1
  209. package/icon/pay/Discover/l/index.js +1 -1
  210. package/icon/pay/Discover/l/index.mjs +1 -1
  211. package/icon/pay/Discover/m/index.js +1 -1
  212. package/icon/pay/Discover/m/index.mjs +1 -1
  213. package/icon/pay/JCB/l/index.js +10 -10
  214. package/icon/pay/JCB/l/index.mjs +10 -10
  215. package/icon/pay/JCB/m/index.js +10 -10
  216. package/icon/pay/JCB/m/index.mjs +10 -10
  217. package/icon/pay/Visa/l/index.js +2 -2
  218. package/icon/pay/Visa/l/index.mjs +2 -2
  219. package/icon/pay/Visa/m/index.js +2 -2
  220. package/icon/pay/Visa/m/index.mjs +2 -2
  221. package/illustration/package.json +1 -1
  222. package/inline-edit/package.json +1 -1
  223. package/inline-input/lib/cjs/InlineInput.js +14 -14
  224. package/inline-input/lib/es6/InlineInput.js +14 -14
  225. package/inline-input/package.json +1 -1
  226. package/input/package.json +1 -1
  227. package/input-mask/package.json +1 -1
  228. package/input-number/package.json +1 -1
  229. package/input-tags/lib/cjs/InputTags.js +12 -12
  230. package/input-tags/lib/es6/InputTags.js +12 -12
  231. package/input-tags/package.json +1 -1
  232. package/link/package.json +1 -1
  233. package/mini-chart/package.json +1 -1
  234. package/modal/lib/cjs/Modal.js +8 -8
  235. package/modal/lib/es6/Modal.js +8 -8
  236. package/modal/package.json +1 -1
  237. package/neighbor-location/package.json +1 -1
  238. package/notice/index.d.ts +9 -0
  239. package/notice/lib/cjs/Notice.js +73 -47
  240. package/notice/lib/cjs/Notice.js.map +1 -1
  241. package/notice/lib/cjs/NoticeSmart.js +8 -1
  242. package/notice/lib/cjs/NoticeSmart.js.map +1 -1
  243. package/notice/lib/cjs/index.d.js.map +1 -1
  244. package/notice/lib/cjs/style/notice.shadow.css +10 -0
  245. package/notice/lib/es6/Notice.js +75 -47
  246. package/notice/lib/es6/Notice.js.map +1 -1
  247. package/notice/lib/es6/NoticeSmart.js +8 -1
  248. package/notice/lib/es6/NoticeSmart.js.map +1 -1
  249. package/notice/lib/es6/index.d.js.map +1 -1
  250. package/notice/lib/es6/style/notice.shadow.css +10 -0
  251. package/notice/lib/types/index.d.ts +9 -0
  252. package/notice/package.json +1 -1
  253. package/notice-bubble/lib/cjs/NoticeBubble.js +15 -15
  254. package/notice-bubble/lib/cjs/style/notice-bubble.shadow.css +1 -1
  255. package/notice-bubble/lib/es6/NoticeBubble.js +15 -15
  256. package/notice-bubble/lib/es6/style/notice-bubble.shadow.css +1 -1
  257. package/notice-bubble/package.json +1 -1
  258. package/notice-global/lib/cjs/NoticeGlobal.js +11 -11
  259. package/notice-global/lib/es6/NoticeGlobal.js +11 -11
  260. package/notice-global/package.json +1 -1
  261. package/outside-click/package.json +1 -1
  262. package/package.json +1 -1
  263. package/pagination/lib/cjs/Pagination.js +10 -10
  264. package/pagination/lib/es6/Pagination.js +10 -10
  265. package/pagination/package.json +1 -1
  266. package/pills/package.json +1 -1
  267. package/popper/package.json +1 -1
  268. package/portal/package.json +1 -1
  269. package/product-head/package.json +1 -1
  270. package/progress-bar/package.json +1 -1
  271. package/radio/package.json +1 -1
  272. package/scroll-area/package.json +1 -1
  273. package/select/lib/cjs/InputSearch.js +6 -6
  274. package/select/lib/cjs/Select.js +8 -8
  275. package/select/lib/es6/InputSearch.js +6 -6
  276. package/select/lib/es6/Select.js +8 -8
  277. package/select/package.json +1 -1
  278. package/side-panel/lib/cjs/SidePanel.js +16 -16
  279. package/side-panel/lib/es6/SidePanel.js +16 -16
  280. package/side-panel/package.json +1 -1
  281. package/skeleton/lib/cjs/Charts/Area.js +9 -9
  282. package/skeleton/lib/cjs/Charts/Bar.js +9 -9
  283. package/skeleton/lib/cjs/Charts/Bubble.js +9 -9
  284. package/skeleton/lib/cjs/Charts/CompactHorizontalBar.js +9 -9
  285. package/skeleton/lib/cjs/Charts/Donut.js +9 -9
  286. package/skeleton/lib/cjs/Charts/Histogram.js +9 -9
  287. package/skeleton/lib/cjs/Charts/Line.js +9 -9
  288. package/skeleton/lib/cjs/Charts/RadialTree.js +9 -9
  289. package/skeleton/lib/cjs/Charts/ScatterPlot.js +9 -9
  290. package/skeleton/lib/cjs/Charts/Venn.js +9 -9
  291. package/skeleton/lib/cjs/Skeleton.js +8 -9
  292. package/skeleton/lib/cjs/Skeleton.js.map +1 -1
  293. package/skeleton/lib/es6/Charts/Area.js +9 -9
  294. package/skeleton/lib/es6/Charts/Bar.js +9 -9
  295. package/skeleton/lib/es6/Charts/Bubble.js +9 -9
  296. package/skeleton/lib/es6/Charts/CompactHorizontalBar.js +9 -9
  297. package/skeleton/lib/es6/Charts/Donut.js +9 -9
  298. package/skeleton/lib/es6/Charts/Histogram.js +9 -9
  299. package/skeleton/lib/es6/Charts/Line.js +9 -9
  300. package/skeleton/lib/es6/Charts/RadialTree.js +9 -9
  301. package/skeleton/lib/es6/Charts/ScatterPlot.js +9 -9
  302. package/skeleton/lib/es6/Charts/Venn.js +9 -9
  303. package/skeleton/lib/es6/Skeleton.js +8 -9
  304. package/skeleton/lib/es6/Skeleton.js.map +1 -1
  305. package/skeleton/package.json +1 -1
  306. package/slider/package.json +1 -1
  307. package/spin/lib/cjs/Spin.js +14 -14
  308. package/spin/lib/cjs/Spin.js.map +1 -1
  309. package/spin/lib/es6/Spin.js +14 -14
  310. package/spin/lib/es6/Spin.js.map +1 -1
  311. package/spin/package.json +1 -1
  312. package/spin-container/lib/cjs/SpinContainer.js +9 -11
  313. package/spin-container/lib/cjs/SpinContainer.js.map +1 -1
  314. package/spin-container/lib/es6/SpinContainer.js +9 -11
  315. package/spin-container/lib/es6/SpinContainer.js.map +1 -1
  316. package/spin-container/package.json +1 -1
  317. package/sticky/package.json +1 -1
  318. package/switch/package.json +1 -1
  319. package/tab-line/package.json +1 -1
  320. package/tab-panel/package.json +1 -1
  321. package/tag/lib/cjs/Tag.js +24 -23
  322. package/tag/lib/cjs/Tag.js.map +1 -1
  323. package/tag/lib/es6/Tag.js +24 -23
  324. package/tag/lib/es6/Tag.js.map +1 -1
  325. package/tag/package.json +1 -1
  326. package/textarea/package.json +1 -1
  327. package/time-picker/lib/cjs/TimePicker.js +12 -12
  328. package/time-picker/lib/es6/TimePicker.js +12 -12
  329. package/time-picker/package.json +1 -1
  330. package/tooltip/package.json +1 -1
  331. package/typography/lib/cjs/Blockquote.js +4 -4
  332. package/typography/lib/cjs/Hint.js +7 -7
  333. package/typography/lib/cjs/List.js +5 -5
  334. package/typography/lib/cjs/Text.js +34 -34
  335. package/typography/lib/es6/Blockquote.js +4 -4
  336. package/typography/lib/es6/Hint.js +7 -7
  337. package/typography/lib/es6/List.js +5 -5
  338. package/typography/lib/es6/Text.js +34 -34
  339. package/typography/package.json +1 -1
  340. package/utils/lib/enhances/autoFocusEnhance.d.ts +1 -1
  341. package/utils/lib/enhances/autoFocusEnhance.js.map +1 -1
  342. package/utils/lib/enhances/autoFocusEnhance.mjs.map +1 -1
  343. package/widget-empty/package.json +1 -1
  344. package/wizard/lib/cjs/Wizard.js +12 -12
  345. package/wizard/lib/es6/Wizard.js +12 -12
  346. package/wizard/package.json +1 -1
@@ -20,16 +20,16 @@ import { useResizeObserver } from './useResizeObserver';
20
20
  import useEnhancedEffect from 'intergalactic/utils/lib/use/useEnhancedEffect';
21
21
  import findComponent, { isAdvanceMode } from 'intergalactic/utils/lib/findComponent';
22
22
  /*__reshadow-styles__:"./style/ellipsis.shadow.css"*/
23
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SContainerMiddle_1hob8_gg_,.___SContainer_1hob8_gg_,.___SEllipsis_1hob8_gg_.__middle-mod_1hob8_gg_,.___SNoTooltipContainer_1hob8_gg_{display:flex;overflow:hidden}.___SBeginning_1hob8_gg_,.___SEllipsis_1hob8_gg_{overflow:hidden;display:inline-block;text-overflow:ellipsis;white-space:nowrap}.___SEllipsis_1hob8_gg_.__maxLine_1hob8_gg_{display:-webkit-box;-webkit-line-clamp:var(--maxLine_1hob8);-webkit-box-orient:vertical;overflow:hidden;white-space:normal;word-wrap:break-word}.___SContainerMiddle_1hob8_gg_>:has(.___SBeginning_1hob8_gg_),.___SContainerMiddle_1hob8_gg_>:has(.___STail_1hob8_gg_){display:flex;width:100%}.___STail_1hob8_gg_{white-space:nowrap}" /*__inner_css_end__*/, "1hob8_gg_") /*__reshadow_css_end__*/, {
24
- "__SContainer": "___SContainer_1hob8_gg_",
25
- "__SNoTooltipContainer": "___SNoTooltipContainer_1hob8_gg_",
26
- "__SContainerMiddle": "___SContainerMiddle_1hob8_gg_",
27
- "__SBeginning": "___SBeginning_1hob8_gg_",
28
- "__SEllipsis": "___SEllipsis_1hob8_gg_",
29
- "_middle-mod": "__middle-mod_1hob8_gg_",
30
- "_maxLine": "__maxLine_1hob8_gg_",
31
- "--maxLine": "--maxLine_1hob8",
32
- "__STail": "___STail_1hob8_gg_"
23
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SContainerMiddle_7prze_gg_,.___SContainer_7prze_gg_,.___SEllipsis_7prze_gg_.__middle-mod_7prze_gg_,.___SNoTooltipContainer_7prze_gg_{display:flex;overflow:hidden}.___SBeginning_7prze_gg_,.___SEllipsis_7prze_gg_{overflow:hidden;display:inline-block;text-overflow:ellipsis;white-space:pre}.___SEllipsis_7prze_gg_.__maxLine_7prze_gg_{display:-webkit-box;-webkit-line-clamp:var(--maxLine_7prze);-webkit-box-orient:vertical;overflow:hidden;white-space:normal;word-wrap:break-word}.___SContainerMiddle_7prze_gg_>:has(.___SBeginning_7prze_gg_),.___SContainerMiddle_7prze_gg_>:has(.___STail_7prze_gg_){display:flex;width:100%}.___STail_7prze_gg_{white-space:pre}" /*__inner_css_end__*/, "7prze_gg_") /*__reshadow_css_end__*/, {
24
+ "__SContainer": "___SContainer_7prze_gg_",
25
+ "__SNoTooltipContainer": "___SNoTooltipContainer_7prze_gg_",
26
+ "__SContainerMiddle": "___SContainerMiddle_7prze_gg_",
27
+ "__SBeginning": "___SBeginning_7prze_gg_",
28
+ "__SEllipsis": "___SEllipsis_7prze_gg_",
29
+ "_middle-mod": "__middle-mod_7prze_gg_",
30
+ "_maxLine": "__maxLine_7prze_gg_",
31
+ "--maxLine": "--maxLine_7prze",
32
+ "__STail": "___STail_7prze_gg_"
33
33
  });
34
34
  import reactToText from 'intergalactic/utils/lib/reactToText';
35
35
  import getOriginChildren from 'intergalactic/utils/lib/getOriginChildren';
@@ -268,11 +268,11 @@ var EllipsisMiddle = function EllipsisMiddle(props) {
268
268
  "ref": forkRef(ref, textRef),
269
269
  "tag": Tooltip,
270
270
  "__excludeProps": ['title']
271
- }, tooltipProps)), /*#__PURE__*/React.createElement(SBeginning, _ref6.cn("SBeginning", {}), text.substring(0, text.length - displayedSymbols / 2 - 1)), /*#__PURE__*/React.createElement(STail, _ref6.cn("STail", {}), text.substring(text.length - displayedSymbols / 2 - 1)));
271
+ }, tooltipProps)), /*#__PURE__*/React.createElement(SBeginning, _ref6.cn("SBeginning", {}), contextValue.begining), /*#__PURE__*/React.createElement(STail, _ref6.cn("STail", {}), contextValue.tail));
272
272
  }
273
273
  return _ref7 = sstyled(styles), /*#__PURE__*/React.createElement(SContainerMiddle, _ref7.cn("SContainerMiddle", _objectSpread(_objectSpread({}, otherProps), {}, {
274
274
  "ref": containerRef !== null && containerRef !== void 0 ? containerRef : resizeElement
275
- })), /*#__PURE__*/React.createElement(SBeginning, _ref7.cn("SBeginning", {}), text.substring(0, text.length - displayedSymbols / 2 - 1)), /*#__PURE__*/React.createElement(STail, _ref7.cn("STail", {}), text.substring(text.length - displayedSymbols / 2 - 1)));
275
+ })), /*#__PURE__*/React.createElement(SBeginning, _ref7.cn("SBeginning", {}), contextValue.begining), /*#__PURE__*/React.createElement(STail, _ref7.cn("STail", {}), contextValue.tail));
276
276
  };
277
277
  var Content = function Content(_ref10) {
278
278
  var _ref = arguments[0],
@@ -1 +1 @@
1
- {"version":3,"file":"Ellipsis.js","names":["React","createComponent","Component","Root","sstyled","Tooltip","Box","useResizeObserver","useEnhancedEffect","findComponent","isAdvanceMode","style","_sstyled","insert","reactToText","getOriginChildren","pick","forkRef","callAllEventHandlers","defaultTooltipProps","createMeasurerElement","element","text","styleElement","window","getComputedStyle","temporaryElement","document","createElement","display","getPropertyValue","padding","position","right","bottom","visibility","fontFamily","fontSize","fontWeight","lineHeight","whiteSpace","wordWrap","fontFeatureSettings","fontVariantNumeric","innerHTML","isTextOverflowing","multiline","_element$getBoundingC","getBoundingClientRect","currentHeight","height","currentWidth","width","measuringElement","isOverflowing","body","appendChild","concat","scrollWidth","Math","ceil","removeChild","forcedAdvancedMode","noAdvancedMode","RootEllipsis","_Component","_inherits","_super","_createSuper","_this","_classCallCheck","_len","arguments","length","args","Array","_key","call","apply","_defineProperty","_assertThisInitialized","visible","createRef","setState","showTooltip","_createClass","key","value","_this$asProps","asProps","_this$asProps$maxLine","maxLine","Children","textRef","current","getContentProps","ref","getPopperProps","_this$asProps2","includeTooltipProps","tooltipProps","_objectSpread","children","render","_ref4","_tooltipProps$visible","SEllipsis","SContainer","SNoTooltipContainer","_this$asProps3","styles","tooltip","trim","containerRect","containerRef","other","_objectWithoutProperties","_excluded","state","advancedContent","Ellipsis","Content","displayName","advanceMode","Popper","onVisibleChange","handlerVisibleChange","_ref2","EllipsisMiddle","cn","_ref3","undefined","__excludeProps","EllipsisMiddleContext","createContext","props","_ref7","otherProps","_excluded2","resizeElement","useRef","_React$useState","useState","symbolWidth","_React$useState2","_slicedToArray","dimension","setDimension","blockWidth","node","dateSpan","setAttribute","rect","STail","SBeginning","SContainerMiddle","tag","SAdvancedModeContainerMiddle","displayedSymbols","useMemo","round","interaction","contextValue","begining","substring","tail","_ref5","Provider","_ref6","_ref10","_ref","arguments[0]","_ref9","Trigger","ellipsisMiddleContext","useContext","_ref8","_assignProps","_assignProps2"],"sources":["../../src/Ellipsis.tsx"],"sourcesContent":["import React, { RefObject } from 'react';\nimport createComponent, { Component, Intergalactic, Root, sstyled } from '@semcore/core';\nimport Tooltip, { TooltipProps } from '@semcore/tooltip';\nimport { Box, BoxProps } from '@semcore/flex-box';\nimport { useResizeObserver } from './useResizeObserver';\nimport useEnhancedEffect from '@semcore/utils/lib/use/useEnhancedEffect';\nimport findComponent, { isAdvanceMode } from '@semcore/utils/lib/findComponent';\n\nimport style from './style/ellipsis.shadow.css';\nimport reactToText from '@semcore/utils/lib/reactToText';\nimport getOriginChildren from '@semcore/utils/lib/getOriginChildren';\nimport pick from '@semcore/utils/lib/pick';\nimport { forkRef } from '@semcore/utils/lib/ref';\nimport { callAllEventHandlers } from '@semcore/utils/lib/assignProps';\n\ntype AsProps = {\n maxLine?: number;\n trim?: 'end' | 'middle';\n tooltip?: boolean;\n styles?: React.CSSProperties;\n containerRect?: { width: number };\n\n containerRef?: RefObject<HTMLDivElement>;\n includeTooltipProps?: string[];\n __excludeProps?: string[];\n};\n\ntype AsPropsMiddle = {\n text: string;\n textRef: RefObject<HTMLElement>;\n tooltip?: boolean;\n styles?: React.CSSProperties;\n containerRect?: { width: number };\n\n containerRef?: RefObject<HTMLDivElement>;\n tooltipProps: TooltipProps;\n children?: React.ReactNode;\n advanceMode?: boolean;\n tag?: React.ElementType;\n};\n\ntype EllipsisProps = BoxProps &\n Partial<TooltipProps> & {\n /**\n * Rows count in multiline Ellipsis\n * @default 1\n */\n maxLine?: number;\n /**\n * Trimming type\n * @default end\n */\n trim?: 'end' | 'middle';\n /**\n * Show tooltip\n * @default true\n */\n tooltip?: boolean;\n /**\n * Ref to the item that will be observed by ResizeObserver\n */\n // eslint-disable-next-line ssr-friendly/no-dom-globals-in-module-scope\n containerRef?: RefObject<HTMLDivElement>;\n /**\n * Explicit sizes of container text should be trimmed in\n **/\n containerRect?: { width: number };\n /** List of props that will be passed to tooltip\n * @default ['title', 'theme', 'strategy', 'modifiers', 'placement', 'interaction', 'timeout', 'visible', 'defaultVisible', 'onVisibleChange', 'offset', 'preventOverflow', 'arrow', 'flip', 'computeStyles', 'eventListeners', 'onFirstUpdate']\n */\n includeTooltipProps?: string[];\n };\n\nconst defaultTooltipProps = [\n 'title',\n 'theme',\n 'strategy',\n 'modifiers',\n 'placement',\n 'interaction',\n 'timeout',\n 'visible',\n 'defaultVisible',\n 'onVisibleChange',\n 'offset',\n 'preventOverflow',\n 'arrow',\n 'flip',\n 'computeStyles',\n 'eventListeners',\n 'onFirstUpdate',\n 'cursorAnchoring',\n];\n\nconst createMeasurerElement = (element: HTMLDivElement, text?: string) => {\n const styleElement = window.getComputedStyle(element, null);\n const temporaryElement = document.createElement('temporary-block');\n temporaryElement.style.display = styleElement.getPropertyValue('display');\n temporaryElement.style.padding = styleElement.getPropertyValue('padding');\n temporaryElement.style.position = 'absolute';\n temporaryElement.style.right = '0%';\n temporaryElement.style.bottom = '0%';\n temporaryElement.style.visibility = 'hidden';\n temporaryElement.style.fontFamily = styleElement.getPropertyValue('font-family');\n temporaryElement.style.fontSize = styleElement.getPropertyValue('font-size');\n temporaryElement.style.fontWeight = styleElement.getPropertyValue('font-weight');\n temporaryElement.style.lineHeight = styleElement.getPropertyValue('line-height');\n temporaryElement.style.whiteSpace = styleElement.getPropertyValue('white-space');\n temporaryElement.style.wordWrap = styleElement.getPropertyValue('word-wrap');\n\n temporaryElement.style.fontFeatureSettings =\n styleElement.getPropertyValue('font-feature-settings');\n temporaryElement.style.fontVariantNumeric = styleElement.getPropertyValue('font-variant-numeric');\n\n temporaryElement.innerHTML = text ?? element.innerHTML;\n return temporaryElement;\n};\n\nfunction isTextOverflowing(element: HTMLDivElement, multiline: boolean, text?: string): boolean {\n if (!element) return false;\n\n const { height: currentHeight, width: currentWidth } = element.getBoundingClientRect();\n const measuringElement = createMeasurerElement(element, text);\n let isOverflowing = false;\n\n document.body.appendChild(measuringElement);\n if (multiline) {\n measuringElement.style.width = `${currentWidth}px`;\n\n const width = measuringElement.scrollWidth;\n const height = measuringElement.getBoundingClientRect().height;\n\n if (Math.ceil(currentHeight) < height || Math.ceil(currentWidth) < width) {\n isOverflowing = true;\n }\n } else {\n measuringElement.style.whiteSpace = 'nowrap';\n isOverflowing = Math.ceil(currentWidth) < measuringElement.getBoundingClientRect().width;\n }\n\n document.body.removeChild(measuringElement);\n\n return isOverflowing;\n}\n\nconst forcedAdvancedMode = { forcedAdvancedMode: true } as any;\nconst noAdvancedMode = {} as any;\n\nclass RootEllipsis extends Component<AsProps> {\n static displayName = 'Ellipsis';\n static style = style;\n static defaultProps: AsProps = {\n trim: 'end',\n tooltip: true,\n includeTooltipProps: defaultTooltipProps,\n __excludeProps: ['title'],\n };\n\n state = {\n visible: false,\n };\n\n textRef = React.createRef<HTMLDivElement>();\n\n showTooltip() {\n const { maxLine = 1, Children } = this.asProps;\n const text = reactToText(getOriginChildren(Children));\n return isTextOverflowing(this.textRef.current!, maxLine > 1, text);\n }\n\n handlerVisibleChange = (visible: boolean) => {\n this.setState({ visible: visible && this.showTooltip() });\n };\n\n getContentProps() {\n return {\n ref: this.textRef,\n maxLine: this.asProps.maxLine,\n };\n }\n\n getPopperProps() {\n const { Children, includeTooltipProps } = this.asProps;\n const text = reactToText(getOriginChildren(Children));\n const tooltipProps = pick(this.asProps, includeTooltipProps as any) as TooltipProps;\n return { children: text, ...tooltipProps };\n }\n\n render() {\n const SEllipsis = this.Root;\n const SContainer = Tooltip;\n const SNoTooltipContainer = Box;\n const {\n styles,\n Children,\n maxLine,\n tooltip,\n trim,\n containerRect,\n containerRef,\n includeTooltipProps,\n children,\n ...other\n } = this.asProps;\n const { visible } = this.state;\n const advancedContent = findComponent(Children, [(Ellipsis as any).Content.displayName]);\n const text = reactToText(advancedContent || getOriginChildren(Children));\n const advanceMode = isAdvanceMode(Children, [\n (Ellipsis as any).Content.displayName,\n (Ellipsis as any).Popper.displayName,\n ]);\n const tooltipProps = pick(this.asProps, includeTooltipProps as any) as TooltipProps;\n\n tooltipProps.visible = tooltipProps.visible ?? visible;\n tooltipProps.onVisibleChange = tooltipProps.onVisibleChange\n ? callAllEventHandlers(tooltipProps.onVisibleChange, this.handlerVisibleChange)\n : this.handlerVisibleChange;\n\n if (trim === 'middle') {\n return sstyled(styles)(\n <EllipsisMiddle\n text={text}\n styles={styles}\n tooltip={tooltip}\n containerRect={containerRect}\n containerRef={containerRef}\n textRef={this.textRef}\n tooltipProps={tooltipProps}\n advanceMode={advanceMode}\n {...other}\n >\n <Children />\n </EllipsisMiddle>,\n );\n }\n if (tooltip) {\n return sstyled(styles)(\n <SContainer\n interaction='hover'\n title={!advanceMode ? text : undefined}\n {...tooltipProps}\n {...(advanceMode ? forcedAdvancedMode : noAdvancedMode)}\n >\n {advanceMode ? (\n <Children />\n ) : (\n <SEllipsis render={Box} ref={this.textRef} maxLine={maxLine} {...other}>\n <Children />\n </SEllipsis>\n )}\n </SContainer>,\n );\n }\n return sstyled(styles)(\n <SNoTooltipContainer>\n {advanceMode ? (\n <Children />\n ) : (\n <SEllipsis render={Box} ref={this.textRef} maxLine={maxLine} {...other}>\n <Children />\n </SEllipsis>\n )}\n </SNoTooltipContainer>,\n );\n }\n}\n\nconst EllipsisMiddleContext = React.createContext<null | {\n begining: string;\n tail: string;\n ref: React.RefObject<HTMLElement>;\n}>(null);\n\nconst EllipsisMiddle: React.FC<AsPropsMiddle> = (props) => {\n const {\n styles,\n text,\n tooltip,\n containerRect,\n containerRef,\n textRef,\n tooltipProps,\n children,\n advanceMode,\n ...otherProps\n } = props;\n const resizeElement = React.useRef<HTMLDivElement>(null);\n const [dimension, setDimension] = React.useState<{ fontSize: string; symbolWidth: number }>({\n fontSize: '14',\n symbolWidth: 0,\n });\n const blockWidth = useResizeObserver(resizeElement, containerRect).width;\n\n useEnhancedEffect(() => {\n const node = containerRef?.current || resizeElement?.current;\n if (!node) return;\n\n const dateSpan = document.createElement('temporary-block');\n dateSpan.setAttribute('style', `fontSize: ${dimension.fontSize}px`);\n dateSpan.innerHTML = 'a';\n document.body.appendChild(dateSpan);\n const rect = dateSpan.getBoundingClientRect();\n\n setDimension({\n fontSize: window.getComputedStyle(node, null).getPropertyValue('font-size'),\n symbolWidth: rect.width,\n });\n document.body.removeChild(dateSpan);\n }, []);\n\n const STail = 'span';\n const SBeginning = 'span';\n const SContainerMiddle = props.tag || Box;\n const SAdvancedModeContainerMiddle = Tooltip;\n const displayedSymbols = React.useMemo(\n () => Math.round(blockWidth / dimension.symbolWidth),\n [blockWidth, dimension.symbolWidth],\n );\n\n const interaction = text.length > displayedSymbols ? 'hover' : 'none';\n const ref = containerRef ?? resizeElement;\n const contextValue = React.useMemo(\n () => ({\n begining: text.substring(0, text.length - displayedSymbols / 2 - 1),\n tail: text.substring(text.length - displayedSymbols / 2 - 1),\n ref,\n }),\n [text, displayedSymbols],\n );\n\n if (advanceMode) {\n return sstyled(styles)(\n <SAdvancedModeContainerMiddle\n interaction={interaction}\n {...tooltipProps}\n {...forcedAdvancedMode}\n >\n <EllipsisMiddleContext.Provider value={contextValue}>\n {children}\n </EllipsisMiddleContext.Provider>\n </SAdvancedModeContainerMiddle>,\n ) as any;\n }\n if (tooltip) {\n return sstyled(styles)(\n <SContainerMiddle\n interaction={interaction}\n title={text as any}\n ref={forkRef(ref, textRef)}\n tag={Tooltip}\n __excludeProps={['title']}\n {...tooltipProps}\n >\n <SBeginning>{text.substring(0, text.length - displayedSymbols / 2 - 1)}</SBeginning>\n <STail>{text.substring(text.length - displayedSymbols / 2 - 1)}</STail>\n </SContainerMiddle>,\n ) as any;\n }\n return sstyled(styles)(\n <SContainerMiddle {...otherProps} ref={containerRef ?? resizeElement}>\n <SBeginning>{text.substring(0, text.length - displayedSymbols / 2 - 1)}</SBeginning>\n <STail>{text.substring(text.length - displayedSymbols / 2 - 1)}</STail>\n </SContainerMiddle>,\n ) as any;\n};\n\ntype EllipsisContentAsProps = {\n styles: any;\n Children: React.FC;\n};\n\nconst Content: React.FC<EllipsisContentAsProps> = ({ styles, Children }) => {\n const SEllipsis = Root;\n const ellipsisMiddleContext = React.useContext(EllipsisMiddleContext);\n const STail = 'span';\n const SBeginning = 'span';\n\n if (ellipsisMiddleContext) {\n const { begining, tail, ref } = ellipsisMiddleContext;\n return sstyled(styles)(\n <SEllipsis render={Tooltip.Trigger} middle-mod ref={ref}>\n <SBeginning>{begining}</SBeginning>\n <STail>{tail}</STail>\n </SEllipsis>,\n ) as any;\n }\n\n return sstyled(styles)(\n <SEllipsis render={Tooltip.Trigger}>\n <Children />\n </SEllipsis>,\n ) as any;\n};\n\nconst Ellipsis = createComponent(RootEllipsis, {\n Content,\n Popper: Tooltip.Popper,\n}) as any as Intergalactic.Component<'div', EllipsisProps> & {\n Content: typeof Box;\n Popper: typeof Tooltip.Popper;\n};\n\nexport default Ellipsis;\n"],"mappings":";;;;;;;;;;;;;;AAAA,OAAOA,KAAK,MAAqB,OAAO;AACxC,OAAOC,eAAe,IAAIC,SAAS,EAAiBC,IAAI,EAAEC,OAAO,QAAQ,eAAe;AACxF,OAAOC,OAAO,MAAwB,kBAAkB;AACxD,SAASC,GAAG,QAAkB,mBAAmB;AACjD,SAASC,iBAAiB,QAAQ,qBAAqB;AACvD,OAAOC,iBAAiB,MAAM,0CAA0C;AACxE,OAAOC,aAAa,IAAIC,aAAa,QAAQ,kCAAkC;AAAC;AAAA,IAAAC,KAAA,+BAAAC,QAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAGhF,OAAOC,WAAW,MAAM,gCAAgC;AACxD,OAAOC,iBAAiB,MAAM,sCAAsC;AACpE,OAAOC,IAAI,MAAM,yBAAyB;AAC1C,SAASC,OAAO,QAAQ,wBAAwB;AAChD,SAASC,oBAAoB,QAAQ,gCAAgC;AA4DrE,IAAMC,mBAAmB,GAAG,CAC1B,OAAO,EACP,OAAO,EACP,UAAU,EACV,WAAW,EACX,WAAW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AAA,CAAA4B,aAAA,CAAC8E,SAAS,EAAAkE,KAAA,CAAA3C,EAAA,cAAA5B,aAAA,KAAA6E,aAAA,KAAAR,IAAA,kBACR1K,KAAA,CAAA4B,aAAA,CAACgE,QAAQ,EAAAgF,KAAA,CAAA3C,EAAA,iBAAG,CACF;AAEhB,CAAC;AAED,IAAMT,QAAQ,GAAGvH,eAAe,CAAC+D,YAAY,EAAE;EAC7CyD,OAAO,EAAPA,OAAO;EACPG,MAAM,EAAEvH,OAAO,CAACuH;AAClB,CAAC,CAGA;AAED,eAAeJ,QAAQ"}
1
+ {"version":3,"file":"Ellipsis.js","names":["React","createComponent","Component","Root","sstyled","Tooltip","Box","useResizeObserver","useEnhancedEffect","findComponent","isAdvanceMode","style","_sstyled","insert","reactToText","getOriginChildren","pick","forkRef","callAllEventHandlers","defaultTooltipProps","createMeasurerElement","element","text","styleElement","window","getComputedStyle","temporaryElement","document","createElement","display","getPropertyValue","padding","position","right","bottom","visibility","fontFamily","fontSize","fontWeight","lineHeight","whiteSpace","wordWrap","fontFeatureSettings","fontVariantNumeric","innerHTML","isTextOverflowing","multiline","_element$getBoundingC","getBoundingClientRect","currentHeight","height","currentWidth","width","measuringElement","isOverflowing","body","appendChild","concat","scrollWidth","Math","ceil","removeChild","forcedAdvancedMode","noAdvancedMode","RootEllipsis","_Component","_inherits","_super","_createSuper","_this","_classCallCheck","_len","arguments","length","args","Array","_key","call","apply","_defineProperty","_assertThisInitialized","visible","createRef","setState","showTooltip","_createClass","key","value","_this$asProps","asProps","_this$asProps$maxLine","maxLine","Children","textRef","current","getContentProps","ref","getPopperProps","_this$asProps2","includeTooltipProps","tooltipProps","_objectSpread","children","render","_ref4","_tooltipProps$visible","SEllipsis","SContainer","SNoTooltipContainer","_this$asProps3","styles","tooltip","trim","containerRect","containerRef","other","_objectWithoutProperties","_excluded","state","advancedContent","Ellipsis","Content","displayName","advanceMode","Popper","onVisibleChange","handlerVisibleChange","_ref2","EllipsisMiddle","cn","_ref3","undefined","__excludeProps","EllipsisMiddleContext","createContext","props","_ref7","otherProps","_excluded2","resizeElement","useRef","_React$useState","useState","symbolWidth","_React$useState2","_slicedToArray","dimension","setDimension","blockWidth","node","dateSpan","setAttribute","rect","STail","SBeginning","SContainerMiddle","tag","SAdvancedModeContainerMiddle","displayedSymbols","useMemo","round","interaction","contextValue","begining","substring","tail","_ref5","Provider","_ref6","_ref10","_ref","arguments[0]","_ref9","Trigger","ellipsisMiddleContext","useContext","_ref8","_assignProps","_assignProps2"],"sources":["../../src/Ellipsis.tsx"],"sourcesContent":["import React, { RefObject } from 'react';\nimport createComponent, { Component, Intergalactic, Root, sstyled } from '@semcore/core';\nimport Tooltip, { TooltipProps } from '@semcore/tooltip';\nimport { Box, BoxProps } from '@semcore/flex-box';\nimport { useResizeObserver } from './useResizeObserver';\nimport useEnhancedEffect from '@semcore/utils/lib/use/useEnhancedEffect';\nimport findComponent, { isAdvanceMode } from '@semcore/utils/lib/findComponent';\n\nimport style from './style/ellipsis.shadow.css';\nimport reactToText from '@semcore/utils/lib/reactToText';\nimport getOriginChildren from '@semcore/utils/lib/getOriginChildren';\nimport pick from '@semcore/utils/lib/pick';\nimport { forkRef } from '@semcore/utils/lib/ref';\nimport { callAllEventHandlers } from '@semcore/utils/lib/assignProps';\n\ntype AsProps = {\n maxLine?: number;\n trim?: 'end' | 'middle';\n tooltip?: boolean;\n styles?: React.CSSProperties;\n containerRect?: { width: number };\n\n containerRef?: RefObject<HTMLDivElement>;\n includeTooltipProps?: string[];\n __excludeProps?: string[];\n};\n\ntype AsPropsMiddle = {\n text: string;\n textRef: RefObject<HTMLElement>;\n tooltip?: boolean;\n styles?: React.CSSProperties;\n containerRect?: { width: number };\n\n containerRef?: RefObject<HTMLDivElement>;\n tooltipProps: TooltipProps;\n children?: React.ReactNode;\n advanceMode?: boolean;\n tag?: React.ElementType;\n};\n\ntype EllipsisProps = BoxProps &\n Partial<TooltipProps> & {\n /**\n * Rows count in multiline Ellipsis\n * @default 1\n */\n maxLine?: number;\n /**\n * Trimming type\n * @default end\n */\n trim?: 'end' | 'middle';\n /**\n * Show tooltip\n * @default true\n */\n tooltip?: boolean;\n /**\n * Ref to the item that will be observed by ResizeObserver\n */\n // eslint-disable-next-line ssr-friendly/no-dom-globals-in-module-scope\n containerRef?: RefObject<HTMLDivElement>;\n /**\n * Explicit sizes of container text should be trimmed in\n **/\n containerRect?: { width: number };\n /** List of props that will be passed to tooltip\n * @default ['title', 'theme', 'strategy', 'modifiers', 'placement', 'interaction', 'timeout', 'visible', 'defaultVisible', 'onVisibleChange', 'offset', 'preventOverflow', 'arrow', 'flip', 'computeStyles', 'eventListeners', 'onFirstUpdate']\n */\n includeTooltipProps?: string[];\n };\n\nconst defaultTooltipProps = [\n 'title',\n 'theme',\n 'strategy',\n 'modifiers',\n 'placement',\n 'interaction',\n 'timeout',\n 'visible',\n 'defaultVisible',\n 'onVisibleChange',\n 'offset',\n 'preventOverflow',\n 'arrow',\n 'flip',\n 'computeStyles',\n 'eventListeners',\n 'onFirstUpdate',\n 'cursorAnchoring',\n];\n\nconst createMeasurerElement = (element: HTMLDivElement, text?: string) => {\n const styleElement = window.getComputedStyle(element, null);\n const temporaryElement = document.createElement('temporary-block');\n temporaryElement.style.display = styleElement.getPropertyValue('display');\n temporaryElement.style.padding = styleElement.getPropertyValue('padding');\n temporaryElement.style.position = 'absolute';\n temporaryElement.style.right = '0%';\n temporaryElement.style.bottom = '0%';\n temporaryElement.style.visibility = 'hidden';\n temporaryElement.style.fontFamily = styleElement.getPropertyValue('font-family');\n temporaryElement.style.fontSize = styleElement.getPropertyValue('font-size');\n temporaryElement.style.fontWeight = styleElement.getPropertyValue('font-weight');\n temporaryElement.style.lineHeight = styleElement.getPropertyValue('line-height');\n temporaryElement.style.whiteSpace = styleElement.getPropertyValue('white-space');\n temporaryElement.style.wordWrap = styleElement.getPropertyValue('word-wrap');\n\n temporaryElement.style.fontFeatureSettings =\n styleElement.getPropertyValue('font-feature-settings');\n temporaryElement.style.fontVariantNumeric = styleElement.getPropertyValue('font-variant-numeric');\n\n temporaryElement.innerHTML = text ?? element.innerHTML;\n return temporaryElement;\n};\n\nfunction isTextOverflowing(element: HTMLDivElement, multiline: boolean, text?: string): boolean {\n if (!element) return false;\n\n const { height: currentHeight, width: currentWidth } = element.getBoundingClientRect();\n const measuringElement = createMeasurerElement(element, text);\n let isOverflowing = false;\n\n document.body.appendChild(measuringElement);\n if (multiline) {\n measuringElement.style.width = `${currentWidth}px`;\n\n const width = measuringElement.scrollWidth;\n const height = measuringElement.getBoundingClientRect().height;\n\n if (Math.ceil(currentHeight) < height || Math.ceil(currentWidth) < width) {\n isOverflowing = true;\n }\n } else {\n measuringElement.style.whiteSpace = 'nowrap';\n isOverflowing = Math.ceil(currentWidth) < measuringElement.getBoundingClientRect().width;\n }\n\n document.body.removeChild(measuringElement);\n\n return isOverflowing;\n}\n\nconst forcedAdvancedMode = { forcedAdvancedMode: true } as any;\nconst noAdvancedMode = {} as any;\n\nclass RootEllipsis extends Component<AsProps> {\n static displayName = 'Ellipsis';\n static style = style;\n static defaultProps: AsProps = {\n trim: 'end',\n tooltip: true,\n includeTooltipProps: defaultTooltipProps,\n __excludeProps: ['title'],\n };\n\n state = {\n visible: false,\n };\n\n textRef = React.createRef<HTMLDivElement>();\n\n showTooltip() {\n const { maxLine = 1, Children } = this.asProps;\n const text = reactToText(getOriginChildren(Children));\n return isTextOverflowing(this.textRef.current!, maxLine > 1, text);\n }\n\n handlerVisibleChange = (visible: boolean) => {\n this.setState({ visible: visible && this.showTooltip() });\n };\n\n getContentProps() {\n return {\n ref: this.textRef,\n maxLine: this.asProps.maxLine,\n };\n }\n\n getPopperProps() {\n const { Children, includeTooltipProps } = this.asProps;\n const text = reactToText(getOriginChildren(Children));\n const tooltipProps = pick(this.asProps, includeTooltipProps as any) as TooltipProps;\n return { children: text, ...tooltipProps };\n }\n\n render() {\n const SEllipsis = this.Root;\n const SContainer = Tooltip;\n const SNoTooltipContainer = Box;\n const {\n styles,\n Children,\n maxLine,\n tooltip,\n trim,\n containerRect,\n containerRef,\n includeTooltipProps,\n children,\n ...other\n } = this.asProps;\n const { visible } = this.state;\n const advancedContent = findComponent(Children, [(Ellipsis as any).Content.displayName]);\n const text = reactToText(advancedContent || getOriginChildren(Children));\n const advanceMode = isAdvanceMode(Children, [\n (Ellipsis as any).Content.displayName,\n (Ellipsis as any).Popper.displayName,\n ]);\n const tooltipProps = pick(this.asProps, includeTooltipProps as any) as TooltipProps;\n\n tooltipProps.visible = tooltipProps.visible ?? visible;\n tooltipProps.onVisibleChange = tooltipProps.onVisibleChange\n ? callAllEventHandlers(tooltipProps.onVisibleChange, this.handlerVisibleChange)\n : this.handlerVisibleChange;\n\n if (trim === 'middle') {\n return sstyled(styles)(\n <EllipsisMiddle\n text={text}\n styles={styles}\n tooltip={tooltip}\n containerRect={containerRect}\n containerRef={containerRef}\n textRef={this.textRef}\n tooltipProps={tooltipProps}\n advanceMode={advanceMode}\n {...other}\n >\n <Children />\n </EllipsisMiddle>,\n );\n }\n if (tooltip) {\n return sstyled(styles)(\n <SContainer\n interaction='hover'\n title={!advanceMode ? text : undefined}\n {...tooltipProps}\n {...(advanceMode ? forcedAdvancedMode : noAdvancedMode)}\n >\n {advanceMode ? (\n <Children />\n ) : (\n <SEllipsis render={Box} ref={this.textRef} maxLine={maxLine} {...other}>\n <Children />\n </SEllipsis>\n )}\n </SContainer>,\n );\n }\n return sstyled(styles)(\n <SNoTooltipContainer>\n {advanceMode ? (\n <Children />\n ) : (\n <SEllipsis render={Box} ref={this.textRef} maxLine={maxLine} {...other}>\n <Children />\n </SEllipsis>\n )}\n </SNoTooltipContainer>,\n );\n }\n}\n\nconst EllipsisMiddleContext = React.createContext<null | {\n begining: string;\n tail: string;\n ref: React.RefObject<HTMLElement>;\n}>(null);\n\nconst EllipsisMiddle: React.FC<AsPropsMiddle> = (props) => {\n const {\n styles,\n text,\n tooltip,\n containerRect,\n containerRef,\n textRef,\n tooltipProps,\n children,\n advanceMode,\n ...otherProps\n } = props;\n const resizeElement = React.useRef<HTMLDivElement>(null);\n const [dimension, setDimension] = React.useState<{ fontSize: string; symbolWidth: number }>({\n fontSize: '14',\n symbolWidth: 0,\n });\n const blockWidth = useResizeObserver(resizeElement, containerRect).width;\n\n useEnhancedEffect(() => {\n const node = containerRef?.current || resizeElement?.current;\n if (!node) return;\n\n const dateSpan = document.createElement('temporary-block');\n dateSpan.setAttribute('style', `fontSize: ${dimension.fontSize}px`);\n dateSpan.innerHTML = 'a';\n document.body.appendChild(dateSpan);\n const rect = dateSpan.getBoundingClientRect();\n\n setDimension({\n fontSize: window.getComputedStyle(node, null).getPropertyValue('font-size'),\n symbolWidth: rect.width,\n });\n document.body.removeChild(dateSpan);\n }, []);\n\n const STail = 'span';\n const SBeginning = 'span';\n const SContainerMiddle = props.tag || Box;\n const SAdvancedModeContainerMiddle = Tooltip;\n const displayedSymbols = React.useMemo(\n () => Math.round(blockWidth / dimension.symbolWidth),\n [blockWidth, dimension.symbolWidth],\n );\n\n const interaction = text.length > displayedSymbols ? 'hover' : 'none';\n const ref = containerRef ?? resizeElement;\n const contextValue = React.useMemo(\n () => ({\n begining: text.substring(0, text.length - displayedSymbols / 2 - 1),\n tail: text.substring(text.length - displayedSymbols / 2 - 1),\n ref,\n }),\n [text, displayedSymbols],\n );\n\n if (advanceMode) {\n return sstyled(styles)(\n <SAdvancedModeContainerMiddle\n interaction={interaction}\n {...tooltipProps}\n {...forcedAdvancedMode}\n >\n <EllipsisMiddleContext.Provider value={contextValue}>\n {children}\n </EllipsisMiddleContext.Provider>\n </SAdvancedModeContainerMiddle>,\n ) as any;\n }\n if (tooltip) {\n return sstyled(styles)(\n <SContainerMiddle\n interaction={interaction}\n title={text as any}\n ref={forkRef(ref, textRef)}\n tag={Tooltip}\n __excludeProps={['title']}\n {...tooltipProps}\n >\n <SBeginning>{contextValue.begining}</SBeginning>\n <STail>{contextValue.tail}</STail>\n </SContainerMiddle>,\n ) as any;\n }\n return sstyled(styles)(\n <SContainerMiddle {...otherProps} ref={containerRef ?? resizeElement}>\n <SBeginning>{contextValue.begining}</SBeginning>\n <STail>{contextValue.tail}</STail>\n </SContainerMiddle>,\n ) as any;\n};\n\ntype EllipsisContentAsProps = {\n styles: any;\n Children: React.FC;\n};\n\nconst Content: React.FC<EllipsisContentAsProps> = ({ styles, Children }) => {\n const SEllipsis = Root;\n const ellipsisMiddleContext = React.useContext(EllipsisMiddleContext);\n const STail = 'span';\n const SBeginning = 'span';\n\n if (ellipsisMiddleContext) {\n const { begining, tail, ref } = ellipsisMiddleContext;\n return sstyled(styles)(\n <SEllipsis render={Tooltip.Trigger} middle-mod ref={ref}>\n <SBeginning>{begining}</SBeginning>\n <STail>{tail}</STail>\n </SEllipsis>,\n ) as any;\n }\n\n return sstyled(styles)(\n <SEllipsis render={Tooltip.Trigger}>\n <Children />\n </SEllipsis>,\n ) as any;\n};\n\nconst Ellipsis = createComponent(RootEllipsis, {\n Content,\n Popper: Tooltip.Popper,\n}) as any as Intergalactic.Component<'div', EllipsisProps> & {\n Content: typeof Box;\n Popper: typeof Tooltip.Popper;\n};\n\nexport default Ellipsis;\n"],"mappings":";;;;;;;;;;;;;;AAAA,OAAOA,KAAK,MAAqB,OAAO;AACxC,OAAOC,eAAe,IAAIC,SAAS,EAAiBC,IAAI,EAAEC,OAAO,QAAQ,eAAe;AACxF,OAAOC,OAAO,MAAwB,kBAAkB;AACxD,SAASC,GAAG,QAAkB,mBAAmB;AACjD,SAASC,iBAAiB,QAAQ,qBAAqB;AACvD,OAAOC,iBAAiB,MAAM,0CAA0C;AACxE,OAAOC,aAAa,IAAIC,aAAa,QAAQ,kCAAkC;AAAC;AAAA,IAAAC,KAAA,+BAAAC,QAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAGhF,OAAOC,WAAW,MAAM,gCAAgC;AACxD,OAAOC,iBAAiB,MAAM,sCAAsC;AACpE,OAAOC,IAAI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AAA,CAAA3C,EAAA,iBAAG,CACF;AAEhB,CAAC;AAED,IAAMT,QAAQ,GAAGvH,eAAe,CAAC+D,YAAY,EAAE;EAC7CyD,OAAO,EAAPA,OAAO;EACPG,MAAM,EAAEvH,OAAO,CAACuH;AAClB,CAAC,CAGA;AAED,eAAeJ,QAAQ"}
@@ -10,7 +10,7 @@ SEllipsis {
10
10
  overflow: hidden;
11
11
  display: inline-block;
12
12
  text-overflow: ellipsis;
13
- white-space: nowrap;
13
+ white-space: pre;
14
14
  }
15
15
 
16
16
  SEllipsis[middle-mod] {
@@ -34,5 +34,5 @@ SContainerMiddle> :has(STail) {
34
34
  }
35
35
 
36
36
  STail {
37
- white-space: nowrap;
38
- }
37
+ white-space: pre;
38
+ }
@@ -1 +1 @@
1
- {"name":"intergalactic/ellipsis","description":"Semrush Ellipsis Component","version":"2.37.1-prerelease.2","main":"lib/cjs/index.js","module":"lib/es6/index.js","typings":"lib/types/index.d.ts","sideEffects":false,"author":"UI-KIT team <ui-kit-team@semrush.com>","license":"MIT","scripts":{"build":"pnpm semcore-builder --source=js"},"dependencies":{"@semcore/utils":"4.44.1-prerelease.2","@semcore/flex-box":"5.39.1-prerelease.2","@semcore/tooltip":"6.47.1-prerelease.2"},"peerDependencies":{"@semcore/core":"^2.37.1-prerelease.2","react":"16.8 - 18","react-dom":"16.8 - 18"},"devDependencies":{"@types/react":"18.0.21","@semcore/testing-utils":"1.0.0"},"repository":{"type":"git","url":"https://github.com/semrush/intergalactic.git","directory":"semcore/ellipsis"}}
1
+ {"name":"intergalactic/ellipsis","description":"Semrush Ellipsis Component","version":"2.37.2-prerelease.0","main":"lib/cjs/index.js","module":"lib/es6/index.js","typings":"lib/types/index.d.ts","sideEffects":false,"author":"UI-KIT team <ui-kit-team@semrush.com>","license":"MIT","scripts":{"build":"pnpm semcore-builder --source=js"},"dependencies":{"@semcore/utils":"4.44.1","@semcore/flex-box":"5.39.1","@semcore/tooltip":"6.47.1"},"peerDependencies":{"@semcore/core":"^2.17.5","react":"16.8 - 18","react-dom":"16.8 - 18"},"devDependencies":{"@types/react":"18.0.21","@semcore/testing-utils":"1.0.0"},"repository":{"type":"git","url":"https://github.com/semrush/intergalactic.git","directory":"semcore/ellipsis"}}
@@ -18,15 +18,15 @@ var _react = _interopRequireDefault(require("react"));
18
18
  var _flexBox = require("intergalactic/flex-box");
19
19
  var _illustration = require("intergalactic/illustration");
20
20
  /*__reshadow-styles__:"./style/errors.shadow.css"*/
21
- var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SError_1l0qu_gg_{padding:var(--intergalactic-spacing-20x, 80px)0;margin:0 auto;max-width:960px}@media (max-width:768px){.___SError_1l0qu_gg_{padding:var(--intergalactic-spacing-20x, 80px) var(--intergalactic-spacing-8x, 32px)}}@media (max-width:320px){.___SError_1l0qu_gg_{padding:var(--intergalactic-spacing-10x, 40px) var(--intergalactic-spacing-5x, 20px) var(--intergalactic-spacing-20x, 80px)}}.___SError_1l0qu_gg_ .___SControls_1l0qu_gg_{display:flex;align-items:center}.___SError_1l0qu_gg_ .___SControls_1l0qu_gg_>:not(:last-child){margin-right:var(--intergalactic-spacing-3x, 12px)}.___SError_1l0qu_gg_ .___SInner_1l0qu_gg_{width:100%;display:flex;justify-content:flex-start;flex-wrap:wrap;align-items:flex-start;box-sizing:border-box}.___SError_1l0qu_gg_ .___SInner_1l0qu_gg_ .___SImageWrapper_1l0qu_gg_,.___SError_1l0qu_gg_ .___SInner_1l0qu_gg_ .___SImage_1l0qu_gg_{width:260px;height:260px}@media (max-width:320px){.___SError_1l0qu_gg_ .___SInner_1l0qu_gg_ .___SImageWrapper_1l0qu_gg_,.___SError_1l0qu_gg_ .___SInner_1l0qu_gg_ .___SImage_1l0qu_gg_{width:200px;height:200px}}.___SError_1l0qu_gg_ .___SInner_1l0qu_gg_ .___SImageWrapper_1l0qu_gg_{margin-right:var(--intergalactic-spacing-10x, 40px)}.___SError_1l0qu_gg_ .___SInner_1l0qu_gg_ .___SWrapper_1l0qu_gg_{flex:1 0 300px;max-width:100%;margin-top:var(--intergalactic-spacing-8x, 32px)}.___SError_1l0qu_gg_ .___SInner_1l0qu_gg_ .___STitle_1l0qu_gg_[data-errors-title]{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%);color:var(--intergalactic-text-primary, #191b23);font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SError_1l0qu_gg_ .___SInner_1l0qu_gg_ .___SDescription_1l0qu_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);color:var(--intergalactic-text-primary, #191b23);margin:0 0 var(--intergalactic-spacing-6x, 24px)0}" /*__inner_css_end__*/, "1l0qu_gg_") /*__reshadow_css_end__*/, {
22
- "__SError": "___SError_1l0qu_gg_",
23
- "__SControls": "___SControls_1l0qu_gg_",
24
- "__SInner": "___SInner_1l0qu_gg_",
25
- "__SImageWrapper": "___SImageWrapper_1l0qu_gg_",
26
- "__SImage": "___SImage_1l0qu_gg_",
27
- "__SWrapper": "___SWrapper_1l0qu_gg_",
28
- "__STitle": "___STitle_1l0qu_gg_",
29
- "__SDescription": "___SDescription_1l0qu_gg_"
21
+ var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SError_vw7fj_gg_{padding:var(--intergalactic-spacing-20x, 80px)0;margin:0 auto;max-width:960px}@media (max-width:768px){.___SError_vw7fj_gg_{padding:var(--intergalactic-spacing-20x, 80px) var(--intergalactic-spacing-8x, 32px)}}@media (max-width:320px){.___SError_vw7fj_gg_{padding:var(--intergalactic-spacing-10x, 40px) var(--intergalactic-spacing-5x, 20px) var(--intergalactic-spacing-20x, 80px)}}.___SError_vw7fj_gg_ .___SControls_vw7fj_gg_{display:flex;align-items:center}.___SError_vw7fj_gg_ .___SControls_vw7fj_gg_>:not(:last-child){margin-right:var(--intergalactic-spacing-3x, 12px)}.___SError_vw7fj_gg_ .___SInner_vw7fj_gg_{width:100%;display:flex;justify-content:flex-start;flex-wrap:wrap;align-items:flex-start;box-sizing:border-box}.___SError_vw7fj_gg_ .___SInner_vw7fj_gg_ .___SImageWrapper_vw7fj_gg_,.___SError_vw7fj_gg_ .___SInner_vw7fj_gg_ .___SImage_vw7fj_gg_{width:260px;height:260px}@media (max-width:320px){.___SError_vw7fj_gg_ .___SInner_vw7fj_gg_ .___SImageWrapper_vw7fj_gg_,.___SError_vw7fj_gg_ .___SInner_vw7fj_gg_ .___SImage_vw7fj_gg_{width:200px;height:200px}}.___SError_vw7fj_gg_ .___SInner_vw7fj_gg_ .___SImageWrapper_vw7fj_gg_{margin-right:var(--intergalactic-spacing-10x, 40px)}.___SError_vw7fj_gg_ .___SInner_vw7fj_gg_ .___SWrapper_vw7fj_gg_{flex:1 0 300px;max-width:100%;margin-top:var(--intergalactic-spacing-8x, 32px)}.___SError_vw7fj_gg_ .___SInner_vw7fj_gg_ .___STitle_vw7fj_gg_[data-errors-title]{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%);color:var(--intergalactic-text-primary, #191b23);font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SError_vw7fj_gg_ .___SInner_vw7fj_gg_ .___SDescription_vw7fj_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);color:var(--intergalactic-text-primary, #191b23);margin:0 0 var(--intergalactic-spacing-6x, 24px)0}" /*__inner_css_end__*/, "vw7fj_gg_") /*__reshadow_css_end__*/, {
22
+ "__SError": "___SError_vw7fj_gg_",
23
+ "__SControls": "___SControls_vw7fj_gg_",
24
+ "__SInner": "___SInner_vw7fj_gg_",
25
+ "__SImageWrapper": "___SImageWrapper_vw7fj_gg_",
26
+ "__SImage": "___SImage_vw7fj_gg_",
27
+ "__SWrapper": "___SWrapper_vw7fj_gg_",
28
+ "__STitle": "___STitle_vw7fj_gg_",
29
+ "__SDescription": "___SDescription_vw7fj_gg_"
30
30
  });
31
31
  var getIconPath = function getIconPath(name) {
32
32
  return (0, _illustration.getIllustrationPath)(name);
@@ -14,15 +14,15 @@ import { Box, Flex } from 'intergalactic/flex-box';
14
14
  import createComponent, { Root, Component, sstyled } from 'intergalactic/core';
15
15
  import { getIllustrationPath } from 'intergalactic/illustration';
16
16
  /*__reshadow-styles__:"./style/errors.shadow.css"*/
17
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SError_1l0qu_gg_{padding:var(--intergalactic-spacing-20x, 80px)0;margin:0 auto;max-width:960px}@media (max-width:768px){.___SError_1l0qu_gg_{padding:var(--intergalactic-spacing-20x, 80px) var(--intergalactic-spacing-8x, 32px)}}@media (max-width:320px){.___SError_1l0qu_gg_{padding:var(--intergalactic-spacing-10x, 40px) var(--intergalactic-spacing-5x, 20px) var(--intergalactic-spacing-20x, 80px)}}.___SError_1l0qu_gg_ .___SControls_1l0qu_gg_{display:flex;align-items:center}.___SError_1l0qu_gg_ .___SControls_1l0qu_gg_>:not(:last-child){margin-right:var(--intergalactic-spacing-3x, 12px)}.___SError_1l0qu_gg_ .___SInner_1l0qu_gg_{width:100%;display:flex;justify-content:flex-start;flex-wrap:wrap;align-items:flex-start;box-sizing:border-box}.___SError_1l0qu_gg_ .___SInner_1l0qu_gg_ .___SImageWrapper_1l0qu_gg_,.___SError_1l0qu_gg_ .___SInner_1l0qu_gg_ .___SImage_1l0qu_gg_{width:260px;height:260px}@media (max-width:320px){.___SError_1l0qu_gg_ .___SInner_1l0qu_gg_ .___SImageWrapper_1l0qu_gg_,.___SError_1l0qu_gg_ .___SInner_1l0qu_gg_ .___SImage_1l0qu_gg_{width:200px;height:200px}}.___SError_1l0qu_gg_ .___SInner_1l0qu_gg_ .___SImageWrapper_1l0qu_gg_{margin-right:var(--intergalactic-spacing-10x, 40px)}.___SError_1l0qu_gg_ .___SInner_1l0qu_gg_ .___SWrapper_1l0qu_gg_{flex:1 0 300px;max-width:100%;margin-top:var(--intergalactic-spacing-8x, 32px)}.___SError_1l0qu_gg_ .___SInner_1l0qu_gg_ .___STitle_1l0qu_gg_[data-errors-title]{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%);color:var(--intergalactic-text-primary, #191b23);font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SError_1l0qu_gg_ .___SInner_1l0qu_gg_ .___SDescription_1l0qu_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);color:var(--intergalactic-text-primary, #191b23);margin:0 0 var(--intergalactic-spacing-6x, 24px)0}" /*__inner_css_end__*/, "1l0qu_gg_") /*__reshadow_css_end__*/, {
18
- "__SError": "___SError_1l0qu_gg_",
19
- "__SControls": "___SControls_1l0qu_gg_",
20
- "__SInner": "___SInner_1l0qu_gg_",
21
- "__SImageWrapper": "___SImageWrapper_1l0qu_gg_",
22
- "__SImage": "___SImage_1l0qu_gg_",
23
- "__SWrapper": "___SWrapper_1l0qu_gg_",
24
- "__STitle": "___STitle_1l0qu_gg_",
25
- "__SDescription": "___SDescription_1l0qu_gg_"
17
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SError_vw7fj_gg_{padding:var(--intergalactic-spacing-20x, 80px)0;margin:0 auto;max-width:960px}@media (max-width:768px){.___SError_vw7fj_gg_{padding:var(--intergalactic-spacing-20x, 80px) var(--intergalactic-spacing-8x, 32px)}}@media (max-width:320px){.___SError_vw7fj_gg_{padding:var(--intergalactic-spacing-10x, 40px) var(--intergalactic-spacing-5x, 20px) var(--intergalactic-spacing-20x, 80px)}}.___SError_vw7fj_gg_ .___SControls_vw7fj_gg_{display:flex;align-items:center}.___SError_vw7fj_gg_ .___SControls_vw7fj_gg_>:not(:last-child){margin-right:var(--intergalactic-spacing-3x, 12px)}.___SError_vw7fj_gg_ .___SInner_vw7fj_gg_{width:100%;display:flex;justify-content:flex-start;flex-wrap:wrap;align-items:flex-start;box-sizing:border-box}.___SError_vw7fj_gg_ .___SInner_vw7fj_gg_ .___SImageWrapper_vw7fj_gg_,.___SError_vw7fj_gg_ .___SInner_vw7fj_gg_ .___SImage_vw7fj_gg_{width:260px;height:260px}@media (max-width:320px){.___SError_vw7fj_gg_ .___SInner_vw7fj_gg_ .___SImageWrapper_vw7fj_gg_,.___SError_vw7fj_gg_ .___SInner_vw7fj_gg_ .___SImage_vw7fj_gg_{width:200px;height:200px}}.___SError_vw7fj_gg_ .___SInner_vw7fj_gg_ .___SImageWrapper_vw7fj_gg_{margin-right:var(--intergalactic-spacing-10x, 40px)}.___SError_vw7fj_gg_ .___SInner_vw7fj_gg_ .___SWrapper_vw7fj_gg_{flex:1 0 300px;max-width:100%;margin-top:var(--intergalactic-spacing-8x, 32px)}.___SError_vw7fj_gg_ .___SInner_vw7fj_gg_ .___STitle_vw7fj_gg_[data-errors-title]{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%);color:var(--intergalactic-text-primary, #191b23);font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SError_vw7fj_gg_ .___SInner_vw7fj_gg_ .___SDescription_vw7fj_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);color:var(--intergalactic-text-primary, #191b23);margin:0 0 var(--intergalactic-spacing-6x, 24px)0}" /*__inner_css_end__*/, "vw7fj_gg_") /*__reshadow_css_end__*/, {
18
+ "__SError": "___SError_vw7fj_gg_",
19
+ "__SControls": "___SControls_vw7fj_gg_",
20
+ "__SInner": "___SInner_vw7fj_gg_",
21
+ "__SImageWrapper": "___SImageWrapper_vw7fj_gg_",
22
+ "__SImage": "___SImage_vw7fj_gg_",
23
+ "__SWrapper": "___SWrapper_vw7fj_gg_",
24
+ "__STitle": "___STitle_vw7fj_gg_",
25
+ "__SDescription": "___SDescription_vw7fj_gg_"
26
26
  });
27
27
  export var getIconPath = function getIconPath(name) {
28
28
  return getIllustrationPath(name);
@@ -1 +1 @@
1
- {"name":"intergalactic/errors","description":"Semrush Errors Component","version":"4.44.2-prerelease.2","main":"lib/cjs/index.js","module":"lib/es6/index.js","typings":"lib/types/index.d.ts","sideEffects":false,"author":"UI-kit team <ui-kit-team@semrush.com>","license":"MIT","scripts":{"build":"pnpm semcore-builder --source=js"},"dependencies":{"@semcore/button":"5.40.2-prerelease.2","@semcore/flex-box":"5.39.1-prerelease.2","@semcore/format-text":"4.39.1-prerelease.2","@semcore/illustration":"2.41.0-prerelease.2","@semcore/typography":"5.48.1-prerelease.2","@semcore/utils":"4.44.1-prerelease.2"},"peerDependencies":{"@semcore/core":"^2.37.1-prerelease.2","react":"16.8 - 18","react-dom":"16.8 - 18"},"repository":{"type":"git","url":"https://github.com/semrush/intergalactic.git","directory":"semcore/errors"},"devDependencies":{"@types/react":"18.0.21","@semcore/testing-utils":"1.0.0"}}
1
+ {"name":"intergalactic/errors","description":"Semrush Errors Component","version":"4.44.3-prerelease.0","main":"lib/cjs/index.js","module":"lib/es6/index.js","typings":"lib/types/index.d.ts","sideEffects":false,"author":"UI-kit team <ui-kit-team@semrush.com>","license":"MIT","scripts":{"build":"pnpm semcore-builder --source=js"},"dependencies":{"@semcore/button":"5.40.3-prerelease.0","@semcore/flex-box":"5.39.1","@semcore/format-text":"4.39.1","@semcore/illustration":"2.41.0","@semcore/typography":"5.49.0-prerelease.0","@semcore/utils":"4.44.1"},"peerDependencies":{"@semcore/core":"^2.17.5","react":"16.8 - 18","react-dom":"16.8 - 18"},"repository":{"type":"git","url":"https://github.com/semrush/intergalactic.git","directory":"semcore/errors"},"devDependencies":{"@types/react":"18.0.21","@semcore/testing-utils":"1.0.0"}}
@@ -28,18 +28,18 @@ var _intergalacticDynamicLocales = require("./translations/__intergalactic-dynam
28
28
  var _button = _interopRequireDefault(require("intergalactic/button"));
29
29
  var _excluded = ["styles", "forwardRef", "onVisibleChange", "modifiers"];
30
30
  /*__reshadow-styles__:"./style/feature-popover.shadow.css"*/
31
- var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/"@keyframes showTrigger_1t0w2{0%{opacity:0}to{opacity:1}}@keyframes scaleSizeAndHide_1t0w2{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.___SFeaturePopover_1t0w2_gg_{padding-top:var(--intergalactic-spacing-4x, 16px);padding-right:var(--intergalactic-spacing-10x, 40px);padding-bottom:var(--intergalactic-spacing-4x, 16px);padding-left:var(--intergalactic-spacing-4x, 16px);border-radius:var(--intergalactic-popper-rounded, 6px);box-sizing:border-box;background-color:var(--intergalactic-bg-primary-highlight, #fce081);color:var(--intergalactic-text-primary, #191b23);box-shadow:var(--intergalactic-box-shadow-popper, 0px 1px 12px 0px rgba(25, 27, 35, 0.15));position:relative}.___STrigger_1t0w2_gg_{position:relative}.___SClose_1t0w2_gg_{position:absolute;z-index:1;right:var(--intergalactic-spacing-2x, 8px);top:var(--intergalactic-spacing-2x, 8px)}.___SClose_1t0w2_gg_ .___SAddon_1t0w2_gg_:only-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SSpot_1t0w2_gg_{position:absolute;bottom:calc(-1*var(--intergalactic-spacing-1x, 4px));right:calc(-1*var(--intergalactic-spacing-1x, 4px));animation-name:showTrigger_1t0w2;animation-duration:.2s;animation-timing-function:ease-in;animation-delay:.4s;animation-fill-mode:forwards;width:12px;height:12px}.___SSpot_1t0w2_gg_::after,.___SSpot_1t0w2_gg_::before{content:\"\";position:absolute;top:0;left:0;border-radius:50%;width:12px;height:12px}.___SSpot_1t0w2_gg_::before{transform-origin:50%;animation-name:scaleSizeAndHide_1t0w2;animation-duration:1s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-delay:.5s;background-color:var(--intergalactic-feature-popover-dot-outer-border, #fce081)}.___SSpot_1t0w2_gg_::after{background-color:var(--intergalactic-bg-primary-highlight, #fce081)}@media (prefers-reduced-motion){.___SSpot_1t0w2_gg_,.___SSpot_1t0w2_gg_::before{animation-name:none}}" /*__inner_css_end__*/, "1t0w2_gg_") /*__reshadow_css_end__*/, {
32
- "__SFeaturePopover": "___SFeaturePopover_1t0w2_gg_",
33
- "__STrigger": "___STrigger_1t0w2_gg_",
34
- "@showTrigger": "showTrigger_1t0w2",
35
- "@scaleSizeAndHide": "scaleSizeAndHide_1t0w2",
36
- "__SClose": "___SClose_1t0w2_gg_",
37
- "__SAddon": "___SAddon_1t0w2_gg_",
38
- "__SSpot": "___SSpot_1t0w2_gg_"
31
+ var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/"@keyframes showTrigger_10szi{0%{opacity:0}to{opacity:1}}@keyframes scaleSizeAndHide_10szi{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.___SFeaturePopover_10szi_gg_{padding-top:var(--intergalactic-spacing-4x, 16px);padding-right:var(--intergalactic-spacing-10x, 40px);padding-bottom:var(--intergalactic-spacing-4x, 16px);padding-left:var(--intergalactic-spacing-4x, 16px);border-radius:var(--intergalactic-popper-rounded, 6px);box-sizing:border-box;background-color:var(--intergalactic-bg-primary-highlight, #fce081);color:var(--intergalactic-text-primary, #191b23);box-shadow:var(--intergalactic-box-shadow-popper, 0px 1px 12px 0px rgba(25, 27, 35, 0.15));position:relative}.___STrigger_10szi_gg_{position:relative}.___SClose_10szi_gg_{position:absolute;z-index:1;right:var(--intergalactic-spacing-2x, 8px);top:var(--intergalactic-spacing-2x, 8px)}.___SClose_10szi_gg_ .___SAddon_10szi_gg_:only-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SSpot_10szi_gg_{position:absolute;bottom:calc(-1*var(--intergalactic-spacing-1x, 4px));right:calc(-1*var(--intergalactic-spacing-1x, 4px));animation-name:showTrigger_10szi;animation-duration:.2s;animation-timing-function:ease-in;animation-delay:.4s;animation-fill-mode:forwards;width:12px;height:12px}.___SSpot_10szi_gg_::after,.___SSpot_10szi_gg_::before{content:\"\";position:absolute;top:0;left:0;border-radius:50%;width:12px;height:12px}.___SSpot_10szi_gg_::before{transform-origin:50%;animation-name:scaleSizeAndHide_10szi;animation-duration:1s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-delay:.5s;background-color:var(--intergalactic-feature-popover-dot-outer-border, #fce081)}.___SSpot_10szi_gg_::after{background-color:var(--intergalactic-bg-primary-highlight, #fce081)}@media (prefers-reduced-motion){.___SSpot_10szi_gg_,.___SSpot_10szi_gg_::before{animation-name:none}}" /*__inner_css_end__*/, "10szi_gg_") /*__reshadow_css_end__*/, {
32
+ "__SFeaturePopover": "___SFeaturePopover_10szi_gg_",
33
+ "__STrigger": "___STrigger_10szi_gg_",
34
+ "@showTrigger": "showTrigger_10szi",
35
+ "@scaleSizeAndHide": "scaleSizeAndHide_10szi",
36
+ "__SClose": "___SClose_10szi_gg_",
37
+ "__SAddon": "___SAddon_10szi_gg_",
38
+ "__SSpot": "___SSpot_10szi_gg_"
39
39
  });
40
- var stylePopper = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/"@keyframes enter_l777x{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes exit_l777x{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}" /*__inner_css_end__*/, "l777x_gg_") /*__reshadow_css_end__*/, {
41
- "@enter": "enter_l777x",
42
- "@exit": "exit_l777x"
40
+ var stylePopper = ( /*__reshadow_css_start__*/_core.sstyled.insert( /*__inner_css_start__*/"@keyframes enter_1cgm0{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes exit_1cgm0{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}" /*__inner_css_end__*/, "1cgm0_gg_") /*__reshadow_css_end__*/, {
41
+ "@enter": "enter_1cgm0",
42
+ "@exit": "exit_1cgm0"
43
43
  });
44
44
  var FeaturePopover = /*#__PURE__*/function (_Component) {
45
45
  (0, _inherits2["default"])(FeaturePopover, _Component);
@@ -23,18 +23,18 @@ import i18nEnhance from 'intergalactic/utils/lib/enhances/i18nEnhance';
23
23
  import { localizedMessages } from './translations/__intergalactic-dynamic-locales';
24
24
  import Button from 'intergalactic/button';
25
25
  /*__reshadow-styles__:"./style/feature-popover.shadow.css"*/
26
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/"@keyframes showTrigger_1t0w2{0%{opacity:0}to{opacity:1}}@keyframes scaleSizeAndHide_1t0w2{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.___SFeaturePopover_1t0w2_gg_{padding-top:var(--intergalactic-spacing-4x, 16px);padding-right:var(--intergalactic-spacing-10x, 40px);padding-bottom:var(--intergalactic-spacing-4x, 16px);padding-left:var(--intergalactic-spacing-4x, 16px);border-radius:var(--intergalactic-popper-rounded, 6px);box-sizing:border-box;background-color:var(--intergalactic-bg-primary-highlight, #fce081);color:var(--intergalactic-text-primary, #191b23);box-shadow:var(--intergalactic-box-shadow-popper, 0px 1px 12px 0px rgba(25, 27, 35, 0.15));position:relative}.___STrigger_1t0w2_gg_{position:relative}.___SClose_1t0w2_gg_{position:absolute;z-index:1;right:var(--intergalactic-spacing-2x, 8px);top:var(--intergalactic-spacing-2x, 8px)}.___SClose_1t0w2_gg_ .___SAddon_1t0w2_gg_:only-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SSpot_1t0w2_gg_{position:absolute;bottom:calc(-1*var(--intergalactic-spacing-1x, 4px));right:calc(-1*var(--intergalactic-spacing-1x, 4px));animation-name:showTrigger_1t0w2;animation-duration:.2s;animation-timing-function:ease-in;animation-delay:.4s;animation-fill-mode:forwards;width:12px;height:12px}.___SSpot_1t0w2_gg_::after,.___SSpot_1t0w2_gg_::before{content:\"\";position:absolute;top:0;left:0;border-radius:50%;width:12px;height:12px}.___SSpot_1t0w2_gg_::before{transform-origin:50%;animation-name:scaleSizeAndHide_1t0w2;animation-duration:1s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-delay:.5s;background-color:var(--intergalactic-feature-popover-dot-outer-border, #fce081)}.___SSpot_1t0w2_gg_::after{background-color:var(--intergalactic-bg-primary-highlight, #fce081)}@media (prefers-reduced-motion){.___SSpot_1t0w2_gg_,.___SSpot_1t0w2_gg_::before{animation-name:none}}" /*__inner_css_end__*/, "1t0w2_gg_") /*__reshadow_css_end__*/, {
27
- "__SFeaturePopover": "___SFeaturePopover_1t0w2_gg_",
28
- "__STrigger": "___STrigger_1t0w2_gg_",
29
- "@showTrigger": "showTrigger_1t0w2",
30
- "@scaleSizeAndHide": "scaleSizeAndHide_1t0w2",
31
- "__SClose": "___SClose_1t0w2_gg_",
32
- "__SAddon": "___SAddon_1t0w2_gg_",
33
- "__SSpot": "___SSpot_1t0w2_gg_"
26
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/"@keyframes showTrigger_10szi{0%{opacity:0}to{opacity:1}}@keyframes scaleSizeAndHide_10szi{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(2)}}.___SFeaturePopover_10szi_gg_{padding-top:var(--intergalactic-spacing-4x, 16px);padding-right:var(--intergalactic-spacing-10x, 40px);padding-bottom:var(--intergalactic-spacing-4x, 16px);padding-left:var(--intergalactic-spacing-4x, 16px);border-radius:var(--intergalactic-popper-rounded, 6px);box-sizing:border-box;background-color:var(--intergalactic-bg-primary-highlight, #fce081);color:var(--intergalactic-text-primary, #191b23);box-shadow:var(--intergalactic-box-shadow-popper, 0px 1px 12px 0px rgba(25, 27, 35, 0.15));position:relative}.___STrigger_10szi_gg_{position:relative}.___SClose_10szi_gg_{position:absolute;z-index:1;right:var(--intergalactic-spacing-2x, 8px);top:var(--intergalactic-spacing-2x, 8px)}.___SClose_10szi_gg_ .___SAddon_10szi_gg_:only-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SSpot_10szi_gg_{position:absolute;bottom:calc(-1*var(--intergalactic-spacing-1x, 4px));right:calc(-1*var(--intergalactic-spacing-1x, 4px));animation-name:showTrigger_10szi;animation-duration:.2s;animation-timing-function:ease-in;animation-delay:.4s;animation-fill-mode:forwards;width:12px;height:12px}.___SSpot_10szi_gg_::after,.___SSpot_10szi_gg_::before{content:\"\";position:absolute;top:0;left:0;border-radius:50%;width:12px;height:12px}.___SSpot_10szi_gg_::before{transform-origin:50%;animation-name:scaleSizeAndHide_10szi;animation-duration:1s;animation-iteration-count:infinite;animation-fill-mode:forwards;animation-delay:.5s;background-color:var(--intergalactic-feature-popover-dot-outer-border, #fce081)}.___SSpot_10szi_gg_::after{background-color:var(--intergalactic-bg-primary-highlight, #fce081)}@media (prefers-reduced-motion){.___SSpot_10szi_gg_,.___SSpot_10szi_gg_::before{animation-name:none}}" /*__inner_css_end__*/, "10szi_gg_") /*__reshadow_css_end__*/, {
27
+ "__SFeaturePopover": "___SFeaturePopover_10szi_gg_",
28
+ "__STrigger": "___STrigger_10szi_gg_",
29
+ "@showTrigger": "showTrigger_10szi",
30
+ "@scaleSizeAndHide": "scaleSizeAndHide_10szi",
31
+ "__SClose": "___SClose_10szi_gg_",
32
+ "__SAddon": "___SAddon_10szi_gg_",
33
+ "__SSpot": "___SSpot_10szi_gg_"
34
34
  });
35
- var stylePopper = ( /*__reshadow_css_start__*/sstyled.insert( /*__inner_css_start__*/"@keyframes enter_l777x{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes exit_l777x{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}" /*__inner_css_end__*/, "l777x_gg_") /*__reshadow_css_end__*/, {
36
- "@enter": "enter_l777x",
37
- "@exit": "exit_l777x"
35
+ var stylePopper = ( /*__reshadow_css_start__*/sstyled.insert( /*__inner_css_start__*/"@keyframes enter_1cgm0{0%{opacity:0;transform:translateX(-10px)}to{opacity:1;transform:translateX(0)}}@keyframes exit_1cgm0{0%{opacity:1;transform:translateX(0)}to{opacity:0;transform:translateX(-10px)}}" /*__inner_css_end__*/, "1cgm0_gg_") /*__reshadow_css_end__*/, {
36
+ "@enter": "enter_1cgm0",
37
+ "@exit": "exit_1cgm0"
38
38
  });
39
39
  var FeaturePopover = /*#__PURE__*/function (_Component) {
40
40
  _inherits(FeaturePopover, _Component);
@@ -1 +1 @@
1
- {"name":"intergalactic/feature-popover","description":"Semrush FeaturePopover Component","version":"4.50.1-prerelease.2","main":"lib/cjs/index.js","module":"lib/es6/index.js","typings":"lib/types/index.d.ts","sideEffects":false,"author":"UI-kit team <ui-kit-team@semrush.com>","license":"MIT","scripts":{"build":"pnpm semcore-builder --source=js"},"dependencies":{"@semcore/utils":"4.44.1-prerelease.2","@semcore/flex-box":"5.39.1-prerelease.2","@semcore/popper":"5.45.1-prerelease.2","@semcore/icon":"4.53.1-prerelease.2","@semcore/animation":"2.39.1-prerelease.2"},"peerDependencies":{"@semcore/core":"^2.37.1-prerelease.2","react":"16.8 - 18","react-dom":"16.8 - 18"},"repository":{"type":"git","url":"https://github.com/semrush/intergalactic.git","directory":"semcore/feature-popover"},"devDependencies":{"@types/react":"18.0.21","@semcore/testing-utils":"1.0.0","@semcore/button":"*","@semcore/typography":"*","@semcore/dropdown-menu":"*"}}
1
+ {"name":"intergalactic/feature-popover","description":"Semrush FeaturePopover Component","version":"4.51.0-prerelease.0","main":"lib/cjs/index.js","module":"lib/es6/index.js","typings":"lib/types/index.d.ts","sideEffects":false,"author":"UI-kit team <ui-kit-team@semrush.com>","license":"MIT","scripts":{"build":"pnpm semcore-builder --source=js"},"dependencies":{"@semcore/utils":"4.44.1","@semcore/flex-box":"5.39.1","@semcore/popper":"5.45.1","@semcore/icon":"4.55.0-prerelease.0","@semcore/animation":"2.39.1"},"peerDependencies":{"@semcore/core":"^2.17.5","react":"16.8 - 18","react-dom":"16.8 - 18"},"repository":{"type":"git","url":"https://github.com/semrush/intergalactic.git","directory":"semcore/feature-popover"},"devDependencies":{"@types/react":"18.0.21","@semcore/testing-utils":"1.0.0","@semcore/button":"*","@semcore/typography":"*","@semcore/dropdown-menu":"*"}}
@@ -27,6 +27,10 @@ declare class FeedbackRatingRoot extends Component<FeedbackRatingProps, {}, Stat
27
27
  submitButton: string;
28
28
  successMessage: string;
29
29
  errorMessage: string;
30
+ "FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": string;
31
+ "FeedbackRating.SliderRating.aria-valuetext.readonly": string;
32
+ "FeedbackRating.SliderRating.aria-valuetext.empty": string;
33
+ "FeedbackRating.SliderRating.aria-valuetext": string;
30
34
  };
31
35
  en: {
32
36
  leaveFeedback: string;
@@ -35,6 +39,10 @@ declare class FeedbackRatingRoot extends Component<FeedbackRatingProps, {}, Stat
35
39
  submitButton: string;
36
40
  successMessage: string;
37
41
  errorMessage: string;
42
+ "FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": string;
43
+ "FeedbackRating.SliderRating.aria-valuetext.readonly": string;
44
+ "FeedbackRating.SliderRating.aria-valuetext.empty": string;
45
+ "FeedbackRating.SliderRating.aria-valuetext": string;
38
46
  };
39
47
  es: {
40
48
  leaveFeedback: string;
@@ -43,6 +51,10 @@ declare class FeedbackRatingRoot extends Component<FeedbackRatingProps, {}, Stat
43
51
  submitButton: string;
44
52
  successMessage: string;
45
53
  errorMessage: string;
54
+ "FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": string;
55
+ "FeedbackRating.SliderRating.aria-valuetext.readonly": string;
56
+ "FeedbackRating.SliderRating.aria-valuetext.empty": string;
57
+ "FeedbackRating.SliderRating.aria-valuetext": string;
46
58
  };
47
59
  fr: {
48
60
  leaveFeedback: string;
@@ -51,6 +63,10 @@ declare class FeedbackRatingRoot extends Component<FeedbackRatingProps, {}, Stat
51
63
  submitButton: string;
52
64
  successMessage: string;
53
65
  errorMessage: string;
66
+ "FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": string;
67
+ "FeedbackRating.SliderRating.aria-valuetext.readonly": string;
68
+ "FeedbackRating.SliderRating.aria-valuetext.empty": string;
69
+ "FeedbackRating.SliderRating.aria-valuetext": string;
54
70
  };
55
71
  it: {
56
72
  leaveFeedback: string;
@@ -59,6 +75,10 @@ declare class FeedbackRatingRoot extends Component<FeedbackRatingProps, {}, Stat
59
75
  submitButton: string;
60
76
  successMessage: string;
61
77
  errorMessage: string;
78
+ "FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": string;
79
+ "FeedbackRating.SliderRating.aria-valuetext.readonly": string;
80
+ "FeedbackRating.SliderRating.aria-valuetext.empty": string;
81
+ "FeedbackRating.SliderRating.aria-valuetext": string;
62
82
  };
63
83
  ja: {
64
84
  leaveFeedback: string;
@@ -67,6 +87,10 @@ declare class FeedbackRatingRoot extends Component<FeedbackRatingProps, {}, Stat
67
87
  submitButton: string;
68
88
  successMessage: string;
69
89
  errorMessage: string;
90
+ "FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": string;
91
+ "FeedbackRating.SliderRating.aria-valuetext.readonly": string;
92
+ "FeedbackRating.SliderRating.aria-valuetext.empty": string;
93
+ "FeedbackRating.SliderRating.aria-valuetext": string;
70
94
  };
71
95
  ko: {
72
96
  leaveFeedback: string;
@@ -75,6 +99,10 @@ declare class FeedbackRatingRoot extends Component<FeedbackRatingProps, {}, Stat
75
99
  submitButton: string;
76
100
  successMessage: string;
77
101
  errorMessage: string;
102
+ "FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": string;
103
+ "FeedbackRating.SliderRating.aria-valuetext.readonly": string;
104
+ "FeedbackRating.SliderRating.aria-valuetext.empty": string;
105
+ "FeedbackRating.SliderRating.aria-valuetext": string;
78
106
  };
79
107
  nl: {
80
108
  leaveFeedback: string;
@@ -83,6 +111,10 @@ declare class FeedbackRatingRoot extends Component<FeedbackRatingProps, {}, Stat
83
111
  submitButton: string;
84
112
  successMessage: string;
85
113
  errorMessage: string;
114
+ "FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": string;
115
+ "FeedbackRating.SliderRating.aria-valuetext.readonly": string;
116
+ "FeedbackRating.SliderRating.aria-valuetext.empty": string;
117
+ "FeedbackRating.SliderRating.aria-valuetext": string;
86
118
  };
87
119
  pt: {
88
120
  leaveFeedback: string;
@@ -91,6 +123,10 @@ declare class FeedbackRatingRoot extends Component<FeedbackRatingProps, {}, Stat
91
123
  submitButton: string;
92
124
  successMessage: string;
93
125
  errorMessage: string;
126
+ "FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": string;
127
+ "FeedbackRating.SliderRating.aria-valuetext.readonly": string;
128
+ "FeedbackRating.SliderRating.aria-valuetext.empty": string;
129
+ "FeedbackRating.SliderRating.aria-valuetext": string;
94
130
  };
95
131
  tr: {
96
132
  leaveFeedback: string;
@@ -99,6 +135,10 @@ declare class FeedbackRatingRoot extends Component<FeedbackRatingProps, {}, Stat
99
135
  submitButton: string;
100
136
  successMessage: string;
101
137
  errorMessage: string;
138
+ "FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": string;
139
+ "FeedbackRating.SliderRating.aria-valuetext.readonly": string;
140
+ "FeedbackRating.SliderRating.aria-valuetext.empty": string;
141
+ "FeedbackRating.SliderRating.aria-valuetext": string;
102
142
  };
103
143
  vi: {
104
144
  leaveFeedback: string;
@@ -107,6 +147,10 @@ declare class FeedbackRatingRoot extends Component<FeedbackRatingProps, {}, Stat
107
147
  submitButton: string;
108
148
  successMessage: string;
109
149
  errorMessage: string;
150
+ "FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": string;
151
+ "FeedbackRating.SliderRating.aria-valuetext.readonly": string;
152
+ "FeedbackRating.SliderRating.aria-valuetext.empty": string;
153
+ "FeedbackRating.SliderRating.aria-valuetext": string;
110
154
  };
111
155
  zh: {
112
156
  leaveFeedback: string;
@@ -115,6 +159,10 @@ declare class FeedbackRatingRoot extends Component<FeedbackRatingProps, {}, Stat
115
159
  submitButton: string;
116
160
  successMessage: string;
117
161
  errorMessage: string;
162
+ "FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": string;
163
+ "FeedbackRating.SliderRating.aria-valuetext.readonly": string;
164
+ "FeedbackRating.SliderRating.aria-valuetext.empty": string;
165
+ "FeedbackRating.SliderRating.aria-valuetext": string;
118
166
  };
119
167
  pl: {
120
168
  leaveFeedback: string;
@@ -123,6 +171,10 @@ declare class FeedbackRatingRoot extends Component<FeedbackRatingProps, {}, Stat
123
171
  submitButton: string;
124
172
  successMessage: string;
125
173
  errorMessage: string;
174
+ "FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": string;
175
+ "FeedbackRating.SliderRating.aria-valuetext.readonly": string;
176
+ "FeedbackRating.SliderRating.aria-valuetext.empty": string;
177
+ "FeedbackRating.SliderRating.aria-valuetext": string;
126
178
  };
127
179
  sv: {
128
180
  leaveFeedback: string;
@@ -131,6 +183,10 @@ declare class FeedbackRatingRoot extends Component<FeedbackRatingProps, {}, Stat
131
183
  submitButton: string;
132
184
  successMessage: string;
133
185
  errorMessage: string;
186
+ "FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber": string;
187
+ "FeedbackRating.SliderRating.aria-valuetext.readonly": string;
188
+ "FeedbackRating.SliderRating.aria-valuetext.empty": string;
189
+ "FeedbackRating.SliderRating.aria-valuetext": string;
134
190
  };
135
191
  };
136
192
  locale: string;
@@ -149,11 +205,12 @@ declare class FeedbackRatingRoot extends Component<FeedbackRatingProps, {}, Stat
149
205
  getItemProps(): {
150
206
  validateOnBlur: boolean | undefined;
151
207
  };
208
+ getNoticeTextId(): string;
152
209
  handleChangeRating: (rating: number) => void;
153
210
  handelCloseModal: () => void;
154
211
  handleChange: (fn: (e: React.SyntheticEvent) => void) => (value: any, e: React.SyntheticEvent) => void;
155
212
  componentDidUpdate(prevProps: Readonly<FeedbackRatingProps>): void;
156
- renderCheckbox: (config: FormConfigItem) => JSX.Element;
213
+ renderCheckbox: (config: FormConfigItem, index: number) => JSX.Element;
157
214
  renderTextField: (config: FormConfigItem) => JSX.Element;
158
215
  render(): React.ReactNode;
159
216
  }
@@ -4,7 +4,7 @@ import { FieldProps } from 'react-final-form';
4
4
  import { Intergalactic } from 'intergalactic/core';
5
5
  import Button from 'intergalactic/button';
6
6
  import { Text } from 'intergalactic/typography';
7
- import Checkbox from 'intergalactic/checkbox';
7
+ import Checkbox, { CheckboxProps } from 'intergalactic/checkbox';
8
8
  export type FormConfigItem = {
9
9
  key: string;
10
10
  label: React.ReactNode;
@@ -48,10 +48,14 @@ export type FeedbackRatingItemProps = FieldProps<any, any> & {
48
48
  */
49
49
  tooltipProps?: string[];
50
50
  };
51
+ export type FeedbackRatingCheckboxProps = Omit<CheckboxProps, 'label'> & {
52
+ focused: boolean;
53
+ label: React.ReactNode;
54
+ };
51
55
  declare const FeedbackRatingType: Intergalactic.Component<'form', FeedbackRatingProps> & {
52
56
  Item: Intergalactic.Component<'div', FeedbackRatingItemProps>;
53
57
  Submit: typeof Button;
54
- Checkbox: typeof Checkbox;
58
+ Checkbox: Intergalactic.Component<typeof Checkbox, FeedbackRatingCheckboxProps>;
55
59
  Header: typeof Text;
56
60
  };
57
61
  export { FeedbackRatingType };