@semcore/radio 6.43.4 → 6.44.0-prerelease.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.
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=Radio.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Radio.type.js","names":[],"sources":["../../src/Radio.type.ts"],"sourcesContent":["import type { Flex, BoxProps } from '@semcore/base-components';\nimport type { Intergalactic, PropGetterFn } from '@semcore/core';\nimport type { NSText } from '@semcore/typography';\n\ndeclare namespace NSRadio {\n type Size = 'm' | 'l';\n type State = 'normal' | 'invalid';\n type Value = string | number | boolean;\n type Props = BoxProps & {\n /** Radio item value **/\n value?: NSRadio.Value;\n /** Radio item checked flag **/\n checked?: boolean;\n /**\n * The value displaying the state of the component\n * @default normal\n */\n state?: NSRadio.State;\n /**\n * Radio button size\n * @default m\n **/\n size?: NSRadio.Size;\n /** The theme of the radio button that you can send your color to */\n theme?: string;\n /** Radio item text **/\n label?: string;\n /** Blocks access and changes to the radio item **/\n disabled?: boolean;\n };\n type Ctx = {\n getValueProps: PropGetterFn;\n getTextProps: PropGetterFn;\n };\n namespace Value {\n type Props = BoxProps & {\n /** List of elements that can be put on a hidden input */\n includeInputProps?: string[];\n };\n namespace Control {\n type Props = {};\n type Component = Intergalactic.Component<'input', Props>;\n }\n\n namespace Mark {\n type Props = {};\n type Component = Intergalactic.Component<'input', Props>;\n }\n\n type Component = Intergalactic.Component<'input', Props> & {\n Control: Control.Component;\n RadioMark: Mark.Component;\n };\n }\n\n namespace Text {\n type Props = NSText.Props;\n type Component = Intergalactic.Component<'span', Props>;\n }\n\n namespace Group {\n type Props<T extends NSRadio.Value = NSRadio.Value> = {\n /** Radio group name */\n name?: string;\n /** Active default value */\n defaultValue?: T;\n /** Active value */\n value?: T;\n /** Called when the selected element is changed */\n onChange?:\n | ((value: T, e?: React.SyntheticEvent<HTMLInputElement>) => void)\n | React.Dispatch<React.SetStateAction<T>>;\n /** Radio button size */\n size?: NSRadio.Size;\n /** The theme of the radio button that you can send your color to */\n theme?: string;\n /** Blocks access and changes to the form field */\n disabled?: boolean;\n };\n type Component<PropsExtending = {}> = (<V extends Value, Tag extends Intergalactic.Tag = 'div'>(\n props: Intergalactic.InternalTypings.ComponentProps<Tag, typeof Flex, Props<V>> & PropsExtending,\n ) => Intergalactic.InternalTypings.ComponentRenderingResults) &\n Intergalactic.InternalTypings.ComponentAdditive<'div', typeof Flex, Props>;\n }\n type Component = Intergalactic.Component<'label', Props, Ctx> & {\n Value: Value.Component;\n Text: Text.Component;\n };\n}\n\n/** @deprecated It will be removed in v18. */\nexport type RadioSize = NSRadio.Size;\n/** @deprecated It will be removed in v18. */\nexport type RadioState = NSRadio.State;\n/** @deprecated It will be removed in v18. */\nexport type RadioValue = NSRadio.Value;\n/** @deprecated It will be removed in v18. */\nexport type RadioProps = NSRadio.Props;\n/** @deprecated It will be removed in v18. */\nexport type RadioGroupProps<T extends RadioValue = RadioValue> = NSRadio.Group.Props<T>;\n/** @deprecated It will be removed in v18. */\nexport type RadioValueProps = NSRadio.Value.Props;\n/** @deprecated It will be removed in v18. */\nexport type RadioCtx = NSRadio.Ctx;\n/** @deprecated It will be removed in v18. */\nexport type RadioValueControlProps = NSRadio.Value.Control.Props;\n/** @deprecated It will be removed in v18. */\nexport type RadioValueMarkProps = NSRadio.Value.Mark.Props;\n\nexport type { NSRadio };\n"],"mappings":"","ignoreList":[]}
package/lib/cjs/index.js CHANGED
@@ -1,25 +1,41 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
3
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard")["default"];
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- var _exportNames = {};
7
+ var _exportNames = {
8
+ wrapRadioGroup: true,
9
+ RadioGroup: true
10
+ };
11
+ Object.defineProperty(exports, "RadioGroup", {
12
+ enumerable: true,
13
+ get: function get() {
14
+ return _Radio.RadioGroup;
15
+ }
16
+ });
8
17
  Object.defineProperty(exports, "default", {
9
18
  enumerable: true,
10
19
  get: function get() {
11
20
  return _Radio["default"];
12
21
  }
13
22
  });
23
+ Object.defineProperty(exports, "wrapRadioGroup", {
24
+ enumerable: true,
25
+ get: function get() {
26
+ return _Radio.wrapRadioGroup;
27
+ }
28
+ });
14
29
  var _Radio = _interopRequireWildcard(require("./Radio"));
