@amateescu/portal-ui-components 0.0.35-beta0 → 0.0.37
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/README.md +113 -0
- package/dist/{Button-DG4uye8X.js → Button-BM72-1G6.js} +107 -106
- package/dist/ButtonBase-D6nf3ymf.js +990 -0
- package/dist/{CircularProgress-DpvktFBW.js → CircularProgress-BlQFR6DW.js} +107 -80
- package/dist/Clear-BauR3cPE.js +8 -0
- package/dist/DefaultPropsProvider-BtPfTrMq.js +3449 -0
- package/dist/UserInfoDropdown-rBF0pwlq.js +23 -0
- package/dist/assets/KpiCard.css +1 -1
- package/dist/assets/PassportConfirmationModal.css +1 -0
- package/dist/assets/PassportErrorModal.css +1 -0
- package/dist/assets/PassportKpiCard.css +1 -0
- package/dist/assets/PassportTabHeader.css +1 -0
- package/dist/assets/index.css +1 -0
- package/dist/components/ConfirmationModal/ConfirmationModal.d.ts +2 -1
- package/dist/components/ConfirmationModal/ConfirmationModal.d.ts.map +1 -0
- package/dist/components/ConfirmationModal/ConfirmationModal.js +10 -2
- package/dist/components/ConfirmationModal/ConfirmationModal.stories.d.ts +1 -0
- package/dist/components/ConfirmationModal/ConfirmationModal.stories.d.ts.map +1 -0
- package/dist/components/ConfirmationModal/ConfirmationModal.types.d.ts +1 -0
- package/dist/components/ConfirmationModal/ConfirmationModal.types.d.ts.map +1 -0
- package/dist/components/DebouncedPassportInput/DebouncedPassportInput.d.ts +3 -0
- package/dist/components/DebouncedPassportInput/DebouncedPassportInput.d.ts.map +1 -0
- package/dist/components/DebouncedPassportInput/DebouncedPassportInput.js +31 -0
- package/dist/components/DebouncedPassportInput/DebouncedPassportInput.stories.d.ts +23 -0
- package/dist/components/DebouncedPassportInput/DebouncedPassportInput.stories.d.ts.map +1 -0
- package/dist/components/DebouncedPassportInput/DebouncedPassportInput.types.d.ts +8 -0
- package/dist/components/DebouncedPassportInput/DebouncedPassportInput.types.d.ts.map +1 -0
- package/dist/components/ErrorModal/ErrorModal.d.ts +2 -1
- package/dist/components/ErrorModal/ErrorModal.d.ts.map +1 -0
- package/dist/components/ErrorModal/ErrorModal.js +11 -5
- package/dist/components/ErrorModal/ErrorModal.stories.d.ts +1 -0
- package/dist/components/ErrorModal/ErrorModal.stories.d.ts.map +1 -0
- package/dist/components/ErrorModal/ErrorModal.types.d.ts +1 -0
- package/dist/components/ErrorModal/ErrorModal.types.d.ts.map +1 -0
- package/dist/components/InfoModal/InfoModal.d.ts +2 -1
- package/dist/components/InfoModal/InfoModal.d.ts.map +1 -0
- package/dist/components/InfoModal/InfoModal.js +15 -3
- package/dist/components/InfoModal/InfoModal.stories.d.ts +1 -0
- package/dist/components/InfoModal/InfoModal.stories.d.ts.map +1 -0
- package/dist/components/InfoModal/InfoModal.types.d.ts +1 -0
- package/dist/components/InfoModal/InfoModal.types.d.ts.map +1 -0
- package/dist/components/KpiCard/KpiCard.d.ts +1 -0
- package/dist/components/KpiCard/KpiCard.d.ts.map +1 -0
- package/dist/components/KpiCard/KpiCard.js +29 -2434
- package/dist/components/KpiCard/KpiCard.stories.d.ts +1 -0
- package/dist/components/KpiCard/KpiCard.stories.d.ts.map +1 -0
- package/dist/components/KpiCard/KpiCard.types.d.ts +1 -0
- package/dist/components/KpiCard/KpiCard.types.d.ts.map +1 -0
- package/dist/components/LoadingAnimation/LoadingAnimation.d.ts +1 -0
- package/dist/components/LoadingAnimation/LoadingAnimation.d.ts.map +1 -0
- package/dist/components/LoadingAnimation/LoadingAnimation.js +66 -6
- package/dist/components/LoadingAnimation/LoadingAnimation.stories.d.ts +1 -0
- package/dist/components/LoadingAnimation/LoadingAnimation.stories.d.ts.map +1 -0
- package/dist/components/Login/Login.d.ts +2 -1
- package/dist/components/Login/Login.d.ts.map +1 -0
- package/dist/components/Login/Login.js +43 -8885
- package/dist/components/Login/Login.stories.d.ts +3 -2
- package/dist/components/Login/Login.stories.d.ts.map +1 -0
- package/dist/components/Login/Login.types.d.ts +1 -0
- package/dist/components/Login/Login.types.d.ts.map +1 -0
- package/dist/components/PassportAutocomplete/PassportAutocomplete.d.ts +3 -0
- package/dist/components/PassportAutocomplete/PassportAutocomplete.d.ts.map +1 -0
- package/dist/components/PassportAutocomplete/PassportAutocomplete.js +41 -0
- package/dist/components/PassportAutocomplete/PassportAutocomplete.stories.d.ts +22 -0
- package/dist/components/PassportAutocomplete/PassportAutocomplete.stories.d.ts.map +1 -0
- package/dist/components/PassportAutocomplete/PassportAutocomplete.types.d.ts +14 -0
- package/dist/components/PassportAutocomplete/PassportAutocomplete.types.d.ts.map +1 -0
- package/dist/components/PassportButton/PassportButton.d.ts +4 -0
- package/dist/components/PassportButton/PassportButton.d.ts.map +1 -0
- package/dist/components/{CustomButton/CustomButton.js → PassportButton/PassportButton.js} +10 -6
- package/dist/components/{CustomButton/CustomButton.stories.d.ts → PassportButton/PassportButton.stories.d.ts} +2 -1
- package/dist/components/PassportButton/PassportButton.stories.d.ts.map +1 -0
- package/dist/components/PassportButton/PassportButton.types.d.ts +9 -0
- package/dist/components/PassportButton/PassportButton.types.d.ts.map +1 -0
- package/dist/components/PassportConfirmationModal/PassportConfirmationModal.d.ts +9 -0
- package/dist/components/PassportConfirmationModal/PassportConfirmationModal.d.ts.map +1 -0
- package/dist/components/PassportConfirmationModal/PassportConfirmationModal.js +108 -0
- package/dist/components/{KpiWrapper/KpiWrapper.stories.d.ts → PassportConfirmationModal/PassportConfirmationModal.stories.d.ts} +5 -8
- package/dist/components/PassportConfirmationModal/PassportConfirmationModal.stories.d.ts.map +1 -0
- package/dist/components/PassportDatePicker/PassportDatePicker.d.ts +3 -0
- package/dist/components/PassportDatePicker/PassportDatePicker.d.ts.map +1 -0
- package/dist/components/PassportDatePicker/PassportDatePicker.js +1514 -0
- package/dist/components/PassportDatePicker/PassportDatePicker.stories.d.ts +25 -0
- package/dist/components/PassportDatePicker/PassportDatePicker.stories.d.ts.map +1 -0
- package/dist/components/PassportDatePicker/PassportDatePicker.types.d.ts +15 -0
- package/dist/components/PassportDatePicker/PassportDatePicker.types.d.ts.map +1 -0
- package/dist/components/PassportDateTimePicker/PassportDateTimePicker.d.ts +3 -0
- package/dist/components/PassportDateTimePicker/PassportDateTimePicker.d.ts.map +1 -0
- package/dist/components/PassportDateTimePicker/PassportDateTimePicker.js +5419 -0
- package/dist/components/PassportDateTimePicker/PassportDateTimePicker.stories.d.ts +30 -0
- package/dist/components/PassportDateTimePicker/PassportDateTimePicker.stories.d.ts.map +1 -0
- package/dist/components/PassportDateTimePicker/PassportDateTimePicker.types.d.ts +16 -0
- package/dist/components/PassportDateTimePicker/PassportDateTimePicker.types.d.ts.map +1 -0
- package/dist/components/PassportDateTimePicker/PassportDateTimePicker.types.js +1 -0
- package/dist/components/PassportDropdown/PassportDropdown.d.ts +3 -0
- package/dist/components/PassportDropdown/PassportDropdown.d.ts.map +1 -0
- package/dist/components/PassportDropdown/PassportDropdown.js +37 -0
- package/dist/components/PassportDropdown/PassportDropdown.stories.d.ts +25 -0
- package/dist/components/PassportDropdown/PassportDropdown.stories.d.ts.map +1 -0
- package/dist/components/PassportDropdown/PassportDropdown.types.d.ts +14 -0
- package/dist/components/PassportDropdown/PassportDropdown.types.d.ts.map +1 -0
- package/dist/components/PassportDropdown/PassportDropdown.types.js +1 -0
- package/dist/components/PassportErrorModal/PassportErrorModal.d.ts +8 -0
- package/dist/components/PassportErrorModal/PassportErrorModal.d.ts.map +1 -0
- package/dist/components/PassportErrorModal/PassportErrorModal.js +68 -0
- package/dist/components/PassportErrorModal/PassportErrorModal.stories.d.ts +19 -0
- package/dist/components/PassportErrorModal/PassportErrorModal.stories.d.ts.map +1 -0
- package/dist/components/PassportFooter/PassportFooter.d.ts +3 -0
- package/dist/components/PassportFooter/PassportFooter.d.ts.map +1 -0
- package/dist/components/PassportFooter/PassportFooter.js +46 -0
- package/dist/components/{CustomFooter/CustomFooter.stories.d.ts → PassportFooter/PassportFooter.stories.d.ts} +1 -0
- package/dist/components/PassportFooter/PassportFooter.stories.d.ts.map +1 -0
- package/dist/components/{CustomFooter/CustomFooter.types.d.ts → PassportFooter/PassportFooter.types.d.ts} +3 -2
- package/dist/components/PassportFooter/PassportFooter.types.d.ts.map +1 -0
- package/dist/components/PassportFooter/PassportFooter.types.js +1 -0
- package/dist/components/PassportInput/PassportInput.d.ts +3 -0
- package/dist/components/PassportInput/PassportInput.d.ts.map +1 -0
- package/dist/components/PassportInput/PassportInput.js +51 -0
- package/dist/components/PassportInput/PassportInput.stories.d.ts +24 -0
- package/dist/components/PassportInput/PassportInput.stories.d.ts.map +1 -0
- package/dist/components/PassportInput/PassportInput.types.d.ts +9 -0
- package/dist/components/PassportInput/PassportInput.types.d.ts.map +1 -0
- package/dist/components/PassportInput/PassportInput.types.js +1 -0
- package/dist/components/PassportKpiCard/PassportKpiCard.d.ts +3 -0
- package/dist/components/PassportKpiCard/PassportKpiCard.d.ts.map +1 -0
- package/dist/components/PassportKpiCard/PassportKpiCard.js +43 -0
- package/dist/components/PassportKpiCard/PassportKpiCard.stories.d.ts +21 -0
- package/dist/components/PassportKpiCard/PassportKpiCard.stories.d.ts.map +1 -0
- package/dist/components/PassportKpiCard/PassportKpiCard.types.d.ts +11 -0
- package/dist/components/PassportKpiCard/PassportKpiCard.types.d.ts.map +1 -0
- package/dist/components/PassportKpiCard/PassportKpiCard.types.js +1 -0
- package/dist/components/PassportKpiWrapper/PassportKpiWrapper.d.ts +3 -0
- package/dist/components/PassportKpiWrapper/PassportKpiWrapper.d.ts.map +1 -0
- package/dist/components/PassportKpiWrapper/PassportKpiWrapper.js +22 -0
- package/dist/components/PassportKpiWrapper/PassportKpiWrapper.stories.d.ts +23 -0
- package/dist/components/PassportKpiWrapper/PassportKpiWrapper.stories.d.ts.map +1 -0
- package/dist/components/{KpiWrapper/KpiWrapper.types.d.ts → PassportKpiWrapper/PassportKpiWrapper.types.d.ts} +2 -1
- package/dist/components/PassportKpiWrapper/PassportKpiWrapper.types.d.ts.map +1 -0
- package/dist/components/PassportKpiWrapper/PassportKpiWrapper.types.js +1 -0
- package/dist/components/PassportMultiSelect/PassportMultiSelect.d.ts +3 -0
- package/dist/components/PassportMultiSelect/PassportMultiSelect.d.ts.map +1 -0
- package/dist/components/PassportMultiSelect/PassportMultiSelect.js +72 -0
- package/dist/components/PassportMultiSelect/PassportMultiSelect.stories.d.ts +24 -0
- package/dist/components/PassportMultiSelect/PassportMultiSelect.stories.d.ts.map +1 -0
- package/dist/components/PassportMultiSelect/PassportMultiSelect.types.d.ts +12 -0
- package/dist/components/PassportMultiSelect/PassportMultiSelect.types.d.ts.map +1 -0
- package/dist/components/PassportMultiSelect/PassportMultiSelect.types.js +1 -0
- package/dist/components/PassportPagination/PassportPagination.d.ts +3 -0
- package/dist/components/PassportPagination/PassportPagination.d.ts.map +1 -0
- package/dist/components/{CustomPagination/CustomPagination.js → PassportPagination/PassportPagination.js} +215 -218
- package/dist/components/{CustomPagination/CustomPagination.stories.d.ts → PassportPagination/PassportPagination.stories.d.ts} +3 -2
- package/dist/components/PassportPagination/PassportPagination.stories.d.ts.map +1 -0
- package/dist/components/{CustomPagination/CustomPagination.types.d.ts → PassportPagination/PassportPagination.types.d.ts} +2 -1
- package/dist/components/PassportPagination/PassportPagination.types.d.ts.map +1 -0
- package/dist/components/PassportPagination/PassportPagination.types.js +1 -0
- package/dist/components/PassportTabHeader/PassportTabHeader.d.ts +7 -0
- package/dist/components/PassportTabHeader/PassportTabHeader.d.ts.map +1 -0
- package/dist/components/PassportTabHeader/PassportTabHeader.js +14 -0
- package/dist/components/PassportTabHeader/PassportTabHeader.stories.d.ts +21 -0
- package/dist/components/PassportTabHeader/PassportTabHeader.stories.d.ts.map +1 -0
- package/dist/components/PassportTextField/PassportTextField.d.ts +3 -0
- package/dist/components/PassportTextField/PassportTextField.d.ts.map +1 -0
- package/dist/components/PassportTextField/PassportTextField.js +23 -0
- package/dist/components/PassportTextField/PassportTextField.stories.d.ts +22 -0
- package/dist/components/PassportTextField/PassportTextField.stories.d.ts.map +1 -0
- package/dist/components/SideMenu/SideMenu.d.ts +1 -0
- package/dist/components/SideMenu/SideMenu.d.ts.map +1 -0
- package/dist/components/SideMenu/SideMenu.js +89 -41
- package/dist/components/SideMenu/SideMenu.stories.d.ts +1 -0
- package/dist/components/SideMenu/SideMenu.stories.d.ts.map +1 -0
- package/dist/components/SideMenu/SideMenu.types.d.ts +1 -0
- package/dist/components/SideMenu/SideMenu.types.d.ts.map +1 -0
- package/dist/components/TotalDataGrid/TotalDataGrid.d.ts +1 -0
- package/dist/components/TotalDataGrid/TotalDataGrid.d.ts.map +1 -0
- package/dist/components/TotalDataGrid/TotalDataGrid.js +3 -3
- package/dist/components/TotalDataGrid/TotalDataGrid.stories.d.ts +1 -0
- package/dist/components/TotalDataGrid/TotalDataGrid.stories.d.ts.map +1 -0
- package/dist/components/TotalDataGrid/TotalDataGrid.types.d.ts +1 -0
- package/dist/components/TotalDataGrid/TotalDataGrid.types.d.ts.map +1 -0
- package/dist/components/UserInfoDropdown/UserInfoDropdown.d.ts +1 -0
- package/dist/components/UserInfoDropdown/UserInfoDropdown.d.ts.map +1 -0
- package/dist/components/UserInfoDropdown/UserInfoDropdown.js +3 -2
- package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.d.ts +1 -0
- package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.d.ts.map +1 -0
- package/dist/components/UserInfoDropdown/UserInfoDropdown.types.d.ts +1 -0
- package/dist/components/UserInfoDropdown/UserInfoDropdown.types.d.ts.map +1 -0
- package/dist/components/index.d.ts +17 -4
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +51 -28
- package/dist/createSimplePaletteValueFilter-Bz8RuRaa.js +23 -0
- package/dist/{createSvgIcon-DNSRtm3a.js → createSvgIcon-B-eIQ7rU.js} +118 -124
- package/dist/extendSxProp-QNe1Nf_s.js +51 -0
- package/dist/main.d.ts +1 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +67 -44
- package/dist/mock.d.ts +1 -0
- package/dist/mock.d.ts.map +1 -0
- package/dist/portal-utils/chunkArray.d.ts +1 -0
- package/dist/portal-utils/chunkArray.d.ts.map +1 -0
- package/dist/portal-utils/cn.d.ts +1 -0
- package/dist/portal-utils/cn.d.ts.map +1 -0
- package/dist/portal-utils/formatters.d.ts +1 -0
- package/dist/portal-utils/formatters.d.ts.map +1 -0
- package/dist/portal-utils/formatters.js +291 -334
- package/dist/portal-utils/index.d.ts +2 -1
- package/dist/portal-utils/index.d.ts.map +1 -0
- package/dist/portal-utils/loggerService.d.ts +1 -0
- package/dist/portal-utils/loggerService.d.ts.map +1 -0
- package/dist/portal-utils/pageCount.d.ts +1 -0
- package/dist/portal-utils/pageCount.d.ts.map +1 -0
- package/dist/types/BusinessDayRange.d.ts +1 -0
- package/dist/types/BusinessDayRange.d.ts.map +1 -0
- package/dist/types/Column.d.ts +1 -0
- package/dist/types/Column.d.ts.map +1 -0
- package/dist/types/CultureStore.d.ts +1 -0
- package/dist/types/CultureStore.d.ts.map +1 -0
- package/dist/types/CustomSvg.d.ts +1 -0
- package/dist/types/CustomSvg.d.ts.map +1 -0
- package/dist/types/LoginRequest.d.ts +1 -0
- package/dist/types/LoginRequest.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/useMobilePicker-hk2kq6ev.js +19662 -0
- package/dist/useSlot-CXnK24LX.js +189 -0
- package/package.json +39 -38
- package/dist/Box-C-zPAMZN.js +0 -102
- package/dist/ButtonBase-DrxMtoTW.js +0 -966
- package/dist/EllipsisOutlined-DfCu6q_b.js +0 -2467
- package/dist/InvencoGVR-qnTq-d6S.js +0 -5
- package/dist/PurePanel-DvQTygSo.js +0 -2209
- package/dist/Skeleton-Bh0A9xju.js +0 -565
- package/dist/UserInfoDropdown-CWTcdnqL.js +0 -3755
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/assets/globals.css +0 -1
- package/dist/components/ConfirmationModal/ConfirmationModal.stories.js +0 -36
- package/dist/components/CustomButton/CustomButton.d.ts +0 -3
- package/dist/components/CustomButton/CustomButton.stories.js +0 -42
- package/dist/components/CustomButton/CustomeButton.types.d.ts +0 -8
- package/dist/components/CustomFooter/CustomFooter.d.ts +0 -2
- package/dist/components/CustomFooter/CustomFooter.js +0 -32
- package/dist/components/CustomFooter/CustomFooter.stories.js +0 -40
- package/dist/components/CustomPagination/CustomPagination.d.ts +0 -3
- package/dist/components/CustomPagination/CustomPagination.stories.js +0 -25
- package/dist/components/ErrorModal/ErrorModal.stories.js +0 -33
- package/dist/components/InfoModal/InfoModal.stories.js +0 -33
- package/dist/components/KpiCard/KpiCard.stories.js +0 -26
- package/dist/components/KpiWrapper/KpiWrapper.d.ts +0 -2
- package/dist/components/KpiWrapper/KpiWrapper.js +0 -11
- package/dist/components/KpiWrapper/KpiWrapper.stories.js +0 -56
- package/dist/components/LoadingAnimation/LoadingAnimation.stories.js +0 -14
- package/dist/components/Login/Login.stories.js +0 -24212
- package/dist/components/SideMenu/SideMenu.stories.js +0 -81
- package/dist/components/TotalDataGrid/TotalDataGrid.stories.js +0 -23
- package/dist/components/UserInfoDropdown/UserInfoDropdown.stories.js +0 -36
- package/dist/context-dCWAMvX5.js +0 -7320
- package/dist/createSimplePaletteValueFilter-CwLqlaaZ.js +0 -3457
- package/dist/index-B00P9-H3.js +0 -1681
- package/dist/index-BBBjHj3B.js +0 -411
- package/dist/objectWithoutPropertiesLoose-BTau6TOn.js +0 -33
- package/dist/useSlot-B4sbbhYz.js +0 -188
- /package/dist/assets/{CustomFooter.css → PassportFooter.css} +0 -0
- /package/dist/assets/{KpiWrapper.css → PassportKpiWrapper.css} +0 -0
- /package/dist/components/{CustomButton/CustomeButton.types.js → DebouncedPassportInput/DebouncedPassportInput.types.js} +0 -0
- /package/dist/components/{CustomFooter/CustomFooter.types.js → PassportAutocomplete/PassportAutocomplete.types.js} +0 -0
- /package/dist/components/{CustomPagination/CustomPagination.types.js → PassportButton/PassportButton.types.js} +0 -0
- /package/dist/components/{KpiWrapper/KpiWrapper.types.js → PassportDatePicker/PassportDatePicker.types.js} +0 -0
|
@@ -1,2209 +0,0 @@
|
|
|
1
|
-
import * as m from "react";
|
|
2
|
-
import c, { useContext as _e, useRef as L, forwardRef as me, useState as je, useEffect as le, useMemo as oe, Children as eo, useLayoutEffect as to } from "react";
|
|
3
|
-
import { I as oo, U as We, v as Ge, e as M, Z as pt, $ as se, h as vt, Y as ro, a0 as no, a1 as ao, w as ce, q as bt, c as H, a2 as Ct, a as k, k as Fe, a3 as io, a4 as lo, a5 as so, g as ht, m as re, E as yt, x as co, l as uo, a6 as mo, a7 as go, a8 as St, a9 as xt, p as Et, aa as Ot, _ as Q, i as Te, s as $t, H as fo, K as T, ab as Re, u as ue, ac as po, B as vo, ad as bo, T as Co, b as ho, ae as yo, n as So, o as xo, af as Eo, C as Oo } from "./context-dCWAMvX5.js";
|
|
4
|
-
import { R as It } from "./index-BBBjHj3B.js";
|
|
5
|
-
import { _ as ie } from "./objectWithoutPropertiesLoose-BTau6TOn.js";
|
|
6
|
-
const Ve = ["blue", "purple", "cyan", "green", "magenta", "pink", "red", "orange", "yellow", "volcano", "geekblue", "lime", "gold"];
|
|
7
|
-
function $o(e) {
|
|
8
|
-
return e && /* @__PURE__ */ c.isValidElement(e) && e.type === c.Fragment;
|
|
9
|
-
}
|
|
10
|
-
const Io = (e, t, o) => /* @__PURE__ */ c.isValidElement(e) ? /* @__PURE__ */ c.cloneElement(e, typeof o == "function" ? o(e.props || {}) : o) : t;
|
|
11
|
-
function Rt(e, t) {
|
|
12
|
-
return Io(e, e, t);
|
|
13
|
-
}
|
|
14
|
-
var Ro = { icon: { tag: "svg", attrs: { viewBox: "0 0 1024 1024", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z" } }] }, name: "loading", theme: "outlined" }, wo = function(t, o) {
|
|
15
|
-
return /* @__PURE__ */ m.createElement(oo, ie({}, t, {
|
|
16
|
-
ref: o,
|
|
17
|
-
icon: Ro
|
|
18
|
-
}));
|
|
19
|
-
}, wt = /* @__PURE__ */ m.forwardRef(wo);
|
|
20
|
-
process.env.NODE_ENV !== "production" && (wt.displayName = "LoadingOutlined");
|
|
21
|
-
const Bt = /* @__PURE__ */ c.createContext(void 0);
|
|
22
|
-
process.env.NODE_ENV !== "production" && (Bt.displayName = "zIndexContext");
|
|
23
|
-
const V = 100, Bo = 10, No = V * Bo, Ho = No + V, Nt = {
|
|
24
|
-
Modal: V,
|
|
25
|
-
Drawer: V,
|
|
26
|
-
Popover: V,
|
|
27
|
-
Popconfirm: V,
|
|
28
|
-
Tooltip: V,
|
|
29
|
-
Tour: V,
|
|
30
|
-
FloatButton: V
|
|
31
|
-
}, zo = {
|
|
32
|
-
SelectLike: 50,
|
|
33
|
-
Dropdown: 50,
|
|
34
|
-
DatePicker: 50,
|
|
35
|
-
Menu: 50,
|
|
36
|
-
ImagePreview: 1
|
|
37
|
-
};
|
|
38
|
-
function Po(e) {
|
|
39
|
-
return e in Nt;
|
|
40
|
-
}
|
|
41
|
-
const xn = (e, t) => {
|
|
42
|
-
const [, o] = We(), r = c.useContext(Bt), n = Po(e);
|
|
43
|
-
let a;
|
|
44
|
-
if (t !== void 0)
|
|
45
|
-
a = [t, t];
|
|
46
|
-
else {
|
|
47
|
-
let i = r ?? 0;
|
|
48
|
-
n ? i += // Use preset token zIndex by default but not stack when has parent container
|
|
49
|
-
(r ? 0 : o.zIndexPopupBase) + // Container offset
|
|
50
|
-
Nt[e] : i += zo[e], a = [r === void 0 ? t : i, i];
|
|
51
|
-
}
|
|
52
|
-
if (process.env.NODE_ENV !== "production") {
|
|
53
|
-
const i = Ge(e), l = o.zIndexPopupBase + Ho, s = a[0] || 0;
|
|
54
|
-
process.env.NODE_ENV !== "production" && i(t !== void 0 || s <= l, "usage", "`zIndex` is over design token `zIndexPopupBase` too much. It may cause unexpected override.");
|
|
55
|
-
}
|
|
56
|
-
return a;
|
|
57
|
-
};
|
|
58
|
-
var ne = M({}, It), _o = ne.version, we = ne.render, jo = ne.unmountComponentAtNode, ge;
|
|
59
|
-
try {
|
|
60
|
-
var To = Number((_o || "").split(".")[0]);
|
|
61
|
-
To >= 18 && (ge = ne.createRoot);
|
|
62
|
-
} catch {
|
|
63
|
-
}
|
|
64
|
-
function st(e) {
|
|
65
|
-
var t = ne.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
66
|
-
t && vt(t) === "object" && (t.usingClientEntryPoint = e);
|
|
67
|
-
}
|
|
68
|
-
var de = "__rc_react_root__";
|
|
69
|
-
function Do(e, t) {
|
|
70
|
-
st(!0);
|
|
71
|
-
var o = t[de] || ge(t);
|
|
72
|
-
st(!1), o.render(e), t[de] = o;
|
|
73
|
-
}
|
|
74
|
-
function Lo(e, t) {
|
|
75
|
-
we == null || we(e, t);
|
|
76
|
-
}
|
|
77
|
-
function Ao(e, t) {
|
|
78
|
-
if (ge) {
|
|
79
|
-
Do(e, t);
|
|
80
|
-
return;
|
|
81
|
-
}
|
|
82
|
-
Lo(e, t);
|
|
83
|
-
}
|
|
84
|
-
function Mo(e) {
|
|
85
|
-
return De.apply(this, arguments);
|
|
86
|
-
}
|
|
87
|
-
function De() {
|
|
88
|
-
return De = pt(/* @__PURE__ */ se().mark(function e(t) {
|
|
89
|
-
return se().wrap(function(r) {
|
|
90
|
-
for (; ; ) switch (r.prev = r.next) {
|
|
91
|
-
case 0:
|
|
92
|
-
return r.abrupt("return", Promise.resolve().then(function() {
|
|
93
|
-
var n;
|
|
94
|
-
(n = t[de]) === null || n === void 0 || n.unmount(), delete t[de];
|
|
95
|
-
}));
|
|
96
|
-
case 1:
|
|
97
|
-
case "end":
|
|
98
|
-
return r.stop();
|
|
99
|
-
}
|
|
100
|
-
}, e);
|
|
101
|
-
})), De.apply(this, arguments);
|
|
102
|
-
}
|
|
103
|
-
function Wo(e) {
|
|
104
|
-
jo(e);
|
|
105
|
-
}
|
|
106
|
-
function Go(e) {
|
|
107
|
-
return Le.apply(this, arguments);
|
|
108
|
-
}
|
|
109
|
-
function Le() {
|
|
110
|
-
return Le = pt(/* @__PURE__ */ se().mark(function e(t) {
|
|
111
|
-
return se().wrap(function(r) {
|
|
112
|
-
for (; ; ) switch (r.prev = r.next) {
|
|
113
|
-
case 0:
|
|
114
|
-
if (ge === void 0) {
|
|
115
|
-
r.next = 2;
|
|
116
|
-
break;
|
|
117
|
-
}
|
|
118
|
-
return r.abrupt("return", Mo(t));
|
|
119
|
-
case 2:
|
|
120
|
-
Wo(t);
|
|
121
|
-
case 3:
|
|
122
|
-
case "end":
|
|
123
|
-
return r.stop();
|
|
124
|
-
}
|
|
125
|
-
}, e);
|
|
126
|
-
})), Le.apply(this, arguments);
|
|
127
|
-
}
|
|
128
|
-
const Fo = (e, t) => {
|
|
129
|
-
if (process.env.NODE_ENV !== "production") {
|
|
130
|
-
const o = parseInt(m.version.split(".")[0], 10), r = Object.keys(It);
|
|
131
|
-
process.env.NODE_ENV !== "production" && ro(o < 19 || r.includes("createRoot"), "compatible", "antd v5 support React is 16 ~ 18. see https://u.ant.design/v5-for-19 for compatible.");
|
|
132
|
-
}
|
|
133
|
-
return Ao(e, t), () => Go(t);
|
|
134
|
-
};
|
|
135
|
-
let Vo = Fo;
|
|
136
|
-
function Uo(e) {
|
|
137
|
-
return Vo;
|
|
138
|
-
}
|
|
139
|
-
const qo = (e) => {
|
|
140
|
-
const {
|
|
141
|
-
componentCls: t,
|
|
142
|
-
colorPrimary: o
|
|
143
|
-
} = e;
|
|
144
|
-
return {
|
|
145
|
-
[t]: {
|
|
146
|
-
position: "absolute",
|
|
147
|
-
background: "transparent",
|
|
148
|
-
pointerEvents: "none",
|
|
149
|
-
boxSizing: "border-box",
|
|
150
|
-
color: `var(--wave-color, ${o})`,
|
|
151
|
-
boxShadow: "0 0 0 0 currentcolor",
|
|
152
|
-
opacity: 0.2,
|
|
153
|
-
// =================== Motion ===================
|
|
154
|
-
"&.wave-motion-appear": {
|
|
155
|
-
transition: [`box-shadow 0.4s ${e.motionEaseOutCirc}`, `opacity 2s ${e.motionEaseOutCirc}`].join(","),
|
|
156
|
-
"&-active": {
|
|
157
|
-
boxShadow: "0 0 0 6px currentcolor",
|
|
158
|
-
opacity: 0
|
|
159
|
-
},
|
|
160
|
-
"&.wave-quick": {
|
|
161
|
-
transition: [`box-shadow ${e.motionDurationSlow} ${e.motionEaseInOut}`, `opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`].join(",")
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
};
|
|
166
|
-
}, Xo = no("Wave", (e) => [qo(e)]), Ht = `${ao}-wave-target`;
|
|
167
|
-
function Be(e) {
|
|
168
|
-
return e && e !== "#fff" && e !== "#ffffff" && e !== "rgb(255, 255, 255)" && e !== "rgba(255, 255, 255, 1)" && !/rgba\((?:\d*, ){3}0\)/.test(e) && // any transparent rgba color
|
|
169
|
-
e !== "transparent";
|
|
170
|
-
}
|
|
171
|
-
function Zo(e) {
|
|
172
|
-
const {
|
|
173
|
-
borderTopColor: t,
|
|
174
|
-
borderColor: o,
|
|
175
|
-
backgroundColor: r
|
|
176
|
-
} = getComputedStyle(e);
|
|
177
|
-
return Be(t) ? t : Be(o) ? o : Be(r) ? r : null;
|
|
178
|
-
}
|
|
179
|
-
function Ne(e) {
|
|
180
|
-
return Number.isNaN(e) ? 0 : e;
|
|
181
|
-
}
|
|
182
|
-
const Yo = (e) => {
|
|
183
|
-
const {
|
|
184
|
-
className: t,
|
|
185
|
-
target: o,
|
|
186
|
-
component: r,
|
|
187
|
-
registerUnmount: n
|
|
188
|
-
} = e, a = m.useRef(null), i = m.useRef(null);
|
|
189
|
-
m.useEffect(() => {
|
|
190
|
-
i.current = n();
|
|
191
|
-
}, []);
|
|
192
|
-
const [l, s] = m.useState(null), [u, d] = m.useState([]), [g, p] = m.useState(0), [C, h] = m.useState(0), [x, f] = m.useState(0), [b, B] = m.useState(0), [E, v] = m.useState(!1), y = {
|
|
193
|
-
left: g,
|
|
194
|
-
top: C,
|
|
195
|
-
width: x,
|
|
196
|
-
height: b,
|
|
197
|
-
borderRadius: u.map((S) => `${S}px`).join(" ")
|
|
198
|
-
};
|
|
199
|
-
l && (y["--wave-color"] = l);
|
|
200
|
-
function N() {
|
|
201
|
-
const S = getComputedStyle(o);
|
|
202
|
-
s(Zo(o));
|
|
203
|
-
const I = S.position === "static", {
|
|
204
|
-
borderLeftWidth: P,
|
|
205
|
-
borderTopWidth: _
|
|
206
|
-
} = S;
|
|
207
|
-
p(I ? o.offsetLeft : Ne(-parseFloat(P))), h(I ? o.offsetTop : Ne(-parseFloat(_))), f(o.offsetWidth), B(o.offsetHeight);
|
|
208
|
-
const {
|
|
209
|
-
borderTopLeftRadius: O,
|
|
210
|
-
borderTopRightRadius: G,
|
|
211
|
-
borderBottomLeftRadius: z,
|
|
212
|
-
borderBottomRightRadius: q
|
|
213
|
-
} = S;
|
|
214
|
-
d([O, G, q, z].map((A) => Ne(parseFloat(A))));
|
|
215
|
-
}
|
|
216
|
-
if (m.useEffect(() => {
|
|
217
|
-
if (o) {
|
|
218
|
-
const S = ce(() => {
|
|
219
|
-
N(), v(!0);
|
|
220
|
-
});
|
|
221
|
-
let I;
|
|
222
|
-
return typeof ResizeObserver < "u" && (I = new ResizeObserver(N), I.observe(o)), () => {
|
|
223
|
-
ce.cancel(S), I == null || I.disconnect();
|
|
224
|
-
};
|
|
225
|
-
}
|
|
226
|
-
}, []), !E)
|
|
227
|
-
return null;
|
|
228
|
-
const j = (r === "Checkbox" || r === "Radio") && (o == null ? void 0 : o.classList.contains(Ht));
|
|
229
|
-
return /* @__PURE__ */ m.createElement(bt, {
|
|
230
|
-
visible: !0,
|
|
231
|
-
motionAppear: !0,
|
|
232
|
-
motionName: "wave-motion",
|
|
233
|
-
motionDeadline: 5e3,
|
|
234
|
-
onAppearEnd: (S, I) => {
|
|
235
|
-
var P, _;
|
|
236
|
-
if (I.deadline || I.propertyName === "opacity") {
|
|
237
|
-
const O = (P = a.current) === null || P === void 0 ? void 0 : P.parentElement;
|
|
238
|
-
(_ = i.current) === null || _ === void 0 || _.call(i).then(() => {
|
|
239
|
-
O == null || O.remove();
|
|
240
|
-
});
|
|
241
|
-
}
|
|
242
|
-
return !1;
|
|
243
|
-
}
|
|
244
|
-
}, ({
|
|
245
|
-
className: S
|
|
246
|
-
}, I) => /* @__PURE__ */ m.createElement("div", {
|
|
247
|
-
ref: Ct(a, I),
|
|
248
|
-
className: H(t, S, {
|
|
249
|
-
"wave-quick": j
|
|
250
|
-
}),
|
|
251
|
-
style: y
|
|
252
|
-
}));
|
|
253
|
-
}, Ko = (e, t) => {
|
|
254
|
-
var o;
|
|
255
|
-
const {
|
|
256
|
-
component: r
|
|
257
|
-
} = t;
|
|
258
|
-
if (r === "Checkbox" && !(!((o = e.querySelector("input")) === null || o === void 0) && o.checked))
|
|
259
|
-
return;
|
|
260
|
-
const n = document.createElement("div");
|
|
261
|
-
n.style.position = "absolute", n.style.left = "0px", n.style.top = "0px", e == null || e.insertBefore(n, e == null ? void 0 : e.firstChild);
|
|
262
|
-
const a = Uo();
|
|
263
|
-
let i = null;
|
|
264
|
-
function l() {
|
|
265
|
-
return i;
|
|
266
|
-
}
|
|
267
|
-
i = a(/* @__PURE__ */ m.createElement(Yo, Object.assign({}, t, {
|
|
268
|
-
target: e,
|
|
269
|
-
registerUnmount: l
|
|
270
|
-
})), n);
|
|
271
|
-
}, Jo = (e, t, o) => {
|
|
272
|
-
const {
|
|
273
|
-
wave: r
|
|
274
|
-
} = m.useContext(k), [, n, a] = We(), i = Fe((u) => {
|
|
275
|
-
const d = e.current;
|
|
276
|
-
if (r != null && r.disabled || !d)
|
|
277
|
-
return;
|
|
278
|
-
const g = d.querySelector(`.${Ht}`) || d, {
|
|
279
|
-
showEffect: p
|
|
280
|
-
} = r || {};
|
|
281
|
-
(p || Ko)(g, {
|
|
282
|
-
className: t,
|
|
283
|
-
token: n,
|
|
284
|
-
component: o,
|
|
285
|
-
event: u,
|
|
286
|
-
hashId: a
|
|
287
|
-
});
|
|
288
|
-
}), l = m.useRef(null);
|
|
289
|
-
return (u) => {
|
|
290
|
-
ce.cancel(l.current), l.current = ce(() => {
|
|
291
|
-
i(u);
|
|
292
|
-
});
|
|
293
|
-
};
|
|
294
|
-
}, zt = (e) => {
|
|
295
|
-
const {
|
|
296
|
-
children: t,
|
|
297
|
-
disabled: o,
|
|
298
|
-
component: r
|
|
299
|
-
} = e, {
|
|
300
|
-
getPrefixCls: n
|
|
301
|
-
} = _e(k), a = L(null), i = n("wave"), [, l] = Xo(i), s = Jo(a, H(i, l), r);
|
|
302
|
-
if (c.useEffect(() => {
|
|
303
|
-
const d = a.current;
|
|
304
|
-
if (!d || d.nodeType !== 1 || o)
|
|
305
|
-
return;
|
|
306
|
-
const g = (p) => {
|
|
307
|
-
!so(p.target) || // No need wave
|
|
308
|
-
!d.getAttribute || d.getAttribute("disabled") || d.disabled || d.className.includes("disabled") || d.className.includes("-leave") || s(p);
|
|
309
|
-
};
|
|
310
|
-
return d.addEventListener("click", g, !0), () => {
|
|
311
|
-
d.removeEventListener("click", g, !0);
|
|
312
|
-
};
|
|
313
|
-
}, [o]), !/* @__PURE__ */ c.isValidElement(t))
|
|
314
|
-
return t ?? null;
|
|
315
|
-
const u = io(t) ? Ct(lo(t), a) : a;
|
|
316
|
-
return Rt(t, {
|
|
317
|
-
ref: u
|
|
318
|
-
});
|
|
319
|
-
};
|
|
320
|
-
process.env.NODE_ENV !== "production" && (zt.displayName = "Wave");
|
|
321
|
-
const Qo = (e) => {
|
|
322
|
-
const {
|
|
323
|
-
componentCls: t
|
|
324
|
-
} = e;
|
|
325
|
-
return {
|
|
326
|
-
[t]: {
|
|
327
|
-
"&-block": {
|
|
328
|
-
display: "flex",
|
|
329
|
-
width: "100%"
|
|
330
|
-
},
|
|
331
|
-
"&-vertical": {
|
|
332
|
-
flexDirection: "column"
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
};
|
|
336
|
-
}, ko = (e) => {
|
|
337
|
-
const {
|
|
338
|
-
componentCls: t,
|
|
339
|
-
antCls: o
|
|
340
|
-
} = e;
|
|
341
|
-
return {
|
|
342
|
-
[t]: {
|
|
343
|
-
display: "inline-flex",
|
|
344
|
-
"&-rtl": {
|
|
345
|
-
direction: "rtl"
|
|
346
|
-
},
|
|
347
|
-
"&-vertical": {
|
|
348
|
-
flexDirection: "column"
|
|
349
|
-
},
|
|
350
|
-
"&-align": {
|
|
351
|
-
flexDirection: "column",
|
|
352
|
-
"&-center": {
|
|
353
|
-
alignItems: "center"
|
|
354
|
-
},
|
|
355
|
-
"&-start": {
|
|
356
|
-
alignItems: "flex-start"
|
|
357
|
-
},
|
|
358
|
-
"&-end": {
|
|
359
|
-
alignItems: "flex-end"
|
|
360
|
-
},
|
|
361
|
-
"&-baseline": {
|
|
362
|
-
alignItems: "baseline"
|
|
363
|
-
}
|
|
364
|
-
},
|
|
365
|
-
[`${t}-item:empty`]: {
|
|
366
|
-
display: "none"
|
|
367
|
-
},
|
|
368
|
-
// https://github.com/ant-design/ant-design/issues/47875
|
|
369
|
-
[`${t}-item > ${o}-badge-not-a-wrapper:only-child`]: {
|
|
370
|
-
display: "block"
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
};
|
|
374
|
-
}, er = (e) => {
|
|
375
|
-
const {
|
|
376
|
-
componentCls: t
|
|
377
|
-
} = e;
|
|
378
|
-
return {
|
|
379
|
-
[t]: {
|
|
380
|
-
"&-gap-row-small": {
|
|
381
|
-
rowGap: e.spaceGapSmallSize
|
|
382
|
-
},
|
|
383
|
-
"&-gap-row-middle": {
|
|
384
|
-
rowGap: e.spaceGapMiddleSize
|
|
385
|
-
},
|
|
386
|
-
"&-gap-row-large": {
|
|
387
|
-
rowGap: e.spaceGapLargeSize
|
|
388
|
-
},
|
|
389
|
-
"&-gap-col-small": {
|
|
390
|
-
columnGap: e.spaceGapSmallSize
|
|
391
|
-
},
|
|
392
|
-
"&-gap-col-middle": {
|
|
393
|
-
columnGap: e.spaceGapMiddleSize
|
|
394
|
-
},
|
|
395
|
-
"&-gap-col-large": {
|
|
396
|
-
columnGap: e.spaceGapLargeSize
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
};
|
|
400
|
-
}, tr = ht("Space", (e) => {
|
|
401
|
-
const t = re(e, {
|
|
402
|
-
spaceGapSmallSize: e.paddingXS,
|
|
403
|
-
spaceGapMiddleSize: e.padding,
|
|
404
|
-
spaceGapLargeSize: e.paddingLG
|
|
405
|
-
});
|
|
406
|
-
return [ko(t), er(t), Qo(t)];
|
|
407
|
-
}, () => ({}), {
|
|
408
|
-
// Space component don't apply extra font style
|
|
409
|
-
// https://github.com/ant-design/ant-design/issues/40315
|
|
410
|
-
resetStyle: !1
|
|
411
|
-
});
|
|
412
|
-
var Pt = function(e, t) {
|
|
413
|
-
var o = {};
|
|
414
|
-
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (o[r] = e[r]);
|
|
415
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, r = Object.getOwnPropertySymbols(e); n < r.length; n++)
|
|
416
|
-
t.indexOf(r[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[n]) && (o[r[n]] = e[r[n]]);
|
|
417
|
-
return o;
|
|
418
|
-
};
|
|
419
|
-
const fe = /* @__PURE__ */ m.createContext(null), or = (e, t) => {
|
|
420
|
-
const o = m.useContext(fe), r = m.useMemo(() => {
|
|
421
|
-
if (!o)
|
|
422
|
-
return "";
|
|
423
|
-
const {
|
|
424
|
-
compactDirection: n,
|
|
425
|
-
isFirstItem: a,
|
|
426
|
-
isLastItem: i
|
|
427
|
-
} = o, l = n === "vertical" ? "-vertical-" : "-";
|
|
428
|
-
return H(`${e}-compact${l}item`, {
|
|
429
|
-
[`${e}-compact${l}first-item`]: a,
|
|
430
|
-
[`${e}-compact${l}last-item`]: i,
|
|
431
|
-
[`${e}-compact${l}item-rtl`]: t === "rtl"
|
|
432
|
-
});
|
|
433
|
-
}, [e, t, o]);
|
|
434
|
-
return {
|
|
435
|
-
compactSize: o == null ? void 0 : o.compactSize,
|
|
436
|
-
compactDirection: o == null ? void 0 : o.compactDirection,
|
|
437
|
-
compactItemClassnames: r
|
|
438
|
-
};
|
|
439
|
-
}, rr = (e) => {
|
|
440
|
-
const {
|
|
441
|
-
children: t
|
|
442
|
-
} = e;
|
|
443
|
-
return /* @__PURE__ */ m.createElement(fe.Provider, {
|
|
444
|
-
value: null
|
|
445
|
-
}, t);
|
|
446
|
-
}, nr = (e) => {
|
|
447
|
-
const {
|
|
448
|
-
children: t
|
|
449
|
-
} = e, o = Pt(e, ["children"]);
|
|
450
|
-
return /* @__PURE__ */ m.createElement(fe.Provider, {
|
|
451
|
-
value: m.useMemo(() => o, [o])
|
|
452
|
-
}, t);
|
|
453
|
-
}, En = (e) => {
|
|
454
|
-
const {
|
|
455
|
-
getPrefixCls: t,
|
|
456
|
-
direction: o
|
|
457
|
-
} = m.useContext(k), {
|
|
458
|
-
size: r,
|
|
459
|
-
direction: n,
|
|
460
|
-
block: a,
|
|
461
|
-
prefixCls: i,
|
|
462
|
-
className: l,
|
|
463
|
-
rootClassName: s,
|
|
464
|
-
children: u
|
|
465
|
-
} = e, d = Pt(e, ["size", "direction", "block", "prefixCls", "className", "rootClassName", "children"]), g = yt((E) => r ?? E), p = t("space-compact", i), [C, h] = tr(p), x = H(p, h, {
|
|
466
|
-
[`${p}-rtl`]: o === "rtl",
|
|
467
|
-
[`${p}-block`]: a,
|
|
468
|
-
[`${p}-vertical`]: n === "vertical"
|
|
469
|
-
}, l, s), f = m.useContext(fe), b = co(u), B = m.useMemo(() => b.map((E, v) => {
|
|
470
|
-
const y = (E == null ? void 0 : E.key) || `${p}-item-${v}`;
|
|
471
|
-
return /* @__PURE__ */ m.createElement(nr, {
|
|
472
|
-
key: y,
|
|
473
|
-
compactSize: g,
|
|
474
|
-
compactDirection: n,
|
|
475
|
-
isFirstItem: v === 0 && (!f || (f == null ? void 0 : f.isFirstItem)),
|
|
476
|
-
isLastItem: v === b.length - 1 && (!f || (f == null ? void 0 : f.isLastItem))
|
|
477
|
-
}, E);
|
|
478
|
-
}), [r, b, f]);
|
|
479
|
-
return b.length === 0 ? null : C(/* @__PURE__ */ m.createElement("div", Object.assign({
|
|
480
|
-
className: x
|
|
481
|
-
}, d), B));
|
|
482
|
-
};
|
|
483
|
-
var ar = function(e, t) {
|
|
484
|
-
var o = {};
|
|
485
|
-
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (o[r] = e[r]);
|
|
486
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, r = Object.getOwnPropertySymbols(e); n < r.length; n++)
|
|
487
|
-
t.indexOf(r[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[n]) && (o[r[n]] = e[r[n]]);
|
|
488
|
-
return o;
|
|
489
|
-
};
|
|
490
|
-
const _t = /* @__PURE__ */ m.createContext(void 0), ir = (e) => {
|
|
491
|
-
const {
|
|
492
|
-
getPrefixCls: t,
|
|
493
|
-
direction: o
|
|
494
|
-
} = m.useContext(k), {
|
|
495
|
-
prefixCls: r,
|
|
496
|
-
size: n,
|
|
497
|
-
className: a
|
|
498
|
-
} = e, i = ar(e, ["prefixCls", "size", "className"]), l = t("btn-group", r), [, , s] = We(), u = m.useMemo(() => {
|
|
499
|
-
switch (n) {
|
|
500
|
-
case "large":
|
|
501
|
-
return "lg";
|
|
502
|
-
case "small":
|
|
503
|
-
return "sm";
|
|
504
|
-
default:
|
|
505
|
-
return "";
|
|
506
|
-
}
|
|
507
|
-
}, [n]);
|
|
508
|
-
if (process.env.NODE_ENV !== "production") {
|
|
509
|
-
const g = Ge("Button.Group");
|
|
510
|
-
g.deprecated(!1, "Button.Group", "Space.Compact"), process.env.NODE_ENV !== "production" && g(!n || ["large", "small", "middle"].includes(n), "usage", "Invalid prop `size`.");
|
|
511
|
-
}
|
|
512
|
-
const d = H(l, {
|
|
513
|
-
[`${l}-${u}`]: u,
|
|
514
|
-
[`${l}-rtl`]: o === "rtl"
|
|
515
|
-
}, a, s);
|
|
516
|
-
return /* @__PURE__ */ m.createElement(_t.Provider, {
|
|
517
|
-
value: n
|
|
518
|
-
}, /* @__PURE__ */ m.createElement("div", Object.assign({}, i, {
|
|
519
|
-
className: d
|
|
520
|
-
})));
|
|
521
|
-
}, ct = /^[\u4E00-\u9FA5]{2}$/, Ae = ct.test.bind(ct);
|
|
522
|
-
function On(e) {
|
|
523
|
-
return e === "danger" ? {
|
|
524
|
-
danger: !0
|
|
525
|
-
} : {
|
|
526
|
-
type: e
|
|
527
|
-
};
|
|
528
|
-
}
|
|
529
|
-
function ut(e) {
|
|
530
|
-
return typeof e == "string";
|
|
531
|
-
}
|
|
532
|
-
function ae(e) {
|
|
533
|
-
return e === "text" || e === "link";
|
|
534
|
-
}
|
|
535
|
-
function lr(e, t) {
|
|
536
|
-
if (e == null)
|
|
537
|
-
return;
|
|
538
|
-
const o = t ? " " : "";
|
|
539
|
-
return typeof e != "string" && typeof e != "number" && ut(e.type) && Ae(e.props.children) ? Rt(e, {
|
|
540
|
-
children: e.props.children.split("").join(o)
|
|
541
|
-
}) : ut(e) ? Ae(e) ? /* @__PURE__ */ c.createElement("span", null, e.split("").join(o)) : /* @__PURE__ */ c.createElement("span", null, e) : $o(e) ? /* @__PURE__ */ c.createElement("span", null, e) : e;
|
|
542
|
-
}
|
|
543
|
-
function sr(e, t) {
|
|
544
|
-
let o = !1;
|
|
545
|
-
const r = [];
|
|
546
|
-
return c.Children.forEach(e, (n) => {
|
|
547
|
-
const a = typeof n, i = a === "string" || a === "number";
|
|
548
|
-
if (o && i) {
|
|
549
|
-
const l = r.length - 1, s = r[l];
|
|
550
|
-
r[l] = `${s}${n}`;
|
|
551
|
-
} else
|
|
552
|
-
r.push(n);
|
|
553
|
-
o = i;
|
|
554
|
-
}), c.Children.map(r, (n) => lr(n, t));
|
|
555
|
-
}
|
|
556
|
-
["default", "primary", "danger"].concat(uo(Ve));
|
|
557
|
-
const Me = /* @__PURE__ */ me((e, t) => {
|
|
558
|
-
const {
|
|
559
|
-
className: o,
|
|
560
|
-
style: r,
|
|
561
|
-
children: n,
|
|
562
|
-
prefixCls: a
|
|
563
|
-
} = e, i = H(`${a}-icon`, o);
|
|
564
|
-
return /* @__PURE__ */ c.createElement("span", {
|
|
565
|
-
ref: t,
|
|
566
|
-
className: i,
|
|
567
|
-
style: r
|
|
568
|
-
}, n);
|
|
569
|
-
}), dt = /* @__PURE__ */ me((e, t) => {
|
|
570
|
-
const {
|
|
571
|
-
prefixCls: o,
|
|
572
|
-
className: r,
|
|
573
|
-
style: n,
|
|
574
|
-
iconClassName: a
|
|
575
|
-
} = e, i = H(`${o}-loading-icon`, r);
|
|
576
|
-
return /* @__PURE__ */ c.createElement(Me, {
|
|
577
|
-
prefixCls: o,
|
|
578
|
-
className: i,
|
|
579
|
-
style: n,
|
|
580
|
-
ref: t
|
|
581
|
-
}, /* @__PURE__ */ c.createElement(wt, {
|
|
582
|
-
className: a
|
|
583
|
-
}));
|
|
584
|
-
}), He = () => ({
|
|
585
|
-
width: 0,
|
|
586
|
-
opacity: 0,
|
|
587
|
-
transform: "scale(0)"
|
|
588
|
-
}), ze = (e) => ({
|
|
589
|
-
width: e.scrollWidth,
|
|
590
|
-
opacity: 1,
|
|
591
|
-
transform: "scale(1)"
|
|
592
|
-
}), cr = (e) => {
|
|
593
|
-
const {
|
|
594
|
-
prefixCls: t,
|
|
595
|
-
loading: o,
|
|
596
|
-
existIcon: r,
|
|
597
|
-
className: n,
|
|
598
|
-
style: a,
|
|
599
|
-
mount: i
|
|
600
|
-
} = e, l = !!o;
|
|
601
|
-
return r ? /* @__PURE__ */ c.createElement(dt, {
|
|
602
|
-
prefixCls: t,
|
|
603
|
-
className: n,
|
|
604
|
-
style: a
|
|
605
|
-
}) : /* @__PURE__ */ c.createElement(bt, {
|
|
606
|
-
visible: l,
|
|
607
|
-
// Used for minus flex gap style only
|
|
608
|
-
motionName: `${t}-loading-icon-motion`,
|
|
609
|
-
motionAppear: !i,
|
|
610
|
-
motionEnter: !i,
|
|
611
|
-
motionLeave: !i,
|
|
612
|
-
removeOnLeave: !0,
|
|
613
|
-
onAppearStart: He,
|
|
614
|
-
onAppearActive: ze,
|
|
615
|
-
onEnterStart: He,
|
|
616
|
-
onEnterActive: ze,
|
|
617
|
-
onLeaveStart: ze,
|
|
618
|
-
onLeaveActive: He
|
|
619
|
-
}, ({
|
|
620
|
-
className: s,
|
|
621
|
-
style: u
|
|
622
|
-
}, d) => {
|
|
623
|
-
const g = Object.assign(Object.assign({}, a), u);
|
|
624
|
-
return /* @__PURE__ */ c.createElement(dt, {
|
|
625
|
-
prefixCls: t,
|
|
626
|
-
className: H(n, s),
|
|
627
|
-
style: g,
|
|
628
|
-
ref: d
|
|
629
|
-
});
|
|
630
|
-
});
|
|
631
|
-
}, mt = (e, t) => ({
|
|
632
|
-
// Border
|
|
633
|
-
[`> span, > ${e}`]: {
|
|
634
|
-
"&:not(:last-child)": {
|
|
635
|
-
[`&, & > ${e}`]: {
|
|
636
|
-
"&:not(:disabled)": {
|
|
637
|
-
borderInlineEndColor: t
|
|
638
|
-
}
|
|
639
|
-
}
|
|
640
|
-
},
|
|
641
|
-
"&:not(:first-child)": {
|
|
642
|
-
[`&, & > ${e}`]: {
|
|
643
|
-
"&:not(:disabled)": {
|
|
644
|
-
borderInlineStartColor: t
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
}
|
|
649
|
-
}), ur = (e) => {
|
|
650
|
-
const {
|
|
651
|
-
componentCls: t,
|
|
652
|
-
fontSize: o,
|
|
653
|
-
lineWidth: r,
|
|
654
|
-
groupBorderColor: n,
|
|
655
|
-
colorErrorHover: a
|
|
656
|
-
} = e;
|
|
657
|
-
return {
|
|
658
|
-
[`${t}-group`]: [
|
|
659
|
-
{
|
|
660
|
-
position: "relative",
|
|
661
|
-
display: "inline-flex",
|
|
662
|
-
// Border
|
|
663
|
-
[`> span, > ${t}`]: {
|
|
664
|
-
"&:not(:last-child)": {
|
|
665
|
-
[`&, & > ${t}`]: {
|
|
666
|
-
borderStartEndRadius: 0,
|
|
667
|
-
borderEndEndRadius: 0
|
|
668
|
-
}
|
|
669
|
-
},
|
|
670
|
-
"&:not(:first-child)": {
|
|
671
|
-
marginInlineStart: e.calc(r).mul(-1).equal(),
|
|
672
|
-
[`&, & > ${t}`]: {
|
|
673
|
-
borderStartStartRadius: 0,
|
|
674
|
-
borderEndStartRadius: 0
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
},
|
|
678
|
-
[t]: {
|
|
679
|
-
position: "relative",
|
|
680
|
-
zIndex: 1,
|
|
681
|
-
"&:hover, &:focus, &:active": {
|
|
682
|
-
zIndex: 2
|
|
683
|
-
},
|
|
684
|
-
"&[disabled]": {
|
|
685
|
-
zIndex: 0
|
|
686
|
-
}
|
|
687
|
-
},
|
|
688
|
-
[`${t}-icon-only`]: {
|
|
689
|
-
fontSize: o
|
|
690
|
-
}
|
|
691
|
-
},
|
|
692
|
-
// Border Color
|
|
693
|
-
mt(`${t}-primary`, n),
|
|
694
|
-
mt(`${t}-danger`, a)
|
|
695
|
-
]
|
|
696
|
-
};
|
|
697
|
-
};
|
|
698
|
-
var dr = ["b"], mr = ["v"], Pe = function(t) {
|
|
699
|
-
return Math.round(Number(t || 0));
|
|
700
|
-
}, gr = function(t) {
|
|
701
|
-
if (t instanceof Ot)
|
|
702
|
-
return t;
|
|
703
|
-
if (t && vt(t) === "object" && "h" in t && "b" in t) {
|
|
704
|
-
var o = t, r = o.b, n = Et(o, dr);
|
|
705
|
-
return M(M({}, n), {}, {
|
|
706
|
-
v: r
|
|
707
|
-
});
|
|
708
|
-
}
|
|
709
|
-
return typeof t == "string" && /hsb/.test(t) ? t.replace(/hsb/, "hsv") : t;
|
|
710
|
-
}, U = /* @__PURE__ */ function(e) {
|
|
711
|
-
mo(o, e);
|
|
712
|
-
var t = go(o);
|
|
713
|
-
function o(r) {
|
|
714
|
-
return St(this, o), t.call(this, gr(r));
|
|
715
|
-
}
|
|
716
|
-
return xt(o, [{
|
|
717
|
-
key: "toHsbString",
|
|
718
|
-
value: function() {
|
|
719
|
-
var n = this.toHsb(), a = Pe(n.s * 100), i = Pe(n.b * 100), l = Pe(n.h), s = n.a, u = "hsb(".concat(l, ", ").concat(a, "%, ").concat(i, "%)"), d = "hsba(".concat(l, ", ").concat(a, "%, ").concat(i, "%, ").concat(s.toFixed(s === 0 ? 0 : 2), ")");
|
|
720
|
-
return s === 1 ? u : d;
|
|
721
|
-
}
|
|
722
|
-
}, {
|
|
723
|
-
key: "toHsb",
|
|
724
|
-
value: function() {
|
|
725
|
-
var n = this.toHsv(), a = n.v, i = Et(n, mr);
|
|
726
|
-
return M(M({}, i), {}, {
|
|
727
|
-
b: a,
|
|
728
|
-
a: this.a
|
|
729
|
-
});
|
|
730
|
-
}
|
|
731
|
-
}]), o;
|
|
732
|
-
}(Ot), fr = "rc-color-picker", J = function(t) {
|
|
733
|
-
return t instanceof U ? t : new U(t);
|
|
734
|
-
}, pr = J("#1677ff"), jt = function(t) {
|
|
735
|
-
var o = t.offset, r = t.targetRef, n = t.containerRef, a = t.color, i = t.type, l = n.current.getBoundingClientRect(), s = l.width, u = l.height, d = r.current.getBoundingClientRect(), g = d.width, p = d.height, C = g / 2, h = p / 2, x = (o.x + C) / s, f = 1 - (o.y + h) / u, b = a.toHsb(), B = x, E = (o.x + C) / s * 360;
|
|
736
|
-
if (i)
|
|
737
|
-
switch (i) {
|
|
738
|
-
case "hue":
|
|
739
|
-
return J(M(M({}, b), {}, {
|
|
740
|
-
h: E <= 0 ? 0 : E
|
|
741
|
-
}));
|
|
742
|
-
case "alpha":
|
|
743
|
-
return J(M(M({}, b), {}, {
|
|
744
|
-
a: B <= 0 ? 0 : B
|
|
745
|
-
}));
|
|
746
|
-
}
|
|
747
|
-
return J({
|
|
748
|
-
h: b.h,
|
|
749
|
-
s: x <= 0 ? 0 : x,
|
|
750
|
-
b: f >= 1 ? 1 : f,
|
|
751
|
-
a: b.a
|
|
752
|
-
});
|
|
753
|
-
}, Tt = function(t, o) {
|
|
754
|
-
var r = t.toHsb();
|
|
755
|
-
switch (o) {
|
|
756
|
-
case "hue":
|
|
757
|
-
return {
|
|
758
|
-
x: r.h / 360 * 100,
|
|
759
|
-
y: 50
|
|
760
|
-
};
|
|
761
|
-
case "alpha":
|
|
762
|
-
return {
|
|
763
|
-
x: t.a * 100,
|
|
764
|
-
y: 50
|
|
765
|
-
};
|
|
766
|
-
// Picker panel
|
|
767
|
-
default:
|
|
768
|
-
return {
|
|
769
|
-
x: r.s * 100,
|
|
770
|
-
y: (1 - r.b) * 100
|
|
771
|
-
};
|
|
772
|
-
}
|
|
773
|
-
}, vr = function(t) {
|
|
774
|
-
var o = t.color, r = t.prefixCls, n = t.className, a = t.style, i = t.onClick, l = "".concat(r, "-color-block");
|
|
775
|
-
return /* @__PURE__ */ c.createElement("div", {
|
|
776
|
-
className: H(l, n),
|
|
777
|
-
style: a,
|
|
778
|
-
onClick: i
|
|
779
|
-
}, /* @__PURE__ */ c.createElement("div", {
|
|
780
|
-
className: "".concat(l, "-inner"),
|
|
781
|
-
style: {
|
|
782
|
-
background: o
|
|
783
|
-
}
|
|
784
|
-
}));
|
|
785
|
-
};
|
|
786
|
-
function br(e) {
|
|
787
|
-
var t = "touches" in e ? e.touches[0] : e, o = document.documentElement.scrollLeft || document.body.scrollLeft || window.pageXOffset, r = document.documentElement.scrollTop || document.body.scrollTop || window.pageYOffset;
|
|
788
|
-
return {
|
|
789
|
-
pageX: t.pageX - o,
|
|
790
|
-
pageY: t.pageY - r
|
|
791
|
-
};
|
|
792
|
-
}
|
|
793
|
-
function Dt(e) {
|
|
794
|
-
var t = e.targetRef, o = e.containerRef, r = e.direction, n = e.onDragChange, a = e.onDragChangeComplete, i = e.calculate, l = e.color, s = e.disabledDrag, u = je({
|
|
795
|
-
x: 0,
|
|
796
|
-
y: 0
|
|
797
|
-
}), d = Q(u, 2), g = d[0], p = d[1], C = L(null), h = L(null);
|
|
798
|
-
le(function() {
|
|
799
|
-
p(i());
|
|
800
|
-
}, [l]), le(function() {
|
|
801
|
-
return function() {
|
|
802
|
-
document.removeEventListener("mousemove", C.current), document.removeEventListener("mouseup", h.current), document.removeEventListener("touchmove", C.current), document.removeEventListener("touchend", h.current), C.current = null, h.current = null;
|
|
803
|
-
};
|
|
804
|
-
}, []);
|
|
805
|
-
var x = function(v) {
|
|
806
|
-
var y = br(v), N = y.pageX, j = y.pageY, S = o.current.getBoundingClientRect(), I = S.x, P = S.y, _ = S.width, O = S.height, G = t.current.getBoundingClientRect(), z = G.width, q = G.height, A = z / 2, Z = q / 2, D = Math.max(0, Math.min(N - I, _)) - A, R = Math.max(0, Math.min(j - P, O)) - Z, ee = {
|
|
807
|
-
x: D,
|
|
808
|
-
y: r === "x" ? g.y : R
|
|
809
|
-
};
|
|
810
|
-
if (z === 0 && q === 0 || z !== q)
|
|
811
|
-
return !1;
|
|
812
|
-
n == null || n(ee);
|
|
813
|
-
}, f = function(v) {
|
|
814
|
-
v.preventDefault(), x(v);
|
|
815
|
-
}, b = function(v) {
|
|
816
|
-
v.preventDefault(), document.removeEventListener("mousemove", C.current), document.removeEventListener("mouseup", h.current), document.removeEventListener("touchmove", C.current), document.removeEventListener("touchend", h.current), C.current = null, h.current = null, a == null || a();
|
|
817
|
-
}, B = function(v) {
|
|
818
|
-
document.removeEventListener("mousemove", C.current), document.removeEventListener("mouseup", h.current), !s && (x(v), document.addEventListener("mousemove", f), document.addEventListener("mouseup", b), document.addEventListener("touchmove", f), document.addEventListener("touchend", b), C.current = f, h.current = b);
|
|
819
|
-
};
|
|
820
|
-
return [g, B];
|
|
821
|
-
}
|
|
822
|
-
var Lt = function(t) {
|
|
823
|
-
var o = t.size, r = o === void 0 ? "default" : o, n = t.color, a = t.prefixCls;
|
|
824
|
-
return /* @__PURE__ */ c.createElement("div", {
|
|
825
|
-
className: H("".concat(a, "-handler"), Te({}, "".concat(a, "-handler-sm"), r === "small")),
|
|
826
|
-
style: {
|
|
827
|
-
backgroundColor: n
|
|
828
|
-
}
|
|
829
|
-
});
|
|
830
|
-
}, At = function(t) {
|
|
831
|
-
var o = t.children, r = t.style, n = t.prefixCls;
|
|
832
|
-
return /* @__PURE__ */ c.createElement("div", {
|
|
833
|
-
className: "".concat(n, "-palette"),
|
|
834
|
-
style: M({
|
|
835
|
-
position: "relative"
|
|
836
|
-
}, r)
|
|
837
|
-
}, o);
|
|
838
|
-
}, Mt = /* @__PURE__ */ me(function(e, t) {
|
|
839
|
-
var o = e.children, r = e.x, n = e.y;
|
|
840
|
-
return /* @__PURE__ */ c.createElement("div", {
|
|
841
|
-
ref: t,
|
|
842
|
-
style: {
|
|
843
|
-
position: "absolute",
|
|
844
|
-
left: "".concat(r, "%"),
|
|
845
|
-
top: "".concat(n, "%"),
|
|
846
|
-
zIndex: 1,
|
|
847
|
-
transform: "translate(-50%, -50%)"
|
|
848
|
-
}
|
|
849
|
-
}, o);
|
|
850
|
-
}), Cr = function(t) {
|
|
851
|
-
var o = t.color, r = t.onChange, n = t.prefixCls, a = t.onChangeComplete, i = t.disabled, l = L(), s = L(), u = L(o), d = Fe(function(x) {
|
|
852
|
-
var f = jt({
|
|
853
|
-
offset: x,
|
|
854
|
-
targetRef: s,
|
|
855
|
-
containerRef: l,
|
|
856
|
-
color: o
|
|
857
|
-
});
|
|
858
|
-
u.current = f, r(f);
|
|
859
|
-
}), g = Dt({
|
|
860
|
-
color: o,
|
|
861
|
-
containerRef: l,
|
|
862
|
-
targetRef: s,
|
|
863
|
-
calculate: function() {
|
|
864
|
-
return Tt(o);
|
|
865
|
-
},
|
|
866
|
-
onDragChange: d,
|
|
867
|
-
onDragChangeComplete: function() {
|
|
868
|
-
return a == null ? void 0 : a(u.current);
|
|
869
|
-
},
|
|
870
|
-
disabledDrag: i
|
|
871
|
-
}), p = Q(g, 2), C = p[0], h = p[1];
|
|
872
|
-
return /* @__PURE__ */ c.createElement("div", {
|
|
873
|
-
ref: l,
|
|
874
|
-
className: "".concat(n, "-select"),
|
|
875
|
-
onMouseDown: h,
|
|
876
|
-
onTouchStart: h
|
|
877
|
-
}, /* @__PURE__ */ c.createElement(At, {
|
|
878
|
-
prefixCls: n
|
|
879
|
-
}, /* @__PURE__ */ c.createElement(Mt, {
|
|
880
|
-
x: C.x,
|
|
881
|
-
y: C.y,
|
|
882
|
-
ref: s
|
|
883
|
-
}, /* @__PURE__ */ c.createElement(Lt, {
|
|
884
|
-
color: o.toRgbString(),
|
|
885
|
-
prefixCls: n
|
|
886
|
-
})), /* @__PURE__ */ c.createElement("div", {
|
|
887
|
-
className: "".concat(n, "-saturation"),
|
|
888
|
-
style: {
|
|
889
|
-
backgroundColor: "hsl(".concat(o.toHsb().h, ",100%, 50%)"),
|
|
890
|
-
backgroundImage: "linear-gradient(0deg, #000, transparent),linear-gradient(90deg, #fff, hsla(0, 0%, 100%, 0))"
|
|
891
|
-
}
|
|
892
|
-
})));
|
|
893
|
-
}, hr = function(t, o) {
|
|
894
|
-
var r = $t(t, {
|
|
895
|
-
value: o
|
|
896
|
-
}), n = Q(r, 2), a = n[0], i = n[1], l = oe(function() {
|
|
897
|
-
return J(a);
|
|
898
|
-
}, [a]);
|
|
899
|
-
return [l, i];
|
|
900
|
-
}, yr = function(t) {
|
|
901
|
-
var o = t.colors, r = t.children, n = t.direction, a = n === void 0 ? "to right" : n, i = t.type, l = t.prefixCls, s = oe(function() {
|
|
902
|
-
return o.map(function(u, d) {
|
|
903
|
-
var g = J(u);
|
|
904
|
-
return i === "alpha" && d === o.length - 1 && (g = new U(g.setA(1))), g.toRgbString();
|
|
905
|
-
}).join(",");
|
|
906
|
-
}, [o, i]);
|
|
907
|
-
return /* @__PURE__ */ c.createElement("div", {
|
|
908
|
-
className: "".concat(l, "-gradient"),
|
|
909
|
-
style: {
|
|
910
|
-
position: "absolute",
|
|
911
|
-
inset: 0,
|
|
912
|
-
background: "linear-gradient(".concat(a, ", ").concat(s, ")")
|
|
913
|
-
}
|
|
914
|
-
}, r);
|
|
915
|
-
}, Sr = function(t) {
|
|
916
|
-
var o = t.prefixCls, r = t.colors, n = t.disabled, a = t.onChange, i = t.onChangeComplete, l = t.color, s = t.type, u = L(), d = L(), g = L(l), p = function(y) {
|
|
917
|
-
return s === "hue" ? y.getHue() : y.a * 100;
|
|
918
|
-
}, C = Fe(function(v) {
|
|
919
|
-
var y = jt({
|
|
920
|
-
offset: v,
|
|
921
|
-
targetRef: d,
|
|
922
|
-
containerRef: u,
|
|
923
|
-
color: l,
|
|
924
|
-
type: s
|
|
925
|
-
});
|
|
926
|
-
g.current = y, a(p(y));
|
|
927
|
-
}), h = Dt({
|
|
928
|
-
color: l,
|
|
929
|
-
targetRef: d,
|
|
930
|
-
containerRef: u,
|
|
931
|
-
calculate: function() {
|
|
932
|
-
return Tt(l, s);
|
|
933
|
-
},
|
|
934
|
-
onDragChange: C,
|
|
935
|
-
onDragChangeComplete: function() {
|
|
936
|
-
i(p(g.current));
|
|
937
|
-
},
|
|
938
|
-
direction: "x",
|
|
939
|
-
disabledDrag: n
|
|
940
|
-
}), x = Q(h, 2), f = x[0], b = x[1], B = c.useMemo(function() {
|
|
941
|
-
if (s === "hue") {
|
|
942
|
-
var v = l.toHsb();
|
|
943
|
-
v.s = 1, v.b = 1, v.a = 1;
|
|
944
|
-
var y = new U(v);
|
|
945
|
-
return y;
|
|
946
|
-
}
|
|
947
|
-
return l;
|
|
948
|
-
}, [l, s]), E = c.useMemo(function() {
|
|
949
|
-
return r.map(function(v) {
|
|
950
|
-
return "".concat(v.color, " ").concat(v.percent, "%");
|
|
951
|
-
});
|
|
952
|
-
}, [r]);
|
|
953
|
-
return /* @__PURE__ */ c.createElement("div", {
|
|
954
|
-
ref: u,
|
|
955
|
-
className: H("".concat(o, "-slider"), "".concat(o, "-slider-").concat(s)),
|
|
956
|
-
onMouseDown: b,
|
|
957
|
-
onTouchStart: b
|
|
958
|
-
}, /* @__PURE__ */ c.createElement(At, {
|
|
959
|
-
prefixCls: o
|
|
960
|
-
}, /* @__PURE__ */ c.createElement(Mt, {
|
|
961
|
-
x: f.x,
|
|
962
|
-
y: f.y,
|
|
963
|
-
ref: d
|
|
964
|
-
}, /* @__PURE__ */ c.createElement(Lt, {
|
|
965
|
-
size: "small",
|
|
966
|
-
color: B.toHexString(),
|
|
967
|
-
prefixCls: o
|
|
968
|
-
})), /* @__PURE__ */ c.createElement(yr, {
|
|
969
|
-
colors: E,
|
|
970
|
-
type: s,
|
|
971
|
-
prefixCls: o
|
|
972
|
-
})));
|
|
973
|
-
};
|
|
974
|
-
function xr(e) {
|
|
975
|
-
return m.useMemo(function() {
|
|
976
|
-
var t = e || {}, o = t.slider;
|
|
977
|
-
return [o || Sr];
|
|
978
|
-
}, [e]);
|
|
979
|
-
}
|
|
980
|
-
var Er = [{
|
|
981
|
-
color: "rgb(255, 0, 0)",
|
|
982
|
-
percent: 0
|
|
983
|
-
}, {
|
|
984
|
-
color: "rgb(255, 255, 0)",
|
|
985
|
-
percent: 17
|
|
986
|
-
}, {
|
|
987
|
-
color: "rgb(0, 255, 0)",
|
|
988
|
-
percent: 33
|
|
989
|
-
}, {
|
|
990
|
-
color: "rgb(0, 255, 255)",
|
|
991
|
-
percent: 50
|
|
992
|
-
}, {
|
|
993
|
-
color: "rgb(0, 0, 255)",
|
|
994
|
-
percent: 67
|
|
995
|
-
}, {
|
|
996
|
-
color: "rgb(255, 0, 255)",
|
|
997
|
-
percent: 83
|
|
998
|
-
}, {
|
|
999
|
-
color: "rgb(255, 0, 0)",
|
|
1000
|
-
percent: 100
|
|
1001
|
-
}], Or = /* @__PURE__ */ me(function(e, t) {
|
|
1002
|
-
var o = e.value, r = e.defaultValue, n = e.prefixCls, a = n === void 0 ? fr : n, i = e.onChange, l = e.onChangeComplete, s = e.className, u = e.style, d = e.panelRender, g = e.disabledAlpha, p = g === void 0 ? !1 : g, C = e.disabled, h = C === void 0 ? !1 : C, x = e.components, f = xr(x), b = Q(f, 1), B = b[0], E = hr(r || pr, o), v = Q(E, 2), y = v[0], N = v[1], j = oe(function() {
|
|
1003
|
-
return y.setA(1).toRgbString();
|
|
1004
|
-
}, [y]), S = function(R, ee) {
|
|
1005
|
-
o || N(R), i == null || i(R, ee);
|
|
1006
|
-
}, I = function(R) {
|
|
1007
|
-
return new U(y.setHue(R));
|
|
1008
|
-
}, P = function(R) {
|
|
1009
|
-
return new U(y.setA(R / 100));
|
|
1010
|
-
}, _ = function(R) {
|
|
1011
|
-
S(I(R), {
|
|
1012
|
-
type: "hue",
|
|
1013
|
-
value: R
|
|
1014
|
-
});
|
|
1015
|
-
}, O = function(R) {
|
|
1016
|
-
S(P(R), {
|
|
1017
|
-
type: "alpha",
|
|
1018
|
-
value: R
|
|
1019
|
-
});
|
|
1020
|
-
}, G = function(R) {
|
|
1021
|
-
l && l(I(R));
|
|
1022
|
-
}, z = function(R) {
|
|
1023
|
-
l && l(P(R));
|
|
1024
|
-
}, q = H("".concat(a, "-panel"), s, Te({}, "".concat(a, "-panel-disabled"), h)), A = {
|
|
1025
|
-
prefixCls: a,
|
|
1026
|
-
disabled: h,
|
|
1027
|
-
color: y
|
|
1028
|
-
}, Z = /* @__PURE__ */ c.createElement(c.Fragment, null, /* @__PURE__ */ c.createElement(Cr, ie({
|
|
1029
|
-
onChange: S
|
|
1030
|
-
}, A, {
|
|
1031
|
-
onChangeComplete: l
|
|
1032
|
-
})), /* @__PURE__ */ c.createElement("div", {
|
|
1033
|
-
className: "".concat(a, "-slider-container")
|
|
1034
|
-
}, /* @__PURE__ */ c.createElement("div", {
|
|
1035
|
-
className: H("".concat(a, "-slider-group"), Te({}, "".concat(a, "-slider-group-disabled-alpha"), p))
|
|
1036
|
-
}, /* @__PURE__ */ c.createElement(B, ie({}, A, {
|
|
1037
|
-
type: "hue",
|
|
1038
|
-
colors: Er,
|
|
1039
|
-
min: 0,
|
|
1040
|
-
max: 359,
|
|
1041
|
-
value: y.getHue(),
|
|
1042
|
-
onChange: _,
|
|
1043
|
-
onChangeComplete: G
|
|
1044
|
-
})), !p && /* @__PURE__ */ c.createElement(B, ie({}, A, {
|
|
1045
|
-
type: "alpha",
|
|
1046
|
-
colors: [{
|
|
1047
|
-
percent: 0,
|
|
1048
|
-
color: "rgba(255, 0, 4, 0)"
|
|
1049
|
-
}, {
|
|
1050
|
-
percent: 100,
|
|
1051
|
-
color: j
|
|
1052
|
-
}],
|
|
1053
|
-
min: 0,
|
|
1054
|
-
max: 100,
|
|
1055
|
-
value: y.a * 100,
|
|
1056
|
-
onChange: O,
|
|
1057
|
-
onChangeComplete: z
|
|
1058
|
-
}))), /* @__PURE__ */ c.createElement(vr, {
|
|
1059
|
-
color: y.toRgbString(),
|
|
1060
|
-
prefixCls: a
|
|
1061
|
-
})));
|
|
1062
|
-
return /* @__PURE__ */ c.createElement("div", {
|
|
1063
|
-
className: q,
|
|
1064
|
-
style: u,
|
|
1065
|
-
ref: t
|
|
1066
|
-
}, typeof d == "function" ? d(Z) : Z);
|
|
1067
|
-
});
|
|
1068
|
-
process.env.NODE_ENV !== "production" && (Or.displayName = "ColorPicker");
|
|
1069
|
-
const $r = (e, t) => (e == null ? void 0 : e.replace(/[^\w/]/g, "").slice(0, t ? 8 : 6)) || "", Ir = (e, t) => e ? $r(e, t) : "";
|
|
1070
|
-
let Rr = /* @__PURE__ */ function() {
|
|
1071
|
-
function e(t) {
|
|
1072
|
-
St(this, e);
|
|
1073
|
-
var o;
|
|
1074
|
-
if (this.cleared = !1, t instanceof e) {
|
|
1075
|
-
this.metaColor = t.metaColor.clone(), this.colors = (o = t.colors) === null || o === void 0 ? void 0 : o.map((n) => ({
|
|
1076
|
-
color: new e(n.color),
|
|
1077
|
-
percent: n.percent
|
|
1078
|
-
})), this.cleared = t.cleared;
|
|
1079
|
-
return;
|
|
1080
|
-
}
|
|
1081
|
-
const r = Array.isArray(t);
|
|
1082
|
-
r && t.length ? (this.colors = t.map(({
|
|
1083
|
-
color: n,
|
|
1084
|
-
percent: a
|
|
1085
|
-
}) => ({
|
|
1086
|
-
color: new e(n),
|
|
1087
|
-
percent: a
|
|
1088
|
-
})), this.metaColor = new U(this.colors[0].color.metaColor)) : this.metaColor = new U(r ? "" : t), (!t || r && !this.colors) && (this.metaColor = this.metaColor.setA(0), this.cleared = !0);
|
|
1089
|
-
}
|
|
1090
|
-
return xt(e, [{
|
|
1091
|
-
key: "toHsb",
|
|
1092
|
-
value: function() {
|
|
1093
|
-
return this.metaColor.toHsb();
|
|
1094
|
-
}
|
|
1095
|
-
}, {
|
|
1096
|
-
key: "toHsbString",
|
|
1097
|
-
value: function() {
|
|
1098
|
-
return this.metaColor.toHsbString();
|
|
1099
|
-
}
|
|
1100
|
-
}, {
|
|
1101
|
-
key: "toHex",
|
|
1102
|
-
value: function() {
|
|
1103
|
-
return Ir(this.toHexString(), this.metaColor.a < 1);
|
|
1104
|
-
}
|
|
1105
|
-
}, {
|
|
1106
|
-
key: "toHexString",
|
|
1107
|
-
value: function() {
|
|
1108
|
-
return this.metaColor.toHexString();
|
|
1109
|
-
}
|
|
1110
|
-
}, {
|
|
1111
|
-
key: "toRgb",
|
|
1112
|
-
value: function() {
|
|
1113
|
-
return this.metaColor.toRgb();
|
|
1114
|
-
}
|
|
1115
|
-
}, {
|
|
1116
|
-
key: "toRgbString",
|
|
1117
|
-
value: function() {
|
|
1118
|
-
return this.metaColor.toRgbString();
|
|
1119
|
-
}
|
|
1120
|
-
}, {
|
|
1121
|
-
key: "isGradient",
|
|
1122
|
-
value: function() {
|
|
1123
|
-
return !!this.colors && !this.cleared;
|
|
1124
|
-
}
|
|
1125
|
-
}, {
|
|
1126
|
-
key: "getColors",
|
|
1127
|
-
value: function() {
|
|
1128
|
-
return this.colors || [{
|
|
1129
|
-
color: this,
|
|
1130
|
-
percent: 0
|
|
1131
|
-
}];
|
|
1132
|
-
}
|
|
1133
|
-
}, {
|
|
1134
|
-
key: "toCssString",
|
|
1135
|
-
value: function() {
|
|
1136
|
-
const {
|
|
1137
|
-
colors: o
|
|
1138
|
-
} = this;
|
|
1139
|
-
return o ? `linear-gradient(90deg, ${o.map((n) => `${n.color.toRgbString()} ${n.percent}%`).join(", ")})` : this.metaColor.toRgbString();
|
|
1140
|
-
}
|
|
1141
|
-
}, {
|
|
1142
|
-
key: "equals",
|
|
1143
|
-
value: function(o) {
|
|
1144
|
-
return !o || this.isGradient() !== o.isGradient() ? !1 : this.isGradient() ? this.colors.length === o.colors.length && this.colors.every((r, n) => {
|
|
1145
|
-
const a = o.colors[n];
|
|
1146
|
-
return r.percent === a.percent && r.color.equals(a.color);
|
|
1147
|
-
}) : this.toHexString() === o.toHexString();
|
|
1148
|
-
}
|
|
1149
|
-
}]);
|
|
1150
|
-
}();
|
|
1151
|
-
const wr = new T("antZoomIn", {
|
|
1152
|
-
"0%": {
|
|
1153
|
-
transform: "scale(0.2)",
|
|
1154
|
-
opacity: 0
|
|
1155
|
-
},
|
|
1156
|
-
"100%": {
|
|
1157
|
-
transform: "scale(1)",
|
|
1158
|
-
opacity: 1
|
|
1159
|
-
}
|
|
1160
|
-
}), Br = new T("antZoomOut", {
|
|
1161
|
-
"0%": {
|
|
1162
|
-
transform: "scale(1)"
|
|
1163
|
-
},
|
|
1164
|
-
"100%": {
|
|
1165
|
-
transform: "scale(0.2)",
|
|
1166
|
-
opacity: 0
|
|
1167
|
-
}
|
|
1168
|
-
}), gt = new T("antZoomBigIn", {
|
|
1169
|
-
"0%": {
|
|
1170
|
-
transform: "scale(0.8)",
|
|
1171
|
-
opacity: 0
|
|
1172
|
-
},
|
|
1173
|
-
"100%": {
|
|
1174
|
-
transform: "scale(1)",
|
|
1175
|
-
opacity: 1
|
|
1176
|
-
}
|
|
1177
|
-
}), ft = new T("antZoomBigOut", {
|
|
1178
|
-
"0%": {
|
|
1179
|
-
transform: "scale(1)"
|
|
1180
|
-
},
|
|
1181
|
-
"100%": {
|
|
1182
|
-
transform: "scale(0.8)",
|
|
1183
|
-
opacity: 0
|
|
1184
|
-
}
|
|
1185
|
-
}), Nr = new T("antZoomUpIn", {
|
|
1186
|
-
"0%": {
|
|
1187
|
-
transform: "scale(0.8)",
|
|
1188
|
-
transformOrigin: "50% 0%",
|
|
1189
|
-
opacity: 0
|
|
1190
|
-
},
|
|
1191
|
-
"100%": {
|
|
1192
|
-
transform: "scale(1)",
|
|
1193
|
-
transformOrigin: "50% 0%"
|
|
1194
|
-
}
|
|
1195
|
-
}), Hr = new T("antZoomUpOut", {
|
|
1196
|
-
"0%": {
|
|
1197
|
-
transform: "scale(1)",
|
|
1198
|
-
transformOrigin: "50% 0%"
|
|
1199
|
-
},
|
|
1200
|
-
"100%": {
|
|
1201
|
-
transform: "scale(0.8)",
|
|
1202
|
-
transformOrigin: "50% 0%",
|
|
1203
|
-
opacity: 0
|
|
1204
|
-
}
|
|
1205
|
-
}), zr = new T("antZoomLeftIn", {
|
|
1206
|
-
"0%": {
|
|
1207
|
-
transform: "scale(0.8)",
|
|
1208
|
-
transformOrigin: "0% 50%",
|
|
1209
|
-
opacity: 0
|
|
1210
|
-
},
|
|
1211
|
-
"100%": {
|
|
1212
|
-
transform: "scale(1)",
|
|
1213
|
-
transformOrigin: "0% 50%"
|
|
1214
|
-
}
|
|
1215
|
-
}), Pr = new T("antZoomLeftOut", {
|
|
1216
|
-
"0%": {
|
|
1217
|
-
transform: "scale(1)",
|
|
1218
|
-
transformOrigin: "0% 50%"
|
|
1219
|
-
},
|
|
1220
|
-
"100%": {
|
|
1221
|
-
transform: "scale(0.8)",
|
|
1222
|
-
transformOrigin: "0% 50%",
|
|
1223
|
-
opacity: 0
|
|
1224
|
-
}
|
|
1225
|
-
}), _r = new T("antZoomRightIn", {
|
|
1226
|
-
"0%": {
|
|
1227
|
-
transform: "scale(0.8)",
|
|
1228
|
-
transformOrigin: "100% 50%",
|
|
1229
|
-
opacity: 0
|
|
1230
|
-
},
|
|
1231
|
-
"100%": {
|
|
1232
|
-
transform: "scale(1)",
|
|
1233
|
-
transformOrigin: "100% 50%"
|
|
1234
|
-
}
|
|
1235
|
-
}), jr = new T("antZoomRightOut", {
|
|
1236
|
-
"0%": {
|
|
1237
|
-
transform: "scale(1)",
|
|
1238
|
-
transformOrigin: "100% 50%"
|
|
1239
|
-
},
|
|
1240
|
-
"100%": {
|
|
1241
|
-
transform: "scale(0.8)",
|
|
1242
|
-
transformOrigin: "100% 50%",
|
|
1243
|
-
opacity: 0
|
|
1244
|
-
}
|
|
1245
|
-
}), Tr = new T("antZoomDownIn", {
|
|
1246
|
-
"0%": {
|
|
1247
|
-
transform: "scale(0.8)",
|
|
1248
|
-
transformOrigin: "50% 100%",
|
|
1249
|
-
opacity: 0
|
|
1250
|
-
},
|
|
1251
|
-
"100%": {
|
|
1252
|
-
transform: "scale(1)",
|
|
1253
|
-
transformOrigin: "50% 100%"
|
|
1254
|
-
}
|
|
1255
|
-
}), Dr = new T("antZoomDownOut", {
|
|
1256
|
-
"0%": {
|
|
1257
|
-
transform: "scale(1)",
|
|
1258
|
-
transformOrigin: "50% 100%"
|
|
1259
|
-
},
|
|
1260
|
-
"100%": {
|
|
1261
|
-
transform: "scale(0.8)",
|
|
1262
|
-
transformOrigin: "50% 100%",
|
|
1263
|
-
opacity: 0
|
|
1264
|
-
}
|
|
1265
|
-
}), Lr = {
|
|
1266
|
-
zoom: {
|
|
1267
|
-
inKeyframes: wr,
|
|
1268
|
-
outKeyframes: Br
|
|
1269
|
-
},
|
|
1270
|
-
"zoom-big": {
|
|
1271
|
-
inKeyframes: gt,
|
|
1272
|
-
outKeyframes: ft
|
|
1273
|
-
},
|
|
1274
|
-
"zoom-big-fast": {
|
|
1275
|
-
inKeyframes: gt,
|
|
1276
|
-
outKeyframes: ft
|
|
1277
|
-
},
|
|
1278
|
-
"zoom-left": {
|
|
1279
|
-
inKeyframes: zr,
|
|
1280
|
-
outKeyframes: Pr
|
|
1281
|
-
},
|
|
1282
|
-
"zoom-right": {
|
|
1283
|
-
inKeyframes: _r,
|
|
1284
|
-
outKeyframes: jr
|
|
1285
|
-
},
|
|
1286
|
-
"zoom-up": {
|
|
1287
|
-
inKeyframes: Nr,
|
|
1288
|
-
outKeyframes: Hr
|
|
1289
|
-
},
|
|
1290
|
-
"zoom-down": {
|
|
1291
|
-
inKeyframes: Tr,
|
|
1292
|
-
outKeyframes: Dr
|
|
1293
|
-
}
|
|
1294
|
-
}, $n = (e, t) => {
|
|
1295
|
-
const {
|
|
1296
|
-
antCls: o
|
|
1297
|
-
} = e, r = `${o}-${t}`, {
|
|
1298
|
-
inKeyframes: n,
|
|
1299
|
-
outKeyframes: a
|
|
1300
|
-
} = Lr[t];
|
|
1301
|
-
return [fo(r, n, a, t === "zoom-big-fast" ? e.motionDurationFast : e.motionDurationMid), {
|
|
1302
|
-
[`
|
|
1303
|
-
${r}-enter,
|
|
1304
|
-
${r}-appear
|
|
1305
|
-
`]: {
|
|
1306
|
-
transform: "scale(0)",
|
|
1307
|
-
opacity: 0,
|
|
1308
|
-
animationTimingFunction: e.motionEaseOutCirc,
|
|
1309
|
-
"&-prepare": {
|
|
1310
|
-
transform: "none"
|
|
1311
|
-
}
|
|
1312
|
-
},
|
|
1313
|
-
[`${r}-leave`]: {
|
|
1314
|
-
animationTimingFunction: e.motionEaseInOutCirc
|
|
1315
|
-
}
|
|
1316
|
-
}];
|
|
1317
|
-
}, Ar = (e, t) => {
|
|
1318
|
-
const {
|
|
1319
|
-
r: o,
|
|
1320
|
-
g: r,
|
|
1321
|
-
b: n,
|
|
1322
|
-
a
|
|
1323
|
-
} = e.toRgb(), i = new U(e.toRgbString()).onBackground(t).toHsv();
|
|
1324
|
-
return a <= 0.5 ? i.v > 0.5 : o * 0.299 + r * 0.587 + n * 0.114 > 192;
|
|
1325
|
-
}, Wt = (e) => {
|
|
1326
|
-
const {
|
|
1327
|
-
paddingInline: t,
|
|
1328
|
-
onlyIconSize: o
|
|
1329
|
-
} = e;
|
|
1330
|
-
return re(e, {
|
|
1331
|
-
buttonPaddingHorizontal: t,
|
|
1332
|
-
buttonPaddingVertical: 0,
|
|
1333
|
-
buttonIconOnlyFontSize: o
|
|
1334
|
-
});
|
|
1335
|
-
}, Gt = (e) => {
|
|
1336
|
-
var t, o, r, n, a, i;
|
|
1337
|
-
const l = (t = e.contentFontSize) !== null && t !== void 0 ? t : e.fontSize, s = (o = e.contentFontSizeSM) !== null && o !== void 0 ? o : e.fontSize, u = (r = e.contentFontSizeLG) !== null && r !== void 0 ? r : e.fontSizeLG, d = (n = e.contentLineHeight) !== null && n !== void 0 ? n : Re(l), g = (a = e.contentLineHeightSM) !== null && a !== void 0 ? a : Re(s), p = (i = e.contentLineHeightLG) !== null && i !== void 0 ? i : Re(u), C = Ar(new Rr(e.colorBgSolid), "#fff") ? "#000" : "#fff", h = Ve.reduce((x, f) => Object.assign(Object.assign({}, x), {
|
|
1338
|
-
[`${f}ShadowColor`]: `0 ${ue(e.controlOutlineWidth)} 0 ${po(e[`${f}1`], e.colorBgContainer)}`
|
|
1339
|
-
}), {});
|
|
1340
|
-
return Object.assign(Object.assign({}, h), {
|
|
1341
|
-
fontWeight: 400,
|
|
1342
|
-
defaultShadow: `0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`,
|
|
1343
|
-
primaryShadow: `0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`,
|
|
1344
|
-
dangerShadow: `0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`,
|
|
1345
|
-
primaryColor: e.colorTextLightSolid,
|
|
1346
|
-
dangerColor: e.colorTextLightSolid,
|
|
1347
|
-
borderColorDisabled: e.colorBorder,
|
|
1348
|
-
defaultGhostColor: e.colorBgContainer,
|
|
1349
|
-
ghostBg: "transparent",
|
|
1350
|
-
defaultGhostBorderColor: e.colorBgContainer,
|
|
1351
|
-
paddingInline: e.paddingContentHorizontal - e.lineWidth,
|
|
1352
|
-
paddingInlineLG: e.paddingContentHorizontal - e.lineWidth,
|
|
1353
|
-
paddingInlineSM: 8 - e.lineWidth,
|
|
1354
|
-
onlyIconSize: "inherit",
|
|
1355
|
-
onlyIconSizeSM: "inherit",
|
|
1356
|
-
onlyIconSizeLG: "inherit",
|
|
1357
|
-
groupBorderColor: e.colorPrimaryHover,
|
|
1358
|
-
linkHoverBg: "transparent",
|
|
1359
|
-
textTextColor: e.colorText,
|
|
1360
|
-
textTextHoverColor: e.colorText,
|
|
1361
|
-
textTextActiveColor: e.colorText,
|
|
1362
|
-
textHoverBg: e.colorFillTertiary,
|
|
1363
|
-
defaultColor: e.colorText,
|
|
1364
|
-
defaultBg: e.colorBgContainer,
|
|
1365
|
-
defaultBorderColor: e.colorBorder,
|
|
1366
|
-
defaultBorderColorDisabled: e.colorBorder,
|
|
1367
|
-
defaultHoverBg: e.colorBgContainer,
|
|
1368
|
-
defaultHoverColor: e.colorPrimaryHover,
|
|
1369
|
-
defaultHoverBorderColor: e.colorPrimaryHover,
|
|
1370
|
-
defaultActiveBg: e.colorBgContainer,
|
|
1371
|
-
defaultActiveColor: e.colorPrimaryActive,
|
|
1372
|
-
defaultActiveBorderColor: e.colorPrimaryActive,
|
|
1373
|
-
solidTextColor: C,
|
|
1374
|
-
contentFontSize: l,
|
|
1375
|
-
contentFontSizeSM: s,
|
|
1376
|
-
contentFontSizeLG: u,
|
|
1377
|
-
contentLineHeight: d,
|
|
1378
|
-
contentLineHeightSM: g,
|
|
1379
|
-
contentLineHeightLG: p,
|
|
1380
|
-
paddingBlock: Math.max((e.controlHeight - l * d) / 2 - e.lineWidth, 0),
|
|
1381
|
-
paddingBlockSM: Math.max((e.controlHeightSM - s * g) / 2 - e.lineWidth, 0),
|
|
1382
|
-
paddingBlockLG: Math.max((e.controlHeightLG - u * p) / 2 - e.lineWidth, 0)
|
|
1383
|
-
});
|
|
1384
|
-
}, Mr = (e) => {
|
|
1385
|
-
const {
|
|
1386
|
-
componentCls: t,
|
|
1387
|
-
iconCls: o,
|
|
1388
|
-
fontWeight: r,
|
|
1389
|
-
opacityLoading: n,
|
|
1390
|
-
motionDurationSlow: a,
|
|
1391
|
-
motionEaseInOut: i,
|
|
1392
|
-
marginXS: l,
|
|
1393
|
-
calc: s
|
|
1394
|
-
} = e;
|
|
1395
|
-
return {
|
|
1396
|
-
[t]: {
|
|
1397
|
-
outline: "none",
|
|
1398
|
-
position: "relative",
|
|
1399
|
-
display: "inline-flex",
|
|
1400
|
-
gap: e.marginXS,
|
|
1401
|
-
alignItems: "center",
|
|
1402
|
-
justifyContent: "center",
|
|
1403
|
-
fontWeight: r,
|
|
1404
|
-
whiteSpace: "nowrap",
|
|
1405
|
-
textAlign: "center",
|
|
1406
|
-
backgroundImage: "none",
|
|
1407
|
-
background: "transparent",
|
|
1408
|
-
border: `${ue(e.lineWidth)} ${e.lineType} transparent`,
|
|
1409
|
-
cursor: "pointer",
|
|
1410
|
-
transition: `all ${e.motionDurationMid} ${e.motionEaseInOut}`,
|
|
1411
|
-
userSelect: "none",
|
|
1412
|
-
touchAction: "manipulation",
|
|
1413
|
-
color: e.colorText,
|
|
1414
|
-
"&:disabled > *": {
|
|
1415
|
-
pointerEvents: "none"
|
|
1416
|
-
},
|
|
1417
|
-
// https://github.com/ant-design/ant-design/issues/51380
|
|
1418
|
-
[`${t}-icon > svg`]: bo(),
|
|
1419
|
-
"> a": {
|
|
1420
|
-
color: "currentColor"
|
|
1421
|
-
},
|
|
1422
|
-
"&:not(:disabled)": vo(e),
|
|
1423
|
-
[`&${t}-two-chinese-chars::first-letter`]: {
|
|
1424
|
-
letterSpacing: "0.34em"
|
|
1425
|
-
},
|
|
1426
|
-
[`&${t}-two-chinese-chars > *:not(${o})`]: {
|
|
1427
|
-
marginInlineEnd: "-0.34em",
|
|
1428
|
-
letterSpacing: "0.34em"
|
|
1429
|
-
},
|
|
1430
|
-
[`&${t}-icon-only`]: {
|
|
1431
|
-
paddingInline: 0,
|
|
1432
|
-
// make `btn-icon-only` not too narrow
|
|
1433
|
-
[`&${t}-compact-item`]: {
|
|
1434
|
-
flex: "none"
|
|
1435
|
-
},
|
|
1436
|
-
[`&${t}-round`]: {
|
|
1437
|
-
width: "auto"
|
|
1438
|
-
}
|
|
1439
|
-
},
|
|
1440
|
-
// Loading
|
|
1441
|
-
[`&${t}-loading`]: {
|
|
1442
|
-
opacity: n,
|
|
1443
|
-
cursor: "default"
|
|
1444
|
-
},
|
|
1445
|
-
[`${t}-loading-icon`]: {
|
|
1446
|
-
transition: ["width", "opacity", "margin"].map((u) => `${u} ${a} ${i}`).join(",")
|
|
1447
|
-
},
|
|
1448
|
-
// iconPosition
|
|
1449
|
-
[`&:not(${t}-icon-end)`]: {
|
|
1450
|
-
[`${t}-loading-icon-motion`]: {
|
|
1451
|
-
"&-appear-start, &-enter-start": {
|
|
1452
|
-
marginInlineEnd: s(l).mul(-1).equal()
|
|
1453
|
-
},
|
|
1454
|
-
"&-appear-active, &-enter-active": {
|
|
1455
|
-
marginInlineEnd: 0
|
|
1456
|
-
},
|
|
1457
|
-
"&-leave-start": {
|
|
1458
|
-
marginInlineEnd: 0
|
|
1459
|
-
},
|
|
1460
|
-
"&-leave-active": {
|
|
1461
|
-
marginInlineEnd: s(l).mul(-1).equal()
|
|
1462
|
-
}
|
|
1463
|
-
}
|
|
1464
|
-
},
|
|
1465
|
-
"&-icon-end": {
|
|
1466
|
-
flexDirection: "row-reverse",
|
|
1467
|
-
[`${t}-loading-icon-motion`]: {
|
|
1468
|
-
"&-appear-start, &-enter-start": {
|
|
1469
|
-
marginInlineStart: s(l).mul(-1).equal()
|
|
1470
|
-
},
|
|
1471
|
-
"&-appear-active, &-enter-active": {
|
|
1472
|
-
marginInlineStart: 0
|
|
1473
|
-
},
|
|
1474
|
-
"&-leave-start": {
|
|
1475
|
-
marginInlineStart: 0
|
|
1476
|
-
},
|
|
1477
|
-
"&-leave-active": {
|
|
1478
|
-
marginInlineStart: s(l).mul(-1).equal()
|
|
1479
|
-
}
|
|
1480
|
-
}
|
|
1481
|
-
}
|
|
1482
|
-
}
|
|
1483
|
-
};
|
|
1484
|
-
}, Ft = (e, t, o) => ({
|
|
1485
|
-
[`&:not(:disabled):not(${e}-disabled)`]: {
|
|
1486
|
-
"&:hover": t,
|
|
1487
|
-
"&:active": o
|
|
1488
|
-
}
|
|
1489
|
-
}), Wr = (e) => ({
|
|
1490
|
-
minWidth: e.controlHeight,
|
|
1491
|
-
paddingInlineStart: 0,
|
|
1492
|
-
paddingInlineEnd: 0,
|
|
1493
|
-
borderRadius: "50%"
|
|
1494
|
-
}), Gr = (e) => ({
|
|
1495
|
-
borderRadius: e.controlHeight,
|
|
1496
|
-
paddingInlineStart: e.calc(e.controlHeight).div(2).equal(),
|
|
1497
|
-
paddingInlineEnd: e.calc(e.controlHeight).div(2).equal()
|
|
1498
|
-
}), Fr = (e) => ({
|
|
1499
|
-
cursor: "not-allowed",
|
|
1500
|
-
borderColor: e.borderColorDisabled,
|
|
1501
|
-
color: e.colorTextDisabled,
|
|
1502
|
-
background: e.colorBgContainerDisabled,
|
|
1503
|
-
boxShadow: "none"
|
|
1504
|
-
}), pe = (e, t, o, r, n, a, i, l) => ({
|
|
1505
|
-
[`&${e}-background-ghost`]: Object.assign(Object.assign({
|
|
1506
|
-
color: o || void 0,
|
|
1507
|
-
background: t,
|
|
1508
|
-
borderColor: r || void 0,
|
|
1509
|
-
boxShadow: "none"
|
|
1510
|
-
}, Ft(e, Object.assign({
|
|
1511
|
-
background: t
|
|
1512
|
-
}, i), Object.assign({
|
|
1513
|
-
background: t
|
|
1514
|
-
}, l))), {
|
|
1515
|
-
"&:disabled": {
|
|
1516
|
-
cursor: "not-allowed",
|
|
1517
|
-
color: n || void 0,
|
|
1518
|
-
borderColor: a || void 0
|
|
1519
|
-
}
|
|
1520
|
-
})
|
|
1521
|
-
}), Vr = (e) => ({
|
|
1522
|
-
[`&:disabled, &${e.componentCls}-disabled`]: Object.assign({}, Fr(e))
|
|
1523
|
-
}), Ur = (e) => ({
|
|
1524
|
-
[`&:disabled, &${e.componentCls}-disabled`]: {
|
|
1525
|
-
cursor: "not-allowed",
|
|
1526
|
-
color: e.colorTextDisabled
|
|
1527
|
-
}
|
|
1528
|
-
}), ve = (e, t, o, r) => {
|
|
1529
|
-
const a = r && ["link", "text"].includes(r) ? Ur : Vr;
|
|
1530
|
-
return Object.assign(Object.assign({}, a(e)), Ft(e.componentCls, t, o));
|
|
1531
|
-
}, be = (e, t, o, r, n) => ({
|
|
1532
|
-
[`&${e.componentCls}-variant-solid`]: Object.assign({
|
|
1533
|
-
color: t,
|
|
1534
|
-
background: o
|
|
1535
|
-
}, ve(e, r, n))
|
|
1536
|
-
}), Ce = (e, t, o, r, n) => ({
|
|
1537
|
-
[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]: Object.assign({
|
|
1538
|
-
borderColor: t,
|
|
1539
|
-
background: o
|
|
1540
|
-
}, ve(e, r, n))
|
|
1541
|
-
}), he = (e) => ({
|
|
1542
|
-
[`&${e.componentCls}-variant-dashed`]: {
|
|
1543
|
-
borderStyle: "dashed"
|
|
1544
|
-
}
|
|
1545
|
-
}), ye = (e, t, o, r) => ({
|
|
1546
|
-
[`&${e.componentCls}-variant-filled`]: Object.assign({
|
|
1547
|
-
boxShadow: "none",
|
|
1548
|
-
background: t
|
|
1549
|
-
}, ve(e, o, r))
|
|
1550
|
-
}), W = (e, t, o, r, n) => ({
|
|
1551
|
-
[`&${e.componentCls}-variant-${o}`]: Object.assign({
|
|
1552
|
-
color: t,
|
|
1553
|
-
boxShadow: "none"
|
|
1554
|
-
}, ve(e, r, n, o))
|
|
1555
|
-
}), qr = (e) => {
|
|
1556
|
-
const {
|
|
1557
|
-
componentCls: t
|
|
1558
|
-
} = e;
|
|
1559
|
-
return Ve.reduce((o, r) => {
|
|
1560
|
-
const n = e[`${r}6`], a = e[`${r}1`], i = e[`${r}5`], l = e[`${r}2`], s = e[`${r}3`], u = e[`${r}7`];
|
|
1561
|
-
return Object.assign(Object.assign({}, o), {
|
|
1562
|
-
[`&${t}-color-${r}`]: Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
|
|
1563
|
-
color: n,
|
|
1564
|
-
boxShadow: e[`${r}ShadowColor`]
|
|
1565
|
-
}, be(e, e.colorTextLightSolid, n, {
|
|
1566
|
-
background: i
|
|
1567
|
-
}, {
|
|
1568
|
-
background: u
|
|
1569
|
-
})), Ce(e, n, e.colorBgContainer, {
|
|
1570
|
-
color: i,
|
|
1571
|
-
borderColor: i,
|
|
1572
|
-
background: e.colorBgContainer
|
|
1573
|
-
}, {
|
|
1574
|
-
color: u,
|
|
1575
|
-
borderColor: u,
|
|
1576
|
-
background: e.colorBgContainer
|
|
1577
|
-
})), he(e)), ye(e, a, {
|
|
1578
|
-
background: l
|
|
1579
|
-
}, {
|
|
1580
|
-
background: s
|
|
1581
|
-
})), W(e, n, "link", {
|
|
1582
|
-
color: i
|
|
1583
|
-
}, {
|
|
1584
|
-
color: u
|
|
1585
|
-
})), W(e, n, "text", {
|
|
1586
|
-
color: i,
|
|
1587
|
-
background: a
|
|
1588
|
-
}, {
|
|
1589
|
-
color: u,
|
|
1590
|
-
background: s
|
|
1591
|
-
}))
|
|
1592
|
-
});
|
|
1593
|
-
}, {});
|
|
1594
|
-
}, Xr = (e) => Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
|
|
1595
|
-
color: e.defaultColor,
|
|
1596
|
-
boxShadow: e.defaultShadow
|
|
1597
|
-
}, be(e, e.solidTextColor, e.colorBgSolid, {
|
|
1598
|
-
color: e.solidTextColor,
|
|
1599
|
-
background: e.colorBgSolidHover
|
|
1600
|
-
}, {
|
|
1601
|
-
color: e.solidTextColor,
|
|
1602
|
-
background: e.colorBgSolidActive
|
|
1603
|
-
})), he(e)), ye(e, e.colorFillTertiary, {
|
|
1604
|
-
background: e.colorFillSecondary
|
|
1605
|
-
}, {
|
|
1606
|
-
background: e.colorFill
|
|
1607
|
-
})), pe(e.componentCls, e.ghostBg, e.defaultGhostColor, e.defaultGhostBorderColor, e.colorTextDisabled, e.colorBorder)), W(e, e.textTextColor, "link", {
|
|
1608
|
-
color: e.colorLinkHover,
|
|
1609
|
-
background: e.linkHoverBg
|
|
1610
|
-
}, {
|
|
1611
|
-
color: e.colorLinkActive
|
|
1612
|
-
})), Zr = (e) => Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
|
|
1613
|
-
color: e.colorPrimary,
|
|
1614
|
-
boxShadow: e.primaryShadow
|
|
1615
|
-
}, Ce(e, e.colorPrimary, e.colorBgContainer, {
|
|
1616
|
-
color: e.colorPrimaryTextHover,
|
|
1617
|
-
borderColor: e.colorPrimaryHover,
|
|
1618
|
-
background: e.colorBgContainer
|
|
1619
|
-
}, {
|
|
1620
|
-
color: e.colorPrimaryTextActive,
|
|
1621
|
-
borderColor: e.colorPrimaryActive,
|
|
1622
|
-
background: e.colorBgContainer
|
|
1623
|
-
})), he(e)), ye(e, e.colorPrimaryBg, {
|
|
1624
|
-
background: e.colorPrimaryBgHover
|
|
1625
|
-
}, {
|
|
1626
|
-
background: e.colorPrimaryBorder
|
|
1627
|
-
})), W(e, e.colorPrimaryText, "text", {
|
|
1628
|
-
color: e.colorPrimaryTextHover,
|
|
1629
|
-
background: e.colorPrimaryBg
|
|
1630
|
-
}, {
|
|
1631
|
-
color: e.colorPrimaryTextActive,
|
|
1632
|
-
background: e.colorPrimaryBorder
|
|
1633
|
-
})), W(e, e.colorPrimaryText, "link", {
|
|
1634
|
-
color: e.colorPrimaryTextHover,
|
|
1635
|
-
background: e.linkHoverBg
|
|
1636
|
-
}, {
|
|
1637
|
-
color: e.colorPrimaryTextActive
|
|
1638
|
-
})), pe(e.componentCls, e.ghostBg, e.colorPrimary, e.colorPrimary, e.colorTextDisabled, e.colorBorder, {
|
|
1639
|
-
color: e.colorPrimaryHover,
|
|
1640
|
-
borderColor: e.colorPrimaryHover
|
|
1641
|
-
}, {
|
|
1642
|
-
color: e.colorPrimaryActive,
|
|
1643
|
-
borderColor: e.colorPrimaryActive
|
|
1644
|
-
})), Yr = (e) => Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({
|
|
1645
|
-
color: e.colorError,
|
|
1646
|
-
boxShadow: e.dangerShadow
|
|
1647
|
-
}, be(e, e.dangerColor, e.colorError, {
|
|
1648
|
-
background: e.colorErrorHover
|
|
1649
|
-
}, {
|
|
1650
|
-
background: e.colorErrorActive
|
|
1651
|
-
})), Ce(e, e.colorError, e.colorBgContainer, {
|
|
1652
|
-
color: e.colorErrorHover,
|
|
1653
|
-
borderColor: e.colorErrorBorderHover
|
|
1654
|
-
}, {
|
|
1655
|
-
color: e.colorErrorActive,
|
|
1656
|
-
borderColor: e.colorErrorActive
|
|
1657
|
-
})), he(e)), ye(e, e.colorErrorBg, {
|
|
1658
|
-
background: e.colorErrorBgFilledHover
|
|
1659
|
-
}, {
|
|
1660
|
-
background: e.colorErrorBgActive
|
|
1661
|
-
})), W(e, e.colorError, "text", {
|
|
1662
|
-
color: e.colorErrorHover,
|
|
1663
|
-
background: e.colorErrorBg
|
|
1664
|
-
}, {
|
|
1665
|
-
color: e.colorErrorHover,
|
|
1666
|
-
background: e.colorErrorBgActive
|
|
1667
|
-
})), W(e, e.colorError, "link", {
|
|
1668
|
-
color: e.colorErrorHover
|
|
1669
|
-
}, {
|
|
1670
|
-
color: e.colorErrorActive
|
|
1671
|
-
})), pe(e.componentCls, e.ghostBg, e.colorError, e.colorError, e.colorTextDisabled, e.colorBorder, {
|
|
1672
|
-
color: e.colorErrorHover,
|
|
1673
|
-
borderColor: e.colorErrorHover
|
|
1674
|
-
}, {
|
|
1675
|
-
color: e.colorErrorActive,
|
|
1676
|
-
borderColor: e.colorErrorActive
|
|
1677
|
-
})), Kr = (e) => Object.assign(Object.assign({}, W(e, e.colorLink, "link", {
|
|
1678
|
-
color: e.colorLinkHover
|
|
1679
|
-
}, {
|
|
1680
|
-
color: e.colorLinkActive
|
|
1681
|
-
})), pe(e.componentCls, e.ghostBg, e.colorInfo, e.colorInfo, e.colorTextDisabled, e.colorBorder, {
|
|
1682
|
-
color: e.colorInfoHover,
|
|
1683
|
-
borderColor: e.colorInfoHover
|
|
1684
|
-
}, {
|
|
1685
|
-
color: e.colorInfoActive,
|
|
1686
|
-
borderColor: e.colorInfoActive
|
|
1687
|
-
})), Jr = (e) => {
|
|
1688
|
-
const {
|
|
1689
|
-
componentCls: t
|
|
1690
|
-
} = e;
|
|
1691
|
-
return Object.assign({
|
|
1692
|
-
[`${t}-color-default`]: Xr(e),
|
|
1693
|
-
[`${t}-color-primary`]: Zr(e),
|
|
1694
|
-
[`${t}-color-dangerous`]: Yr(e),
|
|
1695
|
-
[`${t}-color-link`]: Kr(e)
|
|
1696
|
-
}, qr(e));
|
|
1697
|
-
}, Qr = (e) => Object.assign(Object.assign(Object.assign(Object.assign({}, Ce(e, e.defaultBorderColor, e.defaultBg, {
|
|
1698
|
-
color: e.defaultHoverColor,
|
|
1699
|
-
borderColor: e.defaultHoverBorderColor,
|
|
1700
|
-
background: e.defaultHoverBg
|
|
1701
|
-
}, {
|
|
1702
|
-
color: e.defaultActiveColor,
|
|
1703
|
-
borderColor: e.defaultActiveBorderColor,
|
|
1704
|
-
background: e.defaultActiveBg
|
|
1705
|
-
})), W(e, e.textTextColor, "text", {
|
|
1706
|
-
color: e.textTextHoverColor,
|
|
1707
|
-
background: e.textHoverBg
|
|
1708
|
-
}, {
|
|
1709
|
-
color: e.textTextActiveColor,
|
|
1710
|
-
background: e.colorBgTextActive
|
|
1711
|
-
})), be(e, e.primaryColor, e.colorPrimary, {
|
|
1712
|
-
background: e.colorPrimaryHover,
|
|
1713
|
-
color: e.primaryColor
|
|
1714
|
-
}, {
|
|
1715
|
-
background: e.colorPrimaryActive,
|
|
1716
|
-
color: e.primaryColor
|
|
1717
|
-
})), W(e, e.colorLink, "link", {
|
|
1718
|
-
color: e.colorLinkHover,
|
|
1719
|
-
background: e.linkHoverBg
|
|
1720
|
-
}, {
|
|
1721
|
-
color: e.colorLinkActive
|
|
1722
|
-
})), Ue = (e, t = "") => {
|
|
1723
|
-
const {
|
|
1724
|
-
componentCls: o,
|
|
1725
|
-
controlHeight: r,
|
|
1726
|
-
fontSize: n,
|
|
1727
|
-
borderRadius: a,
|
|
1728
|
-
buttonPaddingHorizontal: i,
|
|
1729
|
-
iconCls: l,
|
|
1730
|
-
buttonPaddingVertical: s,
|
|
1731
|
-
buttonIconOnlyFontSize: u
|
|
1732
|
-
} = e;
|
|
1733
|
-
return [
|
|
1734
|
-
{
|
|
1735
|
-
[t]: {
|
|
1736
|
-
fontSize: n,
|
|
1737
|
-
height: r,
|
|
1738
|
-
padding: `${ue(s)} ${ue(i)}`,
|
|
1739
|
-
borderRadius: a,
|
|
1740
|
-
[`&${o}-icon-only`]: {
|
|
1741
|
-
width: r,
|
|
1742
|
-
[l]: {
|
|
1743
|
-
fontSize: u
|
|
1744
|
-
}
|
|
1745
|
-
}
|
|
1746
|
-
}
|
|
1747
|
-
},
|
|
1748
|
-
// Shape - patch prefixCls again to override solid border radius style
|
|
1749
|
-
{
|
|
1750
|
-
[`${o}${o}-circle${t}`]: Wr(e)
|
|
1751
|
-
},
|
|
1752
|
-
{
|
|
1753
|
-
[`${o}${o}-round${t}`]: Gr(e)
|
|
1754
|
-
}
|
|
1755
|
-
];
|
|
1756
|
-
}, kr = (e) => {
|
|
1757
|
-
const t = re(e, {
|
|
1758
|
-
fontSize: e.contentFontSize
|
|
1759
|
-
});
|
|
1760
|
-
return Ue(t, e.componentCls);
|
|
1761
|
-
}, en = (e) => {
|
|
1762
|
-
const t = re(e, {
|
|
1763
|
-
controlHeight: e.controlHeightSM,
|
|
1764
|
-
fontSize: e.contentFontSizeSM,
|
|
1765
|
-
padding: e.paddingXS,
|
|
1766
|
-
buttonPaddingHorizontal: e.paddingInlineSM,
|
|
1767
|
-
buttonPaddingVertical: 0,
|
|
1768
|
-
borderRadius: e.borderRadiusSM,
|
|
1769
|
-
buttonIconOnlyFontSize: e.onlyIconSizeSM
|
|
1770
|
-
});
|
|
1771
|
-
return Ue(t, `${e.componentCls}-sm`);
|
|
1772
|
-
}, tn = (e) => {
|
|
1773
|
-
const t = re(e, {
|
|
1774
|
-
controlHeight: e.controlHeightLG,
|
|
1775
|
-
fontSize: e.contentFontSizeLG,
|
|
1776
|
-
buttonPaddingHorizontal: e.paddingInlineLG,
|
|
1777
|
-
buttonPaddingVertical: 0,
|
|
1778
|
-
borderRadius: e.borderRadiusLG,
|
|
1779
|
-
buttonIconOnlyFontSize: e.onlyIconSizeLG
|
|
1780
|
-
});
|
|
1781
|
-
return Ue(t, `${e.componentCls}-lg`);
|
|
1782
|
-
}, on = (e) => {
|
|
1783
|
-
const {
|
|
1784
|
-
componentCls: t
|
|
1785
|
-
} = e;
|
|
1786
|
-
return {
|
|
1787
|
-
[t]: {
|
|
1788
|
-
[`&${t}-block`]: {
|
|
1789
|
-
width: "100%"
|
|
1790
|
-
}
|
|
1791
|
-
}
|
|
1792
|
-
};
|
|
1793
|
-
}, rn = ht("Button", (e) => {
|
|
1794
|
-
const t = Wt(e);
|
|
1795
|
-
return [
|
|
1796
|
-
// Shared
|
|
1797
|
-
Mr(t),
|
|
1798
|
-
// Size
|
|
1799
|
-
kr(t),
|
|
1800
|
-
en(t),
|
|
1801
|
-
tn(t),
|
|
1802
|
-
// Block
|
|
1803
|
-
on(t),
|
|
1804
|
-
// Color
|
|
1805
|
-
Jr(t),
|
|
1806
|
-
// https://github.com/ant-design/ant-design/issues/50969
|
|
1807
|
-
Qr(t),
|
|
1808
|
-
// Button Group
|
|
1809
|
-
ur(t)
|
|
1810
|
-
];
|
|
1811
|
-
}, Gt, {
|
|
1812
|
-
unitless: {
|
|
1813
|
-
fontWeight: !0,
|
|
1814
|
-
contentLineHeight: !0,
|
|
1815
|
-
contentLineHeightSM: !0,
|
|
1816
|
-
contentLineHeightLG: !0
|
|
1817
|
-
}
|
|
1818
|
-
});
|
|
1819
|
-
function nn(e, t, o) {
|
|
1820
|
-
const {
|
|
1821
|
-
focusElCls: r,
|
|
1822
|
-
focus: n,
|
|
1823
|
-
borderElCls: a
|
|
1824
|
-
} = o, i = a ? "> *" : "", l = ["hover", n ? "focus" : null, "active"].filter(Boolean).map((s) => `&:${s} ${i}`).join(",");
|
|
1825
|
-
return {
|
|
1826
|
-
[`&-item:not(${t}-last-item)`]: {
|
|
1827
|
-
marginInlineEnd: e.calc(e.lineWidth).mul(-1).equal()
|
|
1828
|
-
},
|
|
1829
|
-
"&-item": Object.assign(Object.assign({
|
|
1830
|
-
[l]: {
|
|
1831
|
-
zIndex: 2
|
|
1832
|
-
}
|
|
1833
|
-
}, r ? {
|
|
1834
|
-
[`&${r}`]: {
|
|
1835
|
-
zIndex: 2
|
|
1836
|
-
}
|
|
1837
|
-
} : {}), {
|
|
1838
|
-
[`&[disabled] ${i}`]: {
|
|
1839
|
-
zIndex: 0
|
|
1840
|
-
}
|
|
1841
|
-
})
|
|
1842
|
-
};
|
|
1843
|
-
}
|
|
1844
|
-
function an(e, t, o) {
|
|
1845
|
-
const {
|
|
1846
|
-
borderElCls: r
|
|
1847
|
-
} = o, n = r ? `> ${r}` : "";
|
|
1848
|
-
return {
|
|
1849
|
-
[`&-item:not(${t}-first-item):not(${t}-last-item) ${n}`]: {
|
|
1850
|
-
borderRadius: 0
|
|
1851
|
-
},
|
|
1852
|
-
[`&-item:not(${t}-last-item)${t}-first-item`]: {
|
|
1853
|
-
[`& ${n}, &${e}-sm ${n}, &${e}-lg ${n}`]: {
|
|
1854
|
-
borderStartEndRadius: 0,
|
|
1855
|
-
borderEndEndRadius: 0
|
|
1856
|
-
}
|
|
1857
|
-
},
|
|
1858
|
-
[`&-item:not(${t}-first-item)${t}-last-item`]: {
|
|
1859
|
-
[`& ${n}, &${e}-sm ${n}, &${e}-lg ${n}`]: {
|
|
1860
|
-
borderStartStartRadius: 0,
|
|
1861
|
-
borderEndStartRadius: 0
|
|
1862
|
-
}
|
|
1863
|
-
}
|
|
1864
|
-
};
|
|
1865
|
-
}
|
|
1866
|
-
function ln(e, t = {
|
|
1867
|
-
focus: !0
|
|
1868
|
-
}) {
|
|
1869
|
-
const {
|
|
1870
|
-
componentCls: o
|
|
1871
|
-
} = e, r = `${o}-compact`;
|
|
1872
|
-
return {
|
|
1873
|
-
[r]: Object.assign(Object.assign({}, nn(e, r, t)), an(o, r, t))
|
|
1874
|
-
};
|
|
1875
|
-
}
|
|
1876
|
-
function sn(e, t) {
|
|
1877
|
-
return {
|
|
1878
|
-
// border collapse
|
|
1879
|
-
[`&-item:not(${t}-last-item)`]: {
|
|
1880
|
-
marginBottom: e.calc(e.lineWidth).mul(-1).equal()
|
|
1881
|
-
},
|
|
1882
|
-
"&-item": {
|
|
1883
|
-
"&:hover,&:focus,&:active": {
|
|
1884
|
-
zIndex: 2
|
|
1885
|
-
},
|
|
1886
|
-
"&[disabled]": {
|
|
1887
|
-
zIndex: 0
|
|
1888
|
-
}
|
|
1889
|
-
}
|
|
1890
|
-
};
|
|
1891
|
-
}
|
|
1892
|
-
function cn(e, t) {
|
|
1893
|
-
return {
|
|
1894
|
-
[`&-item:not(${t}-first-item):not(${t}-last-item)`]: {
|
|
1895
|
-
borderRadius: 0
|
|
1896
|
-
},
|
|
1897
|
-
[`&-item${t}-first-item:not(${t}-last-item)`]: {
|
|
1898
|
-
[`&, &${e}-sm, &${e}-lg`]: {
|
|
1899
|
-
borderEndEndRadius: 0,
|
|
1900
|
-
borderEndStartRadius: 0
|
|
1901
|
-
}
|
|
1902
|
-
},
|
|
1903
|
-
[`&-item${t}-last-item:not(${t}-first-item)`]: {
|
|
1904
|
-
[`&, &${e}-sm, &${e}-lg`]: {
|
|
1905
|
-
borderStartStartRadius: 0,
|
|
1906
|
-
borderStartEndRadius: 0
|
|
1907
|
-
}
|
|
1908
|
-
}
|
|
1909
|
-
};
|
|
1910
|
-
}
|
|
1911
|
-
function un(e) {
|
|
1912
|
-
const t = `${e.componentCls}-compact-vertical`;
|
|
1913
|
-
return {
|
|
1914
|
-
[t]: Object.assign(Object.assign({}, sn(e, t)), cn(e.componentCls, t))
|
|
1915
|
-
};
|
|
1916
|
-
}
|
|
1917
|
-
const dn = (e) => {
|
|
1918
|
-
const {
|
|
1919
|
-
componentCls: t,
|
|
1920
|
-
colorPrimaryHover: o,
|
|
1921
|
-
lineWidth: r,
|
|
1922
|
-
calc: n
|
|
1923
|
-
} = e, a = n(r).mul(-1).equal(), i = (l) => {
|
|
1924
|
-
const s = `${t}-compact${l ? "-vertical" : ""}-item${t}-primary:not([disabled])`;
|
|
1925
|
-
return {
|
|
1926
|
-
[`${s} + ${s}::before`]: {
|
|
1927
|
-
position: "absolute",
|
|
1928
|
-
top: l ? a : 0,
|
|
1929
|
-
insetInlineStart: l ? 0 : a,
|
|
1930
|
-
backgroundColor: o,
|
|
1931
|
-
content: '""',
|
|
1932
|
-
width: l ? "100%" : r,
|
|
1933
|
-
height: l ? r : "100%"
|
|
1934
|
-
}
|
|
1935
|
-
};
|
|
1936
|
-
};
|
|
1937
|
-
return Object.assign(Object.assign({}, i()), i(!0));
|
|
1938
|
-
}, mn = Co(["Button", "compact"], (e) => {
|
|
1939
|
-
const t = Wt(e);
|
|
1940
|
-
return [
|
|
1941
|
-
// Space Compact
|
|
1942
|
-
ln(t),
|
|
1943
|
-
un(t),
|
|
1944
|
-
dn(t)
|
|
1945
|
-
];
|
|
1946
|
-
}, Gt);
|
|
1947
|
-
var gn = function(e, t) {
|
|
1948
|
-
var o = {};
|
|
1949
|
-
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (o[r] = e[r]);
|
|
1950
|
-
if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var n = 0, r = Object.getOwnPropertySymbols(e); n < r.length; n++)
|
|
1951
|
-
t.indexOf(r[n]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[n]) && (o[r[n]] = e[r[n]]);
|
|
1952
|
-
return o;
|
|
1953
|
-
};
|
|
1954
|
-
function fn(e) {
|
|
1955
|
-
if (typeof e == "object" && e) {
|
|
1956
|
-
let t = e == null ? void 0 : e.delay;
|
|
1957
|
-
return t = !Number.isNaN(t) && typeof t == "number" ? t : 0, {
|
|
1958
|
-
loading: t <= 0,
|
|
1959
|
-
delay: t
|
|
1960
|
-
};
|
|
1961
|
-
}
|
|
1962
|
-
return {
|
|
1963
|
-
loading: !!e,
|
|
1964
|
-
delay: 0
|
|
1965
|
-
};
|
|
1966
|
-
}
|
|
1967
|
-
const pn = {
|
|
1968
|
-
default: ["default", "outlined"],
|
|
1969
|
-
primary: ["primary", "solid"],
|
|
1970
|
-
dashed: ["default", "dashed"],
|
|
1971
|
-
// `link` is not a real color but we should compatible with it
|
|
1972
|
-
link: ["link", "link"],
|
|
1973
|
-
text: ["default", "text"]
|
|
1974
|
-
}, vn = /* @__PURE__ */ c.forwardRef((e, t) => {
|
|
1975
|
-
var o, r;
|
|
1976
|
-
const {
|
|
1977
|
-
loading: n = !1,
|
|
1978
|
-
prefixCls: a,
|
|
1979
|
-
color: i,
|
|
1980
|
-
variant: l,
|
|
1981
|
-
type: s,
|
|
1982
|
-
danger: u = !1,
|
|
1983
|
-
shape: d = "default",
|
|
1984
|
-
size: g,
|
|
1985
|
-
styles: p,
|
|
1986
|
-
disabled: C,
|
|
1987
|
-
className: h,
|
|
1988
|
-
rootClassName: x,
|
|
1989
|
-
children: f,
|
|
1990
|
-
icon: b,
|
|
1991
|
-
iconPosition: B = "start",
|
|
1992
|
-
ghost: E = !1,
|
|
1993
|
-
block: v = !1,
|
|
1994
|
-
// React does not recognize the `htmlType` prop on a DOM element. Here we pick it out of `rest`.
|
|
1995
|
-
htmlType: y = "button",
|
|
1996
|
-
classNames: N,
|
|
1997
|
-
style: j = {},
|
|
1998
|
-
autoInsertSpace: S,
|
|
1999
|
-
autoFocus: I
|
|
2000
|
-
} = e, P = gn(e, ["loading", "prefixCls", "color", "variant", "type", "danger", "shape", "size", "styles", "disabled", "className", "rootClassName", "children", "icon", "iconPosition", "ghost", "block", "htmlType", "classNames", "style", "autoInsertSpace", "autoFocus"]), _ = s || "default", {
|
|
2001
|
-
button: O
|
|
2002
|
-
} = c.useContext(k), [G, z] = oe(() => {
|
|
2003
|
-
if (i && l)
|
|
2004
|
-
return [i, l];
|
|
2005
|
-
if (s || u) {
|
|
2006
|
-
const w = pn[_] || [];
|
|
2007
|
-
return u ? ["danger", w[1]] : w;
|
|
2008
|
-
}
|
|
2009
|
-
return O != null && O.color && (O != null && O.variant) ? [O.color, O.variant] : ["default", "outlined"];
|
|
2010
|
-
}, [s, i, l, u, O == null ? void 0 : O.variant, O == null ? void 0 : O.color]), A = G === "danger" ? "dangerous" : G, {
|
|
2011
|
-
getPrefixCls: Z,
|
|
2012
|
-
direction: D,
|
|
2013
|
-
autoInsertSpace: R,
|
|
2014
|
-
className: ee,
|
|
2015
|
-
style: Vt,
|
|
2016
|
-
classNames: Ut,
|
|
2017
|
-
styles: qt
|
|
2018
|
-
} = ho("button"), Se = (o = S ?? R) !== null && o !== void 0 ? o : !0, $ = Z("btn", a), [Xe, Xt, Zt] = rn($), Yt = _e(yo), Y = C ?? Yt, Kt = _e(_t), K = oe(() => fn(n), [n]), [X, Ze] = je(K.loading), [xe, Ye] = je(!1), te = L(null), Ke = So(t, te), Je = eo.count(f) === 1 && !b && !ae(z), Ee = L(!0);
|
|
2019
|
-
c.useEffect(() => (Ee.current = !1, () => {
|
|
2020
|
-
Ee.current = !0;
|
|
2021
|
-
}), []), to(() => {
|
|
2022
|
-
let w = null;
|
|
2023
|
-
K.delay > 0 ? w = setTimeout(() => {
|
|
2024
|
-
w = null, Ze(!0);
|
|
2025
|
-
}, K.delay) : Ze(K.loading);
|
|
2026
|
-
function F() {
|
|
2027
|
-
w && (clearTimeout(w), w = null);
|
|
2028
|
-
}
|
|
2029
|
-
return F;
|
|
2030
|
-
}, [K.delay, K.loading]), le(() => {
|
|
2031
|
-
if (!te.current || !Se)
|
|
2032
|
-
return;
|
|
2033
|
-
const w = te.current.textContent || "";
|
|
2034
|
-
Je && Ae(w) ? xe || Ye(!0) : xe && Ye(!1);
|
|
2035
|
-
}), le(() => {
|
|
2036
|
-
I && te.current && te.current.focus();
|
|
2037
|
-
}, []);
|
|
2038
|
-
const Qe = c.useCallback((w) => {
|
|
2039
|
-
var F;
|
|
2040
|
-
if (X || Y) {
|
|
2041
|
-
w.preventDefault();
|
|
2042
|
-
return;
|
|
2043
|
-
}
|
|
2044
|
-
(F = e.onClick) === null || F === void 0 || F.call(e, ("href" in e, w));
|
|
2045
|
-
}, [e.onClick, X, Y]);
|
|
2046
|
-
if (process.env.NODE_ENV !== "production") {
|
|
2047
|
-
const w = Ge("Button");
|
|
2048
|
-
process.env.NODE_ENV !== "production" && w(!(typeof b == "string" && b.length > 2), "breaking", `\`icon\` is using ReactNode instead of string naming in v4. Please check \`${b}\` at https://ant.design/components/icon`), process.env.NODE_ENV !== "production" && w(!(E && ae(z)), "usage", "`link` or `text` button can't be a `ghost` button.");
|
|
2049
|
-
}
|
|
2050
|
-
const {
|
|
2051
|
-
compactSize: Jt,
|
|
2052
|
-
compactItemClassnames: ke
|
|
2053
|
-
} = or($, D), Qt = {
|
|
2054
|
-
large: "lg",
|
|
2055
|
-
small: "sm",
|
|
2056
|
-
middle: void 0
|
|
2057
|
-
}, et = yt((w) => {
|
|
2058
|
-
var F, Ie;
|
|
2059
|
-
return (Ie = (F = g ?? Jt) !== null && F !== void 0 ? F : Kt) !== null && Ie !== void 0 ? Ie : w;
|
|
2060
|
-
}), tt = et && (r = Qt[et]) !== null && r !== void 0 ? r : "", kt = X ? "loading" : b, Oe = xo(P, ["navigate"]), ot = H($, Xt, Zt, {
|
|
2061
|
-
[`${$}-${d}`]: d !== "default" && d,
|
|
2062
|
-
// Compatible with versions earlier than 5.21.0
|
|
2063
|
-
[`${$}-${_}`]: _,
|
|
2064
|
-
[`${$}-dangerous`]: u,
|
|
2065
|
-
[`${$}-color-${A}`]: A,
|
|
2066
|
-
[`${$}-variant-${z}`]: z,
|
|
2067
|
-
[`${$}-${tt}`]: tt,
|
|
2068
|
-
[`${$}-icon-only`]: !f && f !== 0 && !!kt,
|
|
2069
|
-
[`${$}-background-ghost`]: E && !ae(z),
|
|
2070
|
-
[`${$}-loading`]: X,
|
|
2071
|
-
[`${$}-two-chinese-chars`]: xe && Se && !X,
|
|
2072
|
-
[`${$}-block`]: v,
|
|
2073
|
-
[`${$}-rtl`]: D === "rtl",
|
|
2074
|
-
[`${$}-icon-end`]: B === "end"
|
|
2075
|
-
}, ke, h, x, ee), rt = Object.assign(Object.assign({}, Vt), j), nt = H(N == null ? void 0 : N.icon, Ut.icon), at = Object.assign(Object.assign({}, (p == null ? void 0 : p.icon) || {}), qt.icon || {}), it = b && !X ? /* @__PURE__ */ c.createElement(Me, {
|
|
2076
|
-
prefixCls: $,
|
|
2077
|
-
className: nt,
|
|
2078
|
-
style: at
|
|
2079
|
-
}, b) : n && typeof n == "object" && n.icon ? /* @__PURE__ */ c.createElement(Me, {
|
|
2080
|
-
prefixCls: $,
|
|
2081
|
-
className: nt,
|
|
2082
|
-
style: at
|
|
2083
|
-
}, n.icon) : /* @__PURE__ */ c.createElement(cr, {
|
|
2084
|
-
existIcon: !!b,
|
|
2085
|
-
prefixCls: $,
|
|
2086
|
-
loading: X,
|
|
2087
|
-
mount: Ee.current
|
|
2088
|
-
}), lt = f || f === 0 ? sr(f, Je && Se) : null;
|
|
2089
|
-
if (Oe.href !== void 0)
|
|
2090
|
-
return Xe(/* @__PURE__ */ c.createElement("a", Object.assign({}, Oe, {
|
|
2091
|
-
className: H(ot, {
|
|
2092
|
-
[`${$}-disabled`]: Y
|
|
2093
|
-
}),
|
|
2094
|
-
href: Y ? void 0 : Oe.href,
|
|
2095
|
-
style: rt,
|
|
2096
|
-
onClick: Qe,
|
|
2097
|
-
ref: Ke,
|
|
2098
|
-
tabIndex: Y ? -1 : 0
|
|
2099
|
-
}), it, lt));
|
|
2100
|
-
let $e = /* @__PURE__ */ c.createElement("button", Object.assign({}, P, {
|
|
2101
|
-
type: y,
|
|
2102
|
-
className: ot,
|
|
2103
|
-
style: rt,
|
|
2104
|
-
onClick: Qe,
|
|
2105
|
-
disabled: Y,
|
|
2106
|
-
ref: Ke
|
|
2107
|
-
}), it, lt, ke && /* @__PURE__ */ c.createElement(mn, {
|
|
2108
|
-
prefixCls: $
|
|
2109
|
-
}));
|
|
2110
|
-
return ae(z) || ($e = /* @__PURE__ */ c.createElement(zt, {
|
|
2111
|
-
component: "Button",
|
|
2112
|
-
disabled: X
|
|
2113
|
-
}, $e)), Xe($e);
|
|
2114
|
-
}), qe = vn;
|
|
2115
|
-
qe.Group = ir;
|
|
2116
|
-
qe.__ANT_BUTTON = !0;
|
|
2117
|
-
process.env.NODE_ENV !== "production" && (qe.displayName = "Button");
|
|
2118
|
-
const In = (e) => {
|
|
2119
|
-
const {
|
|
2120
|
-
space: t,
|
|
2121
|
-
form: o,
|
|
2122
|
-
children: r
|
|
2123
|
-
} = e;
|
|
2124
|
-
if (r == null)
|
|
2125
|
-
return null;
|
|
2126
|
-
let n = r;
|
|
2127
|
-
return o && (n = /* @__PURE__ */ c.createElement(Eo, {
|
|
2128
|
-
override: !0,
|
|
2129
|
-
status: !0
|
|
2130
|
-
}, n)), t && (n = /* @__PURE__ */ c.createElement(rr, null, n)), n;
|
|
2131
|
-
};
|
|
2132
|
-
function bn(e) {
|
|
2133
|
-
return (t) => /* @__PURE__ */ m.createElement(Oo, {
|
|
2134
|
-
theme: {
|
|
2135
|
-
token: {
|
|
2136
|
-
motion: !1,
|
|
2137
|
-
zIndexPopupBase: 0
|
|
2138
|
-
}
|
|
2139
|
-
}
|
|
2140
|
-
}, /* @__PURE__ */ m.createElement(e, Object.assign({}, t)));
|
|
2141
|
-
}
|
|
2142
|
-
const Rn = (e, t, o, r, n) => bn((i) => {
|
|
2143
|
-
const {
|
|
2144
|
-
prefixCls: l,
|
|
2145
|
-
style: s
|
|
2146
|
-
} = i, u = m.useRef(null), [d, g] = m.useState(0), [p, C] = m.useState(0), [h, x] = $t(!1, {
|
|
2147
|
-
value: i.open
|
|
2148
|
-
}), {
|
|
2149
|
-
getPrefixCls: f
|
|
2150
|
-
} = m.useContext(k), b = f(r, l);
|
|
2151
|
-
m.useEffect(() => {
|
|
2152
|
-
if (x(!0), typeof ResizeObserver < "u") {
|
|
2153
|
-
const v = new ResizeObserver((N) => {
|
|
2154
|
-
const j = N[0].target;
|
|
2155
|
-
g(j.offsetHeight + 8), C(j.offsetWidth);
|
|
2156
|
-
}), y = setInterval(() => {
|
|
2157
|
-
var N;
|
|
2158
|
-
const j = n ? `.${n(b)}` : `.${b}-dropdown`, S = (N = u.current) === null || N === void 0 ? void 0 : N.querySelector(j);
|
|
2159
|
-
S && (clearInterval(y), v.observe(S));
|
|
2160
|
-
}, 10);
|
|
2161
|
-
return () => {
|
|
2162
|
-
clearInterval(y), v.disconnect();
|
|
2163
|
-
};
|
|
2164
|
-
}
|
|
2165
|
-
}, []);
|
|
2166
|
-
let B = Object.assign(Object.assign({}, i), {
|
|
2167
|
-
style: Object.assign(Object.assign({}, s), {
|
|
2168
|
-
margin: 0
|
|
2169
|
-
}),
|
|
2170
|
-
open: h,
|
|
2171
|
-
visible: h,
|
|
2172
|
-
getPopupContainer: () => u.current
|
|
2173
|
-
});
|
|
2174
|
-
Object.assign(B, {
|
|
2175
|
-
[t]: {
|
|
2176
|
-
overflow: {
|
|
2177
|
-
adjustX: !1,
|
|
2178
|
-
adjustY: !1
|
|
2179
|
-
}
|
|
2180
|
-
}
|
|
2181
|
-
});
|
|
2182
|
-
const E = {
|
|
2183
|
-
paddingBottom: d,
|
|
2184
|
-
position: "relative",
|
|
2185
|
-
minWidth: p
|
|
2186
|
-
};
|
|
2187
|
-
return /* @__PURE__ */ m.createElement("div", {
|
|
2188
|
-
ref: u,
|
|
2189
|
-
style: E
|
|
2190
|
-
}, /* @__PURE__ */ m.createElement(e, Object.assign({}, B)));
|
|
2191
|
-
});
|
|
2192
|
-
export {
|
|
2193
|
-
qe as B,
|
|
2194
|
-
In as C,
|
|
2195
|
-
Ve as P,
|
|
2196
|
-
No as a,
|
|
2197
|
-
Uo as b,
|
|
2198
|
-
On as c,
|
|
2199
|
-
$o as d,
|
|
2200
|
-
Rt as e,
|
|
2201
|
-
tr as f,
|
|
2202
|
-
Rn as g,
|
|
2203
|
-
En as h,
|
|
2204
|
-
$n as i,
|
|
2205
|
-
or as j,
|
|
2206
|
-
xn as u,
|
|
2207
|
-
bn as w,
|
|
2208
|
-
Bt as z
|
|
2209
|
-
};
|