forstok-ui-lib 5.2.50 → 5.2.51

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forstok-ui-lib",
3
- "version": "5.2.50",
3
+ "version": "5.2.51",
4
4
  "description": "Forstok UI Components Library",
5
5
  "path": "dist",
6
6
  "main": "dist/index.js",
@@ -3,12 +3,12 @@ import { RadioContainer, RadioInput, RadioSpan } from './styles';
3
3
 
4
4
  type TRadio = InputHTMLAttributes<HTMLInputElement> & {
5
5
  children?: ReactNode
6
- mode?: string
6
+ $mode?: string
7
7
  evChange?: (e: ChangeEvent<HTMLInputElement>) => void
8
8
  'data-qa-id'?: string
9
9
  };
10
10
 
11
- const RadioComponent = ({ children, mode, evChange,...props }: TRadio) => {
11
+ const RadioComponent = ({ children, $mode, evChange,...props }: TRadio) => {
12
12
  const { id } = props;
13
13
  return (
14
14
  <RadioContainer>
@@ -16,12 +16,12 @@ const RadioComponent = ({ children, mode, evChange,...props }: TRadio) => {
16
16
  <RadioInput
17
17
  type='radio'
18
18
  id={id}
19
- $mode={mode}
19
+ $mode={$mode}
20
20
  onChange={(e: ChangeEvent<HTMLInputElement>) => {
21
21
  evChange && evChange(e)
22
22
  }}
23
23
  {...props} />
24
- <RadioSpan $mode={mode} {...props['data-qa-id'] && { 'data-qa-id': props['data-qa-id'] }}>{children}</RadioSpan>
24
+ <RadioSpan $mode={$mode} {...props['data-qa-id'] && { 'data-qa-id': props['data-qa-id'] }}>{children}</RadioSpan>
25
25
  </label>
26
26
  </RadioContainer>
27
27
  );