Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@semcore/button

Package Overview
Dependencies
Maintainers
1
Versions
301
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@semcore/button - npm Package Compare versions

Comparing version 2.4.1 to 2.5.0

17

CHANGELOG.md

@@ -5,6 +5,12 @@ # Changelog

## [2.5.0] - 2020-02-13
### Added
- Добавлена тема `sellerly`, фокус у контрола по умолчанию цвета `light-ultramarine`
## [2.4.1] - 2019-12-17
### Fixed
- Исправлен транспайл цветовых переменных для стилей без префиксов (build.css)

@@ -19,2 +25,3 @@

- Появилась возможность изолировать стили даже в пределах одной страницы
- Добавлено прокидываение классов на `Spin` внутри кнопки

@@ -29,8 +36,2 @@ ### Changed

## [2.3.1] - unrelease
### Fixed
- Добавлено прокидываение классов на Spin внутри кнопки
## [2.3.0] - 2019-11-14

@@ -37,0 +38,0 @@

@@ -55,3 +55,3 @@ import _defineProperty from '@babel/runtime/helpers/defineProperty';

if (_path || _pathMedia) {
injectStyle("._button_grgqw_gg_{position:relative;display:inline-block;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;padding:0;margin:0;white-space:nowrap;font-family:inherit;font-weight:400;line-height:normal;text-decoration:none;text-align:center;vertical-align:middle;border:1px solid transparent;color:#666;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}._button_grgqw_gg_::-moz-focus-inner{padding:0;border:none}._button_grgqw_gg_:active,._button_grgqw_gg_:focus,._button_grgqw_gg_:hover{outline:0;text-decoration:none}._button__spin_z788k_gg_{position:absolute;top:0;left:0;width:100%;height:100%;display:-webkit-box;display:flex}._button__inner_1evrb_gg_{display:-webkit-inline-box;display:inline-flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;height:100%;width:100%}._button__inner--loading_1221k_gg_{visibility:hidden}._button__additional_1slv5_gg_{display:-webkit-inline-box;display:inline-flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center}._button__text_5hyfk_gg_{display:-webkit-inline-box;display:inline-flex;line-height:1}._button--size_s_174dz_gg_{height:18px;min-width:18px;border-radius:2px;font-size:10px}._button--size_s_174dz_gg_ ._button__text_5hyfk_gg_{margin-left:4px;margin-right:4px}._button--size_s_174dz_gg_ ._button__additional_1slv5_gg_:not(:only-child):first-child{margin-left:4px}._button--size_s_174dz_gg_ ._button__additional_1slv5_gg_:not(:only-child):last-child{margin-right:4px}._button--size_s_174dz_gg_ ._button__additional_1slv5_gg_:only-child{margin-left:-2px;margin-right:-2px}._button--size_m_1n3ei_gg_{height:26px;min-width:26px;border-radius:3px;font-size:12px}._button--size_m_1n3ei_gg_ ._button__text_5hyfk_gg_{margin-left:8px;margin-right:8px}._button--size_m_1n3ei_gg_ ._button__additional_1slv5_gg_:not(:only-child):first-child{margin-left:8px}._button--size_m_1n3ei_gg_ ._button__additional_1slv5_gg_:not(:only-child):last-child{margin-right:8px}._button--size_m_1n3ei_gg_ ._button__additional_1slv5_gg_:only-child{margin-left:-4px;margin-right:-4px}._button--size_l_1vrlc_gg_{height:32px;min-width:32px;border-radius:4px;font-size:14px}._button--size_l_1vrlc_gg_ ._button__text_5hyfk_gg_{margin-left:8px;margin-right:8px}._button--size_l_1vrlc_gg_ ._button__additional_1slv5_gg_:not(:only-child):first-child{margin-left:8px}._button--size_l_1vrlc_gg_ ._button__additional_1slv5_gg_:not(:only-child):last-child{margin-right:8px}._button--size_l_1vrlc_gg_ ._button__additional_1slv5_gg_:only-child{margin-left:-4px;margin-right:-4px}._button--size_xl_5e6db_gg_{height:42px;min-width:42px;border-radius:5px;font-size:16px}._button--size_xl_5e6db_gg_ ._button__text_5hyfk_gg_{margin-left:12px;margin-right:12px}._button--size_xl_5e6db_gg_ ._button__additional_1slv5_gg_:not(:only-child):first-child{margin-left:12px}._button--size_xl_5e6db_gg_ ._button__additional_1slv5_gg_:not(:only-child):last-child{margin-right:12px}._button--size_xl_5e6db_gg_ ._button__additional_1slv5_gg_:only-child{margin-left:-6px;margin-right:-6px}._button--theme_primary-info_1yqea_gg_{color:#fff;background-color:#2b94e1}._button--theme_primary-info_1yqea_gg_:hover{background-color:#0071bc}._button--theme_primary-info_1yqea_gg_._button--active_1xu3f_gg_,._button--theme_primary-info_1yqea_gg_:active{background-color:#006bb3}._button--theme_primary-success_e0ll4_gg_{color:#fff;background-color:#4fae33}._button--theme_primary-success_e0ll4_gg_:hover{background-color:#1d9c00}._button--theme_primary-success_e0ll4_gg_._button--active_1xu3f_gg_,._button--theme_primary-success_e0ll4_gg_:active{background-color:#1c9400}._button--theme_primary-warning_qbwdk_gg_{background-color:#ff7f00;color:#fff}._button--theme_primary-warning_qbwdk_gg_:hover{background-color:#c60}._button--theme_primary-warning_qbwdk_gg_._button--active_1xu3f_gg_,._button--theme_primary-warning_qbwdk_gg_:active{background-color:#c26100}._button--theme_primary-danger_19d8b_gg_{background-color:#ed2d2d;color:#fff}._button--theme_primary-danger_19d8b_gg_:hover{background-color:#d00000}._button--theme_primary-danger_19d8b_gg_._button--active_1xu3f_gg_,._button--theme_primary-danger_19d8b_gg_:active{background-color:#c60000}._button--theme_primary-invert_1kom5_gg_{background-color:#fff;color:#333}._button--theme_primary-invert_1kom5_gg_:hover{background-color:#eee}._button--theme_primary-invert_1kom5_gg_._button--active_1xu3f_gg_,._button--theme_primary-invert_1kom5_gg_:active{background-color:#e4e1e1}._button--theme_secondary-muted_1v7sv_gg_{color:#666;border-color:#a6b0b3;background-color:rgba(166,176,179,.1)}._button--theme_secondary-muted_1v7sv_gg_:hover{background-color:rgba(166,176,179,.2)}._button--theme_secondary-muted_1v7sv_gg_._button--active_1xu3f_gg_,._button--theme_secondary-muted_1v7sv_gg_:active{background-color:rgba(166,176,179,.3)}._button--theme_secondary-info_8d2cq_gg_{background-color:rgba(43,148,225,.05);color:#2b94e1;border-color:#2b94e1}._button--theme_secondary-info_8d2cq_gg_:hover{background-color:rgba(0,113,188,.2)}._button--theme_secondary-info_8d2cq_gg_._button--active_1xu3f_gg_,._button--theme_secondary-info_8d2cq_gg_:active{background-color:rgba(0,113,188,.3)}._button--theme_secondary-invert_vg3ug_gg_{background-color:hsla(0,0%,100%,.05);color:#fff;border-color:#fff}._button--theme_secondary-invert_vg3ug_gg_:hover{background-color:hsla(0,0%,100%,.2)}._button--theme_secondary-invert_vg3ug_gg_._button--active_1xu3f_gg_,._button--theme_secondary-invert_vg3ug_gg_:active{background-color:hsla(0,0%,100%,.3)}._button--theme_tertiary-info_dplmw_gg_{color:#0071bc;background-color:transparent}._button--theme_tertiary-info_dplmw_gg_:hover{background-color:rgba(43,148,225,.2)}._button--theme_tertiary-info_dplmw_gg_._button--active_1xu3f_gg_,._button--theme_tertiary-info_dplmw_gg_:active{background-color:rgba(43,148,225,.3)}._button--theme_tertiary-muted_f23zk_gg_{color:#666;background-color:transparent}._button--theme_tertiary-muted_f23zk_gg_:hover{background-color:rgba(166,176,179,.2)}._button--theme_tertiary-muted_f23zk_gg_._button--active_1xu3f_gg_,._button--theme_tertiary-muted_f23zk_gg_:active{background-color:rgba(166,176,179,.3)}._button--theme_tertiary-invert_1w12b_gg_{color:#fff;background-color:transparent}._button--theme_tertiary-invert_1w12b_gg_:hover{background-color:hsla(0,0%,100%,.2)}._button--theme_tertiary-invert_1w12b_gg_._button--active_1xu3f_gg_,._button--theme_tertiary-invert_1w12b_gg_:active{background-color:hsla(0,0%,100%,.3)}._button--disabled_1n8ot_gg_{opacity:.3;cursor:default;pointer-events:none}._button--keyboard-focused_1tiff_gg_{box-shadow:0 0 0 3px rgba(43,148,225,.3)}._button--neighbor-location_right_bcn5j_gg_._button--neighbor-location_right_bcn5j_gg_{border-top-right-radius:0;border-bottom-right-radius:0}._button--neighbor-location_both_1fc16_gg_._button--neighbor-location_both_1fc16_gg_{border-radius:0;margin-left:-1px}._button--neighbor-location_left_1g28f_gg_._button--neighbor-location_left_1g28f_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}._button--neighbor-location_both_1fc16_gg_[class*=button--theme_primary-]{border-left-color:hsla(0,0%,100%,.5)}._button--neighbor-location_both_1fc16_gg_._button--theme_primary-invert_1kom5_gg_{border-left-color:rgba(0,0,0,.5)}._button--neighbor-location_left_1g28f_gg_[class*=button--theme_primary-]{border-left-color:hsla(0,0%,100%,.5)}._button--neighbor-location_left_1g28f_gg_._button--theme_primary-invert_1kom5_gg_{border-left-color:rgba(0,0,0,.5)}");
injectStyle("._button_1yj4n_gg_{position:relative;display:inline-block;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;padding:0;margin:0;white-space:nowrap;font-family:inherit;font-weight:400;line-height:normal;text-decoration:none;text-align:center;vertical-align:middle;border:1px solid transparent;color:#666;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}._button_1yj4n_gg_::-moz-focus-inner{padding:0;border:none}._button_1yj4n_gg_:active,._button_1yj4n_gg_:focus,._button_1yj4n_gg_:hover{outline:0;text-decoration:none}._button__spin_nodvf_gg_{position:absolute;top:0;left:0;width:100%;height:100%;display:-webkit-box;display:flex}._button__inner_xmb5o_gg_{display:-webkit-inline-box;display:inline-flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;height:100%;width:100%}._button__inner--loading_kslf1_gg_{visibility:hidden}._button__additional_53lgm_gg_{display:-webkit-inline-box;display:inline-flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center}._button__text_h0ssp_gg_{display:-webkit-inline-box;display:inline-flex;line-height:1}._button--size_s_1odu4_gg_{height:18px;min-width:18px;border-radius:2px;font-size:10px}._button--size_s_1odu4_gg_ ._button__text_h0ssp_gg_{margin-left:4px;margin-right:4px}._button--size_s_1odu4_gg_ ._button__additional_53lgm_gg_:not(:only-child):first-child{margin-left:4px}._button--size_s_1odu4_gg_ ._button__additional_53lgm_gg_:not(:only-child):last-child{margin-right:4px}._button--size_s_1odu4_gg_ ._button__additional_53lgm_gg_:only-child{margin-left:-2px;margin-right:-2px}._button--size_m_15tyd_gg_{height:26px;min-width:26px;border-radius:3px;font-size:12px}._button--size_m_15tyd_gg_ ._button__text_h0ssp_gg_{margin-left:8px;margin-right:8px}._button--size_m_15tyd_gg_ ._button__additional_53lgm_gg_:not(:only-child):first-child{margin-left:8px}._button--size_m_15tyd_gg_ ._button__additional_53lgm_gg_:not(:only-child):last-child{margin-right:8px}._button--size_m_15tyd_gg_ ._button__additional_53lgm_gg_:only-child{margin-left:-4px;margin-right:-4px}._button--size_l_89bo3_gg_{height:32px;min-width:32px;border-radius:4px;font-size:14px}._button--size_l_89bo3_gg_ ._button__text_h0ssp_gg_{margin-left:8px;margin-right:8px}._button--size_l_89bo3_gg_ ._button__additional_53lgm_gg_:not(:only-child):first-child{margin-left:8px}._button--size_l_89bo3_gg_ ._button__additional_53lgm_gg_:not(:only-child):last-child{margin-right:8px}._button--size_l_89bo3_gg_ ._button__additional_53lgm_gg_:only-child{margin-left:-4px;margin-right:-4px}._button--size_xl_mnmiq_gg_{height:42px;min-width:42px;border-radius:5px;font-size:16px}._button--size_xl_mnmiq_gg_ ._button__text_h0ssp_gg_{margin-left:12px;margin-right:12px}._button--size_xl_mnmiq_gg_ ._button__additional_53lgm_gg_:not(:only-child):first-child{margin-left:12px}._button--size_xl_mnmiq_gg_ ._button__additional_53lgm_gg_:not(:only-child):last-child{margin-right:12px}._button--size_xl_mnmiq_gg_ ._button__additional_53lgm_gg_:only-child{margin-left:-6px;margin-right:-6px}._button--theme_primary-info_b84lj_gg_{color:#fff;background-color:#2b94e1}._button--theme_primary-info_b84lj_gg_:hover{background-color:#0071bc}._button--theme_primary-info_b84lj_gg_._button--active_1gkna_gg_,._button--theme_primary-info_b84lj_gg_:active{background-color:#006bb3}._button--theme_primary-success_2hr80_gg_{color:#fff;background-color:#4fae33}._button--theme_primary-success_2hr80_gg_:hover{background-color:#1d9c00}._button--theme_primary-success_2hr80_gg_._button--active_1gkna_gg_,._button--theme_primary-success_2hr80_gg_:active{background-color:#1c9400}._button--theme_primary-warning_92g84_gg_{background-color:#ff7f00;color:#fff}._button--theme_primary-warning_92g84_gg_:hover{background-color:#c60}._button--theme_primary-warning_92g84_gg_._button--active_1gkna_gg_,._button--theme_primary-warning_92g84_gg_:active{background-color:#c26100}._button--theme_primary-danger_1qmog_gg_{background-color:#ed2d2d;color:#fff}._button--theme_primary-danger_1qmog_gg_:hover{background-color:#d00000}._button--theme_primary-danger_1qmog_gg_._button--active_1gkna_gg_,._button--theme_primary-danger_1qmog_gg_:active{background-color:#c60000}._button--theme_primary-invert_13f60_gg_{background-color:#fff;color:#333}._button--theme_primary-invert_13f60_gg_:hover{background-color:#eee}._button--theme_primary-invert_13f60_gg_._button--active_1gkna_gg_,._button--theme_primary-invert_13f60_gg_:active{background-color:#e4e1e1}._button--theme_secondary-muted_1dycp_gg_{color:#666;border-color:#a6b0b3;background-color:rgba(166,176,179,.1)}._button--theme_secondary-muted_1dycp_gg_:hover{background-color:rgba(166,176,179,.2)}._button--theme_secondary-muted_1dycp_gg_._button--active_1gkna_gg_,._button--theme_secondary-muted_1dycp_gg_:active{background-color:rgba(166,176,179,.3)}._button--theme_secondary-info_1vvc1_gg_{background-color:rgba(43,148,225,.05);color:#2b94e1;border-color:#2b94e1}._button--theme_secondary-info_1vvc1_gg_:hover{background-color:rgba(0,113,188,.2)}._button--theme_secondary-info_1vvc1_gg_._button--active_1gkna_gg_,._button--theme_secondary-info_1vvc1_gg_:active{background-color:rgba(0,113,188,.3)}._button--theme_secondary-invert_e6np0_gg_{background-color:hsla(0,0%,100%,.05);color:#fff;border-color:#fff}._button--theme_secondary-invert_e6np0_gg_:hover{background-color:hsla(0,0%,100%,.2)}._button--theme_secondary-invert_e6np0_gg_._button--active_1gkna_gg_,._button--theme_secondary-invert_e6np0_gg_:active{background-color:hsla(0,0%,100%,.3)}._button--theme_tertiary-info_p8g01_gg_{color:#0071bc;background-color:transparent}._button--theme_tertiary-info_p8g01_gg_:hover{background-color:rgba(43,148,225,.2)}._button--theme_tertiary-info_p8g01_gg_._button--active_1gkna_gg_,._button--theme_tertiary-info_p8g01_gg_:active{background-color:rgba(43,148,225,.3)}._button--theme_tertiary-muted_3j9mf_gg_{color:#666;background-color:transparent}._button--theme_tertiary-muted_3j9mf_gg_:hover{background-color:rgba(166,176,179,.2)}._button--theme_tertiary-muted_3j9mf_gg_._button--active_1gkna_gg_,._button--theme_tertiary-muted_3j9mf_gg_:active{background-color:rgba(166,176,179,.3)}._button--theme_tertiary-invert_8ismf_gg_{color:#fff;background-color:transparent}._button--theme_tertiary-invert_8ismf_gg_:hover{background-color:hsla(0,0%,100%,.2)}._button--theme_tertiary-invert_8ismf_gg_._button--active_1gkna_gg_,._button--theme_tertiary-invert_8ismf_gg_:active{background-color:hsla(0,0%,100%,.3)}._button--disabled_1bpug_gg_{opacity:.3;cursor:default;pointer-events:none}._button--keyboard-focused_605qo_gg_{box-shadow:0 0 0 3px rgba(43,148,225,.3)}._button--neighbor-location_right_mvhio_gg_._button--neighbor-location_right_mvhio_gg_{border-top-right-radius:0;border-bottom-right-radius:0}._button--neighbor-location_both_1wlhb_gg_._button--neighbor-location_both_1wlhb_gg_{border-radius:0;margin-left:-1px}._button--neighbor-location_left_14je2_gg_._button--neighbor-location_left_14je2_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}._button--neighbor-location_both_1wlhb_gg_[class*=button--theme_primary-]{border-left-color:hsla(0,0%,100%,.5)}._button--neighbor-location_both_1wlhb_gg_._button--theme_primary-invert_13f60_gg_{border-left-color:rgba(0,0,0,.5)}._button--neighbor-location_left_14je2_gg_[class*=button--theme_primary-]{border-left-color:hsla(0,0%,100%,.5)}._button--neighbor-location_left_14je2_gg_._button--theme_primary-invert_13f60_gg_{border-left-color:rgba(0,0,0,.5)}");
}

