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.
- package/dist/Radio/Radio.d.ts +1 -1
- package/dist/RatingScale/RatingScale.d.ts +22 -0
- package/dist/Search/Search.d.ts +3 -2
- package/dist/odaptos_design_system.cjs.development.js +4 -2
- package/dist/odaptos_design_system.cjs.development.js.map +1 -1
- package/dist/odaptos_design_system.cjs.production.min.js +1 -1
- package/dist/odaptos_design_system.cjs.production.min.js.map +1 -1
- package/dist/odaptos_design_system.esm.js +4 -2
- package/dist/odaptos_design_system.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/Radio/Radio.tsx +1 -1
- package/src/RatingScale/RatingScale.module.scss +19 -0
- package/src/RatingScale/RatingScale.tsx +87 -0
- package/src/Search/Search.tsx +9 -2
package/dist/Radio/Radio.d.ts
CHANGED
|
@@ -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;
|
package/dist/Search/Search.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
interface
|
|
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 }:
|
|
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
|
|