@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,6 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
3
|
import { useEffect, useRef, useState } from "react";
|
|
4
|
+
import { TaoPortalScope } from "../../provider/tao-provider.js";
|
|
4
5
|
import { cx } from "../../utils/semantic.js";
|
|
5
6
|
import "./drawer.css";
|
|
6
7
|
import * as __rspack_external__radix_ui_react_dialog_6b867f3d from "@radix-ui/react-dialog";
|
|
@@ -10,7 +11,7 @@ const SIZE_PRESET = {
|
|
|
10
11
|
};
|
|
11
12
|
const MIN_DRAG_SIZE = 200;
|
|
12
13
|
function Drawer(t0) {
|
|
13
|
-
const $ = c(
|
|
14
|
+
const $ = c(90);
|
|
14
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;
|
|
15
16
|
const placement = void 0 === t1 ? "right" : t1;
|
|
16
17
|
const closable = void 0 === t2 ? true : t2;
|
|
@@ -326,32 +327,40 @@ function Drawer(t0) {
|
|
|
326
327
|
$[79] = t27;
|
|
327
328
|
} else t27 = $[79];
|
|
328
329
|
let t28;
|
|
329
|
-
if ($[80] !==
|
|
330
|
-
t28 = /*#__PURE__*/ jsxs(
|
|
331
|
-
forceMount: forceMount,
|
|
330
|
+
if ($[80] !== t14 || $[81] !== t27) {
|
|
331
|
+
t28 = /*#__PURE__*/ jsxs(TaoPortalScope, {
|
|
332
332
|
children: [
|
|
333
333
|
t14,
|
|
334
334
|
t27
|
|
335
335
|
]
|
|
336
336
|
});
|
|
337
|
-
$[80] =
|
|
338
|
-
$[81] =
|
|
339
|
-
$[82] =
|
|
340
|
-
|
|
341
|
-
} else t28 = $[83];
|
|
337
|
+
$[80] = t14;
|
|
338
|
+
$[81] = t27;
|
|
339
|
+
$[82] = t28;
|
|
340
|
+
} else t28 = $[82];
|
|
342
341
|
let t29;
|
|
343
|
-
if ($[
|
|
344
|
-
t29 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_6b867f3d.
|
|
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, {
|
|
345
354
|
open: open,
|
|
346
355
|
onOpenChange: t13,
|
|
347
|
-
children:
|
|
356
|
+
children: t29
|
|
348
357
|
});
|
|
349
|
-
$[
|
|
350
|
-
$[
|
|
351
|
-
$[
|
|
352
|
-
$[
|
|
353
|
-
} else
|
|
354
|
-
return
|
|
358
|
+
$[86] = open;
|
|
359
|
+
$[87] = t13;
|
|
360
|
+
$[88] = t29;
|
|
361
|
+
$[89] = t30;
|
|
362
|
+
} else t30 = $[89];
|
|
363
|
+
return t30;
|
|
355
364
|
}
|
|
356
365
|
function CloseIcon() {
|
|
357
366
|
const $ = c(1);
|