@semcore/typography 17.0.0-prerelease.29 → 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-02-27
5
+ ## [17.0.0] - 2026-03-27
6
6
 
7
7
  ### BREAK
8
8
 
package/lib/cjs/Text.js CHANGED
@@ -11,48 +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_16e98_gg_{padding:0;margin:0}.___SText_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_gg_ abbr:active,.___SText_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_gg_ code,.___SText_16e98_gg_.__formatTags_16e98_gg_ pre{font-family:Consolas,\"Roboto Mono\",Menlo,Courier,monospace}.___SText_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_gg_ blockquote:before{content:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNyIgaGVpZ2h0PSIxOSIgdmlld0JveD0iMCAwIDI3IDE5IiBmaWxsPSJub25lIj4KPHBhdGggZD0iTTguODI0MjIgMC45NDcyNjZWMi4zMDg1OUM2Ljg3NjMgMy4zMjY4MiA1LjQ4MTc3IDQuMzg5MzIgNC42NDA2MiA1LjQ5NjA5QzMuNzk5NDggNi42MDI4NiAzLjM3ODkxIDcuODA5MjQgMy4zNzg5MSA5LjExNTIzQzMuMzc4OTEgOS44ODk5NyAzLjQ4OTU4IDEwLjQyMTIgMy43MTA5NCAxMC43MD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EwLjk0MTRDMjEuODk1MiAxMC43NjQzIDIyLjM4MjIgMTAuNjc1OCAyMi44NjkxIDEwLjY3NThDMjMuNzc2NyAxMC42NzU4IDI0LjU2MjUgMTEuMDA3OCAyNS4yMjY2IDExLjY3MTlDMjUuOTEyOCAxMi4zMTM4IDI2LjI1NTkgMTMuMTEwNyAyNi4yNTU5IDE0LjA2MjVDMjYuMjU1OSAxNS4xNDcxIDI1LjgyNDIgMTYuMDg3OSAyNC45NjA5IDE2Ljg4NDhDMjQuMTE5OCAxNy42ODE2IDIzLjA3OTQgMTguMDgwMSAyMS44Mzk4IDE4LjA4MDFDMjAuMzc4OSAxOC4wODAxIDE5LjA2MTggMTcuNDQ5MiAxNy44ODg3IDE2LjE4NzVDMTYuNzE1NSAxNC45MjU4IDE2LjEyODkgMTMuMzU0MiAxNi4xMjg5IDExLjQ3MjdDMTYuMTI4OSA5LjE0ODQ0IDE2Ljg3MDQgNy4wMzQ1MSAxOC4zNTM1IDUuMTMwODZDMTkuODM2NiAzLjIwNTA4IDIxLjkzOTUgMS44NDM3NSAyNC42NjIxIDEuMDQ2ODhaIiBmaWxsPSIjQTlBQkI2Ii8+Cjwvc3ZnPg==);display:inline-block;position:absolute;left:0;color:var(--intergalactic-icon-secondary-neutral, #a9abb6);font-family:Georgia,Times,\"Times New Roman\",serif}.___SText_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]),.___SText_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]) li:not(.___SText_16e98_gg_):before,.___SText_16e98_gg_.__formatTags_16e98_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]) li:not(.___SText_16e98_gg_):before{position:absolute;left:0;color:var(--intergalactic-text-secondary, #6c6e79)}.___SText_16e98_gg_.__formatTags_16e98_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]) li:not(.___SText_16e98_gg_)+li:not(.___SText_16e98_gg_),.___SText_16e98_gg_.__formatTags_16e98_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]) li:not(.___SText_16e98_gg_)+li:not(.___SText_16e98_gg_){margin:var(--intergalactic-spacing-2x, 8px)0 0 0}.___SText_16e98_gg_.__formatTags_16e98_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]){counter-reset:item 0}.___SText_16e98_gg_.__formatTags_16e98_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]) li:not(.___SText_16e98_gg_):before{counter-increment:item;content:counters(item,\".\")}.___SText_16e98_gg_.__formatTags_16e98_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]) li:not(.___SText_16e98_gg_):before{content:\"\";background-color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SText_16e98_gg_.__formatTags_16e98_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]):has(+p),.___SText_16e98_gg_.__formatTags_16e98_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]):has(+p){margin-bottom:var(--intergalactic-spacing-4x, 16px)}.___SText_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_gg_ h1:only-child,.___SText_16e98_gg_.__formatTags_16e98_gg_ h2:only-child,.___SText_16e98_gg_.__formatTags_16e98_gg_ h3:only-child,.___SText_16e98_gg_.__formatTags_16e98_gg_ h4:only-child,.___SText_16e98_gg_.__formatTags_16e98_gg_ h5:only-child,.___SText_16e98_gg_.__formatTags_16e98_gg_ h6:only-child{margin-bottom:0}.___SText_16e98_gg_.__formatTags_16e98_gg_ h2{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%);font-weight:var(--intergalactic-semi-bold, 600)}.___SText_16e98_gg_.__formatTags_16e98_gg_ h3{font-size:var(--intergalactic-fs-600, 32px);line-height:var(--intergalactic-lh-600, 125%);font-weight:var(--intergalactic-semi-bold, 600)}.___SText_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_gg_ h1 small,.___SText_16e98_gg_.__formatTags_16e98_gg_ h2 small,.___SText_16e98_gg_.__formatTags_16e98_gg_ h3 small,.___SText_16e98_gg_.__formatTags_16e98_gg_ h4 small,.___SText_16e98_gg_.__formatTags_16e98_gg_ h5 small,.___SText_16e98_gg_.__formatTags_16e98_gg_ h6 small{color:var(--intergalactic-text-secondary, #6c6e79);font-weight:300;font-size:100%}.___SText_16e98_gg_.__formatTags_16e98_gg_ li,.___SText_16e98_gg_.__formatTags_16e98_gg_ p{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SText_16e98_gg_.__formatTags_16e98_gg_ h2,.___SText_16e98_gg_.__formatTags_16e98_gg_ h3,.___SText_16e98_gg_.__formatTags_16e98_gg_ p{margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SText_16e98_gg_.__formatTags_16e98_gg_ p:last-child,.___SText_16e98_gg_._size_100_16e98_gg_.__formatTags_16e98_gg_ p:last-child,.___SText_16e98_gg_._size_200_16e98_gg_.__formatTags_16e98_gg_ p:last-child,.___SText_16e98_gg_._size_300_16e98_gg_.__formatTags_16e98_gg_ p:last-child{margin-bottom:0}.___SText_16e98_gg_.__formatTags_16e98_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_16e98_gg_.__formatTags_16e98_gg_ ol ol li,.___SText_16e98_gg_._size_100_16e98_gg_.__formatTags_16e98_gg_ ol ol li{padding-left:calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px))}.___SText_16e98_gg_.__formatTags_16e98_gg_ ol ol ol li,.___SText_16e98_gg_._size_100_16e98_gg_.__formatTags_16e98_gg_ ol ol ol li,.___SText_16e98_gg_._size_200_16e98_gg_.__formatTags_16e98_gg_ ol ol ol li,.___SText_16e98_gg_._size_300_16e98_gg_.__formatTags_16e98_gg_ ol ol ol li{padding-left:calc(var(--intergalactic-spacing-8x, 32px) + var(--intergalactic-spacing-1x, 4px) + var(--intergalactic-spacing-05x, 2px))}.___SText_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__ellipsis_16e98_gg_{overflow:hidden;text-overflow:ellipsis;white-space:pre;display:inline-block}.___SText_16e98_gg_.__ellipsis_16e98_gg_._trim_end_16e98_gg_::after{content:\"\";display:block}.___SText_16e98_gg_.__ellipsis_16e98_gg_.__maxLine_16e98_gg_{-webkit-line-clamp:var(--maxLine_16e98);display:-webkit-box;-webkit-box-orient:vertical;white-space:normal;word-wrap:break-word}.___SText_16e98_gg_.__ellipsis_16e98_gg_._trim_middle_16e98_gg_{text-overflow:initial}.___SText_16e98_gg_._size_100_16e98_gg_,.___SText_16e98_gg_._size_100_16e98_gg_.__formatTags_16e98_gg_ li,.___SText_16e98_gg_._size_100_16e98_gg_.__formatTags_16e98_gg_ p{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%)}.___SText_16e98_gg_._size_100_16e98_gg_.__formatTags_16e98_gg_ p{margin:0 0 calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_16e98_gg_._size_100_16e98_gg_.__formatTags_16e98_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_16e98_gg_._size_100_16e98_gg_.__formatTags_16e98_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_16e98_gg_._size_200_16e98_gg_,.___SText_16e98_gg_._size_200_16e98_gg_.__formatTags_16e98_gg_ li,.___SText_16e98_gg_._size_200_16e98_gg_.__formatTags_16e98_gg_ p{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SText_16e98_gg_._size_200_16e98_gg_.__formatTags_16e98_gg_ p{margin:0 0 var(--intergalactic-spacing-3x, 12px)0}.___SText_16e98_gg_._size_200_16e98_gg_.__formatTags_16e98_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_16e98_gg_._size_200_16e98_gg_.__formatTags_16e98_gg_ ol ol li{padding-left:calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px))}.___SText_16e98_gg_._size_200_16e98_gg_.__formatTags_16e98_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_16e98_gg_._size_300_16e98_gg_,.___SText_16e98_gg_._size_300_16e98_gg_.__formatTags_16e98_gg_ li,.___SText_16e98_gg_._size_300_16e98_gg_.__formatTags_16e98_gg_ p{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SText_16e98_gg_._size_300_16e98_gg_.__formatTags_16e98_gg_ p{margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SText_16e98_gg_._size_300_16e98_gg_.__formatTags_16e98_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_16e98_gg_._size_300_16e98_gg_.__formatTags_16e98_gg_ ol ol li{padding-left:calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px))}.___SText_16e98_gg_._size_300_16e98_gg_.__formatTags_16e98_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_16e98_gg_._size_400_16e98_gg_{font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%)}.___SText_16e98_gg_._size_500_16e98_gg_{font-size:var(--intergalactic-fs-500, 24px);line-height:var(--intergalactic-lh-500, 117%)}.___SText_16e98_gg_._size_600_16e98_gg_{font-size:var(--intergalactic-fs-600, 32px);line-height:var(--intergalactic-lh-600, 125%)}.___SText_16e98_gg_._size_700_16e98_gg_{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%)}.___SText_16e98_gg_._size_800_16e98_gg_{font-size:var(--intergalactic-fs-800, 48px);line-height:var(--intergalactic-lh-800, 117%)}.___SText_16e98_gg_.__noWrap_16e98_gg_{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.___SText_16e98_gg_.__medium_16e98_gg_{font-weight:var(--intergalactic-medium, 500)}.___SText_16e98_gg_.__semibold_16e98_gg_{font-weight:var(--intergalactic-semi-bold, 600)}.___SText_16e98_gg_.__bold_16e98_gg_{font-weight:var(--intergalactic-bold, 700)}.___SText_16e98_gg_.__italic_16e98_gg_{font-style:italic}.___SText_16e98_gg_.__monospace_16e98_gg_{font-family:Consolas,\"Roboto Mono\",Menlo,Courier,monospace}.___SText_16e98_gg_.__uppercase_16e98_gg_{text-transform:uppercase}.___SText_16e98_gg_.__lowercase_16e98_gg_{text-transform:lowercase}.___SText_16e98_gg_.__capitalize_16e98_gg_{text-transform:capitalize}.___SText_16e98_gg_.__decoration_16e98_gg_{-webkit-text-decoration:var(--decoration_16e98);text-decoration:var(--decoration_16e98)}.___SText_16e98_gg_.__color_16e98_gg_{color:var(--color_16e98)}.___SText_16e98_gg_.__fontSize_16e98_gg_{font-size:var(--fontSize_16e98)}.___SText_16e98_gg_.__lineHeight_16e98_gg_{line-height:var(--lineHeight_16e98)}.___SText_16e98_gg_.__fontWeight_16e98_gg_{font-weight:var(--fontWeight_16e98)}.___SText_16e98_gg_.__textAlign_16e98_gg_{text-align:var(--textAlign_16e98)}.___SText_16e98_gg_._use_primary_16e98_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SText_16e98_gg_._use_secondary_16e98_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___SText_16e98_gg_.__disabled_16e98_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3)}@media (prefers-reduced-motion){.___SText_16e98_gg_ a{transition:none}}", /*__inner_css_end__*/"16e98_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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-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_16e98_gg_",
18
- "_size_400": "_size_400_16e98_gg_",
19
- "_size_500": "_size_500_16e98_gg_",
20
- "_size_600": "_size_600_16e98_gg_",
21
- "_size_700": "_size_700_16e98_gg_",
22
- "_size_800": "_size_800_16e98_gg_",
23
- "_noWrap": "__noWrap_16e98_gg_",
24
- "_medium": "__medium_16e98_gg_",
25
- "_semibold": "__semibold_16e98_gg_",
26
- "_bold": "__bold_16e98_gg_",
27
- "_italic": "__italic_16e98_gg_",
28
- "_monospace": "__monospace_16e98_gg_",
29
- "_uppercase": "__uppercase_16e98_gg_",
30
- "_lowercase": "__lowercase_16e98_gg_",
31
- "_capitalize": "__capitalize_16e98_gg_",
32
- "_decoration": "__decoration_16e98_gg_",
33
- "--decoration": "--decoration_16e98",
34
- "_color": "__color_16e98_gg_",
35
- "--color": "--color_16e98",
36
- "_fontSize": "__fontSize_16e98_gg_",
37
- "--fontSize": "--fontSize_16e98",
38
- "_lineHeight": "__lineHeight_16e98_gg_",
39
- "--lineHeight": "--lineHeight_16e98",
40
- "_fontWeight": "__fontWeight_16e98_gg_",
41
- "--fontWeight": "--fontWeight_16e98",
42
- "_textAlign": "__textAlign_16e98_gg_",
43
- "--textAlign": "--textAlign_16e98",
44
- "_use_primary": "_use_primary_16e98_gg_",
45
- "_use_secondary": "_use_secondary_16e98_gg_",
46
- "_disabled": "__disabled_16e98_gg_",
47
- "_formatTags": "__formatTags_16e98_gg_",
48
- "_ellipsis": "__ellipsis_16e98_gg_",
49
- "_trim_end": "_trim_end_16e98_gg_",
50
- "_maxLine": "__maxLine_16e98_gg_",
51
- "--maxLine": "--maxLine_16e98",
52
- "_trim_middle": "_trim_middle_16e98_gg_",
53
- "_size_100": "_size_100_16e98_gg_",
54
- "_size_200": "_size_200_16e98_gg_",
55
- "_size_300": "_size_300_16e98_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_"
56
57
  });
