@baishuyun/ui-base 6.6.0 → 6.6.1

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.
Files changed (94) hide show
  1. package/dist/Calendar/{AllDaySection-M-b9tRHh.js → AllDaySection-DOMayJvh.js} +3 -3
  2. package/dist/Calendar/{Calendar-C9PhASp0.js → Calendar-DSqL58yh.js} +11 -11
  3. package/dist/Calendar/{CurrentTimeIndicator-Dpi36eVJ.js → CurrentTimeIndicator-CgDrVXin.js} +1 -1
  4. package/dist/Calendar/{EventCard-BIfRqCk5.js → EventCard-BGDwQ-c7.js} +3 -3
  5. package/dist/Calendar/{TimeGrid-Dk3soSo4.js → TimeGrid-KeZ4RsDq.js} +1 -1
  6. package/dist/Calendar/context/index.js +1 -1
  7. package/dist/Calendar/index.js +16 -15
  8. package/dist/Calendar/subcomponents/AllDaySection/index.js +6 -6
  9. package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +4 -4
  10. package/dist/Calendar/subcomponents/EventCard/index.js +5 -5
  11. package/dist/Calendar/subcomponents/TimeAxis/index.js +3 -3
  12. package/dist/Calendar/subcomponents/TimeGrid/index.js +2 -2
  13. package/dist/Calendar/{theme-Cgn0zQoC.js → theme-qcYESlpU.js} +2 -2
  14. package/dist/Calendar/utils/index.js +3 -3
  15. package/dist/Calendar/utils/layout/index.js +2 -2
  16. package/dist/Calendar/utils/theme/index.js +1 -1
  17. package/dist/CheckBox/{CheckBox-81R8QKHb.js → CheckBox-GtT43IQ8.js} +1 -1
  18. package/dist/CheckBox/index.js +2 -2
  19. package/dist/ColorPicker/{ColorPicker-aj57lMA5.js → ColorPicker-Hjs4Vp5a.js} +37 -35
  20. package/dist/ColorPicker/index.js +2 -1
  21. package/dist/DatePicker/DatePicker-DnH3zblC.js +96 -0
  22. package/dist/DatePicker/{DatePickerPanel-BjnLfncu.js → DatePickerPanel-CQGrY4wT.js} +2 -2
  23. package/dist/DatePicker/index.js +5 -4
  24. package/dist/DatePicker/style/index.js +1 -1
  25. package/dist/DatePicker/{style-BxWyBhZ3.js → style-BlAisgTN.js} +1 -1
  26. package/dist/DropDown/DropDown-D_Zh6fGX.js +171 -0
  27. package/dist/DropDown/index.js +6 -5
  28. package/dist/DropDown/style/index.js +1 -1
  29. package/dist/DropDown/{style-4LK6rNHe.js → style-WiojFVQn.js} +1 -1
  30. package/dist/Editor/{Buttons-Ds6bLmnl.js → Buttons-De6NyZQs.js} +3 -3
  31. package/dist/Editor/ToolbarPlugin/Buttons/index.js +10 -9
  32. package/dist/Editor/index.js +10 -9
  33. package/dist/Gantt/GanttChart/index.js +13 -12
  34. package/dist/Gantt/{GanttChart-DbI1fvxe.js → GanttChart-MwVs4NFd.js} +7 -7
  35. package/dist/Gantt/GanttTable/index.js +7 -7
  36. package/dist/Gantt/{GanttTable-C3PLGmKr.js → GanttTable-DoDMELyN.js} +5 -5
  37. package/dist/Gantt/GanttToolBar/index.js +9 -8
  38. package/dist/Gantt/{GanttToolBar-8jPQ9BAG.js → GanttToolBar-BAAQMT0x.js} +2 -2
  39. package/dist/Gantt/{collapseKeys-1N9ci2oJ.js → collapseKeys-VeqoqKwC.js} +2 -2
  40. package/dist/Gantt/index.js +20 -19
  41. package/dist/Gantt/{theme-C197Dtjy.js → theme-DLS8mdri.js} +1 -1
  42. package/dist/Gantt/{timelineViewConfig-Dl3AXO45.js → timelineViewConfig-C1T1exJd.js} +1 -1
  43. package/dist/Gantt/utils/index.js +5 -5
  44. package/dist/Gantt/utils/theme/index.js +1 -1
  45. package/dist/InputTag/{InputTag-CGQ5dXyf.js → InputTag-C4iRY5Mw.js} +1 -1
  46. package/dist/InputTag/index.js +2 -2
  47. package/dist/Loading/index.js +1 -1
  48. package/dist/NotFoundContent/index.js +1 -1
  49. package/dist/Radio/index.js +1 -1
  50. package/dist/ScrollBar/{ScrollBar-CSGBOE3e.js → ScrollBar-C4-PtPBc.js} +1 -1
  51. package/dist/ScrollBar/index.js +1 -1
  52. package/dist/Segmented/{Segmented-CzVKrL6o.js → Segmented-Ck2ZmfF7.js} +13 -12
  53. package/dist/Segmented/index.js +1 -1
  54. package/dist/Select/Select-CuAdbvvQ.js +733 -0
  55. package/dist/Select/index.js +10 -9
  56. package/dist/Table/{Table-BtH9Oa14.js → Table-BZspRsYV.js} +4 -4
  57. package/dist/Table/hooks/index.js +1 -1
  58. package/dist/Table/{hooks-DK8Pf7iH.js → hooks-5ETrGbzY.js} +1 -1
  59. package/dist/Table/index.js +5 -5
  60. package/dist/Table/{processRowspan-D4uv6zLk.js → processRowspan-CSW5J9Rs.js} +1 -1
  61. package/dist/Table/style/index.js +1 -1
  62. package/dist/Table/{style-BwcnT2ee.js → style-qi0sTT0x.js} +1 -1
  63. package/dist/Table/utils/index.js +1 -1
  64. package/dist/Tabs/{Tabs-7wEcxUv6.js → Tabs-sag2ofoG.js} +1 -1
  65. package/dist/Tabs/index.js +2 -2
  66. package/dist/Tooltip/{Tooltip-B_SZOy6k.js → Tooltip-DWWWYn1a.js} +1 -1
  67. package/dist/Tooltip/index.js +1 -1
  68. package/dist/Tree/index.js +3 -3
  69. package/dist/index.js +33 -32
  70. package/dist/vendors/{Tree-DqnOGJtB.js → Tree-DMC_MSw1.js} +2 -2
  71. package/dist/vendors/{useFloatingPortal-B2SDNV5C.js → useFloatingPortal-CsNiNirJ.js} +1 -0
  72. package/dist/vendors/useLatchedPopupPortalRoot-hwf14FJ5.js +24 -0
  73. package/package.json +1 -1
  74. package/dist/DatePicker/DatePicker-EIFyC9zF.js +0 -115
  75. package/dist/DropDown/DropDown-B34vfoOs.js +0 -172
  76. package/dist/Select/Select-DTximYG6.js +0 -734
  77. /package/dist/Calendar/{TimeAxis-Chwxo6Yj.js → TimeAxis-f40447Et.js} +0 -0
  78. /package/dist/Calendar/{colorUtils-FNbm3zBQ.js → colorUtils-Be9RqvDV.js} +0 -0
  79. /package/dist/Calendar/{context-CzS6P3nk.js → context-BrzVkPeC.js} +0 -0
  80. /package/dist/Calendar/{layout-Cb39seCc.js → layout-rnPhDP7c.js} +0 -0
  81. /package/dist/CheckBox/{CheckBox-ejvbDr-a.js → CheckBox-D7bCjlkU.js} +0 -0
  82. /package/dist/DatePicker/{ensureDayjsPlugins-DxqbKqon.js → ensureDayjsPlugins-Bz70Nzmi.js} +0 -0
  83. /package/dist/DatePicker/{pickerLocale-CtDOOxxD.js → pickerLocale-g90uglxB.js} +0 -0
  84. /package/dist/Gantt/{GanttHighlightContext-CtT98ZnK.js → GanttHighlightContext-CMXYFPyz.js} +0 -0
  85. /package/dist/Gantt/{columnResize-DFe7F98O.js → columnResize-1nSds2g5.js} +0 -0
  86. /package/dist/Gantt/{constants-CrBb5i5p.js → constants-BSCH_s3S.js} +0 -0
  87. /package/dist/Gantt/{highlightTarget-DtCe7zto.js → highlightTarget-EEsL61Qd.js} +0 -0
  88. /package/dist/Loading/{Loading-ho-6d72M.js → Loading-CV5GuhWQ.js} +0 -0
  89. /package/dist/NotFoundContent/{NotFoundContent-CV9fTylQ.js → NotFoundContent-J-TEnljc.js} +0 -0
  90. /package/dist/Radio/{Radio-C2zJzZc3.js → Radio-CMAwZdP7.js} +0 -0
  91. /package/dist/Select/{SelectInputSearch-BDwg-Noi.js → SelectInputSearch-dfBUnTCY.js} +0 -0
  92. /package/dist/Table/{constants-CuBlYZLO.js → constants-BZfNf-UU.js} +0 -0
  93. /package/dist/vendors/{cssVars-DoQgQ2CM.js → cssVars-B8o94Yao.js} +0 -0
  94. /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-CzS6P3nk.js";
