@semcore/button 4.0.16 → 4.0.18

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 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.0.18] - 2022-10-04
6
+
7
+ ### Changed
8
+
9
+ - Version patch update due to children dependencies update (`@semcore/utils` [3.37.1 ~> 3.37.2]).
10
+
11
+ ## [4.0.17] - 2022-09-20
12
+
13
+ ### Changed
14
+
15
+ - Version patch update due to children dependencies update (`@semcore/spin` [4.0.9 ~> 4.0.10]).
16
+
5
17
  ## [4.0.16] - 2022-08-30
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
- ".___SButton_15f0y_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_15f0y_gg_::-moz-focus-inner{padding:0;border:none}.___SButton_15f0y_gg_:active,.___SButton_15f0y_gg_:focus,.___SButton_15f0y_gg_:hover{outline:0;text-decoration:none}.___SButton_15f0y_gg_.__disabled_15f0y_gg_{opacity:0.3;cursor:default;pointer-events:none}.___SButton_15f0y_gg_.__keyboardFocused_15f0y_gg_{box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2);z-index:1}.___SButton_15f0y_gg_._size_m_15f0y_gg_{height:28px;min-width:28px;border-radius:6px;font-size:14px}.___SButton_15f0y_gg_._size_l_15f0y_gg_{height:40px;min-width:40px;border-radius:6px;font-size:16px}.___SButton_15f0y_gg_._theme_primary-info_15f0y_gg_{color:#ffffff;background-color:#008ff8}.___SButton_15f0y_gg_._theme_primary-info_15f0y_gg_:hover{background-color:#006dca}.___SButton_15f0y_gg_._theme_primary-info_15f0y_gg_:active,.___SButton_15f0y_gg_._theme_primary-info_15f0y_gg_.__active_15f0y_gg_{background-color:#044792}.___SButton_15f0y_gg_._theme_primary-success_15f0y_gg_{color:#ffffff;background-color:#009f81}.___SButton_15f0y_gg_._theme_primary-success_15f0y_gg_:hover{background-color:#007c65}.___SButton_15f0y_gg_._theme_primary-success_15f0y_gg_:active,.___SButton_15f0y_gg_._theme_primary-success_15f0y_gg_.__active_15f0y_gg_{background-color:#055345}.___SButton_15f0y_gg_._theme_primary-warning_15f0y_gg_{background-color:#ff642d;color:#ffffff}.___SButton_15f0y_gg_._theme_primary-warning_15f0y_gg_:hover{background-color:#c33909}.___SButton_15f0y_gg_._theme_primary-warning_15f0y_gg_:active,.___SButton_15f0y_gg_._theme_primary-warning_15f0y_gg_.__active_15f0y_gg_{background-color:#8b1500}.___SButton_15f0y_gg_._theme_primary-danger_15f0y_gg_{background-color:#ff4953;color:#ffffff}.___SButton_15f0y_gg_._theme_primary-danger_15f0y_gg_:hover{background-color:#d1002f}.___SButton_15f0y_gg_._theme_primary-danger_15f0y_gg_:active,.___SButton_15f0y_gg_._theme_primary-danger_15f0y_gg_.__active_15f0y_gg_{background-color:#8e0016}.___SButton_15f0y_gg_._theme_primary-invert_15f0y_gg_{background-color:#fff;color:#191b23}.___SButton_15f0y_gg_._theme_primary-invert_15f0y_gg_:hover{background-color:#f4f5f9}.___SButton_15f0y_gg_._theme_primary-invert_15f0y_gg_:active,.___SButton_15f0y_gg_._theme_primary-invert_15f0y_gg_.__active_15f0y_gg_{background-color:#e0e1e9}.___SButton_15f0y_gg_._theme_secondary-muted_15f0y_gg_{color:#6c6e79;border-color:#c4c7cf;background-color:rgba(138,142,155,.1)}.___SButton_15f0y_gg_._theme_secondary-muted_15f0y_gg_:hover{background-color:rgba(138,142,155,.2);color:#191b23}.___SButton_15f0y_gg_._theme_secondary-muted_15f0y_gg_:active,.___SButton_15f0y_gg_._theme_secondary-muted_15f0y_gg_.__active_15f0y_gg_{background-color:rgba(138,142,155,.3);color:#191b23}.___SButton_15f0y_gg_._theme_secondary-info_15f0y_gg_{background-color:rgba(0,143,248,.05);color:#008ff8;border-color:#008ff8}.___SButton_15f0y_gg_._theme_secondary-info_15f0y_gg_:hover{background-color:rgba(0,109,202,.2)}.___SButton_15f0y_gg_._theme_secondary-info_15f0y_gg_:active,.___SButton_15f0y_gg_._theme_secondary-info_15f0y_gg_.__active_15f0y_gg_{background-color:rgba(0,109,202,.3)}.___SButton_15f0y_gg_._theme_secondary-invert_15f0y_gg_{background-color:hsla(0,0%,100%,.05);color:#fff;border-color:#fff}.___SButton_15f0y_gg_._theme_secondary-invert_15f0y_gg_:hover{background-color:hsla(0,0%,100%,.1)}.___SButton_15f0y_gg_._theme_secondary-invert_15f0y_gg_:active,.___SButton_15f0y_gg_._theme_secondary-invert_15f0y_gg_.__active_15f0y_gg_{background-color:hsla(0,0%,100%,.3)}.___SButton_15f0y_gg_._theme_tertiary-info_15f0y_gg_{color:#006dca;background-color:transparent}.___SButton_15f0y_gg_._theme_tertiary-info_15f0y_gg_:hover{background-color:rgba(0,143,248,.2)}.___SButton_15f0y_gg_._theme_tertiary-info_15f0y_gg_:active,.___SButton_15f0y_gg_._theme_tertiary-info_15f0y_gg_.__active_15f0y_gg_{background-color:rgba(0,143,248,.3)}.___SButton_15f0y_gg_._theme_tertiary-muted_15f0y_gg_{color:#6c6e79;background-color:transparent}.___SButton_15f0y_gg_._theme_tertiary-muted_15f0y_gg_:hover{background-color:rgba(138,142,155,.2);color:#191b23}.___SButton_15f0y_gg_._theme_tertiary-muted_15f0y_gg_:active,.___SButton_15f0y_gg_._theme_tertiary-muted_15f0y_gg_.__active_15f0y_gg_{background-color:rgba(138,142,155,.3);color:#191b23}.___SButton_15f0y_gg_._theme_tertiary-invert_15f0y_gg_{color:#fff;background-color:transparent}.___SButton_15f0y_gg_._theme_tertiary-invert_15f0y_gg_:hover{background-color:hsla(0,0%,100%,.1)}.___SButton_15f0y_gg_._theme_tertiary-invert_15f0y_gg_:active,.___SButton_15f0y_gg_._theme_tertiary-invert_15f0y_gg_.__active_15f0y_gg_{background-color:hsla(0,0%,100%,.3)}.___SButton_15f0y_gg_._neighborLocation_right_15f0y_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SButton_15f0y_gg_._neighborLocation_both_15f0y_gg_{border-radius:0;margin-left:-1px}.___SButton_15f0y_gg_._neighborLocation_both_15f0y_gg_._theme_primary-danger_15f0y_gg_,.___SButton_15f0y_gg_._neighborLocation_both_15f0y_gg_._theme_primary-info_15f0y_gg_,.___SButton_15f0y_gg_._neighborLocation_both_15f0y_gg_._theme_primary-success_15f0y_gg_,.___SButton_15f0y_gg_._neighborLocation_both_15f0y_gg_._theme_primary-warning_15f0y_gg_{border-left-color:hsla(0,0%,100%,.5)}.___SButton_15f0y_gg_._neighborLocation_both_15f0y_gg_._theme_primary-invert_15f0y_gg_{border-left-color:rgba(0,0,0,.5)}.___SButton_15f0y_gg_._neighborLocation_left_15f0y_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.___SButton_15f0y_gg_._neighborLocation_left_15f0y_gg_._theme_primary-danger_15f0y_gg_,.___SButton_15f0y_gg_._neighborLocation_left_15f0y_gg_._theme_primary-info_15f0y_gg_,.___SButton_15f0y_gg_._neighborLocation_left_15f0y_gg_._theme_primary-success_15f0y_gg_,.___SButton_15f0y_gg_._neighborLocation_left_15f0y_gg_._theme_primary-warning_15f0y_gg_{border-left-color:hsla(0,0%,100%,.5)}.___SButton_15f0y_gg_._neighborLocation_left_15f0y_gg_._theme_primary-invert_15f0y_gg_{border-left-color:rgba(0,0,0,.5)}.___SSpin_15f0y_gg_{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}.___SInner_15f0y_gg_{display:inline-flex;align-items:center;justify-content:center;height:100%;width:100%}.___SInner_15f0y_gg_.__loading_15f0y_gg_{visibility:hidden}.___SText_15f0y_gg_{display:inline-flex}.___SText_15f0y_gg_._size_m_15f0y_gg_{margin-left:8px;margin-right:8px;line-height:1.42}.___SText_15f0y_gg_._size_l_15f0y_gg_{margin-left:12px;margin-right:12px;line-height:1.5}.___SAddon_15f0y_gg_{display:inline-flex;align-items:center;justify-content:center}.___SAddon_15f0y_gg_._size_m_15f0y_gg_:not(:only-child):first-child{margin-left:8px}.___SAddon_15f0y_gg_._size_m_15f0y_gg_:not(:only-child):last-child{margin-right:8px}.___SAddon_15f0y_gg_._size_m_15f0y_gg_:only-child{margin-left:-4px;margin-right:-4px}.___SAddon_15f0y_gg_._size_l_15f0y_gg_:not(:only-child):first-child{margin-left:8px}.___SAddon_15f0y_gg_._size_l_15f0y_gg_:not(:only-child):last-child{margin-right:8px}.___SAddon_15f0y_gg_._size_l_15f0y_gg_:only-child{margin-left:-4px;margin-right:-4px}"
61
+ ".___SButton_1qbow_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;user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;font-weight:500;color:#6c6e79}.___SButton_1qbow_gg_::-moz-focus-inner{padding:0;border:none}.___SButton_1qbow_gg_:active,.___SButton_1qbow_gg_:focus,.___SButton_1qbow_gg_:hover{outline:0;text-decoration:none}.___SButton_1qbow_gg_.__disabled_1qbow_gg_{opacity:0.3;cursor:default;pointer-events:none}.___SButton_1qbow_gg_.__keyboardFocused_1qbow_gg_{box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2);z-index:1}.___SButton_1qbow_gg_._size_m_1qbow_gg_{height:28px;min-width:28px;border-radius:6px;font-size:14px}.___SButton_1qbow_gg_._size_l_1qbow_gg_{height:40px;min-width:40px;border-radius:6px;font-size:16px}.___SButton_1qbow_gg_._theme_primary-info_1qbow_gg_{color:#ffffff;background-color:#008ff8}.___SButton_1qbow_gg_._theme_primary-info_1qbow_gg_:hover{background-color:#006dca}.___SButton_1qbow_gg_._theme_primary-info_1qbow_gg_:active,.___SButton_1qbow_gg_._theme_primary-info_1qbow_gg_.__active_1qbow_gg_{background-color:#044792}.___SButton_1qbow_gg_._theme_primary-success_1qbow_gg_{color:#ffffff;background-color:#009f81}.___SButton_1qbow_gg_._theme_primary-success_1qbow_gg_:hover{background-color:#007c65}.___SButton_1qbow_gg_._theme_primary-success_1qbow_gg_:active,.___SButton_1qbow_gg_._theme_primary-success_1qbow_gg_.__active_1qbow_gg_{background-color:#055345}.___SButton_1qbow_gg_._theme_primary-warning_1qbow_gg_{background-color:#ff642d;color:#ffffff}.___SButton_1qbow_gg_._theme_primary-warning_1qbow_gg_:hover{background-color:#c33909}.___SButton_1qbow_gg_._theme_primary-warning_1qbow_gg_:active,.___SButton_1qbow_gg_._theme_primary-warning_1qbow_gg_.__active_1qbow_gg_{background-color:#8b1500}.___SButton_1qbow_gg_._theme_primary-danger_1qbow_gg_{background-color:#ff4953;color:#ffffff}.___SButton_1qbow_gg_._theme_primary-danger_1qbow_gg_:hover{background-color:#d1002f}.___SButton_1qbow_gg_._theme_primary-danger_1qbow_gg_:active,.___SButton_1qbow_gg_._theme_primary-danger_1qbow_gg_.__active_1qbow_gg_{background-color:#8e0016}.___SButton_1qbow_gg_._theme_primary-invert_1qbow_gg_{background-color:#fff;color:#191b23}.___SButton_1qbow_gg_._theme_primary-invert_1qbow_gg_:hover{background-color:#f4f5f9}.___SButton_1qbow_gg_._theme_primary-invert_1qbow_gg_:active,.___SButton_1qbow_gg_._theme_primary-invert_1qbow_gg_.__active_1qbow_gg_{background-color:#e0e1e9}.___SButton_1qbow_gg_._theme_secondary-muted_1qbow_gg_{color:#6c6e79;border-color:#c4c7cf;background-color:rgba(138,142,155,.1)}.___SButton_1qbow_gg_._theme_secondary-muted_1qbow_gg_:hover{background-color:rgba(138,142,155,.2);color:#191b23}.___SButton_1qbow_gg_._theme_secondary-muted_1qbow_gg_:active,.___SButton_1qbow_gg_._theme_secondary-muted_1qbow_gg_.__active_1qbow_gg_{background-color:rgba(138,142,155,.3);color:#191b23}.___SButton_1qbow_gg_._theme_secondary-info_1qbow_gg_{background-color:rgba(0,143,248,.05);color:#008ff8;border-color:#008ff8}.___SButton_1qbow_gg_._theme_secondary-info_1qbow_gg_:hover{background-color:rgba(0,109,202,.2)}.___SButton_1qbow_gg_._theme_secondary-info_1qbow_gg_:active,.___SButton_1qbow_gg_._theme_secondary-info_1qbow_gg_.__active_1qbow_gg_{background-color:rgba(0,109,202,.3)}.___SButton_1qbow_gg_._theme_secondary-invert_1qbow_gg_{background-color:hsla(0,0%,100%,.05);color:#fff;border-color:#fff}.___SButton_1qbow_gg_._theme_secondary-invert_1qbow_gg_:hover{background-color:hsla(0,0%,100%,.1)}.___SButton_1qbow_gg_._theme_secondary-invert_1qbow_gg_:active,.___SButton_1qbow_gg_._theme_secondary-invert_1qbow_gg_.__active_1qbow_gg_{background-color:hsla(0,0%,100%,.3)}.___SButton_1qbow_gg_._theme_tertiary-info_1qbow_gg_{color:#006dca;background-color:transparent}.___SButton_1qbow_gg_._theme_tertiary-info_1qbow_gg_:hover{background-color:rgba(0,143,248,.2)}.___SButton_1qbow_gg_._theme_tertiary-info_1qbow_gg_:active,.___SButton_1qbow_gg_._theme_tertiary-info_1qbow_gg_.__active_1qbow_gg_{background-color:rgba(0,143,248,.3)}.___SButton_1qbow_gg_._theme_tertiary-muted_1qbow_gg_{color:#6c6e79;background-color:transparent}.___SButton_1qbow_gg_._theme_tertiary-muted_1qbow_gg_:hover{background-color:rgba(138,142,155,.2);color:#191b23}.___SButton_1qbow_gg_._theme_tertiary-muted_1qbow_gg_:active,.___SButton_1qbow_gg_._theme_tertiary-muted_1qbow_gg_.__active_1qbow_gg_{background-color:rgba(138,142,155,.3);color:#191b23}.___SButton_1qbow_gg_._theme_tertiary-invert_1qbow_gg_{color:#fff;background-color:transparent}.___SButton_1qbow_gg_._theme_tertiary-invert_1qbow_gg_:hover{background-color:hsla(0,0%,100%,.1)}.___SButton_1qbow_gg_._theme_tertiary-invert_1qbow_gg_:active,.___SButton_1qbow_gg_._theme_tertiary-invert_1qbow_gg_.__active_1qbow_gg_{background-color:hsla(0,0%,100%,.3)}.___SButton_1qbow_gg_._neighborLocation_right_1qbow_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SButton_1qbow_gg_._neighborLocation_both_1qbow_gg_{border-radius:0;margin-left:-1px}.___SButton_1qbow_gg_._neighborLocation_both_1qbow_gg_._theme_primary-danger_1qbow_gg_,.___SButton_1qbow_gg_._neighborLocation_both_1qbow_gg_._theme_primary-info_1qbow_gg_,.___SButton_1qbow_gg_._neighborLocation_both_1qbow_gg_._theme_primary-success_1qbow_gg_,.___SButton_1qbow_gg_._neighborLocation_both_1qbow_gg_._theme_primary-warning_1qbow_gg_{border-left-color:hsla(0,0%,100%,.5)}.___SButton_1qbow_gg_._neighborLocation_both_1qbow_gg_._theme_primary-invert_1qbow_gg_{border-left-color:rgba(0,0,0,.5)}.___SButton_1qbow_gg_._neighborLocation_left_1qbow_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.___SButton_1qbow_gg_._neighborLocation_left_1qbow_gg_._theme_primary-danger_1qbow_gg_,.___SButton_1qbow_gg_._neighborLocation_left_1qbow_gg_._theme_primary-info_1qbow_gg_,.___SButton_1qbow_gg_._neighborLocation_left_1qbow_gg_._theme_primary-success_1qbow_gg_,.___SButton_1qbow_gg_._neighborLocation_left_1qbow_gg_._theme_primary-warning_1qbow_gg_{border-left-color:hsla(0,0%,100%,.5)}.___SButton_1qbow_gg_._neighborLocation_left_1qbow_gg_._theme_primary-invert_1qbow_gg_{border-left-color:rgba(0,0,0,.5)}.___SSpin_1qbow_gg_{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}.___SInner_1qbow_gg_{display:inline-flex;align-items:center;justify-content:center;height:100%;width:100%}.___SInner_1qbow_gg_.__loading_1qbow_gg_{visibility:hidden}.___SText_1qbow_gg_{display:inline-flex}.___SText_1qbow_gg_._size_m_1qbow_gg_{margin-left:8px;margin-right:8px;line-height:1.42}.___SText_1qbow_gg_._size_l_1qbow_gg_{margin-left:12px;margin-right:12px;line-height:1.5}.___SAddon_1qbow_gg_{display:inline-flex;align-items:center;justify-content:center}.___SAddon_1qbow_gg_._size_m_1qbow_gg_:not(:only-child):first-child{margin-left:8px}.___SAddon_1qbow_gg_._size_m_1qbow_gg_:not(:only-child):last-child{margin-right:8px}.___SAddon_1qbow_gg_._size_m_1qbow_gg_:only-child{margin-left:-4px;margin-right:-4px}.___SAddon_1qbow_gg_._size_l_1qbow_gg_:not(:only-child):first-child{margin-left:8px}.___SAddon_1qbow_gg_._size_l_1qbow_gg_:not(:only-child):last-child{margin-right:8px}.___SAddon_1qbow_gg_._size_l_1qbow_gg_:only-child{margin-left:-4px;margin-right:-4px}"
62
62
  /*__inner_css_end__*/
