@baishuyun/ui-base 6.16.1 → 6.18.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.
Files changed (147) hide show
  1. package/dist/Amap/Amap-CNsoge6e.js +826 -0
  2. package/dist/Amap/index.js +3 -10
  3. package/dist/Calendar/Calendar-Dk6FVbJ2.js +1608 -0
  4. package/dist/Calendar/index.js +10 -20
  5. package/dist/Card/index.js +2 -2
  6. package/dist/CheckBox/{CheckBox-B92dxWNo.js → CheckBox-CM24-quL.js} +1 -1
  7. package/dist/CheckBox/index.js +3 -3
  8. package/dist/ColorPicker/{ColorPicker-CPr5j6ZN.js → ColorPicker-B_wLqurt.js} +5 -5
  9. package/dist/ColorPicker/index.js +5 -5
  10. package/dist/ConfigProvider/index.js +1 -1
  11. package/dist/DatePicker/DatePicker-CItkTpdZ.js +111 -0
  12. package/dist/DatePicker/{DatePickerPanel-CtLwYPmz.js → DatePickerPanel-DJXmFihs.js} +3 -4
  13. package/dist/DatePicker/index.js +6 -8
  14. package/dist/DatePicker/pickerLocale-Brf7_Tnd.js +30 -0
  15. package/dist/DropDown/{DropDown-Bi0TsCc_.js → DropDown-B_szM67V.js} +86 -82
  16. package/dist/DropDown/index.js +8 -9
  17. package/dist/Editor/index.js +2934 -961
  18. package/dist/Gantt/index.js +3055 -197
  19. package/dist/Icon/index.js +1 -1
  20. package/dist/InputTag/{InputTag-BfZycXw4.js → InputTag-C_5nm0eo.js} +2 -2
  21. package/dist/InputTag/index.js +4 -4
  22. package/dist/Loading/{Loading-DpbJSRYf.js → Loading-Cherk9Ax.js} +1 -1
  23. package/dist/Loading/index.js +3 -3
  24. package/dist/Modal/index.js +2 -2
  25. package/dist/NotFoundContent/index.js +2 -2
  26. package/dist/Overlay/index.js +1 -1
  27. package/dist/Radio/index.js +2 -2
  28. package/dist/ScrollBar/{ScrollBar-N2pOLv-8.js → ScrollBar-IMTuAOF5.js} +1 -1
  29. package/dist/ScrollBar/index.js +2 -2
  30. package/dist/Segmented/{Segmented-BCQRrc65.js → Segmented-DpmwFerw.js} +1 -1
  31. package/dist/Segmented/index.js +2 -2
  32. package/dist/Select/{Select-CB5FqBui.js → Select-VIy6OKEj.js} +257 -253
  33. package/dist/Select/{SelectInputSearch-DUAv2vE4.js → SelectInputSearch-MApQHnU9.js} +1 -1
  34. package/dist/Select/index.js +12 -13
  35. package/dist/Table/Table-8ac6xLZv.js +808 -0
  36. package/dist/Table/index.js +4 -8
  37. package/dist/Tabs/{Tabs-B9uCGlxM.js → Tabs-DnoZ8BO0.js} +3 -3
  38. package/dist/Tabs/index.js +4 -4
  39. package/dist/Tooltip/{Tooltip-nJU13gX4.js → Tooltip-DBrt3t2r.js} +3 -3
  40. package/dist/Tooltip/index.js +3 -3
  41. package/dist/Tree/index.js +4 -4
  42. package/dist/components/Editor/EditorHtmlPreview.d.ts +3 -0
  43. package/dist/components/Editor/Preview/EditorPreview.d.ts +1 -1
  44. package/dist/components/Editor/Preview/HtmlPreview.d.ts +2 -3
  45. package/dist/components/Editor/Preview/PolishModal.d.ts +0 -1
  46. package/dist/components/Editor/Preview/TypesetModal.d.ts +0 -1
  47. package/dist/components/Editor/Preview/useAiPreviewHtml.d.ts +8 -0
  48. package/dist/components/Editor/__tests__/createTestEditor.d.ts +1 -0
  49. package/dist/components/Editor/commands/ImageCommands.d.ts +1 -0
  50. package/dist/components/Editor/constants/portableEditorStyles.d.ts +2 -0
  51. package/dist/components/Editor/context/EditorContainerContext.d.ts +3 -2
  52. package/dist/components/Editor/hooks/useEditorFocus.d.ts +1 -0
  53. package/dist/components/Editor/hooks/useTextFormatsState.d.ts +1 -2
  54. package/dist/components/Editor/index.d.ts +1 -0
  55. package/dist/components/Editor/nodes/ExtendedLinkNode.d.ts +9 -0
  56. package/dist/components/Editor/nodes/ImageComponent.d.ts +1 -0
  57. package/dist/components/Editor/nodes/ImageNode.d.ts +5 -2
  58. package/dist/components/Editor/utils/getToolbarItems.d.ts +14 -0
  59. package/dist/components/Editor/utils/placeProgrammaticCaret.d.ts +5 -0
  60. package/dist/components/Editor/utils/readTextFormats.d.ts +6 -0
  61. package/dist/components/Editor/utils/retainCodeSelection.d.ts +3 -0
  62. package/dist/index.js +28 -50
  63. package/dist/style.css +1 -1
  64. package/dist/vendors/Tree-D0Q1IZ2D.js +267 -0
  65. package/dist/vendors/{version-Dzs4mguZ.js → version-BucxnUKs.js} +1 -1
  66. package/package.json +1 -1
  67. package/dist/Amap/Amap-BLSziesG.js +0 -77
  68. package/dist/Amap/AmapCircle/index.js +0 -5
  69. package/dist/Amap/AmapCircle-2qupysHe.js +0 -55
  70. package/dist/Amap/AmapContext-CJBe6lld.js +0 -11
  71. package/dist/Amap/AmapMarker/index.js +0 -6
  72. package/dist/Amap/AmapMarker-xEqoVnFR.js +0 -153
  73. package/dist/Amap/AmapMarkerCluster/index.js +0 -6
  74. package/dist/Amap/AmapMarkerCluster-CvEQa3o9.js +0 -240
  75. package/dist/Amap/AmapProvider/index.js +0 -7
  76. package/dist/Amap/AmapProvider-B-R2DrkJ.js +0 -107
  77. package/dist/Amap/hooks/index.js +0 -4
  78. package/dist/Amap/hooks-BTcFpdd0.js +0 -121
  79. package/dist/Amap/useMarkerInfoWindowController-Cjx0xQXw.js +0 -94
  80. package/dist/Calendar/AllDaySection-pO7suGJM.js +0 -53
  81. package/dist/Calendar/Calendar-Cjagi7mU.js +0 -795
  82. package/dist/Calendar/CurrentTimeIndicator-BF3_INSL.js +0 -65
  83. package/dist/Calendar/EventCard-DKEZQRTp.js +0 -155
  84. package/dist/Calendar/TimeAxis-DUc6EL-j.js +0 -13
  85. package/dist/Calendar/TimeGrid-BV8x9VnF.js +0 -47
  86. package/dist/Calendar/colorUtils-BbeSMnOs.js +0 -55
  87. package/dist/Calendar/context/index.js +0 -3
  88. package/dist/Calendar/context-CamSpkj3.js +0 -21
  89. package/dist/Calendar/layout-CpOabFQ2.js +0 -300
  90. package/dist/Calendar/subcomponents/AllDaySection/index.js +0 -11
  91. package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +0 -8
  92. package/dist/Calendar/subcomponents/EventCard/index.js +0 -9
  93. package/dist/Calendar/subcomponents/TimeAxis/index.js +0 -5
  94. package/dist/Calendar/subcomponents/TimeGrid/index.js +0 -7
  95. package/dist/Calendar/theme-Dc8hjcdo.js +0 -71
  96. package/dist/Calendar/utils/index.js +0 -111
  97. package/dist/Calendar/utils/layout/index.js +0 -4
  98. package/dist/Calendar/utils/theme/index.js +0 -3
  99. package/dist/DatePicker/DatePicker-neAwNSsc.js +0 -101
  100. package/dist/DatePicker/ensureDayjsPlugins-CSqhjLS7.js +0 -15
  101. package/dist/DatePicker/pickerLocale-CcPLUbZO.js +0 -15
  102. package/dist/DatePicker/style/index.js +0 -3
  103. package/dist/DatePicker/style-W7f5wyUb.js +0 -15
  104. package/dist/DropDown/style/index.js +0 -3
  105. package/dist/DropDown/style-DZpkarne.js +0 -9
  106. package/dist/Editor/Buttons-OwLs5bxR.js +0 -1841
  107. package/dist/Editor/ToolbarPlugin/Buttons/index.js +0 -21
  108. package/dist/Editor/constants/index.js +0 -61
  109. package/dist/Gantt/GanttChart/index.js +0 -21
  110. package/dist/Gantt/GanttChart-CDnF5qcc.js +0 -2292
  111. package/dist/Gantt/GanttHighlightContext-dtyoq-oj.js +0 -12
  112. package/dist/Gantt/GanttTable/index.js +0 -13
  113. package/dist/Gantt/GanttTable-fOv1Zn2-.js +0 -84
  114. package/dist/Gantt/GanttToolBar/index.js +0 -17
  115. package/dist/Gantt/GanttToolBar-BAoiWAHI.js +0 -120
  116. package/dist/Gantt/collapseKeys-BV_8sIA-.js +0 -160
  117. package/dist/Gantt/columnResize-Bkenlbab.js +0 -46
  118. package/dist/Gantt/constants-mEGQ1U1Q.js +0 -39
  119. package/dist/Gantt/highlightTarget-D3Nf9_7S.js +0 -25
  120. package/dist/Gantt/theme-B7Iap-tZ.js +0 -31
  121. package/dist/Gantt/timelineViewConfig-DNt7yi83.js +0 -118
  122. package/dist/Gantt/utils/index.js +0 -7
  123. package/dist/Gantt/utils/theme/index.js +0 -3
  124. package/dist/Select/style/index.js +0 -3
  125. package/dist/Select/style-C4A8kUd1.js +0 -9
  126. package/dist/Table/Table-3LSO0xSH.js +0 -545
  127. package/dist/Table/constants-D7wLH8Qy.js +0 -25
  128. package/dist/Table/hooks/index.js +0 -3
  129. package/dist/Table/hooks-DSBl2e4O.js +0 -108
  130. package/dist/Table/processRowspan-B6HMqw0Q.js +0 -144
  131. package/dist/Table/style/index.js +0 -3
  132. package/dist/Table/style-B8Cw8HJe.js +0 -9
  133. package/dist/Table/utils/index.js +0 -3
  134. package/dist/Tree/utils/index.js +0 -26
  135. package/dist/vendors/Tree-DSl4lDjx.js +0 -248
  136. /package/dist/Card/{Card-rJeWgxu5.js → Card-DAz0dvA3.js} +0 -0
  137. /package/dist/CheckBox/{CheckBox-DOK5N7z6.js → CheckBox-CcHskTz_.js} +0 -0
  138. /package/dist/Modal/{Modal-CRKitOOj.js → Modal-eZijJ7CB.js} +0 -0
  139. /package/dist/NotFoundContent/{NotFoundContent-BLmzWNBi.js → NotFoundContent-DJUQ0_2D.js} +0 -0
  140. /package/dist/Radio/{Radio-CX9cUqb7.js → Radio-D9jhW7K6.js} +0 -0
  141. /package/dist/vendors/{animations-Dn_5xJ7B.js → animations-ISccYUE3.js} +0 -0
  142. /package/dist/vendors/{cssVars-l4-kP_14.js → cssVars-UpriQzph.js} +0 -0
  143. /package/dist/vendors/{mergeRefs-TiJ0xjUN.js → mergeRefs-mEH9TBYV.js} +0 -0
  144. /package/dist/vendors/{useFloatingOverlay-B3M9k8nj.js → useFloatingOverlay-B66lOL8v.js} +0 -0
  145. /package/dist/vendors/{useFloatingPortal-VpzL-EPh.js → useFloatingPortal-DJ1iKmW-.js} +0 -0
  146. /package/dist/vendors/{useLatchedPopupPortalRoot-4fVhqVT4.js → useLatchedPopupPortalRoot-CC6af8t-.js} +0 -0
  147. /package/dist/vendors/{useLocale-D31qCCff.js → useLocale-Be4e7Xfn.js} +0 -0
