File tree 4 files changed +21
-15
lines changed
src/Components/Inputs/DatePicker 4 files changed +21
-15
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @programmer_network/yail" ,
3
- "version" : " 1.0.199 " ,
3
+ "version" : " 1.0.200 " ,
4
4
"description" : " Programmer Network's official UI library for React" ,
5
5
"author" : " Aleksandar Grbic - (https://programmer.network)" ,
6
6
"publishConfig" : {
Original file line number Diff line number Diff line change @@ -17,19 +17,21 @@ export const Default = () => {
17
17
const [ date , setDate ] = useState ( new Date ( ) ) ;
18
18
19
19
return (
20
- < DatePicker
21
- name = 'datetime'
22
- value = { date }
23
- showTimeSelect
24
- timeCaption = 'Time'
25
- onChange = { input => {
26
- if ( ! input . datetime ) {
27
- return ;
28
- }
20
+ < div className = 'yl-w-[500px]' >
21
+ < DatePicker
22
+ name = 'datetime'
23
+ value = { date }
24
+ showTimeSelect
25
+ timeCaption = 'Time'
26
+ onChange = { input => {
27
+ if ( ! input . datetime ) {
28
+ return ;
29
+ }
29
30
30
- setDate ( input . datetime ) ;
31
- } }
32
- />
31
+ setDate ( input . datetime ) ;
32
+ } }
33
+ />
34
+ </ div >
33
35
) ;
34
36
} ;
35
37
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ const DatePicker: FC<IDatePickerProps> = props => {
36
36
} ;
37
37
38
38
return (
39
- < div className = 'yl-bg-primary-background-color' >
39
+ < div >
40
40
< InputHeader { ...props } />
41
41
< BaseDatePicker
42
42
selected = { value }
Original file line number Diff line number Diff line change 7
7
@apply yl-outline-none !important ;
8
8
}
9
9
10
+ .react-datepicker-wrapper {
11
+ @apply yl-w-full !important ;
12
+ }
13
+
10
14
/* Main Datepicker Container */
11
15
.react-datepicker {
12
16
@apply yl-select-none yl-border-2 yl-border-primary-text-color/20 yl-bg-primary-background-color yl-font-sans yl-shadow-lg !important ;
@@ -90,7 +94,7 @@ li.react-datepicker__time-list-item {
90
94
91
95
/* Input Styles */
92
96
.react-datepicker__input-container input {
93
- @apply yl-w-full yl-appearance-none yl-rounded-md yl-border-2 yl-border-primary-text-color yl-bg-transparent yl-p-2 yl-text-primary-text-color hover:yl-cursor-pointer hover:yl-border-primary focus:yl-border-primary focus:yl-outline-none focus:yl-ring-transparent !important ;
97
+ @apply yl-w-full yl-min-w-max yl- appearance-none yl-rounded-md yl-border-2 yl-border-primary-text-color yl-bg-transparent yl-p-2 yl-text-primary-text-color hover:yl-cursor-pointer hover:yl-border-primary focus:yl-border-primary focus:yl-outline-none focus:yl-ring-transparent !important ;
94
98
}
95
99
96
100
.react-datepicker__day--disabled {
You can’t perform that action at this time.
0 commit comments