@antscorp/antsomi-ui 1.1.7 → 1.1.8
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/index.js +1 -1
- package/dist/_virtual/index2.js +1 -1
- package/dist/_virtual/react-is.development.js +1 -1
- package/dist/_virtual/react-is.production.min.js +1 -1
- package/dist/node_modules/@ant-design/colors/es/generate.js +1 -1
- package/dist/node_modules/@ant-design/colors/es/generate.js.map +1 -1
- package/dist/node_modules/@ant-design/colors/es/index.js +1 -1
- package/dist/node_modules/@ant-design/colors/es/index.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/Cache.js +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/Cache.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/Keyframes.js +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/Keyframes.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/StyleContext.js +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/StyleContext.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useCacheToken.js +1 -1
- 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 +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/useHMR.js +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useHMR.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/hooks/useStyleRegister.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/linters/contentQuotesLinter.js +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/linters/contentQuotesLinter.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/linters/hashedAnimationLinter.js +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/linters/hashedAnimationLinter.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/linters/utils.js +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/linters/utils.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/theme/Theme.js +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/theme/Theme.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/theme/ThemeCache.js +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/theme/ThemeCache.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/theme/createTheme.js +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/theme/createTheme.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.js +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/transformers/legacyLogicalProperties.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/util.js +1 -1
- package/dist/node_modules/@ant-design/cssinjs/es/util.js.map +1 -1
- package/dist/node_modules/@ant-design/cssinjs/node_modules/@emotion/hash/dist/hash.esm.js +1 -1
- package/dist/node_modules/@ant-design/cssinjs/node_modules/@emotion/hash/dist/hash.esm.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/components/AntdIcon.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/components/AntdIcon.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/components/Context.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/components/Context.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/components/IconBase.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/components/IconBase.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/components/twoTonePrimaryColor.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/components/twoTonePrimaryColor.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/BarsOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/BarsOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/CheckCircleFilled.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/CheckCircleFilled.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/CheckOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/CheckOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/CloseCircleFilled.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/CloseCircleFilled.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/CloseOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/CloseOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/DownOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/DownOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/EllipsisOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/EllipsisOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/ExclamationCircleFilled.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/ExclamationCircleFilled.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/EyeInvisibleOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/EyeInvisibleOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/EyeOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/EyeOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/InfoCircleFilled.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/InfoCircleFilled.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/LeftOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/LeftOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/LoadingOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/LoadingOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/RightOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/RightOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/SearchOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/icons/SearchOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons/es/utils.js +1 -1
- package/dist/node_modules/@ant-design/icons/es/utils.js.map +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/BarsOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/BarsOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckCircleFilled.js +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckCircleFilled.js.map +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CheckOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CloseCircleFilled.js +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CloseCircleFilled.js.map +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CloseOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/CloseOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/DownOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/DownOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/EllipsisOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/EllipsisOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ExclamationCircleFilled.js +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/ExclamationCircleFilled.js.map +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/EyeInvisibleOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/EyeInvisibleOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/EyeOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/EyeOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/InfoCircleFilled.js +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/InfoCircleFilled.js.map +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/LeftOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/LeftOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/LoadingOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/LoadingOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/RightOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/RightOutlined.js.map +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js +1 -1
- package/dist/node_modules/@ant-design/icons-svg/es/asn/SearchOutlined.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/classCallCheck.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/classCallCheck.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/createClass.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/createClass.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/createSuper.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/createSuper.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/defineProperty.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/extends.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/inherits.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/inherits.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArray.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/objectSpread2.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/slicedToArray.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/slicedToArray.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/toArray.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/toArray.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/toPrimitive.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/typeof.js.map +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js +1 -1
- package/dist/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js.map +1 -1
- package/dist/node_modules/@ctrl/tinycolor/dist/module/conversion.js +1 -1
- package/dist/node_modules/@ctrl/tinycolor/dist/module/conversion.js.map +1 -1
- package/dist/node_modules/@ctrl/tinycolor/dist/module/css-color-names.js +1 -1
- package/dist/node_modules/@ctrl/tinycolor/dist/module/css-color-names.js.map +1 -1
- package/dist/node_modules/@ctrl/tinycolor/dist/module/format-input.js +1 -1
- package/dist/node_modules/@ctrl/tinycolor/dist/module/format-input.js.map +1 -1
- package/dist/node_modules/@ctrl/tinycolor/dist/module/index.js +1 -1
- package/dist/node_modules/@ctrl/tinycolor/dist/module/index.js.map +1 -1
- package/dist/node_modules/@ctrl/tinycolor/dist/module/util.js +1 -1
- package/dist/node_modules/@ctrl/tinycolor/dist/module/util.js.map +1 -1
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.esm.js +1 -1
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.esm.js.map +1 -1
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js +1 -1
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js.map +1 -1
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +1 -1
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js.map +1 -1
- package/dist/node_modules/@emotion/react/dist/emotion-element-3838ba9e.esm.js +1 -1
- package/dist/node_modules/@emotion/react/dist/emotion-element-3838ba9e.esm.js.map +1 -1
- package/dist/node_modules/@emotion/react/dist/emotion-react.esm.js +1 -1
- package/dist/node_modules/@emotion/react/dist/emotion-react.esm.js.map +1 -1
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +1 -1
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js.map +1 -1
- package/dist/node_modules/@emotion/serialize/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +1 -1
- package/dist/node_modules/@emotion/serialize/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js.map +1 -1
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +1 -1
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js.map +1 -1
- package/dist/node_modules/@emotion/unitless/dist/unitless.esm.js +1 -1
- package/dist/node_modules/@emotion/unitless/dist/unitless.esm.js.map +1 -1
- package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js +1 -1
- package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.esm.js.map +1 -1
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.esm.js +1 -1
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.esm.js.map +1 -1
- package/dist/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js +1 -1
- package/dist/node_modules/@emotion/weak-memoize/dist/emotion-weak-memoize.esm.js.map +1 -1
- package/dist/node_modules/@rc-component/portal/es/Context.js +1 -1
- package/dist/node_modules/@rc-component/portal/es/Context.js.map +1 -1
- package/dist/node_modules/@rc-component/portal/es/Portal.js +1 -1
- package/dist/node_modules/@rc-component/portal/es/Portal.js.map +1 -1
- package/dist/node_modules/@rc-component/portal/es/index.js +1 -1
- package/dist/node_modules/@rc-component/portal/es/mock.js +1 -1
- package/dist/node_modules/@rc-component/portal/es/mock.js.map +1 -1
- package/dist/node_modules/@rc-component/portal/es/useDom.js +1 -1
- package/dist/node_modules/@rc-component/portal/es/useDom.js.map +1 -1
- package/dist/node_modules/@rc-component/portal/es/useScrollLocker.js +1 -1
- package/dist/node_modules/@rc-component/portal/es/useScrollLocker.js.map +1 -1
- package/dist/node_modules/@rc-component/portal/es/util.js +1 -1
- package/dist/node_modules/@rc-component/portal/es/util.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/Popup/Arrow.js +1 -1
- package/dist/node_modules/@rc-component/trigger/es/Popup/Arrow.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/Popup/Mask.js +1 -1
- package/dist/node_modules/@rc-component/trigger/es/Popup/Mask.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/Popup/index.js +1 -1
- package/dist/node_modules/@rc-component/trigger/es/Popup/index.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/TriggerWrapper.js +1 -1
- package/dist/node_modules/@rc-component/trigger/es/TriggerWrapper.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/context.js +1 -1
- package/dist/node_modules/@rc-component/trigger/es/context.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/hooks/useAction.js +1 -1
- package/dist/node_modules/@rc-component/trigger/es/hooks/useAction.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.js +1 -1
- package/dist/node_modules/@rc-component/trigger/es/hooks/useAlign.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/hooks/useWatch.js +1 -1
- package/dist/node_modules/@rc-component/trigger/es/hooks/useWatch.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/index.js +1 -1
- package/dist/node_modules/@rc-component/trigger/es/index.js.map +1 -1
- package/dist/node_modules/@rc-component/trigger/es/util.js +1 -1
- package/dist/node_modules/@rc-component/trigger/es/util.js.map +1 -1
- package/dist/node_modules/antd/es/_util/ActionButton.js +1 -1
- package/dist/node_modules/antd/es/_util/ActionButton.js.map +1 -1
- package/dist/node_modules/antd/es/_util/PurePanel.js +1 -1
- package/dist/node_modules/antd/es/_util/PurePanel.js.map +1 -1
- package/dist/node_modules/antd/es/_util/colors.js +1 -1
- package/dist/node_modules/antd/es/_util/colors.js.map +1 -1
- package/dist/node_modules/antd/es/_util/getDataOrAriaProps.js +1 -1
- package/dist/node_modules/antd/es/_util/getDataOrAriaProps.js.map +1 -1
- package/dist/node_modules/antd/es/_util/hooks/useFlexGapSupport.js +1 -1
- package/dist/node_modules/antd/es/_util/hooks/useFlexGapSupport.js.map +1 -1
- package/dist/node_modules/antd/es/_util/hooks/usePatchElement.js +1 -1
- package/dist/node_modules/antd/es/_util/hooks/usePatchElement.js.map +1 -1
- package/dist/node_modules/antd/es/_util/isNumeric.js +1 -1
- package/dist/node_modules/antd/es/_util/isNumeric.js.map +1 -1
- package/dist/node_modules/antd/es/_util/motion.js +1 -1
- package/dist/node_modules/antd/es/_util/motion.js.map +1 -1
- package/dist/node_modules/antd/es/_util/placements.js +1 -1
- package/dist/node_modules/antd/es/_util/placements.js.map +1 -1
- package/dist/node_modules/antd/es/_util/reactNode.js +1 -1
- package/dist/node_modules/antd/es/_util/reactNode.js.map +1 -1
- package/dist/node_modules/antd/es/_util/statusUtils.js +1 -1
- package/dist/node_modules/antd/es/_util/statusUtils.js.map +1 -1
- package/dist/node_modules/antd/es/_util/styleChecker.js +1 -1
- package/dist/node_modules/antd/es/_util/styleChecker.js.map +1 -1
- package/dist/node_modules/antd/es/_util/warning.js +1 -1
- package/dist/node_modules/antd/es/_util/warning.js.map +1 -1
- package/dist/node_modules/antd/es/_util/wave/WaveEffect.js +1 -1
- package/dist/node_modules/antd/es/_util/wave/WaveEffect.js.map +1 -1
- package/dist/node_modules/antd/es/_util/wave/index.js +1 -1
- package/dist/node_modules/antd/es/_util/wave/index.js.map +1 -1
- package/dist/node_modules/antd/es/_util/wave/style.js +1 -1
- package/dist/node_modules/antd/es/_util/wave/style.js.map +1 -1
- package/dist/node_modules/antd/es/_util/wave/useWave.js +1 -1
- package/dist/node_modules/antd/es/_util/wave/useWave.js.map +1 -1
- package/dist/node_modules/antd/es/_util/wave/util.js +1 -1
- package/dist/node_modules/antd/es/_util/wave/util.js.map +1 -1
- package/dist/node_modules/antd/es/alert/ErrorBoundary.js +1 -1
- package/dist/node_modules/antd/es/alert/ErrorBoundary.js.map +1 -1
- package/dist/node_modules/antd/es/alert/index.js +1 -1
- package/dist/node_modules/antd/es/alert/index.js.map +1 -1
- package/dist/node_modules/antd/es/alert/style/index.js +1 -1
- package/dist/node_modules/antd/es/alert/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/button/LoadingIcon.js +1 -1
- package/dist/node_modules/antd/es/button/LoadingIcon.js.map +1 -1
- package/dist/node_modules/antd/es/button/button-group.js +1 -1
- package/dist/node_modules/antd/es/button/button-group.js.map +1 -1
- package/dist/node_modules/antd/es/button/button.js +1 -1
- package/dist/node_modules/antd/es/button/button.js.map +1 -1
- package/dist/node_modules/antd/es/button/buttonHelpers.js +1 -1
- package/dist/node_modules/antd/es/button/buttonHelpers.js.map +1 -1
- package/dist/node_modules/antd/es/button/index.js +1 -1
- package/dist/node_modules/antd/es/button/style/group.js +1 -1
- package/dist/node_modules/antd/es/button/style/group.js.map +1 -1
- package/dist/node_modules/antd/es/button/style/index.js +1 -1
- package/dist/node_modules/antd/es/button/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/calendar/locale/en_US.js +1 -1
- package/dist/node_modules/antd/es/cascader/index.js +1 -1
- package/dist/node_modules/antd/es/cascader/index.js.map +1 -1
- package/dist/node_modules/antd/es/cascader/style/index.js +1 -1
- package/dist/node_modules/antd/es/cascader/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/checkbox/style/index.js +1 -1
- package/dist/node_modules/antd/es/checkbox/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/config-provider/DisabledContext.js +1 -1
- package/dist/node_modules/antd/es/config-provider/DisabledContext.js.map +1 -1
- package/dist/node_modules/antd/es/config-provider/SizeContext.js +1 -1
- package/dist/node_modules/antd/es/config-provider/SizeContext.js.map +1 -1
- package/dist/node_modules/antd/es/config-provider/context.js +1 -1
- package/dist/node_modules/antd/es/config-provider/context.js.map +1 -1
- package/dist/node_modules/antd/es/config-provider/cssVariables.js +1 -1
- package/dist/node_modules/antd/es/config-provider/cssVariables.js.map +1 -1
- package/dist/node_modules/antd/es/config-provider/defaultRenderEmpty.js +1 -1
- package/dist/node_modules/antd/es/config-provider/defaultRenderEmpty.js.map +1 -1
- package/dist/node_modules/antd/es/config-provider/hooks/useConfig.js +1 -1
- package/dist/node_modules/antd/es/config-provider/hooks/useConfig.js.map +1 -1
- package/dist/node_modules/antd/es/config-provider/hooks/useTheme.js +1 -1
- package/dist/node_modules/antd/es/config-provider/hooks/useTheme.js.map +1 -1
- package/dist/node_modules/antd/es/config-provider/index.js +1 -1
- package/dist/node_modules/antd/es/config-provider/index.js.map +1 -1
- package/dist/node_modules/antd/es/config-provider/style/index.js +1 -1
- package/dist/node_modules/antd/es/config-provider/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/date-picker/locale/en_US.js +1 -1
- package/dist/node_modules/antd/es/date-picker/locale/en_US.js.map +1 -1
- package/dist/node_modules/antd/es/divider/index.js +1 -1
- package/dist/node_modules/antd/es/divider/index.js.map +1 -1
- package/dist/node_modules/antd/es/divider/style/index.js +1 -1
- package/dist/node_modules/antd/es/divider/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/dropdown/dropdown-button.js +1 -1
- package/dist/node_modules/antd/es/dropdown/dropdown-button.js.map +1 -1
- package/dist/node_modules/antd/es/dropdown/dropdown.js +1 -1
- package/dist/node_modules/antd/es/dropdown/dropdown.js.map +1 -1
- package/dist/node_modules/antd/es/dropdown/index.js +1 -1
- package/dist/node_modules/antd/es/dropdown/style/button.js +1 -1
- package/dist/node_modules/antd/es/dropdown/style/button.js.map +1 -1
- package/dist/node_modules/antd/es/dropdown/style/index.js +1 -1
- package/dist/node_modules/antd/es/dropdown/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/dropdown/style/status.js +1 -1
- package/dist/node_modules/antd/es/dropdown/style/status.js.map +1 -1
- package/dist/node_modules/antd/es/empty/empty.js +1 -1
- package/dist/node_modules/antd/es/empty/empty.js.map +1 -1
- package/dist/node_modules/antd/es/empty/index.js +1 -1
- package/dist/node_modules/antd/es/empty/index.js.map +1 -1
- package/dist/node_modules/antd/es/empty/simple.js +1 -1
- package/dist/node_modules/antd/es/empty/simple.js.map +1 -1
- package/dist/node_modules/antd/es/empty/style/index.js +1 -1
- package/dist/node_modules/antd/es/empty/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/form/context.js +1 -1
- package/dist/node_modules/antd/es/form/context.js.map +1 -1
- package/dist/node_modules/antd/es/input/Group.js +1 -1
- package/dist/node_modules/antd/es/input/Group.js.map +1 -1
- package/dist/node_modules/antd/es/input/Input.js +1 -1
- package/dist/node_modules/antd/es/input/Input.js.map +1 -1
- package/dist/node_modules/antd/es/input/Password.js +1 -1
- package/dist/node_modules/antd/es/input/Password.js.map +1 -1
- package/dist/node_modules/antd/es/input/Search.js +1 -1
- package/dist/node_modules/antd/es/input/Search.js.map +1 -1
- package/dist/node_modules/antd/es/input/TextArea.js +1 -1
- package/dist/node_modules/antd/es/input/TextArea.js.map +1 -1
- package/dist/node_modules/antd/es/input/hooks/useRemovePasswordTimeout.js +1 -1
- package/dist/node_modules/antd/es/input/hooks/useRemovePasswordTimeout.js.map +1 -1
- package/dist/node_modules/antd/es/input/index.js +1 -1
- package/dist/node_modules/antd/es/input/index.js.map +1 -1
- package/dist/node_modules/antd/es/input/style/index.js +1 -1
- package/dist/node_modules/antd/es/input/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/input/utils.js +1 -1
- package/dist/node_modules/antd/es/input/utils.js.map +1 -1
- package/dist/node_modules/antd/es/layout/Sider.js +1 -1
- package/dist/node_modules/antd/es/layout/Sider.js.map +1 -1
- package/dist/node_modules/antd/es/layout/layout.js +1 -1
- package/dist/node_modules/antd/es/layout/layout.js.map +1 -1
- package/dist/node_modules/antd/es/layout/style/index.js +1 -1
- package/dist/node_modules/antd/es/layout/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/layout/style/light.js +1 -1
- package/dist/node_modules/antd/es/layout/style/light.js.map +1 -1
- package/dist/node_modules/antd/es/locale/context.js +1 -1
- package/dist/node_modules/antd/es/locale/context.js.map +1 -1
- package/dist/node_modules/antd/es/locale/en_US.js +1 -1
- package/dist/node_modules/antd/es/locale/en_US.js.map +1 -1
- package/dist/node_modules/antd/es/locale/index.js +1 -1
- package/dist/node_modules/antd/es/locale/index.js.map +1 -1
- package/dist/node_modules/antd/es/locale/useLocale.js +1 -1
- package/dist/node_modules/antd/es/locale/useLocale.js.map +1 -1
- package/dist/node_modules/antd/es/menu/MenuContext.js +1 -1
- package/dist/node_modules/antd/es/menu/MenuContext.js.map +1 -1
- package/dist/node_modules/antd/es/menu/MenuDivider.js +1 -1
- package/dist/node_modules/antd/es/menu/MenuDivider.js.map +1 -1
- package/dist/node_modules/antd/es/menu/MenuItem.js +1 -1
- package/dist/node_modules/antd/es/menu/MenuItem.js.map +1 -1
- package/dist/node_modules/antd/es/menu/OverrideContext.js +1 -1
- package/dist/node_modules/antd/es/menu/OverrideContext.js.map +1 -1
- package/dist/node_modules/antd/es/menu/SubMenu.js +1 -1
- package/dist/node_modules/antd/es/menu/SubMenu.js.map +1 -1
- package/dist/node_modules/antd/es/menu/hooks/useItems.js +1 -1
- package/dist/node_modules/antd/es/menu/hooks/useItems.js.map +1 -1
- package/dist/node_modules/antd/es/menu/index.js +1 -1
- package/dist/node_modules/antd/es/menu/index.js.map +1 -1
- package/dist/node_modules/antd/es/menu/menu.js +1 -1
- package/dist/node_modules/antd/es/menu/menu.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 +1 -1
- package/dist/node_modules/antd/es/menu/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/menu/style/rtl.js +1 -1
- package/dist/node_modules/antd/es/menu/style/rtl.js.map +1 -1
- package/dist/node_modules/antd/es/menu/style/theme.js +1 -1
- package/dist/node_modules/antd/es/menu/style/theme.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 +1 -1
- package/dist/node_modules/antd/es/modal/ConfirmDialog.js.map +1 -1
- package/dist/node_modules/antd/es/modal/Modal.js +1 -1
- package/dist/node_modules/antd/es/modal/Modal.js.map +1 -1
- package/dist/node_modules/antd/es/modal/PurePanel.js +1 -1
- package/dist/node_modules/antd/es/modal/PurePanel.js.map +1 -1
- package/dist/node_modules/antd/es/modal/confirm.js +1 -1
- package/dist/node_modules/antd/es/modal/confirm.js.map +1 -1
- package/dist/node_modules/antd/es/modal/destroyFns.js +1 -1
- package/dist/node_modules/antd/es/modal/destroyFns.js.map +1 -1
- package/dist/node_modules/antd/es/modal/index.js +1 -1
- package/dist/node_modules/antd/es/modal/index.js.map +1 -1
- package/dist/node_modules/antd/es/modal/locale.js +1 -1
- package/dist/node_modules/antd/es/modal/locale.js.map +1 -1
- package/dist/node_modules/antd/es/modal/style/index.js +1 -1
- package/dist/node_modules/antd/es/modal/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/modal/useModal/HookModal.js +1 -1
- package/dist/node_modules/antd/es/modal/useModal/HookModal.js.map +1 -1
- package/dist/node_modules/antd/es/modal/useModal/index.js +1 -1
- package/dist/node_modules/antd/es/modal/useModal/index.js.map +1 -1
- package/dist/node_modules/antd/es/radio/context.js +1 -1
- package/dist/node_modules/antd/es/radio/context.js.map +1 -1
- package/dist/node_modules/antd/es/radio/group.js +1 -1
- package/dist/node_modules/antd/es/radio/group.js.map +1 -1
- package/dist/node_modules/antd/es/radio/index.js +1 -1
- package/dist/node_modules/antd/es/radio/index.js.map +1 -1
- package/dist/node_modules/antd/es/radio/radio.js +1 -1
- package/dist/node_modules/antd/es/radio/radio.js.map +1 -1
- package/dist/node_modules/antd/es/radio/radioButton.js +1 -1
- package/dist/node_modules/antd/es/radio/radioButton.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/index.js +1 -1
- package/dist/node_modules/antd/es/select/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/index.js +1 -1
- package/dist/node_modules/antd/es/select/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/select/style/multiple.js +1 -1
- package/dist/node_modules/antd/es/select/style/multiple.js.map +1 -1
- package/dist/node_modules/antd/es/select/style/single.js +1 -1
- package/dist/node_modules/antd/es/select/style/single.js.map +1 -1
- package/dist/node_modules/antd/es/select/useShowArrow.js +1 -1
- package/dist/node_modules/antd/es/select/useShowArrow.js.map +1 -1
- package/dist/node_modules/antd/es/select/utils/iconUtil.js +1 -1
- package/dist/node_modules/antd/es/select/utils/iconUtil.js.map +1 -1
- package/dist/node_modules/antd/es/space/Compact.js +1 -1
- package/dist/node_modules/antd/es/space/Compact.js.map +1 -1
- package/dist/node_modules/antd/es/space/Item.js +1 -1
- package/dist/node_modules/antd/es/space/Item.js.map +1 -1
- package/dist/node_modules/antd/es/space/index.js +1 -1
- package/dist/node_modules/antd/es/space/index.js.map +1 -1
- package/dist/node_modules/antd/es/space/style/compact.js +1 -1
- package/dist/node_modules/antd/es/space/style/compact.js.map +1 -1
- package/dist/node_modules/antd/es/space/style/index.js +1 -1
- package/dist/node_modules/antd/es/space/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/style/compact-item-vertical.js +1 -1
- package/dist/node_modules/antd/es/style/compact-item-vertical.js.map +1 -1
- package/dist/node_modules/antd/es/style/compact-item.js +1 -1
- package/dist/node_modules/antd/es/style/compact-item.js.map +1 -1
- package/dist/node_modules/antd/es/style/index.js +1 -1
- package/dist/node_modules/antd/es/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/style/motion/collapse.js +1 -1
- package/dist/node_modules/antd/es/style/motion/collapse.js.map +1 -1
- package/dist/node_modules/antd/es/style/motion/fade.js +1 -1
- package/dist/node_modules/antd/es/style/motion/fade.js.map +1 -1
- package/dist/node_modules/antd/es/style/motion/motion.js +1 -1
- package/dist/node_modules/antd/es/style/motion/motion.js.map +1 -1
- package/dist/node_modules/antd/es/style/motion/move.js +1 -1
- package/dist/node_modules/antd/es/style/motion/move.js.map +1 -1
- package/dist/node_modules/antd/es/style/motion/slide.js +1 -1
- package/dist/node_modules/antd/es/style/motion/slide.js.map +1 -1
- package/dist/node_modules/antd/es/style/motion/zoom.js +1 -1
- package/dist/node_modules/antd/es/style/motion/zoom.js.map +1 -1
- package/dist/node_modules/antd/es/style/placementArrow.js +1 -1
- package/dist/node_modules/antd/es/style/placementArrow.js.map +1 -1
- package/dist/node_modules/antd/es/style/presetColor.js +1 -1
- package/dist/node_modules/antd/es/style/presetColor.js.map +1 -1
- package/dist/node_modules/antd/es/style/roundedArrow.js +1 -1
- package/dist/node_modules/antd/es/style/roundedArrow.js.map +1 -1
- package/dist/node_modules/antd/es/theme/index.js +1 -1
- package/dist/node_modules/antd/es/theme/index.js.map +1 -1
- package/dist/node_modules/antd/es/theme/interface/presetColors.js +1 -1
- package/dist/node_modules/antd/es/theme/interface/presetColors.js.map +1 -1
- package/dist/node_modules/antd/es/theme/internal.js +1 -1
- package/dist/node_modules/antd/es/theme/internal.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/compact/genCompactSizeMapToken.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/compact/genCompactSizeMapToken.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/compact/index.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/compact/index.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/dark/colorAlgorithm.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/dark/colorAlgorithm.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/dark/colors.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/dark/colors.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/dark/index.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/dark/index.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/default/colorAlgorithm.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/default/colorAlgorithm.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/default/colors.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/default/colors.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/default/index.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/default/index.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/seed.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/seed.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/shared/genColorMapToken.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/shared/genColorMapToken.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/shared/genCommonMapToken.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/shared/genCommonMapToken.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/shared/genControlHeight.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/shared/genControlHeight.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/shared/genFontMapToken.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/shared/genFontMapToken.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/shared/genFontSizes.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/shared/genFontSizes.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/shared/genRadius.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/shared/genRadius.js.map +1 -1
- package/dist/node_modules/antd/es/theme/themes/shared/genSizeMapToken.js +1 -1
- package/dist/node_modules/antd/es/theme/themes/shared/genSizeMapToken.js.map +1 -1
- package/dist/node_modules/antd/es/theme/util/alias.js +1 -1
- package/dist/node_modules/antd/es/theme/util/alias.js.map +1 -1
- package/dist/node_modules/antd/es/theme/util/genComponentStyleHook.js +1 -1
- package/dist/node_modules/antd/es/theme/util/genComponentStyleHook.js.map +1 -1
- package/dist/node_modules/antd/es/theme/util/getAlphaColor.js +1 -1
- package/dist/node_modules/antd/es/theme/util/getAlphaColor.js.map +1 -1
- package/dist/node_modules/antd/es/theme/util/statistic.js +1 -1
- package/dist/node_modules/antd/es/theme/util/statistic.js.map +1 -1
- package/dist/node_modules/antd/es/time-picker/locale/en_US.js +1 -1
- package/dist/node_modules/antd/es/time-picker/locale/en_US.js.map +1 -1
- package/dist/node_modules/antd/es/tooltip/PurePanel.js +1 -1
- package/dist/node_modules/antd/es/tooltip/PurePanel.js.map +1 -1
- package/dist/node_modules/antd/es/tooltip/index.js +1 -1
- package/dist/node_modules/antd/es/tooltip/index.js.map +1 -1
- package/dist/node_modules/antd/es/tooltip/style/index.js +1 -1
- package/dist/node_modules/antd/es/tooltip/style/index.js.map +1 -1
- package/dist/node_modules/antd/es/tooltip/util.js +1 -1
- package/dist/node_modules/antd/es/tooltip/util.js.map +1 -1
- package/dist/node_modules/antd/es/version/index.js +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/async-validator/dist-web/index.js +1 -1
- package/dist/node_modules/async-validator/dist-web/index.js.map +1 -1
- package/dist/node_modules/classnames/index.js +2 -2
- package/dist/node_modules/classnames/index.js.map +1 -1
- package/dist/node_modules/dom-align/dist-web/index.js +1 -1
- package/dist/node_modules/dom-align/dist-web/index.js.map +1 -1
- package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +1 -1
- package/dist/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js.map +1 -1
- package/dist/node_modules/rc-align/es/Align.js +1 -1
- package/dist/node_modules/rc-align/es/Align.js.map +1 -1
- package/dist/node_modules/rc-align/es/hooks/useBuffer.js +1 -1
- package/dist/node_modules/rc-align/es/hooks/useBuffer.js.map +1 -1
- package/dist/node_modules/rc-align/es/index.js +1 -1
- package/dist/node_modules/rc-align/es/util.js +1 -1
- package/dist/node_modules/rc-align/es/util.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/Cascader.js +1 -1
- package/dist/node_modules/rc-cascader/es/Cascader.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/OptionList/Checkbox.js +1 -1
- package/dist/node_modules/rc-cascader/es/OptionList/Checkbox.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/OptionList/Column.js +1 -1
- package/dist/node_modules/rc-cascader/es/OptionList/Column.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/OptionList/index.js +1 -1
- package/dist/node_modules/rc-cascader/es/OptionList/index.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/OptionList/useActive.js +1 -1
- package/dist/node_modules/rc-cascader/es/OptionList/useActive.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/OptionList/useKeyboard.js +1 -1
- package/dist/node_modules/rc-cascader/es/OptionList/useKeyboard.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/context.js +1 -1
- package/dist/node_modules/rc-cascader/es/context.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/hooks/useDisplayValues.js +1 -1
- package/dist/node_modules/rc-cascader/es/hooks/useDisplayValues.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/hooks/useEntities.js +1 -1
- package/dist/node_modules/rc-cascader/es/hooks/useEntities.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/hooks/useMissingValues.js +1 -1
- package/dist/node_modules/rc-cascader/es/hooks/useMissingValues.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/hooks/useRefFunc.js +1 -1
- package/dist/node_modules/rc-cascader/es/hooks/useRefFunc.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/hooks/useSearchConfig.js +1 -1
- package/dist/node_modules/rc-cascader/es/hooks/useSearchConfig.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/hooks/useSearchOptions.js +1 -1
- package/dist/node_modules/rc-cascader/es/hooks/useSearchOptions.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/index.js +1 -1
- package/dist/node_modules/rc-cascader/es/utils/commonUtil.js +1 -1
- package/dist/node_modules/rc-cascader/es/utils/commonUtil.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/utils/treeUtil.js +1 -1
- package/dist/node_modules/rc-cascader/es/utils/treeUtil.js.map +1 -1
- package/dist/node_modules/rc-cascader/es/utils/warningPropsUtil.js +1 -1
- package/dist/node_modules/rc-cascader/es/utils/warningPropsUtil.js.map +1 -1
- package/dist/node_modules/rc-checkbox/es/index.js +1 -1
- package/dist/node_modules/rc-checkbox/es/index.js.map +1 -1
- package/dist/node_modules/rc-dialog/es/Dialog/Content/MemoChildren.js +1 -1
- package/dist/node_modules/rc-dialog/es/Dialog/Content/MemoChildren.js.map +1 -1
- package/dist/node_modules/rc-dialog/es/Dialog/Content/Panel.js +1 -1
- package/dist/node_modules/rc-dialog/es/Dialog/Content/Panel.js.map +1 -1
- package/dist/node_modules/rc-dialog/es/Dialog/Content/index.js +1 -1
- package/dist/node_modules/rc-dialog/es/Dialog/Content/index.js.map +1 -1
- package/dist/node_modules/rc-dialog/es/Dialog/Mask.js +1 -1
- package/dist/node_modules/rc-dialog/es/Dialog/Mask.js.map +1 -1
- package/dist/node_modules/rc-dialog/es/Dialog/index.js +1 -1
- package/dist/node_modules/rc-dialog/es/Dialog/index.js.map +1 -1
- package/dist/node_modules/rc-dialog/es/DialogWrap.js +1 -1
- package/dist/node_modules/rc-dialog/es/DialogWrap.js.map +1 -1
- package/dist/node_modules/rc-dialog/es/index.js +1 -1
- package/dist/node_modules/rc-dialog/es/util.js +1 -1
- package/dist/node_modules/rc-dialog/es/util.js.map +1 -1
- package/dist/node_modules/rc-dropdown/es/Dropdown.js +1 -1
- package/dist/node_modules/rc-dropdown/es/Dropdown.js.map +1 -1
- package/dist/node_modules/rc-dropdown/es/hooks/useAccessibility.js +1 -1
- package/dist/node_modules/rc-dropdown/es/hooks/useAccessibility.js.map +1 -1
- package/dist/node_modules/rc-dropdown/es/index.js +1 -1
- package/dist/node_modules/rc-dropdown/es/placements.js +1 -1
- package/dist/node_modules/rc-dropdown/es/placements.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/Field.js +1 -1
- package/dist/node_modules/rc-field-form/es/Field.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/FieldContext.js +1 -1
- package/dist/node_modules/rc-field-form/es/FieldContext.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/Form.js +1 -1
- package/dist/node_modules/rc-field-form/es/Form.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/FormContext.js +1 -1
- package/dist/node_modules/rc-field-form/es/FormContext.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/List.js +1 -1
- package/dist/node_modules/rc-field-form/es/List.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/ListContext.js +1 -1
- package/dist/node_modules/rc-field-form/es/ListContext.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/index.js +1 -1
- package/dist/node_modules/rc-field-form/es/index.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/useForm.js +1 -1
- package/dist/node_modules/rc-field-form/es/useForm.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/useWatch.js +1 -1
- package/dist/node_modules/rc-field-form/es/useWatch.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/utils/NameMap.js +1 -1
- package/dist/node_modules/rc-field-form/es/utils/NameMap.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/utils/asyncUtil.js +1 -1
- package/dist/node_modules/rc-field-form/es/utils/asyncUtil.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/utils/cloneDeep.js +1 -1
- package/dist/node_modules/rc-field-form/es/utils/cloneDeep.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/utils/messages.js +1 -1
- package/dist/node_modules/rc-field-form/es/utils/messages.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/utils/typeUtil.js +1 -1
- package/dist/node_modules/rc-field-form/es/utils/typeUtil.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/utils/validateUtil.js +1 -1
- package/dist/node_modules/rc-field-form/es/utils/validateUtil.js.map +1 -1
- package/dist/node_modules/rc-field-form/es/utils/valueUtil.js +1 -1
- package/dist/node_modules/rc-field-form/es/utils/valueUtil.js.map +1 -1
- package/dist/node_modules/rc-input/es/BaseInput.js +1 -1
- package/dist/node_modules/rc-input/es/BaseInput.js.map +1 -1
- package/dist/node_modules/rc-input/es/Input.js +1 -1
- package/dist/node_modules/rc-input/es/Input.js.map +1 -1
- package/dist/node_modules/rc-input/es/index.js +1 -1
- package/dist/node_modules/rc-input/es/utils/commonUtils.js +1 -1
- package/dist/node_modules/rc-input/es/utils/commonUtils.js.map +1 -1
- package/dist/node_modules/rc-menu/es/Divider.js +1 -1
- package/dist/node_modules/rc-menu/es/Divider.js.map +1 -1
- package/dist/node_modules/rc-menu/es/Icon.js +1 -1
- package/dist/node_modules/rc-menu/es/Icon.js.map +1 -1
- package/dist/node_modules/rc-menu/es/Menu.js +1 -1
- package/dist/node_modules/rc-menu/es/Menu.js.map +1 -1
- package/dist/node_modules/rc-menu/es/MenuItem.js +1 -1
- package/dist/node_modules/rc-menu/es/MenuItem.js.map +1 -1
- package/dist/node_modules/rc-menu/es/MenuItemGroup.js +1 -1
- package/dist/node_modules/rc-menu/es/MenuItemGroup.js.map +1 -1
- package/dist/node_modules/rc-menu/es/SubMenu/InlineSubMenuList.js +1 -1
- package/dist/node_modules/rc-menu/es/SubMenu/InlineSubMenuList.js.map +1 -1
- package/dist/node_modules/rc-menu/es/SubMenu/PopupTrigger.js +1 -1
- package/dist/node_modules/rc-menu/es/SubMenu/PopupTrigger.js.map +1 -1
- package/dist/node_modules/rc-menu/es/SubMenu/SubMenuList.js +1 -1
- package/dist/node_modules/rc-menu/es/SubMenu/SubMenuList.js.map +1 -1
- package/dist/node_modules/rc-menu/es/SubMenu/index.js +1 -1
- package/dist/node_modules/rc-menu/es/SubMenu/index.js.map +1 -1
- package/dist/node_modules/rc-menu/es/context/IdContext.js +1 -1
- package/dist/node_modules/rc-menu/es/context/IdContext.js.map +1 -1
- package/dist/node_modules/rc-menu/es/context/MenuContext.js +1 -1
- package/dist/node_modules/rc-menu/es/context/MenuContext.js.map +1 -1
- package/dist/node_modules/rc-menu/es/context/PathContext.js +1 -1
- package/dist/node_modules/rc-menu/es/context/PathContext.js.map +1 -1
- package/dist/node_modules/rc-menu/es/context/PrivateContext.js +1 -1
- package/dist/node_modules/rc-menu/es/context/PrivateContext.js.map +1 -1
- package/dist/node_modules/rc-menu/es/hooks/useAccessibility.js +1 -1
- package/dist/node_modules/rc-menu/es/hooks/useAccessibility.js.map +1 -1
- package/dist/node_modules/rc-menu/es/hooks/useActive.js +1 -1
- package/dist/node_modules/rc-menu/es/hooks/useActive.js.map +1 -1
- package/dist/node_modules/rc-menu/es/hooks/useDirectionStyle.js +1 -1
- package/dist/node_modules/rc-menu/es/hooks/useDirectionStyle.js.map +1 -1
- package/dist/node_modules/rc-menu/es/hooks/useKeyRecords.js +1 -1
- package/dist/node_modules/rc-menu/es/hooks/useKeyRecords.js.map +1 -1
- package/dist/node_modules/rc-menu/es/hooks/useMemoCallback.js +1 -1
- package/dist/node_modules/rc-menu/es/hooks/useMemoCallback.js.map +1 -1
- package/dist/node_modules/rc-menu/es/hooks/useUUID.js +1 -1
- package/dist/node_modules/rc-menu/es/hooks/useUUID.js.map +1 -1
- package/dist/node_modules/rc-menu/es/index.js +1 -1
- package/dist/node_modules/rc-menu/es/index.js.map +1 -1
- package/dist/node_modules/rc-menu/es/placements.js +1 -1
- package/dist/node_modules/rc-menu/es/placements.js.map +1 -1
- package/dist/node_modules/rc-menu/es/utils/motionUtil.js +1 -1
- package/dist/node_modules/rc-menu/es/utils/motionUtil.js.map +1 -1
- package/dist/node_modules/rc-menu/es/utils/nodeUtil.js +1 -1
- package/dist/node_modules/rc-menu/es/utils/nodeUtil.js.map +1 -1
- package/dist/node_modules/rc-menu/es/utils/timeUtil.js +1 -1
- package/dist/node_modules/rc-menu/es/utils/timeUtil.js.map +1 -1
- package/dist/node_modules/rc-menu/es/utils/warnUtil.js +1 -1
- package/dist/node_modules/rc-menu/es/utils/warnUtil.js.map +1 -1
- package/dist/node_modules/rc-motion/es/CSSMotion.js +1 -1
- package/dist/node_modules/rc-motion/es/CSSMotion.js.map +1 -1
- package/dist/node_modules/rc-motion/es/CSSMotionList.js +1 -1
- package/dist/node_modules/rc-motion/es/CSSMotionList.js.map +1 -1
- package/dist/node_modules/rc-motion/es/DomWrapper.js +1 -1
- package/dist/node_modules/rc-motion/es/DomWrapper.js.map +1 -1
- package/dist/node_modules/rc-motion/es/hooks/useDomMotionEvents.js +1 -1
- package/dist/node_modules/rc-motion/es/hooks/useDomMotionEvents.js.map +1 -1
- package/dist/node_modules/rc-motion/es/hooks/useIsomorphicLayoutEffect.js +1 -1
- package/dist/node_modules/rc-motion/es/hooks/useIsomorphicLayoutEffect.js.map +1 -1
- package/dist/node_modules/rc-motion/es/hooks/useNextFrame.js +1 -1
- package/dist/node_modules/rc-motion/es/hooks/useNextFrame.js.map +1 -1
- package/dist/node_modules/rc-motion/es/hooks/useStatus.js +1 -1
- package/dist/node_modules/rc-motion/es/hooks/useStatus.js.map +1 -1
- package/dist/node_modules/rc-motion/es/hooks/useStepQueue.js +1 -1
- package/dist/node_modules/rc-motion/es/hooks/useStepQueue.js.map +1 -1
- package/dist/node_modules/rc-motion/es/index.js +1 -1
- package/dist/node_modules/rc-motion/es/interface.js +1 -1
- package/dist/node_modules/rc-motion/es/interface.js.map +1 -1
- package/dist/node_modules/rc-motion/es/util/diff.js +1 -1
- package/dist/node_modules/rc-motion/es/util/diff.js.map +1 -1
- package/dist/node_modules/rc-motion/es/util/motion.js +1 -1
- package/dist/node_modules/rc-motion/es/util/motion.js.map +1 -1
- package/dist/node_modules/rc-overflow/es/Item.js +1 -1
- package/dist/node_modules/rc-overflow/es/Item.js.map +1 -1
- package/dist/node_modules/rc-overflow/es/Overflow.js +1 -1
- package/dist/node_modules/rc-overflow/es/Overflow.js.map +1 -1
- package/dist/node_modules/rc-overflow/es/RawItem.js +1 -1
- package/dist/node_modules/rc-overflow/es/RawItem.js.map +1 -1
- package/dist/node_modules/rc-overflow/es/hooks/channelUpdate.js +1 -1
- package/dist/node_modules/rc-overflow/es/hooks/channelUpdate.js.map +1 -1
- package/dist/node_modules/rc-overflow/es/hooks/useEffectState.js +1 -1
- package/dist/node_modules/rc-overflow/es/hooks/useEffectState.js.map +1 -1
- package/dist/node_modules/rc-overflow/es/index.js +1 -1
- package/dist/node_modules/rc-pagination/es/locale/en_US.js +1 -1
- package/dist/node_modules/rc-pagination/es/locale/en_US.js.map +1 -1
- package/dist/node_modules/rc-picker/es/locale/en_US.js +1 -1
- package/dist/node_modules/rc-picker/es/locale/en_US.js.map +1 -1
- package/dist/node_modules/rc-resize-observer/es/Collection.js +1 -1
- package/dist/node_modules/rc-resize-observer/es/Collection.js.map +1 -1
- package/dist/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js +1 -1
- package/dist/node_modules/rc-resize-observer/es/SingleObserver/DomWrapper.js.map +1 -1
- package/dist/node_modules/rc-resize-observer/es/SingleObserver/index.js +1 -1
- package/dist/node_modules/rc-resize-observer/es/SingleObserver/index.js.map +1 -1
- package/dist/node_modules/rc-resize-observer/es/index.js +1 -1
- package/dist/node_modules/rc-resize-observer/es/index.js.map +1 -1
- package/dist/node_modules/rc-resize-observer/es/utils/observerUtil.js +1 -1
- package/dist/node_modules/rc-resize-observer/es/utils/observerUtil.js.map +1 -1
- package/dist/node_modules/rc-select/es/BaseSelect.js +1 -1
- package/dist/node_modules/rc-select/es/BaseSelect.js.map +1 -1
- package/dist/node_modules/rc-select/es/OptGroup.js +1 -1
- package/dist/node_modules/rc-select/es/OptGroup.js.map +1 -1
- package/dist/node_modules/rc-select/es/Option.js +1 -1
- package/dist/node_modules/rc-select/es/Option.js.map +1 -1
- package/dist/node_modules/rc-select/es/OptionList.js +1 -1
- package/dist/node_modules/rc-select/es/OptionList.js.map +1 -1
- package/dist/node_modules/rc-select/es/Select.js +1 -1
- package/dist/node_modules/rc-select/es/Select.js.map +1 -1
- package/dist/node_modules/rc-select/es/SelectContext.js +1 -1
- package/dist/node_modules/rc-select/es/SelectContext.js.map +1 -1
- package/dist/node_modules/rc-select/es/SelectTrigger.js +1 -1
- package/dist/node_modules/rc-select/es/SelectTrigger.js.map +1 -1
- package/dist/node_modules/rc-select/es/Selector/Input.js +1 -1
- package/dist/node_modules/rc-select/es/Selector/Input.js.map +1 -1
- package/dist/node_modules/rc-select/es/Selector/MultipleSelector.js +1 -1
- package/dist/node_modules/rc-select/es/Selector/MultipleSelector.js.map +1 -1
- package/dist/node_modules/rc-select/es/Selector/SingleSelector.js +1 -1
- package/dist/node_modules/rc-select/es/Selector/SingleSelector.js.map +1 -1
- package/dist/node_modules/rc-select/es/Selector/index.js +1 -1
- package/dist/node_modules/rc-select/es/Selector/index.js.map +1 -1
- package/dist/node_modules/rc-select/es/TransBtn.js +1 -1
- package/dist/node_modules/rc-select/es/TransBtn.js.map +1 -1
- package/dist/node_modules/rc-select/es/hooks/useBaseProps.js +1 -1
- package/dist/node_modules/rc-select/es/hooks/useBaseProps.js.map +1 -1
- package/dist/node_modules/rc-select/es/hooks/useCache.js +1 -1
- package/dist/node_modules/rc-select/es/hooks/useCache.js.map +1 -1
- package/dist/node_modules/rc-select/es/hooks/useDelayReset.js +1 -1
- package/dist/node_modules/rc-select/es/hooks/useDelayReset.js.map +1 -1
- package/dist/node_modules/rc-select/es/hooks/useFilterOptions.js +1 -1
- package/dist/node_modules/rc-select/es/hooks/useFilterOptions.js.map +1 -1
- package/dist/node_modules/rc-select/es/hooks/useId.js +1 -1
- package/dist/node_modules/rc-select/es/hooks/useId.js.map +1 -1
- package/dist/node_modules/rc-select/es/hooks/useLayoutEffect.js +1 -1
- package/dist/node_modules/rc-select/es/hooks/useLayoutEffect.js.map +1 -1
- package/dist/node_modules/rc-select/es/hooks/useLock.js +1 -1
- package/dist/node_modules/rc-select/es/hooks/useLock.js.map +1 -1
- package/dist/node_modules/rc-select/es/hooks/useOptions.js +1 -1
- package/dist/node_modules/rc-select/es/hooks/useOptions.js.map +1 -1
- package/dist/node_modules/rc-select/es/hooks/useRefFunc.js +1 -1
- package/dist/node_modules/rc-select/es/hooks/useRefFunc.js.map +1 -1
- package/dist/node_modules/rc-select/es/hooks/useSelectTriggerControl.js +1 -1
- package/dist/node_modules/rc-select/es/hooks/useSelectTriggerControl.js.map +1 -1
- package/dist/node_modules/rc-select/es/index.js +1 -1
- package/dist/node_modules/rc-select/es/utils/commonUtil.js +1 -1
- package/dist/node_modules/rc-select/es/utils/commonUtil.js.map +1 -1
- package/dist/node_modules/rc-select/es/utils/keyUtil.js +1 -1
- package/dist/node_modules/rc-select/es/utils/keyUtil.js.map +1 -1
- package/dist/node_modules/rc-select/es/utils/legacyUtil.js +1 -1
- package/dist/node_modules/rc-select/es/utils/legacyUtil.js.map +1 -1
- package/dist/node_modules/rc-select/es/utils/platformUtil.js +1 -1
- package/dist/node_modules/rc-select/es/utils/platformUtil.js.map +1 -1
- package/dist/node_modules/rc-select/es/utils/valueUtil.js +1 -1
- package/dist/node_modules/rc-select/es/utils/valueUtil.js.map +1 -1
- package/dist/node_modules/rc-select/es/utils/warningPropsUtil.js +1 -1
- package/dist/node_modules/rc-select/es/utils/warningPropsUtil.js.map +1 -1
- package/dist/node_modules/rc-textarea/es/ResizableTextArea.js +1 -1
- package/dist/node_modules/rc-textarea/es/ResizableTextArea.js.map +1 -1
- package/dist/node_modules/rc-textarea/es/TextArea.js +1 -1
- package/dist/node_modules/rc-textarea/es/TextArea.js.map +1 -1
- package/dist/node_modules/rc-textarea/es/calculateNodeHeight.js +1 -1
- package/dist/node_modules/rc-textarea/es/calculateNodeHeight.js.map +1 -1
- package/dist/node_modules/rc-textarea/es/index.js +1 -1
- package/dist/node_modules/rc-tooltip/es/Popup.js +1 -1
- package/dist/node_modules/rc-tooltip/es/Popup.js.map +1 -1
- package/dist/node_modules/rc-tooltip/es/Tooltip.js +1 -1
- package/dist/node_modules/rc-tooltip/es/Tooltip.js.map +1 -1
- package/dist/node_modules/rc-tooltip/es/index.js +1 -1
- package/dist/node_modules/rc-tooltip/es/placements.js +1 -1
- package/dist/node_modules/rc-tooltip/es/placements.js.map +1 -1
- package/dist/node_modules/rc-tree/es/util.js +1 -1
- package/dist/node_modules/rc-tree/es/util.js.map +1 -1
- package/dist/node_modules/rc-tree/es/utils/conductUtil.js +1 -1
- package/dist/node_modules/rc-tree/es/utils/conductUtil.js.map +1 -1
- package/dist/node_modules/rc-tree/es/utils/treeUtil.js +1 -1
- package/dist/node_modules/rc-tree/es/utils/treeUtil.js.map +1 -1
- package/dist/node_modules/rc-trigger/es/Popup/Mask.js +1 -1
- package/dist/node_modules/rc-trigger/es/Popup/Mask.js.map +1 -1
- package/dist/node_modules/rc-trigger/es/Popup/MobilePopupInner.js +1 -1
- package/dist/node_modules/rc-trigger/es/Popup/MobilePopupInner.js.map +1 -1
- package/dist/node_modules/rc-trigger/es/Popup/PopupInner.js +1 -1
- package/dist/node_modules/rc-trigger/es/Popup/PopupInner.js.map +1 -1
- package/dist/node_modules/rc-trigger/es/Popup/index.js +1 -1
- package/dist/node_modules/rc-trigger/es/Popup/index.js.map +1 -1
- package/dist/node_modules/rc-trigger/es/Popup/useStretchStyle.js +1 -1
- package/dist/node_modules/rc-trigger/es/Popup/useStretchStyle.js.map +1 -1
- package/dist/node_modules/rc-trigger/es/Popup/useVisibleStatus.js +1 -1
- package/dist/node_modules/rc-trigger/es/Popup/useVisibleStatus.js.map +1 -1
- package/dist/node_modules/rc-trigger/es/context.js +1 -1
- package/dist/node_modules/rc-trigger/es/context.js.map +1 -1
- package/dist/node_modules/rc-trigger/es/index.js +1 -1
- package/dist/node_modules/rc-trigger/es/index.js.map +1 -1
- package/dist/node_modules/rc-trigger/es/utils/alignUtil.js +1 -1
- package/dist/node_modules/rc-trigger/es/utils/alignUtil.js.map +1 -1
- package/dist/node_modules/rc-trigger/es/utils/legacyUtil.js +1 -1
- package/dist/node_modules/rc-trigger/es/utils/legacyUtil.js.map +1 -1
- package/dist/node_modules/rc-util/es/Children/toArray.js +1 -1
- package/dist/node_modules/rc-util/es/Children/toArray.js.map +1 -1
- package/dist/node_modules/rc-util/es/Dom/addEventListener.js +1 -1
- package/dist/node_modules/rc-util/es/Dom/addEventListener.js.map +1 -1
- package/dist/node_modules/rc-util/es/Dom/canUseDom.js +1 -1
- package/dist/node_modules/rc-util/es/Dom/canUseDom.js.map +1 -1
- package/dist/node_modules/rc-util/es/Dom/contains.js +1 -1
- package/dist/node_modules/rc-util/es/Dom/contains.js.map +1 -1
- package/dist/node_modules/rc-util/es/Dom/dynamicCSS.js +1 -1
- package/dist/node_modules/rc-util/es/Dom/dynamicCSS.js.map +1 -1
- package/dist/node_modules/rc-util/es/Dom/findDOMNode.js +1 -1
- package/dist/node_modules/rc-util/es/Dom/findDOMNode.js.map +1 -1
- package/dist/node_modules/rc-util/es/Dom/focus.js +1 -1
- package/dist/node_modules/rc-util/es/Dom/focus.js.map +1 -1
- package/dist/node_modules/rc-util/es/Dom/isVisible.js +1 -1
- package/dist/node_modules/rc-util/es/Dom/isVisible.js.map +1 -1
- package/dist/node_modules/rc-util/es/KeyCode.js +1 -1
- package/dist/node_modules/rc-util/es/KeyCode.js.map +1 -1
- package/dist/node_modules/rc-util/es/Portal.js +1 -1
- package/dist/node_modules/rc-util/es/Portal.js.map +1 -1
- package/dist/node_modules/rc-util/es/React/render.js +1 -1
- package/dist/node_modules/rc-util/es/React/render.js.map +1 -1
- package/dist/node_modules/rc-util/es/getScrollBarSize.js +1 -1
- package/dist/node_modules/rc-util/es/getScrollBarSize.js.map +1 -1
- package/dist/node_modules/rc-util/es/hooks/useEvent.js +1 -1
- package/dist/node_modules/rc-util/es/hooks/useEvent.js.map +1 -1
- package/dist/node_modules/rc-util/es/hooks/useId.js +1 -1
- package/dist/node_modules/rc-util/es/hooks/useId.js.map +1 -1
- package/dist/node_modules/rc-util/es/hooks/useLayoutEffect.js +1 -1
- package/dist/node_modules/rc-util/es/hooks/useLayoutEffect.js.map +1 -1
- package/dist/node_modules/rc-util/es/hooks/useMemo.js +1 -1
- package/dist/node_modules/rc-util/es/hooks/useMemo.js.map +1 -1
- package/dist/node_modules/rc-util/es/hooks/useMergedState.js +1 -1
- package/dist/node_modules/rc-util/es/hooks/useMergedState.js.map +1 -1
- package/dist/node_modules/rc-util/es/hooks/useState.js +1 -1
- package/dist/node_modules/rc-util/es/hooks/useState.js.map +1 -1
- package/dist/node_modules/rc-util/es/isEqual.js +1 -1
- package/dist/node_modules/rc-util/es/isEqual.js.map +1 -1
- package/dist/node_modules/rc-util/es/isMobile.js +1 -1
- package/dist/node_modules/rc-util/es/isMobile.js.map +1 -1
- package/dist/node_modules/rc-util/es/omit.js +1 -1
- package/dist/node_modules/rc-util/es/omit.js.map +1 -1
- package/dist/node_modules/rc-util/es/pickAttrs.js +1 -1
- package/dist/node_modules/rc-util/es/pickAttrs.js.map +1 -1
- package/dist/node_modules/rc-util/es/raf.js +1 -1
- package/dist/node_modules/rc-util/es/raf.js.map +1 -1
- package/dist/node_modules/rc-util/es/ref.js +1 -1
- package/dist/node_modules/rc-util/es/ref.js.map +1 -1
- package/dist/node_modules/rc-util/es/utils/get.js +1 -1
- package/dist/node_modules/rc-util/es/utils/get.js.map +1 -1
- package/dist/node_modules/rc-util/es/utils/set.js +1 -1
- package/dist/node_modules/rc-util/es/utils/set.js.map +1 -1
- package/dist/node_modules/rc-util/es/warning.js +1 -1
- package/dist/node_modules/rc-util/es/warning.js.map +1 -1
- package/dist/node_modules/rc-virtual-list/es/Filler.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/Filler.js.map +1 -1
- package/dist/node_modules/rc-virtual-list/es/Item.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/Item.js.map +1 -1
- package/dist/node_modules/rc-virtual-list/es/List.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/List.js.map +1 -1
- package/dist/node_modules/rc-virtual-list/es/ScrollBar.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/ScrollBar.js.map +1 -1
- package/dist/node_modules/rc-virtual-list/es/hooks/useChildren.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/hooks/useChildren.js.map +1 -1
- package/dist/node_modules/rc-virtual-list/es/hooks/useDiffItem.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/hooks/useDiffItem.js.map +1 -1
- package/dist/node_modules/rc-virtual-list/es/hooks/useFrameWheel.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/hooks/useFrameWheel.js.map +1 -1
- package/dist/node_modules/rc-virtual-list/es/hooks/useHeights.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/hooks/useHeights.js.map +1 -1
- package/dist/node_modules/rc-virtual-list/es/hooks/useMobileTouchMove.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/hooks/useMobileTouchMove.js.map +1 -1
- package/dist/node_modules/rc-virtual-list/es/hooks/useOriginScroll.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/hooks/useOriginScroll.js.map +1 -1
- package/dist/node_modules/rc-virtual-list/es/hooks/useScrollTo.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/hooks/useScrollTo.js.map +1 -1
- package/dist/node_modules/rc-virtual-list/es/index.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/utils/CacheMap.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/utils/CacheMap.js.map +1 -1
- package/dist/node_modules/rc-virtual-list/es/utils/algorithmUtil.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/utils/algorithmUtil.js.map +1 -1
- package/dist/node_modules/rc-virtual-list/es/utils/isFirefox.js +1 -1
- package/dist/node_modules/rc-virtual-list/es/utils/isFirefox.js.map +1 -1
- package/dist/node_modules/react-is/cjs/react-is.development.js +2 -2
- package/dist/node_modules/react-is/cjs/react-is.development.js.map +1 -1
- package/dist/node_modules/react-is/cjs/react-is.production.min.js +2 -2
- package/dist/node_modules/react-is/cjs/react-is.production.min.js.map +1 -1
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-is/index.js.map +1 -1
- package/dist/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js +1 -1
- package/dist/node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js.map +1 -1
- package/dist/node_modules/stylis/src/Enum.js +1 -1
- package/dist/node_modules/stylis/src/Enum.js.map +1 -1
- package/dist/node_modules/stylis/src/Middleware.js +1 -1
- package/dist/node_modules/stylis/src/Middleware.js.map +1 -1
- package/dist/node_modules/stylis/src/Parser.js +1 -1
- package/dist/node_modules/stylis/src/Parser.js.map +1 -1
- package/dist/node_modules/stylis/src/Serializer.js +1 -1
- package/dist/node_modules/stylis/src/Serializer.js.map +1 -1
- package/dist/node_modules/stylis/src/Tokenizer.js +1 -1
- package/dist/node_modules/stylis/src/Tokenizer.js.map +1 -1
- package/dist/node_modules/stylis/src/Utility.js +1 -1
- package/dist/node_modules/stylis/src/Utility.js.map +1 -1
- package/dist/node_modules/tslib/tslib.es6.js +1 -1
- package/dist/node_modules/tslib/tslib.es6.js.map +1 -1
- package/dist/src/components/ConfigProvider/ConfigProvider.js +1 -1
- package/dist/src/components/ConfigProvider/ConfigProvider.js.map +1 -1
- package/dist/src/components/ConfigProvider/GlobalStyle.js +28 -28
- package/dist/src/components/ConfigProvider/GlobalStyle.js.map +1 -1
- package/dist/src/constants.js +1 -1
- package/dist/src/constants.js.map +1 -1
- package/dist/src/index.js +1 -1
- package/package.json +3 -3
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import{supportRef as r,fillRef as e,useComposeRef as o}from"../../../rc-util/es/ref.js";import*as a from"react";var t=a.forwardRef((function(t,f){var i=t.children,n=t.getTriggerDOMNode,c=r(i),l=a.useCallback((function(r){e(f,n?n(r):r)}),[n]),p=o(l,i.ref);return c?a.cloneElement(i,{ref:p}):i}));"production"!==process.env.NODE_ENV&&(t.displayName="TriggerWrapper");export{t as default};
|
|
2
2
|
//# sourceMappingURL=TriggerWrapper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TriggerWrapper.js","sources":["../../../../../node_modules/@rc-component/trigger/es/TriggerWrapper.js"],"sourcesContent":["import { fillRef, supportRef, useComposeRef } from \"rc-util/es/ref\";\nimport * as React from 'react';\nvar TriggerWrapper = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var children = props.children,\n getTriggerDOMNode = props.getTriggerDOMNode;\n var canUseRef = supportRef(children);\n\n // When use `getTriggerDOMNode`, we should do additional work to get the real dom\n var setRef = React.useCallback(function (node) {\n fillRef(ref, getTriggerDOMNode ? getTriggerDOMNode(node) : node);\n }, [getTriggerDOMNode]);\n var mergedRef = useComposeRef(setRef, children.ref);\n return canUseRef ? /*#__PURE__*/React.cloneElement(children, {\n ref: mergedRef\n }) : children;\n});\nif (process.env.NODE_ENV !== 'production') {\n TriggerWrapper.displayName = 'TriggerWrapper';\n}\nexport default TriggerWrapper;"],"names":["TriggerWrapper","React","forwardRef","props","ref","children","getTriggerDOMNode","canUseRef","supportRef","setRef","useCallback","node","fillRef","mergedRef","useComposeRef","cloneElement","process","env","NODE_ENV","displayName"],"mappings":"
|
|
1
|
+
{"version":3,"file":"TriggerWrapper.js","sources":["../../../../../node_modules/@rc-component/trigger/es/TriggerWrapper.js"],"sourcesContent":["import { fillRef, supportRef, useComposeRef } from \"rc-util/es/ref\";\nimport * as React from 'react';\nvar TriggerWrapper = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var children = props.children,\n getTriggerDOMNode = props.getTriggerDOMNode;\n var canUseRef = supportRef(children);\n\n // When use `getTriggerDOMNode`, we should do additional work to get the real dom\n var setRef = React.useCallback(function (node) {\n fillRef(ref, getTriggerDOMNode ? getTriggerDOMNode(node) : node);\n }, [getTriggerDOMNode]);\n var mergedRef = useComposeRef(setRef, children.ref);\n return canUseRef ? /*#__PURE__*/React.cloneElement(children, {\n ref: mergedRef\n }) : children;\n});\nif (process.env.NODE_ENV !== 'production') {\n TriggerWrapper.displayName = 'TriggerWrapper';\n}\nexport default TriggerWrapper;"],"names":["TriggerWrapper","React","forwardRef","props","ref","children","getTriggerDOMNode","canUseRef","supportRef","setRef","useCallback","node","fillRef","mergedRef","useComposeRef","cloneElement","process","env","NODE_ENV","displayName"],"mappings":"gHAEG,IAACA,EAA8BC,EAAMC,YAAW,SAAUC,EAAOC,GAClE,IAAIC,EAAWF,EAAME,SACnBC,EAAoBH,EAAMG,kBACxBC,EAAYC,EAAWH,GAGvBI,EAASR,EAAMS,aAAY,SAAUC,GACvCC,EAAQR,EAAKE,EAAoBA,EAAkBK,GAAQA,EAC/D,GAAK,CAACL,IACAO,EAAYC,EAAcL,EAAQJ,EAASD,KAC/C,OAAOG,EAAyBN,EAAMc,aAAaV,EAAU,CAC3DD,IAAKS,IACFR,CACP,IAC6B,eAAzBW,QAAQC,IAAIC,WACdlB,EAAemB,YAAc","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import*as t from"react";var a=t.createContext(null);export{a as default};
|
|
2
2
|
//# sourceMappingURL=context.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.js","sources":["../../../../../node_modules/@rc-component/trigger/es/context.js"],"sourcesContent":["import * as React from 'react';\nvar TriggerContext = /*#__PURE__*/React.createContext(null);\nexport default TriggerContext;"],"names":["TriggerContext","createContext"],"mappings":"
|
|
1
|
+
{"version":3,"file":"context.js","sources":["../../../../../node_modules/@rc-component/trigger/es/context.js"],"sourcesContent":["import * as React from 'react';\nvar TriggerContext = /*#__PURE__*/React.createContext(null);\nexport default TriggerContext;"],"names":["TriggerContext","React","createContext"],"mappings":"wBACG,IAACA,EAA8BC,EAAMC,cAAc","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import*as e from"react";function r(e){return e?Array.isArray(e)?e:[e]:[]}function t(t,n,a,o){return e.useMemo((function(){var e=r(null!=a?a:n),u=r(null!=o?o:n),l=new Set(e),c=new Set(u);return t&&(l.has("hover")&&(l.delete("hover"),l.add("click")),c.has("hover")&&(c.delete("hover"),c.add("click"))),[l,c]}),[t,n,a,o])}export{t as default};
|
|
2
2
|
//# sourceMappingURL=useAction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAction.js","sources":["../../../../../../node_modules/@rc-component/trigger/es/hooks/useAction.js"],"sourcesContent":["import * as React from 'react';\nfunction toArray(val) {\n return val ? Array.isArray(val) ? val : [val] : [];\n}\nexport default function useAction(mobile, action, showAction, hideAction) {\n return React.useMemo(function () {\n var mergedShowAction = toArray(showAction !== null && showAction !== void 0 ? showAction : action);\n var mergedHideAction = toArray(hideAction !== null && hideAction !== void 0 ? hideAction : action);\n var showActionSet = new Set(mergedShowAction);\n var hideActionSet = new Set(mergedHideAction);\n if (mobile) {\n if (showActionSet.has('hover')) {\n showActionSet.delete('hover');\n showActionSet.add('click');\n }\n if (hideActionSet.has('hover')) {\n hideActionSet.delete('hover');\n hideActionSet.add('click');\n }\n }\n return [showActionSet, hideActionSet];\n }, [mobile, action, showAction, hideAction]);\n}"],"names":["toArray","val","Array","isArray","mobile","action","showAction","hideAction","React","useMemo","mergedShowAction","mergedHideAction","showActionSet","Set","hideActionSet","has","delete","add"],"mappings":"
|
|
1
|
+
{"version":3,"file":"useAction.js","sources":["../../../../../../node_modules/@rc-component/trigger/es/hooks/useAction.js"],"sourcesContent":["import * as React from 'react';\nfunction toArray(val) {\n return val ? Array.isArray(val) ? val : [val] : [];\n}\nexport default function useAction(mobile, action, showAction, hideAction) {\n return React.useMemo(function () {\n var mergedShowAction = toArray(showAction !== null && showAction !== void 0 ? showAction : action);\n var mergedHideAction = toArray(hideAction !== null && hideAction !== void 0 ? hideAction : action);\n var showActionSet = new Set(mergedShowAction);\n var hideActionSet = new Set(mergedHideAction);\n if (mobile) {\n if (showActionSet.has('hover')) {\n showActionSet.delete('hover');\n showActionSet.add('click');\n }\n if (hideActionSet.has('hover')) {\n hideActionSet.delete('hover');\n hideActionSet.add('click');\n }\n }\n return [showActionSet, hideActionSet];\n }, [mobile, action, showAction, hideAction]);\n}"],"names":["toArray","val","Array","isArray","useAction","mobile","action","showAction","hideAction","React","useMemo","mergedShowAction","mergedHideAction","showActionSet","Set","hideActionSet","has","delete","add"],"mappings":"wBACA,SAASA,EAAQC,GACf,OAAOA,EAAMC,MAAMC,QAAQF,GAAOA,EAAM,CAACA,GAAO,EAClD,CACe,SAASG,EAAUC,EAAQC,EAAQC,EAAYC,GAC5D,OAAOC,EAAMC,SAAQ,WACnB,IAAIC,EAAmBX,EAAQO,QAA+CA,EAAaD,GACvFM,EAAmBZ,EAAQQ,QAA+CA,EAAaF,GACvFO,EAAgB,IAAIC,IAAIH,GACxBI,EAAgB,IAAID,IAAIF,GAW5B,OAVIP,IACEQ,EAAcG,IAAI,WACpBH,EAAcI,OAAO,SACrBJ,EAAcK,IAAI,UAEhBH,EAAcC,IAAI,WACpBD,EAAcE,OAAO,SACrBF,EAAcG,IAAI,WAGf,CAACL,EAAeE,EACxB,GAAE,CAACV,EAAQC,EAAQC,EAAYC,GAClC","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import t from"../../../../@babel/runtime/helpers/esm/objectSpread2.js";import e from"../../../../@babel/runtime/helpers/esm/slicedToArray.js";import{isDOM as o}from"../../../../rc-util/es/Dom/findDOMNode.js";import r from"../../../../rc-util/es/Dom/isVisible.js";import i from"../../../../rc-util/es/hooks/useEvent.js";import n from"../../../../rc-util/es/hooks/useLayoutEffect.js";import*as a from"react";import{collectScroller as f,getWin as l}from"../util.js";function h(t){return Number.isNaN(t)?1:t}function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return[t[0],t[1]]}function u(t,e){var o,r=e[0],i=e[1];return o="t"===r?t.y:"b"===r?t.y+t.height:t.y+t.height/2,{x:"l"===i?t.x:"r"===i?t.x+t.width:t.x+t.width/2,y:o}}function m(t,e){var o={t:"b",b:"t",l:"r",r:"l"};return t.map((function(t,r){return r===e?o[t]||"c":t})).join("")}function c(c,y,d,p,g,v,x){var b=a.useState({ready:!1,offsetX:0,offsetY:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:g[p]||{}}),M=e(b,2),w=M[0],j=M[1],X=a.useRef(0),Y=a.useMemo((function(){return y?f(y):[]}),[y]),E=i((function(){if(y&&d&&c){var i,n=y,a=n.style.left,f=n.style.top,b=n.ownerDocument,M=l(n),w=t(t({},g[p]),v);if(n.style.left="0",n.style.top="0",Array.isArray(d))i={x:d[0],y:d[1],width:0,height:0};else{var X=d.getBoundingClientRect();i={x:X.x,y:X.y,width:X.width,height:X.height}}var E=n.getBoundingClientRect(),H=M.getComputedStyle(n),R=H.width,B=H.height,C=b.documentElement,D=C.clientWidth,N=C.clientHeight,W=C.scrollWidth,A=C.scrollHeight,L=C.scrollTop,S=C.scrollLeft,T=E.height,k=E.width,F=i.height,O=i.width,P="scroll"===w.htmlRegion?{left:-S,top:-L,right:W-S,bottom:A-L}:{left:0,top:0,right:D,bottom:N};(Y||[]).forEach((function(t){if(!(t instanceof HTMLBodyElement)){var e=t.getBoundingClientRect(),o=t.offsetHeight,r=t.clientHeight,i=t.offsetWidth,n=(i-t.clientWidth)*h(Math.round(e.width/i*1e3)/1e3),a=(o-r)*h(Math.round(e.height/o*1e3)/1e3),f=e.x+e.width-n,l=e.y+e.height-a;P.left=Math.max(P.left,e.left),P.top=Math.max(P.top,e.top),P.right=Math.min(P.right,f),P.bottom=Math.min(P.bottom,l)}})),n.style.left=a,n.style.top=f;var V=h(Math.round(k/parseFloat(R)*1e3)/1e3),q=h(Math.round(T/parseFloat(B)*1e3)/1e3);if(0===V||0===q||o(d)&&!r(d))return;var z=w.offset,G=w.targetOffset,I=e(z||[],2),J=I[0],K=void 0===J?0:J,Q=I[1],U=void 0===Q?0:Q,Z=e(G||[],2),$=Z[0],_=void 0===$?0:$,tt=Z[1],et=void 0===tt?0:tt;i.x+=_,i.y+=et;var ot=w.points||[],rt=e(ot,2),it=rt[0],nt=s(rt[1]),at=s(it),ft=u(i,nt),lt=u(E,at),ht=t({},w),st=ft.x-lt.x+K,ut=ft.y-lt.y+U;function mt(t,e){var o=t+k,r=e+T,i=Math.max(t,P.left),n=Math.max(e,P.top);return(Math.min(o,P.right)-i)*(Math.min(r,P.bottom)-n)}var ct=mt(st,ut),yt=u(i,["t","l"]),dt=u(E,["t","l"]),pt=u(i,["b","r"]),gt=u(E,["b","r"]),vt=w.overflow||{},xt=vt.adjustX,bt=vt.adjustY,Mt=vt.shiftX,wt=vt.shiftY,jt=function(t){return"boolean"==typeof t?t:t>=0},Xt=E.y+ut,Yt=Xt+T,Et=jt(bt),Ht=at[0]===nt[0];if(Et&&"t"===at[0]&&Yt>P.bottom){var Rt=ut;Ht?Rt-=T-F:Rt=yt.y-gt.y-U,mt(st,Rt)>ct&&(ut=Rt,ht.points=[m(at,0),m(nt,0)])}if(Et&&"b"===at[0]&&Xt<P.top){var Bt=ut;Ht?Bt+=T-F:Bt=pt.y-dt.y-U,mt(st,Bt)>ct&&(ut=Bt,ht.points=[m(at,0),m(nt,0)])}var Ct=E.x+st,Dt=Ct+k,Nt=jt(xt),Wt=at[1]===nt[1];if(Nt&&"l"===at[1]&&Dt>P.right){var At=st;Wt?At-=k-O:At=yt.x-gt.x-K,mt(At,ut)>ct&&(st=At,ht.points=[m(at,1),m(nt,1)])}if(Nt&&"r"===at[1]&&Ct<P.left){var Lt=st;Wt?Lt+=k-O:Lt=pt.x-dt.x-K,mt(Lt,ut)>ct&&(st=Lt,ht.points=[m(at,1),m(nt,1)])}var St=!0===Mt?0:Mt;"number"==typeof St&&(Ct<P.left&&(st-=Ct-P.left,i.x+O<P.left+St&&(st+=i.x-P.left+O-St)),Dt>P.right&&(st-=Dt-P.right,i.x>P.right-St&&(st+=i.x-P.right+St)));var Tt=!0===wt?0:wt;"number"==typeof Tt&&(Xt<P.top&&(ut-=Xt-P.top,i.y+F<P.top+Tt&&(ut+=i.y-P.top+F-Tt)),Yt>P.bottom&&(ut-=Yt-P.bottom,i.y>P.bottom-Tt&&(ut+=i.y-P.bottom+Tt)));var kt=E.x+st,Ft=kt+k,Ot=E.y+ut,Pt=Ot+T,Vt=i.x,qt=Vt+O,zt=i.y,Gt=zt+F,It=(Math.max(kt,Vt)+Math.min(Ft,qt))/2-kt,Jt=(Math.max(Ot,zt)+Math.min(Pt,Gt))/2-Ot;null==x||x(y,ht),j({ready:!0,offsetX:st/V,offsetY:ut/q,arrowX:It/V,arrowY:Jt/q,scaleX:V,scaleY:q,align:ht})}})),H=function(){j((function(e){return t(t({},e),{},{ready:!1})}))};return n(H,[p]),n((function(){c||H()}),[c]),[w.ready,w.offsetX,w.offsetY,w.arrowX,w.arrowY,w.scaleX,w.scaleY,w.align,function(){X.current+=1;var t=X.current;Promise.resolve().then((function(){X.current===t&&E()}))}]}export{c as default};
|
|
2
2
|
//# sourceMappingURL=useAlign.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAlign.js","sources":["../../../../../../node_modules/@rc-component/trigger/es/hooks/useAlign.js"],"sourcesContent":["import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport { isDOM } from \"rc-util/es/Dom/findDOMNode\";\nimport isVisible from \"rc-util/es/Dom/isVisible\";\nimport useEvent from \"rc-util/es/hooks/useEvent\";\nimport useLayoutEffect from \"rc-util/es/hooks/useLayoutEffect\";\nimport * as React from 'react';\nimport { collectScroller, getWin } from \"../util\";\nfunction toNum(num) {\n return Number.isNaN(num) ? 1 : num;\n}\nfunction splitPoints() {\n var points = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n return [points[0], points[1]];\n}\nfunction getAlignPoint(rect, points) {\n var topBottom = points[0];\n var leftRight = points[1];\n var x;\n var y;\n\n // Top & Bottom\n if (topBottom === 't') {\n y = rect.y;\n } else if (topBottom === 'b') {\n y = rect.y + rect.height;\n } else {\n y = rect.y + rect.height / 2;\n }\n\n // Left & Right\n if (leftRight === 'l') {\n x = rect.x;\n } else if (leftRight === 'r') {\n x = rect.x + rect.width;\n } else {\n x = rect.x + rect.width / 2;\n }\n return {\n x: x,\n y: y\n };\n}\nfunction reversePoints(points, index) {\n var reverseMap = {\n t: 'b',\n b: 't',\n l: 'r',\n r: 'l'\n };\n return points.map(function (point, i) {\n if (i === index) {\n return reverseMap[point] || 'c';\n }\n return point;\n }).join('');\n}\nexport default function useAlign(open, popupEle, target, placement, builtinPlacements, popupAlign, onPopupAlign) {\n var _React$useState = React.useState({\n ready: false,\n offsetX: 0,\n offsetY: 0,\n arrowX: 0,\n arrowY: 0,\n scaleX: 1,\n scaleY: 1,\n align: builtinPlacements[placement] || {}\n }),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n offsetInfo = _React$useState2[0],\n setOffsetInfo = _React$useState2[1];\n var alignCountRef = React.useRef(0);\n var scrollerList = React.useMemo(function () {\n if (!popupEle) {\n return [];\n }\n return collectScroller(popupEle);\n }, [popupEle]);\n\n // ========================= Align =========================\n var onAlign = useEvent(function () {\n if (popupEle && target && open) {\n var popupElement = popupEle;\n var originLeft = popupElement.style.left;\n var originTop = popupElement.style.top;\n var doc = popupElement.ownerDocument;\n var win = getWin(popupElement);\n\n // Placement\n var placementInfo = _objectSpread(_objectSpread({}, builtinPlacements[placement]), popupAlign);\n\n // Reset first\n popupElement.style.left = '0';\n popupElement.style.top = '0';\n\n // Calculate align style, we should consider `transform` case\n var targetRect;\n if (Array.isArray(target)) {\n targetRect = {\n x: target[0],\n y: target[1],\n width: 0,\n height: 0\n };\n } else {\n var rect = target.getBoundingClientRect();\n targetRect = {\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height\n };\n }\n var popupRect = popupElement.getBoundingClientRect();\n var _win$getComputedStyle = win.getComputedStyle(popupElement),\n width = _win$getComputedStyle.width,\n height = _win$getComputedStyle.height;\n var _doc$documentElement = doc.documentElement,\n clientWidth = _doc$documentElement.clientWidth,\n clientHeight = _doc$documentElement.clientHeight,\n scrollWidth = _doc$documentElement.scrollWidth,\n scrollHeight = _doc$documentElement.scrollHeight,\n scrollTop = _doc$documentElement.scrollTop,\n scrollLeft = _doc$documentElement.scrollLeft;\n var popupHeight = popupRect.height;\n var popupWidth = popupRect.width;\n var targetHeight = targetRect.height;\n var targetWidth = targetRect.width;\n\n // Get bounding of visible area\n var visibleArea = placementInfo.htmlRegion === 'scroll' ?\n // Scroll region should take scrollLeft & scrollTop into account\n {\n left: -scrollLeft,\n top: -scrollTop,\n right: scrollWidth - scrollLeft,\n bottom: scrollHeight - scrollTop\n } : {\n left: 0,\n top: 0,\n right: clientWidth,\n bottom: clientHeight\n };\n (scrollerList || []).forEach(function (ele) {\n if (ele instanceof HTMLBodyElement) {\n return;\n }\n var eleRect = ele.getBoundingClientRect();\n var eleOutHeight = ele.offsetHeight,\n eleInnerHeight = ele.clientHeight,\n eleOutWidth = ele.offsetWidth,\n eleInnerWidth = ele.clientWidth;\n var scaleX = toNum(Math.round(eleRect.width / eleOutWidth * 1000) / 1000);\n var scaleY = toNum(Math.round(eleRect.height / eleOutHeight * 1000) / 1000);\n var eleScrollWidth = (eleOutWidth - eleInnerWidth) * scaleX;\n var eleScrollHeight = (eleOutHeight - eleInnerHeight) * scaleY;\n var eleRight = eleRect.x + eleRect.width - eleScrollWidth;\n var eleBottom = eleRect.y + eleRect.height - eleScrollHeight;\n visibleArea.left = Math.max(visibleArea.left, eleRect.left);\n visibleArea.top = Math.max(visibleArea.top, eleRect.top);\n visibleArea.right = Math.min(visibleArea.right, eleRight);\n visibleArea.bottom = Math.min(visibleArea.bottom, eleBottom);\n });\n\n // Reset back\n popupElement.style.left = originLeft;\n popupElement.style.top = originTop;\n\n // Calculate scale\n var _scaleX = toNum(Math.round(popupWidth / parseFloat(width) * 1000) / 1000);\n var _scaleY = toNum(Math.round(popupHeight / parseFloat(height) * 1000) / 1000);\n\n // No need to align since it's not visible in view\n if (_scaleX === 0 || _scaleY === 0 || isDOM(target) && !isVisible(target)) {\n return;\n }\n\n // Offset\n var offset = placementInfo.offset,\n targetOffset = placementInfo.targetOffset;\n var _ref = offset || [],\n _ref2 = _slicedToArray(_ref, 2),\n _ref2$ = _ref2[0],\n popupOffsetX = _ref2$ === void 0 ? 0 : _ref2$,\n _ref2$2 = _ref2[1],\n popupOffsetY = _ref2$2 === void 0 ? 0 : _ref2$2;\n var _ref3 = targetOffset || [],\n _ref4 = _slicedToArray(_ref3, 2),\n _ref4$ = _ref4[0],\n targetOffsetX = _ref4$ === void 0 ? 0 : _ref4$,\n _ref4$2 = _ref4[1],\n targetOffsetY = _ref4$2 === void 0 ? 0 : _ref4$2;\n targetRect.x += targetOffsetX;\n targetRect.y += targetOffsetY;\n\n // Points\n var _ref5 = placementInfo.points || [],\n _ref6 = _slicedToArray(_ref5, 2),\n popupPoint = _ref6[0],\n targetPoint = _ref6[1];\n var targetPoints = splitPoints(targetPoint);\n var popupPoints = splitPoints(popupPoint);\n var targetAlignPoint = getAlignPoint(targetRect, targetPoints);\n var popupAlignPoint = getAlignPoint(popupRect, popupPoints);\n\n // Real align info may not same as origin one\n var nextAlignInfo = _objectSpread({}, placementInfo);\n\n // Next Offset\n var nextOffsetX = targetAlignPoint.x - popupAlignPoint.x + popupOffsetX;\n var nextOffsetY = targetAlignPoint.y - popupAlignPoint.y + popupOffsetY;\n\n // ============== Intersection ===============\n // Get area by position. Used for check if flip area is better\n function getIntersectionVisibleArea(x, y) {\n var r = x + popupWidth;\n var b = y + popupHeight;\n var visibleX = Math.max(x, visibleArea.left);\n var visibleY = Math.max(y, visibleArea.top);\n var visibleR = Math.min(r, visibleArea.right);\n var visibleB = Math.min(b, visibleArea.bottom);\n return (visibleR - visibleX) * (visibleB - visibleY);\n }\n var originIntersectionVisibleArea = getIntersectionVisibleArea(nextOffsetX, nextOffsetY);\n\n // ================ Overflow =================\n var targetAlignPointTL = getAlignPoint(targetRect, ['t', 'l']);\n var popupAlignPointTL = getAlignPoint(popupRect, ['t', 'l']);\n var targetAlignPointBR = getAlignPoint(targetRect, ['b', 'r']);\n var popupAlignPointBR = getAlignPoint(popupRect, ['b', 'r']);\n var overflow = placementInfo.overflow || {};\n var adjustX = overflow.adjustX,\n adjustY = overflow.adjustY,\n shiftX = overflow.shiftX,\n shiftY = overflow.shiftY;\n var supportAdjust = function supportAdjust(val) {\n if (typeof val === 'boolean') {\n return val;\n }\n return val >= 0;\n };\n\n // >>>>>>>>>> Top & Bottom\n var nextPopupY = popupRect.y + nextOffsetY;\n var nextPopupBottom = nextPopupY + popupHeight;\n var needAdjustY = supportAdjust(adjustY);\n var sameTB = popupPoints[0] === targetPoints[0];\n\n // Bottom to Top\n if (needAdjustY && popupPoints[0] === 't' && nextPopupBottom > visibleArea.bottom) {\n var tmpNextOffsetY = nextOffsetY;\n if (sameTB) {\n tmpNextOffsetY -= popupHeight - targetHeight;\n } else {\n tmpNextOffsetY = targetAlignPointTL.y - popupAlignPointBR.y - popupOffsetY;\n }\n if (getIntersectionVisibleArea(nextOffsetX, tmpNextOffsetY) > originIntersectionVisibleArea) {\n nextOffsetY = tmpNextOffsetY;\n nextAlignInfo.points = [reversePoints(popupPoints, 0), reversePoints(targetPoints, 0)];\n }\n }\n\n // Top to Bottom\n if (needAdjustY && popupPoints[0] === 'b' && nextPopupY < visibleArea.top) {\n var _tmpNextOffsetY = nextOffsetY;\n if (sameTB) {\n _tmpNextOffsetY += popupHeight - targetHeight;\n } else {\n _tmpNextOffsetY = targetAlignPointBR.y - popupAlignPointTL.y - popupOffsetY;\n }\n if (getIntersectionVisibleArea(nextOffsetX, _tmpNextOffsetY) > originIntersectionVisibleArea) {\n nextOffsetY = _tmpNextOffsetY;\n nextAlignInfo.points = [reversePoints(popupPoints, 0), reversePoints(targetPoints, 0)];\n }\n }\n\n // >>>>>>>>>> Left & Right\n var nextPopupX = popupRect.x + nextOffsetX;\n var nextPopupRight = nextPopupX + popupWidth;\n var needAdjustX = supportAdjust(adjustX);\n\n // >>>>> Flip\n var sameLR = popupPoints[1] === targetPoints[1];\n\n // Right to Left\n if (needAdjustX && popupPoints[1] === 'l' && nextPopupRight > visibleArea.right) {\n var tmpNextOffsetX = nextOffsetX;\n if (sameLR) {\n tmpNextOffsetX -= popupWidth - targetWidth;\n } else {\n tmpNextOffsetX = targetAlignPointTL.x - popupAlignPointBR.x - popupOffsetX;\n }\n if (getIntersectionVisibleArea(tmpNextOffsetX, nextOffsetY) > originIntersectionVisibleArea) {\n nextOffsetX = tmpNextOffsetX;\n nextAlignInfo.points = [reversePoints(popupPoints, 1), reversePoints(targetPoints, 1)];\n }\n }\n\n // Left to Right\n if (needAdjustX && popupPoints[1] === 'r' && nextPopupX < visibleArea.left) {\n var _tmpNextOffsetX = nextOffsetX;\n if (sameLR) {\n _tmpNextOffsetX += popupWidth - targetWidth;\n } else {\n _tmpNextOffsetX = targetAlignPointBR.x - popupAlignPointTL.x - popupOffsetX;\n }\n if (getIntersectionVisibleArea(_tmpNextOffsetX, nextOffsetY) > originIntersectionVisibleArea) {\n nextOffsetX = _tmpNextOffsetX;\n nextAlignInfo.points = [reversePoints(popupPoints, 1), reversePoints(targetPoints, 1)];\n }\n }\n\n // >>>>> Shift\n var numShiftX = shiftX === true ? 0 : shiftX;\n if (typeof numShiftX === 'number') {\n // Left\n if (nextPopupX < visibleArea.left) {\n nextOffsetX -= nextPopupX - visibleArea.left;\n if (targetRect.x + targetWidth < visibleArea.left + numShiftX) {\n nextOffsetX += targetRect.x - visibleArea.left + targetWidth - numShiftX;\n }\n }\n\n // Right\n if (nextPopupRight > visibleArea.right) {\n nextOffsetX -= nextPopupRight - visibleArea.right;\n if (targetRect.x > visibleArea.right - numShiftX) {\n nextOffsetX += targetRect.x - visibleArea.right + numShiftX;\n }\n }\n }\n var numShiftY = shiftY === true ? 0 : shiftY;\n if (typeof numShiftY === 'number') {\n // Top\n if (nextPopupY < visibleArea.top) {\n nextOffsetY -= nextPopupY - visibleArea.top;\n if (targetRect.y + targetHeight < visibleArea.top + numShiftY) {\n nextOffsetY += targetRect.y - visibleArea.top + targetHeight - numShiftY;\n }\n }\n\n // Bottom\n if (nextPopupBottom > visibleArea.bottom) {\n nextOffsetY -= nextPopupBottom - visibleArea.bottom;\n if (targetRect.y > visibleArea.bottom - numShiftY) {\n nextOffsetY += targetRect.y - visibleArea.bottom + numShiftY;\n }\n }\n }\n\n // Arrow center align\n var popupLeft = popupRect.x + nextOffsetX;\n var popupRight = popupLeft + popupWidth;\n var popupTop = popupRect.y + nextOffsetY;\n var popupBottom = popupTop + popupHeight;\n var targetLeft = targetRect.x;\n var targetRight = targetLeft + targetWidth;\n var targetTop = targetRect.y;\n var targetBottom = targetTop + targetHeight;\n var maxLeft = Math.max(popupLeft, targetLeft);\n var minRight = Math.min(popupRight, targetRight);\n var xCenter = (maxLeft + minRight) / 2;\n var nextArrowX = xCenter - popupLeft;\n var maxTop = Math.max(popupTop, targetTop);\n var minBottom = Math.min(popupBottom, targetBottom);\n var yCenter = (maxTop + minBottom) / 2;\n var nextArrowY = yCenter - popupTop;\n onPopupAlign === null || onPopupAlign === void 0 ? void 0 : onPopupAlign(popupEle, nextAlignInfo);\n setOffsetInfo({\n ready: true,\n offsetX: nextOffsetX / _scaleX,\n offsetY: nextOffsetY / _scaleY,\n arrowX: nextArrowX / _scaleX,\n arrowY: nextArrowY / _scaleY,\n scaleX: _scaleX,\n scaleY: _scaleY,\n align: nextAlignInfo\n });\n }\n });\n var triggerAlign = function triggerAlign() {\n alignCountRef.current += 1;\n var id = alignCountRef.current;\n\n // Merge all align requirement into one frame\n Promise.resolve().then(function () {\n if (alignCountRef.current === id) {\n onAlign();\n }\n });\n };\n\n // Reset ready status when placement & open changed\n var resetReady = function resetReady() {\n setOffsetInfo(function (ori) {\n return _objectSpread(_objectSpread({}, ori), {}, {\n ready: false\n });\n });\n };\n useLayoutEffect(resetReady, [placement]);\n useLayoutEffect(function () {\n if (!open) {\n resetReady();\n }\n }, [open]);\n return [offsetInfo.ready, offsetInfo.offsetX, offsetInfo.offsetY, offsetInfo.arrowX, offsetInfo.arrowY, offsetInfo.scaleX, offsetInfo.scaleY, offsetInfo.align, triggerAlign];\n}"],"names":["toNum","num","Number","isNaN","splitPoints","points","arguments","length","undefined","getAlignPoint","rect","y","topBottom","leftRight","height","x","width","reversePoints","index","reverseMap","t","b","l","r","map","point","i","join","open","popupEle","target","placement","builtinPlacements","popupAlign","onPopupAlign","_React$useState","React","useState","ready","offsetX","offsetY","arrowX","arrowY","scaleX","scaleY","align","_React$useState2","_slicedToArray","offsetInfo","setOffsetInfo","alignCountRef","useRef","scrollerList","useMemo","collectScroller","onAlign","useEvent","targetRect","popupElement","originLeft","style","left","originTop","top","doc","ownerDocument","win","getWin","placementInfo","_objectSpread","Array","isArray","getBoundingClientRect","popupRect","_win$getComputedStyle","getComputedStyle","_doc$documentElement","documentElement","clientWidth","clientHeight","scrollWidth","scrollHeight","scrollTop","scrollLeft","popupHeight","popupWidth","targetHeight","targetWidth","visibleArea","htmlRegion","right","bottom","forEach","ele","HTMLBodyElement","eleRect","eleOutHeight","offsetHeight","eleInnerHeight","eleOutWidth","offsetWidth","eleScrollWidth","Math","round","eleScrollHeight","eleRight","eleBottom","max","min","_scaleX","parseFloat","_scaleY","isDOM","isVisible","offset","targetOffset","_ref2","_ref2$","popupOffsetX","_ref2$2","popupOffsetY","_ref4","_ref4$","targetOffsetX","_ref4$2","targetOffsetY","_ref5","_ref6","popupPoint","targetPoints","popupPoints","targetAlignPoint","popupAlignPoint","nextAlignInfo","nextOffsetX","nextOffsetY","getIntersectionVisibleArea","visibleX","visibleY","originIntersectionVisibleArea","targetAlignPointTL","popupAlignPointTL","targetAlignPointBR","popupAlignPointBR","overflow","adjustX","adjustY","shiftX","shiftY","supportAdjust","val","nextPopupY","nextPopupBottom","needAdjustY","sameTB","tmpNextOffsetY","_tmpNextOffsetY","nextPopupX","nextPopupRight","needAdjustX","sameLR","tmpNextOffsetX","_tmpNextOffsetX","numShiftX","numShiftY","popupLeft","popupRight","popupTop","popupBottom","targetLeft","targetRight","targetTop","targetBottom","nextArrowX","nextArrowY","resetReady","ori","useLayoutEffect","current","id","Promise","resolve","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QAAS+F,GAAcxB,EACvBtE,OAAQoI,GAAahE,EACrBnE,OAAQoI,GAAa/D,EACrBpE,OAAQkE,EACRjE,OAAQmE,EACRlE,MAAOwF,IAEV,CACL,IAcM0C,EAAa,WACf9H,GAAc,SAAU+H,GACtB,OAAO3G,EAAcA,EAAc,CAAE,EAAE2G,GAAM,CAAA,EAAI,CAC/C1I,OAAO,GAEf,GACA,EAOE,OANA2I,EAAAA,QAAgBF,EAAY,CAAChJ,IAC7BkJ,EAAAA,SAAgB,WACTrJ,GACHmJ,GAEN,GAAK,CAACnJ,IACG,CAACoB,EAAWV,MAAOU,EAAWT,QAASS,EAAWR,QAASQ,EAAWP,OAAQO,EAAWN,OAAQM,EAAWL,OAAQK,EAAWJ,OAAQI,EAAWH,MA1BtI,WACjBK,EAAcgI,SAAW,EACzB,IAAIC,EAAKjI,EAAcgI,QAGvBE,QAAQC,UAAUC,MAAK,WACjBpI,EAAcgI,UAAYC,GAC5B5H,GAER,GACA,EAiBA","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"useAlign.js","sources":["../../../../../../node_modules/@rc-component/trigger/es/hooks/useAlign.js"],"sourcesContent":["import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport { isDOM } from \"rc-util/es/Dom/findDOMNode\";\nimport isVisible from \"rc-util/es/Dom/isVisible\";\nimport useEvent from \"rc-util/es/hooks/useEvent\";\nimport useLayoutEffect from \"rc-util/es/hooks/useLayoutEffect\";\nimport * as React from 'react';\nimport { collectScroller, getWin } from \"../util\";\nfunction toNum(num) {\n return Number.isNaN(num) ? 1 : num;\n}\nfunction splitPoints() {\n var points = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n return [points[0], points[1]];\n}\nfunction getAlignPoint(rect, points) {\n var topBottom = points[0];\n var leftRight = points[1];\n var x;\n var y;\n\n // Top & Bottom\n if (topBottom === 't') {\n y = rect.y;\n } else if (topBottom === 'b') {\n y = rect.y + rect.height;\n } else {\n y = rect.y + rect.height / 2;\n }\n\n // Left & Right\n if (leftRight === 'l') {\n x = rect.x;\n } else if (leftRight === 'r') {\n x = rect.x + rect.width;\n } else {\n x = rect.x + rect.width / 2;\n }\n return {\n x: x,\n y: y\n };\n}\nfunction reversePoints(points, index) {\n var reverseMap = {\n t: 'b',\n b: 't',\n l: 'r',\n r: 'l'\n };\n return points.map(function (point, i) {\n if (i === index) {\n return reverseMap[point] || 'c';\n }\n return point;\n }).join('');\n}\nexport default function useAlign(open, popupEle, target, placement, builtinPlacements, popupAlign, onPopupAlign) {\n var _React$useState = React.useState({\n ready: false,\n offsetX: 0,\n offsetY: 0,\n arrowX: 0,\n arrowY: 0,\n scaleX: 1,\n scaleY: 1,\n align: builtinPlacements[placement] || {}\n }),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n offsetInfo = _React$useState2[0],\n setOffsetInfo = _React$useState2[1];\n var alignCountRef = React.useRef(0);\n var scrollerList = React.useMemo(function () {\n if (!popupEle) {\n return [];\n }\n return collectScroller(popupEle);\n }, [popupEle]);\n\n // ========================= Align =========================\n var onAlign = useEvent(function () {\n if (popupEle && target && open) {\n var popupElement = popupEle;\n var originLeft = popupElement.style.left;\n var originTop = popupElement.style.top;\n var doc = popupElement.ownerDocument;\n var win = getWin(popupElement);\n\n // Placement\n var placementInfo = _objectSpread(_objectSpread({}, builtinPlacements[placement]), popupAlign);\n\n // Reset first\n popupElement.style.left = '0';\n popupElement.style.top = '0';\n\n // Calculate align style, we should consider `transform` case\n var targetRect;\n if (Array.isArray(target)) {\n targetRect = {\n x: target[0],\n y: target[1],\n width: 0,\n height: 0\n };\n } else {\n var rect = target.getBoundingClientRect();\n targetRect = {\n x: rect.x,\n y: rect.y,\n width: rect.width,\n height: rect.height\n };\n }\n var popupRect = popupElement.getBoundingClientRect();\n var _win$getComputedStyle = win.getComputedStyle(popupElement),\n width = _win$getComputedStyle.width,\n height = _win$getComputedStyle.height;\n var _doc$documentElement = doc.documentElement,\n clientWidth = _doc$documentElement.clientWidth,\n clientHeight = _doc$documentElement.clientHeight,\n scrollWidth = _doc$documentElement.scrollWidth,\n scrollHeight = _doc$documentElement.scrollHeight,\n scrollTop = _doc$documentElement.scrollTop,\n scrollLeft = _doc$documentElement.scrollLeft;\n var popupHeight = popupRect.height;\n var popupWidth = popupRect.width;\n var targetHeight = targetRect.height;\n var targetWidth = targetRect.width;\n\n // Get bounding of visible area\n var visibleArea = placementInfo.htmlRegion === 'scroll' ?\n // Scroll region should take scrollLeft & scrollTop into account\n {\n left: -scrollLeft,\n top: -scrollTop,\n right: scrollWidth - scrollLeft,\n bottom: scrollHeight - scrollTop\n } : {\n left: 0,\n top: 0,\n right: clientWidth,\n bottom: clientHeight\n };\n (scrollerList || []).forEach(function (ele) {\n if (ele instanceof HTMLBodyElement) {\n return;\n }\n var eleRect = ele.getBoundingClientRect();\n var eleOutHeight = ele.offsetHeight,\n eleInnerHeight = ele.clientHeight,\n eleOutWidth = ele.offsetWidth,\n eleInnerWidth = ele.clientWidth;\n var scaleX = toNum(Math.round(eleRect.width / eleOutWidth * 1000) / 1000);\n var scaleY = toNum(Math.round(eleRect.height / eleOutHeight * 1000) / 1000);\n var eleScrollWidth = (eleOutWidth - eleInnerWidth) * scaleX;\n var eleScrollHeight = (eleOutHeight - eleInnerHeight) * scaleY;\n var eleRight = eleRect.x + eleRect.width - eleScrollWidth;\n var eleBottom = eleRect.y + eleRect.height - eleScrollHeight;\n visibleArea.left = Math.max(visibleArea.left, eleRect.left);\n visibleArea.top = Math.max(visibleArea.top, eleRect.top);\n visibleArea.right = Math.min(visibleArea.right, eleRight);\n visibleArea.bottom = Math.min(visibleArea.bottom, eleBottom);\n });\n\n // Reset back\n popupElement.style.left = originLeft;\n popupElement.style.top = originTop;\n\n // Calculate scale\n var _scaleX = toNum(Math.round(popupWidth / parseFloat(width) * 1000) / 1000);\n var _scaleY = toNum(Math.round(popupHeight / parseFloat(height) * 1000) / 1000);\n\n // No need to align since it's not visible in view\n if (_scaleX === 0 || _scaleY === 0 || isDOM(target) && !isVisible(target)) {\n return;\n }\n\n // Offset\n var offset = placementInfo.offset,\n targetOffset = placementInfo.targetOffset;\n var _ref = offset || [],\n _ref2 = _slicedToArray(_ref, 2),\n _ref2$ = _ref2[0],\n popupOffsetX = _ref2$ === void 0 ? 0 : _ref2$,\n _ref2$2 = _ref2[1],\n popupOffsetY = _ref2$2 === void 0 ? 0 : _ref2$2;\n var _ref3 = targetOffset || [],\n _ref4 = _slicedToArray(_ref3, 2),\n _ref4$ = _ref4[0],\n targetOffsetX = _ref4$ === void 0 ? 0 : _ref4$,\n _ref4$2 = _ref4[1],\n targetOffsetY = _ref4$2 === void 0 ? 0 : _ref4$2;\n targetRect.x += targetOffsetX;\n targetRect.y += targetOffsetY;\n\n // Points\n var _ref5 = placementInfo.points || [],\n _ref6 = _slicedToArray(_ref5, 2),\n popupPoint = _ref6[0],\n targetPoint = _ref6[1];\n var targetPoints = splitPoints(targetPoint);\n var popupPoints = splitPoints(popupPoint);\n var targetAlignPoint = getAlignPoint(targetRect, targetPoints);\n var popupAlignPoint = getAlignPoint(popupRect, popupPoints);\n\n // Real align info may not same as origin one\n var nextAlignInfo = _objectSpread({}, placementInfo);\n\n // Next Offset\n var nextOffsetX = targetAlignPoint.x - popupAlignPoint.x + popupOffsetX;\n var nextOffsetY = targetAlignPoint.y - popupAlignPoint.y + popupOffsetY;\n\n // ============== Intersection ===============\n // Get area by position. Used for check if flip area is better\n function getIntersectionVisibleArea(x, y) {\n var r = x + popupWidth;\n var b = y + popupHeight;\n var visibleX = Math.max(x, visibleArea.left);\n var visibleY = Math.max(y, visibleArea.top);\n var visibleR = Math.min(r, visibleArea.right);\n var visibleB = Math.min(b, visibleArea.bottom);\n return (visibleR - visibleX) * (visibleB - visibleY);\n }\n var originIntersectionVisibleArea = getIntersectionVisibleArea(nextOffsetX, nextOffsetY);\n\n // ================ Overflow =================\n var targetAlignPointTL = getAlignPoint(targetRect, ['t', 'l']);\n var popupAlignPointTL = getAlignPoint(popupRect, ['t', 'l']);\n var targetAlignPointBR = getAlignPoint(targetRect, ['b', 'r']);\n var popupAlignPointBR = getAlignPoint(popupRect, ['b', 'r']);\n var overflow = placementInfo.overflow || {};\n var adjustX = overflow.adjustX,\n adjustY = overflow.adjustY,\n shiftX = overflow.shiftX,\n shiftY = overflow.shiftY;\n var supportAdjust = function supportAdjust(val) {\n if (typeof val === 'boolean') {\n return val;\n }\n return val >= 0;\n };\n\n // >>>>>>>>>> Top & Bottom\n var nextPopupY = popupRect.y + nextOffsetY;\n var nextPopupBottom = nextPopupY + popupHeight;\n var needAdjustY = supportAdjust(adjustY);\n var sameTB = popupPoints[0] === targetPoints[0];\n\n // Bottom to Top\n if (needAdjustY && popupPoints[0] === 't' && nextPopupBottom > visibleArea.bottom) {\n var tmpNextOffsetY = nextOffsetY;\n if (sameTB) {\n tmpNextOffsetY -= popupHeight - targetHeight;\n } else {\n tmpNextOffsetY = targetAlignPointTL.y - popupAlignPointBR.y - popupOffsetY;\n }\n if (getIntersectionVisibleArea(nextOffsetX, tmpNextOffsetY) > originIntersectionVisibleArea) {\n nextOffsetY = tmpNextOffsetY;\n nextAlignInfo.points = [reversePoints(popupPoints, 0), reversePoints(targetPoints, 0)];\n }\n }\n\n // Top to Bottom\n if (needAdjustY && popupPoints[0] === 'b' && nextPopupY < visibleArea.top) {\n var _tmpNextOffsetY = nextOffsetY;\n if (sameTB) {\n _tmpNextOffsetY += popupHeight - targetHeight;\n } else {\n _tmpNextOffsetY = targetAlignPointBR.y - popupAlignPointTL.y - popupOffsetY;\n }\n if (getIntersectionVisibleArea(nextOffsetX, _tmpNextOffsetY) > originIntersectionVisibleArea) {\n nextOffsetY = _tmpNextOffsetY;\n nextAlignInfo.points = [reversePoints(popupPoints, 0), reversePoints(targetPoints, 0)];\n }\n }\n\n // >>>>>>>>>> Left & Right\n var nextPopupX = popupRect.x + nextOffsetX;\n var nextPopupRight = nextPopupX + popupWidth;\n var needAdjustX = supportAdjust(adjustX);\n\n // >>>>> Flip\n var sameLR = popupPoints[1] === targetPoints[1];\n\n // Right to Left\n if (needAdjustX && popupPoints[1] === 'l' && nextPopupRight > visibleArea.right) {\n var tmpNextOffsetX = nextOffsetX;\n if (sameLR) {\n tmpNextOffsetX -= popupWidth - targetWidth;\n } else {\n tmpNextOffsetX = targetAlignPointTL.x - popupAlignPointBR.x - popupOffsetX;\n }\n if (getIntersectionVisibleArea(tmpNextOffsetX, nextOffsetY) > originIntersectionVisibleArea) {\n nextOffsetX = tmpNextOffsetX;\n nextAlignInfo.points = [reversePoints(popupPoints, 1), reversePoints(targetPoints, 1)];\n }\n }\n\n // Left to Right\n if (needAdjustX && popupPoints[1] === 'r' && nextPopupX < visibleArea.left) {\n var _tmpNextOffsetX = nextOffsetX;\n if (sameLR) {\n _tmpNextOffsetX += popupWidth - targetWidth;\n } else {\n _tmpNextOffsetX = targetAlignPointBR.x - popupAlignPointTL.x - popupOffsetX;\n }\n if (getIntersectionVisibleArea(_tmpNextOffsetX, nextOffsetY) > originIntersectionVisibleArea) {\n nextOffsetX = _tmpNextOffsetX;\n nextAlignInfo.points = [reversePoints(popupPoints, 1), reversePoints(targetPoints, 1)];\n }\n }\n\n // >>>>> Shift\n var numShiftX = shiftX === true ? 0 : shiftX;\n if (typeof numShiftX === 'number') {\n // Left\n if (nextPopupX < visibleArea.left) {\n nextOffsetX -= nextPopupX - visibleArea.left;\n if (targetRect.x + targetWidth < visibleArea.left + numShiftX) {\n nextOffsetX += targetRect.x - visibleArea.left + targetWidth - numShiftX;\n }\n }\n\n // Right\n if (nextPopupRight > visibleArea.right) {\n nextOffsetX -= nextPopupRight - visibleArea.right;\n if (targetRect.x > visibleArea.right - numShiftX) {\n nextOffsetX += targetRect.x - visibleArea.right + numShiftX;\n }\n }\n }\n var numShiftY = shiftY === true ? 0 : shiftY;\n if (typeof numShiftY === 'number') {\n // Top\n if (nextPopupY < visibleArea.top) {\n nextOffsetY -= nextPopupY - visibleArea.top;\n if (targetRect.y + targetHeight < visibleArea.top + numShiftY) {\n nextOffsetY += targetRect.y - visibleArea.top + targetHeight - numShiftY;\n }\n }\n\n // Bottom\n if (nextPopupBottom > visibleArea.bottom) {\n nextOffsetY -= nextPopupBottom - visibleArea.bottom;\n if (targetRect.y > visibleArea.bottom - numShiftY) {\n nextOffsetY += targetRect.y - visibleArea.bottom + numShiftY;\n }\n }\n }\n\n // Arrow center align\n var popupLeft = popupRect.x + nextOffsetX;\n var popupRight = popupLeft + popupWidth;\n var popupTop = popupRect.y + nextOffsetY;\n var popupBottom = popupTop + popupHeight;\n var targetLeft = targetRect.x;\n var targetRight = targetLeft + targetWidth;\n var targetTop = targetRect.y;\n var targetBottom = targetTop + targetHeight;\n var maxLeft = Math.max(popupLeft, targetLeft);\n var minRight = Math.min(popupRight, targetRight);\n var xCenter = (maxLeft + minRight) / 2;\n var nextArrowX = xCenter - popupLeft;\n var maxTop = Math.max(popupTop, targetTop);\n var minBottom = Math.min(popupBottom, targetBottom);\n var yCenter = (maxTop + minBottom) / 2;\n var nextArrowY = yCenter - popupTop;\n onPopupAlign === null || onPopupAlign === void 0 ? void 0 : onPopupAlign(popupEle, nextAlignInfo);\n setOffsetInfo({\n ready: true,\n offsetX: nextOffsetX / _scaleX,\n offsetY: nextOffsetY / _scaleY,\n arrowX: nextArrowX / _scaleX,\n arrowY: nextArrowY / _scaleY,\n scaleX: _scaleX,\n scaleY: _scaleY,\n align: nextAlignInfo\n });\n }\n });\n var triggerAlign = function triggerAlign() {\n alignCountRef.current += 1;\n var id = alignCountRef.current;\n\n // Merge all align requirement into one frame\n Promise.resolve().then(function () {\n if (alignCountRef.current === id) {\n onAlign();\n }\n });\n };\n\n // Reset ready status when placement & open changed\n var resetReady = function resetReady() {\n setOffsetInfo(function (ori) {\n return _objectSpread(_objectSpread({}, ori), {}, {\n ready: false\n });\n });\n };\n useLayoutEffect(resetReady, [placement]);\n useLayoutEffect(function () {\n if (!open) {\n resetReady();\n }\n }, [open]);\n return [offsetInfo.ready, offsetInfo.offsetX, offsetInfo.offsetY, offsetInfo.arrowX, offsetInfo.arrowY, offsetInfo.scaleX, offsetInfo.scaleY, offsetInfo.align, triggerAlign];\n}"],"names":["toNum","num","Number","isNaN","splitPoints","points","arguments","length","undefined","getAlignPoint","rect","y","topBottom","leftRight","height","x","width","reversePoints","index","reverseMap","t","b","l","r","map","point","i","join","useAlign","open","popupEle","target","placement","builtinPlacements","popupAlign","onPopupAlign","_React$useState","React","useState","ready","offsetX","offsetY","arrowX","arrowY","scaleX","scaleY","align","_React$useState2","_slicedToArray","offsetInfo","setOffsetInfo","alignCountRef","useRef","scrollerList","useMemo","collectScroller","onAlign","useEvent","targetRect","popupElement","originLeft","style","left","originTop","top","doc","ownerDocument","win","getWin","placementInfo","_objectSpread","Array","isArray","getBoundingClientRect","popupRect","_win$getComputedStyle","getComputedStyle","_doc$documentElement","documentElement","clientWidth","clientHeight","scrollWidth","scrollHeight","scrollTop","scrollLeft","popupHeight","popupWidth","targetHeight","targetWidth","visibleArea","htmlRegion","right","bottom","forEach","ele","HTMLBodyElement","eleRect","eleOutHeight","offsetHeight","eleInnerHeight","eleOutWidth","offsetWidth","eleScrollWidth","Math","round","eleScrollHeight","eleRight","eleBottom","max","min","_scaleX","parseFloat","_scaleY","isDOM","isVisible","offset","targetOffset","_ref2","_ref2$","popupOffsetX","_ref2$2","popupOffsetY","_ref4","_ref4$","targetOffsetX","_ref4$2","targetOffsetY","_ref5","_ref6","popupPoint","targetPoints","popupPoints","targetAlignPoint","popupAlignPoint","nextAlignInfo","nextOffsetX","nextOffsetY","getIntersectionVisibleArea","visibleX","visibleY","originIntersectionVisibleArea","targetAlignPointTL","popupAlignPointTL","targetAlignPointBR","popupAlignPointBR","overflow","adjustX","adjustY","shiftX","shiftY","supportAdjust","val","nextPopupY","nextPopupBottom","needAdjustY","sameTB","tmpNextOffsetY","_tmpNextOffsetY","nextPopupX","nextPopupRight","needAdjustX","sameLR","tmpNextOffsetX","_tmpNextOffsetX","numShiftX","numShiftY","popupLeft","popupRight","popupTop","popupBottom","targetLeft","targetRight","targetTop","targetBottom","nextArrowX","nextArrowY","resetReady","ori","useLayoutEffect","current","id","Promise","resolve","then"],"mappings":"+cAQA,SAASA,EAAMC,GACb,OAAOC,OAAOC,MAAMF,GAAO,EAAIA,CACjC,CACA,SAASG,IACP,IAAIC,EAASC,UAAUC,OAAS,QAAsBC,IAAjBF,UAAU,GAAmBA,UAAU,GAAK,GACjF,MAAO,CAACD,EAAO,GAAIA,EAAO,GAC5B,CACA,SAASI,EAAcC,EAAML,GAC3B,IAGIM,EAHAC,EAAYP,EAAO,GACnBQ,EAAYR,EAAO,GAqBvB,OAfEM,EADgB,MAAdC,EACEF,EAAKC,EACc,MAAdC,EACLF,EAAKC,EAAID,EAAKI,OAEdJ,EAAKC,EAAID,EAAKI,OAAS,EAWtB,CACLC,EARgB,MAAdF,EACEH,EAAKK,EACc,MAAdF,EACLH,EAAKK,EAAIL,EAAKM,MAEdN,EAAKK,EAAIL,EAAKM,MAAQ,EAI1BL,EAAGA,EAEP,CACA,SAASM,EAAcZ,EAAQa,GAC7B,IAAIC,EAAa,CACfC,EAAG,IACHC,EAAG,IACHC,EAAG,IACHC,EAAG,KAEL,OAAOlB,EAAOmB,KAAI,SAAUC,EAAOC,GACjC,OAAIA,IAAMR,EACDC,EAAWM,IAAU,IAEvBA,CACX,IAAKE,KAAK,GACV,CACe,SAASC,EAASC,EAAMC,EAAUC,EAAQC,EAAWC,EAAmBC,EAAYC,GACjG,IAAIC,EAAkBC,EAAMC,SAAS,CACjCC,OAAO,EACPC,QAAS,EACTC,QAAS,EACTC,OAAQ,EACRC,OAAQ,EACRC,OAAQ,EACRC,OAAQ,EACRC,MAAOb,EAAkBD,IAAc,CAAE,IAE3Ce,EAAmBC,EAAeZ,EAAiB,GACnDa,EAAaF,EAAiB,GAC9BG,EAAgBH,EAAiB,GAC/BI,EAAgBd,EAAMe,OAAO,GAC7BC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KAAKM,IAAI4D,GAAaI,KACD,EACVL,GAC3BrI,SAA4DA,EAAaL,EAAUwG,IACnFpF,EAAc,CACZX,OAAO,EACPC,QAAS+F,GAAczB,EACvBrE,QAAS+F,GAAcxB,EACvBtE,OAAQoI,GAAahE,EACrBnE,OAAQoI,GAAa/D,EACrBpE,OAAQkE,EACRjE,OAAQmE,EACRlE,MAAOwF,IAEV,CACL,IAcM0C,EAAa,WACf9H,GAAc,SAAU+H,GACtB,OAAO3G,EAAcA,EAAc,CAAE,EAAE2G,GAAM,CAAA,EAAI,CAC/C1I,OAAO,GAEf,GACA,EAOE,OANA2I,EAAgBF,EAAY,CAAChJ,IAC7BkJ,GAAgB,WACTrJ,GACHmJ,GAEN,GAAK,CAACnJ,IACG,CAACoB,EAAWV,MAAOU,EAAWT,QAASS,EAAWR,QAASQ,EAAWP,OAAQO,EAAWN,OAAQM,EAAWL,OAAQK,EAAWJ,OAAQI,EAAWH,MA1BtI,WACjBK,EAAcgI,SAAW,EACzB,IAAIC,EAAKjI,EAAcgI,QAGvBE,QAAQC,UAAUC,MAAK,WACjBpI,EAAcgI,UAAYC,GAC5B5H,GAER,GACA,EAiBA","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import e from"../../../../@babel/runtime/helpers/esm/toConsumableArray.js";import t from"../../../../rc-util/es/hooks/useLayoutEffect.js";import{collectScroller as r,getWin as n}from"../util.js";function o(o,s,i,f){t((function(){if(o&&s&&i){var t=i,a=r(s),c=r(t),u=n(t),m=new Set([u].concat(e(a),e(c)));function l(){f()}return m.forEach((function(e){e.addEventListener("scroll",l,{passive:!0})})),u.addEventListener("resize",l,{passive:!0}),f(),function(){m.forEach((function(e){e.removeEventListener("scroll",l),u.removeEventListener("resize",l)}))}}}),[o,s,i])}export{o as default};
|
|
2
2
|
//# sourceMappingURL=useWatch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useWatch.js","sources":["../../../../../../node_modules/@rc-component/trigger/es/hooks/useWatch.js"],"sourcesContent":["import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport useLayoutEffect from \"rc-util/es/hooks/useLayoutEffect\";\nimport { collectScroller, getWin } from \"../util\";\nexport default function useWatch(open, target, popup, onAlign) {\n useLayoutEffect(function () {\n if (open && target && popup) {\n var targetElement = target;\n var popupElement = popup;\n var targetScrollList = collectScroller(targetElement);\n var popupScrollList = collectScroller(popupElement);\n var win = getWin(popupElement);\n var mergedList = new Set([win].concat(_toConsumableArray(targetScrollList), _toConsumableArray(popupScrollList)));\n function notifyScroll() {\n onAlign();\n }\n mergedList.forEach(function (scroller) {\n scroller.addEventListener('scroll', notifyScroll, {\n passive: true\n });\n });\n win.addEventListener('resize', notifyScroll, {\n passive: true\n });\n\n // First time always do align\n onAlign();\n return function () {\n mergedList.forEach(function (scroller) {\n scroller.removeEventListener('scroll', notifyScroll);\n win.removeEventListener('resize', notifyScroll);\n });\n };\n }\n }, [open, target, popup]);\n}"],"names":["open","target","popup","onAlign","useLayoutEffect","
|
|
1
|
+
{"version":3,"file":"useWatch.js","sources":["../../../../../../node_modules/@rc-component/trigger/es/hooks/useWatch.js"],"sourcesContent":["import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport useLayoutEffect from \"rc-util/es/hooks/useLayoutEffect\";\nimport { collectScroller, getWin } from \"../util\";\nexport default function useWatch(open, target, popup, onAlign) {\n useLayoutEffect(function () {\n if (open && target && popup) {\n var targetElement = target;\n var popupElement = popup;\n var targetScrollList = collectScroller(targetElement);\n var popupScrollList = collectScroller(popupElement);\n var win = getWin(popupElement);\n var mergedList = new Set([win].concat(_toConsumableArray(targetScrollList), _toConsumableArray(popupScrollList)));\n function notifyScroll() {\n onAlign();\n }\n mergedList.forEach(function (scroller) {\n scroller.addEventListener('scroll', notifyScroll, {\n passive: true\n });\n });\n win.addEventListener('resize', notifyScroll, {\n passive: true\n });\n\n // First time always do align\n onAlign();\n return function () {\n mergedList.forEach(function (scroller) {\n scroller.removeEventListener('scroll', notifyScroll);\n win.removeEventListener('resize', notifyScroll);\n });\n };\n }\n }, [open, target, popup]);\n}"],"names":["useWatch","open","target","popup","onAlign","useLayoutEffect","popupElement","targetScrollList","collectScroller","popupScrollList","win","getWin","mergedList","Set","concat","_toConsumableArray","notifyScroll","forEach","scroller","addEventListener","passive","removeEventListener"],"mappings":"mMAGe,SAASA,EAASC,EAAMC,EAAQC,EAAOC,GACpDC,GAAgB,WACd,GAAIJ,GAAQC,GAAUC,EAAO,CAC3B,IACIG,EAAeH,EACfI,EAAmBC,EAFHN,GAGhBO,EAAkBD,EAAgBF,GAClCI,EAAMC,EAAOL,GACbM,EAAa,IAAIC,IAAI,CAACH,GAAKI,OAAOC,EAAmBR,GAAmBQ,EAAmBN,KAC/F,SAASO,IACPZ,GACD,CAYD,OAXAQ,EAAWK,SAAQ,SAAUC,GAC3BA,EAASC,iBAAiB,SAAUH,EAAc,CAChDI,SAAS,GAEnB,IACMV,EAAIS,iBAAiB,SAAUH,EAAc,CAC3CI,SAAS,IAIXhB,IACO,WACLQ,EAAWK,SAAQ,SAAUC,GAC3BA,EAASG,oBAAoB,SAAUL,GACvCN,EAAIW,oBAAoB,SAAUL,EAC5C,GACA,CACK,CACF,GAAE,CAACf,EAAMC,EAAQC,GACpB","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import e from"../../../@babel/runtime/helpers/esm/objectSpread2.js";import o from"../../../@babel/runtime/helpers/esm/slicedToArray.js";import n from"../../../@babel/runtime/helpers/esm/objectWithoutProperties.js";import t from"../../portal/es/Portal.js";import r from"../../../classnames/index.js";import i from"../../../rc-resize-observer/es/index.js";import{isDOM as u}from"../../../rc-util/es/Dom/findDOMNode.js";import a from"../../../rc-util/es/hooks/useEvent.js";import s from"../../../rc-util/es/hooks/useId.js";import l from"../../../rc-util/es/hooks/useLayoutEffect.js";import p from"../../../rc-util/es/isMobile.js";import{warningOnce as c}from"../../../rc-util/es/warning.js";import*as m from"react";import f from"./context.js";import v from"./hooks/useAction.js";import d from"./hooks/useAlign.js";import g from"./hooks/useWatch.js";import h from"./Popup/index.js";import P from"./TriggerWrapper.js";import{getAlignPopupClassName as k,getWin as y,getMotion as b}from"./util.js";var C=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function M(){var M=arguments.length>0&&void 0!==arguments[0]?arguments[0]:t,N=m.forwardRef((function(t,N){var E=t.prefixCls,A=void 0===E?"rc-trigger-popup":E,j=t.children,D=t.action,w=void 0===D?"hover":D,x=t.showAction,S=t.hideAction,R=t.popupVisible,T=t.defaultPopupVisible,V=t.onPopupVisibleChange,L=t.afterPopupVisibleChange,O=t.mouseEnterDelay,z=t.mouseLeaveDelay,F=void 0===z?.1:z,I=t.focusDelay,H=t.blurDelay,W=t.mask,B=t.maskClosable,X=void 0===B||B,Y=t.getPopupContainer,_=t.forceRender,J=t.autoDestroy,q=t.destroyPopupOnHide,G=t.popup,K=t.popupClassName,Q=t.popupStyle,U=t.popupPlacement,Z=t.builtinPlacements,$=void 0===Z?{}:Z,ee=t.popupAlign,oe=t.zIndex,ne=t.stretch,te=t.getPopupClassNameFromAlign,re=t.alignPoint,ie=t.onPopupClick,ue=t.onPopupAlign,ae=t.arrow,se=t.popupMotion,le=t.maskMotion,pe=t.popupTransitionName,ce=t.popupAnimation,me=t.maskTransitionName,fe=t.maskAnimation,ve=t.className,de=t.getTriggerDOMNode,ge=n(t,C),he=J||q||!1,Pe=m.useState(!1),ke=o(Pe,2),ye=ke[0],be=ke[1];l((function(){be(p())}),[]);var Ce=m.useRef({}),Me=m.useContext(f),Ne=m.useMemo((function(){return{registerSubPopup:function(e,o){Ce.current[e]=o,null==Me||Me.registerSubPopup(e,o)}}}),[Me]),Ee=s(),Ae=m.useState(null),je=o(Ae,2),De=je[0],we=je[1],xe=a((function(e){u(e)&&De!==e&&we(e),null==Me||Me.registerSubPopup(Ee,e)})),Se=m.useState(null),Re=o(Se,2),Te=Re[0],Ve=Re[1],Le=a((function(e){u(e)&&Te!==e&&Ve(e)})),Oe=m.Children.only(j),ze=(null==Oe?void 0:Oe.props)||{},Fe={},Ie=a((function(e){var o,n,t=Te;return(null==t?void 0:t.contains(e))||(null==t||null===(o=t.getRootNode())||void 0===o?void 0:o.host)===e||e===t||(null==De?void 0:De.contains(e))||(null==De||null===(n=De.getRootNode())||void 0===n?void 0:n.host)===e||e===De||Object.values(Ce.current).some((function(o){return o.contains(e)||e===o}))})),He=b(A,se,ce,pe),We=b(A,le,fe,me),Be=m.useState(T||!1),Xe=o(Be,2),Ye=Xe[0],_e=Xe[1],Je=null!=R?R:Ye,qe=a((function(e){void 0===R&&_e(e)}));l((function(){_e(R||!1)}),[R]);var Ge=m.useRef(Je);Ge.current=Je;var Ke=a((function(e){Je!==e&&(qe(e),null==V||V(e))})),Qe=m.useRef(),Ue=function(){clearTimeout(Qe.current)},Ze=function(e){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;Ue(),0===o?Ke(e):Qe.current=setTimeout((function(){Ke(e)}),1e3*o)};m.useEffect((function(){return Ue}),[]);var $e=m.useState(!1),eo=o($e,2),oo=eo[0],no=eo[1],to=m.useRef(!0);l((function(){to.current&&!Je||no(!0),to.current=!0}),[Je]);var ro=m.useState(null),io=o(ro,2),uo=io[0],ao=io[1],so=m.useState([0,0]),lo=o(so,2),po=lo[0],co=lo[1],mo=function(e){co([e.clientX,e.clientY])},fo=d(Je,De,re?po:Te,U,$,ee,ue),vo=o(fo,9),go=vo[0],ho=vo[1],Po=vo[2],ko=vo[3],yo=vo[4],bo=vo[5],Co=vo[6],Mo=vo[7],No=vo[8],Eo=a((function(){oo||No()}));g(Je,Te,De,Eo),l((function(){Eo()}),[po]),l((function(){!Je||null!=$&&$[U]||Eo()}),[JSON.stringify(ee)]);var Ao=m.useMemo((function(){var e=k($,A,Mo,re);return r(e,null==te?void 0:te(Mo))}),[Mo,te,$,A,re]);m.useImperativeHandle(N,(function(){return{forceAlign:Eo}}));l((function(){uo&&(No(),uo(),ao(null))}),[uo]);var jo=m.useState(0),Do=o(jo,2),wo=Do[0],xo=Do[1],So=m.useState(0),Ro=o(So,2),To=Ro[0],Vo=Ro[1],Lo=v(ye,w,x,S),Oo=o(Lo,2),zo=Oo[0],Fo=Oo[1],Io=function(e,o,n,t){Fe[e]=function(r){var i;null==t||t(r),Ze(o,n);for(var u=arguments.length,a=new Array(u>1?u-1:0),s=1;s<u;s++)a[s-1]=arguments[s];null===(i=ze[e])||void 0===i||i.call.apply(i,[ze,r].concat(a))}},Ho=zo.has("click"),Wo=Fo.has("click")||Fo.has("contextMenu");(Ho||Wo)&&(Fe.onClick=function(e){var o;Ge.current&&Wo?Ze(!1):!Ge.current&&Ho&&(mo(e),Ze(!0));for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];null===(o=ze.onClick)||void 0===o||o.call.apply(o,[ze,e].concat(t))}),m.useEffect((function(){if(Wo&&De&&(!W||X)){var e=function(e){var o=e.target;Ge.current&&!Ie(o)&&Ze(!1)},o=y(De),n=null==Te?void 0:Te.getRootNode();o.addEventListener("click",e);var t=n&&n!==Te.ownerDocument;if(t&&n.addEventListener("click",e),"production"!==process.env.NODE_ENV){var r=De.getRootNode();c(n===r,"trigger element and popup element should in same shadow root.")}return function(){o.removeEventListener("click",e),t&&n.removeEventListener("click",e)}}}),[Wo,Te,De,W,X]);var Bo,Xo,Yo=zo.has("hover"),_o=Fo.has("hover");Yo&&(Io("onMouseEnter",!0,O,(function(e){mo(e)})),Bo=function(){Ze(!0,O)},re&&(Fe.onMouseMove=function(e){var o;null===(o=ze.onMouseMove)||void 0===o||o.call(ze,e)})),_o&&(Io("onMouseLeave",!1,F),Xo=function(){Ze(!1,F)}),zo.has("focus")&&Io("onFocus",!0,I),Fo.has("focus")&&Io("onBlur",!1,H),zo.has("contextMenu")&&(Fe.onContextMenu=function(e){var o;mo(e),Ze(!0),e.preventDefault();for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];null===(o=ze.onContextMenu)||void 0===o||o.call.apply(o,[ze,e].concat(t))}),ve&&(Fe.className=r(ze.className,ve));var Jo=e(e({},ze),Fe),qo={};["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"].forEach((function(e){ge[e]&&(qo[e]=function(){for(var o,n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];null===(o=Jo[e])||void 0===o||o.call.apply(o,[Jo].concat(t)),ge[e].apply(ge,t)})}));var Go=m.cloneElement(Oe,e(e({},Jo),qo));return m.createElement(m.Fragment,null,m.createElement(i,{disabled:!Je,ref:Le,onResize:function(e,o){if(Eo(),ne){var n=o.getBoundingClientRect();xo(n.width),Vo(n.height)}}},m.createElement(P,{getTriggerDOMNode:de},Go)),m.createElement(f.Provider,{value:Ne},m.createElement(h,{portal:M,ref:xe,prefixCls:A,popup:G,className:r(K,Ao),style:Q,target:Te,onMouseEnter:Bo,onMouseLeave:Xo,zIndex:oe,open:Je,keepDom:oo,onClick:ie,mask:W,motion:He,maskMotion:We,onVisibleChanged:function(e){no(!1),No(),null==L||L(e)},onPrepare:function(){return new Promise((function(e){ao((function(){return e}))}))},forceRender:_,autoDestroy:he,getPopupContainer:Y,align:Mo,arrow:ae,ready:go,offsetX:ho,offsetY:Po,arrowX:ko,arrowY:yo,onAlign:Eo,stretch:ne,targetWidth:wo/bo,targetHeight:To/Co})))}));return"production"!==process.env.NODE_ENV&&(N.displayName="Trigger"),N}var N=M(t);export{N as default,M as generateTrigger};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../node_modules/@rc-component/trigger/es/index.js"],"sourcesContent":["import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"prefixCls\", \"children\", \"action\", \"showAction\", \"hideAction\", \"popupVisible\", \"defaultPopupVisible\", \"onPopupVisibleChange\", \"afterPopupVisibleChange\", \"mouseEnterDelay\", \"mouseLeaveDelay\", \"focusDelay\", \"blurDelay\", \"mask\", \"maskClosable\", \"getPopupContainer\", \"forceRender\", \"autoDestroy\", \"destroyPopupOnHide\", \"popup\", \"popupClassName\", \"popupStyle\", \"popupPlacement\", \"builtinPlacements\", \"popupAlign\", \"zIndex\", \"stretch\", \"getPopupClassNameFromAlign\", \"alignPoint\", \"onPopupClick\", \"onPopupAlign\", \"arrow\", \"popupMotion\", \"maskMotion\", \"popupTransitionName\", \"popupAnimation\", \"maskTransitionName\", \"maskAnimation\", \"className\", \"getTriggerDOMNode\"];\nimport Portal from '@rc-component/portal';\nimport classNames from 'classnames';\nimport ResizeObserver from 'rc-resize-observer';\nimport { isDOM } from \"rc-util/es/Dom/findDOMNode\";\nimport useEvent from \"rc-util/es/hooks/useEvent\";\nimport useId from \"rc-util/es/hooks/useId\";\nimport useLayoutEffect from \"rc-util/es/hooks/useLayoutEffect\";\nimport isMobile from \"rc-util/es/isMobile\";\nimport warning from \"rc-util/es/warning\";\nimport * as React from 'react';\nimport TriggerContext from \"./context\";\nimport useAction from \"./hooks/useAction\";\nimport useAlign from \"./hooks/useAlign\";\nimport useWatch from \"./hooks/useWatch\";\nimport Popup from \"./Popup\";\nimport TriggerWrapper from \"./TriggerWrapper\";\nimport { getAlignPopupClassName, getMotion, getWin } from \"./util\";\nexport function generateTrigger() {\n var PortalComponent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Portal;\n var Trigger = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'rc-trigger-popup' : _props$prefixCls,\n children = props.children,\n _props$action = props.action,\n action = _props$action === void 0 ? 'hover' : _props$action,\n showAction = props.showAction,\n hideAction = props.hideAction,\n popupVisible = props.popupVisible,\n defaultPopupVisible = props.defaultPopupVisible,\n onPopupVisibleChange = props.onPopupVisibleChange,\n afterPopupVisibleChange = props.afterPopupVisibleChange,\n mouseEnterDelay = props.mouseEnterDelay,\n _props$mouseLeaveDela = props.mouseLeaveDelay,\n mouseLeaveDelay = _props$mouseLeaveDela === void 0 ? 0.1 : _props$mouseLeaveDela,\n focusDelay = props.focusDelay,\n blurDelay = props.blurDelay,\n mask = props.mask,\n _props$maskClosable = props.maskClosable,\n maskClosable = _props$maskClosable === void 0 ? true : _props$maskClosable,\n getPopupContainer = props.getPopupContainer,\n forceRender = props.forceRender,\n autoDestroy = props.autoDestroy,\n destroyPopupOnHide = props.destroyPopupOnHide,\n popup = props.popup,\n popupClassName = props.popupClassName,\n popupStyle = props.popupStyle,\n popupPlacement = props.popupPlacement,\n _props$builtinPlaceme = props.builtinPlacements,\n builtinPlacements = _props$builtinPlaceme === void 0 ? {} : _props$builtinPlaceme,\n popupAlign = props.popupAlign,\n zIndex = props.zIndex,\n stretch = props.stretch,\n getPopupClassNameFromAlign = props.getPopupClassNameFromAlign,\n alignPoint = props.alignPoint,\n onPopupClick = props.onPopupClick,\n onPopupAlign = props.onPopupAlign,\n arrow = props.arrow,\n popupMotion = props.popupMotion,\n maskMotion = props.maskMotion,\n popupTransitionName = props.popupTransitionName,\n popupAnimation = props.popupAnimation,\n maskTransitionName = props.maskTransitionName,\n maskAnimation = props.maskAnimation,\n className = props.className,\n getTriggerDOMNode = props.getTriggerDOMNode,\n restProps = _objectWithoutProperties(props, _excluded);\n var mergedAutoDestroy = autoDestroy || destroyPopupOnHide || false;\n\n // =========================== Mobile ===========================\n var _React$useState = React.useState(false),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n mobile = _React$useState2[0],\n setMobile = _React$useState2[1];\n useLayoutEffect(function () {\n setMobile(isMobile());\n }, []);\n\n // ========================== Context ===========================\n var subPopupElements = React.useRef({});\n var parentContext = React.useContext(TriggerContext);\n var context = React.useMemo(function () {\n return {\n registerSubPopup: function registerSubPopup(id, subPopupEle) {\n subPopupElements.current[id] = subPopupEle;\n parentContext === null || parentContext === void 0 ? void 0 : parentContext.registerSubPopup(id, subPopupEle);\n }\n };\n }, [parentContext]);\n\n // =========================== Popup ============================\n var id = useId();\n var _React$useState3 = React.useState(null),\n _React$useState4 = _slicedToArray(_React$useState3, 2),\n popupEle = _React$useState4[0],\n setPopupEle = _React$useState4[1];\n var setPopupRef = useEvent(function (node) {\n if (isDOM(node) && popupEle !== node) {\n setPopupEle(node);\n }\n parentContext === null || parentContext === void 0 ? void 0 : parentContext.registerSubPopup(id, node);\n });\n\n // =========================== Target ===========================\n // Use state to control here since `useRef` update not trigger render\n var _React$useState5 = React.useState(null),\n _React$useState6 = _slicedToArray(_React$useState5, 2),\n targetEle = _React$useState6[0],\n setTargetEle = _React$useState6[1];\n var setTargetRef = useEvent(function (node) {\n if (isDOM(node) && targetEle !== node) {\n setTargetEle(node);\n }\n });\n\n // ========================== Children ==========================\n var child = React.Children.only(children);\n var originChildProps = (child === null || child === void 0 ? void 0 : child.props) || {};\n var cloneProps = {};\n var inPopupOrChild = useEvent(function (ele) {\n var _childDOM$getRootNode, _popupEle$getRootNode;\n var childDOM = targetEle;\n return (childDOM === null || childDOM === void 0 ? void 0 : childDOM.contains(ele)) || (childDOM === null || childDOM === void 0 ? void 0 : (_childDOM$getRootNode = childDOM.getRootNode()) === null || _childDOM$getRootNode === void 0 ? void 0 : _childDOM$getRootNode.host) === ele || ele === childDOM || (popupEle === null || popupEle === void 0 ? void 0 : popupEle.contains(ele)) || (popupEle === null || popupEle === void 0 ? void 0 : (_popupEle$getRootNode = popupEle.getRootNode()) === null || _popupEle$getRootNode === void 0 ? void 0 : _popupEle$getRootNode.host) === ele || ele === popupEle || Object.values(subPopupElements.current).some(function (subPopupEle) {\n return subPopupEle.contains(ele) || ele === subPopupEle;\n });\n });\n\n // =========================== Motion ===========================\n var mergePopupMotion = getMotion(prefixCls, popupMotion, popupAnimation, popupTransitionName);\n var mergeMaskMotion = getMotion(prefixCls, maskMotion, maskAnimation, maskTransitionName);\n\n // ============================ Open ============================\n var _React$useState7 = React.useState(defaultPopupVisible || false),\n _React$useState8 = _slicedToArray(_React$useState7, 2),\n internalOpen = _React$useState8[0],\n setInternalOpen = _React$useState8[1];\n\n // Render still use props as first priority\n var mergedOpen = popupVisible !== null && popupVisible !== void 0 ? popupVisible : internalOpen;\n\n // We use effect sync here in case `popupVisible` back to `undefined`\n var setMergedOpen = useEvent(function (nextOpen) {\n if (popupVisible === undefined) {\n setInternalOpen(nextOpen);\n }\n });\n useLayoutEffect(function () {\n setInternalOpen(popupVisible || false);\n }, [popupVisible]);\n var openRef = React.useRef(mergedOpen);\n openRef.current = mergedOpen;\n var internalTriggerOpen = useEvent(function (nextOpen) {\n if (mergedOpen !== nextOpen) {\n setMergedOpen(nextOpen);\n onPopupVisibleChange === null || onPopupVisibleChange === void 0 ? void 0 : onPopupVisibleChange(nextOpen);\n }\n });\n\n // Trigger for delay\n var delayRef = React.useRef();\n var clearDelay = function clearDelay() {\n clearTimeout(delayRef.current);\n };\n var triggerOpen = function triggerOpen(nextOpen) {\n var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n clearDelay();\n if (delay === 0) {\n internalTriggerOpen(nextOpen);\n } else {\n delayRef.current = setTimeout(function () {\n internalTriggerOpen(nextOpen);\n }, delay * 1000);\n }\n };\n React.useEffect(function () {\n return clearDelay;\n }, []);\n\n // ========================== Motion ============================\n var _React$useState9 = React.useState(false),\n _React$useState10 = _slicedToArray(_React$useState9, 2),\n inMotion = _React$useState10[0],\n setInMotion = _React$useState10[1];\n var mountRef = React.useRef(true);\n useLayoutEffect(function () {\n if (!mountRef.current || mergedOpen) {\n setInMotion(true);\n }\n mountRef.current = true;\n }, [mergedOpen]);\n var _React$useState11 = React.useState(null),\n _React$useState12 = _slicedToArray(_React$useState11, 2),\n motionPrepareResolve = _React$useState12[0],\n setMotionPrepareResolve = _React$useState12[1];\n\n // =========================== Align ============================\n var _React$useState13 = React.useState([0, 0]),\n _React$useState14 = _slicedToArray(_React$useState13, 2),\n mousePos = _React$useState14[0],\n setMousePos = _React$useState14[1];\n var setMousePosByEvent = function setMousePosByEvent(event) {\n setMousePos([event.clientX, event.clientY]);\n };\n var _useAlign = useAlign(mergedOpen, popupEle, alignPoint ? mousePos : targetEle, popupPlacement, builtinPlacements, popupAlign, onPopupAlign),\n _useAlign2 = _slicedToArray(_useAlign, 9),\n ready = _useAlign2[0],\n offsetX = _useAlign2[1],\n offsetY = _useAlign2[2],\n arrowX = _useAlign2[3],\n arrowY = _useAlign2[4],\n scaleX = _useAlign2[5],\n scaleY = _useAlign2[6],\n alignInfo = _useAlign2[7],\n onAlign = _useAlign2[8];\n var triggerAlign = useEvent(function () {\n if (!inMotion) {\n onAlign();\n }\n });\n useWatch(mergedOpen, targetEle, popupEle, triggerAlign);\n useLayoutEffect(function () {\n triggerAlign();\n }, [mousePos]);\n\n // When no builtinPlacements and popupAlign changed\n useLayoutEffect(function () {\n if (mergedOpen && !(builtinPlacements !== null && builtinPlacements !== void 0 && builtinPlacements[popupPlacement])) {\n triggerAlign();\n }\n }, [JSON.stringify(popupAlign)]);\n var alignedClassName = React.useMemo(function () {\n var baseClassName = getAlignPopupClassName(builtinPlacements, prefixCls, alignInfo, alignPoint);\n return classNames(baseClassName, getPopupClassNameFromAlign === null || getPopupClassNameFromAlign === void 0 ? void 0 : getPopupClassNameFromAlign(alignInfo));\n }, [alignInfo, getPopupClassNameFromAlign, builtinPlacements, prefixCls, alignPoint]);\n React.useImperativeHandle(ref, function () {\n return {\n forceAlign: triggerAlign\n };\n });\n\n // ========================== Motion ============================\n var onVisibleChanged = function onVisibleChanged(visible) {\n setInMotion(false);\n onAlign();\n afterPopupVisibleChange === null || afterPopupVisibleChange === void 0 ? void 0 : afterPopupVisibleChange(visible);\n };\n\n // We will trigger align when motion is in prepare\n var onPrepare = function onPrepare() {\n return new Promise(function (resolve) {\n setMotionPrepareResolve(function () {\n return resolve;\n });\n });\n };\n useLayoutEffect(function () {\n if (motionPrepareResolve) {\n onAlign();\n motionPrepareResolve();\n setMotionPrepareResolve(null);\n }\n }, [motionPrepareResolve]);\n\n // ========================== Stretch ===========================\n var _React$useState15 = React.useState(0),\n _React$useState16 = _slicedToArray(_React$useState15, 2),\n targetWidth = _React$useState16[0],\n setTargetWidth = _React$useState16[1];\n var _React$useState17 = React.useState(0),\n _React$useState18 = _slicedToArray(_React$useState17, 2),\n targetHeight = _React$useState18[0],\n setTargetHeight = _React$useState18[1];\n var onTargetResize = function onTargetResize(_, ele) {\n triggerAlign();\n if (stretch) {\n var rect = ele.getBoundingClientRect();\n setTargetWidth(rect.width);\n setTargetHeight(rect.height);\n }\n };\n\n // =========================== Action ===========================\n var _useAction = useAction(mobile, action, showAction, hideAction),\n _useAction2 = _slicedToArray(_useAction, 2),\n showActions = _useAction2[0],\n hideActions = _useAction2[1];\n\n // Util wrapper for trigger action\n var wrapperAction = function wrapperAction(eventName, nextOpen, delay, preEvent) {\n cloneProps[eventName] = function (event) {\n var _originChildProps$eve;\n preEvent === null || preEvent === void 0 ? void 0 : preEvent(event);\n triggerOpen(nextOpen, delay);\n\n // Pass to origin\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n (_originChildProps$eve = originChildProps[eventName]) === null || _originChildProps$eve === void 0 ? void 0 : _originChildProps$eve.call.apply(_originChildProps$eve, [originChildProps, event].concat(args));\n };\n };\n\n // ======================= Action: Click ========================\n var clickToShow = showActions.has('click');\n var clickToHide = hideActions.has('click') || hideActions.has('contextMenu');\n if (clickToShow || clickToHide) {\n cloneProps.onClick = function (event) {\n var _originChildProps$onC;\n if (openRef.current && clickToHide) {\n triggerOpen(false);\n } else if (!openRef.current && clickToShow) {\n setMousePosByEvent(event);\n triggerOpen(true);\n }\n\n // Pass to origin\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n (_originChildProps$onC = originChildProps.onClick) === null || _originChildProps$onC === void 0 ? void 0 : _originChildProps$onC.call.apply(_originChildProps$onC, [originChildProps, event].concat(args));\n };\n }\n\n // Click to hide is special action since click popup element should not hide\n React.useEffect(function () {\n if (clickToHide && popupEle && (!mask || maskClosable)) {\n var onWindowClick = function onWindowClick(_ref) {\n var target = _ref.target;\n if (openRef.current && !inPopupOrChild(target)) {\n triggerOpen(false);\n }\n };\n var win = getWin(popupEle);\n var targetRoot = targetEle === null || targetEle === void 0 ? void 0 : targetEle.getRootNode();\n win.addEventListener('click', onWindowClick);\n\n // shadow root\n var inShadow = targetRoot && targetRoot !== targetEle.ownerDocument;\n if (inShadow) {\n targetRoot.addEventListener('click', onWindowClick);\n }\n\n // Warning if target and popup not in same root\n if (process.env.NODE_ENV !== 'production') {\n var popupRoot = popupEle.getRootNode();\n warning(targetRoot === popupRoot, \"trigger element and popup element should in same shadow root.\");\n }\n return function () {\n win.removeEventListener('click', onWindowClick);\n if (inShadow) {\n targetRoot.removeEventListener('click', onWindowClick);\n }\n };\n }\n }, [clickToHide, targetEle, popupEle, mask, maskClosable]);\n\n // ======================= Action: Hover ========================\n var hoverToShow = showActions.has('hover');\n var hoverToHide = hideActions.has('hover');\n var onPopupMouseEnter;\n var onPopupMouseLeave;\n if (hoverToShow) {\n wrapperAction('onMouseEnter', true, mouseEnterDelay, function (event) {\n setMousePosByEvent(event);\n });\n onPopupMouseEnter = function onPopupMouseEnter() {\n triggerOpen(true, mouseEnterDelay);\n };\n\n // Align Point\n if (alignPoint) {\n cloneProps.onMouseMove = function (event) {\n var _originChildProps$onM;\n // setMousePosByEvent(event);\n (_originChildProps$onM = originChildProps.onMouseMove) === null || _originChildProps$onM === void 0 ? void 0 : _originChildProps$onM.call(originChildProps, event);\n };\n }\n }\n if (hoverToHide) {\n wrapperAction('onMouseLeave', false, mouseLeaveDelay);\n onPopupMouseLeave = function onPopupMouseLeave() {\n triggerOpen(false, mouseLeaveDelay);\n };\n }\n\n // ======================= Action: Focus ========================\n if (showActions.has('focus')) {\n wrapperAction('onFocus', true, focusDelay);\n }\n if (hideActions.has('focus')) {\n wrapperAction('onBlur', false, blurDelay);\n }\n\n // ==================== Action: ContextMenu =====================\n if (showActions.has('contextMenu')) {\n cloneProps.onContextMenu = function (event) {\n var _originChildProps$onC2;\n setMousePosByEvent(event);\n triggerOpen(true);\n event.preventDefault();\n\n // Pass to origin\n for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {\n args[_key3 - 1] = arguments[_key3];\n }\n (_originChildProps$onC2 = originChildProps.onContextMenu) === null || _originChildProps$onC2 === void 0 ? void 0 : _originChildProps$onC2.call.apply(_originChildProps$onC2, [originChildProps, event].concat(args));\n };\n }\n\n // ========================= ClassName ==========================\n if (className) {\n cloneProps.className = classNames(originChildProps.className, className);\n }\n\n // =========================== Render ===========================\n var mergedChildrenProps = _objectSpread(_objectSpread({}, originChildProps), cloneProps);\n\n // Pass props into cloneProps for nest usage\n var passedProps = {};\n var passedEventList = ['onContextMenu', 'onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'onMouseLeave', 'onFocus', 'onBlur'];\n passedEventList.forEach(function (eventName) {\n if (restProps[eventName]) {\n passedProps[eventName] = function () {\n var _mergedChildrenProps$;\n for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n args[_key4] = arguments[_key4];\n }\n (_mergedChildrenProps$ = mergedChildrenProps[eventName]) === null || _mergedChildrenProps$ === void 0 ? void 0 : _mergedChildrenProps$.call.apply(_mergedChildrenProps$, [mergedChildrenProps].concat(args));\n restProps[eventName].apply(restProps, args);\n };\n }\n });\n\n // Child Node\n var triggerNode = /*#__PURE__*/React.cloneElement(child, _objectSpread(_objectSpread({}, mergedChildrenProps), passedProps));\n\n // Render\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ResizeObserver, {\n disabled: !mergedOpen,\n ref: setTargetRef,\n onResize: onTargetResize\n }, /*#__PURE__*/React.createElement(TriggerWrapper, {\n getTriggerDOMNode: getTriggerDOMNode\n }, triggerNode)), /*#__PURE__*/React.createElement(TriggerContext.Provider, {\n value: context\n }, /*#__PURE__*/React.createElement(Popup, {\n portal: PortalComponent,\n ref: setPopupRef,\n prefixCls: prefixCls,\n popup: popup,\n className: classNames(popupClassName, alignedClassName),\n style: popupStyle,\n target: targetEle,\n onMouseEnter: onPopupMouseEnter,\n onMouseLeave: onPopupMouseLeave,\n zIndex: zIndex\n // Open\n ,\n open: mergedOpen,\n keepDom: inMotion\n // Click\n ,\n onClick: onPopupClick\n // Mask\n ,\n mask: mask\n // Motion\n ,\n motion: mergePopupMotion,\n maskMotion: mergeMaskMotion,\n onVisibleChanged: onVisibleChanged,\n onPrepare: onPrepare\n // Portal\n ,\n forceRender: forceRender,\n autoDestroy: mergedAutoDestroy,\n getPopupContainer: getPopupContainer\n // Arrow\n ,\n align: alignInfo,\n arrow: arrow\n // Align\n ,\n ready: ready,\n offsetX: offsetX,\n offsetY: offsetY,\n arrowX: arrowX,\n arrowY: arrowY,\n onAlign: triggerAlign\n // Stretch\n ,\n stretch: stretch,\n targetWidth: targetWidth / scaleX,\n targetHeight: targetHeight / scaleY\n })));\n });\n if (process.env.NODE_ENV !== 'production') {\n Trigger.displayName = 'Trigger';\n }\n return Trigger;\n}\nexport default generateTrigger(Portal);"],"names":["_excluded","generateTrigger","PortalComponent","arguments","length","undefined","Portal","Trigger","React","forwardRef","props","ref","_props$prefixCls","prefixCls","children","_props$action","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","_props$mouseLeaveDela","mouseLeaveDelay","focusDelay","blurDelay","mask","_props$maskClosable","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","_props$builtinPlaceme","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode","restProps","_objectWithoutProperties","mergedAutoDestroy","_React$useState","useState","_React$useState2","_slicedToArray","mobile","setMobile","useLayoutEffect","isMobile","subPopupElements","useRef","parentContext","useContext","TriggerContext","context","useMemo","registerSubPopup","id","subPopupEle","current","useId","_React$useState3","_React$useState4","popupEle","setPopupEle","setPopupRef","useEvent","node","isDOM","_React$useState5","_React$useState6","targetEle","setTargetEle","setTargetRef","child","Children","only","originChildProps","cloneProps","inPopupOrChild","ele","_childDOM$getRootNode","_popupEle$getRootNode","childDOM","contains","getRootNode","host","Object","values","some","mergePopupMotion","getMotion","mergeMaskMotion","_React$useState7","_React$useState8","internalOpen","setInternalOpen","mergedOpen","setMergedOpen","nextOpen","openRef","internalTriggerOpen","delayRef","clearDelay","clearTimeout","triggerOpen","delay","setTimeout","useEffect","_React$useState9","_React$useState10","inMotion","setInMotion","mountRef","_React$useState11","_React$useState12","motionPrepareResolve","setMotionPrepareResolve","_React$useState13","_React$useState14","mousePos","setMousePos","setMousePosByEvent","event","clientX","clientY","_useAlign","useAlign","_useAlign2","ready","offsetX","offsetY","arrowX","arrowY","scaleX","scaleY","alignInfo","onAlign","triggerAlign","useWatch","JSON","stringify","alignedClassName","baseClassName","getAlignPopupClassName","classNames","useImperativeHandle","forceAlign","_React$useState15","_React$useState16","targetWidth","setTargetWidth","_React$useState17","_React$useState18","targetHeight","setTargetHeight","_useAction","useAction","_useAction2","showActions","hideActions","wrapperAction","eventName","preEvent","_originChildProps$eve","_len","args","Array","_key","call","apply","concat","clickToShow","has","clickToHide","onClick","_originChildProps$onC","_len2","_key2","onWindowClick","_ref","target","win","getWin","targetRoot","addEventListener","inShadow","ownerDocument","process","env","NODE_ENV","popupRoot","warning","removeEventListener","onPopupMouseEnter","onPopupMouseLeave","hoverToShow","hoverToHide","onMouseMove","_originChildProps$onM","onContextMenu","_originChildProps$onC2","preventDefault","_len3","_key3","mergedChildrenProps","_objectSpread","passedProps","forEach","_mergedChildrenProps$","_len4","_key4","triggerNode","cloneElement","createElement","Fragment","ResizeObserver","disabled","onResize","_","rect","getBoundingClientRect","width","height","TriggerWrapper","Provider","value","Popup","portal","style","onMouseEnter","onMouseLeave","open","keepDom","motion","onVisibleChanged","visible","onPrepare","Promise","resolve","align","displayName"],"mappings":"6rCAGIA,EAAY,CAAC,YAAa,WAAY,SAAU,aAAc,aAAc,eAAgB,sBAAuB,uBAAwB,0BAA2B,kBAAmB,kBAAmB,aAAc,YAAa,OAAQ,eAAgB,oBAAqB,cAAe,cAAe,qBAAsB,QAAS,iBAAkB,aAAc,iBAAkB,oBAAqB,aAAc,SAAU,UAAW,6BAA8B,aAAc,eAAgB,eAAgB,QAAS,cAAe,aAAc,sBAAuB,iBAAkB,qBAAsB,gBAAiB,YAAa,qBAkBvoB,SAASC,IACd,IAAIC,EAAkBC,UAAUC,OAAS,QAAsBC,IAAjBF,UAAU,GAAmBA,UAAU,GAAKG,EACtFC,EAAuBC,EAAMC,YAAW,SAAUC,EAAOC,GAC3D,IAAIC,EAAmBF,EAAMG,UAC3BA,OAAiC,IAArBD,EAA8B,mBAAqBA,EAC/DE,EAAWJ,EAAMI,SACjBC,EAAgBL,EAAMM,OACtBA,O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KoB1O,EAAMiO,cAAcU,EAAgB,CAClD3L,kBAAmBA,IAClB+K,KAA4B/N,EAAMiO,cAAcjK,EAAe4K,SAAU,CAC1EC,MAAO5K,IACOjE,EAAMiO,cAAca,EAAO,CACzCC,OAAQrP,EACRS,IAAKyE,GACLvE,UAAWA,EACXsB,MAAOA,EACPoB,UAAW6G,EAAWhI,EAAgB6H,IACtCuF,MAAOnN,EACPmK,OAAQ9G,GACR+J,aAAcpC,GACdqC,aAAcpC,GACd5K,OAAQA,EAGRiN,KAAMvI,GACNwI,QAAS1H,GAGTgE,QAASpJ,GAGTlB,KAAMA,EAGNiO,OAAQhJ,GACR3D,WAAY6D,GACZ+I,iBArOqB,SAA0BC,GAC/C5H,IAAY,GACZyB,KACAtI,SAAkFA,EAAwByO,EAChH,EAkOMC,UA/Nc,WACd,OAAO,IAAIC,SAAQ,SAAUC,GAC3B1H,IAAwB,WACtB,OAAO0H,CACjB,GACA,GACA,EA4NMlO,YAAaA,EACbC,YAAa0B,GACb5B,kBAAmBA,EAGnBoO,MAAOxG,GACP3G,MAAOA,GAGPoG,MAAOA,GACPC,QAASA,GACTC,QAASA,GACTC,OAAQA,GACRC,OAAQA,GACRI,QAASC,GAGTlH,QAASA,GACT8H,YAAaA,GAAchB,GAC3BoB,aAAcA,GAAenB,MAEnC,IAIE,MAH6B,eAAzBqD,QAAQC,IAAIC,WACd1M,EAAQ6P,YAAc,WAEjB7P,CACT,CACA,IAAeA,EAAAN,EAAgBK","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/@rc-component/trigger/es/index.js"],"sourcesContent":["import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"prefixCls\", \"children\", \"action\", \"showAction\", \"hideAction\", \"popupVisible\", \"defaultPopupVisible\", \"onPopupVisibleChange\", \"afterPopupVisibleChange\", \"mouseEnterDelay\", \"mouseLeaveDelay\", \"focusDelay\", \"blurDelay\", \"mask\", \"maskClosable\", \"getPopupContainer\", \"forceRender\", \"autoDestroy\", \"destroyPopupOnHide\", \"popup\", \"popupClassName\", \"popupStyle\", \"popupPlacement\", \"builtinPlacements\", \"popupAlign\", \"zIndex\", \"stretch\", \"getPopupClassNameFromAlign\", \"alignPoint\", \"onPopupClick\", \"onPopupAlign\", \"arrow\", \"popupMotion\", \"maskMotion\", \"popupTransitionName\", \"popupAnimation\", \"maskTransitionName\", \"maskAnimation\", \"className\", \"getTriggerDOMNode\"];\nimport Portal from '@rc-component/portal';\nimport classNames from 'classnames';\nimport ResizeObserver from 'rc-resize-observer';\nimport { isDOM } from \"rc-util/es/Dom/findDOMNode\";\nimport useEvent from \"rc-util/es/hooks/useEvent\";\nimport useId from \"rc-util/es/hooks/useId\";\nimport useLayoutEffect from \"rc-util/es/hooks/useLayoutEffect\";\nimport isMobile from \"rc-util/es/isMobile\";\nimport warning from \"rc-util/es/warning\";\nimport * as React from 'react';\nimport TriggerContext from \"./context\";\nimport useAction from \"./hooks/useAction\";\nimport useAlign from \"./hooks/useAlign\";\nimport useWatch from \"./hooks/useWatch\";\nimport Popup from \"./Popup\";\nimport TriggerWrapper from \"./TriggerWrapper\";\nimport { getAlignPopupClassName, getMotion, getWin } from \"./util\";\nexport function generateTrigger() {\n var PortalComponent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : Portal;\n var Trigger = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'rc-trigger-popup' : _props$prefixCls,\n children = props.children,\n _props$action = props.action,\n action = _props$action === void 0 ? 'hover' : _props$action,\n showAction = props.showAction,\n hideAction = props.hideAction,\n popupVisible = props.popupVisible,\n defaultPopupVisible = props.defaultPopupVisible,\n onPopupVisibleChange = props.onPopupVisibleChange,\n afterPopupVisibleChange = props.afterPopupVisibleChange,\n mouseEnterDelay = props.mouseEnterDelay,\n _props$mouseLeaveDela = props.mouseLeaveDelay,\n mouseLeaveDelay = _props$mouseLeaveDela === void 0 ? 0.1 : _props$mouseLeaveDela,\n focusDelay = props.focusDelay,\n blurDelay = props.blurDelay,\n mask = props.mask,\n _props$maskClosable = props.maskClosable,\n maskClosable = _props$maskClosable === void 0 ? true : _props$maskClosable,\n getPopupContainer = props.getPopupContainer,\n forceRender = props.forceRender,\n autoDestroy = props.autoDestroy,\n destroyPopupOnHide = props.destroyPopupOnHide,\n popup = props.popup,\n popupClassName = props.popupClassName,\n popupStyle = props.popupStyle,\n popupPlacement = props.popupPlacement,\n _props$builtinPlaceme = props.builtinPlacements,\n builtinPlacements = _props$builtinPlaceme === void 0 ? {} : _props$builtinPlaceme,\n popupAlign = props.popupAlign,\n zIndex = props.zIndex,\n stretch = props.stretch,\n getPopupClassNameFromAlign = props.getPopupClassNameFromAlign,\n alignPoint = props.alignPoint,\n onPopupClick = props.onPopupClick,\n onPopupAlign = props.onPopupAlign,\n arrow = props.arrow,\n popupMotion = props.popupMotion,\n maskMotion = props.maskMotion,\n popupTransitionName = props.popupTransitionName,\n popupAnimation = props.popupAnimation,\n maskTransitionName = props.maskTransitionName,\n maskAnimation = props.maskAnimation,\n className = props.className,\n getTriggerDOMNode = props.getTriggerDOMNode,\n restProps = _objectWithoutProperties(props, _excluded);\n var mergedAutoDestroy = autoDestroy || destroyPopupOnHide || false;\n\n // =========================== Mobile ===========================\n var _React$useState = React.useState(false),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n mobile = _React$useState2[0],\n setMobile = _React$useState2[1];\n useLayoutEffect(function () {\n setMobile(isMobile());\n }, []);\n\n // ========================== Context ===========================\n var subPopupElements = React.useRef({});\n var parentContext = React.useContext(TriggerContext);\n var context = React.useMemo(function () {\n return {\n registerSubPopup: function registerSubPopup(id, subPopupEle) {\n subPopupElements.current[id] = subPopupEle;\n parentContext === null || parentContext === void 0 ? void 0 : parentContext.registerSubPopup(id, subPopupEle);\n }\n };\n }, [parentContext]);\n\n // =========================== Popup ============================\n var id = useId();\n var _React$useState3 = React.useState(null),\n _React$useState4 = _slicedToArray(_React$useState3, 2),\n popupEle = _React$useState4[0],\n setPopupEle = _React$useState4[1];\n var setPopupRef = useEvent(function (node) {\n if (isDOM(node) && popupEle !== node) {\n setPopupEle(node);\n }\n parentContext === null || parentContext === void 0 ? void 0 : parentContext.registerSubPopup(id, node);\n });\n\n // =========================== Target ===========================\n // Use state to control here since `useRef` update not trigger render\n var _React$useState5 = React.useState(null),\n _React$useState6 = _slicedToArray(_React$useState5, 2),\n targetEle = _React$useState6[0],\n setTargetEle = _React$useState6[1];\n var setTargetRef = useEvent(function (node) {\n if (isDOM(node) && targetEle !== node) {\n setTargetEle(node);\n }\n });\n\n // ========================== Children ==========================\n var child = React.Children.only(children);\n var originChildProps = (child === null || child === void 0 ? void 0 : child.props) || {};\n var cloneProps = {};\n var inPopupOrChild = useEvent(function (ele) {\n var _childDOM$getRootNode, _popupEle$getRootNode;\n var childDOM = targetEle;\n return (childDOM === null || childDOM === void 0 ? void 0 : childDOM.contains(ele)) || (childDOM === null || childDOM === void 0 ? void 0 : (_childDOM$getRootNode = childDOM.getRootNode()) === null || _childDOM$getRootNode === void 0 ? void 0 : _childDOM$getRootNode.host) === ele || ele === childDOM || (popupEle === null || popupEle === void 0 ? void 0 : popupEle.contains(ele)) || (popupEle === null || popupEle === void 0 ? void 0 : (_popupEle$getRootNode = popupEle.getRootNode()) === null || _popupEle$getRootNode === void 0 ? void 0 : _popupEle$getRootNode.host) === ele || ele === popupEle || Object.values(subPopupElements.current).some(function (subPopupEle) {\n return subPopupEle.contains(ele) || ele === subPopupEle;\n });\n });\n\n // =========================== Motion ===========================\n var mergePopupMotion = getMotion(prefixCls, popupMotion, popupAnimation, popupTransitionName);\n var mergeMaskMotion = getMotion(prefixCls, maskMotion, maskAnimation, maskTransitionName);\n\n // ============================ Open ============================\n var _React$useState7 = React.useState(defaultPopupVisible || false),\n _React$useState8 = _slicedToArray(_React$useState7, 2),\n internalOpen = _React$useState8[0],\n setInternalOpen = _React$useState8[1];\n\n // Render still use props as first priority\n var mergedOpen = popupVisible !== null && popupVisible !== void 0 ? popupVisible : internalOpen;\n\n // We use effect sync here in case `popupVisible` back to `undefined`\n var setMergedOpen = useEvent(function (nextOpen) {\n if (popupVisible === undefined) {\n setInternalOpen(nextOpen);\n }\n });\n useLayoutEffect(function () {\n setInternalOpen(popupVisible || false);\n }, [popupVisible]);\n var openRef = React.useRef(mergedOpen);\n openRef.current = mergedOpen;\n var internalTriggerOpen = useEvent(function (nextOpen) {\n if (mergedOpen !== nextOpen) {\n setMergedOpen(nextOpen);\n onPopupVisibleChange === null || onPopupVisibleChange === void 0 ? void 0 : onPopupVisibleChange(nextOpen);\n }\n });\n\n // Trigger for delay\n var delayRef = React.useRef();\n var clearDelay = function clearDelay() {\n clearTimeout(delayRef.current);\n };\n var triggerOpen = function triggerOpen(nextOpen) {\n var delay = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n clearDelay();\n if (delay === 0) {\n internalTriggerOpen(nextOpen);\n } else {\n delayRef.current = setTimeout(function () {\n internalTriggerOpen(nextOpen);\n }, delay * 1000);\n }\n };\n React.useEffect(function () {\n return clearDelay;\n }, []);\n\n // ========================== Motion ============================\n var _React$useState9 = React.useState(false),\n _React$useState10 = _slicedToArray(_React$useState9, 2),\n inMotion = _React$useState10[0],\n setInMotion = _React$useState10[1];\n var mountRef = React.useRef(true);\n useLayoutEffect(function () {\n if (!mountRef.current || mergedOpen) {\n setInMotion(true);\n }\n mountRef.current = true;\n }, [mergedOpen]);\n var _React$useState11 = React.useState(null),\n _React$useState12 = _slicedToArray(_React$useState11, 2),\n motionPrepareResolve = _React$useState12[0],\n setMotionPrepareResolve = _React$useState12[1];\n\n // =========================== Align ============================\n var _React$useState13 = React.useState([0, 0]),\n _React$useState14 = _slicedToArray(_React$useState13, 2),\n mousePos = _React$useState14[0],\n setMousePos = _React$useState14[1];\n var setMousePosByEvent = function setMousePosByEvent(event) {\n setMousePos([event.clientX, event.clientY]);\n };\n var _useAlign = useAlign(mergedOpen, popupEle, alignPoint ? mousePos : targetEle, popupPlacement, builtinPlacements, popupAlign, onPopupAlign),\n _useAlign2 = _slicedToArray(_useAlign, 9),\n ready = _useAlign2[0],\n offsetX = _useAlign2[1],\n offsetY = _useAlign2[2],\n arrowX = _useAlign2[3],\n arrowY = _useAlign2[4],\n scaleX = _useAlign2[5],\n scaleY = _useAlign2[6],\n alignInfo = _useAlign2[7],\n onAlign = _useAlign2[8];\n var triggerAlign = useEvent(function () {\n if (!inMotion) {\n onAlign();\n }\n });\n useWatch(mergedOpen, targetEle, popupEle, triggerAlign);\n useLayoutEffect(function () {\n triggerAlign();\n }, [mousePos]);\n\n // When no builtinPlacements and popupAlign changed\n useLayoutEffect(function () {\n if (mergedOpen && !(builtinPlacements !== null && builtinPlacements !== void 0 && builtinPlacements[popupPlacement])) {\n triggerAlign();\n }\n }, [JSON.stringify(popupAlign)]);\n var alignedClassName = React.useMemo(function () {\n var baseClassName = getAlignPopupClassName(builtinPlacements, prefixCls, alignInfo, alignPoint);\n return classNames(baseClassName, getPopupClassNameFromAlign === null || getPopupClassNameFromAlign === void 0 ? void 0 : getPopupClassNameFromAlign(alignInfo));\n }, [alignInfo, getPopupClassNameFromAlign, builtinPlacements, prefixCls, alignPoint]);\n React.useImperativeHandle(ref, function () {\n return {\n forceAlign: triggerAlign\n };\n });\n\n // ========================== Motion ============================\n var onVisibleChanged = function onVisibleChanged(visible) {\n setInMotion(false);\n onAlign();\n afterPopupVisibleChange === null || afterPopupVisibleChange === void 0 ? void 0 : afterPopupVisibleChange(visible);\n };\n\n // We will trigger align when motion is in prepare\n var onPrepare = function onPrepare() {\n return new Promise(function (resolve) {\n setMotionPrepareResolve(function () {\n return resolve;\n });\n });\n };\n useLayoutEffect(function () {\n if (motionPrepareResolve) {\n onAlign();\n motionPrepareResolve();\n setMotionPrepareResolve(null);\n }\n }, [motionPrepareResolve]);\n\n // ========================== Stretch ===========================\n var _React$useState15 = React.useState(0),\n _React$useState16 = _slicedToArray(_React$useState15, 2),\n targetWidth = _React$useState16[0],\n setTargetWidth = _React$useState16[1];\n var _React$useState17 = React.useState(0),\n _React$useState18 = _slicedToArray(_React$useState17, 2),\n targetHeight = _React$useState18[0],\n setTargetHeight = _React$useState18[1];\n var onTargetResize = function onTargetResize(_, ele) {\n triggerAlign();\n if (stretch) {\n var rect = ele.getBoundingClientRect();\n setTargetWidth(rect.width);\n setTargetHeight(rect.height);\n }\n };\n\n // =========================== Action ===========================\n var _useAction = useAction(mobile, action, showAction, hideAction),\n _useAction2 = _slicedToArray(_useAction, 2),\n showActions = _useAction2[0],\n hideActions = _useAction2[1];\n\n // Util wrapper for trigger action\n var wrapperAction = function wrapperAction(eventName, nextOpen, delay, preEvent) {\n cloneProps[eventName] = function (event) {\n var _originChildProps$eve;\n preEvent === null || preEvent === void 0 ? void 0 : preEvent(event);\n triggerOpen(nextOpen, delay);\n\n // Pass to origin\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n (_originChildProps$eve = originChildProps[eventName]) === null || _originChildProps$eve === void 0 ? void 0 : _originChildProps$eve.call.apply(_originChildProps$eve, [originChildProps, event].concat(args));\n };\n };\n\n // ======================= Action: Click ========================\n var clickToShow = showActions.has('click');\n var clickToHide = hideActions.has('click') || hideActions.has('contextMenu');\n if (clickToShow || clickToHide) {\n cloneProps.onClick = function (event) {\n var _originChildProps$onC;\n if (openRef.current && clickToHide) {\n triggerOpen(false);\n } else if (!openRef.current && clickToShow) {\n setMousePosByEvent(event);\n triggerOpen(true);\n }\n\n // Pass to origin\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n (_originChildProps$onC = originChildProps.onClick) === null || _originChildProps$onC === void 0 ? void 0 : _originChildProps$onC.call.apply(_originChildProps$onC, [originChildProps, event].concat(args));\n };\n }\n\n // Click to hide is special action since click popup element should not hide\n React.useEffect(function () {\n if (clickToHide && popupEle && (!mask || maskClosable)) {\n var onWindowClick = function onWindowClick(_ref) {\n var target = _ref.target;\n if (openRef.current && !inPopupOrChild(target)) {\n triggerOpen(false);\n }\n };\n var win = getWin(popupEle);\n var targetRoot = targetEle === null || targetEle === void 0 ? void 0 : targetEle.getRootNode();\n win.addEventListener('click', onWindowClick);\n\n // shadow root\n var inShadow = targetRoot && targetRoot !== targetEle.ownerDocument;\n if (inShadow) {\n targetRoot.addEventListener('click', onWindowClick);\n }\n\n // Warning if target and popup not in same root\n if (process.env.NODE_ENV !== 'production') {\n var popupRoot = popupEle.getRootNode();\n warning(targetRoot === popupRoot, \"trigger element and popup element should in same shadow root.\");\n }\n return function () {\n win.removeEventListener('click', onWindowClick);\n if (inShadow) {\n targetRoot.removeEventListener('click', onWindowClick);\n }\n };\n }\n }, [clickToHide, targetEle, popupEle, mask, maskClosable]);\n\n // ======================= Action: Hover ========================\n var hoverToShow = showActions.has('hover');\n var hoverToHide = hideActions.has('hover');\n var onPopupMouseEnter;\n var onPopupMouseLeave;\n if (hoverToShow) {\n wrapperAction('onMouseEnter', true, mouseEnterDelay, function (event) {\n setMousePosByEvent(event);\n });\n onPopupMouseEnter = function onPopupMouseEnter() {\n triggerOpen(true, mouseEnterDelay);\n };\n\n // Align Point\n if (alignPoint) {\n cloneProps.onMouseMove = function (event) {\n var _originChildProps$onM;\n // setMousePosByEvent(event);\n (_originChildProps$onM = originChildProps.onMouseMove) === null || _originChildProps$onM === void 0 ? void 0 : _originChildProps$onM.call(originChildProps, event);\n };\n }\n }\n if (hoverToHide) {\n wrapperAction('onMouseLeave', false, mouseLeaveDelay);\n onPopupMouseLeave = function onPopupMouseLeave() {\n triggerOpen(false, mouseLeaveDelay);\n };\n }\n\n // ======================= Action: Focus ========================\n if (showActions.has('focus')) {\n wrapperAction('onFocus', true, focusDelay);\n }\n if (hideActions.has('focus')) {\n wrapperAction('onBlur', false, blurDelay);\n }\n\n // ==================== Action: ContextMenu =====================\n if (showActions.has('contextMenu')) {\n cloneProps.onContextMenu = function (event) {\n var _originChildProps$onC2;\n setMousePosByEvent(event);\n triggerOpen(true);\n event.preventDefault();\n\n // Pass to origin\n for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {\n args[_key3 - 1] = arguments[_key3];\n }\n (_originChildProps$onC2 = originChildProps.onContextMenu) === null || _originChildProps$onC2 === void 0 ? void 0 : _originChildProps$onC2.call.apply(_originChildProps$onC2, [originChildProps, event].concat(args));\n };\n }\n\n // ========================= ClassName ==========================\n if (className) {\n cloneProps.className = classNames(originChildProps.className, className);\n }\n\n // =========================== Render ===========================\n var mergedChildrenProps = _objectSpread(_objectSpread({}, originChildProps), cloneProps);\n\n // Pass props into cloneProps for nest usage\n var passedProps = {};\n var passedEventList = ['onContextMenu', 'onClick', 'onMouseDown', 'onTouchStart', 'onMouseEnter', 'onMouseLeave', 'onFocus', 'onBlur'];\n passedEventList.forEach(function (eventName) {\n if (restProps[eventName]) {\n passedProps[eventName] = function () {\n var _mergedChildrenProps$;\n for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {\n args[_key4] = arguments[_key4];\n }\n (_mergedChildrenProps$ = mergedChildrenProps[eventName]) === null || _mergedChildrenProps$ === void 0 ? void 0 : _mergedChildrenProps$.call.apply(_mergedChildrenProps$, [mergedChildrenProps].concat(args));\n restProps[eventName].apply(restProps, args);\n };\n }\n });\n\n // Child Node\n var triggerNode = /*#__PURE__*/React.cloneElement(child, _objectSpread(_objectSpread({}, mergedChildrenProps), passedProps));\n\n // Render\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ResizeObserver, {\n disabled: !mergedOpen,\n ref: setTargetRef,\n onResize: onTargetResize\n }, /*#__PURE__*/React.createElement(TriggerWrapper, {\n getTriggerDOMNode: getTriggerDOMNode\n }, triggerNode)), /*#__PURE__*/React.createElement(TriggerContext.Provider, {\n value: context\n }, /*#__PURE__*/React.createElement(Popup, {\n portal: PortalComponent,\n ref: setPopupRef,\n prefixCls: prefixCls,\n popup: popup,\n className: classNames(popupClassName, alignedClassName),\n style: popupStyle,\n target: targetEle,\n onMouseEnter: onPopupMouseEnter,\n onMouseLeave: onPopupMouseLeave,\n zIndex: zIndex\n // Open\n ,\n open: mergedOpen,\n keepDom: inMotion\n // Click\n ,\n onClick: onPopupClick\n // Mask\n ,\n mask: mask\n // Motion\n ,\n motion: mergePopupMotion,\n maskMotion: mergeMaskMotion,\n onVisibleChanged: onVisibleChanged,\n onPrepare: onPrepare\n // Portal\n ,\n forceRender: forceRender,\n autoDestroy: mergedAutoDestroy,\n getPopupContainer: getPopupContainer\n // Arrow\n ,\n align: alignInfo,\n arrow: arrow\n // Align\n ,\n ready: ready,\n offsetX: offsetX,\n offsetY: offsetY,\n arrowX: arrowX,\n arrowY: arrowY,\n onAlign: triggerAlign\n // Stretch\n ,\n stretch: stretch,\n targetWidth: targetWidth / scaleX,\n targetHeight: targetHeight / scaleY\n })));\n });\n if (process.env.NODE_ENV !== 'production') {\n Trigger.displayName = 'Trigger';\n }\n return Trigger;\n}\nexport default generateTrigger(Portal);"],"names":["_excluded","generateTrigger","PortalComponent","arguments","length","undefined","Portal","Trigger","React","forwardRef","props","ref","_props$prefixCls","prefixCls","children","_props$action","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","_props$mouseLeaveDela","mouseLeaveDelay","focusDelay","blurDelay","mask","_props$maskClosable","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","_props$builtinPlaceme","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode","restProps","_objectWithoutProperties","mergedAutoDestroy","_React$useState","useState","_React$useState2","_slicedToArray","mobile","setMobile","useLayoutEffect","isMobile","subPopupElements","useRef","parentContext","useContext","TriggerContext","context","useMemo","registerSubPopup","id","subPopupEle","current","useId","_React$useState3","_React$useState4","popupEle","setPopupEle","setPopupRef","useEvent","node","isDOM","_React$useState5","_React$useState6","targetEle","setTargetEle","setTargetRef","child","Children","only","originChildProps","cloneProps","inPopupOrChild","ele","_childDOM$getRootNode","_popupEle$getRootNode","childDOM","contains","getRootNode","host","Object","values","some","mergePopupMotion","getMotion","mergeMaskMotion","_React$useState7","_React$useState8","internalOpen","setInternalOpen","mergedOpen","setMergedOpen","nextOpen","openRef","internalTriggerOpen","delayRef","clearDelay","clearTimeout","triggerOpen","delay","setTimeout","useEffect","_React$useState9","_React$useState10","inMotion","setInMotion","mountRef","_React$useState11","_React$useState12","motionPrepareResolve","setMotionPrepareResolve","_React$useState13","_React$useState14","mousePos","setMousePos","setMousePosByEvent","event","clientX","clientY","_useAlign","useAlign","_useAlign2","ready","offsetX","offsetY","arrowX","arrowY","scaleX","scaleY","alignInfo","onAlign","triggerAlign","useWatch","JSON","stringify","alignedClassName","baseClassName","getAlignPopupClassName","classNames","useImperativeHandle","forceAlign","_React$useState15","_React$useState16","targetWidth","setTargetWidth","_React$useState17","_React$useState18","targetHeight","setTargetHeight","_useAction","useAction","_useAction2","showActions","hideActions","wrapperAction","eventName","preEvent","_originChildProps$eve","_len","args","Array","_key","call","apply","concat","clickToShow","has","clickToHide","onClick","_originChildProps$onC","_len2","_key2","onWindowClick","_ref","target","win","getWin","targetRoot","addEventListener","inShadow","ownerDocument","process","env","NODE_ENV","popupRoot","warning","removeEventListener","onPopupMouseEnter","onPopupMouseLeave","hoverToShow","hoverToHide","onMouseMove","_originChildProps$onM","onContextMenu","_originChildProps$onC2","preventDefault","_len3","_key3","mergedChildrenProps","_objectSpread","passedProps","forEach","_mergedChildrenProps$","_len4","_key4","triggerNode","cloneElement","createElement","Fragment","ResizeObserver","disabled","onResize","_","rect","getBoundingClientRect","width","height","TriggerWrapper","Provider","value","Popup","portal","style","onMouseEnter","onMouseLeave","open","keepDom","motion","onVisibleChanged","visible","onPrepare","Promise","resolve","align","displayName"],"mappings":"+9BAGA,IAAIA,EAAY,CAAC,YAAa,WAAY,SAAU,aAAc,aAAc,eAAgB,sBAAuB,uBAAwB,0BAA2B,kBAAmB,kBAAmB,aAAc,YAAa,OAAQ,eAAgB,oBAAqB,cAAe,cAAe,qBAAsB,QAAS,iBAAkB,aAAc,iBAAkB,oBAAqB,aAAc,SAAU,UAAW,6BAA8B,aAAc,eAAgB,eAAgB,QAAS,cAAe,aAAc,sBAAuB,iBAAkB,qBAAsB,gBAAiB,YAAa,qBAkBvoB,SAASC,IACd,IAAIC,EAAkBC,UAAUC,OAAS,QAAsBC,IAAjBF,UAAU,GAAmBA,UAAU,GAAKG,EACtFC,EAAuBC,EAAMC,YAAW,SAAUC,EAAOC,GAC3D,IAAIC,EAAmBF,EAAMG,UAC3BA,OAAiC,IAArBD,EAA8B,mBAAqBA,EAC/DE,EAAWJ,EAAMI,SACjBC,EAAgBL,EAAMM,OACtBA,OAA2B,IAAlBD,EAA2B,QAAUA,EAC9CE,EAAaP,EAAMO,WACnBC,EAAaR,EAAMQ,WACnBC,EAAeT,EAAMS,aACrBC,EAAsBV,EAAMU,oBAC5BC,EAAuBX,EAAMW,qBAC7BC,EAA0BZ,EAAMY,wBAChCC,EAAkBb,EAAMa,gBACxBC,EAAwBd,EAAMe,gBAC9BA,OAA4C,IAA1BD,EAAmC,GAAMA,EAC3DE,EAAahB,EAAMgB,WACnBC,EAAYjB,EAAMiB,UAClBC,EAAOlB,EAAMkB,KACbC,EAAsBnB,EAAMoB,aAC5BA,OAAuC,IAAxBD,GAAwCA,EACvDE,EAAoBrB,EAAMqB,kBAC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EAkOMC,UA/Nc,WACd,OAAO,IAAIC,SAAQ,SAAUC,GAC3B1H,IAAwB,WACtB,OAAO0H,CACjB,GACA,GACA,EA4NMlO,YAAaA,EACbC,YAAa0B,GACb5B,kBAAmBA,EAGnBoO,MAAOxG,GACP3G,MAAOA,GAGPoG,MAAOA,GACPC,QAASA,GACTC,QAASA,GACTC,OAAQA,GACRC,OAAQA,GACRI,QAASC,GAGTlH,QAASA,GACT8H,YAAaA,GAAchB,GAC3BoB,aAAcA,GAAenB,MAEnC,IAIE,MAH6B,eAAzBqD,QAAQC,IAAIC,WACd1M,EAAQ6P,YAAc,WAEjB7P,CACT,CACA,IAAeA,EAAAN,EAAgBK","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
function n(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(arguments.length>2?arguments[2]:void 0)?n[0]===t[0]:n[0]===t[0]&&n[1]===t[1]}function t(t,e,o,r){for(var l=o.points,u=Object.keys(t),i=0;i<u.length;i+=1){var c,a=u[i];if(n(null===(c=t[a])||void 0===c?void 0:c.points,l,r))return"".concat(e,"-placement-").concat(a)}return""}function e(n,t,e,o){return t||(e?{motionName:"".concat(n,"-").concat(e)}:o?{motionName:o}:null)}function o(n){return n.ownerDocument.defaultView}function r(n){for(var t=[],e=null==n?void 0:n.parentElement,r=["hidden","scroll","auto"];e;){var l=o(e).getComputedStyle(e),u=l.overflowX,i=l.overflowY;(r.includes(u)||r.includes(i))&&t.push(e),e=e.parentElement}return t}export{r as collectScroller,t as getAlignPopupClassName,e as getMotion,o as getWin};
|
|
2
2
|
//# sourceMappingURL=util.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"util.js","sources":["../../../../../node_modules/@rc-component/trigger/es/util.js"],"sourcesContent":["function isPointsEq() {\n var a1 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var a2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n var isAlignPoint = arguments.length > 2 ? arguments[2] : undefined;\n if (isAlignPoint) {\n return a1[0] === a2[0];\n }\n return a1[0] === a2[0] && a1[1] === a2[1];\n}\nexport function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {\n var points = align.points;\n var placements = Object.keys(builtinPlacements);\n for (var i = 0; i < placements.length; i += 1) {\n var _builtinPlacements$pl;\n var placement = placements[i];\n if (isPointsEq((_builtinPlacements$pl = builtinPlacements[placement]) === null || _builtinPlacements$pl === void 0 ? void 0 : _builtinPlacements$pl.points, points, isAlignPoint)) {\n return \"\".concat(prefixCls, \"-placement-\").concat(placement);\n }\n }\n return '';\n}\n\n/** @deprecated We should not use this if we can refactor all deps */\nexport function getMotion(prefixCls, motion, animation, transitionName) {\n if (motion) {\n return motion;\n }\n if (animation) {\n return {\n motionName: \"\".concat(prefixCls, \"-\").concat(animation)\n };\n }\n if (transitionName) {\n return {\n motionName: transitionName\n };\n }\n return null;\n}\nexport function getWin(ele) {\n return ele.ownerDocument.defaultView;\n}\nexport function collectScroller(ele) {\n var scrollerList = [];\n var current = ele === null || ele === void 0 ? void 0 : ele.parentElement;\n var scrollStyle = ['hidden', 'scroll', 'auto'];\n while (current) {\n var _getWin$getComputedSt = getWin(current).getComputedStyle(current),\n overflowX = _getWin$getComputedSt.overflowX,\n overflowY = _getWin$getComputedSt.overflowY;\n if (scrollStyle.includes(overflowX) || scrollStyle.includes(overflowY)) {\n scrollerList.push(current);\n }\n current = current.parentElement;\n }\n return scrollerList;\n}"],"names":["isPointsEq","a1","arguments","length","undefined","a2","
|
|
1
|
+
{"version":3,"file":"util.js","sources":["../../../../../node_modules/@rc-component/trigger/es/util.js"],"sourcesContent":["function isPointsEq() {\n var a1 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var a2 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];\n var isAlignPoint = arguments.length > 2 ? arguments[2] : undefined;\n if (isAlignPoint) {\n return a1[0] === a2[0];\n }\n return a1[0] === a2[0] && a1[1] === a2[1];\n}\nexport function getAlignPopupClassName(builtinPlacements, prefixCls, align, isAlignPoint) {\n var points = align.points;\n var placements = Object.keys(builtinPlacements);\n for (var i = 0; i < placements.length; i += 1) {\n var _builtinPlacements$pl;\n var placement = placements[i];\n if (isPointsEq((_builtinPlacements$pl = builtinPlacements[placement]) === null || _builtinPlacements$pl === void 0 ? void 0 : _builtinPlacements$pl.points, points, isAlignPoint)) {\n return \"\".concat(prefixCls, \"-placement-\").concat(placement);\n }\n }\n return '';\n}\n\n/** @deprecated We should not use this if we can refactor all deps */\nexport function getMotion(prefixCls, motion, animation, transitionName) {\n if (motion) {\n return motion;\n }\n if (animation) {\n return {\n motionName: \"\".concat(prefixCls, \"-\").concat(animation)\n };\n }\n if (transitionName) {\n return {\n motionName: transitionName\n };\n }\n return null;\n}\nexport function getWin(ele) {\n return ele.ownerDocument.defaultView;\n}\nexport function collectScroller(ele) {\n var scrollerList = [];\n var current = ele === null || ele === void 0 ? void 0 : ele.parentElement;\n var scrollStyle = ['hidden', 'scroll', 'auto'];\n while (current) {\n var _getWin$getComputedSt = getWin(current).getComputedStyle(current),\n overflowX = _getWin$getComputedSt.overflowX,\n overflowY = _getWin$getComputedSt.overflowY;\n if (scrollStyle.includes(overflowX) || scrollStyle.includes(overflowY)) {\n scrollerList.push(current);\n }\n current = current.parentElement;\n }\n return scrollerList;\n}"],"names":["isPointsEq","a1","arguments","length","undefined","a2","getAlignPopupClassName","builtinPlacements","prefixCls","align","isAlignPoint","points","placements","Object","keys","i","_builtinPlacements$pl","placement","concat","getMotion","motion","animation","transitionName","motionName","getWin","ele","ownerDocument","defaultView","collectScroller","scrollerList","current","parentElement","scrollStyle","_getWin$getComputedSt","getComputedStyle","overflowX","overflowY","includes","push"],"mappings":"AAAA,SAASA,IACP,IAAIC,EAAKC,UAAUC,OAAS,QAAsBC,IAAjBF,UAAU,GAAmBA,UAAU,GAAK,GACzEG,EAAKH,UAAUC,OAAS,QAAsBC,IAAjBF,UAAU,GAAmBA,UAAU,GAAK,GAE7E,OADmBA,UAAUC,OAAS,EAAID,UAAU,QAAKE,GAEhDH,EAAG,KAAOI,EAAG,GAEfJ,EAAG,KAAOI,EAAG,IAAMJ,EAAG,KAAOI,EAAG,EACzC,CACO,SAASC,EAAuBC,EAAmBC,EAAWC,EAAOC,GAG1E,IAFA,IAAIC,EAASF,EAAME,OACfC,EAAaC,OAAOC,KAAKP,GACpBQ,EAAI,EAAGA,EAAIH,EAAWT,OAAQY,GAAK,EAAG,CAC7C,IAAIC,EACAC,EAAYL,EAAWG,GAC3B,GAAIf,EAAsE,QAA1DgB,EAAwBT,EAAkBU,UAAkD,IAA1BD,OAAmC,EAASA,EAAsBL,OAAQA,EAAQD,GAClK,MAAO,GAAGQ,OAAOV,EAAW,eAAeU,OAAOD,EAErD,CACD,MAAO,EACT,CAGO,SAASE,EAAUX,EAAWY,EAAQC,EAAWC,GACtD,OAAIF,IAGAC,EACK,CACLE,WAAY,GAAGL,OAAOV,EAAW,KAAKU,OAAOG,IAG7CC,EACK,CACLC,WAAYD,GAGT,KACT,CACO,SAASE,EAAOC,GACrB,OAAOA,EAAIC,cAAcC,WAC3B,CACO,SAASC,EAAgBH,GAI9B,IAHA,IAAII,EAAe,GACfC,EAAUL,aAAiC,EAASA,EAAIM,cACxDC,EAAc,CAAC,SAAU,SAAU,QAChCF,GAAS,CACd,IAAIG,EAAwBT,EAAOM,GAASI,iBAAiBJ,GAC3DK,EAAYF,EAAsBE,UAClCC,EAAYH,EAAsBG,WAChCJ,EAAYK,SAASF,IAAcH,EAAYK,SAASD,KAC1DP,EAAaS,KAAKR,GAEpBA,EAAUA,EAAQC,aACnB,CACD,OAAOF,CACT","x_google_ignoreList":[0]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import e from"../../../rc-util/es/hooks/useState.js";import*as t from"react";import r,{convertLegacyProps as n}from"../button/button.js";function u(e){return!(!e||!e.then)}var o=o=>{const{type:i,children:l,prefixCls:c,buttonProps:s,close:f,autoFocus:a,emitEvent:p,quitOnNullishReturnValue:m,actionFn:d}=o,v=t.useRef(!1),h=t.useRef(null),[b,j]=e(!1),g=function(){null==f||f.apply(void 0,arguments)};t.useEffect((()=>{let e=null;return a&&(e=setTimeout((()=>{var e;null===(e=h.current)||void 0===e||e.focus()}))),()=>{e&&clearTimeout(e)}}),[]);return t.createElement(r,Object.assign({},n(i),{onClick:e=>{if(v.current)return;if(v.current=!0,!d)return void g();let t;if(p){if(t=d(e),m&&!u(t))return v.current=!1,void g(e)}else if(d.length)t=d(f),v.current=!1;else if(t=d(),!t)return void g();(e=>{u(e)&&(j(!0),e.then((function(){j(!1,!0),g.apply(void 0,arguments),v.current=!1}),(e=>(j(!1,!0),v.current=!1,Promise.reject(e)))))})(t)},loading:b,prefixCls:c},s,{ref:h}),l)};export{o as default};
|
|
2
2
|
//# sourceMappingURL=ActionButton.js.map
|