57
58
  class TextRoot extends _core.Component {
58
59
  constructor(props) {
@@ -60,7 +61,7 @@ class TextRoot extends _core.Component {
60
61
  (0, _defineProperty2.default)(this, "ellipsis", null);
61
62
  (0, _defineProperty2.default)(this, "innerRef", /*#__PURE__*/_react.default.createRef());
62
63
  (0, _defineProperty2.default)(this, "state", {
63
- showHint: false
64
+ isEllipsized: false
64
65
  });
65
66
  this.handleEllipsized = this.handleEllipsized.bind(this);
66
67
  }
@@ -68,7 +69,11 @@ class TextRoot extends _core.Component {
68
69
  this.initEllipsis();
69
70
  }
70
71
  componentDidUpdate(prevProps) {
71
- 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) {
72
77
  this.cleanUpEllipsis();
73
78
  this.initEllipsis();
74
79
  }
@@ -84,18 +89,20 @@ class TextRoot extends _core.Component {
84
89
  color,
85
90
  underline,
86
91
  lineThrough,
92
+ hint,
87
93
  hintProps,
88
94
  children,
89
95
  ellipsis,
96
+ ellipsisProps,
90
97
  resolveColor
91
98
  } = this.asProps;
92
99
  const {
93
- showHint
100
+ isEllipsized
94
101
  } = this.state;
95
- const cropPosition = typeof ellipsis === 'object' ? ellipsis.cropPosition ?? 'end' : ellipsis === true ? 'end' : undefined;
96
- let withHint = hintProps !== false;
97
- const maxLineValue = typeof ellipsis === 'object' && ellipsis.maxLine !== undefined ? ellipsis.maxLine : undefined;
98
- 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) {
99
106
  withHint = false;
100
107
  }
101
108
  return _ref2 = (0, _core.sstyled)(styles), /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(SText, _ref2.cn("SText", {
@@ -105,24 +112,30 @@ class TextRoot extends _core.Component {
105
112
  "ref": this.innerRef,
106
113
  "use:decoration": this.getTextDecoration(underline, lineThrough),
107
114
  "use:color": resolveColor(color),
108
- "use:ellipsis": Boolean(ellipsis),
115
+ "use:ellipsis": ellipsis !== undefined ? ellipsis : Boolean(ellipsisProps),
116
+ "isEllipsized": isEllipsized,
109
117
  "maxLine": maxLineValue,
110
118
  "trim": cropPosition
111
119
  }, _ref)
112
- })), showHint && withHint && /*#__PURE__*/_react.default.createElement(_baseComponents.Hint, _ref2.cn("Hint", {
120
+ })), isEllipsized && withHint && /*#__PURE__*/_react.default.createElement(_baseComponents.Hint, _ref2.cn("Hint", {
113
121
  "triggerRef": this.innerRef,
114
122
  ...hintProps
115
123
  }), children));