63
- , "15f0y_gg_")
63
+ , "1qbow_gg_")
64
64
  /*__reshadow_css_end__*/
65
65
  , {
66
- "__SButton": "___SButton_15f0y_gg_",
67
- "_disabled": "__disabled_15f0y_gg_",
68
- "_keyboardFocused": "__keyboardFocused_15f0y_gg_",
69
- "_size_m": "_size_m_15f0y_gg_",
70
- "_size_l": "_size_l_15f0y_gg_",
71
- "_theme_primary-info": "_theme_primary-info_15f0y_gg_",
72
- "_active": "__active_15f0y_gg_",
73
- "_theme_primary-success": "_theme_primary-success_15f0y_gg_",
74
- "_theme_primary-warning": "_theme_primary-warning_15f0y_gg_",
75
- "_theme_primary-danger": "_theme_primary-danger_15f0y_gg_",
76
- "_theme_primary-invert": "_theme_primary-invert_15f0y_gg_",
77
- "_theme_secondary-muted": "_theme_secondary-muted_15f0y_gg_",
78
- "_theme_secondary-info": "_theme_secondary-info_15f0y_gg_",
79
- "_theme_secondary-invert": "_theme_secondary-invert_15f0y_gg_",
80
- "_theme_tertiary-info": "_theme_tertiary-info_15f0y_gg_",
81
- "_theme_tertiary-muted": "_theme_tertiary-muted_15f0y_gg_",
82
- "_theme_tertiary-invert": "_theme_tertiary-invert_15f0y_gg_",
83
- "_neighborLocation_right": "_neighborLocation_right_15f0y_gg_",
84
- "_neighborLocation_both": "_neighborLocation_both_15f0y_gg_",
85
- "_neighborLocation_left": "_neighborLocation_left_15f0y_gg_",
86
- "__SSpin": "___SSpin_15f0y_gg_",
87
- "__SInner": "___SInner_15f0y_gg_",
88
- "_loading": "__loading_15f0y_gg_",
89
- "__SText": "___SText_15f0y_gg_",
90
- "__SAddon": "___SAddon_15f0y_gg_"
66
+ "__SButton": "___SButton_1qbow_gg_",
67
+ "_disabled": "__disabled_1qbow_gg_",
68
+ "_keyboardFocused": "__keyboardFocused_1qbow_gg_",
69
+ "_size_m": "_size_m_1qbow_gg_",
70
+ "_size_l": "_size_l_1qbow_gg_",
71
+ "_theme_primary-info": "_theme_primary-info_1qbow_gg_",
72
+ "_active": "__active_1qbow_gg_",
73
+ "_theme_primary-success": "_theme_primary-success_1qbow_gg_",
74
+ "_theme_primary-warning": "_theme_primary-warning_1qbow_gg_",
75
+ "_theme_primary-danger": "_theme_primary-danger_1qbow_gg_",
76
+ "_theme_primary-invert": "_theme_primary-invert_1qbow_gg_",
77
+ "_theme_secondary-muted": "_theme_secondary-muted_1qbow_gg_",
78
+ "_theme_secondary-info": "_theme_secondary-info_1qbow_gg_",
79
+ "_theme_secondary-invert": "_theme_secondary-invert_1qbow_gg_",
80
+ "_theme_tertiary-info": "_theme_tertiary-info_1qbow_gg_",
81
+ "_theme_tertiary-muted": "_theme_tertiary-muted_1qbow_gg_",
82
+ "_theme_tertiary-invert": "_theme_tertiary-invert_1qbow_gg_",
83
+ "_neighborLocation_right": "_neighborLocation_right_1qbow_gg_",
84
+ "_neighborLocation_both": "_neighborLocation_both_1qbow_gg_",
85
+ "_neighborLocation_left": "_neighborLocation_left_1qbow_gg_",
86
+ "__SSpin": "___SSpin_1qbow_gg_",
87
+ "__SInner": "___SInner_1qbow_gg_",
88
+ "_loading": "__loading_1qbow_gg_",
89
+ "__SText": "___SText_1qbow_gg_",
90
+ "__SAddon": "___SAddon_1qbow_gg_"
91
91
  });
