@semcore/radio 6.32.0 → 6.33.0

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,12 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
+ ## [6.33.0] - 2024-07-26
6
+
7
+ ### Changed
8
+
9
+ - Version minor update due to children dependencies update (`@semcore/utils` [4.31.0 ~> 4.32.0], `@semcore/flex-box` [5.30.0 ~> 5.31.0], `@semcore/core` [2.28.0 ~> 2.29.0]).
10
+
5
11
  ## [6.32.0] - 2024-07-13
6
12
 
7
13
  ### Changed
package/lib/cjs/Radio.js CHANGED
@@ -36,22 +36,22 @@ var _typography = require("@semcore/typography");
36
36
  var _excluded = ["size", "state", "theme", "keyboardFocused", "value", "tag", "disabled", "includeInputProps", "resolveColor"],
37
37
  _excluded2 = ["children", "Children"];
38
38
  /*__reshadow-styles__:"./style/radio.shadow.css"*/
39
- var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SRadio_1r93t_gg_{display:inline-flex;align-items:flex-start;cursor:pointer}.___SRadio_1r93t_gg_ .___SText_1r93t_gg_{margin-left:var(--intergalactic-spacing-2x, 8px);color:var(--intergalactic-text-primary, #191b23)}.___SRadio_1r93t_gg_ .___SText_1r93t_gg_.__color_1r93t_gg_{color:var(--color_1r93t)}.___SRadio_1r93t_gg_.__disabled_1r93t_gg_{pointer-events:none}.___SText_1r93t_gg_._size_m_1r93t_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SText_1r93t_gg_._size_l_1r93t_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SValue_1r93t_gg_{position:relative;flex-shrink:0;padding:0;outline:0;z-index:0;margin-top:var(--intergalactic-spacing-05x, 2px)}.___SValue_1r93t_gg_::after,.___SValue_1r93t_gg_::before{content:\"\";position:absolute;right:0;bottom:0;border-radius:50%;background:var(--intergalactic-bg-primary-neutral, #ffffff)}.___SValue_1r93t_gg_::before{top:0;left:0;border:1px solid;transition:calc(var(--intergalactic-duration-control, 200)*1ms) all ease-in-out}.___SValue_1r93t_gg_::after{top:50%;left:50%;transform:translate(-50%,-50%);width:0;height:0}.___SValue_1r93t_gg_.__disabled_1r93t_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.___SValue_1r93t_gg_._size_m_1r93t_gg_{width:16px;height:16px}.___SValue_1r93t_gg_._size_l_1r93t_gg_{width:20px;height:20px}.___SValue_1r93t_gg_._state_normal_1r93t_gg_::before{border-color:var(--intergalactic-border-primary, #c4c7cf)}.___SValue_1r93t_gg_._state_invalid_1r93t_gg_::before{border-color:var(--intergalactic-border-critical-active, #d1002f)}.___SControl_1r93t_gg_{position:absolute;clip:rect(1px,1px,1px,1px)}.___SControl_1r93t_gg_:checked~.___SValue_1r93t_gg_::before{border-color:var(--intergalactic-control-primary-info, #008ff8);background-color:var(--intergalactic-control-primary-info, #008ff8)}.___SControl_1r93t_gg_:checked~.___SValue_1r93t_gg_._size_m_1r93t_gg_::after{width:6px;height:6px}.___SControl_1r93t_gg_:checked~.___SValue_1r93t_gg_._size_l_1r93t_gg_::after{width:8px;height:8px}.___SValue_1r93t_gg_._state_normal_1r93t_gg_.__keyboardFocused_1r93t_gg_::before{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));border-color:var(--intergalactic-border-info-active, #006dca)}.___SValue_1r93t_gg_._state_invalid_1r93t_gg_.__keyboardFocused_1r93t_gg_::before{box-shadow:var(--intergalactic-keyboard-focus-invalid, 0px 0px 0px 3px rgba(255, 73, 83, 0.5))}.___SControl_1r93t_gg_:checked~.___SValue_1r93t_gg_.__theme_1r93t_gg_::before{border-color:var(--theme_1r93t);background-color:var(--theme_1r93t)}.___SValue_1r93t_gg_._state_normal_1r93t_gg_.__theme_1r93t_gg_::before{border-color:var(--theme_1r93t)}.___SInvalidPattern_1r93t_gg_{height:calc(100% - 2px);margin:1px 0 1px 1px;border-bottom-left-radius:var(--intergalactic-rounded-large, 12px);border-top-left-radius:var(--intergalactic-rounded-large, 12px)}" /*__inner_css_end__*/, "1r93t_gg_") /*__reshadow_css_end__*/, {
40
- "__SRadio": "___SRadio_1r93t_gg_",
41
- "_disabled": "__disabled_1r93t_gg_",
42
- "__SText": "___SText_1r93t_gg_",
43
- "_size_m": "_size_m_1r93t_gg_",
44
- "_size_l": "_size_l_1r93t_gg_",
45
- "__SValue": "___SValue_1r93t_gg_",
46
- "_state_normal": "_state_normal_1r93t_gg_",
47
- "_state_invalid": "_state_invalid_1r93t_gg_",
48
- "__SControl": "___SControl_1r93t_gg_",
49
- "_keyboardFocused": "__keyboardFocused_1r93t_gg_",
50
- "_theme": "__theme_1r93t_gg_",
51
- "--theme": "--theme_1r93t",
52
- "__SInvalidPattern": "___SInvalidPattern_1r93t_gg_",
53
- "_color": "__color_1r93t_gg_",
54
- "--color": "--color_1r93t"
39
+ var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SRadio_2hkb0_gg_{display:inline-flex;align-items:flex-start;cursor:pointer}.___SRadio_2hkb0_gg_ .___SText_2hkb0_gg_{margin-left:var(--intergalactic-spacing-2x, 8px);color:var(--intergalactic-text-primary, #191b23)}.___SRadio_2hkb0_gg_ .___SText_2hkb0_gg_.__color_2hkb0_gg_{color:var(--color_2hkb0)}.___SRadio_2hkb0_gg_.__disabled_2hkb0_gg_{pointer-events:none}.___SText_2hkb0_gg_._size_m_2hkb0_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SText_2hkb0_gg_._size_l_2hkb0_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SValue_2hkb0_gg_{position:relative;flex-shrink:0;padding:0;outline:0;z-index:0;margin-top:var(--intergalactic-spacing-05x, 2px)}.___SValue_2hkb0_gg_::after,.___SValue_2hkb0_gg_::before{content:\"\";position:absolute;right:0;bottom:0;border-radius:50%;background:var(--intergalactic-bg-primary-neutral, #ffffff)}.___SValue_2hkb0_gg_::before{top:0;left:0;border:1px solid;transition:calc(var(--intergalactic-duration-control, 200)*1ms) all ease-in-out}.___SValue_2hkb0_gg_::after{top:50%;left:50%;transform:translate(-50%,-50%);width:0;height:0}.___SValue_2hkb0_gg_.__disabled_2hkb0_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.___SValue_2hkb0_gg_._size_m_2hkb0_gg_{width:16px;height:16px}.___SValue_2hkb0_gg_._size_l_2hkb0_gg_{width:20px;height:20px}.___SValue_2hkb0_gg_._state_normal_2hkb0_gg_::before{border-color:var(--intergalactic-border-primary, #c4c7cf)}.___SValue_2hkb0_gg_._state_invalid_2hkb0_gg_::before{border-color:var(--intergalactic-border-critical-active, #d1002f)}.___SControl_2hkb0_gg_{position:absolute;clip:rect(1px,1px,1px,1px)}.___SControl_2hkb0_gg_:checked~.___SValue_2hkb0_gg_::before{border-color:var(--intergalactic-control-primary-info, #008ff8);background-color:var(--intergalactic-control-primary-info, #008ff8)}.___SControl_2hkb0_gg_:checked~.___SValue_2hkb0_gg_._size_m_2hkb0_gg_::after{width:6px;height:6px}.___SControl_2hkb0_gg_:checked~.___SValue_2hkb0_gg_._size_l_2hkb0_gg_::after{width:8px;height:8px}.___SValue_2hkb0_gg_._state_normal_2hkb0_gg_.__keyboardFocused_2hkb0_gg_::before{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));border-color:var(--intergalactic-border-info-active, #006dca)}.___SValue_2hkb0_gg_._state_invalid_2hkb0_gg_.__keyboardFocused_2hkb0_gg_::before{box-shadow:var(--intergalactic-keyboard-focus-invalid, 0px 0px 0px 3px rgba(255, 73, 83, 0.5))}.___SControl_2hkb0_gg_:checked~.___SValue_2hkb0_gg_.__theme_2hkb0_gg_::before{border-color:var(--theme_2hkb0);background-color:var(--theme_2hkb0)}.___SValue_2hkb0_gg_._state_normal_2hkb0_gg_.__theme_2hkb0_gg_::before{border-color:var(--theme_2hkb0)}.___SInvalidPattern_2hkb0_gg_{height:calc(100% - 2px);margin:1px 0 1px 1px;border-bottom-left-radius:var(--intergalactic-rounded-large, 12px);border-top-left-radius:var(--intergalactic-rounded-large, 12px)}" /*__inner_css_end__*/, "2hkb0_gg_") /*__reshadow_css_end__*/, {
40
+ "__SRadio": "___SRadio_2hkb0_gg_",
41
+ "_disabled": "__disabled_2hkb0_gg_",
42
+ "__SText": "___SText_2hkb0_gg_",
43
+ "_size_m": "_size_m_2hkb0_gg_",
44
+ "_size_l": "_size_l_2hkb0_gg_",
45
+ "__SValue": "___SValue_2hkb0_gg_",
46
+ "_state_normal": "_state_normal_2hkb0_gg_",
47
+ "_state_invalid": "_state_invalid_2hkb0_gg_",
48
+ "__SControl": "___SControl_2hkb0_gg_",
49
+ "_keyboardFocused": "__keyboardFocused_2hkb0_gg_",
50
+ "_theme": "__theme_2hkb0_gg_",
51
+ "--theme": "--theme_2hkb0",
52
+ "__SInvalidPattern": "___SInvalidPattern_2hkb0_gg_",
53
+ "_color": "__color_2hkb0_gg_",
54
+ "--color": "--color_2hkb0"
55
55
  });
56
56
  var RadioGroupRoot = /*#__PURE__*/function (_Component) {
57
57
  (0, _inherits2["default"])(RadioGroupRoot, _Component);
package/lib/es6/Radio.js CHANGED
@@ -24,22 +24,22 @@ import resolveColorEnhance from '@semcore/utils/lib/enhances/resolveColorEnhance
24
24
  import getInputProps, { inputProps } from '@semcore/utils/lib/inputProps';
25
25
  import { useColorResolver } from '@semcore/utils/lib/use/useColorResolver';
26
26
  /*__reshadow-styles__:"./style/radio.shadow.css"*/
27
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SRadio_1r93t_gg_{display:inline-flex;align-items:flex-start;cursor:pointer}.___SRadio_1r93t_gg_ .___SText_1r93t_gg_{margin-left:var(--intergalactic-spacing-2x, 8px);color:var(--intergalactic-text-primary, #191b23)}.___SRadio_1r93t_gg_ .___SText_1r93t_gg_.__color_1r93t_gg_{color:var(--color_1r93t)}.___SRadio_1r93t_gg_.__disabled_1r93t_gg_{pointer-events:none}.___SText_1r93t_gg_._size_m_1r93t_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SText_1r93t_gg_._size_l_1r93t_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SValue_1r93t_gg_{position:relative;flex-shrink:0;padding:0;outline:0;z-index:0;margin-top:var(--intergalactic-spacing-05x, 2px)}.___SValue_1r93t_gg_::after,.___SValue_1r93t_gg_::before{content:\"\";position:absolute;right:0;bottom:0;border-radius:50%;background:var(--intergalactic-bg-primary-neutral, #ffffff)}.___SValue_1r93t_gg_::before{top:0;left:0;border:1px solid;transition:calc(var(--intergalactic-duration-control, 200)*1ms) all ease-in-out}.___SValue_1r93t_gg_::after{top:50%;left:50%;transform:translate(-50%,-50%);width:0;height:0}.___SValue_1r93t_gg_.__disabled_1r93t_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.___SValue_1r93t_gg_._size_m_1r93t_gg_{width:16px;height:16px}.___SValue_1r93t_gg_._size_l_1r93t_gg_{width:20px;height:20px}.___SValue_1r93t_gg_._state_normal_1r93t_gg_::before{border-color:var(--intergalactic-border-primary, #c4c7cf)}.___SValue_1r93t_gg_._state_invalid_1r93t_gg_::before{border-color:var(--intergalactic-border-critical-active, #d1002f)}.___SControl_1r93t_gg_{position:absolute;clip:rect(1px,1px,1px,1px)}.___SControl_1r93t_gg_:checked~.___SValue_1r93t_gg_::before{border-color:var(--intergalactic-control-primary-info, #008ff8);background-color:var(--intergalactic-control-primary-info, #008ff8)}.___SControl_1r93t_gg_:checked~.___SValue_1r93t_gg_._size_m_1r93t_gg_::after{width:6px;height:6px}.___SControl_1r93t_gg_:checked~.___SValue_1r93t_gg_._size_l_1r93t_gg_::after{width:8px;height:8px}.___SValue_1r93t_gg_._state_normal_1r93t_gg_.__keyboardFocused_1r93t_gg_::before{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));border-color:var(--intergalactic-border-info-active, #006dca)}.___SValue_1r93t_gg_._state_invalid_1r93t_gg_.__keyboardFocused_1r93t_gg_::before{box-shadow:var(--intergalactic-keyboard-focus-invalid, 0px 0px 0px 3px rgba(255, 73, 83, 0.5))}.___SControl_1r93t_gg_:checked~.___SValue_1r93t_gg_.__theme_1r93t_gg_::before{border-color:var(--theme_1r93t);background-color:var(--theme_1r93t)}.___SValue_1r93t_gg_._state_normal_1r93t_gg_.__theme_1r93t_gg_::before{border-color:var(--theme_1r93t)}.___SInvalidPattern_1r93t_gg_{height:calc(100% - 2px);margin:1px 0 1px 1px;border-bottom-left-radius:var(--intergalactic-rounded-large, 12px);border-top-left-radius:var(--intergalactic-rounded-large, 12px)}" /*__inner_css_end__*/, "1r93t_gg_") /*__reshadow_css_end__*/, {
28
- "__SRadio": "___SRadio_1r93t_gg_",
29
- "_disabled": "__disabled_1r93t_gg_",
30
- "__SText": "___SText_1r93t_gg_",
31
- "_size_m": "_size_m_1r93t_gg_",
32
- "_size_l": "_size_l_1r93t_gg_",
33
- "__SValue": "___SValue_1r93t_gg_",
34
- "_state_normal": "_state_normal_1r93t_gg_",
35
- "_state_invalid": "_state_invalid_1r93t_gg_",
36
- "__SControl": "___SControl_1r93t_gg_",
37
- "_keyboardFocused": "__keyboardFocused_1r93t_gg_",
38
- "_theme": "__theme_1r93t_gg_",
39
- "--theme": "--theme_1r93t",
40
- "__SInvalidPattern": "___SInvalidPattern_1r93t_gg_",
41
- "_color": "__color_1r93t_gg_",
42
- "--color": "--color_1r93t"
27
+ var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SRadio_2hkb0_gg_{display:inline-flex;align-items:flex-start;cursor:pointer}.___SRadio_2hkb0_gg_ .___SText_2hkb0_gg_{margin-left:var(--intergalactic-spacing-2x, 8px);color:var(--intergalactic-text-primary, #191b23)}.___SRadio_2hkb0_gg_ .___SText_2hkb0_gg_.__color_2hkb0_gg_{color:var(--color_2hkb0)}.___SRadio_2hkb0_gg_.__disabled_2hkb0_gg_{pointer-events:none}.___SText_2hkb0_gg_._size_m_2hkb0_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SText_2hkb0_gg_._size_l_2hkb0_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SValue_2hkb0_gg_{position:relative;flex-shrink:0;padding:0;outline:0;z-index:0;margin-top:var(--intergalactic-spacing-05x, 2px)}.___SValue_2hkb0_gg_::after,.___SValue_2hkb0_gg_::before{content:\"\";position:absolute;right:0;bottom:0;border-radius:50%;background:var(--intergalactic-bg-primary-neutral, #ffffff)}.___SValue_2hkb0_gg_::before{top:0;left:0;border:1px solid;transition:calc(var(--intergalactic-duration-control, 200)*1ms) all ease-in-out}.___SValue_2hkb0_gg_::after{top:50%;left:50%;transform:translate(-50%,-50%);width:0;height:0}.___SValue_2hkb0_gg_.__disabled_2hkb0_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.___SValue_2hkb0_gg_._size_m_2hkb0_gg_{width:16px;height:16px}.___SValue_2hkb0_gg_._size_l_2hkb0_gg_{width:20px;height:20px}.___SValue_2hkb0_gg_._state_normal_2hkb0_gg_::before{border-color:var(--intergalactic-border-primary, #c4c7cf)}.___SValue_2hkb0_gg_._state_invalid_2hkb0_gg_::before{border-color:var(--intergalactic-border-critical-active, #d1002f)}.___SControl_2hkb0_gg_{position:absolute;clip:rect(1px,1px,1px,1px)}.___SControl_2hkb0_gg_:checked~.___SValue_2hkb0_gg_::before{border-color:var(--intergalactic-control-primary-info, #008ff8);background-color:var(--intergalactic-control-primary-info, #008ff8)}.___SControl_2hkb0_gg_:checked~.___SValue_2hkb0_gg_._size_m_2hkb0_gg_::after{width:6px;height:6px}.___SControl_2hkb0_gg_:checked~.___SValue_2hkb0_gg_._size_l_2hkb0_gg_::after{width:8px;height:8px}.___SValue_2hkb0_gg_._state_normal_2hkb0_gg_.__keyboardFocused_2hkb0_gg_::before{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));border-color:var(--intergalactic-border-info-active, #006dca)}.___SValue_2hkb0_gg_._state_invalid_2hkb0_gg_.__keyboardFocused_2hkb0_gg_::before{box-shadow:var(--intergalactic-keyboard-focus-invalid, 0px 0px 0px 3px rgba(255, 73, 83, 0.5))}.___SControl_2hkb0_gg_:checked~.___SValue_2hkb0_gg_.__theme_2hkb0_gg_::before{border-color:var(--theme_2hkb0);background-color:var(--theme_2hkb0)}.___SValue_2hkb0_gg_._state_normal_2hkb0_gg_.__theme_2hkb0_gg_::before{border-color:var(--theme_2hkb0)}.___SInvalidPattern_2hkb0_gg_{height:calc(100% - 2px);margin:1px 0 1px 1px;border-bottom-left-radius:var(--intergalactic-rounded-large, 12px);border-top-left-radius:var(--intergalactic-rounded-large, 12px)}" /*__inner_css_end__*/, "2hkb0_gg_") /*__reshadow_css_end__*/, {
28
+ "__SRadio": "___SRadio_2hkb0_gg_",
29
+ "_disabled": "__disabled_2hkb0_gg_",
30
+ "__SText": "___SText_2hkb0_gg_",
31
+ "_size_m": "_size_m_2hkb0_gg_",
32
+ "_size_l": "_size_l_2hkb0_gg_",
33
+ "__SValue": "___SValue_2hkb0_gg_",
34
+ "_state_normal": "_state_normal_2hkb0_gg_",
35
+ "_state_invalid": "_state_invalid_2hkb0_gg_",
36
+ "__SControl": "___SControl_2hkb0_gg_",
37
+ "_keyboardFocused": "__keyboardFocused_2hkb0_gg_",
38
+ "_theme": "__theme_2hkb0_gg_",
39
+ "--theme": "--theme_2hkb0",
40
+ "__SInvalidPattern": "___SInvalidPattern_2hkb0_gg_",
41
+ "_color": "__color_2hkb0_gg_",
42
+ "--color": "--color_2hkb0"
43
43
  });
44
44
  import logger from '@semcore/utils/lib/logger';
45
45
  import { Text as TypographyText } from '@semcore/typography';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/radio",
3
3
  "description": "Semrush Radio Component",
4
- "version": "6.32.0",
4
+ "version": "6.33.0",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -9,9 +9,9 @@
9
9
  "author": "UI-kit team <ui-kit-team@semrush.com>",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "@semcore/utils": "4.31.0",
13
- "@semcore/flex-box": "5.30.0",
14
- "@semcore/typography": "5.39.0"
12
+ "@semcore/utils": "4.32.0",
13
+ "@semcore/flex-box": "5.31.0",
14
+ "@semcore/typography": "5.40.0"
15
15
  },
16
16
  "peerDependencies": {
17
17
  "@semcore/core": "^2.17.5",