@@ -1,23 +1,13 @@
1
- import "../vendors/version-Dzs4mguZ.js";
1
+ import "../vendors/version-BucxnUKs.js";
2
2
  import "../Icon/Icon-DrdQOEJE.js";
3
3
  import "../vendors/LocaleContext-DXQoOKM2.js";
4
4
  import "../Overlay/OverlayContext-CVSFoyqN.js";
5
- import "../vendors/useFloatingOverlay-B3M9k8nj.js";
6
- import "../vendors/useLocale-D31qCCff.js";
7
- import "../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
8
- import "../Segmented/Segmented-BCQRrc65.js";
9
- import "../Tooltip/Tooltip-nJU13gX4.js";
10
- import "./context-CamSpkj3.js";
11
- import { t as e } from "./Calendar-Cjagi7mU.js";
12
- import "../DatePicker/DatePicker-neAwNSsc.js";
13
- import "../DatePicker/ensureDayjsPlugins-CSqhjLS7.js";
14
- import "../DatePicker/pickerLocale-CcPLUbZO.js";
15
- import "../DatePicker/style-W7f5wyUb.js";
16
- import "./layout-CpOabFQ2.js";
17
- import "./TimeAxis-DUc6EL-j.js";
18
- import "./TimeGrid-BV8x9VnF.js";
19
- import "./CurrentTimeIndicator-BF3_INSL.js";
20
- import "./EventCard-DKEZQRTp.js";
21
- import "./AllDaySection-pO7suGJM.js";
22
- import { a as t, n } from "./theme-Dc8hjcdo.js";
23
- export { e as Calendar, e as default, t as resolveCalendarThemeVars, n as resolvePlatformCalendarTheme };
5
+ import "../vendors/useFloatingOverlay-B66lOL8v.js";
6
+ import "../vendors/useLocale-Be4e7Xfn.js";
7
+ import "../vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
8
+ import "../Segmented/Segmented-DpmwFerw.js";
9
+ import "../Tooltip/Tooltip-DBrt3t2r.js";
10
+ import { n as e, r as t, t as n } from "./Calendar-Dk6FVbJ2.js";
11
+ import "../DatePicker/DatePicker-CItkTpdZ.js";
12
+ import "../DatePicker/pickerLocale-Brf7_Tnd.js";
13
+ export { n as Calendar, n as default, t as resolveCalendarThemeVars, e as resolvePlatformCalendarTheme };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Dzs4mguZ.js";
1
+ import "../vendors/version-BucxnUKs.js";
2
2
  import "../Icon/Icon-DrdQOEJE.js";