92
92
  var MAP_USE_DEFAULT_THEME = {
93
93
  primary: 'info',
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=index.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import React from 'react';\nimport { CProps, PropGetterFn, ReturnEl } from '@semcore/core';\nimport { IKeyboardFocusProps } from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport { IBoxProps } from '@semcore/flex-box';\nimport { INeighborItemProps } from '@semcore/neighbor-location';\n\nexport type ButtonSize = 'l' | 'm';\n\nexport interface IButtonProps extends IBoxProps, INeighborItemProps, IKeyboardFocusProps {\n /**\n * Button type\n * @default secondary\n */\n use?: 'primary' | 'secondary' | 'tertiary';\n /** Button theme */\n theme?: 'info' | 'success' | 'warning' | 'danger' | 'muted' | 'invert';\n /** Button activity state */\n active?: boolean;\n /**\n * Button size\n * @default m\n */\n size?: ButtonSize;\n /** Disabled button state */\n disabled?: boolean;\n /** Loading button state */\n loading?: boolean;\n /** Tag for the left Addon */\n addonLeft?: React.ElementType;\n /** Tag for the right Addon */\n addonRight?: React.ElementType;\n}\n\nexport interface IButtonTextProps extends IBoxProps {\n size?: ButtonSize;\n}\n\nexport interface IButtonAddonProps extends IBoxProps {\n size?: ButtonSize;\n}\n\nexport interface IButtonContext {\n getTextProps: PropGetterFn;\n getAddonProps: PropGetterFn;\n}\n\ndeclare const Button: (<T>(props: CProps<IButtonProps & T, IButtonContext>) => ReturnEl) & {\n Text: <T>(props: IButtonTextProps & T) => ReturnEl;\n Addon: <T>(props: IButtonAddonProps & T) => ReturnEl;\n};\n\nexport default Button;\n"],"mappings":""}
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
- ".___SButton_15f0y_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_15f0y_gg_::-moz-focus-inner{padding:0;border:none}.___SButton_15f0y_gg_:active,.___SButton_15f0y_gg_:focus,.___SButton_15f0y_gg_:hover{outline:0;text-decoration:none}.___SButton_15f0y_gg_.__disabled_15f0y_gg_{opacity:0.3;cursor:default;pointer-events:none}.___SButton_15f0y_gg_.__keyboardFocused_15f0y_gg_{box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2);z-index:1}.___SButton_15f0y_gg_._size_m_15f0y_gg_{height:28px;min-width:28px;border-radius:6px;font-size:14px}.___SButton_15f0y_gg_._size_l_15f0y_gg_{height:40px;min-width:40px;border-radius:6px;font-size:16px}.___SButton_15f0y_gg_._theme_primary-info_15f0y_gg_{color:#ffffff;background-color:#008ff8}.___SButton_15f0y_gg_._theme_primary-info_15f0y_gg_:hover{background-color:#006dca}.___SButton_15f0y_gg_._theme_primary-info_15f0y_gg_:active,.___SButton_15f0y_gg_._theme_primary-info_15f0y_gg_.__active_15f0y_gg_{background-color:#044792}.___SButton_15f0y_gg_._theme_primary-success_15f0y_gg_{color:#ffffff;background-color:#009f81}.___SButton_15f0y_gg_._theme_primary-success_15f0y_gg_:hover{background-color:#007c65}.___SButton_15f0y_gg_._theme_primary-success_15f0y_gg_:active,.___SButton_15f0y_gg_._theme_primary-success_15f0y_gg_.__active_15f0y_gg_{background-color:#055345}.___SButton_15f0y_gg_._theme_primary-warning_15f0y_gg_{background-color:#ff642d;color:#ffffff}.___SButton_15f0y_gg_._theme_primary-warning_15f0y_gg_:hover{background-color:#c33909}.___SButton_15f0y_gg_._theme_primary-warning_15f0y_gg_:active,.___SButton_15f0y_gg_._theme_primary-warning_15f0y_gg_.__active_15f0y_gg_{background-color:#8b1500}.___SButton_15f0y_gg_._theme_primary-danger_15f0y_gg_{background-color:#ff4953;color:#ffffff}.___SButton_15f0y_gg_._theme_primary-danger_15f0y_gg_:hover{background-color:#d1002f}.___SButton_15f0y_gg_._theme_primary-danger_15f0y_gg_:active,.___SButton_15f0y_gg_._theme_primary-danger_15f0y_gg_.__active_15f0y_gg_{background-color:#8e0016}.___SButton_15f0y_gg_._theme_primary-invert_15f0y_gg_{background-color:#fff;color:#191b23}.___SButton_15f0y_gg_._theme_primary-invert_15f0y_gg_:hover{background-color:#f4f5f9}.___SButton_15f0y_gg_._theme_primary-invert_15f0y_gg_:active,.___SButton_15f0y_gg_._theme_primary-invert_15f0y_gg_.__active_15f0y_gg_{background-color:#e0e1e9}.___SButton_15f0y_gg_._theme_secondary-muted_15f0y_gg_{color:#6c6e79;border-color:#c4c7cf;background-color:rgba(138,142,155,.1)}.___SButton_15f0y_gg_._theme_secondary-muted_15f0y_gg_:hover{background-color:rgba(138,142,155,.2);color:#191b23}.___SButton_15f0y_gg_._theme_secondary-muted_15f0y_gg_:active,.___SButton_15f0y_gg_._theme_secondary-muted_15f0y_gg_.__active_15f0y_gg_{background-color:rgba(138,142,155,.3);color:#191b23}.___SButton_15f0y_gg_._theme_secondary-info_15f0y_gg_{background-color:rgba(0,143,248,.05);color:#008ff8;border-color:#008ff8}.___SButton_15f0y_gg_._theme_secondary-info_15f0y_gg_:hover{background-color:rgba(0,109,202,.2)}.___SButton_15f0y_gg_._theme_secondary-info_15f0y_gg_:active,.___SButton_15f0y_gg_._theme_secondary-info_15f0y_gg_.__active_15f0y_gg_{background-color:rgba(0,109,202,.3)}.___SButton_15f0y_gg_._theme_secondary-invert_15f0y_gg_{background-color:hsla(0,0%,100%,.05);color:#fff;border-color:#fff}.___SButton_15f0y_gg_._theme_secondary-invert_15f0y_gg_:hover{background-color:hsla(0,0%,100%,.1)}.___SButton_15f0y_gg_._theme_secondary-invert_15f0y_gg_:active,.___SButton_15f0y_gg_._theme_secondary-invert_15f0y_gg_.__active_15f0y_gg_{background-color:hsla(0,0%,100%,.3)}.___SButton_15f0y_gg_._theme_tertiary-info_15f0y_gg_{color:#006dca;background-color:transparent}.___SButton_15f0y_gg_._theme_tertiary-info_15f0y_gg_:hover{background-color:rgba(0,143,248,.2)}.___SButton_15f0y_gg_._theme_tertiary-info_15f0y_gg_:active,.___SButton_15f0y_gg_._theme_tertiary-info_15f0y_gg_.__active_15f0y_gg_{background-color:rgba(0,143,248,.3)}.___SButton_15f0y_gg_._theme_tertiary-muted_15f0y_gg_{color:#6c6e79;background-color:transparent}.___SButton_15f0y_gg_._theme_tertiary-muted_15f0y_gg_:hover{background-color:rgba(138,142,155,.2);color:#191b23}.___SButton_15f0y_gg_._theme_tertiary-muted_15f0y_gg_:active,.___SButton_15f0y_gg_._theme_tertiary-muted_15f0y_gg_.__active_15f0y_gg_{background-color:rgba(138,142,155,.3);color:#191b23}.___SButton_15f0y_gg_._theme_tertiary-invert_15f0y_gg_{color:#fff;background-color:transparent}.___SButton_15f0y_gg_._theme_tertiary-invert_15f0y_gg_:hover{background-color:hsla(0,0%,100%,.1)}.___SButton_15f0y_gg_._theme_tertiary-invert_15f0y_gg_:active,.___SButton_15f0y_gg_._theme_tertiary-invert_15f0y_gg_.__active_15f0y_gg_{background-color:hsla(0,0%,100%,.3)}.___SButton_15f0y_gg_._neighborLocation_right_15f0y_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SButton_15f0y_gg_._neighborLocation_both_15f0y_gg_{border-radius:0;margin-left:-1px}.___SButton_15f0y_gg_._neighborLocation_both_15f0y_gg_._theme_primary-danger_15f0y_gg_,.___SButton_15f0y_gg_._neighborLocation_both_15f0y_gg_._theme_primary-info_15f0y_gg_,.___SButton_15f0y_gg_._neighborLocation_both_15f0y_gg_._theme_primary-success_15f0y_gg_,.___SButton_15f0y_gg_._neighborLocation_both_15f0y_gg_._theme_primary-warning_15f0y_gg_{border-left-color:hsla(0,0%,100%,.5)}.___SButton_15f0y_gg_._neighborLocation_both_15f0y_gg_._theme_primary-invert_15f0y_gg_{border-left-color:rgba(0,0,0,.5)}.___SButton_15f0y_gg_._neighborLocation_left_15f0y_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.___SButton_15f0y_gg_._neighborLocation_left_15f0y_gg_._theme_primary-danger_15f0y_gg_,.___SButton_15f0y_gg_._neighborLocation_left_15f0y_gg_._theme_primary-info_15f0y_gg_,.___SButton_15f0y_gg_._neighborLocation_left_15f0y_gg_._theme_primary-success_15f0y_gg_,.___SButton_15f0y_gg_._neighborLocation_left_15f0y_gg_._theme_primary-warning_15f0y_gg_{border-left-color:hsla(0,0%,100%,.5)}.___SButton_15f0y_gg_._neighborLocation_left_15f0y_gg_._theme_primary-invert_15f0y_gg_{border-left-color:rgba(0,0,0,.5)}.___SSpin_15f0y_gg_{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}.___SInner_15f0y_gg_{display:inline-flex;align-items:center;justify-content:center;height:100%;width:100%}.___SInner_15f0y_gg_.__loading_15f0y_gg_{visibility:hidden}.___SText_15f0y_gg_{display:inline-flex}.___SText_15f0y_gg_._size_m_15f0y_gg_{margin-left:8px;margin-right:8px;line-height:1.42}.___SText_15f0y_gg_._size_l_15f0y_gg_{margin-left:12px;margin-right:12px;line-height:1.5}.___SAddon_15f0y_gg_{display:inline-flex;align-items:center;justify-content:center}.___SAddon_15f0y_gg_._size_m_15f0y_gg_:not(:only-child):first-child{margin-left:8px}.___SAddon_15f0y_gg_._size_m_15f0y_gg_:not(:only-child):last-child{margin-right:8px}.___SAddon_15f0y_gg_._size_m_15f0y_gg_:only-child{margin-left:-4px;margin-right:-4px}.___SAddon_15f0y_gg_._size_l_15f0y_gg_:not(:only-child):first-child{margin-left:8px}.___SAddon_15f0y_gg_._size_l_15f0y_gg_:not(:only-child):last-child{margin-right:8px}.___SAddon_15f0y_gg_._size_l_15f0y_gg_:only-child{margin-left:-4px;margin-right:-4px}"
36
+ ".___SButton_1qbow_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;user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;font-weight:500;color:#6c6e79}.___SButton_1qbow_gg_::-moz-focus-inner{padding:0;border:none}.___SButton_1qbow_gg_:active,.___SButton_1qbow_gg_:focus,.___SButton_1qbow_gg_:hover{outline:0;text-decoration:none}.___SButton_1qbow_gg_.__disabled_1qbow_gg_{opacity:0.3;cursor:default;pointer-events:none}.___SButton_1qbow_gg_.__keyboardFocused_1qbow_gg_{box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2);z-index:1}.___SButton_1qbow_gg_._size_m_1qbow_gg_{height:28px;min-width:28px;border-radius:6px;font-size:14px}.___SButton_1qbow_gg_._size_l_1qbow_gg_{height:40px;min-width:40px;border-radius:6px;font-size:16px}.___SButton_1qbow_gg_._theme_primary-info_1qbow_gg_{color:#ffffff;background-color:#008ff8}.___SButton_1qbow_gg_._theme_primary-info_1qbow_gg_:hover{background-color:#006dca}.___SButton_1qbow_gg_._theme_primary-info_1qbow_gg_:active,.___SButton_1qbow_gg_._theme_primary-info_1qbow_gg_.__active_1qbow_gg_{background-color:#044792}.___SButton_1qbow_gg_._theme_primary-success_1qbow_gg_{color:#ffffff;background-color:#009f81}.___SButton_1qbow_gg_._theme_primary-success_1qbow_gg_:hover{background-color:#007c65}.___SButton_1qbow_gg_._theme_primary-success_1qbow_gg_:active,.___SButton_1qbow_gg_._theme_primary-success_1qbow_gg_.__active_1qbow_gg_{background-color:#055345}.___SButton_1qbow_gg_._theme_primary-warning_1qbow_gg_{background-color:#ff642d;color:#ffffff}.___SButton_1qbow_gg_._theme_primary-warning_1qbow_gg_:hover{background-color:#c33909}.___SButton_1qbow_gg_._theme_primary-warning_1qbow_gg_:active,.___SButton_1qbow_gg_._theme_primary-warning_1qbow_gg_.__active_1qbow_gg_{background-color:#8b1500}.___SButton_1qbow_gg_._theme_primary-danger_1qbow_gg_{background-color:#ff4953;color:#ffffff}.___SButton_1qbow_gg_._theme_primary-danger_1qbow_gg_:hover{background-color:#d1002f}.___SButton_1qbow_gg_._theme_primary-danger_1qbow_gg_:active,.___SButton_1qbow_gg_._theme_primary-danger_1qbow_gg_.__active_1qbow_gg_{background-color:#8e0016}.___SButton_1qbow_gg_._theme_primary-invert_1qbow_gg_{background-color:#fff;color:#191b23}.___SButton_1qbow_gg_._theme_primary-invert_1qbow_gg_:hover{background-color:#f4f5f9}.___SButton_1qbow_gg_._theme_primary-invert_1qbow_gg_:active,.___SButton_1qbow_gg_._theme_primary-invert_1qbow_gg_.__active_1qbow_gg_{background-color:#e0e1e9}.___SButton_1qbow_gg_._theme_secondary-muted_1qbow_gg_{color:#6c6e79;border-color:#c4c7cf;background-color:rgba(138,142,155,.1)}.___SButton_1qbow_gg_._theme_secondary-muted_1qbow_gg_:hover{background-color:rgba(138,142,155,.2);color:#191b23}.___SButton_1qbow_gg_._theme_secondary-muted_1qbow_gg_:active,.___SButton_1qbow_gg_._theme_secondary-muted_1qbow_gg_.__active_1qbow_gg_{background-color:rgba(138,142,155,.3);color:#191b23}.___SButton_1qbow_gg_._theme_secondary-info_1qbow_gg_{background-color:rgba(0,143,248,.05);color:#008ff8;border-color:#008ff8}.___SButton_1qbow_gg_._theme_secondary-info_1qbow_gg_:hover{background-color:rgba(0,109,202,.2)}.___SButton_1qbow_gg_._theme_secondary-info_1qbow_gg_:active,.___SButton_1qbow_gg_._theme_secondary-info_1qbow_gg_.__active_1qbow_gg_{background-color:rgba(0,109,202,.3)}.___SButton_1qbow_gg_._theme_secondary-invert_1qbow_gg_{background-color:hsla(0,0%,100%,.05);color:#fff;border-color:#fff}.___SButton_1qbow_gg_._theme_secondary-invert_1qbow_gg_:hover{background-color:hsla(0,0%,100%,.1)}.___SButton_1qbow_gg_._theme_secondary-invert_1qbow_gg_:active,.___SButton_1qbow_gg_._theme_secondary-invert_1qbow_gg_.__active_1qbow_gg_{background-color:hsla(0,0%,100%,.3)}.___SButton_1qbow_gg_._theme_tertiary-info_1qbow_gg_{color:#006dca;background-color:transparent}.___SButton_1qbow_gg_._theme_tertiary-info_1qbow_gg_:hover{background-color:rgba(0,143,248,.2)}.___SButton_1qbow_gg_._theme_tertiary-info_1qbow_gg_:active,.___SButton_1qbow_gg_._theme_tertiary-info_1qbow_gg_.__active_1qbow_gg_{background-color:rgba(0,143,248,.3)}.___SButton_1qbow_gg_._theme_tertiary-muted_1qbow_gg_{color:#6c6e79;background-color:transparent}.___SButton_1qbow_gg_._theme_tertiary-muted_1qbow_gg_:hover{background-color:rgba(138,142,155,.2);color:#191b23}.___SButton_1qbow_gg_._theme_tertiary-muted_1qbow_gg_:active,.___SButton_1qbow_gg_._theme_tertiary-muted_1qbow_gg_.__active_1qbow_gg_{background-color:rgba(138,142,155,.3);color:#191b23}.___SButton_1qbow_gg_._theme_tertiary-invert_1qbow_gg_{color:#fff;background-color:transparent}.___SButton_1qbow_gg_._theme_tertiary-invert_1qbow_gg_:hover{background-color:hsla(0,0%,100%,.1)}.___SButton_1qbow_gg_._theme_tertiary-invert_1qbow_gg_:active,.___SButton_1qbow_gg_._theme_tertiary-invert_1qbow_gg_.__active_1qbow_gg_{background-color:hsla(0,0%,100%,.3)}.___SButton_1qbow_gg_._neighborLocation_right_1qbow_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SButton_1qbow_gg_._neighborLocation_both_1qbow_gg_{border-radius:0;margin-left:-1px}.___SButton_1qbow_gg_._neighborLocation_both_1qbow_gg_._theme_primary-danger_1qbow_gg_,.___SButton_1qbow_gg_._neighborLocation_both_1qbow_gg_._theme_primary-info_1qbow_gg_,.___SButton_1qbow_gg_._neighborLocation_both_1qbow_gg_._theme_primary-success_1qbow_gg_,.___SButton_1qbow_gg_._neighborLocation_both_1qbow_gg_._theme_primary-warning_1qbow_gg_{border-left-color:hsla(0,0%,100%,.5)}.___SButton_1qbow_gg_._neighborLocation_both_1qbow_gg_._theme_primary-invert_1qbow_gg_{border-left-color:rgba(0,0,0,.5)}.___SButton_1qbow_gg_._neighborLocation_left_1qbow_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.___SButton_1qbow_gg_._neighborLocation_left_1qbow_gg_._theme_primary-danger_1qbow_gg_,.___SButton_1qbow_gg_._neighborLocation_left_1qbow_gg_._theme_primary-info_1qbow_gg_,.___SButton_1qbow_gg_._neighborLocation_left_1qbow_gg_._theme_primary-success_1qbow_gg_,.___SButton_1qbow_gg_._neighborLocation_left_1qbow_gg_._theme_primary-warning_1qbow_gg_{border-left-color:hsla(0,0%,100%,.5)}.___SButton_1qbow_gg_._neighborLocation_left_1qbow_gg_._theme_primary-invert_1qbow_gg_{border-left-color:rgba(0,0,0,.5)}.___SSpin_1qbow_gg_{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}.___SInner_1qbow_gg_{display:inline-flex;align-items:center;justify-content:center;height:100%;width:100%}.___SInner_1qbow_gg_.__loading_1qbow_gg_{visibility:hidden}.___SText_1qbow_gg_{display:inline-flex}.___SText_1qbow_gg_._size_m_1qbow_gg_{margin-left:8px;margin-right:8px;line-height:1.42}.___SText_1qbow_gg_._size_l_1qbow_gg_{margin-left:12px;margin-right:12px;line-height:1.5}.___SAddon_1qbow_gg_{display:inline-flex;align-items:center;justify-content:center}.___SAddon_1qbow_gg_._size_m_1qbow_gg_:not(:only-child):first-child{margin-left:8px}.___SAddon_1qbow_gg_._size_m_1qbow_gg_:not(:only-child):last-child{margin-right:8px}.___SAddon_1qbow_gg_._size_m_1qbow_gg_:only-child{margin-left:-4px;margin-right:-4px}.___SAddon_1qbow_gg_._size_l_1qbow_gg_:not(:only-child):first-child{margin-left:8px}.___SAddon_1qbow_gg_._size_l_1qbow_gg_:not(:only-child):last-child{margin-right:8px}.___SAddon_1qbow_gg_._size_l_1qbow_gg_:only-child{margin-left:-4px;margin-right:-4px}"
37
37
  /*__inner_css_end__*/
38
- , "15f0y_gg_")
38
+ , "1qbow_gg_")
39
39
  /*__reshadow_css_end__*/