@@ -61,3 +61,3 @@ })("@semcore/button/lib/button.style.css", "@semcore/button/lib/button-media.style.css");

function block() {
return '_button_grgqw_gg_';
return '_button_1yj4n_gg_';
}

@@ -67,7 +67,7 @@

return {
"s": "_button--size_s_174dz_gg_",
"m": "_button--size_m_1n3ei_gg_",
"l": "_button--size_l_1vrlc_gg_",
"xl": "_button--size_xl_5e6db_gg_"
}[value || 'block'];
"s": "_button--size_s_1odu4_gg_",
"m": "_button--size_m_15tyd_gg_",
"l": "_button--size_l_89bo3_gg_",
"xl": "_button--size_xl_mnmiq_gg_"
}[value !== undefined ? value : 'block'];
};

@@ -77,14 +77,14 @@

return {
"primary-info": "_button--theme_primary-info_1yqea_gg_",
"primary-success": "_button--theme_primary-success_e0ll4_gg_",
"primary-warning": "_button--theme_primary-warning_qbwdk_gg_",
"primary-danger": "_button--theme_primary-danger_19d8b_gg_",
"primary-invert": "_button--theme_primary-invert_1kom5_gg_",
"secondary-muted": "_button--theme_secondary-muted_1v7sv_gg_",
"secondary-info": "_button--theme_secondary-info_8d2cq_gg_",
"secondary-invert": "_button--theme_secondary-invert_vg3ug_gg_",
"tertiary-info": "_button--theme_tertiary-info_dplmw_gg_",
"tertiary-muted": "_button--theme_tertiary-muted_f23zk_gg_",
"tertiary-invert": "_button--theme_tertiary-invert_1w12b_gg_"
}[value || 'block'];
"primary-info": "_button--theme_primary-info_b84lj_gg_",
"primary-success": "_button--theme_primary-success_2hr80_gg_",
"primary-warning": "_button--theme_primary-warning_92g84_gg_",
"primary-danger": "_button--theme_primary-danger_1qmog_gg_",
"primary-invert": "_button--theme_primary-invert_13f60_gg_",
"secondary-muted": "_button--theme_secondary-muted_1dycp_gg_",
"secondary-info": "_button--theme_secondary-info_1vvc1_gg_",
"secondary-invert": "_button--theme_secondary-invert_e6np0_gg_",
"tertiary-info": "_button--theme_tertiary-info_p8g01_gg_",
"tertiary-muted": "_button--theme_tertiary-muted_3j9mf_gg_",
"tertiary-invert": "_button--theme_tertiary-invert_8ismf_gg_"
}[value !== undefined ? value : 'block'];
};