3
- import { t as e } from "./Card-rJeWgxu5.js";
3
+ import { t as e } from "./Card-DAz0dvA3.js";
4
4
  export { e as default };
@@ -1,4 +1,4 @@
1
- import { n as e, r as t, t as n } from "./CheckBox-DOK5N7z6.js";
1
+ import { n as e, r as t, t as n } from "./CheckBox-CcHskTz_.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,5 +1,5 @@
1
- import "../vendors/version-Dzs4mguZ.js";
1
+ import "../vendors/version-BucxnUKs.js";
2
2
  import "../Icon/Icon-DrdQOEJE.js";
3
- import "./CheckBox-DOK5N7z6.js";
4
- import { t as e } from "./CheckBox-B92dxWNo.js";
3
+ import "./CheckBox-CcHskTz_.js";
4
+ import { t as e } from "./CheckBox-CM24-quL.js";
5
5
  export { e as default };
@@ -1,10 +1,10 @@
1
1
  import { t as e } from "../Icon/Icon-DrdQOEJE.js";
2
2
  import { a as t, i as n } from "../Overlay/OverlayContext-CVSFoyqN.js";
3
- import { t as r } from "../vendors/useFloatingOverlay-B3M9k8nj.js";
4
- import { t as i } from "../vendors/useLocale-D31qCCff.js";
5
- import { r as a } from "../vendors/animations-Dn_5xJ7B.js";
6
- import { t as o } from "../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
7
- import { n as s } from "../vendors/mergeRefs-TiJ0xjUN.js";
3
+ import { t as r } from "../vendors/useFloatingOverlay-B66lOL8v.js";
4
+ import { t as i } from "../vendors/useLocale-Be4e7Xfn.js";
5
+ import { r as a } from "../vendors/animations-ISccYUE3.js";
6
+ import { t as o } from "../vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
7
+ import { n as s } from "../vendors/mergeRefs-mEH9TBYV.js";
8
8
  import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
9
9
  import { cloneElement as d, isValidElement as f, useRef as p, useState as m } from "react";
10
10
  import { ColorPicker as h } from "antd";
@@ -1,9 +1,9 @@
1
- import "../vendors/version-Dzs4mguZ.js";
1
+ import "../vendors/version-BucxnUKs.js";
2
2
  import "../Icon/Icon-DrdQOEJE.js";
3
3
  import "../vendors/LocaleContext-DXQoOKM2.js";
4
4
  import "../Overlay/OverlayContext-CVSFoyqN.js";