116
124
  }
117
- handleEllipsized(isEllipsis) {
125
+ handleEllipsized(isEllipsized) {
118
126
  this.setState({
119
- showHint: isEllipsis
127
+ isEllipsized: isEllipsized
120
128
  });
121
129
  }
122
130
  initEllipsis() {
123
- const ellipsis = this.asProps.ellipsis;
124
- if (ellipsis && this.innerRef.current) {
125
- 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 ?? {});
126
139
  this.ellipsis.on('isEllipsized', this.handleEllipsized);
127
140
  }
128
141
  }
@@ -130,7 +143,7 @@ class TextRoot extends _core.Component {
130
143
  this.ellipsis?.off('isEllipsized', this.handleEllipsized);
131
144
  this.ellipsis?.cleanUp();
132
145
  this.setState({
133
- showHint: false
146
+ isEllipsized: false
134
147
  });
135
148
  }
136
149
  getTextDecoration(underline, lineThrough) {
@@ -145,8 +158,5 @@ class TextRoot extends _core.Component {
145
158
  (0, _defineProperty2.default)(TextRoot, "enhance", [(0, _resolveColorEnhance.default)()]);
146
159
  (0, _defineProperty2.default)(TextRoot, "styles", styles);
147
160
  (0, _defineProperty2.default)(TextRoot, "displayName", 'Text');
148
- (0, _defineProperty2.default)(TextRoot, "defaultProps", {
149
- ellipsis: false
150
- });
151
161
  var _default = exports.default = (0, _core.createComponent)(TextRoot);
152
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","showHint","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","isEllipsis","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 showHint: 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 showHint: 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 { showHint } = 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 maxLine={maxLineValue}\n trim={cropPosition}\n />\n {showHint && withHint && <Hint triggerRef={this.innerRef} {...hintProps}>{children}</Hint>}\n </>,\n );\n }\n\n private handleEllipsized(isEllipsis: boolean) {\n this.setState({ showHint: isEllipsis });\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({ showHint: 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;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAa1B,MAAMC,QAAQ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ACyB,QAAQ,CAACM,OAAO,EAAE;MACrC,IAAI,CAAC/B,QAAQ,GAAGA,QAAQ,YAAYgC,wBAAQ,GAAGhC,QAAQ,GAAG,IAAIgC,wBAAQ,CAAC,IAAI,CAACP,QAAQ,CAACM,OAAO,EAAE/B,QAAQ,KAAK,IAAI,GAAG,CAAC,CAAC,GAAGA,QAAQ,CAAC;MAEhI,IAAI,CAACA,QAAQ,CAACiC,EAAE,CAAC,cAAc,EAAE,IAAI,CAACvC,gBAAgB,CAAC;IACzD;EACF;EAEQQ,eAAeA,CAAA,EAAG;IACxB,IAAI,CAACF,QAAQ,EAAEkC,GAAG,CAAC,cAAc,EAAE,IAAI,CAACxC,gBAAgB,CAAC;IACzD,IAAI,CAACM,QAAQ,EAAEmC,OAAO,CAAC,CAAC;IACxB,IAAI,CAACL,QAAQ,CAAC;MAAErC,QAAQ,EAAE;IAAM,CAAC,CAAC;EACpC;EAEQiC,iBAAiBA,CAAChB,SAAmB,EAAEC,WAAqB,EAAE;IACpE,IAAID,SAAS,EAAE;MACb,OAAO,WAAW;IACpB;IAEA,IAAIC,WAAW,EAAE;MACf,OAAO,cAAc;IACvB;EACF;AACF;AAAC,IAAAtB,gBAAA,CAAAC,OAAA,EAjGKL,QAAQ,aAIK,CAAC,IAAAmD,4BAAmB,EAAC,CAAC,CAAC;AAAA,IAAA/C,gBAAA,CAAAC,OAAA,EAJpCL,QAAQ,YAKIH,MAAM;AAAA,IAAAO,gBAAA,CAAAC,OAAA,EALlBL,QAAQ,iBAMS,MAAM;AAAA,IAAAI,gBAAA,CAAAC,OAAA,EANvBL,QAAQ,kBAQwB;EAClCe,QAAQ,EAAE;AACZ,CAAC;AAAA,IAAAqC,QAAA,GAAAC,OAAA,CAAAhD,OAAA,GAyFY,IAAAiD,qBAAe,EAACtD,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(TextRoot);\n"],"mappings":";;;;;;;;AACA,IAAAA,KAAA,GAAAC,OAAA;AADA,IAAAC,eAAA,GAAAD,OAAA;AAEA,IAAAE,oBAAA,GAAAC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AAI,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 /** Enable formatting/styling for all nested HTML tags with our default styles for them */\n formatTags?: boolean;\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\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,8 +232,10 @@ 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
- &[trim='end']::after {
238
+ &[trim='end'][isEllipsized]::after {
237
239
  content: '';
238
240
  display: block;
239
241
  }
package/lib/es6/Text.js CHANGED
@@ -6,48 +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_16e98_gg_{padding:0;margin:0}.___SText_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_gg_ abbr:active,.___SText_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_gg_ code,.___SText_16e98_gg_.__formatTags_16e98_gg_ pre{font-family:Consolas,\"Roboto Mono\",Menlo,Courier,monospace}.___SText_16e98_gg_.__formatTags_16e98_gg_ blockquote{position:relative;padding-left:51px;font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120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-block;position:absolute;left:0;color:var(--intergalactic-icon-secondary-neutral, #a9abb6);font-family:Georgia,Times,\"Times New Roman\",serif}.___SText_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]),.___SText_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]) li:not(.___SText_16e98_gg_):before,.___SText_16e98_gg_.__formatTags_16e98_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]) li:not(.___SText_16e98_gg_):before{position:absolute;left:0;color:var(--intergalactic-text-secondary, #6c6e79)}.___SText_16e98_gg_.__formatTags_16e98_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]) li:not(.___SText_16e98_gg_)+li:not(.___SText_16e98_gg_),.___SText_16e98_gg_.__formatTags_16e98_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]) li:not(.___SText_16e98_gg_)+li:not(.___SText_16e98_gg_){margin:var(--intergalactic-spacing-2x, 8px)0 0 0}.___SText_16e98_gg_.__formatTags_16e98_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]){counter-reset:item 0}.___SText_16e98_gg_.__formatTags_16e98_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]) li:not(.___SText_16e98_gg_):before{counter-increment:item;content:counters(item,\".\")}.___SText_16e98_gg_.__formatTags_16e98_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]) li:not(.___SText_16e98_gg_):before{content:\"\";background-color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SText_16e98_gg_.__formatTags_16e98_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]):has(+p),.___SText_16e98_gg_.__formatTags_16e98_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]):has(+p){margin-bottom:var(--intergalactic-spacing-4x, 16px)}.___SText_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_gg_ h1:only-child,.___SText_16e98_gg_.__formatTags_16e98_gg_ h2:only-child,.___SText_16e98_gg_.__formatTags_16e98_gg_ h3:only-child,.___SText_16e98_gg_.__formatTags_16e98_gg_ h4:only-child,.___SText_16e98_gg_.__formatTags_16e98_gg_ h5:only-child,.___SText_16e98_gg_.__formatTags_16e98_gg_ h6:only-child{margin-bottom:0}.___SText_16e98_gg_.__formatTags_16e98_gg_ h2{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%);font-weight:var(--intergalactic-semi-bold, 600)}.___SText_16e98_gg_.__formatTags_16e98_gg_ h3{font-size:var(--intergalactic-fs-600, 32px);line-height:var(--intergalactic-lh-600, 125%);font-weight:var(--intergalactic-semi-bold, 600)}.___SText_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_gg_ h1 small,.___SText_16e98_gg_.__formatTags_16e98_gg_ h2 small,.___SText_16e98_gg_.__formatTags_16e98_gg_ h3 small,.___SText_16e98_gg_.__formatTags_16e98_gg_ h4 small,.___SText_16e98_gg_.__formatTags_16e98_gg_ h5 small,.___SText_16e98_gg_.__formatTags_16e98_gg_ h6 small{color:var(--intergalactic-text-secondary, #6c6e79);font-weight:300;font-size:100%}.___SText_16e98_gg_.__formatTags_16e98_gg_ li,.___SText_16e98_gg_.__formatTags_16e98_gg_ p{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SText_16e98_gg_.__formatTags_16e98_gg_ h2,.___SText_16e98_gg_.__formatTags_16e98_gg_ h3,.___SText_16e98_gg_.__formatTags_16e98_gg_ p{margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SText_16e98_gg_.__formatTags_16e98_gg_ p:last-child,.___SText_16e98_gg_._size_100_16e98_gg_.__formatTags_16e98_gg_ p:last-child,.___SText_16e98_gg_._size_200_16e98_gg_.__formatTags_16e98_gg_ p:last-child,.___SText_16e98_gg_._size_300_16e98_gg_.__formatTags_16e98_gg_ p:last-child{margin-bottom:0}.___SText_16e98_gg_.__formatTags_16e98_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_16e98_gg_.__formatTags_16e98_gg_ ol ol li,.___SText_16e98_gg_._size_100_16e98_gg_.__formatTags_16e98_gg_ ol ol li{padding-left:calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px))}.___SText_16e98_gg_.__formatTags_16e98_gg_ ol ol ol li,.___SText_16e98_gg_._size_100_16e98_gg_.__formatTags_16e98_gg_ ol ol ol li,.___SText_16e98_gg_._size_200_16e98_gg_.__formatTags_16e98_gg_ ol ol ol li,.___SText_16e98_gg_._size_300_16e98_gg_.__formatTags_16e98_gg_ ol ol ol li{padding-left:calc(var(--intergalactic-spacing-8x, 32px) + var(--intergalactic-spacing-1x, 4px) + var(--intergalactic-spacing-05x, 2px))}.___SText_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__ellipsis_16e98_gg_{overflow:hidden;text-overflow:ellipsis;white-space:pre;display:inline-block}.___SText_16e98_gg_.__ellipsis_16e98_gg_._trim_end_16e98_gg_::after{content:\"\";display:block}.___SText_16e98_gg_.__ellipsis_16e98_gg_.__maxLine_16e98_gg_{-webkit-line-clamp:var(--maxLine_16e98);display:-webkit-box;-webkit-box-orient:vertical;white-space:normal;word-wrap:break-word}.___SText_16e98_gg_.__ellipsis_16e98_gg_._trim_middle_16e98_gg_{text-overflow:initial}.___SText_16e98_gg_._size_100_16e98_gg_,.___SText_16e98_gg_._size_100_16e98_gg_.__formatTags_16e98_gg_ li,.___SText_16e98_gg_._size_100_16e98_gg_.__formatTags_16e98_gg_ p{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%)}.___SText_16e98_gg_._size_100_16e98_gg_.__formatTags_16e98_gg_ p{margin:0 0 calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_16e98_gg_._size_100_16e98_gg_.__formatTags_16e98_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_16e98_gg_._size_100_16e98_gg_.__formatTags_16e98_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_16e98_gg_._size_200_16e98_gg_,.___SText_16e98_gg_._size_200_16e98_gg_.__formatTags_16e98_gg_ li,.___SText_16e98_gg_._size_200_16e98_gg_.__formatTags_16e98_gg_ p{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SText_16e98_gg_._size_200_16e98_gg_.__formatTags_16e98_gg_ p{margin:0 0 var(--intergalactic-spacing-3x, 12px)0}.___SText_16e98_gg_._size_200_16e98_gg_.__formatTags_16e98_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_16e98_gg_._size_200_16e98_gg_.__formatTags_16e98_gg_ ol ol li{padding-left:calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px))}.___SText_16e98_gg_._size_200_16e98_gg_.__formatTags_16e98_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_16e98_gg_._size_300_16e98_gg_,.___SText_16e98_gg_._size_300_16e98_gg_.__formatTags_16e98_gg_ li,.___SText_16e98_gg_._size_300_16e98_gg_.__formatTags_16e98_gg_ p{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SText_16e98_gg_._size_300_16e98_gg_.__formatTags_16e98_gg_ p{margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SText_16e98_gg_._size_300_16e98_gg_.__formatTags_16e98_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_16e98_gg_._size_300_16e98_gg_.__formatTags_16e98_gg_ ol ol li{padding-left:calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px))}.___SText_16e98_gg_._size_300_16e98_gg_.__formatTags_16e98_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_16e98_gg_._size_400_16e98_gg_{font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%)}.___SText_16e98_gg_._size_500_16e98_gg_{font-size:var(--intergalactic-fs-500, 24px);line-height:var(--intergalactic-lh-500, 117%)}.___SText_16e98_gg_._size_600_16e98_gg_{font-size:var(--intergalactic-fs-600, 32px);line-height:var(--intergalactic-lh-600, 125%)}.___SText_16e98_gg_._size_700_16e98_gg_{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%)}.___SText_16e98_gg_._size_800_16e98_gg_{font-size:var(--intergalactic-fs-800, 48px);line-height:var(--intergalactic-lh-800, 117%)}.___SText_16e98_gg_.__noWrap_16e98_gg_{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.___SText_16e98_gg_.__medium_16e98_gg_{font-weight:var(--intergalactic-medium, 500)}.___SText_16e98_gg_.__semibold_16e98_gg_{font-weight:var(--intergalactic-semi-bold, 600)}.___SText_16e98_gg_.__bold_16e98_gg_{font-weight:var(--intergalactic-bold, 700)}.___SText_16e98_gg_.__italic_16e98_gg_{font-style:italic}.___SText_16e98_gg_.__monospace_16e98_gg_{font-family:Consolas,\"Roboto Mono\",Menlo,Courier,monospace}.___SText_16e98_gg_.__uppercase_16e98_gg_{text-transform:uppercase}.___SText_16e98_gg_.__lowercase_16e98_gg_{text-transform:lowercase}.___SText_16e98_gg_.__capitalize_16e98_gg_{text-transform:capitalize}.___SText_16e98_gg_.__decoration_16e98_gg_{-webkit-text-decoration:var(--decoration_16e98);text-decoration:var(--decoration_16e98)}.___SText_16e98_gg_.__color_16e98_gg_{color:var(--color_16e98)}.___SText_16e98_gg_.__fontSize_16e98_gg_{font-size:var(--fontSize_16e98)}.___SText_16e98_gg_.__lineHeight_16e98_gg_{line-height:var(--lineHeight_16e98)}.___SText_16e98_gg_.__fontWeight_16e98_gg_{font-weight:var(--fontWeight_16e98)}.___SText_16e98_gg_.__textAlign_16e98_gg_{text-align:var(--textAlign_16e98)}.___SText_16e98_gg_._use_primary_16e98_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SText_16e98_gg_._use_secondary_16e98_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___SText_16e98_gg_.__disabled_16e98_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3)}@media (prefers-reduced-motion){.___SText_16e98_gg_ a{transition:none}}", /*__inner_css_end__*/"16e98_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_s4dem_gg_.__formatTags_s4dem_gg_ blockquote:before{content:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNyIgaGVpZ2h0PSIxOSIgdmlld0JveD0iMCAwIDI3IDE5IiBmaWxsPSJub25lIj4KPHBhdGggZD0iTTguODI0MjIgMC45NDcyNjZWMi4zMDg1OUM2Ljg3NjMgMy4zMjY4MiA1LjQ4MTc3IDQuMzg5MzIgNC42NDA2MiA1LjQ5NjA5QzMuNzk5NDggNi42MDI4NiAzLjM3ODkxIDcuODA5MjQgMy4zNzg5MSA5LjExNTIzQzMuMzc4OTEgOS44ODk5NyAzLjQ4OTU4IDEwLjQyMTIgMy43MTA5NCAxMC43MDlDMy45MTAxNiAxMS4wMTg5IDQuMTUzNjUgMTEuMTczOCA0LjQ0MTQxIDExLjE3MzhDNC43MjkxNyAxMS4xNzM4IDUuMTE2NTQgMTEuMDk2NCA1LjYwMzUyIDEwLjk0MTRDNi4wOTA0OSAxMC43NjQzIDYuNTMzMiAxMC42NzU4IDYuOTMxNjQgMTAuNjc1OEM3LjgzOTE5IDEwLjY3NTggOC42MjUgMTEuMDE4OSA5LjI4OTA2IDEx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AyNC45NjA5IDE2Ljg4NDhDMjQuMTE5OCAxNy42ODE2IDIzLjA3OTQgMTguMDgwMSAyMS44Mzk4IDE4LjA4MDFDMjAuMzc4OSAxOC4wODAxIDE5LjA2MTggMTcuNDQ5MiAxNy44ODg3IDE2LjE4NzVDMTYuNzE1NSAxNC45MjU4IDE2LjEyODkgMTMuMzU0MiAxNi4xMjg5IDExLjQ3MjdDMTYuMTI4OSA5LjE0ODQ0IDE2Ljg3MDQgNy4wMzQ1MSAxOC4zNTM1IDUuMTMwODZDMTkuODM2NiAzLjIwNTA4IDIxLjkzOTUgMS44NDM3NSAyNC42NjIxIDEuMDQ2ODhaIiBmaWxsPSIjQTlBQkI2Ii8+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_"),
10
10
  /*__reshadow_css_end__*/
11
11
  {
12
- "__SText": "___SText_16e98_gg_",
13
- "_size_400": "_size_400_16e98_gg_",
14
- "_size_500": "_size_500_16e98_gg_",
15
- "_size_600": "_size_600_16e98_gg_",
16
- "_size_700": "_size_700_16e98_gg_",
17
- "_size_800": "_size_800_16e98_gg_",
18
- "_noWrap": "__noWrap_16e98_gg_",
19
- "_medium": "__medium_16e98_gg_",
20
- "_semibold": "__semibold_16e98_gg_",
21
- "_bold": "__bold_16e98_gg_",
22
- "_italic": "__italic_16e98_gg_",
23
- "_monospace": "__monospace_16e98_gg_",
24
- "_uppercase": "__uppercase_16e98_gg_",
25
- "_lowercase": "__lowercase_16e98_gg_",
26
- "_capitalize": "__capitalize_16e98_gg_",
27
- "_decoration": "__decoration_16e98_gg_",
28
- "--decoration": "--decoration_16e98",
29
- "_color": "__color_16e98_gg_",
30
- "--color": "--color_16e98",
31
- "_fontSize": "__fontSize_16e98_gg_",
32
- "--fontSize": "--fontSize_16e98",
33
- "_lineHeight": "__lineHeight_16e98_gg_",
34
- "--lineHeight": "--lineHeight_16e98",
35
- "_fontWeight": "__fontWeight_16e98_gg_",
36
- "--fontWeight": "--fontWeight_16e98",
37
- "_textAlign": "__textAlign_16e98_gg_",
38
- "--textAlign": "--textAlign_16e98",
39
- "_use_primary": "_use_primary_16e98_gg_",
40
- "_use_secondary": "_use_secondary_16e98_gg_",
41
- "_disabled": "__disabled_16e98_gg_",
42
- "_formatTags": "__formatTags_16e98_gg_",
43
- "_ellipsis": "__ellipsis_16e98_gg_",
44
- "_trim_end": "_trim_end_16e98_gg_",
45
- "_maxLine": "__maxLine_16e98_gg_",
46
- "--maxLine": "--maxLine_16e98",
47
- "_trim_middle": "_trim_middle_16e98_gg_",
48
- "_size_100": "_size_100_16e98_gg_",
49
- "_size_200": "_size_200_16e98_gg_",
50
- "_size_300": "_size_300_16e98_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_"
51
52
  });
52
53
  class TextRoot extends Component {
53
54
  constructor(props) {
@@ -55,7 +56,7 @@ class TextRoot extends Component {
55
56
  _defineProperty(this, "ellipsis", null);
56
57
  _defineProperty(this, "innerRef", /*#__PURE__*/React.createRef());
57
58
  _defineProperty(this, "state", {
58
- showHint: false
59
+ isEllipsized: false
59
60
  });
60
61
  this.handleEllipsized = this.handleEllipsized.bind(this);
61
62
  }
@@ -63,7 +64,11 @@ class TextRoot extends Component {
63
64
  this.initEllipsis();
64
65
  }
65
66
  componentDidUpdate(prevProps) {
66
- 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) {
67
72
  this.cleanUpEllipsis();
68
73
  this.initEllipsis();
69
74
  }
@@ -79,18 +84,20 @@ class TextRoot extends Component {
79
84
  color,
80
85
  underline,
81
86
  lineThrough,
87
+ hint,
82
88
  hintProps,
83
89
  children,
84
90
  ellipsis,
91
+ ellipsisProps,
85
92
  resolveColor
86
93
  } = this.asProps;
87
94
  const {
88
- showHint
95
+ isEllipsized
89
96
  } = this.state;
90
- const cropPosition = typeof ellipsis === 'object' ? ellipsis.cropPosition ?? 'end' : ellipsis === true ? 'end' : undefined;
91
- let withHint = hintProps !== false;
92
- const maxLineValue = typeof ellipsis === 'object' && ellipsis.maxLine !== undefined ? ellipsis.maxLine : undefined;
93
- 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) {
94
101
  withHint = false;
95
102
  }
96
103
  return _ref2 = sstyled(styles), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SText, _ref2.cn("SText", {
@@ -100,24 +107,30 @@ class TextRoot extends Component {
100
107
  "ref": this.innerRef,
101
108
  "use:decoration": this.getTextDecoration(underline, lineThrough),
102
109
  "use:color": resolveColor(color),
103
- "use:ellipsis": Boolean(ellipsis),
110
+ "use:ellipsis": ellipsis !== undefined ? ellipsis : Boolean(ellipsisProps),
111
+ "isEllipsized": isEllipsized,
104
112
  "maxLine": maxLineValue,
105
113
  "trim": cropPosition
106
114
  }, _ref)
107
- })), showHint && withHint && /*#__PURE__*/React.createElement(Hint, _ref2.cn("Hint", {
115
+ })), isEllipsized && withHint && /*#__PURE__*/React.createElement(Hint, _ref2.cn("Hint", {
108
116
  "triggerRef": this.innerRef,
109
117
  ...hintProps
110
118
  }), children));
111
119
  }
