@jenesei-software/jenesei-kit-react 1.2.2 → 1.2.4
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/build/{area-C2sWYH-e.js → area-BC64nSGj.js} +2 -2
- package/build/{area-C2sWYH-e.js.map → area-BC64nSGj.js.map} +1 -1
- package/build/{area-CD10k19W.cjs → area-C6QOr2Kd.cjs} +7 -7
- package/build/{area-CD10k19W.cjs.map → area-C6QOr2Kd.cjs.map} +1 -1
- package/build/area-scroll.cjs.js +1 -1
- package/build/area-scroll.es.js +1 -1
- package/build/build-info.txt +3 -3
- package/build/{component-CbPhVNw5.js → component-BJ4BlUBV.js} +2 -2
- package/build/{component-CbPhVNw5.js.map → component-BJ4BlUBV.js.map} +1 -1
- package/build/{component-BnYw0FvH.cjs → component-BfsH0boq.cjs} +2 -2
- package/build/{component-BnYw0FvH.cjs.map → component-BfsH0boq.cjs.map} +1 -1
- package/build/{component-9m1Ib3fS.js → component-BtA2Qlbp.js} +2 -2
- package/build/{component-9m1Ib3fS.js.map → component-BtA2Qlbp.js.map} +1 -1
- package/build/{component-C8QrHu0C.js → component-CTz8wF0z.js} +3 -3
- package/build/{component-C8QrHu0C.js.map → component-CTz8wF0z.js.map} +1 -1
- package/build/{component-FwG2ieR3.cjs → component-CV14RCdO.cjs} +2 -2
- package/build/{component-FwG2ieR3.cjs.map → component-CV14RCdO.cjs.map} +1 -1
- package/build/{component-C0atFCun.cjs → component-DBxYbAnr.cjs} +2 -2
- package/build/{component-C0atFCun.cjs.map → component-DBxYbAnr.cjs.map} +1 -1
- package/build/{component-DURhph1i.js → component-DTH1-Npa.js} +3 -3
- package/build/{component-DURhph1i.js.map → component-DTH1-Npa.js.map} +1 -1
- package/build/{component-X4e7zEKk.cjs → component-Dw21Chky.cjs} +2 -2
- package/build/{component-X4e7zEKk.cjs.map → component-Dw21Chky.cjs.map} +1 -1
- package/build/{component-Bovatz78.cjs → component-ODhIlUPq.cjs} +2 -2
- package/build/{component-Bovatz78.cjs.map → component-ODhIlUPq.cjs.map} +1 -1
- package/build/component-button-group.cjs.js +1 -1
- package/build/component-button-group.es.js +1 -1
- package/build/component-button.cjs.js +1 -1
- package/build/component-button.es.js +1 -1
- package/build/component-checkbox-group.cjs.js +1 -1
- package/build/component-checkbox-group.es.js +1 -1
- package/build/component-checkbox.cjs.js +1 -1
- package/build/component-checkbox.es.js +1 -1
- package/build/component-date-picker.cjs.js +1 -1
- package/build/component-date-picker.d.ts +74 -65
- package/build/component-date-picker.es.js +9 -10
- package/build/component-image-button.cjs.js +1 -1
- package/build/component-image-button.es.js +1 -1
- package/build/component-image-select.cjs.js +1 -1
- package/build/component-image-select.es.js +1 -1
- package/build/component-image-slider.cjs.js +1 -1
- package/build/component-image-slider.es.js +1 -1
- package/build/component-input-otp.cjs.js +1 -1
- package/build/component-input-otp.es.js +1 -1
- package/build/component-input.cjs.js +1 -1
- package/build/component-input.d.ts +3 -3
- package/build/component-input.es.js +3 -3
- package/build/component-map.cjs.js +1 -1
- package/build/component-map.es.js +1 -1
- package/build/component-pagination.cjs.js +1 -1
- package/build/component-pagination.es.js +1 -1
- package/build/component-range.cjs.js +1 -1
- package/build/component-range.es.js +1 -1
- package/build/component-select.cjs.js +1 -1
- package/build/component-select.d.ts +6 -6
- package/build/component-select.es.js +1 -1
- package/build/component-textarea.cjs.js +1 -1
- package/build/component-textarea.es.js +1 -1
- package/build/component-toggle.cjs.js +1 -1
- package/build/component-toggle.es.js +1 -1
- package/build/component-tooltip.cjs.js +1 -1
- package/build/component-tooltip.d.ts +1 -0
- package/build/component-tooltip.es.js +1 -1
- package/build/component-typography.cjs.js +1 -1
- package/build/component-typography.d.ts +1 -0
- package/build/component-typography.es.js +1 -1
- package/build/{component--cOriuv7.js → component-zhkRBgS8.js} +45 -3
- package/build/{component--cOriuv7.js.map → component-zhkRBgS8.js.map} +1 -1
- package/build/{component.components-1kRDD3KO.cjs → component.components-9ON8OLUd.cjs} +2 -2
- package/build/{component.components-1kRDD3KO.cjs.map → component.components-9ON8OLUd.cjs.map} +1 -1
- package/build/{component.components-CQ3LLnFl.js → component.components-CnwUBa8n.js} +2 -2
- package/build/{component.components-CQ3LLnFl.js.map → component.components-CnwUBa8n.js.map} +1 -1
- package/build/{component.constants-B1rq1PLe.js → component.constants-Ck-Y1EPF.js} +2 -2
- package/build/{component.constants-B1rq1PLe.js.map → component.constants-Ck-Y1EPF.js.map} +1 -1
- package/build/{component.constants-BLHg7rcI.cjs → component.constants-DD964QJh.cjs} +2 -2
- package/build/{component.constants-BLHg7rcI.cjs.map → component.constants-DD964QJh.cjs.map} +1 -1
- package/build/{component.constants-Gz2mf7IF.cjs → component.constants-DGS-J9Sc.cjs} +2 -2
- package/build/{component.constants-Gz2mf7IF.cjs.map → component.constants-DGS-J9Sc.cjs.map} +1 -1
- package/build/{component.constants-B95xyW0s.js → component.constants-c0DK2OSH.js} +3 -3
- package/build/{component.constants-B95xyW0s.js.map → component.constants-c0DK2OSH.js.map} +1 -1
- package/build/{component.styles-q4ne6jV1.cjs → component.styles-B4reSccT.cjs} +2 -2
- package/build/{component.styles-q4ne6jV1.cjs.map → component.styles-B4reSccT.cjs.map} +1 -1
- package/build/{component.styles-BrGPrrEb.cjs → component.styles-BScmaCvt.cjs} +2 -2
- package/build/{component.styles-BrGPrrEb.cjs.map → component.styles-BScmaCvt.cjs.map} +1 -1
- package/build/{component.styles-Dm_Ov4nM.cjs → component.styles-C5GdZJou.cjs} +24 -24
- package/build/{component.styles-Dm_Ov4nM.cjs.map → component.styles-C5GdZJou.cjs.map} +1 -1
- package/build/{component.styles-BzNkEurr.js → component.styles-CFrk_dpy.js} +5 -5
- package/build/{component.styles-BzNkEurr.js.map → component.styles-CFrk_dpy.js.map} +1 -1
- package/build/{component.styles-CvJK1eif.cjs → component.styles-CGyQHdKu.cjs} +8 -13
- package/build/component.styles-CGyQHdKu.cjs.map +1 -0
- package/build/{component.styles-DqNAGfc9.cjs → component.styles-CzsKP7v-.cjs} +2 -2
- package/build/{component.styles-DqNAGfc9.cjs.map → component.styles-CzsKP7v-.cjs.map} +1 -1
- package/build/{component.styles-vcNQJK0U.cjs → component.styles-D8ZAo-kS.cjs} +2 -2
- package/build/{component.styles-vcNQJK0U.cjs.map → component.styles-D8ZAo-kS.cjs.map} +1 -1
- package/build/{component.styles-DjLSmx3e.cjs → component.styles-DLbbGi9i.cjs} +2 -2
- package/build/{component.styles-DjLSmx3e.cjs.map → component.styles-DLbbGi9i.cjs.map} +1 -1
- package/build/{component.styles-DKG-fvog.js → component.styles-DS53SD15.js} +4 -4
- package/build/{component.styles-DKG-fvog.js.map → component.styles-DS53SD15.js.map} +1 -1
- package/build/{component.styles-DMBvhmz6.js → component.styles-DjJOwUeA.js} +3 -3
- package/build/{component.styles-DMBvhmz6.js.map → component.styles-DjJOwUeA.js.map} +1 -1
- package/build/{component.styles-DqTkSP8L.js → component.styles-DsnwGPvj.js} +16 -21
- package/build/component.styles-DsnwGPvj.js.map +1 -0
- package/build/{component.styles-DhI3n-dL.js → component.styles-DxQx6LQO.js} +3 -3
- package/build/{component.styles-DhI3n-dL.js.map → component.styles-DxQx6LQO.js.map} +1 -1
- package/build/{component.styles-CccZrbSA.js → component.styles-N7ZFXn4z.js} +2 -2
- package/build/{component.styles-CccZrbSA.js.map → component.styles-N7ZFXn4z.js.map} +1 -1
- package/build/{component.styles-DuIrUV9k.js → component.styles-UIEZecbT.js} +2 -2
- package/build/{component.styles-DuIrUV9k.js.map → component.styles-UIEZecbT.js.map} +1 -1
- package/build/{component.styles-CRWn1pVi.js → component.styles-WqYNZfbs.js} +3 -3
- package/build/{component.styles-CRWn1pVi.js.map → component.styles-WqYNZfbs.js.map} +1 -1
- package/build/{component.styles-Dt_CUijB.js → component.styles-hc14mwUo.js} +6 -7
- package/build/{component.styles-Dt_CUijB.js.map → component.styles-hc14mwUo.js.map} +1 -1
- package/build/{component.styles-DwdN7mQq.cjs → component.styles-qRQ8i8W6.cjs} +2 -2
- package/build/{component.styles-DwdN7mQq.cjs.map → component.styles-qRQ8i8W6.cjs.map} +1 -1
- package/build/{component.styles-Bz2vyHqK.cjs → component.styles-sTbPcfTb.cjs} +2 -2
- package/build/{component.styles-Bz2vyHqK.cjs.map → component.styles-sTbPcfTb.cjs.map} +1 -1
- package/build/component.types-A04vFOxU.cjs +164 -0
- package/build/component.types-A04vFOxU.cjs.map +1 -0
- package/build/component.types-CqvwcIsz.js +843 -0
- package/build/component.types-CqvwcIsz.js.map +1 -0
- package/build/context-app.cjs.js +1 -1
- package/build/context-app.d.ts +2 -2
- package/build/context-app.es.js +1 -1
- package/build/context-sonner.cjs.js +1 -1
- package/build/context-sonner.es.js +1 -1
- package/build/{context.constants-BAz35AJw.js → context.constants-B9I-yc9Q.js} +3 -3
- package/build/{context.constants-BAz35AJw.js.map → context.constants-B9I-yc9Q.js.map} +1 -1
- package/build/{context.constants-fwK8ogSf.cjs → context.constants-DkMk-pc7.cjs} +2 -2
- package/build/{context.constants-fwK8ogSf.cjs.map → context.constants-DkMk-pc7.cjs.map} +1 -1
- package/build/{context.hooks-Bs1dD25S.js → context.hooks-BFZtc7kP.js} +12 -12
- package/build/context.hooks-BFZtc7kP.js.map +1 -0
- package/build/{context.hooks-KAyS_7Pj.cjs → context.hooks-BfETPRDy.cjs} +23 -23
- package/build/context.hooks-BfETPRDy.cjs.map +1 -0
- package/build/index.cjs.js +1 -1
- package/build/index.d.ts +85 -63
- package/build/index.es.js +34 -35
- package/build/{style-DjCgiI7l.js → style-Dca2udON.js} +2 -2
- package/build/{style-DjCgiI7l.js.map → style-Dca2udON.js.map} +1 -1
- package/build/{style-eIuUYu9x.cjs → style-DmwoOdFB.cjs} +2 -2
- package/build/{style-eIuUYu9x.cjs.map → style-DmwoOdFB.cjs.map} +1 -1
- package/build/style-error.cjs.js +1 -1
- package/build/style-error.es.js +1 -1
- package/build/{use-BnaBipTR.cjs → use-Deto6eH3.cjs} +2 -2
- package/build/{use-BnaBipTR.cjs.map → use-Deto6eH3.cjs.map} +1 -1
- package/build/{use-B6rT81uF.js → use-JiiFbVer.js} +3 -3
- package/build/{use-B6rT81uF.js.map → use-JiiFbVer.js.map} +1 -1
- package/package.json +1 -1
- package/build/component.styles-CvJK1eif.cjs.map +0 -1
- package/build/component.styles-DCDOKa6e.js +0 -793
- package/build/component.styles-DCDOKa6e.js.map +0 -1
- package/build/component.styles-DTC9tjQX.cjs +0 -165
- package/build/component.styles-DTC9tjQX.cjs.map +0 -1
- package/build/component.styles-DqTkSP8L.js.map +0 -1
- package/build/context.hooks-Bs1dD25S.js.map +0 -1
- package/build/context.hooks-KAyS_7Pj.cjs.map +0 -1
|
@@ -2,7 +2,6 @@ import { AddDollarSign as AddDollarSign_2 } from '../..';
|
|
|
2
2
|
import { ButtonHTMLAttributes } from 'react';
|
|
3
3
|
import { ClipboardEventHandler } from 'react';
|
|
4
4
|
import { Component } from 'react';
|
|
5
|
-
import { ComponentType } from 'react';
|
|
6
5
|
import { CSSObject } from 'styled-components';
|
|
7
6
|
import { DateDayProps as DateDayProps_2 } from './component.types';
|
|
8
7
|
import { DatePickerProps as DatePickerProps_2 } from './component.types';
|
|
@@ -15,15 +14,12 @@ import { HTMLAttributes } from 'react';
|
|
|
15
14
|
import { HTMLInputAutoCompleteAttribute } from 'react';
|
|
16
15
|
import { HTMLInputTypeAttribute } from 'react';
|
|
17
16
|
import { HTMLMotionProps } from 'framer-motion';
|
|
18
|
-
import { InputAttributes } from 'react-number-format';
|
|
19
17
|
import { InputStandardProps as InputStandardProps_2 } from '../input';
|
|
20
|
-
import { InternalNumberFormatBase } from 'react-number-format/types/types';
|
|
21
18
|
import { IStyledComponentBase } from 'styled-components/dist/types';
|
|
22
19
|
import { JSX } from 'react/jsx-runtime';
|
|
23
20
|
import { KeyboardEventHandler } from 'react';
|
|
24
21
|
import { NumberFormatValues } from 'react-number-format';
|
|
25
22
|
import { NumericFormatProps } from 'react-number-format';
|
|
26
|
-
import { PatternFormat } from 'react-number-format';
|
|
27
23
|
import { PatternFormatProps } from 'react-number-format';
|
|
28
24
|
import { PropsWithChildren } from 'react';
|
|
29
25
|
import { ReactNode } from 'react';
|
|
@@ -32,6 +28,21 @@ import { RefAttributes } from 'react';
|
|
|
32
28
|
import { RuleSet } from 'styled-components';
|
|
33
29
|
import { Substitute } from 'styled-components/dist/types';
|
|
34
30
|
|
|
31
|
+
export declare const addDateDropdownDaySize: RuleSet<AddDollarSign_2<Pick<DatePickerProps_2, "size" | "genre"> & Pick<DateDayProps_2, "isToday" | "isWeekend"> & {
|
|
32
|
+
row: number;
|
|
33
|
+
column: number;
|
|
34
|
+
isChoice?: boolean;
|
|
35
|
+
isCurrentMonth?: boolean;
|
|
36
|
+
isDisabled?: boolean;
|
|
37
|
+
}>>;
|
|
38
|
+
|
|
39
|
+
/****************************************** Size *************************************************/
|
|
40
|
+
export declare const addDateInputWrapperSize: RuleSet<AddDollarSign_2<Pick<DatePickerProps_2, "size" | "error" | "genre" | "isBold"> & {
|
|
41
|
+
isOpen?: boolean;
|
|
42
|
+
isActive?: boolean;
|
|
43
|
+
isHaveValue?: boolean;
|
|
44
|
+
}>>;
|
|
45
|
+
|
|
35
46
|
declare type AddDollarSign<T> = {
|
|
36
47
|
[K in keyof T as `$${string & K}`]: T[K];
|
|
37
48
|
};
|
|
@@ -46,6 +57,32 @@ declare interface addSXProps {
|
|
|
46
57
|
|
|
47
58
|
declare type BaseInputProps = CommonInputProps & (ControlledValue | UncontrolledValue);
|
|
48
59
|
|
|
60
|
+
export declare type CommonDatePickerProps = addErrorProps & addSXProps & {
|
|
61
|
+
genre: TDateGenre;
|
|
62
|
+
id?: string;
|
|
63
|
+
isDisabled?: boolean;
|
|
64
|
+
isBold?: boolean;
|
|
65
|
+
isMinWidth?: boolean;
|
|
66
|
+
isInputEffect?: InputStandardProps['isInputEffect'];
|
|
67
|
+
isOnClickClose?: boolean;
|
|
68
|
+
labelPlaceholder?: string;
|
|
69
|
+
locale: {
|
|
70
|
+
months: SelectMonthProps['monthsLocale'];
|
|
71
|
+
weeks: WeekItem[];
|
|
72
|
+
inputs: InputItem;
|
|
73
|
+
};
|
|
74
|
+
notValidDate?: Omit<ErrorMessageProps, 'size' | 'isError'>;
|
|
75
|
+
mode?: DatePickerMode;
|
|
76
|
+
name?: string;
|
|
77
|
+
onBlur?: () => void;
|
|
78
|
+
onChange: (timestamp: number | null) => void;
|
|
79
|
+
onFocus?: () => void;
|
|
80
|
+
size: IThemeSize;
|
|
81
|
+
dateMax?: number;
|
|
82
|
+
dateMin?: number;
|
|
83
|
+
dateDefault: number;
|
|
84
|
+
};
|
|
85
|
+
|
|
49
86
|
declare type CommonInputProps = addErrorProps & addSXProps & {
|
|
50
87
|
ref?: Ref<HTMLInputElement | null>;
|
|
51
88
|
name?: string;
|
|
@@ -84,6 +121,11 @@ declare type ControlledValue = {
|
|
|
84
121
|
defaultValue?: never;
|
|
85
122
|
};
|
|
86
123
|
|
|
124
|
+
declare type ControlledValue_2 = {
|
|
125
|
+
value: number | null | undefined;
|
|
126
|
+
defaultValue?: never;
|
|
127
|
+
};
|
|
128
|
+
|
|
87
129
|
export declare interface DateDayProps {
|
|
88
130
|
dayOfWeek: number;
|
|
89
131
|
isCurrentMonth: boolean;
|
|
@@ -101,6 +143,7 @@ row: number;
|
|
|
101
143
|
column: number;
|
|
102
144
|
isChoice?: boolean;
|
|
103
145
|
isCurrentMonth?: boolean;
|
|
146
|
+
isDisabled?: boolean;
|
|
104
147
|
}>>> & string;
|
|
105
148
|
|
|
106
149
|
export declare const DateDropdownDayOfWeek: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, AddDollarSign_2<Pick<DatePickerProps_2, "size" | "genre"> & Pick<DateDayProps_2, "isToday" | "isWeekend"> & {
|
|
@@ -108,6 +151,7 @@ row: number;
|
|
|
108
151
|
column: number;
|
|
109
152
|
isChoice?: boolean;
|
|
110
153
|
isCurrentMonth?: boolean;
|
|
154
|
+
isDisabled?: boolean;
|
|
111
155
|
}>>> & string;
|
|
112
156
|
|
|
113
157
|
export declare type DateDropdownDayProps = AddDollarSign<Pick<DatePickerProps, 'genre' | 'size'> & Pick<DateDayProps, 'isToday' | 'isWeekend'> & {
|
|
@@ -115,80 +159,48 @@ export declare type DateDropdownDayProps = AddDollarSign<Pick<DatePickerProps, '
|
|
|
115
159
|
column: number;
|
|
116
160
|
isChoice?: boolean;
|
|
117
161
|
isCurrentMonth?: boolean;
|
|
162
|
+
isDisabled?: boolean;
|
|
118
163
|
}>;
|
|
119
164
|
|
|
120
165
|
export declare const DateDropdownDays: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
121
166
|
$rows: number;
|
|
122
167
|
}>> & string;
|
|
123
168
|
|
|
124
|
-
export declare const DateDropdownDaySize: RuleSet<AddDollarSign_2<Pick<DatePickerProps_2, "size" | "genre"> & Pick<DateDayProps_2, "isToday" | "isWeekend"> & {
|
|
125
|
-
row: number;
|
|
126
|
-
column: number;
|
|
127
|
-
isChoice?: boolean;
|
|
128
|
-
isCurrentMonth?: boolean;
|
|
129
|
-
}>>;
|
|
130
|
-
|
|
131
|
-
export declare const DateDropdownDaySizeConstructor: (props: IThemeSizePropertyDefault) => RuleSet<object>;
|
|
132
|
-
|
|
133
169
|
export declare const DateDropdownList: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, AddDollarSign_2<Pick<DatePickerProps_2, "isInputEffect"> & Pick<DatePickerProps_2, "size" | "genre">>>> & string;
|
|
134
170
|
|
|
135
171
|
export declare const DateDropdownListParent: IStyledComponentBase<"web", Substitute<Omit<HTMLMotionProps<"div">, "ref"> & RefAttributes<HTMLDivElement>, AddDollarSign_2<Pick<InputStandardProps_2, "size" | "genre">>>> & string & Omit<ForwardRefComponent<HTMLDivElement, HTMLMotionProps<"div">>, keyof Component<any, {}, any>>;
|
|
136
172
|
|
|
137
173
|
export declare type DateDropdownListProps = AddDollarSign<Pick<DatePickerProps, 'isInputEffect'> & Pick<DatePickerProps, 'genre' | 'size'>>;
|
|
138
174
|
|
|
139
|
-
export declare const DateInput: IStyledComponentBase<"web", Substitute<
|
|
140
|
-
format: string;
|
|
141
|
-
mask?: string | string[];
|
|
142
|
-
allowEmptyFormatting?: boolean;
|
|
143
|
-
patternChar?: string;
|
|
144
|
-
} & Omit<InputAttributes, never> & Omit<unknown, "mask" | "value" | "ref" | "defaultValue" | "inputMode" | "onFocus" | "onBlur" | "onChange" | "onKeyDown" | "onMouseUp" | "type" | "format" | "displayType" | "renderText" | "getInputRef" | "valueIsNumericString" | "onValueChange" | "isAllowed" | "allowEmptyFormatting" | "patternChar"> & {
|
|
145
|
-
customInput?: ComponentType<unknown> | undefined;
|
|
146
|
-
}, AddDollarSign_2<Pick<DatePickerProps_2, "size" | "error" | "genre"> & {
|
|
175
|
+
export declare const DateInput: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, AddDollarSign_2<Pick<DatePickerProps_2, "size" | "error" | "genre" | "isBold"> & {
|
|
147
176
|
isOpen?: boolean;
|
|
148
|
-
|
|
177
|
+
isActive?: boolean;
|
|
178
|
+
isHaveValue?: boolean;
|
|
179
|
+
}>>> & string;
|
|
149
180
|
|
|
150
|
-
export declare type DateInputProps = AddDollarSign<Pick<DatePickerProps, 'error' | 'genre' | 'size'> & {
|
|
181
|
+
export declare type DateInputProps = AddDollarSign<Pick<DatePickerProps, 'error' | 'genre' | 'size' | 'isBold'> & {
|
|
151
182
|
isOpen?: boolean;
|
|
183
|
+
isActive?: boolean;
|
|
184
|
+
isHaveValue?: boolean;
|
|
152
185
|
}>;
|
|
153
186
|
|
|
154
|
-
export declare const DateInputWrapper: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, AddDollarSign_2<Pick<DatePickerProps_2, "size" | "error" | "genre"> & {
|
|
187
|
+
export declare const DateInputWrapper: IStyledComponentBase<"web", Substitute<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, AddDollarSign_2<Pick<DatePickerProps_2, "size" | "error" | "genre" | "isBold"> & {
|
|
155
188
|
isOpen?: boolean;
|
|
189
|
+
isActive?: boolean;
|
|
190
|
+
isHaveValue?: boolean;
|
|
156
191
|
}>>> & string;
|
|
157
192
|
|
|
158
|
-
/****************************************** Size *************************************************/
|
|
159
|
-
export declare const DateInputWrapperSize: RuleSet<AddDollarSign_2<Pick<DatePickerProps_2, "size" | "error" | "genre"> & {
|
|
160
|
-
isOpen?: boolean;
|
|
161
|
-
}>>;
|
|
162
|
-
|
|
163
|
-
export declare const DateInputWrapperSizeConstructor: (props: IThemeSizePropertyDefault) => RuleSet<object>;
|
|
164
|
-
|
|
165
193
|
export declare const DatePicker: (props: DatePickerProps) => JSX.Element;
|
|
166
194
|
|
|
167
|
-
export declare type DatePickerMode =
|
|
195
|
+
export declare type DatePickerMode = DatePickerVariant[];
|
|
168
196
|
|
|
169
|
-
export declare type DatePickerProps =
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
isOnClickClose?: boolean;
|
|
177
|
-
labelPlaceholder?: string;
|
|
178
|
-
locale: {
|
|
179
|
-
months: SelectMonthProps['monthsLocale'];
|
|
180
|
-
weeks: WeekItem[];
|
|
181
|
-
inputs: InputItem;
|
|
182
|
-
};
|
|
183
|
-
mode?: DatePickerMode;
|
|
184
|
-
name?: string;
|
|
185
|
-
onBlur?: () => void;
|
|
186
|
-
onChange: (timestamp: number | null) => void;
|
|
187
|
-
onFocus?: () => void;
|
|
188
|
-
size: IThemeSize;
|
|
189
|
-
startDate?: number;
|
|
190
|
-
value: number | null;
|
|
191
|
-
};
|
|
197
|
+
export declare type DatePickerProps = CommonDatePickerProps & (ControlledValue_2 | UncontrolledValue_2);
|
|
198
|
+
|
|
199
|
+
export declare enum DatePickerVariant {
|
|
200
|
+
DD = "DD",
|
|
201
|
+
MM = "MM",
|
|
202
|
+
YYYY = "YYYY"
|
|
203
|
+
}
|
|
192
204
|
|
|
193
205
|
export declare type DateStyledListProps = AddDollarSign<Pick<InputStandardProps, 'genre' | 'size'>>;
|
|
194
206
|
|
|
@@ -331,14 +343,6 @@ declare interface IThemeGenreTypeSelect {
|
|
|
331
343
|
|
|
332
344
|
declare type IThemeSize = 'large' | 'largeMedium' | 'medium' | 'mediumSmall' | 'small';
|
|
333
345
|
|
|
334
|
-
declare interface IThemeSizePropertyDefault {
|
|
335
|
-
font: number;
|
|
336
|
-
height: number;
|
|
337
|
-
heightIcon: number;
|
|
338
|
-
padding: number;
|
|
339
|
-
radius: number;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
346
|
export declare type MonthItem = {
|
|
343
347
|
localeLong: string;
|
|
344
348
|
localeShort: string;
|
|
@@ -346,8 +350,8 @@ export declare type MonthItem = {
|
|
|
346
350
|
};
|
|
347
351
|
|
|
348
352
|
declare type SelectMonthProps = Omit<SelectProps<ISelectItem>, 'option' | 'value' | 'onChange'> & {
|
|
349
|
-
|
|
350
|
-
|
|
353
|
+
dateMin?: number;
|
|
354
|
+
dateMax?: number;
|
|
351
355
|
value: number | null;
|
|
352
356
|
isShortLabel?: boolean;
|
|
353
357
|
onChange: (value: number | null) => void;
|
|
@@ -429,6 +433,11 @@ declare type UncontrolledValue = {
|
|
|
429
433
|
defaultValue: string | number | null | undefined;
|
|
430
434
|
};
|
|
431
435
|
|
|
436
|
+
declare type UncontrolledValue_2 = {
|
|
437
|
+
defaultValue: number | null | undefined;
|
|
438
|
+
value?: never;
|
|
439
|
+
};
|
|
440
|
+
|
|
432
441
|
export declare type WeekItem = {
|
|
433
442
|
localeLong: string;
|
|
434
443
|
localeShort: string;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f, g, d, c, b, h, j, D, k, a, e, i } from "./component.types-CqvwcIsz.js";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
e as DateDropdownDaySize,
|
|
6
|
-
f as DateDropdownDaySizeConstructor,
|
|
3
|
+
f as DateDropdownDay,
|
|
4
|
+
g as DateDropdownDayOfWeek,
|
|
7
5
|
d as DateDropdownDays,
|
|
8
6
|
c as DateDropdownList,
|
|
9
7
|
b as DateDropdownListParent,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
j as DateInputWrapperSize,
|
|
13
|
-
k as DateInputWrapperSizeConstructor,
|
|
8
|
+
h as DateInput,
|
|
9
|
+
j as DateInputWrapper,
|
|
14
10
|
D as DatePicker,
|
|
15
|
-
|
|
11
|
+
k as DatePickerVariant,
|
|
12
|
+
a as DateWrapper,
|
|
13
|
+
e as addDateDropdownDaySize,
|
|
14
|
+
i as addDateInputWrapperSize
|
|
16
15
|
};
|
|
17
16
|
//# sourceMappingURL=component-date-picker.es.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./component-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./component-ODhIlUPq.cjs");exports.ImageButton=e.ImageButton;
|
|
2
2
|
//# sourceMappingURL=component-image-button.cjs.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./component.styles-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./component.styles-BScmaCvt.cjs");exports.ImageSelect=e.ImageSelect,exports.ImageSelectListSize=e.ImageSelectListSize,exports.ImageSelectListSizeConstructor=e.ImageSelectListSizeConstructor,exports.ImageSelectListWrapper=e.ImageSelectListWrapper,exports.ImageSelectSize=e.ImageSelectSize,exports.ImageSelectSizeConstructor=e.ImageSelectSizeConstructor,exports.ImageSelectWrapper=e.ImageSelectWrapper;
|
|
2
2
|
//# sourceMappingURL=component-image-select.cjs.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./component.constants-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./component.constants-DGS-J9Sc.cjs");exports.IMAGES=e.IMAGES,exports.ImageSlider=e.ImageSlider,exports.SliderDot=e.SliderDot,exports.SliderImage=e.SliderImage;
|
|
2
2
|
//# sourceMappingURL=component-image-slider.cjs.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./component.styles-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./component.styles-CzsKP7v-.cjs");exports.InputOTP=t.InputOTP,exports.InputOTPSize=t.InputOTPSize,exports.InputOTPSizeConstructor=t.InputOTPSizeConstructor,exports.InputOTPWrapper=t.InputOTPWrapper;
|
|
2
2
|
//# sourceMappingURL=component-input-otp.cjs.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./component-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./component-CV14RCdO.cjs"),e=require("./component.styles-C5GdZJou.cjs");exports.Input=t.Input,exports.formatPhoneNumber=t.formatPhoneNumber,exports.InputPostfixChildren=e.InputPostfixChildren,exports.InputPrefixChildren=e.InputPrefixChildren,exports.InputSize=e.InputSize,exports.InputSizeConstructor=e.InputSizeConstructor,exports.StyledInput=e.StyledInput,exports.StyledInputCSS=e.StyledInputCSS,exports.StyledInputNumeric=e.StyledInputNumeric,exports.StyledInputPattern=e.StyledInputPattern,exports.StyledInputWrapper=e.StyledInputWrapper,exports.StyledMotionInput=e.StyledMotionInput,exports.addInputIsInputEffect=e.addInputIsInputEffect,exports.addInputPlaceholder=e.addInputPlaceholder,exports.addInputPlaceholderNiceNumber=e.addInputPlaceholderNiceNumber;
|
|
2
2
|
//# sourceMappingURL=component-input.cjs.js.map
|
|
@@ -38,6 +38,9 @@ declare interface addErrorProps {
|
|
|
38
38
|
error?: ErrorMessageProps;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
+
/****************************************** is isInputEffect *************************************************/
|
|
42
|
+
export declare const addInputIsInputEffect: RuleSet<Pick<AddDollarSign<Pick<InputProps_2, "size" | "sx" | "isDisabled" | "error" | "genre" | "isLoading" | "isCenter" | "isNotShowHoverStyle" | "isBold" | "isInputEffect" | "postfixChildren" | "prefixChildren" | "isNiceNumber">>, "$isInputEffect">>;
|
|
43
|
+
|
|
41
44
|
/****************************************** Placeholder *************************************************/
|
|
42
45
|
export declare const addInputPlaceholder: RuleSet<AddDollarSign<Pick<InputProps_2, "size" | "sx" | "isDisabled" | "error" | "genre" | "isLoading" | "isCenter" | "isNotShowHoverStyle" | "isBold" | "isInputEffect" | "postfixChildren" | "prefixChildren" | "isNiceNumber">>>;
|
|
43
46
|
|
|
@@ -108,9 +111,6 @@ export declare interface InputChildrenProps extends PropsWithChildren {
|
|
|
108
111
|
width: string;
|
|
109
112
|
}
|
|
110
113
|
|
|
111
|
-
/****************************************** is isInputEffect *************************************************/
|
|
112
|
-
export declare const InputIsInputEffect: RuleSet<Pick<AddDollarSign<Pick<InputProps_2, "size" | "sx" | "isDisabled" | "error" | "genre" | "isLoading" | "isCenter" | "isNotShowHoverStyle" | "isBold" | "isInputEffect" | "postfixChildren" | "prefixChildren" | "isNiceNumber">>, "$isInputEffect">>;
|
|
113
|
-
|
|
114
114
|
export declare type InputNumericProps = BaseInputProps & {
|
|
115
115
|
variety: 'numeric';
|
|
116
116
|
onChange?: (value: NumberFormatValues) => void;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { I, f } from "./component-
|
|
2
|
-
import {
|
|
1
|
+
import { I, f } from "./component-CTz8wF0z.js";
|
|
2
|
+
import { k, j, I as I2, c, f as f2, e, i, h, S, g, d, a, b } from "./component.styles-hc14mwUo.js";
|
|
3
3
|
export {
|
|
4
4
|
I as Input,
|
|
5
|
-
d as InputIsInputEffect,
|
|
6
5
|
k as InputPostfixChildren,
|
|
7
6
|
j as InputPrefixChildren,
|
|
8
7
|
I2 as InputSize,
|
|
@@ -13,6 +12,7 @@ export {
|
|
|
13
12
|
h as StyledInputPattern,
|
|
14
13
|
S as StyledInputWrapper,
|
|
15
14
|
g as StyledMotionInput,
|
|
15
|
+
d as addInputIsInputEffect,
|
|
16
16
|
a as addInputPlaceholder,
|
|
17
17
|
b as addInputPlaceholderNiceNumber,
|
|
18
18
|
f as formatPhoneNumber
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./component.components-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./component.components-9ON8OLUd.cjs");exports.CustomZoomControl=t.CustomZoomControl,exports.DEFAULT_MAP_CENTER=t.DEFAULT_MAP_CENTER,exports.DEFAULT_MAP_MAX_ZOOM=t.DEFAULT_MAP_MAX_ZOOM,exports.DEFAULT_MAP_MIN_ZOOM=t.DEFAULT_MAP_MIN_ZOOM,exports.DEFAULT_MAP_THEME=t.DEFAULT_MAP_THEME,exports.DEFAULT_MAP_ZOOM=t.DEFAULT_MAP_ZOOM,exports.Map=t.Map,exports.MapDot=t.MapDot,exports.MapWrapper=t.MapWrapper,exports.MarkerCluster=t.MarkerCluster,exports.UpdateMapSettings=t.UpdateMapSettings,exports.createClusterIcon=t.createClusterIcon,exports.customDefaultIcon=t.customDefaultIcon,exports.customTextIcon=t.customTextIcon;
|
|
2
2
|
//# sourceMappingURL=component-map.cjs.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./component.constants-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./component.constants-DD964QJh.cjs");exports.DEFAULT_COMPONENT_PAGINATION_GAP=t.DEFAULT_COMPONENT_PAGINATION_GAP,exports.Pagination=t.Pagination;
|
|
2
2
|
//# sourceMappingURL=component-pagination.cjs.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./component.styles-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./component.styles-DLbbGi9i.cjs");exports.Range=e.Range,exports.RangeThumb=e.RangeThumb,exports.RangeTrack=e.RangeTrack,exports.RangeWrapper=e.RangeWrapper;
|
|
2
2
|
//# sourceMappingURL=component-range.cjs.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./component.styles-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./component.styles-CGyQHdKu.cjs");exports.ButtonList=e.ButtonList,exports.ContainerDropdownListOption=e.ContainerDropdownListOption,exports.ContainerSelectListOption=e.ContainerSelectListOption,exports.DropdownList=e.DropdownList,exports.DropdownListOption=e.DropdownListOption,exports.DropdownListOptionIcon=e.DropdownListOptionIcon,exports.DropdownListParent=e.DropdownListParent,exports.Select=e.Select,exports.SelectLanguage=e.SelectLanguage,exports.SelectList=e.SelectList,exports.SelectListOption=e.SelectListOption,exports.SelectMapTheme=e.SelectMapTheme,exports.SelectMonth=e.SelectMonth,exports.SelectMonths=e.SelectMonths,exports.SelectTextArea=e.SelectTextArea,exports.SelectWrapper=e.SelectWrapper,exports.SelectYear=e.SelectYear;
|
|
2
2
|
//# sourceMappingURL=component-select.cjs.js.map
|
|
@@ -199,8 +199,8 @@ export declare type SelectMapThemeProps = Omit<SelectProps<ISelectItem>, 'option
|
|
|
199
199
|
export declare const SelectMonth: FC<SelectMonthProps>;
|
|
200
200
|
|
|
201
201
|
export declare type SelectMonthProps = Omit<SelectProps<ISelectItem>, 'option' | 'value' | 'onChange'> & {
|
|
202
|
-
|
|
203
|
-
|
|
202
|
+
dateMin?: number;
|
|
203
|
+
dateMax?: number;
|
|
204
204
|
value: number | null;
|
|
205
205
|
isShortLabel?: boolean;
|
|
206
206
|
onChange: (value: number | null) => void;
|
|
@@ -210,8 +210,8 @@ export declare type SelectMonthProps = Omit<SelectProps<ISelectItem>, 'option' |
|
|
|
210
210
|
export declare const SelectMonths: FC<SelectMonthsProps>;
|
|
211
211
|
|
|
212
212
|
export declare type SelectMonthsProps = Omit<SelectProps<ISelectItem>, 'option' | 'value' | 'onChange'> & {
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
dateMin?: number;
|
|
214
|
+
dateMax?: number;
|
|
215
215
|
value: number[];
|
|
216
216
|
isShortLabel?: boolean;
|
|
217
217
|
onChange: (value: number[]) => void;
|
|
@@ -281,8 +281,8 @@ export declare type SelectWrapperProps = AddDollarSign_2<Pick<SelectProps<ISelec
|
|
|
281
281
|
export declare const SelectYear: FC<SelectYearProps>;
|
|
282
282
|
|
|
283
283
|
export declare type SelectYearProps = Omit<SelectMonthProps, 'monthsLocale'> & {
|
|
284
|
-
|
|
285
|
-
|
|
284
|
+
dateMin?: number;
|
|
285
|
+
dateMax?: number;
|
|
286
286
|
sortOrder?: 'asc' | 'desc';
|
|
287
287
|
};
|
|
288
288
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./component.styles-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./component.styles-qRQ8i8W6.cjs");exports.StyledTextArea=e.StyledTextArea,exports.TextArea=e.TextArea,exports.TextAreaWrapper=e.TextAreaWrapper,exports.addTextArea=e.addTextArea;
|
|
2
2
|
//# sourceMappingURL=component-textarea.cjs.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./component.styles-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./component.styles-D8ZAo-kS.cjs");exports.Toggle=e.Toggle,exports.ToggleCenter=e.ToggleCenter,exports.ToggleWrapper=e.ToggleWrapper;
|
|
2
2
|
//# sourceMappingURL=component-toggle.cjs.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./component-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./component-BfsH0boq.cjs");exports.DEFAULT_TOOLTIP_OFFSET_FALLBACK=o.DEFAULT_TOOLTIP_OFFSET_FALLBACK,exports.DEFAULT_TOOLTIP_PLACEMENT_FALLBACK=o.DEFAULT_TOOLTIP_PLACEMENT_FALLBACK,exports.Tooltip=o.Tooltip,exports.TooltipBox=o.TooltipBox,exports.TooltipContainer=o.TooltipContainer,exports.TooltipContent=o.TooltipContent,exports.addTooltipBoxSize=o.addTooltipBoxSize,exports.addTooltipBoxSizeConstructor=o.addTooltipBoxSizeConstructor;
|
|
2
2
|
//# sourceMappingURL=component-tooltip.cjs.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./component-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./component-BfsH0boq.cjs");exports.Title=o.Title,exports.Typography=o.Typography,exports.TypographyLink=o.TypographyLink,exports.TypographyTooltip=o.TypographyTooltip,exports.addSXTypography=o.addSXTypography,exports.getFontSizeStyles=o.getFontSizeStyles;
|
|
2
2
|
//# sourceMappingURL=component-typography.cjs.js.map
|
|
@@ -2084,7 +2084,7 @@ const Popover = (props) => {
|
|
|
2084
2084
|
);
|
|
2085
2085
|
};
|
|
2086
2086
|
const usePopover = (props) => {
|
|
2087
|
-
const { onFocus, onBlur } = props;
|
|
2087
|
+
const { onFocus, onBlur, onBlurReference } = props;
|
|
2088
2088
|
const [isOpen, setIsOpen] = useState(false);
|
|
2089
2089
|
const [minWidth, setMinWidth] = useState(void 0);
|
|
2090
2090
|
const [wasEverOpen, setWasEverOpen] = useState(false);
|
|
@@ -2169,7 +2169,15 @@ const usePopover = (props) => {
|
|
|
2169
2169
|
clearTimeout(hoverCloseTimeout.current);
|
|
2170
2170
|
}
|
|
2171
2171
|
};
|
|
2172
|
-
}, [
|
|
2172
|
+
}, [
|
|
2173
|
+
isOpen,
|
|
2174
|
+
refs.reference,
|
|
2175
|
+
refs.floating,
|
|
2176
|
+
update,
|
|
2177
|
+
props.isClickOutside,
|
|
2178
|
+
props.isDisabled,
|
|
2179
|
+
props.refsExcludeClickOutside
|
|
2180
|
+
]);
|
|
2173
2181
|
useEffect(() => {
|
|
2174
2182
|
if (!isOpen || !props.isFloatingHover || !refs.reference.current || !refs.floating.current || props.isDisabled)
|
|
2175
2183
|
return;
|
|
@@ -2235,6 +2243,40 @@ const usePopover = (props) => {
|
|
|
2235
2243
|
onBlur == null ? void 0 : onBlur();
|
|
2236
2244
|
}
|
|
2237
2245
|
}, [isOpen, wasEverOpen, onBlur]);
|
|
2246
|
+
useEffect(() => {
|
|
2247
|
+
if (!isOpen || props.isDisabled) return;
|
|
2248
|
+
const handleFocusIn = (e) => {
|
|
2249
|
+
const refEl = refs.reference.current;
|
|
2250
|
+
const floatingEl = refs.floating.current;
|
|
2251
|
+
const otherRefs = props.refsExcludeClickOutside || [];
|
|
2252
|
+
const isInside = refEl instanceof HTMLElement && refEl.contains(e.target) || floatingEl instanceof HTMLElement && floatingEl.contains(e.target) || otherRefs.some((ref) => {
|
|
2253
|
+
if (ref && "current" in ref && ref.current && ref.current instanceof HTMLElement) {
|
|
2254
|
+
return ref.current.contains(e.target);
|
|
2255
|
+
}
|
|
2256
|
+
return false;
|
|
2257
|
+
});
|
|
2258
|
+
if (!isInside) {
|
|
2259
|
+
setIsOpen(false);
|
|
2260
|
+
}
|
|
2261
|
+
};
|
|
2262
|
+
document.addEventListener("focusin", handleFocusIn);
|
|
2263
|
+
return () => {
|
|
2264
|
+
document.removeEventListener("focusin", handleFocusIn);
|
|
2265
|
+
};
|
|
2266
|
+
}, [isOpen, refs.reference, refs.floating, props.refsExcludeClickOutside, props.isDisabled]);
|
|
2267
|
+
useEffect(() => {
|
|
2268
|
+
if (!refs.reference.current || props.isDisabled || !onBlurReference) return;
|
|
2269
|
+
const refEl = refs.reference.current;
|
|
2270
|
+
const handleBlur = (e) => {
|
|
2271
|
+
if (refEl instanceof HTMLElement && !refEl.contains(e.relatedTarget)) {
|
|
2272
|
+
onBlurReference();
|
|
2273
|
+
}
|
|
2274
|
+
};
|
|
2275
|
+
if (refEl instanceof HTMLElement) refEl.addEventListener("blur", handleBlur, true);
|
|
2276
|
+
return () => {
|
|
2277
|
+
if (refEl instanceof HTMLElement) refEl.removeEventListener("blur", handleBlur, true);
|
|
2278
|
+
};
|
|
2279
|
+
}, [refs.reference, props.isDisabled, onBlurReference]);
|
|
2238
2280
|
return {
|
|
2239
2281
|
isOpen,
|
|
2240
2282
|
setIsOpen,
|
|
@@ -2445,4 +2487,4 @@ export {
|
|
|
2445
2487
|
useMergeRefs as m,
|
|
2446
2488
|
usePopover as u
|
|
2447
2489
|
};
|
|
2448
|
-
//# sourceMappingURL=component
|
|
2490
|
+
//# sourceMappingURL=component-zhkRBgS8.js.map
|