@baishuyun/ui-base 6.7.2 → 6.8.2
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-Dnvu_pUP.js → Amap-BNnmSPnl.js} +1 -1
- package/dist/Amap/AmapCircle/index.js +4 -3
- package/dist/Amap/{AmapCircle-Wfn43qco.js → AmapCircle-BDW6pnNR.js} +1 -1
- package/dist/Amap/AmapMarker/index.js +5 -4
- package/dist/Amap/{AmapMarker-CMlzx_nj.js → AmapMarker-CdoPWdff.js} +2 -2
- package/dist/Amap/AmapMarkerCluster/index.js +5 -4
- package/dist/Amap/{AmapMarkerCluster-MDUfcIqP.js → AmapMarkerCluster-CSIxiVC5.js} +2 -2
- package/dist/Amap/AmapProvider/index.js +5 -4
- package/dist/Amap/{AmapProvider-CGedZdvQ.js → AmapProvider-Cwi6WOe0.js} +2 -2
- package/dist/Amap/hooks/index.js +3 -2
- package/dist/Amap/{hooks-DwRvpafb.js → hooks-DAN31s_-.js} +1 -1
- package/dist/Amap/index.js +11 -10
- package/dist/Calendar/{AllDaySection-Bd5Po_DI.js → AllDaySection-a96dIzs3.js} +4 -4
- package/dist/Calendar/{Calendar-Bs4S-6rW.js → Calendar-DnQrN8KB.js} +13 -13
- package/dist/Calendar/{CurrentTimeIndicator-twXtFHIp.js → CurrentTimeIndicator-CNKsVEXH.js} +1 -1
- package/dist/Calendar/{EventCard-CvEnWcKd.js → EventCard-B1LoBxth.js} +3 -3
- package/dist/Calendar/{TimeGrid-DPtU6Qvo.js → TimeGrid-DIw8oCqY.js} +2 -2
- package/dist/Calendar/context/index.js +2 -1
- package/dist/Calendar/index.js +21 -20
- package/dist/Calendar/subcomponents/AllDaySection/index.js +8 -7
- package/dist/Calendar/subcomponents/CurrentTimeIndicator/index.js +5 -4
- package/dist/Calendar/subcomponents/EventCard/index.js +6 -5
- package/dist/Calendar/subcomponents/TimeAxis/index.js +4 -3
- package/dist/Calendar/subcomponents/TimeGrid/index.js +4 -3
- package/dist/Calendar/{theme-BRVmxhqD.js → theme-xnrMsnkg.js} +2 -2
- package/dist/Calendar/utils/index.js +4 -3
- package/dist/Calendar/utils/layout/index.js +3 -2
- package/dist/Calendar/utils/theme/index.js +2 -1
- package/dist/Card/{Card-BjWdQRjq.js → Card-CtKLNh3n.js} +1 -1
- package/dist/Card/index.js +3 -2
- package/dist/CheckBox/{CheckBox-D7bCjlkU.js → CheckBox-ByWSy9Yr.js} +1 -1
- package/dist/CheckBox/{CheckBox-GtT43IQ8.js → CheckBox-nBm0u6zX.js} +1 -1
- package/dist/CheckBox/index.js +4 -3
- package/dist/ColorPicker/{ColorPicker-Hjs4Vp5a.js → ColorPicker-CL57cSDG.js} +7 -6
- package/dist/ColorPicker/index.js +8 -7
- package/dist/ConfigProvider/index.js +3 -2
- package/dist/DatePicker/{DatePicker-C_ssCNGN.js → DatePicker-C0XbZmrZ.js} +7 -7
- package/dist/DatePicker/{DatePickerPanel-DNDw-H39.js → DatePickerPanel-BEn16cat.js} +6 -5
- package/dist/DatePicker/index.js +9 -8
- package/dist/DatePicker/style/index.js +2 -1
- package/dist/DatePicker/{style-BwmM26RP.js → style-CNtPPsZp.js} +1 -1
- package/dist/DropDown/{DropDown-DYhDwsNm.js → DropDown-yDH9V_9Y.js} +8 -8
- package/dist/DropDown/index.js +12 -10
- package/dist/DropDown/style/index.js +2 -1
- package/dist/DropDown/{style-BSgosymi.js → style-Fdp-U4md.js} +1 -1
- package/dist/Editor/{Buttons-D1fP8aYo.js → Buttons-BivKInBV.js} +147 -127
- package/dist/Editor/ToolbarPlugin/Buttons/index.js +19 -17
- package/dist/Editor/constants/index.js +1 -0
- package/dist/Editor/index.js +286 -174
- package/dist/Gantt/GanttChart/index.js +19 -17
- package/dist/Gantt/{GanttChart-VoKzDvu-.js → GanttChart-CDw1IQ4F.js} +9 -9
- package/dist/Gantt/GanttTable/index.js +12 -10
- package/dist/Gantt/{GanttTable-l-pMVjWe.js → GanttTable-xbXD_PWI.js} +5 -5
- package/dist/Gantt/GanttToolBar/index.js +15 -13
- package/dist/Gantt/{GanttToolBar-Bm_4cVHF.js → GanttToolBar-BTeTsR6Z.js} +4 -4
- package/dist/Gantt/{collapseKeys-_ShTXPKt.js → collapseKeys-B4SOVHjd.js} +2 -2
- package/dist/Gantt/index.js +27 -24
- package/dist/Gantt/{theme-CiMD9Y6i.js → theme-DLNvgM9X.js} +1 -1
- package/dist/Gantt/{timelineViewConfig-CLIpppp0.js → timelineViewConfig-9HArvbmb.js} +1 -1
- package/dist/Gantt/utils/index.js +6 -5
- package/dist/Gantt/utils/theme/index.js +2 -1
- package/dist/Icon/index.js +2 -1
- package/dist/InputTag/InputTag-hzCCJQ1z.js +144 -0
- package/dist/InputTag/index.js +7 -4
- package/dist/Loading/Loading-DiywS7ex.js +19 -0
- package/dist/Loading/index.js +4 -1
- package/dist/Modal/{Modal-GGHNlZv3.js → Modal-LiztSF7x.js} +1 -1
- package/dist/Modal/index.js +3 -2
- package/dist/NotFoundContent/index.js +2 -1
- package/dist/Radio/{Radio-CMAwZdP7.js → Radio-CX9cUqb7.js} +12 -12
- package/dist/Radio/index.js +2 -1
- package/dist/ScrollBar/{ScrollBar-CnwYQfXM.js → ScrollBar-QhXVe8zd.js} +1 -1
- package/dist/ScrollBar/index.js +3 -2
- package/dist/Segmented/{Segmented-Ck2ZmfF7.js → Segmented-BDz1hMDT.js} +1 -1
- package/dist/Segmented/index.js +2 -1
- package/dist/Select/{Select-CwABtVnS.js → Select-D6EK7whJ.js} +202 -201
- package/dist/Select/{SelectInputSearch-dfBUnTCY.js → SelectInputSearch-COUzreau.js} +2 -2
- package/dist/Select/index.js +15 -14
- package/dist/Table/{Table-ByNcMkaT.js → Table-yQXQEk6d.js} +5 -5
- package/dist/Table/hooks/index.js +2 -1
- package/dist/Table/{hooks-uCDY9dqx.js → hooks-BceUZQQm.js} +1 -1
- package/dist/Table/index.js +9 -8
- package/dist/Table/{processRowspan-nIGqGyHh.js → processRowspan-B0WELhG2.js} +1 -1
- package/dist/Table/style/index.js +2 -1
- package/dist/Table/{style-x9xfw6te.js → style-DgiPEsSp.js} +1 -1
- package/dist/Table/utils/index.js +2 -1
- package/dist/Tabs/Tabs-BiKW70CL.js +398 -0
- package/dist/Tabs/index.js +7 -4
- package/dist/Tooltip/{Tooltip-DWWWYn1a.js → Tooltip-Ch9lti_7.js} +1 -1
- package/dist/Tooltip/index.js +2 -1
- package/dist/Tree/index.js +5 -4
- package/dist/Tree/utils/index.js +1 -0
- package/dist/components/DropDown/interface.d.ts +167 -169
- package/dist/components/Editor/LengthBadge.d.ts +6 -0
- package/dist/components/Editor/ToolbarPlugin/BaseButton/BaseButton.d.ts +1 -1
- package/dist/components/Editor/ToolbarPlugin/ToolbarPlugin.d.ts +5 -1
- package/dist/components/Editor/ToolbarPlugin/context/EditorToolbarThemeContext.d.ts +6 -0
- package/dist/components/Editor/ToolbarPlugin/interface.d.ts +30 -32
- package/dist/components/Editor/index.d.ts +1 -1
- package/dist/components/Editor/interface.d.ts +118 -60
- package/dist/components/Editor/plugins/MaxLengthPlugin.d.ts +7 -0
- package/dist/components/Editor/utils/resolveEditorToolbarThemeVars.d.ts +5 -0
- package/dist/components/Editor/utils/textLength.d.ts +4 -0
- package/dist/components/InputTag/interface.d.ts +32 -32
- package/dist/components/Radio/interface.d.ts +95 -97
- package/dist/components/Tabs/TabSelect/interface.d.ts +23 -25
- package/dist/components/Tabs/interface.d.ts +58 -60
- package/dist/components/Tree/types/node.d.ts +19 -19
- package/dist/components/Tree/types/tree.d.ts +81 -83
- package/dist/components/index.d.ts +2 -0
- package/dist/index.js +54 -51
- package/dist/locale/index.d.ts +1 -1
- package/dist/locale/lang/en-US.json.d.ts +177 -166
- package/dist/locale/lang/zh-CN.json.d.ts +177 -166
- package/dist/locale/lang/zh-TW.json.d.ts +177 -166
- package/dist/style.css +1 -1
- package/dist/vendors/{ConfigProvider-AQTr7T_c.js → ConfigProvider-DxrZpdIb.js} +23 -1
- package/dist/vendors/{LocaleContext-CBcJzvUD.js → LocaleContext-Dcw6C1LX.js} +11 -0
- package/dist/vendors/{Tree-DMC_MSw1.js → Tree-DXmVRDn0.js} +10 -9
- package/dist/vendors/{useLocale-DZ8XW2VL.js → useLocale-BKZX2_zw.js} +1 -1
- package/dist/vendors/version-4HBYLKDL.js +6 -0
- package/dist/vite-env.d.ts +13 -10
- package/dist/vitest-matchers.d.ts +0 -1
- package/package.json +8 -8
- package/dist/InputTag/InputTag-25vFChWE.js +0 -143
- package/dist/Loading/Loading--cdn92gm.js +0 -15
- package/dist/Tabs/Tabs-ZRWBbBdF.js +0 -410
- package/dist/components/Amap/AmapMarker/__tests__/AmapMarker.test.d.ts +0 -1
- package/dist/components/Amap/AmapMarkerCluster/__tests__/AmapMarkerCluster.test.d.ts +0 -1
- package/dist/components/Amap/AmapProvider/__tests__/AmapProvider.test.d.ts +0 -1
- package/dist/components/Amap/__tests__/Amap.test.d.ts +0 -1
- package/dist/components/Amap/hooks/__tests__/useCurrentLocation.test.d.ts +0 -1
- package/dist/components/Calendar/__tests__/Calendar.contract.test.d.ts +0 -1
- package/dist/components/Calendar/__tests__/algorithm/monthLayoutAlgorithm.test.d.ts +0 -1
- package/dist/components/Calendar/subcomponents/DateDisplay/__tests__/DateDisplay.weekPicker.test.d.ts +0 -1
- package/dist/components/Calendar/subcomponents/DayView/__tests__/CalendarDay.dayFilter.test.d.ts +0 -1
- package/dist/components/Calendar/subcomponents/EventCard/__tests__/EventCard.tooltip.test.d.ts +0 -1
- package/dist/components/Calendar/utils/__tests__/dateUtils.test.d.ts +0 -1
- package/dist/components/Calendar/utils/__tests__/eventUtils.contract.test.d.ts +0 -1
- package/dist/components/Calendar/utils/__tests__/normalizeData.test.d.ts +0 -1
- package/dist/components/Calendar/utils/theme/__tests__/platformTheme.test.d.ts +0 -1
- package/dist/components/Calendar/utils/theme/__tests__/resolveCalendarThemeVars.test.d.ts +0 -1
- package/dist/components/Calendar/utils/theme/__tests__/resolveScheduleColorVars.test.d.ts +0 -1
- package/dist/components/Calendar/utils/theme/__tests__/resolveSubcomponentThemes.test.d.ts +0 -1
- package/dist/components/ConfigProvider/__tests__/ConfigProvider.test.d.ts +0 -1
- package/dist/components/DatePicker/__tests__/DatePicker.getPopupContainer.test.d.ts +0 -1
- package/dist/components/DatePicker/__tests__/DatePicker.triggerActiveClassName.test.d.ts +0 -1
- package/dist/components/DatePicker/__tests__/DatePickerPanel.dom.test.d.ts +0 -1
- package/dist/components/DatePicker/style/__tests__/resolveDatePickerThemeVars.test.d.ts +0 -1
- package/dist/components/DatePicker/utils/__tests__/normalizePickerValue.test.d.ts +0 -1
- package/dist/components/DropDown/__tests__/DropDown.test.d.ts +0 -1
- package/dist/components/DropDown/style/__tests__/resolveDropDownThemeVars.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/OffscreenTaskIndicators/__tests__/OffscreenTaskIndicators.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/hooks/__tests__/timelineFocus.contract.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/hooks/__tests__/useGanttColumnVirtual.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/hooks/__tests__/useGanttDrag.clippedQuarterMonth.test.d.ts +0 -0
- package/dist/components/Gantt/GanttChart/hooks/__tests__/useOffscreenIndicators.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/hooks/__tests__/useTimelineViewportController.test.d.ts +0 -0
- package/dist/components/Gantt/GanttChart/utils/__tests__/dateRangeNormalizer.subday.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/utils/__tests__/dragEngine.quarterMonth.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/utils/__tests__/dragEngine.subday.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/utils/__tests__/headerBuilder.quarterMonth.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/utils/__tests__/headerBuilder.subday.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/utils/__tests__/quarterMonthScale.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/utils/__tests__/subdayScale.contract.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/utils/__tests__/timelineMarkers.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/utils/__tests__/timelineRange.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/utils/__tests__/timelineViewConfig.test.d.ts +0 -1
- package/dist/components/Gantt/GanttChart/utils/__tests__/timelineViewportEngine.test.d.ts +0 -1
- package/dist/components/Gantt/__tests__/Gantt.contract.test.d.ts +0 -0
- package/dist/components/Gantt/__tests__/Gantt.grouped.contract.test.d.ts +0 -0
- package/dist/components/Gantt/__tests__/GanttBars.renderWindow.test.d.ts +0 -1
- package/dist/components/Gantt/__tests__/GanttChart.contract.test.d.ts +0 -0
- package/dist/components/Gantt/__tests__/GanttSummaryBar.tooltip.test.d.ts +0 -1
- package/dist/components/Gantt/__tests__/GanttToolBar.test.d.ts +0 -1
- package/dist/components/Gantt/__tests__/filterItemsByCollapse.test.d.ts +0 -1
- package/dist/components/Gantt/__tests__/interface.contract.types.test.d.ts +0 -1
- package/dist/components/Gantt/__tests__/timezoneUtils.test.d.ts +0 -1
- package/dist/components/Gantt/__tests__/useBarTooltipHover.test.d.ts +0 -1
- package/dist/components/Gantt/__tests__/useGanttHighlight.test.d.ts +0 -1
- package/dist/components/Gantt/__tests__/useTaskBarPointer.test.d.ts +0 -1
- package/dist/components/Gantt/utils/theme/__tests__/resolveGanttTheme.test.d.ts +0 -1
- package/dist/components/Gantt/utils/theme/__tests__/resolveGanttThemeVars.test.d.ts +0 -1
- package/dist/components/Gantt/utils/theme/__tests__/resolveTableThemeFromGantt.test.d.ts +0 -1
- package/dist/components/ScrollBar/__tests__/ScrollBar.test.d.ts +0 -1
- package/dist/components/Select/__tests__/Select.getPopupContainer.test.d.ts +0 -1
- package/dist/components/Select/__tests__/Select.optionDisabled.test.d.ts +0 -1
- package/dist/components/Table/__tests__/HeaderCell.test.d.ts +0 -1
- package/dist/components/Table/__tests__/TableBody.test.d.ts +0 -1
- package/dist/components/Table/__tests__/processRowspan.test.d.ts +0 -1
- package/dist/components/Table/style/__tests__/resolveTableThemeVars.test.d.ts +0 -1
- package/dist/components/Tooltip/__tests__/Tooltip.test.d.ts +0 -1
- package/dist/components/Tree/Tree.test.d.ts +0 -1
- package/dist/locale/__tests__/locale.test.d.ts +0 -1
- /package/dist/Amap/{AmapContext-CFmsMycg.js → AmapContext-D7Njjm5a.js} +0 -0
- /package/dist/Amap/{useMarkerInfoWindowController-BvP2jo7K.js → useMarkerInfoWindowController-BQmhR0N7.js} +0 -0
- /package/dist/Calendar/{TimeAxis-D7bgZDKs.js → TimeAxis-C9e2BdYs.js} +0 -0
- /package/dist/Calendar/{colorUtils-lXNjGoCk.js → colorUtils-CBLTsDX0.js} +0 -0
- /package/dist/Calendar/{context-CBJnz0IH.js → context-4tCN5X33.js} +0 -0
- /package/dist/Calendar/{layout-BglMom3m.js → layout-Dz-grtu9.js} +0 -0
- /package/dist/DatePicker/{ensureDayjsPlugins-CVL-fnAl.js → ensureDayjsPlugins-Cn9Bkjkj.js} +0 -0
- /package/dist/DatePicker/{pickerLocale-BeMlfhKu.js → pickerLocale-BRnNjLcv.js} +0 -0
- /package/dist/Gantt/{GanttHighlightContext-grda5bhd.js → GanttHighlightContext-ChThr8ia.js} +0 -0
- /package/dist/Gantt/{columnResize-DV1tSBx_.js → columnResize-jG0Wy2PC.js} +0 -0
- /package/dist/Gantt/{constants-BObDP0h6.js → constants-LIz5jwed.js} +0 -0
- /package/dist/Gantt/{highlightTarget-DrP0_NrM.js → highlightTarget-BpkYTonb.js} +0 -0
- /package/dist/Icon/{Icon-SQ5tu-yG.js → Icon-BBDcb-yw.js} +0 -0
- /package/dist/NotFoundContent/{NotFoundContent-J-TEnljc.js → NotFoundContent-BLmzWNBi.js} +0 -0
- /package/dist/ScrollBar/{style-B1NkMGtS.js → style-D26azwz6.js} +0 -0
- /package/dist/Table/{constants-CcwjDbe7.js → constants-kRpjsoet.js} +0 -0
- /package/dist/vendors/{animations-Mlw78WYo.js → animations-rwUbyoT0.js} +0 -0
- /package/dist/vendors/{color-BQYy0Wgy.js → color-D6XBXROa.js} +0 -0
- /package/dist/vendors/{cssVars-B8o94Yao.js → cssVars-BYg1matG.js} +0 -0
- /package/dist/vendors/{mergeRefs-Bai1cIzv.js → mergeRefs-Bsywq1Vo.js} +0 -0
- /package/dist/vendors/{useFloatingOverlay-WbbHmuT-.js → useFloatingOverlay-BApqkHSu.js} +0 -0
- /package/dist/vendors/{useFloatingPortal-C8V67X0v.js → useFloatingPortal-CmVJbuRm.js} +0 -0
- /package/dist/vendors/{useLatchedPopupPortalRoot-hwf14FJ5.js → useLatchedPopupPortalRoot-4fVhqVT4.js} +0 -0
- /package/dist/{components/Amap/AmapCircle/__tests__/AmapCircle.test.d.ts → version.d.ts} +0 -0
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { t as e } from "../Icon/Icon-SQ5tu-yG.js";
|
|
2
|
-
import { t } from "../ScrollBar/ScrollBar-CnwYQfXM.js";
|
|
3
|
-
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
4
|
-
import { useCallback as i, useEffect as a, useLayoutEffect as o, useRef as s, useState as c } from "react";
|
|
5
|
-
import l from "clsx";
|
|
6
|
-
import { useControllableValue as u } from "ahooks";
|
|
7
|
-
import { motion as d } from "motion/react";
|
|
8
|
-
//#region src/components/InputTag/input-tag.module.scss
|
|
9
|
-
var f = {
|
|
10
|
-
"bsy-inputTag": "_bsy-inputTag_46spj_11",
|
|
11
|
-
"bsy-inputTag__container": "_bsy-inputTag__container_46spj_22",
|
|
12
|
-
"bsy-inputTag__inputContainer": "_bsy-inputTag__inputContainer_46spj_27",
|
|
13
|
-
"bsy-inputTag__inputContainer--zeroMargin": "_bsy-inputTag__inputContainer--zeroMargin_46spj_37",
|
|
14
|
-
"bsy-inputTag__input": "_bsy-inputTag__input_46spj_27",
|
|
15
|
-
"scale-in": "_scale-in_46spj_1"
|
|
16
|
-
}, p = {
|
|
17
|
-
GAP: 4,
|
|
18
|
-
OFFSET: 3,
|
|
19
|
-
INPUT_MIN_WIDTH: 80,
|
|
20
|
-
CONTAINER_PADDING: 10,
|
|
21
|
-
INPUT_MARGIN: 4
|
|
22
|
-
}, m = (e, t) => {
|
|
23
|
-
let [n, r] = c(0);
|
|
24
|
-
return o(() => {
|
|
25
|
-
let t = e.current;
|
|
26
|
-
if (!t) return;
|
|
27
|
-
let n = () => {
|
|
28
|
-
let e = t.children, n = 0;
|
|
29
|
-
for (let t = 0; t < e.length; t++) n += e[t].clientWidth;
|
|
30
|
-
let i = Math.max(0, e.length - 1) * p.GAP, a = Math.max(0, n + i + p.OFFSET);
|
|
31
|
-
r((e) => e === a ? e : a);
|
|
32
|
-
};
|
|
33
|
-
n();
|
|
34
|
-
let i = new ResizeObserver(n);
|
|
35
|
-
return i.observe(t), () => {
|
|
36
|
-
i.disconnect();
|
|
37
|
-
};
|
|
38
|
-
}, [t, e]), n;
|
|
39
|
-
}, h = { overflow: {
|
|
40
|
-
x: "scroll",
|
|
41
|
-
y: "hidden"
|
|
42
|
-
} }, g = (g) => {
|
|
43
|
-
let { defaultValue: _, enableActive: v = !1, defaultActiveIndex: y, onActiveIndexChange: b } = g, [x, S] = u(g, { defaultValue: _ || [] }), [C, w] = u(g, {
|
|
44
|
-
valuePropName: "activeIndex",
|
|
45
|
-
trigger: "onActiveIndexChange",
|
|
46
|
-
defaultValue: y
|
|
47
|
-
}), [T, E] = c(""), D = s(null), O = s(null), k = s(null), A = s(!1), j = () => {
|
|
48
|
-
if (O.current && O.current.children.length > 0) {
|
|
49
|
-
let e = O.current.children.length - 1;
|
|
50
|
-
O.current.children[e].scrollIntoView({
|
|
51
|
-
behavior: "smooth",
|
|
52
|
-
block: "nearest",
|
|
53
|
-
inline: "end"
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
a(() => {
|
|
58
|
-
A.current && x.length > 0 && (j(), A.current = !1);
|
|
59
|
-
}, [x.length]);
|
|
60
|
-
let M = (e) => {
|
|
61
|
-
E(e.currentTarget.value);
|
|
62
|
-
}, N = () => {
|
|
63
|
-
let e = T.trim();
|
|
64
|
-
if (e !== "") {
|
|
65
|
-
let t = e;
|
|
66
|
-
A.current = !0, S([...x, t]), E("");
|
|
67
|
-
}
|
|
68
|
-
}, P = (e, t) => {
|
|
69
|
-
if (!v) return;
|
|
70
|
-
let n = C === e ? void 0 : e;
|
|
71
|
-
w(n), b?.(n ?? -1, t);
|
|
72
|
-
}, F = (e) => {
|
|
73
|
-
e.key === "Enter" || e.key === "NumpadEnter" ? N() : e.key === "Backspace" && T === "" && x.length > 0 && S(x.slice(0, -1));
|
|
74
|
-
}, I = (e) => {
|
|
75
|
-
S(x.filter((t, n) => n !== e));
|
|
76
|
-
}, [L, R] = c(0), z = m(O, x.length), B = i(() => {
|
|
77
|
-
if (!D.current || !k.current) return;
|
|
78
|
-
let e = D.current.clientWidth - k.current.clientWidth - p.INPUT_MARGIN - p.CONTAINER_PADDING, t = Math.max(0, e);
|
|
79
|
-
R((e) => e === t ? e : t);
|
|
80
|
-
}, []);
|
|
81
|
-
o(() => {
|
|
82
|
-
if (!D.current || !k.current) return;
|
|
83
|
-
B();
|
|
84
|
-
let e = new ResizeObserver(() => {
|
|
85
|
-
B();
|
|
86
|
-
});
|
|
87
|
-
return e.observe(D.current), e.observe(k.current), () => {
|
|
88
|
-
e.disconnect();
|
|
89
|
-
};
|
|
90
|
-
}, [B]);
|
|
91
|
-
let V = Math.min(z, L);
|
|
92
|
-
return /* @__PURE__ */ r("div", {
|
|
93
|
-
className: f["bsy-inputTag"],
|
|
94
|
-
ref: D,
|
|
95
|
-
children: [/* @__PURE__ */ n("div", {
|
|
96
|
-
className: f["bsy-inputTag__container"],
|
|
97
|
-
children: x.length ? /* @__PURE__ */ n(t, {
|
|
98
|
-
style: { width: `${V}px` },
|
|
99
|
-
options: h,
|
|
100
|
-
children: /* @__PURE__ */ n("div", {
|
|
101
|
-
className: "flex gap-1 py-[3px]",
|
|
102
|
-
ref: O,
|
|
103
|
-
children: x.map((t, i) => /* @__PURE__ */ r(d.div, {
|
|
104
|
-
className: l("rounded-[2px] gap-1 px-[6px] h-[26px] flex items-center flex-shrink-0", {
|
|
105
|
-
"cursor-pointer": v,
|
|
106
|
-
"hover:bg-[#e0e0e0]": v && C !== i,
|
|
107
|
-
"bg-[#0265ff] text-white": v && C === i,
|
|
108
|
-
"bg-[#eee] text-black": !v || C !== i
|
|
109
|
-
}),
|
|
110
|
-
onClick: () => P(i, t),
|
|
111
|
-
children: [/* @__PURE__ */ n("span", { children: t }), /* @__PURE__ */ n("div", {
|
|
112
|
-
className: l("cursor-pointer", v && C === i ? "text-white hover:text-gray-200" : "text-[#666] hover:text-[#0265ff]"),
|
|
113
|
-
onClick: (e) => {
|
|
114
|
-
e.stopPropagation(), I(i);
|
|
115
|
-
},
|
|
116
|
-
children: /* @__PURE__ */ n(e, {
|
|
117
|
-
name: "close",
|
|
118
|
-
size: 12
|
|
119
|
-
})
|
|
120
|
-
})]
|
|
121
|
-
}, i))
|
|
122
|
-
})
|
|
123
|
-
}) : null
|
|
124
|
-
}), /* @__PURE__ */ n("div", {
|
|
125
|
-
ref: k,
|
|
126
|
-
className: l(f["bsy-inputTag__inputContainer"], { [f["bsy-inputTag__inputContainer--zeroMargin"]]: x.length === 0 }, "py-[3px]"),
|
|
127
|
-
children: /* @__PURE__ */ n("input", {
|
|
128
|
-
value: T,
|
|
129
|
-
onChange: M,
|
|
130
|
-
onKeyDown: F,
|
|
131
|
-
onBlur: N,
|
|
132
|
-
className: l(f["bsy-inputTag__input"], "placeholder:text-[#999]"),
|
|
133
|
-
placeholder: "输入标签"
|
|
134
|
-
})
|
|
135
|
-
})]
|
|
136
|
-
});
|
|
137
|
-
};
|
|
138
|
-
g.displayName = "BsyInputTag";
|
|
139
|
-
//#endregion
|
|
140
|
-
//#region src/components/InputTag/index.ts
|
|
141
|
-
var _ = g;
|
|
142
|
-
//#endregion
|
|
143
|
-
export { _ as t };
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { LoadingOutlined as e } from "@ant-design/icons";
|
|
2
|
-
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
-
//#region src/components/Loading/Loading.tsx
|
|
4
|
-
var r = ({ tip: r = "加载中..." }) => /* @__PURE__ */ n("div", {
|
|
5
|
-
className: "flex flex-col justify-center items-center h-full min-h-[100px] text-slate-500",
|
|
6
|
-
children: [/* @__PURE__ */ t(e, {
|
|
7
|
-
style: {
|
|
8
|
-
fontSize: 24,
|
|
9
|
-
marginBottom: 8
|
|
10
|
-
},
|
|
11
|
-
spin: !0
|
|
12
|
-
}), /* @__PURE__ */ t("span", { children: r })]
|
|
13
|
-
});
|
|
14
|
-
//#endregion
|
|
15
|
-
export { r as t };
|
|
@@ -1,410 +0,0 @@
|
|
|
1
|
-
import { t as e } from "../Icon/Icon-SQ5tu-yG.js";
|
|
2
|
-
import { n as t } from "../vendors/color-BQYy0Wgy.js";
|
|
3
|
-
import { n } from "../vendors/animations-Mlw78WYo.js";
|
|
4
|
-
import { t as r } from "../vendors/useFloatingPortal-C8V67X0v.js";
|
|
5
|
-
import { isString as i } from "lodash-es";
|
|
6
|
-
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
|
-
import { createContext as c, useCallback as l, useContext as u, useLayoutEffect as d, useRef as f, useState as p } from "react";
|
|
8
|
-
import m from "clsx";
|
|
9
|
-
import { useControllableValue as h, useEventListener as g, useMutationObserver as _, useToggle as v } from "ahooks";
|
|
10
|
-
import { AnimatePresence as y, motion as b } from "motion/react";
|
|
11
|
-
import { FloatingPortal as x } from "@floating-ui/react";
|
|
12
|
-
//#region src/components/Tabs/constants.ts
|
|
13
|
-
var S = {
|
|
14
|
-
LINE: "line",
|
|
15
|
-
CARD: "card",
|
|
16
|
-
FILLED_CARD: "filled-card",
|
|
17
|
-
BADGE_CARD: "badge-card"
|
|
18
|
-
}, C = c({
|
|
19
|
-
color: "#0269ff",
|
|
20
|
-
type: S.LINE
|
|
21
|
-
}), w = "_active_1oc43_18", T = "_disabled_1oc43_26", E = "_line_1oc43_44", D = "_card_1oc43_53", O = {
|
|
22
|
-
"bsy-tab": "_bsy-tab_1oc43_1",
|
|
23
|
-
"badge-card": "_badge-card_1oc43_9",
|
|
24
|
-
active: w,
|
|
25
|
-
disabled: T,
|
|
26
|
-
line: E,
|
|
27
|
-
card: D,
|
|
28
|
-
"filled-card": "_filled-card_1oc43_78"
|
|
29
|
-
}, k = (e, t = 24) => e.length <= t ? e : e.slice(0, t) + "...", A = (e) => typeof e == "string" ? k(e) : e, j = ({ label: e, active: n = !1, onClick: r, tabKey: a }) => {
|
|
30
|
-
let { type: s = S.LINE, disabled: c, color: l } = u(C), d = i(e) ? e : "", f = () => {
|
|
31
|
-
c || r?.(a);
|
|
32
|
-
}, p = {
|
|
33
|
-
"data-tab-item": !0,
|
|
34
|
-
"data-tab-key": a,
|
|
35
|
-
role: "tab",
|
|
36
|
-
"aria-selected": n,
|
|
37
|
-
"aria-controls": `panel-${a}`,
|
|
38
|
-
onClick: f
|
|
39
|
-
};
|
|
40
|
-
return s === S.LINE ? /* @__PURE__ */ o("div", {
|
|
41
|
-
...p,
|
|
42
|
-
className: m(O["bsy-tab"], O.line, {
|
|
43
|
-
[O.disabled]: c,
|
|
44
|
-
[O.active]: n
|
|
45
|
-
}),
|
|
46
|
-
title: d,
|
|
47
|
-
children: A(e)
|
|
48
|
-
}) : s === S.CARD ? /* @__PURE__ */ o("div", {
|
|
49
|
-
...p,
|
|
50
|
-
className: m(O["bsy-tab"], O.card, {
|
|
51
|
-
[O.active]: n,
|
|
52
|
-
[O.disabled]: c
|
|
53
|
-
}),
|
|
54
|
-
title: d,
|
|
55
|
-
style: { "--theme-bg-color": t(l, .1) },
|
|
56
|
-
children: /* @__PURE__ */ o("span", { children: A(e) })
|
|
57
|
-
}) : s === S.FILLED_CARD ? /* @__PURE__ */ o("div", {
|
|
58
|
-
...p,
|
|
59
|
-
className: m(O["bsy-tab"], O["filled-card"], {
|
|
60
|
-
[O.active]: n,
|
|
61
|
-
[O.disabled]: c
|
|
62
|
-
}),
|
|
63
|
-
title: d,
|
|
64
|
-
children: A(e)
|
|
65
|
-
}) : s === S.BADGE_CARD ? /* @__PURE__ */ o("div", {
|
|
66
|
-
...p,
|
|
67
|
-
className: m(O["bsy-tab"], O["badge-card"], {
|
|
68
|
-
[O.active]: n,
|
|
69
|
-
[O.disabled]: c
|
|
70
|
-
}),
|
|
71
|
-
title: d,
|
|
72
|
-
children: /* @__PURE__ */ o("span", { children: A(e) })
|
|
73
|
-
}) : null;
|
|
74
|
-
};
|
|
75
|
-
j.displayName = "BsyTab";
|
|
76
|
-
//#endregion
|
|
77
|
-
//#region src/components/Tabs/TabList/useTabScroll.ts
|
|
78
|
-
var M = ({ disabled: e, children: t }) => {
|
|
79
|
-
let n = f(null), r = f(null), [i, a] = p(!1), [o, s] = p(!1), [c, u] = p(!1), [m, h] = p(0), _ = l(() => {
|
|
80
|
-
let e = n.current, t = r.current;
|
|
81
|
-
if (!e || !t) return;
|
|
82
|
-
let i = e.clientWidth, o = t.scrollWidth, c = o > i;
|
|
83
|
-
a(c), c ? (s(m < 0), u(m > -(o - i))) : (s(!1), u(!1), h(0));
|
|
84
|
-
}, [m]);
|
|
85
|
-
return g("resize", () => _()), d(() => {
|
|
86
|
-
_();
|
|
87
|
-
}, [
|
|
88
|
-
m,
|
|
89
|
-
t,
|
|
90
|
-
_
|
|
91
|
-
]), {
|
|
92
|
-
listRef: n,
|
|
93
|
-
wrapperRef: r,
|
|
94
|
-
showControls: i,
|
|
95
|
-
canScrollLeft: o,
|
|
96
|
-
canScrollRight: c,
|
|
97
|
-
translateX: m,
|
|
98
|
-
scrollLeft: () => {
|
|
99
|
-
if (!o || e) return;
|
|
100
|
-
let t = n.current;
|
|
101
|
-
if (!t) return;
|
|
102
|
-
let r = t.clientWidth * .6;
|
|
103
|
-
h(Math.min(0, m + r));
|
|
104
|
-
},
|
|
105
|
-
scrollRight: () => {
|
|
106
|
-
if (!c || e) return;
|
|
107
|
-
let t = n.current, i = r.current;
|
|
108
|
-
if (!t || !i) return;
|
|
109
|
-
let a = t.clientWidth * .6, o = t.clientWidth, s = -(i.scrollWidth - o);
|
|
110
|
-
h(Math.max(s, m - a));
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
}, N = ({ activeKey: e, type: t, showIndicator: n, wrapperRef: r, items: i }) => {
|
|
114
|
-
let [a, o] = p({
|
|
115
|
-
width: 0,
|
|
116
|
-
left: 0,
|
|
117
|
-
ready: !1
|
|
118
|
-
}), s = l((e) => {
|
|
119
|
-
if (!n || !r.current) return;
|
|
120
|
-
let t = r.current.getBoundingClientRect(), i = e.getBoundingClientRect(), a = i.left - t.left, s = i.width;
|
|
121
|
-
o({
|
|
122
|
-
width: s,
|
|
123
|
-
left: a,
|
|
124
|
-
ready: !0
|
|
125
|
-
});
|
|
126
|
-
}, [n, r]);
|
|
127
|
-
return d(() => {
|
|
128
|
-
if (!e || !r.current) return;
|
|
129
|
-
let t = r.current.querySelector(`[data-tab-key="${e}"]`);
|
|
130
|
-
t && n && s(t);
|
|
131
|
-
}, [
|
|
132
|
-
e,
|
|
133
|
-
n,
|
|
134
|
-
r,
|
|
135
|
-
s,
|
|
136
|
-
t,
|
|
137
|
-
i
|
|
138
|
-
]), _(() => {
|
|
139
|
-
if (!n) return;
|
|
140
|
-
let e = r.current?.querySelector("[aria-selected=\"true\"]");
|
|
141
|
-
e && s(e);
|
|
142
|
-
}, r, {
|
|
143
|
-
subtree: !0,
|
|
144
|
-
characterData: !0
|
|
145
|
-
}), {
|
|
146
|
-
indicatorStyle: a,
|
|
147
|
-
handleTabClick: (e) => {
|
|
148
|
-
s(e);
|
|
149
|
-
}
|
|
150
|
-
};
|
|
151
|
-
}, P = ({ children: e, activeKey: t, className: n, style: r, items: i }) => {
|
|
152
|
-
let { type: a = S.LINE, color: c, disabled: l } = u(C), d = [S.LINE, S.CARD].includes(a), { listRef: f, wrapperRef: p, showControls: h, canScrollLeft: g, canScrollRight: _, translateX: v, scrollLeft: y, scrollRight: b } = M({
|
|
153
|
-
disabled: l,
|
|
154
|
-
children: e
|
|
155
|
-
}), { indicatorStyle: x, handleTabClick: w } = N({
|
|
156
|
-
activeKey: t,
|
|
157
|
-
type: a,
|
|
158
|
-
showIndicator: d,
|
|
159
|
-
wrapperRef: p,
|
|
160
|
-
items: i
|
|
161
|
-
}), T = x.ready, E = (e) => {
|
|
162
|
-
if (l) return;
|
|
163
|
-
let t = e.target.closest("[data-tab-item]");
|
|
164
|
-
t && w(t);
|
|
165
|
-
};
|
|
166
|
-
return /* @__PURE__ */ s("div", {
|
|
167
|
-
className: m("relative max-h-[36px]", n),
|
|
168
|
-
style: r,
|
|
169
|
-
children: [
|
|
170
|
-
h && /* @__PURE__ */ o("button", {
|
|
171
|
-
className: m("absolute left-0 top-0 bottom-0 z-10 w-8 flex items-center justify-center", {
|
|
172
|
-
"text-gray-400 cursor-not-allowed": !g || l,
|
|
173
|
-
"text-gray-600": g && !l
|
|
174
|
-
}),
|
|
175
|
-
onClick: y,
|
|
176
|
-
disabled: !g || l,
|
|
177
|
-
"aria-label": "向左滚动",
|
|
178
|
-
children: /* @__PURE__ */ o("svg", {
|
|
179
|
-
className: "w-4 h-4",
|
|
180
|
-
fill: "none",
|
|
181
|
-
stroke: "currentColor",
|
|
182
|
-
viewBox: "0 0 24 24",
|
|
183
|
-
children: /* @__PURE__ */ o("path", {
|
|
184
|
-
strokeLinecap: "round",
|
|
185
|
-
strokeLinejoin: "round",
|
|
186
|
-
strokeWidth: 2,
|
|
187
|
-
d: "M15 19l-7-7 7-7"
|
|
188
|
-
})
|
|
189
|
-
})
|
|
190
|
-
}),
|
|
191
|
-
/* @__PURE__ */ o("div", {
|
|
192
|
-
className: m({
|
|
193
|
-
"pl-8": h,
|
|
194
|
-
"pr-8": h
|
|
195
|
-
}),
|
|
196
|
-
children: /* @__PURE__ */ o("div", {
|
|
197
|
-
ref: f,
|
|
198
|
-
className: m("overflow-hidden", {
|
|
199
|
-
"border-b border-[#e0e0e0]": a === S.LINE,
|
|
200
|
-
"border-b-2": a === S.FILLED_CARD || a === S.BADGE_CARD,
|
|
201
|
-
"pb-[2px]": a === S.BADGE_CARD
|
|
202
|
-
}),
|
|
203
|
-
style: { borderColor: a === S.LINE ? void 0 : c },
|
|
204
|
-
children: /* @__PURE__ */ s("div", {
|
|
205
|
-
ref: p,
|
|
206
|
-
role: "tablist",
|
|
207
|
-
className: m("relative text-sm flex flex-nowrap", {
|
|
208
|
-
"gap-x-[26px]": a === S.LINE,
|
|
209
|
-
"gap-x-[10px]": a === S.FILLED_CARD || a === S.BADGE_CARD,
|
|
210
|
-
"bg-[#f0f0f0]": a === S.CARD
|
|
211
|
-
}),
|
|
212
|
-
onClick: E,
|
|
213
|
-
style: {
|
|
214
|
-
"--theme-color": c,
|
|
215
|
-
transform: `translateX(${v}px)`,
|
|
216
|
-
transition: "transform 0.3s ease-in-out"
|
|
217
|
-
},
|
|
218
|
-
children: [e, d && x.ready && /* @__PURE__ */ o("div", {
|
|
219
|
-
className: m("absolute h-0.5", {
|
|
220
|
-
"bottom-0": a === S.LINE,
|
|
221
|
-
"top-0": a === S.CARD,
|
|
222
|
-
"transition-all duration-300 ease-in-out": T
|
|
223
|
-
}),
|
|
224
|
-
style: {
|
|
225
|
-
backgroundColor: c,
|
|
226
|
-
width: `${x.width}px`,
|
|
227
|
-
left: `${x.left}px`
|
|
228
|
-
}
|
|
229
|
-
})]
|
|
230
|
-
})
|
|
231
|
-
})
|
|
232
|
-
}),
|
|
233
|
-
h && /* @__PURE__ */ o("button", {
|
|
234
|
-
className: m("absolute right-0 top-0 bottom-0 z-10 w-8 flex items-center justify-center", {
|
|
235
|
-
"text-gray-400 cursor-not-allowed": !_ || l,
|
|
236
|
-
"text-gray-600": _ && !l
|
|
237
|
-
}),
|
|
238
|
-
onClick: b,
|
|
239
|
-
disabled: !_ || l,
|
|
240
|
-
"aria-label": "向右滚动",
|
|
241
|
-
children: /* @__PURE__ */ o("svg", {
|
|
242
|
-
className: "w-4 h-4",
|
|
243
|
-
fill: "none",
|
|
244
|
-
stroke: "currentColor",
|
|
245
|
-
viewBox: "0 0 24 24",
|
|
246
|
-
children: /* @__PURE__ */ o("path", {
|
|
247
|
-
strokeLinecap: "round",
|
|
248
|
-
strokeLinejoin: "round",
|
|
249
|
-
strokeWidth: 2,
|
|
250
|
-
d: "M9 5l7 7-7 7"
|
|
251
|
-
})
|
|
252
|
-
})
|
|
253
|
-
})
|
|
254
|
-
]
|
|
255
|
-
});
|
|
256
|
-
};
|
|
257
|
-
P.displayName = "BsyTabList";
|
|
258
|
-
//#endregion
|
|
259
|
-
//#region src/components/Tabs/TabPanel/TabPanel.tsx
|
|
260
|
-
var F = ({ items: e, activeKey: t, className: n }) => {
|
|
261
|
-
let r = e.find((e) => e.key === t);
|
|
262
|
-
return !r || !r.children ? null : /* @__PURE__ */ o("div", {
|
|
263
|
-
className: n,
|
|
264
|
-
role: "tabpanel",
|
|
265
|
-
"aria-labelledby": `tab-${t}`,
|
|
266
|
-
children: r.children
|
|
267
|
-
});
|
|
268
|
-
};
|
|
269
|
-
F.displayName = "BsyTabPanel";
|
|
270
|
-
//#endregion
|
|
271
|
-
//#region src/components/Tabs/Tabs.tsx
|
|
272
|
-
var I = (e) => {
|
|
273
|
-
let [t, n] = h(e, {
|
|
274
|
-
defaultValuePropName: "defaultActiveKey",
|
|
275
|
-
valuePropName: "activeKey",
|
|
276
|
-
trigger: "onChange"
|
|
277
|
-
}), r = e.items?.some((e) => e.children), i = e.color || "#0265ff";
|
|
278
|
-
return /* @__PURE__ */ o(C.Provider, {
|
|
279
|
-
value: {
|
|
280
|
-
color: i,
|
|
281
|
-
type: e.type,
|
|
282
|
-
disabled: e.disabled
|
|
283
|
-
},
|
|
284
|
-
children: /* @__PURE__ */ s("div", {
|
|
285
|
-
className: "bsy-tabs",
|
|
286
|
-
children: [/* @__PURE__ */ o(P, {
|
|
287
|
-
items: e.items,
|
|
288
|
-
activeKey: t,
|
|
289
|
-
children: e.items?.map((e) => /* @__PURE__ */ o(j, {
|
|
290
|
-
tabKey: e.key,
|
|
291
|
-
label: e.label,
|
|
292
|
-
active: t === e.key,
|
|
293
|
-
onClick: (e) => n(e)
|
|
294
|
-
}, e.key))
|
|
295
|
-
}), r && e.items && /* @__PURE__ */ o(F, {
|
|
296
|
-
items: e.items,
|
|
297
|
-
activeKey: t,
|
|
298
|
-
className: "bsy-tabs__content"
|
|
299
|
-
})]
|
|
300
|
-
})
|
|
301
|
-
});
|
|
302
|
-
};
|
|
303
|
-
I.displayName = "BsyTabs";
|
|
304
|
-
//#endregion
|
|
305
|
-
//#region src/components/Tabs/TabSelect/tabSelect.module.scss
|
|
306
|
-
var L = "_active_5a1wn_11", R = "_icon_5a1wn_45", z = {
|
|
307
|
-
"bsy-tabs-select__trigger": "_bsy-tabs-select__trigger_5a1wn_1",
|
|
308
|
-
active: L,
|
|
309
|
-
"bsy-tabs-select__trigger-icon": "_bsy-tabs-select__trigger-icon_5a1wn_14",
|
|
310
|
-
"bsy-tabs-select__trigger-input": "_bsy-tabs-select__trigger-input_5a1wn_17",
|
|
311
|
-
"bsy-tabs-select__panel": "_bsy-tabs-select__panel_5a1wn_21",
|
|
312
|
-
"bsy-tabs-select__panel-item": "_bsy-tabs-select__panel-item_5a1wn_32",
|
|
313
|
-
icon: R
|
|
314
|
-
}, B = (t) => {
|
|
315
|
-
let { color: i = "#0269ff" } = t, [c, { toggle: l, setLeft: u }] = v(!1), { refs: d, floatingStyles: f, getFloatingProps: p, getReferenceProps: g, referenceStyle: _ } = r({
|
|
316
|
-
isOpen: c,
|
|
317
|
-
close: u,
|
|
318
|
-
offset: {
|
|
319
|
-
x: 0,
|
|
320
|
-
y: 4
|
|
321
|
-
},
|
|
322
|
-
zIndex: 1e3
|
|
323
|
-
}), [C, w] = h(t, {
|
|
324
|
-
trigger: "onChange",
|
|
325
|
-
defaultValuePropName: "defaultValue",
|
|
326
|
-
valuePropName: "value",
|
|
327
|
-
defaultValue: S.LINE
|
|
328
|
-
}), T = Object.values(S).map((e) => ({
|
|
329
|
-
label: e,
|
|
330
|
-
value: e
|
|
331
|
-
}));
|
|
332
|
-
return /* @__PURE__ */ s("div", {
|
|
333
|
-
className: z["bsy-tabs-select"],
|
|
334
|
-
children: [/* @__PURE__ */ s("div", {
|
|
335
|
-
className: m(z["bsy-tabs-select__trigger"], { [z.active]: c }),
|
|
336
|
-
ref: d.setReference,
|
|
337
|
-
...g(),
|
|
338
|
-
style: _,
|
|
339
|
-
onClick: () => l(),
|
|
340
|
-
children: [/* @__PURE__ */ o("div", {
|
|
341
|
-
className: m(z["bsy-tabs-select__trigger-input"], { [z.active]: C }),
|
|
342
|
-
children: C && /* @__PURE__ */ o(I, {
|
|
343
|
-
activeKey: "1",
|
|
344
|
-
type: C,
|
|
345
|
-
color: i,
|
|
346
|
-
disabled: !0,
|
|
347
|
-
items: [
|
|
348
|
-
{
|
|
349
|
-
label: "标签页1",
|
|
350
|
-
key: "1"
|
|
351
|
-
},
|
|
352
|
-
{
|
|
353
|
-
label: "标签页2",
|
|
354
|
-
key: "2"
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
label: "标签页3",
|
|
358
|
-
key: "3"
|
|
359
|
-
}
|
|
360
|
-
]
|
|
361
|
-
}, C)
|
|
362
|
-
}), /* @__PURE__ */ o("div", {
|
|
363
|
-
className: z["bsy-tabs-select__trigger-icon"],
|
|
364
|
-
children: /* @__PURE__ */ o(e, {
|
|
365
|
-
name: "arrow-down",
|
|
366
|
-
className: m(z.icon, { active: c })
|
|
367
|
-
})
|
|
368
|
-
})]
|
|
369
|
-
}), /* @__PURE__ */ o(x, { children: /* @__PURE__ */ o(y, { children: c && /* @__PURE__ */ o(a, { children: /* @__PURE__ */ o("div", {
|
|
370
|
-
ref: d.setFloating,
|
|
371
|
-
style: f,
|
|
372
|
-
...p(),
|
|
373
|
-
children: /* @__PURE__ */ o(b.div, {
|
|
374
|
-
...n,
|
|
375
|
-
children: /* @__PURE__ */ o("div", {
|
|
376
|
-
className: z["bsy-tabs-select__panel"],
|
|
377
|
-
children: T.map((e) => /* @__PURE__ */ o("div", {
|
|
378
|
-
className: m(z["bsy-tabs-select__panel-item"], { [z.active]: C === e.value }),
|
|
379
|
-
onClick: () => {
|
|
380
|
-
w(e.value), u();
|
|
381
|
-
},
|
|
382
|
-
children: /* @__PURE__ */ o(I, {
|
|
383
|
-
activeKey: "1",
|
|
384
|
-
type: e.value,
|
|
385
|
-
disabled: !0,
|
|
386
|
-
color: i,
|
|
387
|
-
items: [
|
|
388
|
-
{
|
|
389
|
-
label: "标签页1",
|
|
390
|
-
key: "1"
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
label: "标签页2",
|
|
394
|
-
key: "2"
|
|
395
|
-
},
|
|
396
|
-
{
|
|
397
|
-
label: "标签页3",
|
|
398
|
-
key: "3"
|
|
399
|
-
}
|
|
400
|
-
]
|
|
401
|
-
}, e.value)
|
|
402
|
-
}, e.value))
|
|
403
|
-
})
|
|
404
|
-
})
|
|
405
|
-
}) }) }) })]
|
|
406
|
-
});
|
|
407
|
-
};
|
|
408
|
-
B.displayName = "BsyTabSelect";
|
|
409
|
-
//#endregion
|
|
410
|
-
export { S as i, I as n, F as r, B as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/components/Calendar/subcomponents/DayView/__tests__/CalendarDay.dayFilter.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/components/Calendar/subcomponents/EventCard/__tests__/EventCard.tooltip.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/components/Gantt/GanttChart/hooks/__tests__/useGanttDrag.clippedQuarterMonth.test.d.ts
DELETED
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/components/Gantt/GanttChart/hooks/__tests__/useTimelineViewportController.test.d.ts
DELETED
|
File without changes
|
package/dist/components/Gantt/GanttChart/utils/__tests__/dateRangeNormalizer.subday.test.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|