ods-component-lib 1.22.2 → 1.22.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/index5.js +2 -3
- package/dist/_virtual/index5.js.map +1 -1
- package/dist/_virtual/index6.js +3 -2
- package/dist/_virtual/index6.js.map +1 -1
- package/dist/components/antd/currencyInput/CurrencySelect.js +15 -14
- package/dist/components/antd/currencyInput/CurrencySelect.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/StyleContext.js +6 -6
- package/dist/node_modules/@ant-design/cssinjs/es/StyleContext.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js +20 -20
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useGlobalCache.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js +101 -98
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/util/index.js +29 -27
- package/dist/node_modules/@ant-design/cssinjs/es/util/index.js.map +1 -1
- package/dist/node_modules/@rc-component/async-validator/es/index.js +20 -20
- package/dist/node_modules/@rc-component/async-validator/es/index.js.map +1 -1
- package/dist/node_modules/@rc-component/async-validator/es/messages.js +1 -0
- package/dist/node_modules/@rc-component/async-validator/es/messages.js.map +1 -1
- package/dist/node_modules/@rc-component/async-validator/es/rule/type.js +18 -8
- package/dist/node_modules/@rc-component/async-validator/es/rule/type.js.map +1 -1
- package/dist/node_modules/@rc-component/async-validator/es/util.js +1 -1
- package/dist/node_modules/@rc-component/async-validator/es/util.js.map +1 -1
- package/dist/node_modules/@rc-component/async-validator/es/validator/index.js +1 -0
- package/dist/node_modules/@rc-component/async-validator/es/validator/index.js.map +1 -1
- package/dist/node_modules/@rc-component/collapse/es/hooks/useItems.js +88 -68
- package/dist/node_modules/@rc-component/collapse/es/hooks/useItems.js.map +1 -1
- package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/Panel.js +75 -96
- package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/Panel.js.map +1 -1
- package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/index.js +22 -20
- package/dist/node_modules/@rc-component/dialog/es/Dialog/Content/index.js.map +1 -1
- package/dist/node_modules/@rc-component/dialog/es/Dialog/index.js +92 -100
- package/dist/node_modules/@rc-component/dialog/es/Dialog/index.js.map +1 -1
- package/dist/node_modules/@rc-component/dialog/es/DialogWrap.js +40 -29
- package/dist/node_modules/@rc-component/dialog/es/DialogWrap.js.map +1 -1
- package/dist/node_modules/@rc-component/form/es/hooks/useForm.js +115 -100
- package/dist/node_modules/@rc-component/form/es/hooks/useForm.js.map +1 -1
- package/dist/node_modules/@rc-component/form/es/utils/NameMap.js +28 -22
- package/dist/node_modules/@rc-component/form/es/utils/NameMap.js.map +1 -1
- package/dist/node_modules/@rc-component/form/es/utils/messages.js +1 -0
- package/dist/node_modules/@rc-component/form/es/utils/messages.js.map +1 -1
- package/dist/node_modules/@rc-component/image/es/Preview/index.js +111 -105
- package/dist/node_modules/@rc-component/image/es/Preview/index.js.map +1 -1
- package/dist/node_modules/@rc-component/portal/es/useEscKeyDown.js +42 -22
- package/dist/node_modules/@rc-component/portal/es/useEscKeyDown.js.map +1 -1
- package/dist/node_modules/@rc-component/resize-observer/es/SingleObserver/index.js +18 -54
- package/dist/node_modules/@rc-component/resize-observer/es/SingleObserver/index.js.map +1 -1
- package/dist/node_modules/@rc-component/resize-observer/es/index.js.map +1 -1
- package/dist/node_modules/@rc-component/resize-observer/es/useResizeObserver.js +50 -0
- package/dist/node_modules/@rc-component/resize-observer/es/useResizeObserver.js.map +1 -0
- package/dist/node_modules/@rc-component/select/es/SelectInput/Content/MultipleContent.js +50 -50
- package/dist/node_modules/@rc-component/select/es/SelectInput/Content/MultipleContent.js.map +1 -1
- package/dist/node_modules/@rc-component/select/es/SelectInput/index.js +85 -80
- package/dist/node_modules/@rc-component/select/es/SelectInput/index.js.map +1 -1
- package/dist/node_modules/@rc-component/table/es/VirtualTable/BodyGrid.js +85 -80
- package/dist/node_modules/@rc-component/table/es/VirtualTable/BodyGrid.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/Popup/index.js +74 -72
- package/dist/node_modules/@rc-component/trigger/es/Popup/index.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/UniqueProvider/index.js +10 -9
- package/dist/node_modules/@rc-component/trigger/es/UniqueProvider/index.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.js +27 -27
- package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/index.js +150 -140
- package/dist/node_modules/@rc-component/trigger/es/index.js.map +1 -1
- package/dist/node_modules/@rc-component/util/es/Dom/focus.js +65 -20
- package/dist/node_modules/@rc-component/util/es/Dom/focus.js.map +1 -1
- package/dist/node_modules/@rc-component/util/es/ref.js +1 -1
- package/dist/node_modules/antd/es/_util/wave/WaveEffect.js +53 -48
- package/dist/node_modules/antd/es/_util/wave/WaveEffect.js.map +1 -1
- package/dist/node_modules/antd/es/_util/wave/style.js +8 -7
- package/dist/node_modules/antd/es/_util/wave/style.js.map +1 -1
- package/dist/node_modules/antd/es/alert/Alert.js +133 -128
- package/dist/node_modules/antd/es/alert/Alert.js.map +1 -1
- package/dist/node_modules/antd/es/badge/Badge.js +29 -28
- package/dist/node_modules/antd/es/badge/Badge.js.map +1 -1
- package/dist/node_modules/antd/es/badge/style/index.js +1 -1
- package/dist/node_modules/antd/es/badge/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/button/buttonHelpers.js +47 -41
- package/dist/node_modules/antd/es/button/buttonHelpers.js.map +1 -1
- package/dist/node_modules/antd/es/button/style/variant.js +132 -132
- package/dist/node_modules/antd/es/button/style/variant.js.map +1 -1
- package/dist/node_modules/antd/es/calendar/generateCalendar.js +55 -57
- package/dist/node_modules/antd/es/calendar/generateCalendar.js.map +1 -1
- package/dist/node_modules/antd/es/calendar/style/index.js +18 -18
- package/dist/node_modules/antd/es/calendar/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/card/CardGrid.js.map +1 -1
- package/dist/node_modules/antd/es/card/style/index.js +15 -7
- package/dist/node_modules/antd/es/card/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/checkbox/Group.js +32 -30
- package/dist/node_modules/antd/es/checkbox/Group.js.map +1 -1
- package/dist/node_modules/antd/es/collapse/Collapse.js +61 -61
- package/dist/node_modules/antd/es/collapse/Collapse.js.map +1 -1
- package/dist/node_modules/antd/es/config-provider/index.js +76 -71
- package/dist/node_modules/antd/es/config-provider/index.js.map +1 -1
- package/dist/node_modules/antd/es/date-picker/generatePicker/generateRangePicker.js +29 -31
- package/dist/node_modules/antd/es/date-picker/generatePicker/generateRangePicker.js.map +1 -1
- package/dist/node_modules/antd/es/date-picker/generatePicker/generateSinglePicker.js +7 -9
- package/dist/node_modules/antd/es/date-picker/generatePicker/generateSinglePicker.js.map +1 -1
- package/dist/node_modules/antd/es/date-picker/generatePicker/{SuffixIcon.js → useSuffixIcon.js} +4 -4
- package/dist/node_modules/antd/es/date-picker/generatePicker/useSuffixIcon.js.map +1 -0
- package/dist/node_modules/antd/es/date-picker/style/panel.js +4 -4
- package/dist/node_modules/antd/es/date-picker/style/panel.js.map +1 -1
- package/dist/node_modules/antd/es/drawer/useFocusable.js +14 -0
- package/dist/node_modules/antd/es/drawer/useFocusable.js.map +1 -0
- package/dist/node_modules/antd/es/form/style/index.js +24 -24
- package/dist/node_modules/antd/es/form/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/grid/col.js +56 -54
- package/dist/node_modules/antd/es/grid/col.js.map +1 -1
- package/dist/node_modules/antd/es/grid/style/index.js +50 -50
- package/dist/node_modules/antd/es/grid/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/input/style/index.js +1 -0
- package/dist/node_modules/antd/es/input/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/input-number/index.js +91 -91
- package/dist/node_modules/antd/es/input-number/index.js.map +1 -1
- package/dist/node_modules/antd/es/input-number/style/index.js +80 -79
- package/dist/node_modules/antd/es/input-number/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/layout/style/sider.js +9 -9
- package/dist/node_modules/antd/es/layout/style/sider.js.map +1 -1
- package/dist/node_modules/antd/es/menu/MenuItem.js +6 -6
- package/dist/node_modules/antd/es/menu/MenuItem.js.map +1 -1
- package/dist/node_modules/antd/es/menu/SubMenu.js +8 -8
- package/dist/node_modules/antd/es/menu/SubMenu.js.map +1 -1
- package/dist/node_modules/antd/es/menu/style/horizontal.js +1 -1
- package/dist/node_modules/antd/es/menu/style/horizontal.js.map +1 -1
- package/dist/node_modules/antd/es/menu/style/index.js +58 -58
- package/dist/node_modules/antd/es/menu/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/menu/style/vertical.js +1 -1
- package/dist/node_modules/antd/es/menu/style/vertical.js.map +1 -1
- package/dist/node_modules/antd/es/modal/ConfirmDialog.js +117 -112
- package/dist/node_modules/antd/es/modal/ConfirmDialog.js.map +1 -1
- package/dist/node_modules/antd/es/modal/Modal.js +115 -109
- package/dist/node_modules/antd/es/modal/Modal.js.map +1 -1
- package/dist/node_modules/antd/es/modal/style/index.js +83 -80
- package/dist/node_modules/antd/es/modal/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/pagination/Pagination.js +85 -81
- package/dist/node_modules/antd/es/pagination/Pagination.js.map +1 -1
- package/dist/node_modules/antd/es/pagination/style/bordered.js +2 -2
- package/dist/node_modules/antd/es/pagination/style/bordered.js.map +1 -1
- package/dist/node_modules/antd/es/pagination/style/index.js +98 -132
- package/dist/node_modules/antd/es/pagination/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/popover/index.js +77 -82
- package/dist/node_modules/antd/es/popover/index.js.map +1 -1
- package/dist/node_modules/antd/es/popover/style/index.js +65 -63
- package/dist/node_modules/antd/es/popover/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/radio/context.js +3 -3
- package/dist/node_modules/antd/es/radio/context.js.map +1 -1
- package/dist/node_modules/antd/es/radio/group.js +31 -29
- package/dist/node_modules/antd/es/radio/group.js.map +1 -1
- package/dist/node_modules/antd/es/radio/style/index.js +1 -1
- package/dist/node_modules/antd/es/radio/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/select/style/dropdown.js +1 -1
- package/dist/node_modules/antd/es/select/style/dropdown.js.map +1 -1
- package/dist/node_modules/antd/es/select/style/select-input-multiple.js +71 -69
- package/dist/node_modules/antd/es/select/style/select-input-multiple.js.map +1 -1
- package/dist/node_modules/antd/es/select/style/select-input.js +104 -98
- package/dist/node_modules/antd/es/select/style/select-input.js.map +1 -1
- package/dist/node_modules/antd/es/space/Item.js +2 -2
- package/dist/node_modules/antd/es/space/Item.js.map +1 -1
- package/dist/node_modules/antd/es/space/index.js +4 -4
- package/dist/node_modules/antd/es/space/index.js.map +1 -1
- package/dist/node_modules/antd/es/space/style/addon.js +47 -46
- package/dist/node_modules/antd/es/space/style/addon.js.map +1 -1
- package/dist/node_modules/antd/es/steps/PanelArrow.js +2 -2
- package/dist/node_modules/antd/es/steps/PanelArrow.js.map +1 -1
- package/dist/node_modules/antd/es/steps/ProgressIcon.js +12 -10
- package/dist/node_modules/antd/es/steps/ProgressIcon.js.map +1 -1
- package/dist/node_modules/antd/es/steps/index.js +108 -106
- package/dist/node_modules/antd/es/steps/index.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/horizontal.js +13 -11
- package/dist/node_modules/antd/es/steps/style/horizontal.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/icon.js +23 -18
- package/dist/node_modules/antd/es/steps/style/icon.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/index.js +41 -41
- package/dist/node_modules/antd/es/steps/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/inline.js +28 -23
- package/dist/node_modules/antd/es/steps/style/inline.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/label-placement.js +44 -39
- package/dist/node_modules/antd/es/steps/style/label-placement.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/nav.js +29 -27
- package/dist/node_modules/antd/es/steps/style/nav.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/panel.js +61 -56
- package/dist/node_modules/antd/es/steps/style/panel.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/progress-dot.js +28 -26
- package/dist/node_modules/antd/es/steps/style/progress-dot.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/progress.js +24 -57
- package/dist/node_modules/antd/es/steps/style/progress.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/rtl.js +10 -8
- package/dist/node_modules/antd/es/steps/style/rtl.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/small.js +21 -16
- package/dist/node_modules/antd/es/steps/style/small.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/status.js +187 -176
- package/dist/node_modules/antd/es/steps/style/status.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/util.js +18 -16
- package/dist/node_modules/antd/es/steps/style/util.js.map +1 -1
- package/dist/node_modules/antd/es/steps/style/vertical.js +21 -16
- package/dist/node_modules/antd/es/steps/style/vertical.js.map +1 -1
- package/dist/node_modules/antd/es/style/placementArrow.js +31 -29
- package/dist/node_modules/antd/es/style/placementArrow.js.map +1 -1
- package/dist/node_modules/antd/es/table/InternalTable.js +65 -62
- package/dist/node_modules/antd/es/table/InternalTable.js.map +1 -1
- package/dist/node_modules/antd/es/table/TableMeasureRowContext.js +6 -0
- package/dist/node_modules/antd/es/table/TableMeasureRowContext.js.map +1 -0
- package/dist/node_modules/antd/es/table/hooks/useFilter/FilterDropdown.js +145 -137
- package/dist/node_modules/antd/es/table/hooks/useFilter/FilterDropdown.js.map +1 -1
- package/dist/node_modules/antd/es/table/style/index.js +3 -3
- package/dist/node_modules/antd/es/table/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/table/style/radius.js +10 -0
- package/dist/node_modules/antd/es/table/style/radius.js.map +1 -1
- package/dist/node_modules/antd/es/table/style/virtual.js +5 -5
- package/dist/node_modules/antd/es/table/style/virtual.js.map +1 -1
- package/dist/node_modules/antd/es/theme/util/genStyleUtils.js +29 -32
- package/dist/node_modules/antd/es/theme/util/genStyleUtils.js.map +1 -1
- package/dist/node_modules/antd/es/timeline/Timeline.js +76 -74
- package/dist/node_modules/antd/es/timeline/Timeline.js.map +1 -1
- package/dist/node_modules/antd/es/timeline/style/horizontal.js +21 -18
- package/dist/node_modules/antd/es/timeline/style/horizontal.js.map +1 -1
- package/dist/node_modules/antd/es/timeline/style/index.js +85 -70
- package/dist/node_modules/antd/es/timeline/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/timeline/useItems.js +38 -37
- package/dist/node_modules/antd/es/timeline/useItems.js.map +1 -1
- package/dist/node_modules/antd/es/tooltip/PurePanel.js +27 -27
- package/dist/node_modules/antd/es/tooltip/PurePanel.js.map +1 -1
- package/dist/node_modules/antd/es/tooltip/UniqueProvider/MotionContent.js +17 -22
- package/dist/node_modules/antd/es/tooltip/UniqueProvider/MotionContent.js.map +1 -1
- package/dist/node_modules/antd/es/tooltip/UniqueProvider/index.js +27 -26
- package/dist/node_modules/antd/es/tooltip/UniqueProvider/index.js.map +1 -1
- package/dist/node_modules/antd/es/tooltip/index.js +50 -50
- package/dist/node_modules/antd/es/tooltip/index.js.map +1 -1
- package/dist/node_modules/antd/es/tooltip/style/index.js +55 -52
- package/dist/node_modules/antd/es/tooltip/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/tooltip/util.js +13 -12
- package/dist/node_modules/antd/es/tooltip/util.js.map +1 -1
- package/dist/node_modules/antd/es/tree/DirectoryTree.js +42 -41
- package/dist/node_modules/antd/es/tree/DirectoryTree.js.map +1 -1
- package/dist/node_modules/antd/es/version/version.js +1 -1
- package/dist/node_modules/antd/es/version/version.js.map +1 -1
- package/dist/node_modules/canvg/lib/index.es.js +84 -84
- package/dist/node_modules/canvg/lib/index.es.js.map +1 -1
- package/dist/node_modules/compute-scroll-into-view/dist/index.js +17 -17
- package/dist/node_modules/compute-scroll-into-view/dist/index.js.map +1 -1
- package/dist/node_modules/dompurify/dist/purify.es.js +217 -223
- package/dist/node_modules/dompurify/dist/purify.es.js.map +1 -1
- package/dist/node_modules/fflate/esm/browser.js +295 -335
- package/dist/node_modules/fflate/esm/browser.js.map +1 -1
- package/dist/node_modules/jspdf/dist/jspdf.es.min.js +1771 -1781
- package/dist/node_modules/jspdf/dist/jspdf.es.min.js.map +1 -1
- package/dist/node_modules/raf/index.js +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/regex.js +5 -0
- package/dist/node_modules/uuid/dist/esm-browser/regex.js.map +1 -0
- package/dist/node_modules/uuid/dist/esm-browser/rng.js +2 -3
- package/dist/node_modules/uuid/dist/esm-browser/rng.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js +10 -6
- package/dist/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/v4.js +6 -9
- package/dist/node_modules/uuid/dist/esm-browser/v4.js.map +1 -1
- package/dist/node_modules/uuid/dist/esm-browser/validate.js +8 -0
- package/dist/node_modules/uuid/dist/esm-browser/validate.js.map +1 -0
- package/package.json +1 -1
- package/dist/node_modules/antd/es/date-picker/generatePicker/SuffixIcon.js.map +0 -1
- package/dist/node_modules/uuid/dist/esm-browser/native.js +0 -7
- package/dist/node_modules/uuid/dist/esm-browser/native.js.map +0 -1
|
@@ -1,107 +1,102 @@
|
|
|
1
|
-
import
|
|
1
|
+
import i from "../../../vite-plugin-node-polyfills/shims/process/dist/index.js";
|
|
2
2
|
import * as a from "react";
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
import { useMergeSemantic as ae } from "../_util/hooks/useMergeSemantic.js";
|
|
16
|
-
const me = /* @__PURE__ */ a.forwardRef((o, v) => {
|
|
3
|
+
import { clsx as Y } from "../../../clsx/dist/clsx.js";
|
|
4
|
+
import { getRenderPropValue as C } from "../_util/getRenderPropValue.js";
|
|
5
|
+
import { getTransitionName as $ } from "../_util/motion.js";
|
|
6
|
+
import { devUseWarning as G } from "../_util/warning.js";
|
|
7
|
+
import { useComponentConfig as H } from "../config-provider/context.js";
|
|
8
|
+
import J from "../tooltip/index.js";
|
|
9
|
+
import K from "../tooltip/hook/useMergedArrow.js";
|
|
10
|
+
import Q, { Overlay as X } from "./PurePanel.js";
|
|
11
|
+
import Z from "./style/index.js";
|
|
12
|
+
import ee from "../../../@rc-component/util/es/hooks/useControlledState.js";
|
|
13
|
+
import { useMergeSemantic as oe } from "../_util/hooks/useMergeSemantic.js";
|
|
14
|
+
const re = /* @__PURE__ */ a.forwardRef((e, P) => {
|
|
17
15
|
const {
|
|
18
|
-
prefixCls:
|
|
19
|
-
title:
|
|
16
|
+
prefixCls: w,
|
|
17
|
+
title: O,
|
|
20
18
|
content: E,
|
|
21
|
-
overlayClassName:
|
|
22
|
-
placement:
|
|
23
|
-
trigger:
|
|
24
|
-
children:
|
|
25
|
-
mouseEnterDelay:
|
|
26
|
-
mouseLeaveDelay:
|
|
27
|
-
onOpenChange:
|
|
19
|
+
overlayClassName: h,
|
|
20
|
+
placement: l = "top",
|
|
21
|
+
trigger: D,
|
|
22
|
+
children: S,
|
|
23
|
+
mouseEnterDelay: m = 0.1,
|
|
24
|
+
mouseLeaveDelay: p = 0.1,
|
|
25
|
+
onOpenChange: n,
|
|
28
26
|
overlayStyle: c = {},
|
|
29
|
-
styles:
|
|
30
|
-
classNames:
|
|
31
|
-
motion:
|
|
32
|
-
arrow:
|
|
33
|
-
...
|
|
34
|
-
} =
|
|
35
|
-
getPrefixCls:
|
|
36
|
-
className:
|
|
37
|
-
style:
|
|
38
|
-
classNames:
|
|
27
|
+
styles: f,
|
|
28
|
+
classNames: g,
|
|
29
|
+
motion: d,
|
|
30
|
+
arrow: T,
|
|
31
|
+
...V
|
|
32
|
+
} = e, {
|
|
33
|
+
getPrefixCls: u,
|
|
34
|
+
className: A,
|
|
35
|
+
style: _,
|
|
36
|
+
classNames: I,
|
|
39
37
|
styles: R,
|
|
40
38
|
arrow: z,
|
|
41
39
|
trigger: L
|
|
42
|
-
} =
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
40
|
+
} = H("popover"), s = u("popover", w), [M, U] = Z(s), W = u(), b = K(T, z), N = D || L || "hover";
|
|
41
|
+
if (i.env.NODE_ENV !== "production") {
|
|
42
|
+
const t = G("Popover");
|
|
43
|
+
i.env.NODE_ENV !== "production" && t(!n || n.length <= 1, "usage", "The second `onOpenChange` parameter is internal and unsupported. Please lock to a previous version if needed.");
|
|
44
|
+
}
|
|
45
|
+
const j = {
|
|
46
|
+
...e,
|
|
47
|
+
placement: l,
|
|
48
|
+
trigger: N,
|
|
49
|
+
mouseEnterDelay: m,
|
|
50
|
+
mouseLeaveDelay: p,
|
|
48
51
|
overlayStyle: c,
|
|
49
|
-
styles:
|
|
50
|
-
classNames:
|
|
51
|
-
}, [
|
|
52
|
-
props:
|
|
53
|
-
}),
|
|
54
|
-
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
}, W = (e) => {
|
|
58
|
-
C(e);
|
|
59
|
-
}, u = w(D), N = w(E);
|
|
60
|
-
return /* @__PURE__ */ a.createElement(ee, {
|
|
52
|
+
styles: f,
|
|
53
|
+
classNames: g
|
|
54
|
+
}, [o, r] = oe([I, g], [R, f], {
|
|
55
|
+
props: j
|
|
56
|
+
}), k = Y(h, M, U, A, o.root), [q, B] = ee(e.defaultOpen ?? !1, e.open), F = (t) => {
|
|
57
|
+
B(t), n?.(t);
|
|
58
|
+
}, v = C(O), y = C(E);
|
|
59
|
+
return /* @__PURE__ */ a.createElement(J, {
|
|
61
60
|
unique: !1,
|
|
62
|
-
arrow:
|
|
63
|
-
placement:
|
|
64
|
-
trigger:
|
|
65
|
-
mouseEnterDelay:
|
|
66
|
-
mouseLeaveDelay:
|
|
67
|
-
...
|
|
61
|
+
arrow: b,
|
|
62
|
+
placement: l,
|
|
63
|
+
trigger: N,
|
|
64
|
+
mouseEnterDelay: m,
|
|
65
|
+
mouseLeaveDelay: p,
|
|
66
|
+
...V,
|
|
68
67
|
prefixCls: s,
|
|
69
68
|
classNames: {
|
|
70
|
-
root:
|
|
71
|
-
container:
|
|
72
|
-
arrow:
|
|
69
|
+
root: k,
|
|
70
|
+
container: o.container,
|
|
71
|
+
arrow: o.arrow
|
|
73
72
|
},
|
|
74
73
|
styles: {
|
|
75
74
|
root: {
|
|
76
|
-
...
|
|
77
|
-
...
|
|
75
|
+
...r.root,
|
|
76
|
+
..._,
|
|
78
77
|
...c
|
|
79
78
|
},
|
|
80
|
-
container:
|
|
81
|
-
arrow:
|
|
79
|
+
container: r.container,
|
|
80
|
+
arrow: r.arrow
|
|
82
81
|
},
|
|
83
|
-
ref:
|
|
84
|
-
open:
|
|
85
|
-
onOpenChange:
|
|
86
|
-
overlay:
|
|
82
|
+
ref: P,
|
|
83
|
+
open: q,
|
|
84
|
+
onOpenChange: F,
|
|
85
|
+
overlay: v || y ? /* @__PURE__ */ a.createElement(X, {
|
|
87
86
|
prefixCls: s,
|
|
88
|
-
title:
|
|
89
|
-
content:
|
|
90
|
-
classNames:
|
|
91
|
-
styles:
|
|
87
|
+
title: v,
|
|
88
|
+
content: y,
|
|
89
|
+
classNames: o,
|
|
90
|
+
styles: r
|
|
92
91
|
}) : null,
|
|
93
92
|
motion: {
|
|
94
|
-
motionName:
|
|
93
|
+
motionName: $(W, "zoom-big", typeof d?.motionName == "string" ? d?.motionName : void 0)
|
|
95
94
|
},
|
|
96
95
|
"data-popover-inject": !0
|
|
97
|
-
},
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}));
|
|
102
|
-
}), x = me;
|
|
103
|
-
x._InternalPanelDoNotUseOrYouWillBeFired = re;
|
|
104
|
-
$.env.NODE_ENV !== "production" && (x.displayName = "Popover");
|
|
96
|
+
}, S);
|
|
97
|
+
}), x = re;
|
|
98
|
+
x._InternalPanelDoNotUseOrYouWillBeFired = Q;
|
|
99
|
+
i.env.NODE_ENV !== "production" && (x.displayName = "Popover");
|
|
105
100
|
export {
|
|
106
101
|
x as default
|
|
107
102
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../node_modules/antd/es/popover/index.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport {
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/antd/es/popover/index.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport { useControlledState } from '@rc-component/util';\nimport { clsx } from 'clsx';\nimport { getRenderPropValue } from '../_util/getRenderPropValue';\nimport { useMergeSemantic } from '../_util/hooks';\nimport { getTransitionName } from '../_util/motion';\nimport { devUseWarning } from '../_util/warning';\nimport { useComponentConfig } from '../config-provider/context';\nimport Tooltip from '../tooltip';\nimport useMergedArrow from '../tooltip/hook/useMergedArrow';\nimport PurePanel, { Overlay } from './PurePanel';\n// CSSINJS\nimport useStyle from './style';\nconst InternalPopover = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n prefixCls: customizePrefixCls,\n title,\n content,\n overlayClassName,\n placement = 'top',\n trigger,\n children,\n mouseEnterDelay = 0.1,\n mouseLeaveDelay = 0.1,\n onOpenChange,\n overlayStyle = {},\n styles,\n classNames,\n motion,\n arrow: popoverArrow,\n ...restProps\n } = props;\n const {\n getPrefixCls,\n className: contextClassName,\n style: contextStyle,\n classNames: contextClassNames,\n styles: contextStyles,\n arrow: contextArrow,\n trigger: contextTrigger\n } = useComponentConfig('popover');\n const prefixCls = getPrefixCls('popover', customizePrefixCls);\n const [hashId, cssVarCls] = useStyle(prefixCls);\n const rootPrefixCls = getPrefixCls();\n const mergedArrow = useMergedArrow(popoverArrow, contextArrow);\n const mergedTrigger = trigger || contextTrigger || 'hover';\n // ========================== Warning ===========================\n if (process.env.NODE_ENV !== 'production') {\n const warning = devUseWarning('Popover');\n process.env.NODE_ENV !== \"production\" ? warning(!onOpenChange || onOpenChange.length <= 1, 'usage', 'The second `onOpenChange` parameter is internal and unsupported. Please lock to a previous version if needed.') : void 0;\n }\n // ============================= Styles =============================\n const mergedProps = {\n ...props,\n placement,\n trigger: mergedTrigger,\n mouseEnterDelay,\n mouseLeaveDelay,\n overlayStyle,\n styles,\n classNames\n };\n const [mergedClassNames, mergedStyles] = useMergeSemantic([contextClassNames, classNames], [contextStyles, styles], {\n props: mergedProps\n });\n const rootClassNames = clsx(overlayClassName, hashId, cssVarCls, contextClassName, mergedClassNames.root);\n const [open, setOpen] = useControlledState(props.defaultOpen ?? false, props.open);\n const settingOpen = value => {\n setOpen(value);\n onOpenChange?.(value);\n };\n const titleNode = getRenderPropValue(title);\n const contentNode = getRenderPropValue(content);\n return /*#__PURE__*/React.createElement(Tooltip, {\n unique: false,\n arrow: mergedArrow,\n placement: placement,\n trigger: mergedTrigger,\n mouseEnterDelay: mouseEnterDelay,\n mouseLeaveDelay: mouseLeaveDelay,\n ...restProps,\n prefixCls: prefixCls,\n classNames: {\n root: rootClassNames,\n container: mergedClassNames.container,\n arrow: mergedClassNames.arrow\n },\n styles: {\n root: {\n ...mergedStyles.root,\n ...contextStyle,\n ...overlayStyle\n },\n container: mergedStyles.container,\n arrow: mergedStyles.arrow\n },\n ref: ref,\n open: open,\n onOpenChange: settingOpen,\n overlay: titleNode || contentNode ? (/*#__PURE__*/React.createElement(Overlay, {\n prefixCls: prefixCls,\n title: titleNode,\n content: contentNode,\n classNames: mergedClassNames,\n styles: mergedStyles\n })) : null,\n motion: {\n motionName: getTransitionName(rootPrefixCls, 'zoom-big', typeof motion?.motionName === 'string' ? motion?.motionName : undefined)\n },\n \"data-popover-inject\": true\n }, children);\n});\nconst Popover = InternalPopover;\nPopover._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;\nif (process.env.NODE_ENV !== 'production') {\n Popover.displayName = 'Popover';\n}\nexport default Popover;"],"names":["InternalPopover","React","props","ref","customizePrefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames","motion","popoverArrow","restProps","getPrefixCls","contextClassName","contextStyle","contextClassNames","contextStyles","contextArrow","contextTrigger","useComponentConfig","prefixCls","hashId","cssVarCls","useStyle","rootPrefixCls","mergedArrow","useMergedArrow","mergedTrigger","process","warning","devUseWarning","mergedProps","mergedClassNames","mergedStyles","useMergeSemantic","rootClassNames","clsx","open","setOpen","useControlledState","settingOpen","value","titleNode","getRenderPropValue","contentNode","Tooltip","Overlay","getTransitionName","Popover","PurePanel"],"mappings":";;;;;;;;;;;;;AAeA,MAAMA,KAA+B,gBAAAC,EAAM,WAAW,CAACC,GAAOC,MAAQ;AACpE,QAAM;AAAA,IACJ,WAAWC;AAAA,IACX,OAAAC;AAAA,IACA,SAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,WAAAC,IAAY;AAAA,IACZ,SAAAC;AAAA,IACA,UAAAC;AAAA,IACA,iBAAAC,IAAkB;AAAA,IAClB,iBAAAC,IAAkB;AAAA,IAClB,cAAAC;AAAA,IACA,cAAAC,IAAe,CAAA;AAAA,IACf,QAAAC;AAAA,IACA,YAAAC;AAAA,IACA,QAAAC;AAAA,IACA,OAAOC;AAAA,IACP,GAAGC;AAAA,EACP,IAAMjB,GACE;AAAA,IACJ,cAAAkB;AAAA,IACA,WAAWC;AAAA,IACX,OAAOC;AAAA,IACP,YAAYC;AAAA,IACZ,QAAQC;AAAA,IACR,OAAOC;AAAA,IACP,SAASC;AAAA,EACb,IAAMC,EAAmB,SAAS,GAC1BC,IAAYR,EAAa,WAAWhB,CAAkB,GACtD,CAACyB,GAAQ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;AAAA,MACN,MAAM;AAAA,QACJ,GAAGC,EAAa;AAAA,QAChB,GAAGnB;AAAA,QACH,GAAGR;AAAA,MACX;AAAA,MACM,WAAW2B,EAAa;AAAA,MACxB,OAAOA,EAAa;AAAA,IAC1B;AAAA,IACI,KAAKtC;AAAA,IACL,MAAM0C;AAAA,IACN,cAAcG;AAAA,IACd,SAASE,KAAaE,IAA4B,gBAAAnD,EAAM,cAAcqD,GAAS;AAAA,MAC7E,WAAW1B;AAAA,MACX,OAAOsB;AAAA,MACP,SAASE;AAAA,MACT,YAAYZ;AAAA,MACZ,QAAQC;AAAA,IACd,CAAK,IAAK;AAAA,IACN,QAAQ;AAAA,MACN,YAAYc,EAAkBvB,GAAe,YAAY,OAAOf,GAAQ,cAAe,WAAWA,GAAQ,aAAa,MAAS;AAAA,IACtI;AAAA,IACI,uBAAuB;AAAA,EAC3B,GAAKP,CAAQ;AACb,CAAC,GACK8C,IAAUxD;AAChBwD,EAAQ,yCAAyCC;AAC7CrB,EAAQ,IAAI,aAAa,iBAC3BoB,EAAQ,cAAc;","x_google_ignoreList":[0]}
|
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import { resetComponent as
|
|
2
|
-
import { initZoomMotion as
|
|
3
|
-
import
|
|
4
|
-
import { getArrowToken as
|
|
5
|
-
import { genStyleHooks as
|
|
6
|
-
import { merge as
|
|
7
|
-
import { PresetColors as
|
|
8
|
-
const
|
|
1
|
+
import { resetComponent as w } from "../../style/index.js";
|
|
2
|
+
import { initZoomMotion as C } from "../../style/motion/zoom.js";
|
|
3
|
+
import b, { getArrowOffsetToken as P } from "../../style/placementArrow.js";
|
|
4
|
+
import { getArrowToken as S } from "../../style/roundedArrow.js";
|
|
5
|
+
import { genStyleHooks as k, genCssVar as B } from "../../theme/util/genStyleUtils.js";
|
|
6
|
+
import { merge as W } from "../../../../@ant-design/cssinjs-utils/es/util/statistic.js";
|
|
7
|
+
import { PresetColors as T } from "../../theme/interface/presetColors.js";
|
|
8
|
+
const v = "50%", y = (t) => {
|
|
9
9
|
const {
|
|
10
10
|
componentCls: o,
|
|
11
|
-
popoverColor:
|
|
12
|
-
titleMinWidth:
|
|
13
|
-
fontWeightStrong:
|
|
14
|
-
innerPadding:
|
|
11
|
+
popoverColor: n,
|
|
12
|
+
titleMinWidth: e,
|
|
13
|
+
fontWeightStrong: i,
|
|
14
|
+
innerPadding: r,
|
|
15
15
|
boxShadowSecondary: l,
|
|
16
16
|
colorTextHeading: p,
|
|
17
|
-
borderRadiusLG:
|
|
18
|
-
zIndexPopup:
|
|
19
|
-
titleMarginBottom:
|
|
17
|
+
borderRadiusLG: s,
|
|
18
|
+
zIndexPopup: c,
|
|
19
|
+
titleMarginBottom: g,
|
|
20
20
|
colorBgElevated: m,
|
|
21
|
-
popoverBg:
|
|
21
|
+
popoverBg: a,
|
|
22
22
|
titleBorderBottom: u,
|
|
23
23
|
innerContentPadding: f,
|
|
24
|
-
titlePadding:
|
|
25
|
-
|
|
24
|
+
titlePadding: d,
|
|
25
|
+
antCls: $
|
|
26
|
+
} = t, [h, x] = B($, "tooltip");
|
|
26
27
|
return [
|
|
27
28
|
{
|
|
28
29
|
[o]: {
|
|
29
|
-
...
|
|
30
|
+
...w(t),
|
|
30
31
|
position: "absolute",
|
|
31
32
|
top: 0,
|
|
32
33
|
// use `left` to fix https://github.com/ant-design/ant-design/issues/39195
|
|
@@ -34,16 +35,16 @@ const S = (t) => {
|
|
|
34
35
|
_skip_check_: !0,
|
|
35
36
|
value: 0
|
|
36
37
|
},
|
|
37
|
-
zIndex:
|
|
38
|
+
zIndex: c,
|
|
38
39
|
fontWeight: "normal",
|
|
39
40
|
whiteSpace: "normal",
|
|
40
41
|
textAlign: "start",
|
|
41
42
|
cursor: "auto",
|
|
42
43
|
userSelect: "text",
|
|
43
44
|
// When use `autoArrow`, origin will follow the arrow position
|
|
44
|
-
"
|
|
45
|
-
transformOrigin: ["
|
|
46
|
-
"
|
|
45
|
+
[h("valid-offset-x")]: x("arrow-offset-horizontal", "var(--arrow-x)"),
|
|
46
|
+
transformOrigin: [x("valid-offset-x", v), `var(--arrow-y, ${v})`].join(" "),
|
|
47
|
+
[h("arrow-background-color")]: m,
|
|
47
48
|
width: "max-content",
|
|
48
49
|
maxWidth: "100vw",
|
|
49
50
|
"&-rtl": {
|
|
@@ -56,28 +57,28 @@ const S = (t) => {
|
|
|
56
57
|
position: "relative"
|
|
57
58
|
},
|
|
58
59
|
[`${o}-container`]: {
|
|
59
|
-
backgroundColor:
|
|
60
|
+
backgroundColor: a,
|
|
60
61
|
backgroundClip: "padding-box",
|
|
61
|
-
borderRadius:
|
|
62
|
+
borderRadius: s,
|
|
62
63
|
boxShadow: l,
|
|
63
|
-
padding:
|
|
64
|
+
padding: r
|
|
64
65
|
},
|
|
65
66
|
[`${o}-title`]: {
|
|
66
|
-
minWidth:
|
|
67
|
-
marginBottom:
|
|
67
|
+
minWidth: e,
|
|
68
|
+
marginBottom: g,
|
|
68
69
|
color: p,
|
|
69
|
-
fontWeight:
|
|
70
|
+
fontWeight: i,
|
|
70
71
|
borderBottom: u,
|
|
71
|
-
padding:
|
|
72
|
+
padding: d
|
|
72
73
|
},
|
|
73
74
|
[`${o}-content`]: {
|
|
74
|
-
color:
|
|
75
|
+
color: n,
|
|
75
76
|
padding: f
|
|
76
77
|
}
|
|
77
78
|
}
|
|
78
79
|
},
|
|
79
80
|
// Arrow Style
|
|
80
|
-
|
|
81
|
+
b(t, x("arrow-background-color")),
|
|
81
82
|
// Pure Render
|
|
82
83
|
{
|
|
83
84
|
[`${o}-pure`]: {
|
|
@@ -88,16 +89,17 @@ const S = (t) => {
|
|
|
88
89
|
}
|
|
89
90
|
}
|
|
90
91
|
];
|
|
91
|
-
},
|
|
92
|
+
}, z = (t) => {
|
|
92
93
|
const {
|
|
93
|
-
componentCls: o
|
|
94
|
-
|
|
94
|
+
componentCls: o,
|
|
95
|
+
antCls: n
|
|
96
|
+
} = t, [e] = B(n, "tooltip");
|
|
95
97
|
return {
|
|
96
|
-
[o]:
|
|
97
|
-
const r = t[`${
|
|
98
|
+
[o]: T.map((i) => {
|
|
99
|
+
const r = t[`${i}6`];
|
|
98
100
|
return {
|
|
99
|
-
[`&${o}-${
|
|
100
|
-
"
|
|
101
|
+
[`&${o}-${i}`]: {
|
|
102
|
+
[e("arrow-background-color")]: r,
|
|
101
103
|
[`${o}-inner`]: {
|
|
102
104
|
backgroundColor: r
|
|
103
105
|
},
|
|
@@ -108,50 +110,50 @@ const S = (t) => {
|
|
|
108
110
|
};
|
|
109
111
|
})
|
|
110
112
|
};
|
|
111
|
-
},
|
|
113
|
+
}, M = (t) => {
|
|
112
114
|
const {
|
|
113
115
|
lineWidth: o,
|
|
114
|
-
controlHeight:
|
|
115
|
-
fontHeight:
|
|
116
|
-
padding:
|
|
117
|
-
wireframe:
|
|
116
|
+
controlHeight: n,
|
|
117
|
+
fontHeight: e,
|
|
118
|
+
padding: i,
|
|
119
|
+
wireframe: r,
|
|
118
120
|
zIndexPopupBase: l,
|
|
119
121
|
borderRadiusLG: p,
|
|
120
|
-
marginXS:
|
|
121
|
-
lineType:
|
|
122
|
-
colorSplit:
|
|
122
|
+
marginXS: s,
|
|
123
|
+
lineType: c,
|
|
124
|
+
colorSplit: g,
|
|
123
125
|
paddingSM: m
|
|
124
|
-
} = t,
|
|
126
|
+
} = t, a = n - e, u = a / 2, f = a / 2 - o, d = i;
|
|
125
127
|
return {
|
|
126
128
|
titleMinWidth: 177,
|
|
127
129
|
zIndexPopup: l + 30,
|
|
128
|
-
...
|
|
129
|
-
...
|
|
130
|
+
...S(t),
|
|
131
|
+
...P({
|
|
130
132
|
contentRadius: p,
|
|
131
133
|
limitVerticalRadius: !0
|
|
132
134
|
}),
|
|
133
135
|
// internal
|
|
134
|
-
innerPadding:
|
|
135
|
-
titleMarginBottom:
|
|
136
|
-
titlePadding:
|
|
137
|
-
titleBorderBottom:
|
|
138
|
-
innerContentPadding:
|
|
136
|
+
innerPadding: r ? 0 : 12,
|
|
137
|
+
titleMarginBottom: r ? 0 : s,
|
|
138
|
+
titlePadding: r ? `${u}px ${d}px ${f}px` : 0,
|
|
139
|
+
titleBorderBottom: r ? `${o}px ${c} ${g}` : "none",
|
|
140
|
+
innerContentPadding: r ? `${m}px ${d}px` : 0
|
|
139
141
|
};
|
|
140
|
-
},
|
|
142
|
+
}, N = k("Popover", (t) => {
|
|
141
143
|
const {
|
|
142
144
|
colorBgElevated: o,
|
|
143
|
-
colorText:
|
|
144
|
-
} = t,
|
|
145
|
+
colorText: n
|
|
146
|
+
} = t, e = W(t, {
|
|
145
147
|
popoverBg: o,
|
|
146
|
-
popoverColor:
|
|
148
|
+
popoverColor: n
|
|
147
149
|
});
|
|
148
|
-
return [
|
|
149
|
-
},
|
|
150
|
+
return [y(e), z(e), C(e, "zoom-big")];
|
|
151
|
+
}, M, {
|
|
150
152
|
resetStyle: !1,
|
|
151
153
|
deprecatedTokens: [["width", "titleMinWidth"], ["minWidth", "titleMinWidth"]]
|
|
152
154
|
});
|
|
153
155
|
export {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
+
N as default,
|
|
157
|
+
M as prepareComponentToken
|
|
156
158
|
};
|
|
157
159
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/antd/es/popover/style/index.js"],"sourcesContent":["import { resetComponent } from '../../style';\nimport { initZoomMotion } from '../../style/motion';\nimport getArrowStyle, { getArrowOffsetToken } from '../../style/placementArrow';\nimport { getArrowToken } from '../../style/roundedArrow';\nimport { genStyleHooks, mergeToken, PresetColors } from '../../theme/internal';\nconst genBaseStyle = token => {\n const {\n componentCls,\n popoverColor,\n titleMinWidth,\n fontWeightStrong,\n innerPadding,\n boxShadowSecondary,\n colorTextHeading,\n borderRadiusLG,\n zIndexPopup,\n titleMarginBottom,\n colorBgElevated,\n popoverBg,\n titleBorderBottom,\n innerContentPadding,\n titlePadding\n } = token;\n return [{\n [componentCls]: {\n ...resetComponent(token),\n position: 'absolute',\n top: 0,\n // use `left` to fix https://github.com/ant-design/ant-design/issues/39195\n left: {\n _skip_check_: true,\n value: 0\n },\n zIndex: zIndexPopup,\n fontWeight: 'normal',\n whiteSpace: 'normal',\n textAlign: 'start',\n cursor: 'auto',\n userSelect: 'text',\n // When use `autoArrow`, origin will follow the arrow position\n '
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/antd/es/popover/style/index.js"],"sourcesContent":["import { resetComponent } from '../../style';\nimport { initZoomMotion } from '../../style/motion';\nimport getArrowStyle, { getArrowOffsetToken } from '../../style/placementArrow';\nimport { getArrowToken } from '../../style/roundedArrow';\nimport { genStyleHooks, mergeToken, PresetColors } from '../../theme/internal';\nimport { genCssVar } from '../../theme/util/genStyleUtils';\nconst FALL_BACK_ORIGIN = '50%';\nconst genBaseStyle = token => {\n const {\n componentCls,\n popoverColor,\n titleMinWidth,\n fontWeightStrong,\n innerPadding,\n boxShadowSecondary,\n colorTextHeading,\n borderRadiusLG,\n zIndexPopup,\n titleMarginBottom,\n colorBgElevated,\n popoverBg,\n titleBorderBottom,\n innerContentPadding,\n titlePadding,\n antCls\n } = token;\n const [varName, varRef] = genCssVar(antCls, 'tooltip');\n return [{\n [componentCls]: {\n ...resetComponent(token),\n position: 'absolute',\n top: 0,\n // use `left` to fix https://github.com/ant-design/ant-design/issues/39195\n left: {\n _skip_check_: true,\n value: 0\n },\n zIndex: zIndexPopup,\n fontWeight: 'normal',\n whiteSpace: 'normal',\n textAlign: 'start',\n cursor: 'auto',\n userSelect: 'text',\n // When use `autoArrow`, origin will follow the arrow position\n [varName('valid-offset-x')]: varRef('arrow-offset-horizontal', 'var(--arrow-x)'),\n transformOrigin: [varRef('valid-offset-x', FALL_BACK_ORIGIN), `var(--arrow-y, ${FALL_BACK_ORIGIN})`].join(' '),\n [varName('arrow-background-color')]: colorBgElevated,\n width: 'max-content',\n maxWidth: '100vw',\n '&-rtl': {\n direction: 'rtl'\n },\n '&-hidden': {\n display: 'none'\n },\n [`${componentCls}-content`]: {\n position: 'relative'\n },\n [`${componentCls}-container`]: {\n backgroundColor: popoverBg,\n backgroundClip: 'padding-box',\n borderRadius: borderRadiusLG,\n boxShadow: boxShadowSecondary,\n padding: innerPadding\n },\n [`${componentCls}-title`]: {\n minWidth: titleMinWidth,\n marginBottom: titleMarginBottom,\n color: colorTextHeading,\n fontWeight: fontWeightStrong,\n borderBottom: titleBorderBottom,\n padding: titlePadding\n },\n [`${componentCls}-content`]: {\n color: popoverColor,\n padding: innerContentPadding\n }\n }\n },\n // Arrow Style\n getArrowStyle(token, varRef('arrow-background-color')),\n // Pure Render\n {\n [`${componentCls}-pure`]: {\n position: 'relative',\n maxWidth: 'none',\n margin: token.sizePopupArrow,\n display: 'inline-block'\n }\n }];\n};\nconst genColorStyle = token => {\n const {\n componentCls,\n antCls\n } = token;\n const [varName] = genCssVar(antCls, 'tooltip');\n return {\n [componentCls]: PresetColors.map(colorKey => {\n const lightColor = token[`${colorKey}6`];\n return {\n [`&${componentCls}-${colorKey}`]: {\n [varName('arrow-background-color')]: lightColor,\n [`${componentCls}-inner`]: {\n backgroundColor: lightColor\n },\n [`${componentCls}-arrow`]: {\n background: 'transparent'\n }\n }\n };\n })\n };\n};\nexport const prepareComponentToken = token => {\n const {\n lineWidth,\n controlHeight,\n fontHeight,\n padding,\n wireframe,\n zIndexPopupBase,\n borderRadiusLG,\n marginXS,\n lineType,\n colorSplit,\n paddingSM\n } = token;\n const titlePaddingBlockDist = controlHeight - fontHeight;\n const popoverTitlePaddingBlockTop = titlePaddingBlockDist / 2;\n const popoverTitlePaddingBlockBottom = titlePaddingBlockDist / 2 - lineWidth;\n const popoverPaddingHorizontal = padding;\n return {\n titleMinWidth: 177,\n zIndexPopup: zIndexPopupBase + 30,\n ...getArrowToken(token),\n ...getArrowOffsetToken({\n contentRadius: borderRadiusLG,\n limitVerticalRadius: true\n }),\n // internal\n innerPadding: wireframe ? 0 : 12,\n titleMarginBottom: wireframe ? 0 : marginXS,\n titlePadding: wireframe ? `${popoverTitlePaddingBlockTop}px ${popoverPaddingHorizontal}px ${popoverTitlePaddingBlockBottom}px` : 0,\n titleBorderBottom: wireframe ? `${lineWidth}px ${lineType} ${colorSplit}` : 'none',\n innerContentPadding: wireframe ? `${paddingSM}px ${popoverPaddingHorizontal}px` : 0\n };\n};\nexport default genStyleHooks('Popover', token => {\n const {\n colorBgElevated,\n colorText\n } = token;\n const popoverToken = mergeToken(token, {\n popoverBg: colorBgElevated,\n popoverColor: colorText\n });\n return [genBaseStyle(popoverToken), genColorStyle(popoverToken), initZoomMotion(popoverToken, 'zoom-big')];\n}, prepareComponentToken, {\n resetStyle: false,\n deprecatedTokens: [['width', 'titleMinWidth'], ['minWidth', 'titleMinWidth']]\n});"],"names":["FALL_BACK_ORIGIN","genBaseStyle","token","componentCls","popoverColor","titleMinWidth","fontWeightStrong","innerPadding","boxShadowSecondary","colorTextHeading","borderRadiusLG","zIndexPopup","titleMarginBottom","colorBgElevated","popoverBg","titleBorderBottom","innerContentPadding","titlePadding","antCls","varName","varRef","genCssVar","resetComponent","getArrowStyle","genColorStyle","PresetColors","colorKey","lightColor","prepareComponentToken","lineWidth","controlHeight","fontHeight","padding","wireframe","zIndexPopupBase","marginXS","lineType","colorSplit","paddingSM","titlePaddingBlockDist","popoverTitlePaddingBlockTop","popoverTitlePaddingBlockBottom","popoverPaddingHorizontal","getArrowToken","getArrowOffsetToken","useStyle","genStyleHooks","colorText","popoverToken","mergeToken","initZoomMotion"],"mappings":";;;;;;;AAMA,MAAMA,IAAmB,OACnBC,IAAe,CAAAC,MAAS;AAC5B,QAAM;AAAA,IACJ,cAAAC;AAAA,IACA,cAAAC;AAAA,IACA,eAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,cAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,iBAAAC;AAAA,IACA,WA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AwB,IAAIV,GAC7Da,IAA2BV;AACjC,SAAO;AAAA,IACL,eAAe;AAAA,IACf,aAAaE,IAAkB;AAAA,IAC/B,GAAGS,EAAczC,CAAK;AAAA,IACtB,GAAG0C,EAAoB;AAAA,MACrB,eAAelC;AAAA,MACf,qBAAqB;AAAA,IAC3B,CAAK;AAAA;AAAA,IAED,cAAcuB,IAAY,IAAI;AAAA,IAC9B,mBAAmBA,IAAY,IAAIE;AAAA,IACnC,cAAcF,IAAY,GAAGO,CAA2B,MAAME,CAAwB,MAAMD,CAA8B,OAAO;AAAA,IACjI,mBAAmBR,IAAY,GAAGJ,CAAS,MAAMO,CAAQ,IAAIC,CAAU,KAAK;AAAA,IAC5E,qBAAqBJ,IAAY,GAAGK,CAAS,MAAMI,CAAwB,OAAO;AAAA,EACtF;AACA,GACAG,IAAeC,EAAc,WAAW,CAAA5C,MAAS;AAC/C,QAAM;AAAA,IACJ,iBAAAW;AAAA,IACA,WAAAkC;AAAA,EACJ,IAAM7C,GACE8C,IAAeC,EAAW/C,GAAO;AAAA,IACrC,WAAWW;AAAA,IACX,cAAckC;AAAA,EAClB,CAAG;AACD,SAAO,CAAC9C,EAAa+C,CAAY,GAAGxB,EAAcwB,CAAY,GAAGE,EAAeF,GAAc,UAAU,CAAC;AAC3G,GAAGpB,GAAuB;AAAA,EACxB,YAAY;AAAA,EACZ,kBAAkB,CAAC,CAAC,SAAS,eAAe,GAAG,CAAC,YAAY,eAAe,CAAC;AAC9E,CAAC;","x_google_ignoreList":[0]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as o from "react";
|
|
2
|
-
const t = /* @__PURE__ */ o.createContext(
|
|
2
|
+
const t = /* @__PURE__ */ o.createContext(void 0), n = t.Provider, e = /* @__PURE__ */ o.createContext(void 0), r = e.Provider;
|
|
3
3
|
export {
|
|
4
|
-
|
|
4
|
+
n as RadioGroupContextProvider,
|
|
5
5
|
e as RadioOptionTypeContext,
|
|
6
|
-
|
|
6
|
+
r as RadioOptionTypeContextProvider,
|
|
7
7
|
t as default
|
|
8
8
|
};
|
|
9
9
|
//# sourceMappingURL=context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sources":["../../../../../node_modules/antd/es/radio/context.js"],"sourcesContent":["import * as React from 'react';\nconst RadioGroupContext = /*#__PURE__*/React.createContext(
|
|
1
|
+
{"version":3,"file":"context.js","sources":["../../../../../node_modules/antd/es/radio/context.js"],"sourcesContent":["import * as React from 'react';\nconst RadioGroupContext = /*#__PURE__*/React.createContext(undefined);\nexport const RadioGroupContextProvider = RadioGroupContext.Provider;\nexport default RadioGroupContext;\nexport const RadioOptionTypeContext = /*#__PURE__*/React.createContext(undefined);\nexport const RadioOptionTypeContextProvider = RadioOptionTypeContext.Provider;"],"names":["RadioGroupContext","React","RadioGroupContextProvider","RadioOptionTypeContext","RadioOptionTypeContextProvider"],"mappings":";AACK,MAACA,IAAiC,gBAAAC,EAAM,cAAc,MAAS,GACvDC,IAA4BF,EAAkB,UAE9CG,IAAsC,gBAAAF,EAAM,cAAc,MAAS,GACnEG,IAAiCD,EAAuB;","x_google_ignoreList":[0]}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import * as t from "react";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import U from "../../../@rc-component/util/es/hooks/useId.js";
|
|
3
|
+
import W from "../../../@rc-component/util/es/pickAttrs.js";
|
|
4
4
|
import { clsx as x } from "../../../clsx/dist/clsx.js";
|
|
5
5
|
import "../config-provider/index.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { FormItemInputContext as
|
|
9
|
-
import { toNamePathStr as
|
|
10
|
-
import { RadioGroupContextProvider as
|
|
6
|
+
import X from "../config-provider/hooks/useCSSVarCls.js";
|
|
7
|
+
import Y from "../config-provider/hooks/useSize.js";
|
|
8
|
+
import { FormItemInputContext as Z } from "../form/context.js";
|
|
9
|
+
import { toNamePathStr as _ } from "../form/hooks/useForm.js";
|
|
10
|
+
import { RadioGroupContextProvider as ee } from "./context.js";
|
|
11
11
|
import h from "./radio.js";
|
|
12
|
-
import
|
|
13
|
-
import { ConfigContext as
|
|
14
|
-
import
|
|
15
|
-
import { useOrientation as
|
|
16
|
-
const
|
|
12
|
+
import te from "./style/index.js";
|
|
13
|
+
import { ConfigContext as re } from "../config-provider/context.js";
|
|
14
|
+
import oe from "../../../@rc-component/util/es/hooks/useControlledState.js";
|
|
15
|
+
import { useOrientation as ae } from "../_util/hooks/useOrientation.js";
|
|
16
|
+
const se = /* @__PURE__ */ t.forwardRef((l, y) => {
|
|
17
17
|
const {
|
|
18
18
|
getPrefixCls: S,
|
|
19
19
|
direction: b
|
|
20
|
-
} = t.useContext(
|
|
20
|
+
} = t.useContext(re), {
|
|
21
21
|
name: $
|
|
22
|
-
} = t.useContext(
|
|
22
|
+
} = t.useContext(Z), k = U(_($)), {
|
|
23
23
|
prefixCls: z,
|
|
24
24
|
className: N,
|
|
25
25
|
rootClassName: V,
|
|
@@ -41,11 +41,12 @@ const ae = /* @__PURE__ */ t.forwardRef((l, y) => {
|
|
|
41
41
|
onFocus: L,
|
|
42
42
|
onBlur: T,
|
|
43
43
|
orientation: w,
|
|
44
|
-
vertical: A
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
44
|
+
vertical: A,
|
|
45
|
+
role: O = "radiogroup"
|
|
46
|
+
} = l, [r, d] = oe(F, G), f = t.useCallback((e) => {
|
|
47
|
+
const Q = r, v = e.target.value;
|
|
48
|
+
"value" in l || d(v), v !== Q && c?.(e);
|
|
49
|
+
}, [r, d, c]), o = S("radio", z), a = `${o}-group`, C = X(o), [j, D] = te(o, C);
|
|
49
50
|
let p = E;
|
|
50
51
|
i && i.length > 0 && (p = i.map((e) => typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ t.createElement(h, {
|
|
51
52
|
key: e.toString(),
|
|
@@ -65,11 +66,11 @@ const ae = /* @__PURE__ */ t.forwardRef((l, y) => {
|
|
|
65
66
|
id: e.id,
|
|
66
67
|
required: e.required
|
|
67
68
|
}, e.label)));
|
|
68
|
-
const
|
|
69
|
-
[`${a}-${
|
|
69
|
+
const g = Y(I), [, H] = ae(w, A), J = x(a, `${a}-${R}`, {
|
|
70
|
+
[`${a}-${g}`]: g,
|
|
70
71
|
[`${a}-rtl`]: b === "rtl",
|
|
71
72
|
[`${a}-block`]: m
|
|
72
|
-
}, N, V,
|
|
73
|
+
}, N, V, j, D, C), K = t.useMemo(() => ({
|
|
73
74
|
onChange: f,
|
|
74
75
|
value: r,
|
|
75
76
|
disabled: s,
|
|
@@ -78,12 +79,13 @@ const ae = /* @__PURE__ */ t.forwardRef((l, y) => {
|
|
|
78
79
|
block: m
|
|
79
80
|
}), [f, r, s, n, u, m]);
|
|
80
81
|
return /* @__PURE__ */ t.createElement("div", {
|
|
81
|
-
...
|
|
82
|
+
...W(l, {
|
|
82
83
|
aria: !0,
|
|
83
84
|
data: !0
|
|
84
85
|
}),
|
|
85
|
-
|
|
86
|
-
|
|
86
|
+
role: O,
|
|
87
|
+
className: x(J, {
|
|
88
|
+
[`${o}-group-vertical`]: H
|
|
87
89
|
}),
|
|
88
90
|
style: M,
|
|
89
91
|
onMouseEnter: q,
|
|
@@ -92,11 +94,11 @@ const ae = /* @__PURE__ */ t.forwardRef((l, y) => {
|
|
|
92
94
|
onBlur: T,
|
|
93
95
|
id: P,
|
|
94
96
|
ref: y
|
|
95
|
-
}, /* @__PURE__ */ t.createElement(
|
|
96
|
-
value:
|
|
97
|
+
}, /* @__PURE__ */ t.createElement(ee, {
|
|
98
|
+
value: K
|
|
97
99
|
}, p));
|
|
98
|
-
}),
|
|
100
|
+
}), ye = /* @__PURE__ */ t.memo(se);
|
|
99
101
|
export {
|
|
100
|
-
|
|
102
|
+
ye as default
|
|
101
103
|
};
|
|
102
104
|
//# sourceMappingURL=group.js.map
|