@semcore/typography 17.0.0-prerelease.30 → 17.0.0-prerelease.31

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.
package/CHANGELOG.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
- ## [17.0.0] - 2026-03-09
5
+ ## [17.0.0] - 2026-03-27
6
6
 
7
7
  ### BREAK
8
8
 
package/lib/cjs/Text.js CHANGED
@@ -11,49 +11,49 @@ var _baseComponents = require("@semcore/base-components");
11
11
  var _resolveColorEnhance = _interopRequireDefault(require("@semcore/core/lib/utils/enhances/resolveColorEnhance"));
12
12
  var _react = _interopRequireDefault(require("react"));
13
13
  /*!__reshadow-styles__:"./style/text.shadow.css"*/
14
- const styles = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SText_1hmt9_gg_{padding:0;margin:0}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ abbr{color:var(--intergalactic-text-secondary, #6c6e79);-webkit-text-decoration:underline dashed var(--intergalactic-text-secondary, #6c6e79);text-decoration:underline dashed var(--intergalactic-text-secondary, #6c6e79)}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ abbr:active,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ abbr:focus{outline:0;color:var(--intergalactic-text-hint-hover-active, #484a54);-webkit-text-decoration:underline dashed var(--intergalactic-text-hint-hover-active, #484a54);text-decoration:underline dashed var(--intergalactic-text-hint-hover-active, #484a54)}@media (hover:hover){.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ abbr:hover{outline:0;color:var(--intergalactic-text-hint-hover-active, #484a54);-webkit-text-decoration:underline dashed var(--intergalactic-text-hint-hover-active, #484a54);text-decoration:underline dashed var(--intergalactic-text-hint-hover-active, #484a54)}}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ a{display:inline;background:0 0;outline:0;-webkit-text-decoration:none;text-decoration:none;color:var(--intergalactic-text-link, #006dca);border-bottom-width:1px;border-bottom-style:solid;border-color:transparent}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ a:active{outline:0;-webkit-text-decoration:none;text-decoration:none;color:var(--intergalactic-text-link-hover-active, #044792);border-color:var(--intergalactic-text-link-hover-active, #044792)}@media (hover:hover){.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ a:hover{outline:0;-webkit-text-decoration:none;text-decoration:none;color:var(--intergalactic-text-link-hover-active, #044792);border-color:var(--intergalactic-text-link-hover-active, #044792)}}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ a:focus{outline-color:var(--intergalactic-keyboard-focus-outline, #008ff8);outline-style:solid;outline-width:2px;outline-offset:2px;transition-duration:calc(var(--intergalactic-duration-extra-fast, 100)*1ms);transition-timing-function:ease-in-out;transition-property:outline-color,outline-width,outline-offset}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ code,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ pre{font-family:Consolas,\"Roboto Mono\",Menlo,Courier,monospace}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ blockquote{position:relative;padding-left:51px;font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%);font-style:italic}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ blockquote:before{content:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNyIgaGVpZ2h0PSIxOSIgdmlld0JveD0iMCAwIDI3IDE5IiBmaWxsPSJub25lIj4KPHBhdGggZD0iTTguODI0MjIgMC45NDcyNjZWMi4zMDg1OUM2Ljg3NjMgMy4zMjY4MiA1LjQ4MTc3IDQuMzg5MzIgNC42NDA2MiA1LjQ5NjA5QzMuNzk5NDggNi42MDI4NiAzLjM3ODkxIDcuODA5MjQgMy4zNzg5MSA5LjExNTIzQzMuMzc4OT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MyMC41NTYgMTEuMjA3IDIwLjkyMTIgMTEuMTE4NSAyMS40MDgyIDEwLjk0MTRDMjEuODk1MiAxMC43NjQzIDIyLjM4MjIgMTAuNjc1OCAyMi44NjkxIDEwLjY3NThDMjMuNzc2NyAxMC42NzU4IDI0LjU2MjUgMTEuMDA3OCAyNS4yMjY2IDExLjY3MTlDMjUuOTEyOCAxMi4zMTM4IDI2LjI1NTkgMTMuMTEwNyAyNi4yNTU5IDE0LjA2MjVDMjYuMjU1OSAxNS4xNDcxIDI1LjgyNDIgMTYuMDg3OSAyNC45NjA5IDE2Ljg4NDhDMjQuMTE5OCAxNy42ODE2IDIzLjA3OTQgMTguMDgwMSAyMS44Mzk4IDE4LjA4MDFDMjAuMzc4OSAxOC4wODAxIDE5LjA2MTggMTcuNDQ5MiAxNy44ODg3IDE2LjE4NzVDMTYuNzE1NSAxNC45MjU4IDE2LjEyODkgMTMuMzU0MiAxNi4xMjg5IDExLjQ3MjdDMTYuMTI4OSA5LjE0ODQ0IDE2Ljg3MDQgNy4wMzQ1MSAxOC4zNTM1IDUuMTMwODZDMTkuODM2NiAzLjIwNTA4IDIxLjkzOTUgMS44NDM3NSAyNC42NjIxIDEuMDQ2ODhaIiBmaWxsPSIjQTlBQkI2Ii8+Cjwvc3ZnPg==);display:inline-block;position:absolute;left:0;color:var(--intergalactic-icon-secondary-neutral, #a9abb6);font-family:Georgia,Times,\"Times New Roman\",serif}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ blockquote cite{display:block;font-style:normal;margin-top:var(--intergalactic-spacing-4x, 16px);color:var(--intergalactic-text-secondary, #6c6e79);font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]),.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]){margin:var(--intergalactic-spacing-2x, 8px)0;padding:0;list-style:none;position:relative}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]) li:not(.___SText_1hmt9_gg_):before,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]) li:not(.___SText_1hmt9_gg_):before{position:absolute;left:0;color:var(--intergalactic-text-secondary, #6c6e79)}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]) li:not(.___SText_1hmt9_gg_)+li:not(.___SText_1hmt9_gg_),.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]) li:not(.___SText_1hmt9_gg_)+li:not(.___SText_1hmt9_gg_){margin:var(--intergalactic-spacing-2x, 8px)0 0 0}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]){counter-reset:item 0}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]) li:not(.___SText_1hmt9_gg_):before{counter-increment:item;content:counters(item,\".\")}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]) li:not(.___SText_1hmt9_gg_):before{content:\"\";background-color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]):has(+p),.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]):has(+p){margin-bottom:var(--intergalactic-spacing-4x, 16px)}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h1{font-size:var(--intergalactic-fs-800, 48px);line-height:var(--intergalactic-lh-800, 117%);font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-6x, 24px)0}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h1:only-child,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h2:only-child,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h3:only-child,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h4:only-child,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h5:only-child,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h6:only-child{margin-bottom:0}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h2{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%);font-weight:var(--intergalactic-semi-bold, 600)}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h3{font-size:var(--intergalactic-fs-600, 32px);line-height:var(--intergalactic-lh-600, 125%);font-weight:var(--intergalactic-semi-bold, 600)}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h4{font-size:var(--intergalactic-fs-500, 24px);line-height:var(--intergalactic-lh-500, 117%);font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-3x, 12px)0}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h5{font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%);font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-2x, 8px)0}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h6{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700);margin:0 0 var(--intergalactic-spacing-1x, 4px)0}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h1 small,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h2 small,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h3 small,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h4 small,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h5 small,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h6 small{color:var(--intergalactic-text-secondary, #6c6e79);font-weight:300;font-size:100%}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ li,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ p{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h2,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h3,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ p{margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ p:last-child,.___SText_1hmt9_gg_._size_100_1hmt9_gg_.__formatTags_1hmt9_gg_ p:last-child,.___SText_1hmt9_gg_._size_200_1hmt9_gg_.__formatTags_1hmt9_gg_ p:last-child,.___SText_1hmt9_gg_._size_300_1hmt9_gg_.__formatTags_1hmt9_gg_ p:last-child{margin-bottom:0}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ol ol li,.___SText_1hmt9_gg_._size_100_1hmt9_gg_.__formatTags_1hmt9_gg_ ol ol li{padding-left:calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px))}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ol ol ol li,.___SText_1hmt9_gg_._size_100_1hmt9_gg_.__formatTags_1hmt9_gg_ ol ol ol li,.___SText_1hmt9_gg_._size_200_1hmt9_gg_.__formatTags_1hmt9_gg_ ol ol ol li,.___SText_1hmt9_gg_._size_300_1hmt9_gg_.__formatTags_1hmt9_gg_ ol ol ol li{padding-left:calc(var(--intergalactic-spacing-8x, 32px) + var(--intergalactic-spacing-1x, 4px) + var(--intergalactic-spacing-05x, 2px))}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ul li:before{width:4px;height:4px;border-radius:50%;margin-top:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-left:var(--intergalactic-spacing-05x, 2px)}.___SText_1hmt9_gg_.__ellipsis_1hmt9_gg_{overflow:hidden;text-overflow:ellipsis;white-space:pre;display:inline-block}.___SText_1hmt9_gg_.__ellipsis_1hmt9_gg_._trim_end_1hmt9_gg_.__isEllipsized_1hmt9_gg_::after{content:\"\";display:block}.___SText_1hmt9_gg_.__ellipsis_1hmt9_gg_.__maxLine_1hmt9_gg_{-webkit-line-clamp:var(--maxLine_1hmt9);display:-webkit-box;-webkit-box-orient:vertical;white-space:normal;word-wrap:break-word}.___SText_1hmt9_gg_.__ellipsis_1hmt9_gg_._trim_middle_1hmt9_gg_{text-overflow:initial}.___SText_1hmt9_gg_._size_100_1hmt9_gg_,.___SText_1hmt9_gg_._size_100_1hmt9_gg_.__formatTags_1hmt9_gg_ li,.___SText_1hmt9_gg_._size_100_1hmt9_gg_.__formatTags_1hmt9_gg_ p{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%)}.___SText_1hmt9_gg_._size_100_1hmt9_gg_.__formatTags_1hmt9_gg_ p{margin:0 0 calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_1hmt9_gg_._size_100_1hmt9_gg_.__formatTags_1hmt9_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_1hmt9_gg_._size_100_1hmt9_gg_.__formatTags_1hmt9_gg_ ul li:before{width:3px;height:3px;border-radius:50%;margin-top:var(--intergalactic-spacing-2x, 8px);margin-left:var(--intergalactic-spacing-05x, 2px)}.___SText_1hmt9_gg_._size_200_1hmt9_gg_,.___SText_1hmt9_gg_._size_200_1hmt9_gg_.__formatTags_1hmt9_gg_ li,.___SText_1hmt9_gg_._size_200_1hmt9_gg_.__formatTags_1hmt9_gg_ p{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SText_1hmt9_gg_._size_200_1hmt9_gg_.__formatTags_1hmt9_gg_ p{margin:0 0 var(--intergalactic-spacing-3x, 12px)0}.___SText_1hmt9_gg_._size_200_1hmt9_gg_.__formatTags_1hmt9_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_1hmt9_gg_._size_200_1hmt9_gg_.__formatTags_1hmt9_gg_ ol ol li{padding-left:calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px))}.___SText_1hmt9_gg_._size_200_1hmt9_gg_.__formatTags_1hmt9_gg_ ul li:before{width:4px;height:4px;border-radius:50%;margin-top:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-left:var(--intergalactic-spacing-05x, 2px)}.___SText_1hmt9_gg_._size_300_1hmt9_gg_,.___SText_1hmt9_gg_._size_300_1hmt9_gg_.__formatTags_1hmt9_gg_ li,.___SText_1hmt9_gg_._size_300_1hmt9_gg_.__formatTags_1hmt9_gg_ p{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SText_1hmt9_gg_._size_300_1hmt9_gg_.__formatTags_1hmt9_gg_ p{margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SText_1hmt9_gg_._size_300_1hmt9_gg_.__formatTags_1hmt9_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_1hmt9_gg_._size_300_1hmt9_gg_.__formatTags_1hmt9_gg_ ol ol li{padding-left:calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px))}.___SText_1hmt9_gg_._size_300_1hmt9_gg_.__formatTags_1hmt9_gg_ ul li:before{width:5px;height:5px;border-radius:50%;margin-top:calc(var(--intergalactic-spacing-2x, 8px) + var(--intergalactic-spacing-05x, 2px));margin-left:var(--intergalactic-spacing-05x, 2px)}.___SText_1hmt9_gg_._size_400_1hmt9_gg_{font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%)}.___SText_1hmt9_gg_._size_500_1hmt9_gg_{font-size:var(--intergalactic-fs-500, 24px);line-height:var(--intergalactic-lh-500, 117%)}.___SText_1hmt9_gg_._size_600_1hmt9_gg_{font-size:var(--intergalactic-fs-600, 32px);line-height:var(--intergalactic-lh-600, 125%)}.___SText_1hmt9_gg_._size_700_1hmt9_gg_{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%)}.___SText_1hmt9_gg_._size_800_1hmt9_gg_{font-size:var(--intergalactic-fs-800, 48px);line-height:var(--intergalactic-lh-800, 117%)}.___SText_1hmt9_gg_.__noWrap_1hmt9_gg_{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.___SText_1hmt9_gg_.__medium_1hmt9_gg_{font-weight:var(--intergalactic-medium, 500)}.___SText_1hmt9_gg_.__semibold_1hmt9_gg_{font-weight:var(--intergalactic-semi-bold, 600)}.___SText_1hmt9_gg_.__bold_1hmt9_gg_{font-weight:var(--intergalactic-bold, 700)}.___SText_1hmt9_gg_.__italic_1hmt9_gg_{font-style:italic}.___SText_1hmt9_gg_.__monospace_1hmt9_gg_{font-family:Consolas,\"Roboto Mono\",Menlo,Courier,monospace}.___SText_1hmt9_gg_.__uppercase_1hmt9_gg_{text-transform:uppercase}.___SText_1hmt9_gg_.__lowercase_1hmt9_gg_{text-transform:lowercase}.___SText_1hmt9_gg_.__capitalize_1hmt9_gg_{text-transform:capitalize}.___SText_1hmt9_gg_.__decoration_1hmt9_gg_{-webkit-text-decoration:var(--decoration_1hmt9);text-decoration:var(--decoration_1hmt9)}.___SText_1hmt9_gg_.__color_1hmt9_gg_{color:var(--color_1hmt9)}.___SText_1hmt9_gg_.__fontSize_1hmt9_gg_{font-size:var(--fontSize_1hmt9)}.___SText_1hmt9_gg_.__lineHeight_1hmt9_gg_{line-height:var(--lineHeight_1hmt9)}.___SText_1hmt9_gg_.__fontWeight_1hmt9_gg_{font-weight:var(--fontWeight_1hmt9)}.___SText_1hmt9_gg_.__textAlign_1hmt9_gg_{text-align:var(--textAlign_1hmt9)}.___SText_1hmt9_gg_._use_primary_1hmt9_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SText_1hmt9_gg_._use_secondary_1hmt9_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___SText_1hmt9_gg_.__disabled_1hmt9_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3)}@media (prefers-reduced-motion){.___SText_1hmt9_gg_ a{transition:none}}", /*__inner_css_end__*/"1hmt9_gg_"),
14
+ const styles = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SText_s4dem_gg_{padding:0;margin:0}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ abbr{color:var(--intergalactic-text-secondary, #6c6e79);-webkit-text-decoration:underline dashed var(--intergalactic-text-secondary, #6c6e79);text-decoration:underline dashed var(--intergalactic-text-secondary, #6c6e79)}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ abbr:active,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ abbr:focus{outline:0;color:var(--intergalactic-text-hint-hover-active, #484a54);-webkit-text-decoration:underline dashed var(--intergalactic-text-hint-hover-active, #484a54);text-decoration:underline dashed var(--intergalactic-text-hint-hover-active, #484a54)}@media (hover:hover){.___SText_s4dem_gg_.__formatTags_s4dem_gg_ abbr:hover{outline:0;color:var(--intergalactic-text-hint-hover-active, #484a54);-webkit-text-decoration:underline dashed var(--intergalactic-text-hint-hover-active, #484a54);text-decoration:underline dashed var(--intergalactic-text-hint-hover-active, #484a54)}}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ a{display:inline;background:0 0;outline:0;-webkit-text-decoration:none;text-decoration:none;color:var(--intergalactic-text-link, #006dca);border-bottom-width:1px;border-bottom-style:solid;border-color:transparent}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ a:active{outline:0;-webkit-text-decoration:none;text-decoration:none;color:var(--intergalactic-text-link-hover-active, #044792);border-color:var(--intergalactic-text-link-hover-active, #044792)}@media (hover:hover){.___SText_s4dem_gg_.__formatTags_s4dem_gg_ a:hover{outline:0;-webkit-text-decoration:none;text-decoration:none;color:var(--intergalactic-text-link-hover-active, #044792);border-color:var(--intergalactic-text-link-hover-active, #044792)}}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ a:focus{outline-color:var(--intergalactic-keyboard-focus-outline, #008ff8);outline-style:solid;outline-width:2px;outline-offset:2px;transition-duration:calc(var(--intergalactic-duration-extra-fast, 100)*1ms);transition-timing-function:ease-in-out;transition-property:outline-color,outline-width,outline-offset}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ code,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ pre{font-family:Consolas,\"Roboto Mono\",Menlo,Courier,monospace}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ blockquote{position:relative;padding-left:51px;font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%);font-style:italic}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ blockquote:before{content:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNyIgaGVpZ2h0PSIxOSIgdmlld0JveD0iMCAwIDI3IDE5IiBmaWxsPSJub25lIj4KPHBhdGggZD0iTTguODI0MjIgMC45NDcyNjZWMi4zMDg1OUM2Ljg3NjMgMy4zMjY4MiA1LjQ4MTc3IDQuMzg5MzIgNC42NDA2MiA1LjQ5NjA5QzMuNzk5NDggNi42MDI4NiAzLjM3ODkxIDcuODA5MjQgMy4zNzg5MSA5LjExNTIzQzMuMzc4OTEgOS44ODk5NyAzLjQ4OTU4IDEwLjQyMTIgMy43MTA5NCAxMC43MDlDMy45MTAxNiAxMS4wMTg5IDQuMTUzNjUgMTEuMTczOCA0LjQ0MTQxIDExLjE3MzhDNC43MjkxNyAxMS4xNzM4IDUuMTE2NTQgMTEuMDk2NCA1Lj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OCAyNS4yMjY2IDExLjY3MTlDMjUuOTEyOCAxMi4zMTM4IDI2LjI1NTkgMTMuMTEwNyAyNi4yNTU5IDE0LjA2MjVDMjYuMjU1OSAxNS4xNDcxIDI1LjgyNDIgMTYuMDg3OSAyNC45NjA5IDE2Ljg4NDhDMjQuMTE5OCAxNy42ODE2IDIzLjA3OTQgMTguMDgwMSAyMS44Mzk4IDE4LjA4MDFDMjAuMzc4OSAxOC4wODAxIDE5LjA2MTggMTcuNDQ5MiAxNy44ODg3IDE2LjE4NzVDMTYuNzE1NSAxNC45MjU4IDE2LjEyODkgMTMuMzU0MiAxNi4xMjg5IDExLjQ3MjdDMTYuMTI4OSA5LjE0ODQ0IDE2Ljg3MDQgNy4wMzQ1MSAxOC4zNTM1IDUuMTMwODZDMTkuODM2NiAzLjIwNTA4IDIxLjkzOTUgMS44NDM3NSAyNC42NjIxIDEuMDQ2ODhaIiBmaWxsPSIjQTlBQkI2Ii8+Cjwvc3ZnPg==);display:inline-block;position:absolute;left:0;color:var(--intergalactic-icon-secondary-neutral, #a9abb6);font-family:Georgia,Times,\"Times New Roman\",serif}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ blockquote cite{display:block;font-style:normal;margin-top:var(--intergalactic-spacing-4x, 16px);color:var(--intergalactic-text-secondary, #6c6e79);font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]),.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]){margin:var(--intergalactic-spacing-2x, 8px)0;padding:0;list-style:none;position:relative}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]) li:not(.___SText_s4dem_gg_):before,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]) li:not(.___SText_s4dem_gg_):before{position:absolute;left:0;color:var(--intergalactic-text-secondary, #6c6e79)}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]) li:not(.___SText_s4dem_gg_)+li:not(.___SText_s4dem_gg_),.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]) li:not(.___SText_s4dem_gg_)+li:not(.___SText_s4dem_gg_){margin:var(--intergalactic-spacing-2x, 8px)0 0 0}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]){counter-reset:item 0}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]) li:not(.___SText_s4dem_gg_):before{counter-increment:item;content:counters(item,\".\")}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]) li:not(.___SText_s4dem_gg_):before{content:\"\";background-color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]):has(+p),.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]):has(+p){margin-bottom:var(--intergalactic-spacing-4x, 16px)}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h1{font-size:var(--intergalactic-fs-800, 48px);line-height:var(--intergalactic-lh-800, 117%);font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-6x, 24px)0}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h1:only-child,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h2:only-child,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h3:only-child,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h4:only-child,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h5:only-child,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h6:only-child{margin-bottom:0}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h2{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%);font-weight:var(--intergalactic-semi-bold, 600)}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h3{font-size:var(--intergalactic-fs-600, 32px);line-height:var(--intergalactic-lh-600, 125%);font-weight:var(--intergalactic-semi-bold, 600)}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h4{font-size:var(--intergalactic-fs-500, 24px);line-height:var(--intergalactic-lh-500, 117%);font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-3x, 12px)0}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h5{font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%);font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-2x, 8px)0}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h6{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700);margin:0 0 var(--intergalactic-spacing-1x, 4px)0}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h1 small,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h2 small,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h3 small,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h4 small,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h5 small,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h6 small{color:var(--intergalactic-text-secondary, #6c6e79);font-weight:300;font-size:100%}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ li,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ p{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h2,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h3,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ p{margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ p:last-child,.___SText_s4dem_gg_._size_100_s4dem_gg_.__formatTags_s4dem_gg_ p:last-child,.___SText_s4dem_gg_._size_200_s4dem_gg_.__formatTags_s4dem_gg_ p:last-child,.___SText_s4dem_gg_._size_300_s4dem_gg_.__formatTags_s4dem_gg_ p:last-child{margin-bottom:0}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ol ol li,.___SText_s4dem_gg_._size_100_s4dem_gg_.__formatTags_s4dem_gg_ ol ol li{padding-left:calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px))}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ol ol ol li,.___SText_s4dem_gg_._size_100_s4dem_gg_.__formatTags_s4dem_gg_ ol ol ol li,.___SText_s4dem_gg_._size_200_s4dem_gg_.__formatTags_s4dem_gg_ ol ol ol li,.___SText_s4dem_gg_._size_300_s4dem_gg_.__formatTags_s4dem_gg_ ol ol ol li{padding-left:calc(var(--intergalactic-spacing-8x, 32px) + var(--intergalactic-spacing-1x, 4px) + var(--intergalactic-spacing-05x, 2px))}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ul li:before{width:4px;height:4px;border-radius:50%;margin-top:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-left:var(--intergalactic-spacing-05x, 2px)}.___SText_s4dem_gg_.__ellipsis_s4dem_gg_{overflow:hidden;text-overflow:ellipsis;white-space:pre;display:inline-block;line-height:inherit;vertical-align:top}.___SText_s4dem_gg_.__ellipsis_s4dem_gg_._trim_end_s4dem_gg_.__isEllipsized_s4dem_gg_::after{content:\"\";display:block}.___SText_s4dem_gg_.__ellipsis_s4dem_gg_.__maxLine_s4dem_gg_{-webkit-line-clamp:var(--maxLine_s4dem);display:-webkit-box;-webkit-box-orient:vertical;white-space:normal;word-wrap:break-word}.___SText_s4dem_gg_.__ellipsis_s4dem_gg_._trim_middle_s4dem_gg_{text-overflow:initial}.___SText_s4dem_gg_._size_100_s4dem_gg_,.___SText_s4dem_gg_._size_100_s4dem_gg_.__formatTags_s4dem_gg_ li,.___SText_s4dem_gg_._size_100_s4dem_gg_.__formatTags_s4dem_gg_ p{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%)}.___SText_s4dem_gg_._size_100_s4dem_gg_.__formatTags_s4dem_gg_ p{margin:0 0 calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_s4dem_gg_._size_100_s4dem_gg_.__formatTags_s4dem_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_s4dem_gg_._size_100_s4dem_gg_.__formatTags_s4dem_gg_ ul li:before{width:3px;height:3px;border-radius:50%;margin-top:var(--intergalactic-spacing-2x, 8px);margin-left:var(--intergalactic-spacing-05x, 2px)}.___SText_s4dem_gg_._size_200_s4dem_gg_,.___SText_s4dem_gg_._size_200_s4dem_gg_.__formatTags_s4dem_gg_ li,.___SText_s4dem_gg_._size_200_s4dem_gg_.__formatTags_s4dem_gg_ p{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SText_s4dem_gg_._size_200_s4dem_gg_.__formatTags_s4dem_gg_ p{margin:0 0 var(--intergalactic-spacing-3x, 12px)0}.___SText_s4dem_gg_._size_200_s4dem_gg_.__formatTags_s4dem_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_s4dem_gg_._size_200_s4dem_gg_.__formatTags_s4dem_gg_ ol ol li{padding-left:calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px))}.___SText_s4dem_gg_._size_200_s4dem_gg_.__formatTags_s4dem_gg_ ul li:before{width:4px;height:4px;border-radius:50%;margin-top:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-left:var(--intergalactic-spacing-05x, 2px)}.___SText_s4dem_gg_._size_300_s4dem_gg_,.___SText_s4dem_gg_._size_300_s4dem_gg_.__formatTags_s4dem_gg_ li,.___SText_s4dem_gg_._size_300_s4dem_gg_.__formatTags_s4dem_gg_ p{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SText_s4dem_gg_._size_300_s4dem_gg_.__formatTags_s4dem_gg_ p{margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SText_s4dem_gg_._size_300_s4dem_gg_.__formatTags_s4dem_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_s4dem_gg_._size_300_s4dem_gg_.__formatTags_s4dem_gg_ ol ol li{padding-left:calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px))}.___SText_s4dem_gg_._size_300_s4dem_gg_.__formatTags_s4dem_gg_ ul li:before{width:5px;height:5px;border-radius:50%;margin-top:calc(var(--intergalactic-spacing-2x, 8px) + var(--intergalactic-spacing-05x, 2px));margin-left:var(--intergalactic-spacing-05x, 2px)}.___SText_s4dem_gg_._size_400_s4dem_gg_{font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%)}.___SText_s4dem_gg_._size_500_s4dem_gg_{font-size:var(--intergalactic-fs-500, 24px);line-height:var(--intergalactic-lh-500, 117%)}.___SText_s4dem_gg_._size_600_s4dem_gg_{font-size:var(--intergalactic-fs-600, 32px);line-height:var(--intergalactic-lh-600, 125%)}.___SText_s4dem_gg_._size_700_s4dem_gg_{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%)}.___SText_s4dem_gg_._size_800_s4dem_gg_{font-size:var(--intergalactic-fs-800, 48px);line-height:var(--intergalactic-lh-800, 117%)}.___SText_s4dem_gg_.__noWrap_s4dem_gg_{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.___SText_s4dem_gg_.__medium_s4dem_gg_{font-weight:var(--intergalactic-medium, 500)}.___SText_s4dem_gg_.__semibold_s4dem_gg_{font-weight:var(--intergalactic-semi-bold, 600)}.___SText_s4dem_gg_.__bold_s4dem_gg_{font-weight:var(--intergalactic-bold, 700)}.___SText_s4dem_gg_.__italic_s4dem_gg_{font-style:italic}.___SText_s4dem_gg_.__monospace_s4dem_gg_{font-family:Consolas,\"Roboto Mono\",Menlo,Courier,monospace}.___SText_s4dem_gg_.__uppercase_s4dem_gg_{text-transform:uppercase}.___SText_s4dem_gg_.__lowercase_s4dem_gg_{text-transform:lowercase}.___SText_s4dem_gg_.__capitalize_s4dem_gg_{text-transform:capitalize}.___SText_s4dem_gg_.__decoration_s4dem_gg_{-webkit-text-decoration:var(--decoration_s4dem);text-decoration:var(--decoration_s4dem)}.___SText_s4dem_gg_.__color_s4dem_gg_{color:var(--color_s4dem)}.___SText_s4dem_gg_.__fontSize_s4dem_gg_{font-size:var(--fontSize_s4dem)}.___SText_s4dem_gg_.__lineHeight_s4dem_gg_{line-height:var(--lineHeight_s4dem)}.___SText_s4dem_gg_.__fontWeight_s4dem_gg_{font-weight:var(--fontWeight_s4dem)}.___SText_s4dem_gg_.__textAlign_s4dem_gg_{text-align:var(--textAlign_s4dem)}.___SText_s4dem_gg_._use_primary_s4dem_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SText_s4dem_gg_._use_secondary_s4dem_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___SText_s4dem_gg_.__disabled_s4dem_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3)}@media (prefers-reduced-motion){.___SText_s4dem_gg_ a{transition:none}}", /*__inner_css_end__*/"s4dem_gg_"),
15
15
  /*__reshadow_css_end__*/
16
16
  {
17
- "__SText": "___SText_1hmt9_gg_",
18
- "_size_400": "_size_400_1hmt9_gg_",
19
- "_size_500": "_size_500_1hmt9_gg_",
20
- "_size_600": "_size_600_1hmt9_gg_",
21
- "_size_700": "_size_700_1hmt9_gg_",
22
- "_size_800": "_size_800_1hmt9_gg_",
23
- "_noWrap": "__noWrap_1hmt9_gg_",
24
- "_medium": "__medium_1hmt9_gg_",
25
- "_semibold": "__semibold_1hmt9_gg_",
26
- "_bold": "__bold_1hmt9_gg_",
27
- "_italic": "__italic_1hmt9_gg_",
28
- "_monospace": "__monospace_1hmt9_gg_",
29
- "_uppercase": "__uppercase_1hmt9_gg_",
30
- "_lowercase": "__lowercase_1hmt9_gg_",
31
- "_capitalize": "__capitalize_1hmt9_gg_",
32
- "_decoration": "__decoration_1hmt9_gg_",
33
- "--decoration": "--decoration_1hmt9",
34
- "_color": "__color_1hmt9_gg_",
35
- "--color": "--color_1hmt9",
36
- "_fontSize": "__fontSize_1hmt9_gg_",
37
- "--fontSize": "--fontSize_1hmt9",
38
- "_lineHeight": "__lineHeight_1hmt9_gg_",
39
- "--lineHeight": "--lineHeight_1hmt9",
40
- "_fontWeight": "__fontWeight_1hmt9_gg_",
41
- "--fontWeight": "--fontWeight_1hmt9",
42
- "_textAlign": "__textAlign_1hmt9_gg_",
43
- "--textAlign": "--textAlign_1hmt9",
44
- "_use_primary": "_use_primary_1hmt9_gg_",
45
- "_use_secondary": "_use_secondary_1hmt9_gg_",
46
- "_disabled": "__disabled_1hmt9_gg_",
47
- "_formatTags": "__formatTags_1hmt9_gg_",
48
- "_ellipsis": "__ellipsis_1hmt9_gg_",
49
- "_trim_end": "_trim_end_1hmt9_gg_",
50
- "_isEllipsized": "__isEllipsized_1hmt9_gg_",
51
- "_maxLine": "__maxLine_1hmt9_gg_",
52
- "--maxLine": "--maxLine_1hmt9",
53
- "_trim_middle": "_trim_middle_1hmt9_gg_",
54
- "_size_100": "_size_100_1hmt9_gg_",
55
- "_size_200": "_size_200_1hmt9_gg_",
56
- "_size_300": "_size_300_1hmt9_gg_"
17
+ "__SText": "___SText_s4dem_gg_",
18
+ "_size_400": "_size_400_s4dem_gg_",
19
+ "_size_500": "_size_500_s4dem_gg_",
20
+ "_size_600": "_size_600_s4dem_gg_",
21
+ "_size_700": "_size_700_s4dem_gg_",
22
+ "_size_800": "_size_800_s4dem_gg_",
23
+ "_noWrap": "__noWrap_s4dem_gg_",
24
+ "_medium": "__medium_s4dem_gg_",
25
+ "_semibold": "__semibold_s4dem_gg_",
26
+ "_bold": "__bold_s4dem_gg_",
27
+ "_italic": "__italic_s4dem_gg_",
28
+ "_monospace": "__monospace_s4dem_gg_",
29
+ "_uppercase": "__uppercase_s4dem_gg_",
30
+ "_lowercase": "__lowercase_s4dem_gg_",
31
+ "_capitalize": "__capitalize_s4dem_gg_",
32
+ "_decoration": "__decoration_s4dem_gg_",
33
+ "--decoration": "--decoration_s4dem",
34
+ "_color": "__color_s4dem_gg_",
35
+ "--color": "--color_s4dem",
36
+ "_fontSize": "__fontSize_s4dem_gg_",
37
+ "--fontSize": "--fontSize_s4dem",
38
+ "_lineHeight": "__lineHeight_s4dem_gg_",
39
+ "--lineHeight": "--lineHeight_s4dem",
40
+ "_fontWeight": "__fontWeight_s4dem_gg_",
41
+ "--fontWeight": "--fontWeight_s4dem",
42
+ "_textAlign": "__textAlign_s4dem_gg_",
43
+ "--textAlign": "--textAlign_s4dem",
44
+ "_use_primary": "_use_primary_s4dem_gg_",
45
+ "_use_secondary": "_use_secondary_s4dem_gg_",
46
+ "_disabled": "__disabled_s4dem_gg_",
47
+ "_formatTags": "__formatTags_s4dem_gg_",
48
+ "_ellipsis": "__ellipsis_s4dem_gg_",
49
+ "_trim_end": "_trim_end_s4dem_gg_",
50
+ "_isEllipsized": "__isEllipsized_s4dem_gg_",
51
+ "_maxLine": "__maxLine_s4dem_gg_",
52
+ "--maxLine": "--maxLine_s4dem",
53
+ "_trim_middle": "_trim_middle_s4dem_gg_",
54
+ "_size_100": "_size_100_s4dem_gg_",
55
+ "_size_200": "_size_200_s4dem_gg_",
56
+ "_size_300": "_size_300_s4dem_gg_"
57
57
  });
58
58
  class TextRoot extends _core.Component {
59
59
  constructor(props) {
@@ -69,7 +69,11 @@ class TextRoot extends _core.Component {
69
69
  this.initEllipsis();
70
70
  }
71
71
  componentDidUpdate(prevProps) {
72
- if (prevProps.ellipsis !== this.asProps.ellipsis) {
72
+ const ellipsisKeys = ['cropPosition', 'maxLine', 'lastRequiredSymbols', 'containerElement', 'recalculateContainerWidth', 'observeChildrenMutations'];
73
+ const hasChanges = ellipsisKeys.some(key => {
74
+ return prevProps[`ellipsis:${key}`] !== this.asProps[`ellipsis:${key}`];
75
+ });
76
+ if (prevProps.ellipsis !== this.asProps.ellipsis || hasChanges) {
73
77
  this.cleanUpEllipsis();
74
78
  this.initEllipsis();
75
79
  }
@@ -85,18 +89,20 @@ class TextRoot extends _core.Component {
85
89
  color,
86
90
  underline,
87
91
  lineThrough,
92
+ hint,
88
93
  hintProps,
89
94
  children,
90
95
  ellipsis,
96
+ ellipsisProps,
91
97
  resolveColor
92
98
  } = this.asProps;
93
99
  const {
94
100
  isEllipsized
95
101
  } = this.state;
96
- const cropPosition = typeof ellipsis === 'object' ? ellipsis.cropPosition ?? 'end' : ellipsis === true ? 'end' : undefined;
97
- let withHint = hintProps !== false;
98
- const maxLineValue = typeof ellipsis === 'object' && ellipsis.maxLine !== undefined ? ellipsis.maxLine : undefined;
99
- if (hintProps === undefined && maxLineValue !== undefined && maxLineValue > 1) {
102
+ const cropPosition = ellipsisProps?.cropPosition ?? 'end';
103
+ let withHint = hint !== false;
104
+ const maxLineValue = ellipsisProps?.maxLine;
105
+ if (hint !== true && hintProps === undefined && maxLineValue !== undefined && maxLineValue > 1) {
100
106
  withHint = false;
101
107
  }
102
108
  return _ref2 = (0, _core.sstyled)(styles), /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(SText, _ref2.cn("SText", {
@@ -106,7 +112,7 @@ class TextRoot extends _core.Component {
106
112
  "ref": this.innerRef,
107
113
  "use:decoration": this.getTextDecoration(underline, lineThrough),
108
114
  "use:color": resolveColor(color),
109
- "use:ellipsis": Boolean(ellipsis),
115
+ "use:ellipsis": ellipsis !== undefined ? ellipsis : Boolean(ellipsisProps),
110
116
  "isEllipsized": isEllipsized,
111
117
  "maxLine": maxLineValue,
112
118
  "trim": cropPosition
@@ -122,9 +128,14 @@ class TextRoot extends _core.Component {
122
128
  });
123
129
  }
124
130
  initEllipsis() {
125
- const ellipsis = this.asProps.ellipsis;
126
- if (ellipsis && this.innerRef.current) {
127
- this.ellipsis = ellipsis instanceof _baseComponents.Ellipsis ? ellipsis : new _baseComponents.Ellipsis(this.innerRef.current, ellipsis === true ? {} : ellipsis);
131
+ const {
132
+ ellipsis,
133
+ ellipsisProps,
134
+ hint
135
+ } = this.asProps;
136
+ const shouldInit = hint !== false || ellipsisProps?.cropPosition === 'middle';
137
+ if (shouldInit && (ellipsis || ellipsisProps) && this.innerRef.current) {
138
+ this.ellipsis = ellipsis instanceof _baseComponents.Ellipsis ? ellipsis : new _baseComponents.Ellipsis(this.innerRef.current, ellipsisProps ?? {});
128
139
  this.ellipsis.on('isEllipsized', this.handleEllipsized);
129
140
  }
130
141
  }
@@ -147,8 +158,5 @@ class TextRoot extends _core.Component {
147
158
  (0, _defineProperty2.default)(TextRoot, "enhance", [(0, _resolveColorEnhance.default)()]);
148
159
  (0, _defineProperty2.default)(TextRoot, "styles", styles);
149
160
  (0, _defineProperty2.default)(TextRoot, "displayName", 'Text');
150
- (0, _defineProperty2.default)(TextRoot, "defaultProps", {
151
- ellipsis: false
152
- });
153
161
  var _default = exports.default = (0, _core.createComponent)(TextRoot);
154
162
  //# sourceMappingURL=Text.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Text.js","names":["_core","require","_baseComponents","_resolveColorEnhance","_interopRequireDefault","_react","styles","sstyled","insert","TextRoot","Component","constructor","props","_defineProperty2","default","React","createRef","isEllipsized","handleEllipsized","bind","componentDidMount","initEllipsis","componentDidUpdate","prevProps","ellipsis","asProps","cleanUpEllipsis","componentWillUnmount","render","_ref","_ref2","SText","Box","color","underline","lineThrough","hintProps","children","resolveColor","state","cropPosition","undefined","withHint","maxLineValue","maxLine","createElement","Fragment","cn","assignProps","innerRef","getTextDecoration","Boolean","Hint","setState","current","Ellipsis","on","off","cleanUp","resolveColorEnhance","_default","exports","createComponent"],"sources":["../../src/Text.tsx"],"sourcesContent":["import { Ellipsis, Hint, Box } from '@semcore/base-components';\nimport { Root, sstyled, Component, createComponent } from '@semcore/core';\nimport resolveColorEnhance from '@semcore/core/lib/utils/enhances/resolveColorEnhance';\nimport React from 'react';\n\nimport type { TextProps } from './index';\nimport styles from './style/text.shadow.css';\n\ntype DefaultProps = {\n ellipsis: TextProps['ellipsis'] | false;\n};\n\ntype State = {\n isEllipsized: boolean;\n};\n\nclass TextRoot extends Component<TextProps, typeof TextRoot.enhance, {}, DefaultProps, State> {\n private ellipsis: Ellipsis | null = null;\n private innerRef = React.createRef<HTMLElement | null>();\n\n static enhance = [resolveColorEnhance()] as const;\n static styles = styles;\n static displayName = 'Text';\n\n static defaultProps: DefaultProps = {\n ellipsis: false,\n };\n\n state = {\n isEllipsized: false,\n };\n\n constructor(props: TextProps) {\n super(props);\n\n this.handleEllipsized = this.handleEllipsized.bind(this);\n }\n\n componentDidMount(): void {\n this.initEllipsis();\n }\n\n componentDidUpdate(prevProps: TextProps) {\n if (prevProps.ellipsis !== this.asProps.ellipsis) {\n this.cleanUpEllipsis();\n\n this.initEllipsis();\n }\n }\n\n componentWillUnmount() {\n this.cleanUpEllipsis();\n }\n\n render(): React.ReactNode {\n const SText = Root;\n const { color, underline, lineThrough, hintProps, children, ellipsis, resolveColor } = this.asProps;\n const { isEllipsized } = this.state;\n\n const cropPosition = typeof ellipsis === 'object' ? (ellipsis.cropPosition ?? 'end') : (ellipsis === true ? 'end' : undefined);\n let withHint = hintProps !== false;\n\n const maxLineValue = typeof ellipsis === 'object' && ellipsis.maxLine !== undefined ? ellipsis.maxLine : undefined;\n if (hintProps === undefined && maxLineValue !== undefined && maxLineValue > 1) {\n withHint = false;\n }\n\n return sstyled(styles)(\n <>\n <SText\n render={Box}\n tag='span'\n data-ui-name='Text'\n ref={this.innerRef}\n use:decoration={this.getTextDecoration(underline, lineThrough)}\n use:color={resolveColor(color)}\n use:ellipsis={Boolean(ellipsis)}\n isEllipsized={isEllipsized}\n maxLine={maxLineValue}\n trim={cropPosition}\n />\n {isEllipsized && withHint && <Hint triggerRef={this.innerRef} {...hintProps}>{children}</Hint>}\n </>,\n );\n }\n\n private handleEllipsized(isEllipsized: boolean) {\n this.setState({ isEllipsized: isEllipsized });\n }\n\n private initEllipsis() {\n const ellipsis = this.asProps.ellipsis;\n if (ellipsis && this.innerRef.current) {\n this.ellipsis = ellipsis instanceof Ellipsis ? ellipsis : new Ellipsis(this.innerRef.current, ellipsis === true ? {} : ellipsis);\n\n this.ellipsis.on('isEllipsized', this.handleEllipsized);\n }\n }\n\n private cleanUpEllipsis() {\n this.ellipsis?.off('isEllipsized', this.handleEllipsized);\n this.ellipsis?.cleanUp();\n this.setState({ isEllipsized: false });\n }\n\n private getTextDecoration(underline?: boolean, lineThrough?: boolean) {\n if (underline) {\n return 'underline';\n }\n\n if (lineThrough) {\n return 'line-through';\n }\n }\n}\n\nexport default createComponent(TextRoot);\n"],"mappings":";;;;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AADA,IAAAC,eAAA,GAAAD,OAAA;AAEA,IAAAE,oBAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,MAAA,GAAAD,sBAAA,CAAAH,OAAA;AAA0B;AAAA,MAAAK,MAAA,8BAAAN,KAAA,CAAAO,OAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAA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,QAAQ,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"Text.js","names":["_core","require","_baseComponents","_resolveColorEnhance","_interopRequireDefault","_react","styles","sstyled","insert","TextRoot","Component","constructor","props","_defineProperty2","default","React","createRef","isEllipsized","handleEllipsized","bind","componentDidMount","initEllipsis","componentDidUpdate","prevProps","ellipsisKeys","hasChanges","some","key","asProps","ellipsis","cleanUpEllipsis","componentWillUnmount","render","_ref","_ref2","SText","Box","color","underline","lineThrough","hint","hintProps","children","ellipsisProps","resolveColor","state","cropPosition","withHint","maxLineValue","maxLine","undefined","createElement","Fragment","cn","assignProps","innerRef","getTextDecoration","Boolean","Hint","setState","shouldInit","current","Ellipsis","on","off","cleanUp","resolveColorEnhance","_default","exports","createComponent"],"sources":["../../src/Text.tsx"],"sourcesContent":["import { Ellipsis, Hint, Box, type EllipsisSettings } from '@semcore/base-components';\nimport { Root, sstyled, Component, createComponent } from '@semcore/core';\nimport resolveColorEnhance from '@semcore/core/lib/utils/enhances/resolveColorEnhance';\nimport React from 'react';\n\nimport type { TextEllipsisProps, TextProps } from './index';\nimport styles from './style/text.shadow.css';\n\ntype State = {\n isEllipsized: boolean;\n};\n\nclass TextRoot extends Component<TextProps, typeof TextRoot.enhance, {}, {}, State> {\n private ellipsis: Ellipsis | null = null;\n private innerRef = React.createRef<HTMLElement | null>();\n\n static enhance = [resolveColorEnhance()] as const;\n static styles = styles;\n static displayName = 'Text';\n\n state = {\n isEllipsized: false,\n };\n\n constructor(props: TextProps) {\n super(props);\n\n this.handleEllipsized = this.handleEllipsized.bind(this);\n }\n\n componentDidMount(): void {\n this.initEllipsis();\n }\n\n componentDidUpdate(prevProps: TextEllipsisProps) {\n const ellipsisKeys: Array<keyof EllipsisSettings> = [\n 'cropPosition',\n 'maxLine',\n 'lastRequiredSymbols',\n 'containerElement',\n 'recalculateContainerWidth',\n 'observeChildrenMutations',\n ];\n\n const hasChanges = ellipsisKeys.some((key) => {\n return prevProps[`ellipsis:${key}`] !== this.asProps[`ellipsis:${key}`];\n });\n\n if (prevProps.ellipsis !== this.asProps.ellipsis || hasChanges) {\n this.cleanUpEllipsis();\n\n this.initEllipsis();\n }\n }\n\n componentWillUnmount() {\n this.cleanUpEllipsis();\n }\n\n render(): React.ReactNode {\n const SText = Root;\n const { color, underline, lineThrough, hint, hintProps, children, ellipsis, ellipsisProps, resolveColor } = this.asProps;\n const { isEllipsized } = this.state;\n\n const cropPosition = ellipsisProps?.cropPosition ?? 'end';\n let withHint = hint !== false;\n\n const maxLineValue = ellipsisProps?.maxLine;\n if (hint !== true && hintProps === undefined && maxLineValue !== undefined && maxLineValue > 1) {\n withHint = false;\n }\n\n return sstyled(styles)(\n <>\n <SText\n render={Box}\n tag='span'\n data-ui-name='Text'\n ref={this.innerRef}\n use:decoration={this.getTextDecoration(underline, lineThrough)}\n use:color={resolveColor(color)}\n use:ellipsis={ellipsis !== undefined ? ellipsis : Boolean(ellipsisProps)}\n isEllipsized={isEllipsized}\n maxLine={maxLineValue}\n trim={cropPosition}\n />\n {isEllipsized && withHint && <Hint triggerRef={this.innerRef} {...hintProps}>{children}</Hint>}\n </>,\n );\n }\n\n private handleEllipsized(isEllipsized: boolean) {\n this.setState({ isEllipsized: isEllipsized });\n }\n\n private initEllipsis() {\n const { ellipsis, ellipsisProps, hint } = this.asProps;\n const shouldInit = hint !== false || ellipsisProps?.cropPosition === 'middle';\n\n if (shouldInit && (ellipsis || ellipsisProps) && this.innerRef.current) {\n this.ellipsis = ellipsis instanceof Ellipsis ? ellipsis : new Ellipsis(this.innerRef.current, ellipsisProps ?? {});\n\n this.ellipsis.on('isEllipsized', this.handleEllipsized);\n }\n }\n\n private cleanUpEllipsis() {\n this.ellipsis?.off('isEllipsized', this.handleEllipsized);\n this.ellipsis?.cleanUp();\n this.setState({ isEllipsized: false });\n }\n\n private getTextDecoration(underline?: boolean, lineThrough?: boolean) {\n if (underline) {\n return 'underline';\n }\n\n if (lineThrough) {\n return 'line-through';\n }\n }\n}\n\nexport default createComponent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EQY,eAAeA,CAAA,EAAG;IACxB,IAAI,CAACD,QAAQ,EAAEmC,GAAG,CAAC,cAAc,EAAE,IAAI,CAAC9C,gBAAgB,CAAC;IACzD,IAAI,CAACW,QAAQ,EAAEoC,OAAO,CAAC,CAAC;IACxB,IAAI,CAACN,QAAQ,CAAC;MAAE1C,YAAY,EAAE;IAAM,CAAC,CAAC;EACxC;EAEQuC,iBAAiBA,CAAClB,SAAmB,EAAEC,WAAqB,EAAE;IACpE,IAAID,SAAS,EAAE;MACb,OAAO,WAAW;IACpB;IAEA,IAAIC,WAAW,EAAE;MACf,OAAO,cAAc;IACvB;EACF;AACF;AAAC,IAAA1B,gBAAA,CAAAC,OAAA,EA7GKL,QAAQ,aAIK,CAAC,IAAAyD,4BAAmB,EAAC,CAAC,CAAC;AAAA,IAAArD,gBAAA,CAAAC,OAAA,EAJpCL,QAAQ,YAKIH,MAAM;AAAA,IAAAO,gBAAA,CAAAC,OAAA,EALlBL,QAAQ,iBAMS,MAAM;AAAA,IAAA0D,QAAA,GAAAC,OAAA,CAAAtD,OAAA,GAyGd,IAAAuD,qBAAe,EAAC5D,QAAQ,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import type { BoxProps, Flex, FlexProps, EllipsisSettings, SimpleHintPopperProps, Ellipsis } from '@semcore/base-components';\nimport type { PropGetterFn, Intergalactic } from '@semcore/core';\nimport type { Property } from 'csstype';\nimport type React from 'react';\n\nexport type TextProps = BoxProps & {\n /** Font size and line-heights */\n size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;\n /**\n * The text will not be wrapped on a new line and will be cut off with ellipsis\n * @deprecated use ellipsis prop instead\n **/\n noWrap?: boolean;\n /** CSS property `font-weight: 700;` */\n bold?: boolean;\n /** CSS property `font-weight: 600;` */\n semibold?: boolean;\n /** CSS property `font-weight: 500;` */\n medium?: boolean;\n /** Italicized text */\n italic?: boolean;\n /** Underlined text */\n underline?: boolean;\n /** CSS property `font-family: monospace;` */\n monospace?: boolean;\n /** Strikethrough text */\n lineThrough?: boolean;\n /** Uppercase text */\n uppercase?: boolean;\n /** Lowercase text */\n lowercase?: boolean;\n /** Capitalized text */\n capitalize?: boolean;\n /** Text color **/\n color?: string;\n /** Custom `font-size` */\n fontSize?: Property.FontSize<any>;\n /** Custom `line-height` */\n lineHeight?: Property.LineHeight<any>;\n /** Custom `font-weight` */\n fontWeight?: Property.FontWeight;\n /** Text alignment */\n textAlign?: Property.TextAlign;\n /** Enforces text color */\n use?: 'primary' | 'secondary';\n /** Makes text semi-transparent to indicate disabled state */\n disabled?: boolean;\n} & (\n {\n /** Enable formatting/styling for all nested HTML tags with our default styles for them */\n formatTags?: boolean;\n ellipsis?: never;\n } |\n {\n /** The text will not be wrapped on a new line and will be cut off with ellipsis. Also, it will show a hint with full text. */\n ellipsis?: true | Readonly<EllipsisSettings> | Ellipsis;\n /** Settings for a hint with full text (cropped by ellipsis) */\n hintProps?: Partial<Omit<SimpleHintPopperProps, 'children'>> | false;\n }\n );\n\nexport type ListProps = TextProps & {\n /** Marker of the entire list\n * @default • */\n marker?: React.ReactNode;\n};\n\nexport type ListItemProps = TextProps & {\n /** Individual marker of a list item */\n marker?: React.ReactNode;\n};\n\nexport type ListItemContentProps = FlexProps;\n\nexport type ListContext = {\n getItemProps: PropGetterFn;\n};\n\nexport type BlockquoteProps = BoxProps & {\n /** Source of the quote */\n author?: React.ReactNode;\n};\n\ndeclare const Item: Intergalactic.Component<'li', ListItemProps> & {\n Content: Intergalactic.Component<typeof Flex, ListItemContentProps>;\n};\n\ndeclare const List: Intergalactic.Component<'ul', ListProps> & {\n Item: typeof Item;\n};\n\ndeclare const Text: Intergalactic.Component<'span', TextProps>;\n\ndeclare const Blockquote: Intergalactic.Component<'blockquote', BlockquoteProps>;\n\nexport { Text, List, Blockquote };\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import type { BoxProps, Flex, FlexProps, EllipsisSettings, SimpleHintPopperProps, Ellipsis } from '@semcore/base-components';\nimport type { PropGetterFn, Intergalactic } from '@semcore/core';\nimport type { Property } from 'csstype';\nimport type React from 'react';\n\nexport type TextHintProps = {\n /** Manually enabled/disabled Hint */\n hint?: boolean;\n} & {\n /** Settings for a hint with full text (cropped by ellipsis) */\n [K in keyof SimpleHintPopperProps as `hint:${string & K}`]?: SimpleHintPopperProps[K];\n};\n\n/** The text will not be wrapped on a new line and will be cut off with ellipsis. Also, it will show a hint with full text. */\nexport type TextEllipsisProps = {\n /** Manually enabled/disabled Ellipsis or provide an instance of it. */\n ellipsis?: (boolean | Ellipsis);\n} & {\n /** Settings for an Ellipsis */\n [K in keyof EllipsisSettings as `ellipsis:${string & K}`]?: EllipsisSettings[K];\n};\n\nexport type BaseTextProps = {\n /** Font size and line-heights */\n size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;\n /**\n * The text will not be wrapped on a new line and will be cut off with ellipsis\n * @deprecated use ellipsis prop instead\n **/\n noWrap?: boolean;\n /** CSS property `font-weight: 700;` */\n bold?: boolean;\n /** CSS property `font-weight: 600;` */\n semibold?: boolean;\n /** CSS property `font-weight: 500;` */\n medium?: boolean;\n /** Italicized text */\n italic?: boolean;\n /** Underlined text */\n underline?: boolean;\n /** CSS property `font-family: monospace;` */\n monospace?: boolean;\n /** Strikethrough text */\n lineThrough?: boolean;\n /** Uppercase text */\n uppercase?: boolean;\n /** Lowercase text */\n lowercase?: boolean;\n /** Capitalized text */\n capitalize?: boolean;\n /** Text color **/\n color?: string;\n /** Custom `font-size` */\n fontSize?: Property.FontSize<any>;\n /** Custom `line-height` */\n lineHeight?: Property.LineHeight<any>;\n /** Custom `font-weight` */\n fontWeight?: Property.FontWeight;\n /** Text alignment */\n textAlign?: Property.TextAlign;\n /** Enforces text color */\n use?: 'primary' | 'secondary';\n /** Makes text semi-transparent to indicate disabled state */\n disabled?: boolean;\n};\n\nexport type TextProps = BoxProps & BaseTextProps & (\n {\n /** Enable formatting/styling for all nested HTML tags with our default styles for them */\n formatTags?: boolean;\n ellipsis?: never;\n ellipsisProps?: never;\n hint?: never;\n hintProps?: never;\n } |\n ({\n formatTags?: never;\n // /** Settings for a hint with full text (cropped by ellipsis) */\n // hintProps?: Partial<Omit<SimpleHintPopperProps, 'children'>> | false;\n } & TextHintProps & TextEllipsisProps)\n);\n\nexport type ListProps = TextProps & {\n /** Marker of the entire list\n * @default • */\n marker?: React.ReactNode;\n};\n\nexport type ListItemProps = TextProps & {\n /** Individual marker of a list item */\n marker?: React.ReactNode;\n};\n\nexport type ListItemContentProps = FlexProps;\n\nexport type ListContext = {\n getItemProps: PropGetterFn;\n};\n\nexport type BlockquoteProps = BoxProps & {\n /** Source of the quote */\n author?: React.ReactNode;\n};\n\ndeclare const Item: Intergalactic.Component<'li', ListItemProps> & {\n Content: Intergalactic.Component<typeof Flex, ListItemContentProps>;\n};\n\ndeclare const List: Intergalactic.Component<'ul', ListProps> & {\n Item: typeof Item;\n};\n\ndeclare const Text: Intergalactic.Component<'span', TextProps>;\n\ndeclare const Blockquote: Intergalactic.Component<'blockquote', BlockquoteProps>;\n\nexport { Text, List, Blockquote };\n"],"mappings":"","ignoreList":[]}
@@ -232,6 +232,8 @@ SText[ellipsis] {
232
232
  text-overflow: ellipsis;
233
233
  white-space: pre;
234
234
  display: inline-block;
235
+ line-height: unset;
236
+ vertical-align: top;
235
237
 
236
238
  &[trim='end'][isEllipsized]::after {
237
239
  content: '';
package/lib/es6/Text.js CHANGED
@@ -6,49 +6,49 @@ import { Root, sstyled, Component, createComponent } from '@semcore/core';
6
6
  import resolveColorEnhance from '@semcore/core/lib/utils/enhances/resolveColorEnhance';
7
7
  import React from 'react';
8
8
  /*!__reshadow-styles__:"./style/text.shadow.css"*/
9
- const styles = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SText_1hmt9_gg_{padding:0;margin:0}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ abbr{color:var(--intergalactic-text-secondary, #6c6e79);-webkit-text-decoration:underline dashed var(--intergalactic-text-secondary, #6c6e79);text-decoration:underline dashed var(--intergalactic-text-secondary, #6c6e79)}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ abbr:active,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ abbr:focus{outline:0;color:var(--intergalactic-text-hint-hover-active, #484a54);-webkit-text-decoration:underline dashed var(--intergalactic-text-hint-hover-active, #484a54);text-decoration:underline dashed var(--intergalactic-text-hint-hover-active, #484a54)}@media (hover:hover){.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ abbr:hover{outline:0;color:var(--intergalactic-text-hint-hover-active, #484a54);-webkit-text-decoration:underline dashed var(--intergalactic-text-hint-hover-active, #484a54);text-decoration:underline dashed var(--intergalactic-text-hint-hover-active, #484a54)}}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ a{display:inline;background:0 0;outline:0;-webkit-text-decoration:none;text-decoration:none;color:var(--intergalactic-text-link, #006dca);border-bottom-width:1px;border-bottom-style:solid;border-color:transparent}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ a:active{outline:0;-webkit-text-decoration:none;text-decoration:none;color:var(--intergalactic-text-link-hover-active, #044792);border-color:var(--intergalactic-text-link-hover-active, #044792)}@media (hover:hover){.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ a:hover{outline:0;-webkit-text-decoration:none;text-decoration:none;color:var(--intergalactic-text-link-hover-active, #044792);border-color:var(--intergalactic-text-link-hover-active, #044792)}}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ a:focus{outline-color:var(--intergalactic-keyboard-focus-outline, #008ff8);outline-style:solid;outline-width:2px;outline-offset:2px;transition-duration:calc(var(--intergalactic-duration-extra-fast, 100)*1ms);transition-timing-function:ease-in-out;transition-property:outline-color,outline-width,outline-offset}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ code,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ pre{font-family:Consolas,\"Roboto Mono\",Menlo,Courier,monospace}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ blockquote{position:relative;padding-left:51px;font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%);font-style:italic}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ blockquote:before{content:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNyIgaGVpZ2h0PSIxOSIgdmlld0JveD0iMCAwIDI3IDE5IiBmaWxsPSJub25lIj4KPHBhdGggZD0iTTguODI0MjIgMC45NDcyNjZWMi4zMDg1OUM2Ljg3NjMgMy4zMjY4MiA1LjQ4MTc3IDQuMzg5MzIgNC42NDA2MiA1LjQ5NjA5QzMuNzk5NDggNi42MDI4NiAzLjM3ODkxIDcuODA5MjQgMy4zNzg5MSA5LjExNTIzQzMuMzc4OTEgOS44ODk5NyAzLjQ4OTU4IDEwLjQyMTIgMy43MTA5NCAxMC43MDlDMy45MTAxNiAxMS4wMTg5IDQuMTUzNjUgMTEuMTczOCA0LjQ0MTQxIDExLjE3MzhDNC43MjkxNyAxMS4xNzM4IDUuMTE2NTQgMTEuMDk2NCA1LjYwMzUyIDEwLjk0MTRDNi4wOTA0OSAxMC43NjQzIDYuNTMzMiAxMC42NzU4IDYuOTMxNjQgMTAuNjc1OEM3LjgzOTE5IDEwLjY3NTggOC42MjUgMTEuMDE4OSA5LjI4OTA2IDExLjcwNTFDOS45NzUyNiAxMi4zNjkxIDEwLjMxODQgMTMuMTg4MiAxMC4zMTg0IDE0LjE2MjFDMTAuMzE4NCAxNS4yMjQ2IDkuOTA4ODUgMTYuMTQzMiA5LjA4OTg0IDE2LjkxOEM4LjI3MDgzIDE3LjY3MDYgNy4yNTI2IDE4LjA0NjkgNi4wMzUxNiAxOC4wNDY5QzQuNTUyMDggMTguMDQ2OSAzLjIxMjg5IDE3Lj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2Ljg3MDQgNy4wMzQ1MSAxOC4zNTM1IDUuMTMwODZDMTkuODM2NiAzLjIwNTA4IDIxLjkzOTUgMS44NDM3NSAyNC42NjIxIDEuMDQ2ODhaIiBmaWxsPSIjQTlBQkI2Ii8+Cjwvc3ZnPg==);display:inline-block;position:absolute;left:0;color:var(--intergalactic-icon-secondary-neutral, #a9abb6);font-family:Georgia,Times,\"Times New Roman\",serif}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ blockquote cite{display:block;font-style:normal;margin-top:var(--intergalactic-spacing-4x, 16px);color:var(--intergalactic-text-secondary, #6c6e79);font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]),.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]){margin:var(--intergalactic-spacing-2x, 8px)0;padding:0;list-style:none;position:relative}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]) li:not(.___SText_1hmt9_gg_):before,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]) li:not(.___SText_1hmt9_gg_):before{position:absolute;left:0;color:var(--intergalactic-text-secondary, #6c6e79)}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]) li:not(.___SText_1hmt9_gg_)+li:not(.___SText_1hmt9_gg_),.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]) li:not(.___SText_1hmt9_gg_)+li:not(.___SText_1hmt9_gg_){margin:var(--intergalactic-spacing-2x, 8px)0 0 0}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]){counter-reset:item 0}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]) li:not(.___SText_1hmt9_gg_):before{counter-increment:item;content:counters(item,\".\")}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]) li:not(.___SText_1hmt9_gg_):before{content:\"\";background-color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]):has(+p),.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]):has(+p){margin-bottom:var(--intergalactic-spacing-4x, 16px)}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h1{font-size:var(--intergalactic-fs-800, 48px);line-height:var(--intergalactic-lh-800, 117%);font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-6x, 24px)0}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h1:only-child,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h2:only-child,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h3:only-child,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h4:only-child,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h5:only-child,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h6:only-child{margin-bottom:0}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h2{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%);font-weight:var(--intergalactic-semi-bold, 600)}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h3{font-size:var(--intergalactic-fs-600, 32px);line-height:var(--intergalactic-lh-600, 125%);font-weight:var(--intergalactic-semi-bold, 600)}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h4{font-size:var(--intergalactic-fs-500, 24px);line-height:var(--intergalactic-lh-500, 117%);font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-3x, 12px)0}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h5{font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%);font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-2x, 8px)0}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h6{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700);margin:0 0 var(--intergalactic-spacing-1x, 4px)0}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h1 small,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h2 small,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h3 small,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h4 small,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h5 small,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h6 small{color:var(--intergalactic-text-secondary, #6c6e79);font-weight:300;font-size:100%}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ li,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ p{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h2,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h3,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ p{margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ p:last-child,.___SText_1hmt9_gg_._size_100_1hmt9_gg_.__formatTags_1hmt9_gg_ p:last-child,.___SText_1hmt9_gg_._size_200_1hmt9_gg_.__formatTags_1hmt9_gg_ p:last-child,.___SText_1hmt9_gg_._size_300_1hmt9_gg_.__formatTags_1hmt9_gg_ p:last-child{margin-bottom:0}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ol ol li,.___SText_1hmt9_gg_._size_100_1hmt9_gg_.__formatTags_1hmt9_gg_ ol ol li{padding-left:calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px))}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ol ol ol li,.___SText_1hmt9_gg_._size_100_1hmt9_gg_.__formatTags_1hmt9_gg_ ol ol ol li,.___SText_1hmt9_gg_._size_200_1hmt9_gg_.__formatTags_1hmt9_gg_ ol ol ol li,.___SText_1hmt9_gg_._size_300_1hmt9_gg_.__formatTags_1hmt9_gg_ ol ol ol li{padding-left:calc(var(--intergalactic-spacing-8x, 32px) + var(--intergalactic-spacing-1x, 4px) + var(--intergalactic-spacing-05x, 2px))}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ul li:before{width:4px;height:4px;border-radius:50%;margin-top:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-left:var(--intergalactic-spacing-05x, 2px)}.___SText_1hmt9_gg_.__ellipsis_1hmt9_gg_{overflow:hidden;text-overflow:ellipsis;white-space:pre;display:inline-block}.___SText_1hmt9_gg_.__ellipsis_1hmt9_gg_._trim_end_1hmt9_gg_.__isEllipsized_1hmt9_gg_::after{content:\"\";display:block}.___SText_1hmt9_gg_.__ellipsis_1hmt9_gg_.__maxLine_1hmt9_gg_{-webkit-line-clamp:var(--maxLine_1hmt9);display:-webkit-box;-webkit-box-orient:vertical;white-space:normal;word-wrap:break-word}.___SText_1hmt9_gg_.__ellipsis_1hmt9_gg_._trim_middle_1hmt9_gg_{text-overflow:initial}.___SText_1hmt9_gg_._size_100_1hmt9_gg_,.___SText_1hmt9_gg_._size_100_1hmt9_gg_.__formatTags_1hmt9_gg_ li,.___SText_1hmt9_gg_._size_100_1hmt9_gg_.__formatTags_1hmt9_gg_ p{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%)}.___SText_1hmt9_gg_._size_100_1hmt9_gg_.__formatTags_1hmt9_gg_ p{margin:0 0 calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_1hmt9_gg_._size_100_1hmt9_gg_.__formatTags_1hmt9_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_1hmt9_gg_._size_100_1hmt9_gg_.__formatTags_1hmt9_gg_ ul li:before{width:3px;height:3px;border-radius:50%;margin-top:var(--intergalactic-spacing-2x, 8px);margin-left:var(--intergalactic-spacing-05x, 2px)}.___SText_1hmt9_gg_._size_200_1hmt9_gg_,.___SText_1hmt9_gg_._size_200_1hmt9_gg_.__formatTags_1hmt9_gg_ li,.___SText_1hmt9_gg_._size_200_1hmt9_gg_.__formatTags_1hmt9_gg_ p{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SText_1hmt9_gg_._size_200_1hmt9_gg_.__formatTags_1hmt9_gg_ p{margin:0 0 var(--intergalactic-spacing-3x, 12px)0}.___SText_1hmt9_gg_._size_200_1hmt9_gg_.__formatTags_1hmt9_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_1hmt9_gg_._size_200_1hmt9_gg_.__formatTags_1hmt9_gg_ ol ol li{padding-left:calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px))}.___SText_1hmt9_gg_._size_200_1hmt9_gg_.__formatTags_1hmt9_gg_ ul li:before{width:4px;height:4px;border-radius:50%;margin-top:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-left:var(--intergalactic-spacing-05x, 2px)}.___SText_1hmt9_gg_._size_300_1hmt9_gg_,.___SText_1hmt9_gg_._size_300_1hmt9_gg_.__formatTags_1hmt9_gg_ li,.___SText_1hmt9_gg_._size_300_1hmt9_gg_.__formatTags_1hmt9_gg_ p{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SText_1hmt9_gg_._size_300_1hmt9_gg_.__formatTags_1hmt9_gg_ p{margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SText_1hmt9_gg_._size_300_1hmt9_gg_.__formatTags_1hmt9_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_1hmt9_gg_._size_300_1hmt9_gg_.__formatTags_1hmt9_gg_ ol ol li{padding-left:calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px))}.___SText_1hmt9_gg_._size_300_1hmt9_gg_.__formatTags_1hmt9_gg_ ul li:before{width:5px;height:5px;border-radius:50%;margin-top:calc(var(--intergalactic-spacing-2x, 8px) + var(--intergalactic-spacing-05x, 2px));margin-left:var(--intergalactic-spacing-05x, 2px)}.___SText_1hmt9_gg_._size_400_1hmt9_gg_{font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%)}.___SText_1hmt9_gg_._size_500_1hmt9_gg_{font-size:var(--intergalactic-fs-500, 24px);line-height:var(--intergalactic-lh-500, 117%)}.___SText_1hmt9_gg_._size_600_1hmt9_gg_{font-size:var(--intergalactic-fs-600, 32px);line-height:var(--intergalactic-lh-600, 125%)}.___SText_1hmt9_gg_._size_700_1hmt9_gg_{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%)}.___SText_1hmt9_gg_._size_800_1hmt9_gg_{font-size:var(--intergalactic-fs-800, 48px);line-height:var(--intergalactic-lh-800, 117%)}.___SText_1hmt9_gg_.__noWrap_1hmt9_gg_{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.___SText_1hmt9_gg_.__medium_1hmt9_gg_{font-weight:var(--intergalactic-medium, 500)}.___SText_1hmt9_gg_.__semibold_1hmt9_gg_{font-weight:var(--intergalactic-semi-bold, 600)}.___SText_1hmt9_gg_.__bold_1hmt9_gg_{font-weight:var(--intergalactic-bold, 700)}.___SText_1hmt9_gg_.__italic_1hmt9_gg_{font-style:italic}.___SText_1hmt9_gg_.__monospace_1hmt9_gg_{font-family:Consolas,\"Roboto Mono\",Menlo,Courier,monospace}.___SText_1hmt9_gg_.__uppercase_1hmt9_gg_{text-transform:uppercase}.___SText_1hmt9_gg_.__lowercase_1hmt9_gg_{text-transform:lowercase}.___SText_1hmt9_gg_.__capitalize_1hmt9_gg_{text-transform:capitalize}.___SText_1hmt9_gg_.__decoration_1hmt9_gg_{-webkit-text-decoration:var(--decoration_1hmt9);text-decoration:var(--decoration_1hmt9)}.___SText_1hmt9_gg_.__color_1hmt9_gg_{color:var(--color_1hmt9)}.___SText_1hmt9_gg_.__fontSize_1hmt9_gg_{font-size:var(--fontSize_1hmt9)}.___SText_1hmt9_gg_.__lineHeight_1hmt9_gg_{line-height:var(--lineHeight_1hmt9)}.___SText_1hmt9_gg_.__fontWeight_1hmt9_gg_{font-weight:var(--fontWeight_1hmt9)}.___SText_1hmt9_gg_.__textAlign_1hmt9_gg_{text-align:var(--textAlign_1hmt9)}.___SText_1hmt9_gg_._use_primary_1hmt9_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SText_1hmt9_gg_._use_secondary_1hmt9_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___SText_1hmt9_gg_.__disabled_1hmt9_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3)}@media (prefers-reduced-motion){.___SText_1hmt9_gg_ a{transition:none}}", /*__inner_css_end__*/"1hmt9_gg_"),
9
+ const styles = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SText_s4dem_gg_{padding:0;margin:0}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ abbr{color:var(--intergalactic-text-secondary, #6c6e79);-webkit-text-decoration:underline dashed var(--intergalactic-text-secondary, #6c6e79);text-decoration:underline dashed var(--intergalactic-text-secondary, #6c6e79)}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ abbr:active,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ abbr:focus{outline:0;color:var(--intergalactic-text-hint-hover-active, #484a54);-webkit-text-decoration:underline dashed var(--intergalactic-text-hint-hover-active, #484a54);text-decoration:underline dashed var(--intergalactic-text-hint-hover-active, #484a54)}@media (hover:hover){.___SText_s4dem_gg_.__formatTags_s4dem_gg_ abbr:hover{outline:0;color:var(--intergalactic-text-hint-hover-active, #484a54);-webkit-text-decoration:underline dashed var(--intergalactic-text-hint-hover-active, #484a54);text-decoration:underline dashed var(--intergalactic-text-hint-hover-active, #484a54)}}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ a{display:inline;background:0 0;outline:0;-webkit-text-decoration:none;text-decoration:none;color:var(--intergalactic-text-link, #006dca);border-bottom-width:1px;border-bottom-style:solid;border-color:transparent}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ a:active{outline:0;-webkit-text-decoration:none;text-decoration:none;color:var(--intergalactic-text-link-hover-active, #044792);border-color:var(--intergalactic-text-link-hover-active, #044792)}@media (hover:hover){.___SText_s4dem_gg_.__formatTags_s4dem_gg_ a:hover{outline:0;-webkit-text-decoration:none;text-decoration:none;color:var(--intergalactic-text-link-hover-active, #044792);border-color:var(--intergalactic-text-link-hover-active, #044792)}}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ a:focus{outline-color:var(--intergalactic-keyboard-focus-outline, #008ff8);outline-style:solid;outline-width:2px;outline-offset:2px;transition-duration:calc(var(--intergalactic-duration-extra-fast, 100)*1ms);transition-timing-function:ease-in-out;transition-property:outline-color,outline-width,outline-offset}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ code,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ pre{font-family:Consolas,\"Roboto Mono\",Menlo,Courier,monospace}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ blockquote{position:relative;padding-left:51px;font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%);font-style:italic}.___SText_s4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:var(--intergalactic-icon-secondary-neutral, #a9abb6);font-family:Georgia,Times,\"Times New Roman\",serif}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ blockquote cite{display:block;font-style:normal;margin-top:var(--intergalactic-spacing-4x, 16px);color:var(--intergalactic-text-secondary, #6c6e79);font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]),.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]){margin:var(--intergalactic-spacing-2x, 8px)0;padding:0;list-style:none;position:relative}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]) li:not(.___SText_s4dem_gg_):before,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]) li:not(.___SText_s4dem_gg_):before{position:absolute;left:0;color:var(--intergalactic-text-secondary, #6c6e79)}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]) li:not(.___SText_s4dem_gg_)+li:not(.___SText_s4dem_gg_),.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]) li:not(.___SText_s4dem_gg_)+li:not(.___SText_s4dem_gg_){margin:var(--intergalactic-spacing-2x, 8px)0 0 0}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]){counter-reset:item 0}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]) li:not(.___SText_s4dem_gg_):before{counter-increment:item;content:counters(item,\".\")}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]) li:not(.___SText_s4dem_gg_):before{content:\"\";background-color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]):has(+p),.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]):has(+p){margin-bottom:var(--intergalactic-spacing-4x, 16px)}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h1{font-size:var(--intergalactic-fs-800, 48px);line-height:var(--intergalactic-lh-800, 117%);font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-6x, 24px)0}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h1:only-child,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h2:only-child,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h3:only-child,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h4:only-child,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h5:only-child,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h6:only-child{margin-bottom:0}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h2{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%);font-weight:var(--intergalactic-semi-bold, 600)}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h3{font-size:var(--intergalactic-fs-600, 32px);line-height:var(--intergalactic-lh-600, 125%);font-weight:var(--intergalactic-semi-bold, 600)}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h4{font-size:var(--intergalactic-fs-500, 24px);line-height:var(--intergalactic-lh-500, 117%);font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-3x, 12px)0}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h5{font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%);font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-2x, 8px)0}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h6{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700);margin:0 0 var(--intergalactic-spacing-1x, 4px)0}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h1 small,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h2 small,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h3 small,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h4 small,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h5 small,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h6 small{color:var(--intergalactic-text-secondary, #6c6e79);font-weight:300;font-size:100%}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ li,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ p{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h2,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h3,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ p{margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ p:last-child,.___SText_s4dem_gg_._size_100_s4dem_gg_.__formatTags_s4dem_gg_ p:last-child,.___SText_s4dem_gg_._size_200_s4dem_gg_.__formatTags_s4dem_gg_ p:last-child,.___SText_s4dem_gg_._size_300_s4dem_gg_.__formatTags_s4dem_gg_ p:last-child{margin-bottom:0}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ol ol li,.___SText_s4dem_gg_._size_100_s4dem_gg_.__formatTags_s4dem_gg_ ol ol li{padding-left:calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px))}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ol ol ol li,.___SText_s4dem_gg_._size_100_s4dem_gg_.__formatTags_s4dem_gg_ ol ol ol li,.___SText_s4dem_gg_._size_200_s4dem_gg_.__formatTags_s4dem_gg_ ol ol ol li,.___SText_s4dem_gg_._size_300_s4dem_gg_.__formatTags_s4dem_gg_ ol ol ol li{padding-left:calc(var(--intergalactic-spacing-8x, 32px) + var(--intergalactic-spacing-1x, 4px) + var(--intergalactic-spacing-05x, 2px))}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ul li:before{width:4px;height:4px;border-radius:50%;margin-top:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-left:var(--intergalactic-spacing-05x, 2px)}.___SText_s4dem_gg_.__ellipsis_s4dem_gg_{overflow:hidden;text-overflow:ellipsis;white-space:pre;display:inline-block;line-height:inherit;vertical-align:top}.___SText_s4dem_gg_.__ellipsis_s4dem_gg_._trim_end_s4dem_gg_.__isEllipsized_s4dem_gg_::after{content:\"\";display:block}.___SText_s4dem_gg_.__ellipsis_s4dem_gg_.__maxLine_s4dem_gg_{-webkit-line-clamp:var(--maxLine_s4dem);display:-webkit-box;-webkit-box-orient:vertical;white-space:normal;word-wrap:break-word}.___SText_s4dem_gg_.__ellipsis_s4dem_gg_._trim_middle_s4dem_gg_{text-overflow:initial}.___SText_s4dem_gg_._size_100_s4dem_gg_,.___SText_s4dem_gg_._size_100_s4dem_gg_.__formatTags_s4dem_gg_ li,.___SText_s4dem_gg_._size_100_s4dem_gg_.__formatTags_s4dem_gg_ p{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%)}.___SText_s4dem_gg_._size_100_s4dem_gg_.__formatTags_s4dem_gg_ p{margin:0 0 calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_s4dem_gg_._size_100_s4dem_gg_.__formatTags_s4dem_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_s4dem_gg_._size_100_s4dem_gg_.__formatTags_s4dem_gg_ ul li:before{width:3px;height:3px;border-radius:50%;margin-top:var(--intergalactic-spacing-2x, 8px);margin-left:var(--intergalactic-spacing-05x, 2px)}.___SText_s4dem_gg_._size_200_s4dem_gg_,.___SText_s4dem_gg_._size_200_s4dem_gg_.__formatTags_s4dem_gg_ li,.___SText_s4dem_gg_._size_200_s4dem_gg_.__formatTags_s4dem_gg_ p{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SText_s4dem_gg_._size_200_s4dem_gg_.__formatTags_s4dem_gg_ p{margin:0 0 var(--intergalactic-spacing-3x, 12px)0}.___SText_s4dem_gg_._size_200_s4dem_gg_.__formatTags_s4dem_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_s4dem_gg_._size_200_s4dem_gg_.__formatTags_s4dem_gg_ ol ol li{padding-left:calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px))}.___SText_s4dem_gg_._size_200_s4dem_gg_.__formatTags_s4dem_gg_ ul li:before{width:4px;height:4px;border-radius:50%;margin-top:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-left:var(--intergalactic-spacing-05x, 2px)}.___SText_s4dem_gg_._size_300_s4dem_gg_,.___SText_s4dem_gg_._size_300_s4dem_gg_.__formatTags_s4dem_gg_ li,.___SText_s4dem_gg_._size_300_s4dem_gg_.__formatTags_s4dem_gg_ p{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SText_s4dem_gg_._size_300_s4dem_gg_.__formatTags_s4dem_gg_ p{margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SText_s4dem_gg_._size_300_s4dem_gg_.__formatTags_s4dem_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_s4dem_gg_._size_300_s4dem_gg_.__formatTags_s4dem_gg_ ol ol li{padding-left:calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px))}.___SText_s4dem_gg_._size_300_s4dem_gg_.__formatTags_s4dem_gg_ ul li:before{width:5px;height:5px;border-radius:50%;margin-top:calc(var(--intergalactic-spacing-2x, 8px) + var(--intergalactic-spacing-05x, 2px));margin-left:var(--intergalactic-spacing-05x, 2px)}.___SText_s4dem_gg_._size_400_s4dem_gg_{font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%)}.___SText_s4dem_gg_._size_500_s4dem_gg_{font-size:var(--intergalactic-fs-500, 24px);line-height:var(--intergalactic-lh-500, 117%)}.___SText_s4dem_gg_._size_600_s4dem_gg_{font-size:var(--intergalactic-fs-600, 32px);line-height:var(--intergalactic-lh-600, 125%)}.___SText_s4dem_gg_._size_700_s4dem_gg_{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%)}.___SText_s4dem_gg_._size_800_s4dem_gg_{font-size:var(--intergalactic-fs-800, 48px);line-height:var(--intergalactic-lh-800, 117%)}.___SText_s4dem_gg_.__noWrap_s4dem_gg_{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.___SText_s4dem_gg_.__medium_s4dem_gg_{font-weight:var(--intergalactic-medium, 500)}.___SText_s4dem_gg_.__semibold_s4dem_gg_{font-weight:var(--intergalactic-semi-bold, 600)}.___SText_s4dem_gg_.__bold_s4dem_gg_{font-weight:var(--intergalactic-bold, 700)}.___SText_s4dem_gg_.__italic_s4dem_gg_{font-style:italic}.___SText_s4dem_gg_.__monospace_s4dem_gg_{font-family:Consolas,\"Roboto Mono\",Menlo,Courier,monospace}.___SText_s4dem_gg_.__uppercase_s4dem_gg_{text-transform:uppercase}.___SText_s4dem_gg_.__lowercase_s4dem_gg_{text-transform:lowercase}.___SText_s4dem_gg_.__capitalize_s4dem_gg_{text-transform:capitalize}.___SText_s4dem_gg_.__decoration_s4dem_gg_{-webkit-text-decoration:var(--decoration_s4dem);text-decoration:var(--decoration_s4dem)}.___SText_s4dem_gg_.__color_s4dem_gg_{color:var(--color_s4dem)}.___SText_s4dem_gg_.__fontSize_s4dem_gg_{font-size:var(--fontSize_s4dem)}.___SText_s4dem_gg_.__lineHeight_s4dem_gg_{line-height:var(--lineHeight_s4dem)}.___SText_s4dem_gg_.__fontWeight_s4dem_gg_{font-weight:var(--fontWeight_s4dem)}.___SText_s4dem_gg_.__textAlign_s4dem_gg_{text-align:var(--textAlign_s4dem)}.___SText_s4dem_gg_._use_primary_s4dem_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SText_s4dem_gg_._use_secondary_s4dem_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___SText_s4dem_gg_.__disabled_s4dem_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3)}@media (prefers-reduced-motion){.___SText_s4dem_gg_ a{transition:none}}", /*__inner_css_end__*/"s4dem_gg_"),
10
10
  /*__reshadow_css_end__*/
11
11
  {
12
- "__SText": "___SText_1hmt9_gg_",
13
- "_size_400": "_size_400_1hmt9_gg_",
14
- "_size_500": "_size_500_1hmt9_gg_",
15
- "_size_600": "_size_600_1hmt9_gg_",
16
- "_size_700": "_size_700_1hmt9_gg_",
17
- "_size_800": "_size_800_1hmt9_gg_",
18
- "_noWrap": "__noWrap_1hmt9_gg_",
19
- "_medium": "__medium_1hmt9_gg_",
20
- "_semibold": "__semibold_1hmt9_gg_",
21
- "_bold": "__bold_1hmt9_gg_",
22
- "_italic": "__italic_1hmt9_gg_",
23
- "_monospace": "__monospace_1hmt9_gg_",
24
- "_uppercase": "__uppercase_1hmt9_gg_",
25
- "_lowercase": "__lowercase_1hmt9_gg_",
26
- "_capitalize": "__capitalize_1hmt9_gg_",
27
- "_decoration": "__decoration_1hmt9_gg_",
28
- "--decoration": "--decoration_1hmt9",
29
- "_color": "__color_1hmt9_gg_",
30
- "--color": "--color_1hmt9",
31
- "_fontSize": "__fontSize_1hmt9_gg_",
32
- "--fontSize": "--fontSize_1hmt9",
33
- "_lineHeight": "__lineHeight_1hmt9_gg_",
34
- "--lineHeight": "--lineHeight_1hmt9",
35
- "_fontWeight": "__fontWeight_1hmt9_gg_",
36
- "--fontWeight": "--fontWeight_1hmt9",
37
- "_textAlign": "__textAlign_1hmt9_gg_",
38
- "--textAlign": "--textAlign_1hmt9",
39
- "_use_primary": "_use_primary_1hmt9_gg_",
40
- "_use_secondary": "_use_secondary_1hmt9_gg_",
41
- "_disabled": "__disabled_1hmt9_gg_",
42
- "_formatTags": "__formatTags_1hmt9_gg_",
43
- "_ellipsis": "__ellipsis_1hmt9_gg_",
44
- "_trim_end": "_trim_end_1hmt9_gg_",
45
- "_isEllipsized": "__isEllipsized_1hmt9_gg_",
46
- "_maxLine": "__maxLine_1hmt9_gg_",
47
- "--maxLine": "--maxLine_1hmt9",
48
- "_trim_middle": "_trim_middle_1hmt9_gg_",
49
- "_size_100": "_size_100_1hmt9_gg_",
50
- "_size_200": "_size_200_1hmt9_gg_",
51
- "_size_300": "_size_300_1hmt9_gg_"
12
+ "__SText": "___SText_s4dem_gg_",
13
+ "_size_400": "_size_400_s4dem_gg_",
14
+ "_size_500": "_size_500_s4dem_gg_",
15
+ "_size_600": "_size_600_s4dem_gg_",
16
+ "_size_700": "_size_700_s4dem_gg_",
17
+ "_size_800": "_size_800_s4dem_gg_",
18
+ "_noWrap": "__noWrap_s4dem_gg_",
19
+ "_medium": "__medium_s4dem_gg_",
20
+ "_semibold": "__semibold_s4dem_gg_",
21
+ "_bold": "__bold_s4dem_gg_",
22
+ "_italic": "__italic_s4dem_gg_",
23
+ "_monospace": "__monospace_s4dem_gg_",
24
+ "_uppercase": "__uppercase_s4dem_gg_",
25
+ "_lowercase": "__lowercase_s4dem_gg_",
26
+ "_capitalize": "__capitalize_s4dem_gg_",
27
+ "_decoration": "__decoration_s4dem_gg_",
28
+ "--decoration": "--decoration_s4dem",
29
+ "_color": "__color_s4dem_gg_",
30
+ "--color": "--color_s4dem",
31
+ "_fontSize": "__fontSize_s4dem_gg_",
32
+ "--fontSize": "--fontSize_s4dem",
33
+ "_lineHeight": "__lineHeight_s4dem_gg_",
34
+ "--lineHeight": "--lineHeight_s4dem",
35
+ "_fontWeight": "__fontWeight_s4dem_gg_",
36
+ "--fontWeight": "--fontWeight_s4dem",
37
+ "_textAlign": "__textAlign_s4dem_gg_",
38
+ "--textAlign": "--textAlign_s4dem",
39
+ "_use_primary": "_use_primary_s4dem_gg_",
40
+ "_use_secondary": "_use_secondary_s4dem_gg_",
41
+ "_disabled": "__disabled_s4dem_gg_",
42
+ "_formatTags": "__formatTags_s4dem_gg_",
43
+ "_ellipsis": "__ellipsis_s4dem_gg_",
44
+ "_trim_end": "_trim_end_s4dem_gg_",
45
+ "_isEllipsized": "__isEllipsized_s4dem_gg_",
46
+ "_maxLine": "__maxLine_s4dem_gg_",
47
+ "--maxLine": "--maxLine_s4dem",
48
+ "_trim_middle": "_trim_middle_s4dem_gg_",
49
+ "_size_100": "_size_100_s4dem_gg_",
50
+ "_size_200": "_size_200_s4dem_gg_",
51
+ "_size_300": "_size_300_s4dem_gg_"
52
52
  });
53
53
  class TextRoot extends Component {
54
54
  constructor(props) {
@@ -64,7 +64,11 @@ class TextRoot extends Component {
64
64
  this.initEllipsis();
65
65
  }
66
66
  componentDidUpdate(prevProps) {
67
- if (prevProps.ellipsis !== this.asProps.ellipsis) {
67
+ const ellipsisKeys = ['cropPosition', 'maxLine', 'lastRequiredSymbols', 'containerElement', 'recalculateContainerWidth', 'observeChildrenMutations'];
68
+ const hasChanges = ellipsisKeys.some(key => {
69
+ return prevProps[`ellipsis:${key}`] !== this.asProps[`ellipsis:${key}`];
70
+ });
71
+ if (prevProps.ellipsis !== this.asProps.ellipsis || hasChanges) {
68
72
  this.cleanUpEllipsis();
69
73
  this.initEllipsis();
70
74
  }
@@ -80,18 +84,20 @@ class TextRoot extends Component {
80
84
  color,
81
85
  underline,
82
86
  lineThrough,
87
+ hint,
83
88
  hintProps,
84
89
  children,
85
90
  ellipsis,
91
+ ellipsisProps,
86
92
  resolveColor
87
93
  } = this.asProps;
88
94
  const {
89
95
  isEllipsized
90
96
  } = this.state;
91
- const cropPosition = typeof ellipsis === 'object' ? ellipsis.cropPosition ?? 'end' : ellipsis === true ? 'end' : undefined;
92
- let withHint = hintProps !== false;
93
- const maxLineValue = typeof ellipsis === 'object' && ellipsis.maxLine !== undefined ? ellipsis.maxLine : undefined;
94
- if (hintProps === undefined && maxLineValue !== undefined && maxLineValue > 1) {
97
+ const cropPosition = ellipsisProps?.cropPosition ?? 'end';
98
+ let withHint = hint !== false;
99
+ const maxLineValue = ellipsisProps?.maxLine;
100
+ if (hint !== true && hintProps === undefined && maxLineValue !== undefined && maxLineValue > 1) {
95
101
  withHint = false;
96
102
  }
97
103
  return _ref2 = sstyled(styles), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SText, _ref2.cn("SText", {
@@ -101,7 +107,7 @@ class TextRoot extends Component {
101
107
  "ref": this.innerRef,
102
108
  "use:decoration": this.getTextDecoration(underline, lineThrough),
103
109
  "use:color": resolveColor(color),
104
- "use:ellipsis": Boolean(ellipsis),
110
+ "use:ellipsis": ellipsis !== undefined ? ellipsis : Boolean(ellipsisProps),
105
111
  "isEllipsized": isEllipsized,
106
112
  "maxLine": maxLineValue,
107
113
  "trim": cropPosition
@@ -117,9 +123,14 @@ class TextRoot extends Component {
117
123
  });
118
124
  }
119
125
  initEllipsis() {
120
- const ellipsis = this.asProps.ellipsis;
121
- if (ellipsis && this.innerRef.current) {
122
- this.ellipsis = ellipsis instanceof Ellipsis ? ellipsis : new Ellipsis(this.innerRef.current, ellipsis === true ? {} : ellipsis);
126
+ const {
127
+ ellipsis,
128
+ ellipsisProps,
129
+ hint
130
+ } = this.asProps;
131
+ const shouldInit = hint !== false || ellipsisProps?.cropPosition === 'middle';
132
+ if (shouldInit && (ellipsis || ellipsisProps) && this.innerRef.current) {
133
+ this.ellipsis = ellipsis instanceof Ellipsis ? ellipsis : new Ellipsis(this.innerRef.current, ellipsisProps ?? {});
123
134
  this.ellipsis.on('isEllipsized', this.handleEllipsized);
124
135
  }
125
136
  }
@@ -142,8 +153,5 @@ class TextRoot extends Component {
142
153
  _defineProperty(TextRoot, "enhance", [resolveColorEnhance()]);
143
154
  _defineProperty(TextRoot, "styles", styles);
144
155
  _defineProperty(TextRoot, "displayName", 'Text');
145
- _defineProperty(TextRoot, "defaultProps", {
146
- ellipsis: false
147
- });
148
156
  export default createComponent(TextRoot);
149
157
  //# sourceMappingURL=Text.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Text.js","names":["Ellipsis","Hint","Box","Root","sstyled","Component","createComponent","resolveColorEnhance","React","styles","_sstyled","insert","TextRoot","constructor","props","_defineProperty","createRef","isEllipsized","handleEllipsized","bind","componentDidMount","initEllipsis","componentDidUpdate","prevProps","ellipsis","asProps","cleanUpEllipsis","componentWillUnmount","render","_ref","_ref2","SText","color","underline","lineThrough","hintProps","children","resolveColor","state","cropPosition","undefined","withHint","maxLineValue","maxLine","createElement","Fragment","cn","_assignProps","innerRef","getTextDecoration","Boolean","setState","current","on","off","cleanUp"],"sources":["../../src/Text.tsx"],"sourcesContent":["import { Ellipsis, Hint, Box } from '@semcore/base-components';\nimport { Root, sstyled, Component, createComponent } from '@semcore/core';\nimport resolveColorEnhance from '@semcore/core/lib/utils/enhances/resolveColorEnhance';\nimport React from 'react';\n\nimport type { TextProps } from './index';\nimport styles from './style/text.shadow.css';\n\ntype DefaultProps = {\n ellipsis: TextProps['ellipsis'] | false;\n};\n\ntype State = {\n isEllipsized: boolean;\n};\n\nclass TextRoot extends Component<TextProps, typeof TextRoot.enhance, {}, DefaultProps, State> {\n private ellipsis: Ellipsis | null = null;\n private innerRef = React.createRef<HTMLElement | null>();\n\n static enhance = [resolveColorEnhance()] as const;\n static styles = styles;\n static displayName = 'Text';\n\n static defaultProps: DefaultProps = {\n ellipsis: false,\n };\n\n state = {\n isEllipsized: false,\n };\n\n constructor(props: TextProps) {\n super(props);\n\n this.handleEllipsized = this.handleEllipsized.bind(this);\n }\n\n componentDidMount(): void {\n this.initEllipsis();\n }\n\n componentDidUpdate(prevProps: TextProps) {\n if (prevProps.ellipsis !== this.asProps.ellipsis) {\n this.cleanUpEllipsis();\n\n this.initEllipsis();\n }\n }\n\n componentWillUnmount() {\n this.cleanUpEllipsis();\n }\n\n render(): React.ReactNode {\n const SText = Root;\n const { color, underline, lineThrough, hintProps, children, ellipsis, resolveColor } = this.asProps;\n const { isEllipsized } = this.state;\n\n const cropPosition = typeof ellipsis === 'object' ? (ellipsis.cropPosition ?? 'end') : (ellipsis === true ? 'end' : undefined);\n let withHint = hintProps !== false;\n\n const maxLineValue = typeof ellipsis === 'object' && ellipsis.maxLine !== undefined ? ellipsis.maxLine : undefined;\n if (hintProps === undefined && maxLineValue !== undefined && maxLineValue > 1) {\n withHint = false;\n }\n\n return sstyled(styles)(\n <>\n <SText\n render={Box}\n tag='span'\n data-ui-name='Text'\n ref={this.innerRef}\n use:decoration={this.getTextDecoration(underline, lineThrough)}\n use:color={resolveColor(color)}\n use:ellipsis={Boolean(ellipsis)}\n isEllipsized={isEllipsized}\n maxLine={maxLineValue}\n trim={cropPosition}\n />\n {isEllipsized && withHint && <Hint triggerRef={this.innerRef} {...hintProps}>{children}</Hint>}\n </>,\n );\n }\n\n private handleEllipsized(isEllipsized: boolean) {\n this.setState({ isEllipsized: isEllipsized });\n }\n\n private initEllipsis() {\n const ellipsis = this.asProps.ellipsis;\n if (ellipsis && this.innerRef.current) {\n this.ellipsis = ellipsis instanceof Ellipsis ? ellipsis : new Ellipsis(this.innerRef.current, ellipsis === true ? {} : ellipsis);\n\n this.ellipsis.on('isEllipsized', this.handleEllipsized);\n }\n }\n\n private cleanUpEllipsis() {\n this.ellipsis?.off('isEllipsized', this.handleEllipsized);\n this.ellipsis?.cleanUp();\n this.setState({ isEllipsized: false });\n }\n\n private getTextDecoration(underline?: boolean, lineThrough?: boolean) {\n if (underline) {\n return 'underline';\n }\n\n if (lineThrough) {\n return 'line-through';\n }\n }\n}\n\nexport default createComponent(T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AAQ,YAKIH,MAAM;AAAAM,eAAA,CALlBH,QAAQ,iBAMS,MAAM;AAAAG,eAAA,CANvBH,QAAQ,kBAQwB;EAClCY,QAAQ,EAAE;AACZ,CAAC;AA0FH,eAAelB,eAAe,CAACM,QAAQ,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"Text.js","names":["Ellipsis","Hint","Box","Root","sstyled","Component","createComponent","resolveColorEnhance","React","styles","_sstyled","insert","TextRoot","constructor","props","_defineProperty","createRef","isEllipsized","handleEllipsized","bind","componentDidMount","initEllipsis","componentDidUpdate","prevProps","ellipsisKeys","hasChanges","some","key","asProps","ellipsis","cleanUpEllipsis","componentWillUnmount","render","_ref","_ref2","SText","color","underline","lineThrough","hint","hintProps","children","ellipsisProps","resolveColor","state","cropPosition","withHint","maxLineValue","maxLine","undefined","createElement","Fragment","cn","_assignProps","innerRef","getTextDecoration","Boolean","setState","shouldInit","current","on","off","cleanUp"],"sources":["../../src/Text.tsx"],"sourcesContent":["import { Ellipsis, Hint, Box, type EllipsisSettings } from '@semcore/base-components';\nimport { Root, sstyled, Component, createComponent } from '@semcore/core';\nimport resolveColorEnhance from '@semcore/core/lib/utils/enhances/resolveColorEnhance';\nimport React from 'react';\n\nimport type { TextEllipsisProps, TextProps } from './index';\nimport styles from './style/text.shadow.css';\n\ntype State = {\n isEllipsized: boolean;\n};\n\nclass TextRoot extends Component<TextProps, typeof TextRoot.enhance, {}, {}, State> {\n private ellipsis: Ellipsis | null = null;\n private innerRef = React.createRef<HTMLElement | null>();\n\n static enhance = [resolveColorEnhance()] as const;\n static styles = styles;\n static displayName = 'Text';\n\n state = {\n isEllipsized: false,\n };\n\n constructor(props: TextProps) {\n super(props);\n\n this.handleEllipsized = this.handleEllipsized.bind(this);\n }\n\n componentDidMount(): void {\n this.initEllipsis();\n }\n\n componentDidUpdate(prevProps: TextEllipsisProps) {\n const ellipsisKeys: Array<keyof EllipsisSettings> = [\n 'cropPosition',\n 'maxLine',\n 'lastRequiredSymbols',\n 'containerElement',\n 'recalculateContainerWidth',\n 'observeChildrenMutations',\n ];\n\n const hasChanges = ellipsisKeys.some((key) => {\n return prevProps[`ellipsis:${key}`] !== this.asProps[`ellipsis:${key}`];\n });\n\n if (prevProps.ellipsis !== this.asProps.ellipsis || hasChanges) {\n this.cleanUpEllipsis();\n\n this.initEllipsis();\n }\n }\n\n componentWillUnmount() {\n this.cleanUpEllipsis();\n }\n\n render(): React.ReactNode {\n const SText = Root;\n const { color, underline, lineThrough, hint, hintProps, children, ellipsis, ellipsisProps, resolveColor } = this.asProps;\n const { isEllipsized } = this.state;\n\n const cropPosition = ellipsisProps?.cropPosition ?? 'end';\n let withHint = hint !== false;\n\n const maxLineValue = ellipsisProps?.maxLine;\n if (hint !== true && hintProps === undefined && maxLineValue !== undefined && maxLineValue > 1) {\n withHint = false;\n }\n\n return sstyled(styles)(\n <>\n <SText\n render={Box}\n tag='span'\n data-ui-name='Text'\n ref={this.innerRef}\n use:decoration={this.getTextDecoration(underline, lineThrough)}\n use:color={resolveColor(color)}\n use:ellipsis={ellipsis !== undefined ? ellipsis : Boolean(ellipsisProps)}\n isEllipsized={isEllipsized}\n maxLine={maxLineValue}\n trim={cropPosition}\n />\n {isEllipsized && withHint && <Hint triggerRef={this.innerRef} {...hintProps}>{children}</Hint>}\n </>,\n );\n }\n\n private handleEllipsized(isEllipsized: boolean) {\n this.setState({ isEllipsized: isEllipsized });\n }\n\n private initEllipsis() {\n const { ellipsis, ellipsisProps, hint } = this.asProps;\n const shouldInit = hint !== false || ellipsisProps?.cropPosition === 'middle';\n\n if (shouldInit && (ellipsis || ellipsisProps) && this.innerRef.current) {\n this.ellipsis = ellipsis instanceof Ellipsis ? ellipsis : new Ellipsis(this.innerRef.current, ellipsisProps ?? {});\n\n this.ellipsis.on('isEllipsized', this.handleEllipsized);\n }\n }\n\n private cleanUpEllipsis() {\n this.ellipsis?.off('isEllipsized', this.handleEllipsized);\n this.ellipsis?.cleanUp();\n this.setState({ isEllipsized: false });\n }\n\n private getTextDecoration(underline?: boolean, lineThrough?: boolean) {\n if (underline) {\n return 'underline';\n }\n\n if (lineThrough) {\n return 'line-through';\n }\n }\n}\n\nexport default createComponent(TextRoot);\n"],"mappings":";;;AAAA,SAASA,QAAQ,EAAEC,IAAI,EAAEC,GAAG,QAA+B,0BAA0B;AACrF,SAASC,IAAI,EAAEC,OAAO,EAAEC,SAAS,EAAEC,eAAe,QAAQ,eAAe;AACzE,OAAOC,mBAAmB,MAAM,sDAAsD;AACtF,OAAOC,KAAK,MAAM,OAAO;AAAC;AAAA,MAAAC,MAAA,8BAAAC,QAAA,CAAAC,MAAA;AAAA;AAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAS1B,MAAMC,QAAQ,SAASP,SAAS,CAAoD;EAYlFQ,WAAWA,CAACC,KAAgB,EAAE;IAC5B,KAAK,CAACA,KAAK,CAAC;IAACC,eAAA,mBAZqB,IAAI;IAAAA,eAAA,gCACrBP,KAAK,CAACQ,SAAS,CAAqB,CAAC;IAAAD,eAAA,gBAMhD;MACNE,YAAY,EAAE;IAChB,CAAC;IAKC,IAAI,CAACC,gBAAgB,GAAG,IAAI,CAACA,gBAAgB,CAACC,IAAI,CAAC,IAAI,CAAC;EAC1D;EAEAC,iBAAiBA,CAAA,EAAS;IACxB,IAAI,CAACC,YAAY,CAAC,CAAC;EACrB;EAEAC,kBAAkBA,CAACC,SAA4B,EAAE;IAC/C,MAAMC,YAA2C,GAAG,CAClD,cAAc,EACd,SAAS,EACT,qBAAqB,EACrB,kBAAkB,EAClB,2BAA2B,EAC3B,0BAA0B,CAC3B;IAED,MAAMC,UAAU,GAAGD,YAAY,C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AAA,EAAG;IACxB,IAAI,CAACD,QAAQ,EAAEgC,GAAG,CAAC,cAAc,EAAE,IAAI,CAAC3C,gBAAgB,CAAC;IACzD,IAAI,CAACW,QAAQ,EAAEiC,OAAO,CAAC,CAAC;IACxB,IAAI,CAACL,QAAQ,CAAC;MAAExC,YAAY,EAAE;IAAM,CAAC,CAAC;EACxC;EAEQsC,iBAAiBA,CAAClB,SAAmB,EAAEC,WAAqB,EAAE;IACpE,IAAID,SAAS,EAAE;MACb,OAAO,WAAW;IACpB;IAEA,IAAIC,WAAW,EAAE;MACf,OAAO,cAAc;IACvB;EACF;AACF;AAACvB,eAAA,CA7GKH,QAAQ,aAIK,CAACL,mBAAmB,CAAC,CAAC,CAAC;AAAAQ,eAAA,CAJpCH,QAAQ,YAKIH,MAAM;AAAAM,eAAA,CALlBH,QAAQ,iBAMS,MAAM;AAyG7B,eAAeN,eAAe,CAACM,QAAQ,CAAC","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import type { BoxProps, Flex, FlexProps, EllipsisSettings, SimpleHintPopperProps, Ellipsis } from '@semcore/base-components';\nimport type { PropGetterFn, Intergalactic } from '@semcore/core';\nimport type { Property } from 'csstype';\nimport type React from 'react';\n\nexport type TextProps = BoxProps & {\n /** Font size and line-heights */\n size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;\n /**\n * The text will not be wrapped on a new line and will be cut off with ellipsis\n * @deprecated use ellipsis prop instead\n **/\n noWrap?: boolean;\n /** CSS property `font-weight: 700;` */\n bold?: boolean;\n /** CSS property `font-weight: 600;` */\n semibold?: boolean;\n /** CSS property `font-weight: 500;` */\n medium?: boolean;\n /** Italicized text */\n italic?: boolean;\n /** Underlined text */\n underline?: boolean;\n /** CSS property `font-family: monospace;` */\n monospace?: boolean;\n /** Strikethrough text */\n lineThrough?: boolean;\n /** Uppercase text */\n uppercase?: boolean;\n /** Lowercase text */\n lowercase?: boolean;\n /** Capitalized text */\n capitalize?: boolean;\n /** Text color **/\n color?: string;\n /** Custom `font-size` */\n fontSize?: Property.FontSize<any>;\n /** Custom `line-height` */\n lineHeight?: Property.LineHeight<any>;\n /** Custom `font-weight` */\n fontWeight?: Property.FontWeight;\n /** Text alignment */\n textAlign?: Property.TextAlign;\n /** Enforces text color */\n use?: 'primary' | 'secondary';\n /** Makes text semi-transparent to indicate disabled state */\n disabled?: boolean;\n} & (\n {\n /** Enable formatting/styling for all nested HTML tags with our default styles for them */\n formatTags?: boolean;\n ellipsis?: never;\n } |\n {\n /** The text will not be wrapped on a new line and will be cut off with ellipsis. Also, it will show a hint with full text. */\n ellipsis?: true | Readonly<EllipsisSettings> | Ellipsis;\n /** Settings for a hint with full text (cropped by ellipsis) */\n hintProps?: Partial<Omit<SimpleHintPopperProps, 'children'>> | false;\n }\n );\n\nexport type ListProps = TextProps & {\n /** Marker of the entire list\n * @default • */\n marker?: React.ReactNode;\n};\n\nexport type ListItemProps = TextProps & {\n /** Individual marker of a list item */\n marker?: React.ReactNode;\n};\n\nexport type ListItemContentProps = FlexProps;\n\nexport type ListContext = {\n getItemProps: PropGetterFn;\n};\n\nexport type BlockquoteProps = BoxProps & {\n /** Source of the quote */\n author?: React.ReactNode;\n};\n\ndeclare const Item: Intergalactic.Component<'li', ListItemProps> & {\n Content: Intergalactic.Component<typeof Flex, ListItemContentProps>;\n};\n\ndeclare const List: Intergalactic.Component<'ul', ListProps> & {\n Item: typeof Item;\n};\n\ndeclare const Text: Intergalactic.Component<'span', TextProps>;\n\ndeclare const Blockquote: Intergalactic.Component<'blockquote', BlockquoteProps>;\n\nexport { Text, List, Blockquote };\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import type { BoxProps, Flex, FlexProps, EllipsisSettings, SimpleHintPopperProps, Ellipsis } from '@semcore/base-components';\nimport type { PropGetterFn, Intergalactic } from '@semcore/core';\nimport type { Property } from 'csstype';\nimport type React from 'react';\n\nexport type TextHintProps = {\n /** Manually enabled/disabled Hint */\n hint?: boolean;\n} & {\n /** Settings for a hint with full text (cropped by ellipsis) */\n [K in keyof SimpleHintPopperProps as `hint:${string & K}`]?: SimpleHintPopperProps[K];\n};\n\n/** The text will not be wrapped on a new line and will be cut off with ellipsis. Also, it will show a hint with full text. */\nexport type TextEllipsisProps = {\n /** Manually enabled/disabled Ellipsis or provide an instance of it. */\n ellipsis?: (boolean | Ellipsis);\n} & {\n /** Settings for an Ellipsis */\n [K in keyof EllipsisSettings as `ellipsis:${string & K}`]?: EllipsisSettings[K];\n};\n\nexport type BaseTextProps = {\n /** Font size and line-heights */\n size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;\n /**\n * The text will not be wrapped on a new line and will be cut off with ellipsis\n * @deprecated use ellipsis prop instead\n **/\n noWrap?: boolean;\n /** CSS property `font-weight: 700;` */\n bold?: boolean;\n /** CSS property `font-weight: 600;` */\n semibold?: boolean;\n /** CSS property `font-weight: 500;` */\n medium?: boolean;\n /** Italicized text */\n italic?: boolean;\n /** Underlined text */\n underline?: boolean;\n /** CSS property `font-family: monospace;` */\n monospace?: boolean;\n /** Strikethrough text */\n lineThrough?: boolean;\n /** Uppercase text */\n uppercase?: boolean;\n /** Lowercase text */\n lowercase?: boolean;\n /** Capitalized text */\n capitalize?: boolean;\n /** Text color **/\n color?: string;\n /** Custom `font-size` */\n fontSize?: Property.FontSize<any>;\n /** Custom `line-height` */\n lineHeight?: Property.LineHeight<any>;\n /** Custom `font-weight` */\n fontWeight?: Property.FontWeight;\n /** Text alignment */\n textAlign?: Property.TextAlign;\n /** Enforces text color */\n use?: 'primary' | 'secondary';\n /** Makes text semi-transparent to indicate disabled state */\n disabled?: boolean;\n};\n\nexport type TextProps = BoxProps & BaseTextProps & (\n {\n /** Enable formatting/styling for all nested HTML tags with our default styles for them */\n formatTags?: boolean;\n ellipsis?: never;\n ellipsisProps?: never;\n hint?: never;\n hintProps?: never;\n } |\n ({\n formatTags?: never;\n // /** Settings for a hint with full text (cropped by ellipsis) */\n // hintProps?: Partial<Omit<SimpleHintPopperProps, 'children'>> | false;\n } & TextHintProps & TextEllipsisProps)\n);\n\nexport type ListProps = TextProps & {\n /** Marker of the entire list\n * @default • */\n marker?: React.ReactNode;\n};\n\nexport type ListItemProps = TextProps & {\n /** Individual marker of a list item */\n marker?: React.ReactNode;\n};\n\nexport type ListItemContentProps = FlexProps;\n\nexport type ListContext = {\n getItemProps: PropGetterFn;\n};\n\nexport type BlockquoteProps = BoxProps & {\n /** Source of the quote */\n author?: React.ReactNode;\n};\n\ndeclare const Item: Intergalactic.Component<'li', ListItemProps> & {\n Content: Intergalactic.Component<typeof Flex, ListItemContentProps>;\n};\n\ndeclare const List: Intergalactic.Component<'ul', ListProps> & {\n Item: typeof Item;\n};\n\ndeclare const Text: Intergalactic.Component<'span', TextProps>;\n\ndeclare const Blockquote: Intergalactic.Component<'blockquote', BlockquoteProps>;\n\nexport { Text, List, Blockquote };\n"],"mappings":"","ignoreList":[]}
@@ -232,6 +232,8 @@ SText[ellipsis] {
232
232
  text-overflow: ellipsis;
233
233
  white-space: pre;
234
234
  display: inline-block;
235
+ line-height: unset;
236
+ vertical-align: top;
235
237
 
236
238
  &[trim='end'][isEllipsized]::after {
237
239
  content: '';
package/lib/esm/Text.mjs CHANGED
@@ -8,51 +8,51 @@ const styles = (
8
8
  /*__reshadow_css_start__*/
9
9
  (sstyled.insert(
10
10
  /*__inner_css_start__*/
11
- '.___SText_1hmt9_gg_{padding:0;margin:0}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ abbr{color:var(--intergalactic-text-secondary, #6c6e79);-webkit-text-decoration:underline dashed var(--intergalactic-text-secondary, #6c6e79);text-decoration:underline dashed var(--intergalactic-text-secondary, #6c6e79)}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ abbr:active,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ abbr:focus{outline:0;color:var(--intergalactic-text-hint-hover-active, #484a54);-webkit-text-decoration:underline dashed var(--intergalactic-text-hint-hover-active, #484a54);text-decoration:underline dashed var(--intergalactic-text-hint-hover-active, #484a54)}@media (hover:hover){.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ abbr:hover{outline:0;color:var(--intergalactic-text-hint-hover-active, #484a54);-webkit-text-decoration:underline dashed var(--intergalactic-text-hint-hover-active, #484a54);text-decoration:underline dashed var(--intergalactic-text-hint-hover-active, #484a54)}}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ a{display:inline;background:0 0;outline:0;-webkit-text-decoration:none;text-decoration:none;color:var(--intergalactic-text-link, #006dca);border-bottom-width:1px;border-bottom-style:solid;border-color:transparent}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ a:active{outline:0;-webkit-text-decoration:none;text-decoration:none;color:var(--intergalactic-text-link-hover-active, #044792);border-color:var(--intergalactic-text-link-hover-active, #044792)}@media (hover:hover){.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ a:hover{outline:0;-webkit-text-decoration:none;text-decoration:none;color:var(--intergalactic-text-link-hover-active, #044792);border-color:var(--intergalactic-text-link-hover-active, #044792)}}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ a:focus{outline-color:var(--intergalactic-keyboard-focus-outline, #008ff8);outline-style:solid;outline-width:2px;outline-offset:2px;transition-duration:calc(var(--intergalactic-duration-extra-fast, 100)*1ms);transition-timing-function:ease-in-out;transition-property:outline-color,outline-width,outline-offset}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ code,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ pre{font-family:Consolas,"Roboto Mono",Menlo,Courier,monospace}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ blockquote{position:relative;padding-left:51px;font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%);font-style:italic}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ blockquote:before{content:url(data:image/svg+xml;base64,PHN2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C45NDcyNjZaTTI0LjY2MjEgMS4wNDY4OFYyLjMwODU5QzIyLjQyNjQgMy41OTI0NSAyMC45NTQ0IDQuNzQzNDkgMjAuMjQ2MSA1Ljc2MTcyQzE5LjUzNzggNi43Nzk5NSAxOS4xODM2IDcuOTc1MjYgMTkuMTgzNiA5LjM0NzY2QzE5LjE4MzYgOS45Njc0NSAxOS4zMDUzIDEwLjQzMjMgMTkuNTQ4OCAxMC43NDIyQzE5Ljc5MjMgMTEuMDUyMSAyMC4wNDY5IDExLjIwNyAyMC4zMTI1IDExLjIwN0MyMC41NTYgMTEuMjA3IDIwLjkyMTIgMTEuMTE4NSAyMS40MDgyIDEwLjk0MTRDMjEuODk1MiAxMC43NjQzIDIyLjM4MjIgMTAuNjc1OCAyMi44NjkxIDEwLjY3NThDMjMuNzc2NyAxMC42NzU4IDI0LjU2MjUgMTEuMDA3OCAyNS4yMjY2IDExLjY3MTlDMjUuOTEyOCAxMi4zMTM4IDI2LjI1NTkgMTMuMTEwNyAyNi4yNTU5IDE0LjA2MjVDMjYuMjU1OSAxNS4xNDcxIDI1LjgyNDIgMTYuMDg3OSAyNC45NjA5IDE2Ljg4NDhDMjQuMTE5OCAxNy42ODE2IDIzLjA3OTQgMTguMDgwMSAyMS44Mzk4IDE4LjA4MDFDMjAuMzc4OSAxOC4wODAxIDE5LjA2MTggMTcuNDQ5MiAxNy44ODg3IDE2LjE4NzVDMTYuNzE1NSAxNC45MjU4IDE2LjEyODkgMTMuMzU0MiAxNi4xMjg5IDExLjQ3MjdDMTYuMTI4OSA5LjE0ODQ0IDE2Ljg3MDQgNy4wMzQ1MSAxOC4zNTM1IDUuMTMwODZDMTkuODM2NiAzLjIwNTA4IDIxLjkzOTUgMS44NDM3NSAyNC42NjIxIDEuMDQ2ODhaIiBmaWxsPSIjQTlBQkI2Ii8+Cjwvc3ZnPg==);display:inline-block;position:absolute;left:0;color:var(--intergalactic-icon-secondary-neutral, #a9abb6);font-family:Georgia,Times,"Times New Roman",serif}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ blockquote cite{display:block;font-style:normal;margin-top:var(--intergalactic-spacing-4x, 16px);color:var(--intergalactic-text-secondary, #6c6e79);font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]),.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]){margin:var(--intergalactic-spacing-2x, 8px)0;padding:0;list-style:none;position:relative}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]) li:not(.___SText_1hmt9_gg_):before,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]) li:not(.___SText_1hmt9_gg_):before{position:absolute;left:0;color:var(--intergalactic-text-secondary, #6c6e79)}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]) li:not(.___SText_1hmt9_gg_)+li:not(.___SText_1hmt9_gg_),.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]) li:not(.___SText_1hmt9_gg_)+li:not(.___SText_1hmt9_gg_){margin:var(--intergalactic-spacing-2x, 8px)0 0 0}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]){counter-reset:item 0}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]) li:not(.___SText_1hmt9_gg_):before{counter-increment:item;content:counters(item,".")}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]) li:not(.___SText_1hmt9_gg_):before{content:"";background-color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]):has(+p),.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]):has(+p){margin-bottom:var(--intergalactic-spacing-4x, 16px)}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h1{font-size:var(--intergalactic-fs-800, 48px);line-height:var(--intergalactic-lh-800, 117%);font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-6x, 24px)0}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h1:only-child,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h2:only-child,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h3:only-child,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h4:only-child,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h5:only-child,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h6:only-child{margin-bottom:0}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h2{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%);font-weight:var(--intergalactic-semi-bold, 600)}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h3{font-size:var(--intergalactic-fs-600, 32px);line-height:var(--intergalactic-lh-600, 125%);font-weight:var(--intergalactic-semi-bold, 600)}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h4{font-size:var(--intergalactic-fs-500, 24px);line-height:var(--intergalactic-lh-500, 117%);font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-3x, 12px)0}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h5{font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%);font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-2x, 8px)0}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h6{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700);margin:0 0 var(--intergalactic-spacing-1x, 4px)0}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h1 small,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h2 small,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h3 small,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h4 small,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h5 small,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h6 small{color:var(--intergalactic-text-secondary, #6c6e79);font-weight:300;font-size:100%}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ li,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ p{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h2,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ h3,.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ p{margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ p:last-child,.___SText_1hmt9_gg_._size_100_1hmt9_gg_.__formatTags_1hmt9_gg_ p:last-child,.___SText_1hmt9_gg_._size_200_1hmt9_gg_.__formatTags_1hmt9_gg_ p:last-child,.___SText_1hmt9_gg_._size_300_1hmt9_gg_.__formatTags_1hmt9_gg_ p:last-child{margin-bottom:0}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ol ol li,.___SText_1hmt9_gg_._size_100_1hmt9_gg_.__formatTags_1hmt9_gg_ ol ol li{padding-left:calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px))}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ol ol ol li,.___SText_1hmt9_gg_._size_100_1hmt9_gg_.__formatTags_1hmt9_gg_ ol ol ol li,.___SText_1hmt9_gg_._size_200_1hmt9_gg_.__formatTags_1hmt9_gg_ ol ol ol li,.___SText_1hmt9_gg_._size_300_1hmt9_gg_.__formatTags_1hmt9_gg_ ol ol ol li{padding-left:calc(var(--intergalactic-spacing-8x, 32px) + var(--intergalactic-spacing-1x, 4px) + var(--intergalactic-spacing-05x, 2px))}.___SText_1hmt9_gg_.__formatTags_1hmt9_gg_ ul li:before{width:4px;height:4px;border-radius:50%;margin-top:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-left:var(--intergalactic-spacing-05x, 2px)}.___SText_1hmt9_gg_.__ellipsis_1hmt9_gg_{overflow:hidden;text-overflow:ellipsis;white-space:pre;display:inline-block}.___SText_1hmt9_gg_.__ellipsis_1hmt9_gg_._trim_end_1hmt9_gg_.__isEllipsized_1hmt9_gg_::after{content:"";display:block}.___SText_1hmt9_gg_.__ellipsis_1hmt9_gg_.__maxLine_1hmt9_gg_{-webkit-line-clamp:var(--maxLine_1hmt9);display:-webkit-box;-webkit-box-orient:vertical;white-space:normal;word-wrap:break-word}.___SText_1hmt9_gg_.__ellipsis_1hmt9_gg_._trim_middle_1hmt9_gg_{text-overflow:initial}.___SText_1hmt9_gg_._size_100_1hmt9_gg_,.___SText_1hmt9_gg_._size_100_1hmt9_gg_.__formatTags_1hmt9_gg_ li,.___SText_1hmt9_gg_._size_100_1hmt9_gg_.__formatTags_1hmt9_gg_ p{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%)}.___SText_1hmt9_gg_._size_100_1hmt9_gg_.__formatTags_1hmt9_gg_ p{margin:0 0 calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_1hmt9_gg_._size_100_1hmt9_gg_.__formatTags_1hmt9_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_1hmt9_gg_._size_100_1hmt9_gg_.__formatTags_1hmt9_gg_ ul li:before{width:3px;height:3px;border-radius:50%;margin-top:var(--intergalactic-spacing-2x, 8px);margin-left:var(--intergalactic-spacing-05x, 2px)}.___SText_1hmt9_gg_._size_200_1hmt9_gg_,.___SText_1hmt9_gg_._size_200_1hmt9_gg_.__formatTags_1hmt9_gg_ li,.___SText_1hmt9_gg_._size_200_1hmt9_gg_.__formatTags_1hmt9_gg_ p{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SText_1hmt9_gg_._size_200_1hmt9_gg_.__formatTags_1hmt9_gg_ p{margin:0 0 var(--intergalactic-spacing-3x, 12px)0}.___SText_1hmt9_gg_._size_200_1hmt9_gg_.__formatTags_1hmt9_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_1hmt9_gg_._size_200_1hmt9_gg_.__formatTags_1hmt9_gg_ ol ol li{padding-left:calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px))}.___SText_1hmt9_gg_._size_200_1hmt9_gg_.__formatTags_1hmt9_gg_ ul li:before{width:4px;height:4px;border-radius:50%;margin-top:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-left:var(--intergalactic-spacing-05x, 2px)}.___SText_1hmt9_gg_._size_300_1hmt9_gg_,.___SText_1hmt9_gg_._size_300_1hmt9_gg_.__formatTags_1hmt9_gg_ li,.___SText_1hmt9_gg_._size_300_1hmt9_gg_.__formatTags_1hmt9_gg_ p{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SText_1hmt9_gg_._size_300_1hmt9_gg_.__formatTags_1hmt9_gg_ p{margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SText_1hmt9_gg_._size_300_1hmt9_gg_.__formatTags_1hmt9_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_1hmt9_gg_._size_300_1hmt9_gg_.__formatTags_1hmt9_gg_ ol ol li{padding-left:calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px))}.___SText_1hmt9_gg_._size_300_1hmt9_gg_.__formatTags_1hmt9_gg_ ul li:before{width:5px;height:5px;border-radius:50%;margin-top:calc(var(--intergalactic-spacing-2x, 8px) + var(--intergalactic-spacing-05x, 2px));margin-left:var(--intergalactic-spacing-05x, 2px)}.___SText_1hmt9_gg_._size_400_1hmt9_gg_{font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%)}.___SText_1hmt9_gg_._size_500_1hmt9_gg_{font-size:var(--intergalactic-fs-500, 24px);line-height:var(--intergalactic-lh-500, 117%)}.___SText_1hmt9_gg_._size_600_1hmt9_gg_{font-size:var(--intergalactic-fs-600, 32px);line-height:var(--intergalactic-lh-600, 125%)}.___SText_1hmt9_gg_._size_700_1hmt9_gg_{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%)}.___SText_1hmt9_gg_._size_800_1hmt9_gg_{font-size:var(--intergalactic-fs-800, 48px);line-height:var(--intergalactic-lh-800, 117%)}.___SText_1hmt9_gg_.__noWrap_1hmt9_gg_{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.___SText_1hmt9_gg_.__medium_1hmt9_gg_{font-weight:var(--intergalactic-medium, 500)}.___SText_1hmt9_gg_.__semibold_1hmt9_gg_{font-weight:var(--intergalactic-semi-bold, 600)}.___SText_1hmt9_gg_.__bold_1hmt9_gg_{font-weight:var(--intergalactic-bold, 700)}.___SText_1hmt9_gg_.__italic_1hmt9_gg_{font-style:italic}.___SText_1hmt9_gg_.__monospace_1hmt9_gg_{font-family:Consolas,"Roboto Mono",Menlo,Courier,monospace}.___SText_1hmt9_gg_.__uppercase_1hmt9_gg_{text-transform:uppercase}.___SText_1hmt9_gg_.__lowercase_1hmt9_gg_{text-transform:lowercase}.___SText_1hmt9_gg_.__capitalize_1hmt9_gg_{text-transform:capitalize}.___SText_1hmt9_gg_.__decoration_1hmt9_gg_{-webkit-text-decoration:var(--decoration_1hmt9);text-decoration:var(--decoration_1hmt9)}.___SText_1hmt9_gg_.__color_1hmt9_gg_{color:var(--color_1hmt9)}.___SText_1hmt9_gg_.__fontSize_1hmt9_gg_{font-size:var(--fontSize_1hmt9)}.___SText_1hmt9_gg_.__lineHeight_1hmt9_gg_{line-height:var(--lineHeight_1hmt9)}.___SText_1hmt9_gg_.__fontWeight_1hmt9_gg_{font-weight:var(--fontWeight_1hmt9)}.___SText_1hmt9_gg_.__textAlign_1hmt9_gg_{text-align:var(--textAlign_1hmt9)}.___SText_1hmt9_gg_._use_primary_1hmt9_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SText_1hmt9_gg_._use_secondary_1hmt9_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___SText_1hmt9_gg_.__disabled_1hmt9_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3)}@media (prefers-reduced-motion){.___SText_1hmt9_gg_ a{transition:none}}',
11
+ '.___SText_s4dem_gg_{padding:0;margin:0}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ abbr{color:var(--intergalactic-text-secondary, #6c6e79);-webkit-text-decoration:underline dashed var(--intergalactic-text-secondary, #6c6e79);text-decoration:underline dashed var(--intergalactic-text-secondary, #6c6e79)}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ abbr:active,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ abbr:focus{outline:0;color:var(--intergalactic-text-hint-hover-active, #484a54);-webkit-text-decoration:underline dashed var(--intergalactic-text-hint-hover-active, #484a54);text-decoration:underline dashed var(--intergalactic-text-hint-hover-active, #484a54)}@media (hover:hover){.___SText_s4dem_gg_.__formatTags_s4dem_gg_ abbr:hover{outline:0;color:var(--intergalactic-text-hint-hover-active, #484a54);-webkit-text-decoration:underline dashed var(--intergalactic-text-hint-hover-active, #484a54);text-decoration:underline dashed var(--intergalactic-text-hint-hover-active, #484a54)}}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ a{display:inline;background:0 0;outline:0;-webkit-text-decoration:none;text-decoration:none;color:var(--intergalactic-text-link, #006dca);border-bottom-width:1px;border-bottom-style:solid;border-color:transparent}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ a:active{outline:0;-webkit-text-decoration:none;text-decoration:none;color:var(--intergalactic-text-link-hover-active, #044792);border-color:var(--intergalactic-text-link-hover-active, #044792)}@media (hover:hover){.___SText_s4dem_gg_.__formatTags_s4dem_gg_ a:hover{outline:0;-webkit-text-decoration:none;text-decoration:none;color:var(--intergalactic-text-link-hover-active, #044792);border-color:var(--intergalactic-text-link-hover-active, #044792)}}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ a:focus{outline-color:var(--intergalactic-keyboard-focus-outline, #008ff8);outline-style:solid;outline-width:2px;outline-offset:2px;transition-duration:calc(var(--intergalactic-duration-extra-fast, 100)*1ms);transition-timing-function:ease-in-out;transition-property:outline-color,outline-width,outline-offset}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ code,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ pre{font-family:Consolas,"Roboto Mono",Menlo,Courier,monospace}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ blockquote{position:relative;padding-left:51px;font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%);font-style:italic}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ blockquote:before{content:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNyIgaGVpZ2h0PSIxOSIgdmlld0JveD0iMCAwIDI3IDE5IiBmaWxsPSJub25lIj4KPHBhdGggZD0iTTguODI0MjIgMC45NDcyNjZWMi4zMDg1OUM2Ljg3NjMgMy4zMjY4MiA1LjQ4MTc3IDQuMzg5MzIgNC42NDA2MiA1LjQ5NjA5QzMuNzk5NDggNi42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ljc5MjMgMTEuMDUyMSAyMC4wNDY5IDExLjIwNyAyMC4zMTI1IDExLjIwN0MyMC41NTYgMTEuMjA3IDIwLjkyMTIgMTEuMTE4NSAyMS40MDgyIDEwLjk0MTRDMjEuODk1MiAxMC43NjQzIDIyLjM4MjIgMTAuNjc1OCAyMi44NjkxIDEwLjY3NThDMjMuNzc2NyAxMC42NzU4IDI0LjU2MjUgMTEuMDA3OCAyNS4yMjY2IDExLjY3MTlDMjUuOTEyOCAxMi4zMTM4IDI2LjI1NTkgMTMuMTEwNyAyNi4yNTU5IDE0LjA2MjVDMjYuMjU1OSAxNS4xNDcxIDI1LjgyNDIgMTYuMDg3OSAyNC45NjA5IDE2Ljg4NDhDMjQuMTE5OCAxNy42ODE2IDIzLjA3OTQgMTguMDgwMSAyMS44Mzk4IDE4LjA4MDFDMjAuMzc4OSAxOC4wODAxIDE5LjA2MTggMTcuNDQ5MiAxNy44ODg3IDE2LjE4NzVDMTYuNzE1NSAxNC45MjU4IDE2LjEyODkgMTMuMzU0MiAxNi4xMjg5IDExLjQ3MjdDMTYuMTI4OSA5LjE0ODQ0IDE2Ljg3MDQgNy4wMzQ1MSAxOC4zNTM1IDUuMTMwODZDMTkuODM2NiAzLjIwNTA4IDIxLjkzOTUgMS44NDM3NSAyNC42NjIxIDEuMDQ2ODhaIiBmaWxsPSIjQTlBQkI2Ii8+Cjwvc3ZnPg==);display:inline-block;position:absolute;left:0;color:var(--intergalactic-icon-secondary-neutral, #a9abb6);font-family:Georgia,Times,"Times New Roman",serif}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ blockquote cite{display:block;font-style:normal;margin-top:var(--intergalactic-spacing-4x, 16px);color:var(--intergalactic-text-secondary, #6c6e79);font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]),.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]){margin:var(--intergalactic-spacing-2x, 8px)0;padding:0;list-style:none;position:relative}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]) li:not(.___SText_s4dem_gg_):before,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]) li:not(.___SText_s4dem_gg_):before{position:absolute;left:0;color:var(--intergalactic-text-secondary, #6c6e79)}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]) li:not(.___SText_s4dem_gg_)+li:not(.___SText_s4dem_gg_),.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]) li:not(.___SText_s4dem_gg_)+li:not(.___SText_s4dem_gg_){margin:var(--intergalactic-spacing-2x, 8px)0 0 0}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]){counter-reset:item 0}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]) li:not(.___SText_s4dem_gg_):before{counter-increment:item;content:counters(item,".")}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]) li:not(.___SText_s4dem_gg_):before{content:"";background-color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]):has(+p),.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]):has(+p){margin-bottom:var(--intergalactic-spacing-4x, 16px)}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h1{font-size:var(--intergalactic-fs-800, 48px);line-height:var(--intergalactic-lh-800, 117%);font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-6x, 24px)0}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h1:only-child,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h2:only-child,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h3:only-child,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h4:only-child,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h5:only-child,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h6:only-child{margin-bottom:0}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h2{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%);font-weight:var(--intergalactic-semi-bold, 600)}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h3{font-size:var(--intergalactic-fs-600, 32px);line-height:var(--intergalactic-lh-600, 125%);font-weight:var(--intergalactic-semi-bold, 600)}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h4{font-size:var(--intergalactic-fs-500, 24px);line-height:var(--intergalactic-lh-500, 117%);font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-3x, 12px)0}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h5{font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%);font-weight:var(--intergalactic-semi-bold, 600);margin:0 0 var(--intergalactic-spacing-2x, 8px)0}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h6{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%);font-weight:var(--intergalactic-bold, 700);margin:0 0 var(--intergalactic-spacing-1x, 4px)0}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h1 small,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h2 small,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h3 small,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h4 small,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h5 small,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h6 small{color:var(--intergalactic-text-secondary, #6c6e79);font-weight:300;font-size:100%}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ li,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ p{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h2,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ h3,.___SText_s4dem_gg_.__formatTags_s4dem_gg_ p{margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ p:last-child,.___SText_s4dem_gg_._size_100_s4dem_gg_.__formatTags_s4dem_gg_ p:last-child,.___SText_s4dem_gg_._size_200_s4dem_gg_.__formatTags_s4dem_gg_ p:last-child,.___SText_s4dem_gg_._size_300_s4dem_gg_.__formatTags_s4dem_gg_ p:last-child{margin-bottom:0}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ol ol li,.___SText_s4dem_gg_._size_100_s4dem_gg_.__formatTags_s4dem_gg_ ol ol li{padding-left:calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px))}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ol ol ol li,.___SText_s4dem_gg_._size_100_s4dem_gg_.__formatTags_s4dem_gg_ ol ol ol li,.___SText_s4dem_gg_._size_200_s4dem_gg_.__formatTags_s4dem_gg_ ol ol ol li,.___SText_s4dem_gg_._size_300_s4dem_gg_.__formatTags_s4dem_gg_ ol ol ol li{padding-left:calc(var(--intergalactic-spacing-8x, 32px) + var(--intergalactic-spacing-1x, 4px) + var(--intergalactic-spacing-05x, 2px))}.___SText_s4dem_gg_.__formatTags_s4dem_gg_ ul li:before{width:4px;height:4px;border-radius:50%;margin-top:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-left:var(--intergalactic-spacing-05x, 2px)}.___SText_s4dem_gg_.__ellipsis_s4dem_gg_{overflow:hidden;text-overflow:ellipsis;white-space:pre;display:inline-block;line-height:inherit;vertical-align:top}.___SText_s4dem_gg_.__ellipsis_s4dem_gg_._trim_end_s4dem_gg_.__isEllipsized_s4dem_gg_::after{content:"";display:block}.___SText_s4dem_gg_.__ellipsis_s4dem_gg_.__maxLine_s4dem_gg_{-webkit-line-clamp:var(--maxLine_s4dem);display:-webkit-box;-webkit-box-orient:vertical;white-space:normal;word-wrap:break-word}.___SText_s4dem_gg_.__ellipsis_s4dem_gg_._trim_middle_s4dem_gg_{text-overflow:initial}.___SText_s4dem_gg_._size_100_s4dem_gg_,.___SText_s4dem_gg_._size_100_s4dem_gg_.__formatTags_s4dem_gg_ li,.___SText_s4dem_gg_._size_100_s4dem_gg_.__formatTags_s4dem_gg_ p{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%)}.___SText_s4dem_gg_._size_100_s4dem_gg_.__formatTags_s4dem_gg_ p{margin:0 0 calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_s4dem_gg_._size_100_s4dem_gg_.__formatTags_s4dem_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_s4dem_gg_._size_100_s4dem_gg_.__formatTags_s4dem_gg_ ul li:before{width:3px;height:3px;border-radius:50%;margin-top:var(--intergalactic-spacing-2x, 8px);margin-left:var(--intergalactic-spacing-05x, 2px)}.___SText_s4dem_gg_._size_200_s4dem_gg_,.___SText_s4dem_gg_._size_200_s4dem_gg_.__formatTags_s4dem_gg_ li,.___SText_s4dem_gg_._size_200_s4dem_gg_.__formatTags_s4dem_gg_ p{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SText_s4dem_gg_._size_200_s4dem_gg_.__formatTags_s4dem_gg_ p{margin:0 0 var(--intergalactic-spacing-3x, 12px)0}.___SText_s4dem_gg_._size_200_s4dem_gg_.__formatTags_s4dem_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_s4dem_gg_._size_200_s4dem_gg_.__formatTags_s4dem_gg_ ol ol li{padding-left:calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px))}.___SText_s4dem_gg_._size_200_s4dem_gg_.__formatTags_s4dem_gg_ ul li:before{width:4px;height:4px;border-radius:50%;margin-top:calc(var(--intergalactic-spacing-2x, 8px) - 1px);margin-left:var(--intergalactic-spacing-05x, 2px)}.___SText_s4dem_gg_._size_300_s4dem_gg_,.___SText_s4dem_gg_._size_300_s4dem_gg_.__formatTags_s4dem_gg_ li,.___SText_s4dem_gg_._size_300_s4dem_gg_.__formatTags_s4dem_gg_ p{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SText_s4dem_gg_._size_300_s4dem_gg_.__formatTags_s4dem_gg_ p{margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SText_s4dem_gg_._size_300_s4dem_gg_.__formatTags_s4dem_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_s4dem_gg_._size_300_s4dem_gg_.__formatTags_s4dem_gg_ ol ol li{padding-left:calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px))}.___SText_s4dem_gg_._size_300_s4dem_gg_.__formatTags_s4dem_gg_ ul li:before{width:5px;height:5px;border-radius:50%;margin-top:calc(var(--intergalactic-spacing-2x, 8px) + var(--intergalactic-spacing-05x, 2px));margin-left:var(--intergalactic-spacing-05x, 2px)}.___SText_s4dem_gg_._size_400_s4dem_gg_{font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%)}.___SText_s4dem_gg_._size_500_s4dem_gg_{font-size:var(--intergalactic-fs-500, 24px);line-height:var(--intergalactic-lh-500, 117%)}.___SText_s4dem_gg_._size_600_s4dem_gg_{font-size:var(--intergalactic-fs-600, 32px);line-height:var(--intergalactic-lh-600, 125%)}.___SText_s4dem_gg_._size_700_s4dem_gg_{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%)}.___SText_s4dem_gg_._size_800_s4dem_gg_{font-size:var(--intergalactic-fs-800, 48px);line-height:var(--intergalactic-lh-800, 117%)}.___SText_s4dem_gg_.__noWrap_s4dem_gg_{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.___SText_s4dem_gg_.__medium_s4dem_gg_{font-weight:var(--intergalactic-medium, 500)}.___SText_s4dem_gg_.__semibold_s4dem_gg_{font-weight:var(--intergalactic-semi-bold, 600)}.___SText_s4dem_gg_.__bold_s4dem_gg_{font-weight:var(--intergalactic-bold, 700)}.___SText_s4dem_gg_.__italic_s4dem_gg_{font-style:italic}.___SText_s4dem_gg_.__monospace_s4dem_gg_{font-family:Consolas,"Roboto Mono",Menlo,Courier,monospace}.___SText_s4dem_gg_.__uppercase_s4dem_gg_{text-transform:uppercase}.___SText_s4dem_gg_.__lowercase_s4dem_gg_{text-transform:lowercase}.___SText_s4dem_gg_.__capitalize_s4dem_gg_{text-transform:capitalize}.___SText_s4dem_gg_.__decoration_s4dem_gg_{-webkit-text-decoration:var(--decoration_s4dem);text-decoration:var(--decoration_s4dem)}.___SText_s4dem_gg_.__color_s4dem_gg_{color:var(--color_s4dem)}.___SText_s4dem_gg_.__fontSize_s4dem_gg_{font-size:var(--fontSize_s4dem)}.___SText_s4dem_gg_.__lineHeight_s4dem_gg_{line-height:var(--lineHeight_s4dem)}.___SText_s4dem_gg_.__fontWeight_s4dem_gg_{font-weight:var(--fontWeight_s4dem)}.___SText_s4dem_gg_.__textAlign_s4dem_gg_{text-align:var(--textAlign_s4dem)}.___SText_s4dem_gg_._use_primary_s4dem_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SText_s4dem_gg_._use_secondary_s4dem_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___SText_s4dem_gg_.__disabled_s4dem_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3)}@media (prefers-reduced-motion){.___SText_s4dem_gg_ a{transition:none}}',
12
12
  /*__inner_css_end__*/
13
- "1hmt9_gg_"
13
+ "s4dem_gg_"
14
14
  ), /*__reshadow_css_end__*/
15
15
  {
16
- "__SText": "___SText_1hmt9_gg_",
17
- "_size_400": "_size_400_1hmt9_gg_",
18
- "_size_500": "_size_500_1hmt9_gg_",
19
- "_size_600": "_size_600_1hmt9_gg_",
20
- "_size_700": "_size_700_1hmt9_gg_",
21
- "_size_800": "_size_800_1hmt9_gg_",
22
- "_noWrap": "__noWrap_1hmt9_gg_",
23
- "_medium": "__medium_1hmt9_gg_",
24
- "_semibold": "__semibold_1hmt9_gg_",
25
- "_bold": "__bold_1hmt9_gg_",
26
- "_italic": "__italic_1hmt9_gg_",
27
- "_monospace": "__monospace_1hmt9_gg_",
28
- "_uppercase": "__uppercase_1hmt9_gg_",
29
- "_lowercase": "__lowercase_1hmt9_gg_",
30
- "_capitalize": "__capitalize_1hmt9_gg_",
31
- "_decoration": "__decoration_1hmt9_gg_",
32
- "--decoration": "--decoration_1hmt9",
33
- "_color": "__color_1hmt9_gg_",
34
- "--color": "--color_1hmt9",
35
- "_fontSize": "__fontSize_1hmt9_gg_",
36
- "--fontSize": "--fontSize_1hmt9",
37
- "_lineHeight": "__lineHeight_1hmt9_gg_",
38
- "--lineHeight": "--lineHeight_1hmt9",
39
- "_fontWeight": "__fontWeight_1hmt9_gg_",
40
- "--fontWeight": "--fontWeight_1hmt9",
41
- "_textAlign": "__textAlign_1hmt9_gg_",
42
- "--textAlign": "--textAlign_1hmt9",
43
- "_use_primary": "_use_primary_1hmt9_gg_",
44
- "_use_secondary": "_use_secondary_1hmt9_gg_",
45
- "_disabled": "__disabled_1hmt9_gg_",
46
- "_formatTags": "__formatTags_1hmt9_gg_",
47
- "_ellipsis": "__ellipsis_1hmt9_gg_",
48
- "_trim_end": "_trim_end_1hmt9_gg_",
49
- "_isEllipsized": "__isEllipsized_1hmt9_gg_",
50
- "_maxLine": "__maxLine_1hmt9_gg_",
51
- "--maxLine": "--maxLine_1hmt9",
52
- "_trim_middle": "_trim_middle_1hmt9_gg_",
53
- "_size_100": "_size_100_1hmt9_gg_",
54
- "_size_200": "_size_200_1hmt9_gg_",
55
- "_size_300": "_size_300_1hmt9_gg_"
16
+ "__SText": "___SText_s4dem_gg_",
17
+ "_size_400": "_size_400_s4dem_gg_",
18
+ "_size_500": "_size_500_s4dem_gg_",
19
+ "_size_600": "_size_600_s4dem_gg_",
20
+ "_size_700": "_size_700_s4dem_gg_",
21
+ "_size_800": "_size_800_s4dem_gg_",
22
+ "_noWrap": "__noWrap_s4dem_gg_",
23
+ "_medium": "__medium_s4dem_gg_",
24
+ "_semibold": "__semibold_s4dem_gg_",
25
+ "_bold": "__bold_s4dem_gg_",
26
+ "_italic": "__italic_s4dem_gg_",
27
+ "_monospace": "__monospace_s4dem_gg_",
28
+ "_uppercase": "__uppercase_s4dem_gg_",
29
+ "_lowercase": "__lowercase_s4dem_gg_",
30
+ "_capitalize": "__capitalize_s4dem_gg_",
31
+ "_decoration": "__decoration_s4dem_gg_",
32
+ "--decoration": "--decoration_s4dem",
33
+ "_color": "__color_s4dem_gg_",
34
+ "--color": "--color_s4dem",
35
+ "_fontSize": "__fontSize_s4dem_gg_",
36
+ "--fontSize": "--fontSize_s4dem",
37
+ "_lineHeight": "__lineHeight_s4dem_gg_",
38
+ "--lineHeight": "--lineHeight_s4dem",
39
+ "_fontWeight": "__fontWeight_s4dem_gg_",
40
+ "--fontWeight": "--fontWeight_s4dem",
41
+ "_textAlign": "__textAlign_s4dem_gg_",
42
+ "--textAlign": "--textAlign_s4dem",
43
+ "_use_primary": "_use_primary_s4dem_gg_",
44
+ "_use_secondary": "_use_secondary_s4dem_gg_",
45
+ "_disabled": "__disabled_s4dem_gg_",
46
+ "_formatTags": "__formatTags_s4dem_gg_",
47
+ "_ellipsis": "__ellipsis_s4dem_gg_",
48
+ "_trim_end": "_trim_end_s4dem_gg_",
49
+ "_isEllipsized": "__isEllipsized_s4dem_gg_",
50
+ "_maxLine": "__maxLine_s4dem_gg_",
51
+ "--maxLine": "--maxLine_s4dem",
52
+ "_trim_middle": "_trim_middle_s4dem_gg_",
53
+ "_size_100": "_size_100_s4dem_gg_",
54
+ "_size_200": "_size_200_s4dem_gg_",
55
+ "_size_300": "_size_300_s4dem_gg_"
56
56
  })
57
57
  );
58
58
  class TextRoot extends Component {
@@ -69,7 +69,11 @@ class TextRoot extends Component {
69
69
  this.initEllipsis();
70
70
  }
71
71
  componentDidUpdate(prevProps) {
72
- if (prevProps.ellipsis !== this.asProps.ellipsis) {
72
+ const ellipsisKeys = ["cropPosition", "maxLine", "lastRequiredSymbols", "containerElement", "recalculateContainerWidth", "observeChildrenMutations"];
73
+ const hasChanges = ellipsisKeys.some((key) => {
74
+ return prevProps[`ellipsis:${key}`] !== this.asProps[`ellipsis:${key}`];
75
+ });
76
+ if (prevProps.ellipsis !== this.asProps.ellipsis || hasChanges) {
73
77
  this.cleanUpEllipsis();
74
78
  this.initEllipsis();
75
79
  }
@@ -84,18 +88,20 @@ class TextRoot extends Component {
84
88
  color,
85
89
  underline,
86
90
  lineThrough,
91
+ hint,
87
92
  hintProps,
88
93
  children,
89
94
  ellipsis,
95
+ ellipsisProps,
90
96
  resolveColor
91
97
  } = this.asProps;
92
98
  const {
93
99
  isEllipsized
94
100
  } = this.state;
95
- const cropPosition = typeof ellipsis === "object" ? ellipsis.cropPosition ?? "end" : ellipsis === true ? "end" : void 0;
96
- let withHint = hintProps !== false;
97
- const maxLineValue = typeof ellipsis === "object" && ellipsis.maxLine !== void 0 ? ellipsis.maxLine : void 0;
98
- if (hintProps === void 0 && maxLineValue !== void 0 && maxLineValue > 1) {
101
+ const cropPosition = (ellipsisProps == null ? void 0 : ellipsisProps.cropPosition) ?? "end";
102
+ let withHint = hint !== false;
103
+ const maxLineValue = ellipsisProps == null ? void 0 : ellipsisProps.maxLine;
104
+ if (hint !== true && hintProps === void 0 && maxLineValue !== void 0 && maxLineValue > 1) {
99
105
  withHint = false;
100
106
  }
101
107
  return _ref2 = sstyled(styles), /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(SText, _ref2.cn("SText", {
@@ -105,7 +111,7 @@ class TextRoot extends Component {
105
111
  "ref": this.innerRef,
106
112
  "use:decoration": this.getTextDecoration(underline, lineThrough),
107
113
  "use:color": resolveColor(color),
108
- "use:ellipsis": Boolean(ellipsis),
114
+ "use:ellipsis": ellipsis !== void 0 ? ellipsis : Boolean(ellipsisProps),
109
115
  "isEllipsized": isEllipsized,
110
116
  "maxLine": maxLineValue,
111
117
  "trim": cropPosition
@@ -121,9 +127,14 @@ class TextRoot extends Component {
121
127
  });
122
128
  }
123
129
  initEllipsis() {
124
- const ellipsis = this.asProps.ellipsis;
125
- if (ellipsis && this.innerRef.current) {
126
- this.ellipsis = ellipsis instanceof Ellipsis ? ellipsis : new Ellipsis(this.innerRef.current, ellipsis === true ? {} : ellipsis);
130
+ const {
131
+ ellipsis,
132
+ ellipsisProps,
133
+ hint
134
+ } = this.asProps;
135
+ const shouldInit = hint !== false || (ellipsisProps == null ? void 0 : ellipsisProps.cropPosition) === "middle";
136
+ if (shouldInit && (ellipsis || ellipsisProps) && this.innerRef.current) {
137
+ this.ellipsis = ellipsis instanceof Ellipsis ? ellipsis : new Ellipsis(this.innerRef.current, ellipsisProps ?? {});
127
138
  this.ellipsis.on("isEllipsized", this.handleEllipsized);
128
139
  }
129
140
  }
@@ -147,9 +158,6 @@ class TextRoot extends Component {
147
158
  _defineProperty(TextRoot, "enhance", [resolveColorEnhance()]);
148
159
  _defineProperty(TextRoot, "styles", styles);
149
160
  _defineProperty(TextRoot, "displayName", "Text");
150
- _defineProperty(TextRoot, "defaultProps", {
151
- ellipsis: false
152
- });
153
161
  const Text = createComponent(TextRoot);
154
162
  export {
155
163
  Text as default
@@ -232,6 +232,8 @@ SText[ellipsis] {
232
232
  text-overflow: ellipsis;
233
233
  white-space: pre;
234
234
  display: inline-block;
235
+ line-height: unset;
236
+ vertical-align: top;
235
237
 
236
238
  &[trim='end'][isEllipsized]::after {
237
239
  content: '';
@@ -3,7 +3,24 @@ import type { PropGetterFn, Intergalactic } from '@semcore/core';
3
3
  import type { Property } from 'csstype';
4
4
  import type React from 'react';
5
5
 
6
- export type TextProps = BoxProps & {
6
+ export type TextHintProps = {
7
+ /** Manually enabled/disabled Hint */
8
+ hint?: boolean;
9
+ } & {
10
+ /** Settings for a hint with full text (cropped by ellipsis) */
11
+ [K in keyof SimpleHintPopperProps as `hint:${string & K}`]?: SimpleHintPopperProps[K];
12
+ };
13
+
14
+ /** The text will not be wrapped on a new line and will be cut off with ellipsis. Also, it will show a hint with full text. */
15
+ export type TextEllipsisProps = {
16
+ /** Manually enabled/disabled Ellipsis or provide an instance of it. */
17
+ ellipsis?: (boolean | Ellipsis);
18
+ } & {
19
+ /** Settings for an Ellipsis */
20
+ [K in keyof EllipsisSettings as `ellipsis:${string & K}`]?: EllipsisSettings[K];
21
+ };
22
+
23
+ export type BaseTextProps = {
7
24
  /** Font size and line-heights */
8
25
  size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;
9
26
  /**
@@ -45,19 +62,23 @@ export type TextProps = BoxProps & {
45
62
  use?: 'primary' | 'secondary';
46
63
  /** Makes text semi-transparent to indicate disabled state */
47
64
  disabled?: boolean;
48
- } & (
65
+ };
66
+
67
+ export type TextProps = BoxProps & BaseTextProps & (
49
68
  {
50
69
  /** Enable formatting/styling for all nested HTML tags with our default styles for them */
51
70
  formatTags?: boolean;
52
71
  ellipsis?: never;
72
+ ellipsisProps?: never;
73
+ hint?: never;
74
+ hintProps?: never;
53
75
  } |
54
- {
55
- /** The text will not be wrapped on a new line and will be cut off with ellipsis. Also, it will show a hint with full text. */
56
- ellipsis?: true | Readonly<EllipsisSettings> | Ellipsis;
57
- /** Settings for a hint with full text (cropped by ellipsis) */
58
- hintProps?: Partial<Omit<SimpleHintPopperProps, 'children'>> | false;
59
- }
60
- );
76
+ ({
77
+ formatTags?: never;
78
+ // /** Settings for a hint with full text (cropped by ellipsis) */
79
+ // hintProps?: Partial<Omit<SimpleHintPopperProps, 'children'>> | false;
80
+ } & TextHintProps & TextEllipsisProps)
81
+ );
61
82
 
62
83
  export type ListProps = TextProps & {
63
84
  /** Marker of the entire list
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/typography",
3
3
  "description": "Semrush Typography Component",
4
- "version": "17.0.0-prerelease.30",
4
+ "version": "17.0.0-prerelease.31",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -25,10 +25,10 @@
25
25
  },
26
26
  "devDependencies": {
27
27
  "csstype": "3.1.3",
28
- "@semcore/base-components": "17.0.0-prerelease.30",
29
- "@semcore/core": "17.0.0-prerelease.30",
28
+ "@semcore/core": "17.0.0-prerelease.31",
29
+ "@semcore/base-components": "17.0.0-prerelease.31",
30
30
  "@semcore/testing-utils": "1.0.0",
31
- "@semcore/icon": "16.7.2-prerelease.30"
31
+ "@semcore/icon": "16.7.2-prerelease.31"
32
32
  },
33
33
  "scripts": {
34
34
  "build": "pnpm semcore-builder --source=ts,js && pnpm vite build"