@semcore/button 4.0.7 → 4.0.10

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,24 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
+ ## [4.0.10] - 2022-08-01
6
+
7
+ ### Changed
8
+
9
+ - Version patch update due to children dependencies update (`@semcore/utils` [3.35.0 ~> 3.35.1]).
10
+
11
+ ## [4.0.9] - 2022-07-22
12
+
13
+ ### Changed
14
+
15
+ - Version patch update due to children dependencies update (`@semcore/utils` [3.34.0 ~> 3.35.0]).
16
+
17
+ ## [4.0.8] - 2022-07-14
18
+
19
+ ### Changed
20
+
21
+ - Version patch update due to children dependencies update (`@semcore/neighbor-location` [2.3.9 ~> 2.3.10]).
22
+
5
23
  ## [4.0.7] - 2022-07-07
6
24
 
7
25
  ### Changed
package/README.md CHANGED
@@ -42,12 +42,12 @@ of the components that is discussed below. There should only be one version of t
42
42
 
43
43
  You can use the package the same way but without `/ui/` in the import path.
44
44
 
45
- </details>
46
-
47
45
  ```jsx
48
46
  import Button from '@semcore/button';
49
47
  ```
50
48
 
49
+ </details>
50
+
51
51
  ## 👤 Author
52
52
 