15
- Object.keys(_Radio).forEach(function (key) {
30
+ var _Radio2 = require("./Radio.type");
31
+ Object.keys(_Radio2).forEach(function (key) {
16
32
  if (key === "default" || key === "__esModule") return;
17
33
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
18
- if (key in exports && exports[key] === _Radio[key]) return;
34
+ if (key in exports && exports[key] === _Radio2[key]) return;
19
35
  Object.defineProperty(exports, key, {
20
36
  enumerable: true,
21
37
  get: function get() {
22
- return _Radio[key];
38
+ return _Radio2[key];
23
39
  }
24
40
  });
25
41
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_Radio","_interopRequireWildcard","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get"],"sources":["../../src/index.js"],"sourcesContent":["export { default } from './Radio';\nexport * from './Radio';\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACAC,MAAA,CAAAC,IAAA,CAAAJ,MAAA,EAAAK,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAN,MAAA,CAAAM,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAd,MAAA,CAAAM,GAAA;IAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"index.js","names":["_Radio","_interopRequireWildcard","require","_Radio2","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get"],"sources":["../../src/index.ts"],"sourcesContent":["export { default, wrapRadioGroup, RadioGroup } from './Radio';\nexport * from './Radio.type';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,OAAA,GAAAD,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAAF,OAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,OAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAZ,OAAA,CAAAI,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
@@ -5,7 +5,7 @@ SRadio {
5
5
 
6
6
  SText {
7
7
  margin-left: var(--intergalactic-spacing-2x, 8px);
8
- color: var(--intergalactic-text-primary, #191b23);
8
+ color: var(--intergalactic-text-primary, oklch(0.1 0.03 137 / 0.899));
9
9
  }
10
10
 
11
11
  SText[color] {
@@ -17,16 +17,6 @@ SRadio[disabled] {
17
17
  pointer-events: none;
18
18
  }
19
19
 
20
- SText[size='m'] {
21
- font-size: var(--intergalactic-fs-200, 14px);
22
- line-height: var(--intergalactic-lh-200, 142%);
23
- }
24
-
25
- SText[size='l'] {
26
- font-size: var(--intergalactic-fs-300, 16px);
27
- line-height: var(--intergalactic-lh-300, 150%);
28
- }
29
-
30
20
  SValue {
31
21
  position: relative;
32
22
  flex-shrink: 0;
@@ -43,7 +33,7 @@ SValue {
43
33
  left: 0;
44
34
  right: 0;
45
35
  bottom: 0;
46
- background: var(--intergalactic-bg-primary-neutral, #ffffff);
36
+ background: var(--intergalactic-bg-primary-neutral, oklch(1 0 0));
47
37
  border: 1px solid;
48
38
  border-radius: 50%;
49
39
  transition: calc(var(--intergalactic-duration-control, 200) * 1ms) all ease-in-out;
@@ -60,12 +50,12 @@ SValue {
60
50
  width: 0;
61
51
  height: 0;
62
52
  border-radius: 50%;
63
- background: var(--intergalactic-bg-primary-neutral, #ffffff);
53
+ background: var(--intergalactic-bg-primary-neutral, oklch(1 0 0));
64
54
  }
65
55
  }
66
56
 
67
57
  SValue[disabled] {
68
- opacity: var(--intergalactic-disabled-opacity, 0.3);
58
+ opacity: var(--intergalactic-disabled-opacity, 0.4);
69
59
  cursor: default;
70
60
  pointer-events: none;
71
61
  user-select: none;
@@ -92,11 +82,11 @@ SValue[size='l'] {
92
82
  }
93
83
 
94
84
  SValue[state='normal']::before {
95
- border-color: var(--intergalactic-border-primary, #c4c7cf);
85
+ border-color: var(--intergalactic-border-primary, oklch(0.137 0.026 175.7 / 0.161));
96
86
  }
97
87
 
98
88
  SValue[state='invalid']::before {
99
- border-color: var(--intergalactic-border-critical-active, #d1002f);
89
+ border-color: var(--intergalactic-border-critical-active, oklch(0.628 0.258 29 / 0.56));
100
90
  }
101
91
 
102
92
  SControl {
@@ -104,11 +94,6 @@ SControl {
104
94
  clip: rect(1px, 1px, 1px, 1px);
105
95
  }
106
96
 
107
- SControl:checked~SValue::before {
108
- border-color: var(--intergalactic-control-primary-info, #008ff8);
109
- background-color: var(--intergalactic-control-primary-info, #008ff8);
110
- }
111
-
112
97
  SControl:checked~SValue[size='m']::after {
113
98
  width: 6px;
114
99
  height: 6px;
@@ -119,13 +104,21 @@ SControl:checked~SValue[size='l']::after {
119
104
  height: 8px;
120
105
  }
121
106
 
122
- SValue[state='normal'][keyboardFocused]::before {
123
- box-shadow: var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5));
124
- border-color: var(--intergalactic-border-info-active, #006dca);
107
+ SControl:focus-visible+SValue[state='normal']::before {
108
+ border-color: var(--intergalactic-border-info-active, oklch(0.382 0.248 264.2 / 0.386));
109
+ @mixin focus-outline-mixin;
110
+ }
111
+
112
+ SControl:checked~SValue::before,
113
+ SControl:checked:focus-visible~SValue::before {
114
+ border-color: var(--intergalactic-control-primary-info, oklch(0.23 0.01 140));
115
+ background-color: var(--intergalactic-control-primary-info, oklch(0.23 0.01 140));
125
116
  }
126
117
 
127
- SValue[state='invalid'][keyboardFocused]::before {
128
- box-shadow: var(--intergalactic-keyboard-focus-invalid, 0px 0px 0px 3px rgba(255, 73, 83, 0.5));
118
+ SControl:focus-visible+SValue[state='invalid']::before {
119
+ border-color: var(--intergalactic-border-critical-active, oklch(0.628 0.258 29 / 0.56));
120
+ @mixin focus-outline-mixin;
121
+ outline-color: var(--intergalactic-keyboard-focus-invalid-outline, oklch(0.628 0.257 28.9 / 0.652));
129
122
  }
130
123
 
131
124
  SControl:checked~SValue[theme]::before {
@@ -147,8 +140,8 @@ SInvalidPattern {
147
140
  top: 1px;
148
141
  left: 1px;
149
142
  border-radius: 50%;
150
- background-image: var(--intergalactic-border-critical-pattern, repeating-linear-gradient(315deg, rgba(209, 0, 47, 1) 0, rgba(209, 0, 47, 1) 2px, transparent 0, transparent 50%));
143
+ background-image: var(--intergalactic-border-critical-pattern, repeating-linear-gradient(315deg, oklch(0.628 0.258 29 / 0.56) 0, oklch(0.628 0.258 29 / 0.56) 1px, transparent 0, transparent 50%));
151
144
  background-size: 6px 6px;
152
- background-color: var(--intergalactic-bg-primary-neutral, #ffffff);
145
+ background-color: var(--intergalactic-bg-primary-neutral, oklch(1 0 0));
153
146
  }
154
147
  }
package/lib/es6/Radio.js CHANGED
@@ -1,58 +1,54 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
2
2
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
3
3
  import _objectSpread from "@babel/runtime/helpers/objectSpread2";
4
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
5
4
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
6
5
  import _createClass from "@babel/runtime/helpers/createClass";
6
+ import _callSuper from "@babel/runtime/helpers/callSuper";
7
7
  import _inherits from "@babel/runtime/helpers/inherits";
8
- import _createSuper from "@babel/runtime/helpers/createSuper";
9
8
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
10
- import { sstyled as _sstyled } from "@semcore/utils/lib/core/index";
9
+ import { sstyled as _sstyled } from "@semcore/core";
11
10
  import { assignProps as _assignProps5 } from "@semcore/core";
12
11
  import { assignProps as _assignProps4 } from "@semcore/core";
13
12
  import { assignProps as _assignProps3 } from "@semcore/core";
14
13
  import { assignProps as _assignProps2 } from "@semcore/core";
15
14
  import { assignProps as _assignProps } from "@semcore/core";
16
- var _excluded = ["size", "state", "theme", "keyboardFocused", "value", "tag", "disabled", "includeInputProps", "resolveColor"],
17
- _excluded2 = ["children", "Children"];
15
+ var _excluded = ["size", "state", "theme", "keyboardFocused", "value", "tag", "disabled", "includeInputProps", "resolveColor", "children", "Children"];
16
+ import { Flex, Box, InvalidStateBox } from '@semcore/base-components';
17
+ import { createComponent, Component, sstyled, Root } from '@semcore/core';
18
+ import { callAllEventHandlers } from '@semcore/core/lib/utils/assignProps';
19
+ import resolveColorEnhance from '@semcore/core/lib/utils/enhances/resolveColorEnhance';
20
+ import getInputProps, { inputProps } from '@semcore/core/lib/utils/inputProps';
21
+ import logger from '@semcore/core/lib/utils/logger';
22
+ import { useColorResolver } from '@semcore/core/lib/utils/use/useColorResolver';
23
+ import { Text as TypographyText } from '@semcore/typography';
18
24
  import React from 'react';
19
- import createComponent, { Component, CONTEXT_COMPONENT, sstyled, Root } from '@semcore/core';
20
- import { Flex, Box, InvalidStateBox } from '@semcore/flex-box';
21
- import assignProps, { callAllEventHandlers } from '@semcore/utils/lib/assignProps';
22
- import keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';
23
- import resolveColorEnhance from '@semcore/utils/lib/enhances/resolveColorEnhance';
24
- import getInputProps, { inputProps } from '@semcore/utils/lib/inputProps';
25
- import { useColorResolver } from '@semcore/utils/lib/use/useColorResolver';
26
25
  /*!__reshadow-styles__:"./style/radio.shadow.css"*/
27
- var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SRadio_mgb6n_gg_{display:inline-flex;align-items:flex-start;cursor:pointer}.___SRadio_mgb6n_gg_ .___SText_mgb6n_gg_{margin-left:var(--intergalactic-spacing-2x, 8px);color:var(--intergalactic-text-primary, #191b23)}.___SRadio_mgb6n_gg_ .___SText_mgb6n_gg_.__color_mgb6n_gg_{color:var(--color_mgb6n)}.___SRadio_mgb6n_gg_.__disabled_mgb6n_gg_{pointer-events:none}.___SText_mgb6n_gg_._size_m_mgb6n_gg_{font-size:var(--intergalactic-fs-200, 14px);line-height:var(--intergalactic-lh-200, 142%)}.___SText_mgb6n_gg_._size_l_mgb6n_gg_{font-size:var(--intergalactic-fs-300, 16px);line-height:var(--intergalactic-lh-300, 150%)}.___SValue_mgb6n_gg_{position:relative;flex-shrink:0;padding:0;outline:0;z-index:0;margin-top:var(--intergalactic-spacing-05x, 2px)}.___SValue_mgb6n_gg_::after,.___SValue_mgb6n_gg_::before{content:\"\";position:absolute;right:0;bottom:0;border-radius:50%;background:var(--intergalactic-bg-primary-neutral, #ffffff)}.___SValue_mgb6n_gg_::before{top:0;left:0;border:1px solid;transition:calc(var(--intergalactic-duration-control, 200)*1ms) all ease-in-out}.___SValue_mgb6n_gg_::after{top:50%;left:50%;transform:translate(-50%,-50%);width:0;height:0}.___SValue_mgb6n_gg_.__disabled_mgb6n_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_mgb6n_gg_._size_m_mgb6n_gg_{width:16px;height:16px}.___SValue_mgb6n_gg_._size_m_mgb6n_gg_ .___SInvalidPattern_mgb6n_gg_:before{width:14px;height:14px}.___SValue_mgb6n_gg_._size_l_mgb6n_gg_{width:20px;height:20px}.___SValue_mgb6n_gg_._size_l_mgb6n_gg_ .___SInvalidPattern_mgb6n_gg_:before{width:18px;height:18px}.___SValue_mgb6n_gg_._state_normal_mgb6n_gg_::before{border-color:var(--intergalactic-border-primary, #c4c7cf)}.___SValue_mgb6n_gg_._state_invalid_mgb6n_gg_::before{border-color:var(--intergalactic-border-critical-active, #d1002f)}.___SControl_mgb6n_gg_{position:absolute;clip:rect(1px,1px,1px,1px)}.___SControl_mgb6n_gg_:checked~.___SValue_mgb6n_gg_::before{border-color:var(--intergalactic-control-primary-info, #008ff8);background-color:var(--intergalactic-control-primary-info, #008ff8)}.___SControl_mgb6n_gg_:checked~.___SValue_mgb6n_gg_._size_m_mgb6n_gg_::after{width:6px;height:6px}.___SControl_mgb6n_gg_:checked~.___SValue_mgb6n_gg_._size_l_mgb6n_gg_::after{width:8px;height:8px}.___SValue_mgb6n_gg_._state_normal_mgb6n_gg_.__keyboardFocused_mgb6n_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_mgb6n_gg_._state_invalid_mgb6n_gg_.__keyboardFocused_mgb6n_gg_::before{box-shadow:var(--intergalactic-keyboard-focus-invalid, 0px 0px 0px 3px rgba(255, 73, 83, 0.5))}.___SControl_mgb6n_gg_:checked~.___SValue_mgb6n_gg_.__theme_mgb6n_gg_::before{border-color:var(--theme_mgb6n);background-color:var(--theme_mgb6n)}.___SValue_mgb6n_gg_._state_normal_mgb6n_gg_.__theme_mgb6n_gg_::before{border-color:var(--theme_mgb6n)}.___SInvalidPattern_mgb6n_gg_{background:0 0;overflow:hidden}.___SInvalidPattern_mgb6n_gg_:before{content:\"\";position:absolute;top:1px;left:1px;border-radius:50%;background-image:var(--intergalactic-border-critical-pattern, repeating-linear-gradient(315deg, rgba(209, 0, 47, 1) 0, rgba(209, 0, 47, 1) 2px, transparent 0, transparent 50%));background-size:6px 6px;background-color:var(--intergalactic-bg-primary-neutral, #ffffff)}", /*__inner_css_end__*/"mgb6n_gg_"),
26
+ var style = (/*__reshadow_css_start__*/_sstyled.insert(/*__inner_css_start__*/".___SRadio_dgqi9_gg_{display:inline-flex;align-items:flex-start;cursor:pointer}.___SRadio_dgqi9_gg_ .___SText_dgqi9_gg_{margin-left:var(--intergalactic-spacing-2x, 8px);color:var(--intergalactic-text-primary, rgba(1, 5, 0, 0.899))}.___SRadio_dgqi9_gg_ .___SText_dgqi9_gg_.__color_dgqi9_gg_{color:var(--color_dgqi9)}.___SRadio_dgqi9_gg_.__disabled_dgqi9_gg_{pointer-events:none}.___SValue_dgqi9_gg_{position:relative;flex-shrink:0;padding:0;outline:0;z-index:0;margin-top:var(--intergalactic-spacing-05x, 2px)}.___SValue_dgqi9_gg_::after,.___SValue_dgqi9_gg_::before{content:\"\";position:absolute;right:0;bottom:0;border-radius:50%;background:var(--intergalactic-bg-primary-neutral, rgb(255, 255, 255))}.___SValue_dgqi9_gg_::before{top:0;left:0;border:1px solid;transition:calc(var(--intergalactic-duration-control, 200)*1ms) all ease-in-out}.___SValue_dgqi9_gg_::after{top:50%;left:50%;transform:translate(-50%,-50%);width:0;height:0}.___SValue_dgqi9_gg_.__disabled_dgqi9_gg_{opacity:var(--intergalactic-disabled-opacity, 0.4);cursor:default;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.___SValue_dgqi9_gg_._size_m_dgqi9_gg_{width:16px;height:16px}.___SValue_dgqi9_gg_._size_m_dgqi9_gg_ .___SInvalidPattern_dgqi9_gg_:before{width:14px;height:14px}.___SValue_dgqi9_gg_._size_l_dgqi9_gg_{width:20px;height:20px}.___SValue_dgqi9_gg_._size_l_dgqi9_gg_ .___SInvalidPattern_dgqi9_gg_:before{width:18px;height:18px}.___SValue_dgqi9_gg_._state_normal_dgqi9_gg_::before{border-color:var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@supports (color:color(display-p3 0 0 0%)){.___SValue_dgqi9_gg_._state_normal_dgqi9_gg_::before{border-color:var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@media (color-gamut:p3){.___SValue_dgqi9_gg_._state_normal_dgqi9_gg_::before{border-color:var(--intergalactic-border-primary, color(display-p3 0.00798 0.04498 0.03219 / 0.161))}}}.___SValue_dgqi9_gg_._state_invalid_dgqi9_gg_::before{border-color:var(--intergalactic-border-critical-active, rgba(255, 0, 4, 0.56))}@supports (color:color(display-p3 0 0 0%)){.___SValue_dgqi9_gg_._state_invalid_dgqi9_gg_::before{border-color:var(--intergalactic-border-critical-active, rgba(255, 0, 4, 0.56))}@media (color-gamut:p3){.___SValue_dgqi9_gg_._state_invalid_dgqi9_gg_::before{border-color:var(--intergalactic-border-critical-active, color(display-p3 0.918 0.19866 0.14259 / 0.56))}}}.___SControl_dgqi9_gg_{position:absolute;clip:rect(1px,1px,1px,1px)}.___SControl_dgqi9_gg_:checked~.___SValue_dgqi9_gg_._size_m_dgqi9_gg_::after{width:6px;height:6px}.___SControl_dgqi9_gg_:checked~.___SValue_dgqi9_gg_._size_l_dgqi9_gg_::after{width:8px;height:8px}.___SControl_dgqi9_gg_:focus-visible+.___SValue_dgqi9_gg_._state_normal_dgqi9_gg_::before{border-color:var(--intergalactic-border-info-active, rgba(0, 22, 195, 0.386));outline-color:var(--intergalactic-keyboard-focus-outline, #008ff8);outline-style:solid;outline-width:2px;outline-offset:2px;transition-duration:calc(var(--intergalactic-duration-extra-fast, 100)*1ms);transition-timing-function:ease-in-out;transition-property:outline-color,outline-width,outline-offset}@supports (color:color(display-p3 0 0 0%)){.___SControl_dgqi9_gg_:focus-visible+.___SValue_dgqi9_gg_._state_normal_dgqi9_gg_::before{border-color:var(--intergalactic-border-info-active, rgba(0, 22, 195, 0.386))}@media (color-gamut:p3){.___SControl_dgqi9_gg_:focus-visible+.___SValue_dgqi9_gg_._state_normal_dgqi9_gg_::before{border-color:var(--intergalactic-border-info-active, color(display-p3 0.01805 0.08334 0.73488 / 0.386))}}}.___SControl_dgqi9_gg_:checked:focus-visible~.___SValue_dgqi9_gg_::before,.___SControl_dgqi9_gg_:checked~.___SValue_dgqi9_gg_::before{border-color:var(--intergalactic-control-primary-info, rgb(26, 30, 26));background-color:var(--intergalactic-control-primary-info, rgb(26, 30, 26))}.___SControl_dgqi9_gg_:focus-visible+.___SValue_dgqi9_gg_._state_invalid_dgqi9_gg_::before{border-color:var(--intergalactic-border-critical-active, rgba(255, 0, 4, 0.56));outline-color:var(--intergalactic-keyboard-focus-outline, #008ff8);outline-style:solid;outline-width:2px;outline-offset:2px;transition-duration:calc(var(--intergalactic-duration-extra-fast, 100)*1ms);transition-timing-function:ease-in-out;transition-property:outline-color,outline-width,outline-offset}@supports (color:color(display-p3 0 0 0%)){.___SControl_dgqi9_gg_:focus-visible+.___SValue_dgqi9_gg_._state_invalid_dgqi9_gg_::before{border-color:var(--intergalactic-border-critical-active, rgba(255, 0, 4, 0.56))}@media (color-gamut:p3){.___SControl_dgqi9_gg_:focus-visible+.___SValue_dgqi9_gg_._state_invalid_dgqi9_gg_::before{border-color:var(--intergalactic-border-critical-active, color(display-p3 0.918 0.19866 0.14259 / 0.56))}}}@supports (color:oklab(0%0 0%)){.___SControl_dgqi9_gg_:focus-visible+.___SValue_dgqi9_gg_._state_invalid_dgqi9_gg_::before{outline-color:var(--intergalactic-keyboard-focus-invalid-outline, oklch(0.628 0.257 28.9 / 0.652))}}.___SControl_dgqi9_gg_:checked~.___SValue_dgqi9_gg_.__theme_dgqi9_gg_::before{border-color:var(--theme_dgqi9);background-color:var(--theme_dgqi9)}.___SValue_dgqi9_gg_._state_normal_dgqi9_gg_.__theme_dgqi9_gg_::before{border-color:var(--theme_dgqi9)}.___SInvalidPattern_dgqi9_gg_{background:0 0;overflow:hidden}.___SInvalidPattern_dgqi9_gg_:before{content:\"\";position:absolute;top:1px;left:1px;border-radius:50%;background-image:var(--intergalactic-border-critical-pattern, repeating-linear-gradient(315deg, rgba(255, 0, 4, 0.56) 0, rgba(255, 0, 4, 0.56) 1px, transparent 0, transparent 50%));background-size:6px 6px;background-color:var(--intergalactic-bg-primary-neutral, rgb(255, 255, 255))}@supports (color:color(display-p3 0 0 0%)){.___SInvalidPattern_dgqi9_gg_:before{background-image:var(--intergalactic-border-critical-pattern, repeating-linear-gradient(315deg, rgba(255, 0, 4, 0.56) 0, rgba(255, 0, 4, 0.56) 1px, transparent 0, transparent 50%))}@media (color-gamut:p3){.___SInvalidPattern_dgqi9_gg_:before{background-image:var(--intergalactic-border-critical-pattern, repeating-linear-gradient(315deg, color(display-p3 0.918 0.19866 0.14259 / 0.56) 0, color(display-p3 0.918 0.19866 0.14259 / 0.56) 1px, transparent 0, transparent 50%))}}}", /*__inner_css_end__*/"dgqi9_gg_"),
28
27
  /*__reshadow_css_end__*/
29
28
  {
30
- "__SRadio": "___SRadio_mgb6n_gg_",
31
- "_disabled": "__disabled_mgb6n_gg_",
32
- "__SText": "___SText_mgb6n_gg_",
33
- "_size_m": "_size_m_mgb6n_gg_",
34
- "_size_l": "_size_l_mgb6n_gg_",
35
- "__SValue": "___SValue_mgb6n_gg_",
36
- "_state_normal": "_state_normal_mgb6n_gg_",
37
- "_state_invalid": "_state_invalid_mgb6n_gg_",
38
- "__SControl": "___SControl_mgb6n_gg_",
39
- "_keyboardFocused": "__keyboardFocused_mgb6n_gg_",
40
- "_theme": "__theme_mgb6n_gg_",
41
- "--theme": "--theme_mgb6n",
42
- "_color": "__color_mgb6n_gg_",
43
- "--color": "--color_mgb6n",
44
- "__SInvalidPattern": "___SInvalidPattern_mgb6n_gg_"
29
+ "__SRadio": "___SRadio_dgqi9_gg_",
30
+ "_disabled": "__disabled_dgqi9_gg_",
31
+ "__SValue": "___SValue_dgqi9_gg_",
32
+ "_state_normal": "_state_normal_dgqi9_gg_",
33
+ "_state_invalid": "_state_invalid_dgqi9_gg_",
34
+ "__SControl": "___SControl_dgqi9_gg_",
35
+ "_size_m": "_size_m_dgqi9_gg_",
36
+ "_size_l": "_size_l_dgqi9_gg_",
37
+ "_theme": "__theme_dgqi9_gg_",
38
+ "--theme": "--theme_dgqi9",
39
+ "__SText": "___SText_dgqi9_gg_",
40
+ "_color": "__color_dgqi9_gg_",
41
+ "--color": "--color_dgqi9",
42
+ "__SInvalidPattern": "___SInvalidPattern_dgqi9_gg_"
45
43
  });
46
- import logger from '@semcore/utils/lib/logger';
47
- import { Text as TypographyText } from '@semcore/typography';
44
+ var RadioContext = /*#__PURE__*/React.createContext({});
48
45
  var RadioGroupRoot = /*#__PURE__*/function (_Component) {
49
- _inherits(RadioGroupRoot, _Component);
50
- var _super = _createSuper(RadioGroupRoot);
51
46
  function RadioGroupRoot() {
52
47
  _classCallCheck(this, RadioGroupRoot);
53
- return _super.apply(this, arguments);
48
+ return _callSuper(this, RadioGroupRoot, arguments);
54
49
  }
55
- _createClass(RadioGroupRoot, [{
50
+ _inherits(RadioGroupRoot, _Component);
51
+ return _createClass(RadioGroupRoot, [{
56
52
  key: "uncontrolledProps",
57
53
  value: function uncontrolledProps() {
58
54
  return {
@@ -90,27 +86,27 @@ var RadioGroupRoot = /*#__PURE__*/function (_Component) {
90
86
  }, _ref), /*#__PURE__*/React.createElement(Children, null));
91
87
  }
92
88
  }]);
93
- return RadioGroupRoot;
94
89
  }(Component);
95
90
  _defineProperty(RadioGroupRoot, "displayName", 'RadioGroup');
96
91
  _defineProperty(RadioGroupRoot, "defaultProps", {
97
92
  defaultValue: null
98
93
  });
99
- var RadioGroup = createComponent(RadioGroupRoot);
94
+ var RadioGroup = createComponent(RadioGroupRoot, {}, {
95
+ context: RadioContext
96
+ });
100
97
  var RadioRoot = /*#__PURE__*/function (_Component2) {
101
- _inherits(RadioRoot, _Component2);
102
- var _super2 = _createSuper(RadioRoot);
103
98
  function RadioRoot() {
104
99
  var _this;
105
100
  _classCallCheck(this, RadioRoot);
106
101
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
107
102
  args[_key] = arguments[_key];
108
103
  }
109
- _this = _super2.call.apply(_super2, [this].concat(args));
110
- _defineProperty(_assertThisInitialized(_this), "state", {
104
+ _this = _callSuper(this, RadioRoot, [].concat(args));
105
+ _defineProperty(_this, "context", {});
106
+ _defineProperty(_this, "state", {
111
107
  hoistedDisabled: undefined
112
108
  });
113
- _defineProperty(_assertThisInitialized(_this), "hoistDisabled", function (disabled) {
109
+ _defineProperty(_this, "hoistDisabled", function (disabled) {
114
110
  logger.warn(true, "Don't set disabled on Radio.Value or Radio.Text, set it on Radio or on RadioGroup (for all items) instead. Otherwise it will produce wrong SSR output.", _this.asProps['data-ui-name']);
115
111
  _this.setState({
116
112
  hoistedDisabled: disabled
@@ -118,18 +114,20 @@ var RadioRoot = /*#__PURE__*/function (_Component2) {
118
114
  });
119
115
  return _this;
120
116
  }
121
- _createClass(RadioRoot, [{
117
+ _inherits(RadioRoot, _Component2);
118
+ return _createClass(RadioRoot, [{
122
119
  key: "getTextProps",
123
120
  value: function getTextProps() {
124
- // The default values are here, since you cannot rewrite out of context
125
- var _assignProps6 = assignProps(this.asProps, this.context),
126
- _assignProps6$size = _assignProps6.size,
127
- size = _assignProps6$size === void 0 ? 'm' : _assignProps6$size,
128
- disabled = _assignProps6.disabled,
129
- label = _assignProps6.label;
121
+ var _this$context$size;
122
+ var _this$asProps2 = this.asProps,
123
+ _this$asProps2$size = _this$asProps2.size,
124
+ size = _this$asProps2$size === void 0 ? (_this$context$size = this.context.size) !== null && _this$context$size !== void 0 ? _this$context$size : 'm' : _this$asProps2$size,
125
+ _this$asProps2$disabl = _this$asProps2.disabled,
126
+ disabled = _this$asProps2$disabl === void 0 ? this.context.disabled : _this$asProps2$disabl,
127
+ label = _this$asProps2.label;
130
128
  var hoistedDisabled = this.state.hoistedDisabled;
131
129
  var textProps = {
132
- size: size,
130
+ size: size === 'm' ? 200 : 300,
133
131
  children: label,
134
132
  disabled: disabled !== null && disabled !== void 0 ? disabled : hoistedDisabled,
135
133
  hoistDisabled: this.hoistDisabled,
@@ -140,19 +138,21 @@ var RadioRoot = /*#__PURE__*/function (_Component2) {
140
138
  }, {
141
139
  key: "getValueProps",
142
140
  value: function getValueProps() {
143
- var _this$props$size;
144
- // The default values are here, since you cannot rewrite out of context
145
- var _assignProps7 = assignProps(this.asProps, this.context),
146
- _assignProps7$size = _assignProps7.size,
147
- size = _assignProps7$size === void 0 ? 'm' : _assignProps7$size,
148
- _assignProps7$state = _assignProps7.state,
149
- state = _assignProps7$state === void 0 ? 'normal' : _assignProps7$state,
150
- theme = _assignProps7.theme,
151
- disabled = _assignProps7.disabled,
152
- name = _assignProps7.name;
153
- var _this$asProps2 = this.asProps,
154
- value = _this$asProps2.value,
155
- checked = _this$asProps2.checked;
141
+ var _this$context$size2, _this$props$size;
142
+ var _this$asProps3 = this.asProps,
143
+ _this$asProps3$state = _this$asProps3.state,
144
+ state = _this$asProps3$state === void 0 ? 'normal' : _this$asProps3$state,
145
+ _this$asProps3$size = _this$asProps3.size,
146
+ size = _this$asProps3$size === void 0 ? (_this$context$size2 = this.context.size) !== null && _this$context$size2 !== void 0 ? _this$context$size2 : 'm' : _this$asProps3$size,
147
+ _this$asProps3$theme = _this$asProps3.theme,
148
+ theme = _this$asProps3$theme === void 0 ? this.context.theme : _this$asProps3$theme,
149
+ _this$asProps3$disabl = _this$asProps3.disabled,
150
+ disabled = _this$asProps3$disabl === void 0 ? this.context.disabled : _this$asProps3$disabl,
151
+ _this$asProps3$name = _this$asProps3.name,
152
+ name = _this$asProps3$name === void 0 ? this.context.name : _this$asProps3$name;
153
+ var _this$asProps4 = this.asProps,
154
+ value = _this$asProps4.value,
155
+ checked = _this$asProps4.checked;
156
156
  var hoistedDisabled = this.state.hoistedDisabled;
157
157
  return {
158
158
  size: (_this$props$size = this.props.size) !== null && _this$props$size !== void 0 ? _this$props$size : size,
@@ -172,41 +172,40 @@ var RadioRoot = /*#__PURE__*/function (_Component2) {
172
172
  var _ref2 = this.asProps,
173
173
  _ref6;
174
174
  var SRadio = Box;
175
- var _this$asProps3 = this.asProps,
176
- styles = _this$asProps3.styles,
177
- Children = _this$asProps3.Children,
178
- hasChildren = _this$asProps3.children;
175
+ var _this$asProps5 = this.asProps,
176
+ styles = _this$asProps5.styles,
177
+ Children = _this$asProps5.Children,
178
+ hasChildren = _this$asProps5.children;
179
179
  return _ref6 = sstyled(styles), /*#__PURE__*/React.createElement(SRadio, _ref6.cn("SRadio", _objectSpread({}, _assignProps2({
180
180
  "tag": 'label',
181
181
  "__excludeProps": ['onChange', 'label', 'disabled']
182
182
  }, _ref2))), hasChildren ? /*#__PURE__*/React.createElement(Children, _ref6.cn("Children", {})) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Radio.Value, null), /*#__PURE__*/React.createElement(Radio.Text, null)));
183
183
  }
184
184
  }]);
185
- return RadioRoot;
186
185
  }(Component);
187
186
  _defineProperty(RadioRoot, "displayName", 'Radio');
188
187
  _defineProperty(RadioRoot, "style", style);
189
- _defineProperty(RadioRoot, "contextType", RadioGroup[CONTEXT_COMPONENT]);
188
+ _defineProperty(RadioRoot, "contextType", RadioContext);
190
189
  var ValueRoot = /*#__PURE__*/function (_Component3) {
191
- _inherits(ValueRoot, _Component3);
192
- var _super3 = _createSuper(ValueRoot);
193
190
  function ValueRoot() {
194
191
  var _this2;
195
192
  _classCallCheck(this, ValueRoot);
196
193
  for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
197
194
  args[_key2] = arguments[_key2];
198
195
  }
199
- _this2 = _super3.call.apply(_super3, [this].concat(args));
200
- _defineProperty(_assertThisInitialized(_this2), "bindHandlerChange", function (value) {
196
+ _this2 = _callSuper(this, ValueRoot, [].concat(args));
197
+ _defineProperty(_this2, "context", {});
198
+ _defineProperty(_this2, "bindHandlerChange", function (value) {
201
199
  return function (e) {
202
- if (typeof _this2.context.onChange === 'function') {
200
+ if (typeof _this2.context.onChange === 'function' && value !== undefined) {
203
201
  _this2.context.onChange(value, e);
204
202
  }
205
203
  };
206
204
  });
207
205
  return _this2;
208
206
  }
209
- _createClass(ValueRoot, [{
207
+ _inherits(ValueRoot, _Component3);
208
+ return _createClass(ValueRoot, [{
210
209
  key: "uncontrolledProps",
211
210
  value: function uncontrolledProps() {
212
211
  return {
@@ -219,54 +218,50 @@ var ValueRoot = /*#__PURE__*/function (_Component3) {
219
218
  key: "getControlProps",
220
219
  value: function getControlProps() {
221
220
  var currentValue = this.context.value;
222
- var _this$asProps4 = this.asProps,
223
- forwardRef = _this$asProps4.forwardRef,
224
- includeInputProps = _this$asProps4.includeInputProps,
225
- state = _this$asProps4.state,
226
- value = _this$asProps4.value;
221
+ var _this$asProps6 = this.asProps,
222
+ forwardRef = _this$asProps6.forwardRef,
223
+ includeInputProps = _this$asProps6.includeInputProps,
224
+ state = _this$asProps6.state,
225
+ value = _this$asProps6.value;
226
+ var onChange = this.props.onChange;
227
227
  var _getInputProps = getInputProps(this.asProps, includeInputProps),
228
228
  _getInputProps2 = _slicedToArray(_getInputProps, 1),
229
229
  commonControlProps = _getInputProps2[0];
230
230
  var inputValue = value !== null && value !== void 0 ? value : '';
231
- var controlProps = _objectSpread(_objectSpread({
231
+ return _objectSpread(_objectSpread({
232
232
  ref: forwardRef,
233
233
  state: state
234
234
  }, commonControlProps), {}, {
235
235
  value: inputValue
236
- });
237
- if (currentValue !== undefined) {
238
- var _this$props = this.props,
239
- onChange = _this$props.onChange,
240
- onClick = _this$props.onClick;
241
- controlProps.checked = currentValue === inputValue;
242
- controlProps.onChange = callAllEventHandlers(onChange, this.bindHandlerChange(inputValue));
243
- }
244
- return controlProps;
236
+ }, currentValue !== undefined ? {
237
+ checked: currentValue === inputValue,
238
+ onChange: callAllEventHandlers(onChange, this.bindHandlerChange(inputValue))
239
+ } : {});
245
240
  }
246
241
  }, {
247
242
  key: "getRadioMarkProps",
248
243
  value: function getRadioMarkProps() {
249
244
  var currentValue = this.context.value;
250
- var _this$asProps5 = this.asProps,
251
- size = _this$asProps5.size,
252
- state = _this$asProps5.state,
253
- theme = _this$asProps5.theme,
254
- keyboardFocused = _this$asProps5.keyboardFocused,
255
- value = _this$asProps5.value,
256
- tag = _this$asProps5.tag,
257
- disabled = _this$asProps5.disabled,
258
- includeInputProps = _this$asProps5.includeInputProps,
259
- resolveColor = _this$asProps5.resolveColor,
260
- other = _objectWithoutProperties(_this$asProps5, _excluded);
245
+ var _this$asProps7 = this.asProps,
246
+ size = _this$asProps7.size,
247
+ state = _this$asProps7.state,
248
+ theme = _this$asProps7.theme,
249
+ keyboardFocused = _this$asProps7.keyboardFocused,
250
+ value = _this$asProps7.value,
251
+ tag = _this$asProps7.tag,
252
+ disabled = _this$asProps7.disabled,
253
+ includeInputProps = _this$asProps7.includeInputProps,
254
+ resolveColor = _this$asProps7.resolveColor,
255
+ children = _this$asProps7.children,
256
+ Children = _this$asProps7.Children,
257
+ other = _objectWithoutProperties(_this$asProps7, _excluded);
258
+ var onClick = this.props.onClick;
261
259
  var _getInputProps3 = getInputProps(other, includeInputProps),
262
260
  _getInputProps4 = _slicedToArray(_getInputProps3, 2),
263
261
  commonControlProps = _getInputProps4[0],
264
262
  radioMarkProps = _getInputProps4[1];
265
- var children = radioMarkProps.children,
266
- Children = radioMarkProps.Children,
267
- propsWithoutChildren = _objectWithoutProperties(radioMarkProps, _excluded2);
268
263
  var inputValue = value !== null && value !== void 0 ? value : '';
269
- var markProps = _objectSpread({
264
+ return _objectSpread(_objectSpread({
270
265
  theme: theme,
271
266
  size: size,
272
267
  state: state,
@@ -274,14 +269,9 @@ var ValueRoot = /*#__PURE__*/function (_Component3) {
274
269
  disabled: disabled,
275
270
  resolveColor: resolveColor,
276
271
  checked: commonControlProps.checked
277
- }, propsWithoutChildren);
278
- if (currentValue !== undefined) {
279
- var onClick = this.props.onClick;
280
- if (tag !== 'label') {
281
- markProps.onClick = callAllEventHandlers(onClick, this.bindHandlerChange(inputValue));
282
- }
283
- }
284
- return markProps;
272
+ }, radioMarkProps), currentValue !== undefined && tag !== 'label' ? {
273
+ onClick: callAllEventHandlers(onClick, this.bindHandlerChange(inputValue))
274
+ } : {});
285
275
  }
286
276
  }, {
287
277
  key: "componentDidUpdate",
@@ -301,10 +291,10 @@ var ValueRoot = /*#__PURE__*/function (_Component3) {
301
291
  key: "render",
302
292
  value: function render() {
303
293
  var _ref8;
304
- var _this$asProps6 = this.asProps,
305
- styles = _this$asProps6.styles,
306
- hasChildren = _this$asProps6.children,
307
- Children = _this$asProps6.Children;
294
+ var _this$asProps8 = this.asProps,
295
+ styles = _this$asProps8.styles,
296
+ hasChildren = _this$asProps8.children,
297
+ Children = _this$asProps8.Children;
308
298
  if (!hasChildren) {
309
299
  var _ref7;
310
300
  return _ref7 = sstyled(styles), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Radio.Value.Control, null), /*#__PURE__*/React.createElement(Radio.Value.RadioMark, null));
@@ -312,17 +302,16 @@ var ValueRoot = /*#__PURE__*/function (_Component3) {
312
302
  return _ref8 = sstyled(styles), /*#__PURE__*/React.createElement(Children, _ref8.cn("Children", {}));
313
303
  }
314
304
  }]);
315
- return ValueRoot;
316
305
  }(Component);
317
306
  _defineProperty(ValueRoot, "defaultProps", {
318
307
  includeInputProps: inputProps,
319
308
  defaultChecked: false
320
309
  });
321
- _defineProperty(ValueRoot, "enhance", [keyboardFocusEnhance(), resolveColorEnhance()]);
310
+ _defineProperty(ValueRoot, "enhance", [resolveColorEnhance()]);
322
311
  _defineProperty(ValueRoot, "displayName", 'Value');
323
- _defineProperty(ValueRoot, "contextType", RadioGroup[CONTEXT_COMPONENT]);
312
+ _defineProperty(ValueRoot, "contextType", RadioContext);
324
313
  _defineProperty(ValueRoot, "style", style);
325
- var Control = function Control(props) {
314
+ function Control(props) {
326
315
  var _ref3 = arguments[0],
327
316
  _ref9;
328
317
  var SControl = Box;
@@ -333,11 +322,11 @@ var Control = function Control(props) {
333
322
  "type": 'radio',
334
323
  "aria-invalid": state === 'invalid'
335
324
  }, _ref3))));
336
- };
325
+ }
337
326
  Control.displayName = 'Control';
338
- var RadioMark = function RadioMark(props) {
327
+ function RadioMark(props) {
339
328
  var _ref4 = arguments[0],
340
- _ref10;
329
+ _ref0;
341
330
  var SValue = Box;
342
331
  var SInvalidPattern = InvalidStateBox;
343
332
  var theme = props.theme,
@@ -345,16 +334,16 @@ var RadioMark = function RadioMark(props) {
345
334
  resolveColor = props.resolveColor,
346
335
  state = props.state,
347
336
  checked = props.checked;
348
- return _ref10 = sstyled(styles), /*#__PURE__*/React.createElement(SValue, _ref10.cn("SValue", _objectSpread({}, _assignProps4({
337
+ return _ref0 = sstyled(styles), /*#__PURE__*/React.createElement(SValue, _ref0.cn("SValue", _objectSpread({}, _assignProps4({
349
338
  "tag": 'div',
350
339
  "use:theme": resolveColor(theme),
351
340
  "aria-hidden": true
352
- }, _ref4))), state === 'invalid' && !checked && /*#__PURE__*/React.createElement(SInvalidPattern, _ref10.cn("SInvalidPattern", {})));
353
- };
341
+ }, _ref4))), state === 'invalid' && !checked && /*#__PURE__*/React.createElement(SInvalidPattern, _ref0.cn("SInvalidPattern", {})));
342
+ }
354
343
  RadioMark.displayName = 'RadioMark';
355
- var Text = function Text(props) {
344
+ function Text(props) {
356
345
  var _ref5 = arguments[0],
357
- _ref11;
346
+ _ref1;
358
347
  var SText = TypographyText;
359
348
  var styles = props.styles,
360
349
  color = props.color;
@@ -364,13 +353,12 @@ var Text = function Text(props) {
364
353
  }
365
354
  }, [props.rootDisabled, props.disabled, props.hoistDisabled]);
366
355
  var resolveColor = useColorResolver();
367
- return _ref11 = sstyled(styles), /*#__PURE__*/React.createElement(SText, _ref11.cn("SText", _objectSpread({}, _assignProps5({
356
+ return _ref1 = sstyled(styles), /*#__PURE__*/React.createElement(SText, _ref1.cn("SText", _objectSpread({}, _assignProps5({
368
357
  "tag": 'span',
369
358
  "use:color": resolveColor(color)
370
359
  }, _ref5))));
371
- };
360
+ }
372
361
  Text.displayName = 'Text';
373
- export { inputProps, RadioGroup };
374
362
  var Value = createComponent(ValueRoot, {
375
363
  Control: Control,
376
364
  RadioMark: RadioMark
@@ -382,5 +370,6 @@ var Radio = createComponent(RadioRoot, {
382
370
  export var wrapRadioGroup = function wrapRadioGroup(wrapper) {
383
371
  return wrapper;
384
372
  };
373
+ export { inputProps, RadioGroup };
385
374
  export default Radio;
386
375
  //# sourceMappingURL=Radio.js.map