5
- import { n as e, t } from "./ColorPicker-CPr5j6ZN.js";
6
- import "../vendors/useFloatingOverlay-B3M9k8nj.js";
7
- import "../vendors/useLocale-D31qCCff.js";
8
- import "../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
5
+ import { n as e, t } from "./ColorPicker-B_wLqurt.js";
6
+ import "../vendors/useFloatingOverlay-B66lOL8v.js";
7
+ import "../vendors/useLocale-Be4e7Xfn.js";
8
+ import "../vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
9
9
  export { e as COLOR_OPTIONS_RGBA, t as default };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-Dzs4mguZ.js";
1
+ import "../vendors/version-BucxnUKs.js";
2
2
  import "../vendors/LocaleContext-DXQoOKM2.js";
3
3
  import { n as e, t } from "../vendors/ConfigProvider-gZYvcwIQ.js";
4
4
  import "../Overlay/OverlayContext-CVSFoyqN.js";
@@ -0,0 +1,111 @@
1
+ import { a as e, i as t } from "../Overlay/OverlayContext-CVSFoyqN.js";
2
+ import { t as n } from "../vendors/useFloatingOverlay-B66lOL8v.js";
3
+ import { t as r } from "../vendors/useLocale-Be4e7Xfn.js";
4
+ import { r as i } from "../vendors/animations-ISccYUE3.js";
5
+ import { t as a } from "../vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
6
+ import { t as o } from "../vendors/cssVars-UpriQzph.js";
7
+ import { n as s } from "./pickerLocale-Brf7_Tnd.js";
8
+ import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
9
+ import { Suspense as d, cloneElement as f, isValidElement as p, lazy as m, useCallback as h, useMemo as g } from "react";
10
+ import _ from "clsx";
11
+ import { useControllableValue as v } from "ahooks";
12
+ import { AnimatePresence as y, motion as b } from "motion/react";
13
+ import { FloatingPortal as x } from "@floating-ui/react";
14
+ import S from "tinycolor2";
15
+ import C from "dayjs";
16
+ var w = {
17
+ footer: "_footer_h6lng_1",
18
+ today: "_today_h6lng_11"
19
+ }, T = ({ onClick: e }) => {
20
+ let { t } = r();
21
+ return /* @__PURE__ */ l("div", {
22
+ className: w.footer,
23
+ children: /* @__PURE__ */ l("button", {
24
+ type: "button",
25
+ className: w.today,
26
+ onClick: e,
27
+ children: t("datePicker.today")
28
+ })
29
+ });
30
+ }, E = (e, t) => {
31
+ switch (t) {
32
+ case "week": return e.startOf("isoWeek");
33
+ case "month": return e.startOf("month");
34
+ case "year": return e.startOf("year");
35
+ default: return e.startOf("day");
36
+ }
37
+ }, D = .3, O = "#fff", k = (e) => {
38
+ if (!e) return {};
39
+ let t = {};
40
+ if (o(t, "--bsy-date-picker-color-surface", e.colorBgContainer), o(t, "--bsy-date-picker-color-primary", e.colorPrimary), e.colorPrimaryHover) o(t, "--bsy-date-picker-color-primary-hover", e.colorPrimaryHover), o(t, "--bsy-date-picker-color-today-bg", e.colorPrimaryHover);
41
+ else if (e.colorPrimary) {
42
+ let n = S(e.colorPrimary).setAlpha(D).toRgbString();
43
+ o(t, "--bsy-date-picker-color-primary-hover", n), o(t, "--bsy-date-picker-color-today-bg", n);
44
+ }
45
+ return o(t, "--bsy-date-picker-color-arrow", e.headerColor), o(t, "--bsy-date-picker-color-header", e.headerColor), o(t, "--bsy-date-picker-color-header-hover", e.headerHoverColor), o(t, "--bsy-date-picker-color-cell", e.colorText), o(t, "--bsy-date-picker-color-cell-tertiary", e.colorTextTertiary), o(t, "--bsy-date-picker-color-cell-selected-bg", e.cellSelectedBg), o(t, "--bsy-date-picker-color-week-row-bg", e.weekRangeBg), e.cellSelectedBg && (t["--bsy-date-picker-color-cell-selected"] = O), t;
46
+ }, A = {
47
+ "bsy-date-picker": "_bsy-date-picker_1i2le_1",
48
+ "bsy-date-picker__content": "_bsy-date-picker__content_1i2le_33",
49
+ "bsy-date-picker__divider": "_bsy-date-picker__divider_1i2le_43",
50
+ "bsy-date-picker__panel-loading": "_bsy-date-picker__panel-loading_1i2le_49"
51
+ }, j = m(() => import("./DatePickerPanel-DJXmFihs.js")), M = (o) => {
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
+ defaultValuePropName: "defaultValue",
54
+ valuePropName: "value",
55
+ trigger: "onChange",
56
+ defaultValue: C().locale(s(N)).startOf("day")
57
+ }), { isOpen: L, setIsOpen: R, refs: z, floatingStyles: B, getReferenceProps: V, getFloatingProps: H } = n(), U = h((e) => {
58
+ e && (I(E(e, S)), R(!1));
59
+ }, [
60
+ S,
61
+ I,
62
+ R
63
+ ]), W = h(() => {
64
+ U(C().locale(s(N)));
65
+ }, [U, N]), G = g(() => k(w), [w]), { portalRoot: K, portalMountKey: q, handleExitComplete: J } = a(L, D);
66
+ return p(m), /* @__PURE__ */ u(c, { children: [p(m) ? f(m, {
67
+ ...V({ className: _(m.props.className, L && O) }),
68
+ ref: z.setReference
69
+ }) : m, /* @__PURE__ */ l(x, {
70
+ root: K,
71
+ children: /* @__PURE__ */ l(t, {
72
+ zIndex: P,
73
+ children: /* @__PURE__ */ l(y, {
74
+ onExitComplete: J,
75
+ children: L ? /* @__PURE__ */ l(b.div, {
76
+ ref: z.setFloating,
77
+ style: {
78
+ ...B,
79
+ ...G,
80
+ "--bsy-date-picker-z-index": P
81
+ },
82
+ ...H(),
83
+ "data-bsy-date-picker": !0,
84
+ className: A["bsy-date-picker"],
85
+ ...i,
86
+ children: /* @__PURE__ */ u("div", {
87
+ className: A["bsy-date-picker__content"],
88
+ children: [
89
+ /* @__PURE__ */ l(d, {
90
+ fallback: /* @__PURE__ */ l("div", {
91
+ className: A["bsy-date-picker__panel-loading"],
92
+ "aria-hidden": !0
93
+ }),
94
+ children: /* @__PURE__ */ l(j, {
95
+ picker: S,
96
+ value: F,
97
+ onChange: U
98
+ })
99
+ }),
100
+ /* @__PURE__ */ l("div", { className: A["bsy-date-picker__divider"] }),
101
+ /* @__PURE__ */ l(T, { onClick: W })
102
+ ]
103
+ })
104
+ }, "bsy-date-picker-panel") : null
105
+ })
106
+ })
107
+ }, q)] });
108
+ };
109
+ M.displayName = "BsyDatePicker";
110
+ //#endregion
111
+ export { M as t };
@@ -1,9 +1,8 @@
1
- import "../vendors/version-Dzs4mguZ.js";
1
+ import "../vendors/version-BucxnUKs.js";
2
2
  import { t as e } from "../Icon/Icon-DrdQOEJE.js";
