From 8488bac8238e02d68f4c1025168b40a6101e29cc Mon Sep 17 00:00:00 2001 From: Joe Bell <7349341+joe-bell@users.noreply.github.com> Date: Wed, 12 Jun 2024 19:56:45 +0300 Subject: [PATCH] fix(ui): Align to kebab-case (#3556) Co-authored-by: Alex Carpenter --- .changeset/bright-icons-brake.md | 2 ++ .../ui/src/common/{EmailField.tsx => email-field.tsx} | 0 .../{FirstNameField.tsx => first-name-field.tsx} | 0 .../common/{LastNameField.tsx => last-name-field.tsx} | 0 packages/ui/src/common/{OTPField.tsx => otp-field.tsx} | 0 .../common/{PasswordField.tsx => password-field.tsx} | 0 .../{PhoneNumberField => phone-number-field}/data.ts | 0 .../{PhoneNumberField => phone-number-field}/index.tsx | 0 .../useFormattedPhoneNumber.ts | 0 .../{PhoneNumberField => phone-number-field}/utils.ts | 0 packages/ui/src/components/sign-in/sign-in.tsx | 8 ++++---- packages/ui/src/components/sign-up/sign-up.tsx | 10 +++++----- 12 files changed, 11 insertions(+), 9 deletions(-) create mode 100644 .changeset/bright-icons-brake.md rename packages/ui/src/common/{EmailField.tsx => email-field.tsx} (100%) rename packages/ui/src/common/{FirstNameField.tsx => first-name-field.tsx} (100%) rename packages/ui/src/common/{LastNameField.tsx => last-name-field.tsx} (100%) rename packages/ui/src/common/{OTPField.tsx => otp-field.tsx} (100%) rename packages/ui/src/common/{PasswordField.tsx => password-field.tsx} (100%) rename packages/ui/src/common/{PhoneNumberField => phone-number-field}/data.ts (100%) rename packages/ui/src/common/{PhoneNumberField => phone-number-field}/index.tsx (100%) rename packages/ui/src/common/{PhoneNumberField => phone-number-field}/useFormattedPhoneNumber.ts (100%) rename packages/ui/src/common/{PhoneNumberField => phone-number-field}/utils.ts (100%) diff --git a/.changeset/bright-icons-brake.md b/.changeset/bright-icons-brake.md new file mode 100644 index 00000000000..a845151cc84 --- /dev/null +++ b/.changeset/bright-icons-brake.md @@ -0,0 +1,2 @@ +--- +--- diff --git a/packages/ui/src/common/EmailField.tsx b/packages/ui/src/common/email-field.tsx similarity index 100% rename from packages/ui/src/common/EmailField.tsx rename to packages/ui/src/common/email-field.tsx diff --git a/packages/ui/src/common/FirstNameField.tsx b/packages/ui/src/common/first-name-field.tsx similarity index 100% rename from packages/ui/src/common/FirstNameField.tsx rename to packages/ui/src/common/first-name-field.tsx diff --git a/packages/ui/src/common/LastNameField.tsx b/packages/ui/src/common/last-name-field.tsx similarity index 100% rename from packages/ui/src/common/LastNameField.tsx rename to packages/ui/src/common/last-name-field.tsx diff --git a/packages/ui/src/common/OTPField.tsx b/packages/ui/src/common/otp-field.tsx similarity index 100% rename from packages/ui/src/common/OTPField.tsx rename to packages/ui/src/common/otp-field.tsx diff --git a/packages/ui/src/common/PasswordField.tsx b/packages/ui/src/common/password-field.tsx similarity index 100% rename from packages/ui/src/common/PasswordField.tsx rename to packages/ui/src/common/password-field.tsx diff --git a/packages/ui/src/common/PhoneNumberField/data.ts b/packages/ui/src/common/phone-number-field/data.ts similarity index 100% rename from packages/ui/src/common/PhoneNumberField/data.ts rename to packages/ui/src/common/phone-number-field/data.ts diff --git a/packages/ui/src/common/PhoneNumberField/index.tsx b/packages/ui/src/common/phone-number-field/index.tsx similarity index 100% rename from packages/ui/src/common/PhoneNumberField/index.tsx rename to packages/ui/src/common/phone-number-field/index.tsx diff --git a/packages/ui/src/common/PhoneNumberField/useFormattedPhoneNumber.ts b/packages/ui/src/common/phone-number-field/useFormattedPhoneNumber.ts similarity index 100% rename from packages/ui/src/common/PhoneNumberField/useFormattedPhoneNumber.ts rename to packages/ui/src/common/phone-number-field/useFormattedPhoneNumber.ts diff --git a/packages/ui/src/common/PhoneNumberField/utils.ts b/packages/ui/src/common/phone-number-field/utils.ts similarity index 100% rename from packages/ui/src/common/PhoneNumberField/utils.ts rename to packages/ui/src/common/phone-number-field/utils.ts diff --git a/packages/ui/src/components/sign-in/sign-in.tsx b/packages/ui/src/components/sign-in/sign-in.tsx index 34f537744ea..984846dea88 100644 --- a/packages/ui/src/components/sign-in/sign-in.tsx +++ b/packages/ui/src/components/sign-in/sign-in.tsx @@ -2,10 +2,10 @@ import { useClerk } from '@clerk/clerk-react'; import * as Common from '@clerk/elements/common'; import * as SignIn from '@clerk/elements/sign-in'; -import { EmailField } from '~/common/EmailField'; -import { OTPField } from '~/common/OTPField'; -import { PasswordField } from '~/common/PasswordField'; -import { PhoneNumberField } from '~/common/PhoneNumberField'; +import { EmailField } from '~/common/email-field'; +import { OTPField } from '~/common/otp-field'; +import { PasswordField } from '~/common/password-field'; +import { PhoneNumberField } from '~/common/phone-number-field'; import { PROVIDERS } from '~/constants'; import { getEnabledSocialConnectionsFromEnvironment } from '~/hooks/getEnabledSocialConnectionsFromEnvironment'; import { Button } from '~/primitives/button'; diff --git a/packages/ui/src/components/sign-up/sign-up.tsx b/packages/ui/src/components/sign-up/sign-up.tsx index 17fe048c6c4..e42ae4e4d4b 100644 --- a/packages/ui/src/components/sign-up/sign-up.tsx +++ b/packages/ui/src/components/sign-up/sign-up.tsx @@ -2,11 +2,11 @@ import { useClerk } from '@clerk/clerk-react'; import * as Common from '@clerk/elements/common'; import * as SignUp from '@clerk/elements/sign-up'; -import { EmailField } from '~/common/EmailField'; -import { FirstNameField } from '~/common/FirstNameField'; -import { LastNameField } from '~/common/LastNameField'; -import { OTPField } from '~/common/OTPField'; -import { PasswordField } from '~/common/PasswordField'; +import { EmailField } from '~/common/email-field'; +import { FirstNameField } from '~/common/first-name-field'; +import { LastNameField } from '~/common/last-name-field'; +import { OTPField } from '~/common/otp-field'; +import { PasswordField } from '~/common/password-field'; import { PROVIDERS } from '~/constants'; import { getEnabledSocialConnectionsFromEnvironment } from '~/hooks/getEnabledSocialConnectionsFromEnvironment'; import { Button } from '~/primitives/button';