@semcore/button 5.37.0-prerelease.1 → 5.37.1-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/component/Button/Button.js +27 -27
- package/lib/cjs/component/ButtonLink/ButtonLink.js +20 -19
- package/lib/cjs/component/ButtonLink/ButtonLink.js.map +1 -1
- package/lib/cjs/component/ButtonLink/buttonLink.shadow.css +9 -2
- package/lib/es6/component/Button/Button.js +27 -27
- package/lib/es6/component/ButtonLink/ButtonLink.js +20 -19
- package/lib/es6/component/ButtonLink/ButtonLink.js.map +1 -1
- package/lib/es6/component/ButtonLink/buttonLink.shadow.css +9 -2
- package/package.json +7 -7
- package/src/component/ButtonLink/buttonLink.shadow.css +9 -2
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.37.1] - 2024-09-27
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Version patch update due to children dependencies update (`@semcore/utils` [4.36.0 ~> 4.36.2]).
|
|
10
|
+
|
|
5
11
|
## [5.37.0] - 2024-09-09
|
|
6
12
|
|
|
7
13
|
### Added
|
|
@@ -19,33 +19,33 @@ var _flexBox = require("@semcore/flex-box");
|
|
|
19
19
|
var _keyboardFocusEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/keyboardFocusEnhance"));
|
|
20
20
|
var _AbstractButton2 = require("../AbstractButton/AbstractButton");
|
|
21
21
|
/*__reshadow-styles__:"./button.shadow.css"*/
|
|
22
|
-
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SButton_1dunw_gg_{position:relative;display:inline-block;align-items:center;justify-content:center;padding:0;margin:0;white-space:nowrap;font-family:inherit;line-height:normal;-webkit-text-decoration:none;text-decoration:none;text-align:center;vertical-align:middle;border:1px solid transparent;outline:0;box-shadow:none;cursor:pointer;box-sizing:border-box;overflow:visible;-webkit-user-select:none;-moz-user-select:none;user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;font-weight:var(--intergalactic-medium, 500);color:var(--intergalactic-text-secondary, #6c6e79);min-width:-moz-fit-content;min-width:fit-content}.___SButton_1dunw_gg_::-moz-focus-inner{padding:0;border:0}.___SButton_1dunw_gg_:active,.___SButton_1dunw_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SButton_1dunw_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SButton_1dunw_gg_.__keyboardFocused_1dunw_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));z-index:1}.___SButton_1dunw_gg_.__disabled_1dunw_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none;box-shadow:none;z-index:0}.___SButton_1dunw_gg_._size_s_1dunw_gg_{width:var(--intergalactic-form-control-s, 20px);height:var(--intergalactic-form-control-s, 20px);border-radius:var(--intergalactic-addon-rounded, 4px)}.___SButton_1dunw_gg_._size_m_1dunw_gg_{height:var(--intergalactic-form-control-m, 28px);border-radius:var(--intergalactic-control-rounded, 6px);font-size:var(--intergalactic-fs-200, 14px)}.___SButton_1dunw_gg_._size_l_1dunw_gg_{height:var(--intergalactic-form-control-l, 40px);border-radius:var(--intergalactic-control-rounded, 6px);font-size:var(--intergalactic-fs-300, 16px)}.___SButton_1dunw_gg_._theme_primary-info_1dunw_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-info, #008ff8)}@media (hover:hover){.___SButton_1dunw_gg_._theme_primary-info_1dunw_gg_:hover{background-color:var(--intergalactic-control-primary-info-hover, #006dca)}}.___SButton_1dunw_gg_._theme_primary-info_1dunw_gg_.__active_1dunw_gg_,.___SButton_1dunw_gg_._theme_primary-info_1dunw_gg_:active{background-color:var(--intergalactic-control-primary-info-active, #044792)}.___SButton_1dunw_gg_._theme_primary-success_1dunw_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-success, #009f81)}@media (hover:hover){.___SButton_1dunw_gg_._theme_primary-success_1dunw_gg_:hover{background-color:var(--intergalactic-control-primary-success-hover, #007c65)}}.___SButton_1dunw_gg_._theme_primary-success_1dunw_gg_.__active_1dunw_gg_,.___SButton_1dunw_gg_._theme_primary-success_1dunw_gg_:active{background-color:var(--intergalactic-control-primary-success-active, #055345)}.___SButton_1dunw_gg_._theme_primary-warning_1dunw_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-brand, #ff642d)}@media (hover:hover){.___SButton_1dunw_gg_._theme_primary-warning_1dunw_gg_:hover{background-color:var(--intergalactic-control-primary-brand-hover, #c33909)}}.___SButton_1dunw_gg_._theme_primary-warning_1dunw_gg_.__active_1dunw_gg_,.___SButton_1dunw_gg_._theme_primary-warning_1dunw_gg_:active{background-color:var(--intergalactic-control-primary-brand-active, #c33909)}.___SButton_1dunw_gg_._theme_primary-danger_1dunw_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-critical, #ff4953)}@media (hover:hover){.___SButton_1dunw_gg_._theme_primary-danger_1dunw_gg_:hover{background-color:var(--intergalactic-control-primary-critical-hover, #d1002f)}}.___SButton_1dunw_gg_._theme_primary-danger_1dunw_gg_.__active_1dunw_gg_,.___SButton_1dunw_gg_._theme_primary-danger_1dunw_gg_:active{background-color:var(--intergalactic-control-primary-critical-active, #8e0016)}.___SButton_1dunw_gg_._theme_primary-invert_1dunw_gg_{color:var(--intergalactic-text-primary, #191b23);background-color:var(--intergalactic-control-primary-invert, #ffffff)}@media (hover:hover){.___SButton_1dunw_gg_._theme_primary-invert_1dunw_gg_:hover{background-color:var(--intergalactic-control-primary-invert-hover, #f4f5f9)}}.___SButton_1dunw_gg_._theme_primary-invert_1dunw_gg_.__active_1dunw_gg_,.___SButton_1dunw_gg_._theme_primary-invert_1dunw_gg_:active{background-color:var(--intergalactic-control-primary-invert-active, #e0e1e9)}.___SButton_1dunw_gg_._theme_secondary-muted_1dunw_gg_{color:var(--intergalactic-text-secondary, #6c6e79);border-color:var(--intergalactic-border-primary, #c4c7cf);background-color:var(--intergalactic-control-secondary-neutral, rgba(138, 142, 155, 0.1))}@media (hover:hover){.___SButton_1dunw_gg_._theme_secondary-muted_1dunw_gg_:hover{background-color:var(--intergalactic-control-secondary-neutral-hover,\n rgba(138, 142, 155, 0.2));color:var(--intergalactic-text-primary, #191b23)}}.___SButton_1dunw_gg_._theme_secondary-muted_1dunw_gg_.__active_1dunw_gg_,.___SButton_1dunw_gg_._theme_secondary-muted_1dunw_gg_:active{background-color:var(--intergalactic-control-secondary-neutral-active,\n rgba(138, 142, 155, 0.3));color:var(--intergalactic-text-primary, #191b23)}.___SButton_1dunw_gg_._theme_secondary-info_1dunw_gg_{background-color:var(--intergalactic-control-secondary-info, rgba(0, 143, 248, 0.1));color:var(--intergalactic-text-link, #006dca);border-color:var(--intergalactic-control-primary-info, #008ff8)}@media (hover:hover){.___SButton_1dunw_gg_._theme_secondary-info_1dunw_gg_:hover{background-color:var(--intergalactic-control-secondary-info-hover, rgba(0, 143, 248, 0.2))}}.___SButton_1dunw_gg_._theme_secondary-info_1dunw_gg_.__active_1dunw_gg_,.___SButton_1dunw_gg_._theme_secondary-info_1dunw_gg_:active{background-color:var(--intergalactic-control-secondary-info-active, rgba(0, 143, 248, 0.3))}.___SButton_1dunw_gg_._theme_secondary-invert_1dunw_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);border-color:var(--intergalactic-border-primary-invert, #ffffff);background-color:var(--intergalactic-control-secondary-invert, rgba(255, 255, 255, 0.05))}@media (hover:hover){.___SButton_1dunw_gg_._theme_secondary-invert_1dunw_gg_:hover{background-color:var(--intergalactic-control-secondary-invert-hover, rgba(255, 255, 255, 0.1))}}.___SButton_1dunw_gg_._theme_secondary-invert_1dunw_gg_.__active_1dunw_gg_,.___SButton_1dunw_gg_._theme_secondary-invert_1dunw_gg_:active{background-color:var(--intergalactic-control-secondary-invert-active,\n rgba(255, 255, 255, 0.3))}.___SButton_1dunw_gg_._theme_tertiary-info_1dunw_gg_{color:var(--intergalactic-text-link, #006dca);background-color:var(--intergalactic-control-tertiary-info, rgba(0, 143, 248, 0))}@media (hover:hover){.___SButton_1dunw_gg_._theme_tertiary-info_1dunw_gg_:hover{background-color:var(--intergalactic-control-tertiary-info-hover, rgba(0, 143, 248, 0.2))}}.___SButton_1dunw_gg_._theme_tertiary-info_1dunw_gg_.__active_1dunw_gg_,.___SButton_1dunw_gg_._theme_tertiary-info_1dunw_gg_:active{background-color:var(--intergalactic-control-tertiary-info-active, rgba(0, 143, 248, 0.3))}.___SButton_1dunw_gg_._theme_tertiary-muted_1dunw_gg_{color:var(--intergalactic-text-secondary, #6c6e79);background-color:var(--intergalactic-control-tertiary-neutral, rgba(138, 142, 155, 0))}@media (hover:hover){.___SButton_1dunw_gg_._theme_tertiary-muted_1dunw_gg_:hover{background-color:var(--intergalactic-control-tertiary-neutral-hover, rgba(138, 142, 155, 0.2));color:var(--intergalactic-text-primary, #191b23)}}.___SButton_1dunw_gg_._theme_tertiary-muted_1dunw_gg_.__active_1dunw_gg_,.___SButton_1dunw_gg_._theme_tertiary-muted_1dunw_gg_:active{background-color:var(--intergalactic-control-tertiary-neutral-active,\n rgba(138, 142, 155, 0.3));color:var(--intergalactic-text-primary, #191b23)}.___SButton_1dunw_gg_._theme_tertiary-invert_1dunw_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-tertiary-invert, rgba(255, 255, 255, 0))}@media (hover:hover){.___SButton_1dunw_gg_._theme_tertiary-invert_1dunw_gg_:hover{background-color:var(--intergalactic-control-tertiary-invert-hover, rgba(255, 255, 255, 0.1))}}.___SButton_1dunw_gg_._theme_tertiary-invert_1dunw_gg_.__active_1dunw_gg_,.___SButton_1dunw_gg_._theme_tertiary-invert_1dunw_gg_:active{background-color:var(--intergalactic-control-tertiary-invert-active, rgba(255, 255, 255, 0.3))}.___SButton_1dunw_gg_._neighborLocation_right_1dunw_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SButton_1dunw_gg_._neighborLocation_both_1dunw_gg_{border-radius:0;margin-left:-1px}.___SButton_1dunw_gg_._neighborLocation_left_1dunw_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.___SButton_1dunw_gg_._neighborLocation_both_1dunw_gg_,.___SButton_1dunw_gg_._neighborLocation_left_1dunw_gg_{position:relative}.___SButton_1dunw_gg_._neighborLocation_both_1dunw_gg_:after,.___SButton_1dunw_gg_._neighborLocation_left_1dunw_gg_:after{background-color:var(--intergalactic-text-primary-invert, #ffffff)}.___SButton_1dunw_gg_._neighborLocation_both_1dunw_gg_._theme_secondary-muted_1dunw_gg_:after,.___SButton_1dunw_gg_._neighborLocation_left_1dunw_gg_._theme_secondary-muted_1dunw_gg_:after{background-color:var(--intergalactic-border-primary, #c4c7cf)}.___SButton_1dunw_gg_+.___SButton_1dunw_gg_._neighborLocation_both_1dunw_gg_:after,.___SButton_1dunw_gg_+.___SButton_1dunw_gg_._neighborLocation_left_1dunw_gg_:after{content:\"\";position:absolute;top:-1px;left:-1px;width:1px;height:calc(100% + 2px)}.___SSpin_1dunw_gg_{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}.___SInner_1dunw_gg_{display:inline-flex;align-items:center;justify-content:center;height:100%;width:100%}.___SInner_1dunw_gg_.__loading_1dunw_gg_{visibility:hidden}.___SText_1dunw_gg_{display:inline-flex}.___SText_1dunw_gg_._size_l_1dunw_gg_,.___SText_1dunw_gg_._size_m_1dunw_gg_{margin-left:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-2x, 8px)}.___SText_1dunw_gg_._size_m_1dunw_gg_{line-height:var(--intergalactic-lh-200, 142%)}.___SText_1dunw_gg_._size_l_1dunw_gg_{line-height:var(--intergalactic-lh-300, 150%)}.___SText_1dunw_gg_._size_l_1dunw_gg_:only-child{margin-left:var(--intergalactic-spacing-3x, 12px);margin-right:var(--intergalactic-spacing-3x, 12px)}.___SText_1dunw_gg_._size_l_1dunw_gg_:first-child{margin-left:var(--intergalactic-spacing-3x, 12px)}.___SText_1dunw_gg_._size_l_1dunw_gg_:last-child{margin-right:var(--intergalactic-spacing-3x, 12px)}.___SAddon_1dunw_gg_{display:inline-flex;align-items:center;justify-content:center}.___SAddon_1dunw_gg_._size_m_1dunw_gg_:not(:only-child):first-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SAddon_1dunw_gg_._size_m_1dunw_gg_:not(:only-child):last-child{margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SAddon_1dunw_gg_._size_m_1dunw_gg_:only-child{margin-left:calc(1.5*var(--intergalactic-spacing-1x, 4px) - 1px);margin-right:calc(1.5*var(--intergalactic-spacing-1x, 4px) - 1px)}.___SAddon_1dunw_gg_._size_l_1dunw_gg_:not(:only-child):first-child{margin-left:calc(var(--intergalactic-spacing-3x, 12px) - 1px)}.___SAddon_1dunw_gg_._size_l_1dunw_gg_:not(:only-child):last-child{margin-right:calc(var(--intergalactic-spacing-3x, 12px) - 1px)}.___SAddon_1dunw_gg_._size_l_1dunw_gg_:only-child{margin-left:calc(3*var(--intergalactic-spacing-1x, 4px) - 1px);margin-right:calc(3*var(--intergalactic-spacing-1x, 4px) - 1px)}" /*__inner_css_end__*/, "1dunw_gg_") /*__reshadow_css_end__*/, {
|
|
23
|
-
"__SButton": "
|
|
24
|
-
"_keyboardFocused": "
|
|
25
|
-
"_disabled": "
|
|
26
|
-
"_size_s": "
|
|
27
|
-
"_size_m": "
|
|
28
|
-
"_size_l": "
|
|
29
|
-
"_neighborLocation_right": "
|
|
30
|
-
"_neighborLocation_both": "
|
|
31
|
-
"_neighborLocation_left": "
|
|
32
|
-
"__SSpin": "
|
|
33
|
-
"__SInner": "
|
|
34
|
-
"_loading": "
|
|
35
|
-
"__SText": "
|
|
36
|
-
"__SAddon": "
|
|
37
|
-
"_theme_primary-info": "_theme_primary-
|
|
38
|
-
"_active": "
|
|
39
|
-
"_theme_primary-success": "_theme_primary-
|
|
40
|
-
"_theme_primary-warning": "_theme_primary-
|
|
41
|
-
"_theme_primary-danger": "_theme_primary-
|
|
42
|
-
"_theme_primary-invert": "_theme_primary-
|
|
43
|
-
"_theme_secondary-muted": "_theme_secondary-
|
|
44
|
-
"_theme_secondary-info": "_theme_secondary-
|
|
45
|
-
"_theme_secondary-invert": "_theme_secondary-
|
|
46
|
-
"_theme_tertiary-info": "_theme_tertiary-
|
|
47
|
-
"_theme_tertiary-muted": "_theme_tertiary-
|
|
48
|
-
"_theme_tertiary-invert": "_theme_tertiary-
|
|
22
|
+
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SButton_kzf09_gg_{position:relative;display:inline-block;align-items:center;justify-content:center;padding:0;margin:0;white-space:nowrap;font-family:inherit;line-height:normal;-webkit-text-decoration:none;text-decoration:none;text-align:center;vertical-align:middle;border:1px solid transparent;outline:0;box-shadow:none;cursor:pointer;box-sizing:border-box;overflow:visible;-webkit-user-select:none;-moz-user-select:none;user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;font-weight:var(--intergalactic-medium, 500);color:var(--intergalactic-text-secondary, #6c6e79);min-width:-moz-fit-content;min-width:fit-content}.___SButton_kzf09_gg_::-moz-focus-inner{padding:0;border:0}.___SButton_kzf09_gg_:active,.___SButton_kzf09_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SButton_kzf09_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SButton_kzf09_gg_.__keyboardFocused_kzf09_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));z-index:1}.___SButton_kzf09_gg_.__disabled_kzf09_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none;box-shadow:none;z-index:0}.___SButton_kzf09_gg_._size_s_kzf09_gg_{width:var(--intergalactic-form-control-s, 20px);height:var(--intergalactic-form-control-s, 20px);border-radius:var(--intergalactic-addon-rounded, 4px)}.___SButton_kzf09_gg_._size_m_kzf09_gg_{height:var(--intergalactic-form-control-m, 28px);border-radius:var(--intergalactic-control-rounded, 6px);font-size:var(--intergalactic-fs-200, 14px)}.___SButton_kzf09_gg_._size_l_kzf09_gg_{height:var(--intergalactic-form-control-l, 40px);border-radius:var(--intergalactic-control-rounded, 6px);font-size:var(--intergalactic-fs-300, 16px)}.___SButton_kzf09_gg_._theme_primary-info_kzf09_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-info, #008ff8)}@media (hover:hover){.___SButton_kzf09_gg_._theme_primary-info_kzf09_gg_:hover{background-color:var(--intergalactic-control-primary-info-hover, #006dca)}}.___SButton_kzf09_gg_._theme_primary-info_kzf09_gg_.__active_kzf09_gg_,.___SButton_kzf09_gg_._theme_primary-info_kzf09_gg_:active{background-color:var(--intergalactic-control-primary-info-active, #044792)}.___SButton_kzf09_gg_._theme_primary-success_kzf09_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-success, #009f81)}@media (hover:hover){.___SButton_kzf09_gg_._theme_primary-success_kzf09_gg_:hover{background-color:var(--intergalactic-control-primary-success-hover, #007c65)}}.___SButton_kzf09_gg_._theme_primary-success_kzf09_gg_.__active_kzf09_gg_,.___SButton_kzf09_gg_._theme_primary-success_kzf09_gg_:active{background-color:var(--intergalactic-control-primary-success-active, #055345)}.___SButton_kzf09_gg_._theme_primary-warning_kzf09_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-brand, #ff642d)}@media (hover:hover){.___SButton_kzf09_gg_._theme_primary-warning_kzf09_gg_:hover{background-color:var(--intergalactic-control-primary-brand-hover, #c33909)}}.___SButton_kzf09_gg_._theme_primary-warning_kzf09_gg_.__active_kzf09_gg_,.___SButton_kzf09_gg_._theme_primary-warning_kzf09_gg_:active{background-color:var(--intergalactic-control-primary-brand-active, #c33909)}.___SButton_kzf09_gg_._theme_primary-danger_kzf09_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-critical, #ff4953)}@media (hover:hover){.___SButton_kzf09_gg_._theme_primary-danger_kzf09_gg_:hover{background-color:var(--intergalactic-control-primary-critical-hover, #d1002f)}}.___SButton_kzf09_gg_._theme_primary-danger_kzf09_gg_.__active_kzf09_gg_,.___SButton_kzf09_gg_._theme_primary-danger_kzf09_gg_:active{background-color:var(--intergalactic-control-primary-critical-active, #8e0016)}.___SButton_kzf09_gg_._theme_primary-invert_kzf09_gg_{color:var(--intergalactic-text-primary, #191b23);background-color:var(--intergalactic-control-primary-invert, #ffffff)}@media (hover:hover){.___SButton_kzf09_gg_._theme_primary-invert_kzf09_gg_:hover{background-color:var(--intergalactic-control-primary-invert-hover, #f4f5f9)}}.___SButton_kzf09_gg_._theme_primary-invert_kzf09_gg_.__active_kzf09_gg_,.___SButton_kzf09_gg_._theme_primary-invert_kzf09_gg_:active{background-color:var(--intergalactic-control-primary-invert-active, #e0e1e9)}.___SButton_kzf09_gg_._theme_secondary-muted_kzf09_gg_{color:var(--intergalactic-text-secondary, #6c6e79);border-color:var(--intergalactic-border-primary, #c4c7cf);background-color:var(--intergalactic-control-secondary-neutral, rgba(138, 142, 155, 0.1))}@media (hover:hover){.___SButton_kzf09_gg_._theme_secondary-muted_kzf09_gg_:hover{background-color:var(--intergalactic-control-secondary-neutral-hover,\n rgba(138, 142, 155, 0.2));color:var(--intergalactic-text-primary, #191b23)}}.___SButton_kzf09_gg_._theme_secondary-muted_kzf09_gg_.__active_kzf09_gg_,.___SButton_kzf09_gg_._theme_secondary-muted_kzf09_gg_:active{background-color:var(--intergalactic-control-secondary-neutral-active,\n rgba(138, 142, 155, 0.3));color:var(--intergalactic-text-primary, #191b23)}.___SButton_kzf09_gg_._theme_secondary-info_kzf09_gg_{background-color:var(--intergalactic-control-secondary-info, rgba(0, 143, 248, 0.1));color:var(--intergalactic-text-link, #006dca);border-color:var(--intergalactic-control-primary-info, #008ff8)}@media (hover:hover){.___SButton_kzf09_gg_._theme_secondary-info_kzf09_gg_:hover{background-color:var(--intergalactic-control-secondary-info-hover, rgba(0, 143, 248, 0.2))}}.___SButton_kzf09_gg_._theme_secondary-info_kzf09_gg_.__active_kzf09_gg_,.___SButton_kzf09_gg_._theme_secondary-info_kzf09_gg_:active{background-color:var(--intergalactic-control-secondary-info-active, rgba(0, 143, 248, 0.3))}.___SButton_kzf09_gg_._theme_secondary-invert_kzf09_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);border-color:var(--intergalactic-border-primary-invert, #ffffff);background-color:var(--intergalactic-control-secondary-invert, rgba(255, 255, 255, 0.05))}@media (hover:hover){.___SButton_kzf09_gg_._theme_secondary-invert_kzf09_gg_:hover{background-color:var(--intergalactic-control-secondary-invert-hover, rgba(255, 255, 255, 0.1))}}.___SButton_kzf09_gg_._theme_secondary-invert_kzf09_gg_.__active_kzf09_gg_,.___SButton_kzf09_gg_._theme_secondary-invert_kzf09_gg_:active{background-color:var(--intergalactic-control-secondary-invert-active,\n rgba(255, 255, 255, 0.3))}.___SButton_kzf09_gg_._theme_tertiary-info_kzf09_gg_{color:var(--intergalactic-text-link, #006dca);background-color:var(--intergalactic-control-tertiary-info, rgba(0, 143, 248, 0))}@media (hover:hover){.___SButton_kzf09_gg_._theme_tertiary-info_kzf09_gg_:hover{background-color:var(--intergalactic-control-tertiary-info-hover, rgba(0, 143, 248, 0.2))}}.___SButton_kzf09_gg_._theme_tertiary-info_kzf09_gg_.__active_kzf09_gg_,.___SButton_kzf09_gg_._theme_tertiary-info_kzf09_gg_:active{background-color:var(--intergalactic-control-tertiary-info-active, rgba(0, 143, 248, 0.3))}.___SButton_kzf09_gg_._theme_tertiary-muted_kzf09_gg_{color:var(--intergalactic-text-secondary, #6c6e79);background-color:var(--intergalactic-control-tertiary-neutral, rgba(138, 142, 155, 0))}@media (hover:hover){.___SButton_kzf09_gg_._theme_tertiary-muted_kzf09_gg_:hover{background-color:var(--intergalactic-control-tertiary-neutral-hover, rgba(138, 142, 155, 0.2));color:var(--intergalactic-text-primary, #191b23)}}.___SButton_kzf09_gg_._theme_tertiary-muted_kzf09_gg_.__active_kzf09_gg_,.___SButton_kzf09_gg_._theme_tertiary-muted_kzf09_gg_:active{background-color:var(--intergalactic-control-tertiary-neutral-active,\n rgba(138, 142, 155, 0.3));color:var(--intergalactic-text-primary, #191b23)}.___SButton_kzf09_gg_._theme_tertiary-invert_kzf09_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-tertiary-invert, rgba(255, 255, 255, 0))}@media (hover:hover){.___SButton_kzf09_gg_._theme_tertiary-invert_kzf09_gg_:hover{background-color:var(--intergalactic-control-tertiary-invert-hover, rgba(255, 255, 255, 0.1))}}.___SButton_kzf09_gg_._theme_tertiary-invert_kzf09_gg_.__active_kzf09_gg_,.___SButton_kzf09_gg_._theme_tertiary-invert_kzf09_gg_:active{background-color:var(--intergalactic-control-tertiary-invert-active, rgba(255, 255, 255, 0.3))}.___SButton_kzf09_gg_._neighborLocation_right_kzf09_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SButton_kzf09_gg_._neighborLocation_both_kzf09_gg_{border-radius:0;margin-left:-1px}.___SButton_kzf09_gg_._neighborLocation_left_kzf09_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.___SButton_kzf09_gg_._neighborLocation_both_kzf09_gg_,.___SButton_kzf09_gg_._neighborLocation_left_kzf09_gg_{position:relative}.___SButton_kzf09_gg_._neighborLocation_both_kzf09_gg_:after,.___SButton_kzf09_gg_._neighborLocation_left_kzf09_gg_:after{background-color:var(--intergalactic-text-primary-invert, #ffffff)}.___SButton_kzf09_gg_._neighborLocation_both_kzf09_gg_._theme_secondary-muted_kzf09_gg_:after,.___SButton_kzf09_gg_._neighborLocation_left_kzf09_gg_._theme_secondary-muted_kzf09_gg_:after{background-color:var(--intergalactic-border-primary, #c4c7cf)}.___SButton_kzf09_gg_+.___SButton_kzf09_gg_._neighborLocation_both_kzf09_gg_:after,.___SButton_kzf09_gg_+.___SButton_kzf09_gg_._neighborLocation_left_kzf09_gg_:after{content:\"\";position:absolute;top:-1px;left:-1px;width:1px;height:calc(100% + 2px)}.___SSpin_kzf09_gg_{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}.___SInner_kzf09_gg_{display:inline-flex;align-items:center;justify-content:center;height:100%;width:100%}.___SInner_kzf09_gg_.__loading_kzf09_gg_{visibility:hidden}.___SText_kzf09_gg_{display:inline-flex}.___SText_kzf09_gg_._size_l_kzf09_gg_,.___SText_kzf09_gg_._size_m_kzf09_gg_{margin-left:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-2x, 8px)}.___SText_kzf09_gg_._size_m_kzf09_gg_{line-height:var(--intergalactic-lh-200, 142%)}.___SText_kzf09_gg_._size_l_kzf09_gg_{line-height:var(--intergalactic-lh-300, 150%)}.___SText_kzf09_gg_._size_l_kzf09_gg_:only-child{margin-left:var(--intergalactic-spacing-3x, 12px);margin-right:var(--intergalactic-spacing-3x, 12px)}.___SText_kzf09_gg_._size_l_kzf09_gg_:first-child{margin-left:var(--intergalactic-spacing-3x, 12px)}.___SText_kzf09_gg_._size_l_kzf09_gg_:last-child{margin-right:var(--intergalactic-spacing-3x, 12px)}.___SAddon_kzf09_gg_{display:inline-flex;align-items:center;justify-content:center}.___SAddon_kzf09_gg_._size_m_kzf09_gg_:not(:only-child):first-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SAddon_kzf09_gg_._size_m_kzf09_gg_:not(:only-child):last-child{margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SAddon_kzf09_gg_._size_m_kzf09_gg_:only-child{margin-left:calc(1.5*var(--intergalactic-spacing-1x, 4px) - 1px);margin-right:calc(1.5*var(--intergalactic-spacing-1x, 4px) - 1px)}.___SAddon_kzf09_gg_._size_l_kzf09_gg_:not(:only-child):first-child{margin-left:calc(var(--intergalactic-spacing-3x, 12px) - 1px)}.___SAddon_kzf09_gg_._size_l_kzf09_gg_:not(:only-child):last-child{margin-right:calc(var(--intergalactic-spacing-3x, 12px) - 1px)}.___SAddon_kzf09_gg_._size_l_kzf09_gg_:only-child{margin-left:calc(3*var(--intergalactic-spacing-1x, 4px) - 1px);margin-right:calc(3*var(--intergalactic-spacing-1x, 4px) - 1px)}" /*__inner_css_end__*/, "kzf09_gg_") /*__reshadow_css_end__*/, {
|
|
23
|
+
"__SButton": "___SButton_kzf09_gg_",
|
|
24
|
+
"_keyboardFocused": "__keyboardFocused_kzf09_gg_",
|
|
25
|
+
"_disabled": "__disabled_kzf09_gg_",
|
|
26
|
+
"_size_s": "_size_s_kzf09_gg_",
|
|
27
|
+
"_size_m": "_size_m_kzf09_gg_",
|
|
28
|
+
"_size_l": "_size_l_kzf09_gg_",
|
|
29
|
+
"_neighborLocation_right": "_neighborLocation_right_kzf09_gg_",
|
|
30
|
+
"_neighborLocation_both": "_neighborLocation_both_kzf09_gg_",
|
|
31
|
+
"_neighborLocation_left": "_neighborLocation_left_kzf09_gg_",
|
|
32
|
+
"__SSpin": "___SSpin_kzf09_gg_",
|
|
33
|
+
"__SInner": "___SInner_kzf09_gg_",
|
|
34
|
+
"_loading": "__loading_kzf09_gg_",
|
|
35
|
+
"__SText": "___SText_kzf09_gg_",
|
|
36
|
+
"__SAddon": "___SAddon_kzf09_gg_",
|
|
37
|
+
"_theme_primary-info": "_theme_primary-info_kzf09_gg_",
|
|
38
|
+
"_active": "__active_kzf09_gg_",
|
|
39
|
+
"_theme_primary-success": "_theme_primary-success_kzf09_gg_",
|
|
40
|
+
"_theme_primary-warning": "_theme_primary-warning_kzf09_gg_",
|
|
41
|
+
"_theme_primary-danger": "_theme_primary-danger_kzf09_gg_",
|
|
42
|
+
"_theme_primary-invert": "_theme_primary-invert_kzf09_gg_",
|
|
43
|
+
"_theme_secondary-muted": "_theme_secondary-muted_kzf09_gg_",
|
|
44
|
+
"_theme_secondary-info": "_theme_secondary-info_kzf09_gg_",
|
|
45
|
+
"_theme_secondary-invert": "_theme_secondary-invert_kzf09_gg_",
|
|
46
|
+
"_theme_tertiary-info": "_theme_tertiary-info_kzf09_gg_",
|
|
47
|
+
"_theme_tertiary-muted": "_theme_tertiary-muted_kzf09_gg_",
|
|
48
|
+
"_theme_tertiary-invert": "_theme_tertiary-invert_kzf09_gg_"
|
|
49
49
|
});
|
|
50
50
|
var RootButton = /*#__PURE__*/function (_AbstractButton) {
|
|
51
51
|
(0, _inherits2["default"])(RootButton, _AbstractButton);
|
|
@@ -20,25 +20,26 @@ var _flexBox = require("@semcore/flex-box");
|
|
|
20
20
|
var _AbstractButton2 = require("../AbstractButton/AbstractButton");
|
|
21
21
|
var _resolveColorEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/resolveColorEnhance"));
|
|
22
22
|
/*__reshadow-styles__:"./buttonLink.shadow.css"*/
|
|
23
|
-
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".
|
|
24
|
-
"__SButton": "
|
|
25
|
-
"_keyboardFocused": "
|
|
26
|
-
"_visually-disabled": "__visually-
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
23
|
+
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SButton_h0h5a_gg_{display:inline-flex;font-family:inherit;font-size:var(--intergalactic-fs-200, 14px);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}.___SButton_h0h5a_gg_:active,.___SButton_h0h5a_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SButton_h0h5a_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SButton_h0h5a_gg_::-moz-focus-inner{border:0;padding:0}.___SButton_h0h5a_gg_.__active_h0h5a_gg_,.___SButton_h0h5a_gg_:active{color:var(--intergalactic-text-link-hover-active, #044792)}@media (hover:hover){.___SButton_h0h5a_gg_:hover{color:var(--intergalactic-text-link-hover-active, #044792)}}.___SButton_h0h5a_gg_.__active_h0h5a_gg_ .___SText_h0h5a_gg_,.___SButton_h0h5a_gg_:active .___SText_h0h5a_gg_{border-color:currentColor}@media (hover:hover){.___SButton_h0h5a_gg_:hover .___SText_h0h5a_gg_{border-color:currentColor}}.___SButton_h0h5a_gg_.__enableVisited_h0h5a_gg_:visited{color:var(--intergalactic-text-link-visited, #8649e1)}@media (hover:hover){.___SButton_h0h5a_gg_.__enableVisited_h0h5a_gg_:visited:hover{color:var(--intergalactic-text-link-visited, #8649e1)}}.___SButton_h0h5a_gg_ .___SText_h0h5a_gg_{border-bottom-width:1px;border-bottom-style:solid;border-color:transparent;transition:border-bottom-color .15s ease-in-out}.___SButton_h0h5a_gg_.__keyboardFocused_h0h5a_gg_{outline-color:var(--intergalactic-keyboard-focus-outline, rgba(0, 143, 248, 0.5));outline-style:solid;outline-width:3px}.___SButton_h0h5a_gg_.__visually-disabled_h0h5a_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}.___SButton_h0h5a_gg_._use_secondary_h0h5a_gg_{color:var(--intergalactic-text-hint, #6c6e79)}.___SButton_h0h5a_gg_._use_secondary_h0h5a_gg_.__active_h0h5a_gg_,.___SButton_h0h5a_gg_._use_secondary_h0h5a_gg_:active{color:var(--intergalactic-text-hint-hover-active, #484a54)}@media (hover:hover){.___SButton_h0h5a_gg_._use_secondary_h0h5a_gg_:hover{color:var(--intergalactic-text-hint-hover-active, #484a54)}}.___SButton_h0h5a_gg_._use_secondary_h0h5a_gg_ .___SText_h0h5a_gg_{border-bottom-width:1px;border-bottom-style:dashed;border-color:currentColor}.___SAddon_h0h5a_gg_,.___SInner_h0h5a_gg_{display:inline-flex;justify-content:center;align-items:center}.___SInner_h0h5a_gg_{height:100%;width:100%}.___SAddon_h0h5a_gg_{vertical-align:middle}.___SButton_h0h5a_gg_ .___SAddon_h0h5a_gg_:not(:only-child):first-child{margin-right:var(--intergalactic-spacing-1x, 4px)}.___SButton_h0h5a_gg_ .___SAddon_h0h5a_gg_:not(:only-child):last-child{margin-left:var(--intergalactic-spacing-1x, 4px)}.___SButton_h0h5a_gg_.__text-color_h0h5a_gg_{color:var(--text-color_h0h5a)}.___SButton_h0h5a_gg_.__text-color_h0h5a_gg_.__active_h0h5a_gg_,.___SButton_h0h5a_gg_.__text-color_h0h5a_gg_:active{color:var(--text-color_h0h5a);filter:brightness(.8)}@media (hover:hover){.___SButton_h0h5a_gg_.__text-color_h0h5a_gg_:hover{color:var(--text-color_h0h5a);filter:brightness(.8)}}.___SButton_h0h5a_gg_._size_100_h0h5a_gg_{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%)}.___SButton_h0h5a_gg_._size_200_h0h5a_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SButton_h0h5a_gg_._size_300_h0h5a_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SButton_h0h5a_gg_._size_400_h0h5a_gg_{font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%)}.___SButton_h0h5a_gg_._size_500_h0h5a_gg_{font-size:var(--intergalactic-fs-500, 24px);line-height:var(--intergalactic-lh-500, 117%)}.___SButton_h0h5a_gg_._size_600_h0h5a_gg_{font-size:var(--intergalactic-fs-600, 32px);line-height:var(--intergalactic-lh-600, 125%)}.___SButton_h0h5a_gg_._size_700_h0h5a_gg_{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%)}.___SButton_h0h5a_gg_._size_800_h0h5a_gg_{font-size:var(--intergalactic-fs-800, 48px);line-height:var(--intergalactic-lh-800, 117%)}@media (prefers-reduced-motion){.___SButton_h0h5a_gg_,.___SText_h0h5a_gg_{transition:none}}" /*__inner_css_end__*/, "h0h5a_gg_") /*__reshadow_css_end__*/, {
|
|
24
|
+
"__SButton": "___SButton_h0h5a_gg_",
|
|
25
|
+
"_keyboardFocused": "__keyboardFocused_h0h5a_gg_",
|
|
26
|
+
"_visually-disabled": "__visually-disabled_h0h5a_gg_",
|
|
27
|
+
"__SInner": "___SInner_h0h5a_gg_",
|
|
28
|
+
"__SAddon": "___SAddon_h0h5a_gg_",
|
|
29
|
+
"_size_100": "_size_100_h0h5a_gg_",
|
|
30
|
+
"_size_200": "_size_200_h0h5a_gg_",
|
|
31
|
+
"_size_300": "_size_300_h0h5a_gg_",
|
|
32
|
+
"_size_400": "_size_400_h0h5a_gg_",
|
|
33
|
+
"_size_500": "_size_500_h0h5a_gg_",
|
|
34
|
+
"_size_600": "_size_600_h0h5a_gg_",
|
|
35
|
+
"_size_700": "_size_700_h0h5a_gg_",
|
|
36
|
+
"_size_800": "_size_800_h0h5a_gg_",
|
|
37
|
+
"__SText": "___SText_h0h5a_gg_",
|
|
38
|
+
"_active": "__active_h0h5a_gg_",
|
|
39
|
+
"_enableVisited": "__enableVisited_h0h5a_gg_",
|
|
40
|
+
"_use_secondary": "_use_secondary_h0h5a_gg_",
|
|
41
|
+
"_text-color": "__text-color_h0h5a_gg_",
|
|
42
|
+
"--text-color": "--text-color_h0h5a"
|
|
42
43
|
});
|
|
43
44
|
var enhance = {
|
|
44
45
|
keyboardFocused: (0, _keyboardFocusEnhance["default"])(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonLink.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_keyboardFocusEnhance","_flexBox","_AbstractButton2","_resolveColorEnhance","style","_index","sstyled","insert","enhance","keyboardFocused","keyboardFocusEnhance","resolveColor","resolveColorEnhance","RootButtonLink","_AbstractButton","_inherits2","_super","_createSuper2","_classCallCheck2","apply","arguments","_createClass2","key","value","getTextColor","_ref5","asProps","color","AbstractButton","_defineProperty2","Object","values","use","Text","props","_ref","arguments[0]","_ref3","SText","Box","styles","createElement","cn","_objectSpread2","assignProps","Addon","_ref2","_ref4","SAddon","ButtonLink","createComponent","exports"],"sources":["../../../../src/component/ButtonLink/ButtonLink.tsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { sstyled, Root } from '@semcore/core';\nimport style from './buttonLink.shadow.css';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport { Box } from '@semcore/flex-box';\nimport { AbstractButton } from '../AbstractButton/AbstractButton';\nimport resolveColorEnhance from '@semcore/utils/lib/enhances/resolveColorEnhance';\nimport { ButtonLinkAddonProps, ButtonLinkComponent, ButtonLinkTextProps } from './ButtonLink.type';\n\nconst enhance = {\n keyboardFocused: keyboardFocusEnhance(),\n resolveColor: resolveColorEnhance(),\n};\n\nclass RootButtonLink extends AbstractButton {\n static displayName = 'ButtonLink';\n static enhance = Object.values(enhance);\n static style = style;\n static defaultProps = {\n use: 'primary',\n };\n\n protected getTextColor(): string | undefined {\n const { color, resolveColor } = this.asProps as any;\n return resolveColor(color);\n }\n}\n\nfunction Text(props: ButtonLinkTextProps) {\n const SText = Root;\n return sstyled(props.styles)(<SText render={Box} tag='span' />);\n}\n\nfunction Addon(props: ButtonLinkAddonProps) {\n const SAddon = Root;\n return sstyled(props.styles)(<SAddon render={Box} tag='span' />);\n}\n\nexport const ButtonLink = createComponent(RootButtonLink, {\n Text,\n Addon,\n}) as ButtonLinkComponent;\n"],"mappings":";;;;;;;;;;;;;;;AACA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AADA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAGA,IAAAG,qBAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AACA,IAAAM,oBAAA,GAAAJ,sBAAA,CAAAF,OAAA;AAAkF;AAAA,IAAAO,KAAA,+BAAAC,MAAA,CAAAC,OAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAGlF,IAAMC,OAAO,GAAG;EACdC,eAAe,EAAE,IAAAC,gCAAoB,GAAE;EACvCC,YAAY,EAAE,IAAAC,+BAAmB;AACnC,CAAC;AAAC,IAEIC,cAAc,0BAAAC,eAAA;EAAA,IAAAC,UAAA,aAAAF,cAAA,EAAAC,eAAA;EAAA,IAAAE,MAAA,OAAAC,aAAA,aAAAJ,cAAA;EAAA,SAAAA,eAAA;IAAA,IAAAK,gBAAA,mBAAAL,cAAA;IAAA,OAAAG,MAAA,CAAAG,KAAA,OAAAC,SAAA;EAAA;EAAA,IAAAC,aAAA,aAAAR,cAAA;IAAAS,GAAA;IAAAC,KAAA,EAQlB,SAAAC,aAAA,EAA6C;MAC3C,IAAAC,KAAA,GAAgC,IAAI,CAACC,OAAO;QAApCC,KAAK,GAAAF,KAAA,CAALE,KAAK;QAAEhB,YAAY,GAAAc,KAAA,CAAZd,YAAY;MAC3B,OAAOA,YAAY,CAACgB,KAAK,CAAC;IAC5B;EAAC;EAAA,OAAAd,cAAA;AAAA,EAX0Be,+BAAc;AAAA,IAAAC,gBAAA,aAArChB,cAAc,iBACG,YAAY;AAAA,IAAAgB,gBAAA,aAD7BhB,cAAc,aAEDiB,MAAM,CAACC,MAAM,CAACvB,OAAO,CAAC;AAAA,IAAAqB,gBAAA,aAFnChB,cAAc,WAGHT,KAAK;AAAA,IAAAyB,gBAAA,aAHhBhB,cAAc,kBAII;EACpBmB,GAAG,EAAE;AACP,CAAC;AAQH,SAASC,IAAIA,CAACC,KAA0B,EAAE;EAAA,IAAAC,IAAA,GAAAC,YAAA;IAAAC,KAAA;EACxC,IAAMC,KAAK,GACiCC,YAAG;EAA/C,OAAAF,KAAA,GAAO,IAAA/B,aAAO,EAAC4B,KAAK,CAACM,MAAM,CAAC,eAAC1C,MAAA,YAAA2C,aAAA,CAACH,KAAK,EAAAD,KAAA,CAAAK,EAAA,cAAAC,cAAA,qBAAAhD,KAAA,CAAAiD,WAAA;IAAA,OAAkB;EAAM,GAAAT,IAAA,IAAG;AAChE;AAEA,SAASU,KAAKA,CAACX,KAA2B,EAAE;EAAA,IAAAY,KAAA,GAAAV,YAAA;IAAAW,KAAA;EAC1C,IAAMC,MAAM,GACiCT,YAAG;EAAhD,OAAAQ,KAAA,GAAO,IAAAzC,aAAO,EAAC4B,KAAK,CAACM,MAAM,CAAC,eAAC1C,MAAA,YAAA2C,aAAA,CAACO,MAAM,EAAAD,KAAA,CAAAL,EAAA,eAAAC,cAAA,qBAAAhD,KAAA,CAAAiD,WAAA;IAAA,OAAkB;EAAM,GAAAE,KAAA,IAAG;AACjE;AAEO,IAAMG,UAAU,GAAG,IAAAC,gBAAe,EAACrC,cAAc,EAAE;EACxDoB,IAAI,EAAJA,IAAI;EACJY,KAAK,EAALA;AACF,CAAC,CAAwB;AAACM,OAAA,CAAAF,UAAA,GAAAA,UAAA"}
|
|
1
|
+
{"version":3,"file":"ButtonLink.js","names":["_core","_interopRequireWildcard","require","_react","_interopRequireDefault","_keyboardFocusEnhance","_flexBox","_AbstractButton2","_resolveColorEnhance","style","_index","sstyled","insert","enhance","keyboardFocused","keyboardFocusEnhance","resolveColor","resolveColorEnhance","RootButtonLink","_AbstractButton","_inherits2","_super","_createSuper2","_classCallCheck2","apply","arguments","_createClass2","key","value","getTextColor","_ref5","asProps","color","AbstractButton","_defineProperty2","Object","values","use","Text","props","_ref","arguments[0]","_ref3","SText","Box","styles","createElement","cn","_objectSpread2","assignProps","Addon","_ref2","_ref4","SAddon","ButtonLink","createComponent","exports"],"sources":["../../../../src/component/ButtonLink/ButtonLink.tsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { sstyled, Root } from '@semcore/core';\nimport style from './buttonLink.shadow.css';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport { Box } from '@semcore/flex-box';\nimport { AbstractButton } from '../AbstractButton/AbstractButton';\nimport resolveColorEnhance from '@semcore/utils/lib/enhances/resolveColorEnhance';\nimport { ButtonLinkAddonProps, ButtonLinkComponent, ButtonLinkTextProps } from './ButtonLink.type';\n\nconst enhance = {\n keyboardFocused: keyboardFocusEnhance(),\n resolveColor: resolveColorEnhance(),\n};\n\nclass RootButtonLink extends AbstractButton {\n static displayName = 'ButtonLink';\n static enhance = Object.values(enhance);\n static style = style;\n static defaultProps = {\n use: 'primary',\n };\n\n protected getTextColor(): string | undefined {\n const { color, resolveColor } = this.asProps as any;\n return resolveColor(color);\n }\n}\n\nfunction Text(props: ButtonLinkTextProps) {\n const SText = Root;\n return sstyled(props.styles)(<SText render={Box} tag='span' />);\n}\n\nfunction Addon(props: ButtonLinkAddonProps) {\n const SAddon = Root;\n return sstyled(props.styles)(<SAddon render={Box} tag='span' />);\n}\n\nexport const ButtonLink = createComponent(RootButtonLink, {\n Text,\n Addon,\n}) as ButtonLinkComponent;\n"],"mappings":";;;;;;;;;;;;;;;AACA,IAAAA,KAAA,GAAAC,uBAAA,CAAAC,OAAA;AADA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AAGA,IAAAG,qBAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AACA,IAAAM,oBAAA,GAAAJ,sBAAA,CAAAF,OAAA;AAAkF;AAAA,IAAAO,KAAA,+BAAAC,MAAA,CAAAC,OAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAGlF,IAAMC,OAAO,GAAG;EACdC,eAAe,EAAE,IAAAC,gCAAoB,GAAE;EACvCC,YAAY,EAAE,IAAAC,+BAAmB;AACnC,CAAC;AAAC,IAEIC,cAAc,0BAAAC,eAAA;EAAA,IAAAC,UAAA,aAAAF,cAAA,EAAAC,eAAA;EAAA,IAAAE,MAAA,OAAAC,aAAA,aAAAJ,cAAA;EAAA,SAAAA,eAAA;IAAA,IAAAK,gBAAA,mBAAAL,cAAA;IAAA,OAAAG,MAAA,CAAAG,KAAA,OAAAC,SAAA;EAAA;EAAA,IAAAC,aAAA,aAAAR,cAAA;IAAAS,GAAA;IAAAC,KAAA,EAQlB,SAAAC,aAAA,EAA6C;MAC3C,IAAAC,KAAA,GAAgC,IAAI,CAACC,OAAO;QAApCC,KAAK,GAAAF,KAAA,CAALE,KAAK;QAAEhB,YAAY,GAAAc,KAAA,CAAZd,YAAY;MAC3B,OAAOA,YAAY,CAACgB,KAAK,CAAC;IAC5B;EAAC;EAAA,OAAAd,cAAA;AAAA,EAX0Be,+BAAc;AAAA,IAAAC,gBAAA,aAArChB,cAAc,iBACG,YAAY;AAAA,IAAAgB,gBAAA,aAD7BhB,cAAc,aAEDiB,MAAM,CAACC,MAAM,CAACvB,OAAO,CAAC;AAAA,IAAAqB,gBAAA,aAFnChB,cAAc,WAGHT,KAAK;AAAA,IAAAyB,gBAAA,aAHhBhB,cAAc,kBAII;EACpBmB,GAAG,EAAE;AACP,CAAC;AAQH,SAASC,IAAIA,CAACC,KAA0B,EAAE;EAAA,IAAAC,IAAA,GAAAC,YAAA;IAAAC,KAAA;EACxC,IAAMC,KAAK,GACiCC,YAAG;EAA/C,OAAAF,KAAA,GAAO,IAAA/B,aAAO,EAAC4B,KAAK,CAACM,MAAM,CAAC,eAAC1C,MAAA,YAAA2C,aAAA,CAACH,KAAK,EAAAD,KAAA,CAAAK,EAAA,cAAAC,cAAA,qBAAAhD,KAAA,CAAAiD,WAAA;IAAA,OAAkB;EAAM,GAAAT,IAAA,IAAG;AAChE;AAEA,SAASU,KAAKA,CAACX,KAA2B,EAAE;EAAA,IAAAY,KAAA,GAAAV,YAAA;IAAAW,KAAA;EAC1C,IAAMC,MAAM,GACiCT,YAAG;EAAhD,OAAAQ,KAAA,GAAO,IAAAzC,aAAO,EAAC4B,KAAK,CAACM,MAAM,CAAC,eAAC1C,MAAA,YAAA2C,aAAA,CAACO,MAAM,EAAAD,KAAA,CAAAL,EAAA,eAAAC,cAAA,qBAAAhD,KAAA,CAAAiD,WAAA;IAAA,OAAkB;EAAM,GAAAE,KAAA,IAAG;AACjE;AAEO,IAAMG,UAAU,GAAG,IAAAC,gBAAe,EAACrC,cAAc,EAAE;EACxDoB,IAAI,EAAJA,IAAI;EACJY,KAAK,EAALA;AACF,CAAC,CAAwB;AAACM,OAAA,CAAAF,UAAA,GAAAA,UAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
SButton {
|
|
2
|
-
display: inline-
|
|
2
|
+
display: inline-flex;
|
|
3
3
|
font-family: inherit;
|
|
4
4
|
font-size: var(--intergalactic-fs-200, 14px);
|
|
5
5
|
color: var(--intergalactic-text-link, #006dca);
|
|
@@ -80,11 +80,18 @@ SButton[use='secondary'] {
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
+
SInner {
|
|
84
|
+
display: inline-flex;
|
|
85
|
+
align-items: center;
|
|
86
|
+
justify-content: center;
|
|
87
|
+
height: 100%;
|
|
88
|
+
width: 100%;
|
|
89
|
+
}
|
|
90
|
+
|
|
83
91
|
SAddon {
|
|
84
92
|
display: inline-flex;
|
|
85
93
|
justify-content: center;
|
|
86
94
|
align-items: center;
|
|
87
|
-
margin-bottom: var(--intergalactic-spacing-05x, 2px);
|
|
88
95
|
vertical-align: middle;
|
|
89
96
|
}
|
|
90
97
|
|
|
@@ -12,33 +12,33 @@ import createComponent, { sstyled, Root } from '@semcore/core';
|
|
|
12
12
|
import { Box } from '@semcore/flex-box';
|
|
13
13
|
import keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';
|
|
14
14
|
/*__reshadow-styles__:"./button.shadow.css"*/
|
|
15
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SButton_1dunw_gg_{position:relative;display:inline-block;align-items:center;justify-content:center;padding:0;margin:0;white-space:nowrap;font-family:inherit;line-height:normal;-webkit-text-decoration:none;text-decoration:none;text-align:center;vertical-align:middle;border:1px solid transparent;outline:0;box-shadow:none;cursor:pointer;box-sizing:border-box;overflow:visible;-webkit-user-select:none;-moz-user-select:none;user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;font-weight:var(--intergalactic-medium, 500);color:var(--intergalactic-text-secondary, #6c6e79);min-width:-moz-fit-content;min-width:fit-content}.___SButton_1dunw_gg_::-moz-focus-inner{padding:0;border:0}.___SButton_1dunw_gg_:active,.___SButton_1dunw_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SButton_1dunw_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SButton_1dunw_gg_.__keyboardFocused_1dunw_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));z-index:1}.___SButton_1dunw_gg_.__disabled_1dunw_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none;box-shadow:none;z-index:0}.___SButton_1dunw_gg_._size_s_1dunw_gg_{width:var(--intergalactic-form-control-s, 20px);height:var(--intergalactic-form-control-s, 20px);border-radius:var(--intergalactic-addon-rounded, 4px)}.___SButton_1dunw_gg_._size_m_1dunw_gg_{height:var(--intergalactic-form-control-m, 28px);border-radius:var(--intergalactic-control-rounded, 6px);font-size:var(--intergalactic-fs-200, 14px)}.___SButton_1dunw_gg_._size_l_1dunw_gg_{height:var(--intergalactic-form-control-l, 40px);border-radius:var(--intergalactic-control-rounded, 6px);font-size:var(--intergalactic-fs-300, 16px)}.___SButton_1dunw_gg_._theme_primary-info_1dunw_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-info, #008ff8)}@media (hover:hover){.___SButton_1dunw_gg_._theme_primary-info_1dunw_gg_:hover{background-color:var(--intergalactic-control-primary-info-hover, #006dca)}}.___SButton_1dunw_gg_._theme_primary-info_1dunw_gg_.__active_1dunw_gg_,.___SButton_1dunw_gg_._theme_primary-info_1dunw_gg_:active{background-color:var(--intergalactic-control-primary-info-active, #044792)}.___SButton_1dunw_gg_._theme_primary-success_1dunw_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-success, #009f81)}@media (hover:hover){.___SButton_1dunw_gg_._theme_primary-success_1dunw_gg_:hover{background-color:var(--intergalactic-control-primary-success-hover, #007c65)}}.___SButton_1dunw_gg_._theme_primary-success_1dunw_gg_.__active_1dunw_gg_,.___SButton_1dunw_gg_._theme_primary-success_1dunw_gg_:active{background-color:var(--intergalactic-control-primary-success-active, #055345)}.___SButton_1dunw_gg_._theme_primary-warning_1dunw_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-brand, #ff642d)}@media (hover:hover){.___SButton_1dunw_gg_._theme_primary-warning_1dunw_gg_:hover{background-color:var(--intergalactic-control-primary-brand-hover, #c33909)}}.___SButton_1dunw_gg_._theme_primary-warning_1dunw_gg_.__active_1dunw_gg_,.___SButton_1dunw_gg_._theme_primary-warning_1dunw_gg_:active{background-color:var(--intergalactic-control-primary-brand-active, #c33909)}.___SButton_1dunw_gg_._theme_primary-danger_1dunw_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-critical, #ff4953)}@media (hover:hover){.___SButton_1dunw_gg_._theme_primary-danger_1dunw_gg_:hover{background-color:var(--intergalactic-control-primary-critical-hover, #d1002f)}}.___SButton_1dunw_gg_._theme_primary-danger_1dunw_gg_.__active_1dunw_gg_,.___SButton_1dunw_gg_._theme_primary-danger_1dunw_gg_:active{background-color:var(--intergalactic-control-primary-critical-active, #8e0016)}.___SButton_1dunw_gg_._theme_primary-invert_1dunw_gg_{color:var(--intergalactic-text-primary, #191b23);background-color:var(--intergalactic-control-primary-invert, #ffffff)}@media (hover:hover){.___SButton_1dunw_gg_._theme_primary-invert_1dunw_gg_:hover{background-color:var(--intergalactic-control-primary-invert-hover, #f4f5f9)}}.___SButton_1dunw_gg_._theme_primary-invert_1dunw_gg_.__active_1dunw_gg_,.___SButton_1dunw_gg_._theme_primary-invert_1dunw_gg_:active{background-color:var(--intergalactic-control-primary-invert-active, #e0e1e9)}.___SButton_1dunw_gg_._theme_secondary-muted_1dunw_gg_{color:var(--intergalactic-text-secondary, #6c6e79);border-color:var(--intergalactic-border-primary, #c4c7cf);background-color:var(--intergalactic-control-secondary-neutral, rgba(138, 142, 155, 0.1))}@media (hover:hover){.___SButton_1dunw_gg_._theme_secondary-muted_1dunw_gg_:hover{background-color:var(--intergalactic-control-secondary-neutral-hover,\n rgba(138, 142, 155, 0.2));color:var(--intergalactic-text-primary, #191b23)}}.___SButton_1dunw_gg_._theme_secondary-muted_1dunw_gg_.__active_1dunw_gg_,.___SButton_1dunw_gg_._theme_secondary-muted_1dunw_gg_:active{background-color:var(--intergalactic-control-secondary-neutral-active,\n rgba(138, 142, 155, 0.3));color:var(--intergalactic-text-primary, #191b23)}.___SButton_1dunw_gg_._theme_secondary-info_1dunw_gg_{background-color:var(--intergalactic-control-secondary-info, rgba(0, 143, 248, 0.1));color:var(--intergalactic-text-link, #006dca);border-color:var(--intergalactic-control-primary-info, #008ff8)}@media (hover:hover){.___SButton_1dunw_gg_._theme_secondary-info_1dunw_gg_:hover{background-color:var(--intergalactic-control-secondary-info-hover, rgba(0, 143, 248, 0.2))}}.___SButton_1dunw_gg_._theme_secondary-info_1dunw_gg_.__active_1dunw_gg_,.___SButton_1dunw_gg_._theme_secondary-info_1dunw_gg_:active{background-color:var(--intergalactic-control-secondary-info-active, rgba(0, 143, 248, 0.3))}.___SButton_1dunw_gg_._theme_secondary-invert_1dunw_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);border-color:var(--intergalactic-border-primary-invert, #ffffff);background-color:var(--intergalactic-control-secondary-invert, rgba(255, 255, 255, 0.05))}@media (hover:hover){.___SButton_1dunw_gg_._theme_secondary-invert_1dunw_gg_:hover{background-color:var(--intergalactic-control-secondary-invert-hover, rgba(255, 255, 255, 0.1))}}.___SButton_1dunw_gg_._theme_secondary-invert_1dunw_gg_.__active_1dunw_gg_,.___SButton_1dunw_gg_._theme_secondary-invert_1dunw_gg_:active{background-color:var(--intergalactic-control-secondary-invert-active,\n rgba(255, 255, 255, 0.3))}.___SButton_1dunw_gg_._theme_tertiary-info_1dunw_gg_{color:var(--intergalactic-text-link, #006dca);background-color:var(--intergalactic-control-tertiary-info, rgba(0, 143, 248, 0))}@media (hover:hover){.___SButton_1dunw_gg_._theme_tertiary-info_1dunw_gg_:hover{background-color:var(--intergalactic-control-tertiary-info-hover, rgba(0, 143, 248, 0.2))}}.___SButton_1dunw_gg_._theme_tertiary-info_1dunw_gg_.__active_1dunw_gg_,.___SButton_1dunw_gg_._theme_tertiary-info_1dunw_gg_:active{background-color:var(--intergalactic-control-tertiary-info-active, rgba(0, 143, 248, 0.3))}.___SButton_1dunw_gg_._theme_tertiary-muted_1dunw_gg_{color:var(--intergalactic-text-secondary, #6c6e79);background-color:var(--intergalactic-control-tertiary-neutral, rgba(138, 142, 155, 0))}@media (hover:hover){.___SButton_1dunw_gg_._theme_tertiary-muted_1dunw_gg_:hover{background-color:var(--intergalactic-control-tertiary-neutral-hover, rgba(138, 142, 155, 0.2));color:var(--intergalactic-text-primary, #191b23)}}.___SButton_1dunw_gg_._theme_tertiary-muted_1dunw_gg_.__active_1dunw_gg_,.___SButton_1dunw_gg_._theme_tertiary-muted_1dunw_gg_:active{background-color:var(--intergalactic-control-tertiary-neutral-active,\n rgba(138, 142, 155, 0.3));color:var(--intergalactic-text-primary, #191b23)}.___SButton_1dunw_gg_._theme_tertiary-invert_1dunw_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-tertiary-invert, rgba(255, 255, 255, 0))}@media (hover:hover){.___SButton_1dunw_gg_._theme_tertiary-invert_1dunw_gg_:hover{background-color:var(--intergalactic-control-tertiary-invert-hover, rgba(255, 255, 255, 0.1))}}.___SButton_1dunw_gg_._theme_tertiary-invert_1dunw_gg_.__active_1dunw_gg_,.___SButton_1dunw_gg_._theme_tertiary-invert_1dunw_gg_:active{background-color:var(--intergalactic-control-tertiary-invert-active, rgba(255, 255, 255, 0.3))}.___SButton_1dunw_gg_._neighborLocation_right_1dunw_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SButton_1dunw_gg_._neighborLocation_both_1dunw_gg_{border-radius:0;margin-left:-1px}.___SButton_1dunw_gg_._neighborLocation_left_1dunw_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.___SButton_1dunw_gg_._neighborLocation_both_1dunw_gg_,.___SButton_1dunw_gg_._neighborLocation_left_1dunw_gg_{position:relative}.___SButton_1dunw_gg_._neighborLocation_both_1dunw_gg_:after,.___SButton_1dunw_gg_._neighborLocation_left_1dunw_gg_:after{background-color:var(--intergalactic-text-primary-invert, #ffffff)}.___SButton_1dunw_gg_._neighborLocation_both_1dunw_gg_._theme_secondary-muted_1dunw_gg_:after,.___SButton_1dunw_gg_._neighborLocation_left_1dunw_gg_._theme_secondary-muted_1dunw_gg_:after{background-color:var(--intergalactic-border-primary, #c4c7cf)}.___SButton_1dunw_gg_+.___SButton_1dunw_gg_._neighborLocation_both_1dunw_gg_:after,.___SButton_1dunw_gg_+.___SButton_1dunw_gg_._neighborLocation_left_1dunw_gg_:after{content:\"\";position:absolute;top:-1px;left:-1px;width:1px;height:calc(100% + 2px)}.___SSpin_1dunw_gg_{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}.___SInner_1dunw_gg_{display:inline-flex;align-items:center;justify-content:center;height:100%;width:100%}.___SInner_1dunw_gg_.__loading_1dunw_gg_{visibility:hidden}.___SText_1dunw_gg_{display:inline-flex}.___SText_1dunw_gg_._size_l_1dunw_gg_,.___SText_1dunw_gg_._size_m_1dunw_gg_{margin-left:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-2x, 8px)}.___SText_1dunw_gg_._size_m_1dunw_gg_{line-height:var(--intergalactic-lh-200, 142%)}.___SText_1dunw_gg_._size_l_1dunw_gg_{line-height:var(--intergalactic-lh-300, 150%)}.___SText_1dunw_gg_._size_l_1dunw_gg_:only-child{margin-left:var(--intergalactic-spacing-3x, 12px);margin-right:var(--intergalactic-spacing-3x, 12px)}.___SText_1dunw_gg_._size_l_1dunw_gg_:first-child{margin-left:var(--intergalactic-spacing-3x, 12px)}.___SText_1dunw_gg_._size_l_1dunw_gg_:last-child{margin-right:var(--intergalactic-spacing-3x, 12px)}.___SAddon_1dunw_gg_{display:inline-flex;align-items:center;justify-content:center}.___SAddon_1dunw_gg_._size_m_1dunw_gg_:not(:only-child):first-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SAddon_1dunw_gg_._size_m_1dunw_gg_:not(:only-child):last-child{margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SAddon_1dunw_gg_._size_m_1dunw_gg_:only-child{margin-left:calc(1.5*var(--intergalactic-spacing-1x, 4px) - 1px);margin-right:calc(1.5*var(--intergalactic-spacing-1x, 4px) - 1px)}.___SAddon_1dunw_gg_._size_l_1dunw_gg_:not(:only-child):first-child{margin-left:calc(var(--intergalactic-spacing-3x, 12px) - 1px)}.___SAddon_1dunw_gg_._size_l_1dunw_gg_:not(:only-child):last-child{margin-right:calc(var(--intergalactic-spacing-3x, 12px) - 1px)}.___SAddon_1dunw_gg_._size_l_1dunw_gg_:only-child{margin-left:calc(3*var(--intergalactic-spacing-1x, 4px) - 1px);margin-right:calc(3*var(--intergalactic-spacing-1x, 4px) - 1px)}" /*__inner_css_end__*/, "1dunw_gg_") /*__reshadow_css_end__*/, {
|
|
16
|
-
"__SButton": "
|
|
17
|
-
"_keyboardFocused": "
|
|
18
|
-
"_disabled": "
|
|
19
|
-
"_size_s": "
|
|
20
|
-
"_size_m": "
|
|
21
|
-
"_size_l": "
|
|
22
|
-
"_neighborLocation_right": "
|
|
23
|
-
"_neighborLocation_both": "
|
|
24
|
-
"_neighborLocation_left": "
|
|
25
|
-
"__SSpin": "
|
|
26
|
-
"__SInner": "
|
|
27
|
-
"_loading": "
|
|
28
|
-
"__SText": "
|
|
29
|
-
"__SAddon": "
|
|
30
|
-
"_theme_primary-info": "_theme_primary-
|
|
31
|
-
"_active": "
|
|
32
|
-
"_theme_primary-success": "_theme_primary-
|
|
33
|
-
"_theme_primary-warning": "_theme_primary-
|
|
34
|
-
"_theme_primary-danger": "_theme_primary-
|
|
35
|
-
"_theme_primary-invert": "_theme_primary-
|
|
36
|
-
"_theme_secondary-muted": "_theme_secondary-
|
|
37
|
-
"_theme_secondary-info": "_theme_secondary-
|
|
38
|
-
"_theme_secondary-invert": "_theme_secondary-
|
|
39
|
-
"_theme_tertiary-info": "_theme_tertiary-
|
|
40
|
-
"_theme_tertiary-muted": "_theme_tertiary-
|
|
41
|
-
"_theme_tertiary-invert": "_theme_tertiary-
|
|
15
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SButton_kzf09_gg_{position:relative;display:inline-block;align-items:center;justify-content:center;padding:0;margin:0;white-space:nowrap;font-family:inherit;line-height:normal;-webkit-text-decoration:none;text-decoration:none;text-align:center;vertical-align:middle;border:1px solid transparent;outline:0;box-shadow:none;cursor:pointer;box-sizing:border-box;overflow:visible;-webkit-user-select:none;-moz-user-select:none;user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;font-weight:var(--intergalactic-medium, 500);color:var(--intergalactic-text-secondary, #6c6e79);min-width:-moz-fit-content;min-width:fit-content}.___SButton_kzf09_gg_::-moz-focus-inner{padding:0;border:0}.___SButton_kzf09_gg_:active,.___SButton_kzf09_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SButton_kzf09_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SButton_kzf09_gg_.__keyboardFocused_kzf09_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));z-index:1}.___SButton_kzf09_gg_.__disabled_kzf09_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none;box-shadow:none;z-index:0}.___SButton_kzf09_gg_._size_s_kzf09_gg_{width:var(--intergalactic-form-control-s, 20px);height:var(--intergalactic-form-control-s, 20px);border-radius:var(--intergalactic-addon-rounded, 4px)}.___SButton_kzf09_gg_._size_m_kzf09_gg_{height:var(--intergalactic-form-control-m, 28px);border-radius:var(--intergalactic-control-rounded, 6px);font-size:var(--intergalactic-fs-200, 14px)}.___SButton_kzf09_gg_._size_l_kzf09_gg_{height:var(--intergalactic-form-control-l, 40px);border-radius:var(--intergalactic-control-rounded, 6px);font-size:var(--intergalactic-fs-300, 16px)}.___SButton_kzf09_gg_._theme_primary-info_kzf09_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-info, #008ff8)}@media (hover:hover){.___SButton_kzf09_gg_._theme_primary-info_kzf09_gg_:hover{background-color:var(--intergalactic-control-primary-info-hover, #006dca)}}.___SButton_kzf09_gg_._theme_primary-info_kzf09_gg_.__active_kzf09_gg_,.___SButton_kzf09_gg_._theme_primary-info_kzf09_gg_:active{background-color:var(--intergalactic-control-primary-info-active, #044792)}.___SButton_kzf09_gg_._theme_primary-success_kzf09_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-success, #009f81)}@media (hover:hover){.___SButton_kzf09_gg_._theme_primary-success_kzf09_gg_:hover{background-color:var(--intergalactic-control-primary-success-hover, #007c65)}}.___SButton_kzf09_gg_._theme_primary-success_kzf09_gg_.__active_kzf09_gg_,.___SButton_kzf09_gg_._theme_primary-success_kzf09_gg_:active{background-color:var(--intergalactic-control-primary-success-active, #055345)}.___SButton_kzf09_gg_._theme_primary-warning_kzf09_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-brand, #ff642d)}@media (hover:hover){.___SButton_kzf09_gg_._theme_primary-warning_kzf09_gg_:hover{background-color:var(--intergalactic-control-primary-brand-hover, #c33909)}}.___SButton_kzf09_gg_._theme_primary-warning_kzf09_gg_.__active_kzf09_gg_,.___SButton_kzf09_gg_._theme_primary-warning_kzf09_gg_:active{background-color:var(--intergalactic-control-primary-brand-active, #c33909)}.___SButton_kzf09_gg_._theme_primary-danger_kzf09_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-critical, #ff4953)}@media (hover:hover){.___SButton_kzf09_gg_._theme_primary-danger_kzf09_gg_:hover{background-color:var(--intergalactic-control-primary-critical-hover, #d1002f)}}.___SButton_kzf09_gg_._theme_primary-danger_kzf09_gg_.__active_kzf09_gg_,.___SButton_kzf09_gg_._theme_primary-danger_kzf09_gg_:active{background-color:var(--intergalactic-control-primary-critical-active, #8e0016)}.___SButton_kzf09_gg_._theme_primary-invert_kzf09_gg_{color:var(--intergalactic-text-primary, #191b23);background-color:var(--intergalactic-control-primary-invert, #ffffff)}@media (hover:hover){.___SButton_kzf09_gg_._theme_primary-invert_kzf09_gg_:hover{background-color:var(--intergalactic-control-primary-invert-hover, #f4f5f9)}}.___SButton_kzf09_gg_._theme_primary-invert_kzf09_gg_.__active_kzf09_gg_,.___SButton_kzf09_gg_._theme_primary-invert_kzf09_gg_:active{background-color:var(--intergalactic-control-primary-invert-active, #e0e1e9)}.___SButton_kzf09_gg_._theme_secondary-muted_kzf09_gg_{color:var(--intergalactic-text-secondary, #6c6e79);border-color:var(--intergalactic-border-primary, #c4c7cf);background-color:var(--intergalactic-control-secondary-neutral, rgba(138, 142, 155, 0.1))}@media (hover:hover){.___SButton_kzf09_gg_._theme_secondary-muted_kzf09_gg_:hover{background-color:var(--intergalactic-control-secondary-neutral-hover,\n rgba(138, 142, 155, 0.2));color:var(--intergalactic-text-primary, #191b23)}}.___SButton_kzf09_gg_._theme_secondary-muted_kzf09_gg_.__active_kzf09_gg_,.___SButton_kzf09_gg_._theme_secondary-muted_kzf09_gg_:active{background-color:var(--intergalactic-control-secondary-neutral-active,\n rgba(138, 142, 155, 0.3));color:var(--intergalactic-text-primary, #191b23)}.___SButton_kzf09_gg_._theme_secondary-info_kzf09_gg_{background-color:var(--intergalactic-control-secondary-info, rgba(0, 143, 248, 0.1));color:var(--intergalactic-text-link, #006dca);border-color:var(--intergalactic-control-primary-info, #008ff8)}@media (hover:hover){.___SButton_kzf09_gg_._theme_secondary-info_kzf09_gg_:hover{background-color:var(--intergalactic-control-secondary-info-hover, rgba(0, 143, 248, 0.2))}}.___SButton_kzf09_gg_._theme_secondary-info_kzf09_gg_.__active_kzf09_gg_,.___SButton_kzf09_gg_._theme_secondary-info_kzf09_gg_:active{background-color:var(--intergalactic-control-secondary-info-active, rgba(0, 143, 248, 0.3))}.___SButton_kzf09_gg_._theme_secondary-invert_kzf09_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);border-color:var(--intergalactic-border-primary-invert, #ffffff);background-color:var(--intergalactic-control-secondary-invert, rgba(255, 255, 255, 0.05))}@media (hover:hover){.___SButton_kzf09_gg_._theme_secondary-invert_kzf09_gg_:hover{background-color:var(--intergalactic-control-secondary-invert-hover, rgba(255, 255, 255, 0.1))}}.___SButton_kzf09_gg_._theme_secondary-invert_kzf09_gg_.__active_kzf09_gg_,.___SButton_kzf09_gg_._theme_secondary-invert_kzf09_gg_:active{background-color:var(--intergalactic-control-secondary-invert-active,\n rgba(255, 255, 255, 0.3))}.___SButton_kzf09_gg_._theme_tertiary-info_kzf09_gg_{color:var(--intergalactic-text-link, #006dca);background-color:var(--intergalactic-control-tertiary-info, rgba(0, 143, 248, 0))}@media (hover:hover){.___SButton_kzf09_gg_._theme_tertiary-info_kzf09_gg_:hover{background-color:var(--intergalactic-control-tertiary-info-hover, rgba(0, 143, 248, 0.2))}}.___SButton_kzf09_gg_._theme_tertiary-info_kzf09_gg_.__active_kzf09_gg_,.___SButton_kzf09_gg_._theme_tertiary-info_kzf09_gg_:active{background-color:var(--intergalactic-control-tertiary-info-active, rgba(0, 143, 248, 0.3))}.___SButton_kzf09_gg_._theme_tertiary-muted_kzf09_gg_{color:var(--intergalactic-text-secondary, #6c6e79);background-color:var(--intergalactic-control-tertiary-neutral, rgba(138, 142, 155, 0))}@media (hover:hover){.___SButton_kzf09_gg_._theme_tertiary-muted_kzf09_gg_:hover{background-color:var(--intergalactic-control-tertiary-neutral-hover, rgba(138, 142, 155, 0.2));color:var(--intergalactic-text-primary, #191b23)}}.___SButton_kzf09_gg_._theme_tertiary-muted_kzf09_gg_.__active_kzf09_gg_,.___SButton_kzf09_gg_._theme_tertiary-muted_kzf09_gg_:active{background-color:var(--intergalactic-control-tertiary-neutral-active,\n rgba(138, 142, 155, 0.3));color:var(--intergalactic-text-primary, #191b23)}.___SButton_kzf09_gg_._theme_tertiary-invert_kzf09_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-tertiary-invert, rgba(255, 255, 255, 0))}@media (hover:hover){.___SButton_kzf09_gg_._theme_tertiary-invert_kzf09_gg_:hover{background-color:var(--intergalactic-control-tertiary-invert-hover, rgba(255, 255, 255, 0.1))}}.___SButton_kzf09_gg_._theme_tertiary-invert_kzf09_gg_.__active_kzf09_gg_,.___SButton_kzf09_gg_._theme_tertiary-invert_kzf09_gg_:active{background-color:var(--intergalactic-control-tertiary-invert-active, rgba(255, 255, 255, 0.3))}.___SButton_kzf09_gg_._neighborLocation_right_kzf09_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SButton_kzf09_gg_._neighborLocation_both_kzf09_gg_{border-radius:0;margin-left:-1px}.___SButton_kzf09_gg_._neighborLocation_left_kzf09_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.___SButton_kzf09_gg_._neighborLocation_both_kzf09_gg_,.___SButton_kzf09_gg_._neighborLocation_left_kzf09_gg_{position:relative}.___SButton_kzf09_gg_._neighborLocation_both_kzf09_gg_:after,.___SButton_kzf09_gg_._neighborLocation_left_kzf09_gg_:after{background-color:var(--intergalactic-text-primary-invert, #ffffff)}.___SButton_kzf09_gg_._neighborLocation_both_kzf09_gg_._theme_secondary-muted_kzf09_gg_:after,.___SButton_kzf09_gg_._neighborLocation_left_kzf09_gg_._theme_secondary-muted_kzf09_gg_:after{background-color:var(--intergalactic-border-primary, #c4c7cf)}.___SButton_kzf09_gg_+.___SButton_kzf09_gg_._neighborLocation_both_kzf09_gg_:after,.___SButton_kzf09_gg_+.___SButton_kzf09_gg_._neighborLocation_left_kzf09_gg_:after{content:\"\";position:absolute;top:-1px;left:-1px;width:1px;height:calc(100% + 2px)}.___SSpin_kzf09_gg_{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}.___SInner_kzf09_gg_{display:inline-flex;align-items:center;justify-content:center;height:100%;width:100%}.___SInner_kzf09_gg_.__loading_kzf09_gg_{visibility:hidden}.___SText_kzf09_gg_{display:inline-flex}.___SText_kzf09_gg_._size_l_kzf09_gg_,.___SText_kzf09_gg_._size_m_kzf09_gg_{margin-left:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-2x, 8px)}.___SText_kzf09_gg_._size_m_kzf09_gg_{line-height:var(--intergalactic-lh-200, 142%)}.___SText_kzf09_gg_._size_l_kzf09_gg_{line-height:var(--intergalactic-lh-300, 150%)}.___SText_kzf09_gg_._size_l_kzf09_gg_:only-child{margin-left:var(--intergalactic-spacing-3x, 12px);margin-right:var(--intergalactic-spacing-3x, 12px)}.___SText_kzf09_gg_._size_l_kzf09_gg_:first-child{margin-left:var(--intergalactic-spacing-3x, 12px)}.___SText_kzf09_gg_._size_l_kzf09_gg_:last-child{margin-right:var(--intergalactic-spacing-3x, 12px)}.___SAddon_kzf09_gg_{display:inline-flex;align-items:center;justify-content:center}.___SAddon_kzf09_gg_._size_m_kzf09_gg_:not(:only-child):first-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SAddon_kzf09_gg_._size_m_kzf09_gg_:not(:only-child):last-child{margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SAddon_kzf09_gg_._size_m_kzf09_gg_:only-child{margin-left:calc(1.5*var(--intergalactic-spacing-1x, 4px) - 1px);margin-right:calc(1.5*var(--intergalactic-spacing-1x, 4px) - 1px)}.___SAddon_kzf09_gg_._size_l_kzf09_gg_:not(:only-child):first-child{margin-left:calc(var(--intergalactic-spacing-3x, 12px) - 1px)}.___SAddon_kzf09_gg_._size_l_kzf09_gg_:not(:only-child):last-child{margin-right:calc(var(--intergalactic-spacing-3x, 12px) - 1px)}.___SAddon_kzf09_gg_._size_l_kzf09_gg_:only-child{margin-left:calc(3*var(--intergalactic-spacing-1x, 4px) - 1px);margin-right:calc(3*var(--intergalactic-spacing-1x, 4px) - 1px)}" /*__inner_css_end__*/, "kzf09_gg_") /*__reshadow_css_end__*/, {
|
|
16
|
+
"__SButton": "___SButton_kzf09_gg_",
|
|
17
|
+
"_keyboardFocused": "__keyboardFocused_kzf09_gg_",
|
|
18
|
+
"_disabled": "__disabled_kzf09_gg_",
|
|
19
|
+
"_size_s": "_size_s_kzf09_gg_",
|
|
20
|
+
"_size_m": "_size_m_kzf09_gg_",
|
|
21
|
+
"_size_l": "_size_l_kzf09_gg_",
|
|
22
|
+
"_neighborLocation_right": "_neighborLocation_right_kzf09_gg_",
|
|
23
|
+
"_neighborLocation_both": "_neighborLocation_both_kzf09_gg_",
|
|
24
|
+
"_neighborLocation_left": "_neighborLocation_left_kzf09_gg_",
|
|
25
|
+
"__SSpin": "___SSpin_kzf09_gg_",
|
|
26
|
+
"__SInner": "___SInner_kzf09_gg_",
|
|
27
|
+
"_loading": "__loading_kzf09_gg_",
|
|
28
|
+
"__SText": "___SText_kzf09_gg_",
|
|
29
|
+
"__SAddon": "___SAddon_kzf09_gg_",
|
|
30
|
+
"_theme_primary-info": "_theme_primary-info_kzf09_gg_",
|
|
31
|
+
"_active": "__active_kzf09_gg_",
|
|
32
|
+
"_theme_primary-success": "_theme_primary-success_kzf09_gg_",
|
|
33
|
+
"_theme_primary-warning": "_theme_primary-warning_kzf09_gg_",
|
|
34
|
+
"_theme_primary-danger": "_theme_primary-danger_kzf09_gg_",
|
|
35
|
+
"_theme_primary-invert": "_theme_primary-invert_kzf09_gg_",
|
|
36
|
+
"_theme_secondary-muted": "_theme_secondary-muted_kzf09_gg_",
|
|
37
|
+
"_theme_secondary-info": "_theme_secondary-info_kzf09_gg_",
|
|
38
|
+
"_theme_secondary-invert": "_theme_secondary-invert_kzf09_gg_",
|
|
39
|
+
"_theme_tertiary-info": "_theme_tertiary-info_kzf09_gg_",
|
|
40
|
+
"_theme_tertiary-muted": "_theme_tertiary-muted_kzf09_gg_",
|
|
41
|
+
"_theme_tertiary-invert": "_theme_tertiary-invert_kzf09_gg_"
|
|
42
42
|
});
|
|
43
43
|
import { AbstractButton } from '../AbstractButton/AbstractButton';
|
|
44
44
|
var RootButton = /*#__PURE__*/function (_AbstractButton) {
|
|
@@ -10,25 +10,26 @@ import { assignProps as _assignProps } from "@semcore/core";
|
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import createComponent, { sstyled, Root } from '@semcore/core';
|
|
12
12
|
/*__reshadow-styles__:"./buttonLink.shadow.css"*/
|
|
13
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
14
|
-
"__SButton": "
|
|
15
|
-
"_keyboardFocused": "
|
|
16
|
-
"_visually-disabled": "__visually-
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
13
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SButton_h0h5a_gg_{display:inline-flex;font-family:inherit;font-size:var(--intergalactic-fs-200, 14px);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}.___SButton_h0h5a_gg_:active,.___SButton_h0h5a_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SButton_h0h5a_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SButton_h0h5a_gg_::-moz-focus-inner{border:0;padding:0}.___SButton_h0h5a_gg_.__active_h0h5a_gg_,.___SButton_h0h5a_gg_:active{color:var(--intergalactic-text-link-hover-active, #044792)}@media (hover:hover){.___SButton_h0h5a_gg_:hover{color:var(--intergalactic-text-link-hover-active, #044792)}}.___SButton_h0h5a_gg_.__active_h0h5a_gg_ .___SText_h0h5a_gg_,.___SButton_h0h5a_gg_:active .___SText_h0h5a_gg_{border-color:currentColor}@media (hover:hover){.___SButton_h0h5a_gg_:hover .___SText_h0h5a_gg_{border-color:currentColor}}.___SButton_h0h5a_gg_.__enableVisited_h0h5a_gg_:visited{color:var(--intergalactic-text-link-visited, #8649e1)}@media (hover:hover){.___SButton_h0h5a_gg_.__enableVisited_h0h5a_gg_:visited:hover{color:var(--intergalactic-text-link-visited, #8649e1)}}.___SButton_h0h5a_gg_ .___SText_h0h5a_gg_{border-bottom-width:1px;border-bottom-style:solid;border-color:transparent;transition:border-bottom-color .15s ease-in-out}.___SButton_h0h5a_gg_.__keyboardFocused_h0h5a_gg_{outline-color:var(--intergalactic-keyboard-focus-outline, rgba(0, 143, 248, 0.5));outline-style:solid;outline-width:3px}.___SButton_h0h5a_gg_.__visually-disabled_h0h5a_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}.___SButton_h0h5a_gg_._use_secondary_h0h5a_gg_{color:var(--intergalactic-text-hint, #6c6e79)}.___SButton_h0h5a_gg_._use_secondary_h0h5a_gg_.__active_h0h5a_gg_,.___SButton_h0h5a_gg_._use_secondary_h0h5a_gg_:active{color:var(--intergalactic-text-hint-hover-active, #484a54)}@media (hover:hover){.___SButton_h0h5a_gg_._use_secondary_h0h5a_gg_:hover{color:var(--intergalactic-text-hint-hover-active, #484a54)}}.___SButton_h0h5a_gg_._use_secondary_h0h5a_gg_ .___SText_h0h5a_gg_{border-bottom-width:1px;border-bottom-style:dashed;border-color:currentColor}.___SAddon_h0h5a_gg_,.___SInner_h0h5a_gg_{display:inline-flex;justify-content:center;align-items:center}.___SInner_h0h5a_gg_{height:100%;width:100%}.___SAddon_h0h5a_gg_{vertical-align:middle}.___SButton_h0h5a_gg_ .___SAddon_h0h5a_gg_:not(:only-child):first-child{margin-right:var(--intergalactic-spacing-1x, 4px)}.___SButton_h0h5a_gg_ .___SAddon_h0h5a_gg_:not(:only-child):last-child{margin-left:var(--intergalactic-spacing-1x, 4px)}.___SButton_h0h5a_gg_.__text-color_h0h5a_gg_{color:var(--text-color_h0h5a)}.___SButton_h0h5a_gg_.__text-color_h0h5a_gg_.__active_h0h5a_gg_,.___SButton_h0h5a_gg_.__text-color_h0h5a_gg_:active{color:var(--text-color_h0h5a);filter:brightness(.8)}@media (hover:hover){.___SButton_h0h5a_gg_.__text-color_h0h5a_gg_:hover{color:var(--text-color_h0h5a);filter:brightness(.8)}}.___SButton_h0h5a_gg_._size_100_h0h5a_gg_{font-size:var(--intergalactic-fs-100, 12px);line-height:var(--intergalactic-lh-100, 133%)}.___SButton_h0h5a_gg_._size_200_h0h5a_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SButton_h0h5a_gg_._size_300_h0h5a_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SButton_h0h5a_gg_._size_400_h0h5a_gg_{font-size:var(--intergalactic-fs-400, 20px);line-height:var(--intergalactic-lh-400, 120%)}.___SButton_h0h5a_gg_._size_500_h0h5a_gg_{font-size:var(--intergalactic-fs-500, 24px);line-height:var(--intergalactic-lh-500, 117%)}.___SButton_h0h5a_gg_._size_600_h0h5a_gg_{font-size:var(--intergalactic-fs-600, 32px);line-height:var(--intergalactic-lh-600, 125%)}.___SButton_h0h5a_gg_._size_700_h0h5a_gg_{font-size:var(--intergalactic-fs-700, 36px);line-height:var(--intergalactic-lh-700, 110%)}.___SButton_h0h5a_gg_._size_800_h0h5a_gg_{font-size:var(--intergalactic-fs-800, 48px);line-height:var(--intergalactic-lh-800, 117%)}@media (prefers-reduced-motion){.___SButton_h0h5a_gg_,.___SText_h0h5a_gg_{transition:none}}" /*__inner_css_end__*/, "h0h5a_gg_") /*__reshadow_css_end__*/, {
|
|
14
|
+
"__SButton": "___SButton_h0h5a_gg_",
|
|
15
|
+
"_keyboardFocused": "__keyboardFocused_h0h5a_gg_",
|
|
16
|
+
"_visually-disabled": "__visually-disabled_h0h5a_gg_",
|
|
17
|
+
"__SInner": "___SInner_h0h5a_gg_",
|
|
18
|
+
"__SAddon": "___SAddon_h0h5a_gg_",
|
|
19
|
+
"_size_100": "_size_100_h0h5a_gg_",
|
|
20
|
+
"_size_200": "_size_200_h0h5a_gg_",
|
|
21
|
+
"_size_300": "_size_300_h0h5a_gg_",
|
|
22
|
+
"_size_400": "_size_400_h0h5a_gg_",
|
|
23
|
+
"_size_500": "_size_500_h0h5a_gg_",
|
|
24
|
+
"_size_600": "_size_600_h0h5a_gg_",
|
|
25
|
+
"_size_700": "_size_700_h0h5a_gg_",
|
|
26
|
+
"_size_800": "_size_800_h0h5a_gg_",
|
|
27
|
+
"__SText": "___SText_h0h5a_gg_",
|
|
28
|
+
"_active": "__active_h0h5a_gg_",
|
|
29
|
+
"_enableVisited": "__enableVisited_h0h5a_gg_",
|
|
30
|
+
"_use_secondary": "_use_secondary_h0h5a_gg_",
|
|
31
|
+
"_text-color": "__text-color_h0h5a_gg_",
|
|
32
|
+
"--text-color": "--text-color_h0h5a"
|
|
32
33
|
});
|
|
33
34
|
import keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';
|
|
34
35
|
import { Box } from '@semcore/flex-box';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonLink.js","names":["React","createComponent","sstyled","Root","style","_sstyled","insert","keyboardFocusEnhance","Box","AbstractButton","resolveColorEnhance","enhance","keyboardFocused","resolveColor","RootButtonLink","_AbstractButton","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","getTextColor","_ref5","asProps","color","_defineProperty","Object","values","use","Text","props","_ref","arguments[0]","_ref3","SText","styles","createElement","cn","_objectSpread","_assignProps","Addon","_ref2","_ref4","SAddon","_assignProps2","ButtonLink"],"sources":["../../../../src/component/ButtonLink/ButtonLink.tsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { sstyled, Root } from '@semcore/core';\nimport style from './buttonLink.shadow.css';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport { Box } from '@semcore/flex-box';\nimport { AbstractButton } from '../AbstractButton/AbstractButton';\nimport resolveColorEnhance from '@semcore/utils/lib/enhances/resolveColorEnhance';\nimport { ButtonLinkAddonProps, ButtonLinkComponent, ButtonLinkTextProps } from './ButtonLink.type';\n\nconst enhance = {\n keyboardFocused: keyboardFocusEnhance(),\n resolveColor: resolveColorEnhance(),\n};\n\nclass RootButtonLink extends AbstractButton {\n static displayName = 'ButtonLink';\n static enhance = Object.values(enhance);\n static style = style;\n static defaultProps = {\n use: 'primary',\n };\n\n protected getTextColor(): string | undefined {\n const { color, resolveColor } = this.asProps as any;\n return resolveColor(color);\n }\n}\n\nfunction Text(props: ButtonLinkTextProps) {\n const SText = Root;\n return sstyled(props.styles)(<SText render={Box} tag='span' />);\n}\n\nfunction Addon(props: ButtonLinkAddonProps) {\n const SAddon = Root;\n return sstyled(props.styles)(<SAddon render={Box} tag='span' />);\n}\n\nexport const ButtonLink = createComponent(RootButtonLink, {\n Text,\n Addon,\n}) as ButtonLinkComponent;\n"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,eAAe,IAAIC,OAAO,EAAEC,IAAI,QAAQ,eAAe;AAAC;AAAA,IAAAC,KAAA,+BAAAC,QAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAE/D,OAAOC,oBAAoB,MAAM,kDAAkD;AACnF,SAASC,GAAG,QAAQ,mBAAmB;AACvC,SAASC,cAAc,QAAQ,kCAAkC;AACjE,OAAOC,mBAAmB,MAAM,iDAAiD;AAGjF,IAAMC,OAAO,GAAG;EACdC,eAAe,EAAEL,oBAAoB,EAAE;EACvCM,YAAY,EAAEH,mBAAmB;AACnC,CAAC;AAAC,IAEII,cAAc,0BAAAC,eAAA;EAAAC,SAAA,CAAAF,cAAA,EAAAC,eAAA;EAAA,IAAAE,MAAA,GAAAC,YAAA,CAAAJ,cAAA;EAAA,SAAAA,eAAA;IAAAK,eAAA,OAAAL,cAAA;IAAA,OAAAG,MAAA,CAAAG,KAAA,OAAAC,SAAA;EAAA;EAAAC,YAAA,CAAAR,cAAA;IAAAS,GAAA;IAAAC,KAAA,EAQlB,SAAAC,aAAA,EAA6C;MAC3C,IAAAC,KAAA,GAAgC,IAAI,CAACC,OAAO;QAApCC,KAAK,GAAAF,KAAA,CAALE,KAAK;QAAEf,YAAY,GAAAa,KAAA,CAAZb,YAAY;MAC3B,OAAOA,YAAY,CAACe,KAAK,CAAC;IAC5B;EAAC;EAAA,OAAAd,cAAA;AAAA,EAX0BL,cAAc;AAAAoB,eAAA,CAArCf,cAAc,iBACG,YAAY;AAAAe,eAAA,CAD7Bf,cAAc,aAEDgB,MAAM,CAACC,MAAM,CAACpB,OAAO,CAAC;AAAAkB,eAAA,CAFnCf,cAAc,WAGHV,KAAK;AAAAyB,eAAA,CAHhBf,cAAc,kBAII;EACpBkB,GAAG,EAAE;AACP,CAAC;AAQH,SAASC,IAAIA,CAACC,KAA0B,EAAE;EAAA,IAAAC,IAAA,GAAAC,YAAA;IAAAC,KAAA;EACxC,IAAMC,KAAK,GACiC9B,GAAG;EAA/C,OAAA6B,KAAA,GAAOnC,OAAO,CAACgC,KAAK,CAACK,MAAM,CAAC,eAACvC,KAAA,CAAAwC,aAAA,CAACF,KAAK,EAAAD,KAAA,CAAAI,EAAA,UAAAC,aAAA,KAAAC,YAAA;IAAA,OAAkB;EAAM,GAAAR,IAAA,IAAG;AAChE;AAEA,SAASS,KAAKA,CAACV,KAA2B,EAAE;EAAA,IAAAW,KAAA,GAAAT,YAAA;IAAAU,KAAA;EAC1C,IAAMC,MAAM,GACiCvC,GAAG;EAAhD,OAAAsC,KAAA,GAAO5C,OAAO,CAACgC,KAAK,CAACK,MAAM,CAAC,eAACvC,KAAA,CAAAwC,aAAA,CAACO,MAAM,EAAAD,KAAA,CAAAL,EAAA,WAAAC,aAAA,KAAAM,aAAA;IAAA,OAAkB;EAAM,GAAAH,KAAA,IAAG;AACjE;AAEA,OAAO,IAAMI,UAAU,GAAGhD,eAAe,CAACa,cAAc,EAAE;EACxDmB,IAAI,EAAJA,IAAI;EACJW,KAAK,EAALA;AACF,CAAC,CAAwB"}
|
|
1
|
+
{"version":3,"file":"ButtonLink.js","names":["React","createComponent","sstyled","Root","style","_sstyled","insert","keyboardFocusEnhance","Box","AbstractButton","resolveColorEnhance","enhance","keyboardFocused","resolveColor","RootButtonLink","_AbstractButton","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","getTextColor","_ref5","asProps","color","_defineProperty","Object","values","use","Text","props","_ref","arguments[0]","_ref3","SText","styles","createElement","cn","_objectSpread","_assignProps","Addon","_ref2","_ref4","SAddon","_assignProps2","ButtonLink"],"sources":["../../../../src/component/ButtonLink/ButtonLink.tsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { sstyled, Root } from '@semcore/core';\nimport style from './buttonLink.shadow.css';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport { Box } from '@semcore/flex-box';\nimport { AbstractButton } from '../AbstractButton/AbstractButton';\nimport resolveColorEnhance from '@semcore/utils/lib/enhances/resolveColorEnhance';\nimport { ButtonLinkAddonProps, ButtonLinkComponent, ButtonLinkTextProps } from './ButtonLink.type';\n\nconst enhance = {\n keyboardFocused: keyboardFocusEnhance(),\n resolveColor: resolveColorEnhance(),\n};\n\nclass RootButtonLink extends AbstractButton {\n static displayName = 'ButtonLink';\n static enhance = Object.values(enhance);\n static style = style;\n static defaultProps = {\n use: 'primary',\n };\n\n protected getTextColor(): string | undefined {\n const { color, resolveColor } = this.asProps as any;\n return resolveColor(color);\n }\n}\n\nfunction Text(props: ButtonLinkTextProps) {\n const SText = Root;\n return sstyled(props.styles)(<SText render={Box} tag='span' />);\n}\n\nfunction Addon(props: ButtonLinkAddonProps) {\n const SAddon = Root;\n return sstyled(props.styles)(<SAddon render={Box} tag='span' />);\n}\n\nexport const ButtonLink = createComponent(RootButtonLink, {\n Text,\n Addon,\n}) as ButtonLinkComponent;\n"],"mappings":";;;;;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,eAAe,IAAIC,OAAO,EAAEC,IAAI,QAAQ,eAAe;AAAC;AAAA,IAAAC,KAAA,+BAAAC,QAAA,CAAAC,MAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;EAAA;AAAA;AAE/D,OAAOC,oBAAoB,MAAM,kDAAkD;AACnF,SAASC,GAAG,QAAQ,mBAAmB;AACvC,SAASC,cAAc,QAAQ,kCAAkC;AACjE,OAAOC,mBAAmB,MAAM,iDAAiD;AAGjF,IAAMC,OAAO,GAAG;EACdC,eAAe,EAAEL,oBAAoB,EAAE;EACvCM,YAAY,EAAEH,mBAAmB;AACnC,CAAC;AAAC,IAEII,cAAc,0BAAAC,eAAA;EAAAC,SAAA,CAAAF,cAAA,EAAAC,eAAA;EAAA,IAAAE,MAAA,GAAAC,YAAA,CAAAJ,cAAA;EAAA,SAAAA,eAAA;IAAAK,eAAA,OAAAL,cAAA;IAAA,OAAAG,MAAA,CAAAG,KAAA,OAAAC,SAAA;EAAA;EAAAC,YAAA,CAAAR,cAAA;IAAAS,GAAA;IAAAC,KAAA,EAQlB,SAAAC,aAAA,EAA6C;MAC3C,IAAAC,KAAA,GAAgC,IAAI,CAACC,OAAO;QAApCC,KAAK,GAAAF,KAAA,CAALE,KAAK;QAAEf,YAAY,GAAAa,KAAA,CAAZb,YAAY;MAC3B,OAAOA,YAAY,CAACe,KAAK,CAAC;IAC5B;EAAC;EAAA,OAAAd,cAAA;AAAA,EAX0BL,cAAc;AAAAoB,eAAA,CAArCf,cAAc,iBACG,YAAY;AAAAe,eAAA,CAD7Bf,cAAc,aAEDgB,MAAM,CAACC,MAAM,CAACpB,OAAO,CAAC;AAAAkB,eAAA,CAFnCf,cAAc,WAGHV,KAAK;AAAAyB,eAAA,CAHhBf,cAAc,kBAII;EACpBkB,GAAG,EAAE;AACP,CAAC;AAQH,SAASC,IAAIA,CAACC,KAA0B,EAAE;EAAA,IAAAC,IAAA,GAAAC,YAAA;IAAAC,KAAA;EACxC,IAAMC,KAAK,GACiC9B,GAAG;EAA/C,OAAA6B,KAAA,GAAOnC,OAAO,CAACgC,KAAK,CAACK,MAAM,CAAC,eAACvC,KAAA,CAAAwC,aAAA,CAACF,KAAK,EAAAD,KAAA,CAAAI,EAAA,UAAAC,aAAA,KAAAC,YAAA;IAAA,OAAkB;EAAM,GAAAR,IAAA,IAAG;AAChE;AAEA,SAASS,KAAKA,CAACV,KAA2B,EAAE;EAAA,IAAAW,KAAA,GAAAT,YAAA;IAAAU,KAAA;EAC1C,IAAMC,MAAM,GACiCvC,GAAG;EAAhD,OAAAsC,KAAA,GAAO5C,OAAO,CAACgC,KAAK,CAACK,MAAM,CAAC,eAACvC,KAAA,CAAAwC,aAAA,CAACO,MAAM,EAAAD,KAAA,CAAAL,EAAA,WAAAC,aAAA,KAAAM,aAAA;IAAA,OAAkB;EAAM,GAAAH,KAAA,IAAG;AACjE;AAEA,OAAO,IAAMI,UAAU,GAAGhD,eAAe,CAACa,cAAc,EAAE;EACxDmB,IAAI,EAAJA,IAAI;EACJW,KAAK,EAALA;AACF,CAAC,CAAwB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
SButton {
|
|
2
|
-
display: inline-
|
|
2
|
+
display: inline-flex;
|
|
3
3
|
font-family: inherit;
|
|
4
4
|
font-size: var(--intergalactic-fs-200, 14px);
|
|
5
5
|
color: var(--intergalactic-text-link, #006dca);
|
|
@@ -80,11 +80,18 @@ SButton[use='secondary'] {
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
+
SInner {
|
|
84
|
+
display: inline-flex;
|
|
85
|
+
align-items: center;
|
|
86
|
+
justify-content: center;
|
|
87
|
+
height: 100%;
|
|
88
|
+
width: 100%;
|
|
89
|
+
}
|
|
90
|
+
|
|
83
91
|
SAddon {
|
|
84
92
|
display: inline-flex;
|
|
85
93
|
justify-content: center;
|
|
86
94
|
align-items: center;
|
|
87
|
-
margin-bottom: var(--intergalactic-spacing-05x, 2px);
|
|
88
95
|
vertical-align: middle;
|
|
89
96
|
}
|
|
90
97
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/button",
|
|
3
3
|
"description": "Semrush Button Component",
|
|
4
|
-
"version": "5.37.
|
|
4
|
+
"version": "5.37.1-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,14 +14,14 @@
|
|
|
14
14
|
"types": "./lib/types/index.d.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@semcore/flex-box": "5.33.
|
|
18
|
-
"@semcore/neighbor-location": "4.31.
|
|
19
|
-
"@semcore/spin": "5.33.
|
|
20
|
-
"@semcore/tooltip": "6.42.
|
|
21
|
-
"@semcore/utils": "4.36.
|
|
17
|
+
"@semcore/flex-box": "5.33.1-prerelease.1",
|
|
18
|
+
"@semcore/neighbor-location": "4.31.1-prerelease.1",
|
|
19
|
+
"@semcore/spin": "5.33.1-prerelease.1",
|
|
20
|
+
"@semcore/tooltip": "6.42.1-prerelease.1",
|
|
21
|
+
"@semcore/utils": "4.36.2-prerelease.1"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@semcore/core": "^2.31.
|
|
24
|
+
"@semcore/core": "^2.31.1-prerelease.1",
|
|
25
25
|
"react": "16.8 - 18",
|
|
26
26
|
"react-dom": "16.8 - 18"
|
|
27
27
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
SButton {
|
|
2
|
-
display: inline-
|
|
2
|
+
display: inline-flex;
|
|
3
3
|
font-family: inherit;
|
|
4
4
|
font-size: var(--intergalactic-fs-200, 14px);
|
|
5
5
|
color: var(--intergalactic-text-link, #006dca);
|
|
@@ -80,11 +80,18 @@ SButton[use='secondary'] {
|
|
|
80
80
|
}
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
+
SInner {
|
|
84
|
+
display: inline-flex;
|
|
85
|
+
align-items: center;
|
|
86
|
+
justify-content: center;
|
|
87
|
+
height: 100%;
|
|
88
|
+
width: 100%;
|
|
89
|
+
}
|
|
90
|
+
|
|
83
91
|
SAddon {
|
|
84
92
|
display: inline-flex;
|
|
85
93
|
justify-content: center;
|
|
86
94
|
align-items: center;
|
|
87
|
-
margin-bottom: var(--intergalactic-spacing-05x, 2px);
|
|
88
95
|
vertical-align: middle;
|
|
89
96
|
}
|
|
90
97
|
|