mirror of
https://bitbucket.org/Mattrixwv/mattrixwvreactcomponents.git
synced 2025-12-07 06:03:58 -05:00
Temporal input components added
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { MattrixwvTabGroup } from "$/component/tab";
|
||||
import type { TabGroupContent } from "$/types/Tab";
|
||||
import { CheckboxContent, FileContent, RadioContent, SwitchContent, TextContent } from "@/util/InputUtils";
|
||||
import { CheckboxContent, DateContent, FileContent, RadioContent, SwitchContent, TextContent } from "@/util/InputUtils";
|
||||
import { createFileRoute } from "@tanstack/react-router";
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@ function InputPage(){
|
||||
const tabs: TabGroupContent[] = [
|
||||
{ tab: "Checkbox", content: <CheckboxContent/>},
|
||||
{ tab: "Radio", content: <RadioContent/> },
|
||||
{ tab: "Date", content: <DateContent/> },
|
||||
{ tab: "File", content: <FileContent/> },
|
||||
{ tab: "Switch", content: <SwitchContent/> },
|
||||
{ tab: "Text", content: <TextContent/> }
|
||||
|
||||
@@ -11,6 +11,9 @@ import SecondaryCheckbox from "$/component/input/checkbox/SecondaryCheckbox";
|
||||
import SuccessCheckbox from "$/component/input/checkbox/SuccessCheckbox";
|
||||
import TertiaryCheckbox from "$/component/input/checkbox/TertiaryCheckbox";
|
||||
import WarningCheckbox from "$/component/input/checkbox/WarningCheckbox";
|
||||
import DateInput from "$/component/input/date/DateInput";
|
||||
import DateTimeInput from "$/component/input/date/DateTimeInput";
|
||||
import TimeInput from "$/component/input/date/TimeInput";
|
||||
import DangerRadioButton from "$/component/input/radio/DangerRadioButton";
|
||||
import DarkRadioButton from "$/component/input/radio/DarkRadioButton";
|
||||
import InfoRadioButton from "$/component/input/radio/InfoRadioButton";
|
||||
@@ -743,3 +746,18 @@ function RadioDisplay({
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export function DateContent(){
|
||||
return (
|
||||
<div
|
||||
className="flex flex-col items-center justify-center my-8 gap-y-8"
|
||||
>
|
||||
<DateInput
|
||||
/>
|
||||
<DateTimeInput
|
||||
/>
|
||||
<TimeInput
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user