40
40
  , {
41
- "__SButton": "___SButton_15f0y_gg_",
42
- "_disabled": "__disabled_15f0y_gg_",
43
- "_keyboardFocused": "__keyboardFocused_15f0y_gg_",
44
- "_size_m": "_size_m_15f0y_gg_",
45
- "_size_l": "_size_l_15f0y_gg_",
46
- "_theme_primary-info": "_theme_primary-info_15f0y_gg_",
47
- "_active": "__active_15f0y_gg_",
48
- "_theme_primary-success": "_theme_primary-success_15f0y_gg_",
49
- "_theme_primary-warning": "_theme_primary-warning_15f0y_gg_",
50
- "_theme_primary-danger": "_theme_primary-danger_15f0y_gg_",
51
- "_theme_primary-invert": "_theme_primary-invert_15f0y_gg_",
52
- "_theme_secondary-muted": "_theme_secondary-muted_15f0y_gg_",
53
- "_theme_secondary-info": "_theme_secondary-info_15f0y_gg_",
54
- "_theme_secondary-invert": "_theme_secondary-invert_15f0y_gg_",
55
- "_theme_tertiary-info": "_theme_tertiary-info_15f0y_gg_",
56
- "_theme_tertiary-muted": "_theme_tertiary-muted_15f0y_gg_",
57
- "_theme_tertiary-invert": "_theme_tertiary-invert_15f0y_gg_",
58
- "_neighborLocation_right": "_neighborLocation_right_15f0y_gg_",
59
- "_neighborLocation_both": "_neighborLocation_both_15f0y_gg_",
60
- "_neighborLocation_left": "_neighborLocation_left_15f0y_gg_",
61
- "__SSpin": "___SSpin_15f0y_gg_",
62
- "__SInner": "___SInner_15f0y_gg_",
63
- "_loading": "__loading_15f0y_gg_",
64
- "__SText": "___SText_15f0y_gg_",
65
- "__SAddon": "___SAddon_15f0y_gg_"
41
+ "__SButton": "___SButton_1qbow_gg_",
42
+ "_disabled": "__disabled_1qbow_gg_",
43
+ "_keyboardFocused": "__keyboardFocused_1qbow_gg_",
44
+ "_size_m": "_size_m_1qbow_gg_",
45
+ "_size_l": "_size_l_1qbow_gg_",
46
+ "_theme_primary-info": "_theme_primary-info_1qbow_gg_",
47
+ "_active": "__active_1qbow_gg_",
48
+ "_theme_primary-success": "_theme_primary-success_1qbow_gg_",
49
+ "_theme_primary-warning": "_theme_primary-warning_1qbow_gg_",
50
+ "_theme_primary-danger": "_theme_primary-danger_1qbow_gg_",
51
+ "_theme_primary-invert": "_theme_primary-invert_1qbow_gg_",
52
+ "_theme_secondary-muted": "_theme_secondary-muted_1qbow_gg_",
53
+ "_theme_secondary-info": "_theme_secondary-info_1qbow_gg_",
54
+ "_theme_secondary-invert": "_theme_secondary-invert_1qbow_gg_",
55
+ "_theme_tertiary-info": "_theme_tertiary-info_1qbow_gg_",
56
+ "_theme_tertiary-muted": "_theme_tertiary-muted_1qbow_gg_",
57
+ "_theme_tertiary-invert": "_theme_tertiary-invert_1qbow_gg_",
58
+ "_neighborLocation_right": "_neighborLocation_right_1qbow_gg_",
59
+ "_neighborLocation_both": "_neighborLocation_both_1qbow_gg_",
60
+ "_neighborLocation_left": "_neighborLocation_left_1qbow_gg_",
61
+ "__SSpin": "___SSpin_1qbow_gg_",
62
+ "__SInner": "___SInner_1qbow_gg_",
63
+ "_loading": "__loading_1qbow_gg_",
64
+ "__SText": "___SText_1qbow_gg_",
65
+ "__SAddon": "___SAddon_1qbow_gg_"
66
66
  });
