oziko-ui-kit 0.0.83 → 0.0.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import type { DatePickerProps as AntDatePickerProps } from "antd";
|
|
2
3
|
export type AntDatePickerSharedProps = Omit<AntDatePickerProps, "value" | "onChange">;
|
|
3
|
-
type DatePickerProps = {
|
|
4
|
-
onChange?: (value: string | string[]) => void;
|
|
4
|
+
export type DatePickerProps = {
|
|
5
|
+
onChange?: (value: string | string[] | null) => void;
|
|
5
6
|
value: Date | string | null | undefined;
|
|
7
|
+
renderLabel?: (label: string) => React.ReactNode;
|
|
6
8
|
} & AntDatePickerSharedProps;
|
|
7
|
-
declare const DatePicker: ({ value, onChange, ...props }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare const DatePicker: ({ value, onChange, renderLabel, ...props }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
10
|
export default DatePicker;
|
package/dist/index.css
CHANGED
|
@@ -1107,6 +1107,23 @@ code {
|
|
|
1107
1107
|
top: 56%;
|
|
1108
1108
|
inset-inline-end: 1;
|
|
1109
1109
|
}
|
|
1110
|
+
|
|
1111
|
+
.DatePicker-module_stringValueWrapper__6UTWs {
|
|
1112
|
+
display: flex;
|
|
1113
|
+
align-items: center;
|
|
1114
|
+
width: 100%;
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
.DatePicker-module_stringValue__BAJKp {
|
|
1118
|
+
font-size: 14px;
|
|
1119
|
+
text-transform: capitalize;
|
|
1120
|
+
padding: 2px 8px;
|
|
1121
|
+
}
|
|
1122
|
+
|
|
1123
|
+
.DatePicker-module_hiddenAntDatePicker__OxApk {
|
|
1124
|
+
visibility: hidden;
|
|
1125
|
+
width: 0px !important;
|
|
1126
|
+
}
|
|
1110
1127
|
.Directory-module_moreIcon__V7kXf {
|
|
1111
1128
|
cursor: pointer;
|
|
1112
1129
|
}
|
|
@@ -2916,6 +2933,46 @@ input:checked + .Switch-module_slider__sHGGR::before {
|
|
|
2916
2933
|
.Date-module_text__eXWDJ {
|
|
2917
2934
|
color: var(--oziko-color-input-placeholder) !important;
|
|
2918
2935
|
}
|
|
2936
|
+
|
|
2937
|
+
.Date-module_dateInput__hx3cC {
|
|
2938
|
+
height: 36px !important;
|
|
2939
|
+
}
|
|
2940
|
+
|
|
2941
|
+
.Date-module_stringValueWrapper__XM06v {
|
|
2942
|
+
display: flex;
|
|
2943
|
+
align-items: center;
|
|
2944
|
+
width: 100%;
|
|
2945
|
+
}
|
|
2946
|
+
|
|
2947
|
+
.Date-module_iconGroup__W1sPW {
|
|
2948
|
+
display: flex;
|
|
2949
|
+
align-items: center;
|
|
2950
|
+
margin-left: auto;
|
|
2951
|
+
gap: 6px;
|
|
2952
|
+
cursor: pointer;
|
|
2953
|
+
}
|
|
2954
|
+
|
|
2955
|
+
.Date-module_clearIcon__rTC7y {
|
|
2956
|
+
font-size: 16px;
|
|
2957
|
+
user-select: none;
|
|
2958
|
+
cursor: pointer;
|
|
2959
|
+
opacity: 0;
|
|
2960
|
+
transition: opacity var(--oziko-transition-duration) ease;
|
|
2961
|
+
}
|
|
2962
|
+
|
|
2963
|
+
.Date-module_stringValueWrapper__XM06v:hover .Date-module_clearIcon__rTC7y {
|
|
2964
|
+
opacity: 0.7;
|
|
2965
|
+
}
|
|
2966
|
+
|
|
2967
|
+
.Date-module_clearIcon__rTC7y:hover {
|
|
2968
|
+
opacity: 1 !important;
|
|
2969
|
+
}
|
|
2970
|
+
|
|
2971
|
+
.Date-module_stringValue__eJN9C {
|
|
2972
|
+
font-size: 14px;
|
|
2973
|
+
text-transform: capitalize;
|
|
2974
|
+
padding: 2px 8px;
|
|
2975
|
+
}
|
|
2919
2976
|
.Boolean-module_container__RN4yt {
|
|
2920
2977
|
background-color: var(--oziko-color-input-background);
|
|
2921
2978
|
border-radius: var(--oziko-border-radius-md);
|
|
@@ -3494,6 +3551,7 @@ button.font-increment {
|
|
|
3494
3551
|
border-radius: var(--oziko-border-radius-md);
|
|
3495
3552
|
color: var(--oziko-color-input-placeholder);
|
|
3496
3553
|
padding: var(--oziko-padding-md) var(--oziko-padding-lg);
|
|
3554
|
+
height: 36px !important;
|
|
3497
3555
|
}
|
|
3498
3556
|
.Date-module_minimizedDatePicker__ZIsQ7 input {
|
|
3499
3557
|
padding: 0;
|