@@ -94,4 +94,4 @@

return {
"block": "_button--active_1xu3f_gg_"
}[value || 'block'];
"block": "_button--active_1gkna_gg_"
}[value !== undefined ? value : 'block'];
};

@@ -101,4 +101,4 @@

return {
"block": "_button--disabled_1n8ot_gg_"
}[value || 'block'];
"block": "_button--disabled_1bpug_gg_"
}[value !== undefined ? value : 'block'];
};

@@ -108,4 +108,4 @@

return {
"block": "_button--keyboard-focused_1tiff_gg_"
}[value || 'block'];
"block": "_button--keyboard-focused_605qo_gg_"
}[value !== undefined ? value : 'block'];
};

@@ -115,14 +115,14 @@

return {
"right": "_button--neighbor-location_right_bcn5j_gg_",
"both": "_button--neighbor-location_both_1fc16_gg_",
"left": "_button--neighbor-location_left_1g28f_gg_"
}[value || 'block'];
"right": "_button--neighbor-location_right_mvhio_gg_",
"both": "_button--neighbor-location_both_1wlhb_gg_",
"left": "_button--neighbor-location_left_14je2_gg_"
}[value !== undefined ? value : 'block'];
};
function spin() {
return '_button__spin_z788k_gg_';
return '_button__spin_nodvf_gg_';
}
function inner() {
return '_button__inner_1evrb_gg_';
return '_button__inner_xmb5o_gg_';
}

