ingred-ui 25.5.2 → 25.6.0
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.
|
@@ -15,9 +15,14 @@ export type ConfirmModalProps = {
|
|
|
15
15
|
cancelText?: string;
|
|
16
16
|
onClose?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent> | React.MouseEvent<Element, MouseEvent>, reason: ModalCloseReason | ConfirmModalCloseReason) => void;
|
|
17
17
|
/**
|
|
18
|
-
* If `undefined`, footer is removed
|
|
18
|
+
* If `undefined`, footer is removed when `onConfirm` is also `undefined`.
|
|
19
|
+
* @deprecated onConfirm の利用を推奨。2026年8月ごろ削除予定。
|
|
19
20
|
*/
|
|
20
21
|
onSubmit?: (event: React.FormEvent<HTMLFormElement>) => void;
|
|
22
|
+
/**
|
|
23
|
+
* If `undefined`, footer is removed when `onSubmit` is also `undefined`.
|
|
24
|
+
*/
|
|
25
|
+
onConfirm?: (event: React.MouseEvent<Element, MouseEvent>) => void;
|
|
21
26
|
buttonColor?: ButtonColor;
|
|
22
27
|
isOpen?: boolean;
|
|
23
28
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { StoryObj } from "@storybook/react";
|
|
2
3
|
import { ConfirmModalProps } from "./ConfirmModal";
|
|
3
4
|
declare const _default: {
|
|
4
5
|
title: string;
|
|
@@ -17,295 +18,9 @@ declare const _default: {
|
|
|
17
18
|
};
|
|
18
19
|
};
|
|
19
20
|
export default _default;
|
|
20
|
-
export declare const Basic:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
decorators?: import("@storybook/types").DecoratorFunction<import("@storybook/react/dist/types-0fc72a6d").R, {
|
|
27
|
-
title: string;
|
|
28
|
-
confirmText?: string | undefined;
|
|
29
|
-
cancelText?: string | undefined;
|
|
30
|
-
onClose?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent> | React.MouseEvent<Element, MouseEvent>, reason: "backdropClick" | import("./ConfirmModal").ConfirmModalCloseReason) => void) | undefined;
|
|
31
|
-
onSubmit?: ((event: React.FormEvent<HTMLFormElement>) => void) | undefined;
|
|
32
|
-
buttonColor?: import("../Button/Button").ButtonColor | undefined;
|
|
33
|
-
isOpen?: boolean | undefined;
|
|
34
|
-
disabled?: boolean | undefined;
|
|
35
|
-
loading?: boolean | undefined;
|
|
36
|
-
overflowYScroll?: boolean | undefined;
|
|
37
|
-
disableHorizontalPadding?: boolean | undefined;
|
|
38
|
-
subActions?: React.ReactNode[] | undefined;
|
|
39
|
-
modalProps?: import("..").ModalProps | undefined;
|
|
40
|
-
fadeProps?: import("../../utils/reactTransitionGroup").CSSTransitionProps | undefined;
|
|
41
|
-
children?: React.ReactNode;
|
|
42
|
-
}> | import("@storybook/types").DecoratorFunction<import("@storybook/react/dist/types-0fc72a6d").R, {
|
|
43
|
-
title: string;
|
|
44
|
-
confirmText?: string | undefined;
|
|
45
|
-
cancelText?: string | undefined;
|
|
46
|
-
onClose?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent> | React.MouseEvent<Element, MouseEvent>, reason: "backdropClick" | import("./ConfirmModal").ConfirmModalCloseReason) => void) | undefined;
|
|
47
|
-
onSubmit?: ((event: React.FormEvent<HTMLFormElement>) => void) | undefined;
|
|
48
|
-
buttonColor?: import("../Button/Button").ButtonColor | undefined;
|
|
49
|
-
isOpen?: boolean | undefined;
|
|
50
|
-
disabled?: boolean | undefined;
|
|
51
|
-
loading?: boolean | undefined;
|
|
52
|
-
overflowYScroll?: boolean | undefined;
|
|
53
|
-
disableHorizontalPadding?: boolean | undefined;
|
|
54
|
-
subActions?: React.ReactNode[] | undefined;
|
|
55
|
-
modalProps?: import("..").ModalProps | undefined;
|
|
56
|
-
fadeProps?: import("../../utils/reactTransitionGroup").CSSTransitionProps | undefined;
|
|
57
|
-
children?: React.ReactNode;
|
|
58
|
-
}>[] | undefined;
|
|
59
|
-
parameters?: import("@storybook/types").Parameters | undefined;
|
|
60
|
-
argTypes?: Partial<import("@storybook/types").ArgTypes<ConfirmModalProps>> | undefined;
|
|
61
|
-
loaders?: import("@storybook/types").LoaderFunction<import("@storybook/react/dist/types-0fc72a6d").R, ConfirmModalProps> | import("@storybook/types").LoaderFunction<import("@storybook/react/dist/types-0fc72a6d").R, ConfirmModalProps>[] | undefined;
|
|
62
|
-
render?: import("@storybook/types").ArgsStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, ConfirmModalProps> | undefined;
|
|
63
|
-
name?: string | undefined;
|
|
64
|
-
storyName?: string | undefined;
|
|
65
|
-
play?: import("@storybook/types").PlayFunction<import("@storybook/react/dist/types-0fc72a6d").R, ConfirmModalProps> | undefined;
|
|
66
|
-
tags?: string[] | undefined;
|
|
67
|
-
story?: Omit<import("@storybook/types").StoryAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, ConfirmModalProps, Partial<ConfirmModalProps>>, "story"> | undefined;
|
|
68
|
-
};
|
|
69
|
-
export declare const WithOneSubAction: {
|
|
70
|
-
args: {
|
|
71
|
-
children: string;
|
|
72
|
-
onSubmit: import("@storybook/addon-actions").HandlerFunction;
|
|
73
|
-
subActions: JSX.Element[];
|
|
74
|
-
};
|
|
75
|
-
decorators?: import("@storybook/types").DecoratorFunction<import("@storybook/react/dist/types-0fc72a6d").R, {
|
|
76
|
-
title: string;
|
|
77
|
-
confirmText?: string | undefined;
|
|
78
|
-
cancelText?: string | undefined;
|
|
79
|
-
onClose?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent> | React.MouseEvent<Element, MouseEvent>, reason: "backdropClick" | import("./ConfirmModal").ConfirmModalCloseReason) => void) | undefined;
|
|
80
|
-
onSubmit?: ((event: React.FormEvent<HTMLFormElement>) => void) | undefined;
|
|
81
|
-
buttonColor?: import("../Button/Button").ButtonColor | undefined;
|
|
82
|
-
isOpen?: boolean | undefined;
|
|
83
|
-
disabled?: boolean | undefined;
|
|
84
|
-
loading?: boolean | undefined;
|
|
85
|
-
overflowYScroll?: boolean | undefined;
|
|
86
|
-
disableHorizontalPadding?: boolean | undefined;
|
|
87
|
-
subActions?: React.ReactNode[] | undefined;
|
|
88
|
-
modalProps?: import("..").ModalProps | undefined;
|
|
89
|
-
fadeProps?: import("../../utils/reactTransitionGroup").CSSTransitionProps | undefined;
|
|
90
|
-
children?: React.ReactNode;
|
|
91
|
-
}> | import("@storybook/types").DecoratorFunction<import("@storybook/react/dist/types-0fc72a6d").R, {
|
|
92
|
-
title: string;
|
|
93
|
-
confirmText?: string | undefined;
|
|
94
|
-
cancelText?: string | undefined;
|
|
95
|
-
onClose?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent> | React.MouseEvent<Element, MouseEvent>, reason: "backdropClick" | import("./ConfirmModal").ConfirmModalCloseReason) => void) | undefined;
|
|
96
|
-
onSubmit?: ((event: React.FormEvent<HTMLFormElement>) => void) | undefined;
|
|
97
|
-
buttonColor?: import("../Button/Button").ButtonColor | undefined;
|
|
98
|
-
isOpen?: boolean | undefined;
|
|
99
|
-
disabled?: boolean | undefined;
|
|
100
|
-
loading?: boolean | undefined;
|
|
101
|
-
overflowYScroll?: boolean | undefined;
|
|
102
|
-
disableHorizontalPadding?: boolean | undefined;
|
|
103
|
-
subActions?: React.ReactNode[] | undefined;
|
|
104
|
-
modalProps?: import("..").ModalProps | undefined;
|
|
105
|
-
fadeProps?: import("../../utils/reactTransitionGroup").CSSTransitionProps | undefined;
|
|
106
|
-
children?: React.ReactNode;
|
|
107
|
-
}>[] | undefined;
|
|
108
|
-
parameters?: import("@storybook/types").Parameters | undefined;
|
|
109
|
-
argTypes?: Partial<import("@storybook/types").ArgTypes<ConfirmModalProps>> | undefined;
|
|
110
|
-
loaders?: import("@storybook/types").LoaderFunction<import("@storybook/react/dist/types-0fc72a6d").R, ConfirmModalProps> | import("@storybook/types").LoaderFunction<import("@storybook/react/dist/types-0fc72a6d").R, ConfirmModalProps>[] | undefined;
|
|
111
|
-
render?: import("@storybook/types").ArgsStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, ConfirmModalProps> | undefined;
|
|
112
|
-
name?: string | undefined;
|
|
113
|
-
storyName?: string | undefined;
|
|
114
|
-
play?: import("@storybook/types").PlayFunction<import("@storybook/react/dist/types-0fc72a6d").R, ConfirmModalProps> | undefined;
|
|
115
|
-
tags?: string[] | undefined;
|
|
116
|
-
story?: Omit<import("@storybook/types").StoryAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, ConfirmModalProps, Partial<ConfirmModalProps>>, "story"> | undefined;
|
|
117
|
-
};
|
|
118
|
-
export declare const WithTwoSubActions: {
|
|
119
|
-
children: string;
|
|
120
|
-
onSubmit: import("@storybook/addon-actions").HandlerFunction;
|
|
121
|
-
subActions: JSX.Element[];
|
|
122
|
-
decorators?: import("@storybook/types").DecoratorFunction<import("@storybook/react/dist/types-0fc72a6d").R, {
|
|
123
|
-
title: string;
|
|
124
|
-
confirmText?: string | undefined;
|
|
125
|
-
cancelText?: string | undefined;
|
|
126
|
-
onClose?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent> | React.MouseEvent<Element, MouseEvent>, reason: "backdropClick" | import("./ConfirmModal").ConfirmModalCloseReason) => void) | undefined;
|
|
127
|
-
onSubmit?: ((event: React.FormEvent<HTMLFormElement>) => void) | undefined;
|
|
128
|
-
buttonColor?: import("../Button/Button").ButtonColor | undefined;
|
|
129
|
-
isOpen?: boolean | undefined;
|
|
130
|
-
disabled?: boolean | undefined;
|
|
131
|
-
loading?: boolean | undefined;
|
|
132
|
-
overflowYScroll?: boolean | undefined;
|
|
133
|
-
disableHorizontalPadding?: boolean | undefined;
|
|
134
|
-
subActions?: React.ReactNode[] | undefined;
|
|
135
|
-
modalProps?: import("..").ModalProps | undefined;
|
|
136
|
-
fadeProps?: import("../../utils/reactTransitionGroup").CSSTransitionProps | undefined;
|
|
137
|
-
children?: React.ReactNode;
|
|
138
|
-
}> | import("@storybook/types").DecoratorFunction<import("@storybook/react/dist/types-0fc72a6d").R, {
|
|
139
|
-
title: string;
|
|
140
|
-
confirmText?: string | undefined;
|
|
141
|
-
cancelText?: string | undefined;
|
|
142
|
-
onClose?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent> | React.MouseEvent<Element, MouseEvent>, reason: "backdropClick" | import("./ConfirmModal").ConfirmModalCloseReason) => void) | undefined;
|
|
143
|
-
onSubmit?: ((event: React.FormEvent<HTMLFormElement>) => void) | undefined;
|
|
144
|
-
buttonColor?: import("../Button/Button").ButtonColor | undefined;
|
|
145
|
-
isOpen?: boolean | undefined;
|
|
146
|
-
disabled?: boolean | undefined;
|
|
147
|
-
loading?: boolean | undefined;
|
|
148
|
-
overflowYScroll?: boolean | undefined;
|
|
149
|
-
disableHorizontalPadding?: boolean | undefined;
|
|
150
|
-
subActions?: React.ReactNode[] | undefined;
|
|
151
|
-
modalProps?: import("..").ModalProps | undefined;
|
|
152
|
-
fadeProps?: import("../../utils/reactTransitionGroup").CSSTransitionProps | undefined;
|
|
153
|
-
children?: React.ReactNode;
|
|
154
|
-
}>[] | undefined;
|
|
155
|
-
parameters?: import("@storybook/types").Parameters | undefined;
|
|
156
|
-
args?: Partial<ConfirmModalProps> | undefined;
|
|
157
|
-
argTypes?: Partial<import("@storybook/types").ArgTypes<ConfirmModalProps>> | undefined;
|
|
158
|
-
loaders?: import("@storybook/types").LoaderFunction<import("@storybook/react/dist/types-0fc72a6d").R, ConfirmModalProps> | import("@storybook/types").LoaderFunction<import("@storybook/react/dist/types-0fc72a6d").R, ConfirmModalProps>[] | undefined;
|
|
159
|
-
render?: import("@storybook/types").ArgsStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, ConfirmModalProps> | undefined;
|
|
160
|
-
name?: string | undefined;
|
|
161
|
-
storyName?: string | undefined;
|
|
162
|
-
play?: import("@storybook/types").PlayFunction<import("@storybook/react/dist/types-0fc72a6d").R, ConfirmModalProps> | undefined;
|
|
163
|
-
tags?: string[] | undefined;
|
|
164
|
-
story?: Omit<import("@storybook/types").StoryAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, ConfirmModalProps, Partial<ConfirmModalProps>>, "story"> | undefined;
|
|
165
|
-
};
|
|
166
|
-
export declare const Loading: {
|
|
167
|
-
args: {
|
|
168
|
-
children: string;
|
|
169
|
-
onSubmit: () => void;
|
|
170
|
-
loading: boolean;
|
|
171
|
-
};
|
|
172
|
-
decorators?: import("@storybook/types").DecoratorFunction<import("@storybook/react/dist/types-0fc72a6d").R, {
|
|
173
|
-
title: string;
|
|
174
|
-
confirmText?: string | undefined;
|
|
175
|
-
cancelText?: string | undefined;
|
|
176
|
-
onClose?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent> | React.MouseEvent<Element, MouseEvent>, reason: "backdropClick" | import("./ConfirmModal").ConfirmModalCloseReason) => void) | undefined;
|
|
177
|
-
onSubmit?: ((event: React.FormEvent<HTMLFormElement>) => void) | undefined;
|
|
178
|
-
buttonColor?: import("../Button/Button").ButtonColor | undefined;
|
|
179
|
-
isOpen?: boolean | undefined;
|
|
180
|
-
disabled?: boolean | undefined;
|
|
181
|
-
loading?: boolean | undefined;
|
|
182
|
-
overflowYScroll?: boolean | undefined;
|
|
183
|
-
disableHorizontalPadding?: boolean | undefined;
|
|
184
|
-
subActions?: React.ReactNode[] | undefined;
|
|
185
|
-
modalProps?: import("..").ModalProps | undefined;
|
|
186
|
-
fadeProps?: import("../../utils/reactTransitionGroup").CSSTransitionProps | undefined;
|
|
187
|
-
children?: React.ReactNode;
|
|
188
|
-
}> | import("@storybook/types").DecoratorFunction<import("@storybook/react/dist/types-0fc72a6d").R, {
|
|
189
|
-
title: string;
|
|
190
|
-
confirmText?: string | undefined;
|
|
191
|
-
cancelText?: string | undefined;
|
|
192
|
-
onClose?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent> | React.MouseEvent<Element, MouseEvent>, reason: "backdropClick" | import("./ConfirmModal").ConfirmModalCloseReason) => void) | undefined;
|
|
193
|
-
onSubmit?: ((event: React.FormEvent<HTMLFormElement>) => void) | undefined;
|
|
194
|
-
buttonColor?: import("../Button/Button").ButtonColor | undefined;
|
|
195
|
-
isOpen?: boolean | undefined;
|
|
196
|
-
disabled?: boolean | undefined;
|
|
197
|
-
loading?: boolean | undefined;
|
|
198
|
-
overflowYScroll?: boolean | undefined;
|
|
199
|
-
disableHorizontalPadding?: boolean | undefined;
|
|
200
|
-
subActions?: React.ReactNode[] | undefined;
|
|
201
|
-
modalProps?: import("..").ModalProps | undefined;
|
|
202
|
-
fadeProps?: import("../../utils/reactTransitionGroup").CSSTransitionProps | undefined;
|
|
203
|
-
children?: React.ReactNode;
|
|
204
|
-
}>[] | undefined;
|
|
205
|
-
parameters?: import("@storybook/types").Parameters | undefined;
|
|
206
|
-
argTypes?: Partial<import("@storybook/types").ArgTypes<ConfirmModalProps>> | undefined;
|
|
207
|
-
loaders?: import("@storybook/types").LoaderFunction<import("@storybook/react/dist/types-0fc72a6d").R, ConfirmModalProps> | import("@storybook/types").LoaderFunction<import("@storybook/react/dist/types-0fc72a6d").R, ConfirmModalProps>[] | undefined;
|
|
208
|
-
render?: import("@storybook/types").ArgsStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, ConfirmModalProps> | undefined;
|
|
209
|
-
name?: string | undefined;
|
|
210
|
-
storyName?: string | undefined;
|
|
211
|
-
play?: import("@storybook/types").PlayFunction<import("@storybook/react/dist/types-0fc72a6d").R, ConfirmModalProps> | undefined;
|
|
212
|
-
tags?: string[] | undefined;
|
|
213
|
-
story?: Omit<import("@storybook/types").StoryAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, ConfirmModalProps, Partial<ConfirmModalProps>>, "story"> | undefined;
|
|
214
|
-
};
|
|
215
|
-
export declare const OverflowYScroll: {
|
|
216
|
-
args: {
|
|
217
|
-
children: JSX.Element;
|
|
218
|
-
onSubmit: import("@storybook/addon-actions").HandlerFunction;
|
|
219
|
-
overflowYScroll: boolean;
|
|
220
|
-
};
|
|
221
|
-
decorators?: import("@storybook/types").DecoratorFunction<import("@storybook/react/dist/types-0fc72a6d").R, {
|
|
222
|
-
title: string;
|
|
223
|
-
confirmText?: string | undefined;
|
|
224
|
-
cancelText?: string | undefined;
|
|
225
|
-
onClose?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent> | React.MouseEvent<Element, MouseEvent>, reason: "backdropClick" | import("./ConfirmModal").ConfirmModalCloseReason) => void) | undefined;
|
|
226
|
-
onSubmit?: ((event: React.FormEvent<HTMLFormElement>) => void) | undefined;
|
|
227
|
-
buttonColor?: import("../Button/Button").ButtonColor | undefined;
|
|
228
|
-
isOpen?: boolean | undefined;
|
|
229
|
-
disabled?: boolean | undefined;
|
|
230
|
-
loading?: boolean | undefined;
|
|
231
|
-
overflowYScroll?: boolean | undefined;
|
|
232
|
-
disableHorizontalPadding?: boolean | undefined;
|
|
233
|
-
subActions?: React.ReactNode[] | undefined;
|
|
234
|
-
modalProps?: import("..").ModalProps | undefined;
|
|
235
|
-
fadeProps?: import("../../utils/reactTransitionGroup").CSSTransitionProps | undefined;
|
|
236
|
-
children?: React.ReactNode;
|
|
237
|
-
}> | import("@storybook/types").DecoratorFunction<import("@storybook/react/dist/types-0fc72a6d").R, {
|
|
238
|
-
title: string;
|
|
239
|
-
confirmText?: string | undefined;
|
|
240
|
-
cancelText?: string | undefined;
|
|
241
|
-
onClose?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent> | React.MouseEvent<Element, MouseEvent>, reason: "backdropClick" | import("./ConfirmModal").ConfirmModalCloseReason) => void) | undefined;
|
|
242
|
-
onSubmit?: ((event: React.FormEvent<HTMLFormElement>) => void) | undefined;
|
|
243
|
-
buttonColor?: import("../Button/Button").ButtonColor | undefined;
|
|
244
|
-
isOpen?: boolean | undefined;
|
|
245
|
-
disabled?: boolean | undefined;
|
|
246
|
-
loading?: boolean | undefined;
|
|
247
|
-
overflowYScroll?: boolean | undefined;
|
|
248
|
-
disableHorizontalPadding?: boolean | undefined;
|
|
249
|
-
subActions?: React.ReactNode[] | undefined;
|
|
250
|
-
modalProps?: import("..").ModalProps | undefined;
|
|
251
|
-
fadeProps?: import("../../utils/reactTransitionGroup").CSSTransitionProps | undefined;
|
|
252
|
-
children?: React.ReactNode;
|
|
253
|
-
}>[] | undefined;
|
|
254
|
-
parameters?: import("@storybook/types").Parameters | undefined;
|
|
255
|
-
argTypes?: Partial<import("@storybook/types").ArgTypes<ConfirmModalProps>> | undefined;
|
|
256
|
-
loaders?: import("@storybook/types").LoaderFunction<import("@storybook/react/dist/types-0fc72a6d").R, ConfirmModalProps> | import("@storybook/types").LoaderFunction<import("@storybook/react/dist/types-0fc72a6d").R, ConfirmModalProps>[] | undefined;
|
|
257
|
-
render?: import("@storybook/types").ArgsStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, ConfirmModalProps> | undefined;
|
|
258
|
-
name?: string | undefined;
|
|
259
|
-
storyName?: string | undefined;
|
|
260
|
-
play?: import("@storybook/types").PlayFunction<import("@storybook/react/dist/types-0fc72a6d").R, ConfirmModalProps> | undefined;
|
|
261
|
-
tags?: string[] | undefined;
|
|
262
|
-
story?: Omit<import("@storybook/types").StoryAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, ConfirmModalProps, Partial<ConfirmModalProps>>, "story"> | undefined;
|
|
263
|
-
};
|
|
264
|
-
export declare const WithoutFooter: {
|
|
265
|
-
args: {
|
|
266
|
-
children: string;
|
|
267
|
-
onSubmit: undefined;
|
|
268
|
-
};
|
|
269
|
-
decorators?: import("@storybook/types").DecoratorFunction<import("@storybook/react/dist/types-0fc72a6d").R, {
|
|
270
|
-
title: string;
|
|
271
|
-
confirmText?: string | undefined;
|
|
272
|
-
cancelText?: string | undefined;
|
|
273
|
-
onClose?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent> | React.MouseEvent<Element, MouseEvent>, reason: "backdropClick" | import("./ConfirmModal").ConfirmModalCloseReason) => void) | undefined;
|
|
274
|
-
onSubmit?: ((event: React.FormEvent<HTMLFormElement>) => void) | undefined;
|
|
275
|
-
buttonColor?: import("../Button/Button").ButtonColor | undefined;
|
|
276
|
-
isOpen?: boolean | undefined;
|
|
277
|
-
disabled?: boolean | undefined;
|
|
278
|
-
loading?: boolean | undefined;
|
|
279
|
-
overflowYScroll?: boolean | undefined;
|
|
280
|
-
disableHorizontalPadding?: boolean | undefined;
|
|
281
|
-
subActions?: React.ReactNode[] | undefined;
|
|
282
|
-
modalProps?: import("..").ModalProps | undefined;
|
|
283
|
-
fadeProps?: import("../../utils/reactTransitionGroup").CSSTransitionProps | undefined;
|
|
284
|
-
children?: React.ReactNode;
|
|
285
|
-
}> | import("@storybook/types").DecoratorFunction<import("@storybook/react/dist/types-0fc72a6d").R, {
|
|
286
|
-
title: string;
|
|
287
|
-
confirmText?: string | undefined;
|
|
288
|
-
cancelText?: string | undefined;
|
|
289
|
-
onClose?: ((event: React.MouseEvent<HTMLButtonElement, MouseEvent> | React.MouseEvent<Element, MouseEvent>, reason: "backdropClick" | import("./ConfirmModal").ConfirmModalCloseReason) => void) | undefined;
|
|
290
|
-
onSubmit?: ((event: React.FormEvent<HTMLFormElement>) => void) | undefined;
|
|
291
|
-
buttonColor?: import("../Button/Button").ButtonColor | undefined;
|
|
292
|
-
isOpen?: boolean | undefined;
|
|
293
|
-
disabled?: boolean | undefined;
|
|
294
|
-
loading?: boolean | undefined;
|
|
295
|
-
overflowYScroll?: boolean | undefined;
|
|
296
|
-
disableHorizontalPadding?: boolean | undefined;
|
|
297
|
-
subActions?: React.ReactNode[] | undefined;
|
|
298
|
-
modalProps?: import("..").ModalProps | undefined;
|
|
299
|
-
fadeProps?: import("../../utils/reactTransitionGroup").CSSTransitionProps | undefined;
|
|
300
|
-
children?: React.ReactNode;
|
|
301
|
-
}>[] | undefined;
|
|
302
|
-
parameters?: import("@storybook/types").Parameters | undefined;
|
|
303
|
-
argTypes?: Partial<import("@storybook/types").ArgTypes<ConfirmModalProps>> | undefined;
|
|
304
|
-
loaders?: import("@storybook/types").LoaderFunction<import("@storybook/react/dist/types-0fc72a6d").R, ConfirmModalProps> | import("@storybook/types").LoaderFunction<import("@storybook/react/dist/types-0fc72a6d").R, ConfirmModalProps>[] | undefined;
|
|
305
|
-
render?: import("@storybook/types").ArgsStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, ConfirmModalProps> | undefined;
|
|
306
|
-
name?: string | undefined;
|
|
307
|
-
storyName?: string | undefined;
|
|
308
|
-
play?: import("@storybook/types").PlayFunction<import("@storybook/react/dist/types-0fc72a6d").R, ConfirmModalProps> | undefined;
|
|
309
|
-
tags?: string[] | undefined;
|
|
310
|
-
story?: Omit<import("@storybook/types").StoryAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, ConfirmModalProps, Partial<ConfirmModalProps>>, "story"> | undefined;
|
|
311
|
-
};
|
|
21
|
+
export declare const Basic: StoryObj<ConfirmModalProps>;
|
|
22
|
+
export declare const WithOneSubAction: StoryObj<ConfirmModalProps>;
|
|
23
|
+
export declare const WithTwoSubActions: StoryObj<ConfirmModalProps>;
|
|
24
|
+
export declare const Loading: StoryObj<ConfirmModalProps>;
|
|
25
|
+
export declare const OverflowYScroll: StoryObj<ConfirmModalProps>;
|
|
26
|
+
export declare const WithoutFooter: StoryObj<ConfirmModalProps>;
|
package/dist/index.es.js
CHANGED
|
@@ -1291,7 +1291,7 @@ var mi=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
1291
1291
|
z-index: ${({theme:e})=>e.depth.modal};
|
|
1292
1292
|
|
|
1293
1293
|
visibility: ${({isHidden:e})=>e?"hidden":"visible"};
|
|
1294
|
-
`,Kd=({disablePortal:t=!1,container:n,children:r})=>{const[i,o]=e.useState(null);return e.useEffect((()=>{o(n||document.body)}),[n]),t?r||null:i?I.createPortal(r,i):null},eu=e.forwardRef((function({isOpen:t=!0,hasBackground:n=!0,backdropProps:r,enableTransition:i=!0,onClose:o,children:a},l){const[s,c]=e.useState(!0),d=()=>{c(!1)},u=()=>{c(!0)},p={};return i&&a.props.hasOwnProperty("in")&&(p.onEnter=Zn(d,a.props.onEnter),p.onExited=Zn(u,a.props.onExited)),e.createElement(Kd,null,e.createElement(qd,{ref:l,isHidden:!t&&s},n&&e.createElement(Et,Object.assign({},r,{isOpen:!i||t,onClick:e=>{o&&o(e,"backdropClick")}})),e.cloneElement(a,p)))})),tu={components:{ConfirmModal:{defaultProps:{confirmText:"確認",cancelText:"キャンセル"}},FullSizeConfirmModal:{defaultProps:{confirmText:"確認",cancelText:"キャンセル"}},FileUploader:{defaultProps:{title:"ファイルをドラッグ&ドロップ、またはここをクリック"}},ItemEmpty:{defaultProps:{title:"見つかりませんでした。"}},Select:{defaultProps:{placeholder:"選択...",emptyMessage:"見つかりません"}},CreatableSelect:{defaultProps:{placeholder:"選択...",emptyMessage:"見つかりません",addMessage:"次の文字列を追加する"}},MultipleFilter:{defaultProps:{placeholder:"新しいフィルターを追加してください"}},FilterCard:{defaultProps:{applyButtonTitle:"適用",inputErrorText:"入力してください",formPlaceholder:"検索",sectionTitle:"セクション"}},EditFilterCard:{defaultProps:{}},DatePicker:{defaultProps:{monthFormat:"YYYY年MM月",weekList:["日","月","火","水","木","金","土"],weekStart:0}},DateRangePicker:{defaultProps:{monthFormat:"YYYY年MM月",weekList:["日","月","火","水","木","金","土"],weekStart:0}},WeekTime:{defaultProps:{weekList:["月","火","水","木","金","土","日"]}},WeekTimeSelector:{defaultProps:{weekList:["月","火","水","木","金","土","日"]}},DualListBox:{defaultProps:{selectedItemTitle:"個選択済み"}}}},nu={components:{ConfirmModal:{defaultProps:{confirmText:"确认",cancelText:"取消"}},FullSizeConfirmModal:{defaultProps:{confirmText:"确认",cancelText:"取消"}},FileUploader:{defaultProps:{title:"把文件拖入, 同样支持点击上传。"}},ItemEmpty:{defaultProps:{title:"未找到。"}}}},ru={components:{DatePicker:{defaultProps:{monthFormat:"MMM YYYY",weekList:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekStart:0}},DateRangePicker:{defaultProps:{monthFormat:"MMM YYYY",weekList:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekStart:0}},WeekTime:{defaultProps:{weekList:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}},WeekTimeSelector:{defaultProps:{weekList:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}},DualListBox:{defaultProps:{selectedItemTitle:"selected"}}}},iu=e.createContext({locale:ru}),ou=({locale:t,children:n})=>e.createElement(iu.Provider,{value:{locale:t}},n);function au(e){var n,r;const{name:i,props:o}=e,a=t.useContext(iu).locale,l=Object.assign({},o);if(!a||!a.components)return l;const s=null===(r=null===(n=a.components)||void 0===n?void 0:n[i])||void 0===r?void 0:r.defaultProps;for(const e in s)void 0===l[e]&&(l[e]=s[e]);return l}const lu=e.forwardRef((function(t,n){const r=au({props:t,name:"ConfirmModal"}),{title:i,confirmText:o="Confirm",cancelText:a="Cancel",children:l,onClose:s,onSubmit:c,buttonColor:
|
|
1294
|
+
`,Kd=({disablePortal:t=!1,container:n,children:r})=>{const[i,o]=e.useState(null);return e.useEffect((()=>{o(n||document.body)}),[n]),t?r||null:i?I.createPortal(r,i):null},eu=e.forwardRef((function({isOpen:t=!0,hasBackground:n=!0,backdropProps:r,enableTransition:i=!0,onClose:o,children:a},l){const[s,c]=e.useState(!0),d=()=>{c(!1)},u=()=>{c(!0)},p={};return i&&a.props.hasOwnProperty("in")&&(p.onEnter=Zn(d,a.props.onEnter),p.onExited=Zn(u,a.props.onExited)),e.createElement(Kd,null,e.createElement(qd,{ref:l,isHidden:!t&&s},n&&e.createElement(Et,Object.assign({},r,{isOpen:!i||t,onClick:e=>{o&&o(e,"backdropClick")}})),e.cloneElement(a,p)))})),tu={components:{ConfirmModal:{defaultProps:{confirmText:"確認",cancelText:"キャンセル"}},FullSizeConfirmModal:{defaultProps:{confirmText:"確認",cancelText:"キャンセル"}},FileUploader:{defaultProps:{title:"ファイルをドラッグ&ドロップ、またはここをクリック"}},ItemEmpty:{defaultProps:{title:"見つかりませんでした。"}},Select:{defaultProps:{placeholder:"選択...",emptyMessage:"見つかりません"}},CreatableSelect:{defaultProps:{placeholder:"選択...",emptyMessage:"見つかりません",addMessage:"次の文字列を追加する"}},MultipleFilter:{defaultProps:{placeholder:"新しいフィルターを追加してください"}},FilterCard:{defaultProps:{applyButtonTitle:"適用",inputErrorText:"入力してください",formPlaceholder:"検索",sectionTitle:"セクション"}},EditFilterCard:{defaultProps:{}},DatePicker:{defaultProps:{monthFormat:"YYYY年MM月",weekList:["日","月","火","水","木","金","土"],weekStart:0}},DateRangePicker:{defaultProps:{monthFormat:"YYYY年MM月",weekList:["日","月","火","水","木","金","土"],weekStart:0}},WeekTime:{defaultProps:{weekList:["月","火","水","木","金","土","日"]}},WeekTimeSelector:{defaultProps:{weekList:["月","火","水","木","金","土","日"]}},DualListBox:{defaultProps:{selectedItemTitle:"個選択済み"}}}},nu={components:{ConfirmModal:{defaultProps:{confirmText:"确认",cancelText:"取消"}},FullSizeConfirmModal:{defaultProps:{confirmText:"确认",cancelText:"取消"}},FileUploader:{defaultProps:{title:"把文件拖入, 同样支持点击上传。"}},ItemEmpty:{defaultProps:{title:"未找到。"}}}},ru={components:{DatePicker:{defaultProps:{monthFormat:"MMM YYYY",weekList:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekStart:0}},DateRangePicker:{defaultProps:{monthFormat:"MMM YYYY",weekList:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekStart:0}},WeekTime:{defaultProps:{weekList:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}},WeekTimeSelector:{defaultProps:{weekList:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]}},DualListBox:{defaultProps:{selectedItemTitle:"selected"}}}},iu=e.createContext({locale:ru}),ou=({locale:t,children:n})=>e.createElement(iu.Provider,{value:{locale:t}},n);function au(e){var n,r;const{name:i,props:o}=e,a=t.useContext(iu).locale,l=Object.assign({},o);if(!a||!a.components)return l;const s=null===(r=null===(n=a.components)||void 0===n?void 0:n[i])||void 0===r?void 0:r.defaultProps;for(const e in s)void 0===l[e]&&(l[e]=s[e]);return l}const lu=e.forwardRef((function(t,n){const r=au({props:t,name:"ConfirmModal"}),{title:i,confirmText:o="Confirm",cancelText:a="Cancel",children:l,onClose:s,onSubmit:c,onConfirm:d,buttonColor:u="primary",isOpen:p=!0,disabled:m,loading:h,overflowYScroll:g=!0,disableHorizontalPadding:f=!1,subActions:b,modalProps:v,fadeProps:x}=r,y=j(),w=!(!c&&!d),E=e=>t=>{s&&s(t,e)},C=d?"button":"submit",I=e.createElement(e.Fragment,null,e.createElement(Wd,null,e.createElement(Yd,null,e.createElement(ce,{weight:"bold",size:"xxxl"},i),b&&e.createElement(jt,{pl:2},e.createElement(q,{display:"flex",alignItems:"center",gap:1},b.map(((t,n)=>e.createElement(e.Fragment,{key:n},t)))))),e.createElement(Ud,{onClick:E("clickCloseIcon")},e.createElement(U,{name:"close",size:"lg",color:y.palette.black}))),e.createElement(Xd,{overflowYScroll:g,showFooter:w},f?l:e.createElement(jt,{px:3,pb:3},l)),w&&e.createElement(Jd,null,e.createElement(q,{display:"flex",alignItems:"center"},e.createElement(rn,{type:"button",color:"clear",inline:!0,onClick:E("clickCancelButton")},a),e.createElement(jt,{pr:2}),e.createElement(rn,{type:C,color:u,disabled:m,inline:!0,onClick:d},o))));return e.createElement(eu,Object.assign({isOpen:p,onClose:s},v),e.createElement(wt,Object.assign({in:p,unmountOnExit:!0},x),e.createElement(jd,{ref:n},c&&!d?e.createElement("form",{onSubmit:c},I):I,h&&e.createElement(Qd,null,e.createElement(qt,null)))))})),su=x.div`
|
|
1295
1295
|
display: ${({inline:e})=>e?"inline-block":"block"};
|
|
1296
1296
|
padding: ${({theme:e})=>e.spacing}px 0;
|
|
1297
1297
|
border-radius: ${({theme:e})=>e.radius}px;
|
|
@@ -2233,7 +2233,7 @@ var mi=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[hr
|
|
|
2233
2233
|
z-index: 1;
|
|
2234
2234
|
border-top: 1px solid ${({theme:e})=>e.palette.gray.light};
|
|
2235
2235
|
padding: ${({theme:e})=>2*e.spacing}px;
|
|
2236
|
-
`,Kv=({isOpen:e,direction:n,onClose:a,size:l="40vw",resizable:s=!1,minSize:c="20vw",maxSize:d="90vw",onResize:u,stickyHeader:p,stickyFooter:h,confirmOnClose:g,allowBackgroundScroll:f=!1,children:b})=>{const v=300,x=jv(l,n),y=jv(c,n),w=jv(d,n),E=Math.min(y,w),C=Math.max(y,w),I=Math.max(E,Math.min(x,C));"production"!==process.env.NODE_ENV&&(y>w&&console.warn(`Drawer: minSize (${y}px) が maxSize (${w}px) より大きいです。自動補正します。`),(x<E||x>C)&&console.warn(`Drawer: size (${x}px) が min/max の範囲外です。自動補正します。`));const[k,A]=r(!1),[M,$]=r(!1),[D,S]=r(I),N=i(!1),O=i(0),L=i(0),H=i(!1),[V,R]=r(!1),[Z,z]=r(null),[T,B]=r(!1),P=t.useMemo((()=>{if(!g)return null;const e="string"==typeof g?{message:g}:g;return{title:e.title||"確認",message:e.message||"変更内容が保存されていません。閉じてもよろしいですか?",confirmText:e.confirmText||"変更を破棄して閉じる",cancelText:e.cancelText||"編集を続ける",buttonColor:e.buttonColor||"danger"}}),[g]);o((()=>{const e=jv(l,n),t=jv(c,n),r=jv(d,n),i=Math.min(t,r),o=Math.max(t,r),a=Math.max(i,Math.min(e,o));"production"!==process.env.NODE_ENV&&(t>r&&console.warn(`Drawer: minSize (${t}px) が maxSize (${r}px) より大きいです。自動補正します。`),(e<i||e>o)&&console.warn(`Drawer: size (${e}px) が min/max の範囲外です。自動補正します。`)),S(a)}),[l,c,d,n]),o((()=>{if(e){A(!0);const e=setTimeout((()=>{$(!0)}),16);return()=>clearTimeout(e)}if(k){$(!1);const e=setTimeout((()=>{A(!1)}),v);return()=>clearTimeout(e)}}),[e,k]),o((()=>{if(!f&&e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}}),[e,f]);const G=m((e=>{if(!N.current)return;const t="left"===n||"right"===n;let r;if(e instanceof TouchEvent){const n=e.touches[0]||e.changedTouches[0];r=t?n.clientX:n.clientY}else r=t?e.clientX:e.clientY;let i=r-O.current;"right"===n&&(i=-i),"bottom"===n&&(i=-i);let o=L.current+i;o=Math.max(E,Math.min(C,o)),S(o),null==u||u(o)}),[n,E,C,u]),_=m((()=>{N.current=!1,document.body.style.userSelect="",document.body.style.cursor="",H.current=!0,setTimeout((()=>{H.current=!1}),100)}),[]),F=m((e=>{if(!s)return;e.preventDefault(),e.stopPropagation(),N.current=!0;const t="left"===n||"right"===n;let r;r="touches"in e&&e.touches.length>0?t?e.touches[0].clientX:e.touches[0].clientY:"changedTouches"in e&&e.changedTouches.length>0?t?e.changedTouches[0].clientX:e.changedTouches[0].clientY:t?e.clientX:e.clientY,O.current=r,L.current=D,document.body.style.userSelect="none",document.body.style.cursor=t?"ew-resize":"ns-resize"}),[s,n,D]),j=m((e=>{F(e),B(!0)}),[F]),W=m((()=>{B(!1)}),[]),Y=m((()=>{B(!1)}),[]);o((()=>{if(!s)return;const e=e=>{N.current&&G(e)},t=()=>{N.current&&_()},n=e=>{N.current&&G(e)},r=()=>{N.current&&_()};return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),window.addEventListener("touchmove",n),window.addEventListener("touchend",r),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t),window.removeEventListener("touchmove",n),window.removeEventListener("touchend",r)}}),[s,G,_]);const X=m((e=>{P?(z(e),R(!0)):null==a||a(e)}),[P,a]);o((()=>{const t=t=>{"Escape"===t.key&&e&&!V&&X("escapeKey")};return e&&window.addEventListener("keydown",t),()=>{window.removeEventListener("keydown",t)}}),[e,V,X]);return k?t.createElement(t.Fragment,null,P&&t.createElement(lu,{isOpen:V,title:P.title,confirmText:P.confirmText,cancelText:P.cancelText,buttonColor:P.buttonColor,
|
|
2236
|
+
`,Kv=({isOpen:e,direction:n,onClose:a,size:l="40vw",resizable:s=!1,minSize:c="20vw",maxSize:d="90vw",onResize:u,stickyHeader:p,stickyFooter:h,confirmOnClose:g,allowBackgroundScroll:f=!1,children:b})=>{const v=300,x=jv(l,n),y=jv(c,n),w=jv(d,n),E=Math.min(y,w),C=Math.max(y,w),I=Math.max(E,Math.min(x,C));"production"!==process.env.NODE_ENV&&(y>w&&console.warn(`Drawer: minSize (${y}px) が maxSize (${w}px) より大きいです。自動補正します。`),(x<E||x>C)&&console.warn(`Drawer: size (${x}px) が min/max の範囲外です。自動補正します。`));const[k,A]=r(!1),[M,$]=r(!1),[D,S]=r(I),N=i(!1),O=i(0),L=i(0),H=i(!1),[V,R]=r(!1),[Z,z]=r(null),[T,B]=r(!1),P=t.useMemo((()=>{if(!g)return null;const e="string"==typeof g?{message:g}:g;return{title:e.title||"確認",message:e.message||"変更内容が保存されていません。閉じてもよろしいですか?",confirmText:e.confirmText||"変更を破棄して閉じる",cancelText:e.cancelText||"編集を続ける",buttonColor:e.buttonColor||"danger"}}),[g]);o((()=>{const e=jv(l,n),t=jv(c,n),r=jv(d,n),i=Math.min(t,r),o=Math.max(t,r),a=Math.max(i,Math.min(e,o));"production"!==process.env.NODE_ENV&&(t>r&&console.warn(`Drawer: minSize (${t}px) が maxSize (${r}px) より大きいです。自動補正します。`),(e<i||e>o)&&console.warn(`Drawer: size (${e}px) が min/max の範囲外です。自動補正します。`)),S(a)}),[l,c,d,n]),o((()=>{if(e){A(!0);const e=setTimeout((()=>{$(!0)}),16);return()=>clearTimeout(e)}if(k){$(!1);const e=setTimeout((()=>{A(!1)}),v);return()=>clearTimeout(e)}}),[e,k]),o((()=>{if(!f&&e){const e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}}}),[e,f]);const G=m((e=>{if(!N.current)return;const t="left"===n||"right"===n;let r;if(e instanceof TouchEvent){const n=e.touches[0]||e.changedTouches[0];r=t?n.clientX:n.clientY}else r=t?e.clientX:e.clientY;let i=r-O.current;"right"===n&&(i=-i),"bottom"===n&&(i=-i);let o=L.current+i;o=Math.max(E,Math.min(C,o)),S(o),null==u||u(o)}),[n,E,C,u]),_=m((()=>{N.current=!1,document.body.style.userSelect="",document.body.style.cursor="",H.current=!0,setTimeout((()=>{H.current=!1}),100)}),[]),F=m((e=>{if(!s)return;e.preventDefault(),e.stopPropagation(),N.current=!0;const t="left"===n||"right"===n;let r;r="touches"in e&&e.touches.length>0?t?e.touches[0].clientX:e.touches[0].clientY:"changedTouches"in e&&e.changedTouches.length>0?t?e.changedTouches[0].clientX:e.changedTouches[0].clientY:t?e.clientX:e.clientY,O.current=r,L.current=D,document.body.style.userSelect="none",document.body.style.cursor=t?"ew-resize":"ns-resize"}),[s,n,D]),j=m((e=>{F(e),B(!0)}),[F]),W=m((()=>{B(!1)}),[]),Y=m((()=>{B(!1)}),[]);o((()=>{if(!s)return;const e=e=>{N.current&&G(e)},t=()=>{N.current&&_()},n=e=>{N.current&&G(e)},r=()=>{N.current&&_()};return window.addEventListener("mousemove",e),window.addEventListener("mouseup",t),window.addEventListener("touchmove",n),window.addEventListener("touchend",r),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",t),window.removeEventListener("touchmove",n),window.removeEventListener("touchend",r)}}),[s,G,_]);const X=m((e=>{P?(z(e),R(!0)):null==a||a(e)}),[P,a]);o((()=>{const t=t=>{"Escape"===t.key&&e&&!V&&X("escapeKey")};return e&&window.addEventListener("keydown",t),()=>{window.removeEventListener("keydown",t)}}),[e,V,X]);return k?t.createElement(t.Fragment,null,P&&t.createElement(lu,{isOpen:V,title:P.title,confirmText:P.confirmText,cancelText:P.cancelText,buttonColor:P.buttonColor,onConfirm:()=>{R(!1),Z&&a&&a(Z),z(null)},onClose:()=>(R(!1),void z(null))},P.message),t.createElement(Kd,null,f?t.createElement(Yv,{direction:n,currentSize:D,shouldShow:M,transitionDuration:v},s&&t.createElement(Jv,{direction:n,"data-testid":"resize-bar",active:T}),s&&t.createElement(Xv,{direction:n,"data-testid":"resize-handle",onMouseDown:F,onTouchStart:j,onTouchEnd:W,onTouchCancel:Y,onMouseEnter:()=>B(!0),onMouseLeave:()=>B(!1)}),p&&t.createElement(Uv,null,p),t.createElement(Qv,null,b),h&&t.createElement(qv,null,h)):t.createElement(Wv,{shouldShow:M,transitionDuration:v,onClick:e=>{N.current||H.current||e.target===e.currentTarget&&X("backdropClick")}},t.createElement(Yv,{direction:n,currentSize:D,shouldShow:M,transitionDuration:v},s&&t.createElement(Jv,{direction:n,"data-testid":"resize-bar",active:T}),s&&t.createElement(Xv,{direction:n,"data-testid":"resize-handle",onMouseDown:F,onTouchStart:j,onTouchEnd:W,onTouchCancel:Y,onMouseEnter:()=>B(!0),onMouseLeave:()=>B(!1)}),p&&t.createElement(Uv,null,p),t.createElement(Qv,null,b),h&&t.createElement(qv,null,h))))):null},ex={small:{arrowIconSize:16,arrowButtonPadding:"6px"},medium:{arrowIconSize:18,arrowButtonPadding:"8px"},large:{arrowIconSize:20,arrowButtonPadding:"10px"}},tx=x.div`
|
|
2237
2237
|
display: inline-flex;
|
|
2238
2238
|
`,nx=x(rn)`
|
|
2239
2239
|
border-top-right-radius: 0px;
|