3
- import { p as n } from "./layout-Cb39seCc.js";
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-BIfRqCk5.js";
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-CzVKrL6o.js";
4
- import { t as r } from "../Tooltip/Tooltip-B_SZOy6k.js";
5
- import { i, n as a, r as o, t as s } from "./context-CzS6P3nk.js";
6
- import { t as c } from "../DatePicker/DatePicker-EIFyC9zF.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-Cb39seCc.js";
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-Chwxo6Yj.js";
10
- import { t as I } from "./TimeGrid-Dk3soSo4.js";
11
- import { t as L } from "./CurrentTimeIndicator-Dpi36eVJ.js";
12
- import { n as R, r as z, t as B } from "./EventCard-BIfRqCk5.js";
13
- import { t as V } from "./AllDaySection-M-b9tRHh.js";
14
- import { a as re, i as ie, r as ae } from "./theme-Cgn0zQoC.js";
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-B_SZOy6k.js";
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-B_SZOy6k.js";
2
- import { i as t, n, t as r } from "./context-CzS6P3nk.js";
3
- import { m as i } from "./layout-Cb39seCc.js";
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-B_SZOy6k.js";
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-CzS6P3nk.js";
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 };
@@ -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 "../Segmented/Segmented-CzVKrL6o.js";
6
- import "../Tooltip/Tooltip-B_SZOy6k.js";
7
- import "./context-CzS6P3nk.js";
8
- import { t as e } from "./Calendar-C9PhASp0.js";
9
- import "../DatePicker/DatePicker-EIFyC9zF.js";
10
- import "../DatePicker/ensureDayjsPlugins-DxqbKqon.js";
11
- import "../DatePicker/pickerLocale-CtDOOxxD.js";
12
- import "../DatePicker/style-BxWyBhZ3.js";
13
- import "./layout-Cb39seCc.js";
14
- import "./TimeAxis-Chwxo6Yj.js";
15
- import "./TimeGrid-Dk3soSo4.js";
16
- import "./CurrentTimeIndicator-Dpi36eVJ.js";
17
- import "./EventCard-BIfRqCk5.js";
18
- import "./AllDaySection-M-b9tRHh.js";
19
- import { a as t, n } from "./theme-Cgn0zQoC.js";
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-B_SZOy6k.js";
3
- import "../../context-CzS6P3nk.js";
4
- import "../../../DatePicker/ensureDayjsPlugins-DxqbKqon.js";
5
- import "../../layout-Cb39seCc.js";
6
- import "../../EventCard-BIfRqCk5.js";
7
- import { t as e } from "../../AllDaySection-M-b9tRHh.js";
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-B_SZOy6k.js";
2
- import "../../../DatePicker/ensureDayjsPlugins-DxqbKqon.js";
3
- import "../../layout-Cb39seCc.js";
4
- import { t as e } from "../../CurrentTimeIndicator-Dpi36eVJ.js";
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-B_SZOy6k.js";
2
- import "../../context-CzS6P3nk.js";
3
- import "../../../DatePicker/ensureDayjsPlugins-DxqbKqon.js";
4
- import "../../layout-Cb39seCc.js";
5
- import { t as e } from "../../EventCard-BIfRqCk5.js";
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-DxqbKqon.js";
2
- import "../../layout-Cb39seCc.js";
3
- import { t as e } from "../../TimeAxis-Chwxo6Yj.js";
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-B_SZOy6k.js";
3
- import { t as e } from "../../TimeGrid-Dk3soSo4.js";
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-DoQgQ2CM.js";
2
- import { n as t } from "./colorUtils-FNbm3zBQ.js";
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-DxqbKqon.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-Cb39seCc.js";
3
- import { n as C, t as w } from "../colorUtils-FNbm3zBQ.js";
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-DxqbKqon.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-Cb39seCc.js";
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-Cgn0zQoC.js";
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 };
@@ -1,4 +1,4 @@
1
- import { n as e, r as t, t as n } from "./CheckBox-ejvbDr-a.js";
1
+ import { n as e, r as t, t as n } from "./CheckBox-D7bCjlkU.js";
2
2
  import { jsx as r } from "react/jsx-runtime";
