-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
✅ Closes: #358
- Loading branch information
CrisGrud
committed
Oct 20, 2023
1 parent
f17de66
commit 9339a24
Showing
9 changed files
with
69 additions
and
64 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
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
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 |
---|---|---|
@@ -1,22 +1,27 @@ | ||
import { IBase, ILocalizable } from "./Base"; | ||
import { ILocalizable } from "./Base"; | ||
import { IIconElement } from "./Icon"; | ||
|
||
export type BreadCrumbsType = IBase & | ||
ILocalizable & { | ||
/** | ||
* List of Links | ||
*/ | ||
link: { label: string; href: string; icon?: IIconElement }[]; | ||
/** | ||
* Callback for click events | ||
*/ | ||
onClick: (href: string) => void; | ||
/** | ||
* Text size | ||
*/ | ||
size?: "small" | "medium" | "large"; | ||
/** | ||
* Text size | ||
*/ | ||
separator?: "-" | "/" | "<" | ">" | "|"; | ||
}; | ||
export type BreadCrumbsType = ILocalizable & { | ||
/** | ||
* List of Links | ||
*/ | ||
links: LinkType[]; | ||
/** | ||
* Callback for click events | ||
*/ | ||
onClick: (href: string) => void; | ||
/** | ||
* Text size | ||
*/ | ||
size?: "small" | "medium" | "large"; | ||
/** | ||
* Text size | ||
*/ | ||
separator?: "-" | "/" | "<" | ">" | "|"; | ||
}; | ||
|
||
export type LinkType = { | ||
label: string; | ||
href: string; | ||
icon?: IIconElement; | ||
}; |
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 |
---|---|---|
@@ -1,15 +1,14 @@ | ||
import { IBase, ILocalizable } from "./Base"; | ||
import { ILocalizable } from "./Base"; | ||
|
||
export type DateTimePickerType = IBase & | ||
ILocalizable & { | ||
label: string; | ||
value?: Date | string | number; | ||
onAccept?: (value: Date | undefined | null) => void; | ||
ampm?: boolean; | ||
mobileView?: boolean; | ||
timeZone?: string; | ||
format?: string; | ||
timeView?: "hrs" | "min" | "sec"; | ||
}; | ||
export type DateTimePickerType = ILocalizable & { | ||
label: string; | ||
value?: Date | string | number; | ||
onAccept?: (value: Date | undefined | null) => void; | ||
ampm?: boolean; | ||
mobileView?: boolean; | ||
timeZone?: string; | ||
format?: string; | ||
timeView?: "hrs" | "min" | "sec"; | ||
}; | ||
|
||
export type viewType = "year" | "month" | "day" | "hours" | "minutes" | "seconds"; |
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 |
---|---|---|
@@ -1,17 +1,18 @@ | ||
import { IBase, ILocalizable } from "./Base"; | ||
import { ILocalizable } from "./Base"; | ||
|
||
export type StepperType = IBase & | ||
ILocalizable & { | ||
stepList: { | ||
label: string; | ||
content?: React.ReactNode; | ||
}[]; | ||
labelBackButton?: string; | ||
labelNextButton?: string; | ||
labelFinishButton?: string; | ||
activeStep: number; | ||
onNextClick: () => void; | ||
onBackClick: () => void; | ||
onFinishClick: () => void; | ||
finishContent: React.ReactNode; | ||
}; | ||
export type StepperType = ILocalizable & { | ||
stepsList: StepListType[]; | ||
labelBackButton?: string; | ||
labelNextButton?: string; | ||
labelFinishButton?: string; | ||
activeStep: number; | ||
onNextClick: () => void; | ||
onBackClick: () => void; | ||
onFinishClick: () => void; | ||
finishContent: React.ReactNode; | ||
}; | ||
|
||
export type StepListType = { | ||
label: string; | ||
content?: React.ReactNode; | ||
}; |