@semcore/link 5.27.0 → 5.28.0-prerelease.2
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 +3 -3
- package/lib/cjs/Link.js +13 -12
- package/lib/cjs/Link.js.map +1 -1
- package/lib/es6/Link.js +13 -13
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
-
## [5.
|
|
5
|
+
## [5.28.0] - 2024-05-16
|
|
6
6
|
|
|
7
7
|
### Changed
|
|
8
8
|
|
|
9
|
-
- Version minor update due to children dependencies update (`@semcore/utils` [4.
|
|
9
|
+
- Version minor update due to children dependencies update (`@semcore/utils` [4.25.0 ~> 4.26.1], `@semcore/flex-box` [5.24.0 ~> 5.25.0], `@semcore/core` [2.22.0 ~> 2.23.0]).
|
|
10
10
|
|
|
11
|
-
## [5.
|
|
11
|
+
## [5.27.0] - 2024-05-16
|
|
12
12
|
|
|
13
13
|
### Changed
|
|
14
14
|
|
package/lib/cjs/Link.js
CHANGED
|
@@ -13,6 +13,7 @@ var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
13
13
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
14
14
|
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
15
15
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
|
+
var _index = require("@semcore/utils/lib/core/index");
|
|
16
17
|
var _core = _interopRequireWildcard(require("@semcore/core"));
|
|
17
18
|
var _react = _interopRequireDefault(require("react"));
|
|
18
19
|
var _typography = require("@semcore/typography");
|
|
@@ -23,18 +24,18 @@ var _logger = _interopRequireDefault(require("@semcore/utils/lib/logger"));
|
|
|
23
24
|
var _hasLabels = _interopRequireDefault(require("@semcore/utils/lib/hasLabels"));
|
|
24
25
|
var _resolveColorEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/resolveColorEnhance"));
|
|
25
26
|
/*__reshadow-styles__:"./style/link.shadow.css"*/
|
|
26
|
-
var style = ( /*__reshadow_css_start__*/
|
|
27
|
-
"__SLink": "
|
|
28
|
-
"_keyboardFocused": "
|
|
29
|
-
"_visually-disabled": "__visually-
|
|
30
|
-
"_noWrapText": "
|
|
31
|
-
"_inline": "
|
|
32
|
-
"__SAddon": "
|
|
33
|
-
"__SText": "
|
|
34
|
-
"_active": "
|
|
35
|
-
"_enableVisited": "
|
|
36
|
-
"_text-color": "__text-
|
|
37
|
-
"--text-color": "--text-
|
|
27
|
+
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SLink_1yqhr_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_1yqhr_gg_:active,.___SLink_1yqhr_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SLink_1yqhr_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SLink_1yqhr_gg_::-moz-focus-inner{border:0;padding:0}.___SLink_1yqhr_gg_.__active_1yqhr_gg_,.___SLink_1yqhr_gg_:active{color:var(--intergalactic-text-link-hover-active, #044792)}@media (hover:hover){.___SLink_1yqhr_gg_:hover{color:var(--intergalactic-text-link-hover-active, #044792)}}.___SLink_1yqhr_gg_.__active_1yqhr_gg_ .___SText_1yqhr_gg_,.___SLink_1yqhr_gg_:active .___SText_1yqhr_gg_{border-color:currentColor}@media (hover:hover){.___SLink_1yqhr_gg_:hover .___SText_1yqhr_gg_{border-color:currentColor}}.___SLink_1yqhr_gg_.__enableVisited_1yqhr_gg_:visited{color:var(--intergalactic-text-link-visited, #8649e1)}@media (hover:hover){.___SLink_1yqhr_gg_.__enableVisited_1yqhr_gg_:visited:hover{color:var(--intergalactic-text-link-visited, #8649e1)}}.___SLink_1yqhr_gg_.__keyboardFocused_1yqhr_gg_{outline-color:var(--intergalactic-keyboard-focus-outline, rgba(0, 143, 248, 0.5));outline-style:solid;outline-width:3px}.___SLink_1yqhr_gg_.__visually-disabled_1yqhr_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}.___SLink_1yqhr_gg_.__noWrapText_1yqhr_gg_{white-space:nowrap}.___SLink_1yqhr_gg_.__inline_1yqhr_gg_{display:inline}.___SAddon_1yqhr_gg_{display:inline-flex;justify-content:center;align-items:center;margin-bottom:var(--intergalactic-spacing-05x, 2px);vertical-align:middle}.___SLink_1yqhr_gg_ .___SAddon_1yqhr_gg_:not(:only-child):first-child{margin-right:var(--intergalactic-spacing-1x, 4px)}.___SLink_1yqhr_gg_ .___SAddon_1yqhr_gg_:not(:only-child):last-child{margin-left:var(--intergalactic-spacing-1x, 4px)}.___SText_1yqhr_gg_{border-bottom-width:1px;border-bottom-style:solid;border-color:transparent;transition:border-bottom-color .15s ease-in-out}.___SLink_1yqhr_gg_.__text-color_1yqhr_gg_{color:var(--text-color_1yqhr)}.___SLink_1yqhr_gg_.__text-color_1yqhr_gg_.__active_1yqhr_gg_,.___SLink_1yqhr_gg_.__text-color_1yqhr_gg_:active{color:var(--text-color_1yqhr);filter:brightness(.8)}@media (hover:hover){.___SLink_1yqhr_gg_.__text-color_1yqhr_gg_:hover{color:var(--text-color_1yqhr);filter:brightness(.8)}}@media (prefers-reduced-motion){.___SLink_1yqhr_gg_,.___SText_1yqhr_gg_{transition:none}}" /*__inner_css_end__*/, "1yqhr_gg_") /*__reshadow_css_end__*/, {
|
|
28
|
+
"__SLink": "___SLink_1yqhr_gg_",
|
|
29
|
+
"_keyboardFocused": "__keyboardFocused_1yqhr_gg_",
|
|
30
|
+
"_visually-disabled": "__visually-disabled_1yqhr_gg_",
|
|
31
|
+
"_noWrapText": "__noWrapText_1yqhr_gg_",
|
|
32
|
+
"_inline": "__inline_1yqhr_gg_",
|
|
33
|
+
"__SAddon": "___SAddon_1yqhr_gg_",
|
|
34
|
+
"__SText": "___SText_1yqhr_gg_",
|
|
35
|
+
"_active": "__active_1yqhr_gg_",
|
|
36
|
+
"_enableVisited": "__enableVisited_1yqhr_gg_",
|
|
37
|
+
"_text-color": "__text-color_1yqhr_gg_",
|
|
38
|
+
"--text-color": "--text-color_1yqhr"
|
|
38
39
|
});
|
|
39
40
|
var RootLink = /*#__PURE__*/function (_Component) {
|
|
40
41
|
(0, _inherits2["default"])(RootLink, _Component);
|
package/lib/cjs/Link.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_typography","_flexBox","_keyboardFocusEnhance","_addonTextChildren","_logger","_hasLabels","_resolveColorEnhance","style","sstyled","insert","RootLink","_Component","_inherits2","_super","_createSuper2","_this","_classCallCheck2","_len","arguments","length","args","Array","_key","call","apply","concat","_defineProperty2","_assertThisInitialized2","React","createRef","_createClass2","key","value","componentDidMount","process","env","NODE_ENV","logger","warn","containerRef","current","hasLabels","asProps","displayName","render","_ref","_ref4","SLink","Text","_this$asProps","Children","styles","noWrap","addonLeft","addonRight","color","resolveColor","disabled","href","createElement","cn","_objectSpread2","assignProps","undefined","Link","Addon","tag","addonTextChildren","Component","keyboardFocusEnhance","resolveColorEnhance","LinkText","props","_ref2","arguments[0]","_ref5","SText","Box","_ref3","_ref6","SAddon","createComponent","_default","exports"],"sources":["../../src/Link.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, Root, sstyled } from '@semcore/core';\nimport { Text } from '@semcore/typography';\nimport { Box } from '@semcore/flex-box';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport addonTextChildren from '@semcore/utils/lib/addonTextChildren';\nimport logger from '@semcore/utils/lib/logger';\nimport hasLabels from '@semcore/utils/lib/hasLabels';\nimport resolveColorEnhance from '@semcore/utils/lib/enhances/resolveColorEnhance';\n\nimport style from './style/link.shadow.css';\n\nclass RootLink extends Component {\n static displayName = 'Link';\n static defaultProps = {\n noWrap: true,\n };\n static style = style;\n static enhance = [keyboardFocusEnhance(), resolveColorEnhance()];\n containerRef = React.createRef();\n\n componentDidMount() {\n if (process.env.NODE_ENV !== 'production') {\n logger.warn(\n this.containerRef.current && !hasLabels(this.containerRef.current),\n `'aria-label' or 'aria-labelledby' are required props for links without text content`,\n this.asProps['data-ui-name'] || RootLink.displayName,\n );\n }\n }\n\n render() {\n const SLink = Root;\n const { Children, styles, noWrap, addonLeft, addonRight, color, resolveColor, disabled, href } =\n this.asProps;\n\n return sstyled(styles)(\n <SLink\n role='link'\n tabIndex={disabled ? -1 : 0}\n use:href={disabled ? undefined : href}\n visually-disabled={disabled}\n render={Text}\n text-color={resolveColor(color)}\n tag='a'\n noWrapText={noWrap}\n use:noWrap={false}\n ref={this.containerRef}\n >\n {addonLeft ? <Link.Addon tag={addonLeft} /> : null}\n {addonTextChildren(Children, Link.Text, Link.Addon)}\n {addonRight ? <Link.Addon tag={addonRight} /> : null}\n </SLink>,\n );\n }\n}\n\nfunction LinkText(props) {\n const SText = Root;\n const { styles } = props;\n return sstyled(styles)(<SText render={Box} tag='span' />);\n}\n\nfunction Addon(props) {\n const SAddon = Root;\n const { styles } = props;\n return sstyled(styles)(<SAddon render={Box} tag='span' />);\n}\n\nconst Link = createComponent(RootLink, {\n Text: LinkText,\n Addon,\n});\n\nexport default Link;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"Link.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_typography","_flexBox","_keyboardFocusEnhance","_addonTextChildren","_logger","_hasLabels","_resolveColorEnhance","style","_index","sstyled","insert","RootLink","_Component","_inherits2","_super","_createSuper2","_this","_classCallCheck2","_len","arguments","length","args","Array","_key","call","apply","concat","_defineProperty2","_assertThisInitialized2","React","createRef","_createClass2","key","value","componentDidMount","process","env","NODE_ENV","logger","warn","containerRef","current","hasLabels","asProps","displayName","render","_ref","_ref4","SLink","Text","_this$asProps","Children","styles","noWrap","addonLeft","addonRight","color","resolveColor","disabled","href","createElement","cn","_objectSpread2","assignProps","undefined","Link","Addon","tag","addonTextChildren","Component","keyboardFocusEnhance","resolveColorEnhance","LinkText","props","_ref2","arguments[0]","_ref5","SText","Box","_ref3","_ref6","SAddon","createComponent","_default","exports"],"sources":["../../src/Link.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, Root, sstyled } from '@semcore/core';\nimport { Text } from '@semcore/typography';\nimport { Box } from '@semcore/flex-box';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport addonTextChildren from '@semcore/utils/lib/addonTextChildren';\nimport logger from '@semcore/utils/lib/logger';\nimport hasLabels from '@semcore/utils/lib/hasLabels';\nimport resolveColorEnhance from '@semcore/utils/lib/enhances/resolveColorEnhance';\n\nimport style from './style/link.shadow.css';\n\nclass RootLink extends Component {\n static displayName = 'Link';\n static defaultProps = {\n noWrap: true,\n };\n static style = style;\n static enhance = [keyboardFocusEnhance(), resolveColorEnhance()];\n containerRef = React.createRef();\n\n componentDidMount() {\n if (process.env.NODE_ENV !== 'production') {\n logger.warn(\n this.containerRef.current && !hasLabels(this.containerRef.current),\n `'aria-label' or 'aria-labelledby' are required props for links without text content`,\n this.asProps['data-ui-name'] || RootLink.displayName,\n );\n }\n }\n\n render() {\n const SLink = Root;\n const { Children, styles, noWrap, addonLeft, addonRight, color, resolveColor, disabled, href } =\n this.asProps;\n\n return sstyled(styles)(\n <SLink\n role='link'\n tabIndex={disabled ? -1 : 0}\n use:href={disabled ? undefined : href}\n visually-disabled={disabled}\n render={Text}\n text-color={resolveColor(color)}\n tag='a'\n noWrapText={noWrap}\n use:noWrap={false}\n ref={this.containerRef}\n >\n {addonLeft ? <Link.Addon tag={addonLeft} /> : null}\n {addonTextChildren(Children, Link.Text, Link.Addon)}\n {addonRight ? <Link.Addon tag={addonRight} /> : null}\n </SLink>,\n );\n }\n}\n\nfunction LinkText(props) {\n const SText = Root;\n const { styles } = props;\n return sstyled(styles)(<SText render={Box} tag='span' />);\n}\n\nfunction Addon(props) {\n const SAddon = Root;\n const { styles } = props;\n return sstyled(styles)(<SAddon render={Box} tag='span' />);\n}\n\nconst Link = createComponent(RootLink, {\n Text: LinkText,\n Addon,\n});\n\nexport default Link;\n"],"mappings":";;;;;;;;;;;;;;;;AACA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AADA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,qBAAA,GAAAH,sBAAA,CAAAF,OAAA;AACA,IAAAM,kBAAA,GAAAJ,sBAAA,CAAAF,OAAA;AACA,IAAAO,OAAA,GAAAL,sBAAA,CAAAF,OAAA;AACA,IAAAQ,UAAA,GAAAN,sBAAA,CAAAF,OAAA;AACA,IAAAS,oBAAA,GAAAP,sBAAA,CAAAF,OAAA;AAAkF;AAAA,IAAAU,KAAA,+BAAAC,MAAA,CAAAC,OAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAAA,IAI5EC,QAAQ,0BAAAC,UAAA;EAAA,IAAAC,UAAA,aAAAF,QAAA,EAAAC,UAAA;EAAA,IAAAE,MAAA,OAAAC,aAAA,aAAAJ,QAAA;EAAA,SAAAA,SAAA;IAAA,IAAAK,KAAA;IAAA,IAAAC,gBAAA,mBAAAN,QAAA;IAAA,SAAAO,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAC,IAAA,OAAAC,KAAA,CAAAJ,IAAA,GAAAK,IAAA,MAAAA,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CAAhBrB,MAAM;EACd,OAAAwB,KAAA,GAAO,IAAAnE,aAAO,EAAC2C,MAAM,CAAC,eAACtD,MAAA,YAAA8D,aAAA,CAACiB,KAAK,EAAAD,KAAA,CAAAf,EAAA,cAAAC,cAAA,qBAAAnE,KAAA,CAAAoE,WAAA;IAAA,OAAkB;EAAM,GAAAW,KAAA,IAAG;AAC1D;AAEA,SAASR,KAAKA,CAACO,KAAK,EAAE;EAAA,IAAAM,KAAA,GAAAJ,YAAA;IAAAK,KAAA;EACpB,IAAMC,MAAM,GAE2BH,YAAG;EAD1C,IAAQ1B,MAAM,GAAKqB,KAAK,CAAhBrB,MAAM;EACd,OAAA4B,KAAA,GAAO,IAAAvE,aAAO,EAAC2C,MAAM,CAAC,eAACtD,MAAA,YAAA8D,aAAA,CAACqB,MAAM,EAAAD,KAAA,CAAAnB,EAAA,eAAAC,cAAA,qBAAAnE,KAAA,CAAAoE,WAAA;IAAA,OAAkB;EAAM,GAAAgB,KAAA,IAAG;AAC3D;AAEA,IAAMd,IAAI,GAAG,IAAAiB,gBAAe,EAACvE,QAAQ,EAAE;EACrCsC,IAAI,EAAEuB,QAAQ;EACdN,KAAK,EAALA;AACF,CAAC,CAAC;AAAC,IAAAiB,QAAA,GAEYlB,IAAI;AAAAmB,OAAA,cAAAD,QAAA"}
|
package/lib/es6/Link.js
CHANGED
|
@@ -5,7 +5,7 @@ import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized
|
|
|
5
5
|
import _inherits from "@babel/runtime/helpers/inherits";
|
|
6
6
|
import _createSuper from "@babel/runtime/helpers/createSuper";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
-
import { sstyled as _sstyled } from "@semcore/core";
|
|
8
|
+
import { sstyled as _sstyled } from "@semcore/utils/lib/core/index";
|
|
9
9
|
import { assignProps as _assignProps3 } from "@semcore/core";
|
|
10
10
|
import { assignProps as _assignProps2 } from "@semcore/core";
|
|
11
11
|
import { assignProps as _assignProps } from "@semcore/core";
|
|
@@ -19,18 +19,18 @@ import logger from '@semcore/utils/lib/logger';
|
|
|
19
19
|
import hasLabels from '@semcore/utils/lib/hasLabels';
|
|
20
20
|
import resolveColorEnhance from '@semcore/utils/lib/enhances/resolveColorEnhance';
|
|
21
21
|
/*__reshadow-styles__:"./style/link.shadow.css"*/
|
|
22
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
23
|
-
"__SLink": "
|
|
24
|
-
"_keyboardFocused": "
|
|
25
|
-
"_visually-disabled": "__visually-
|
|
26
|
-
"_noWrapText": "
|
|
27
|
-
"_inline": "
|
|
28
|
-
"__SAddon": "
|
|
29
|
-
"__SText": "
|
|
30
|
-
"_active": "
|
|
31
|
-
"_enableVisited": "
|
|
32
|
-
"_text-color": "__text-
|
|
33
|
-
"--text-color": "--text-
|
|
22
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SLink_1yqhr_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_1yqhr_gg_:active,.___SLink_1yqhr_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SLink_1yqhr_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SLink_1yqhr_gg_::-moz-focus-inner{border:0;padding:0}.___SLink_1yqhr_gg_.__active_1yqhr_gg_,.___SLink_1yqhr_gg_:active{color:var(--intergalactic-text-link-hover-active, #044792)}@media (hover:hover){.___SLink_1yqhr_gg_:hover{color:var(--intergalactic-text-link-hover-active, #044792)}}.___SLink_1yqhr_gg_.__active_1yqhr_gg_ .___SText_1yqhr_gg_,.___SLink_1yqhr_gg_:active .___SText_1yqhr_gg_{border-color:currentColor}@media (hover:hover){.___SLink_1yqhr_gg_:hover .___SText_1yqhr_gg_{border-color:currentColor}}.___SLink_1yqhr_gg_.__enableVisited_1yqhr_gg_:visited{color:var(--intergalactic-text-link-visited, #8649e1)}@media (hover:hover){.___SLink_1yqhr_gg_.__enableVisited_1yqhr_gg_:visited:hover{color:var(--intergalactic-text-link-visited, #8649e1)}}.___SLink_1yqhr_gg_.__keyboardFocused_1yqhr_gg_{outline-color:var(--intergalactic-keyboard-focus-outline, rgba(0, 143, 248, 0.5));outline-style:solid;outline-width:3px}.___SLink_1yqhr_gg_.__visually-disabled_1yqhr_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}.___SLink_1yqhr_gg_.__noWrapText_1yqhr_gg_{white-space:nowrap}.___SLink_1yqhr_gg_.__inline_1yqhr_gg_{display:inline}.___SAddon_1yqhr_gg_{display:inline-flex;justify-content:center;align-items:center;margin-bottom:var(--intergalactic-spacing-05x, 2px);vertical-align:middle}.___SLink_1yqhr_gg_ .___SAddon_1yqhr_gg_:not(:only-child):first-child{margin-right:var(--intergalactic-spacing-1x, 4px)}.___SLink_1yqhr_gg_ .___SAddon_1yqhr_gg_:not(:only-child):last-child{margin-left:var(--intergalactic-spacing-1x, 4px)}.___SText_1yqhr_gg_{border-bottom-width:1px;border-bottom-style:solid;border-color:transparent;transition:border-bottom-color .15s ease-in-out}.___SLink_1yqhr_gg_.__text-color_1yqhr_gg_{color:var(--text-color_1yqhr)}.___SLink_1yqhr_gg_.__text-color_1yqhr_gg_.__active_1yqhr_gg_,.___SLink_1yqhr_gg_.__text-color_1yqhr_gg_:active{color:var(--text-color_1yqhr);filter:brightness(.8)}@media (hover:hover){.___SLink_1yqhr_gg_.__text-color_1yqhr_gg_:hover{color:var(--text-color_1yqhr);filter:brightness(.8)}}@media (prefers-reduced-motion){.___SLink_1yqhr_gg_,.___SText_1yqhr_gg_{transition:none}}" /*__inner_css_end__*/, "1yqhr_gg_") /*__reshadow_css_end__*/, {
|
|
23
|
+
"__SLink": "___SLink_1yqhr_gg_",
|
|
24
|
+
"_keyboardFocused": "__keyboardFocused_1yqhr_gg_",
|
|
25
|
+
"_visually-disabled": "__visually-disabled_1yqhr_gg_",
|
|
26
|
+
"_noWrapText": "__noWrapText_1yqhr_gg_",
|
|
27
|
+
"_inline": "__inline_1yqhr_gg_",
|
|
28
|
+
"__SAddon": "___SAddon_1yqhr_gg_",
|
|
29
|
+
"__SText": "___SText_1yqhr_gg_",
|
|
30
|
+
"_active": "__active_1yqhr_gg_",
|
|
31
|
+
"_enableVisited": "__enableVisited_1yqhr_gg_",
|
|
32
|
+
"_text-color": "__text-color_1yqhr_gg_",
|
|
33
|
+
"--text-color": "--text-color_1yqhr"
|
|
34
34
|
});
|
|
35
35
|
var RootLink = /*#__PURE__*/function (_Component) {
|
|
36
36
|
_inherits(RootLink, _Component);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/link",
|
|
3
3
|
"description": "Semrush Link Component",
|
|
4
|
-
"version": "5.
|
|
4
|
+
"version": "5.28.0-prerelease.2",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"author": "UI-kit team <ui-kit-team@semrush.com>",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@semcore/utils": "4.
|
|
13
|
-
"@semcore/typography": "5.
|
|
14
|
-
"@semcore/flex-box": "5.
|
|
12
|
+
"@semcore/utils": "4.26.1-prerelease.2",
|
|
13
|
+
"@semcore/typography": "5.33.0-prerelease.2",
|
|
14
|
+
"@semcore/flex-box": "5.25.0-prerelease.2"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@semcore/core": "^2.
|
|
17
|
+
"@semcore/core": "^2.23.0-prerelease.2",
|
|
18
18
|
"react": "16.8 - 18",
|
|
19
19
|
"react-dom": "16.8 - 18"
|
|
20
20
|
},
|