@gravity-ui/aikit 0.4.3 → 0.4.4
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,3 +1,4 @@
|
|
|
1
|
+
import type { TextProps } from '@gravity-ui/uikit';
|
|
1
2
|
import './Disclaimer.scss';
|
|
2
3
|
/**
|
|
3
4
|
* Props for the Disclaimer component
|
|
@@ -7,6 +8,8 @@ export type DisclaimerProps = React.PropsWithChildren<{
|
|
|
7
8
|
className?: string;
|
|
8
9
|
/** Disclaimer text to display */
|
|
9
10
|
text?: string;
|
|
11
|
+
/** Text variant for typography styling */
|
|
12
|
+
variant?: TextProps['variant'];
|
|
10
13
|
/** QA/test identifier */
|
|
11
14
|
qa?: string;
|
|
12
15
|
}>;
|
|
@@ -10,6 +10,6 @@ const b = block('disclaimer');
|
|
|
10
10
|
* @returns React component
|
|
11
11
|
*/
|
|
12
12
|
export function Disclaimer(props) {
|
|
13
|
-
const { className, qa, children, text } = props;
|
|
14
|
-
return (_jsxs("div", { className: b('container', className), "data-qa": qa, children: [text && _jsx(Text, { color: "secondary", children: text }), children] }));
|
|
13
|
+
const { className, qa, children, text, variant } = props;
|
|
14
|
+
return (_jsxs("div", { className: b('container', className), "data-qa": qa, children: [text && (_jsx(Text, { color: "secondary", variant: variant, children: text })), children] }));
|
|
15
15
|
}
|