67
67
  export var MAP_USE_DEFAULT_THEME = {
68
68
  primary: 'info',
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import React from 'react';\nimport { CProps, PropGetterFn, ReturnEl } from '@semcore/core';\nimport { IKeyboardFocusProps } from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport { IBoxProps } from '@semcore/flex-box';\nimport { INeighborItemProps } from '@semcore/neighbor-location';\n\nexport type ButtonSize = 'l' | 'm';\n\nexport interface IButtonProps extends IBoxProps, INeighborItemProps, IKeyboardFocusProps {\n /**\n * Button type\n * @default secondary\n */\n use?: 'primary' | 'secondary' | 'tertiary';\n /** Button theme */\n theme?: 'info' | 'success' | 'warning' | 'danger' | 'muted' | 'invert';\n /** Button activity state */\n active?: boolean;\n /**\n * Button size\n * @default m\n */\n size?: ButtonSize;\n /** Disabled button state */\n disabled?: boolean;\n /** Loading button state */\n loading?: boolean;\n /** Tag for the left Addon */\n addonLeft?: React.ElementType;\n /** Tag for the right Addon */\n addonRight?: React.ElementType;\n}\n\nexport interface IButtonTextProps extends IBoxProps {\n size?: ButtonSize;\n}\n\nexport interface IButtonAddonProps extends IBoxProps {\n size?: ButtonSize;\n}\n\nexport interface IButtonContext {\n getTextProps: PropGetterFn;\n getAddonProps: PropGetterFn;\n}\n\ndeclare const Button: (<T>(props: CProps<IButtonProps & T, IButtonContext>) => ReturnEl) & {\n Text: <T>(props: IButtonTextProps & T) => ReturnEl;\n Addon: <T>(props: IButtonAddonProps & T) => ReturnEl;\n};\n\nexport default Button;\n"],"mappings":""}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/button",
3
3
  "description": "Semrush Button Component",
4
- "version": "4.0.16",
4
+ "version": "4.0.18",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -9,7 +9,7 @@
9
9
  "author": "UI-kit team <ui-kit-team@semrush.com>",
10
10
  "license": "MIT",
11
11
  "scripts": {
12
- "build": "build --source=js",
12
+ "build": "pnpm semcore-builder --source=js",
13
13
  "test": "jest"
14
14
  },
15
15
  "dependencies": {
@@ -31,6 +31,8 @@
31
31
  "directory": "semcore/button"
32
32
  },
33
33
  "devDependencies": {
34
- "@semcore/jest-preset-ui": "1.0.0"
34
+ "@types/react": "16.8 - 17",
35
+ "@semcore/jest-preset-ui": "1.0.0",
36
+ "@semcore/icon": "^2.16"
35
37
  }
36
38
  }
