Skip to content

Commit 5ba8015

Browse files
committed
chore: update package.json version to 1.0.200 and enhance DatePicker styling
1 parent 02ed3fd commit 5ba8015

File tree

4 files changed

+21
-15
lines changed

4 files changed

+21
-15
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@programmer_network/yail",
3-
"version": "1.0.199",
3+
"version": "1.0.200",
44
"description": "Programmer Network's official UI library for React",
55
"author": "Aleksandar Grbic - (https://programmer.network)",
66
"publishConfig": {

src/Components/Inputs/DatePicker/DatePicker.stories.tsx

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,21 @@ export const Default = () => {
1717
const [date, setDate] = useState(new Date());
1818

1919
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+
}
2930

30-
setDate(input.datetime);
31-
}}
32-
/>
31+
setDate(input.datetime);
32+
}}
33+
/>
34+
</div>
3335
);
3436
};
3537

src/Components/Inputs/DatePicker/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const DatePicker: FC<IDatePickerProps> = props => {
3636
};
3737

3838
return (
39-
<div className='yl-bg-primary-background-color'>
39+
<div>
4040
<InputHeader {...props} />
4141
<BaseDatePicker
4242
selected={value}

src/Components/Inputs/DatePicker/style.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
@apply yl-outline-none !important;
88
}
99

10+
.react-datepicker-wrapper {
11+
@apply yl-w-full !important;
12+
}
13+
1014
/* Main Datepicker Container */
1115
.react-datepicker {
1216
@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 {
9094

9195
/* Input Styles */
9296
.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;
9498
}
9599

96100
.react-datepicker__day--disabled {

0 commit comments

Comments
 (0)