oziko-ui-kit 0.0.83 → 0.0.85
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
|
}
|
|
@@ -2814,6 +2831,10 @@ input:checked + .Switch-module_slider__sHGGR::before {
|
|
|
2814
2831
|
width: 100%;
|
|
2815
2832
|
}
|
|
2816
2833
|
|
|
2834
|
+
.ArrayInput-module_inputHeader__YhlBU {
|
|
2835
|
+
padding-left: 0;
|
|
2836
|
+
}
|
|
2837
|
+
|
|
2817
2838
|
.ArrayInput-module_emptyStateText__ZHJbR {
|
|
2818
2839
|
font-size: var(--oziko-icon-size-sm);
|
|
2819
2840
|
}
|
|
@@ -2916,6 +2937,46 @@ input:checked + .Switch-module_slider__sHGGR::before {
|
|
|
2916
2937
|
.Date-module_text__eXWDJ {
|
|
2917
2938
|
color: var(--oziko-color-input-placeholder) !important;
|
|
2918
2939
|
}
|
|
2940
|
+
|
|
2941
|
+
.Date-module_dateInput__hx3cC {
|
|
2942
|
+
height: 36px !important;
|
|
2943
|
+
}
|
|
2944
|
+
|
|
2945
|
+
.Date-module_stringValueWrapper__XM06v {
|
|
2946
|
+
display: flex;
|
|
2947
|
+
align-items: center;
|
|
2948
|
+
width: 100%;
|
|
2949
|
+
}
|
|
2950
|
+
|
|
2951
|
+
.Date-module_iconGroup__W1sPW {
|
|
2952
|
+
display: flex;
|
|
2953
|
+
align-items: center;
|
|
2954
|
+
margin-left: auto;
|
|
2955
|
+
gap: 6px;
|
|
2956
|
+
cursor: pointer;
|
|
2957
|
+
}
|
|
2958
|
+
|
|
2959
|
+
.Date-module_clearIcon__rTC7y {
|
|
2960
|
+
font-size: 16px;
|
|
2961
|
+
user-select: none;
|
|
2962
|
+
cursor: pointer;
|
|
2963
|
+
opacity: 0;
|
|
2964
|
+
transition: opacity var(--oziko-transition-duration) ease;
|
|
2965
|
+
}
|
|
2966
|
+
|
|
2967
|
+
.Date-module_stringValueWrapper__XM06v:hover .Date-module_clearIcon__rTC7y {
|
|
2968
|
+
opacity: 0.7;
|
|
2969
|
+
}
|
|
2970
|
+
|
|
2971
|
+
.Date-module_clearIcon__rTC7y:hover {
|
|
2972
|
+
opacity: 1 !important;
|
|
2973
|
+
}
|
|
2974
|
+
|
|
2975
|
+
.Date-module_stringValue__eJN9C {
|
|
2976
|
+
font-size: 14px;
|
|
2977
|
+
text-transform: capitalize;
|
|
2978
|
+
padding: 2px 8px;
|
|
2979
|
+
}
|
|
2919
2980
|
.Boolean-module_container__RN4yt {
|
|
2920
2981
|
background-color: var(--oziko-color-input-background);
|
|
2921
2982
|
border-radius: var(--oziko-border-radius-md);
|
|
@@ -3494,6 +3555,7 @@ button.font-increment {
|
|
|
3494
3555
|
border-radius: var(--oziko-border-radius-md);
|
|
3495
3556
|
color: var(--oziko-color-input-placeholder);
|
|
3496
3557
|
padding: var(--oziko-padding-md) var(--oziko-padding-lg);
|
|
3558
|
+
height: 36px !important;
|
|
3497
3559
|
}
|
|
3498
3560
|
.Date-module_minimizedDatePicker__ZIsQ7 input {
|
|
3499
3561
|
padding: 0;
|