@@ -1,52 +0,0 @@
1
- import React from 'react';
2
- import { CProps, PropGetterFn, ReturnEl } from '@semcore/core';
3
- import { IKeyboardFocusProps } from '@semcore/utils/lib/enhances/keyboardFocusEnhance';
4
- import { IBoxProps } from '@semcore/flex-box';
5
- import { INeighborItemProps } from '@semcore/neighbor-location';
6
-
7
- export type ButtonSize = 'l' | 'm';
8
-
9
- export interface IButtonProps extends IBoxProps, INeighborItemProps, IKeyboardFocusProps {
10
- /**
11
- * Button type
12
- * @default secondary
13
- */
14
- use?: 'primary' | 'secondary' | 'tertiary';
15
- /** Button theme */
16
- theme?: 'info' | 'success' | 'warning' | 'danger' | 'muted' | 'invert';
17
- /** Button activity state */
18
- active?: boolean;
19
- /**
20
- * Button size
21
- * @default m
22
- */
23
- size?: ButtonSize;
24
- /** Disabled button state */
25
- disabled?: boolean;
26
- /** Loading button state */
27
- loading?: boolean;
28
- /** Tag for the left Addon */
29
- addonLeft?: React.ElementType;
30
- /** Tag for the right Addon */
31
- addonRight?: React.ElementType;
32
- }
33
-
34
- export interface IButtonTextProps extends IBoxProps {
35
- size?: ButtonSize;
36
- }
37
-
38
- export interface IButtonAddonProps extends IBoxProps {
39
- size?: ButtonSize;
40
- }
41
-
42
- export interface IButtonContext {
43
- getTextProps: PropGetterFn;
44
- getAddonProps: PropGetterFn;
45
- }
46
-
47
- declare const Button: (<T>(props: CProps<IButtonProps & T, IButtonContext>) => ReturnEl) & {
48
- Text: <T>(props: IButtonTextProps & T) => ReturnEl;
49
- Addon: <T>(props: IButtonAddonProps & T) => ReturnEl;
50
- };
51
-
52
- export default Button;
@@ -1,52 +0,0 @@
1
- import React from 'react';
2
- import { CProps, PropGetterFn, ReturnEl } from '@semcore/core';
3
- import { IKeyboardFocusProps } from '@semcore/utils/lib/enhances/keyboardFocusEnhance';
4
- import { IBoxProps } from '@semcore/flex-box';
5
- import { INeighborItemProps } from '@semcore/neighbor-location';
6
-
7
- export type ButtonSize = 'l' | 'm';
8
-
9
- export interface IButtonProps extends IBoxProps, INeighborItemProps, IKeyboardFocusProps {
10
- /**
11
- * Button type
12
- * @default secondary
13
- */
14
- use?: 'primary' | 'secondary' | 'tertiary';
15
- /** Button theme */
16
- theme?: 'info' | 'success' | 'warning' | 'danger' | 'muted' | 'invert';
17
- /** Button activity state */
18
- active?: boolean;
19
- /**
20
- * Button size
21
- * @default m
22
- */
23
- size?: ButtonSize;
24
- /** Disabled button state */
25
- disabled?: boolean;
26
- /** Loading button state */
27
- loading?: boolean;
28
- /** Tag for the left Addon */
29
- addonLeft?: React.ElementType;
30
- /** Tag for the right Addon */
31
- addonRight?: React.ElementType;
32
- }
33
-
34
- export interface IButtonTextProps extends IBoxProps {
35
- size?: ButtonSize;
36
- }
37
-
38
- export interface IButtonAddonProps extends IBoxProps {
39
- size?: ButtonSize;
40
- }
41
-
42
- export interface IButtonContext {
43
- getTextProps: PropGetterFn;
44
- getAddonProps: PropGetterFn;
45
- }
46
-
47
- declare const Button: (<T>(props: CProps<IButtonProps & T, IButtonContext>) => ReturnEl) & {
48
- Text: <T>(props: IButtonTextProps & T) => ReturnEl;
49
- Addon: <T>(props: IButtonAddonProps & T) => ReturnEl;
50
- };
51
-
52
- export default Button;