@rockshin/tao-ui 0.0.1 → 0.0.3

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.
Files changed (71) hide show
  1. package/dist/components/breadcrumb/breadcrumb.css +1091 -0
  2. package/dist/components/breadcrumb/breadcrumb.d.ts +43 -0
  3. package/dist/components/breadcrumb/breadcrumb.js +268 -0
  4. package/dist/components/button/button.css +46 -21
  5. package/dist/components/checkbox/checkbox.css +33 -12
  6. package/dist/components/collapsible/collapsible.css +1026 -0
  7. package/dist/components/collapsible/collapsible.d.ts +39 -0
  8. package/dist/components/collapsible/collapsible.js +168 -0
  9. package/dist/components/context-menu/context-menu.css +1149 -0
  10. package/dist/components/context-menu/context-menu.d.ts +19 -0
  11. package/dist/components/context-menu/context-menu.js +106 -0
  12. package/dist/components/date-picker/calendar/month-grid.d.ts +1 -1
  13. package/dist/components/date-picker/calendar/time-panel.d.ts +1 -1
  14. package/dist/components/date-picker/calendar/year-grid.d.ts +1 -1
  15. package/dist/components/date-picker/date-picker.css +87 -17
  16. package/dist/components/date-picker/date-picker.js +9 -7
  17. package/dist/components/date-picker/range-picker.js +9 -7
  18. package/dist/components/drawer/drawer.css +128 -15
  19. package/dist/components/drawer/drawer.d.ts +36 -3
  20. package/dist/components/drawer/drawer.js +323 -121
  21. package/dist/components/dropdown/dropdown.css +999 -0
  22. package/dist/components/dropdown/dropdown.d.ts +45 -0
  23. package/dist/components/dropdown/dropdown.js +383 -0
  24. package/dist/components/form-field/form.css +33 -12
  25. package/dist/components/input/input.css +86 -14
  26. package/dist/components/menu/menu-render.d.ts +89 -0
  27. package/dist/components/menu/menu-render.js +379 -0
  28. package/dist/components/menu/menu.css +1145 -0
  29. package/dist/components/modal/confirm-dialog.d.ts +37 -0
  30. package/dist/components/modal/confirm-dialog.js +193 -0
  31. package/dist/components/modal/confirm.d.ts +13 -0
  32. package/dist/components/modal/confirm.js +56 -0
  33. package/dist/components/modal/index.d.ts +21 -0
  34. package/dist/components/modal/index.js +18 -0
  35. package/dist/components/modal/modal.css +1169 -0
  36. package/dist/components/modal/modal.d.ts +50 -0
  37. package/dist/components/modal/modal.js +362 -0
  38. package/dist/components/modal/use-modal.d.ts +21 -0
  39. package/dist/components/modal/use-modal.js +83 -0
  40. package/dist/components/pagination/pagination.css +33 -12
  41. package/dist/components/pagination/pagination.js +3 -1
  42. package/dist/components/radio/radio.css +33 -12
  43. package/dist/components/scroll-area/scroll-area.css +33 -12
  44. package/dist/components/select/mobile-select.css +75 -13
  45. package/dist/components/select/mobile-select.d.ts +4 -1
  46. package/dist/components/select/mobile-select.js +103 -107
  47. package/dist/components/select/select.css +167 -26
  48. package/dist/components/select/select.d.ts +62 -4
  49. package/dist/components/select/select.js +359 -377
  50. package/dist/components/spinner/spinner.css +1084 -0
  51. package/dist/components/spinner/spinner.d.ts +26 -0
  52. package/dist/components/spinner/spinner.js +229 -0
  53. package/dist/components/splitter/splitter.css +33 -12
  54. package/dist/components/switch/switch.css +33 -12
  55. package/dist/components/table/table.css +57 -18
  56. package/dist/components/table/table.d.ts +17 -2
  57. package/dist/components/table/table.js +214 -206
  58. package/dist/components/tabs/tabs.css +36 -17
  59. package/dist/components/tag/tag.css +33 -12
  60. package/dist/components/textarea/textarea.css +1246 -0
  61. package/dist/components/textarea/textarea.d.ts +19 -0
  62. package/dist/components/textarea/textarea.js +181 -0
  63. package/dist/index.d.ts +25 -18
  64. package/dist/index.js +22 -15
  65. package/dist/layouts/stack/layout.css +33 -12
  66. package/dist/provider/tao-provider.d.ts +17 -1
  67. package/dist/provider/tao-provider.js +53 -15
  68. package/dist/theme/control.css +86 -13
  69. package/dist/theme/theme.css +33 -12
  70. package/llms.txt +7 -6
  71. package/package.json +18 -13
