@baishuyun/ui-base 6.6.0 → 6.7.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/Calendar/{AllDaySection-M-b9tRHh.js → AllDaySection-DOMayJvh.js} +3 -3
- package/dist/Calendar/{Calendar-C9PhASp0.js → Calendar-DSqL58yh.js} +11 -11
- package/dist/Calendar/{CurrentTimeIndicator-Dpi36eVJ.js → CurrentTimeIndicator-CgDrVXin.js} +1 -1
- package/dist/Calendar/{EventCard-BIfRqCk5.js → EventCard-BGDwQ-c7.js} +3 -3
- package/dist/Calendar/{TimeGrid-Dk3soSo4.js → TimeGrid-KeZ4RsDq.js} +1 -1
- package/dist/Calendar/context/index.js +1 -1
- package/dist/Calendar/index.js +16 -15
- package/dist/Calendar/subcomponents/AllDaySection/index.js +6 -6
- package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +4 -4
- package/dist/Calendar/subcomponents/EventCard/index.js +5 -5
- package/dist/Calendar/subcomponents/TimeAxis/index.js +3 -3
- package/dist/Calendar/subcomponents/TimeGrid/index.js +2 -2
- package/dist/Calendar/{theme-Cgn0zQoC.js → theme-qcYESlpU.js} +2 -2
- package/dist/Calendar/utils/index.js +3 -3
- package/dist/Calendar/utils/layout/index.js +2 -2
- package/dist/Calendar/utils/theme/index.js +1 -1
- package/dist/CheckBox/{CheckBox-81R8QKHb.js → CheckBox-GtT43IQ8.js} +1 -1
- package/dist/CheckBox/index.js +2 -2
- package/dist/ColorPicker/{ColorPicker-aj57lMA5.js → ColorPicker-Hjs4Vp5a.js} +37 -35
- package/dist/ColorPicker/index.js +2 -1
- package/dist/DatePicker/DatePicker-DnH3zblC.js +96 -0
- package/dist/DatePicker/{DatePickerPanel-BjnLfncu.js → DatePickerPanel-CQGrY4wT.js} +2 -2
- package/dist/DatePicker/index.js +5 -4
- package/dist/DatePicker/style/index.js +1 -1
- package/dist/DatePicker/{style-BxWyBhZ3.js → style-BlAisgTN.js} +1 -1
- package/dist/DropDown/DropDown-D_Zh6fGX.js +171 -0
- package/dist/DropDown/index.js +6 -5
- package/dist/DropDown/style/index.js +1 -1
- package/dist/DropDown/{style-4LK6rNHe.js → style-WiojFVQn.js} +1 -1
- package/dist/Editor/{Buttons-Ds6bLmnl.js → Buttons-De6NyZQs.js} +3 -3
- package/dist/Editor/ToolbarPlugin/Buttons/index.js +10 -9
- package/dist/Editor/index.js +10 -9
- package/dist/Gantt/GanttChart/index.js +13 -12
- package/dist/Gantt/{GanttChart-DbI1fvxe.js → GanttChart-MwVs4NFd.js} +7 -7
- package/dist/Gantt/GanttTable/index.js +7 -7
- package/dist/Gantt/{GanttTable-C3PLGmKr.js → GanttTable-DoDMELyN.js} +5 -5
- package/dist/Gantt/GanttToolBar/index.js +9 -8
- package/dist/Gantt/{GanttToolBar-8jPQ9BAG.js → GanttToolBar-BAAQMT0x.js} +2 -2
- package/dist/Gantt/{collapseKeys-1N9ci2oJ.js → collapseKeys-VeqoqKwC.js} +2 -2
- package/dist/Gantt/index.js +20 -19
- package/dist/Gantt/{theme-C197Dtjy.js → theme-DLS8mdri.js} +1 -1
- package/dist/Gantt/{timelineViewConfig-Dl3AXO45.js → timelineViewConfig-C1T1exJd.js} +1 -1
- package/dist/Gantt/utils/index.js +5 -5
- package/dist/Gantt/utils/theme/index.js +1 -1
- package/dist/InputTag/{InputTag-CGQ5dXyf.js → InputTag-C4iRY5Mw.js} +1 -1
- package/dist/InputTag/index.js +2 -2
- package/dist/Loading/index.js +1 -1
- package/dist/NotFoundContent/index.js +1 -1
- package/dist/Radio/index.js +1 -1
- package/dist/ScrollBar/{ScrollBar-CSGBOE3e.js → ScrollBar-C4-PtPBc.js} +1 -1
- package/dist/ScrollBar/index.js +1 -1
- package/dist/Segmented/{Segmented-CzVKrL6o.js → Segmented-Ck2ZmfF7.js} +13 -12
- package/dist/Segmented/index.js +1 -1
- package/dist/Select/Select-CAoozrW7.js +743 -0
- package/dist/Select/index.js +10 -9
- package/dist/Table/{Table-BtH9Oa14.js → Table-BZspRsYV.js} +4 -4
- package/dist/Table/hooks/index.js +1 -1
- package/dist/Table/{hooks-DK8Pf7iH.js → hooks-5ETrGbzY.js} +1 -1
- package/dist/Table/index.js +5 -5
- package/dist/Table/{processRowspan-D4uv6zLk.js → processRowspan-CSW5J9Rs.js} +1 -1
- package/dist/Table/style/index.js +1 -1
- package/dist/Table/{style-BwcnT2ee.js → style-qi0sTT0x.js} +1 -1
- package/dist/Table/utils/index.js +1 -1
- package/dist/Tabs/{Tabs-7wEcxUv6.js → Tabs-sag2ofoG.js} +1 -1
- package/dist/Tabs/index.js +2 -2
- package/dist/Tooltip/{Tooltip-B_SZOy6k.js → Tooltip-DWWWYn1a.js} +1 -1
- package/dist/Tooltip/index.js +1 -1
- package/dist/Tree/index.js +3 -3
- package/dist/components/Select/__tests__/Select.optionDisabled.test.d.ts +1 -0
- package/dist/components/Select/interface.d.ts +0 -1
- package/dist/index.js +33 -32
- package/dist/style.css +1 -1
- package/dist/vendors/{Tree-DqnOGJtB.js → Tree-DMC_MSw1.js} +2 -2
- package/dist/vendors/{useFloatingPortal-B2SDNV5C.js → useFloatingPortal-CsNiNirJ.js} +1 -0
- package/dist/vendors/useLatchedPopupPortalRoot-hwf14FJ5.js +24 -0
- package/package.json +1 -1
- package/dist/DatePicker/DatePicker-EIFyC9zF.js +0 -115
- package/dist/DropDown/DropDown-B34vfoOs.js +0 -172
- package/dist/Select/Select-DTximYG6.js +0 -734
- /package/dist/Calendar/{TimeAxis-Chwxo6Yj.js → TimeAxis-f40447Et.js} +0 -0
- /package/dist/Calendar/{colorUtils-FNbm3zBQ.js → colorUtils-Be9RqvDV.js} +0 -0
- /package/dist/Calendar/{context-CzS6P3nk.js → context-BrzVkPeC.js} +0 -0
- /package/dist/Calendar/{layout-Cb39seCc.js → layout-rnPhDP7c.js} +0 -0
- /package/dist/CheckBox/{CheckBox-ejvbDr-a.js → CheckBox-D7bCjlkU.js} +0 -0
- /package/dist/DatePicker/{ensureDayjsPlugins-DxqbKqon.js → ensureDayjsPlugins-Bz70Nzmi.js} +0 -0
- /package/dist/DatePicker/{pickerLocale-CtDOOxxD.js → pickerLocale-g90uglxB.js} +0 -0
- /package/dist/Gantt/{GanttHighlightContext-CtT98ZnK.js → GanttHighlightContext-CMXYFPyz.js} +0 -0
- /package/dist/Gantt/{columnResize-DFe7F98O.js → columnResize-1nSds2g5.js} +0 -0
- /package/dist/Gantt/{constants-CrBb5i5p.js → constants-BSCH_s3S.js} +0 -0
- /package/dist/Gantt/{highlightTarget-DtCe7zto.js → highlightTarget-EEsL61Qd.js} +0 -0
- /package/dist/Loading/{Loading-ho-6d72M.js → Loading-CV5GuhWQ.js} +0 -0
- /package/dist/NotFoundContent/{NotFoundContent-CV9fTylQ.js → NotFoundContent-J-TEnljc.js} +0 -0
- /package/dist/Radio/{Radio-C2zJzZc3.js → Radio-CMAwZdP7.js} +0 -0
- /package/dist/Select/{SelectInputSearch-BDwg-Noi.js → SelectInputSearch-dfBUnTCY.js} +0 -0
- /package/dist/Table/{constants-CuBlYZLO.js → constants-BZfNf-UU.js} +0 -0
- /package/dist/vendors/{cssVars-DoQgQ2CM.js → cssVars-B8o94Yao.js} +0 -0
- /package/dist/vendors/{mergeRefs-TiJ0xjUN.js → mergeRefs-Bai1cIzv.js} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "../Icon/Icon-SQ5tu-yG.js";
|
|
2
|
-
import { n as t } from "./context-
|
|
3
|
-
import { p as n } from "./layout-
|
|
2
|
+
import { n as t } from "./context-BrzVkPeC.js";
|
|
3
|
+
import { p as n } from "./layout-rnPhDP7c.js";
|
|
4
4
|
import { getTimeZoneLabel as r } from "./utils/index.js";
|
|
5
|
-
import { n as i, t as a } from "./EventCard-
|
|
5
|
+
import { n as i, t as a } from "./EventCard-BGDwQ-c7.js";
|
|
6
6
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
7
|
import { useMemo as c, useState as l } from "react";
|
|
8
8
|
import u from "clsx";
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { t as e } from "../Icon/Icon-SQ5tu-yG.js";
|
|
2
2
|
import { t } from "../vendors/useLocale-DZ8XW2VL.js";
|
|
3
|
-
import { t as n } from "../Segmented/Segmented-
|
|
4
|
-
import { t as r } from "../Tooltip/Tooltip-
|
|
5
|
-
import { i, n as a, r as o, t as s } from "./context-
|
|
6
|
-
import { t as c } from "../DatePicker/DatePicker-
|
|
7
|
-
import { C as l, S as u, _ as d, a as f, b as p, d as m, i as h, o as g, p as _, r as v, s as y, t as b, x, y as S } from "./layout-
|
|
3
|
+
import { t as n } from "../Segmented/Segmented-Ck2ZmfF7.js";
|
|
4
|
+
import { t as r } from "../Tooltip/Tooltip-DWWWYn1a.js";
|
|
5
|
+
import { i, n as a, r as o, t as s } from "./context-BrzVkPeC.js";
|
|
6
|
+
import { t as c } from "../DatePicker/DatePicker-DnH3zblC.js";
|
|
7
|
+
import { C as l, S as u, _ as d, a as f, b as p, d as m, i as h, o as g, p as _, r as v, s as y, t as b, x, y as S } from "./layout-rnPhDP7c.js";
|
|
8
8
|
import { formatCalendarDayNumber as C, formatFullDate as w, formatWeekEndDate as T, formatYearMonth as E, getCurrentTimeInTZ as D, getDynamicMonthViewDates as O, getTimeZoneLabel as k, getTotalHeight as A, getVisibleRangeByMode as ee, getWeekEnd as te, getWeekStart as j, getZoomConfig as M, isCurrentMonth as N, layoutTimedEventsForWeek as P, shiftDateByMode as ne } from "./utils/index.js";
|
|
9
|
-
import { t as F } from "./TimeAxis-
|
|
10
|
-
import { t as I } from "./TimeGrid-
|
|
11
|
-
import { t as L } from "./CurrentTimeIndicator-
|
|
12
|
-
import { n as R, r as z, t as B } from "./EventCard-
|
|
13
|
-
import { t as V } from "./AllDaySection-
|
|
14
|
-
import { a as re, i as ie, r as ae } from "./theme-
|
|
9
|
+
import { t as F } from "./TimeAxis-f40447Et.js";
|
|
10
|
+
import { t as I } from "./TimeGrid-KeZ4RsDq.js";
|
|
11
|
+
import { t as L } from "./CurrentTimeIndicator-CgDrVXin.js";
|
|
12
|
+
import { n as R, r as z, t as B } from "./EventCard-BGDwQ-c7.js";
|
|
13
|
+
import { t as V } from "./AllDaySection-DOMayJvh.js";
|
|
14
|
+
import { a as re, i as ie, r as ae } from "./theme-qcYESlpU.js";
|
|
15
15
|
import { jsx as H, jsxs as U } from "react/jsx-runtime";
|
|
16
16
|
import { useCallback as W, useEffect as G, useMemo as K, useRef as q, useState as J } from "react";
|
|
17
17
|
import Y from "clsx";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../Tooltip/Tooltip-
|
|
1
|
+
import { t as e } from "../Tooltip/Tooltip-DWWWYn1a.js";
|
|
2
2
|
import { getCurrentTimeInTZ as t, getCurrentTimeTop as n, isToday as r } from "./utils/index.js";
|
|
3
3
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
4
4
|
import { useEffect as o, useLayoutEffect as s, useRef as c, useState as l } from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "../Tooltip/Tooltip-
|
|
2
|
-
import { i as t, n, t as r } from "./context-
|
|
3
|
-
import { m as i } from "./layout-
|
|
1
|
+
import { t as e } from "../Tooltip/Tooltip-DWWWYn1a.js";
|
|
2
|
+
import { i as t, n, t as r } from "./context-BrzVkPeC.js";
|
|
3
|
+
import { m as i } from "./layout-rnPhDP7c.js";
|
|
4
4
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
5
5
|
import { memo as s, useCallback as c, useEffect as l, useMemo as u, useRef as d, useState as f } from "react";
|
|
6
6
|
import p from "clsx";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../Icon/Icon-SQ5tu-yG.js";
|
|
2
|
-
import { t } from "../Tooltip/Tooltip-
|
|
2
|
+
import { t } from "../Tooltip/Tooltip-DWWWYn1a.js";
|
|
3
3
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
4
|
import { useCallback as i, useEffect as a, useMemo as o, useRef as s, useState as c } from "react";
|
|
5
5
|
//#region src/components/Calendar/subcomponents/TimeGrid/TimeGrid.tsx
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "../context-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "../context-BrzVkPeC.js";
|
|
2
2
|
export { n as CalendarDispatchContext, e as CalendarStateContext, r as useCalendarDispatchSelector, t as useCalendarStateSelector };
|
package/dist/Calendar/index.js
CHANGED
|
@@ -2,19 +2,20 @@ import "../Icon/Icon-SQ5tu-yG.js";
|
|
|
2
2
|
import "../vendors/LocaleContext-CBcJzvUD.js";
|
|
3
3
|
import "../vendors/useFloatingOverlay-WbbHmuT-.js";
|
|
4
4
|
import "../vendors/useLocale-DZ8XW2VL.js";
|
|
5
|
-
import "../
|
|
6
|
-
import "../
|
|
7
|
-
import "
|
|
8
|
-
import
|
|
9
|
-
import "
|
|
10
|
-
import "../DatePicker/
|
|
11
|
-
import "../DatePicker/
|
|
12
|
-
import "../DatePicker/
|
|
13
|
-
import "
|
|
14
|
-
import "./
|
|
15
|
-
import "./
|
|
16
|
-
import "./
|
|
17
|
-
import "./
|
|
18
|
-
import "./
|
|
19
|
-
import
|
|
5
|
+
import "../vendors/useLatchedPopupPortalRoot-hwf14FJ5.js";
|
|
6
|
+
import "../Segmented/Segmented-Ck2ZmfF7.js";
|
|
7
|
+
import "../Tooltip/Tooltip-DWWWYn1a.js";
|
|
8
|
+
import "./context-BrzVkPeC.js";
|
|
9
|
+
import { t as e } from "./Calendar-DSqL58yh.js";
|
|
10
|
+
import "../DatePicker/DatePicker-DnH3zblC.js";
|
|
11
|
+
import "../DatePicker/ensureDayjsPlugins-Bz70Nzmi.js";
|
|
12
|
+
import "../DatePicker/pickerLocale-g90uglxB.js";
|
|
13
|
+
import "../DatePicker/style-BlAisgTN.js";
|
|
14
|
+
import "./layout-rnPhDP7c.js";
|
|
15
|
+
import "./TimeAxis-f40447Et.js";
|
|
16
|
+
import "./TimeGrid-KeZ4RsDq.js";
|
|
17
|
+
import "./CurrentTimeIndicator-CgDrVXin.js";
|
|
18
|
+
import "./EventCard-BGDwQ-c7.js";
|
|
19
|
+
import "./AllDaySection-DOMayJvh.js";
|
|
20
|
+
import { a as t, n } from "./theme-qcYESlpU.js";
|
|
20
21
|
export { e as Calendar, e as default, t as resolveCalendarThemeVars, n as resolvePlatformCalendarTheme };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "../../../Icon/Icon-SQ5tu-yG.js";
|
|
2
|
-
import "../../../Tooltip/Tooltip-
|
|
3
|
-
import "../../context-
|
|
4
|
-
import "../../../DatePicker/ensureDayjsPlugins-
|
|
5
|
-
import "../../layout-
|
|
6
|
-
import "../../EventCard-
|
|
7
|
-
import { t as e } from "../../AllDaySection-
|
|
2
|
+
import "../../../Tooltip/Tooltip-DWWWYn1a.js";
|
|
3
|
+
import "../../context-BrzVkPeC.js";
|
|
4
|
+
import "../../../DatePicker/ensureDayjsPlugins-Bz70Nzmi.js";
|
|
5
|
+
import "../../layout-rnPhDP7c.js";
|
|
6
|
+
import "../../EventCard-BGDwQ-c7.js";
|
|
7
|
+
import { t as e } from "../../AllDaySection-DOMayJvh.js";
|
|
8
8
|
export { e as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../../Tooltip/Tooltip-
|
|
2
|
-
import "../../../DatePicker/ensureDayjsPlugins-
|
|
3
|
-
import "../../layout-
|
|
4
|
-
import { t as e } from "../../CurrentTimeIndicator-
|
|
1
|
+
import "../../../Tooltip/Tooltip-DWWWYn1a.js";
|
|
2
|
+
import "../../../DatePicker/ensureDayjsPlugins-Bz70Nzmi.js";
|
|
3
|
+
import "../../layout-rnPhDP7c.js";
|
|
4
|
+
import { t as e } from "../../CurrentTimeIndicator-CgDrVXin.js";
|
|
5
5
|
export { e as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../../../Tooltip/Tooltip-
|
|
2
|
-
import "../../context-
|
|
3
|
-
import "../../../DatePicker/ensureDayjsPlugins-
|
|
4
|
-
import "../../layout-
|
|
5
|
-
import { t as e } from "../../EventCard-
|
|
1
|
+
import "../../../Tooltip/Tooltip-DWWWYn1a.js";
|
|
2
|
+
import "../../context-BrzVkPeC.js";
|
|
3
|
+
import "../../../DatePicker/ensureDayjsPlugins-Bz70Nzmi.js";
|
|
4
|
+
import "../../layout-rnPhDP7c.js";
|
|
5
|
+
import { t as e } from "../../EventCard-BGDwQ-c7.js";
|
|
6
6
|
export { e as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../DatePicker/ensureDayjsPlugins-
|
|
2
|
-
import "../../layout-
|
|
3
|
-
import { t as e } from "../../TimeAxis-
|
|
1
|
+
import "../../../DatePicker/ensureDayjsPlugins-Bz70Nzmi.js";
|
|
2
|
+
import "../../layout-rnPhDP7c.js";
|
|
3
|
+
import { t as e } from "../../TimeAxis-f40447Et.js";
|
|
4
4
|
export { e as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "../../../Icon/Icon-SQ5tu-yG.js";
|
|
2
|
-
import "../../../Tooltip/Tooltip-
|
|
3
|
-
import { t as e } from "../../TimeGrid-
|
|
2
|
+
import "../../../Tooltip/Tooltip-DWWWYn1a.js";
|
|
3
|
+
import { t as e } from "../../TimeGrid-KeZ4RsDq.js";
|
|
4
4
|
export { e as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "../vendors/cssVars-
|
|
2
|
-
import { n as t } from "./colorUtils-
|
|
1
|
+
import { t as e } from "../vendors/cssVars-B8o94Yao.js";
|
|
2
|
+
import { n as t } from "./colorUtils-Be9RqvDV.js";
|
|
3
3
|
//#region src/components/Calendar/utils/theme/resolveScheduleColorVars.ts
|
|
4
4
|
var n = (e, t, n) => {
|
|
5
5
|
let r = {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../../DatePicker/ensureDayjsPlugins-
|
|
2
|
-
import { C as e, S as t, _ as n, a as r, b as i, c as a, d as o, f as s, g as c, h as l, i as u, l as d, m as f, n as p, o as m, p as h, r as g, s as _, t as v, u as y, v as b, x, y as S } from "../layout-
|
|
3
|
-
import { n as C, t as w } from "../colorUtils-
|
|
1
|
+
import "../../DatePicker/ensureDayjsPlugins-Bz70Nzmi.js";
|
|
2
|
+
import { C as e, S as t, _ as n, a as r, b as i, c as a, d as o, f as s, g as c, h as l, i as u, l as d, m as f, n as p, o as m, p as h, r as g, s as _, t as v, u as y, v as b, x, y as S } from "../layout-rnPhDP7c.js";
|
|
3
|
+
import { n as C, t as w } from "../colorUtils-Be9RqvDV.js";
|
|
4
4
|
import T from "dayjs";
|
|
5
5
|
//#region src/components/Calendar/utils/dateUtils.ts
|
|
6
6
|
var E = (t, n) => e(t, n), D = (e) => String(e).padStart(2, "0"), O = (e, t) => {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import "../../../DatePicker/ensureDayjsPlugins-
|
|
2
|
-
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "../../layout-
|
|
1
|
+
import "../../../DatePicker/ensureDayjsPlugins-Bz70Nzmi.js";
|
|
2
|
+
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, r as c, s as l, t as u, u as d } from "../../layout-rnPhDP7c.js";
|
|
3
3
|
export { u as MONTH_LAYOUT_CONSTANTS, l as assignAllDayRows, t as assignColumns, o as assignGlobalRows, c as assignMonthEventRows, a as calculateExpansion, d as calculateHorizontalLayout, n as calculateLayout, i as calculateSegmentPosition, e as computeVisibility, s as computeWeekHiddenCounts, r as groupIntoClusters };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, t as a } from "../../theme-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, t as a } from "../../theme-qcYESlpU.js";
|
|
2
2
|
export { a as CALENDAR_CURRENT_TIME_COLOR, e as resolveCalendarThemeVars, i as resolveDatePickerThemeFromCalendar, n as resolvePlatformCalendarTheme, r as resolveScheduleColorVars, t as resolveSegmentedThemeFromCalendar };
|
package/dist/CheckBox/index.js
CHANGED
|
@@ -3,9 +3,10 @@ import { t } from "../vendors/useFloatingOverlay-WbbHmuT-.js";
|
|
|
3
3
|
import { t as n } from "../vendors/useLocale-DZ8XW2VL.js";
|
|
4
4
|
import { t as r } from "../vendors/color-BQYy0Wgy.js";
|
|
5
5
|
import { n as i } from "../vendors/animations-Mlw78WYo.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
6
|
+
import { t as a } from "../vendors/useLatchedPopupPortalRoot-hwf14FJ5.js";
|
|
7
|
+
import { isArray as o } from "lodash-es";
|
|
8
|
+
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
9
|
+
import { cloneElement as u, isValidElement as d, useRef as f, useState as p } from "react";
|
|
9
10
|
import { ColorPicker as m } from "antd";
|
|
10
11
|
import h from "clsx";
|
|
11
12
|
import { useControllableValue as g } from "ahooks";
|
|
@@ -46,51 +47,52 @@ var x = [
|
|
|
46
47
|
"bsy-color-picker__custom-color-btn--preview": "_bsy-color-picker__custom-color-btn--preview_11t7y_66",
|
|
47
48
|
"bsy-color-picker__custom-color-content": "_bsy-color-picker__custom-color-content_11t7y_69",
|
|
48
49
|
"bsy-color-picker__check-icon": "_bsy-color-picker__check-icon_11t7y_73"
|
|
49
|
-
}, T = ({ currentColor: t, onColorSelect: n, options: i, style: a }) => /* @__PURE__ */
|
|
50
|
+
}, T = ({ currentColor: t, onColorSelect: n, options: i, style: a }) => /* @__PURE__ */ c("div", {
|
|
50
51
|
className: w["bsy-color-picker__preset-colors-grid"],
|
|
51
52
|
style: a,
|
|
52
|
-
children: i.map((i) => /* @__PURE__ */
|
|
53
|
+
children: i.map((i) => /* @__PURE__ */ c("div", {
|
|
53
54
|
className: w["bsy-color-picker__preset-colors-item"],
|
|
54
55
|
style: {
|
|
55
56
|
backgroundColor: i,
|
|
56
57
|
"--hover-color": b(i).setAlpha(.5).toRgbString()
|
|
57
58
|
},
|
|
58
59
|
onClick: () => n(i),
|
|
59
|
-
children: r(t, i) && /* @__PURE__ */
|
|
60
|
+
children: r(t, i) && /* @__PURE__ */ c(e, {
|
|
60
61
|
name: "checkthebox",
|
|
61
62
|
className: w["bsy-color-picker__check-icon"]
|
|
62
63
|
})
|
|
63
64
|
}, i))
|
|
64
65
|
}), E = (e) => {
|
|
65
|
-
let { children: t, placement: p = "bottom-start", disabled: m = !1, presetColors: h, getPopupContainer: b } = e, { t: C } = n(), [E, O] = g(e, { defaultValue: e.value }), { isOpen: k, refs: A, floatingStyles: j, getReferenceProps: M, getFloatingProps: N } = S(p), P =
|
|
66
|
+
let { children: t, placement: p = "bottom-start", disabled: m = !1, presetColors: h, getPopupContainer: b } = e, { t: C } = n(), [E, O] = g(e, { defaultValue: e.value }), { isOpen: k, refs: A, floatingStyles: j, getReferenceProps: M, getFloatingProps: N } = S(p), P = d(t) ? u(t, {
|
|
66
67
|
...M(),
|
|
67
68
|
ref: A.setReference,
|
|
68
69
|
disabled: m
|
|
69
|
-
}) : t, F =
|
|
70
|
-
return /* @__PURE__ */
|
|
71
|
-
root:
|
|
72
|
-
children: /* @__PURE__ */
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
70
|
+
}) : t, F = o(h) && h.length ? h : x, I = f(F.some((e) => r(e, E)) ? [] : [E]), { portalRoot: L, portalMountKey: R, handleExitComplete: z } = a(k, b);
|
|
71
|
+
return /* @__PURE__ */ l(s, { children: [P, /* @__PURE__ */ c(y, {
|
|
72
|
+
root: L,
|
|
73
|
+
children: /* @__PURE__ */ c(_, {
|
|
74
|
+
onExitComplete: z,
|
|
75
|
+
children: k ? /* @__PURE__ */ c(v.div, {
|
|
76
|
+
ref: A.setFloating,
|
|
77
|
+
style: j,
|
|
78
|
+
...N(),
|
|
79
|
+
className: w["bsy-color-picker__floating"],
|
|
78
80
|
...i,
|
|
79
|
-
children: /* @__PURE__ */
|
|
81
|
+
children: /* @__PURE__ */ c("div", {
|
|
80
82
|
className: w["bsy-color-picker__content"],
|
|
81
|
-
children: /* @__PURE__ */
|
|
83
|
+
children: /* @__PURE__ */ l("div", {
|
|
82
84
|
className: w["bsy-color-picker__grid"],
|
|
83
|
-
children: [/* @__PURE__ */
|
|
85
|
+
children: [/* @__PURE__ */ l("div", {
|
|
84
86
|
className: w["bsy-color-picker__preset-colors"],
|
|
85
|
-
children: [/* @__PURE__ */
|
|
87
|
+
children: [/* @__PURE__ */ c("div", {
|
|
86
88
|
className: w["bsy-color-picker__preset-colors-title"],
|
|
87
89
|
children: C("presetColors")
|
|
88
|
-
}), /* @__PURE__ */
|
|
90
|
+
}), /* @__PURE__ */ c(T, {
|
|
89
91
|
currentColor: E,
|
|
90
92
|
onColorSelect: O,
|
|
91
93
|
options: F
|
|
92
94
|
})]
|
|
93
|
-
}), /* @__PURE__ */
|
|
95
|
+
}), /* @__PURE__ */ c(D, {
|
|
94
96
|
value: E,
|
|
95
97
|
onChange: O,
|
|
96
98
|
onColorInput: e.onColorInput,
|
|
@@ -99,19 +101,19 @@ var x = [
|
|
|
99
101
|
})]
|
|
100
102
|
})
|
|
101
103
|
})
|
|
102
|
-
})
|
|
103
|
-
})
|
|
104
|
-
})] });
|
|
104
|
+
}, "bsy-color-picker-panel") : null
|
|
105
|
+
})
|
|
106
|
+
}, R)] });
|
|
105
107
|
}, D = (t) => {
|
|
106
|
-
let { list: r } = t, [i, a] = p(), [o,
|
|
107
|
-
return /* @__PURE__ */
|
|
108
|
+
let { list: r } = t, [i, a] = p(), [o, s] = p(!1), { t: u } = n();
|
|
109
|
+
return /* @__PURE__ */ l("div", {
|
|
108
110
|
className: w["bsy-color-picker__custom-color"],
|
|
109
|
-
children: [/* @__PURE__ */
|
|
111
|
+
children: [/* @__PURE__ */ c("div", {
|
|
110
112
|
className: w["bsy-color-picker__custom-color-title"],
|
|
111
113
|
children: u("customColor")
|
|
112
|
-
}), /* @__PURE__ */
|
|
114
|
+
}), /* @__PURE__ */ l("div", {
|
|
113
115
|
className: w["bsy-color-picker__custom-color-content"],
|
|
114
|
-
children: [/* @__PURE__ */
|
|
116
|
+
children: [/* @__PURE__ */ c(m, {
|
|
115
117
|
value: i,
|
|
116
118
|
onChange: (e) => {
|
|
117
119
|
let n = e.toRgbString();
|
|
@@ -119,9 +121,9 @@ var x = [
|
|
|
119
121
|
},
|
|
120
122
|
open: o,
|
|
121
123
|
onOpenChange: (e) => {
|
|
122
|
-
|
|
124
|
+
s(e), !e && i && (r.includes(i) || r.unshift(i), t.onChange(i), a(void 0));
|
|
123
125
|
},
|
|
124
|
-
children: /* @__PURE__ */
|
|
126
|
+
children: /* @__PURE__ */ c("div", {
|
|
125
127
|
className: h(w["bsy-color-picker__custom-color-btn"], {
|
|
126
128
|
[w["bsy-color-picker__custom-color-btn--active"]]: o && !i,
|
|
127
129
|
[w["bsy-color-picker__custom-color-btn--preview"]]: !!i
|
|
@@ -129,14 +131,14 @@ var x = [
|
|
|
129
131
|
role: "button",
|
|
130
132
|
style: { backgroundColor: i || void 0 },
|
|
131
133
|
onClick: () => {
|
|
132
|
-
|
|
134
|
+
s(!0);
|
|
133
135
|
},
|
|
134
|
-
children: /* @__PURE__ */
|
|
136
|
+
children: /* @__PURE__ */ c(e, {
|
|
135
137
|
name: "add",
|
|
136
138
|
style: { visibility: i ? "hidden" : "visible" }
|
|
137
139
|
})
|
|
138
140
|
})
|
|
139
|
-
}), /* @__PURE__ */
|
|
141
|
+
}), /* @__PURE__ */ c(T, {
|
|
140
142
|
currentColor: t.value,
|
|
141
143
|
onColorSelect: t.onChange,
|
|
142
144
|
options: r.slice(0, 5),
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import "../Icon/Icon-SQ5tu-yG.js";
|
|
2
2
|
import "../vendors/LocaleContext-CBcJzvUD.js";
|
|
3
|
-
import { n as e, t } from "./ColorPicker-
|
|
3
|
+
import { n as e, t } from "./ColorPicker-Hjs4Vp5a.js";
|
|
4
4
|
import "../vendors/useFloatingOverlay-WbbHmuT-.js";
|
|
5
5
|
import "../vendors/useLocale-DZ8XW2VL.js";
|
|
6
6
|
import "../vendors/color-BQYy0Wgy.js";
|
|
7
|
+
import "../vendors/useLatchedPopupPortalRoot-hwf14FJ5.js";
|
|
7
8
|
export { e as COLOR_OPTIONS_RGBA, t as default };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { t as e } from "../vendors/useFloatingOverlay-WbbHmuT-.js";
|
|
2
|
+
import { t } from "../vendors/useLocale-DZ8XW2VL.js";
|
|
3
|
+
import { n } from "../vendors/animations-Mlw78WYo.js";
|
|
4
|
+
import { t as r } from "../vendors/useLatchedPopupPortalRoot-hwf14FJ5.js";
|
|
5
|
+
import { n as i } from "./pickerLocale-g90uglxB.js";
|
|
6
|
+
import { t as a } from "./style-BlAisgTN.js";
|
|
7
|
+
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
|
+
import { Suspense as l, cloneElement as u, isValidElement as d, lazy as f, useCallback as p, useMemo as m } from "react";
|
|
9
|
+
import h from "clsx";
|
|
10
|
+
import { useControllableValue as g } from "ahooks";
|
|
11
|
+
import { AnimatePresence as _, motion as v } from "motion/react";
|
|
12
|
+
import { FloatingPortal as y } from "@floating-ui/react";
|
|
13
|
+
import b from "dayjs";
|
|
14
|
+
var x = {
|
|
15
|
+
footer: "_footer_h6lng_1",
|
|
16
|
+
today: "_today_h6lng_11"
|
|
17
|
+
}, S = ({ onClick: e }) => {
|
|
18
|
+
let { t: n } = t();
|
|
19
|
+
return /* @__PURE__ */ s("div", {
|
|
20
|
+
className: x.footer,
|
|
21
|
+
children: /* @__PURE__ */ s("button", {
|
|
22
|
+
type: "button",
|
|
23
|
+
className: x.today,
|
|
24
|
+
onClick: e,
|
|
25
|
+
children: n("datePicker.today")
|
|
26
|
+
})
|
|
27
|
+
});
|
|
28
|
+
}, C = (e, t) => {
|
|
29
|
+
switch (t) {
|
|
30
|
+
case "week": return e.startOf("isoWeek");
|
|
31
|
+
case "month": return e.startOf("month");
|
|
32
|
+
case "year": return e.startOf("year");
|
|
33
|
+
default: return e.startOf("day");
|
|
34
|
+
}
|
|
35
|
+
}, w = {
|
|
36
|
+
"bsy-date-picker": "_bsy-date-picker_legiv_1",
|
|
37
|
+
"bsy-date-picker__content": "_bsy-date-picker__content_legiv_33",
|
|
38
|
+
"bsy-date-picker__divider": "_bsy-date-picker__divider_legiv_43",
|
|
39
|
+
"bsy-date-picker__panel-loading": "_bsy-date-picker__panel-loading_legiv_49"
|
|
40
|
+
}, T = f(() => import("./DatePickerPanel-CQGrY4wT.js")), E = (f) => {
|
|
41
|
+
let { children: x, picker: E = "date", theme: D, getPopupContainer: O, triggerActiveClassName: k } = f, { locale: A } = t(), [j, M] = g(f, {
|
|
42
|
+
defaultValuePropName: "defaultValue",
|
|
43
|
+
valuePropName: "value",
|
|
44
|
+
trigger: "onChange",
|
|
45
|
+
defaultValue: b().locale(i(A)).startOf("day")
|
|
46
|
+
}), { isOpen: N, setIsOpen: P, refs: F, floatingStyles: I, getReferenceProps: L, getFloatingProps: R } = e(), z = p((e) => {
|
|
47
|
+
e && (M(C(e, E)), P(!1));
|
|
48
|
+
}, [
|
|
49
|
+
E,
|
|
50
|
+
M,
|
|
51
|
+
P
|
|
52
|
+
]), B = p(() => {
|
|
53
|
+
z(b().locale(i(A)));
|
|
54
|
+
}, [z, A]), V = m(() => a(D), [D]), { portalRoot: H, portalMountKey: U, handleExitComplete: W } = r(N, O);
|
|
55
|
+
return d(x), /* @__PURE__ */ c(o, { children: [d(x) ? u(x, {
|
|
56
|
+
...L({ className: h(x.props.className, N && k) }),
|
|
57
|
+
ref: F.setReference
|
|
58
|
+
}) : x, /* @__PURE__ */ s(y, {
|
|
59
|
+
root: H,
|
|
60
|
+
children: /* @__PURE__ */ s(_, {
|
|
61
|
+
onExitComplete: W,
|
|
62
|
+
children: N ? /* @__PURE__ */ s(v.div, {
|
|
63
|
+
ref: F.setFloating,
|
|
64
|
+
style: {
|
|
65
|
+
...I,
|
|
66
|
+
...V
|
|
67
|
+
},
|
|
68
|
+
...R(),
|
|
69
|
+
"data-bsy-date-picker": !0,
|
|
70
|
+
className: w["bsy-date-picker"],
|
|
71
|
+
...n,
|
|
72
|
+
children: /* @__PURE__ */ c("div", {
|
|
73
|
+
className: w["bsy-date-picker__content"],
|
|
74
|
+
children: [
|
|
75
|
+
/* @__PURE__ */ s(l, {
|
|
76
|
+
fallback: /* @__PURE__ */ s("div", {
|
|
77
|
+
className: w["bsy-date-picker__panel-loading"],
|
|
78
|
+
"aria-hidden": !0
|
|
79
|
+
}),
|
|
80
|
+
children: /* @__PURE__ */ s(T, {
|
|
81
|
+
picker: E,
|
|
82
|
+
value: j,
|
|
83
|
+
onChange: z
|
|
84
|
+
})
|
|
85
|
+
}),
|
|
86
|
+
/* @__PURE__ */ s("div", { className: w["bsy-date-picker__divider"] }),
|
|
87
|
+
/* @__PURE__ */ s(S, { onClick: B })
|
|
88
|
+
]
|
|
89
|
+
})
|
|
90
|
+
}, "bsy-date-picker-panel") : null
|
|
91
|
+
})
|
|
92
|
+
}, U)] });
|
|
93
|
+
};
|
|
94
|
+
E.displayName = "BsyDatePicker";
|
|
95
|
+
//#endregion
|
|
96
|
+
export { E as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "../Icon/Icon-SQ5tu-yG.js";
|
|
2
2
|
import "../vendors/LocaleContext-CBcJzvUD.js";
|
|
3
3
|
import { t } from "../vendors/useLocale-DZ8XW2VL.js";
|
|
4
|
-
import "./ensureDayjsPlugins-
|
|
5
|
-
import { t as n } from "./pickerLocale-
|
|
4
|
+
import "./ensureDayjsPlugins-Bz70Nzmi.js";
|
|
5
|
+
import { t as n } from "./pickerLocale-g90uglxB.js";
|
|
6
6
|
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
7
7
|
import { useCallback as o, useEffect as s, useLayoutEffect as c, useMemo as l, useRef as u, useState as d } from "react";
|
|
8
8
|
import { clsx as f } from "clsx";
|
package/dist/DatePicker/index.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import "../vendors/LocaleContext-CBcJzvUD.js";
|
|
2
2
|
import "../vendors/useFloatingOverlay-WbbHmuT-.js";
|
|
3
3
|
import "../vendors/useLocale-DZ8XW2VL.js";
|
|
4
|
-
import
|
|
5
|
-
import "./
|
|
6
|
-
import "./
|
|
7
|
-
import "./
|
|
4
|
+
import "../vendors/useLatchedPopupPortalRoot-hwf14FJ5.js";
|
|
5
|
+
import { t as e } from "./DatePicker-DnH3zblC.js";
|
|
6
|
+
import "./ensureDayjsPlugins-Bz70Nzmi.js";
|
|
7
|
+
import "./pickerLocale-g90uglxB.js";
|
|
8
|
+
import "./style-BlAisgTN.js";
|
|
8
9
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../style-
|
|
1
|
+
import { t as e } from "../style-BlAisgTN.js";
|
|
2
2
|
export { e as resolveDatePickerThemeVars };
|