@semcore/button 5.31.0 → 5.31.1-prerelease.0
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 +11 -5
- package/lib/cjs/Button.js +26 -26
- package/lib/es6/Button.js +26 -26
- package/package.json +3 -3
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.31.1] - 2024-07-05
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Version patch update due to children dependencies update (`@semcore/spin` [5.28.0 ~> 5.29.0], `@semcore/tooltip` [6.36.0 ~> 6.36.1]).
|
|
10
|
+
|
|
5
11
|
## [5.31.0] - 2024-06-26
|
|
6
12
|
|
|
7
13
|
### Changed
|
|
@@ -663,7 +669,7 @@ CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangel
|
|
|
663
669
|
|
|
664
670
|
### Added
|
|
665
671
|
|
|
666
|
-
- Added alternative
|
|
672
|
+
- Added alternative API for inserting `Addon`.
|
|
667
673
|
|
|
668
674
|
## [3.0.3] - 2020-09-08
|
|
669
675
|
|
|
@@ -705,13 +711,13 @@ CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangel
|
|
|
705
711
|
|
|
706
712
|
### Fixed
|
|
707
713
|
|
|
708
|
-
- Исправлен транспайл цветовых переменных для стилей без префиксов (build.css)
|
|
714
|
+
- Исправлен транспайл цветовых переменных для стилей без префиксов (`build.css`)
|
|
709
715
|
|
|
710
716
|
## [2.4.0] - 2019-12-12
|
|
711
717
|
|
|
712
718
|
### Added
|
|
713
719
|
|
|
714
|
-
- Появилась возможность добавления различных стилистических тем через
|
|
720
|
+
- Появилась возможность добавления различных стилистических тем через CSS переменные
|
|
715
721
|
- Появилась возможность оптицонально подключать адаптивноссть
|
|
716
722
|
- Появилась возможность изолировать стили даже в пределах одной страницы
|
|
717
723
|
- Добавлено прокидываение классов на `Spin` внутри кнопки
|
|
@@ -765,7 +771,7 @@ CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangel
|
|
|
765
771
|
|
|
766
772
|
### Fixed
|
|
767
773
|
|
|
768
|
-
- Исправлена сборка для рендера
|
|
774
|
+
- Исправлена сборка для рендера CSS на сервере
|
|
769
775
|
|
|
770
776
|
## [2.1.8] - 2019-07-24
|
|
771
777
|
|
|
@@ -840,7 +846,7 @@ CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangel
|
|
|
840
846
|
- Убрано свойство `fullWidth`
|
|
841
847
|
- Убрано свойство `inputRef`
|
|
842
848
|
- Убраны стили для не используемых тем
|
|
843
|
-
- Добавленно свойство
|
|
849
|
+
- Добавленно свойство CSS `vertical-align: middle;`
|
|
844
850
|
|
|
845
851
|
### Added
|
|
846
852
|
|
package/lib/cjs/Button.js
CHANGED
|
@@ -25,32 +25,32 @@ var _logger = _interopRequireDefault(require("@semcore/utils/lib/logger"));
|
|
|
25
25
|
var _SpinButton = _interopRequireDefault(require("./SpinButton"));
|
|
26
26
|
var _hasLabels = _interopRequireDefault(require("@semcore/utils/lib/hasLabels"));
|
|
27
27
|
/*__reshadow-styles__:"./style/button.shadow.css"*/
|
|
28
|
-
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SButton_awes2_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_awes2_gg_::-moz-focus-inner{padding:0;border:0}.___SButton_awes2_gg_:active,.___SButton_awes2_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SButton_awes2_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SButton_awes2_gg_.__keyboardFocused_awes2_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));z-index:1}.___SButton_awes2_gg_.__disabled_awes2_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none;box-shadow:none;z-index:0}.___SButton_awes2_gg_._size_m_awes2_gg_{height:var(--intergalactic-form-control-m, 28px);border-radius:var(--intergalactic-control-rounded, 6px);font-size:var(--intergalactic-fs-200, 14px)}.___SButton_awes2_gg_._size_l_awes2_gg_{height:var(--intergalactic-form-control-l, 40px);border-radius:var(--intergalactic-control-rounded, 6px);font-size:var(--intergalactic-fs-300, 16px)}.___SButton_awes2_gg_._theme_primary-info_awes2_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-info, #008ff8)}@media (hover:hover){.___SButton_awes2_gg_._theme_primary-info_awes2_gg_:hover{background-color:var(--intergalactic-control-primary-info-hover, #006dca)}}.___SButton_awes2_gg_._theme_primary-info_awes2_gg_.__active_awes2_gg_,.___SButton_awes2_gg_._theme_primary-info_awes2_gg_:active{background-color:var(--intergalactic-control-primary-info-active, #044792)}.___SButton_awes2_gg_._theme_primary-success_awes2_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-success, #009f81)}@media (hover:hover){.___SButton_awes2_gg_._theme_primary-success_awes2_gg_:hover{background-color:var(--intergalactic-control-primary-success-hover, #007c65)}}.___SButton_awes2_gg_._theme_primary-success_awes2_gg_.__active_awes2_gg_,.___SButton_awes2_gg_._theme_primary-success_awes2_gg_:active{background-color:var(--intergalactic-control-primary-success-active, #055345)}.___SButton_awes2_gg_._theme_primary-warning_awes2_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-icon-primary-warning, #ff642d)}@media (hover:hover){.___SButton_awes2_gg_._theme_primary-warning_awes2_gg_:hover{background-color:var(--intergalactic-icon-primary-warning-hover-active, #CC5024)}}.___SButton_awes2_gg_._theme_primary-warning_awes2_gg_.__active_awes2_gg_,.___SButton_awes2_gg_._theme_primary-warning_awes2_gg_:active{background-color:var(--intergalactic-icon-primary-warning-hover-active, #CC5024)}.___SButton_awes2_gg_._theme_primary-danger_awes2_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-critical, #ff4953)}@media (hover:hover){.___SButton_awes2_gg_._theme_primary-danger_awes2_gg_:hover{background-color:var(--intergalactic-control-primary-critical-hover, #d1002f)}}.___SButton_awes2_gg_._theme_primary-danger_awes2_gg_.__active_awes2_gg_,.___SButton_awes2_gg_._theme_primary-danger_awes2_gg_:active{background-color:var(--intergalactic-control-primary-critical-active, #8e0016)}.___SButton_awes2_gg_._theme_primary-invert_awes2_gg_{color:var(--intergalactic-text-primary, #191b23);background-color:var(--intergalactic-control-primary-invert, #ffffff)}@media (hover:hover){.___SButton_awes2_gg_._theme_primary-invert_awes2_gg_:hover{background-color:var(--intergalactic-control-primary-invert-hover, #f4f5f9)}}.___SButton_awes2_gg_._theme_primary-invert_awes2_gg_.__active_awes2_gg_,.___SButton_awes2_gg_._theme_primary-invert_awes2_gg_:active{background-color:var(--intergalactic-control-primary-invert-active, #e0e1e9)}.___SButton_awes2_gg_._theme_secondary-muted_awes2_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_awes2_gg_._theme_secondary-muted_awes2_gg_:hover{background-color:var(--intergalactic-control-secondary-neutral-hover,\n rgba(138, 142, 155, 0.2));color:var(--intergalactic-text-primary, #191b23)}}.___SButton_awes2_gg_._theme_secondary-muted_awes2_gg_.__active_awes2_gg_,.___SButton_awes2_gg_._theme_secondary-muted_awes2_gg_:active{background-color:var(--intergalactic-control-secondary-neutral-active,\n rgba(138, 142, 155, 0.3));color:var(--intergalactic-text-primary, #191b23)}.___SButton_awes2_gg_._theme_secondary-info_awes2_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_awes2_gg_._theme_secondary-info_awes2_gg_:hover{background-color:var(--intergalactic-control-secondary-info-hover, rgba(0, 143, 248, 0.2))}}.___SButton_awes2_gg_._theme_secondary-info_awes2_gg_.__active_awes2_gg_,.___SButton_awes2_gg_._theme_secondary-info_awes2_gg_:active{background-color:var(--intergalactic-control-secondary-info-active, rgba(0, 143, 248, 0.3))}.___SButton_awes2_gg_._theme_secondary-invert_awes2_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_awes2_gg_._theme_secondary-invert_awes2_gg_:hover{background-color:var(--intergalactic-control-secondary-invert-hover, rgba(255, 255, 255, 0.1))}}.___SButton_awes2_gg_._theme_secondary-invert_awes2_gg_.__active_awes2_gg_,.___SButton_awes2_gg_._theme_secondary-invert_awes2_gg_:active{background-color:var(--intergalactic-control-secondary-invert-active,\n rgba(255, 255, 255, 0.3))}.___SButton_awes2_gg_._theme_tertiary-info_awes2_gg_{color:var(--intergalactic-text-link, #006dca);background-color:var(--intergalactic-control-tertiary-info, rgba(0, 143, 248, 0))}@media (hover:hover){.___SButton_awes2_gg_._theme_tertiary-info_awes2_gg_:hover{background-color:var(--intergalactic-control-tertiary-info-hover, rgba(0, 143, 248, 0.2))}}.___SButton_awes2_gg_._theme_tertiary-info_awes2_gg_.__active_awes2_gg_,.___SButton_awes2_gg_._theme_tertiary-info_awes2_gg_:active{background-color:var(--intergalactic-control-tertiary-info-active, rgba(0, 143, 248, 0.3))}.___SButton_awes2_gg_._theme_tertiary-muted_awes2_gg_{color:var(--intergalactic-text-secondary, #6c6e79);background-color:var(--intergalactic-control-tertiary-neutral, rgba(138, 142, 155, 0))}@media (hover:hover){.___SButton_awes2_gg_._theme_tertiary-muted_awes2_gg_:hover{background-color:var(--intergalactic-control-tertiary-neutral-hover, rgba(138, 142, 155, 0.2));color:var(--intergalactic-text-primary, #191b23)}}.___SButton_awes2_gg_._theme_tertiary-muted_awes2_gg_.__active_awes2_gg_,.___SButton_awes2_gg_._theme_tertiary-muted_awes2_gg_:active{background-color:var(--intergalactic-control-tertiary-neutral-active,\n rgba(138, 142, 155, 0.3));color:var(--intergalactic-text-primary, #191b23)}.___SButton_awes2_gg_._theme_tertiary-invert_awes2_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-tertiary-invert, rgba(255, 255, 255, 0))}@media (hover:hover){.___SButton_awes2_gg_._theme_tertiary-invert_awes2_gg_:hover{background-color:var(--intergalactic-control-tertiary-invert-hover, rgba(255, 255, 255, 0.1))}}.___SButton_awes2_gg_._theme_tertiary-invert_awes2_gg_.__active_awes2_gg_,.___SButton_awes2_gg_._theme_tertiary-invert_awes2_gg_:active{background-color:var(--intergalactic-control-tertiary-invert-active, rgba(255, 255, 255, 0.3))}.___SButton_awes2_gg_._neighborLocation_right_awes2_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SButton_awes2_gg_._neighborLocation_both_awes2_gg_{border-radius:0;margin-left:-1px}.___SButton_awes2_gg_._neighborLocation_left_awes2_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.___SButton_awes2_gg_._neighborLocation_both_awes2_gg_,.___SButton_awes2_gg_._neighborLocation_left_awes2_gg_{position:relative}.___SButton_awes2_gg_._neighborLocation_both_awes2_gg_:after,.___SButton_awes2_gg_._neighborLocation_left_awes2_gg_:after{background-color:var(--intergalactic-text-primary-invert, #ffffff)}.___SButton_awes2_gg_._neighborLocation_both_awes2_gg_._theme_secondary-muted_awes2_gg_:after,.___SButton_awes2_gg_._neighborLocation_left_awes2_gg_._theme_secondary-muted_awes2_gg_:after{background-color:var(--intergalactic-border-primary, #c4c7cf)}.___SButton_awes2_gg_+.___SButton_awes2_gg_._neighborLocation_both_awes2_gg_:after,.___SButton_awes2_gg_+.___SButton_awes2_gg_._neighborLocation_left_awes2_gg_:after{content:\"\";position:absolute;top:-1px;left:-1px;width:1px;height:calc(100% + 2px)}.___SSpin_awes2_gg_{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}.___SInner_awes2_gg_{display:inline-flex;align-items:center;justify-content:center;height:100%;width:100%}.___SInner_awes2_gg_.__loading_awes2_gg_{visibility:hidden}.___SText_awes2_gg_{display:inline-flex}.___SText_awes2_gg_._size_l_awes2_gg_,.___SText_awes2_gg_._size_m_awes2_gg_{margin-left:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-2x, 8px)}.___SText_awes2_gg_._size_m_awes2_gg_{line-height:var(--intergalactic-lh-200, 142%)}.___SText_awes2_gg_._size_l_awes2_gg_{line-height:var(--intergalactic-lh-300, 150%)}.___SText_awes2_gg_._size_l_awes2_gg_:only-child{margin-left:var(--intergalactic-spacing-3x, 12px);margin-right:var(--intergalactic-spacing-3x, 12px)}.___SText_awes2_gg_._size_l_awes2_gg_:first-child{margin-left:var(--intergalactic-spacing-3x, 12px)}.___SText_awes2_gg_._size_l_awes2_gg_:last-child{margin-right:var(--intergalactic-spacing-3x, 12px)}.___SAddon_awes2_gg_{display:inline-flex;align-items:center;justify-content:center}.___SAddon_awes2_gg_._size_m_awes2_gg_:not(:only-child):first-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SAddon_awes2_gg_._size_m_awes2_gg_:not(:only-child):last-child{margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SAddon_awes2_gg_._size_m_awes2_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_awes2_gg_._size_l_awes2_gg_:not(:only-child):first-child{margin-left:calc(var(--intergalactic-spacing-3x, 12px) - 1px)}.___SAddon_awes2_gg_._size_l_awes2_gg_:not(:only-child):last-child{margin-right:calc(var(--intergalactic-spacing-3x, 12px) - 1px)}.___SAddon_awes2_gg_._size_l_awes2_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__*/, "awes2_gg_") /*__reshadow_css_end__*/, {
|
|
29
|
-
"__SButton": "
|
|
30
|
-
"_keyboardFocused": "
|
|
31
|
-
"_disabled": "
|
|
32
|
-
"_size_m": "
|
|
33
|
-
"_size_l": "
|
|
34
|
-
"_neighborLocation_right": "
|
|
35
|
-
"_neighborLocation_both": "
|
|
36
|
-
"_neighborLocation_left": "
|
|
37
|
-
"__SSpin": "
|
|
38
|
-
"__SInner": "
|
|
39
|
-
"_loading": "
|
|
40
|
-
"__SText": "
|
|
41
|
-
"__SAddon": "
|
|
42
|
-
"_theme_primary-info": "_theme_primary-
|
|
43
|
-
"_active": "
|
|
44
|
-
"_theme_primary-success": "_theme_primary-
|
|
45
|
-
"_theme_primary-warning": "_theme_primary-
|
|
46
|
-
"_theme_primary-danger": "_theme_primary-
|
|
47
|
-
"_theme_primary-invert": "_theme_primary-
|
|
48
|
-
"_theme_secondary-muted": "_theme_secondary-
|
|
49
|
-
"_theme_secondary-info": "_theme_secondary-
|
|
50
|
-
"_theme_secondary-invert": "_theme_secondary-
|
|
51
|
-
"_theme_tertiary-info": "_theme_tertiary-
|
|
52
|
-
"_theme_tertiary-muted": "_theme_tertiary-
|
|
53
|
-
"_theme_tertiary-invert": "_theme_tertiary-
|
|
28
|
+
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SButton_1gsmt_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_1gsmt_gg_::-moz-focus-inner{padding:0;border:0}.___SButton_1gsmt_gg_:active,.___SButton_1gsmt_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SButton_1gsmt_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SButton_1gsmt_gg_.__keyboardFocused_1gsmt_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));z-index:1}.___SButton_1gsmt_gg_.__disabled_1gsmt_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none;box-shadow:none;z-index:0}.___SButton_1gsmt_gg_._size_m_1gsmt_gg_{height:var(--intergalactic-form-control-m, 28px);border-radius:var(--intergalactic-control-rounded, 6px);font-size:var(--intergalactic-fs-200, 14px)}.___SButton_1gsmt_gg_._size_l_1gsmt_gg_{height:var(--intergalactic-form-control-l, 40px);border-radius:var(--intergalactic-control-rounded, 6px);font-size:var(--intergalactic-fs-300, 16px)}.___SButton_1gsmt_gg_._theme_primary-info_1gsmt_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-info, #008ff8)}@media (hover:hover){.___SButton_1gsmt_gg_._theme_primary-info_1gsmt_gg_:hover{background-color:var(--intergalactic-control-primary-info-hover, #006dca)}}.___SButton_1gsmt_gg_._theme_primary-info_1gsmt_gg_.__active_1gsmt_gg_,.___SButton_1gsmt_gg_._theme_primary-info_1gsmt_gg_:active{background-color:var(--intergalactic-control-primary-info-active, #044792)}.___SButton_1gsmt_gg_._theme_primary-success_1gsmt_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-success, #009f81)}@media (hover:hover){.___SButton_1gsmt_gg_._theme_primary-success_1gsmt_gg_:hover{background-color:var(--intergalactic-control-primary-success-hover, #007c65)}}.___SButton_1gsmt_gg_._theme_primary-success_1gsmt_gg_.__active_1gsmt_gg_,.___SButton_1gsmt_gg_._theme_primary-success_1gsmt_gg_:active{background-color:var(--intergalactic-control-primary-success-active, #055345)}.___SButton_1gsmt_gg_._theme_primary-warning_1gsmt_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-icon-primary-warning, #ff642d)}@media (hover:hover){.___SButton_1gsmt_gg_._theme_primary-warning_1gsmt_gg_:hover{background-color:var(--intergalactic-icon-primary-warning-hover-active, #CC5024)}}.___SButton_1gsmt_gg_._theme_primary-warning_1gsmt_gg_.__active_1gsmt_gg_,.___SButton_1gsmt_gg_._theme_primary-warning_1gsmt_gg_:active{background-color:var(--intergalactic-icon-primary-warning-hover-active, #CC5024)}.___SButton_1gsmt_gg_._theme_primary-danger_1gsmt_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-critical, #ff4953)}@media (hover:hover){.___SButton_1gsmt_gg_._theme_primary-danger_1gsmt_gg_:hover{background-color:var(--intergalactic-control-primary-critical-hover, #d1002f)}}.___SButton_1gsmt_gg_._theme_primary-danger_1gsmt_gg_.__active_1gsmt_gg_,.___SButton_1gsmt_gg_._theme_primary-danger_1gsmt_gg_:active{background-color:var(--intergalactic-control-primary-critical-active, #8e0016)}.___SButton_1gsmt_gg_._theme_primary-invert_1gsmt_gg_{color:var(--intergalactic-text-primary, #191b23);background-color:var(--intergalactic-control-primary-invert, #ffffff)}@media (hover:hover){.___SButton_1gsmt_gg_._theme_primary-invert_1gsmt_gg_:hover{background-color:var(--intergalactic-control-primary-invert-hover, #f4f5f9)}}.___SButton_1gsmt_gg_._theme_primary-invert_1gsmt_gg_.__active_1gsmt_gg_,.___SButton_1gsmt_gg_._theme_primary-invert_1gsmt_gg_:active{background-color:var(--intergalactic-control-primary-invert-active, #e0e1e9)}.___SButton_1gsmt_gg_._theme_secondary-muted_1gsmt_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_1gsmt_gg_._theme_secondary-muted_1gsmt_gg_:hover{background-color:var(--intergalactic-control-secondary-neutral-hover,\n rgba(138, 142, 155, 0.2));color:var(--intergalactic-text-primary, #191b23)}}.___SButton_1gsmt_gg_._theme_secondary-muted_1gsmt_gg_.__active_1gsmt_gg_,.___SButton_1gsmt_gg_._theme_secondary-muted_1gsmt_gg_:active{background-color:var(--intergalactic-control-secondary-neutral-active,\n rgba(138, 142, 155, 0.3));color:var(--intergalactic-text-primary, #191b23)}.___SButton_1gsmt_gg_._theme_secondary-info_1gsmt_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_1gsmt_gg_._theme_secondary-info_1gsmt_gg_:hover{background-color:var(--intergalactic-control-secondary-info-hover, rgba(0, 143, 248, 0.2))}}.___SButton_1gsmt_gg_._theme_secondary-info_1gsmt_gg_.__active_1gsmt_gg_,.___SButton_1gsmt_gg_._theme_secondary-info_1gsmt_gg_:active{background-color:var(--intergalactic-control-secondary-info-active, rgba(0, 143, 248, 0.3))}.___SButton_1gsmt_gg_._theme_secondary-invert_1gsmt_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_1gsmt_gg_._theme_secondary-invert_1gsmt_gg_:hover{background-color:var(--intergalactic-control-secondary-invert-hover, rgba(255, 255, 255, 0.1))}}.___SButton_1gsmt_gg_._theme_secondary-invert_1gsmt_gg_.__active_1gsmt_gg_,.___SButton_1gsmt_gg_._theme_secondary-invert_1gsmt_gg_:active{background-color:var(--intergalactic-control-secondary-invert-active,\n rgba(255, 255, 255, 0.3))}.___SButton_1gsmt_gg_._theme_tertiary-info_1gsmt_gg_{color:var(--intergalactic-text-link, #006dca);background-color:var(--intergalactic-control-tertiary-info, rgba(0, 143, 248, 0))}@media (hover:hover){.___SButton_1gsmt_gg_._theme_tertiary-info_1gsmt_gg_:hover{background-color:var(--intergalactic-control-tertiary-info-hover, rgba(0, 143, 248, 0.2))}}.___SButton_1gsmt_gg_._theme_tertiary-info_1gsmt_gg_.__active_1gsmt_gg_,.___SButton_1gsmt_gg_._theme_tertiary-info_1gsmt_gg_:active{background-color:var(--intergalactic-control-tertiary-info-active, rgba(0, 143, 248, 0.3))}.___SButton_1gsmt_gg_._theme_tertiary-muted_1gsmt_gg_{color:var(--intergalactic-text-secondary, #6c6e79);background-color:var(--intergalactic-control-tertiary-neutral, rgba(138, 142, 155, 0))}@media (hover:hover){.___SButton_1gsmt_gg_._theme_tertiary-muted_1gsmt_gg_:hover{background-color:var(--intergalactic-control-tertiary-neutral-hover, rgba(138, 142, 155, 0.2));color:var(--intergalactic-text-primary, #191b23)}}.___SButton_1gsmt_gg_._theme_tertiary-muted_1gsmt_gg_.__active_1gsmt_gg_,.___SButton_1gsmt_gg_._theme_tertiary-muted_1gsmt_gg_:active{background-color:var(--intergalactic-control-tertiary-neutral-active,\n rgba(138, 142, 155, 0.3));color:var(--intergalactic-text-primary, #191b23)}.___SButton_1gsmt_gg_._theme_tertiary-invert_1gsmt_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-tertiary-invert, rgba(255, 255, 255, 0))}@media (hover:hover){.___SButton_1gsmt_gg_._theme_tertiary-invert_1gsmt_gg_:hover{background-color:var(--intergalactic-control-tertiary-invert-hover, rgba(255, 255, 255, 0.1))}}.___SButton_1gsmt_gg_._theme_tertiary-invert_1gsmt_gg_.__active_1gsmt_gg_,.___SButton_1gsmt_gg_._theme_tertiary-invert_1gsmt_gg_:active{background-color:var(--intergalactic-control-tertiary-invert-active, rgba(255, 255, 255, 0.3))}.___SButton_1gsmt_gg_._neighborLocation_right_1gsmt_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SButton_1gsmt_gg_._neighborLocation_both_1gsmt_gg_{border-radius:0;margin-left:-1px}.___SButton_1gsmt_gg_._neighborLocation_left_1gsmt_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.___SButton_1gsmt_gg_._neighborLocation_both_1gsmt_gg_,.___SButton_1gsmt_gg_._neighborLocation_left_1gsmt_gg_{position:relative}.___SButton_1gsmt_gg_._neighborLocation_both_1gsmt_gg_:after,.___SButton_1gsmt_gg_._neighborLocation_left_1gsmt_gg_:after{background-color:var(--intergalactic-text-primary-invert, #ffffff)}.___SButton_1gsmt_gg_._neighborLocation_both_1gsmt_gg_._theme_secondary-muted_1gsmt_gg_:after,.___SButton_1gsmt_gg_._neighborLocation_left_1gsmt_gg_._theme_secondary-muted_1gsmt_gg_:after{background-color:var(--intergalactic-border-primary, #c4c7cf)}.___SButton_1gsmt_gg_+.___SButton_1gsmt_gg_._neighborLocation_both_1gsmt_gg_:after,.___SButton_1gsmt_gg_+.___SButton_1gsmt_gg_._neighborLocation_left_1gsmt_gg_:after{content:\"\";position:absolute;top:-1px;left:-1px;width:1px;height:calc(100% + 2px)}.___SSpin_1gsmt_gg_{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}.___SInner_1gsmt_gg_{display:inline-flex;align-items:center;justify-content:center;height:100%;width:100%}.___SInner_1gsmt_gg_.__loading_1gsmt_gg_{visibility:hidden}.___SText_1gsmt_gg_{display:inline-flex}.___SText_1gsmt_gg_._size_l_1gsmt_gg_,.___SText_1gsmt_gg_._size_m_1gsmt_gg_{margin-left:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-2x, 8px)}.___SText_1gsmt_gg_._size_m_1gsmt_gg_{line-height:var(--intergalactic-lh-200, 142%)}.___SText_1gsmt_gg_._size_l_1gsmt_gg_{line-height:var(--intergalactic-lh-300, 150%)}.___SText_1gsmt_gg_._size_l_1gsmt_gg_:only-child{margin-left:var(--intergalactic-spacing-3x, 12px);margin-right:var(--intergalactic-spacing-3x, 12px)}.___SText_1gsmt_gg_._size_l_1gsmt_gg_:first-child{margin-left:var(--intergalactic-spacing-3x, 12px)}.___SText_1gsmt_gg_._size_l_1gsmt_gg_:last-child{margin-right:var(--intergalactic-spacing-3x, 12px)}.___SAddon_1gsmt_gg_{display:inline-flex;align-items:center;justify-content:center}.___SAddon_1gsmt_gg_._size_m_1gsmt_gg_:not(:only-child):first-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SAddon_1gsmt_gg_._size_m_1gsmt_gg_:not(:only-child):last-child{margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SAddon_1gsmt_gg_._size_m_1gsmt_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_1gsmt_gg_._size_l_1gsmt_gg_:not(:only-child):first-child{margin-left:calc(var(--intergalactic-spacing-3x, 12px) - 1px)}.___SAddon_1gsmt_gg_._size_l_1gsmt_gg_:not(:only-child):last-child{margin-right:calc(var(--intergalactic-spacing-3x, 12px) - 1px)}.___SAddon_1gsmt_gg_._size_l_1gsmt_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__*/, "1gsmt_gg_") /*__reshadow_css_end__*/, {
|
|
29
|
+
"__SButton": "___SButton_1gsmt_gg_",
|
|
30
|
+
"_keyboardFocused": "__keyboardFocused_1gsmt_gg_",
|
|
31
|
+
"_disabled": "__disabled_1gsmt_gg_",
|
|
32
|
+
"_size_m": "_size_m_1gsmt_gg_",
|
|
33
|
+
"_size_l": "_size_l_1gsmt_gg_",
|
|
34
|
+
"_neighborLocation_right": "_neighborLocation_right_1gsmt_gg_",
|
|
35
|
+
"_neighborLocation_both": "_neighborLocation_both_1gsmt_gg_",
|
|
36
|
+
"_neighborLocation_left": "_neighborLocation_left_1gsmt_gg_",
|
|
37
|
+
"__SSpin": "___SSpin_1gsmt_gg_",
|
|
38
|
+
"__SInner": "___SInner_1gsmt_gg_",
|
|
39
|
+
"_loading": "__loading_1gsmt_gg_",
|
|
40
|
+
"__SText": "___SText_1gsmt_gg_",
|
|
41
|
+
"__SAddon": "___SAddon_1gsmt_gg_",
|
|
42
|
+
"_theme_primary-info": "_theme_primary-info_1gsmt_gg_",
|
|
43
|
+
"_active": "__active_1gsmt_gg_",
|
|
44
|
+
"_theme_primary-success": "_theme_primary-success_1gsmt_gg_",
|
|
45
|
+
"_theme_primary-warning": "_theme_primary-warning_1gsmt_gg_",
|
|
46
|
+
"_theme_primary-danger": "_theme_primary-danger_1gsmt_gg_",
|
|
47
|
+
"_theme_primary-invert": "_theme_primary-invert_1gsmt_gg_",
|
|
48
|
+
"_theme_secondary-muted": "_theme_secondary-muted_1gsmt_gg_",
|
|
49
|
+
"_theme_secondary-info": "_theme_secondary-info_1gsmt_gg_",
|
|
50
|
+
"_theme_secondary-invert": "_theme_secondary-invert_1gsmt_gg_",
|
|
51
|
+
"_theme_tertiary-info": "_theme_tertiary-info_1gsmt_gg_",
|
|
52
|
+
"_theme_tertiary-muted": "_theme_tertiary-muted_1gsmt_gg_",
|
|
53
|
+
"_theme_tertiary-invert": "_theme_tertiary-invert_1gsmt_gg_"
|
|
54
54
|
});
|
|
55
55
|
var MAP_USE_DEFAULT_THEME = {
|
|
56
56
|
primary: 'info',
|
package/lib/es6/Button.js
CHANGED
|
@@ -19,32 +19,32 @@ import addonTextChildren from '@semcore/utils/lib/addonTextChildren';
|
|
|
19
19
|
import logger from '@semcore/utils/lib/logger';
|
|
20
20
|
import SpinButton from './SpinButton';
|
|
21
21
|
/*__reshadow-styles__:"./style/button.shadow.css"*/
|
|
22
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SButton_awes2_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_awes2_gg_::-moz-focus-inner{padding:0;border:0}.___SButton_awes2_gg_:active,.___SButton_awes2_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SButton_awes2_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SButton_awes2_gg_.__keyboardFocused_awes2_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));z-index:1}.___SButton_awes2_gg_.__disabled_awes2_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none;box-shadow:none;z-index:0}.___SButton_awes2_gg_._size_m_awes2_gg_{height:var(--intergalactic-form-control-m, 28px);border-radius:var(--intergalactic-control-rounded, 6px);font-size:var(--intergalactic-fs-200, 14px)}.___SButton_awes2_gg_._size_l_awes2_gg_{height:var(--intergalactic-form-control-l, 40px);border-radius:var(--intergalactic-control-rounded, 6px);font-size:var(--intergalactic-fs-300, 16px)}.___SButton_awes2_gg_._theme_primary-info_awes2_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-info, #008ff8)}@media (hover:hover){.___SButton_awes2_gg_._theme_primary-info_awes2_gg_:hover{background-color:var(--intergalactic-control-primary-info-hover, #006dca)}}.___SButton_awes2_gg_._theme_primary-info_awes2_gg_.__active_awes2_gg_,.___SButton_awes2_gg_._theme_primary-info_awes2_gg_:active{background-color:var(--intergalactic-control-primary-info-active, #044792)}.___SButton_awes2_gg_._theme_primary-success_awes2_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-success, #009f81)}@media (hover:hover){.___SButton_awes2_gg_._theme_primary-success_awes2_gg_:hover{background-color:var(--intergalactic-control-primary-success-hover, #007c65)}}.___SButton_awes2_gg_._theme_primary-success_awes2_gg_.__active_awes2_gg_,.___SButton_awes2_gg_._theme_primary-success_awes2_gg_:active{background-color:var(--intergalactic-control-primary-success-active, #055345)}.___SButton_awes2_gg_._theme_primary-warning_awes2_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-icon-primary-warning, #ff642d)}@media (hover:hover){.___SButton_awes2_gg_._theme_primary-warning_awes2_gg_:hover{background-color:var(--intergalactic-icon-primary-warning-hover-active, #CC5024)}}.___SButton_awes2_gg_._theme_primary-warning_awes2_gg_.__active_awes2_gg_,.___SButton_awes2_gg_._theme_primary-warning_awes2_gg_:active{background-color:var(--intergalactic-icon-primary-warning-hover-active, #CC5024)}.___SButton_awes2_gg_._theme_primary-danger_awes2_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-critical, #ff4953)}@media (hover:hover){.___SButton_awes2_gg_._theme_primary-danger_awes2_gg_:hover{background-color:var(--intergalactic-control-primary-critical-hover, #d1002f)}}.___SButton_awes2_gg_._theme_primary-danger_awes2_gg_.__active_awes2_gg_,.___SButton_awes2_gg_._theme_primary-danger_awes2_gg_:active{background-color:var(--intergalactic-control-primary-critical-active, #8e0016)}.___SButton_awes2_gg_._theme_primary-invert_awes2_gg_{color:var(--intergalactic-text-primary, #191b23);background-color:var(--intergalactic-control-primary-invert, #ffffff)}@media (hover:hover){.___SButton_awes2_gg_._theme_primary-invert_awes2_gg_:hover{background-color:var(--intergalactic-control-primary-invert-hover, #f4f5f9)}}.___SButton_awes2_gg_._theme_primary-invert_awes2_gg_.__active_awes2_gg_,.___SButton_awes2_gg_._theme_primary-invert_awes2_gg_:active{background-color:var(--intergalactic-control-primary-invert-active, #e0e1e9)}.___SButton_awes2_gg_._theme_secondary-muted_awes2_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_awes2_gg_._theme_secondary-muted_awes2_gg_:hover{background-color:var(--intergalactic-control-secondary-neutral-hover,\n rgba(138, 142, 155, 0.2));color:var(--intergalactic-text-primary, #191b23)}}.___SButton_awes2_gg_._theme_secondary-muted_awes2_gg_.__active_awes2_gg_,.___SButton_awes2_gg_._theme_secondary-muted_awes2_gg_:active{background-color:var(--intergalactic-control-secondary-neutral-active,\n rgba(138, 142, 155, 0.3));color:var(--intergalactic-text-primary, #191b23)}.___SButton_awes2_gg_._theme_secondary-info_awes2_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_awes2_gg_._theme_secondary-info_awes2_gg_:hover{background-color:var(--intergalactic-control-secondary-info-hover, rgba(0, 143, 248, 0.2))}}.___SButton_awes2_gg_._theme_secondary-info_awes2_gg_.__active_awes2_gg_,.___SButton_awes2_gg_._theme_secondary-info_awes2_gg_:active{background-color:var(--intergalactic-control-secondary-info-active, rgba(0, 143, 248, 0.3))}.___SButton_awes2_gg_._theme_secondary-invert_awes2_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_awes2_gg_._theme_secondary-invert_awes2_gg_:hover{background-color:var(--intergalactic-control-secondary-invert-hover, rgba(255, 255, 255, 0.1))}}.___SButton_awes2_gg_._theme_secondary-invert_awes2_gg_.__active_awes2_gg_,.___SButton_awes2_gg_._theme_secondary-invert_awes2_gg_:active{background-color:var(--intergalactic-control-secondary-invert-active,\n rgba(255, 255, 255, 0.3))}.___SButton_awes2_gg_._theme_tertiary-info_awes2_gg_{color:var(--intergalactic-text-link, #006dca);background-color:var(--intergalactic-control-tertiary-info, rgba(0, 143, 248, 0))}@media (hover:hover){.___SButton_awes2_gg_._theme_tertiary-info_awes2_gg_:hover{background-color:var(--intergalactic-control-tertiary-info-hover, rgba(0, 143, 248, 0.2))}}.___SButton_awes2_gg_._theme_tertiary-info_awes2_gg_.__active_awes2_gg_,.___SButton_awes2_gg_._theme_tertiary-info_awes2_gg_:active{background-color:var(--intergalactic-control-tertiary-info-active, rgba(0, 143, 248, 0.3))}.___SButton_awes2_gg_._theme_tertiary-muted_awes2_gg_{color:var(--intergalactic-text-secondary, #6c6e79);background-color:var(--intergalactic-control-tertiary-neutral, rgba(138, 142, 155, 0))}@media (hover:hover){.___SButton_awes2_gg_._theme_tertiary-muted_awes2_gg_:hover{background-color:var(--intergalactic-control-tertiary-neutral-hover, rgba(138, 142, 155, 0.2));color:var(--intergalactic-text-primary, #191b23)}}.___SButton_awes2_gg_._theme_tertiary-muted_awes2_gg_.__active_awes2_gg_,.___SButton_awes2_gg_._theme_tertiary-muted_awes2_gg_:active{background-color:var(--intergalactic-control-tertiary-neutral-active,\n rgba(138, 142, 155, 0.3));color:var(--intergalactic-text-primary, #191b23)}.___SButton_awes2_gg_._theme_tertiary-invert_awes2_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-tertiary-invert, rgba(255, 255, 255, 0))}@media (hover:hover){.___SButton_awes2_gg_._theme_tertiary-invert_awes2_gg_:hover{background-color:var(--intergalactic-control-tertiary-invert-hover, rgba(255, 255, 255, 0.1))}}.___SButton_awes2_gg_._theme_tertiary-invert_awes2_gg_.__active_awes2_gg_,.___SButton_awes2_gg_._theme_tertiary-invert_awes2_gg_:active{background-color:var(--intergalactic-control-tertiary-invert-active, rgba(255, 255, 255, 0.3))}.___SButton_awes2_gg_._neighborLocation_right_awes2_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SButton_awes2_gg_._neighborLocation_both_awes2_gg_{border-radius:0;margin-left:-1px}.___SButton_awes2_gg_._neighborLocation_left_awes2_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.___SButton_awes2_gg_._neighborLocation_both_awes2_gg_,.___SButton_awes2_gg_._neighborLocation_left_awes2_gg_{position:relative}.___SButton_awes2_gg_._neighborLocation_both_awes2_gg_:after,.___SButton_awes2_gg_._neighborLocation_left_awes2_gg_:after{background-color:var(--intergalactic-text-primary-invert, #ffffff)}.___SButton_awes2_gg_._neighborLocation_both_awes2_gg_._theme_secondary-muted_awes2_gg_:after,.___SButton_awes2_gg_._neighborLocation_left_awes2_gg_._theme_secondary-muted_awes2_gg_:after{background-color:var(--intergalactic-border-primary, #c4c7cf)}.___SButton_awes2_gg_+.___SButton_awes2_gg_._neighborLocation_both_awes2_gg_:after,.___SButton_awes2_gg_+.___SButton_awes2_gg_._neighborLocation_left_awes2_gg_:after{content:\"\";position:absolute;top:-1px;left:-1px;width:1px;height:calc(100% + 2px)}.___SSpin_awes2_gg_{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}.___SInner_awes2_gg_{display:inline-flex;align-items:center;justify-content:center;height:100%;width:100%}.___SInner_awes2_gg_.__loading_awes2_gg_{visibility:hidden}.___SText_awes2_gg_{display:inline-flex}.___SText_awes2_gg_._size_l_awes2_gg_,.___SText_awes2_gg_._size_m_awes2_gg_{margin-left:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-2x, 8px)}.___SText_awes2_gg_._size_m_awes2_gg_{line-height:var(--intergalactic-lh-200, 142%)}.___SText_awes2_gg_._size_l_awes2_gg_{line-height:var(--intergalactic-lh-300, 150%)}.___SText_awes2_gg_._size_l_awes2_gg_:only-child{margin-left:var(--intergalactic-spacing-3x, 12px);margin-right:var(--intergalactic-spacing-3x, 12px)}.___SText_awes2_gg_._size_l_awes2_gg_:first-child{margin-left:var(--intergalactic-spacing-3x, 12px)}.___SText_awes2_gg_._size_l_awes2_gg_:last-child{margin-right:var(--intergalactic-spacing-3x, 12px)}.___SAddon_awes2_gg_{display:inline-flex;align-items:center;justify-content:center}.___SAddon_awes2_gg_._size_m_awes2_gg_:not(:only-child):first-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SAddon_awes2_gg_._size_m_awes2_gg_:not(:only-child):last-child{margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SAddon_awes2_gg_._size_m_awes2_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_awes2_gg_._size_l_awes2_gg_:not(:only-child):first-child{margin-left:calc(var(--intergalactic-spacing-3x, 12px) - 1px)}.___SAddon_awes2_gg_._size_l_awes2_gg_:not(:only-child):last-child{margin-right:calc(var(--intergalactic-spacing-3x, 12px) - 1px)}.___SAddon_awes2_gg_._size_l_awes2_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__*/, "awes2_gg_") /*__reshadow_css_end__*/, {
|
|
23
|
-
"__SButton": "
|
|
24
|
-
"_keyboardFocused": "
|
|
25
|
-
"_disabled": "
|
|
26
|
-
"_size_m": "
|
|
27
|
-
"_size_l": "
|
|
28
|
-
"_neighborLocation_right": "
|
|
29
|
-
"_neighborLocation_both": "
|
|
30
|
-
"_neighborLocation_left": "
|
|
31
|
-
"__SSpin": "
|
|
32
|
-
"__SInner": "
|
|
33
|
-
"_loading": "
|
|
34
|
-
"__SText": "
|
|
35
|
-
"__SAddon": "
|
|
36
|
-
"_theme_primary-info": "_theme_primary-
|
|
37
|
-
"_active": "
|
|
38
|
-
"_theme_primary-success": "_theme_primary-
|
|
39
|
-
"_theme_primary-warning": "_theme_primary-
|
|
40
|
-
"_theme_primary-danger": "_theme_primary-
|
|
41
|
-
"_theme_primary-invert": "_theme_primary-
|
|
42
|
-
"_theme_secondary-muted": "_theme_secondary-
|
|
43
|
-
"_theme_secondary-info": "_theme_secondary-
|
|
44
|
-
"_theme_secondary-invert": "_theme_secondary-
|
|
45
|
-
"_theme_tertiary-info": "_theme_tertiary-
|
|
46
|
-
"_theme_tertiary-muted": "_theme_tertiary-
|
|
47
|
-
"_theme_tertiary-invert": "_theme_tertiary-
|
|
22
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SButton_1gsmt_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_1gsmt_gg_::-moz-focus-inner{padding:0;border:0}.___SButton_1gsmt_gg_:active,.___SButton_1gsmt_gg_:focus{outline:0;-webkit-text-decoration:none;text-decoration:none}@media (hover:hover){.___SButton_1gsmt_gg_:hover{outline:0;-webkit-text-decoration:none;text-decoration:none}}.___SButton_1gsmt_gg_.__keyboardFocused_1gsmt_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));z-index:1}.___SButton_1gsmt_gg_.__disabled_1gsmt_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none;box-shadow:none;z-index:0}.___SButton_1gsmt_gg_._size_m_1gsmt_gg_{height:var(--intergalactic-form-control-m, 28px);border-radius:var(--intergalactic-control-rounded, 6px);font-size:var(--intergalactic-fs-200, 14px)}.___SButton_1gsmt_gg_._size_l_1gsmt_gg_{height:var(--intergalactic-form-control-l, 40px);border-radius:var(--intergalactic-control-rounded, 6px);font-size:var(--intergalactic-fs-300, 16px)}.___SButton_1gsmt_gg_._theme_primary-info_1gsmt_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-info, #008ff8)}@media (hover:hover){.___SButton_1gsmt_gg_._theme_primary-info_1gsmt_gg_:hover{background-color:var(--intergalactic-control-primary-info-hover, #006dca)}}.___SButton_1gsmt_gg_._theme_primary-info_1gsmt_gg_.__active_1gsmt_gg_,.___SButton_1gsmt_gg_._theme_primary-info_1gsmt_gg_:active{background-color:var(--intergalactic-control-primary-info-active, #044792)}.___SButton_1gsmt_gg_._theme_primary-success_1gsmt_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-success, #009f81)}@media (hover:hover){.___SButton_1gsmt_gg_._theme_primary-success_1gsmt_gg_:hover{background-color:var(--intergalactic-control-primary-success-hover, #007c65)}}.___SButton_1gsmt_gg_._theme_primary-success_1gsmt_gg_.__active_1gsmt_gg_,.___SButton_1gsmt_gg_._theme_primary-success_1gsmt_gg_:active{background-color:var(--intergalactic-control-primary-success-active, #055345)}.___SButton_1gsmt_gg_._theme_primary-warning_1gsmt_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-icon-primary-warning, #ff642d)}@media (hover:hover){.___SButton_1gsmt_gg_._theme_primary-warning_1gsmt_gg_:hover{background-color:var(--intergalactic-icon-primary-warning-hover-active, #CC5024)}}.___SButton_1gsmt_gg_._theme_primary-warning_1gsmt_gg_.__active_1gsmt_gg_,.___SButton_1gsmt_gg_._theme_primary-warning_1gsmt_gg_:active{background-color:var(--intergalactic-icon-primary-warning-hover-active, #CC5024)}.___SButton_1gsmt_gg_._theme_primary-danger_1gsmt_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-primary-critical, #ff4953)}@media (hover:hover){.___SButton_1gsmt_gg_._theme_primary-danger_1gsmt_gg_:hover{background-color:var(--intergalactic-control-primary-critical-hover, #d1002f)}}.___SButton_1gsmt_gg_._theme_primary-danger_1gsmt_gg_.__active_1gsmt_gg_,.___SButton_1gsmt_gg_._theme_primary-danger_1gsmt_gg_:active{background-color:var(--intergalactic-control-primary-critical-active, #8e0016)}.___SButton_1gsmt_gg_._theme_primary-invert_1gsmt_gg_{color:var(--intergalactic-text-primary, #191b23);background-color:var(--intergalactic-control-primary-invert, #ffffff)}@media (hover:hover){.___SButton_1gsmt_gg_._theme_primary-invert_1gsmt_gg_:hover{background-color:var(--intergalactic-control-primary-invert-hover, #f4f5f9)}}.___SButton_1gsmt_gg_._theme_primary-invert_1gsmt_gg_.__active_1gsmt_gg_,.___SButton_1gsmt_gg_._theme_primary-invert_1gsmt_gg_:active{background-color:var(--intergalactic-control-primary-invert-active, #e0e1e9)}.___SButton_1gsmt_gg_._theme_secondary-muted_1gsmt_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_1gsmt_gg_._theme_secondary-muted_1gsmt_gg_:hover{background-color:var(--intergalactic-control-secondary-neutral-hover,\n rgba(138, 142, 155, 0.2));color:var(--intergalactic-text-primary, #191b23)}}.___SButton_1gsmt_gg_._theme_secondary-muted_1gsmt_gg_.__active_1gsmt_gg_,.___SButton_1gsmt_gg_._theme_secondary-muted_1gsmt_gg_:active{background-color:var(--intergalactic-control-secondary-neutral-active,\n rgba(138, 142, 155, 0.3));color:var(--intergalactic-text-primary, #191b23)}.___SButton_1gsmt_gg_._theme_secondary-info_1gsmt_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_1gsmt_gg_._theme_secondary-info_1gsmt_gg_:hover{background-color:var(--intergalactic-control-secondary-info-hover, rgba(0, 143, 248, 0.2))}}.___SButton_1gsmt_gg_._theme_secondary-info_1gsmt_gg_.__active_1gsmt_gg_,.___SButton_1gsmt_gg_._theme_secondary-info_1gsmt_gg_:active{background-color:var(--intergalactic-control-secondary-info-active, rgba(0, 143, 248, 0.3))}.___SButton_1gsmt_gg_._theme_secondary-invert_1gsmt_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_1gsmt_gg_._theme_secondary-invert_1gsmt_gg_:hover{background-color:var(--intergalactic-control-secondary-invert-hover, rgba(255, 255, 255, 0.1))}}.___SButton_1gsmt_gg_._theme_secondary-invert_1gsmt_gg_.__active_1gsmt_gg_,.___SButton_1gsmt_gg_._theme_secondary-invert_1gsmt_gg_:active{background-color:var(--intergalactic-control-secondary-invert-active,\n rgba(255, 255, 255, 0.3))}.___SButton_1gsmt_gg_._theme_tertiary-info_1gsmt_gg_{color:var(--intergalactic-text-link, #006dca);background-color:var(--intergalactic-control-tertiary-info, rgba(0, 143, 248, 0))}@media (hover:hover){.___SButton_1gsmt_gg_._theme_tertiary-info_1gsmt_gg_:hover{background-color:var(--intergalactic-control-tertiary-info-hover, rgba(0, 143, 248, 0.2))}}.___SButton_1gsmt_gg_._theme_tertiary-info_1gsmt_gg_.__active_1gsmt_gg_,.___SButton_1gsmt_gg_._theme_tertiary-info_1gsmt_gg_:active{background-color:var(--intergalactic-control-tertiary-info-active, rgba(0, 143, 248, 0.3))}.___SButton_1gsmt_gg_._theme_tertiary-muted_1gsmt_gg_{color:var(--intergalactic-text-secondary, #6c6e79);background-color:var(--intergalactic-control-tertiary-neutral, rgba(138, 142, 155, 0))}@media (hover:hover){.___SButton_1gsmt_gg_._theme_tertiary-muted_1gsmt_gg_:hover{background-color:var(--intergalactic-control-tertiary-neutral-hover, rgba(138, 142, 155, 0.2));color:var(--intergalactic-text-primary, #191b23)}}.___SButton_1gsmt_gg_._theme_tertiary-muted_1gsmt_gg_.__active_1gsmt_gg_,.___SButton_1gsmt_gg_._theme_tertiary-muted_1gsmt_gg_:active{background-color:var(--intergalactic-control-tertiary-neutral-active,\n rgba(138, 142, 155, 0.3));color:var(--intergalactic-text-primary, #191b23)}.___SButton_1gsmt_gg_._theme_tertiary-invert_1gsmt_gg_{color:var(--intergalactic-text-primary-invert, #ffffff);background-color:var(--intergalactic-control-tertiary-invert, rgba(255, 255, 255, 0))}@media (hover:hover){.___SButton_1gsmt_gg_._theme_tertiary-invert_1gsmt_gg_:hover{background-color:var(--intergalactic-control-tertiary-invert-hover, rgba(255, 255, 255, 0.1))}}.___SButton_1gsmt_gg_._theme_tertiary-invert_1gsmt_gg_.__active_1gsmt_gg_,.___SButton_1gsmt_gg_._theme_tertiary-invert_1gsmt_gg_:active{background-color:var(--intergalactic-control-tertiary-invert-active, rgba(255, 255, 255, 0.3))}.___SButton_1gsmt_gg_._neighborLocation_right_1gsmt_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SButton_1gsmt_gg_._neighborLocation_both_1gsmt_gg_{border-radius:0;margin-left:-1px}.___SButton_1gsmt_gg_._neighborLocation_left_1gsmt_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.___SButton_1gsmt_gg_._neighborLocation_both_1gsmt_gg_,.___SButton_1gsmt_gg_._neighborLocation_left_1gsmt_gg_{position:relative}.___SButton_1gsmt_gg_._neighborLocation_both_1gsmt_gg_:after,.___SButton_1gsmt_gg_._neighborLocation_left_1gsmt_gg_:after{background-color:var(--intergalactic-text-primary-invert, #ffffff)}.___SButton_1gsmt_gg_._neighborLocation_both_1gsmt_gg_._theme_secondary-muted_1gsmt_gg_:after,.___SButton_1gsmt_gg_._neighborLocation_left_1gsmt_gg_._theme_secondary-muted_1gsmt_gg_:after{background-color:var(--intergalactic-border-primary, #c4c7cf)}.___SButton_1gsmt_gg_+.___SButton_1gsmt_gg_._neighborLocation_both_1gsmt_gg_:after,.___SButton_1gsmt_gg_+.___SButton_1gsmt_gg_._neighborLocation_left_1gsmt_gg_:after{content:\"\";position:absolute;top:-1px;left:-1px;width:1px;height:calc(100% + 2px)}.___SSpin_1gsmt_gg_{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}.___SInner_1gsmt_gg_{display:inline-flex;align-items:center;justify-content:center;height:100%;width:100%}.___SInner_1gsmt_gg_.__loading_1gsmt_gg_{visibility:hidden}.___SText_1gsmt_gg_{display:inline-flex}.___SText_1gsmt_gg_._size_l_1gsmt_gg_,.___SText_1gsmt_gg_._size_m_1gsmt_gg_{margin-left:var(--intergalactic-spacing-2x, 8px);margin-right:var(--intergalactic-spacing-2x, 8px)}.___SText_1gsmt_gg_._size_m_1gsmt_gg_{line-height:var(--intergalactic-lh-200, 142%)}.___SText_1gsmt_gg_._size_l_1gsmt_gg_{line-height:var(--intergalactic-lh-300, 150%)}.___SText_1gsmt_gg_._size_l_1gsmt_gg_:only-child{margin-left:var(--intergalactic-spacing-3x, 12px);margin-right:var(--intergalactic-spacing-3x, 12px)}.___SText_1gsmt_gg_._size_l_1gsmt_gg_:first-child{margin-left:var(--intergalactic-spacing-3x, 12px)}.___SText_1gsmt_gg_._size_l_1gsmt_gg_:last-child{margin-right:var(--intergalactic-spacing-3x, 12px)}.___SAddon_1gsmt_gg_{display:inline-flex;align-items:center;justify-content:center}.___SAddon_1gsmt_gg_._size_m_1gsmt_gg_:not(:only-child):first-child{margin-left:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SAddon_1gsmt_gg_._size_m_1gsmt_gg_:not(:only-child):last-child{margin-right:calc(var(--intergalactic-spacing-2x, 8px) - 1px)}.___SAddon_1gsmt_gg_._size_m_1gsmt_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_1gsmt_gg_._size_l_1gsmt_gg_:not(:only-child):first-child{margin-left:calc(var(--intergalactic-spacing-3x, 12px) - 1px)}.___SAddon_1gsmt_gg_._size_l_1gsmt_gg_:not(:only-child):last-child{margin-right:calc(var(--intergalactic-spacing-3x, 12px) - 1px)}.___SAddon_1gsmt_gg_._size_l_1gsmt_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__*/, "1gsmt_gg_") /*__reshadow_css_end__*/, {
|
|
23
|
+
"__SButton": "___SButton_1gsmt_gg_",
|
|
24
|
+
"_keyboardFocused": "__keyboardFocused_1gsmt_gg_",
|
|
25
|
+
"_disabled": "__disabled_1gsmt_gg_",
|
|
26
|
+
"_size_m": "_size_m_1gsmt_gg_",
|
|
27
|
+
"_size_l": "_size_l_1gsmt_gg_",
|
|
28
|
+
"_neighborLocation_right": "_neighborLocation_right_1gsmt_gg_",
|
|
29
|
+
"_neighborLocation_both": "_neighborLocation_both_1gsmt_gg_",
|
|
30
|
+
"_neighborLocation_left": "_neighborLocation_left_1gsmt_gg_",
|
|
31
|
+
"__SSpin": "___SSpin_1gsmt_gg_",
|
|
32
|
+
"__SInner": "___SInner_1gsmt_gg_",
|
|
33
|
+
"_loading": "__loading_1gsmt_gg_",
|
|
34
|
+
"__SText": "___SText_1gsmt_gg_",
|
|
35
|
+
"__SAddon": "___SAddon_1gsmt_gg_",
|
|
36
|
+
"_theme_primary-info": "_theme_primary-info_1gsmt_gg_",
|
|
37
|
+
"_active": "__active_1gsmt_gg_",
|
|
38
|
+
"_theme_primary-success": "_theme_primary-success_1gsmt_gg_",
|
|
39
|
+
"_theme_primary-warning": "_theme_primary-warning_1gsmt_gg_",
|
|
40
|
+
"_theme_primary-danger": "_theme_primary-danger_1gsmt_gg_",
|
|
41
|
+
"_theme_primary-invert": "_theme_primary-invert_1gsmt_gg_",
|
|
42
|
+
"_theme_secondary-muted": "_theme_secondary-muted_1gsmt_gg_",
|
|
43
|
+
"_theme_secondary-info": "_theme_secondary-info_1gsmt_gg_",
|
|
44
|
+
"_theme_secondary-invert": "_theme_secondary-invert_1gsmt_gg_",
|
|
45
|
+
"_theme_tertiary-info": "_theme_tertiary-info_1gsmt_gg_",
|
|
46
|
+
"_theme_tertiary-muted": "_theme_tertiary-muted_1gsmt_gg_",
|
|
47
|
+
"_theme_tertiary-invert": "_theme_tertiary-invert_1gsmt_gg_"
|
|
48
48
|
});
|
|
49
49
|
import hasLabels from '@semcore/utils/lib/hasLabels';
|
|
50
50
|
export var MAP_USE_DEFAULT_THEME = {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/button",
|
|
3
3
|
"description": "Semrush Button Component",
|
|
4
|
-
"version": "5.31.0",
|
|
4
|
+
"version": "5.31.1-prerelease.0",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@semcore/flex-box": "5.29.0",
|
|
13
13
|
"@semcore/neighbor-location": "4.27.0",
|
|
14
|
-
"@semcore/spin": "5.
|
|
15
|
-
"@semcore/tooltip": "6.36.0",
|
|
14
|
+
"@semcore/spin": "5.29.0-prerelease.0",
|
|
15
|
+
"@semcore/tooltip": "6.36.1-prerelease.0",
|
|
16
16
|
"@semcore/utils": "4.30.0"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|