@semcore/button 4.1.0 → 4.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/lib/cjs/Button.js +27 -27
- package/lib/es6/Button.js +27 -27
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
+
## [4.2.1] - 2022-10-17
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Version patch update due to children dependencies update (`@semcore/utils` [3.39.0 ~> 3.39.0]).
|
|
10
|
+
|
|
11
|
+
## [4.2.0] - 2022-10-10
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- Added support for React 18 🔥
|
|
16
|
+
|
|
5
17
|
## [4.1.0] - 2022-10-07
|
|
6
18
|
|
|
7
19
|
### Changed
|
package/lib/cjs/Button.js
CHANGED
|
@@ -58,36 +58,36 @@ var style = (
|
|
|
58
58
|
/*__reshadow_css_start__*/
|
|
59
59
|
_core.sstyled.insert(
|
|
60
60
|
/*__inner_css_start__*/
|
|
61
|
-
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.
|
|
61
|
+
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SButton_15gds_gg_ {\n position: relative;\n display: inline-block;\n align-items: center;\n justify-content: center;\n padding: 0;\n margin: 0;\n white-space: nowrap;\n font-family: Inter, sans-serif;\n line-height: normal;\n text-decoration: none;\n text-align: center;\n vertical-align: middle;\n border: 1px solid transparent;\n outline: 0;\n box-shadow: none;\n cursor: pointer;\n box-sizing: border-box;\n overflow: visible;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n touch-action: manipulation;\n -webkit-tap-highlight-color: transparent;\n font-weight: 500;\n color: #6c6e79\n}\n\n.___SButton_15gds_gg_::-moz-focus-inner {\n padding: 0;\n border: none;\n }\n\n.___SButton_15gds_gg_:active,\n .___SButton_15gds_gg_:hover,\n .___SButton_15gds_gg_:focus {\n outline: 0;\n text-decoration: none;\n }\n\n.___SButton_15gds_gg_.__disabled_15gds_gg_ {\n opacity: 0.3;\n cursor: default;\n pointer-events: none; /* Disable link interactions */\n}\n\n.___SButton_15gds_gg_.__keyboardFocused_15gds_gg_ {\n box-shadow: 0 0 0 3px rgba(0, 143, 248, 0.2);\n z-index: 1;\n}\n\n.___SButton_15gds_gg_._size_m_15gds_gg_ {\n height: 28px;\n min-width: 28px;\n border-radius: 6px;\n font-size: 14px;\n}\n\n.___SButton_15gds_gg_._size_l_15gds_gg_ {\n height: 40px;\n min-width: 40px;\n border-radius: 6px;\n font-size: 16px;\n}\n\n.___SButton_15gds_gg_._theme_primary-info_15gds_gg_ {\n color: #ffffff;\n background-color: #008ff8\n}\n\n.___SButton_15gds_gg_._theme_primary-info_15gds_gg_:hover {\n background-color: #006dca;\n }\n\n.___SButton_15gds_gg_._theme_primary-info_15gds_gg_:active,\n .___SButton_15gds_gg_._theme_primary-info_15gds_gg_.__active_15gds_gg_ {\n background-color: #044792;\n }\n\n.___SButton_15gds_gg_._theme_primary-success_15gds_gg_ {\n color: #ffffff;\n background-color: #009f81\n}\n\n.___SButton_15gds_gg_._theme_primary-success_15gds_gg_:hover {\n background-color: #007c65;\n }\n\n.___SButton_15gds_gg_._theme_primary-success_15gds_gg_:active,\n .___SButton_15gds_gg_._theme_primary-success_15gds_gg_.__active_15gds_gg_ {\n background-color: #055345;\n }\n\n.___SButton_15gds_gg_._theme_primary-warning_15gds_gg_ {\n background-color: #ff642d;\n color: #ffffff\n}\n\n.___SButton_15gds_gg_._theme_primary-warning_15gds_gg_:hover {\n background-color: #c33909;\n }\n\n.___SButton_15gds_gg_._theme_primary-warning_15gds_gg_:active,\n .___SButton_15gds_gg_._theme_primary-warning_15gds_gg_.__active_15gds_gg_ {\n background-color: #8b1500;\n }\n\n.___SButton_15gds_gg_._theme_primary-danger_15gds_gg_ {\n background-color: #ff4953;\n color: #ffffff\n}\n\n.___SButton_15gds_gg_._theme_primary-danger_15gds_gg_:hover {\n background-color: #d1002f;\n }\n\n.___SButton_15gds_gg_._theme_primary-danger_15gds_gg_:active,\n .___SButton_15gds_gg_._theme_primary-danger_15gds_gg_.__active_15gds_gg_ {\n background-color: #8e0016;\n }\n\n.___SButton_15gds_gg_._theme_primary-invert_15gds_gg_ {\n background-color: #fff;\n color: #191b23\n}\n\n.___SButton_15gds_gg_._theme_primary-invert_15gds_gg_:hover {\n background-color: #f4f5f9;\n }\n\n.___SButton_15gds_gg_._theme_primary-invert_15gds_gg_:active,\n .___SButton_15gds_gg_._theme_primary-invert_15gds_gg_.__active_15gds_gg_ {\n background-color: #e0e1e9;\n }\n\n.___SButton_15gds_gg_._theme_secondary-muted_15gds_gg_ {\n color: #6c6e79;\n border-color: #c4c7cf;\n background-color: rgba(138, 142, 155, 0.1)\n}\n\n.___SButton_15gds_gg_._theme_secondary-muted_15gds_gg_:hover {\n background-color: rgba(138, 142, 155, 0.2);\n color: #191b23;\n }\n\n.___SButton_15gds_gg_._theme_secondary-muted_15gds_gg_:active,\n .___SButton_15gds_gg_._theme_secondary-muted_15gds_gg_.__active_15gds_gg_ {\n background-color: rgba(138, 142, 155, 0.3);\n color: #191b23;\n }\n\n.___SButton_15gds_gg_._theme_secondary-info_15gds_gg_ {\n background-color: rgba(0, 143, 248, 0.05);\n color: #008ff8;\n border-color: #008ff8\n}\n\n.___SButton_15gds_gg_._theme_secondary-info_15gds_gg_:hover {\n background-color: rgba(0, 109, 202, 0.2);\n }\n\n.___SButton_15gds_gg_._theme_secondary-info_15gds_gg_:active,\n .___SButton_15gds_gg_._theme_secondary-info_15gds_gg_.__active_15gds_gg_ {\n background-color: rgba(0, 109, 202, 0.3);\n }\n\n.___SButton_15gds_gg_._theme_secondary-invert_15gds_gg_ {\n background-color: rgba(255, 255, 255, 0.05);\n color: #fff;\n border-color: #fff\n}\n\n.___SButton_15gds_gg_._theme_secondary-invert_15gds_gg_:hover {\n background-color: rgba(255, 255, 255, 0.1);\n }\n\n.___SButton_15gds_gg_._theme_secondary-invert_15gds_gg_:active,\n .___SButton_15gds_gg_._theme_secondary-invert_15gds_gg_.__active_15gds_gg_ {\n background-color: rgba(255, 255, 255, 0.3);\n }\n\n.___SButton_15gds_gg_._theme_tertiary-info_15gds_gg_ {\n color: #006dca;\n background-color: transparent\n}\n\n.___SButton_15gds_gg_._theme_tertiary-info_15gds_gg_:hover {\n background-color: rgba(0, 143, 248, 0.2);\n }\n\n.___SButton_15gds_gg_._theme_tertiary-info_15gds_gg_:active,\n .___SButton_15gds_gg_._theme_tertiary-info_15gds_gg_.__active_15gds_gg_ {\n background-color: rgba(0, 143, 248, 0.3);\n }\n\n.___SButton_15gds_gg_._theme_tertiary-muted_15gds_gg_ {\n color: #6c6e79;\n background-color: transparent\n}\n\n.___SButton_15gds_gg_._theme_tertiary-muted_15gds_gg_:hover {\n background-color: rgba(138, 142, 155, 0.2);\n color: #191b23;\n }\n\n.___SButton_15gds_gg_._theme_tertiary-muted_15gds_gg_:active,\n .___SButton_15gds_gg_._theme_tertiary-muted_15gds_gg_.__active_15gds_gg_ {\n background-color: rgba(138, 142, 155, 0.3);\n color: #191b23;\n }\n\n.___SButton_15gds_gg_._theme_tertiary-invert_15gds_gg_ {\n color: #fff;\n background-color: transparent\n}\n\n.___SButton_15gds_gg_._theme_tertiary-invert_15gds_gg_:hover {\n background-color: rgba(255, 255, 255, 0.1);\n }\n\n.___SButton_15gds_gg_._theme_tertiary-invert_15gds_gg_:active,\n .___SButton_15gds_gg_._theme_tertiary-invert_15gds_gg_.__active_15gds_gg_ {\n background-color: rgba(255, 255, 255, 0.3);\n }\n\n.___SButton_15gds_gg_._neighborLocation_right_15gds_gg_ {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.___SButton_15gds_gg_._neighborLocation_both_15gds_gg_ {\n border-radius: 0;\n margin-left: -1px\n}\n\n.___SButton_15gds_gg_._neighborLocation_both_15gds_gg_._theme_primary-info_15gds_gg_,\n .___SButton_15gds_gg_._neighborLocation_both_15gds_gg_._theme_primary-success_15gds_gg_,\n .___SButton_15gds_gg_._neighborLocation_both_15gds_gg_._theme_primary-warning_15gds_gg_,\n .___SButton_15gds_gg_._neighborLocation_both_15gds_gg_._theme_primary-danger_15gds_gg_ {\n border-left-color: rgba(255, 255, 255, 0.5);\n }\n\n.___SButton_15gds_gg_._neighborLocation_both_15gds_gg_._theme_primary-invert_15gds_gg_ {\n border-left-color: rgba(0, 0, 0, 0.5);\n }\n\n.___SButton_15gds_gg_._neighborLocation_left_15gds_gg_ {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n margin-left: -1px\n}\n\n.___SButton_15gds_gg_._neighborLocation_left_15gds_gg_._theme_primary-info_15gds_gg_,\n .___SButton_15gds_gg_._neighborLocation_left_15gds_gg_._theme_primary-success_15gds_gg_,\n .___SButton_15gds_gg_._neighborLocation_left_15gds_gg_._theme_primary-warning_15gds_gg_,\n .___SButton_15gds_gg_._neighborLocation_left_15gds_gg_._theme_primary-danger_15gds_gg_ {\n border-left-color: rgba(255, 255, 255, 0.5);\n }\n\n.___SButton_15gds_gg_._neighborLocation_left_15gds_gg_._theme_primary-invert_15gds_gg_ {\n border-left-color: rgba(0, 0, 0, 0.5);\n }\n\n.___SSpin_15gds_gg_ {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n}\n\n.___SInner_15gds_gg_ {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 100%;\n}\n\n.___SInner_15gds_gg_.__loading_15gds_gg_ {\n visibility: hidden;\n}\n\n.___SText_15gds_gg_ {\n display: inline-flex;\n}\n\n.___SText_15gds_gg_._size_m_15gds_gg_ {\n margin-left: 8px;\n margin-right: 8px;\n line-height: 1.42;\n}\n\n.___SText_15gds_gg_._size_l_15gds_gg_ {\n margin-left: 12px;\n margin-right: 12px;\n line-height: 1.5;\n}\n\n.___SAddon_15gds_gg_ {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n\n.___SAddon_15gds_gg_._size_m_15gds_gg_:not(:only-child):first-child {\n margin-left: 8px;\n }\n\n.___SAddon_15gds_gg_._size_m_15gds_gg_:not(:only-child):last-child {\n margin-right: 8px;\n }\n\n.___SAddon_15gds_gg_._size_m_15gds_gg_:only-child {\n margin-left: -4px;\n margin-right: -4px;\n }\n\n.___SAddon_15gds_gg_._size_l_15gds_gg_:not(:only-child):first-child {\n margin-left: 8px;\n }\n\n.___SAddon_15gds_gg_._size_l_15gds_gg_:not(:only-child):last-child {\n margin-right: 8px;\n }\n\n.___SAddon_15gds_gg_._size_l_15gds_gg_:only-child {\n margin-left: -4px;\n margin-right: -4px;\n }\n"
|
|
62
62
|
/*__inner_css_end__*/
|
|
63
|
-
, "
|
|
63
|
+
, "15gds_gg_")
|
|
64
64
|
/*__reshadow_css_end__*/
|
|
65
65
|
, {
|
|
66
|
-
"__SButton": "
|
|
67
|
-
"_disabled": "
|
|
68
|
-
"_keyboardFocused": "
|
|
69
|
-
"_size_m": "
|
|
70
|
-
"_size_l": "
|
|
71
|
-
"_theme_primary-info": "_theme_primary-
|
|
72
|
-
"_active": "
|
|
73
|
-
"_theme_primary-success": "_theme_primary-
|
|
74
|
-
"_theme_primary-warning": "_theme_primary-
|
|
75
|
-
"_theme_primary-danger": "_theme_primary-
|
|
76
|
-
"_theme_primary-invert": "_theme_primary-
|
|
77
|
-
"_theme_secondary-muted": "_theme_secondary-
|
|
78
|
-
"_theme_secondary-info": "_theme_secondary-
|
|
79
|
-
"_theme_secondary-invert": "_theme_secondary-
|
|
80
|
-
"_theme_tertiary-info": "_theme_tertiary-
|
|
81
|
-
"_theme_tertiary-muted": "_theme_tertiary-
|
|
82
|
-
"_theme_tertiary-invert": "_theme_tertiary-
|
|
83
|
-
"_neighborLocation_right": "
|
|
84
|
-
"_neighborLocation_both": "
|
|
85
|
-
"_neighborLocation_left": "
|
|
86
|
-
"__SSpin": "
|
|
87
|
-
"__SInner": "
|
|
88
|
-
"_loading": "
|
|
89
|
-
"__SText": "
|
|
90
|
-
"__SAddon": "
|
|
66
|
+
"__SButton": "___SButton_15gds_gg_",
|
|
67
|
+
"_disabled": "__disabled_15gds_gg_",
|
|
68
|
+
"_keyboardFocused": "__keyboardFocused_15gds_gg_",
|
|
69
|
+
"_size_m": "_size_m_15gds_gg_",
|
|
70
|
+
"_size_l": "_size_l_15gds_gg_",
|
|
71
|
+
"_theme_primary-info": "_theme_primary-info_15gds_gg_",
|
|
72
|
+
"_active": "__active_15gds_gg_",
|
|
73
|
+
"_theme_primary-success": "_theme_primary-success_15gds_gg_",
|
|
74
|
+
"_theme_primary-warning": "_theme_primary-warning_15gds_gg_",
|
|
75
|
+
"_theme_primary-danger": "_theme_primary-danger_15gds_gg_",
|
|
76
|
+
"_theme_primary-invert": "_theme_primary-invert_15gds_gg_",
|
|
77
|
+
"_theme_secondary-muted": "_theme_secondary-muted_15gds_gg_",
|
|
78
|
+
"_theme_secondary-info": "_theme_secondary-info_15gds_gg_",
|
|
79
|
+
"_theme_secondary-invert": "_theme_secondary-invert_15gds_gg_",
|
|
80
|
+
"_theme_tertiary-info": "_theme_tertiary-info_15gds_gg_",
|
|
81
|
+
"_theme_tertiary-muted": "_theme_tertiary-muted_15gds_gg_",
|
|
82
|
+
"_theme_tertiary-invert": "_theme_tertiary-invert_15gds_gg_",
|
|
83
|
+
"_neighborLocation_right": "_neighborLocation_right_15gds_gg_",
|
|
84
|
+
"_neighborLocation_both": "_neighborLocation_both_15gds_gg_",
|
|
85
|
+
"_neighborLocation_left": "_neighborLocation_left_15gds_gg_",
|
|
86
|
+
"__SSpin": "___SSpin_15gds_gg_",
|
|
87
|
+
"__SInner": "___SInner_15gds_gg_",
|
|
88
|
+
"_loading": "__loading_15gds_gg_",
|
|
89
|
+
"__SText": "___SText_15gds_gg_",
|
|
90
|
+
"__SAddon": "___SAddon_15gds_gg_"
|
|
91
91
|
});
|
|
92
92
|
var MAP_USE_DEFAULT_THEME = {
|
|
93
93
|
primary: 'info',
|
package/lib/es6/Button.js
CHANGED
|
@@ -33,36 +33,36 @@ var style = (
|
|
|
33
33
|
/*__reshadow_css_start__*/
|
|
34
34
|
_sstyled.insert(
|
|
35
35
|
/*__inner_css_start__*/
|
|
36
|
-
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.
|
|
36
|
+
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SButton_15gds_gg_ {\n position: relative;\n display: inline-block;\n align-items: center;\n justify-content: center;\n padding: 0;\n margin: 0;\n white-space: nowrap;\n font-family: Inter, sans-serif;\n line-height: normal;\n text-decoration: none;\n text-align: center;\n vertical-align: middle;\n border: 1px solid transparent;\n outline: 0;\n box-shadow: none;\n cursor: pointer;\n box-sizing: border-box;\n overflow: visible;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n touch-action: manipulation;\n -webkit-tap-highlight-color: transparent;\n font-weight: 500;\n color: #6c6e79\n}\n\n.___SButton_15gds_gg_::-moz-focus-inner {\n padding: 0;\n border: none;\n }\n\n.___SButton_15gds_gg_:active,\n .___SButton_15gds_gg_:hover,\n .___SButton_15gds_gg_:focus {\n outline: 0;\n text-decoration: none;\n }\n\n.___SButton_15gds_gg_.__disabled_15gds_gg_ {\n opacity: 0.3;\n cursor: default;\n pointer-events: none; /* Disable link interactions */\n}\n\n.___SButton_15gds_gg_.__keyboardFocused_15gds_gg_ {\n box-shadow: 0 0 0 3px rgba(0, 143, 248, 0.2);\n z-index: 1;\n}\n\n.___SButton_15gds_gg_._size_m_15gds_gg_ {\n height: 28px;\n min-width: 28px;\n border-radius: 6px;\n font-size: 14px;\n}\n\n.___SButton_15gds_gg_._size_l_15gds_gg_ {\n height: 40px;\n min-width: 40px;\n border-radius: 6px;\n font-size: 16px;\n}\n\n.___SButton_15gds_gg_._theme_primary-info_15gds_gg_ {\n color: #ffffff;\n background-color: #008ff8\n}\n\n.___SButton_15gds_gg_._theme_primary-info_15gds_gg_:hover {\n background-color: #006dca;\n }\n\n.___SButton_15gds_gg_._theme_primary-info_15gds_gg_:active,\n .___SButton_15gds_gg_._theme_primary-info_15gds_gg_.__active_15gds_gg_ {\n background-color: #044792;\n }\n\n.___SButton_15gds_gg_._theme_primary-success_15gds_gg_ {\n color: #ffffff;\n background-color: #009f81\n}\n\n.___SButton_15gds_gg_._theme_primary-success_15gds_gg_:hover {\n background-color: #007c65;\n }\n\n.___SButton_15gds_gg_._theme_primary-success_15gds_gg_:active,\n .___SButton_15gds_gg_._theme_primary-success_15gds_gg_.__active_15gds_gg_ {\n background-color: #055345;\n }\n\n.___SButton_15gds_gg_._theme_primary-warning_15gds_gg_ {\n background-color: #ff642d;\n color: #ffffff\n}\n\n.___SButton_15gds_gg_._theme_primary-warning_15gds_gg_:hover {\n background-color: #c33909;\n }\n\n.___SButton_15gds_gg_._theme_primary-warning_15gds_gg_:active,\n .___SButton_15gds_gg_._theme_primary-warning_15gds_gg_.__active_15gds_gg_ {\n background-color: #8b1500;\n }\n\n.___SButton_15gds_gg_._theme_primary-danger_15gds_gg_ {\n background-color: #ff4953;\n color: #ffffff\n}\n\n.___SButton_15gds_gg_._theme_primary-danger_15gds_gg_:hover {\n background-color: #d1002f;\n }\n\n.___SButton_15gds_gg_._theme_primary-danger_15gds_gg_:active,\n .___SButton_15gds_gg_._theme_primary-danger_15gds_gg_.__active_15gds_gg_ {\n background-color: #8e0016;\n }\n\n.___SButton_15gds_gg_._theme_primary-invert_15gds_gg_ {\n background-color: #fff;\n color: #191b23\n}\n\n.___SButton_15gds_gg_._theme_primary-invert_15gds_gg_:hover {\n background-color: #f4f5f9;\n }\n\n.___SButton_15gds_gg_._theme_primary-invert_15gds_gg_:active,\n .___SButton_15gds_gg_._theme_primary-invert_15gds_gg_.__active_15gds_gg_ {\n background-color: #e0e1e9;\n }\n\n.___SButton_15gds_gg_._theme_secondary-muted_15gds_gg_ {\n color: #6c6e79;\n border-color: #c4c7cf;\n background-color: rgba(138, 142, 155, 0.1)\n}\n\n.___SButton_15gds_gg_._theme_secondary-muted_15gds_gg_:hover {\n background-color: rgba(138, 142, 155, 0.2);\n color: #191b23;\n }\n\n.___SButton_15gds_gg_._theme_secondary-muted_15gds_gg_:active,\n .___SButton_15gds_gg_._theme_secondary-muted_15gds_gg_.__active_15gds_gg_ {\n background-color: rgba(138, 142, 155, 0.3);\n color: #191b23;\n }\n\n.___SButton_15gds_gg_._theme_secondary-info_15gds_gg_ {\n background-color: rgba(0, 143, 248, 0.05);\n color: #008ff8;\n border-color: #008ff8\n}\n\n.___SButton_15gds_gg_._theme_secondary-info_15gds_gg_:hover {\n background-color: rgba(0, 109, 202, 0.2);\n }\n\n.___SButton_15gds_gg_._theme_secondary-info_15gds_gg_:active,\n .___SButton_15gds_gg_._theme_secondary-info_15gds_gg_.__active_15gds_gg_ {\n background-color: rgba(0, 109, 202, 0.3);\n }\n\n.___SButton_15gds_gg_._theme_secondary-invert_15gds_gg_ {\n background-color: rgba(255, 255, 255, 0.05);\n color: #fff;\n border-color: #fff\n}\n\n.___SButton_15gds_gg_._theme_secondary-invert_15gds_gg_:hover {\n background-color: rgba(255, 255, 255, 0.1);\n }\n\n.___SButton_15gds_gg_._theme_secondary-invert_15gds_gg_:active,\n .___SButton_15gds_gg_._theme_secondary-invert_15gds_gg_.__active_15gds_gg_ {\n background-color: rgba(255, 255, 255, 0.3);\n }\n\n.___SButton_15gds_gg_._theme_tertiary-info_15gds_gg_ {\n color: #006dca;\n background-color: transparent\n}\n\n.___SButton_15gds_gg_._theme_tertiary-info_15gds_gg_:hover {\n background-color: rgba(0, 143, 248, 0.2);\n }\n\n.___SButton_15gds_gg_._theme_tertiary-info_15gds_gg_:active,\n .___SButton_15gds_gg_._theme_tertiary-info_15gds_gg_.__active_15gds_gg_ {\n background-color: rgba(0, 143, 248, 0.3);\n }\n\n.___SButton_15gds_gg_._theme_tertiary-muted_15gds_gg_ {\n color: #6c6e79;\n background-color: transparent\n}\n\n.___SButton_15gds_gg_._theme_tertiary-muted_15gds_gg_:hover {\n background-color: rgba(138, 142, 155, 0.2);\n color: #191b23;\n }\n\n.___SButton_15gds_gg_._theme_tertiary-muted_15gds_gg_:active,\n .___SButton_15gds_gg_._theme_tertiary-muted_15gds_gg_.__active_15gds_gg_ {\n background-color: rgba(138, 142, 155, 0.3);\n color: #191b23;\n }\n\n.___SButton_15gds_gg_._theme_tertiary-invert_15gds_gg_ {\n color: #fff;\n background-color: transparent\n}\n\n.___SButton_15gds_gg_._theme_tertiary-invert_15gds_gg_:hover {\n background-color: rgba(255, 255, 255, 0.1);\n }\n\n.___SButton_15gds_gg_._theme_tertiary-invert_15gds_gg_:active,\n .___SButton_15gds_gg_._theme_tertiary-invert_15gds_gg_.__active_15gds_gg_ {\n background-color: rgba(255, 255, 255, 0.3);\n }\n\n.___SButton_15gds_gg_._neighborLocation_right_15gds_gg_ {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n\n.___SButton_15gds_gg_._neighborLocation_both_15gds_gg_ {\n border-radius: 0;\n margin-left: -1px\n}\n\n.___SButton_15gds_gg_._neighborLocation_both_15gds_gg_._theme_primary-info_15gds_gg_,\n .___SButton_15gds_gg_._neighborLocation_both_15gds_gg_._theme_primary-success_15gds_gg_,\n .___SButton_15gds_gg_._neighborLocation_both_15gds_gg_._theme_primary-warning_15gds_gg_,\n .___SButton_15gds_gg_._neighborLocation_both_15gds_gg_._theme_primary-danger_15gds_gg_ {\n border-left-color: rgba(255, 255, 255, 0.5);\n }\n\n.___SButton_15gds_gg_._neighborLocation_both_15gds_gg_._theme_primary-invert_15gds_gg_ {\n border-left-color: rgba(0, 0, 0, 0.5);\n }\n\n.___SButton_15gds_gg_._neighborLocation_left_15gds_gg_ {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0;\n margin-left: -1px\n}\n\n.___SButton_15gds_gg_._neighborLocation_left_15gds_gg_._theme_primary-info_15gds_gg_,\n .___SButton_15gds_gg_._neighborLocation_left_15gds_gg_._theme_primary-success_15gds_gg_,\n .___SButton_15gds_gg_._neighborLocation_left_15gds_gg_._theme_primary-warning_15gds_gg_,\n .___SButton_15gds_gg_._neighborLocation_left_15gds_gg_._theme_primary-danger_15gds_gg_ {\n border-left-color: rgba(255, 255, 255, 0.5);\n }\n\n.___SButton_15gds_gg_._neighborLocation_left_15gds_gg_._theme_primary-invert_15gds_gg_ {\n border-left-color: rgba(0, 0, 0, 0.5);\n }\n\n.___SSpin_15gds_gg_ {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n display: flex;\n}\n\n.___SInner_15gds_gg_ {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n height: 100%;\n width: 100%;\n}\n\n.___SInner_15gds_gg_.__loading_15gds_gg_ {\n visibility: hidden;\n}\n\n.___SText_15gds_gg_ {\n display: inline-flex;\n}\n\n.___SText_15gds_gg_._size_m_15gds_gg_ {\n margin-left: 8px;\n margin-right: 8px;\n line-height: 1.42;\n}\n\n.___SText_15gds_gg_._size_l_15gds_gg_ {\n margin-left: 12px;\n margin-right: 12px;\n line-height: 1.5;\n}\n\n.___SAddon_15gds_gg_ {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n\n.___SAddon_15gds_gg_._size_m_15gds_gg_:not(:only-child):first-child {\n margin-left: 8px;\n }\n\n.___SAddon_15gds_gg_._size_m_15gds_gg_:not(:only-child):last-child {\n margin-right: 8px;\n }\n\n.___SAddon_15gds_gg_._size_m_15gds_gg_:only-child {\n margin-left: -4px;\n margin-right: -4px;\n }\n\n.___SAddon_15gds_gg_._size_l_15gds_gg_:not(:only-child):first-child {\n margin-left: 8px;\n }\n\n.___SAddon_15gds_gg_._size_l_15gds_gg_:not(:only-child):last-child {\n margin-right: 8px;\n }\n\n.___SAddon_15gds_gg_._size_l_15gds_gg_:only-child {\n margin-left: -4px;\n margin-right: -4px;\n }\n"
|
|
37
37
|
/*__inner_css_end__*/
|
|
38
|
-
, "
|
|
38
|
+
, "15gds_gg_")
|
|
39
39
|
/*__reshadow_css_end__*/
|
|
40
40
|
, {
|
|
41
|
-
"__SButton": "
|
|
42
|
-
"_disabled": "
|
|
43
|
-
"_keyboardFocused": "
|
|
44
|
-
"_size_m": "
|
|
45
|
-
"_size_l": "
|
|
46
|
-
"_theme_primary-info": "_theme_primary-
|
|
47
|
-
"_active": "
|
|
48
|
-
"_theme_primary-success": "_theme_primary-
|
|
49
|
-
"_theme_primary-warning": "_theme_primary-
|
|
50
|
-
"_theme_primary-danger": "_theme_primary-
|
|
51
|
-
"_theme_primary-invert": "_theme_primary-
|
|
52
|
-
"_theme_secondary-muted": "_theme_secondary-
|
|
53
|
-
"_theme_secondary-info": "_theme_secondary-
|
|
54
|
-
"_theme_secondary-invert": "_theme_secondary-
|
|
55
|
-
"_theme_tertiary-info": "_theme_tertiary-
|
|
56
|
-
"_theme_tertiary-muted": "_theme_tertiary-
|
|
57
|
-
"_theme_tertiary-invert": "_theme_tertiary-
|
|
58
|
-
"_neighborLocation_right": "
|
|
59
|
-
"_neighborLocation_both": "
|
|
60
|
-
"_neighborLocation_left": "
|
|
61
|
-
"__SSpin": "
|
|
62
|
-
"__SInner": "
|
|
63
|
-
"_loading": "
|
|
64
|
-
"__SText": "
|
|
65
|
-
"__SAddon": "
|
|
41
|
+
"__SButton": "___SButton_15gds_gg_",
|
|
42
|
+
"_disabled": "__disabled_15gds_gg_",
|
|
43
|
+
"_keyboardFocused": "__keyboardFocused_15gds_gg_",
|
|
44
|
+
"_size_m": "_size_m_15gds_gg_",
|
|
45
|
+
"_size_l": "_size_l_15gds_gg_",
|
|
46
|
+
"_theme_primary-info": "_theme_primary-info_15gds_gg_",
|
|
47
|
+
"_active": "__active_15gds_gg_",
|
|
48
|
+
"_theme_primary-success": "_theme_primary-success_15gds_gg_",
|
|
49
|
+
"_theme_primary-warning": "_theme_primary-warning_15gds_gg_",
|
|
50
|
+
"_theme_primary-danger": "_theme_primary-danger_15gds_gg_",
|
|
51
|
+
"_theme_primary-invert": "_theme_primary-invert_15gds_gg_",
|
|
52
|
+
"_theme_secondary-muted": "_theme_secondary-muted_15gds_gg_",
|
|
53
|
+
"_theme_secondary-info": "_theme_secondary-info_15gds_gg_",
|
|
54
|
+
"_theme_secondary-invert": "_theme_secondary-invert_15gds_gg_",
|
|
55
|
+
"_theme_tertiary-info": "_theme_tertiary-info_15gds_gg_",
|
|
56
|
+
"_theme_tertiary-muted": "_theme_tertiary-muted_15gds_gg_",
|
|
57
|
+
"_theme_tertiary-invert": "_theme_tertiary-invert_15gds_gg_",
|
|
58
|
+
"_neighborLocation_right": "_neighborLocation_right_15gds_gg_",
|
|
59
|
+
"_neighborLocation_both": "_neighborLocation_both_15gds_gg_",
|
|
60
|
+
"_neighborLocation_left": "_neighborLocation_left_15gds_gg_",
|
|
61
|
+
"__SSpin": "___SSpin_15gds_gg_",
|
|
62
|
+
"__SInner": "___SInner_15gds_gg_",
|
|
63
|
+
"_loading": "__loading_15gds_gg_",
|
|
64
|
+
"__SText": "___SText_15gds_gg_",
|
|
65
|
+
"__SAddon": "___SAddon_15gds_gg_"
|
|
66
66
|
});
|
|
67
67
|
export var MAP_USE_DEFAULT_THEME = {
|
|
68
68
|
primary: 'info',
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/button",
|
|
3
3
|
"description": "Semrush Button Component",
|
|
4
|
-
"version": "4.1
|
|
4
|
+
"version": "4.2.1",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {
|
|
18
18
|
"@semcore/core": "^1.11",
|
|
19
|
-
"react": "16.8 -
|
|
19
|
+
"react": "16.8 - 18"
|
|
20
20
|
},
|
|
21
21
|
"jest": {
|
|
22
22
|
"preset": "@semcore/jest-preset-ui"
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"directory": "semcore/button"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@types/react": "
|
|
30
|
+
"@types/react": "18.0.21",
|
|
31
31
|
"@semcore/jest-preset-ui": "1.0.0",
|
|
32
|
-
"@semcore/icon": "
|
|
32
|
+
"@semcore/icon": "*"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "pnpm semcore-builder --source=js",
|