53
53
  [UI-kit team](https://github.com/semrush/intergalactic/blob/master/MAINTAINERS) and [others ❤️](https://github.com/semrush/intergalactic/graphs/contributors)
package/lib/cjs/Button.js CHANGED
@@ -52,36 +52,36 @@ var style = (
52
52
  /*__reshadow_css_start__*/
53
53
  _core.sstyled.insert(
54
54
  /*__inner_css_start__*/
55
- ".___SButton_1gip4_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_1gip4_gg_::-moz-focus-inner{padding:0;border:none}.___SButton_1gip4_gg_:active,.___SButton_1gip4_gg_:focus,.___SButton_1gip4_gg_:hover{outline:0;text-decoration:none}.___SButton_1gip4_gg_.__disabled_1gip4_gg_{opacity:0.3;cursor:default;pointer-events:none}.___SButton_1gip4_gg_.__keyboardFocused_1gip4_gg_{box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2);z-index:1}.___SButton_1gip4_gg_._size_m_1gip4_gg_{height:28px;min-width:28px;border-radius:6px;font-size:14px}.___SButton_1gip4_gg_._size_l_1gip4_gg_{height:40px;min-width:40px;border-radius:6px;font-size:16px}.___SButton_1gip4_gg_._theme_primary-info_1gip4_gg_{color:#ffffff;background-color:#008ff8}.___SButton_1gip4_gg_._theme_primary-info_1gip4_gg_:hover{background-color:#006dca}.___SButton_1gip4_gg_._theme_primary-info_1gip4_gg_:active,.___SButton_1gip4_gg_._theme_primary-info_1gip4_gg_.__active_1gip4_gg_{background-color:#044792}.___SButton_1gip4_gg_._theme_primary-success_1gip4_gg_{color:#ffffff;background-color:#009f81}.___SButton_1gip4_gg_._theme_primary-success_1gip4_gg_:hover{background-color:#007c65}.___SButton_1gip4_gg_._theme_primary-success_1gip4_gg_:active,.___SButton_1gip4_gg_._theme_primary-success_1gip4_gg_.__active_1gip4_gg_{background-color:#055345}.___SButton_1gip4_gg_._theme_primary-warning_1gip4_gg_{background-color:#ff642d;color:#ffffff}.___SButton_1gip4_gg_._theme_primary-warning_1gip4_gg_:hover{background-color:#c33909}.___SButton_1gip4_gg_._theme_primary-warning_1gip4_gg_:active,.___SButton_1gip4_gg_._theme_primary-warning_1gip4_gg_.__active_1gip4_gg_{background-color:#8b1500}.___SButton_1gip4_gg_._theme_primary-danger_1gip4_gg_{background-color:#ff4953;color:#ffffff}.___SButton_1gip4_gg_._theme_primary-danger_1gip4_gg_:hover{background-color:#d1002f}.___SButton_1gip4_gg_._theme_primary-danger_1gip4_gg_:active,.___SButton_1gip4_gg_._theme_primary-danger_1gip4_gg_.__active_1gip4_gg_{background-color:#8e0016}.___SButton_1gip4_gg_._theme_primary-invert_1gip4_gg_{background-color:#fff;color:#191b23}.___SButton_1gip4_gg_._theme_primary-invert_1gip4_gg_:hover{background-color:#f4f5f9}.___SButton_1gip4_gg_._theme_primary-invert_1gip4_gg_:active,.___SButton_1gip4_gg_._theme_primary-invert_1gip4_gg_.__active_1gip4_gg_{background-color:#e0e1e9}.___SButton_1gip4_gg_._theme_secondary-muted_1gip4_gg_{color:#6c6e79;border-color:#c4c7cf;background-color:rgba(138,142,155,.1)}.___SButton_1gip4_gg_._theme_secondary-muted_1gip4_gg_:hover{background-color:rgba(138,142,155,.2);color:#191b23}.___SButton_1gip4_gg_._theme_secondary-muted_1gip4_gg_:active,.___SButton_1gip4_gg_._theme_secondary-muted_1gip4_gg_.__active_1gip4_gg_{background-color:rgba(138,142,155,.3);color:#191b23}.___SButton_1gip4_gg_._theme_secondary-info_1gip4_gg_{background-color:rgba(0,143,248,.05);color:#008ff8;border-color:#008ff8}.___SButton_1gip4_gg_._theme_secondary-info_1gip4_gg_:hover{background-color:rgba(0,109,202,.2)}.___SButton_1gip4_gg_._theme_secondary-info_1gip4_gg_:active,.___SButton_1gip4_gg_._theme_secondary-info_1gip4_gg_.__active_1gip4_gg_{background-color:rgba(0,109,202,.3)}.___SButton_1gip4_gg_._theme_secondary-invert_1gip4_gg_{background-color:hsla(0,0%,100%,.05);color:#fff;border-color:#fff}.___SButton_1gip4_gg_._theme_secondary-invert_1gip4_gg_:hover{background-color:hsla(0,0%,100%,.1)}.___SButton_1gip4_gg_._theme_secondary-invert_1gip4_gg_:active,.___SButton_1gip4_gg_._theme_secondary-invert_1gip4_gg_.__active_1gip4_gg_{background-color:hsla(0,0%,100%,.3)}.___SButton_1gip4_gg_._theme_tertiary-info_1gip4_gg_{color:#006dca;background-color:transparent}.___SButton_1gip4_gg_._theme_tertiary-info_1gip4_gg_:hover{background-color:rgba(0,143,248,.2)}.___SButton_1gip4_gg_._theme_tertiary-info_1gip4_gg_:active,.___SButton_1gip4_gg_._theme_tertiary-info_1gip4_gg_.__active_1gip4_gg_{background-color:rgba(0,143,248,.3)}.___SButton_1gip4_gg_._theme_tertiary-muted_1gip4_gg_{color:#6c6e79;background-color:transparent}.___SButton_1gip4_gg_._theme_tertiary-muted_1gip4_gg_:hover{background-color:rgba(138,142,155,.2);color:#191b23}.___SButton_1gip4_gg_._theme_tertiary-muted_1gip4_gg_:active,.___SButton_1gip4_gg_._theme_tertiary-muted_1gip4_gg_.__active_1gip4_gg_{background-color:rgba(138,142,155,.3);color:#191b23}.___SButton_1gip4_gg_._theme_tertiary-invert_1gip4_gg_{color:#fff;background-color:transparent}.___SButton_1gip4_gg_._theme_tertiary-invert_1gip4_gg_:hover{background-color:hsla(0,0%,100%,.1)}.___SButton_1gip4_gg_._theme_tertiary-invert_1gip4_gg_:active,.___SButton_1gip4_gg_._theme_tertiary-invert_1gip4_gg_.__active_1gip4_gg_{background-color:hsla(0,0%,100%,.3)}.___SButton_1gip4_gg_._neighborLocation_right_1gip4_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SButton_1gip4_gg_._neighborLocation_both_1gip4_gg_{border-radius:0;margin-left:-1px}.___SButton_1gip4_gg_._neighborLocation_both_1gip4_gg_._theme_primary-danger_1gip4_gg_,.___SButton_1gip4_gg_._neighborLocation_both_1gip4_gg_._theme_primary-info_1gip4_gg_,.___SButton_1gip4_gg_._neighborLocation_both_1gip4_gg_._theme_primary-success_1gip4_gg_,.___SButton_1gip4_gg_._neighborLocation_both_1gip4_gg_._theme_primary-warning_1gip4_gg_{border-left-color:hsla(0,0%,100%,.5)}.___SButton_1gip4_gg_._neighborLocation_both_1gip4_gg_._theme_primary-invert_1gip4_gg_{border-left-color:rgba(0,0,0,.5)}.___SButton_1gip4_gg_._neighborLocation_left_1gip4_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.___SButton_1gip4_gg_._neighborLocation_left_1gip4_gg_._theme_primary-danger_1gip4_gg_,.___SButton_1gip4_gg_._neighborLocation_left_1gip4_gg_._theme_primary-info_1gip4_gg_,.___SButton_1gip4_gg_._neighborLocation_left_1gip4_gg_._theme_primary-success_1gip4_gg_,.___SButton_1gip4_gg_._neighborLocation_left_1gip4_gg_._theme_primary-warning_1gip4_gg_{border-left-color:hsla(0,0%,100%,.5)}.___SButton_1gip4_gg_._neighborLocation_left_1gip4_gg_._theme_primary-invert_1gip4_gg_{border-left-color:rgba(0,0,0,.5)}.___SSpin_1gip4_gg_{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}.___SInner_1gip4_gg_{display:inline-flex;align-items:center;justify-content:center;height:100%;width:100%}.___SInner_1gip4_gg_.__loading_1gip4_gg_{visibility:hidden}.___SText_1gip4_gg_{display:inline-flex}.___SText_1gip4_gg_._size_m_1gip4_gg_{margin-left:8px;margin-right:8px;line-height:1.42}.___SText_1gip4_gg_._size_l_1gip4_gg_{margin-left:12px;margin-right:12px;line-height:1.5}.___SAddon_1gip4_gg_{display:inline-flex;align-items:center;justify-content:center}.___SAddon_1gip4_gg_._size_m_1gip4_gg_:not(:only-child):first-child{margin-left:8px}.___SAddon_1gip4_gg_._size_m_1gip4_gg_:not(:only-child):last-child{margin-right:8px}.___SAddon_1gip4_gg_._size_m_1gip4_gg_:only-child{margin-left:-4px;margin-right:-4px}.___SAddon_1gip4_gg_._size_l_1gip4_gg_:not(:only-child):first-child{margin-left:8px}.___SAddon_1gip4_gg_._size_l_1gip4_gg_:not(:only-child):last-child{margin-right:8px}.___SAddon_1gip4_gg_._size_l_1gip4_gg_:only-child{margin-left:-4px;margin-right:-4px}"
55
+ ".___SButton_1c1ei_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_1c1ei_gg_::-moz-focus-inner{padding:0;border:none}.___SButton_1c1ei_gg_:active,.___SButton_1c1ei_gg_:focus,.___SButton_1c1ei_gg_:hover{outline:0;text-decoration:none}.___SButton_1c1ei_gg_.__disabled_1c1ei_gg_{opacity:0.3;cursor:default;pointer-events:none}.___SButton_1c1ei_gg_.__keyboardFocused_1c1ei_gg_{box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2);z-index:1}.___SButton_1c1ei_gg_._size_m_1c1ei_gg_{height:28px;min-width:28px;border-radius:6px;font-size:14px}.___SButton_1c1ei_gg_._size_l_1c1ei_gg_{height:40px;min-width:40px;border-radius:6px;font-size:16px}.___SButton_1c1ei_gg_._theme_primary-info_1c1ei_gg_{color:#ffffff;background-color:#008ff8}.___SButton_1c1ei_gg_._theme_primary-info_1c1ei_gg_:hover{background-color:#006dca}.___SButton_1c1ei_gg_._theme_primary-info_1c1ei_gg_:active,.___SButton_1c1ei_gg_._theme_primary-info_1c1ei_gg_.__active_1c1ei_gg_{background-color:#044792}.___SButton_1c1ei_gg_._theme_primary-success_1c1ei_gg_{color:#ffffff;background-color:#009f81}.___SButton_1c1ei_gg_._theme_primary-success_1c1ei_gg_:hover{background-color:#007c65}.___SButton_1c1ei_gg_._theme_primary-success_1c1ei_gg_:active,.___SButton_1c1ei_gg_._theme_primary-success_1c1ei_gg_.__active_1c1ei_gg_{background-color:#055345}.___SButton_1c1ei_gg_._theme_primary-warning_1c1ei_gg_{background-color:#ff642d;color:#ffffff}.___SButton_1c1ei_gg_._theme_primary-warning_1c1ei_gg_:hover{background-color:#c33909}.___SButton_1c1ei_gg_._theme_primary-warning_1c1ei_gg_:active,.___SButton_1c1ei_gg_._theme_primary-warning_1c1ei_gg_.__active_1c1ei_gg_{background-color:#8b1500}.___SButton_1c1ei_gg_._theme_primary-danger_1c1ei_gg_{background-color:#ff4953;color:#ffffff}.___SButton_1c1ei_gg_._theme_primary-danger_1c1ei_gg_:hover{background-color:#d1002f}.___SButton_1c1ei_gg_._theme_primary-danger_1c1ei_gg_:active,.___SButton_1c1ei_gg_._theme_primary-danger_1c1ei_gg_.__active_1c1ei_gg_{background-color:#8e0016}.___SButton_1c1ei_gg_._theme_primary-invert_1c1ei_gg_{background-color:#fff;color:#191b23}.___SButton_1c1ei_gg_._theme_primary-invert_1c1ei_gg_:hover{background-color:#f4f5f9}.___SButton_1c1ei_gg_._theme_primary-invert_1c1ei_gg_:active,.___SButton_1c1ei_gg_._theme_primary-invert_1c1ei_gg_.__active_1c1ei_gg_{background-color:#e0e1e9}.___SButton_1c1ei_gg_._theme_secondary-muted_1c1ei_gg_{color:#6c6e79;border-color:#c4c7cf;background-color:rgba(138,142,155,.1)}.___SButton_1c1ei_gg_._theme_secondary-muted_1c1ei_gg_:hover{background-color:rgba(138,142,155,.2);color:#191b23}.___SButton_1c1ei_gg_._theme_secondary-muted_1c1ei_gg_:active,.___SButton_1c1ei_gg_._theme_secondary-muted_1c1ei_gg_.__active_1c1ei_gg_{background-color:rgba(138,142,155,.3);color:#191b23}.___SButton_1c1ei_gg_._theme_secondary-info_1c1ei_gg_{background-color:rgba(0,143,248,.05);color:#008ff8;border-color:#008ff8}.___SButton_1c1ei_gg_._theme_secondary-info_1c1ei_gg_:hover{background-color:rgba(0,109,202,.2)}.___SButton_1c1ei_gg_._theme_secondary-info_1c1ei_gg_:active,.___SButton_1c1ei_gg_._theme_secondary-info_1c1ei_gg_.__active_1c1ei_gg_{background-color:rgba(0,109,202,.3)}.___SButton_1c1ei_gg_._theme_secondary-invert_1c1ei_gg_{background-color:hsla(0,0%,100%,.05);color:#fff;border-color:#fff}.___SButton_1c1ei_gg_._theme_secondary-invert_1c1ei_gg_:hover{background-color:hsla(0,0%,100%,.1)}.___SButton_1c1ei_gg_._theme_secondary-invert_1c1ei_gg_:active,.___SButton_1c1ei_gg_._theme_secondary-invert_1c1ei_gg_.__active_1c1ei_gg_{background-color:hsla(0,0%,100%,.3)}.___SButton_1c1ei_gg_._theme_tertiary-info_1c1ei_gg_{color:#006dca;background-color:transparent}.___SButton_1c1ei_gg_._theme_tertiary-info_1c1ei_gg_:hover{background-color:rgba(0,143,248,.2)}.___SButton_1c1ei_gg_._theme_tertiary-info_1c1ei_gg_:active,.___SButton_1c1ei_gg_._theme_tertiary-info_1c1ei_gg_.__active_1c1ei_gg_{background-color:rgba(0,143,248,.3)}.___SButton_1c1ei_gg_._theme_tertiary-muted_1c1ei_gg_{color:#6c6e79;background-color:transparent}.___SButton_1c1ei_gg_._theme_tertiary-muted_1c1ei_gg_:hover{background-color:rgba(138,142,155,.2);color:#191b23}.___SButton_1c1ei_gg_._theme_tertiary-muted_1c1ei_gg_:active,.___SButton_1c1ei_gg_._theme_tertiary-muted_1c1ei_gg_.__active_1c1ei_gg_{background-color:rgba(138,142,155,.3);color:#191b23}.___SButton_1c1ei_gg_._theme_tertiary-invert_1c1ei_gg_{color:#fff;background-color:transparent}.___SButton_1c1ei_gg_._theme_tertiary-invert_1c1ei_gg_:hover{background-color:hsla(0,0%,100%,.1)}.___SButton_1c1ei_gg_._theme_tertiary-invert_1c1ei_gg_:active,.___SButton_1c1ei_gg_._theme_tertiary-invert_1c1ei_gg_.__active_1c1ei_gg_{background-color:hsla(0,0%,100%,.3)}.___SButton_1c1ei_gg_._neighborLocation_right_1c1ei_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SButton_1c1ei_gg_._neighborLocation_both_1c1ei_gg_{border-radius:0;margin-left:-1px}.___SButton_1c1ei_gg_._neighborLocation_both_1c1ei_gg_._theme_primary-danger_1c1ei_gg_,.___SButton_1c1ei_gg_._neighborLocation_both_1c1ei_gg_._theme_primary-info_1c1ei_gg_,.___SButton_1c1ei_gg_._neighborLocation_both_1c1ei_gg_._theme_primary-success_1c1ei_gg_,.___SButton_1c1ei_gg_._neighborLocation_both_1c1ei_gg_._theme_primary-warning_1c1ei_gg_{border-left-color:hsla(0,0%,100%,.5)}.___SButton_1c1ei_gg_._neighborLocation_both_1c1ei_gg_._theme_primary-invert_1c1ei_gg_{border-left-color:rgba(0,0,0,.5)}.___SButton_1c1ei_gg_._neighborLocation_left_1c1ei_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.___SButton_1c1ei_gg_._neighborLocation_left_1c1ei_gg_._theme_primary-danger_1c1ei_gg_,.___SButton_1c1ei_gg_._neighborLocation_left_1c1ei_gg_._theme_primary-info_1c1ei_gg_,.___SButton_1c1ei_gg_._neighborLocation_left_1c1ei_gg_._theme_primary-success_1c1ei_gg_,.___SButton_1c1ei_gg_._neighborLocation_left_1c1ei_gg_._theme_primary-warning_1c1ei_gg_{border-left-color:hsla(0,0%,100%,.5)}.___SButton_1c1ei_gg_._neighborLocation_left_1c1ei_gg_._theme_primary-invert_1c1ei_gg_{border-left-color:rgba(0,0,0,.5)}.___SSpin_1c1ei_gg_{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}.___SInner_1c1ei_gg_{display:inline-flex;align-items:center;justify-content:center;height:100%;width:100%}.___SInner_1c1ei_gg_.__loading_1c1ei_gg_{visibility:hidden}.___SText_1c1ei_gg_{display:inline-flex}.___SText_1c1ei_gg_._size_m_1c1ei_gg_{margin-left:8px;margin-right:8px;line-height:1.42}.___SText_1c1ei_gg_._size_l_1c1ei_gg_{margin-left:12px;margin-right:12px;line-height:1.5}.___SAddon_1c1ei_gg_{display:inline-flex;align-items:center;justify-content:center}.___SAddon_1c1ei_gg_._size_m_1c1ei_gg_:not(:only-child):first-child{margin-left:8px}.___SAddon_1c1ei_gg_._size_m_1c1ei_gg_:not(:only-child):last-child{margin-right:8px}.___SAddon_1c1ei_gg_._size_m_1c1ei_gg_:only-child{margin-left:-4px;margin-right:-4px}.___SAddon_1c1ei_gg_._size_l_1c1ei_gg_:not(:only-child):first-child{margin-left:8px}.___SAddon_1c1ei_gg_._size_l_1c1ei_gg_:not(:only-child):last-child{margin-right:8px}.___SAddon_1c1ei_gg_._size_l_1c1ei_gg_:only-child{margin-left:-4px;margin-right:-4px}"
56
56
  /*__inner_css_end__*/
57
- , "1cgyyq3_gg_")
57
+ , "1c1ei_gg_")
58
58
  /*__reshadow_css_end__*/
59
59
  , {
60
- "__SButton": "___SButton_1gip4_gg_",
61
- "_disabled": "__disabled_1gip4_gg_",
62
- "_keyboardFocused": "__keyboardFocused_1gip4_gg_",
63
- "_size_m": "_size_m_1gip4_gg_",
64
- "_size_l": "_size_l_1gip4_gg_",
65
- "_theme_primary-info": "_theme_primary-info_1gip4_gg_",
66
- "_active": "__active_1gip4_gg_",
67
- "_theme_primary-success": "_theme_primary-success_1gip4_gg_",
68
- "_theme_primary-warning": "_theme_primary-warning_1gip4_gg_",
69
- "_theme_primary-danger": "_theme_primary-danger_1gip4_gg_",
70
- "_theme_primary-invert": "_theme_primary-invert_1gip4_gg_",
71
- "_theme_secondary-muted": "_theme_secondary-muted_1gip4_gg_",
72
- "_theme_secondary-info": "_theme_secondary-info_1gip4_gg_",
73
- "_theme_secondary-invert": "_theme_secondary-invert_1gip4_gg_",
74
- "_theme_tertiary-info": "_theme_tertiary-info_1gip4_gg_",
75
- "_theme_tertiary-muted": "_theme_tertiary-muted_1gip4_gg_",
76
- "_theme_tertiary-invert": "_theme_tertiary-invert_1gip4_gg_",
77
- "_neighborLocation_right": "_neighborLocation_right_1gip4_gg_",
78
- "_neighborLocation_both": "_neighborLocation_both_1gip4_gg_",
79
- "_neighborLocation_left": "_neighborLocation_left_1gip4_gg_",
80
- "__SSpin": "___SSpin_1gip4_gg_",
81
- "__SInner": "___SInner_1gip4_gg_",
82
- "_loading": "__loading_1gip4_gg_",
83
- "__SText": "___SText_1gip4_gg_",
84
- "__SAddon": "___SAddon_1gip4_gg_"
60
+ "__SButton": "___SButton_1c1ei_gg_",
61
+ "_disabled": "__disabled_1c1ei_gg_",
62
+ "_keyboardFocused": "__keyboardFocused_1c1ei_gg_",
63
+ "_size_m": "_size_m_1c1ei_gg_",
64
+ "_size_l": "_size_l_1c1ei_gg_",
65
+ "_theme_primary-info": "_theme_primary-info_1c1ei_gg_",
66
+ "_active": "__active_1c1ei_gg_",
67
+ "_theme_primary-success": "_theme_primary-success_1c1ei_gg_",
68
+ "_theme_primary-warning": "_theme_primary-warning_1c1ei_gg_",
69
+ "_theme_primary-danger": "_theme_primary-danger_1c1ei_gg_",
70
+ "_theme_primary-invert": "_theme_primary-invert_1c1ei_gg_",
71
+ "_theme_secondary-muted": "_theme_secondary-muted_1c1ei_gg_",
72
+ "_theme_secondary-info": "_theme_secondary-info_1c1ei_gg_",
73
+ "_theme_secondary-invert": "_theme_secondary-invert_1c1ei_gg_",
74
+ "_theme_tertiary-info": "_theme_tertiary-info_1c1ei_gg_",
75
+ "_theme_tertiary-muted": "_theme_tertiary-muted_1c1ei_gg_",
76
+ "_theme_tertiary-invert": "_theme_tertiary-invert_1c1ei_gg_",
77
+ "_neighborLocation_right": "_neighborLocation_right_1c1ei_gg_",
78
+ "_neighborLocation_both": "_neighborLocation_both_1c1ei_gg_",
79
+ "_neighborLocation_left": "_neighborLocation_left_1c1ei_gg_",
80
+ "__SSpin": "___SSpin_1c1ei_gg_",
81
+ "__SInner": "___SInner_1c1ei_gg_",
82
+ "_loading": "__loading_1c1ei_gg_",
83
+ "__SText": "___SText_1c1ei_gg_",
84
+ "__SAddon": "___SAddon_1c1ei_gg_"
85
85
  });