3
3
  import "../vendors/LocaleContext-DXQoOKM2.js";
4
- import { t } from "../vendors/useLocale-D31qCCff.js";
5
- import "./ensureDayjsPlugins-CSqhjLS7.js";
6
- import { t as n } from "./pickerLocale-CcPLUbZO.js";
4
+ import { t } from "../vendors/useLocale-Be4e7Xfn.js";
5
+ import { t as n } from "./pickerLocale-Brf7_Tnd.js";
7
6
  import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
8
7
  import { useCallback as o, useEffect as s, useLayoutEffect as c, useMemo as l, useRef as u, useState as d } from "react";
9
8
  import { clsx as f } from "clsx";
@@ -1,11 +1,9 @@
1
- import "../vendors/version-Dzs4mguZ.js";
1
+ import "../vendors/version-BucxnUKs.js";
2
2
  import "../vendors/LocaleContext-DXQoOKM2.js";
3
3
  import "../Overlay/OverlayContext-CVSFoyqN.js";
4
- import "../vendors/useFloatingOverlay-B3M9k8nj.js";
5
- import "../vendors/useLocale-D31qCCff.js";
6
- import "../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
7
- import { t as e } from "./DatePicker-neAwNSsc.js";
8
- import "./ensureDayjsPlugins-CSqhjLS7.js";
9
- import "./pickerLocale-CcPLUbZO.js";
10
- import "./style-W7f5wyUb.js";
4
+ import "../vendors/useFloatingOverlay-B66lOL8v.js";
5
+ import "../vendors/useLocale-Be4e7Xfn.js";
6
+ import "../vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
7
+ import { t as e } from "./DatePicker-CItkTpdZ.js";
8
+ import "./pickerLocale-Brf7_Tnd.js";
11
9
  export { e as default };
@@ -0,0 +1,30 @@
1
+ import e from "dayjs";
2
+ import t from "dayjs/plugin/isoWeek";
3
+ import n from "dayjs/plugin/localeData";
4
+ import r from "dayjs/plugin/timezone";
5
+ import i from "dayjs/plugin/updateLocale";
6
+ import a from "dayjs/plugin/utc";
7
+ import o from "dayjs/plugin/weekday";
8
+ import "dayjs/locale/zh-cn";
9
+ import "dayjs/locale/zh-tw";
10
+ import "dayjs/locale/en";
11
+ import "@rc-component/picker/es/generate/dayjs";
12
+ import s from "@rc-component/picker/es/locale/en_US";
13
+ import c from "@rc-component/picker/es/locale/zh_CN";
14
+ import l from "@rc-component/picker/es/locale/zh_TW";
15
+ //#region src/components/DatePicker/utils/ensureDayjsPlugins.ts
16
+ var u = !1;
17
+ u ||= (e.extend(a), e.extend(r), e.extend(t), e.extend(o), e.extend(n), e.extend(i), !0);
18
+ //#endregion
19
+ //#region src/components/DatePicker/utils/pickerLocale.ts
20
+ var d = {
21
+ "zh-CN": c,
22
+ "zh-TW": l,
23
+ "en-US": s
24
+ }, f = (e) => d[e] ?? c, p = {
25
+ "zh-CN": "zh-cn",
26
+ "zh-TW": "zh-tw",
27
+ "en-US": "en"
28
+ }, m = (e) => p[e] ?? "zh-cn";
29
+ //#endregion
30
+ export { m as n, f as t };
@@ -1,20 +1,20 @@
1
1
  import { t as e } from "../Icon/Icon-DrdQOEJE.js";
2
2
  import { a as t, i as n } from "../Overlay/OverlayContext-CVSFoyqN.js";
3
- import { t as r } from "../vendors/useLocale-D31qCCff.js";
4
- import { r as i } from "../vendors/animations-Dn_5xJ7B.js";
5
- import { t as a } from "../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
6
- import { t as o } from "../Select/SelectInputSearch-DUAv2vE4.js";
7
- import { t as s } from "../NotFoundContent/NotFoundContent-BLmzWNBi.js";
8
- import { t as c } from "../ScrollBar/ScrollBar-N2pOLv-8.js";
9
- import { t as l } from "../vendors/useFloatingPortal-VpzL-EPh.js";
10
- import { t as u } from "./style-DZpkarne.js";
3
+ import { t as r } from "../vendors/useLocale-Be4e7Xfn.js";
4
+ import { r as i } from "../vendors/animations-ISccYUE3.js";
5
+ import { t as a } from "../vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
6
+ import { t as o } from "../vendors/cssVars-UpriQzph.js";
7
+ import { t as s } from "../Select/SelectInputSearch-MApQHnU9.js";
8
+ import { t as c } from "../NotFoundContent/NotFoundContent-DJUQ0_2D.js";
9
+ import { t as l } from "../ScrollBar/ScrollBar-IMTuAOF5.js";
10
+ import { t as u } from "../vendors/useFloatingPortal-DJ1iKmW-.js";
11
11
  import { isEmpty as d, isNumber as f } from "lodash-es";