@@ -132,12 +132,12 @@

return {
"block": "_button__inner--loading_1221k_gg_"
}[value || 'block'];
"block": "_button__inner--loading_kslf1_gg_"
}[value !== undefined ? value : 'block'];
};
function additional() {
return '_button__additional_1slv5_gg_';
return '_button__additional_53lgm_gg_';
}
function text() {
return '_button__text_5hyfk_gg_';
return '_button__text_h0ssp_gg_';
}

@@ -144,0 +144,0 @@

@@ -62,3 +62,3 @@ 'use strict';

if (_path || _pathMedia) {
injectStyle("._button_grgqw_gg_{position:relative;display:inline-block;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;padding:0;margin:0;white-space:nowrap;font-family:inherit;font-weight:400;line-height:normal;text-decoration:none;text-align:center;vertical-align:middle;border:1px solid transparent;color:#666;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}._button_grgqw_gg_::-moz-focus-inner{padding:0;border:none}._button_grgqw_gg_:active,._button_grgqw_gg_:focus,._button_grgqw_gg_:hover{outline:0;text-decoration:none}._button__spin_z788k_gg_{position:absolute;top:0;left:0;width:100%;height:100%;display:-webkit-box;display:flex}._button__inner_1evrb_gg_{display:-webkit-inline-box;display:inline-flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;height:100%;width:100%}._button__inner--loading_1221k_gg_{visibility:hidden}._button__additional_1slv5_gg_{display:-webkit-inline-box;display:inline-flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center}._button__text_5hyfk_gg_{display:-webkit-inline-box;display:inline-flex;line-height:1}._button--size_s_174dz_gg_{height:18px;min-width:18px;border-radius:2px;font-size:10px}._button--size_s_174dz_gg_ ._button__text_5hyfk_gg_{margin-left:4px;margin-right:4px}._button--size_s_174dz_gg_ ._button__additional_1slv5_gg_:not(:only-child):first-child{margin-left:4px}._button--size_s_174dz_gg_ ._button__additional_1slv5_gg_:not(:only-child):last-child{margin-right:4px}._button--size_s_174dz_gg_ ._button__additional_1slv5_gg_:only-child{margin-left:-2px;margin-right:-2px}._button--size_m_1n3ei_gg_{height:26px;min-width:26px;border-radius:3px;font-size:12px}._button--size_m_1n3ei_gg_ ._button__text_5hyfk_gg_{margin-left:8px;margin-right:8px}._button--size_m_1n3ei_gg_ ._button__additional_1slv5_gg_:not(:only-child):first-child{margin-left:8px}._button--size_m_1n3ei_gg_ ._button__additional_1slv5_gg_:not(:only-child):last-child{margin-right:8px}._button--size_m_1n3ei_gg_ ._button__additional_1slv5_gg_:only-child{margin-left:-4px;margin-right:-4px}._button--size_l_1vrlc_gg_{height:32px;min-width:32px;border-radius:4px;font-size:14px}._button--size_l_1vrlc_gg_ ._button__text_5hyfk_gg_{margin-left:8px;margin-right:8px}._button--size_l_1vrlc_gg_ ._button__additional_1slv5_gg_:not(:only-child):first-child{margin-left:8px}._button--size_l_1vrlc_gg_ ._button__additional_1slv5_gg_:not(:only-child):last-child{margin-right:8px}._button--size_l_1vrlc_gg_ ._button__additional_1slv5_gg_:only-child{margin-left:-4px;margin-right:-4px}._button--size_xl_5e6db_gg_{height:42px;min-width:42px;border-radius:5px;font-size:16px}._button--size_xl_5e6db_gg_ ._button__text_5hyfk_gg_{margin-left:12px;margin-right:12px}._button--size_xl_5e6db_gg_ ._button__additional_1slv5_gg_:not(:only-child):first-child{margin-left:12px}._button--size_xl_5e6db_gg_ ._button__additional_1slv5_gg_:not(:only-child):last-child{margin-right:12px}._button--size_xl_5e6db_gg_ ._button__additional_1slv5_gg_:only-child{margin-left:-6px;margin-right:-6px}._button--theme_primary-info_1yqea_gg_{color:#fff;background-color:#2b94e1}._button--theme_primary-info_1yqea_gg_:hover{background-color:#0071bc}._button--theme_primary-info_1yqea_gg_._button--active_1xu3f_gg_,._button--theme_primary-info_1yqea_gg_:active{background-color:#006bb3}._button--theme_primary-success_e0ll4_gg_{color:#fff;background-color:#4fae33}._button--theme_primary-success_e0ll4_gg_:hover{background-color:#1d9c00}._button--theme_primary-success_e0ll4_gg_._button--active_1xu3f_gg_,._button--theme_primary-success_e0ll4_gg_:active{background-color:#1c9400}._button--theme_primary-warning_qbwdk_gg_{background-color:#ff7f00;color:#fff}._button--theme_primary-warning_qbwdk_gg_:hover{background-color:#c60}._button--theme_primary-warning_qbwdk_gg_._button--active_1xu3f_gg_,._button--theme_primary-warning_qbwdk_gg_:active{background-color:#c26100}._button--theme_primary-danger_19d8b_gg_{background-color:#ed2d2d;color:#fff}._button--theme_primary-danger_19d8b_gg_:hover{background-color:#d00000}._button--theme_primary-danger_19d8b_gg_._button--active_1xu3f_gg_,._button--theme_primary-danger_19d8b_gg_:active{background-color:#c60000}._button--theme_primary-invert_1kom5_gg_{background-color:#fff;color:#333}._button--theme_primary-invert_1kom5_gg_:hover{background-color:#eee}._button--theme_primary-invert_1kom5_gg_._button--active_1xu3f_gg_,._button--theme_primary-invert_1kom5_gg_:active{background-color:#e4e1e1}._button--theme_secondary-muted_1v7sv_gg_{color:#666;border-color:#a6b0b3;background-color:rgba(166,176,179,.1)}._button--theme_secondary-muted_1v7sv_gg_:hover{background-color:rgba(166,176,179,.2)}._button--theme_secondary-muted_1v7sv_gg_._button--active_1xu3f_gg_,._button--theme_secondary-muted_1v7sv_gg_:active{background-color:rgba(166,176,179,.3)}._button--theme_secondary-info_8d2cq_gg_{background-color:rgba(43,148,225,.05);color:#2b94e1;border-color:#2b94e1}._button--theme_secondary-info_8d2cq_gg_:hover{background-color:rgba(0,113,188,.2)}._button--theme_secondary-info_8d2cq_gg_._button--active_1xu3f_gg_,._button--theme_secondary-info_8d2cq_gg_:active{background-color:rgba(0,113,188,.3)}._button--theme_secondary-invert_vg3ug_gg_{background-color:hsla(0,0%,100%,.05);color:#fff;border-color:#fff}._button--theme_secondary-invert_vg3ug_gg_:hover{background-color:hsla(0,0%,100%,.2)}._button--theme_secondary-invert_vg3ug_gg_._button--active_1xu3f_gg_,._button--theme_secondary-invert_vg3ug_gg_:active{background-color:hsla(0,0%,100%,.3)}._button--theme_tertiary-info_dplmw_gg_{color:#0071bc;background-color:transparent}._button--theme_tertiary-info_dplmw_gg_:hover{background-color:rgba(43,148,225,.2)}._button--theme_tertiary-info_dplmw_gg_._button--active_1xu3f_gg_,._button--theme_tertiary-info_dplmw_gg_:active{background-color:rgba(43,148,225,.3)}._button--theme_tertiary-muted_f23zk_gg_{color:#666;background-color:transparent}._button--theme_tertiary-muted_f23zk_gg_:hover{background-color:rgba(166,176,179,.2)}._button--theme_tertiary-muted_f23zk_gg_._button--active_1xu3f_gg_,._button--theme_tertiary-muted_f23zk_gg_:active{background-color:rgba(166,176,179,.3)}._button--theme_tertiary-invert_1w12b_gg_{color:#fff;background-color:transparent}._button--theme_tertiary-invert_1w12b_gg_:hover{background-color:hsla(0,0%,100%,.2)}._button--theme_tertiary-invert_1w12b_gg_._button--active_1xu3f_gg_,._button--theme_tertiary-invert_1w12b_gg_:active{background-color:hsla(0,0%,100%,.3)}._button--disabled_1n8ot_gg_{opacity:.3;cursor:default;pointer-events:none}._button--keyboard-focused_1tiff_gg_{box-shadow:0 0 0 3px rgba(43,148,225,.3)}._button--neighbor-location_right_bcn5j_gg_._button--neighbor-location_right_bcn5j_gg_{border-top-right-radius:0;border-bottom-right-radius:0}._button--neighbor-location_both_1fc16_gg_._button--neighbor-location_both_1fc16_gg_{border-radius:0;margin-left:-1px}._button--neighbor-location_left_1g28f_gg_._button--neighbor-location_left_1g28f_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}._button--neighbor-location_both_1fc16_gg_[class*=button--theme_primary-]{border-left-color:hsla(0,0%,100%,.5)}._button--neighbor-location_both_1fc16_gg_._button--theme_primary-invert_1kom5_gg_{border-left-color:rgba(0,0,0,.5)}._button--neighbor-location_left_1g28f_gg_[class*=button--theme_primary-]{border-left-color:hsla(0,0%,100%,.5)}._button--neighbor-location_left_1g28f_gg_._button--theme_primary-invert_1kom5_gg_{border-left-color:rgba(0,0,0,.5)}");
injectStyle("._button_1yj4n_gg_{position:relative;display:inline-block;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;padding:0;margin:0;white-space:nowrap;font-family:inherit;font-weight:400;line-height:normal;text-decoration:none;text-align:center;vertical-align:middle;border:1px solid transparent;color:#666;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}._button_1yj4n_gg_::-moz-focus-inner{padding:0;border:none}._button_1yj4n_gg_:active,._button_1yj4n_gg_:focus,._button_1yj4n_gg_:hover{outline:0;text-decoration:none}._button__spin_nodvf_gg_{position:absolute;top:0;left:0;width:100%;height:100%;display:-webkit-box;display:flex}._button__inner_xmb5o_gg_{display:-webkit-inline-box;display:inline-flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;height:100%;width:100%}._button__inner--loading_kslf1_gg_{visibility:hidden}._button__additional_53lgm_gg_{display:-webkit-inline-box;display:inline-flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center}._button__text_h0ssp_gg_{display:-webkit-inline-box;display:inline-flex;line-height:1}._button--size_s_1odu4_gg_{height:18px;min-width:18px;border-radius:2px;font-size:10px}._button--size_s_1odu4_gg_ ._button__text_h0ssp_gg_{margin-left:4px;margin-right:4px}._button--size_s_1odu4_gg_ ._button__additional_53lgm_gg_:not(:only-child):first-child{margin-left:4px}._button--size_s_1odu4_gg_ ._button__additional_53lgm_gg_:not(:only-child):last-child{margin-right:4px}._button--size_s_1odu4_gg_ ._button__additional_53lgm_gg_:only-child{margin-left:-2px;margin-right:-2px}._button--size_m_15tyd_gg_{height:26px;min-width:26px;border-radius:3px;font-size:12px}._button--size_m_15tyd_gg_ ._button__text_h0ssp_gg_{margin-left:8px;margin-right:8px}._button--size_m_15tyd_gg_ ._button__additional_53lgm_gg_:not(:only-child):first-child{margin-left:8px}._button--size_m_15tyd_gg_ ._button__additional_53lgm_gg_:not(:only-child):last-child{margin-right:8px}._button--size_m_15tyd_gg_ ._button__additional_53lgm_gg_:only-child{margin-left:-4px;margin-right:-4px}._button--size_l_89bo3_gg_{height:32px;min-width:32px;border-radius:4px;font-size:14px}._button--size_l_89bo3_gg_ ._button__text_h0ssp_gg_{margin-left:8px;margin-right:8px}._button--size_l_89bo3_gg_ ._button__additional_53lgm_gg_:not(:only-child):first-child{margin-left:8px}._button--size_l_89bo3_gg_ ._button__additional_53lgm_gg_:not(:only-child):last-child{margin-right:8px}._button--size_l_89bo3_gg_ ._button__additional_53lgm_gg_:only-child{margin-left:-4px;margin-right:-4px}._button--size_xl_mnmiq_gg_{height:42px;min-width:42px;border-radius:5px;font-size:16px}._button--size_xl_mnmiq_gg_ ._button__text_h0ssp_gg_{margin-left:12px;margin-right:12px}._button--size_xl_mnmiq_gg_ ._button__additional_53lgm_gg_:not(:only-child):first-child{margin-left:12px}._button--size_xl_mnmiq_gg_ ._button__additional_53lgm_gg_:not(:only-child):last-child{margin-right:12px}._button--size_xl_mnmiq_gg_ ._button__additional_53lgm_gg_:only-child{margin-left:-6px;margin-right:-6px}._button--theme_primary-info_b84lj_gg_{color:#fff;background-color:#2b94e1}._button--theme_primary-info_b84lj_gg_:hover{background-color:#0071bc}._button--theme_primary-info_b84lj_gg_._button--active_1gkna_gg_,._button--theme_primary-info_b84lj_gg_:active{background-color:#006bb3}._button--theme_primary-success_2hr80_gg_{color:#fff;background-color:#4fae33}._button--theme_primary-success_2hr80_gg_:hover{background-color:#1d9c00}._button--theme_primary-success_2hr80_gg_._button--active_1gkna_gg_,._button--theme_primary-success_2hr80_gg_:active{background-color:#1c9400}._button--theme_primary-warning_92g84_gg_{background-color:#ff7f00;color:#fff}._button--theme_primary-warning_92g84_gg_:hover{background-color:#c60}._button--theme_primary-warning_92g84_gg_._button--active_1gkna_gg_,._button--theme_primary-warning_92g84_gg_:active{background-color:#c26100}._button--theme_primary-danger_1qmog_gg_{background-color:#ed2d2d;color:#fff}._button--theme_primary-danger_1qmog_gg_:hover{background-color:#d00000}._button--theme_primary-danger_1qmog_gg_._button--active_1gkna_gg_,._button--theme_primary-danger_1qmog_gg_:active{background-color:#c60000}._button--theme_primary-invert_13f60_gg_{background-color:#fff;color:#333}._button--theme_primary-invert_13f60_gg_:hover{background-color:#eee}._button--theme_primary-invert_13f60_gg_._button--active_1gkna_gg_,._button--theme_primary-invert_13f60_gg_:active{background-color:#e4e1e1}._button--theme_secondary-muted_1dycp_gg_{color:#666;border-color:#a6b0b3;background-color:rgba(166,176,179,.1)}._button--theme_secondary-muted_1dycp_gg_:hover{background-color:rgba(166,176,179,.2)}._button--theme_secondary-muted_1dycp_gg_._button--active_1gkna_gg_,._button--theme_secondary-muted_1dycp_gg_:active{background-color:rgba(166,176,179,.3)}._button--theme_secondary-info_1vvc1_gg_{background-color:rgba(43,148,225,.05);color:#2b94e1;border-color:#2b94e1}._button--theme_secondary-info_1vvc1_gg_:hover{background-color:rgba(0,113,188,.2)}._button--theme_secondary-info_1vvc1_gg_._button--active_1gkna_gg_,._button--theme_secondary-info_1vvc1_gg_:active{background-color:rgba(0,113,188,.3)}._button--theme_secondary-invert_e6np0_gg_{background-color:hsla(0,0%,100%,.05);color:#fff;border-color:#fff}._button--theme_secondary-invert_e6np0_gg_:hover{background-color:hsla(0,0%,100%,.2)}._button--theme_secondary-invert_e6np0_gg_._button--active_1gkna_gg_,._button--theme_secondary-invert_e6np0_gg_:active{background-color:hsla(0,0%,100%,.3)}._button--theme_tertiary-info_p8g01_gg_{color:#0071bc;background-color:transparent}._button--theme_tertiary-info_p8g01_gg_:hover{background-color:rgba(43,148,225,.2)}._button--theme_tertiary-info_p8g01_gg_._button--active_1gkna_gg_,._button--theme_tertiary-info_p8g01_gg_:active{background-color:rgba(43,148,225,.3)}._button--theme_tertiary-muted_3j9mf_gg_{color:#666;background-color:transparent}._button--theme_tertiary-muted_3j9mf_gg_:hover{background-color:rgba(166,176,179,.2)}._button--theme_tertiary-muted_3j9mf_gg_._button--active_1gkna_gg_,._button--theme_tertiary-muted_3j9mf_gg_:active{background-color:rgba(166,176,179,.3)}._button--theme_tertiary-invert_8ismf_gg_{color:#fff;background-color:transparent}._button--theme_tertiary-invert_8ismf_gg_:hover{background-color:hsla(0,0%,100%,.2)}._button--theme_tertiary-invert_8ismf_gg_._button--active_1gkna_gg_,._button--theme_tertiary-invert_8ismf_gg_:active{background-color:hsla(0,0%,100%,.3)}._button--disabled_1bpug_gg_{opacity:.3;cursor:default;pointer-events:none}._button--keyboard-focused_605qo_gg_{box-shadow:0 0 0 3px rgba(43,148,225,.3)}._button--neighbor-location_right_mvhio_gg_._button--neighbor-location_right_mvhio_gg_{border-top-right-radius:0;border-bottom-right-radius:0}._button--neighbor-location_both_1wlhb_gg_._button--neighbor-location_both_1wlhb_gg_{border-radius:0;margin-left:-1px}._button--neighbor-location_left_14je2_gg_._button--neighbor-location_left_14je2_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}._button--neighbor-location_both_1wlhb_gg_[class*=button--theme_primary-]{border-left-color:hsla(0,0%,100%,.5)}._button--neighbor-location_both_1wlhb_gg_._button--theme_primary-invert_13f60_gg_{border-left-color:rgba(0,0,0,.5)}._button--neighbor-location_left_14je2_gg_[class*=button--theme_primary-]{border-left-color:hsla(0,0%,100%,.5)}._button--neighbor-location_left_14je2_gg_._button--theme_primary-invert_13f60_gg_{border-left-color:rgba(0,0,0,.5)}");
}

