@semcore/link 5.44.1 → 5.44.2-prerelease.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/Link.js +12 -12
- package/lib/es6/Link.js +12 -12
- package/lib/esm/Link.mjs +54 -54
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
+
## [5.44.2] - 2025-04-04
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Version patch update due to children dependencies update (`@semcore/utils` [4.48.1 ~> 4.48.2], `@semcore/flex-box` [5.41.1 ~> 5.41.2], `@semcore/core` [2.39.1 ~> 2.39.2]).
|
|
10
|
+
|
|
5
11
|
## [5.44.1] - 2025-03-20
|
|
6
12
|
|
|
7
13
|
### Changed
|
package/lib/cjs/Link.js
CHANGED
|
@@ -25,18 +25,18 @@ var _logger = _interopRequireDefault(require("@semcore/utils/lib/logger"));
|
|
|
25
25
|
var _hasLabels = _interopRequireDefault(require("@semcore/utils/lib/hasLabels"));
|
|
26
26
|
var _resolveColorEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/resolveColorEnhance"));
|
|
27
27
|
/*__reshadow-styles__:"./style/link.shadow.css"*/
|
|
28
|
-
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".
|
|
29
|
-
"__SLink": "
|
|
30
|
-
"_keyboardFocused": "
|
|
31
|
-
"_visually-disabled": "__visually-
|
|
32
|
-
"_noWrapText": "
|
|
33
|
-
"_inline": "
|
|
34
|
-
"__SAddon": "
|
|
35
|
-
"__SText": "
|
|
36
|
-
"_active": "
|
|
37
|
-
"_enableVisited": "
|
|
38
|
-
"_text-color": "__text-
|
|
39
|
-
"--text-color": "--text-
|
|
28
|
+
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SLink_15i81_gg_{display:inline-block;font-family:inherit;color:var(--intergalactic-text-link, #006dca);line-height:normal;position:relative;cursor:pointer;-webkit-text-decoration:none;text-decoration:none;border:0;padding:0;margin:0;box-shadow:none;-webkit-tap-highlight-color:transparent;outline:0;background:0 0;transition:color .15s ease-in-out}.___SLink_15i81_gg_:active,.___SLink_15i81_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SLink_15i81_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SLink_15i81_gg_::-moz-focus-inner{border:0;padding:0}.___SLink_15i81_gg_.__active_15i81_gg_,.___SLink_15i81_gg_:active{color:var(--intergalactic-text-link-hover-active, #044792)}@media (hover:hover){.___SLink_15i81_gg_:hover{color:var(--intergalactic-text-link-hover-active, #044792)}}.___SLink_15i81_gg_.__active_15i81_gg_ .___SText_15i81_gg_,.___SLink_15i81_gg_:active .___SText_15i81_gg_{border-color:currentColor}@media (hover:hover){.___SLink_15i81_gg_:hover .___SText_15i81_gg_{border-color:currentColor}}.___SLink_15i81_gg_.__enableVisited_15i81_gg_:visited{color:var(--intergalactic-text-link-visited, #8649e1)}@media (hover:hover){.___SLink_15i81_gg_.__enableVisited_15i81_gg_:visited:hover{color:var(--intergalactic-text-link-visited, #8649e1)}}.___SLink_15i81_gg_.__keyboardFocused_15i81_gg_{outline-color:var(--intergalactic-keyboard-focus-outline, rgba(0, 143, 248, 0.5));outline-style:solid;outline-width:3px}.___SLink_15i81_gg_.__visually-disabled_15i81_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}.___SLink_15i81_gg_.__noWrapText_15i81_gg_{white-space:nowrap}.___SLink_15i81_gg_.__inline_15i81_gg_{display:inline}.___SAddon_15i81_gg_{display:inline-flex;justify-content:center;align-items:center;margin-bottom:var(--intergalactic-spacing-05x, 2px);vertical-align:middle;pointer-events:none}.___SLink_15i81_gg_ .___SAddon_15i81_gg_:not(:only-child):first-child{margin-right:var(--intergalactic-spacing-1x, 4px)}.___SLink_15i81_gg_ .___SAddon_15i81_gg_:not(:only-child):last-child{margin-left:var(--intergalactic-spacing-1x, 4px)}.___SText_15i81_gg_{border-bottom-width:1px;border-bottom-style:solid;border-color:transparent;transition:border-bottom-color .15s ease-in-out}.___SLink_15i81_gg_.__text-color_15i81_gg_{color:var(--text-color_15i81)}.___SLink_15i81_gg_.__text-color_15i81_gg_.__active_15i81_gg_,.___SLink_15i81_gg_.__text-color_15i81_gg_:active{color:var(--text-color_15i81);filter:brightness(.8)}@media (hover:hover){.___SLink_15i81_gg_.__text-color_15i81_gg_:hover{color:var(--text-color_15i81);filter:brightness(.8)}}@media (prefers-reduced-motion){.___SLink_15i81_gg_,.___SText_15i81_gg_{transition:none}}" /*__inner_css_end__*/, "15i81_gg_") /*__reshadow_css_end__*/, {
|
|
29
|
+
"__SLink": "___SLink_15i81_gg_",
|
|
30
|
+
"_keyboardFocused": "__keyboardFocused_15i81_gg_",
|
|
31
|
+
"_visually-disabled": "__visually-disabled_15i81_gg_",
|
|
32
|
+
"_noWrapText": "__noWrapText_15i81_gg_",
|
|
33
|
+
"_inline": "__inline_15i81_gg_",
|
|
34
|
+
"__SAddon": "___SAddon_15i81_gg_",
|
|
35
|
+
"__SText": "___SText_15i81_gg_",
|
|
36
|
+
"_active": "__active_15i81_gg_",
|
|
37
|
+
"_enableVisited": "__enableVisited_15i81_gg_",
|
|
38
|
+
"_text-color": "__text-color_15i81_gg_",
|
|
39
|
+
"--text-color": "--text-color_15i81"
|
|
40
40
|
});
|
|
41
41
|
var RootLink = /*#__PURE__*/function (_Component) {
|
|
42
42
|
(0, _inherits2["default"])(RootLink, _Component);
|
package/lib/es6/Link.js
CHANGED
|
@@ -20,18 +20,18 @@ import logger from '@semcore/utils/lib/logger';
|
|
|
20
20
|
import hasLabels from '@semcore/utils/lib/hasLabels';
|
|
21
21
|
import resolveColorEnhance from '@semcore/utils/lib/enhances/resolveColorEnhance';
|
|
22
22
|
/*__reshadow-styles__:"./style/link.shadow.css"*/
|
|
23
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
24
|
-
"__SLink": "
|
|
25
|
-
"_keyboardFocused": "
|
|
26
|
-
"_visually-disabled": "__visually-
|
|
27
|
-
"_noWrapText": "
|
|
28
|
-
"_inline": "
|
|
29
|
-
"__SAddon": "
|
|
30
|
-
"__SText": "
|
|
31
|
-
"_active": "
|
|
32
|
-
"_enableVisited": "
|
|
33
|
-
"_text-color": "__text-
|
|
34
|
-
"--text-color": "--text-
|
|
23
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLink_15i81_gg_{display:inline-block;font-family:inherit;color:var(--intergalactic-text-link, #006dca);line-height:normal;position:relative;cursor:pointer;-webkit-text-decoration:none;text-decoration:none;border:0;padding:0;margin:0;box-shadow:none;-webkit-tap-highlight-color:transparent;outline:0;background:0 0;transition:color .15s ease-in-out}.___SLink_15i81_gg_:active,.___SLink_15i81_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SLink_15i81_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SLink_15i81_gg_::-moz-focus-inner{border:0;padding:0}.___SLink_15i81_gg_.__active_15i81_gg_,.___SLink_15i81_gg_:active{color:var(--intergalactic-text-link-hover-active, #044792)}@media (hover:hover){.___SLink_15i81_gg_:hover{color:var(--intergalactic-text-link-hover-active, #044792)}}.___SLink_15i81_gg_.__active_15i81_gg_ .___SText_15i81_gg_,.___SLink_15i81_gg_:active .___SText_15i81_gg_{border-color:currentColor}@media (hover:hover){.___SLink_15i81_gg_:hover .___SText_15i81_gg_{border-color:currentColor}}.___SLink_15i81_gg_.__enableVisited_15i81_gg_:visited{color:var(--intergalactic-text-link-visited, #8649e1)}@media (hover:hover){.___SLink_15i81_gg_.__enableVisited_15i81_gg_:visited:hover{color:var(--intergalactic-text-link-visited, #8649e1)}}.___SLink_15i81_gg_.__keyboardFocused_15i81_gg_{outline-color:var(--intergalactic-keyboard-focus-outline, rgba(0, 143, 248, 0.5));outline-style:solid;outline-width:3px}.___SLink_15i81_gg_.__visually-disabled_15i81_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}.___SLink_15i81_gg_.__noWrapText_15i81_gg_{white-space:nowrap}.___SLink_15i81_gg_.__inline_15i81_gg_{display:inline}.___SAddon_15i81_gg_{display:inline-flex;justify-content:center;align-items:center;margin-bottom:var(--intergalactic-spacing-05x, 2px);vertical-align:middle;pointer-events:none}.___SLink_15i81_gg_ .___SAddon_15i81_gg_:not(:only-child):first-child{margin-right:var(--intergalactic-spacing-1x, 4px)}.___SLink_15i81_gg_ .___SAddon_15i81_gg_:not(:only-child):last-child{margin-left:var(--intergalactic-spacing-1x, 4px)}.___SText_15i81_gg_{border-bottom-width:1px;border-bottom-style:solid;border-color:transparent;transition:border-bottom-color .15s ease-in-out}.___SLink_15i81_gg_.__text-color_15i81_gg_{color:var(--text-color_15i81)}.___SLink_15i81_gg_.__text-color_15i81_gg_.__active_15i81_gg_,.___SLink_15i81_gg_.__text-color_15i81_gg_:active{color:var(--text-color_15i81);filter:brightness(.8)}@media (hover:hover){.___SLink_15i81_gg_.__text-color_15i81_gg_:hover{color:var(--text-color_15i81);filter:brightness(.8)}}@media (prefers-reduced-motion){.___SLink_15i81_gg_,.___SText_15i81_gg_{transition:none}}" /*__inner_css_end__*/, "15i81_gg_") /*__reshadow_css_end__*/, {
|
|
24
|
+
"__SLink": "___SLink_15i81_gg_",
|
|
25
|
+
"_keyboardFocused": "__keyboardFocused_15i81_gg_",
|
|
26
|
+
"_visually-disabled": "__visually-disabled_15i81_gg_",
|
|
27
|
+
"_noWrapText": "__noWrapText_15i81_gg_",
|
|
28
|
+
"_inline": "__inline_15i81_gg_",
|
|
29
|
+
"__SAddon": "___SAddon_15i81_gg_",
|
|
30
|
+
"__SText": "___SText_15i81_gg_",
|
|
31
|
+
"_active": "__active_15i81_gg_",
|
|
32
|
+
"_enableVisited": "__enableVisited_15i81_gg_",
|
|
33
|
+
"_text-color": "__text-color_15i81_gg_",
|
|
34
|
+
"--text-color": "--text-color_15i81"
|
|
35
35
|
});
|
|
36
36
|
var RootLink = /*#__PURE__*/function (_Component) {
|
|
37
37
|
_inherits(RootLink, _Component);
|
package/lib/esm/Link.mjs
CHANGED
|
@@ -4,10 +4,10 @@ import C from "@babel/runtime/helpers/esm/createClass";
|
|
|
4
4
|
import f from "@babel/runtime/helpers/esm/assertThisInitialized";
|
|
5
5
|
import T from "@babel/runtime/helpers/esm/inherits";
|
|
6
6
|
import E from "@babel/runtime/helpers/esm/createSuper";
|
|
7
|
-
import
|
|
7
|
+
import a from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
8
|
import { sstyled as P } from "@semcore/utils/lib/core/index";
|
|
9
|
-
import R, { sstyled as
|
|
10
|
-
import
|
|
9
|
+
import R, { sstyled as u, assignProps as k, Component as w } from "@semcore/core";
|
|
10
|
+
import o from "react";
|
|
11
11
|
import { Text as M } from "@semcore/typography";
|
|
12
12
|
import { Box as S } from "@semcore/flex-box";
|
|
13
13
|
import { Hint as O } from "@semcore/tooltip";
|
|
@@ -20,79 +20,79 @@ var V = (
|
|
|
20
20
|
/*__reshadow_css_start__*/
|
|
21
21
|
(P.insert(
|
|
22
22
|
/*__inner_css_start__*/
|
|
23
|
-
".
|
|
24
|
-
"
|
|
23
|
+
".___SLink_15i81_gg_{display:inline-block;font-family:inherit;color:var(--intergalactic-text-link, #006dca);line-height:normal;position:relative;cursor:pointer;-webkit-text-decoration:none;text-decoration:none;border:0;padding:0;margin:0;box-shadow:none;-webkit-tap-highlight-color:transparent;outline:0;background:0 0;transition:color .15s ease-in-out}.___SLink_15i81_gg_:active,.___SLink_15i81_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SLink_15i81_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SLink_15i81_gg_::-moz-focus-inner{border:0;padding:0}.___SLink_15i81_gg_.__active_15i81_gg_,.___SLink_15i81_gg_:active{color:var(--intergalactic-text-link-hover-active, #044792)}@media (hover:hover){.___SLink_15i81_gg_:hover{color:var(--intergalactic-text-link-hover-active, #044792)}}.___SLink_15i81_gg_.__active_15i81_gg_ .___SText_15i81_gg_,.___SLink_15i81_gg_:active .___SText_15i81_gg_{border-color:currentColor}@media (hover:hover){.___SLink_15i81_gg_:hover .___SText_15i81_gg_{border-color:currentColor}}.___SLink_15i81_gg_.__enableVisited_15i81_gg_:visited{color:var(--intergalactic-text-link-visited, #8649e1)}@media (hover:hover){.___SLink_15i81_gg_.__enableVisited_15i81_gg_:visited:hover{color:var(--intergalactic-text-link-visited, #8649e1)}}.___SLink_15i81_gg_.__keyboardFocused_15i81_gg_{outline-color:var(--intergalactic-keyboard-focus-outline, rgba(0, 143, 248, 0.5));outline-style:solid;outline-width:3px}.___SLink_15i81_gg_.__visually-disabled_15i81_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}.___SLink_15i81_gg_.__noWrapText_15i81_gg_{white-space:nowrap}.___SLink_15i81_gg_.__inline_15i81_gg_{display:inline}.___SAddon_15i81_gg_{display:inline-flex;justify-content:center;align-items:center;margin-bottom:var(--intergalactic-spacing-05x, 2px);vertical-align:middle;pointer-events:none}.___SLink_15i81_gg_ .___SAddon_15i81_gg_:not(:only-child):first-child{margin-right:var(--intergalactic-spacing-1x, 4px)}.___SLink_15i81_gg_ .___SAddon_15i81_gg_:not(:only-child):last-child{margin-left:var(--intergalactic-spacing-1x, 4px)}.___SText_15i81_gg_{border-bottom-width:1px;border-bottom-style:solid;border-color:transparent;transition:border-bottom-color .15s ease-in-out}.___SLink_15i81_gg_.__text-color_15i81_gg_{color:var(--text-color_15i81)}.___SLink_15i81_gg_.__text-color_15i81_gg_.__active_15i81_gg_,.___SLink_15i81_gg_.__text-color_15i81_gg_:active{color:var(--text-color_15i81);filter:brightness(.8)}@media (hover:hover){.___SLink_15i81_gg_.__text-color_15i81_gg_:hover{color:var(--text-color_15i81);filter:brightness(.8)}}@media (prefers-reduced-motion){.___SLink_15i81_gg_,.___SText_15i81_gg_{transition:none}}",
|
|
24
|
+
"15i81_gg_"
|
|
25
25
|
), {
|
|
26
|
-
__SLink: "
|
|
27
|
-
_keyboardFocused: "
|
|
28
|
-
"_visually-disabled": "__visually-
|
|
29
|
-
_noWrapText: "
|
|
30
|
-
_inline: "
|
|
31
|
-
__SAddon: "
|
|
32
|
-
__SText: "
|
|
33
|
-
_active: "
|
|
34
|
-
_enableVisited: "
|
|
35
|
-
"_text-color": "__text-
|
|
36
|
-
"--text-color": "--text-
|
|
26
|
+
__SLink: "___SLink_15i81_gg_",
|
|
27
|
+
_keyboardFocused: "__keyboardFocused_15i81_gg_",
|
|
28
|
+
"_visually-disabled": "__visually-disabled_15i81_gg_",
|
|
29
|
+
_noWrapText: "__noWrapText_15i81_gg_",
|
|
30
|
+
_inline: "__inline_15i81_gg_",
|
|
31
|
+
__SAddon: "___SAddon_15i81_gg_",
|
|
32
|
+
__SText: "___SText_15i81_gg_",
|
|
33
|
+
_active: "__active_15i81_gg_",
|
|
34
|
+
_enableVisited: "__enableVisited_15i81_gg_",
|
|
35
|
+
"_text-color": "__text-color_15i81_gg_",
|
|
36
|
+
"--text-color": "--text-color_15i81"
|
|
37
37
|
})
|
|
38
38
|
), h = /* @__PURE__ */ function(d) {
|
|
39
|
-
T(
|
|
40
|
-
var
|
|
41
|
-
function
|
|
42
|
-
var
|
|
43
|
-
A(this,
|
|
44
|
-
for (var e = arguments.length,
|
|
45
|
-
|
|
46
|
-
return
|
|
39
|
+
T(n, d);
|
|
40
|
+
var l = E(n);
|
|
41
|
+
function n() {
|
|
42
|
+
var i;
|
|
43
|
+
A(this, n);
|
|
44
|
+
for (var e = arguments.length, r = new Array(e), _ = 0; _ < e; _++)
|
|
45
|
+
r[_] = arguments[_];
|
|
46
|
+
return i = l.call.apply(l, [this].concat(r)), a(f(i), "containerRef", /* @__PURE__ */ o.createRef()), a(f(i), "state", {
|
|
47
47
|
ariaLabelledByContent: "",
|
|
48
48
|
visibleHint: !1
|
|
49
|
-
}),
|
|
50
|
-
|
|
49
|
+
}), a(f(i), "handleMouseEnterOnlyAddon", function() {
|
|
50
|
+
i.setState({
|
|
51
51
|
visibleHint: !0
|
|
52
52
|
});
|
|
53
|
-
}),
|
|
54
|
-
|
|
53
|
+
}), a(f(i), "handleMouseLeaveOnlyAddon", function() {
|
|
54
|
+
i.setState({
|
|
55
55
|
visibleHint: !1
|
|
56
56
|
});
|
|
57
|
-
}),
|
|
57
|
+
}), i;
|
|
58
58
|
}
|
|
59
|
-
return C(
|
|
59
|
+
return C(n, [{
|
|
60
60
|
key: "componentDidMount",
|
|
61
61
|
value: function() {
|
|
62
62
|
var e = this;
|
|
63
|
-
process.env.NODE_ENV !== "production" && F.warn(this.containerRef.current && !H(this.containerRef.current), "'title' or 'aria-label' or 'aria-labelledby' are required props for links without text content", this.asProps["data-ui-name"] ||
|
|
64
|
-
var
|
|
63
|
+
process.env.NODE_ENV !== "production" && F.warn(this.containerRef.current && !H(this.containerRef.current), "'title' or 'aria-label' or 'aria-labelledby' are required props for links without text content", this.asProps["data-ui-name"] || n.displayName), this.asProps["aria-labelledby"] && setTimeout(function() {
|
|
64
|
+
var r, _;
|
|
65
65
|
e.setState({
|
|
66
|
-
ariaLabelledByContent: (
|
|
66
|
+
ariaLabelledByContent: (r = (_ = document.getElementById(e.asProps["aria-labelledby"])) === null || _ === void 0 ? void 0 : _.textContent) !== null && r !== void 0 ? r : ""
|
|
67
67
|
});
|
|
68
68
|
}, 0);
|
|
69
69
|
}
|
|
70
70
|
}, {
|
|
71
71
|
key: "renderChildren",
|
|
72
72
|
value: function() {
|
|
73
|
-
var e = this.asProps,
|
|
74
|
-
return
|
|
73
|
+
var e = this.asProps, r = e.Children, _ = e.styles, t = e.addonLeft, s = e.addonRight;
|
|
74
|
+
return u(_), /* @__PURE__ */ o.createElement(o.Fragment, null, t ? /* @__PURE__ */ o.createElement(v.Addon, {
|
|
75
75
|
tag: t
|
|
76
|
-
}) : null, B(
|
|
76
|
+
}) : null, B(r, v.Text, v.Addon), s ? /* @__PURE__ */ o.createElement(v.Addon, {
|
|
77
77
|
tag: s
|
|
78
78
|
}) : null);
|
|
79
79
|
}
|
|
80
80
|
}, {
|
|
81
81
|
key: "renderOnlyAddons",
|
|
82
82
|
value: function() {
|
|
83
|
-
var e,
|
|
84
|
-
return e =
|
|
83
|
+
var e, r, _, t = this.asProps, s = t.styles, m = t.addonLeft, p = t.addonRight, g = t.title, c = t["aria-label"], b = t.keyboardFocused, x = this.state.visibleHint, L = (r = (_ = g ?? c) !== null && _ !== void 0 ? _ : this.state.ariaLabelledByContent) !== null && r !== void 0 ? r : "";
|
|
84
|
+
return e = u(s), /* @__PURE__ */ o.createElement(v.Addon, {
|
|
85
85
|
tag: O,
|
|
86
86
|
title: L,
|
|
87
87
|
timeout: [250, 50],
|
|
88
88
|
visible: b || x
|
|
89
|
-
}, m && /* @__PURE__ */
|
|
89
|
+
}, m && /* @__PURE__ */ o.createElement(m, e.cn("AddonLeft", {})), p && /* @__PURE__ */ o.createElement(p, e.cn("AddonRight", {})));
|
|
90
90
|
}
|
|
91
91
|
}, {
|
|
92
92
|
key: "render",
|
|
93
93
|
value: function() {
|
|
94
|
-
var e = this.asProps,
|
|
95
|
-
return
|
|
94
|
+
var e = this.asProps, r, _ = M, t = this.asProps, s = t.styles, m = t.noWrap, p = t.color, g = t.resolveColor, c = t.disabled, b = t.href, x = t.children;
|
|
95
|
+
return r = u(s), /* @__PURE__ */ o.createElement(_, r.cn("SLink", y({}, k({
|
|
96
96
|
role: "link",
|
|
97
97
|
tabIndex: c ? -1 : 0,
|
|
98
98
|
"use:href": c ? void 0 : b,
|
|
@@ -107,30 +107,30 @@ var V = (
|
|
|
107
107
|
onMouseLeave: this.handleMouseLeaveOnlyAddon
|
|
108
108
|
}, e))), x !== void 0 ? this.renderChildren() : this.renderOnlyAddons());
|
|
109
109
|
}
|
|
110
|
-
}]),
|
|
110
|
+
}]), n;
|
|
111
111
|
}(w);
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
a(h, "displayName", "Link");
|
|
113
|
+
a(h, "defaultProps", {
|
|
114
114
|
noWrap: !0
|
|
115
115
|
});
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
a(h, "style", V);
|
|
117
|
+
a(h, "enhance", [W(), $()]);
|
|
118
118
|
function N(d) {
|
|
119
|
-
var
|
|
120
|
-
return
|
|
119
|
+
var l = arguments[0], n, i = S, e = d.styles;
|
|
120
|
+
return n = u(e), /* @__PURE__ */ o.createElement(i, n.cn("SText", y({}, k({
|
|
121
121
|
tag: "span"
|
|
122
|
-
},
|
|
122
|
+
}, l))));
|
|
123
123
|
}
|
|
124
124
|
function D(d) {
|
|
125
|
-
var
|
|
126
|
-
return
|
|
125
|
+
var l = arguments[0], n, i = S, e = d.styles;
|
|
126
|
+
return n = u(e), /* @__PURE__ */ o.createElement(i, n.cn("SAddon", y({}, k({
|
|
127
127
|
tag: "span"
|
|
128
|
-
},
|
|
128
|
+
}, l))));
|
|
129
129
|
}
|
|
130
|
-
var
|
|
130
|
+
var v = R(h, {
|
|
131
131
|
Text: N,
|
|
132
132
|
Addon: D
|
|
133
133
|
});
|
|
134
134
|
export {
|
|
135
|
-
|
|
135
|
+
v as default
|
|
136
136
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/link",
|
|
3
3
|
"description": "Semrush Link Component",
|
|
4
|
-
"version": "5.44.1",
|
|
4
|
+
"version": "5.44.2-prerelease.1",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
"types": "./lib/types/index.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/utils": "4.48.1",
|
|
18
|
-
"@semcore/typography": "5.52.1",
|
|
19
|
-
"@semcore/flex-box": "5.41.1",
|
|
20
|
-
"@semcore/tooltip": "6.49.1"
|
|
17
|
+
"@semcore/utils": "4.48.2-prerelease.1",
|
|
18
|
+
"@semcore/typography": "5.52.2-prerelease.1",
|
|
19
|
+
"@semcore/flex-box": "5.41.2-prerelease.1",
|
|
20
|
+
"@semcore/tooltip": "6.49.2-prerelease.1"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@semcore/core": "^2.
|
|
23
|
+
"@semcore/core": "^2.39.2-prerelease.1",
|
|
24
24
|
"react": "16.8 - 18",
|
|
25
25
|
"react-dom": "16.8 - 18"
|
|
26
26
|
},
|