@ws-ui/shared 1.8.5 → 1.9.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.
package/dist/index.es.js
CHANGED
|
@@ -13,10 +13,10 @@ import zc, { createPortal as jE } from "react-dom";
|
|
|
13
13
|
import { FdCloseNaked as HE, FdInfoBold as dc, FdWarningDanger as Wc, FdSanityCheckInfo as qE, FdDown as wl, FdRight as ZE, FdOutload as Hg, FdBulb as GE, FdInfoCircle as KE, FdSave as VE, FdMinusNaked as YE, FdPlusNaked as XE, FdDoubleArrowDown as JE, FdDoubleArrowUp as QE } from "@ws-ui/icons";
|
|
14
14
|
import { withEmotionCache as eO, ThemeContext as tO, keyframes as rO } from "@emotion/react";
|
|
15
15
|
import { Resizable as nO } from "re-resizable";
|
|
16
|
-
const iO = ({
|
|
17
|
-
e,
|
|
18
|
-
t
|
|
19
|
-
);
|
|
16
|
+
const iO = ({
|
|
17
|
+
children: e,
|
|
18
|
+
container: t = document.body
|
|
19
|
+
}) => jE(e, t);
|
|
20
20
|
var sh = function(t) {
|
|
21
21
|
return t.reduce(function(r, i) {
|
|
22
22
|
var a = i[0], s = i[1];
|
|
@@ -12310,7 +12310,11 @@ const bi = 30, Ql = 500, n$ = () => /* @__PURE__ */ j("div", { className: "h-2 w
|
|
|
12310
12310
|
)
|
|
12311
12311
|
] });
|
|
12312
12312
|
};
|
|
12313
|
-
function i$({
|
|
12313
|
+
function i$({
|
|
12314
|
+
children: e,
|
|
12315
|
+
viewBox: t = "0 0 24 24",
|
|
12316
|
+
...r
|
|
12317
|
+
}) {
|
|
12314
12318
|
return /* @__PURE__ */ j(
|
|
12315
12319
|
"svg",
|
|
12316
12320
|
{
|
|
@@ -12352,34 +12356,27 @@ function oL({
|
|
|
12352
12356
|
et(() => {
|
|
12353
12357
|
f.current && (f.current.indeterminate = !!t);
|
|
12354
12358
|
}, [t]);
|
|
12355
|
-
const v = g || t, p = [
|
|
12356
|
-
|
|
12357
|
-
|
|
12358
|
-
|
|
12359
|
-
|
|
12360
|
-
|
|
12361
|
-
|
|
12362
|
-
|
|
12363
|
-
|
|
12364
|
-
|
|
12365
|
-
|
|
12366
|
-
|
|
12367
|
-
|
|
12368
|
-
|
|
12369
|
-
|
|
12370
|
-
|
|
12371
|
-
|
|
12372
|
-
|
|
12373
|
-
|
|
12374
|
-
|
|
12375
|
-
|
|
12376
|
-
),
|
|
12377
|
-
/* @__PURE__ */ j("span", { className: "base-checkbox-control", children: v && m && // Use cloneElement to inject necessary props
|
|
12378
|
-
jg(m, { isChecked: g, isIndeterminate: t, className: "base-checkbox-icon" }) }),
|
|
12379
|
-
a && /* @__PURE__ */ j("span", { className: "base-checkbox-label", children: a })
|
|
12380
|
-
]
|
|
12381
|
-
}
|
|
12382
|
-
);
|
|
12359
|
+
const v = g || t, p = ["base-checkbox-container", s].join(" ");
|
|
12360
|
+
return /* @__PURE__ */ Re("label", { className: p, style: l, "data-invalid": r, children: [
|
|
12361
|
+
/* @__PURE__ */ j(
|
|
12362
|
+
"input",
|
|
12363
|
+
{
|
|
12364
|
+
ref: f,
|
|
12365
|
+
type: "checkbox",
|
|
12366
|
+
className: "base-checkbox-input",
|
|
12367
|
+
checked: g,
|
|
12368
|
+
...c,
|
|
12369
|
+
"aria-invalid": r || void 0
|
|
12370
|
+
}
|
|
12371
|
+
),
|
|
12372
|
+
/* @__PURE__ */ j("span", { className: "base-checkbox-control", children: v && m && // Use cloneElement to inject necessary props
|
|
12373
|
+
jg(m, {
|
|
12374
|
+
isChecked: g,
|
|
12375
|
+
isIndeterminate: t,
|
|
12376
|
+
className: "base-checkbox-icon"
|
|
12377
|
+
}) }),
|
|
12378
|
+
a && /* @__PURE__ */ j("span", { className: "base-checkbox-label", children: a })
|
|
12379
|
+
] });
|
|
12383
12380
|
}
|
|
12384
12381
|
function aL(e, t) {
|
|
12385
12382
|
const r = ze(!1);
|