@@ -68,3 +68,3 @@ })("@semcore/button/lib/button.style.css", "@semcore/button/lib/button-media.style.css");

function block() {
return '_button_grgqw_gg_';
return '_button_1yj4n_gg_';
}

@@ -74,7 +74,7 @@

return {
"s": "_button--size_s_174dz_gg_",
"m": "_button--size_m_1n3ei_gg_",
"l": "_button--size_l_1vrlc_gg_",
"xl": "_button--size_xl_5e6db_gg_"
}[value || 'block'];
"s": "_button--size_s_1odu4_gg_",
"m": "_button--size_m_15tyd_gg_",
"l": "_button--size_l_89bo3_gg_",
"xl": "_button--size_xl_mnmiq_gg_"
}[value !== undefined ? value : 'block'];
};

@@ -84,14 +84,14 @@

return {
"primary-info": "_button--theme_primary-info_1yqea_gg_",
"primary-success": "_button--theme_primary-success_e0ll4_gg_",
"primary-warning": "_button--theme_primary-warning_qbwdk_gg_",
"primary-danger": "_button--theme_primary-danger_19d8b_gg_",
"primary-invert": "_button--theme_primary-invert_1kom5_gg_",
"secondary-muted": "_button--theme_secondary-muted_1v7sv_gg_",
"secondary-info": "_button--theme_secondary-info_8d2cq_gg_",
"secondary-invert": "_button--theme_secondary-invert_vg3ug_gg_",
"tertiary-info": "_button--theme_tertiary-info_dplmw_gg_",
"tertiary-muted": "_button--theme_tertiary-muted_f23zk_gg_",
"tertiary-invert": "_button--theme_tertiary-invert_1w12b_gg_"
}[value || 'block'];
"primary-info": "_button--theme_primary-info_b84lj_gg_",
"primary-success": "_button--theme_primary-success_2hr80_gg_",
"primary-warning": "_button--theme_primary-warning_92g84_gg_",
"primary-danger": "_button--theme_primary-danger_1qmog_gg_",
"primary-invert": "_button--theme_primary-invert_13f60_gg_",
"secondary-muted": "_button--theme_secondary-muted_1dycp_gg_",
"secondary-info": "_button--theme_secondary-info_1vvc1_gg_",
"secondary-invert": "_button--theme_secondary-invert_e6np0_gg_",
"tertiary-info": "_button--theme_tertiary-info_p8g01_gg_",
"tertiary-muted": "_button--theme_tertiary-muted_3j9mf_gg_",
"tertiary-invert": "_button--theme_tertiary-invert_8ismf_gg_"
}[value !== undefined ? value : 'block'];
};

