Skip to content

Commit 45be937

Browse files
committed
Fixes based on the reviews
1 parent d9752f7 commit 45be937

File tree

7 files changed

+36
-36
lines changed

7 files changed

+36
-36
lines changed

apps/web/content/docs/forms/phone-input.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ title: React Phone Input - Flowbite
33
description: Use the phone number input component from Flowbite to set a phone number inside a form field and use sizes
44
---
55

6-
The phone number input component from Flowbite React can be used to set a phone number inside a form field by using the native type="tel" attribute.
6+
The phone number input component from Flowbite React, utilizing the native type="tel" attribute, enables users to input phone numbers within form fields.
77

8-
The examples are built with the utility classes from Tailwind CSS and they are fully responsive, dark mode compatible and support RTL layouts and can be used for any type of web project.
8+
The examples are built with the utility classes from Tailwind CSS, and they are fully responsive, dark mode compatible, and support RTL layouts, making them suitable for any type of web project.
99

10-
To start using the component make sure that you have imported it from Flowbite React:
10+
To start using the component, make sure that you have imported it from Flowbite React:
1111

1212
```jsx
1313
import { PhoneInput } from "flowbite-react";

apps/web/examples/phoneInput/phoneInput.root.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ const code = `
77
import { PhoneInput } from "flowbite-react";
88
99
function Component() {
10-
return (
11-
<form className="max-w-sm mx-auto">
12-
<PhoneInput />
13-
</form>
14-
)
10+
return (
11+
<form className="max-w-sm mx-auto">
12+
<PhoneInput />
13+
</form>
14+
)
1515
}
1616
`;
1717

1818
const codeRSC = `
1919
function Component() {
20-
return (
21-
<form className="max-w-sm mx-auto">
22-
<PhoneInput />
23-
</form>
24-
)
20+
return (
21+
<form className="max-w-sm mx-auto">
22+
<PhoneInput />
23+
</form>
24+
)
2525
}
2626
`;
2727

apps/web/examples/phoneInput/phoneInput.withHelperText.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ const code = `
77
import { PhoneInput } from "flowbite-react";
88
99
function Component() {
10-
return (
11-
<form className="max-w-sm mx-auto">
12-
<PhoneInput helperText="Select a phone number that matches the format." />
13-
</form>
14-
)
10+
return (
11+
<form className="max-w-sm mx-auto">
12+
<PhoneInput helperText="Select a phone number that matches the format." />
13+
</form>
14+
)
1515
}
1616
`;
1717

1818
const codeRSC = `
1919
function Component() {
20-
return (
21-
<form className="max-w-sm mx-auto">
22-
<PhoneInput helperText="Select a phone number that matches the format." />
23-
</form>
24-
)
20+
return (
21+
<form className="max-w-sm mx-auto">
22+
<PhoneInput helperText="Select a phone number that matches the format." />
23+
</form>
24+
)
2525
}
2626
`;
2727

apps/web/examples/phoneInput/phoneInput.withRightIcon.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ const code = `
88
import { PhoneInput } from "flowbite-react";
99
1010
function Component() {
11-
return (
12-
<form className="max-w-sm mx-auto">
13-
<PhoneInput helperText="Select a phone number that matches the format." rightIcon={FaPhoneAlt}/>
14-
</form>
15-
)
11+
return (
12+
<form className="max-w-sm mx-auto">
13+
<PhoneInput helperText="Select a phone number that matches the format." rightIcon={FaPhoneAlt} />
14+
</form>
15+
)
1616
}
1717
`;
1818

1919
const codeRSC = `
2020
function Component() {
21-
return (
22-
<form className="max-w-sm mx-auto">
23-
<PhoneInput helperText="Select a phone number that matches the format." rightIcon={FaPhoneAlt} />
24-
</form>
25-
)
21+
return (
22+
<form className="max-w-sm mx-auto">
23+
<PhoneInput helperText="Select a phone number that matches the format." rightIcon={FaPhoneAlt} />
24+
</form>
25+
)
2626
}
2727
`;
2828

packages/ui/src/components/Flowbite/FlowbiteTheme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import type { FlowbiteListGroupTheme } from "../ListGroup";
2323
import type { FlowbiteModalTheme } from "../Modal";
2424
import type { FlowbiteNavbarTheme } from "../Navbar";
2525
import type { FlowbitePaginationTheme } from "../Pagination";
26-
import { FlowbitePhoneInputTheme } from "../PhoneInput/PhoneInput";
26+
import type { FlowbitePhoneInputTheme } from "../PhoneInput/PhoneInput";
2727
import type { FlowbitePopoverTheme } from "../Popover";
2828
import type { FlowbiteProgressTheme } from "../Progress";
2929
import type { FlowbiteRadioTheme } from "../Radio";

packages/ui/src/components/PhoneInput/PhoneInput.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { twMerge } from "tailwind-merge";
44
import { mergeDeep } from "../../helpers/merge-deep";
55
import { getTheme } from "../../theme-store";
66
import type { DeepPartial } from "../../types";
7-
import { FlowbiteSizes } from "../Flowbite";
7+
import type { FlowbiteSizes } from "../Flowbite";
88
import { HelperText } from "../HelperText";
99

1010
export interface FlowbitePhoneInputTheme {

packages/ui/src/components/PhoneInput/theme.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const phoneInputTheme: FlowbitePhoneInputTheme = createTheme({
55
root: {
66
base: "relative",
77
input: {
8-
base: "block w-full rounded-lg border border-gray-300 bg-gray-50 p-2.5 ps-10 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500",
8+
base: "block w-full rounded-lg border border-gray-300 bg-gray-50 p-2.5 ps-10 text-sm text-gray-900 focus:border-blue-500 focus:ring-blue-500 dark:border-gray-600 dark:bg-gray-700 dark:text-white dark:placeholder-gray-400 dark:focus:border-blue-500 dark:focus:ring-blue-500",
99
startIcon: {
1010
base: "pointer-events-none absolute inset-y-0 start-0 top-0 flex items-center ps-3.5",
1111
icon: "h-4 w-4 text-gray-500 dark:text-gray-400",

0 commit comments

Comments
 (0)