12
12
  import { jsx as p, jsxs as m } from "react/jsx-runtime";
13
- import { cloneElement as h, createContext as g, forwardRef as _, isValidElement as ee, memo as v, useCallback as y, useContext as b, useMemo as x, useState as S } from "react";
14
- import { clsx as C } from "clsx";
15
- import { useControllableValue as te } from "ahooks";
16
- import { AnimatePresence as w, motion as T } from "motion/react";
17
- import { FloatingNode as E, FloatingPortal as D, FloatingTree as O, autoUpdate as k, flip as ne, offset as A, safePolygon as j, shift as M, useFloating as N, useFloatingNodeId as P, useHover as F, useInteractions as I } from "@floating-ui/react";
13
+ import { cloneElement as h, createContext as g, forwardRef as _, isValidElement as v, memo as y, useCallback as b, useContext as x, useMemo as S, useState as C } from "react";
14
+ import { clsx as w } from "clsx";
15
+ import { useControllableValue as ee } from "ahooks";
16
+ import { AnimatePresence as T, motion as E } from "motion/react";
17
+ import { FloatingNode as te, FloatingPortal as D, FloatingTree as O, autoUpdate as k, flip as A, offset as ne, safePolygon as j, shift as M, useFloating as N, useFloatingNodeId as P, useHover as F, useInteractions as I } from "@floating-ui/react";
18
18
  import L from "fuse.js";
19
19
  //#region src/hooks/useDropdownSearch.ts
