-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from MaxymilianSa/feature/changes-in-naming-co…
…nvention Change naming convention
- Loading branch information
Showing
71 changed files
with
281 additions
and
189 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,8 @@ | |
|
||
# production | ||
/build | ||
/dist | ||
tsconfig.tsbuildinfo | ||
|
||
# misc | ||
.DS_Store | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export type HeaderProps = { | ||
description?: string; | ||
title: string; | ||
}; |
5 changes: 1 addition & 4 deletions
5
src/components/Content/components/Header.tsx → ...ents/Content/components/header/header.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { Header } from './header'; | ||
export type { HeaderProps } from './header.model'; |
6 changes: 3 additions & 3 deletions
6
src/components/Content/useContent.tsx → src/components/Content/content.controller.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
src/components/Content/ContentModel.tsx → src/components/Content/content.model.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './content'; |
8 changes: 4 additions & 4 deletions
8
src/components/Content/steps/FinishingUp.tsx → ...components/Content/steps/finishing-up.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export { FinishingUp } from './finishing-up'; | ||
export { PersonalInfo } from './personal-info'; | ||
export { PickAddons } from './pick-addons'; | ||
export { SelectPlan } from './select-plan'; | ||
export { Summary } from './summary'; |
2 changes: 1 addition & 1 deletion
2
...components/Content/steps/PersonalInfo.tsx → ...omponents/Content/steps/personal-info.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/components/Content/steps/PickAddons.tsx → src/components/Content/steps/pick-addons.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 0 additions & 16 deletions
16
src/components/Form/UI/SwitchButton/SwitchButton.stories.tsx
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
src/components/Form/components/form-field/form-field.controller.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import type { FormFieldProps } from './form-field.model'; | ||
|
||
export const useFormField = <P extends Pick<FormFieldProps, 'name' | 'label' | 'className'>>( | ||
props: P, | ||
) => { | ||
const { label, name, className, ...otherProps } = props; | ||
const id = name; | ||
|
||
return { | ||
formFieldProps: { id, name, label, className }, | ||
childProps: { ...otherProps, id, name }, | ||
}; | ||
}; |
8 changes: 8 additions & 0 deletions
8
src/components/Form/components/form-field/form-field.model.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { PropsWithChildren } from 'react'; | ||
|
||
export type FormFieldProps = { | ||
className?: string; | ||
id: string; | ||
label?: string; | ||
name: string; | ||
} & PropsWithChildren; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export { default } from './form-field'; | ||
export { useFormField } from './form-field.controller'; | ||
export type { FormFieldProps } from './form-field.model'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { ComponentProps } from 'react'; | ||
|
||
import { AddonType } from '@/@types/addon'; | ||
|
||
export type CheckboxUIProps = { | ||
className?: string; | ||
content: AddonType; | ||
duration: 'mo' | 'yr'; | ||
} & Omit<ComponentProps<'input'>, 'type' | 'content'>; |
2 changes: 1 addition & 1 deletion
2
...nts/Form/UI/Checkbox/Checkbox.stories.tsx → ...mponents/ui/checkbox/checkbox.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 2 additions & 9 deletions
11
src/components/Form/UI/Checkbox/Checkbox.tsx → .../Form/components/ui/checkbox/checkbox.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { default } from './checkbox'; | ||
export type { CheckboxUIProps } from './checkbox.model'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { default } from './input'; | ||
export type { InputUIProps } from './input.model'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import { ComponentProps } from 'react'; | ||
|
||
export type InputUIProps = { | ||
className?: string; | ||
error?: string; | ||
} & ComponentProps<'input'>; |
2 changes: 1 addition & 1 deletion
2
...components/Form/UI/Input/Input.stories.ts → ...Form/components/ui/input/input.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 1 addition & 6 deletions
7
src/components/Form/UI/Input/Input.tsx → ...onents/Form/components/ui/input/input.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export { default } from './radio-box'; | ||
export type { RadioBoxUIProps } from './radio-box.model'; |
9 changes: 9 additions & 0 deletions
9
src/components/Form/components/ui/radio-box/radio-box.model.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { ComponentProps } from 'react'; | ||
|
||
import { PlanType } from '@/@types/plan'; | ||
|
||
export type RadioBoxUIProps = { | ||
className?: string; | ||
duration: 'mo' | 'yr'; | ||
} & PlanType & | ||
Omit<ComponentProps<'input'>, 'type' | 'content'>; |
2 changes: 1 addition & 1 deletion
2
...nts/Form/UI/RadioBox/RadioBox.stories.tsx → ...onents/ui/radio-box/radio-box.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.