@baishuyun/ui-base 6.21.0 → 6.22.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/Amap/index.js +1 -1
- package/dist/Calendar/{Calendar-DYI9CWYE.js → Calendar-C9LHoXQc.js} +1 -1
- package/dist/Calendar/index.js +3 -3
- package/dist/Card/index.js +1 -1
- package/dist/CheckBox/CheckBox-BErX3YWP.js +75 -0
- package/dist/CheckBox/CheckBox-Dp7hxT2F.js +37 -0
- package/dist/CheckBox/index.js +3 -3
- package/dist/ColorPicker/index.js +1 -1
- package/dist/ConfigProvider/index.js +1 -1
- package/dist/DatePicker/{DatePicker-CopVj7KA.js → DatePicker-ByZiiZPq.js} +1 -1
- package/dist/DatePicker/{DatePickerPanel-CLCEPUcL.js → DatePickerPanel-DiOVoMv4.js} +1 -1
- package/dist/DatePicker/index.js +2 -2
- package/dist/DropDown/index.js +1 -1
- package/dist/Editor/index.js +1068 -952
- package/dist/Gantt/index.js +1 -1
- package/dist/Icon/index.js +1 -1
- package/dist/InputTag/index.js +1 -1
- package/dist/Loading/index.js +1 -1
- package/dist/Modal/index.js +1 -1
- package/dist/NotFoundContent/index.js +1 -1
- package/dist/Overlay/index.js +1 -1
- package/dist/Radio/Radio-C0OAW-K-.js +96 -0
- package/dist/Radio/index.js +2 -2
- package/dist/ScrollBar/index.js +1 -1
- package/dist/Segmented/index.js +1 -1
- package/dist/Select/{Select-VIy6OKEj.js → Select-DryXF1Tp.js} +2 -2
- package/dist/Select/index.js +6 -6
- package/dist/Table/index.js +1 -1
- package/dist/Tabs/index.js +1 -1
- package/dist/Tooltip/index.js +1 -1
- package/dist/Tree/index.js +4 -4
- package/dist/components/CheckBox/CheckBox.d.ts +2 -45
- package/dist/components/CheckBox/Group.d.ts +3 -33
- package/dist/components/CheckBox/index.d.ts +1 -1
- package/dist/components/CheckBox/interface.d.ts +142 -0
- package/dist/components/CheckBox/style/resolveCheckBoxThemeVars.d.ts +2 -0
- package/dist/components/Editor/context/EditorContainerContext.d.ts +2 -1
- package/dist/components/Editor/index.d.ts +1 -1
- package/dist/components/Editor/interface.d.ts +15 -0
- package/dist/components/Editor/plugins/DefaultTextStylePlugin.d.ts +1 -0
- package/dist/components/Editor/plugins/ImePendingFormatPlugin.d.ts +1 -0
- package/dist/components/Editor/utils/applyDefaultTextStyle.d.ts +2 -0
- package/dist/components/Editor/utils/imePendingFormat.d.ts +8 -0
- package/dist/components/Editor/utils/readTextFormats.d.ts +3 -1
- package/dist/components/Editor/utils/stripInlineStyleProperty.d.ts +1 -0
- package/dist/components/Radio/index.d.ts +1 -0
- package/dist/components/Radio/interface.d.ts +67 -0
- package/dist/components/Radio/style/resolveRadioThemeVars.d.ts +2 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/index.js +8 -8
- package/dist/style.css +1 -1
- package/dist/vendors/{Tree-D0Q1IZ2D.js → Tree-DWK-JPnJ.js} +2 -2
- package/dist/vendors/{version-BVdbN53a.js → version-DH5GPcND.js} +1 -1
- package/package.json +1 -1
- package/dist/CheckBox/CheckBox-CM24-quL.js +0 -33
- package/dist/CheckBox/CheckBox-CcHskTz_.js +0 -67
- package/dist/Radio/Radio-D9jhW7K6.js +0 -85
package/dist/Amap/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { t } from "../vendors/useLocale-Be4e7Xfn.js";
|
|
|
3
3
|
import { t as n } from "../vendors/cssVars-UpriQzph.js";
|
|
4
4
|
import { t as r } from "../Segmented/Segmented-BkTy5v9V.js";
|
|
5
5
|
import { t as i } from "../Tooltip/Tooltip-DBrt3t2r.js";
|
|
6
|
-
import { t as a } from "../DatePicker/DatePicker-
|
|
6
|
+
import { t as a } from "../DatePicker/DatePicker-ByZiiZPq.js";
|
|
7
7
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
8
|
import { memo as c, useCallback as l, useEffect as u, useLayoutEffect as d, useMemo as f, useRef as p, useState as m } from "react";
|
|
9
9
|
import h from "clsx";
|
package/dist/Calendar/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-DH5GPcND.js";
|
|
2
2
|
import "../Icon/Icon-DrdQOEJE.js";
|
|
3
3
|
import "../vendors/LocaleContext-DXQoOKM2.js";
|
|
4
4
|
import "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
@@ -7,7 +7,7 @@ import "../vendors/useLocale-Be4e7Xfn.js";
|
|
|
7
7
|
import "../vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
|
|
8
8
|
import "../Segmented/Segmented-BkTy5v9V.js";
|
|
9
9
|
import "../Tooltip/Tooltip-DBrt3t2r.js";
|
|
10
|
-
import { n as e, r as t, t as n } from "./Calendar-
|
|
11
|
-
import "../DatePicker/DatePicker-
|
|
10
|
+
import { n as e, r as t, t as n } from "./Calendar-C9LHoXQc.js";
|
|
11
|
+
import "../DatePicker/DatePicker-ByZiiZPq.js";
|
|
12
12
|
import "../DatePicker/pickerLocale-Brf7_Tnd.js";
|
|
13
13
|
export { n as Calendar, n as default, t as resolveCalendarThemeVars, e as resolvePlatformCalendarTheme };
|
package/dist/Card/index.js
CHANGED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { t as e } from "../Icon/Icon-DrdQOEJE.js";
|
|
2
|
+
import { t } from "../vendors/cssVars-UpriQzph.js";
|
|
3
|
+
import { uniqueId as n } from "lodash-es";
|
|
4
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
5
|
+
import { createContext as a, forwardRef as o, useContext as s } from "react";
|
|
6
|
+
import c from "clsx";
|
|
7
|
+
//#region src/components/CheckBox/context/context.ts
|
|
8
|
+
var l = a(null), u = "_checkbox_1dlm8_1", d = "_checkbox__inner_1dlm8_34", f = {
|
|
9
|
+
checkbox: u,
|
|
10
|
+
"checkbox--checked": "_checkbox--checked_1dlm8_12",
|
|
11
|
+
"checkbox--unchecked": "_checkbox--unchecked_1dlm8_17",
|
|
12
|
+
"checkbox--indeterminate": "_checkbox--indeterminate_1dlm8_24",
|
|
13
|
+
"checkbox--disabled": "_checkbox--disabled_1dlm8_28",
|
|
14
|
+
checkbox__inner: d,
|
|
15
|
+
"checkbox__inner--disabled": "_checkbox__inner--disabled_1dlm8_40"
|
|
16
|
+
}, p = ({ isChecked: t = !1, indeterminate: n = !1, disabled: a = !1 }) => {
|
|
17
|
+
let o = n ? "indeterminate" : t ? "checked" : "unchecked", s = c(f.checkbox, {
|
|
18
|
+
[f["checkbox--checked"]]: !a && o === "checked",
|
|
19
|
+
[f["checkbox--unchecked"]]: !a && o === "unchecked",
|
|
20
|
+
[f["checkbox--indeterminate"]]: !a && o === "indeterminate",
|
|
21
|
+
[f["checkbox--disabled"]]: a
|
|
22
|
+
}), l = c(f.checkbox__inner, { [f["checkbox__inner--disabled"]]: a });
|
|
23
|
+
return /* @__PURE__ */ i("div", {
|
|
24
|
+
className: s,
|
|
25
|
+
children: [o === "checked" && /* @__PURE__ */ r(e, {
|
|
26
|
+
name: "checkthebox",
|
|
27
|
+
color: "currentColor"
|
|
28
|
+
}), o === "indeterminate" && /* @__PURE__ */ r("div", { className: l })]
|
|
29
|
+
});
|
|
30
|
+
}, m = /* @__PURE__ */ function(e) {
|
|
31
|
+
return e.NONE = "none", e.HORIZONTAL = "horizontal", e.VERTICAL = "vertical", e;
|
|
32
|
+
}({}), h = {
|
|
33
|
+
"bsy-checkbox": "_bsy-checkbox_5uw5b_1",
|
|
34
|
+
"bsy-checkbox--full-width": "_bsy-checkbox--full-width_5uw5b_8",
|
|
35
|
+
"bsy-checkbox__button": "_bsy-checkbox__button_5uw5b_11",
|
|
36
|
+
"bsy-checkbox__button--disabled": "_bsy-checkbox__button--disabled_5uw5b_22",
|
|
37
|
+
"bsy-checkbox__button--enabled": "_bsy-checkbox__button--enabled_5uw5b_27",
|
|
38
|
+
"bsy-checkbox__button--indeterminate": "_bsy-checkbox__button--indeterminate_5uw5b_30",
|
|
39
|
+
"bsy-checkbox__button--checked": "_bsy-checkbox__button--checked_5uw5b_34",
|
|
40
|
+
"bsy-checkbox__button--unchecked": "_bsy-checkbox__button--unchecked_5uw5b_38",
|
|
41
|
+
"bsy-checkbox__button--left-label": "_bsy-checkbox__button--left-label_5uw5b_45"
|
|
42
|
+
}, g = (e) => {
|
|
43
|
+
if (!e) return {};
|
|
44
|
+
let n = {};
|
|
45
|
+
return t(n, "--bsy-checkbox-checked-bg", e.checkedBg), t(n, "--bsy-checkbox-checked-border", e.checkedBorder), t(n, "--bsy-checkbox-check-icon-color", e.checkIconColor), t(n, "--bsy-checkbox-unchecked-bg", e.uncheckedBg), t(n, "--bsy-checkbox-color-border", e.colorBorder), t(n, "--bsy-checkbox-color-border-hover", e.colorBorderHover), t(n, "--bsy-checkbox-indeterminate-bg", e.indeterminateBg), t(n, "--bsy-checkbox-indeterminate-border", e.indeterminateBorder), t(n, "--bsy-checkbox-indeterminate-indicator", e.indeterminateIndicator), t(n, "--bsy-checkbox-color-bg-disabled", e.colorBgDisabled), t(n, "--bsy-checkbox-color-border-disabled", e.colorBorderDisabled), t(n, "--bsy-checkbox-check-icon-color-disabled", e.checkIconColorDisabled), t(n, "--bsy-checkbox-indeterminate-indicator-disabled", e.indeterminateIndicatorDisabled), n;
|
|
46
|
+
}, _ = o((e, t) => {
|
|
47
|
+
let { checked: a, indeterminate: o = !1, onChange: u, value: d = n("checkbox"), disabled: f = !1, children: _, style: v, labelPosition: y = "right", theme: b } = e, x = s(l), S = x ? x.value?.includes(d) : a, C = (e) => {
|
|
48
|
+
if (!(f || x?.disabled)) if (x) {
|
|
49
|
+
let t = e ? [...x.value || [], d] : (x.value || []).filter((e) => e !== d);
|
|
50
|
+
t && x.onChange?.(t);
|
|
51
|
+
} else u?.(e);
|
|
52
|
+
}, w = f || x?.disabled, T = g(b);
|
|
53
|
+
return /* @__PURE__ */ i("div", {
|
|
54
|
+
className: c(h["bsy-checkbox"], { [h["bsy-checkbox--full-width"]]: x?.layout === m.NONE || !x?.layout }),
|
|
55
|
+
onClick: () => C(!S),
|
|
56
|
+
style: {
|
|
57
|
+
...T,
|
|
58
|
+
...v
|
|
59
|
+
},
|
|
60
|
+
children: [/* @__PURE__ */ r("div", {
|
|
61
|
+
ref: t,
|
|
62
|
+
role: "checkbox",
|
|
63
|
+
"aria-checked": o ? "mixed" : S,
|
|
64
|
+
tabIndex: w ? -1 : 0,
|
|
65
|
+
className: c({ [h["bsy-checkbox__button--left-label"]]: y === "left" }),
|
|
66
|
+
children: /* @__PURE__ */ r(p, {
|
|
67
|
+
indeterminate: o,
|
|
68
|
+
isChecked: S,
|
|
69
|
+
disabled: w
|
|
70
|
+
})
|
|
71
|
+
}), _]
|
|
72
|
+
});
|
|
73
|
+
});
|
|
74
|
+
//#endregion
|
|
75
|
+
export { l as i, g as n, m as r, _ as t };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./CheckBox-BErX3YWP.js";
|
|
2
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
3
|
+
import a from "clsx";
|
|
4
|
+
import { useControllableValue as o } from "ahooks";
|
|
5
|
+
//#region src/components/CheckBox/Group.tsx
|
|
6
|
+
var s = ({ disabled: r, layout: s = n.NONE, children: c, className: l, style: u, theme: d, ...f }) => {
|
|
7
|
+
let [p, m] = o(f, {
|
|
8
|
+
defaultValue: [],
|
|
9
|
+
valuePropName: "value",
|
|
10
|
+
defaultValuePropName: "defaultValue",
|
|
11
|
+
trigger: "onChange"
|
|
12
|
+
}), h = a("flex", {
|
|
13
|
+
"flex-col": s === n.NONE,
|
|
14
|
+
"flex-col gap-[10px]": s === n.VERTICAL,
|
|
15
|
+
"flex-row gap-y-[10px] gap-x-[20px] flex-wrap": s === n.HORIZONTAL,
|
|
16
|
+
[l || ""]: !!l
|
|
17
|
+
});
|
|
18
|
+
return /* @__PURE__ */ i(e.Provider, {
|
|
19
|
+
value: {
|
|
20
|
+
value: p,
|
|
21
|
+
onChange: m,
|
|
22
|
+
disabled: r,
|
|
23
|
+
layout: s
|
|
24
|
+
},
|
|
25
|
+
children: /* @__PURE__ */ i("div", {
|
|
26
|
+
className: h,
|
|
27
|
+
style: {
|
|
28
|
+
...t(d),
|
|
29
|
+
...u
|
|
30
|
+
},
|
|
31
|
+
children: c
|
|
32
|
+
})
|
|
33
|
+
});
|
|
34
|
+
}, c = r;
|
|
35
|
+
c.Group = s;
|
|
36
|
+
//#endregion
|
|
37
|
+
export { c as t };
|
package/dist/CheckBox/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-DH5GPcND.js";
|
|
2
2
|
import "../Icon/Icon-DrdQOEJE.js";
|
|
3
|
-
import "./CheckBox-
|
|
4
|
-
import { t as e } from "./CheckBox-
|
|
3
|
+
import "./CheckBox-BErX3YWP.js";
|
|
4
|
+
import { t as e } from "./CheckBox-Dp7hxT2F.js";
|
|
5
5
|
export { e as default };
|
|
@@ -48,7 +48,7 @@ var w = {
|
|
|
48
48
|
"bsy-date-picker__content": "_bsy-date-picker__content_1i2le_33",
|
|
49
49
|
"bsy-date-picker__divider": "_bsy-date-picker__divider_1i2le_43",
|
|
50
50
|
"bsy-date-picker__panel-loading": "_bsy-date-picker__panel-loading_1i2le_49"
|
|
51
|
-
}, j = m(() => import("./DatePickerPanel-
|
|
51
|
+
}, j = m(() => import("./DatePickerPanel-DiOVoMv4.js")), M = (o) => {
|
|
52
52
|
let { children: m, picker: S = "date", theme: w, getPopupContainer: D, triggerActiveClassName: O, zIndex: M } = o, { locale: N } = r(), P = e(M), [F, I] = v(o, {
|
|
53
53
|
defaultValuePropName: "defaultValue",
|
|
54
54
|
valuePropName: "value",
|
package/dist/DatePicker/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-DH5GPcND.js";
|
|
2
2
|
import "../vendors/LocaleContext-DXQoOKM2.js";
|
|
3
3
|
import "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
4
4
|
import "../vendors/useFloatingOverlay-B66lOL8v.js";
|
|
5
5
|
import "../vendors/useLocale-Be4e7Xfn.js";
|
|
6
6
|
import "../vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
|
|
7
|
-
import { t as e } from "./DatePicker-
|
|
7
|
+
import { t as e } from "./DatePicker-ByZiiZPq.js";
|
|
8
8
|
import "./pickerLocale-Brf7_Tnd.js";
|
|
9
9
|
export { e as default };
|
package/dist/DropDown/index.js
CHANGED