@semcore/ellipsis 17.0.0-prerelease.43 → 17.0.1
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 +6 -0
- package/lib/cjs/Ellipsis.js +10 -10
- package/lib/es6/Ellipsis.js +10 -10
- package/lib/esm/Ellipsis.mjs +12 -11
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
package/lib/cjs/Ellipsis.js
CHANGED
|
@@ -21,18 +21,18 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
21
21
|
var _useResizeObserver = require("./useResizeObserver");
|
|
22
22
|
var _utils = require("./utils");
|
|
23
23
|
/*!__reshadow-styles__:"./style/ellipsis.shadow.css"*/
|
|
24
|
-
const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".
|
|
24
|
+
const style = (/*__reshadow_css_start__*/_core.sstyled.insert(/*__inner_css_start__*/".___SBeginning_hyasj_gg_,.___SEllipsis_hyasj_gg_{overflow:hidden;display:inline-block;text-overflow:ellipsis;white-space:pre}.___SEllipsis_hyasj_gg_.__maxLine_hyasj_gg_{display:-webkit-box;-webkit-line-clamp:var(--maxLine_hyasj);-webkit-box-orient:vertical;overflow:hidden;white-space:normal;word-wrap:break-word}.___SContainerMiddle_hyasj_gg_,.___SContainer_hyasj_gg_,.___SEllipsis_hyasj_gg_.__middle-mod_hyasj_gg_,.___SNoTooltipContainer_hyasj_gg_{display:flex;overflow:hidden}.___SContainerMiddle_hyasj_gg_>:has(.___SBeginning_hyasj_gg_),.___SContainerMiddle_hyasj_gg_>:has(.___STail_hyasj_gg_){display:flex;width:100%}.___STail_hyasj_gg_{white-space:pre}", /*__inner_css_end__*/"hyasj_gg_"),
|
|
25
25
|
/*__reshadow_css_end__*/
|
|
26
26
|
{
|
|
27
|
-
"__SBeginning": "
|
|
28
|
-
"__SEllipsis": "
|
|
29
|
-
"__SContainer": "
|
|
30
|
-
"__SNoTooltipContainer": "
|
|
31
|
-
"__SContainerMiddle": "
|
|
32
|
-
"_maxLine": "
|
|
33
|
-
"--maxLine": "--
|
|
34
|
-
"_middle-mod": "__middle-
|
|
35
|
-
"__STail": "
|
|
27
|
+
"__SBeginning": "___SBeginning_hyasj_gg_",
|
|
28
|
+
"__SEllipsis": "___SEllipsis_hyasj_gg_",
|
|
29
|
+
"__SContainer": "___SContainer_hyasj_gg_",
|
|
30
|
+
"__SNoTooltipContainer": "___SNoTooltipContainer_hyasj_gg_",
|
|
31
|
+
"__SContainerMiddle": "___SContainerMiddle_hyasj_gg_",
|
|
32
|
+
"_maxLine": "__maxLine_hyasj_gg_",
|
|
33
|
+
"--maxLine": "--maxLine_hyasj",
|
|
34
|
+
"_middle-mod": "__middle-mod_hyasj_gg_",
|
|
35
|
+
"__STail": "___STail_hyasj_gg_"
|
|
36
36
|
});
|
|
37
37
|
const defaultTooltipProps = ['title', 'theme', 'strategy', 'modifiers', 'placement', 'interaction', 'timeout', 'visible', 'defaultVisible', 'onVisibleChange', 'offset', 'preventOverflow', 'arrow', 'flip', 'computeStyles', 'eventListeners', 'onFirstUpdate', 'cursorAnchoring'];
|
|
38
38
|
const forcedAdvancedMode = {
|
package/lib/es6/Ellipsis.js
CHANGED
|
@@ -14,18 +14,18 @@ import useEnhancedEffect from '@semcore/core/lib/utils/use/useEnhancedEffect';
|
|
|
14
14
|
import Tooltip from '@semcore/tooltip';
|
|
15
15
|
import React from 'react';
|
|
16
16
|
/*!__reshadow-styles__:"./style/ellipsis.shadow.css"*/
|
|
17
|
-
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".
|
|
17
|
+
const style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SBeginning_hyasj_gg_,.___SEllipsis_hyasj_gg_{overflow:hidden;display:inline-block;text-overflow:ellipsis;white-space:pre}.___SEllipsis_hyasj_gg_.__maxLine_hyasj_gg_{display:-webkit-box;-webkit-line-clamp:var(--maxLine_hyasj);-webkit-box-orient:vertical;overflow:hidden;white-space:normal;word-wrap:break-word}.___SContainerMiddle_hyasj_gg_,.___SContainer_hyasj_gg_,.___SEllipsis_hyasj_gg_.__middle-mod_hyasj_gg_,.___SNoTooltipContainer_hyasj_gg_{display:flex;overflow:hidden}.___SContainerMiddle_hyasj_gg_>:has(.___SBeginning_hyasj_gg_),.___SContainerMiddle_hyasj_gg_>:has(.___STail_hyasj_gg_){display:flex;width:100%}.___STail_hyasj_gg_{white-space:pre}", /*__inner_css_end__*/"hyasj_gg_"),
|
|
18
18
|
/*__reshadow_css_end__*/
|
|
19
19
|
{
|
|
20
|
-
"__SBeginning": "
|
|
21
|
-
"__SEllipsis": "
|
|
22
|
-
"__SContainer": "
|
|
23
|
-
"__SNoTooltipContainer": "
|
|
24
|
-
"__SContainerMiddle": "
|
|
25
|
-
"_maxLine": "
|
|
26
|
-
"--maxLine": "--
|
|
27
|
-
"_middle-mod": "__middle-
|
|
28
|
-
"__STail": "
|
|
20
|
+
"__SBeginning": "___SBeginning_hyasj_gg_",
|
|
21
|
+
"__SEllipsis": "___SEllipsis_hyasj_gg_",
|
|
22
|
+
"__SContainer": "___SContainer_hyasj_gg_",
|
|
23
|
+
"__SNoTooltipContainer": "___SNoTooltipContainer_hyasj_gg_",
|
|
24
|
+
"__SContainerMiddle": "___SContainerMiddle_hyasj_gg_",
|
|
25
|
+
"_maxLine": "__maxLine_hyasj_gg_",
|
|
26
|
+
"--maxLine": "--maxLine_hyasj",
|
|
27
|
+
"_middle-mod": "__middle-mod_hyasj_gg_",
|
|
28
|
+
"__STail": "___STail_hyasj_gg_"
|
|
29
29
|
});
|
|
30
30
|
import { useResizeObserver } from './useResizeObserver';
|
|
31
31
|
import { isTextOverflowing, setFontSettings } from './utils';
|
package/lib/esm/Ellipsis.mjs
CHANGED
|
@@ -12,24 +12,25 @@ import Tooltip from "@semcore/tooltip";
|
|
|
12
12
|
import React from "react";
|
|
13
13
|
import { useResizeObserver } from "./useResizeObserver.mjs";
|
|
14
14
|
import { isTextOverflowing, setFontSettings } from "./utils.mjs";
|
|
15
|
+
/*!__reshadow-styles__:"./style/ellipsis.shadow.css"*/
|
|
15
16
|
const style = (
|
|
16
17
|
/*__reshadow_css_start__*/
|
|
17
18
|
(sstyled.insert(
|
|
18
19
|
/*__inner_css_start__*/
|
|
19
|
-
".
|
|
20
|
+
".___SBeginning_hyasj_gg_,.___SEllipsis_hyasj_gg_{overflow:hidden;display:inline-block;text-overflow:ellipsis;white-space:pre}.___SEllipsis_hyasj_gg_.__maxLine_hyasj_gg_{display:-webkit-box;-webkit-line-clamp:var(--maxLine_hyasj);-webkit-box-orient:vertical;overflow:hidden;white-space:normal;word-wrap:break-word}.___SContainerMiddle_hyasj_gg_,.___SContainer_hyasj_gg_,.___SEllipsis_hyasj_gg_.__middle-mod_hyasj_gg_,.___SNoTooltipContainer_hyasj_gg_{display:flex;overflow:hidden}.___SContainerMiddle_hyasj_gg_>:has(.___SBeginning_hyasj_gg_),.___SContainerMiddle_hyasj_gg_>:has(.___STail_hyasj_gg_){display:flex;width:100%}.___STail_hyasj_gg_{white-space:pre}",
|
|
20
21
|
/*__inner_css_end__*/
|
|
21
|
-
"
|
|
22
|
+
"hyasj_gg_"
|
|
22
23
|
), /*__reshadow_css_end__*/
|
|
23
24
|
{
|
|
24
|
-
"__SBeginning": "
|
|
25
|
-
"__SEllipsis": "
|
|
26
|
-
"__SContainer": "
|
|
27
|
-
"__SNoTooltipContainer": "
|
|
28
|
-
"__SContainerMiddle": "
|
|
29
|
-
"_maxLine": "
|
|
30
|
-
"--maxLine": "--
|
|
31
|
-
"_middle-mod": "__middle-
|
|
32
|
-
"__STail": "
|
|
25
|
+
"__SBeginning": "___SBeginning_hyasj_gg_",
|
|
26
|
+
"__SEllipsis": "___SEllipsis_hyasj_gg_",
|
|
27
|
+
"__SContainer": "___SContainer_hyasj_gg_",
|
|
28
|
+
"__SNoTooltipContainer": "___SNoTooltipContainer_hyasj_gg_",
|
|
29
|
+
"__SContainerMiddle": "___SContainerMiddle_hyasj_gg_",
|
|
30
|
+
"_maxLine": "__maxLine_hyasj_gg_",
|
|
31
|
+
"--maxLine": "--maxLine_hyasj",
|
|
32
|
+
"_middle-mod": "__middle-mod_hyasj_gg_",
|
|
33
|
+
"__STail": "___STail_hyasj_gg_"
|
|
33
34
|
})
|
|
34
35
|
);
|
|
35
36
|
const defaultTooltipProps = ["title", "theme", "strategy", "modifiers", "placement", "interaction", "timeout", "visible", "defaultVisible", "onVisibleChange", "offset", "preventOverflow", "arrow", "flip", "computeStyles", "eventListeners", "onFirstUpdate", "cursorAnchoring"];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/ellipsis",
|
|
3
3
|
"description": "Semrush Ellipsis Component",
|
|
4
|
-
"version": "17.0.
|
|
4
|
+
"version": "17.0.1",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
"require": "./lib/cjs/index.js"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/tooltip": "^17.0.
|
|
17
|
+
"@semcore/tooltip": "^17.0.1"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@semcore/base-components": "^17.0.
|
|
20
|
+
"@semcore/base-components": "^17.0.1"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@semcore/
|
|
24
|
-
"@semcore/
|
|
23
|
+
"@semcore/core": "17.0.1",
|
|
24
|
+
"@semcore/base-components": "17.0.1",
|
|
25
25
|
"@semcore/testing-utils": "1.0.0"
|
|
26
26
|
},
|
|
27
27
|
"repository": {
|