Skip to content

Commit

Permalink
Update naming
Browse files Browse the repository at this point in the history
  • Loading branch information
brookewp committed Jan 9, 2024
1 parent a780070 commit ced9711
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
7 changes: 5 additions & 2 deletions packages/components/src/box-control/all-input-control.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ import { useInstanceId } from '@wordpress/compose';
* Internal dependencies
*/
import type { UnitControlProps } from '../unit-control/types';
import { FlexedRangeControl, UnitControl } from './styles/box-control-styles';
import {
FlexedRangeControl,
StyledUnitControl,
} from './styles/box-control-styles';
import { HStack } from '../h-stack';
import type { BoxControlInputControlProps } from './types';
import { parseQuantityAndUnitFromRawValue } from '../unit-control';
Expand Down Expand Up @@ -69,7 +72,7 @@ export default function AllInputControl( {

return (
<HStack>
<UnitControl
<StyledUnitControl
{ ...props }
className="component-box-control__unit-control"
disableUnits={ isMixed }
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/box-control/axial-input-controls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
FlexedBoxControlIcon,
FlexedRangeControl,
InputWrapper,
UnitControl,
StyledUnitControl,
} from './styles/box-control-styles';
import type { BoxControlInputControlProps } from './types';

Expand Down Expand Up @@ -103,7 +103,7 @@ export default function AxialInputControls( {
<InputWrapper key={ side }>
<FlexedBoxControlIcon side={ side } sides={ sides } />
<Tooltip placement="top-end" text={ LABELS[ side ] }>
<UnitControl
<StyledUnitControl
{ ...props }
className="component-box-control__unit-control"
id={ inputId }
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/box-control/input-controls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
FlexedBoxControlIcon,
FlexedRangeControl,
InputWrapper,
UnitControl,
StyledUnitControl,
} from './styles/box-control-styles';
import type { BoxControlInputControlProps, BoxControlValue } from './types';

Expand Down Expand Up @@ -105,7 +105,7 @@ export default function BoxInputControls( {
<InputWrapper key={ `box-control-${ side }` } expanded>
<FlexedBoxControlIcon side={ side } sides={ sides } />
<Tooltip placement="top-end" text={ LABELS[ side ] }>
<UnitControl
<StyledUnitControl
{ ...props }
className="component-box-control__unit-control"
id={ inputId }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import BoxControlIcon from '../icon';
import Button from '../../button';
import { HStack } from '../../h-stack';
import RangeControl from '../../range-control';
import BaseUnitControl from '../../unit-control';
import UnitControl from '../../unit-control';
import { space } from '../../utils/space';

export const UnitControl = styled( BaseUnitControl )`
export const StyledUnitControl = styled( UnitControl )`
max-width: 90px;
`;

Expand Down

0 comments on commit ced9711

Please sign in to comment.