3
3
  import i from "clsx";
4
4
  import { useControllableValue as a } from "ahooks";
@@ -1,4 +1,4 @@
1
1
  import "../Icon/Icon-SQ5tu-yG.js";
2
- import "./CheckBox-ejvbDr-a.js";
3
- import { t as e } from "./CheckBox-81R8QKHb.js";
2
+ import "./CheckBox-D7bCjlkU.js";
3
+ import { t as e } from "./CheckBox-GtT43IQ8.js";
4
4
  export { e as default };
@@ -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 { isArray as a } from "lodash-es";
7
- import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
8
- import { cloneElement as l, isValidElement as u, useMemo as d, useRef as f, useState as p } from "react";
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__ */ s("div", {
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__ */ s("div", {
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__ */ s(e, {
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 = u(t) ? l(t, {
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 = a(h) && h.length ? h : x, I = f(F.some((e) => r(e, E)) ? [] : [E]);
70
- return /* @__PURE__ */ c(o, { children: [P, /* @__PURE__ */ s(y, {
71
- root: d(() => k ? b?.() : void 0, [k, b]),
72
- children: /* @__PURE__ */ s(_, { children: k && /* @__PURE__ */ s("div", {
73
- ref: A.setFloating,
74
- style: j,
75
- ...N(),
76
- className: w["bsy-color-picker__floating"],
77
- children: /* @__PURE__ */ s(v.div, {
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__ */ s("div", {
81
+ children: /* @__PURE__ */ c("div", {
80
82
  className: w["bsy-color-picker__content"],
81
- children: /* @__PURE__ */ c("div", {
83
+ children: /* @__PURE__ */ l("div", {
82
84
  className: w["bsy-color-picker__grid"],
83
- children: [/* @__PURE__ */ c("div", {
85
+ children: [/* @__PURE__ */ l("div", {
84
86
  className: w["bsy-color-picker__preset-colors"],
85
- children: [/* @__PURE__ */ s("div", {
87
+ children: [/* @__PURE__ */ c("div", {
86
88
  className: w["bsy-color-picker__preset-colors-title"],
87
89
  children: C("presetColors")
88
- }), /* @__PURE__ */ s(T, {
90
+ }), /* @__PURE__ */ c(T, {
89
91
  currentColor: E,
90
92
  onColorSelect: O,
91
93
  options: F
92
94
  })]
93
- }), /* @__PURE__ */ s(D, {
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, l] = p(!1), { t: u } = n();
107
- return /* @__PURE__ */ c("div", {
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__ */ s("div", {
111
+ children: [/* @__PURE__ */ c("div", {
110
112
  className: w["bsy-color-picker__custom-color-title"],
111
113
  children: u("customColor")
112
- }), /* @__PURE__ */ c("div", {
114
+ }), /* @__PURE__ */ l("div", {
113
115
  className: w["bsy-color-picker__custom-color-content"],
114
- children: [/* @__PURE__ */ s(m, {
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
- l(e), !e && i && (r.includes(i) || r.unshift(i), t.onChange(i), a(void 0));
124
+ s(e), !e && i && (r.includes(i) || r.unshift(i), t.onChange(i), a(void 0));
123
125
  },
124
- children: /* @__PURE__ */ s("div", {
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
- l(!0);
134
+ s(!0);
133
135
  },
134
- children: /* @__PURE__ */ s(e, {
136
+ children: /* @__PURE__ */ c(e, {
135
137
  name: "add",
136
138
  style: { visibility: i ? "hidden" : "visible" }
137
139
  })
138
140
  })
139
- }), /* @__PURE__ */ s(T, {
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-aj57lMA5.js";
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-DxqbKqon.js";
5
- import { t as n } from "./pickerLocale-CtDOOxxD.js";
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";
@@ -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 { t as e } from "./DatePicker-EIFyC9zF.js";
5
- import "./ensureDayjsPlugins-DxqbKqon.js";
6
- import "./pickerLocale-CtDOOxxD.js";
7
- import "./style-BxWyBhZ3.js";
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-BxWyBhZ3.js";
1
+ import { t as e } from "../style-BlAisgTN.js";
2
2
  export { e as resolveDatePickerThemeVars };
@@ -1,4 +1,4 @@
1
- import { t as e } from "../vendors/cssVars-DoQgQ2CM.js";
1
+ import { t as e } from "../vendors/cssVars-B8o94Yao.js";
2
2
  import t from "tinycolor2";
3
3
  //#region src/components/DatePicker/style/resolveDatePickerThemeVars.ts
4
4
  var n = .3, r = "#fff", i = (i) => {