@delightui/components 0.1.94 → 0.1.95
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.
- package/dist/cjs/components/molecules/DatePicker/DatePicker.presenter.d.ts +2 -2
- package/dist/cjs/components/molecules/DatePicker/DatePicker.types.d.ts +2 -1
- package/dist/cjs/components/molecules/Select/Select.presenter.d.ts +2 -2
- package/dist/cjs/components/molecules/Select/Select.types.d.ts +1 -1
- package/dist/cjs/library.css +3 -3
- package/dist/cjs/library.js +1 -1
- package/dist/cjs/library.js.map +1 -1
- package/dist/esm/components/molecules/DatePicker/DatePicker.presenter.d.ts +2 -2
- package/dist/esm/components/molecules/DatePicker/DatePicker.types.d.ts +2 -1
- package/dist/esm/components/molecules/Select/Select.presenter.d.ts +2 -2
- package/dist/esm/components/molecules/Select/Select.types.d.ts +1 -1
- package/dist/esm/library.css +3 -3
- package/dist/esm/library.js +1 -1
- package/dist/esm/library.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ declare const usePresenter: (props: DatePickerProps) => {
|
|
|
12
12
|
customPlugin: import("flatpickr/dist/types/options").Plugin[];
|
|
13
13
|
handleKeyDown: (_selectedDates: Date[], _dateStr: string, instance: Instance, event: KeyboardEvent) => void;
|
|
14
14
|
otherProps: {
|
|
15
|
-
initialValue?:
|
|
15
|
+
initialValue?: import("./DatePicker.types").DatePickerValue | undefined;
|
|
16
16
|
checked?: boolean;
|
|
17
17
|
id?: string;
|
|
18
18
|
minDate?: string | Date;
|
|
@@ -39,6 +39,6 @@ declare const usePresenter: (props: DatePickerProps) => {
|
|
|
39
39
|
dayVariantProps: {
|
|
40
40
|
'component-variant': string;
|
|
41
41
|
};
|
|
42
|
-
value:
|
|
42
|
+
value: import("./DatePicker.types").DatePickerValue | undefined;
|
|
43
43
|
};
|
|
44
44
|
export default usePresenter;
|
|
@@ -2,7 +2,8 @@ import { Plugin } from 'flatpickr/dist/types/options';
|
|
|
2
2
|
import FlatPickr from 'react-flatpickr';
|
|
3
3
|
import { ControlledFormComponentProps } from '../FormField/FormField.types';
|
|
4
4
|
type DatePickerPosition = 'auto' | 'above' | 'below' | 'auto left' | 'auto center' | 'auto right' | 'above left' | 'above center' | 'above right' | 'below left' | 'below center' | 'below right';
|
|
5
|
-
export type
|
|
5
|
+
export type DatePickerValue = string | Date | (string | Date)[];
|
|
6
|
+
export type DatePickerProps = ControlledFormComponentProps<DatePickerValue> & {
|
|
6
7
|
/**
|
|
7
8
|
* Additional class for styling.
|
|
8
9
|
*/
|
|
@@ -8,7 +8,6 @@ declare const usePresenter: (props: SelectProps) => {
|
|
|
8
8
|
placeholder: string | undefined;
|
|
9
9
|
SelectedView: import("react").FC<any> | undefined;
|
|
10
10
|
expandIcon: import("react").ReactNode;
|
|
11
|
-
togglePopover: () => void;
|
|
12
11
|
variantProps: {
|
|
13
12
|
'component-variant': string;
|
|
14
13
|
};
|
|
@@ -211,7 +210,6 @@ declare const usePresenter: (props: SelectProps) => {
|
|
|
211
210
|
onWaitingCapture?: import("react").ReactEventHandler<HTMLElement> | undefined;
|
|
212
211
|
onAuxClick?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
213
212
|
onAuxClickCapture?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
214
|
-
onClick?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
215
213
|
onClickCapture?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
216
214
|
onContextMenu?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
217
215
|
onContextMenuCapture?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
@@ -287,5 +285,7 @@ declare const usePresenter: (props: SelectProps) => {
|
|
|
287
285
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLElement> | undefined;
|
|
288
286
|
open?: boolean;
|
|
289
287
|
};
|
|
288
|
+
onOptionsOpen: () => void;
|
|
289
|
+
onOptionsClose: () => void;
|
|
290
290
|
};
|
|
291
291
|
export default usePresenter;
|
|
@@ -55,7 +55,7 @@ export type SelectStateEnum = 'Default' | 'Error';
|
|
|
55
55
|
/**
|
|
56
56
|
* Props for the SelectView component, defining its visual appearance and behavior.
|
|
57
57
|
*/
|
|
58
|
-
export type SelectViewProps = Omit<HTMLAttributes<HTMLElement>, 'style' | 'children'> & {
|
|
58
|
+
export type SelectViewProps = Omit<HTMLAttributes<HTMLElement>, 'style' | 'children' | 'onClick'> & {
|
|
59
59
|
/**
|
|
60
60
|
* Options to be rendered within the Select component.
|
|
61
61
|
*/
|
package/dist/cjs/library.css
CHANGED
|
@@ -86,6 +86,7 @@
|
|
|
86
86
|
height: auto;
|
|
87
87
|
flex-grow: 1;
|
|
88
88
|
flex-shrink: 0;
|
|
89
|
+
position: relative;
|
|
89
90
|
}
|
|
90
91
|
.image-module_image__FOVdK .image-module_imageContainer__W7aeo {
|
|
91
92
|
display: flex;
|
|
@@ -97,7 +98,6 @@
|
|
|
97
98
|
height: 100%;
|
|
98
99
|
}
|
|
99
100
|
.image-module_image__FOVdK .image-module_aspect__4e2hu {
|
|
100
|
-
position: relative;
|
|
101
101
|
width: 100%;
|
|
102
102
|
overflow: hidden;
|
|
103
103
|
}
|
|
@@ -2871,8 +2871,8 @@ span.flatpickr-weekday {
|
|
|
2871
2871
|
display: flex;
|
|
2872
2872
|
flex-direction: column;
|
|
2873
2873
|
width: 100%;
|
|
2874
|
-
margin-top: var(--spacing-
|
|
2875
|
-
gap: var(--spacing-
|
|
2874
|
+
margin-top: var(--spacing-space-6);
|
|
2875
|
+
gap: var(--spacing-space-6);
|
|
2876
2876
|
}
|
|
2877
2877
|
.custom-time-wrapper .custom-time-label {
|
|
2878
2878
|
width: 100%;
|