@rockshin/tao-ui 0.0.2 → 0.0.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/dist/components/breadcrumb/breadcrumb.css +2 -976
- package/dist/components/button/button.css +2 -976
- package/dist/components/checkbox/checkbox.css +3 -976
- package/dist/components/collapsible/collapsible.css +2 -976
- package/dist/components/context-menu/context-menu.css +1 -1141
- package/dist/components/context-menu/context-menu.js +10 -8
- package/dist/components/date-picker/calendar/month-grid.d.ts +1 -1
- package/dist/components/date-picker/calendar/time-panel.d.ts +1 -1
- package/dist/components/date-picker/calendar/year-grid.d.ts +1 -1
- package/dist/components/date-picker/date-picker.css +23 -1147
- package/dist/components/date-picker/date-picker.js +9 -7
- package/dist/components/date-picker/range-picker.js +9 -7
- package/dist/components/drawer/drawer.css +29 -1006
- package/dist/components/drawer/drawer.js +27 -18
- package/dist/components/dropdown/dropdown.css +0 -975
- package/dist/components/dropdown/dropdown.js +17 -15
- package/dist/components/form-field/form.css +4 -977
- package/dist/components/input/input.css +0 -1134
- package/dist/components/menu/menu-render.js +11 -8
- package/dist/components/menu/menu.css +4 -978
- package/dist/components/modal/modal.css +7 -981
- package/dist/components/modal/modal.js +27 -18
- package/dist/components/pagination/pagination.css +4 -977
- package/dist/components/pagination/pagination.js +3 -1
- package/dist/components/radio/radio.css +4 -977
- package/dist/components/scroll-area/scroll-area.css +11 -981
- package/dist/components/select/mobile-select.css +9 -976
- package/dist/components/select/mobile-select.d.ts +4 -1
- package/dist/components/select/mobile-select.js +103 -121
- package/dist/components/select/select.css +31 -1150
- package/dist/components/select/select.d.ts +58 -4
- package/dist/components/select/select.js +356 -410
- package/dist/components/spinner/spinner.css +97 -0
- package/dist/components/spinner/spinner.d.ts +26 -0
- package/dist/components/spinner/spinner.js +229 -0
- package/dist/components/splitter/splitter.css +7 -978
- package/dist/components/switch/switch.css +8 -981
- package/dist/components/table/table.css +13 -992
- package/dist/components/tabs/tabs.css +4 -977
- package/dist/components/tag/tag.css +6 -977
- package/dist/components/textarea/textarea.css +0 -1134
- package/dist/index.d.ts +32 -29
- package/dist/index.js +6 -3
- package/dist/layouts/stack/layout.css +0 -975
- package/dist/provider/tao-provider.d.ts +17 -1
- package/dist/provider/tao-provider.js +53 -15
- package/dist/theme/control.css +35 -983
- package/dist/theme/theme.css +74 -902
- package/package.json +13 -16
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { useEffect, useRef } from "react";
|
|
4
|
+
import { TaoPortalScope } from "../../provider/tao-provider.js";
|
|
4
5
|
import { cx } from "../../utils/semantic.js";
|
|
5
6
|
import { Button } from "../button/button.js";
|
|
6
7
|
import "./modal.css";
|
|
7
8
|
import * as __rspack_external__radix_ui_react_dialog_6b867f3d from "@radix-ui/react-dialog";
|
|
8
9
|
function Modal(t0) {
|
|
9
|
-
const $ = c(
|
|
10
|
+
const $ = c(87);
|
|
10
11
|
const { open, onClose, title, footer, onOk, okText: t1, cancelText: t2, confirmLoading, okButtonProps, cancelButtonProps, width: t3, centered: t4, closable: t5, maskClosable: t6, keyboard: t7, afterClose, destroyOnHidden: t8, children, classNames, styles: stylesProp } = t0;
|
|
11
12
|
const okText = void 0 === t1 ? "OK" : t1;
|
|
12
13
|
const cancelText = void 0 === t2 ? "Cancel" : t2;
|
|
@@ -302,32 +303,40 @@ function Modal(t0) {
|
|
|
302
303
|
$[76] = t38;
|
|
303
304
|
} else t38 = $[76];
|
|
304
305
|
let t39;
|
|
305
|
-
if ($[77] !==
|
|
306
|
-
t39 = /*#__PURE__*/ jsxs(
|
|
307
|
-
forceMount: forceMount,
|
|
306
|
+
if ($[77] !== t23 || $[78] !== t38) {
|
|
307
|
+
t39 = /*#__PURE__*/ jsxs(TaoPortalScope, {
|
|
308
308
|
children: [
|
|
309
309
|
t23,
|
|
310
310
|
t38
|
|
311
311
|
]
|
|
312
312
|
});
|
|
313
|
-
$[77] =
|
|
314
|
-
$[78] =
|
|
315
|
-
$[79] =
|
|
316
|
-
|
|
317
|
-
} else t39 = $[80];
|
|
313
|
+
$[77] = t23;
|
|
314
|
+
$[78] = t38;
|
|
315
|
+
$[79] = t39;
|
|
316
|
+
} else t39 = $[79];
|
|
318
317
|
let t40;
|
|
319
|
-
if ($[
|
|
320
|
-
t40 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_6b867f3d.
|
|
318
|
+
if ($[80] !== forceMount || $[81] !== t39) {
|
|
319
|
+
t40 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_6b867f3d.Portal, {
|
|
320
|
+
forceMount: forceMount,
|
|
321
|
+
children: t39
|
|
322
|
+
});
|
|
323
|
+
$[80] = forceMount;
|
|
324
|
+
$[81] = t39;
|
|
325
|
+
$[82] = t40;
|
|
326
|
+
} else t40 = $[82];
|
|
327
|
+
let t41;
|
|
328
|
+
if ($[83] !== open || $[84] !== t19 || $[85] !== t40) {
|
|
329
|
+
t41 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_6b867f3d.Root, {
|
|
321
330
|
open: open,
|
|
322
331
|
onOpenChange: t19,
|
|
323
|
-
children:
|
|
332
|
+
children: t40
|
|
324
333
|
});
|
|
325
|
-
$[
|
|
326
|
-
$[
|
|
327
|
-
$[
|
|
328
|
-
$[
|
|
329
|
-
} else
|
|
330
|
-
return
|
|
334
|
+
$[83] = open;
|
|
335
|
+
$[84] = t19;
|
|
336
|
+
$[85] = t40;
|
|
337
|
+
$[86] = t41;
|
|
338
|
+
} else t41 = $[86];
|
|
339
|
+
return t41;
|
|
331
340
|
}
|
|
332
341
|
function CloseIcon() {
|
|
333
342
|
const $ = c(1);
|