From 817330fe4867b55b4a1245d8737e1c39949199d3 Mon Sep 17 00:00:00 2001 From: "GROUPEVSC\\julien_schiano" Date: Fri, 5 Feb 2021 09:01:09 +0100 Subject: [PATCH 1/3] new DatePicker and DateTimePicker with darkMode --- .../components/form/dateTimePicker/DatePicker.tsx | 12 ++++++++++++ .../form/dateTimePicker/DateTimePicker.tsx | 12 ++++++++++++ pages/components/inputtext/index.tsx | 9 +++++++++ 3 files changed, 33 insertions(+) create mode 100644 components/kit/components/form/dateTimePicker/DatePicker.tsx create mode 100644 components/kit/components/form/dateTimePicker/DateTimePicker.tsx diff --git a/components/kit/components/form/dateTimePicker/DatePicker.tsx b/components/kit/components/form/dateTimePicker/DatePicker.tsx new file mode 100644 index 0000000..0ab28fe --- /dev/null +++ b/components/kit/components/form/dateTimePicker/DatePicker.tsx @@ -0,0 +1,12 @@ +import React from 'react'; + +export const DatePicker = () => { + return ( + + ); +}; diff --git a/components/kit/components/form/dateTimePicker/DateTimePicker.tsx b/components/kit/components/form/dateTimePicker/DateTimePicker.tsx new file mode 100644 index 0000000..e755f0a --- /dev/null +++ b/components/kit/components/form/dateTimePicker/DateTimePicker.tsx @@ -0,0 +1,12 @@ +import React from 'react'; + +export const DateTimePicker = () => { + return ( + + ); +}; diff --git a/pages/components/inputtext/index.tsx b/pages/components/inputtext/index.tsx index dad54be..af6423d 100644 --- a/pages/components/inputtext/index.tsx +++ b/pages/components/inputtext/index.tsx @@ -6,6 +6,8 @@ import InputText from '../../../components/kit/components/form/inputtext/InputTe import InputArea from '../../../components/kit/components/form/inputtext/InputArea'; import InputGroup from '../../../components/kit/components/form/inputtext/InputGroup'; import { TimePicker } from '../../../components/kit/components/form/dateTimePicker/TimePicker'; +import { DatePicker } from '../../../components/kit/components/form/dateTimePicker/DatePicker'; +import { DateTimePicker } from '../../../components/kit/components/form/dateTimePicker/DateTimePicker'; const InputTextPage: FC = () => { return ( @@ -103,6 +105,13 @@ const InputTextPage: FC = () => { } component={InputText} /> } component={InputArea} /> } component={TimePicker} /> + } component={DatePicker} showSwitchMode /> + } + component={DateTimePicker} + showSwitchMode + /> ); }; From 8a1ddd9c87599a2616d9df9d59cac71bdbc8eeab Mon Sep 17 00:00:00 2001 From: "GROUPEVSC\\julien_schiano" Date: Fri, 5 Feb 2021 09:04:11 +0100 Subject: [PATCH 2/3] new DatePicker and dateTimePicker with darkmode --- components/kit/components/form/dateTimePicker/DatePicker.tsx | 2 +- .../kit/components/form/dateTimePicker/DateTimePicker.tsx | 2 +- components/kit/components/form/dateTimePicker/TimePicker.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/kit/components/form/dateTimePicker/DatePicker.tsx b/components/kit/components/form/dateTimePicker/DatePicker.tsx index 0ab28fe..8c95a21 100644 --- a/components/kit/components/form/dateTimePicker/DatePicker.tsx +++ b/components/kit/components/form/dateTimePicker/DatePicker.tsx @@ -4,7 +4,7 @@ export const DatePicker = () => { return ( diff --git a/components/kit/components/form/dateTimePicker/DateTimePicker.tsx b/components/kit/components/form/dateTimePicker/DateTimePicker.tsx index e755f0a..9bbec7e 100644 --- a/components/kit/components/form/dateTimePicker/DateTimePicker.tsx +++ b/components/kit/components/form/dateTimePicker/DateTimePicker.tsx @@ -4,7 +4,7 @@ export const DateTimePicker = () => { return ( diff --git a/components/kit/components/form/dateTimePicker/TimePicker.tsx b/components/kit/components/form/dateTimePicker/TimePicker.tsx index f2b34d7..0ba5d24 100644 --- a/components/kit/components/form/dateTimePicker/TimePicker.tsx +++ b/components/kit/components/form/dateTimePicker/TimePicker.tsx @@ -4,7 +4,7 @@ export const TimePicker = () => { return ( From 4728156c45767f6081d77e37d9f7cedd0e61bb78 Mon Sep 17 00:00:00 2001 From: "GROUPEVSC\\julien_schiano" Date: Thu, 18 Feb 2021 18:47:20 +0100 Subject: [PATCH 3/3] update number of Input in Forms --- components/kit/components/form/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/kit/components/form/index.tsx b/components/kit/components/form/index.tsx index 0d901f7..0f9b377 100644 --- a/components/kit/components/form/index.tsx +++ b/components/kit/components/form/index.tsx @@ -5,7 +5,7 @@ const Forms: FC = () => { const formSections = [ { title: 'Inputs', - items: 10, + items: 14, img: 'images/sections/input.png', link: '/components/inputtext', },