@baishuyun/ui-base 6.9.1 → 6.10.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.
- package/dist/Amap/{Amap-BNnmSPnl.js → Amap-BLSziesG.js} +1 -1
- package/dist/Amap/AmapCircle/index.js +4 -4
- package/dist/Amap/{AmapCircle-BDW6pnNR.js → AmapCircle-2qupysHe.js} +1 -1
- package/dist/Amap/AmapMarker/index.js +5 -5
- package/dist/Amap/{AmapMarker-CdoPWdff.js → AmapMarker-xEqoVnFR.js} +2 -2
- package/dist/Amap/AmapMarkerCluster/index.js +5 -5
- package/dist/Amap/{AmapMarkerCluster-CSIxiVC5.js → AmapMarkerCluster-CvEQa3o9.js} +2 -2
- package/dist/Amap/AmapProvider/index.js +6 -5
- package/dist/Amap/{AmapProvider-Cwi6WOe0.js → AmapProvider-DqFp3DZ5.js} +2 -2
- package/dist/Amap/hooks/index.js +3 -3
- package/dist/Amap/{hooks-DAN31s_-.js → hooks-BTcFpdd0.js} +1 -1
- package/dist/Amap/index.js +12 -11
- package/dist/Calendar/{AllDaySection-a96dIzs3.js → AllDaySection-BqbcPQls.js} +1 -1
- package/dist/Calendar/{Calendar-Bcs9mxET.js → Calendar-gEtuBW7Y.js} +9 -10
- package/dist/Calendar/{CurrentTimeIndicator-CNKsVEXH.js → CurrentTimeIndicator-dRYot1Rk.js} +24 -18
- package/dist/Calendar/{EventCard-B1LoBxth.js → EventCard-Di5UX4pB.js} +1 -2
- package/dist/Calendar/{TimeGrid-DIw8oCqY.js → TimeGrid-CBpDFAM4.js} +1 -1
- package/dist/Calendar/context/index.js +1 -1
- package/dist/Calendar/index.js +15 -14
- package/dist/Calendar/subcomponents/AllDaySection/index.js +5 -4
- package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +4 -3
- package/dist/Calendar/subcomponents/EventCard/index.js +4 -3
- package/dist/Calendar/subcomponents/TimeAxis/index.js +1 -1
- package/dist/Calendar/subcomponents/TimeGrid/index.js +4 -3
- package/dist/Calendar/{theme-xnrMsnkg.js → theme-i60ueO92.js} +1 -1
- package/dist/Calendar/utils/index.js +1 -1
- package/dist/Calendar/utils/layout/index.js +1 -1
- package/dist/Calendar/utils/theme/index.js +2 -2
- package/dist/Card/index.js +2 -2
- package/dist/CheckBox/index.js +1 -1
- package/dist/ColorPicker/ColorPicker-CYlrnMwM.js +174 -0
- package/dist/ColorPicker/index.js +6 -6
- package/dist/ConfigProvider/index.js +4 -3
- package/dist/DatePicker/DatePicker-CagGt_f0.js +101 -0
- package/dist/DatePicker/{DatePickerPanel-C_TDG3HH.js → DatePickerPanel-CaDZzxMD.js} +3 -3
- package/dist/DatePicker/index.js +7 -6
- package/dist/DatePicker/style/index.js +2 -2
- package/dist/DatePicker/{style-CNtPPsZp.js → style-UKXn1N_p.js} +1 -1
- package/dist/DropDown/DropDown-CLuQf970.js +178 -0
- package/dist/DropDown/index.js +8 -7
- package/dist/DropDown/style/index.js +2 -2
- package/dist/DropDown/{style-Fdp-U4md.js → style-LLDVPpPa.js} +1 -1
- package/dist/Editor/Buttons-ByO5rS19.js +937 -0
- package/dist/Editor/ToolbarPlugin/Buttons/index.js +12 -12
- package/dist/Editor/constants/index.js +3 -3
- package/dist/Editor/index.js +667 -298
- package/dist/Gantt/GanttChart/index.js +11 -10
- package/dist/Gantt/{GanttChart-DjwZsxEj.js → GanttChart-DvCAp8Dk.js} +3 -5
- package/dist/Gantt/GanttTable/index.js +6 -6
- package/dist/Gantt/{GanttTable-xbXD_PWI.js → GanttTable-DyVJOVo3.js} +1 -1
- package/dist/Gantt/GanttToolBar/index.js +9 -8
- package/dist/Gantt/{GanttToolBar-BTeTsR6Z.js → GanttToolBar-CxT68kmT.js} +2 -3
- package/dist/Gantt/index.js +15 -14
- package/dist/Gantt/{theme-DLNvgM9X.js → theme-2LyXJRDe.js} +1 -1
- package/dist/Gantt/utils/index.js +1 -1
- package/dist/Gantt/utils/theme/index.js +2 -2
- package/dist/Icon/index.js +1 -1
- package/dist/InputTag/{InputTag-hzCCJQ1z.js → InputTag-yRPO90Ku.js} +2 -2
- package/dist/InputTag/index.js +5 -5
- package/dist/Loading/{Loading-DiywS7ex.js → Loading-BF_dtuLc.js} +1 -1
- package/dist/Loading/index.js +4 -4
- package/dist/Modal/Modal-Cb7Msq26.js +96 -0
- package/dist/Modal/index.js +3 -2
- package/dist/NotFoundContent/index.js +1 -1
- package/dist/Overlay/OverlayContext-CVSFoyqN.js +23 -0
- package/dist/Overlay/index.js +3 -0
- package/dist/Radio/index.js +1 -1
- package/dist/ScrollBar/{ScrollBar-QhXVe8zd.js → ScrollBar-N2pOLv-8.js} +1 -1
- package/dist/ScrollBar/index.js +2 -2
- package/dist/Segmented/{Segmented-BDz1hMDT.js → Segmented-BCQRrc65.js} +1 -1
- package/dist/Segmented/index.js +2 -2
- package/dist/Select/Select-iwzfNy9d.js +753 -0
- package/dist/Select/{SelectInputSearch-COUzreau.js → SelectInputSearch-Bc_aPNbG.js} +1 -1
- package/dist/Select/index.js +8 -7
- package/dist/Table/{Table-yQXQEk6d.js → Table-Cm8zFl2G.js} +2 -2
- package/dist/Table/hooks/index.js +1 -1
- package/dist/Table/index.js +5 -5
- package/dist/Table/style/index.js +2 -2
- package/dist/Table/{style-DgiPEsSp.js → style-C4wp0IOM.js} +1 -1
- package/dist/Table/utils/index.js +1 -1
- package/dist/Tabs/{Tabs-BiKW70CL.js → Tabs-BPWRIwtD.js} +118 -103
- package/dist/Tabs/index.js +5 -5
- package/dist/Tooltip/Tooltip-Bb3Jx-If.js +172 -0
- package/dist/Tooltip/index.js +3 -2
- package/dist/Tree/index.js +2 -2
- package/dist/Tree/utils/index.js +1 -1
- package/dist/components/ColorPicker/ColorPalettes.d.ts +3 -8
- package/dist/components/ColorPicker/ColorPicker.type.d.ts +6 -9
- package/dist/components/ColorPicker/constants.d.ts +3 -1
- package/dist/components/ColorPicker/index.d.ts +1 -1
- package/dist/components/ConfigProvider/ConfigProvider.type.d.ts +2 -0
- package/dist/components/DatePicker/interface.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/BulletListButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/CodeButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/CodeLanguageButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/IndentButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/NumberListButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/OutdentButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/PictureButton/UploadImage.d.ts +5 -4
- package/dist/components/Editor/ToolbarPlugin/Buttons/RedoButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/StrikeThroughButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/SubscriptButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/SuperscriptButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/UndoButton.d.ts +2 -0
- package/dist/components/Editor/ToolbarPlugin/Buttons/index.d.ts +10 -0
- package/dist/components/Editor/ToolbarPlugin/context/HistoryStateProvider.d.ts +8 -0
- package/dist/components/Editor/ToolbarPlugin/context/TextFormatsContext.d.ts +8 -1
- package/dist/components/Editor/ToolbarPlugin/icons/ToolbarIcon.d.ts +13 -0
- package/dist/components/Editor/constants/codeLanguages.d.ts +69 -0
- package/dist/components/Editor/constants/index.d.ts +2 -0
- package/dist/components/Editor/plugins/CodeHighlightPlugin.d.ts +1 -0
- package/dist/components/Editor/plugins/LinkColorPlugin.d.ts +2 -0
- package/dist/components/Editor/plugins/PasteStripImagePlugin.d.ts +1 -0
- package/dist/components/Editor/utils/codeHighlighter.d.ts +12 -0
- package/dist/components/Editor/utils/formatTruncatedFilename.d.ts +4 -0
- package/dist/components/Editor/utils/stripImagesFromHtml.d.ts +1 -0
- package/dist/components/Overlay/OverlayContext.d.ts +16 -0
- package/dist/components/Overlay/index.d.ts +2 -0
- package/dist/components/Tooltip/Tooltip.type.d.ts +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/index.js +45 -44
- package/dist/locale/lang/en-US.json.d.ts +14 -2
- package/dist/locale/lang/zh-CN.json.d.ts +14 -2
- package/dist/locale/lang/zh-TW.json.d.ts +14 -2
- package/dist/style.css +1 -1
- package/dist/vendors/{ConfigProvider-DxrZpdIb.js → ConfigProvider-vPuwReNX.js} +70 -36
- package/dist/vendors/{LocaleContext-Dcw6C1LX.js → LocaleContext-CN9doEXT.js} +14 -2
- package/dist/vendors/{Tree-DXmVRDn0.js → Tree-B09frqQX.js} +1 -0
- package/dist/vendors/{useLocale-BKZX2_zw.js → useLocale-sawv8CEL.js} +1 -1
- package/dist/vendors/{version-DiV_Cnd8.js → version-DdQLttdL.js} +1 -1
- package/package.json +7 -1
- package/dist/ColorPicker/ColorPicker-t1uBeATW.js +0 -155
- package/dist/DatePicker/DatePicker--kMNwM9Q.js +0 -96
- package/dist/DropDown/DropDown-yDH9V_9Y.js +0 -171
- package/dist/Editor/Buttons-BhStZyIa.js +0 -620
- package/dist/Modal/Modal-LiztSF7x.js +0 -92
- package/dist/Select/Select-D6EK7whJ.js +0 -744
- package/dist/Tooltip/Tooltip-Ch9lti_7.js +0 -168
- package/dist/vendors/color-D6XBXROa.js +0 -12
- /package/dist/Amap/{AmapContext-D7Njjm5a.js → AmapContext-CJBe6lld.js} +0 -0
- /package/dist/Amap/{useMarkerInfoWindowController-BQmhR0N7.js → useMarkerInfoWindowController-Cjx0xQXw.js} +0 -0
- /package/dist/Card/{Card-CtKLNh3n.js → Card-Ds5Rpq--.js} +0 -0
- /package/dist/vendors/{cssVars-BYg1matG.js → cssVars-l4-kP_14.js} +0 -0
- /package/dist/vendors/{mergeRefs-Bsywq1Vo.js → mergeRefs-TiJ0xjUN.js} +0 -0
- /package/dist/vendors/{useFloatingOverlay-BApqkHSu.js → useFloatingOverlay-B3M9k8nj.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, t } from "./AmapContext-
|
|
1
|
+
import { n as e, t } from "./AmapContext-CJBe6lld.js";
|
|
2
2
|
import { jsx as n } from "react/jsx-runtime";
|
|
3
3
|
import { useContext as r, useEffect as i, useRef as a, useState as o } from "react";
|
|
4
4
|
//#region src/components/Amap/Amap.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "../../vendors/version-
|
|
2
|
-
import "../AmapContext-
|
|
3
|
-
import "../hooks-
|
|
4
|
-
import { t as e } from "../AmapCircle-
|
|
1
|
+
import "../../vendors/version-DdQLttdL.js";
|
|
2
|
+
import "../AmapContext-CJBe6lld.js";
|
|
3
|
+
import "../hooks-BTcFpdd0.js";
|
|
4
|
+
import { t as e } from "../AmapCircle-2qupysHe.js";
|
|
5
5
|
export { e as AmapCircle, e as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../../vendors/version-
|
|
2
|
-
import "../AmapContext-
|
|
3
|
-
import "../hooks-
|
|
4
|
-
import "../useMarkerInfoWindowController-
|
|
5
|
-
import { t as e } from "../AmapMarker-
|
|
1
|
+
import "../../vendors/version-DdQLttdL.js";
|
|
2
|
+
import "../AmapContext-CJBe6lld.js";
|
|
3
|
+
import "../hooks-BTcFpdd0.js";
|
|
4
|
+
import "../useMarkerInfoWindowController-Cjx0xQXw.js";
|
|
5
|
+
import { t as e } from "../AmapMarker-xEqoVnFR.js";
|
|
6
6
|
export { e as AmapMarker, e as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./hooks-
|
|
2
|
-
import { n as t, t as n } from "./useMarkerInfoWindowController-
|
|
1
|
+
import { n as e } from "./hooks-BTcFpdd0.js";
|
|
2
|
+
import { n as t, t as n } from "./useMarkerInfoWindowController-Cjx0xQXw.js";
|
|
3
3
|
import { Fragment as r, jsx as i } from "react/jsx-runtime";
|
|
4
4
|
import { useCallback as a, useEffect as o, useRef as s } from "react";
|
|
5
5
|
import { createRoot as c } from "react-dom/client";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "../../vendors/version-
|
|
2
|
-
import "../AmapContext-
|
|
3
|
-
import "../hooks-
|
|
4
|
-
import "../useMarkerInfoWindowController-
|
|
5
|
-
import { t as e } from "../AmapMarkerCluster-
|
|
1
|
+
import "../../vendors/version-DdQLttdL.js";
|
|
2
|
+
import "../AmapContext-CJBe6lld.js";
|
|
3
|
+
import "../hooks-BTcFpdd0.js";
|
|
4
|
+
import "../useMarkerInfoWindowController-Cjx0xQXw.js";
|
|
5
|
+
import { t as e } from "../AmapMarkerCluster-CvEQa3o9.js";
|
|
6
6
|
export { e as AmapMarkerCluster, e as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "./hooks-
|
|
2
|
-
import { n as t, t as n } from "./useMarkerInfoWindowController-
|
|
1
|
+
import { n as e } from "./hooks-BTcFpdd0.js";
|
|
2
|
+
import { n as t, t as n } from "./useMarkerInfoWindowController-Cjx0xQXw.js";
|
|
3
3
|
import { useCallback as r, useEffect as i, useMemo as a, useRef as o } from "react";
|
|
4
4
|
//#region src/components/Amap/AmapMarkerCluster/utils.ts
|
|
5
5
|
var s = "[ui-base] AmapMarkerCluster requires AMap.MarkerCluster plugin. Please add \"AMap.MarkerCluster\" to AmapProvider plugins.", c = {}, l = /* @__PURE__ */ new WeakMap(), u = 0, d = (e) => Array.isArray(e) && e.length === 2 && Number.isFinite(e[0]) && Number.isFinite(e[1]), f = (e) => Array.isArray(e) ? e : [], p = (e) => e?.extData, m = (e) => {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import "../../vendors/version-
|
|
2
|
-
import "../../vendors/LocaleContext-
|
|
3
|
-
import "../../vendors/ConfigProvider-
|
|
4
|
-
import "
|
|
5
|
-
import
|
|
1
|
+
import "../../vendors/version-DdQLttdL.js";
|
|
2
|
+
import "../../vendors/LocaleContext-CN9doEXT.js";
|
|
3
|
+
import "../../vendors/ConfigProvider-vPuwReNX.js";
|
|
4
|
+
import "../../Overlay/OverlayContext-CVSFoyqN.js";
|
|
5
|
+
import "../AmapContext-CJBe6lld.js";
|
|
6
|
+
import { t as e } from "../AmapProvider-DqFp3DZ5.js";
|
|
6
7
|
export { e as AmapProvider, e as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e } from "../vendors/ConfigProvider-
|
|
2
|
-
import { n as t } from "./AmapContext-
|
|
1
|
+
import { n as e } from "../vendors/ConfigProvider-vPuwReNX.js";
|
|
2
|
+
import { n as t } from "./AmapContext-CJBe6lld.js";
|
|
3
3
|
import { Fragment as n, jsx as r } from "react/jsx-runtime";
|
|
4
4
|
import { useEffect as i, useState as a } from "react";
|
|
5
5
|
//#region src/components/Amap/loader.ts
|
package/dist/Amap/hooks/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../vendors/version-
|
|
2
|
-
import "../AmapContext-
|
|
3
|
-
import { n as e, t } from "../hooks-
|
|
1
|
+
import "../../vendors/version-DdQLttdL.js";
|
|
2
|
+
import "../AmapContext-CJBe6lld.js";
|
|
3
|
+
import { n as e, t } from "../hooks-BTcFpdd0.js";
|
|
4
4
|
export { e as useAmap, t as useCurrentLocation };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as e, t } from "./AmapContext-
|
|
1
|
+
import { n as e, t } from "./AmapContext-CJBe6lld.js";
|
|
2
2
|
import { useCallback as n, useContext as r, useEffect as i, useMemo as a, useRef as o, useState as s } from "react";
|
|
3
3
|
//#region src/components/Amap/hooks/useAmap.ts
|
|
4
4
|
var c = () => {
|
package/dist/Amap/index.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
2
|
-
import "../vendors/LocaleContext-
|
|
3
|
-
import "../vendors/ConfigProvider-
|
|
4
|
-
import "
|
|
5
|
-
import
|
|
6
|
-
import { t } from "./
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import "./
|
|
10
|
-
import
|
|
11
|
-
import { t as
|
|
1
|
+
import "../vendors/version-DdQLttdL.js";
|
|
2
|
+
import "../vendors/LocaleContext-CN9doEXT.js";
|
|
3
|
+
import "../vendors/ConfigProvider-vPuwReNX.js";
|
|
4
|
+
import "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
5
|
+
import "./AmapContext-CJBe6lld.js";
|
|
6
|
+
import { t as e } from "./AmapProvider-DqFp3DZ5.js";
|
|
7
|
+
import { t } from "./Amap-BLSziesG.js";
|
|
8
|
+
import { n, t as r } from "./hooks-BTcFpdd0.js";
|
|
9
|
+
import { t as i } from "./AmapCircle-2qupysHe.js";
|
|
10
|
+
import "./useMarkerInfoWindowController-Cjx0xQXw.js";
|
|
11
|
+
import { t as a } from "./AmapMarker-xEqoVnFR.js";
|
|
12
|
+
import { t as o } from "./AmapMarkerCluster-CvEQa3o9.js";
|
|
12
13
|
export { t as Amap, i as AmapCircle, a as AmapMarker, o as AmapMarkerCluster, e as AmapProvider, n as useAmap, r as useCurrentLocation };
|
|
@@ -2,7 +2,7 @@ import { t as e } from "../Icon/Icon-BBDcb-yw.js";
|
|
|
2
2
|
import { n as t } from "./context-4tCN5X33.js";
|
|
3
3
|
import { p as n } from "./layout-Dz-grtu9.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-Di5UX4pB.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-BBDcb-yw.js";
|
|
2
|
-
import { t } from "../vendors/useLocale-
|
|
3
|
-
import { t as n } from "../Segmented/Segmented-
|
|
4
|
-
import { t as r } from "../Tooltip/Tooltip-
|
|
2
|
+
import { t } from "../vendors/useLocale-sawv8CEL.js";
|
|
3
|
+
import { t as n } from "../Segmented/Segmented-BCQRrc65.js";
|
|
4
|
+
import { t as r } from "../Tooltip/Tooltip-Bb3Jx-If.js";
|
|
5
5
|
import { i, n as a, r as o, t as s } from "./context-4tCN5X33.js";
|
|
6
|
-
import { t as c } from "../DatePicker/DatePicker
|
|
6
|
+
import { t as c } from "../DatePicker/DatePicker-CagGt_f0.js";
|
|
7
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-Dz-grtu9.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
9
|
import { t as F } from "./TimeAxis-C9e2BdYs.js";
|
|
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-
|
|
10
|
+
import { t as I } from "./TimeGrid-CBpDFAM4.js";
|
|
11
|
+
import { t as L } from "./CurrentTimeIndicator-dRYot1Rk.js";
|
|
12
|
+
import { n as R, r as z, t as B } from "./EventCard-Di5UX4pB.js";
|
|
13
|
+
import { t as V } from "./AllDaySection-BqbcPQls.js";
|
|
14
|
+
import { a as re, i as ie, r as ae } from "./theme-i60ueO92.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";
|
|
@@ -528,7 +528,6 @@ var he = ({ events: t, onClick: n, weekStart: r, isGloballyExpanded: i, onExpand
|
|
|
528
528
|
maxWidth: 300,
|
|
529
529
|
offset: 6,
|
|
530
530
|
placement: "right",
|
|
531
|
-
zIndex: 8001,
|
|
532
531
|
style: {
|
|
533
532
|
borderRadius: "10px",
|
|
534
533
|
padding: "20px 10px",
|
|
@@ -1,42 +1,48 @@
|
|
|
1
|
-
import { t as e } from "../Tooltip/Tooltip-
|
|
1
|
+
import { t as e } from "../Tooltip/Tooltip-Bb3Jx-If.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";
|
|
5
5
|
//#region src/components/Calendar/subcomponents/CurrentTimeIndicator/CurrentTimeIndicator.tsx
|
|
6
|
-
var u = 4, d = (
|
|
7
|
-
|
|
6
|
+
var u = 4, d = (e, n, i) => {
|
|
7
|
+
if (i) {
|
|
8
|
+
let e = t(n).startOf("day").diff(i.startOf("day"), "day");
|
|
9
|
+
return e >= 0 && e < 7;
|
|
10
|
+
}
|
|
11
|
+
return r(e, n);
|
|
12
|
+
}, f = ({ currentDate: r, zoomConfig: f, weekStart: p, timeZone: m }) => {
|
|
13
|
+
let h = c(null), [g, _] = l(() => n(f, m)), [v, y] = l(() => t(m)), b = d(r, m, p);
|
|
8
14
|
o(() => {
|
|
9
|
-
if (!
|
|
15
|
+
if (!b) return;
|
|
10
16
|
let e = () => {
|
|
11
17
|
_(n(f, m)), y(t(m));
|
|
12
18
|
};
|
|
13
19
|
e();
|
|
14
|
-
let
|
|
15
|
-
return () => clearInterval(
|
|
20
|
+
let r = setInterval(e, 6e4);
|
|
21
|
+
return () => clearInterval(r);
|
|
16
22
|
}, [
|
|
17
|
-
|
|
23
|
+
b,
|
|
18
24
|
f,
|
|
19
25
|
m
|
|
20
26
|
]), s(() => {
|
|
21
|
-
if (!
|
|
27
|
+
if (!b || !h.current) return;
|
|
22
28
|
let e = h.current.parentElement?.closest?.(".bsy-calendar-day__scroll-container, .bsy-calendar-week__scroll-container");
|
|
23
29
|
if (!e) return;
|
|
24
|
-
let t = n(f, m),
|
|
25
|
-
e.scrollTop = Math.max(0, Math.min(t - e.clientHeight / 2,
|
|
30
|
+
let t = n(f, m), r = e.scrollHeight - e.clientHeight;
|
|
31
|
+
e.scrollTop = Math.max(0, Math.min(t - e.clientHeight / 2, r));
|
|
26
32
|
}, [
|
|
27
|
-
|
|
33
|
+
b,
|
|
28
34
|
m,
|
|
29
35
|
f
|
|
30
36
|
]);
|
|
31
|
-
let
|
|
32
|
-
if (!
|
|
33
|
-
let
|
|
34
|
-
return p && (
|
|
37
|
+
let x = v.format("HH:mm");
|
|
38
|
+
if (!b) return null;
|
|
39
|
+
let S = -6, C;
|
|
40
|
+
return p && (S = v.diff(p, "day") / 7 * 100, C = { left: `calc(${S}% - ${u}px)` }), /* @__PURE__ */ a("div", {
|
|
35
41
|
ref: h,
|
|
36
42
|
className: "bsy-calendar-current-time",
|
|
37
43
|
style: { top: g },
|
|
38
44
|
children: [/* @__PURE__ */ i(e, {
|
|
39
|
-
content:
|
|
45
|
+
content: x,
|
|
40
46
|
placement: "top",
|
|
41
47
|
trigger: "hover",
|
|
42
48
|
showArrow: !0,
|
|
@@ -50,10 +56,10 @@ var u = 4, d = ({ currentDate: d, zoomConfig: f, weekStart: p, timeZone: m }) =>
|
|
|
50
56
|
},
|
|
51
57
|
children: /* @__PURE__ */ i("div", {
|
|
52
58
|
className: "bsy-calendar-current-time__dot",
|
|
53
|
-
style:
|
|
59
|
+
style: C
|
|
54
60
|
})
|
|
55
61
|
}), /* @__PURE__ */ i("div", { className: "bsy-calendar-current-time__line" })]
|
|
56
62
|
});
|
|
57
63
|
};
|
|
58
64
|
//#endregion
|
|
59
|
-
export {
|
|
65
|
+
export { f as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "../Tooltip/Tooltip-
|
|
1
|
+
import { t as e } from "../Tooltip/Tooltip-Bb3Jx-If.js";
|
|
2
2
|
import { i as t, n, t as r } from "./context-4tCN5X33.js";
|
|
3
3
|
import { m as i } from "./layout-Dz-grtu9.js";
|
|
4
4
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
@@ -139,7 +139,6 @@ var h = [
|
|
|
139
139
|
widthMode: "manual",
|
|
140
140
|
maxWidth: 400,
|
|
141
141
|
offset: 5,
|
|
142
|
-
zIndex: 8001,
|
|
143
142
|
virtualReference: H,
|
|
144
143
|
flipBoundary: A.current ?? void 0,
|
|
145
144
|
onVisibleChange: U,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "../Icon/Icon-BBDcb-yw.js";
|
|
2
|
-
import { t } from "../Tooltip/Tooltip-
|
|
2
|
+
import { t } from "../Tooltip/Tooltip-Bb3Jx-If.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,3 +1,3 @@
|
|
|
1
|
-
import "../../vendors/version-
|
|
1
|
+
import "../../vendors/version-DdQLttdL.js";
|
|
2
2
|
import { i as e, n as t, r as n, t as r } from "../context-4tCN5X33.js";
|
|
3
3
|
export { n as CalendarDispatchContext, e as CalendarStateContext, r as useCalendarDispatchSelector, t as useCalendarStateSelector };
|
package/dist/Calendar/index.js
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import "../vendors/version-
|
|
1
|
+
import "../vendors/version-DdQLttdL.js";
|
|
2
2
|
import "../Icon/Icon-BBDcb-yw.js";
|
|
3
|
-
import "../vendors/LocaleContext-
|
|
4
|
-
import "../
|
|
5
|
-
import "../vendors/
|
|
3
|
+
import "../vendors/LocaleContext-CN9doEXT.js";
|
|
4
|
+
import "../Overlay/OverlayContext-CVSFoyqN.js";
|
|
5
|
+
import "../vendors/useFloatingOverlay-B3M9k8nj.js";
|
|
6
|
+
import "../vendors/useLocale-sawv8CEL.js";
|
|
6
7
|
import "../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
|
|
7
|
-
import "../Segmented/Segmented-
|
|
8
|
-
import "../Tooltip/Tooltip-
|
|
8
|
+
import "../Segmented/Segmented-BCQRrc65.js";
|
|
9
|
+
import "../Tooltip/Tooltip-Bb3Jx-If.js";
|
|
9
10
|
import "./context-4tCN5X33.js";
|
|
10
|
-
import { t as e } from "./Calendar-
|
|
11
|
-
import "../DatePicker/DatePicker
|
|
11
|
+
import { t as e } from "./Calendar-gEtuBW7Y.js";
|
|
12
|
+
import "../DatePicker/DatePicker-CagGt_f0.js";
|
|
12
13
|
import "../DatePicker/ensureDayjsPlugins-Cn9Bkjkj.js";
|
|
13
14
|
import "../DatePicker/pickerLocale-BRnNjLcv.js";
|
|
14
|
-
import "../DatePicker/style-
|
|
15
|
+
import "../DatePicker/style-UKXn1N_p.js";
|
|
15
16
|
import "./layout-Dz-grtu9.js";
|
|
16
17
|
import "./TimeAxis-C9e2BdYs.js";
|
|
17
|
-
import "./TimeGrid-
|
|
18
|
-
import "./CurrentTimeIndicator-
|
|
19
|
-
import "./EventCard-
|
|
20
|
-
import "./AllDaySection-
|
|
21
|
-
import { a as t, n } from "./theme-
|
|
18
|
+
import "./TimeGrid-CBpDFAM4.js";
|
|
19
|
+
import "./CurrentTimeIndicator-dRYot1Rk.js";
|
|
20
|
+
import "./EventCard-Di5UX4pB.js";
|
|
21
|
+
import "./AllDaySection-BqbcPQls.js";
|
|
22
|
+
import { a as t, n } from "./theme-i60ueO92.js";
|
|
22
23
|
export { e as Calendar, e as default, t as resolveCalendarThemeVars, n as resolvePlatformCalendarTheme };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import "../../../vendors/version-
|
|
1
|
+
import "../../../vendors/version-DdQLttdL.js";
|
|
2
2
|
import "../../../Icon/Icon-BBDcb-yw.js";
|
|
3
|
-
import "../../../
|
|
3
|
+
import "../../../Overlay/OverlayContext-CVSFoyqN.js";
|
|
4
|
+
import "../../../Tooltip/Tooltip-Bb3Jx-If.js";
|
|
4
5
|
import "../../context-4tCN5X33.js";
|
|
5
6
|
import "../../../DatePicker/ensureDayjsPlugins-Cn9Bkjkj.js";
|
|
6
7
|
import "../../layout-Dz-grtu9.js";
|
|
7
|
-
import "../../EventCard-
|
|
8
|
-
import { t as e } from "../../AllDaySection-
|
|
8
|
+
import "../../EventCard-Di5UX4pB.js";
|
|
9
|
+
import { t as e } from "../../AllDaySection-BqbcPQls.js";
|
|
9
10
|
export { e as default };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import "../../../vendors/version-
|
|
2
|
-
import "../../../
|
|
1
|
+
import "../../../vendors/version-DdQLttdL.js";
|
|
2
|
+
import "../../../Overlay/OverlayContext-CVSFoyqN.js";
|
|
3
|
+
import "../../../Tooltip/Tooltip-Bb3Jx-If.js";
|
|
3
4
|
import "../../../DatePicker/ensureDayjsPlugins-Cn9Bkjkj.js";
|
|
4
5
|
import "../../layout-Dz-grtu9.js";
|
|
5
|
-
import { t as e } from "../../CurrentTimeIndicator-
|
|
6
|
+
import { t as e } from "../../CurrentTimeIndicator-dRYot1Rk.js";
|
|
6
7
|
export { e as default };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import "../../../vendors/version-
|
|
2
|
-
import "../../../
|
|
1
|
+
import "../../../vendors/version-DdQLttdL.js";
|
|
2
|
+
import "../../../Overlay/OverlayContext-CVSFoyqN.js";
|
|
3
|
+
import "../../../Tooltip/Tooltip-Bb3Jx-If.js";
|
|
3
4
|
import "../../context-4tCN5X33.js";
|
|
4
5
|
import "../../../DatePicker/ensureDayjsPlugins-Cn9Bkjkj.js";
|
|
5
6
|
import "../../layout-Dz-grtu9.js";
|
|
6
|
-
import { t as e } from "../../EventCard-
|
|
7
|
+
import { t as e } from "../../EventCard-Di5UX4pB.js";
|
|
7
8
|
export { e as default };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import "../../../vendors/version-
|
|
1
|
+
import "../../../vendors/version-DdQLttdL.js";
|
|
2
2
|
import "../../../Icon/Icon-BBDcb-yw.js";
|
|
3
|
-
import "../../../
|
|
4
|
-
import
|
|
3
|
+
import "../../../Overlay/OverlayContext-CVSFoyqN.js";
|
|
4
|
+
import "../../../Tooltip/Tooltip-Bb3Jx-If.js";
|
|
5
|
+
import { t as e } from "../../TimeGrid-CBpDFAM4.js";
|
|
5
6
|
export { e as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../vendors/version-
|
|
1
|
+
import "../../vendors/version-DdQLttdL.js";
|
|
2
2
|
import "../../DatePicker/ensureDayjsPlugins-Cn9Bkjkj.js";
|
|
3
3
|
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-Dz-grtu9.js";
|
|
4
4
|
import { n as C, t as w } from "../colorUtils-CBLTsDX0.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../vendors/version-
|
|
1
|
+
import "../../../vendors/version-DdQLttdL.js";
|
|
2
2
|
import "../../../DatePicker/ensureDayjsPlugins-Cn9Bkjkj.js";
|
|
3
3
|
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-Dz-grtu9.js";
|
|
4
4
|
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,3 +1,3 @@
|
|
|
1
|
-
import "../../../vendors/version-
|
|
2
|
-
import { a as e, i as t, n, o as r, r as i, t as a } from "../../theme-
|
|
1
|
+
import "../../../vendors/version-DdQLttdL.js";
|
|
2
|
+
import { a as e, i as t, n, o as r, r as i, t as a } from "../../theme-i60ueO92.js";
|
|
3
3
|
export { a as CALENDAR_CURRENT_TIME_COLOR, e as resolveCalendarThemeVars, i as resolveDatePickerThemeFromCalendar, n as resolvePlatformCalendarTheme, r as resolveScheduleColorVars, t as resolveSegmentedThemeFromCalendar };
|
package/dist/Card/index.js
CHANGED
package/dist/CheckBox/index.js
CHANGED
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { t as e } from "../Icon/Icon-BBDcb-yw.js";
|
|
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-sawv8CEL.js";
|
|
5
|
+
import { n as a } from "../vendors/animations-rwUbyoT0.js";
|
|
6
|
+
import { t as o } from "../vendors/useLatchedPopupPortalRoot-4fVhqVT4.js";
|
|
7
|
+
import { n as s } from "../vendors/mergeRefs-TiJ0xjUN.js";
|
|
8
|
+
import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
9
|
+
import { cloneElement as d, isValidElement as f, useRef as p, useState as m } from "react";
|
|
10
|
+
import { ColorPicker as h } from "antd";
|
|
11
|
+
import g from "clsx";
|
|
12
|
+
import { useControllableValue as _, useSize as v } from "ahooks";
|
|
13
|
+
import { AnimatePresence as y, motion as b } from "motion/react";
|
|
14
|
+
import { FloatingPortal as x } from "@floating-ui/react";
|
|
15
|
+
import S from "tinycolor2";
|
|
16
|
+
//#region src/components/ColorPicker/constants.ts
|
|
17
|
+
var C = {
|
|
18
|
+
vivid: /* @__PURE__ */ "#fee4de.#ffecd7.#ffe8e3.#fff1c0.#efffc0.#d7ffeb.#d8f4ff.#dfe7ff.#ebdefa.#ffdef1.#e8eaef.#ffbaaa.#fbcf9c.#ffd2c9.#ffe692.#d9f38c.#a6f6cf.#9adbf3.#aec3fe.#c9b0e6.#ffb4df.#d8dbe3.#f06648.#ff9921.#ff9c88.#ffc502.#a2ce1e.#4acc8c.#4ac0ec.#3767f1.#9362ce.#f168b6.#6b6e76.#cd3514.#c4771b.#db674f.#c79f1c.#7b9728.#21a664.#00a3e0.#003ce8.#6f25ca.#df2a91.#2d3447".split("."),
|
|
19
|
+
basic: /* @__PURE__ */ "#005eef.#3642e9.#7f43c8.#114bb8.#1379d9.#10a9c4.#119d85.#ffc502.#ff9921.#f06648.#f168b6.#d9e8ff.#dee0ff.#efe2ff.#d5e4ff.#daedff.#ddfaff.#d7fff8.#fff4d0.#ffecd7.#ffe3dd.#ffdef1.#262626.#3c3c3d.#454545.#515152.#5d5c5e.#6c6c6e.#878789.#b0afb1.#d0d0d1.#e6e6e7.#f5f5f6".split(".")
|
|
20
|
+
}, w = [
|
|
21
|
+
"rgba(240, 102, 72, 1)",
|
|
22
|
+
"rgba(255, 197, 2, 1)",
|
|
23
|
+
"rgba(74, 204, 140, 1)",
|
|
24
|
+
"rgba(74, 192, 236, 1)",
|
|
25
|
+
"rgba(255, 153, 33, 1)",
|
|
26
|
+
"rgba(101, 101, 101, 1)",
|
|
27
|
+
"rgba(255, 156, 136, 1)",
|
|
28
|
+
"rgba(98, 98, 206, 1)",
|
|
29
|
+
"rgba(241, 104, 182, 1)",
|
|
30
|
+
"rgba(55, 103, 241, 1)",
|
|
31
|
+
"rgba(162, 206, 30, 1)",
|
|
32
|
+
"rgba(179, 179, 179, 1)",
|
|
33
|
+
"rgba(0, 0, 0, 1)",
|
|
34
|
+
"rgba(102, 102, 102, 1)",
|
|
35
|
+
"rgba(153, 153, 153, 1)",
|
|
36
|
+
"rgba(194, 194, 194, 1)",
|
|
37
|
+
"rgba(224, 224, 224, 1)",
|
|
38
|
+
"rgba(77, 96, 159, 1)"
|
|
39
|
+
], T = (e) => Array.isArray(e) ? e.length > 0 ? e : C.vivid : C[e ?? "vivid"], E = (e = "bottom-start") => r({ placement: e }), D = {
|
|
40
|
+
"bsy-color-picker__floating": "_bsy-color-picker__floating_1fqmv_1",
|
|
41
|
+
"bsy-color-picker__content": "_bsy-color-picker__content_1fqmv_4",
|
|
42
|
+
"bsy-color-picker__grid": "_bsy-color-picker__grid_1fqmv_15",
|
|
43
|
+
"bsy-color-picker__preset-colors-title": "_bsy-color-picker__preset-colors-title_1fqmv_19",
|
|
44
|
+
"bsy-color-picker__custom-color-title": "_bsy-color-picker__custom-color-title_1fqmv_19",
|
|
45
|
+
"bsy-color-picker__preset-colors-grid": "_bsy-color-picker__preset-colors-grid_1fqmv_24",
|
|
46
|
+
"bsy-color-picker__preset-colors-grid--inline": "_bsy-color-picker__preset-colors-grid--inline_1fqmv_29",
|
|
47
|
+
"bsy-color-picker__preset-colors-item": "_bsy-color-picker__preset-colors-item_1fqmv_35",
|
|
48
|
+
"bsy-color-picker__preset-colors-item--selected": "_bsy-color-picker__preset-colors-item--selected_1fqmv_59",
|
|
49
|
+
"bsy-color-picker__preset-colors-swatch": "_bsy-color-picker__preset-colors-swatch_1fqmv_62",
|
|
50
|
+
"bsy-color-picker__custom-color-btn": "_bsy-color-picker__custom-color-btn_1fqmv_68",
|
|
51
|
+
"bsy-color-picker__custom-color-btn--active": "_bsy-color-picker__custom-color-btn--active_1fqmv_84",
|
|
52
|
+
"bsy-color-picker__custom-color-btn--preview": "_bsy-color-picker__custom-color-btn--preview_1fqmv_89",
|
|
53
|
+
"bsy-color-picker__custom-color-content": "_bsy-color-picker__custom-color-content_1fqmv_94",
|
|
54
|
+
"bsy-color-picker__custom-color-swatches": "_bsy-color-picker__custom-color-swatches_1fqmv_101"
|
|
55
|
+
}, O = 11, k = (e, t, n) => {
|
|
56
|
+
if (!n) return e[t];
|
|
57
|
+
let r = t % O;
|
|
58
|
+
return n === "vivid" ? e[O * 2 + r] ?? e[t] : Math.floor(t / O) === 2 ? e[O * 2] ?? e[t] : e[r] ?? e[t];
|
|
59
|
+
}, A = ({ currentColor: e, onColorSelect: t, options: n, className: r, palette: i }) => {
|
|
60
|
+
let a = e ? S(e).toRgbString() : "";
|
|
61
|
+
return /* @__PURE__ */ l("div", {
|
|
62
|
+
className: g(D["bsy-color-picker__preset-colors-grid"], r),
|
|
63
|
+
style: { "--preset-cols": Math.min(n.length, 11) },
|
|
64
|
+
children: n.map((e, r) => /* @__PURE__ */ l("div", {
|
|
65
|
+
className: g(D["bsy-color-picker__preset-colors-item"], { [D["bsy-color-picker__preset-colors-item--selected"]]: !!a && S(e).toRgbString() === a }),
|
|
66
|
+
style: {
|
|
67
|
+
"--swatch-color": e,
|
|
68
|
+
"--swatch-ring": k(n, r, i)
|
|
69
|
+
},
|
|
70
|
+
onClick: () => t(e),
|
|
71
|
+
children: /* @__PURE__ */ l("span", { className: D["bsy-color-picker__preset-colors-swatch"] })
|
|
72
|
+
}, e))
|
|
73
|
+
});
|
|
74
|
+
}, j = 26, M = 4, N = (e) => {
|
|
75
|
+
let { children: r, placement: m = "bottom-start", disabled: h = !1, presetColors: g, getPopupContainer: v } = e, { t: S } = i(), C = t(), w = p(null), [O, k] = _(e, { defaultValue: e.value }), { isOpen: j, refs: M, floatingStyles: N, getReferenceProps: F, getFloatingProps: I } = E(m), L = f(r) ? d(r, {
|
|
76
|
+
...F(),
|
|
77
|
+
ref: M.setReference,
|
|
78
|
+
disabled: h
|
|
79
|
+
}) : r, R = T(g), z = p([]), { portalRoot: B, portalMountKey: V, handleExitComplete: H } = o(j, v);
|
|
80
|
+
return /* @__PURE__ */ u(c, { children: [L, /* @__PURE__ */ l(x, {
|
|
81
|
+
root: B,
|
|
82
|
+
children: /* @__PURE__ */ l(y, {
|
|
83
|
+
onExitComplete: H,
|
|
84
|
+
children: j ? /* @__PURE__ */ l(n, {
|
|
85
|
+
zIndex: C,
|
|
86
|
+
children: /* @__PURE__ */ l(b.div, {
|
|
87
|
+
ref: s(M.setFloating, w),
|
|
88
|
+
style: {
|
|
89
|
+
...N,
|
|
90
|
+
"--bsy-color-picker-z-index": C
|
|
91
|
+
},
|
|
92
|
+
...I(),
|
|
93
|
+
className: D["bsy-color-picker__floating"],
|
|
94
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
95
|
+
...a,
|
|
96
|
+
children: /* @__PURE__ */ l("div", {
|
|
97
|
+
className: D["bsy-color-picker__content"],
|
|
98
|
+
children: /* @__PURE__ */ u("div", {
|
|
99
|
+
className: D["bsy-color-picker__grid"],
|
|
100
|
+
children: [/* @__PURE__ */ u("div", {
|
|
101
|
+
className: D["bsy-color-picker__preset-colors"],
|
|
102
|
+
children: [/* @__PURE__ */ l("div", {
|
|
103
|
+
className: D["bsy-color-picker__preset-colors-title"],
|
|
104
|
+
children: S("presetColors")
|
|
105
|
+
}), /* @__PURE__ */ l(A, {
|
|
106
|
+
currentColor: O,
|
|
107
|
+
onColorSelect: k,
|
|
108
|
+
options: R,
|
|
109
|
+
palette: Array.isArray(g) ? void 0 : g ?? "vivid"
|
|
110
|
+
})]
|
|
111
|
+
}), /* @__PURE__ */ l(P, {
|
|
112
|
+
value: O,
|
|
113
|
+
onChange: k,
|
|
114
|
+
onColorInput: e.onColorInput,
|
|
115
|
+
list: z.current,
|
|
116
|
+
getPopupContainer: () => w.current
|
|
117
|
+
})]
|
|
118
|
+
})
|
|
119
|
+
})
|
|
120
|
+
}, "bsy-color-picker-panel")
|
|
121
|
+
}) : null
|
|
122
|
+
})
|
|
123
|
+
}, V)] });
|
|
124
|
+
}, P = (t) => {
|
|
125
|
+
let { list: n, getPopupContainer: r } = t, [a, o] = m(), [s, c] = m(!1), d = p(null), f = v(d), _ = f?.width ? Math.max(0, Math.floor((f.width + M) / (j + M))) : 5, { t: y } = i();
|
|
126
|
+
return /* @__PURE__ */ u("div", {
|
|
127
|
+
className: D["bsy-color-picker__custom-color"],
|
|
128
|
+
children: [/* @__PURE__ */ l("div", {
|
|
129
|
+
className: D["bsy-color-picker__custom-color-title"],
|
|
130
|
+
children: y("customColor")
|
|
131
|
+
}), /* @__PURE__ */ u("div", {
|
|
132
|
+
className: D["bsy-color-picker__custom-color-content"],
|
|
133
|
+
children: [/* @__PURE__ */ l(h, {
|
|
134
|
+
getPopupContainer: r,
|
|
135
|
+
value: a ?? t.value,
|
|
136
|
+
onChange: (e) => {
|
|
137
|
+
let n = e.toRgbString();
|
|
138
|
+
o(n), t.onColorInput?.(n);
|
|
139
|
+
},
|
|
140
|
+
open: s,
|
|
141
|
+
onOpenChange: (e) => {
|
|
142
|
+
c(e), !e && a && (n.includes(a) || n.unshift(a), t.onChange(a), o(void 0));
|
|
143
|
+
},
|
|
144
|
+
children: /* @__PURE__ */ l("div", {
|
|
145
|
+
className: g(D["bsy-color-picker__custom-color-btn"], {
|
|
146
|
+
[D["bsy-color-picker__custom-color-btn--active"]]: s && !a,
|
|
147
|
+
[D["bsy-color-picker__custom-color-btn--preview"]]: !!a
|
|
148
|
+
}),
|
|
149
|
+
role: "button",
|
|
150
|
+
style: { backgroundColor: a || void 0 },
|
|
151
|
+
onClick: () => {
|
|
152
|
+
c(!0);
|
|
153
|
+
},
|
|
154
|
+
children: /* @__PURE__ */ l(e, {
|
|
155
|
+
name: "add",
|
|
156
|
+
style: { visibility: a ? "hidden" : "visible" }
|
|
157
|
+
})
|
|
158
|
+
})
|
|
159
|
+
}), /* @__PURE__ */ l("div", {
|
|
160
|
+
ref: d,
|
|
161
|
+
className: D["bsy-color-picker__custom-color-swatches"],
|
|
162
|
+
children: /* @__PURE__ */ l(A, {
|
|
163
|
+
currentColor: t.value,
|
|
164
|
+
onColorSelect: t.onChange,
|
|
165
|
+
options: n.slice(0, _),
|
|
166
|
+
className: D["bsy-color-picker__preset-colors-grid--inline"]
|
|
167
|
+
})
|
|
168
|
+
})]
|
|
169
|
+
})]
|
|
170
|
+
});
|
|
171
|
+
};
|
|
172
|
+
N.displayName = "BsyColorPicker";
|
|
173
|
+
//#endregion
|
|
174
|
+
export { w as n, N as t };
|