@edvisor/product-language 0.10.41 → 0.10.42

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.
@@ -1,8 +1,8 @@
1
1
  import { FC } from '@helpers';
2
- import { IOption } from 'components/select/types';
2
+ import { IRadioOption } from 'components/select/types';
3
3
  export interface IOptionGroup {
4
4
  selected: unknown;
5
- options: IOption[];
5
+ options: IRadioOption[];
6
6
  onChange: (value: string) => void;
7
7
  name?: string;
8
8
  }
@@ -1,8 +1,9 @@
1
1
  import { InputHTMLAttributes } from 'react';
2
2
  import { FC } from '@helpers';
3
+ import { ReactNode } from 'react';
3
4
  export declare const Radio: import("styled-components").StyledComponent<"input", any, {}, never>;
4
5
  export interface InputElementProps extends InputHTMLAttributes<HTMLInputElement> {
5
- label: string;
6
+ label: string | ReactNode;
6
7
  id: string;
7
8
  key?: string;
8
9
  disabled?: boolean;
@@ -1,4 +1,5 @@
1
1
  import { FC } from '@helpers';
2
+ import React from 'react';
2
3
  import { CSSProperties } from 'react';
3
4
  export interface ISelectProps<T = any> {
4
5
  className?: string;
@@ -99,6 +100,12 @@ export interface IOption<T = any> {
99
100
  label: string;
100
101
  [key: string]: any;
101
102
  }
103
+ export interface IRadioOption<T = any> {
104
+ value: T;
105
+ disabled?: boolean;
106
+ label: string | React.ReactNode;
107
+ [key: string]: any;
108
+ }
102
109
  export interface IMenuComponentProps<T = any> {
103
110
  options: ISelectProps['options'];
104
111
  value: ISelectProps['value'];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edvisor/product-language",
3
- "version": "0.10.41",
3
+ "version": "0.10.42",
4
4
  "license": "MIT",
5
5
  "description": "Edvisor.io product-language components",
6
6
  "repository": "https://github.com/edvisor-io/front-end/",