@@ -101,4 +101,4 @@

return {
"block": "_button--active_1xu3f_gg_"
}[value || 'block'];
"block": "_button--active_1gkna_gg_"
}[value !== undefined ? value : 'block'];
};

@@ -108,4 +108,4 @@

return {
"block": "_button--disabled_1n8ot_gg_"
}[value || 'block'];
"block": "_button--disabled_1bpug_gg_"
}[value !== undefined ? value : 'block'];
};

@@ -115,4 +115,4 @@

return {
"block": "_button--keyboard-focused_1tiff_gg_"
}[value || 'block'];
"block": "_button--keyboard-focused_605qo_gg_"
}[value !== undefined ? value : 'block'];
};

@@ -122,14 +122,14 @@

return {
"right": "_button--neighbor-location_right_bcn5j_gg_",
"both": "_button--neighbor-location_both_1fc16_gg_",
"left": "_button--neighbor-location_left_1g28f_gg_"
}[value || 'block'];
"right": "_button--neighbor-location_right_mvhio_gg_",
"both": "_button--neighbor-location_both_1wlhb_gg_",
"left": "_button--neighbor-location_left_14je2_gg_"
}[value !== undefined ? value : 'block'];
};
function spin() {
return '_button__spin_z788k_gg_';
return '_button__spin_nodvf_gg_';
}
function inner() {
return '_button__inner_1evrb_gg_';
return '_button__inner_xmb5o_gg_';
}

@@ -139,12 +139,12 @@

return {
"block": "_button__inner--loading_1221k_gg_"
}[value || 'block'];
"block": "_button__inner--loading_kslf1_gg_"
}[value !== undefined ? value : 'block'];
};
function additional() {
return '_button__additional_1slv5_gg_';
return '_button__additional_53lgm_gg_';
}
function text() {
return '_button__text_5hyfk_gg_';
return '_button__text_h0ssp_gg_';
}

@@ -151,0 +151,0 @@

{
"name": "@semcore/button",
"description": "SEMRush Button Component",
"version": "2.4.1",
"version": "2.5.0",
"main": "lib/index.js",

@@ -15,6 +15,6 @@ "module": "lib/index.es.js",

"dependencies": {
"@semcore/utils": "^3.5",
"@semcore/utils": "^3.8",
"@semcore/spin": "^2.2",
"@semcore/neighbor-location": "^1.1",
"@semcore/flex-box": "^3.4"
"@semcore/flex-box": "^3.5"
},

@@ -21,0 +21,0 @@ "jest": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc