Skip to content

Commit

Permalink
Lower case fullwidth prop
Browse files Browse the repository at this point in the history
  • Loading branch information
bayasdev committed Oct 29, 2024
1 parent c3ed045 commit c23b3b7
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/components/Button/Button.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ FullWidth.args = {
disabled: false,
label: "Test Button",
variant: "secondary",
fullWidth: true,
fullwidth: true,
icon: <TestIcon />,
};

Expand Down
2 changes: 1 addition & 1 deletion src/components/Button/Button.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export interface ButtonProps {
icon?: ReactNode;
iconLocation?: "start" | "end";
secondaryIcon?: ReactNode;
fullWidth?: boolean;
fullwidth?: boolean;
collapseOnSmall?: boolean;
onClick?: MouseEventHandler<HTMLButtonElement>;
children?: ReactNode | string;
Expand Down
4 changes: 2 additions & 2 deletions src/components/Button/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const Button: FC<
iconLocation = "start",
secondaryIcon,
onClick,
fullWidth,
fullwidth,
collapseOnSmall = true,
children,
compact = false,
Expand Down Expand Up @@ -92,7 +92,7 @@ const Button: FC<
height: compact ? 28 : 36,
padding: paddingValue,
"& .button-label": {
whiteSpace: fullWidth ? "normal" : "nowrap",
whiteSpace: fullwidth ? "normal" : "nowrap",
marginRight:
!hasLabel || !icon
? 0
Expand Down
2 changes: 1 addition & 1 deletion src/components/InputBox/InputBox.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export type InputBoxOrientation = "horizontal" | "vertical";
export interface InputBoxProps
extends React.InputHTMLAttributes<HTMLInputElement> {
id: string;
fullWidth?: boolean;
fullwidth?: boolean;
label?: string;
tooltip?: string;
sx?: OverrideTheme;
Expand Down
2 changes: 1 addition & 1 deletion src/components/InputBox/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const Inputdiv = React.forwardRef<
sizeMode === "small" ? inputBaseSizeSmall : {},
startIcon ? { paddingLeft: 35 } : {},
]}
fullWidth
fullwidth
type={inputdivWrapperType}
className={`Base_Normal inputRebase ${state}State ${value && value !== "" ? "filled" : ""}`}
value={value}
Expand Down
2 changes: 1 addition & 1 deletion src/components/TextArea/TextArea.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { InputBoxOrientation, InputBoxState } from "../InputBox/InputBox.types";
export interface TextAreaProps
extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {
id: string;
fullWidth?: boolean;
fullwidth?: boolean;
label?: string;
tooltip?: string;
sx?: OverrideTheme;
Expand Down
2 changes: 1 addition & 1 deletion src/components/TextArea/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ const TextArea: FC<TextAreaProps> = ({
<textarea
css={[baseStyles, { minHeight: 92 }]}
id={id}
fullWidth
fullwidth
className={`Base_Normal inputRebase ${state}State`}
data-index={index}
rows={5}
Expand Down

0 comments on commit c23b3b7

Please sign in to comment.