@semcore/button
Advanced tools
Comparing version 4.0.14 to 4.0.15
@@ -5,2 +5,8 @@ # Changelog | ||
## [4.0.15] - 2022-08-29 | ||
### Fixed | ||
- Fixed aria warning detection. | ||
## [4.0.14] - 2022-08-24 | ||
@@ -82,3 +88,4 @@ | ||
- Version patch update due to children dependencies update (`@semcore/utils` [3.32.0 ~> 3.32.1], `@semcore/flex-box` [4.5.1 ~> 4.5.3]). | ||
- Version patch update due to children dependencies update (`@semcore/utils` [3.32.0 ~> 3.32.1] | ||
, `@semcore/flex-box` [4.5.1 ~> 4.5.3]). | ||
@@ -85,0 +92,0 @@ ## [4.0.1] - 2022-05-19 |
@@ -40,2 +40,4 @@ "use strict"; | ||
var _getOriginChildren = _interopRequireDefault(require("@semcore/utils/lib/getOriginChildren")); | ||
var _SpinButton = _interopRequireDefault(require("./SpinButton")); | ||
@@ -60,32 +62,32 @@ | ||
/*__inner_css_start__*/ | ||
".___SButton_e4mjv_gg_{position:relative;display:inline-block;align-items:center;justify-content:center;padding:0;margin:0;white-space:nowrap;font-family:Inter,sans-serif;line-height:normal;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;-ms-user-select:none;user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;font-weight:500;color:#6c6e79}.___SButton_e4mjv_gg_::-moz-focus-inner{padding:0;border:none}.___SButton_e4mjv_gg_:active,.___SButton_e4mjv_gg_:focus,.___SButton_e4mjv_gg_:hover{outline:0;text-decoration:none}.___SButton_e4mjv_gg_.__disabled_e4mjv_gg_{opacity:0.3;cursor:default;pointer-events:none}.___SButton_e4mjv_gg_.__keyboardFocused_e4mjv_gg_{box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2);z-index:1}.___SButton_e4mjv_gg_._size_m_e4mjv_gg_{height:28px;min-width:28px;border-radius:6px;font-size:14px}.___SButton_e4mjv_gg_._size_l_e4mjv_gg_{height:40px;min-width:40px;border-radius:6px;font-size:16px}.___SButton_e4mjv_gg_._theme_primary-info_e4mjv_gg_{color:#ffffff;background-color:#008ff8}.___SButton_e4mjv_gg_._theme_primary-info_e4mjv_gg_:hover{background-color:#006dca}.___SButton_e4mjv_gg_._theme_primary-info_e4mjv_gg_:active,.___SButton_e4mjv_gg_._theme_primary-info_e4mjv_gg_.__active_e4mjv_gg_{background-color:#044792}.___SButton_e4mjv_gg_._theme_primary-success_e4mjv_gg_{color:#ffffff;background-color:#009f81}.___SButton_e4mjv_gg_._theme_primary-success_e4mjv_gg_:hover{background-color:#007c65}.___SButton_e4mjv_gg_._theme_primary-success_e4mjv_gg_:active,.___SButton_e4mjv_gg_._theme_primary-success_e4mjv_gg_.__active_e4mjv_gg_{background-color:#055345}.___SButton_e4mjv_gg_._theme_primary-warning_e4mjv_gg_{background-color:#ff642d;color:#ffffff}.___SButton_e4mjv_gg_._theme_primary-warning_e4mjv_gg_:hover{background-color:#c33909}.___SButton_e4mjv_gg_._theme_primary-warning_e4mjv_gg_:active,.___SButton_e4mjv_gg_._theme_primary-warning_e4mjv_gg_.__active_e4mjv_gg_{background-color:#8b1500}.___SButton_e4mjv_gg_._theme_primary-danger_e4mjv_gg_{background-color:#ff4953;color:#ffffff}.___SButton_e4mjv_gg_._theme_primary-danger_e4mjv_gg_:hover{background-color:#d1002f}.___SButton_e4mjv_gg_._theme_primary-danger_e4mjv_gg_:active,.___SButton_e4mjv_gg_._theme_primary-danger_e4mjv_gg_.__active_e4mjv_gg_{background-color:#8e0016}.___SButton_e4mjv_gg_._theme_primary-invert_e4mjv_gg_{background-color:#fff;color:#191b23}.___SButton_e4mjv_gg_._theme_primary-invert_e4mjv_gg_:hover{background-color:#f4f5f9}.___SButton_e4mjv_gg_._theme_primary-invert_e4mjv_gg_:active,.___SButton_e4mjv_gg_._theme_primary-invert_e4mjv_gg_.__active_e4mjv_gg_{background-color:#e0e1e9}.___SButton_e4mjv_gg_._theme_secondary-muted_e4mjv_gg_{color:#6c6e79;border-color:#c4c7cf;background-color:rgba(138,142,155,.1)}.___SButton_e4mjv_gg_._theme_secondary-muted_e4mjv_gg_:hover{background-color:rgba(138,142,155,.2);color:#191b23}.___SButton_e4mjv_gg_._theme_secondary-muted_e4mjv_gg_:active,.___SButton_e4mjv_gg_._theme_secondary-muted_e4mjv_gg_.__active_e4mjv_gg_{background-color:rgba(138,142,155,.3);color:#191b23}.___SButton_e4mjv_gg_._theme_secondary-info_e4mjv_gg_{background-color:rgba(0,143,248,.05);color:#008ff8;border-color:#008ff8}.___SButton_e4mjv_gg_._theme_secondary-info_e4mjv_gg_:hover{background-color:rgba(0,109,202,.2)}.___SButton_e4mjv_gg_._theme_secondary-info_e4mjv_gg_:active,.___SButton_e4mjv_gg_._theme_secondary-info_e4mjv_gg_.__active_e4mjv_gg_{background-color:rgba(0,109,202,.3)}.___SButton_e4mjv_gg_._theme_secondary-invert_e4mjv_gg_{background-color:hsla(0,0%,100%,.05);color:#fff;border-color:#fff}.___SButton_e4mjv_gg_._theme_secondary-invert_e4mjv_gg_:hover{background-color:hsla(0,0%,100%,.1)}.___SButton_e4mjv_gg_._theme_secondary-invert_e4mjv_gg_:active,.___SButton_e4mjv_gg_._theme_secondary-invert_e4mjv_gg_.__active_e4mjv_gg_{background-color:hsla(0,0%,100%,.3)}.___SButton_e4mjv_gg_._theme_tertiary-info_e4mjv_gg_{color:#006dca;background-color:transparent}.___SButton_e4mjv_gg_._theme_tertiary-info_e4mjv_gg_:hover{background-color:rgba(0,143,248,.2)}.___SButton_e4mjv_gg_._theme_tertiary-info_e4mjv_gg_:active,.___SButton_e4mjv_gg_._theme_tertiary-info_e4mjv_gg_.__active_e4mjv_gg_{background-color:rgba(0,143,248,.3)}.___SButton_e4mjv_gg_._theme_tertiary-muted_e4mjv_gg_{color:#6c6e79;background-color:transparent}.___SButton_e4mjv_gg_._theme_tertiary-muted_e4mjv_gg_:hover{background-color:rgba(138,142,155,.2);color:#191b23}.___SButton_e4mjv_gg_._theme_tertiary-muted_e4mjv_gg_:active,.___SButton_e4mjv_gg_._theme_tertiary-muted_e4mjv_gg_.__active_e4mjv_gg_{background-color:rgba(138,142,155,.3);color:#191b23}.___SButton_e4mjv_gg_._theme_tertiary-invert_e4mjv_gg_{color:#fff;background-color:transparent}.___SButton_e4mjv_gg_._theme_tertiary-invert_e4mjv_gg_:hover{background-color:hsla(0,0%,100%,.1)}.___SButton_e4mjv_gg_._theme_tertiary-invert_e4mjv_gg_:active,.___SButton_e4mjv_gg_._theme_tertiary-invert_e4mjv_gg_.__active_e4mjv_gg_{background-color:hsla(0,0%,100%,.3)}.___SButton_e4mjv_gg_._neighborLocation_right_e4mjv_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SButton_e4mjv_gg_._neighborLocation_both_e4mjv_gg_{border-radius:0;margin-left:-1px}.___SButton_e4mjv_gg_._neighborLocation_both_e4mjv_gg_._theme_primary-danger_e4mjv_gg_,.___SButton_e4mjv_gg_._neighborLocation_both_e4mjv_gg_._theme_primary-info_e4mjv_gg_,.___SButton_e4mjv_gg_._neighborLocation_both_e4mjv_gg_._theme_primary-success_e4mjv_gg_,.___SButton_e4mjv_gg_._neighborLocation_both_e4mjv_gg_._theme_primary-warning_e4mjv_gg_{border-left-color:hsla(0,0%,100%,.5)}.___SButton_e4mjv_gg_._neighborLocation_both_e4mjv_gg_._theme_primary-invert_e4mjv_gg_{border-left-color:rgba(0,0,0,.5)}.___SButton_e4mjv_gg_._neighborLocation_left_e4mjv_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.___SButton_e4mjv_gg_._neighborLocation_left_e4mjv_gg_._theme_primary-danger_e4mjv_gg_,.___SButton_e4mjv_gg_._neighborLocation_left_e4mjv_gg_._theme_primary-info_e4mjv_gg_,.___SButton_e4mjv_gg_._neighborLocation_left_e4mjv_gg_._theme_primary-success_e4mjv_gg_,.___SButton_e4mjv_gg_._neighborLocation_left_e4mjv_gg_._theme_primary-warning_e4mjv_gg_{border-left-color:hsla(0,0%,100%,.5)}.___SButton_e4mjv_gg_._neighborLocation_left_e4mjv_gg_._theme_primary-invert_e4mjv_gg_{border-left-color:rgba(0,0,0,.5)}.___SSpin_e4mjv_gg_{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}.___SInner_e4mjv_gg_{display:inline-flex;align-items:center;justify-content:center;height:100%;width:100%}.___SInner_e4mjv_gg_.__loading_e4mjv_gg_{visibility:hidden}.___SText_e4mjv_gg_{display:inline-flex}.___SText_e4mjv_gg_._size_m_e4mjv_gg_{margin-left:8px;margin-right:8px;line-height:1.42}.___SText_e4mjv_gg_._size_l_e4mjv_gg_{margin-left:12px;margin-right:12px;line-height:1.5}.___SAddon_e4mjv_gg_{display:inline-flex;align-items:center;justify-content:center}.___SAddon_e4mjv_gg_._size_m_e4mjv_gg_:not(:only-child):first-child{margin-left:8px}.___SAddon_e4mjv_gg_._size_m_e4mjv_gg_:not(:only-child):last-child{margin-right:8px}.___SAddon_e4mjv_gg_._size_m_e4mjv_gg_:only-child{margin-left:-4px;margin-right:-4px}.___SAddon_e4mjv_gg_._size_l_e4mjv_gg_:not(:only-child):first-child{margin-left:8px}.___SAddon_e4mjv_gg_._size_l_e4mjv_gg_:not(:only-child):last-child{margin-right:8px}.___SAddon_e4mjv_gg_._size_l_e4mjv_gg_:only-child{margin-left:-4px;margin-right:-4px}" | ||
".___SButton_5h4zz_gg_{position:relative;display:inline-block;align-items:center;justify-content:center;padding:0;margin:0;white-space:nowrap;font-family:Inter,sans-serif;line-height:normal;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;-ms-user-select:none;user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;font-weight:500;color:#6c6e79}.___SButton_5h4zz_gg_::-moz-focus-inner{padding:0;border:none}.___SButton_5h4zz_gg_:active,.___SButton_5h4zz_gg_:focus,.___SButton_5h4zz_gg_:hover{outline:0;text-decoration:none}.___SButton_5h4zz_gg_.__disabled_5h4zz_gg_{opacity:0.3;cursor:default;pointer-events:none}.___SButton_5h4zz_gg_.__keyboardFocused_5h4zz_gg_{box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2);z-index:1}.___SButton_5h4zz_gg_._size_m_5h4zz_gg_{height:28px;min-width:28px;border-radius:6px;font-size:14px}.___SButton_5h4zz_gg_._size_l_5h4zz_gg_{height:40px;min-width:40px;border-radius:6px;font-size:16px}.___SButton_5h4zz_gg_._theme_primary-info_5h4zz_gg_{color:#ffffff;background-color:#008ff8}.___SButton_5h4zz_gg_._theme_primary-info_5h4zz_gg_:hover{background-color:#006dca}.___SButton_5h4zz_gg_._theme_primary-info_5h4zz_gg_:active,.___SButton_5h4zz_gg_._theme_primary-info_5h4zz_gg_.__active_5h4zz_gg_{background-color:#044792}.___SButton_5h4zz_gg_._theme_primary-success_5h4zz_gg_{color:#ffffff;background-color:#009f81}.___SButton_5h4zz_gg_._theme_primary-success_5h4zz_gg_:hover{background-color:#007c65}.___SButton_5h4zz_gg_._theme_primary-success_5h4zz_gg_:active,.___SButton_5h4zz_gg_._theme_primary-success_5h4zz_gg_.__active_5h4zz_gg_{background-color:#055345}.___SButton_5h4zz_gg_._theme_primary-warning_5h4zz_gg_{background-color:#ff642d;color:#ffffff}.___SButton_5h4zz_gg_._theme_primary-warning_5h4zz_gg_:hover{background-color:#c33909}.___SButton_5h4zz_gg_._theme_primary-warning_5h4zz_gg_:active,.___SButton_5h4zz_gg_._theme_primary-warning_5h4zz_gg_.__active_5h4zz_gg_{background-color:#8b1500}.___SButton_5h4zz_gg_._theme_primary-danger_5h4zz_gg_{background-color:#ff4953;color:#ffffff}.___SButton_5h4zz_gg_._theme_primary-danger_5h4zz_gg_:hover{background-color:#d1002f}.___SButton_5h4zz_gg_._theme_primary-danger_5h4zz_gg_:active,.___SButton_5h4zz_gg_._theme_primary-danger_5h4zz_gg_.__active_5h4zz_gg_{background-color:#8e0016}.___SButton_5h4zz_gg_._theme_primary-invert_5h4zz_gg_{background-color:#fff;color:#191b23}.___SButton_5h4zz_gg_._theme_primary-invert_5h4zz_gg_:hover{background-color:#f4f5f9}.___SButton_5h4zz_gg_._theme_primary-invert_5h4zz_gg_:active,.___SButton_5h4zz_gg_._theme_primary-invert_5h4zz_gg_.__active_5h4zz_gg_{background-color:#e0e1e9}.___SButton_5h4zz_gg_._theme_secondary-muted_5h4zz_gg_{color:#6c6e79;border-color:#c4c7cf;background-color:rgba(138,142,155,.1)}.___SButton_5h4zz_gg_._theme_secondary-muted_5h4zz_gg_:hover{background-color:rgba(138,142,155,.2);color:#191b23}.___SButton_5h4zz_gg_._theme_secondary-muted_5h4zz_gg_:active,.___SButton_5h4zz_gg_._theme_secondary-muted_5h4zz_gg_.__active_5h4zz_gg_{background-color:rgba(138,142,155,.3);color:#191b23}.___SButton_5h4zz_gg_._theme_secondary-info_5h4zz_gg_{background-color:rgba(0,143,248,.05);color:#008ff8;border-color:#008ff8}.___SButton_5h4zz_gg_._theme_secondary-info_5h4zz_gg_:hover{background-color:rgba(0,109,202,.2)}.___SButton_5h4zz_gg_._theme_secondary-info_5h4zz_gg_:active,.___SButton_5h4zz_gg_._theme_secondary-info_5h4zz_gg_.__active_5h4zz_gg_{background-color:rgba(0,109,202,.3)}.___SButton_5h4zz_gg_._theme_secondary-invert_5h4zz_gg_{background-color:hsla(0,0%,100%,.05);color:#fff;border-color:#fff}.___SButton_5h4zz_gg_._theme_secondary-invert_5h4zz_gg_:hover{background-color:hsla(0,0%,100%,.1)}.___SButton_5h4zz_gg_._theme_secondary-invert_5h4zz_gg_:active,.___SButton_5h4zz_gg_._theme_secondary-invert_5h4zz_gg_.__active_5h4zz_gg_{background-color:hsla(0,0%,100%,.3)}.___SButton_5h4zz_gg_._theme_tertiary-info_5h4zz_gg_{color:#006dca;background-color:transparent}.___SButton_5h4zz_gg_._theme_tertiary-info_5h4zz_gg_:hover{background-color:rgba(0,143,248,.2)}.___SButton_5h4zz_gg_._theme_tertiary-info_5h4zz_gg_:active,.___SButton_5h4zz_gg_._theme_tertiary-info_5h4zz_gg_.__active_5h4zz_gg_{background-color:rgba(0,143,248,.3)}.___SButton_5h4zz_gg_._theme_tertiary-muted_5h4zz_gg_{color:#6c6e79;background-color:transparent}.___SButton_5h4zz_gg_._theme_tertiary-muted_5h4zz_gg_:hover{background-color:rgba(138,142,155,.2);color:#191b23}.___SButton_5h4zz_gg_._theme_tertiary-muted_5h4zz_gg_:active,.___SButton_5h4zz_gg_._theme_tertiary-muted_5h4zz_gg_.__active_5h4zz_gg_{background-color:rgba(138,142,155,.3);color:#191b23}.___SButton_5h4zz_gg_._theme_tertiary-invert_5h4zz_gg_{color:#fff;background-color:transparent}.___SButton_5h4zz_gg_._theme_tertiary-invert_5h4zz_gg_:hover{background-color:hsla(0,0%,100%,.1)}.___SButton_5h4zz_gg_._theme_tertiary-invert_5h4zz_gg_:active,.___SButton_5h4zz_gg_._theme_tertiary-invert_5h4zz_gg_.__active_5h4zz_gg_{background-color:hsla(0,0%,100%,.3)}.___SButton_5h4zz_gg_._neighborLocation_right_5h4zz_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SButton_5h4zz_gg_._neighborLocation_both_5h4zz_gg_{border-radius:0;margin-left:-1px}.___SButton_5h4zz_gg_._neighborLocation_both_5h4zz_gg_._theme_primary-danger_5h4zz_gg_,.___SButton_5h4zz_gg_._neighborLocation_both_5h4zz_gg_._theme_primary-info_5h4zz_gg_,.___SButton_5h4zz_gg_._neighborLocation_both_5h4zz_gg_._theme_primary-success_5h4zz_gg_,.___SButton_5h4zz_gg_._neighborLocation_both_5h4zz_gg_._theme_primary-warning_5h4zz_gg_{border-left-color:hsla(0,0%,100%,.5)}.___SButton_5h4zz_gg_._neighborLocation_both_5h4zz_gg_._theme_primary-invert_5h4zz_gg_{border-left-color:rgba(0,0,0,.5)}.___SButton_5h4zz_gg_._neighborLocation_left_5h4zz_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.___SButton_5h4zz_gg_._neighborLocation_left_5h4zz_gg_._theme_primary-danger_5h4zz_gg_,.___SButton_5h4zz_gg_._neighborLocation_left_5h4zz_gg_._theme_primary-info_5h4zz_gg_,.___SButton_5h4zz_gg_._neighborLocation_left_5h4zz_gg_._theme_primary-success_5h4zz_gg_,.___SButton_5h4zz_gg_._neighborLocation_left_5h4zz_gg_._theme_primary-warning_5h4zz_gg_{border-left-color:hsla(0,0%,100%,.5)}.___SButton_5h4zz_gg_._neighborLocation_left_5h4zz_gg_._theme_primary-invert_5h4zz_gg_{border-left-color:rgba(0,0,0,.5)}.___SSpin_5h4zz_gg_{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}.___SInner_5h4zz_gg_{display:inline-flex;align-items:center;justify-content:center;height:100%;width:100%}.___SInner_5h4zz_gg_.__loading_5h4zz_gg_{visibility:hidden}.___SText_5h4zz_gg_{display:inline-flex}.___SText_5h4zz_gg_._size_m_5h4zz_gg_{margin-left:8px;margin-right:8px;line-height:1.42}.___SText_5h4zz_gg_._size_l_5h4zz_gg_{margin-left:12px;margin-right:12px;line-height:1.5}.___SAddon_5h4zz_gg_{display:inline-flex;align-items:center;justify-content:center}.___SAddon_5h4zz_gg_._size_m_5h4zz_gg_:not(:only-child):first-child{margin-left:8px}.___SAddon_5h4zz_gg_._size_m_5h4zz_gg_:not(:only-child):last-child{margin-right:8px}.___SAddon_5h4zz_gg_._size_m_5h4zz_gg_:only-child{margin-left:-4px;margin-right:-4px}.___SAddon_5h4zz_gg_._size_l_5h4zz_gg_:not(:only-child):first-child{margin-left:8px}.___SAddon_5h4zz_gg_._size_l_5h4zz_gg_:not(:only-child):last-child{margin-right:8px}.___SAddon_5h4zz_gg_._size_l_5h4zz_gg_:only-child{margin-left:-4px;margin-right:-4px}" | ||
/*__inner_css_end__*/ | ||
, "e4mjv_gg_") | ||
, "5h4zz_gg_") | ||
/*__reshadow_css_end__*/ | ||
, { | ||
"__SButton": "___SButton_e4mjv_gg_", | ||
"_disabled": "__disabled_e4mjv_gg_", | ||
"_keyboardFocused": "__keyboardFocused_e4mjv_gg_", | ||
"_size_m": "_size_m_e4mjv_gg_", | ||
"_size_l": "_size_l_e4mjv_gg_", | ||
"_theme_primary-info": "_theme_primary-info_e4mjv_gg_", | ||
"_active": "__active_e4mjv_gg_", | ||
"_theme_primary-success": "_theme_primary-success_e4mjv_gg_", | ||
"_theme_primary-warning": "_theme_primary-warning_e4mjv_gg_", | ||
"_theme_primary-danger": "_theme_primary-danger_e4mjv_gg_", | ||
"_theme_primary-invert": "_theme_primary-invert_e4mjv_gg_", | ||
"_theme_secondary-muted": "_theme_secondary-muted_e4mjv_gg_", | ||
"_theme_secondary-info": "_theme_secondary-info_e4mjv_gg_", | ||
"_theme_secondary-invert": "_theme_secondary-invert_e4mjv_gg_", | ||
"_theme_tertiary-info": "_theme_tertiary-info_e4mjv_gg_", | ||
"_theme_tertiary-muted": "_theme_tertiary-muted_e4mjv_gg_", | ||
"_theme_tertiary-invert": "_theme_tertiary-invert_e4mjv_gg_", | ||
"_neighborLocation_right": "_neighborLocation_right_e4mjv_gg_", | ||
"_neighborLocation_both": "_neighborLocation_both_e4mjv_gg_", | ||
"_neighborLocation_left": "_neighborLocation_left_e4mjv_gg_", | ||
"__SSpin": "___SSpin_e4mjv_gg_", | ||
"__SInner": "___SInner_e4mjv_gg_", | ||
"_loading": "__loading_e4mjv_gg_", | ||
"__SText": "___SText_e4mjv_gg_", | ||
"__SAddon": "___SAddon_e4mjv_gg_" | ||
"__SButton": "___SButton_5h4zz_gg_", | ||
"_disabled": "__disabled_5h4zz_gg_", | ||
"_keyboardFocused": "__keyboardFocused_5h4zz_gg_", | ||
"_size_m": "_size_m_5h4zz_gg_", | ||
"_size_l": "_size_l_5h4zz_gg_", | ||
"_theme_primary-info": "_theme_primary-info_5h4zz_gg_", | ||
"_active": "__active_5h4zz_gg_", | ||
"_theme_primary-success": "_theme_primary-success_5h4zz_gg_", | ||
"_theme_primary-warning": "_theme_primary-warning_5h4zz_gg_", | ||
"_theme_primary-danger": "_theme_primary-danger_5h4zz_gg_", | ||
"_theme_primary-invert": "_theme_primary-invert_5h4zz_gg_", | ||
"_theme_secondary-muted": "_theme_secondary-muted_5h4zz_gg_", | ||
"_theme_secondary-info": "_theme_secondary-info_5h4zz_gg_", | ||
"_theme_secondary-invert": "_theme_secondary-invert_5h4zz_gg_", | ||
"_theme_tertiary-info": "_theme_tertiary-info_5h4zz_gg_", | ||
"_theme_tertiary-muted": "_theme_tertiary-muted_5h4zz_gg_", | ||
"_theme_tertiary-invert": "_theme_tertiary-invert_5h4zz_gg_", | ||
"_neighborLocation_right": "_neighborLocation_right_5h4zz_gg_", | ||
"_neighborLocation_both": "_neighborLocation_both_5h4zz_gg_", | ||
"_neighborLocation_left": "_neighborLocation_left_5h4zz_gg_", | ||
"__SSpin": "___SSpin_5h4zz_gg_", | ||
"__SInner": "___SInner_5h4zz_gg_", | ||
"_loading": "__loading_5h4zz_gg_", | ||
"__SText": "___SText_5h4zz_gg_", | ||
"__SAddon": "___SAddon_5h4zz_gg_" | ||
}); | ||
@@ -148,3 +150,3 @@ var MAP_USE_DEFAULT_THEME = { | ||
var useTheme = use && theme ? "".concat(use, "-").concat(theme) : false; | ||
var isTextInside = (0, _reactToText["default"])(Children); | ||
var isTextInside = (0, _reactToText["default"])((0, _getOriginChildren["default"])(Children)); | ||
@@ -151,0 +153,0 @@ _logger["default"].warn(!isTextInside && !ariaLabel, 'aria-label is required', this.asProps['data-ui-name'] || Button.displayName); |
@@ -28,2 +28,3 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck"; | ||
import reactToText from '@semcore/utils/lib/reactToText'; | ||
import getOriginChildren from '@semcore/utils/lib/getOriginChildren'; | ||
import SpinButton from './SpinButton'; | ||
@@ -36,32 +37,32 @@ | ||
/*__inner_css_start__*/ | ||
".___SButton_e4mjv_gg_{position:relative;display:inline-block;align-items:center;justify-content:center;padding:0;margin:0;white-space:nowrap;font-family:Inter,sans-serif;line-height:normal;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;-ms-user-select:none;user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;font-weight:500;color:#6c6e79}.___SButton_e4mjv_gg_::-moz-focus-inner{padding:0;border:none}.___SButton_e4mjv_gg_:active,.___SButton_e4mjv_gg_:focus,.___SButton_e4mjv_gg_:hover{outline:0;text-decoration:none}.___SButton_e4mjv_gg_.__disabled_e4mjv_gg_{opacity:0.3;cursor:default;pointer-events:none}.___SButton_e4mjv_gg_.__keyboardFocused_e4mjv_gg_{box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2);z-index:1}.___SButton_e4mjv_gg_._size_m_e4mjv_gg_{height:28px;min-width:28px;border-radius:6px;font-size:14px}.___SButton_e4mjv_gg_._size_l_e4mjv_gg_{height:40px;min-width:40px;border-radius:6px;font-size:16px}.___SButton_e4mjv_gg_._theme_primary-info_e4mjv_gg_{color:#ffffff;background-color:#008ff8}.___SButton_e4mjv_gg_._theme_primary-info_e4mjv_gg_:hover{background-color:#006dca}.___SButton_e4mjv_gg_._theme_primary-info_e4mjv_gg_:active,.___SButton_e4mjv_gg_._theme_primary-info_e4mjv_gg_.__active_e4mjv_gg_{background-color:#044792}.___SButton_e4mjv_gg_._theme_primary-success_e4mjv_gg_{color:#ffffff;background-color:#009f81}.___SButton_e4mjv_gg_._theme_primary-success_e4mjv_gg_:hover{background-color:#007c65}.___SButton_e4mjv_gg_._theme_primary-success_e4mjv_gg_:active,.___SButton_e4mjv_gg_._theme_primary-success_e4mjv_gg_.__active_e4mjv_gg_{background-color:#055345}.___SButton_e4mjv_gg_._theme_primary-warning_e4mjv_gg_{background-color:#ff642d;color:#ffffff}.___SButton_e4mjv_gg_._theme_primary-warning_e4mjv_gg_:hover{background-color:#c33909}.___SButton_e4mjv_gg_._theme_primary-warning_e4mjv_gg_:active,.___SButton_e4mjv_gg_._theme_primary-warning_e4mjv_gg_.__active_e4mjv_gg_{background-color:#8b1500}.___SButton_e4mjv_gg_._theme_primary-danger_e4mjv_gg_{background-color:#ff4953;color:#ffffff}.___SButton_e4mjv_gg_._theme_primary-danger_e4mjv_gg_:hover{background-color:#d1002f}.___SButton_e4mjv_gg_._theme_primary-danger_e4mjv_gg_:active,.___SButton_e4mjv_gg_._theme_primary-danger_e4mjv_gg_.__active_e4mjv_gg_{background-color:#8e0016}.___SButton_e4mjv_gg_._theme_primary-invert_e4mjv_gg_{background-color:#fff;color:#191b23}.___SButton_e4mjv_gg_._theme_primary-invert_e4mjv_gg_:hover{background-color:#f4f5f9}.___SButton_e4mjv_gg_._theme_primary-invert_e4mjv_gg_:active,.___SButton_e4mjv_gg_._theme_primary-invert_e4mjv_gg_.__active_e4mjv_gg_{background-color:#e0e1e9}.___SButton_e4mjv_gg_._theme_secondary-muted_e4mjv_gg_{color:#6c6e79;border-color:#c4c7cf;background-color:rgba(138,142,155,.1)}.___SButton_e4mjv_gg_._theme_secondary-muted_e4mjv_gg_:hover{background-color:rgba(138,142,155,.2);color:#191b23}.___SButton_e4mjv_gg_._theme_secondary-muted_e4mjv_gg_:active,.___SButton_e4mjv_gg_._theme_secondary-muted_e4mjv_gg_.__active_e4mjv_gg_{background-color:rgba(138,142,155,.3);color:#191b23}.___SButton_e4mjv_gg_._theme_secondary-info_e4mjv_gg_{background-color:rgba(0,143,248,.05);color:#008ff8;border-color:#008ff8}.___SButton_e4mjv_gg_._theme_secondary-info_e4mjv_gg_:hover{background-color:rgba(0,109,202,.2)}.___SButton_e4mjv_gg_._theme_secondary-info_e4mjv_gg_:active,.___SButton_e4mjv_gg_._theme_secondary-info_e4mjv_gg_.__active_e4mjv_gg_{background-color:rgba(0,109,202,.3)}.___SButton_e4mjv_gg_._theme_secondary-invert_e4mjv_gg_{background-color:hsla(0,0%,100%,.05);color:#fff;border-color:#fff}.___SButton_e4mjv_gg_._theme_secondary-invert_e4mjv_gg_:hover{background-color:hsla(0,0%,100%,.1)}.___SButton_e4mjv_gg_._theme_secondary-invert_e4mjv_gg_:active,.___SButton_e4mjv_gg_._theme_secondary-invert_e4mjv_gg_.__active_e4mjv_gg_{background-color:hsla(0,0%,100%,.3)}.___SButton_e4mjv_gg_._theme_tertiary-info_e4mjv_gg_{color:#006dca;background-color:transparent}.___SButton_e4mjv_gg_._theme_tertiary-info_e4mjv_gg_:hover{background-color:rgba(0,143,248,.2)}.___SButton_e4mjv_gg_._theme_tertiary-info_e4mjv_gg_:active,.___SButton_e4mjv_gg_._theme_tertiary-info_e4mjv_gg_.__active_e4mjv_gg_{background-color:rgba(0,143,248,.3)}.___SButton_e4mjv_gg_._theme_tertiary-muted_e4mjv_gg_{color:#6c6e79;background-color:transparent}.___SButton_e4mjv_gg_._theme_tertiary-muted_e4mjv_gg_:hover{background-color:rgba(138,142,155,.2);color:#191b23}.___SButton_e4mjv_gg_._theme_tertiary-muted_e4mjv_gg_:active,.___SButton_e4mjv_gg_._theme_tertiary-muted_e4mjv_gg_.__active_e4mjv_gg_{background-color:rgba(138,142,155,.3);color:#191b23}.___SButton_e4mjv_gg_._theme_tertiary-invert_e4mjv_gg_{color:#fff;background-color:transparent}.___SButton_e4mjv_gg_._theme_tertiary-invert_e4mjv_gg_:hover{background-color:hsla(0,0%,100%,.1)}.___SButton_e4mjv_gg_._theme_tertiary-invert_e4mjv_gg_:active,.___SButton_e4mjv_gg_._theme_tertiary-invert_e4mjv_gg_.__active_e4mjv_gg_{background-color:hsla(0,0%,100%,.3)}.___SButton_e4mjv_gg_._neighborLocation_right_e4mjv_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SButton_e4mjv_gg_._neighborLocation_both_e4mjv_gg_{border-radius:0;margin-left:-1px}.___SButton_e4mjv_gg_._neighborLocation_both_e4mjv_gg_._theme_primary-danger_e4mjv_gg_,.___SButton_e4mjv_gg_._neighborLocation_both_e4mjv_gg_._theme_primary-info_e4mjv_gg_,.___SButton_e4mjv_gg_._neighborLocation_both_e4mjv_gg_._theme_primary-success_e4mjv_gg_,.___SButton_e4mjv_gg_._neighborLocation_both_e4mjv_gg_._theme_primary-warning_e4mjv_gg_{border-left-color:hsla(0,0%,100%,.5)}.___SButton_e4mjv_gg_._neighborLocation_both_e4mjv_gg_._theme_primary-invert_e4mjv_gg_{border-left-color:rgba(0,0,0,.5)}.___SButton_e4mjv_gg_._neighborLocation_left_e4mjv_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.___SButton_e4mjv_gg_._neighborLocation_left_e4mjv_gg_._theme_primary-danger_e4mjv_gg_,.___SButton_e4mjv_gg_._neighborLocation_left_e4mjv_gg_._theme_primary-info_e4mjv_gg_,.___SButton_e4mjv_gg_._neighborLocation_left_e4mjv_gg_._theme_primary-success_e4mjv_gg_,.___SButton_e4mjv_gg_._neighborLocation_left_e4mjv_gg_._theme_primary-warning_e4mjv_gg_{border-left-color:hsla(0,0%,100%,.5)}.___SButton_e4mjv_gg_._neighborLocation_left_e4mjv_gg_._theme_primary-invert_e4mjv_gg_{border-left-color:rgba(0,0,0,.5)}.___SSpin_e4mjv_gg_{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}.___SInner_e4mjv_gg_{display:inline-flex;align-items:center;justify-content:center;height:100%;width:100%}.___SInner_e4mjv_gg_.__loading_e4mjv_gg_{visibility:hidden}.___SText_e4mjv_gg_{display:inline-flex}.___SText_e4mjv_gg_._size_m_e4mjv_gg_{margin-left:8px;margin-right:8px;line-height:1.42}.___SText_e4mjv_gg_._size_l_e4mjv_gg_{margin-left:12px;margin-right:12px;line-height:1.5}.___SAddon_e4mjv_gg_{display:inline-flex;align-items:center;justify-content:center}.___SAddon_e4mjv_gg_._size_m_e4mjv_gg_:not(:only-child):first-child{margin-left:8px}.___SAddon_e4mjv_gg_._size_m_e4mjv_gg_:not(:only-child):last-child{margin-right:8px}.___SAddon_e4mjv_gg_._size_m_e4mjv_gg_:only-child{margin-left:-4px;margin-right:-4px}.___SAddon_e4mjv_gg_._size_l_e4mjv_gg_:not(:only-child):first-child{margin-left:8px}.___SAddon_e4mjv_gg_._size_l_e4mjv_gg_:not(:only-child):last-child{margin-right:8px}.___SAddon_e4mjv_gg_._size_l_e4mjv_gg_:only-child{margin-left:-4px;margin-right:-4px}" | ||
".___SButton_5h4zz_gg_{position:relative;display:inline-block;align-items:center;justify-content:center;padding:0;margin:0;white-space:nowrap;font-family:Inter,sans-serif;line-height:normal;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;-ms-user-select:none;user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;font-weight:500;color:#6c6e79}.___SButton_5h4zz_gg_::-moz-focus-inner{padding:0;border:none}.___SButton_5h4zz_gg_:active,.___SButton_5h4zz_gg_:focus,.___SButton_5h4zz_gg_:hover{outline:0;text-decoration:none}.___SButton_5h4zz_gg_.__disabled_5h4zz_gg_{opacity:0.3;cursor:default;pointer-events:none}.___SButton_5h4zz_gg_.__keyboardFocused_5h4zz_gg_{box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2);z-index:1}.___SButton_5h4zz_gg_._size_m_5h4zz_gg_{height:28px;min-width:28px;border-radius:6px;font-size:14px}.___SButton_5h4zz_gg_._size_l_5h4zz_gg_{height:40px;min-width:40px;border-radius:6px;font-size:16px}.___SButton_5h4zz_gg_._theme_primary-info_5h4zz_gg_{color:#ffffff;background-color:#008ff8}.___SButton_5h4zz_gg_._theme_primary-info_5h4zz_gg_:hover{background-color:#006dca}.___SButton_5h4zz_gg_._theme_primary-info_5h4zz_gg_:active,.___SButton_5h4zz_gg_._theme_primary-info_5h4zz_gg_.__active_5h4zz_gg_{background-color:#044792}.___SButton_5h4zz_gg_._theme_primary-success_5h4zz_gg_{color:#ffffff;background-color:#009f81}.___SButton_5h4zz_gg_._theme_primary-success_5h4zz_gg_:hover{background-color:#007c65}.___SButton_5h4zz_gg_._theme_primary-success_5h4zz_gg_:active,.___SButton_5h4zz_gg_._theme_primary-success_5h4zz_gg_.__active_5h4zz_gg_{background-color:#055345}.___SButton_5h4zz_gg_._theme_primary-warning_5h4zz_gg_{background-color:#ff642d;color:#ffffff}.___SButton_5h4zz_gg_._theme_primary-warning_5h4zz_gg_:hover{background-color:#c33909}.___SButton_5h4zz_gg_._theme_primary-warning_5h4zz_gg_:active,.___SButton_5h4zz_gg_._theme_primary-warning_5h4zz_gg_.__active_5h4zz_gg_{background-color:#8b1500}.___SButton_5h4zz_gg_._theme_primary-danger_5h4zz_gg_{background-color:#ff4953;color:#ffffff}.___SButton_5h4zz_gg_._theme_primary-danger_5h4zz_gg_:hover{background-color:#d1002f}.___SButton_5h4zz_gg_._theme_primary-danger_5h4zz_gg_:active,.___SButton_5h4zz_gg_._theme_primary-danger_5h4zz_gg_.__active_5h4zz_gg_{background-color:#8e0016}.___SButton_5h4zz_gg_._theme_primary-invert_5h4zz_gg_{background-color:#fff;color:#191b23}.___SButton_5h4zz_gg_._theme_primary-invert_5h4zz_gg_:hover{background-color:#f4f5f9}.___SButton_5h4zz_gg_._theme_primary-invert_5h4zz_gg_:active,.___SButton_5h4zz_gg_._theme_primary-invert_5h4zz_gg_.__active_5h4zz_gg_{background-color:#e0e1e9}.___SButton_5h4zz_gg_._theme_secondary-muted_5h4zz_gg_{color:#6c6e79;border-color:#c4c7cf;background-color:rgba(138,142,155,.1)}.___SButton_5h4zz_gg_._theme_secondary-muted_5h4zz_gg_:hover{background-color:rgba(138,142,155,.2);color:#191b23}.___SButton_5h4zz_gg_._theme_secondary-muted_5h4zz_gg_:active,.___SButton_5h4zz_gg_._theme_secondary-muted_5h4zz_gg_.__active_5h4zz_gg_{background-color:rgba(138,142,155,.3);color:#191b23}.___SButton_5h4zz_gg_._theme_secondary-info_5h4zz_gg_{background-color:rgba(0,143,248,.05);color:#008ff8;border-color:#008ff8}.___SButton_5h4zz_gg_._theme_secondary-info_5h4zz_gg_:hover{background-color:rgba(0,109,202,.2)}.___SButton_5h4zz_gg_._theme_secondary-info_5h4zz_gg_:active,.___SButton_5h4zz_gg_._theme_secondary-info_5h4zz_gg_.__active_5h4zz_gg_{background-color:rgba(0,109,202,.3)}.___SButton_5h4zz_gg_._theme_secondary-invert_5h4zz_gg_{background-color:hsla(0,0%,100%,.05);color:#fff;border-color:#fff}.___SButton_5h4zz_gg_._theme_secondary-invert_5h4zz_gg_:hover{background-color:hsla(0,0%,100%,.1)}.___SButton_5h4zz_gg_._theme_secondary-invert_5h4zz_gg_:active,.___SButton_5h4zz_gg_._theme_secondary-invert_5h4zz_gg_.__active_5h4zz_gg_{background-color:hsla(0,0%,100%,.3)}.___SButton_5h4zz_gg_._theme_tertiary-info_5h4zz_gg_{color:#006dca;background-color:transparent}.___SButton_5h4zz_gg_._theme_tertiary-info_5h4zz_gg_:hover{background-color:rgba(0,143,248,.2)}.___SButton_5h4zz_gg_._theme_tertiary-info_5h4zz_gg_:active,.___SButton_5h4zz_gg_._theme_tertiary-info_5h4zz_gg_.__active_5h4zz_gg_{background-color:rgba(0,143,248,.3)}.___SButton_5h4zz_gg_._theme_tertiary-muted_5h4zz_gg_{color:#6c6e79;background-color:transparent}.___SButton_5h4zz_gg_._theme_tertiary-muted_5h4zz_gg_:hover{background-color:rgba(138,142,155,.2);color:#191b23}.___SButton_5h4zz_gg_._theme_tertiary-muted_5h4zz_gg_:active,.___SButton_5h4zz_gg_._theme_tertiary-muted_5h4zz_gg_.__active_5h4zz_gg_{background-color:rgba(138,142,155,.3);color:#191b23}.___SButton_5h4zz_gg_._theme_tertiary-invert_5h4zz_gg_{color:#fff;background-color:transparent}.___SButton_5h4zz_gg_._theme_tertiary-invert_5h4zz_gg_:hover{background-color:hsla(0,0%,100%,.1)}.___SButton_5h4zz_gg_._theme_tertiary-invert_5h4zz_gg_:active,.___SButton_5h4zz_gg_._theme_tertiary-invert_5h4zz_gg_.__active_5h4zz_gg_{background-color:hsla(0,0%,100%,.3)}.___SButton_5h4zz_gg_._neighborLocation_right_5h4zz_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SButton_5h4zz_gg_._neighborLocation_both_5h4zz_gg_{border-radius:0;margin-left:-1px}.___SButton_5h4zz_gg_._neighborLocation_both_5h4zz_gg_._theme_primary-danger_5h4zz_gg_,.___SButton_5h4zz_gg_._neighborLocation_both_5h4zz_gg_._theme_primary-info_5h4zz_gg_,.___SButton_5h4zz_gg_._neighborLocation_both_5h4zz_gg_._theme_primary-success_5h4zz_gg_,.___SButton_5h4zz_gg_._neighborLocation_both_5h4zz_gg_._theme_primary-warning_5h4zz_gg_{border-left-color:hsla(0,0%,100%,.5)}.___SButton_5h4zz_gg_._neighborLocation_both_5h4zz_gg_._theme_primary-invert_5h4zz_gg_{border-left-color:rgba(0,0,0,.5)}.___SButton_5h4zz_gg_._neighborLocation_left_5h4zz_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.___SButton_5h4zz_gg_._neighborLocation_left_5h4zz_gg_._theme_primary-danger_5h4zz_gg_,.___SButton_5h4zz_gg_._neighborLocation_left_5h4zz_gg_._theme_primary-info_5h4zz_gg_,.___SButton_5h4zz_gg_._neighborLocation_left_5h4zz_gg_._theme_primary-success_5h4zz_gg_,.___SButton_5h4zz_gg_._neighborLocation_left_5h4zz_gg_._theme_primary-warning_5h4zz_gg_{border-left-color:hsla(0,0%,100%,.5)}.___SButton_5h4zz_gg_._neighborLocation_left_5h4zz_gg_._theme_primary-invert_5h4zz_gg_{border-left-color:rgba(0,0,0,.5)}.___SSpin_5h4zz_gg_{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}.___SInner_5h4zz_gg_{display:inline-flex;align-items:center;justify-content:center;height:100%;width:100%}.___SInner_5h4zz_gg_.__loading_5h4zz_gg_{visibility:hidden}.___SText_5h4zz_gg_{display:inline-flex}.___SText_5h4zz_gg_._size_m_5h4zz_gg_{margin-left:8px;margin-right:8px;line-height:1.42}.___SText_5h4zz_gg_._size_l_5h4zz_gg_{margin-left:12px;margin-right:12px;line-height:1.5}.___SAddon_5h4zz_gg_{display:inline-flex;align-items:center;justify-content:center}.___SAddon_5h4zz_gg_._size_m_5h4zz_gg_:not(:only-child):first-child{margin-left:8px}.___SAddon_5h4zz_gg_._size_m_5h4zz_gg_:not(:only-child):last-child{margin-right:8px}.___SAddon_5h4zz_gg_._size_m_5h4zz_gg_:only-child{margin-left:-4px;margin-right:-4px}.___SAddon_5h4zz_gg_._size_l_5h4zz_gg_:not(:only-child):first-child{margin-left:8px}.___SAddon_5h4zz_gg_._size_l_5h4zz_gg_:not(:only-child):last-child{margin-right:8px}.___SAddon_5h4zz_gg_._size_l_5h4zz_gg_:only-child{margin-left:-4px;margin-right:-4px}" | ||
/*__inner_css_end__*/ | ||
, "e4mjv_gg_") | ||
, "5h4zz_gg_") | ||
/*__reshadow_css_end__*/ | ||
, { | ||
"__SButton": "___SButton_e4mjv_gg_", | ||
"_disabled": "__disabled_e4mjv_gg_", | ||
"_keyboardFocused": "__keyboardFocused_e4mjv_gg_", | ||
"_size_m": "_size_m_e4mjv_gg_", | ||
"_size_l": "_size_l_e4mjv_gg_", | ||
"_theme_primary-info": "_theme_primary-info_e4mjv_gg_", | ||
"_active": "__active_e4mjv_gg_", | ||
"_theme_primary-success": "_theme_primary-success_e4mjv_gg_", | ||
"_theme_primary-warning": "_theme_primary-warning_e4mjv_gg_", | ||
"_theme_primary-danger": "_theme_primary-danger_e4mjv_gg_", | ||
"_theme_primary-invert": "_theme_primary-invert_e4mjv_gg_", | ||
"_theme_secondary-muted": "_theme_secondary-muted_e4mjv_gg_", | ||
"_theme_secondary-info": "_theme_secondary-info_e4mjv_gg_", | ||
"_theme_secondary-invert": "_theme_secondary-invert_e4mjv_gg_", | ||
"_theme_tertiary-info": "_theme_tertiary-info_e4mjv_gg_", | ||
"_theme_tertiary-muted": "_theme_tertiary-muted_e4mjv_gg_", | ||
"_theme_tertiary-invert": "_theme_tertiary-invert_e4mjv_gg_", | ||
"_neighborLocation_right": "_neighborLocation_right_e4mjv_gg_", | ||
"_neighborLocation_both": "_neighborLocation_both_e4mjv_gg_", | ||
"_neighborLocation_left": "_neighborLocation_left_e4mjv_gg_", | ||
"__SSpin": "___SSpin_e4mjv_gg_", | ||
"__SInner": "___SInner_e4mjv_gg_", | ||
"_loading": "__loading_e4mjv_gg_", | ||
"__SText": "___SText_e4mjv_gg_", | ||
"__SAddon": "___SAddon_e4mjv_gg_" | ||
"__SButton": "___SButton_5h4zz_gg_", | ||
"_disabled": "__disabled_5h4zz_gg_", | ||
"_keyboardFocused": "__keyboardFocused_5h4zz_gg_", | ||
"_size_m": "_size_m_5h4zz_gg_", | ||
"_size_l": "_size_l_5h4zz_gg_", | ||
"_theme_primary-info": "_theme_primary-info_5h4zz_gg_", | ||
"_active": "__active_5h4zz_gg_", | ||
"_theme_primary-success": "_theme_primary-success_5h4zz_gg_", | ||
"_theme_primary-warning": "_theme_primary-warning_5h4zz_gg_", | ||
"_theme_primary-danger": "_theme_primary-danger_5h4zz_gg_", | ||
"_theme_primary-invert": "_theme_primary-invert_5h4zz_gg_", | ||
"_theme_secondary-muted": "_theme_secondary-muted_5h4zz_gg_", | ||
"_theme_secondary-info": "_theme_secondary-info_5h4zz_gg_", | ||
"_theme_secondary-invert": "_theme_secondary-invert_5h4zz_gg_", | ||
"_theme_tertiary-info": "_theme_tertiary-info_5h4zz_gg_", | ||
"_theme_tertiary-muted": "_theme_tertiary-muted_5h4zz_gg_", | ||
"_theme_tertiary-invert": "_theme_tertiary-invert_5h4zz_gg_", | ||
"_neighborLocation_right": "_neighborLocation_right_5h4zz_gg_", | ||
"_neighborLocation_both": "_neighborLocation_both_5h4zz_gg_", | ||
"_neighborLocation_left": "_neighborLocation_left_5h4zz_gg_", | ||
"__SSpin": "___SSpin_5h4zz_gg_", | ||
"__SInner": "___SInner_5h4zz_gg_", | ||
"_loading": "__loading_5h4zz_gg_", | ||
"__SText": "___SText_5h4zz_gg_", | ||
"__SAddon": "___SAddon_5h4zz_gg_" | ||
}); | ||
@@ -124,3 +125,3 @@ export var MAP_USE_DEFAULT_THEME = { | ||
var useTheme = use && theme ? "".concat(use, "-").concat(theme) : false; | ||
var isTextInside = reactToText(Children); | ||
var isTextInside = reactToText(getOriginChildren(Children)); | ||
logger.warn(!isTextInside && !ariaLabel, 'aria-label is required', this.asProps['data-ui-name'] || Button.displayName); | ||
@@ -127,0 +128,0 @@ return _ref4 = sstyled(styles), /*#__PURE__*/React.createElement(SButton, _ref4.cn("SButton", _objectSpread({}, _assignProps({ |
{ | ||
"name": "@semcore/button", | ||
"description": "Semrush Button Component", | ||
"version": "4.0.14", | ||
"version": "4.0.15", | ||
"main": "lib/cjs/index.js", | ||
@@ -6,0 +6,0 @@ "module": "lib/es6/index.js", |
@@ -9,2 +9,3 @@ import React from 'react'; | ||
import reactToText from '@semcore/utils/lib/reactToText'; | ||
import getOriginChildren from '@semcore/utils/lib/getOriginChildren'; | ||
import SpinButton from './SpinButton'; | ||
@@ -59,7 +60,5 @@ | ||
} = this.asProps; | ||
const useTheme = use && theme ? `${use}-${theme}` : false; | ||
const isTextInside = reactToText(getOriginChildren(Children)); | ||
const isTextInside = reactToText(Children); | ||
logger.warn( | ||
@@ -66,0 +65,0 @@ !isTextInside && !ariaLabel, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
93040
1639