@@ -1,17 +1,50 @@
1
- import type { ReactNode } from 'react';
1
+ import { type ReactNode } from 'react';
2
2
  import { type SemanticClassNames, type SemanticStyles } from '../../utils/semantic';
3
3
  import './drawer.css';
4
4
  export type DrawerPlacement = 'top' | 'right' | 'bottom' | 'left';
5
- export type DrawerSemanticPart = 'root' | 'header' | 'title' | 'body' | 'overlay';
5
+ export type DrawerSize = 'default' | 'large';
6
+ export type DrawerSemanticPart = 'root' | 'overlay' | 'header' | 'title' | 'extra' | 'body' | 'footer' | 'close' | 'dragger';
7
+ export interface DrawerResizableConfig {
8
+ onResize?: (size: number) => void;
9
+ onResizeStart?: () => void;
10
+ onResizeEnd?: () => void;
11
+ }
6
12
  export interface DrawerProps {
7
13
  open: boolean;
8
14
  onClose?: () => void;
9
15
  title?: ReactNode;
16
+ /** Extra content rendered on the trailing side of the header. */
17
+ extra?: ReactNode;
18
+ /** Footer content; renders a bordered footer area when provided. */
19
+ footer?: ReactNode;
10
20
  placement?: DrawerPlacement;
21
+ /** Preset drawer size: `default` (378) / `large` (736). `width`/`height` override it. */
22
+ size?: DrawerSize;
11
23
  width?: number | string;
12
24
  height?: number | string;
25
+ /** Show the close (×) button. Defaults to true. */
26
+ closable?: boolean;
27
+ /** Custom close icon. */
28
+ closeIcon?: ReactNode;
29
+ /** Close when clicking the mask. Defaults to true. */
30
+ maskClosable?: boolean;
31
+ /** Render the mask/overlay. Defaults to true. */
32
+ mask?: boolean;
33
+ /** Close on Esc key. Defaults to true. */
34
+ keyboard?: boolean;
35
+ /** Allow resizing by dragging the inner edge. Pass an object for resize callbacks. */
36
+ resizable?: boolean | DrawerResizableConfig;
37
+ /** Called after open transitions in either direction. */
38
+ afterOpenChange?: (open: boolean) => void;
39
+ /** Called after the drawer has fully closed. */
40
+ afterClose?: () => void;
41
+ /**
42
+ * Unmount children when closed. Defaults to `true`.
43
+ * Set `false` to keep children mounted and preserve their state across open/close.
44
+ */
45
+ destroyOnHidden?: boolean;
13
46
  children?: ReactNode;
14
47
  classNames?: SemanticClassNames<DrawerSemanticPart>;
15
48
  styles?: SemanticStyles<DrawerSemanticPart>;
16
49
  }
17
- export declare function Drawer({ open, onClose, title, placement, width, height, children, classNames, styles: stylesProp, }: DrawerProps): import("react/jsx-runtime").JSX.Element;
50
+ export declare function Drawer({ open, onClose, title, extra, footer, placement, size, width, height, closable, closeIcon, maskClosable, mask, keyboard, resizable, afterOpenChange, afterClose, destroyOnHidden, children, classNames, styles: stylesProp, }: DrawerProps): import("react/jsx-runtime").JSX.Element;
@@ -1,164 +1,366 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { c } from "react/compiler-runtime";
3
+ import { useEffect, useRef, useState } from "react";
4
+ import { TaoPortalScope } from "../../provider/tao-provider.js";
3
5
  import { cx } from "../../utils/semantic.js";
4
6
  import "./drawer.css";
5
7
  import * as __rspack_external__radix_ui_react_dialog_6b867f3d from "@radix-ui/react-dialog";