112
- handleEllipsized(isEllipsis) {
120
+ handleEllipsized(isEllipsized) {
113
121
  this.setState({
114
- showHint: isEllipsis
122
+ isEllipsized: isEllipsized
115
123
  });
116
124
  }
117
125
  initEllipsis() {
118
- const ellipsis = this.asProps.ellipsis;
119
- if (ellipsis && this.innerRef.current) {
120
- 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 ?? {});
121
134
  this.ellipsis.on('isEllipsized', this.handleEllipsized);
122
135
  }
123
136
  }
@@ -125,7 +138,7 @@ class TextRoot extends Component {
125
138
  this.ellipsis?.off('isEllipsized', this.handleEllipsized);
126
139
  this.ellipsis?.cleanUp();
127
140
  this.setState({
128
- showHint: false
141
+ isEllipsized: false
129
142
  });
130
143
  }
131
144
  getTextDecoration(underline, lineThrough) {
@@ -140,8 +153,5 @@ class TextRoot extends Component {
140
153
  _defineProperty(TextRoot, "enhance", [resolveColorEnhance()]);
141
154
  _defineProperty(TextRoot, "styles", styles);
142
155
  _defineProperty(TextRoot, "displayName", 'Text');
143
- _defineProperty(TextRoot, "defaultProps", {
144
- ellipsis: false
145
- });
146
156
  export default createComponent(TextRoot);
147
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","showHint","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","isEllipsis","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 showHint: 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 showHint: 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 { showHint } = 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 maxLine={maxLineValue}\n trim={cropPosition}\n />\n {showHint && withHint && <Hint triggerRef={this.innerRef} {...hintProps}>{children}</Hint>}\n </>,\n );\n }\n\n private handleEllipsized(isEllipsis: boolean) {\n this.setState({ showHint: isEllipsis });\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({ showHint: 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,QAAQ,0BAA0B;AAC9D,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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;EACzC;EAEQ9B,YAAYA,CAAA,EAAG;IACrB,MAAMG,QAAQ,GAAG,IAAI,CAACC,OAAO,CAACD,QAAQ;IACtC,IAAIA,QAAQ,IAAI,IAAI,CAACwB,QAAQ,CAACK,OAAO,EAAE;MACrC,IAAI,CAAC7B,QAAQ,GAAGA,QAAQ,YAAYxB,QAAQ,GAAGwB,QAAQ,GAAG,IAAIxB,QAAQ,CAAC,IAAI,CAACgD,QAAQ,CAACK,OAAO,EAAE7B,QAAQ,KAAK,IAAI,GAAG,CAAC,CAAC,GAAGA,QAAQ,CAAC;MAEhI,IAAI,CAACA,QAAQ,CAAC8B,EAAE,CAAC,cAAc,EAAE,IAAI,CAACpC,gBAAgB,CAAC;IACzD;EACF;EAEQQ,eAAeA,CAAA,EAAG;IACxB,IAAI,CAACF,QAAQ,EAAE+B,GAAG,CAAC,cAAc,EAAE,IAAI,CAACrC,gBAAgB,CAAC;IACzD,IAAI,CAACM,QAAQ,EAAEgC,OAAO,CAAC,CAAC;IACxB,IAAI,CAACJ,QAAQ,CAAC;MAAEnC,QAAQ,EAAE;IAAM,CAAC,CAAC;EACpC;EAEQgC,iBAAiBA,CAAChB,SAAmB,EAAEC,WAAqB,EAAE;IACpE,IAAID,SAAS,EAAE;MACb,OAAO,WAAW;IACpB;IAEA,IAAIC,WAAW,EAAE;MACf,OAAO,cAAc;IACvB;EACF;AACF;AAACnB,eAAA,CAjGKH,QAAQ,aAIK,CAACL,mBAAmB,CAAC,CAAC,CAAC;AAAAQ,eAAA,CAJpCH,QAAQ,YAKIH,MAAM;AAAAM,eAAA,CALlBH,QAAQ,iBAMS,MAAM;AAAAG,eAAA,CANvBH,QAAQ,kBAQwB;EAClCY,QAAQ,EAAE;AACZ,CAAC;AAyFH,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,mBA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AAID,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 /** Enable formatting/styling for all nested HTML tags with our default styles for them */\n formatTags?: boolean;\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\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,8 +232,10 @@ 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
- &[trim='end']::after {
238
+ &[trim='end'][isEllipsized]::after {
237
239
  content: '';
238
240
  display: block;
239
241
  }
package/lib/esm/Text.mjs CHANGED
@@ -8,50 +8,51 @@ const styles = (
8
8
  /*__reshadow_css_start__*/
9
9
  (sstyled.insert(
10
10
  /*__inner_css_start__*/
11
- '.___SText_16e98_gg_{padding:0;margin:0}.___SText_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_gg_ abbr:active,.___SText_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_gg_ code,.___SText_16e98_gg_.__formatTags_16e98_gg_ pre{font-family:Consolas,"Roboto Mono",Menlo,Courier,monospace}.___SText_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_gg_ blockquote:before{content:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNyIgaGVpZ2h0PSIxOSIgdmlld0JveD0iMCAwIDI3IDE5IiBmaWxsPSJub25lIj4KPHBhdGggZD0iTTguODI0MjIgMC45NDcyNjZWMi4zMDg1OUM2Ljg3NjMgMy4zMjY4MiA1LjQ4MTc3IDQuMzg5MzIgNC42NDA2MiA1LjQ5NjA5QzMuNzk5NDggNi42MDI4NiAzLjM3ODkxIDcuODA5MjQgMy4zNzg5MSA5LjExNTIzQzM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ExLjIwN0MyMC41NTYgMTEuMjA3IDIwLjkyMTIgMTEuMTE4NSAyMS40MDgyIDEwLjk0MTRDMjEuODk1MiAxMC43NjQzIDIyLjM4MjIgMTAuNjc1OCAyMi44NjkxIDEwLjY3NThDMjMuNzc2NyAxMC42NzU4IDI0LjU2MjUgMTEuMDA3OCAyNS4yMjY2IDExLjY3MTlDMjUuOTEyOCAxMi4zMTM4IDI2LjI1NTkgMTMuMTEwNyAyNi4yNTU5IDE0LjA2MjVDMjYuMjU1OSAxNS4xNDcxIDI1LjgyNDIgMTYuMDg3OSAyNC45NjA5IDE2Ljg4NDhDMjQuMTE5OCAxNy42ODE2IDIzLjA3OTQgMTguMDgwMSAyMS44Mzk4IDE4LjA4MDFDMjAuMzc4OSAxOC4wODAxIDE5LjA2MTggMTcuNDQ5MiAxNy44ODg3IDE2LjE4NzVDMTYuNzE1NSAxNC45MjU4IDE2LjEyODkgMTMuMzU0MiAxNi4xMjg5IDExLjQ3MjdDMTYuMTI4OSA5LjE0ODQ0IDE2Ljg3MDQgNy4wMzQ1MSAxOC4zNTM1IDUuMTMwODZDMTkuODM2NiAzLjIwNTA4IDIxLjkzOTUgMS44NDM3NSAyNC42NjIxIDEuMDQ2ODhaIiBmaWxsPSIjQTlBQkI2Ii8+Cjwvc3ZnPg==);display:inline-block;position:absolute;left:0;color:var(--intergalactic-icon-secondary-neutral, #a9abb6);font-family:Georgia,Times,"Times New Roman",serif}.___SText_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]),.___SText_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]) li:not(.___SText_16e98_gg_):before,.___SText_16e98_gg_.__formatTags_16e98_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]) li:not(.___SText_16e98_gg_):before{position:absolute;left:0;color:var(--intergalactic-text-secondary, #6c6e79)}.___SText_16e98_gg_.__formatTags_16e98_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]) li:not(.___SText_16e98_gg_)+li:not(.___SText_16e98_gg_),.___SText_16e98_gg_.__formatTags_16e98_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]) li:not(.___SText_16e98_gg_)+li:not(.___SText_16e98_gg_){margin:var(--intergalactic-spacing-2x, 8px)0 0 0}.___SText_16e98_gg_.__formatTags_16e98_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]){counter-reset:item 0}.___SText_16e98_gg_.__formatTags_16e98_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]) li:not(.___SText_16e98_gg_):before{counter-increment:item;content:counters(item,".")}.___SText_16e98_gg_.__formatTags_16e98_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]) li:not(.___SText_16e98_gg_):before{content:"";background-color:var(--intergalactic-icon-primary-neutral, #6c6e79)}.___SText_16e98_gg_.__formatTags_16e98_gg_ ol:not(ol[start]):not(ol[reversed]):not(ol[type]):has(+p),.___SText_16e98_gg_.__formatTags_16e98_gg_ ul:not(ul[start]):not(ul[reversed]):not(ul[type]):has(+p){margin-bottom:var(--intergalactic-spacing-4x, 16px)}.___SText_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_gg_ h1:only-child,.___SText_16e98_gg_.__formatTags_16e98_gg_ h2:only-child,.___SText_16e98_gg_.__formatTags_16e98_gg_ h3:only-child,.___SText_16e98_gg_.__formatTags_16e98_gg_ h4:only-child,.___SText_16e98_gg_.__formatTags_16e98_gg_ h5:only-child,.___SText_16e98_gg_.__formatTags_16e98_gg_ h6:only-child{margin-bottom:0}.___SText_16e98_gg_.__formatTags_16e98_gg_ h2{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%);font-weight:var(--intergalactic-semi-bold, 600)}.___SText_16e98_gg_.__formatTags_16e98_gg_ h3{font-size:var(--intergalactic-fs-600, 32px);line-height:var(--intergalactic-lh-600, 125%);font-weight:var(--intergalactic-semi-bold, 600)}.___SText_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__formatTags_16e98_gg_ h1 small,.___SText_16e98_gg_.__formatTags_16e98_gg_ h2 small,.___SText_16e98_gg_.__formatTags_16e98_gg_ h3 small,.___SText_16e98_gg_.__formatTags_16e98_gg_ h4 small,.___SText_16e98_gg_.__formatTags_16e98_gg_ h5 small,.___SText_16e98_gg_.__formatTags_16e98_gg_ h6 small{color:var(--intergalactic-text-secondary, #6c6e79);font-weight:300;font-size:100%}.___SText_16e98_gg_.__formatTags_16e98_gg_ li,.___SText_16e98_gg_.__formatTags_16e98_gg_ p{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SText_16e98_gg_.__formatTags_16e98_gg_ h2,.___SText_16e98_gg_.__formatTags_16e98_gg_ h3,.___SText_16e98_gg_.__formatTags_16e98_gg_ p{margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SText_16e98_gg_.__formatTags_16e98_gg_ p:last-child,.___SText_16e98_gg_._size_100_16e98_gg_.__formatTags_16e98_gg_ p:last-child,.___SText_16e98_gg_._size_200_16e98_gg_.__formatTags_16e98_gg_ p:last-child,.___SText_16e98_gg_._size_300_16e98_gg_.__formatTags_16e98_gg_ p:last-child{margin-bottom:0}.___SText_16e98_gg_.__formatTags_16e98_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_16e98_gg_.__formatTags_16e98_gg_ ol ol li,.___SText_16e98_gg_._size_100_16e98_gg_.__formatTags_16e98_gg_ ol ol li{padding-left:calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px))}.___SText_16e98_gg_.__formatTags_16e98_gg_ ol ol ol li,.___SText_16e98_gg_._size_100_16e98_gg_.__formatTags_16e98_gg_ ol ol ol li,.___SText_16e98_gg_._size_200_16e98_gg_.__formatTags_16e98_gg_ ol ol ol li,.___SText_16e98_gg_._size_300_16e98_gg_.__formatTags_16e98_gg_ ol ol ol li{padding-left:calc(var(--intergalactic-spacing-8x, 32px) + var(--intergalactic-spacing-1x, 4px) + var(--intergalactic-spacing-05x, 2px))}.___SText_16e98_gg_.__formatTags_16e98_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_16e98_gg_.__ellipsis_16e98_gg_{overflow:hidden;text-overflow:ellipsis;white-space:pre;display:inline-block}.___SText_16e98_gg_.__ellipsis_16e98_gg_._trim_end_16e98_gg_::after{content:"";display:block}.___SText_16e98_gg_.__ellipsis_16e98_gg_.__maxLine_16e98_gg_{-webkit-line-clamp:var(--maxLine_16e98);display:-webkit-box;-webkit-box-orient:vertical;white-space:normal;word-wrap:break-word}.___SText_16e98_gg_.__ellipsis_16e98_gg_._trim_middle_16e98_gg_{text-overflow:initial}.___SText_16e98_gg_._size_100_16e98_gg_,.___SText_16e98_gg_._size_100_16e98_gg_.__formatTags_16e98_gg_ li,.___SText_16e98_gg_._size_100_16e98_gg_.__formatTags_16e98_gg_ p{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%)}.___SText_16e98_gg_._size_100_16e98_gg_.__formatTags_16e98_gg_ p{margin:0 0 calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_16e98_gg_._size_100_16e98_gg_.__formatTags_16e98_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_16e98_gg_._size_100_16e98_gg_.__formatTags_16e98_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_16e98_gg_._size_200_16e98_gg_,.___SText_16e98_gg_._size_200_16e98_gg_.__formatTags_16e98_gg_ li,.___SText_16e98_gg_._size_200_16e98_gg_.__formatTags_16e98_gg_ p{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SText_16e98_gg_._size_200_16e98_gg_.__formatTags_16e98_gg_ p{margin:0 0 var(--intergalactic-spacing-3x, 12px)0}.___SText_16e98_gg_._size_200_16e98_gg_.__formatTags_16e98_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_16e98_gg_._size_200_16e98_gg_.__formatTags_16e98_gg_ ol ol li{padding-left:calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px))}.___SText_16e98_gg_._size_200_16e98_gg_.__formatTags_16e98_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_16e98_gg_._size_300_16e98_gg_,.___SText_16e98_gg_._size_300_16e98_gg_.__formatTags_16e98_gg_ li,.___SText_16e98_gg_._size_300_16e98_gg_.__formatTags_16e98_gg_ p{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SText_16e98_gg_._size_300_16e98_gg_.__formatTags_16e98_gg_ p{margin:0 0 var(--intergalactic-spacing-4x, 16px)0}.___SText_16e98_gg_._size_300_16e98_gg_.__formatTags_16e98_gg_ li{padding-left:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px))}.___SText_16e98_gg_._size_300_16e98_gg_.__formatTags_16e98_gg_ ol ol li{padding-left:calc(var(--intergalactic-spacing-6x, 24px) + var(--intergalactic-spacing-05x, 2px))}.___SText_16e98_gg_._size_300_16e98_gg_.__formatTags_16e98_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_16e98_gg_._size_400_16e98_gg_{font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%)}.___SText_16e98_gg_._size_500_16e98_gg_{font-size:var(--intergalactic-fs-500, 24px);line-height:var(--intergalactic-lh-500, 117%)}.___SText_16e98_gg_._size_600_16e98_gg_{font-size:var(--intergalactic-fs-600, 32px);line-height:var(--intergalactic-lh-600, 125%)}.___SText_16e98_gg_._size_700_16e98_gg_{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%)}.___SText_16e98_gg_._size_800_16e98_gg_{font-size:var(--intergalactic-fs-800, 48px);line-height:var(--intergalactic-lh-800, 117%)}.___SText_16e98_gg_.__noWrap_16e98_gg_{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.___SText_16e98_gg_.__medium_16e98_gg_{font-weight:var(--intergalactic-medium, 500)}.___SText_16e98_gg_.__semibold_16e98_gg_{font-weight:var(--intergalactic-semi-bold, 600)}.___SText_16e98_gg_.__bold_16e98_gg_{font-weight:var(--intergalactic-bold, 700)}.___SText_16e98_gg_.__italic_16e98_gg_{font-style:italic}.___SText_16e98_gg_.__monospace_16e98_gg_{font-family:Consolas,"Roboto Mono",Menlo,Courier,monospace}.___SText_16e98_gg_.__uppercase_16e98_gg_{text-transform:uppercase}.___SText_16e98_gg_.__lowercase_16e98_gg_{text-transform:lowercase}.___SText_16e98_gg_.__capitalize_16e98_gg_{text-transform:capitalize}.___SText_16e98_gg_.__decoration_16e98_gg_{-webkit-text-decoration:var(--decoration_16e98);text-decoration:var(--decoration_16e98)}.___SText_16e98_gg_.__color_16e98_gg_{color:var(--color_16e98)}.___SText_16e98_gg_.__fontSize_16e98_gg_{font-size:var(--fontSize_16e98)}.___SText_16e98_gg_.__lineHeight_16e98_gg_{line-height:var(--lineHeight_16e98)}.___SText_16e98_gg_.__fontWeight_16e98_gg_{font-weight:var(--fontWeight_16e98)}.___SText_16e98_gg_.__textAlign_16e98_gg_{text-align:var(--textAlign_16e98)}.___SText_16e98_gg_._use_primary_16e98_gg_{color:var(--intergalactic-text-primary, #191b23)}.___SText_16e98_gg_._use_secondary_16e98_gg_{color:var(--intergalactic-text-secondary, #6c6e79)}.___SText_16e98_gg_.__disabled_16e98_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3)}@media (prefers-reduced-motion){.___SText_16e98_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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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
- "16e98_gg_"
13
+ "s4dem_gg_"
14
14
  ), /*__reshadow_css_end__*/
15
15
  {
16
- "__SText": "___SText_16e98_gg_",
17
- "_size_400": "_size_400_16e98_gg_",
18
- "_size_500": "_size_500_16e98_gg_",
19
- "_size_600": "_size_600_16e98_gg_",
20
- "_size_700": "_size_700_16e98_gg_",
21
- "_size_800": "_size_800_16e98_gg_",
22
- "_noWrap": "__noWrap_16e98_gg_",
23
- "_medium": "__medium_16e98_gg_",
24
- "_semibold": "__semibold_16e98_gg_",
25
- "_bold": "__bold_16e98_gg_",
26
- "_italic": "__italic_16e98_gg_",
27
- "_monospace": "__monospace_16e98_gg_",
28
- "_uppercase": "__uppercase_16e98_gg_",
29
- "_lowercase": "__lowercase_16e98_gg_",
30
- "_capitalize": "__capitalize_16e98_gg_",
31
- "_decoration": "__decoration_16e98_gg_",
32
- "--decoration": "--decoration_16e98",
33
- "_color": "__color_16e98_gg_",
34
- "--color": "--color_16e98",
35
- "_fontSize": "__fontSize_16e98_gg_",
36
- "--fontSize": "--fontSize_16e98",
37
- "_lineHeight": "__lineHeight_16e98_gg_",
38
- "--lineHeight": "--lineHeight_16e98",
39
- "_fontWeight": "__fontWeight_16e98_gg_",
40
- "--fontWeight": "--fontWeight_16e98",
41
- "_textAlign": "__textAlign_16e98_gg_",
42
- "--textAlign": "--textAlign_16e98",
43
- "_use_primary": "_use_primary_16e98_gg_",
44
- "_use_secondary": "_use_secondary_16e98_gg_",
45
- "_disabled": "__disabled_16e98_gg_",
46
- "_formatTags": "__formatTags_16e98_gg_",
47
- "_ellipsis": "__ellipsis_16e98_gg_",
48
- "_trim_end": "_trim_end_16e98_gg_",
49
- "_maxLine": "__maxLine_16e98_gg_",
50
- "--maxLine": "--maxLine_16e98",
51
- "_trim_middle": "_trim_middle_16e98_gg_",
52
- "_size_100": "_size_100_16e98_gg_",
53
- "_size_200": "_size_200_16e98_gg_",
54
- "_size_300": "_size_300_16e98_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_"
55
56
  })
56
57
  );
57
58
  class TextRoot extends Component {
@@ -60,7 +61,7 @@ class TextRoot extends Component {
60
61
  _defineProperty(this, "ellipsis", null);
61
62
  _defineProperty(this, "innerRef", /* @__PURE__ */ React.createRef());
62
63
  _defineProperty(this, "state", {
63
- showHint: false
64
+ isEllipsized: false
64
65
  });
65
66
  this.handleEllipsized = this.handleEllipsized.bind(this);
66
67
  }
@@ -68,7 +69,11 @@ class TextRoot extends Component {
68
69
  this.initEllipsis();
69
70
  }
70
71
  componentDidUpdate(prevProps) {
71
- 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) {
72
77
  this.cleanUpEllipsis();
73
78
  this.initEllipsis();
74
79
  }
@@ -83,18 +88,20 @@ class TextRoot extends Component {
83
88
  color,
84
89
  underline,
85
90
  lineThrough,
91
+ hint,
86
92
  hintProps,
87
93
  children,
88
94
  ellipsis,
95
+ ellipsisProps,
89
96
  resolveColor
90
97
  } = this.asProps;
91
98
  const {
92
- showHint
99
+ isEllipsized
93
100
  } = this.state;
94
- const cropPosition = typeof ellipsis === "object" ? ellipsis.cropPosition ?? "end" : ellipsis === true ? "end" : void 0;
95
- let withHint = hintProps !== false;
96
- const maxLineValue = typeof ellipsis === "object" && ellipsis.maxLine !== void 0 ? ellipsis.maxLine : void 0;
97
- 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) {
98
105
  withHint = false;
99
106
  }
100
107
  return _ref2 = sstyled(styles), /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(SText, _ref2.cn("SText", {
@@ -104,24 +111,30 @@ class TextRoot extends Component {
104
111
  "ref": this.innerRef,
105
112
  "use:decoration": this.getTextDecoration(underline, lineThrough),
106
113
  "use:color": resolveColor(color),
107
- "use:ellipsis": Boolean(ellipsis),
114
+ "use:ellipsis": ellipsis !== void 0 ? ellipsis : Boolean(ellipsisProps),
115
+ "isEllipsized": isEllipsized,
108
116
  "maxLine": maxLineValue,
109
117
  "trim": cropPosition
110
118
  }, _ref)
111
- })), showHint && withHint && /* @__PURE__ */ React.createElement(Hint, _ref2.cn("Hint", {
119
+ })), isEllipsized && withHint && /* @__PURE__ */ React.createElement(Hint, _ref2.cn("Hint", {
112
120
  "triggerRef": this.innerRef,
113
121
  ...hintProps
114
122
  }), children));
115
123
  }
116
- handleEllipsized(isEllipsis) {
124
+ handleEllipsized(isEllipsized) {
117
125
  this.setState({
118
- showHint: isEllipsis
126
+ isEllipsized
119
127
  });
120
128
  }
121
129
  initEllipsis() {
122
- const ellipsis = this.asProps.ellipsis;
123
- if (ellipsis && this.innerRef.current) {
124
- 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 ?? {});
125
138
  this.ellipsis.on("isEllipsized", this.handleEllipsized);
126
139
  }
127
140
  }
@@ -130,7 +143,7 @@ class TextRoot extends Component {
130
143
  (_a = this.ellipsis) == null ? void 0 : _a.off("isEllipsized", this.handleEllipsized);
131
144
  (_b = this.ellipsis) == null ? void 0 : _b.cleanUp();
132
145
  this.setState({
133
- showHint: false
146
+ isEllipsized: false
134
147
  });
135
148
  }
136
149
  getTextDecoration(underline, lineThrough) {
@@ -145,9 +158,6 @@ class TextRoot extends Component {
145
158
  _defineProperty(TextRoot, "enhance", [resolveColorEnhance()]);
146
159
  _defineProperty(TextRoot, "styles", styles);
147
160
  _defineProperty(TextRoot, "displayName", "Text");
148
- _defineProperty(TextRoot, "defaultProps", {
149
- ellipsis: false
150
- });
151
161
  const Text = createComponent(TextRoot);
152
162
  export {
153
163
  Text as default
@@ -232,8 +232,10 @@ 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
- &[trim='end']::after {
238
+ &[trim='end'][isEllipsized]::after {
237
239
  content: '';
238
240
  display: block;
239
241
  }
@@ -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,14 +62,24 @@ export type TextProps = BoxProps & {
45
62
  use?: 'primary' | 'secondary';
46
63
  /** Makes text semi-transparent to indicate disabled state */
47
64
  disabled?: boolean;
48
- /** Enable formatting/styling for all nested HTML tags with our default styles for them */
49
- formatTags?: boolean;
50
- /** 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. */
51
- ellipsis?: true | Readonly<EllipsisSettings> | Ellipsis;
52
- /** Settings for a hint with full text (cropped by ellipsis) */
53
- hintProps?: Partial<Omit<SimpleHintPopperProps, 'children'>> | false;
54
65
  };
55
66
 
67
+ export type TextProps = BoxProps & BaseTextProps & (
68
+ {
69
+ /** Enable formatting/styling for all nested HTML tags with our default styles for them */
70
+ formatTags?: boolean;
71
+ ellipsis?: never;
72
+ ellipsisProps?: never;
73
+ hint?: never;
74
+ hintProps?: never;
75
+ } |
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
+ );
82
+
56
83
  export type ListProps = TextProps & {
57
84
  /** Marker of the entire list
58
85
  * @default • */
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.29",
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/core": "17.0.0-prerelease.29",
29
- "@semcore/base-components": "17.0.0-prerelease.29",
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.29"
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"