86
86
  var MAP_USE_DEFAULT_THEME = {
87
87
  primary: 'info',
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Button.jsx"],"names":["MAP_USE_DEFAULT_THEME","primary","secondary","tertiary","RootButton","size","asProps","SButton","Box","SInner","SSpin","Children","styles","use","theme","loading","disabled","addonLeft","addonRight","useTheme","Button","Text","Addon","Component","style","props","SText","SAddon"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA;;AADA;;AAE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sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\nimport { neighborLocationEnhance } from '@semcore/neighbor-location';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport addonTextChildren from '@semcore/utils/lib/addonTextChildren';\nimport SpinButton from './SpinButton';\n\nimport style from './style/button.shadow.css';\n\nexport const MAP_USE_DEFAULT_THEME = {\n primary: 'info',\n secondary: 'muted',\n tertiary: 'info',\n};\n\nclass RootButton extends Component {\n static displayName = 'Button';\n static enhance = [keyboardFocusEnhance(), neighborLocationEnhance()];\n static style = style;\n static defaultProps = {\n use: 'secondary',\n size: 'm',\n };\n\n getTextProps() {\n const { size } = this.asProps;\n return {\n size,\n };\n }\n\n getAddonProps() {\n const { size } = this.asProps;\n return {\n size,\n };\n }\n\n render() {\n const SButton = Root;\n const SInner = Box;\n const SSpin = Box;\n const {\n Children,\n styles,\n use,\n theme = typeof use === 'string' && MAP_USE_DEFAULT_THEME[use],\n loading,\n disabled = loading,\n size,\n addonLeft,\n addonRight,\n } = this.asProps;\n\n const useTheme = use && theme ? `${use}-${theme}` : false;\n return sstyled(styles)(\n <SButton render={Box} type=\"button\" tag=\"button\" disabled={disabled} use:theme={useTheme}>\n <SInner tag=\"span\" loading={loading}>\n {addonLeft ? <Button.Addon tag={addonLeft} /> : null}\n {addonTextChildren(Children, Button.Text, Button.Addon)}\n {addonRight ? <Button.Addon tag={addonRight} /> : null}\n </SInner>\n {loading && (\n <SSpin tag=\"span\">\n <SpinButton centered size={size} theme={useTheme} />\n </SSpin>\n )}\n </SButton>,\n );\n }\n}\n\nfunction Text(props) {\n const SText = Root;\n return sstyled(props.styles)(<SText render={Box} tag=\"span\" />);\n}\n\nfunction Addon(props) {\n const SAddon = Root;\n return sstyled(props.styles)(<SAddon render={Box} tag=\"span\" />);\n}\n\nconst Button = createComponent(RootButton, {\n Text,\n Addon,\n});\n\nexport default Button;\n"],"file":"Button.js"}
1
+ {"version":3,"file":"Button.js","names":["MAP_USE_DEFAULT_THEME","primary","secondary","tertiary","RootButton","size","asProps","SButton","Box","SInner","SSpin","Children","styles","use","theme","loading","disabled","addonLeft","addonRight","useTheme","sstyled","addonTextChildren","Button","Text","Addon","Component","keyboardFocusEnhance","neighborLocationEnhance","style","props","SText","SAddon","createComponent"],"sources":["../../src/Button.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\nimport { neighborLocationEnhance } from '@semcore/neighbor-location';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport addonTextChildren from '@semcore/utils/lib/addonTextChildren';\nimport SpinButton from './SpinButton';\n\nimport style from './style/button.shadow.css';\n\nexport const MAP_USE_DEFAULT_THEME = {\n primary: 'info',\n secondary: 'muted',\n tertiary: 'info',\n};\n\nclass RootButton extends Component {\n static displayName = 'Button';\n static enhance = [keyboardFocusEnhance(), neighborLocationEnhance()];\n static style = style;\n static defaultProps = {\n use: 'secondary',\n size: 'm',\n };\n\n getTextProps() {\n const { size } = this.asProps;\n return {\n size,\n };\n }\n\n getAddonProps() {\n const { size } = this.asProps;\n return {\n size,\n };\n }\n\n render() {\n const SButton = Root;\n const SInner = Box;\n const SSpin = Box;\n const {\n Children,\n styles,\n use,\n theme = typeof use === 'string' && MAP_USE_DEFAULT_THEME[use],\n loading,\n disabled = loading,\n size,\n addonLeft,\n addonRight,\n } = this.asProps;\n\n const useTheme = use && theme ? `${use}-${theme}` : false;\n return sstyled(styles)(\n <SButton render={Box} type=\"button\" tag=\"button\" disabled={disabled} use:theme={useTheme}>\n <SInner tag=\"span\" loading={loading}>\n {addonLeft ? <Button.Addon tag={addonLeft} /> : null}\n {addonTextChildren(Children, Button.Text, Button.Addon)}\n {addonRight ? <Button.Addon tag={addonRight} /> : null}\n </SInner>\n {loading && (\n <SSpin tag=\"span\">\n <SpinButton centered size={size} theme={useTheme} />\n </SSpin>\n )}\n </SButton>,\n );\n }\n}\n\nfunction Text(props) {\n const SText = Root;\n return sstyled(props.styles)(<SText render={Box} tag=\"span\" />);\n}\n\nfunction Addon(props) {\n const SAddon = Root;\n return sstyled(props.styles)(<SAddon render={Box} tag=\"span\" />);\n}\n\nconst Button = createComponent(RootButton, {\n Text,\n Addon,\n});\n\nexport default Button;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA;;AADA;;AAEA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIO,IAAMA,qBAAqB,GAAG;EACnCC,OAAO,EAAE,MAD0B;EAEnCC,SAAS,EAAE,OAFwB;EAGnCC,QAAQ,EAAE;AAHyB,CAA9B;;;IAMDC,U;;;;;;;;;;;;WASJ,wBAAe;MACb,IAAQC,IAAR,GAAiB,KAAKC,OAAtB,CAAQD,IAAR;MACA,OAAO;QACLA,IAAI,EAAJA;MADK,CAAP;IAGD;;;WAED,yBAAgB;MACd,IAAQA,IAAR,GAAiB,KAAKC,OAAtB,CAAQD,IAAR;MACA,OAAO;QACLA,IAAI,EAAJA;MADK,CAAP;IAGD;;;WAED,kBAAS;MAAA;MAAA;;MACP,IAAME,OAAO,GAiBMC,YAjBnB;MACA,IAAMC,MAAM,GAAGD,YAAf;MACA,IAAME,KAAK,GAAGF,YAAd;MACA,oBAUI,KAAKF,OAVT;MAAA,IACEK,QADF,iBACEA,QADF;MAAA,IAEEC,MAFF,iBAEEA,MAFF;MAAA,IAGEC,GAHF,iBAGEA,GAHF;MAAA,wCAIEC,KAJF;MAAA,IAIEA,KAJF,oCAIU,OAAOD,GAAP,KAAe,QAAf,IAA2Bb,qBAAqB,CAACa,GAAD,CAJ1D;MAAA,IAKEE,OALF,iBAKEA,OALF;MAAA,0CAMEC,QANF;MAAA,IAMEA,QANF,sCAMaD,OANb;MAAA,IAOEV,IAPF,iBAOEA,IAPF;MAAA,IAQEY,SAR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AAA;;EACpB,IAAME,MAAM,GACiCvB,YAD7C;EACA,eAAO,IAAAY,aAAA,EAAQS,KAAK,CAACjB,MAAd,CAAP,eAA6B,gCAAC,MAAD;IAAA,OAAyB;EAAzB,YAA7B;AACD;;AAED,IAAMU,MAAM,GAAG,IAAAU,gBAAA,EAAgB5B,UAAhB,EAA4B;EACzCmB,IAAI,EAAJA,IADyC;EAEzCC,KAAK,EAALA;AAFyC,CAA5B,CAAf;eAKeF,M"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/SpinButton.jsx"],"names":["SPIN_SIZE_MAP","xl","l","m","s","SPIN_THEME_MAP","SpinButton","theme","size","others"],"mappings":";;;;;;;;;;;;;;AAAA;;AACA;;;AAEO,IAAMA,aAAa,GAAG;AAC3BC,EAAAA,EAAE,EAAE,GADuB;AAE3BC,EAAAA,CAAC,EAAE,GAFwB;AAG3BC,EAAAA,CAAC,EAAE,IAHwB;AAI3BC,EAAAA,CAAC,EAAE;AAJwB,CAAtB;;AAOA,IAAMC,cAAc,GAAG;AAC5B,kBAAgB,QADY;AAE5B,qBAAmB,QAFS;AAG5B,qBAAmB,QAHS;AAI5B,oBAAkB,QAJU;AAK5B,sBAAoB,QALQ;AAM5B,qBAAmB,UANS;AAO5B,oBAAkB,UAPU;AAQ5B,qBAAmB,QARS;AAS5B,mBAAiB;AATW,CAAvB;;;AAYQ,SAASC,UAAT,OAAgD;AAAA,MAA1BC,KAA0B,QAA1BA,KAA0B;AAAA,MAAnBC,IAAmB,QAAnBA,IAAmB;AAAA,MAAVC,MAAU;AAC7D,sBACE,gCAAC,gBAAD;AACE,IAAA,IAAI,EAAE,OAAOD,IAAP,IAAe,QAAf,GAA0BR,aAAa,CAACQ,IAAD,CAAvC,GAAgDA,IADxD;AAEE,IAAA,KAAK,EAAE,OAAOD,KAAP,KAAiB,QAAjB,GAA4BF,cAAc,CAACE,KAAD,CAAd,IAAyB,MAArD,GAA8DA;AAFvE,KAGME,MAHN,EADF;AAOD","sourcesContent":["import React from 'react';\nimport Spin from '@semcore/spin';\n\nexport const SPIN_SIZE_MAP = {\n xl: 'm',\n l: 's',\n m: 'xs',\n s: 'xxs',\n};\n\nexport const SPIN_THEME_MAP = {\n 'primary-info': 'invert',\n 'primary-success': 'invert',\n 'primary-warning': 'invert',\n 'primary-danger': 'invert',\n 'secondary-invert': 'invert',\n 'secondary-muted': 'gray-600',\n 'secondary-info': 'blue-400',\n 'tertiary-invert': 'invert',\n 'tertiary-info': 'blue-400',\n};\n\nexport default function SpinButton({ theme, size, ...others }) {\n return (\n <Spin\n size={typeof size == 'string' ? SPIN_SIZE_MAP[size] : size}\n theme={typeof theme === 'string' ? SPIN_THEME_MAP[theme] || 'dark' : theme}\n {...others}\n />\n );\n}\n"],"file":"SpinButton.js"}
1
+ {"version":3,"file":"SpinButton.js","names":["SPIN_SIZE_MAP","xl","l","m","s","SPIN_THEME_MAP","SpinButton","theme","size","others"],"sources":["../../src/SpinButton.jsx"],"sourcesContent":["import React from 'react';\nimport Spin from '@semcore/spin';\n\nexport const SPIN_SIZE_MAP = {\n xl: 'm',\n l: 's',\n m: 'xs',\n s: 'xxs',\n};\n\nexport const SPIN_THEME_MAP = {\n 'primary-info': 'invert',\n 'primary-success': 'invert',\n 'primary-warning': 'invert',\n 'primary-danger': 'invert',\n 'secondary-invert': 'invert',\n 'secondary-muted': 'gray-600',\n 'secondary-info': 'blue-400',\n 'tertiary-invert': 'invert',\n 'tertiary-info': 'blue-400',\n};\n\nexport default function SpinButton({ theme, size, ...others }) {\n return (\n <Spin\n size={typeof size == 'string' ? SPIN_SIZE_MAP[size] : size}\n theme={typeof theme === 'string' ? SPIN_THEME_MAP[theme] || 'dark' : theme}\n {...others}\n />\n );\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA;;AACA;;;AAEO,IAAMA,aAAa,GAAG;EAC3BC,EAAE,EAAE,GADuB;EAE3BC,CAAC,EAAE,GAFwB;EAG3BC,CAAC,EAAE,IAHwB;EAI3BC,CAAC,EAAE;AAJwB,CAAtB;;AAOA,IAAMC,cAAc,GAAG;EAC5B,gBAAgB,QADY;EAE5B,mBAAmB,QAFS;EAG5B,mBAAmB,QAHS;EAI5B,kBAAkB,QAJU;EAK5B,oBAAoB,QALQ;EAM5B,mBAAmB,UANS;EAO5B,kBAAkB,UAPU;EAQ5B,mBAAmB,QARS;EAS5B,iBAAiB;AATW,CAAvB;;;AAYQ,SAASC,UAAT,OAAgD;EAAA,IAA1BC,KAA0B,QAA1BA,KAA0B;EAAA,IAAnBC,IAAmB,QAAnBA,IAAmB;EAAA,IAAVC,MAAU;EAC7D,oBACE,gCAAC,gBAAD;IACE,IAAI,EAAE,OAAOD,IAAP,IAAe,QAAf,GAA0BR,aAAa,CAACQ,IAAD,CAAvC,GAAgDA,IADxD;IAEE,KAAK,EAAE,OAAOD,KAAP,KAAiB,QAAjB,GAA4BF,cAAc,CAACE,KAAD,CAAd,IAAyB,MAArD,GAA8DA;EAFvE,GAGME,MAHN,EADF;AAOD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;AACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA","sourcesContent":["export { default } from './Button';\nexport * from './Button';\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../src/index.js"],"sourcesContent":["export { default } from './Button';\nexport * from './Button';\n"],"mappings":";;;;;;;;;;;;;;;AAAA;;AACA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
package/lib/es6/Button.js CHANGED
@@ -30,36 +30,36 @@ var style = (
30
30
  /*__reshadow_css_start__*/
31
31
  _sstyled.insert(
32
32
  /*__inner_css_start__*/
33
- ".___SButton_1gip4_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_1gip4_gg_::-moz-focus-inner{padding:0;border:none}.___SButton_1gip4_gg_:active,.___SButton_1gip4_gg_:focus,.___SButton_1gip4_gg_:hover{outline:0;text-decoration:none}.___SButton_1gip4_gg_.__disabled_1gip4_gg_{opacity:0.3;cursor:default;pointer-events:none}.___SButton_1gip4_gg_.__keyboardFocused_1gip4_gg_{box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2);z-index:1}.___SButton_1gip4_gg_._size_m_1gip4_gg_{height:28px;min-width:28px;border-radius:6px;font-size:14px}.___SButton_1gip4_gg_._size_l_1gip4_gg_{height:40px;min-width:40px;border-radius:6px;font-size:16px}.___SButton_1gip4_gg_._theme_primary-info_1gip4_gg_{color:#ffffff;background-color:#008ff8}.___SButton_1gip4_gg_._theme_primary-info_1gip4_gg_:hover{background-color:#006dca}.___SButton_1gip4_gg_._theme_primary-info_1gip4_gg_:active,.___SButton_1gip4_gg_._theme_primary-info_1gip4_gg_.__active_1gip4_gg_{background-color:#044792}.___SButton_1gip4_gg_._theme_primary-success_1gip4_gg_{color:#ffffff;background-color:#009f81}.___SButton_1gip4_gg_._theme_primary-success_1gip4_gg_:hover{background-color:#007c65}.___SButton_1gip4_gg_._theme_primary-success_1gip4_gg_:active,.___SButton_1gip4_gg_._theme_primary-success_1gip4_gg_.__active_1gip4_gg_{background-color:#055345}.___SButton_1gip4_gg_._theme_primary-warning_1gip4_gg_{background-color:#ff642d;color:#ffffff}.___SButton_1gip4_gg_._theme_primary-warning_1gip4_gg_:hover{background-color:#c33909}.___SButton_1gip4_gg_._theme_primary-warning_1gip4_gg_:active,.___SButton_1gip4_gg_._theme_primary-warning_1gip4_gg_.__active_1gip4_gg_{background-color:#8b1500}.___SButton_1gip4_gg_._theme_primary-danger_1gip4_gg_{background-color:#ff4953;color:#ffffff}.___SButton_1gip4_gg_._theme_primary-danger_1gip4_gg_:hover{background-color:#d1002f}.___SButton_1gip4_gg_._theme_primary-danger_1gip4_gg_:active,.___SButton_1gip4_gg_._theme_primary-danger_1gip4_gg_.__active_1gip4_gg_{background-color:#8e0016}.___SButton_1gip4_gg_._theme_primary-invert_1gip4_gg_{background-color:#fff;color:#191b23}.___SButton_1gip4_gg_._theme_primary-invert_1gip4_gg_:hover{background-color:#f4f5f9}.___SButton_1gip4_gg_._theme_primary-invert_1gip4_gg_:active,.___SButton_1gip4_gg_._theme_primary-invert_1gip4_gg_.__active_1gip4_gg_{background-color:#e0e1e9}.___SButton_1gip4_gg_._theme_secondary-muted_1gip4_gg_{color:#6c6e79;border-color:#c4c7cf;background-color:rgba(138,142,155,.1)}.___SButton_1gip4_gg_._theme_secondary-muted_1gip4_gg_:hover{background-color:rgba(138,142,155,.2);color:#191b23}.___SButton_1gip4_gg_._theme_secondary-muted_1gip4_gg_:active,.___SButton_1gip4_gg_._theme_secondary-muted_1gip4_gg_.__active_1gip4_gg_{background-color:rgba(138,142,155,.3);color:#191b23}.___SButton_1gip4_gg_._theme_secondary-info_1gip4_gg_{background-color:rgba(0,143,248,.05);color:#008ff8;border-color:#008ff8}.___SButton_1gip4_gg_._theme_secondary-info_1gip4_gg_:hover{background-color:rgba(0,109,202,.2)}.___SButton_1gip4_gg_._theme_secondary-info_1gip4_gg_:active,.___SButton_1gip4_gg_._theme_secondary-info_1gip4_gg_.__active_1gip4_gg_{background-color:rgba(0,109,202,.3)}.___SButton_1gip4_gg_._theme_secondary-invert_1gip4_gg_{background-color:hsla(0,0%,100%,.05);color:#fff;border-color:#fff}.___SButton_1gip4_gg_._theme_secondary-invert_1gip4_gg_:hover{background-color:hsla(0,0%,100%,.1)}.___SButton_1gip4_gg_._theme_secondary-invert_1gip4_gg_:active,.___SButton_1gip4_gg_._theme_secondary-invert_1gip4_gg_.__active_1gip4_gg_{background-color:hsla(0,0%,100%,.3)}.___SButton_1gip4_gg_._theme_tertiary-info_1gip4_gg_{color:#006dca;background-color:transparent}.___SButton_1gip4_gg_._theme_tertiary-info_1gip4_gg_:hover{background-color:rgba(0,143,248,.2)}.___SButton_1gip4_gg_._theme_tertiary-info_1gip4_gg_:active,.___SButton_1gip4_gg_._theme_tertiary-info_1gip4_gg_.__active_1gip4_gg_{background-color:rgba(0,143,248,.3)}.___SButton_1gip4_gg_._theme_tertiary-muted_1gip4_gg_{color:#6c6e79;background-color:transparent}.___SButton_1gip4_gg_._theme_tertiary-muted_1gip4_gg_:hover{background-color:rgba(138,142,155,.2);color:#191b23}.___SButton_1gip4_gg_._theme_tertiary-muted_1gip4_gg_:active,.___SButton_1gip4_gg_._theme_tertiary-muted_1gip4_gg_.__active_1gip4_gg_{background-color:rgba(138,142,155,.3);color:#191b23}.___SButton_1gip4_gg_._theme_tertiary-invert_1gip4_gg_{color:#fff;background-color:transparent}.___SButton_1gip4_gg_._theme_tertiary-invert_1gip4_gg_:hover{background-color:hsla(0,0%,100%,.1)}.___SButton_1gip4_gg_._theme_tertiary-invert_1gip4_gg_:active,.___SButton_1gip4_gg_._theme_tertiary-invert_1gip4_gg_.__active_1gip4_gg_{background-color:hsla(0,0%,100%,.3)}.___SButton_1gip4_gg_._neighborLocation_right_1gip4_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SButton_1gip4_gg_._neighborLocation_both_1gip4_gg_{border-radius:0;margin-left:-1px}.___SButton_1gip4_gg_._neighborLocation_both_1gip4_gg_._theme_primary-danger_1gip4_gg_,.___SButton_1gip4_gg_._neighborLocation_both_1gip4_gg_._theme_primary-info_1gip4_gg_,.___SButton_1gip4_gg_._neighborLocation_both_1gip4_gg_._theme_primary-success_1gip4_gg_,.___SButton_1gip4_gg_._neighborLocation_both_1gip4_gg_._theme_primary-warning_1gip4_gg_{border-left-color:hsla(0,0%,100%,.5)}.___SButton_1gip4_gg_._neighborLocation_both_1gip4_gg_._theme_primary-invert_1gip4_gg_{border-left-color:rgba(0,0,0,.5)}.___SButton_1gip4_gg_._neighborLocation_left_1gip4_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.___SButton_1gip4_gg_._neighborLocation_left_1gip4_gg_._theme_primary-danger_1gip4_gg_,.___SButton_1gip4_gg_._neighborLocation_left_1gip4_gg_._theme_primary-info_1gip4_gg_,.___SButton_1gip4_gg_._neighborLocation_left_1gip4_gg_._theme_primary-success_1gip4_gg_,.___SButton_1gip4_gg_._neighborLocation_left_1gip4_gg_._theme_primary-warning_1gip4_gg_{border-left-color:hsla(0,0%,100%,.5)}.___SButton_1gip4_gg_._neighborLocation_left_1gip4_gg_._theme_primary-invert_1gip4_gg_{border-left-color:rgba(0,0,0,.5)}.___SSpin_1gip4_gg_{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}.___SInner_1gip4_gg_{display:inline-flex;align-items:center;justify-content:center;height:100%;width:100%}.___SInner_1gip4_gg_.__loading_1gip4_gg_{visibility:hidden}.___SText_1gip4_gg_{display:inline-flex}.___SText_1gip4_gg_._size_m_1gip4_gg_{margin-left:8px;margin-right:8px;line-height:1.42}.___SText_1gip4_gg_._size_l_1gip4_gg_{margin-left:12px;margin-right:12px;line-height:1.5}.___SAddon_1gip4_gg_{display:inline-flex;align-items:center;justify-content:center}.___SAddon_1gip4_gg_._size_m_1gip4_gg_:not(:only-child):first-child{margin-left:8px}.___SAddon_1gip4_gg_._size_m_1gip4_gg_:not(:only-child):last-child{margin-right:8px}.___SAddon_1gip4_gg_._size_m_1gip4_gg_:only-child{margin-left:-4px;margin-right:-4px}.___SAddon_1gip4_gg_._size_l_1gip4_gg_:not(:only-child):first-child{margin-left:8px}.___SAddon_1gip4_gg_._size_l_1gip4_gg_:not(:only-child):last-child{margin-right:8px}.___SAddon_1gip4_gg_._size_l_1gip4_gg_:only-child{margin-left:-4px;margin-right:-4px}"
33
+ ".___SButton_1c1ei_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_1c1ei_gg_::-moz-focus-inner{padding:0;border:none}.___SButton_1c1ei_gg_:active,.___SButton_1c1ei_gg_:focus,.___SButton_1c1ei_gg_:hover{outline:0;text-decoration:none}.___SButton_1c1ei_gg_.__disabled_1c1ei_gg_{opacity:0.3;cursor:default;pointer-events:none}.___SButton_1c1ei_gg_.__keyboardFocused_1c1ei_gg_{box-shadow:0 0 0 3px rgba(0, 143, 248, 0.2);z-index:1}.___SButton_1c1ei_gg_._size_m_1c1ei_gg_{height:28px;min-width:28px;border-radius:6px;font-size:14px}.___SButton_1c1ei_gg_._size_l_1c1ei_gg_{height:40px;min-width:40px;border-radius:6px;font-size:16px}.___SButton_1c1ei_gg_._theme_primary-info_1c1ei_gg_{color:#ffffff;background-color:#008ff8}.___SButton_1c1ei_gg_._theme_primary-info_1c1ei_gg_:hover{background-color:#006dca}.___SButton_1c1ei_gg_._theme_primary-info_1c1ei_gg_:active,.___SButton_1c1ei_gg_._theme_primary-info_1c1ei_gg_.__active_1c1ei_gg_{background-color:#044792}.___SButton_1c1ei_gg_._theme_primary-success_1c1ei_gg_{color:#ffffff;background-color:#009f81}.___SButton_1c1ei_gg_._theme_primary-success_1c1ei_gg_:hover{background-color:#007c65}.___SButton_1c1ei_gg_._theme_primary-success_1c1ei_gg_:active,.___SButton_1c1ei_gg_._theme_primary-success_1c1ei_gg_.__active_1c1ei_gg_{background-color:#055345}.___SButton_1c1ei_gg_._theme_primary-warning_1c1ei_gg_{background-color:#ff642d;color:#ffffff}.___SButton_1c1ei_gg_._theme_primary-warning_1c1ei_gg_:hover{background-color:#c33909}.___SButton_1c1ei_gg_._theme_primary-warning_1c1ei_gg_:active,.___SButton_1c1ei_gg_._theme_primary-warning_1c1ei_gg_.__active_1c1ei_gg_{background-color:#8b1500}.___SButton_1c1ei_gg_._theme_primary-danger_1c1ei_gg_{background-color:#ff4953;color:#ffffff}.___SButton_1c1ei_gg_._theme_primary-danger_1c1ei_gg_:hover{background-color:#d1002f}.___SButton_1c1ei_gg_._theme_primary-danger_1c1ei_gg_:active,.___SButton_1c1ei_gg_._theme_primary-danger_1c1ei_gg_.__active_1c1ei_gg_{background-color:#8e0016}.___SButton_1c1ei_gg_._theme_primary-invert_1c1ei_gg_{background-color:#fff;color:#191b23}.___SButton_1c1ei_gg_._theme_primary-invert_1c1ei_gg_:hover{background-color:#f4f5f9}.___SButton_1c1ei_gg_._theme_primary-invert_1c1ei_gg_:active,.___SButton_1c1ei_gg_._theme_primary-invert_1c1ei_gg_.__active_1c1ei_gg_{background-color:#e0e1e9}.___SButton_1c1ei_gg_._theme_secondary-muted_1c1ei_gg_{color:#6c6e79;border-color:#c4c7cf;background-color:rgba(138,142,155,.1)}.___SButton_1c1ei_gg_._theme_secondary-muted_1c1ei_gg_:hover{background-color:rgba(138,142,155,.2);color:#191b23}.___SButton_1c1ei_gg_._theme_secondary-muted_1c1ei_gg_:active,.___SButton_1c1ei_gg_._theme_secondary-muted_1c1ei_gg_.__active_1c1ei_gg_{background-color:rgba(138,142,155,.3);color:#191b23}.___SButton_1c1ei_gg_._theme_secondary-info_1c1ei_gg_{background-color:rgba(0,143,248,.05);color:#008ff8;border-color:#008ff8}.___SButton_1c1ei_gg_._theme_secondary-info_1c1ei_gg_:hover{background-color:rgba(0,109,202,.2)}.___SButton_1c1ei_gg_._theme_secondary-info_1c1ei_gg_:active,.___SButton_1c1ei_gg_._theme_secondary-info_1c1ei_gg_.__active_1c1ei_gg_{background-color:rgba(0,109,202,.3)}.___SButton_1c1ei_gg_._theme_secondary-invert_1c1ei_gg_{background-color:hsla(0,0%,100%,.05);color:#fff;border-color:#fff}.___SButton_1c1ei_gg_._theme_secondary-invert_1c1ei_gg_:hover{background-color:hsla(0,0%,100%,.1)}.___SButton_1c1ei_gg_._theme_secondary-invert_1c1ei_gg_:active,.___SButton_1c1ei_gg_._theme_secondary-invert_1c1ei_gg_.__active_1c1ei_gg_{background-color:hsla(0,0%,100%,.3)}.___SButton_1c1ei_gg_._theme_tertiary-info_1c1ei_gg_{color:#006dca;background-color:transparent}.___SButton_1c1ei_gg_._theme_tertiary-info_1c1ei_gg_:hover{background-color:rgba(0,143,248,.2)}.___SButton_1c1ei_gg_._theme_tertiary-info_1c1ei_gg_:active,.___SButton_1c1ei_gg_._theme_tertiary-info_1c1ei_gg_.__active_1c1ei_gg_{background-color:rgba(0,143,248,.3)}.___SButton_1c1ei_gg_._theme_tertiary-muted_1c1ei_gg_{color:#6c6e79;background-color:transparent}.___SButton_1c1ei_gg_._theme_tertiary-muted_1c1ei_gg_:hover{background-color:rgba(138,142,155,.2);color:#191b23}.___SButton_1c1ei_gg_._theme_tertiary-muted_1c1ei_gg_:active,.___SButton_1c1ei_gg_._theme_tertiary-muted_1c1ei_gg_.__active_1c1ei_gg_{background-color:rgba(138,142,155,.3);color:#191b23}.___SButton_1c1ei_gg_._theme_tertiary-invert_1c1ei_gg_{color:#fff;background-color:transparent}.___SButton_1c1ei_gg_._theme_tertiary-invert_1c1ei_gg_:hover{background-color:hsla(0,0%,100%,.1)}.___SButton_1c1ei_gg_._theme_tertiary-invert_1c1ei_gg_:active,.___SButton_1c1ei_gg_._theme_tertiary-invert_1c1ei_gg_.__active_1c1ei_gg_{background-color:hsla(0,0%,100%,.3)}.___SButton_1c1ei_gg_._neighborLocation_right_1c1ei_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SButton_1c1ei_gg_._neighborLocation_both_1c1ei_gg_{border-radius:0;margin-left:-1px}.___SButton_1c1ei_gg_._neighborLocation_both_1c1ei_gg_._theme_primary-danger_1c1ei_gg_,.___SButton_1c1ei_gg_._neighborLocation_both_1c1ei_gg_._theme_primary-info_1c1ei_gg_,.___SButton_1c1ei_gg_._neighborLocation_both_1c1ei_gg_._theme_primary-success_1c1ei_gg_,.___SButton_1c1ei_gg_._neighborLocation_both_1c1ei_gg_._theme_primary-warning_1c1ei_gg_{border-left-color:hsla(0,0%,100%,.5)}.___SButton_1c1ei_gg_._neighborLocation_both_1c1ei_gg_._theme_primary-invert_1c1ei_gg_{border-left-color:rgba(0,0,0,.5)}.___SButton_1c1ei_gg_._neighborLocation_left_1c1ei_gg_{border-top-left-radius:0;border-bottom-left-radius:0;margin-left:-1px}.___SButton_1c1ei_gg_._neighborLocation_left_1c1ei_gg_._theme_primary-danger_1c1ei_gg_,.___SButton_1c1ei_gg_._neighborLocation_left_1c1ei_gg_._theme_primary-info_1c1ei_gg_,.___SButton_1c1ei_gg_._neighborLocation_left_1c1ei_gg_._theme_primary-success_1c1ei_gg_,.___SButton_1c1ei_gg_._neighborLocation_left_1c1ei_gg_._theme_primary-warning_1c1ei_gg_{border-left-color:hsla(0,0%,100%,.5)}.___SButton_1c1ei_gg_._neighborLocation_left_1c1ei_gg_._theme_primary-invert_1c1ei_gg_{border-left-color:rgba(0,0,0,.5)}.___SSpin_1c1ei_gg_{position:absolute;top:0;left:0;width:100%;height:100%;display:flex}.___SInner_1c1ei_gg_{display:inline-flex;align-items:center;justify-content:center;height:100%;width:100%}.___SInner_1c1ei_gg_.__loading_1c1ei_gg_{visibility:hidden}.___SText_1c1ei_gg_{display:inline-flex}.___SText_1c1ei_gg_._size_m_1c1ei_gg_{margin-left:8px;margin-right:8px;line-height:1.42}.___SText_1c1ei_gg_._size_l_1c1ei_gg_{margin-left:12px;margin-right:12px;line-height:1.5}.___SAddon_1c1ei_gg_{display:inline-flex;align-items:center;justify-content:center}.___SAddon_1c1ei_gg_._size_m_1c1ei_gg_:not(:only-child):first-child{margin-left:8px}.___SAddon_1c1ei_gg_._size_m_1c1ei_gg_:not(:only-child):last-child{margin-right:8px}.___SAddon_1c1ei_gg_._size_m_1c1ei_gg_:only-child{margin-left:-4px;margin-right:-4px}.___SAddon_1c1ei_gg_._size_l_1c1ei_gg_:not(:only-child):first-child{margin-left:8px}.___SAddon_1c1ei_gg_._size_l_1c1ei_gg_:not(:only-child):last-child{margin-right:8px}.___SAddon_1c1ei_gg_._size_l_1c1ei_gg_:only-child{margin-left:-4px;margin-right:-4px}"
34
34
  /*__inner_css_end__*/
35
- , "1cgyyq3_gg_")
35
+ , "1c1ei_gg_")
36
36
  /*__reshadow_css_end__*/
37
37
  , {
38
- "__SButton": "___SButton_1gip4_gg_",
39
- "_disabled": "__disabled_1gip4_gg_",
40
- "_keyboardFocused": "__keyboardFocused_1gip4_gg_",
41
- "_size_m": "_size_m_1gip4_gg_",
42
- "_size_l": "_size_l_1gip4_gg_",
43
- "_theme_primary-info": "_theme_primary-info_1gip4_gg_",
44
- "_active": "__active_1gip4_gg_",
45
- "_theme_primary-success": "_theme_primary-success_1gip4_gg_",
46
- "_theme_primary-warning": "_theme_primary-warning_1gip4_gg_",
47
- "_theme_primary-danger": "_theme_primary-danger_1gip4_gg_",
48
- "_theme_primary-invert": "_theme_primary-invert_1gip4_gg_",
49
- "_theme_secondary-muted": "_theme_secondary-muted_1gip4_gg_",
50
- "_theme_secondary-info": "_theme_secondary-info_1gip4_gg_",
51
- "_theme_secondary-invert": "_theme_secondary-invert_1gip4_gg_",
52
- "_theme_tertiary-info": "_theme_tertiary-info_1gip4_gg_",
53
- "_theme_tertiary-muted": "_theme_tertiary-muted_1gip4_gg_",
54
- "_theme_tertiary-invert": "_theme_tertiary-invert_1gip4_gg_",
55
- "_neighborLocation_right": "_neighborLocation_right_1gip4_gg_",
56
- "_neighborLocation_both": "_neighborLocation_both_1gip4_gg_",
57
- "_neighborLocation_left": "_neighborLocation_left_1gip4_gg_",
58
- "__SSpin": "___SSpin_1gip4_gg_",
59
- "__SInner": "___SInner_1gip4_gg_",
60
- "_loading": "__loading_1gip4_gg_",
61
- "__SText": "___SText_1gip4_gg_",
62
- "__SAddon": "___SAddon_1gip4_gg_"
38
+ "__SButton": "___SButton_1c1ei_gg_",
39
+ "_disabled": "__disabled_1c1ei_gg_",
40
+ "_keyboardFocused": "__keyboardFocused_1c1ei_gg_",
41
+ "_size_m": "_size_m_1c1ei_gg_",
42
+ "_size_l": "_size_l_1c1ei_gg_",
43
+ "_theme_primary-info": "_theme_primary-info_1c1ei_gg_",
44
+ "_active": "__active_1c1ei_gg_",
45
+ "_theme_primary-success": "_theme_primary-success_1c1ei_gg_",
46
+ "_theme_primary-warning": "_theme_primary-warning_1c1ei_gg_",
47
+ "_theme_primary-danger": "_theme_primary-danger_1c1ei_gg_",
48
+ "_theme_primary-invert": "_theme_primary-invert_1c1ei_gg_",
49
+ "_theme_secondary-muted": "_theme_secondary-muted_1c1ei_gg_",
50
+ "_theme_secondary-info": "_theme_secondary-info_1c1ei_gg_",
51
+ "_theme_secondary-invert": "_theme_secondary-invert_1c1ei_gg_",
52
+ "_theme_tertiary-info": "_theme_tertiary-info_1c1ei_gg_",
53
+ "_theme_tertiary-muted": "_theme_tertiary-muted_1c1ei_gg_",
54
+ "_theme_tertiary-invert": "_theme_tertiary-invert_1c1ei_gg_",
55
+ "_neighborLocation_right": "_neighborLocation_right_1c1ei_gg_",
56
+ "_neighborLocation_both": "_neighborLocation_both_1c1ei_gg_",
57
+ "_neighborLocation_left": "_neighborLocation_left_1c1ei_gg_",
58
+ "__SSpin": "___SSpin_1c1ei_gg_",
59
+ "__SInner": "___SInner_1c1ei_gg_",
60
+ "_loading": "__loading_1c1ei_gg_",
61
+ "__SText": "___SText_1c1ei_gg_",
62
+ "__SAddon": "___SAddon_1c1ei_gg_"
63
63
  });
64
64
  export var MAP_USE_DEFAULT_THEME = {
65
65
  primary: 'info',
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/Button.jsx"],"names":["React","createComponent","Component","sstyled","Root","Box","neighborLocationEnhance","keyboardFocusEnhance","addonTextChildren","SpinButton","MAP_USE_DEFAULT_THEME","primary","secondary","tertiary","RootButton","size","asProps","SButton","SInner","SSpin","Children","styles","use","theme","loading","disabled","addonLeft","addonRight","useTheme","Button","Text","Addon","style","props","SText","SAddon"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,eAAP,IAA0BC,SAA1B,EAAqCC,OAArC,EAA8CC,IAA9C,QAA0D,eAA1D;AACA,SAASC,GAAT,QAAoB,mBAApB;AACA,SAASC,uBAAT,QAAwC,4BAAxC;AACA,OAAOC,oBAAP,MAAiC,kDAAjC;AACA,OAAOC,iBAAP,MAA8B,sCAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,OAAO,IAAMC,qBAAqB,GAAG;AACnCC,EAAAA,OAAO,EAAE,MAD0B;AAEnCC,EAAAA,SAAS,EAAE,OAFwB;AAGnCC,EAAAA,QAAQ,EAAE;AAHyB,CAA9B;;IAMDC,U;;;;;;;;;;;;;WASJ,wBAAe;AACb,UAAQC,IAAR,GAAiB,KAAKC,OAAtB,CAAQD,IAAR;AACA,aAAO;AACLA,QAAAA,IAAI,EAAJA;AADK,OAAP;AAGD;;;WAED,yBAAgB;AACd,UAAQA,IAAR,GAAiB,KAAKC,OAAtB,CAAQD,IAAR;AACA,aAAO;AACLA,QAAAA,IAAI,EAAJA;AADK,OAAP;AAGD;;;WAED,kBAAS;AAAA;AAAA;;AACP,UAAME,OAAO,GAiBMZ,GAjBnB;AACA,UAAMa,MAAM,GAAGb,GAAf;AACA,UAAMc,KAAK,GAAGd,GAAd;AACA,0BAUI,KAAKW,OAVT;AAAA,UACEI,QADF,iBACEA,QADF;AAAA,UAEEC,MAFF,iBAEEA,MAFF;AAAA,UAGEC,GAHF,iBAGEA,GAHF;AAAA,8CAIEC,KAJF;AAAA,UAIEA,KAJF,oCAIU,OAAOD,GAAP,KAAe,QAAf,IAA2BZ,qBAAqB,CAACY,GAAD,CAJ1D;AAAA,UAKEE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AC8B,KAAK,CAACZ,MAAP,CAAd,eAA6B,oBAAC,KAAD;AAAA,WAAwB;AAAxB,cAA7B;AACD;;AAED,SAASU,KAAT,CAAeE,KAAf,EAAsB;AAAA;AAAA;;AACpB,MAAME,MAAM,GACiC9B,GAD7C;AACA,iBAAOF,OAAO,CAAC8B,KAAK,CAACZ,MAAP,CAAd,eAA6B,oBAAC,MAAD;AAAA,WAAyB;AAAzB,cAA7B;AACD;;AAED,IAAMQ,MAAM,GAAG5B,eAAe,CAACa,UAAD,EAAa;AACzCgB,EAAAA,IAAI,EAAJA,IADyC;AAEzCC,EAAAA,KAAK,EAALA;AAFyC,CAAb,CAA9B;AAKA,eAAeF,MAAf","sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\nimport { neighborLocationEnhance } from '@semcore/neighbor-location';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport addonTextChildren from '@semcore/utils/lib/addonTextChildren';\nimport SpinButton from './SpinButton';\n\nimport style from './style/button.shadow.css';\n\nexport const MAP_USE_DEFAULT_THEME = {\n primary: 'info',\n secondary: 'muted',\n tertiary: 'info',\n};\n\nclass RootButton extends Component {\n static displayName = 'Button';\n static enhance = [keyboardFocusEnhance(), neighborLocationEnhance()];\n static style = style;\n static defaultProps = {\n use: 'secondary',\n size: 'm',\n };\n\n getTextProps() {\n const { size } = this.asProps;\n return {\n size,\n };\n }\n\n getAddonProps() {\n const { size } = this.asProps;\n return {\n size,\n };\n }\n\n render() {\n const SButton = Root;\n const SInner = Box;\n const SSpin = Box;\n const {\n Children,\n styles,\n use,\n theme = typeof use === 'string' && MAP_USE_DEFAULT_THEME[use],\n loading,\n disabled = loading,\n size,\n addonLeft,\n addonRight,\n } = this.asProps;\n\n const useTheme = use && theme ? `${use}-${theme}` : false;\n return sstyled(styles)(\n <SButton render={Box} type=\"button\" tag=\"button\" disabled={disabled} use:theme={useTheme}>\n <SInner tag=\"span\" loading={loading}>\n {addonLeft ? <Button.Addon tag={addonLeft} /> : null}\n {addonTextChildren(Children, Button.Text, Button.Addon)}\n {addonRight ? <Button.Addon tag={addonRight} /> : null}\n </SInner>\n {loading && (\n <SSpin tag=\"span\">\n <SpinButton centered size={size} theme={useTheme} />\n </SSpin>\n )}\n </SButton>,\n );\n }\n}\n\nfunction Text(props) {\n const SText = Root;\n return sstyled(props.styles)(<SText render={Box} tag=\"span\" />);\n}\n\nfunction Addon(props) {\n const SAddon = Root;\n return sstyled(props.styles)(<SAddon render={Box} tag=\"span\" />);\n}\n\nconst Button = createComponent(RootButton, {\n Text,\n Addon,\n});\n\nexport default Button;\n"],"file":"Button.js"}
1
+ {"version":3,"file":"Button.js","names":["React","createComponent","Component","sstyled","Root","Box","neighborLocationEnhance","keyboardFocusEnhance","addonTextChildren","SpinButton","MAP_USE_DEFAULT_THEME","primary","secondary","tertiary","RootButton","size","asProps","SButton","SInner","SSpin","Children","styles","use","theme","loading","disabled","addonLeft","addonRight","useTheme","Button","Text","Addon","style","props","SText","SAddon"],"sources":["../../src/Button.jsx"],"sourcesContent":["import React from 'react';\nimport createComponent, { Component, sstyled, Root } from '@semcore/core';\nimport { Box } from '@semcore/flex-box';\nimport { neighborLocationEnhance } from '@semcore/neighbor-location';\nimport keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';\nimport addonTextChildren from '@semcore/utils/lib/addonTextChildren';\nimport SpinButton from './SpinButton';\n\nimport style from './style/button.shadow.css';\n\nexport const MAP_USE_DEFAULT_THEME = {\n primary: 'info',\n secondary: 'muted',\n tertiary: 'info',\n};\n\nclass RootButton extends Component {\n static displayName = 'Button';\n static enhance = [keyboardFocusEnhance(), neighborLocationEnhance()];\n static style = style;\n static defaultProps = {\n use: 'secondary',\n size: 'm',\n };\n\n getTextProps() {\n const { size } = this.asProps;\n return {\n size,\n };\n }\n\n getAddonProps() {\n const { size } = this.asProps;\n return {\n size,\n };\n }\n\n render() {\n const SButton = Root;\n const SInner = Box;\n const SSpin = Box;\n const {\n Children,\n styles,\n use,\n theme = typeof use === 'string' && MAP_USE_DEFAULT_THEME[use],\n loading,\n disabled = loading,\n size,\n addonLeft,\n addonRight,\n } = this.asProps;\n\n const useTheme = use && theme ? `${use}-${theme}` : false;\n return sstyled(styles)(\n <SButton render={Box} type=\"button\" tag=\"button\" disabled={disabled} use:theme={useTheme}>\n <SInner tag=\"span\" loading={loading}>\n {addonLeft ? <Button.Addon tag={addonLeft} /> : null}\n {addonTextChildren(Children, Button.Text, Button.Addon)}\n {addonRight ? <Button.Addon tag={addonRight} /> : null}\n </SInner>\n {loading && (\n <SSpin tag=\"span\">\n <SpinButton centered size={size} theme={useTheme} />\n </SSpin>\n )}\n </SButton>,\n );\n }\n}\n\nfunction Text(props) {\n const SText = Root;\n return sstyled(props.styles)(<SText render={Box} tag=\"span\" />);\n}\n\nfunction Addon(props) {\n const SAddon = Root;\n return sstyled(props.styles)(<SAddon render={Box} tag=\"span\" />);\n}\n\nconst Button = createComponent(RootButton, {\n Text,\n Addon,\n});\n\nexport default Button;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,eAAP,IAA0BC,SAA1B,EAAqCC,OAArC,EAA8CC,IAA9C,QAA0D,eAA1D;AACA,SAASC,GAAT,QAAoB,mBAApB;AACA,SAASC,uBAAT,QAAwC,4BAAxC;AACA,OAAOC,oBAAP,MAAiC,kDAAjC;AACA,OAAOC,iBAAP,MAA8B,sCAA9B;AACA,OAAOC,UAAP,MAAuB,cAAvB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,OAAO,IAAMC,qBAAqB,GAAG;EACnCC,OAAO,EAAE,MAD0B;EAEnCC,SAAS,EAAE,OAFwB;EAGnCC,QAAQ,EAAE;AAHyB,CAA9B;;IAMDC,U;;;;;;;;;;;;;WASJ,wBAAe;MACb,IAAQC,IAAR,GAAiB,KAAKC,O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AAR;QAAc,GAAG,EAAEA;MAAnB,EAAH,GAAuC,IAHpD,CADF,EAMGH,OAAO,iBACN,oBAAC,KAAD;QAAA,OAAW;MAAX,iBACE,oBAAC,UAAD;QAAA;QAAA,QAA2BT,IAA3B;QAAA,SAAwCa;MAAxC,GADF,CAPJ,CADF;IAcD;;;;EAtDsB1B,S;;gBAAnBY,U,iBACiB,Q;;gBADjBA,U,aAEa,CAACP,oBAAoB,EAArB,EAAyBD,uBAAuB,EAAhD,C;;gBAFbQ,U,WAGWkB,K;;gBAHXlB,U,kBAIkB;EACpBQ,GAAG,EAAE,WADe;EAEpBP,IAAI,EAAE;AAFc,C;;AAqDxB,SAASe,IAAT,CAAcG,KAAd,EAAqB;EAAA;EAAA;;EACnB,IAAMC,KAAK,GACiC7B,GAD5C;EACA,eAAOF,OAAO,CAAC8B,KAAK,CAACZ,MAAP,CAAd,eAA6B,oBAAC,KAAD;IAAA,OAAwB;EAAxB,YAA7B;AACD;;AAED,SAASU,KAAT,CAAeE,KAAf,EAAsB;EAAA;EAAA;;EACpB,IAAME,MAAM,GACiC9B,GAD7C;EACA,eAAOF,OAAO,CAAC8B,KAAK,CAACZ,MAAP,CAAd,eAA6B,oBAAC,MAAD;IAAA,OAAyB;EAAzB,YAA7B;AACD;;AAED,IAAMQ,MAAM,GAAG5B,eAAe,CAACa,UAAD,EAAa;EACzCgB,IAAI,EAAJA,IADyC;EAEzCC,KAAK,EAALA;AAFyC,CAAb,CAA9B;AAKA,eAAeF,MAAf"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/SpinButton.jsx"],"names":["React","Spin","SPIN_SIZE_MAP","xl","l","m","s","SPIN_THEME_MAP","SpinButton","theme","size","others"],"mappings":";;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,IAAP,MAAiB,eAAjB;AAEA,OAAO,IAAMC,aAAa,GAAG;AAC3BC,EAAAA,EAAE,EAAE,GADuB;AAE3BC,EAAAA,CAAC,EAAE,GAFwB;AAG3BC,EAAAA,CAAC,EAAE,IAHwB;AAI3BC,EAAAA,CAAC,EAAE;AAJwB,CAAtB;AAOP,OAAO,IAAMC,cAAc,GAAG;AAC5B,kBAAgB,QADY;AAE5B,qBAAmB,QAFS;AAG5B,qBAAmB,QAHS;AAI5B,oBAAkB,QAJU;AAK5B,sBAAoB,QALQ;AAM5B,qBAAmB,UANS;AAO5B,oBAAkB,UAPU;AAQ5B,qBAAmB,QARS;AAS5B,mBAAiB;AATW,CAAvB;AAYP,eAAe,SAASC,UAAT,OAAgD;AAAA,MAA1BC,KAA0B,QAA1BA,KAA0B;AAAA,MAAnBC,IAAmB,QAAnBA,IAAmB;AAAA,MAAVC,MAAU;;AAC7D,sBACE,oBAAC,IAAD;AACE,IAAA,IAAI,EAAE,OAAOD,IAAP,IAAe,QAAf,GAA0BR,aAAa,CAACQ,IAAD,CAAvC,GAAgDA,IADxD;AAEE,IAAA,KAAK,EAAE,OAAOD,KAAP,KAAiB,QAAjB,GAA4BF,cAAc,CAACE,KAAD,CAAd,IAAyB,MAArD,GAA8DA;AAFvE,KAGME,MAHN,EADF;AAOD","sourcesContent":["import React from 'react';\nimport Spin from '@semcore/spin';\n\nexport const SPIN_SIZE_MAP = {\n xl: 'm',\n l: 's',\n m: 'xs',\n s: 'xxs',\n};\n\nexport const SPIN_THEME_MAP = {\n 'primary-info': 'invert',\n 'primary-success': 'invert',\n 'primary-warning': 'invert',\n 'primary-danger': 'invert',\n 'secondary-invert': 'invert',\n 'secondary-muted': 'gray-600',\n 'secondary-info': 'blue-400',\n 'tertiary-invert': 'invert',\n 'tertiary-info': 'blue-400',\n};\n\nexport default function SpinButton({ theme, size, ...others }) {\n return (\n <Spin\n size={typeof size == 'string' ? SPIN_SIZE_MAP[size] : size}\n theme={typeof theme === 'string' ? SPIN_THEME_MAP[theme] || 'dark' : theme}\n {...others}\n />\n );\n}\n"],"file":"SpinButton.js"}
1
+ {"version":3,"file":"SpinButton.js","names":["React","Spin","SPIN_SIZE_MAP","xl","l","m","s","SPIN_THEME_MAP","SpinButton","theme","size","others"],"sources":["../../src/SpinButton.jsx"],"sourcesContent":["import React from 'react';\nimport Spin from '@semcore/spin';\n\nexport const SPIN_SIZE_MAP = {\n xl: 'm',\n l: 's',\n m: 'xs',\n s: 'xxs',\n};\n\nexport const SPIN_THEME_MAP = {\n 'primary-info': 'invert',\n 'primary-success': 'invert',\n 'primary-warning': 'invert',\n 'primary-danger': 'invert',\n 'secondary-invert': 'invert',\n 'secondary-muted': 'gray-600',\n 'secondary-info': 'blue-400',\n 'tertiary-invert': 'invert',\n 'tertiary-info': 'blue-400',\n};\n\nexport default function SpinButton({ theme, size, ...others }) {\n return (\n <Spin\n size={typeof size == 'string' ? SPIN_SIZE_MAP[size] : size}\n theme={typeof theme === 'string' ? SPIN_THEME_MAP[theme] || 'dark' : theme}\n {...others}\n />\n );\n}\n"],"mappings":";;;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,IAAP,MAAiB,eAAjB;AAEA,OAAO,IAAMC,aAAa,GAAG;EAC3BC,EAAE,EAAE,GADuB;EAE3BC,CAAC,EAAE,GAFwB;EAG3BC,CAAC,EAAE,IAHwB;EAI3BC,CAAC,EAAE;AAJwB,CAAtB;AAOP,OAAO,IAAMC,cAAc,GAAG;EAC5B,gBAAgB,QADY;EAE5B,mBAAmB,QAFS;EAG5B,mBAAmB,QAHS;EAI5B,kBAAkB,QAJU;EAK5B,oBAAoB,QALQ;EAM5B,mBAAmB,UANS;EAO5B,kBAAkB,UAPU;EAQ5B,mBAAmB,QARS;EAS5B,iBAAiB;AATW,CAAvB;AAYP,eAAe,SAASC,UAAT,OAAgD;EAAA,IAA1BC,KAA0B,QAA1BA,KAA0B;EAAA,IAAnBC,IAAmB,QAAnBA,IAAmB;EAAA,IAAVC,MAAU;;EAC7D,oBACE,oBAAC,IAAD;IACE,IAAI,EAAE,OAAOD,IAAP,IAAe,QAAf,GAA0BR,aAAa,CAACQ,IAAD,CAAvC,GAAgDA,IADxD;IAEE,KAAK,EAAE,OAAOD,KAAP,KAAiB,QAAjB,GAA4BF,cAAc,CAACE,KAAD,CAAd,IAAyB,MAArD,GAA8DA;EAFvE,GAGME,MAHN,EADF;AAOD"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.js"],"names":["default"],"mappings":"AAAA,SAASA,OAAT,QAAwB,UAAxB;AACA,cAAc,UAAd","sourcesContent":["export { default } from './Button';\nexport * from './Button';\n"],"file":"index.js"}
1
+ {"version":3,"file":"index.js","names":["default"],"sources":["../../src/index.js"],"sourcesContent":["export { default } from './Button';\nexport * from './Button';\n"],"mappings":"AAAA,SAASA,OAAT,QAAwB,UAAxB;AACA,cAAc,UAAd"}
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.7",
4
+ "version": "4.0.10",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",