diff --git a/src/alert/index.tsx b/src/alert/index.tsx index cb672a643d..5a82c64afb 100644 --- a/src/alert/index.tsx +++ b/src/alert/index.tsx @@ -13,7 +13,9 @@ export { AlertProps }; const Alert = React.forwardRef( ({ type = 'info', visible = true, ...props }: AlertProps, ref: React.Ref) => { - const baseComponentProps = useBaseComponent('Alert'); + const baseComponentProps = useBaseComponent('Alert', { + props: { type, visible, dismissible: props.dismissible }, + }); const { funnelInteractionId, submissionAttempt, funnelState, errorCount } = useFunnel(); const { stepNumber, stepNameSelector } = useFunnelStep(); diff --git a/src/area-chart/index.tsx b/src/area-chart/index.tsx index 18687f84a8..16f28c4695 100644 --- a/src/area-chart/index.tsx +++ b/src/area-chart/index.tsx @@ -19,7 +19,16 @@ function AreaChart({ i18nStrings = {}, ...props }: AreaChartProps) { - const baseComponentProps = useBaseComponent('AreaChart'); + const baseComponentProps = useBaseComponent('AreaChart', { + props: { + detailPopoverSize, + hideLegend: props.hideLegend, + hideFilter: props.hideFilter, + fitHeight: props.fitHeight, + xScaleType, + yScaleType, + }, + }); return ( ) => { - const baseComponentProps = useBaseComponent('Autosuggest'); + const baseComponentProps = useBaseComponent('Autosuggest', { + props: { + autoFocus: props.autoFocus, + disableBrowserAutocorrect, + expandToViewport: props.expandToViewport, + filteringType, + readOnly: props.readOnly, + virtualScroll: props.virtualScroll, + }, + }); const externalProps = getExternalProps(props); return ( ({ detailPopoverSeriesContent, ...props }: BarChartProps) { - const baseComponentProps = useBaseComponent('BarChart'); + const baseComponentProps = useBaseComponent('BarChart', { + props: { + detailPopoverSize, + emphasizeBaselineAxis, + fitHeight: props.fitHeight, + hideFilter: props.hideFilter, + hideLegend: props.hideLegend, + horizontalBars, + stackedBars, + xScaleType, + yScaleType, + }, + }); const baseProps = getBaseProps(props); const className = clsx(baseProps.className, styles.root); diff --git a/src/box/index.tsx b/src/box/index.tsx index 97bc987a88..06bf5f63dc 100644 --- a/src/box/index.tsx +++ b/src/box/index.tsx @@ -9,7 +9,17 @@ import useBaseComponent from '../internal/hooks/use-base-component'; export { BoxProps }; export default function Box({ variant = 'div', margin = {}, padding = {}, ...props }: BoxProps) { - const baseComponentProps = useBaseComponent('Box'); + const baseComponentProps = useBaseComponent('Box', { + props: { + color: props.color, + display: props.display, + float: props.float, + fontSize: props.fontSize, + fontWeight: props.fontWeight, + textAlign: props.textAlign, + variant, + }, + }); return ; } applyDisplayName(Box, 'Box'); diff --git a/src/button-dropdown/index.tsx b/src/button-dropdown/index.tsx index 23f3109903..49829a36b4 100644 --- a/src/button-dropdown/index.tsx +++ b/src/button-dropdown/index.tsx @@ -28,7 +28,9 @@ const ButtonDropdown = React.forwardRef( }: ButtonDropdownProps, ref: React.Ref ) => { - const baseComponentProps = useBaseComponent('ButtonDropdown'); + const baseComponentProps = useBaseComponent('ButtonDropdown', { + props: { expandToViewport, expandableGroups, variant }, + }); const baseProps = getBaseProps(props); return ( ) => { - const baseComponentProps = useBaseComponent('Button'); + const baseComponentProps = useBaseComponent('Button', { + props: { formAction, fullWidth, iconAlign, iconName, rel, target, variant, wrapText }, + }); const baseProps = getBaseProps(props); return ( ( }: CardsProps, ref: React.Ref ) { - const { __internalRootRef } = useBaseComponent('Cards'); + const { __internalRootRef } = useBaseComponent('Cards', { + props: { entireCardClickable, selectionType, stickyHeader, variant }, + }); const baseProps = getBaseProps(rest); const isRefresh = useVisualRefresh(); const isMobile = useMobile(); diff --git a/src/code-editor/index.tsx b/src/code-editor/index.tsx index 294fcc826f..d2ff0b88e6 100644 --- a/src/code-editor/index.tsx +++ b/src/code-editor/index.tsx @@ -45,8 +45,6 @@ import { export { CodeEditorProps }; const CodeEditor = forwardRef((props: CodeEditorProps, ref: React.Ref) => { - const { __internalRootRef } = useBaseComponent('CodeEditor'); - const { controlId, ariaLabelledby, ariaDescribedby } = useFormFieldContext(props); const { ace, value, @@ -61,6 +59,8 @@ const CodeEditor = forwardRef((props: CodeEditorProps, ref: React.Ref; } diff --git a/src/copy-to-clipboard/index.tsx b/src/copy-to-clipboard/index.tsx index f125e19b7f..d2ee2ecad1 100644 --- a/src/copy-to-clipboard/index.tsx +++ b/src/copy-to-clipboard/index.tsx @@ -23,7 +23,9 @@ export default function CopyToClipboard({ textToCopy, ...restProps }: CopyToClipboardProps) { - const { __internalRootRef } = useBaseComponent('CopyToClipboard'); + const { __internalRootRef } = useBaseComponent('CopyToClipboard', { + props: { variant }, + }); const baseProps = getBaseProps(restProps); const copyButtonProps =