8
+ const SIZE_PRESET = {
9
+ default: 378,
10
+ large: 736
11
+ };
12
+ const MIN_DRAG_SIZE = 200;
6
13
  function Drawer(t0) {
7
- const $ = c(42);
8
- const { open, onClose, title, placement: t1, width, height, children, classNames, styles: stylesProp } = t0;
14
+ const $ = c(90);
15
+ const { open, onClose, title, extra, footer, placement: t1, size, width, height, closable: t2, closeIcon, maskClosable: t3, mask: t4, keyboard: t5, resizable, afterOpenChange, afterClose, destroyOnHidden: t6, children, classNames, styles: stylesProp } = t0;
9
16
  const placement = void 0 === t1 ? "right" : t1;
17
+ const closable = void 0 === t2 ? true : t2;
18
+ const maskClosable = void 0 === t3 ? true : t3;
19
+ const mask = void 0 === t4 ? true : t4;
20
+ const keyboard = void 0 === t5 ? true : t5;
21
+ const destroyOnHidden = void 0 === t6 ? true : t6;
22
+ const prevOpen = useRef(open);
23
+ let t7;
24
+ let t8;
25
+ if ($[0] !== afterClose || $[1] !== afterOpenChange || $[2] !== open) {
26
+ t7 = ()=>{
27
+ if (prevOpen.current !== open) {
28
+ afterOpenChange?.(open);
29
+ if (!open) afterClose?.();
30
+ prevOpen.current = open;
31
+ }
32
+ };
33
+ t8 = [
34
+ open,
35
+ afterOpenChange,
36
+ afterClose
37
+ ];
38
+ $[0] = afterClose;
39
+ $[1] = afterOpenChange;
40
+ $[2] = open;
41
+ $[3] = t7;
42
+ $[4] = t8;
43
+ } else {
44
+ t7 = $[3];
45
+ t8 = $[4];
46
+ }
47
+ useEffect(t7, t8);
10
48
  const isHorizontal = "left" === placement || "right" === placement;
49
+ const sizePx = size ? SIZE_PRESET[size] : void 0;
50
+ const resizeCfg = "object" == typeof resizable ? resizable : void 0;
51
+ const isResizable = !!resizable;
52
+ const contentRef = useRef(null);
53
+ const dragRef = useRef(null);
54
+ const [drag, setDrag] = useState(null);
55
+ const dragSize = drag && drag.horizontal === isHorizontal ? drag.size : null;
56
+ let t9;
57
+ if ($[5] !== isHorizontal || $[6] !== resizeCfg) {
58
+ t9 = (e)=>{
59
+ const el = contentRef.current;
60
+ if (!el) return;
61
+ e.preventDefault();
62
+ e.currentTarget.setPointerCapture(e.pointerId);
63
+ const rect = el.getBoundingClientRect();
64
+ dragRef.current = {
65
+ startPos: isHorizontal ? e.clientX : e.clientY,
66
+ startSize: isHorizontal ? rect.width : rect.height
67
+ };
68
+ resizeCfg?.onResizeStart?.();
69
+ };
70
+ $[5] = isHorizontal;
71
+ $[6] = resizeCfg;
72
+ $[7] = t9;
73
+ } else t9 = $[7];
74
+ const onDraggerPointerDown = t9;
75
+ let t10;
76
+ if ($[8] !== isHorizontal || $[9] !== placement || $[10] !== resizeCfg) {
77
+ t10 = (e_0)=>{
78
+ const dragStart = dragRef.current;
79
+ if (!dragStart) return;
80
+ const pos = isHorizontal ? e_0.clientX : e_0.clientY;
81
+ let delta = pos - dragStart.startPos;
82
+ if ("right" === placement || "bottom" === placement) delta = -delta;
83
+ const max = isHorizontal ? window.innerWidth : window.innerHeight;
84
+ const next = Math.max(MIN_DRAG_SIZE, Math.min(dragStart.startSize + delta, max));
85
+ setDrag({
86
+ horizontal: isHorizontal,
87
+ size: next
88
+ });
89
+ resizeCfg?.onResize?.(next);
90
+ };
91
+ $[8] = isHorizontal;
92
+ $[9] = placement;
93
+ $[10] = resizeCfg;
94
+ $[11] = t10;
95
+ } else t10 = $[11];
96
+ const onDraggerPointerMove = t10;
97
+ let t11;
98
+ if ($[12] !== resizeCfg) {
99
+ t11 = (e_1)=>{
100
+ if (!dragRef.current) return;
101
+ dragRef.current = null;
102
+ e_1.currentTarget.releasePointerCapture?.(e_1.pointerId);
103
+ resizeCfg?.onResizeEnd?.();
104
+ };
105
+ $[12] = resizeCfg;
106
+ $[13] = t11;
107
+ } else t11 = $[13];
108
+ const onDraggerPointerUp = t11;
109
+ const t12 = stylesProp?.root;
11
110
  let contentStyle;
12
- if ($[0] !== height || $[1] !== isHorizontal || $[2] !== width) {
13
- contentStyle = {};
14
- if (isHorizontal && null != width) contentStyle.width = "number" == typeof width ? `${width}px` : width;
15
- if (!isHorizontal && null != height) contentStyle.height = "number" == typeof height ? `${height}px` : height;
16
- $[0] = height;
17
- $[1] = isHorizontal;
18
- $[2] = width;
19
- $[3] = contentStyle;
20
- } else contentStyle = $[3];
21
- let t2;
22
- if ($[4] !== onClose) {
23
- t2 = (v)=>{
111
+ if ($[14] !== dragSize || $[15] !== height || $[16] !== isHorizontal || $[17] !== sizePx || $[18] !== t12 || $[19] !== width) {
112
+ contentStyle = {
113
+ ...t12
114
+ };
115
+ if (isHorizontal) {
116
+ const w = dragSize ?? width ?? sizePx;
117
+ if (null != w) contentStyle.width = "number" == typeof w ? `${w}px` : w;
118
+ } else {
119
+ const h = dragSize ?? height ?? sizePx;
120
+ if (null != h) contentStyle.height = "number" == typeof h ? `${h}px` : h;
121
+ }
122
+ $[14] = dragSize;
123
+ $[15] = height;
124
+ $[16] = isHorizontal;
125
+ $[17] = sizePx;
126
+ $[18] = t12;
127
+ $[19] = width;
128
+ $[20] = contentStyle;
129
+ } else contentStyle = $[20];
130
+ const keepAlive = !destroyOnHidden;
131
+ const forceMount = keepAlive ? true : void 0;
132
+ const showHeader = null != title || null != extra || closable;
133
+ let t13;
134
+ if ($[21] !== onClose) {
135
+ t13 = (v)=>{
24
136
  if (!v) onClose?.();
25
137
  };
26
- $[4] = onClose;
27
- $[5] = t2;
28
- } else t2 = $[5];
29
- const t3 = classNames?.overlay;
30
- let t4;
31
- if ($[6] !== t3) {
32
- t4 = cx(t3);
33
- $[6] = t3;
34
- $[7] = t4;
35
- } else t4 = $[7];
36
- const t5 = stylesProp?.overlay;
37
- let t6;
38
- if ($[8] !== t4 || $[9] !== t5) {
39
- t6 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_6b867f3d.Overlay, {
138
+ $[21] = onClose;
139
+ $[22] = t13;
140
+ } else t13 = $[22];
141
+ let t14;
142
+ if ($[23] !== classNames?.overlay || $[24] !== forceMount || $[25] !== mask || $[26] !== stylesProp?.overlay) {
143
+ t14 = mask && /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_6b867f3d.Overlay, {
144
+ forceMount: forceMount,
40
145
  "data-tao-drawer-overlay": "",
41
- className: t4,
42
- style: t5
146
+ className: cx(classNames?.overlay),
147
+ style: stylesProp?.overlay
43
148
  });
44
- $[8] = t4;
45
- $[9] = t5;
46
- $[10] = t6;
47
- } else t6 = $[10];
48
- const t7 = stylesProp?.root;
49
- let t8;
50
- if ($[11] !== contentStyle || $[12] !== t7) {
51
- t8 = {
52
- ...contentStyle,
53
- ...t7
149
+ $[23] = classNames?.overlay;
150
+ $[24] = forceMount;
151
+ $[25] = mask;
152
+ $[26] = stylesProp?.overlay;
153
+ $[27] = t14;
154
+ } else t14 = $[27];
155
+ const t15 = classNames?.root;
156
+ let t16;
157
+ if ($[28] !== t15) {
158
+ t16 = cx(t15);
159
+ $[28] = t15;
160
+ $[29] = t16;
161
+ } else t16 = $[29];
162
+ let t17;
163
+ if ($[30] !== keyboard) {
164
+ t17 = (e_2)=>{
165
+ if (!keyboard) e_2.preventDefault();
54
166
  };
55
- $[11] = contentStyle;
56
- $[12] = t7;
57
- $[13] = t8;
58
- } else t8 = $[13];
59
- const t9 = classNames?.root;
60
- let t10;
61
- if ($[14] !== t9) {
62
- t10 = cx(t9);
63
- $[14] = t9;
64
- $[15] = t10;
65
- } else t10 = $[15];
66
- let t11;
67
- if ($[16] !== classNames?.header || $[17] !== classNames?.title || $[18] !== onClose || $[19] !== stylesProp?.header || $[20] !== stylesProp?.title || $[21] !== title) {
68
- t11 = (null != title || null != onClose) && /*#__PURE__*/ jsxs("div", {
167
+ $[30] = keyboard;
168
+ $[31] = t17;
169
+ } else t17 = $[31];
170
+ let t18;
171
+ let t19;
172
+ if ($[32] !== maskClosable) {
173
+ t18 = (e_3)=>{
174
+ if (!maskClosable) e_3.preventDefault();
175
+ };
176
+ t19 = (e_4)=>{
177
+ if (!maskClosable) e_4.preventDefault();
178
+ };
179
+ $[32] = maskClosable;
180
+ $[33] = t18;
181
+ $[34] = t19;
182
+ } else {
183
+ t18 = $[33];
184
+ t19 = $[34];
185
+ }
186
+ let t20;
187
+ if ($[35] !== classNames?.dragger || $[36] !== isResizable || $[37] !== onDraggerPointerDown || $[38] !== onDraggerPointerMove || $[39] !== onDraggerPointerUp || $[40] !== placement || $[41] !== stylesProp?.dragger) {
188
+ t20 = isResizable && /*#__PURE__*/ jsx("div", {
189
+ "data-tao-drawer-dragger": "",
190
+ "data-tao-placement": placement,
191
+ className: cx(classNames?.dragger),
192
+ style: stylesProp?.dragger,
193
+ onPointerDown: onDraggerPointerDown,
194
+ onPointerMove: onDraggerPointerMove,
195
+ onPointerUp: onDraggerPointerUp
196
+ });
197
+ $[35] = classNames?.dragger;
198
+ $[36] = isResizable;
199
+ $[37] = onDraggerPointerDown;
200
+ $[38] = onDraggerPointerMove;
201
+ $[39] = onDraggerPointerUp;
202
+ $[40] = placement;
203
+ $[41] = stylesProp?.dragger;
204
+ $[42] = t20;
205
+ } else t20 = $[42];
206
+ let t21;
207
+ if ($[43] !== classNames?.close || $[44] !== classNames?.extra || $[45] !== classNames?.header || $[46] !== classNames?.title || $[47] !== closable || $[48] !== closeIcon || $[49] !== extra || $[50] !== onClose || $[51] !== showHeader || $[52] !== stylesProp?.close || $[53] !== stylesProp?.extra || $[54] !== stylesProp?.header || $[55] !== stylesProp?.title || $[56] !== title) {
208
+ t21 = showHeader && /*#__PURE__*/ jsxs("div", {
69
209
  "data-tao-drawer-header": "",
70
210
  className: cx(classNames?.header),
71
211
  style: stylesProp?.header,
72
212
  children: [
73
- null != title && /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_6b867f3d.Title, {
213
+ null != title ? /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_6b867f3d.Title, {
74
214
  "data-tao-drawer-title": "",
75
215
  className: cx(classNames?.title),
76
216
  style: stylesProp?.title,
77
217
  children: title
218
+ }) : /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_6b867f3d.Title, {
219
+ "data-tao-drawer-title": "",
220
+ style: {
221
+ display: "none"
222
+ }
78
223
  }),
79
- null != onClose && /*#__PURE__*/ jsx("button", {
80
- type: "button",
81
- "data-tao-drawer-close": "",
82
- onClick: onClose,
83
- "aria-label": "Close",
84
- children: /*#__PURE__*/ jsx(CloseIcon, {})
224
+ /*#__PURE__*/ jsxs("div", {
225
+ "data-tao-drawer-actions": "",
226
+ children: [
227
+ null != extra && /*#__PURE__*/ jsx("div", {
228
+ "data-tao-drawer-extra": "",
229
+ className: cx(classNames?.extra),
230
+ style: stylesProp?.extra,
231
+ children: extra
232
+ }),
233
+ closable && /*#__PURE__*/ jsx("button", {
234
+ type: "button",
235
+ "data-tao-drawer-close": "",
236
+ className: cx(classNames?.close),
237
+ style: stylesProp?.close,
238
+ onClick: onClose,
239
+ "aria-label": "Close",
240
+ children: closeIcon ?? /*#__PURE__*/ jsx(CloseIcon, {})
241
+ })
242
+ ]
85
243
  })
86
244
  ]
87
245
  });
88
- $[16] = classNames?.header;
89
- $[17] = classNames?.title;
90
- $[18] = onClose;
91
- $[19] = stylesProp?.header;
92
- $[20] = stylesProp?.title;
93
- $[21] = title;
94
- $[22] = t11;
95
- } else t11 = $[22];
96
- const t12 = classNames?.body;
97
- let t13;
98
- if ($[23] !== t12) {
99
- t13 = cx(t12);
100
- $[23] = t12;
101
- $[24] = t13;
102
- } else t13 = $[24];
103
- const t14 = stylesProp?.body;
104
- let t15;
105
- if ($[25] !== children || $[26] !== t13 || $[27] !== t14) {
106
- t15 = /*#__PURE__*/ jsx("div", {
246
+ $[43] = classNames?.close;
247
+ $[44] = classNames?.extra;
248
+ $[45] = classNames?.header;
249
+ $[46] = classNames?.title;
250
+ $[47] = closable;
251
+ $[48] = closeIcon;
252
+ $[49] = extra;
253
+ $[50] = onClose;
254
+ $[51] = showHeader;
255
+ $[52] = stylesProp?.close;
256
+ $[53] = stylesProp?.extra;
257
+ $[54] = stylesProp?.header;
258
+ $[55] = stylesProp?.title;
259
+ $[56] = title;
260
+ $[57] = t21;
261
+ } else t21 = $[57];
262
+ const t22 = classNames?.body;
263
+ let t23;
264
+ if ($[58] !== t22) {
265
+ t23 = cx(t22);
266
+ $[58] = t22;
267
+ $[59] = t23;
268
+ } else t23 = $[59];
269
+ const t24 = stylesProp?.body;
270
+ let t25;
271
+ if ($[60] !== children || $[61] !== t23 || $[62] !== t24) {
272
+ t25 = /*#__PURE__*/ jsx("div", {
107
273
  "data-tao-drawer-body": "",
108
- className: t13,
109
- style: t14,
274
+ className: t23,
275
+ style: t24,
110
276
  children: children
111
277
  });
112
- $[25] = children;
113
- $[26] = t13;
114
- $[27] = t14;
115
- $[28] = t15;
116
- } else t15 = $[28];
117
- let t16;
118
- if ($[29] !== placement || $[30] !== t10 || $[31] !== t11 || $[32] !== t15 || $[33] !== t8) {
119
- t16 = /*#__PURE__*/ jsxs(__rspack_external__radix_ui_react_dialog_6b867f3d.Content, {
278
+ $[60] = children;
279
+ $[61] = t23;
280
+ $[62] = t24;
281
+ $[63] = t25;
282
+ } else t25 = $[63];
283
+ let t26;
284
+ if ($[64] !== classNames?.footer || $[65] !== footer || $[66] !== stylesProp?.footer) {
285
+ t26 = null != footer && /*#__PURE__*/ jsx("div", {
286
+ "data-tao-drawer-footer": "",
287
+ className: cx(classNames?.footer),
288
+ style: stylesProp?.footer,
289
+ children: footer
290
+ });
291
+ $[64] = classNames?.footer;
292
+ $[65] = footer;
293
+ $[66] = stylesProp?.footer;
294
+ $[67] = t26;
295
+ } else t26 = $[67];
296
+ let t27;
297
+ if ($[68] !== contentStyle || $[69] !== forceMount || $[70] !== placement || $[71] !== t16 || $[72] !== t17 || $[73] !== t18 || $[74] !== t19 || $[75] !== t20 || $[76] !== t21 || $[77] !== t25 || $[78] !== t26) {
298
+ t27 = /*#__PURE__*/ jsxs(__rspack_external__radix_ui_react_dialog_6b867f3d.Content, {
299
+ ref: contentRef,
300
+ forceMount: forceMount,
120
301
  "data-tao-drawer": "",
121
302
  "data-tao-placement": placement,
122
- style: t8,
123
- className: t10,
303
+ style: contentStyle,
304
+ className: t16,
124
305
  "aria-describedby": void 0,
306
+ onEscapeKeyDown: t17,
307
+ onPointerDownOutside: t18,
308
+ onInteractOutside: t19,
125
309
  children: [
126
- t11,
127
- t15
310
+ t20,
311
+ t21,
312
+ t25,
313
+ t26
128
314
  ]
129
315
  });
130
- $[29] = placement;
131
- $[30] = t10;
132
- $[31] = t11;
133
- $[32] = t15;
134
- $[33] = t8;
135
- $[34] = t16;
136
- } else t16 = $[34];
137
- let t17;
138
- if ($[35] !== t16 || $[36] !== t6) {
139
- t17 = /*#__PURE__*/ jsxs(__rspack_external__radix_ui_react_dialog_6b867f3d.Portal, {
316
+ $[68] = contentStyle;
317
+ $[69] = forceMount;
318
+ $[70] = placement;
319
+ $[71] = t16;
320
+ $[72] = t17;
321
+ $[73] = t18;
322
+ $[74] = t19;
323
+ $[75] = t20;
324
+ $[76] = t21;
325
+ $[77] = t25;
326
+ $[78] = t26;
327
+ $[79] = t27;
328
+ } else t27 = $[79];
329
+ let t28;
330
+ if ($[80] !== t14 || $[81] !== t27) {
331
+ t28 = /*#__PURE__*/ jsxs(TaoPortalScope, {
140
332
  children: [
141
- t6,
142
- t16
333
+ t14,
334
+ t27
143
335
  ]
144
336
  });
145
- $[35] = t16;
146
- $[36] = t6;
147
- $[37] = t17;
148
- } else t17 = $[37];
149
- let t18;
150
- if ($[38] !== open || $[39] !== t17 || $[40] !== t2) {
151
- t18 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_6b867f3d.Root, {
337
+ $[80] = t14;
338
+ $[81] = t27;
339
+ $[82] = t28;
340
+ } else t28 = $[82];
341
+ let t29;
342
+ if ($[83] !== forceMount || $[84] !== t28) {
343
+ t29 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_6b867f3d.Portal, {
344
+ forceMount: forceMount,
345
+ children: t28
346
+ });
347
+ $[83] = forceMount;
348
+ $[84] = t28;
349
+ $[85] = t29;
350
+ } else t29 = $[85];
351
+ let t30;
352
+ if ($[86] !== open || $[87] !== t13 || $[88] !== t29) {
353
+ t30 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_6b867f3d.Root, {
152
354
  open: open,
153
- onOpenChange: t2,
154
- children: t17
355
+ onOpenChange: t13,
356
+ children: t29
155
357
  });
156
- $[38] = open;
157
- $[39] = t17;
158
- $[40] = t2;
159
- $[41] = t18;
160
- } else t18 = $[41];
161
- return t18;
358
+ $[86] = open;
359
+ $[87] = t13;
360
+ $[88] = t29;
361
+ $[89] = t30;
362
+ } else t30 = $[89];
363
+ return t30;
162
364
  }
163
365
  function CloseIcon() {
164
366
  const $ = c(1);