20
20
  function R(e) {
@@ -38,12 +38,12 @@ var B = (e, t) => {
38
38
  let n = Array.isArray(t) ? t[0] : t, r = e[n];
39
39
  return n === "label" && typeof r != "string" ? "" : String(r || "");
40
40
  }, re = ({ menus: e, searchValue: t, enableInternalFilter: n, searchKey: r }) => {
41
- let i = x(() => R(e), [e]), a = x(() => new L(i, {
41
+ let i = S(() => R(e), [e]), a = S(() => new L(i, {
42
42
  keys: [r],
43
43
  ignoreLocation: !0,
44
44
  threshold: .3,
45
45
  getFn: B
46
- }), [i, r]), o = x(() => !n || d(t) ? e : z(e, new Set(a.search(t).map((e) => e.item.key))), [
46
+ }), [i, r]), o = S(() => !n || d(t) ? e : z(e, new Set(a.search(t).map((e) => e.item.key))), [
47
47
  e,
48
48
  t,
49
49
  n,
@@ -70,7 +70,7 @@ var B = (e, t) => {
70
70
  let s = t.systemField || !1;
71
71
  return /* @__PURE__ */ m("div", {
72
72
  ref: o,
73
- className: C(q["dropdown__menu-item"], {
73
+ className: w(q["dropdown__menu-item"], {
74
74
  [q["dropdown__menu-item--disabled"]]: t.disabled,
75
75
  [q["dropdown__menu-item--active"]]: n && !t.disabled,
76
76
  "text-[#4d609f]": s && !t.disabled && !n
@@ -78,11 +78,11 @@ var B = (e, t) => {
78
78
  ...a,
79
79
  children: [
80
80
  t.icon && /* @__PURE__ */ p("div", {
81
- className: C(q["dropdown__menu-item-icon"], { [q["system-field"]]: s && !t.disabled && !n }),
81
+ className: w(q["dropdown__menu-item-icon"], { [q["system-field"]]: s && !t.disabled && !n }),
82
82
  children: t.icon
83
83
  }),
84
84
  /* @__PURE__ */ p("div", {
85
- className: C(q["dropdown__menu-item-label"], "truncate"),
85
+ className: w(q["dropdown__menu-item-label"], "truncate"),
86
86
  children: t.label
87
87
  }),
88
88
  r ? /* @__PURE__ */ p(e, {
@@ -101,7 +101,7 @@ var Y = ({ item: e, onClick: t, isActive: n = !1 }) => /* @__PURE__ */ p(J, {
101
101
  e.disabled || t(e);
102
102
  }
103
103
  }), X = ({ item: e, onClick: r, isActive: a = !1, isSubmenuOpen: o = !1, onSubmenuOpen: s, onSubmenuLeave: c, activeKey: l = [] }) => {
104
- let u = b(V), d = b(H), f = o && !e.disabled && u, h = P(), g = t(), { refs: _, floatingStyles: ee, context: v } = N({
104
+ let u = x(V), d = x(H), f = o && !e.disabled && u, h = P(), g = t(), { refs: _, floatingStyles: v, context: y } = N({
105
105
  nodeId: h,
106
106
  open: f,
107
107
  onOpenChange: (t) => {
@@ -118,34 +118,34 @@ var Y = ({ item: e, onClick: t, isActive: n = !1 }) => /* @__PURE__ */ p(J, {
118
118
  transform: !1,
119
119
  whileElementsMounted: k,
120
120
  middleware: [
121
- A(4),
122
- ne({ fallbackPlacements: ["left-start"] }),
121
+ ne(4),
122
+ A({ fallbackPlacements: ["left-start"] }),
123
123
  M({ padding: 8 })
124
124
  ]
125
- }), { getReferenceProps: y, getFloatingProps: x } = I([F(v, {
125
+ }), { getReferenceProps: b, getFloatingProps: S } = I([F(y, {
126
126
  enabled: !e.disabled && u,
127
127
  handleClose: j({ requireIntent: !1 })
128
128
  })]);
129
- return /* @__PURE__ */ m(E, {
129
+ return /* @__PURE__ */ m(te, {
130
130
  id: h,
131
131
  children: [/* @__PURE__ */ p(J, {
132
132
  ref: _.setReference,
133
133
  item: e,
134
134
  isActive: a,
135
135
  showArrow: !0,
136
- ...y({ onClick: () => {
136
+ ...b({ onClick: () => {
137
137
  e.disabled || s?.();
138
138
  } })
139
139
  }), /* @__PURE__ */ p(D, { children: /* @__PURE__ */ p(n, {
140
140
  zIndex: g,
141
- children: /* @__PURE__ */ p(w, { children: f ? /* @__PURE__ */ p(T.div, {
141
+ children: /* @__PURE__ */ p(T, { children: f ? /* @__PURE__ */ p(E.div, {
142
142
  ref: _.setFloating,
143
143
  style: {
144
- ...ee,
144
+ ...v,
145
145
  zIndex: g
146
146
  },
147
147
  ...i,
148
- ...x({ onMouseDown: (e) => e.preventDefault() }),
148
+ ...S({ onMouseDown: (e) => e.preventDefault() }),
149
149
  children: /* @__PURE__ */ p("div", {
150
150
  className: q.dropdown__panel,
151
151
  style: d,
@@ -158,20 +158,20 @@ var Y = ({ item: e, onClick: t, isActive: n = !1 }) => /* @__PURE__ */ p(J, {
158
158
  }, `bsy-dropdown-submenu-${e.key}`) : null })
159
159
  }) })]
160
160
  });
161
- }, Z = v((e) => e.item.children?.length ? /* @__PURE__ */ p(X, { ...e }) : /* @__PURE__ */ p(Y, { ...e }));
161
+ }, Z = y((e) => e.item.children?.length ? /* @__PURE__ */ p(X, { ...e }) : /* @__PURE__ */ p(Y, { ...e }));
162
162
  Z.displayName = "BsyDropDownMenuItem";
163
163
  //#endregion
164
164
  //#region src/components/DropDown/MenuList/MenuList.tsx
165
165
  var Q = ({ menus: e, onClick: t, hasNoResults: n, activeKey: i = [] }) => {
166
- let { t: a } = r(), [o, c] = S(null), l = y((e) => {
167
- c(e);
168
- }, []), u = y((e) => {
169
- c((t) => t === e ? null : t);
166
+ let { t: a } = r(), [o, s] = C(null), l = b((e) => {
167
+ s(e);
168
+ }, []), u = b((e) => {
169
+ s((t) => t === e ? null : t);
170
170
  }, []);
171
- return e.length === 0 ? /* @__PURE__ */ p(s, {
171
+ return e.length === 0 ? /* @__PURE__ */ p(c, {
172
172
  text: a("noData"),
173
173
  className: "px-3 py-6"
174
- }) : n ? /* @__PURE__ */ p(s, {
174
+ }) : n ? /* @__PURE__ */ p(c, {
175
175
  text: a("noDataFound"),
176
176
  className: "px-3 py-6"
177
177
  }) : /* @__PURE__ */ p("div", {
@@ -189,69 +189,73 @@ var Q = ({ menus: e, onClick: t, hasNoResults: n, activeKey: i = [] }) => {
189
189
  };
190
190
  Q.displayName = "BsyDropDownMenuList";
191
191
  //#endregion
192
- //#region src/components/DropDown/DropDown.tsx
192
+ //#region src/components/DropDown/style/resolveDropDownThemeVars.ts
193
193
  var ie = (e) => {
194
- let { t: s } = r(), { children: d, menus: g, onClick: _, onSearch: v, searchKey: y = "label", showSearch: b = !0, closeOnSelect: C = !0, searchPlaceholder: O = s("search"), offset: k = {
194
+ if (!e) return {};
195
+ let t = {};
196
+ return o(t, "--bsy-dropdown-color-bg", e.colorBgContainer), o(t, "--bsy-dropdown-color-text", e.colorText), o(t, "--bsy-dropdown-color-icon", e.colorIcon), o(t, "--bsy-dropdown-color-text-disabled", e.colorTextDisabled), o(t, "--bsy-dropdown-item-hover-bg", e.itemHoverBg), o(t, "--bsy-dropdown-item-active-bg", e.itemActiveBg), o(t, "--bsy-dropdown-item-active-color", e.itemActiveColor), t;
197
+ }, ae = (e) => {
198
+ let { t: o } = r(), { children: c, menus: d, onClick: g, onSearch: _, searchKey: y = "label", showSearch: b = !0, closeOnSelect: x = !0, searchPlaceholder: w = o("search"), offset: O = {
195
199
  x: 0,
196
200
  y: 0
197
- }, zIndex: ne, style: A, activeKey: j = [], getPopupContainer: M, theme: N } = e, F = t(ne), I = P(), [L, R] = te(e, {
201
+ }, zIndex: k, style: A, activeKey: ne = [], getPopupContainer: j, theme: M } = e, N = t(k), F = P(), [I, L] = ee(e, {
198
202
  valuePropName: "visible",
199
203
  defaultValue: !1,
200
204
  trigger: "onOpenChange"
201
- }), [z, B] = S(""), U = () => {
202
- R(!L);
203
- }, W = () => {
204
- R(!1);
205
+ }), [R, z] = C(""), B = () => {
206
+ L(!I);
207
+ }, U = () => {
208
+ L(!1);
209
+ }, W = (e) => {
210
+ e.disabled || e.children?.length || (g?.(e), x && U());
205
211
  }, G = (e) => {
206
- e.disabled || e.children?.length || (_?.(e), C && W());
207
- }, K = (e) => {
208
- B(e), v?.(e);
209
- }, { filteredMenus: J, hasNoResults: Y } = re({
210
- menus: g,
211
- searchValue: z,
212
- enableInternalFilter: !v,
212
+ z(e), _?.(e);
213
+ }, { filteredMenus: K, hasNoResults: J } = re({
214
+ menus: d,
215
+ searchValue: R,
216
+ enableInternalFilter: !_,
213
217
  searchKey: y
214
- }), { refs: X, floatingStyles: Z, getReferenceProps: ie, getFloatingProps: $ } = l({
215
- isOpen: L,
216
- close: W,
218
+ }), { refs: Y, floatingStyles: X, getReferenceProps: Z, getFloatingProps: ae } = u({
219
+ isOpen: I,
220
+ close: U,
217
221
  showMask: !1,
218
- zIndex: F,
219
- nodeId: I,
222
+ zIndex: N,
223
+ nodeId: F,
220
224
  offset: {
221
- x: f(k.x) ? k.x : 0,
222
- y: f(k.y) ? k.y : 0
225
+ x: f(O.x) ? O.x : 0,
226
+ y: f(O.y) ? O.y : 0
223
227
  }
224
- }), ae = ee(d) ? h(d, {
225
- ...ie(),
226
- ref: X.setReference,
228
+ }), $ = v(c) ? h(c, {
229
+ ...Z(),
230
+ ref: Y.setReference,
227
231
  onClick: (e) => {
228
- U(), d.props.onClick?.(e);
232
+ B(), c.props.onClick?.(e);
229
233
  },
230
234
  onMouseDown: (e) => {
231
- e.preventDefault(), d.props.onMouseDown?.(e);
235
+ e.preventDefault(), c.props.onMouseDown?.(e);
232
236
  }
233
- }) : d, { portalRoot: oe, portalMountKey: se, handleExitComplete: ce } = a(L, M), le = x(() => u(N), [N]), ue = x(() => ({
237
+ }) : c, { portalRoot: oe, portalMountKey: se, handleExitComplete: ce } = a(I, j), le = S(() => ie(M), [M]), ue = S(() => ({
234
238
  ...le,
235
239
  ...A
236
240
  }), [le, A]);
237
- return /* @__PURE__ */ m(E, {
238
- id: I,
239
- children: [ae, /* @__PURE__ */ p(D, {
241
+ return /* @__PURE__ */ m(te, {
242
+ id: F,
243
+ children: [$, /* @__PURE__ */ p(D, {
240
244
  root: oe,
241
245
  children: /* @__PURE__ */ p(H.Provider, {
242
246
  value: ue,
243
247
  children: /* @__PURE__ */ p(V.Provider, {
244
- value: L,
248
+ value: I,
245
249
  children: /* @__PURE__ */ p(n, {
246
- zIndex: F,
247
- children: /* @__PURE__ */ p(w, {
250
+ zIndex: N,
251
+ children: /* @__PURE__ */ p(T, {
248
252
  onExitComplete: ce,
249
- children: L ? /* @__PURE__ */ p(T.div, {
250
- ref: X.setFloating,
251
- ...$(),
253
+ children: I ? /* @__PURE__ */ p(E.div, {
254
+ ref: Y.setFloating,
255
+ ...ae(),
252
256
  style: {
253
- ...Z,
254
- zIndex: F
257
+ ...X,
258
+ zIndex: N
255
259
  },
256
260
  ...i,
257
261
  children: /* @__PURE__ */ m("div", {
@@ -262,18 +266,18 @@ var ie = (e) => {
262
266
  },
263
267
  children: [b && /* @__PURE__ */ p("div", {
264
268
  className: q.dropdown__search,
265
- children: /* @__PURE__ */ p(o, {
266
- value: z,
267
- onChange: K,
268
- searchPlaceholder: O
269
+ children: /* @__PURE__ */ p(s, {
270
+ value: R,
271
+ onChange: G,
272
+ searchPlaceholder: w
269
273
  })
270
- }), /* @__PURE__ */ p(c, {
274
+ }), /* @__PURE__ */ p(l, {
271
275
  style: { maxHeight: 300 },
272
276
  children: /* @__PURE__ */ p(Q, {
273
- menus: J,
274
- onClick: G,
275
- hasNoResults: Y,
276
- activeKey: j
277
+ menus: K,
278
+ onClick: W,
279
+ hasNoResults: J,
280
+ activeKey: ne
277
281
  })
278
282
  })]
279
283
  })
@@ -284,7 +288,7 @@ var ie = (e) => {
284
288
  })
285
289
  }, se)]
286
290
  });
287
- }, $ = (e) => /* @__PURE__ */ p(O, { children: /* @__PURE__ */ p(ie, { ...e }) });
291
+ }, $ = (e) => /* @__PURE__ */ p(O, { children: /* @__PURE__ */ p(ae, { ...e }) });
288
292
  $.displayName = "BsyDropDown";
289
293
  //#endregion
290
294
  export { $ as t };
@@ -1,14 +1,13 @@
1
- import "../vendors/version-Dzs4mguZ.js";
1
+ import "../vendors/version-BucxnUKs.js";
2
2
  import "../ScrollBar/style-D26azwz6.js";
3
3
  import "../Icon/Icon-DrdQOEJE.js";
4
4
  import "../vendors/LocaleContext-DXQoOKM2.js";
5
5
  import "../Overlay/OverlayContext-CVSFoyqN.js";
6
- import "../vendors/useLocale-D31qCCff.js";
7
- import "../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
8
- import "../Select/SelectInputSearch-DUAv2vE4.js";
9
- import "../NotFoundContent/NotFoundContent-BLmzWNBi.js";
10
- import "../ScrollBar/ScrollBar-N2pOLv-8.js";
11
- import "../vendors/useFloatingPortal-VpzL-EPh.js";
12
- import { t as e } from "./DropDown-Bi0TsCc_.js";
13
- import "./style-DZpkarne.js";
6
+ import "../vendors/useLocale-Be4e7Xfn.js";
7
+ import "../vendors/useLatchedPopupPortalRoot-CC6af8t-.js";
8
+ import "../Select/SelectInputSearch-MApQHnU9.js";
9
+ import "../NotFoundContent/NotFoundContent-DJUQ0_2D.js";
10
+ import "../ScrollBar/ScrollBar-IMTuAOF5.js";
11
+ import "../vendors/useFloatingPortal-DJ1iKmW-.js";
12
+ import { t as e } from "./DropDown-B_szM67V.js";
14
13
  export { e as default };