odaptos_design_system 1.4.76 → 1.4.78

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.
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  interface RadioProps {
3
3
  label?: string;
4
4
  leftLabel?: string;
5
- onChange: () => void;
5
+ onChange?: () => void;
6
6
  onBlur?: () => void;
7
7
  checked: boolean;
8
8
  disabled?: boolean;
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ interface RatingScaleProps {
3
+ className?: string;
4
+ topLabel?: string | undefined;
5
+ topLabelWeight?: 'semi-bold' | 'bold' | 'regular';
6
+ topLabelSize?: 'xs' | 'sm' | 'base' | 'lg' | 'xl' | 'xxl' | 'xxxl' | 'xxxxl';
7
+ required?: boolean | undefined;
8
+ name?: string;
9
+ options: string[];
10
+ value: string | number | null;
11
+ onChange: (event: any) => void;
12
+ onBlur?: (event: any) => void;
13
+ onKeyDown?: () => void;
14
+ disabled?: boolean;
15
+ id?: string;
16
+ helperText?: string;
17
+ errorText?: string;
18
+ error?: boolean;
19
+ otherProps?: any;
20
+ }
21
+ declare const RatingScale: (props: RatingScaleProps) => React.JSX.Element;
22
+ export default RatingScale;
@@ -1,8 +1,9 @@
1
1
  import React from 'react';
2
- interface RadioProps {
2
+ interface SearchProps {
3
3
  searchInput: string | number;
4
4
  placeholder?: string;
5
+ id?: string;
5
6
  onChange: (e: any) => void;
6
7
  }
7
- export declare const Search: ({ searchInput, onChange, placeholder }: RadioProps) => React.JSX.Element;
8
+ export declare const Search: ({ searchInput, onChange, placeholder, id, }: SearchProps) => React.JSX.Element;
8
9
  export {};
@@ -8704,7 +8704,8 @@ const TextInput = props => {
8704
8704
  const Search = ({
8705
8705
  searchInput,
8706
8706
  onChange,
8707
- placeholder
8707
+ placeholder,
8708
+ id
8708
8709
  }) => {
8709
8710
  return /*#__PURE__*/React__default.createElement(TextInput, {
8710
8711
  value: searchInput,
@@ -8717,7 +8718,8 @@ const Search = ({
8717
8718
  width: '1rem'
8718
8719
  }
8719
8720
  }),
8720
- onChange: onChange
8721
+ onChange: onChange,
8722
+ id: id
8721
8723
  });
8722
8724
  };
8723
8725