react-frontend-common-components 0.0.15 → 0.0.17
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/cjs/_virtual/_commonjsHelpers.js +1 -1
- package/dist/cjs/_virtual/index.js +1 -1
- package/dist/cjs/node_modules/@ant-design/icons/es/components/AntdIcon.js +1 -1
- package/dist/cjs/node_modules/@ant-design/icons/es/components/AntdIcon.js.map +1 -1
- package/dist/cjs/node_modules/@ant-design/react-slick/es/arrows.js +1 -1
- package/dist/cjs/node_modules/@ant-design/react-slick/es/arrows.js.map +1 -1
- package/dist/cjs/node_modules/@ant-design/react-slick/es/dots.js +1 -1
- package/dist/cjs/node_modules/@ant-design/react-slick/es/dots.js.map +1 -1
- package/dist/cjs/node_modules/@ant-design/react-slick/es/inner-slider.js +1 -1
- package/dist/cjs/node_modules/@ant-design/react-slick/es/inner-slider.js.map +1 -1
- package/dist/cjs/node_modules/@ant-design/react-slick/es/track.js +1 -1
- package/dist/cjs/node_modules/@ant-design/react-slick/es/track.js.map +1 -1
- package/dist/cjs/node_modules/@rc-component/trigger/es/Popup/Arrow.js +1 -1
- package/dist/cjs/node_modules/@rc-component/trigger/es/Popup/Arrow.js.map +1 -1
- package/dist/cjs/node_modules/@rc-component/trigger/es/Popup/Mask.js +1 -1
- package/dist/cjs/node_modules/@rc-component/trigger/es/Popup/Mask.js.map +1 -1
- package/dist/cjs/node_modules/@rc-component/trigger/es/Popup/index.js +1 -1
- package/dist/cjs/node_modules/@rc-component/trigger/es/Popup/index.js.map +1 -1
- package/dist/cjs/node_modules/@rc-component/trigger/es/index.js +1 -1
- package/dist/cjs/node_modules/@rc-component/trigger/es/index.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/_util/statusUtils.js +1 -1
- package/dist/cjs/node_modules/antd/es/_util/statusUtils.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/_util/wave/WaveEffect.js +1 -1
- package/dist/cjs/node_modules/antd/es/_util/wave/WaveEffect.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/_util/wave/index.js +1 -1
- package/dist/cjs/node_modules/antd/es/_util/wave/index.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/avatar/avatar.js +1 -1
- package/dist/cjs/node_modules/antd/es/avatar/avatar.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/avatar/group.js +1 -1
- package/dist/cjs/node_modules/antd/es/avatar/group.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/badge/Ribbon.js +1 -1
- package/dist/cjs/node_modules/antd/es/badge/Ribbon.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/badge/ScrollNumber.js +1 -1
- package/dist/cjs/node_modules/antd/es/badge/ScrollNumber.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/badge/SingleNumber.js +1 -1
- package/dist/cjs/node_modules/antd/es/badge/SingleNumber.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/badge/index.js +1 -1
- package/dist/cjs/node_modules/antd/es/badge/index.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/breadcrumb/Breadcrumb.js +1 -1
- package/dist/cjs/node_modules/antd/es/breadcrumb/Breadcrumb.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/breadcrumb/useItemRender.js +1 -1
- package/dist/cjs/node_modules/antd/es/breadcrumb/useItemRender.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/button/IconWrapper.js +1 -1
- package/dist/cjs/node_modules/antd/es/button/IconWrapper.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/button/LoadingIcon.js +1 -1
- package/dist/cjs/node_modules/antd/es/button/LoadingIcon.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/button/button-group.js +1 -1
- package/dist/cjs/node_modules/antd/es/button/button-group.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/button/button.js +1 -1
- package/dist/cjs/node_modules/antd/es/button/button.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/card/Card.js +1 -1
- package/dist/cjs/node_modules/antd/es/card/Card.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/card/Grid.js +1 -1
- package/dist/cjs/node_modules/antd/es/card/Grid.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/card/Meta.js +1 -1
- package/dist/cjs/node_modules/antd/es/card/Meta.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/carousel/index.js +1 -1
- package/dist/cjs/node_modules/antd/es/carousel/index.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/checkbox/Checkbox.js +1 -1
- package/dist/cjs/node_modules/antd/es/checkbox/Checkbox.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/checkbox/Group.js +1 -1
- package/dist/cjs/node_modules/antd/es/checkbox/Group.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/collapse/Collapse.js +1 -1
- package/dist/cjs/node_modules/antd/es/collapse/Collapse.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/collapse/CollapsePanel.js +1 -1
- package/dist/cjs/node_modules/antd/es/collapse/CollapsePanel.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/divider/index.js +1 -1
- package/dist/cjs/node_modules/antd/es/divider/index.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/dropdown/dropdown-button.js +1 -1
- package/dist/cjs/node_modules/antd/es/dropdown/dropdown-button.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/dropdown/dropdown.js +1 -1
- package/dist/cjs/node_modules/antd/es/dropdown/dropdown.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/empty/index.js +1 -1
- package/dist/cjs/node_modules/antd/es/empty/index.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/float-button/BackTop.js +1 -1
- package/dist/cjs/node_modules/antd/es/float-button/BackTop.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/float-button/FloatButton.js +1 -1
- package/dist/cjs/node_modules/antd/es/float-button/FloatButton.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/float-button/FloatButtonContent.js +1 -1
- package/dist/cjs/node_modules/antd/es/float-button/FloatButtonContent.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/float-button/FloatButtonGroup.js +1 -1
- package/dist/cjs/node_modules/antd/es/float-button/FloatButtonGroup.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/float-button/PurePanel.js +1 -1
- package/dist/cjs/node_modules/antd/es/float-button/PurePanel.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/grid/col.js +1 -1
- package/dist/cjs/node_modules/antd/es/grid/col.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/grid/row.js +1 -1
- package/dist/cjs/node_modules/antd/es/grid/row.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/image/PreviewGroup.js +1 -1
- package/dist/cjs/node_modules/antd/es/image/PreviewGroup.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/image/index.js +1 -1
- package/dist/cjs/node_modules/antd/es/image/index.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/input/Group.js +1 -1
- package/dist/cjs/node_modules/antd/es/input/Group.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/input/Input.js +1 -1
- package/dist/cjs/node_modules/antd/es/input/Input.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/input/OTP/index.js +1 -1
- package/dist/cjs/node_modules/antd/es/input/OTP/index.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/input/Password.js +1 -1
- package/dist/cjs/node_modules/antd/es/input/Password.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/input/Search.js +1 -1
- package/dist/cjs/node_modules/antd/es/input/Search.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/input/TextArea.js +1 -1
- package/dist/cjs/node_modules/antd/es/input/TextArea.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/layout/Sider.js +1 -1
- package/dist/cjs/node_modules/antd/es/layout/Sider.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/layout/layout.js +1 -1
- package/dist/cjs/node_modules/antd/es/layout/layout.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/list/Item.js +1 -1
- package/dist/cjs/node_modules/antd/es/list/Item.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/list/index.js +1 -1
- package/dist/cjs/node_modules/antd/es/list/index.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/menu/MenuDivider.js +1 -1
- package/dist/cjs/node_modules/antd/es/menu/MenuDivider.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/menu/MenuItem.js +1 -1
- package/dist/cjs/node_modules/antd/es/menu/MenuItem.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/menu/SubMenu.js +1 -1
- package/dist/cjs/node_modules/antd/es/menu/SubMenu.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/menu/menu.js +1 -1
- package/dist/cjs/node_modules/antd/es/menu/menu.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/modal/ConfirmDialog.js +1 -1
- package/dist/cjs/node_modules/antd/es/modal/ConfirmDialog.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/modal/Modal.js +1 -1
- package/dist/cjs/node_modules/antd/es/modal/Modal.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/modal/PurePanel.js +1 -1
- package/dist/cjs/node_modules/antd/es/modal/PurePanel.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/pagination/Pagination.js +1 -1
- package/dist/cjs/node_modules/antd/es/pagination/Pagination.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/popover/PurePanel.js +1 -1
- package/dist/cjs/node_modules/antd/es/popover/PurePanel.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/popover/index.js +1 -1
- package/dist/cjs/node_modules/antd/es/popover/index.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/progress/Circle.js +1 -1
- package/dist/cjs/node_modules/antd/es/progress/Circle.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/progress/Line.js +1 -1
- package/dist/cjs/node_modules/antd/es/progress/Line.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/progress/Steps.js +1 -1
- package/dist/cjs/node_modules/antd/es/progress/Steps.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/progress/progress.js +1 -1
- package/dist/cjs/node_modules/antd/es/progress/progress.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/radio/group.js +1 -1
- package/dist/cjs/node_modules/antd/es/radio/group.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/radio/radio.js +1 -1
- package/dist/cjs/node_modules/antd/es/radio/radio.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/select/index.js +1 -1
- package/dist/cjs/node_modules/antd/es/select/index.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/skeleton/Avatar.js +1 -1
- package/dist/cjs/node_modules/antd/es/skeleton/Avatar.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/skeleton/Button.js +1 -1
- package/dist/cjs/node_modules/antd/es/skeleton/Button.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/skeleton/Element.js +1 -1
- package/dist/cjs/node_modules/antd/es/skeleton/Element.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/skeleton/Image.js +1 -1
- package/dist/cjs/node_modules/antd/es/skeleton/Image.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/skeleton/Input.js +1 -1
- package/dist/cjs/node_modules/antd/es/skeleton/Input.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/skeleton/Node.js +1 -1
- package/dist/cjs/node_modules/antd/es/skeleton/Node.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/skeleton/Paragraph.js +1 -1
- package/dist/cjs/node_modules/antd/es/skeleton/Paragraph.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/skeleton/Skeleton.js +1 -1
- package/dist/cjs/node_modules/antd/es/skeleton/Skeleton.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/skeleton/Title.js +1 -1
- package/dist/cjs/node_modules/antd/es/skeleton/Title.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/space/Compact.js +1 -1
- package/dist/cjs/node_modules/antd/es/space/Compact.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/space/index.js +1 -1
- package/dist/cjs/node_modules/antd/es/space/index.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/spin/Indicator/Looper.js +1 -1
- package/dist/cjs/node_modules/antd/es/spin/Indicator/Looper.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/spin/Indicator/Progress.js +1 -1
- package/dist/cjs/node_modules/antd/es/spin/Indicator/Progress.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/spin/Indicator/index.js +1 -1
- package/dist/cjs/node_modules/antd/es/spin/Indicator/index.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/spin/index.js +1 -1
- package/dist/cjs/node_modules/antd/es/spin/index.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/switch/index.js +1 -1
- package/dist/cjs/node_modules/antd/es/switch/index.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/table/ExpandIcon.js +1 -1
- package/dist/cjs/node_modules/antd/es/table/ExpandIcon.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/table/InternalTable.js +1 -1
- package/dist/cjs/node_modules/antd/es/table/InternalTable.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/table/hooks/useFilter/FilterDropdown.js +1 -1
- package/dist/cjs/node_modules/antd/es/table/hooks/useFilter/FilterDropdown.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/table/hooks/useSelection.js +1 -1
- package/dist/cjs/node_modules/antd/es/table/hooks/useSelection.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/table/hooks/useSorter.js +1 -1
- package/dist/cjs/node_modules/antd/es/table/hooks/useSorter.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/tabs/index.js +1 -1
- package/dist/cjs/node_modules/antd/es/tabs/index.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/tag/CheckableTag.js +1 -1
- package/dist/cjs/node_modules/antd/es/tag/CheckableTag.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/tag/index.js +1 -1
- package/dist/cjs/node_modules/antd/es/tag/index.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/tooltip/PurePanel.js +1 -1
- package/dist/cjs/node_modules/antd/es/tooltip/PurePanel.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/tooltip/index.js +1 -1
- package/dist/cjs/node_modules/antd/es/tooltip/index.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/tooltip/util.js +1 -1
- package/dist/cjs/node_modules/antd/es/tooltip/util.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/tree/DirectoryTree.js +1 -1
- package/dist/cjs/node_modules/antd/es/tree/DirectoryTree.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/tree/Tree.js +1 -1
- package/dist/cjs/node_modules/antd/es/tree/Tree.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/tree/utils/iconUtil.js +1 -1
- package/dist/cjs/node_modules/antd/es/tree/utils/iconUtil.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/typography/Base/CopyBtn.js +1 -1
- package/dist/cjs/node_modules/antd/es/typography/Base/CopyBtn.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/typography/Base/index.js +1 -1
- package/dist/cjs/node_modules/antd/es/typography/Base/index.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/typography/Editable.js +1 -1
- package/dist/cjs/node_modules/antd/es/typography/Editable.js.map +1 -1
- package/dist/cjs/node_modules/antd/es/typography/Typography.js +1 -1
- package/dist/cjs/node_modules/antd/es/typography/Typography.js.map +1 -1
- package/dist/cjs/node_modules/classnames/index.js +2 -2
- package/dist/cjs/node_modules/classnames/index.js.map +1 -1
- package/dist/cjs/node_modules/rc-checkbox/es/index.js +1 -1
- package/dist/cjs/node_modules/rc-checkbox/es/index.js.map +1 -1
- package/dist/cjs/node_modules/rc-collapse/es/Collapse.js +1 -1
- package/dist/cjs/node_modules/rc-collapse/es/Collapse.js.map +1 -1
- package/dist/cjs/node_modules/rc-collapse/es/Panel.js +1 -1
- package/dist/cjs/node_modules/rc-collapse/es/Panel.js.map +1 -1
- package/dist/cjs/node_modules/rc-collapse/es/PanelContent.js +1 -1
- package/dist/cjs/node_modules/rc-collapse/es/PanelContent.js.map +1 -1
- package/dist/cjs/node_modules/rc-dialog/es/Dialog/Content/Panel.js +1 -1
- package/dist/cjs/node_modules/rc-dialog/es/Dialog/Content/Panel.js.map +1 -1
- package/dist/cjs/node_modules/rc-dialog/es/Dialog/Content/index.js +1 -1
- package/dist/cjs/node_modules/rc-dialog/es/Dialog/Content/index.js.map +1 -1
- package/dist/cjs/node_modules/rc-dialog/es/Dialog/Mask.js +1 -1
- package/dist/cjs/node_modules/rc-dialog/es/Dialog/Mask.js.map +1 -1
- package/dist/cjs/node_modules/rc-dialog/es/Dialog/index.js +1 -1
- package/dist/cjs/node_modules/rc-dialog/es/Dialog/index.js.map +1 -1
- package/dist/cjs/node_modules/rc-dropdown/es/Dropdown.js +1 -1
- package/dist/cjs/node_modules/rc-dropdown/es/Dropdown.js.map +1 -1
- package/dist/cjs/node_modules/rc-image/es/Image.js +1 -1
- package/dist/cjs/node_modules/rc-image/es/Image.js.map +1 -1
- package/dist/cjs/node_modules/rc-image/es/Operations.js +1 -1
- package/dist/cjs/node_modules/rc-image/es/Operations.js.map +1 -1
- package/dist/cjs/node_modules/rc-image/es/Preview.js +1 -1
- package/dist/cjs/node_modules/rc-image/es/Preview.js.map +1 -1
- package/dist/cjs/node_modules/rc-input/es/BaseInput.js +1 -1
- package/dist/cjs/node_modules/rc-input/es/BaseInput.js.map +1 -1
- package/dist/cjs/node_modules/rc-input/es/Input.js +1 -1
- package/dist/cjs/node_modules/rc-input/es/Input.js.map +1 -1
- package/dist/cjs/node_modules/rc-menu/es/Divider.js +1 -1
- package/dist/cjs/node_modules/rc-menu/es/Divider.js.map +1 -1
- package/dist/cjs/node_modules/rc-menu/es/Menu.js +1 -1
- package/dist/cjs/node_modules/rc-menu/es/Menu.js.map +1 -1
- package/dist/cjs/node_modules/rc-menu/es/MenuItem.js +1 -1
- package/dist/cjs/node_modules/rc-menu/es/MenuItem.js.map +1 -1
- package/dist/cjs/node_modules/rc-menu/es/MenuItemGroup.js +1 -1
- package/dist/cjs/node_modules/rc-menu/es/MenuItemGroup.js.map +1 -1
- package/dist/cjs/node_modules/rc-menu/es/SubMenu/PopupTrigger.js +1 -1
- package/dist/cjs/node_modules/rc-menu/es/SubMenu/PopupTrigger.js.map +1 -1
- package/dist/cjs/node_modules/rc-menu/es/SubMenu/SubMenuList.js +1 -1
- package/dist/cjs/node_modules/rc-menu/es/SubMenu/SubMenuList.js.map +1 -1
- package/dist/cjs/node_modules/rc-menu/es/SubMenu/index.js +1 -1
- package/dist/cjs/node_modules/rc-menu/es/SubMenu/index.js.map +1 -1
- package/dist/cjs/node_modules/rc-motion/es/CSSMotion.js +1 -1
- package/dist/cjs/node_modules/rc-motion/es/CSSMotion.js.map +1 -1
- package/dist/cjs/node_modules/rc-overflow/es/Item.js +1 -1
- package/dist/cjs/node_modules/rc-overflow/es/Item.js.map +1 -1
- package/dist/cjs/node_modules/rc-overflow/es/Overflow.js +1 -1
- package/dist/cjs/node_modules/rc-overflow/es/Overflow.js.map +1 -1
- package/dist/cjs/node_modules/rc-overflow/es/RawItem.js +1 -1
- package/dist/cjs/node_modules/rc-overflow/es/RawItem.js.map +1 -1
- package/dist/cjs/node_modules/rc-pagination/es/Pager.js +1 -1
- package/dist/cjs/node_modules/rc-pagination/es/Pager.js.map +1 -1
- package/dist/cjs/node_modules/rc-pagination/es/Pagination.js +1 -1
- package/dist/cjs/node_modules/rc-pagination/es/Pagination.js.map +1 -1
- package/dist/cjs/node_modules/rc-progress/es/Circle/index.js +1 -1
- package/dist/cjs/node_modules/rc-progress/es/Circle/index.js.map +1 -1
- package/dist/cjs/node_modules/rc-select/es/BaseSelect/index.js +1 -1
- package/dist/cjs/node_modules/rc-select/es/BaseSelect/index.js.map +1 -1
- package/dist/cjs/node_modules/rc-select/es/OptionList.js +1 -1
- package/dist/cjs/node_modules/rc-select/es/OptionList.js.map +1 -1
- package/dist/cjs/node_modules/rc-select/es/SelectTrigger.js +1 -1
- package/dist/cjs/node_modules/rc-select/es/SelectTrigger.js.map +1 -1
- package/dist/cjs/node_modules/rc-select/es/Selector/Input.js +1 -1
- package/dist/cjs/node_modules/rc-select/es/Selector/Input.js.map +1 -1
- package/dist/cjs/node_modules/rc-select/es/Selector/MultipleSelector.js +1 -1
- package/dist/cjs/node_modules/rc-select/es/Selector/MultipleSelector.js.map +1 -1
- package/dist/cjs/node_modules/rc-select/es/TransBtn.js +1 -1
- package/dist/cjs/node_modules/rc-select/es/TransBtn.js.map +1 -1
- package/dist/cjs/node_modules/rc-switch/es/index.js +1 -1
- package/dist/cjs/node_modules/rc-switch/es/index.js.map +1 -1
- package/dist/cjs/node_modules/rc-table/es/Body/BodyRow.js +1 -1
- package/dist/cjs/node_modules/rc-table/es/Body/BodyRow.js.map +1 -1
- package/dist/cjs/node_modules/rc-table/es/Cell/index.js +1 -1
- package/dist/cjs/node_modules/rc-table/es/Cell/index.js.map +1 -1
- package/dist/cjs/node_modules/rc-table/es/FixedHolder/index.js +1 -1
- package/dist/cjs/node_modules/rc-table/es/FixedHolder/index.js.map +1 -1
- package/dist/cjs/node_modules/rc-table/es/Table.js +1 -1
- package/dist/cjs/node_modules/rc-table/es/Table.js.map +1 -1
- package/dist/cjs/node_modules/rc-table/es/VirtualTable/BodyGrid.js +1 -1
- package/dist/cjs/node_modules/rc-table/es/VirtualTable/BodyGrid.js.map +1 -1
- package/dist/cjs/node_modules/rc-table/es/VirtualTable/BodyLine.js +1 -1
- package/dist/cjs/node_modules/rc-table/es/VirtualTable/BodyLine.js.map +1 -1
- package/dist/cjs/node_modules/rc-table/es/VirtualTable/VirtualCell.js +1 -1
- package/dist/cjs/node_modules/rc-table/es/VirtualTable/VirtualCell.js.map +1 -1
- package/dist/cjs/node_modules/rc-table/es/VirtualTable/index.js +1 -1
- package/dist/cjs/node_modules/rc-table/es/VirtualTable/index.js.map +1 -1
- package/dist/cjs/node_modules/rc-table/es/hooks/useRowInfo.js +1 -1
- package/dist/cjs/node_modules/rc-table/es/hooks/useRowInfo.js.map +1 -1
- package/dist/cjs/node_modules/rc-table/es/stickyScrollBar.js +1 -1
- package/dist/cjs/node_modules/rc-table/es/stickyScrollBar.js.map +1 -1
- package/dist/cjs/node_modules/rc-table/es/utils/expandUtil.js +1 -1
- package/dist/cjs/node_modules/rc-table/es/utils/expandUtil.js.map +1 -1
- package/dist/cjs/node_modules/rc-tabs/es/TabNavList/OperationNode.js +1 -1
- package/dist/cjs/node_modules/rc-tabs/es/TabNavList/OperationNode.js.map +1 -1
- package/dist/cjs/node_modules/rc-tabs/es/TabNavList/TabNode.js +1 -1
- package/dist/cjs/node_modules/rc-tabs/es/TabNavList/TabNode.js.map +1 -1
- package/dist/cjs/node_modules/rc-tabs/es/TabNavList/index.js +1 -1
- package/dist/cjs/node_modules/rc-tabs/es/TabNavList/index.js.map +1 -1
- package/dist/cjs/node_modules/rc-tabs/es/TabPanelList/TabPane.js +1 -1
- package/dist/cjs/node_modules/rc-tabs/es/TabPanelList/TabPane.js.map +1 -1
- package/dist/cjs/node_modules/rc-tabs/es/TabPanelList/index.js +1 -1
- package/dist/cjs/node_modules/rc-tabs/es/TabPanelList/index.js.map +1 -1
- package/dist/cjs/node_modules/rc-tabs/es/Tabs.js +1 -1
- package/dist/cjs/node_modules/rc-tabs/es/Tabs.js.map +1 -1
- package/dist/cjs/node_modules/rc-textarea/es/ResizableTextArea.js +1 -1
- package/dist/cjs/node_modules/rc-textarea/es/ResizableTextArea.js.map +1 -1
- package/dist/cjs/node_modules/rc-textarea/es/TextArea.js +1 -1
- package/dist/cjs/node_modules/rc-textarea/es/TextArea.js.map +1 -1
- package/dist/cjs/node_modules/rc-tooltip/es/Popup.js +1 -1
- package/dist/cjs/node_modules/rc-tooltip/es/Popup.js.map +1 -1
- package/dist/cjs/node_modules/rc-tree/es/Indent.js +1 -1
- package/dist/cjs/node_modules/rc-tree/es/Indent.js.map +1 -1
- package/dist/cjs/node_modules/rc-tree/es/MotionTreeNode.js +1 -1
- package/dist/cjs/node_modules/rc-tree/es/MotionTreeNode.js.map +1 -1
- package/dist/cjs/node_modules/rc-tree/es/Tree.js +1 -1
- package/dist/cjs/node_modules/rc-tree/es/Tree.js.map +1 -1
- package/dist/cjs/node_modules/rc-tree/es/TreeNode.js +1 -1
- package/dist/cjs/node_modules/rc-tree/es/TreeNode.js.map +1 -1
- package/dist/cjs/node_modules/rc-util/node_modules/react-is/index.js +1 -1
- package/dist/cjs/node_modules/rc-virtual-list/es/Filler.js +1 -1
- package/dist/cjs/node_modules/rc-virtual-list/es/Filler.js.map +1 -1
- package/dist/cjs/node_modules/rc-virtual-list/es/List.js +1 -1
- package/dist/cjs/node_modules/rc-virtual-list/es/List.js.map +1 -1
- package/dist/cjs/node_modules/rc-virtual-list/es/ScrollBar.js +1 -1
- package/dist/cjs/node_modules/rc-virtual-list/es/ScrollBar.js.map +1 -1
- package/dist/cjs/src/index.js +1 -1
- package/dist/esm/_virtual/_commonjsHelpers.js +1 -1
- package/dist/esm/_virtual/index.js +1 -1
- package/dist/esm/node_modules/classnames/index.js +2 -2
- package/dist/esm/node_modules/rc-util/node_modules/react-is/index.js +1 -1
- package/dist/esm/src/index.js +1 -1
- package/dist/types/index.d.ts +1 -11
- package/package.json +1 -1
- package/src/index.ts +1 -1
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";var e=require("react"),t=require("../../../classnames/index.js"),r=require("../../../rc-tooltip/es/Tooltip.js"),n=require("../../../rc-util/es/hooks/useMergedState.js"),o=require("../_util/ContextIsolator.js"),s=require("../_util/hooks/useZIndex.js"),i=require("../_util/motion.js"),a=require("../_util/placements.js"),l=require("../_util/reactNode.js"),u=require("../_util/warning.js"),c=require("../_util/zindexContext.js");require("../config-provider/index.js"),require("../../../@ant-design/cssinjs/es/extractStyle.js"),require("../../../@ant-design/cssinjs/es/hooks/useCacheToken.js"),require("../../../@ant-design/cssinjs/es/StyleContext.js"),require("../../../@ant-design/cssinjs/es/theme/createTheme.js"),require("../../../rc-util/es/warning.js"),require("../../../@ant-design/cssinjs/es/theme/ThemeCache.js"),require("../../../@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.js"),require("../../../@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.js"),require("../../../@ant-design/cssinjs/es/hooks/useHMR.js"),require("../../../@ant-design/cssinjs/es/transformers/legacyLogicalProperties.js"),require("../../../rc-util/es/ref.js"),require("../../../@ant-design/cssinjs-utils/es/util/statistic.js"),require("../../../@ant-design/cssinjs-utils/es/_util/hooks/useUniqueMemo.js");var p=require("../theme/useToken.js"),d=require("./PurePanel.js"),f=require("./style/index.js"),m=require("./util.js"),g=require("../config-provider/context.js");function j(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var v=j(e),y=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};const C=v.forwardRef(((e,d)=>{var j,C;const{prefixCls:b,openClassName:O,getTooltipContainer:h,overlayClassName:q,color:P,overlayInnerStyle:N,children:w,afterOpenChange:E,afterVisibleChange:x,destroyTooltipOnHide:A,arrow:T=!0,title:V,overlay:D,builtinPlacements:S,arrowPointAtCenter:_=!1,autoAdjustOverflow:k=!0}=e,I=!!T,[,z]=p.default(),{getPopupContainer:R,getPrefixCls:H,direction:M}=v.useContext(g.ConfigContext),L=u.devUseWarning("Tooltip"),F=v.useRef(null),U=()=>{var e;null===(e=F.current)||void 0===e||e.forceAlign()};v.useImperativeHandle(d,(()=>{var e;return{forceAlign:U,forcePopupAlign:()=>{L.deprecated(!1,"forcePopupAlign","forceAlign"),U()},nativeElement:null===(e=F.current)||void 0===e?void 0:e.nativeElement}})),"production"!==process.env.NODE_ENV&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach((t=>{let[r,n]=t;L.deprecated(!(r in e),r,n)})),"production"!==process.env.NODE_ENV&&L(!A||"boolean"==typeof A,"usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),"production"!==process.env.NODE_ENV&&L(!T||"boolean"==typeof T||!("arrowPointAtCenter"in T),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[W,$]=n(!1,{value:null!==(j=e.open)&&void 0!==j?j:e.visible,defaultValue:null!==(C=e.defaultOpen)&&void 0!==C?C:e.defaultVisible}),X=!V&&!D&&0!==V,Z=v.useMemo((()=>{var e,t;let r=_;return"object"==typeof T&&(r=null!==(t=null!==(e=T.pointAtCenter)&&void 0!==e?e:T.arrowPointAtCenter)&&void 0!==t?t:_),S||a.default({arrowPointAtCenter:r,autoAdjustOverflow:k,arrowWidth:I?z.sizePopupArrow:0,borderRadius:z.borderRadius,offset:z.marginXXS,visibleFirst:!0})}),[_,T,S,z]),B=v.useMemo((()=>0===V?V:D||V||""),[D,V]),Y=v.createElement(o,{space:!0},"function"==typeof B?B():B),{getPopupContainer:G,placement:J="top",mouseEnterDelay:K=.1,mouseLeaveDelay:Q=.1,overlayStyle:ee,rootClassName:te}=e,re=y(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),ne=H("tooltip",b),oe=H(),se=e["data-popover-inject"];let ie=W;"open"in e||"visible"in e||!X||(ie=!1);const ae=v.isValidElement(w)&&!l.isFragment(w)?w:v.createElement("span",null,w),le=ae.props,ue=le.className&&"string"!=typeof le.className?le.className:t
|
1
|
+
"use strict";var e=require("react"),t=require("../../../classnames/index.js"),r=require("../../../rc-tooltip/es/Tooltip.js"),n=require("../../../rc-util/es/hooks/useMergedState.js"),o=require("../_util/ContextIsolator.js"),s=require("../_util/hooks/useZIndex.js"),i=require("../_util/motion.js"),a=require("../_util/placements.js"),l=require("../_util/reactNode.js"),u=require("../_util/warning.js"),c=require("../_util/zindexContext.js");require("../config-provider/index.js"),require("../../../@ant-design/cssinjs/es/extractStyle.js"),require("../../../@ant-design/cssinjs/es/hooks/useCacheToken.js"),require("../../../@ant-design/cssinjs/es/StyleContext.js"),require("../../../@ant-design/cssinjs/es/theme/createTheme.js"),require("../../../rc-util/es/warning.js"),require("../../../@ant-design/cssinjs/es/theme/ThemeCache.js"),require("../../../@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.js"),require("../../../@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.js"),require("../../../@ant-design/cssinjs/es/hooks/useHMR.js"),require("../../../@ant-design/cssinjs/es/transformers/legacyLogicalProperties.js"),require("../../../rc-util/es/ref.js"),require("../../../@ant-design/cssinjs-utils/es/util/statistic.js"),require("../../../@ant-design/cssinjs-utils/es/_util/hooks/useUniqueMemo.js");var p=require("../theme/useToken.js"),d=require("./PurePanel.js"),f=require("./style/index.js"),m=require("./util.js"),g=require("../config-provider/context.js");function j(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var v=j(e),y=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r};const C=v.forwardRef(((e,d)=>{var j,C;const{prefixCls:b,openClassName:O,getTooltipContainer:h,overlayClassName:q,color:P,overlayInnerStyle:N,children:w,afterOpenChange:E,afterVisibleChange:x,destroyTooltipOnHide:A,arrow:T=!0,title:V,overlay:D,builtinPlacements:S,arrowPointAtCenter:_=!1,autoAdjustOverflow:k=!0}=e,I=!!T,[,z]=p.default(),{getPopupContainer:R,getPrefixCls:H,direction:M}=v.useContext(g.ConfigContext),L=u.devUseWarning("Tooltip"),F=v.useRef(null),U=()=>{var e;null===(e=F.current)||void 0===e||e.forceAlign()};v.useImperativeHandle(d,(()=>{var e;return{forceAlign:U,forcePopupAlign:()=>{L.deprecated(!1,"forcePopupAlign","forceAlign"),U()},nativeElement:null===(e=F.current)||void 0===e?void 0:e.nativeElement}})),"production"!==process.env.NODE_ENV&&([["visible","open"],["defaultVisible","defaultOpen"],["onVisibleChange","onOpenChange"],["afterVisibleChange","afterOpenChange"],["arrowPointAtCenter","arrow={{ pointAtCenter: true }}"]].forEach((t=>{let[r,n]=t;L.deprecated(!(r in e),r,n)})),"production"!==process.env.NODE_ENV&&L(!A||"boolean"==typeof A,"usage","`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly."),"production"!==process.env.NODE_ENV&&L(!T||"boolean"==typeof T||!("arrowPointAtCenter"in T),"deprecated","`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead."));const[W,$]=n(!1,{value:null!==(j=e.open)&&void 0!==j?j:e.visible,defaultValue:null!==(C=e.defaultOpen)&&void 0!==C?C:e.defaultVisible}),X=!V&&!D&&0!==V,Z=v.useMemo((()=>{var e,t;let r=_;return"object"==typeof T&&(r=null!==(t=null!==(e=T.pointAtCenter)&&void 0!==e?e:T.arrowPointAtCenter)&&void 0!==t?t:_),S||a.default({arrowPointAtCenter:r,autoAdjustOverflow:k,arrowWidth:I?z.sizePopupArrow:0,borderRadius:z.borderRadius,offset:z.marginXXS,visibleFirst:!0})}),[_,T,S,z]),B=v.useMemo((()=>0===V?V:D||V||""),[D,V]),Y=v.createElement(o,{space:!0},"function"==typeof B?B():B),{getPopupContainer:G,placement:J="top",mouseEnterDelay:K=.1,mouseLeaveDelay:Q=.1,overlayStyle:ee,rootClassName:te}=e,re=y(e,["getPopupContainer","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName"]),ne=H("tooltip",b),oe=H(),se=e["data-popover-inject"];let ie=W;"open"in e||"visible"in e||!X||(ie=!1);const ae=v.isValidElement(w)&&!l.isFragment(w)?w:v.createElement("span",null,w),le=ae.props,ue=le.className&&"string"!=typeof le.className?le.className:t(le.className,O||`${ne}-open`),[ce,pe,de]=f.default(ne,!se),fe=m.parseColor(ne,P),me=fe.arrowStyle,ge=Object.assign(Object.assign({},N),fe.overlayStyle),je=t(q,{[`${ne}-rtl`]:"rtl"===M},fe.className,te,pe,de),[ve,ye]=s.useZIndex("Tooltip",re.zIndex),Ce=v.createElement(r,Object.assign({},re,{zIndex:ve,showArrow:I,placement:J,mouseEnterDelay:K,mouseLeaveDelay:Q,prefixCls:ne,overlayClassName:je,overlayStyle:Object.assign(Object.assign({},me),ee),getTooltipContainer:G||h||R,ref:F,builtinPlacements:Z,overlay:Y,visible:ie,onVisibleChange:t=>{var r,n;$(!X&&t),X||(null===(r=e.onOpenChange)||void 0===r||r.call(e,t),null===(n=e.onVisibleChange)||void 0===n||n.call(e,t))},afterVisibleChange:null!=E?E:x,overlayInnerStyle:ge,arrowContent:v.createElement("span",{className:`${ne}-arrow-content`}),motion:{motionName:i.getTransitionName(oe,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:!!A}),ie?l.cloneElement(ae,{className:ue}):ae);return ce(v.createElement(c.Provider,{value:ye},Ce))}));"production"!==process.env.NODE_ENV&&(C.displayName="Tooltip"),C._InternalPanelDoNotUseOrYouWillBeFired=d,module.exports=C;
|
2
2
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/antd/es/tooltip/index.js"],"sourcesContent":["\"use client\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport RcTooltip from 'rc-tooltip';\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport ContextIsolator from '../_util/ContextIsolator';\nimport { useZIndex } from '../_util/hooks/useZIndex';\nimport { getTransitionName } from '../_util/motion';\nimport getPlacements from '../_util/placements';\nimport { cloneElement, isFragment } from '../_util/reactNode';\nimport { devUseWarning } from '../_util/warning';\nimport zIndexContext from '../_util/zindexContext';\nimport { ConfigContext } from '../config-provider';\nimport { useToken } from '../theme/internal';\nimport PurePanel from './PurePanel';\nimport useStyle from './style';\nimport { parseColor } from './util';\nconst InternalTooltip = /*#__PURE__*/React.forwardRef((props, ref) => {\n var _a, _b;\n const {\n prefixCls: customizePrefixCls,\n openClassName,\n getTooltipContainer,\n overlayClassName,\n color,\n overlayInnerStyle,\n children,\n afterOpenChange,\n afterVisibleChange,\n destroyTooltipOnHide,\n arrow = true,\n title,\n overlay,\n builtinPlacements,\n arrowPointAtCenter = false,\n autoAdjustOverflow = true\n } = props;\n const mergedShowArrow = !!arrow;\n const [, token] = useToken();\n const {\n getPopupContainer: getContextPopupContainer,\n getPrefixCls,\n direction\n } = React.useContext(ConfigContext);\n // ============================== Ref ===============================\n const warning = devUseWarning('Tooltip');\n const tooltipRef = React.useRef(null);\n const forceAlign = () => {\n var _a;\n (_a = tooltipRef.current) === null || _a === void 0 ? void 0 : _a.forceAlign();\n };\n React.useImperativeHandle(ref, () => {\n var _a;\n return {\n forceAlign,\n forcePopupAlign: () => {\n warning.deprecated(false, 'forcePopupAlign', 'forceAlign');\n forceAlign();\n },\n nativeElement: (_a = tooltipRef.current) === null || _a === void 0 ? void 0 : _a.nativeElement\n };\n });\n // ============================== Warn ==============================\n if (process.env.NODE_ENV !== 'production') {\n [['visible', 'open'], ['defaultVisible', 'defaultOpen'], ['onVisibleChange', 'onOpenChange'], ['afterVisibleChange', 'afterOpenChange'], ['arrowPointAtCenter', 'arrow={{ pointAtCenter: true }}']].forEach(_ref => {\n let [deprecatedName, newName] = _ref;\n warning.deprecated(!(deprecatedName in props), deprecatedName, newName);\n });\n process.env.NODE_ENV !== \"production\" ? warning(!destroyTooltipOnHide || typeof destroyTooltipOnHide === 'boolean', 'usage', '`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly.') : void 0;\n process.env.NODE_ENV !== \"production\" ? warning(!arrow || typeof arrow === 'boolean' || !('arrowPointAtCenter' in arrow), 'deprecated', '`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead.') : void 0;\n }\n // ============================== Open ==============================\n const [open, setOpen] = useMergedState(false, {\n value: (_a = props.open) !== null && _a !== void 0 ? _a : props.visible,\n defaultValue: (_b = props.defaultOpen) !== null && _b !== void 0 ? _b : props.defaultVisible\n });\n const noTitle = !title && !overlay && title !== 0; // overlay for old version compatibility\n const onOpenChange = vis => {\n var _a, _b;\n setOpen(noTitle ? false : vis);\n if (!noTitle) {\n (_a = props.onOpenChange) === null || _a === void 0 ? void 0 : _a.call(props, vis);\n (_b = props.onVisibleChange) === null || _b === void 0 ? void 0 : _b.call(props, vis);\n }\n };\n const tooltipPlacements = React.useMemo(() => {\n var _a, _b;\n let mergedArrowPointAtCenter = arrowPointAtCenter;\n if (typeof arrow === 'object') {\n mergedArrowPointAtCenter = (_b = (_a = arrow.pointAtCenter) !== null && _a !== void 0 ? _a : arrow.arrowPointAtCenter) !== null && _b !== void 0 ? _b : arrowPointAtCenter;\n }\n return builtinPlacements || getPlacements({\n arrowPointAtCenter: mergedArrowPointAtCenter,\n autoAdjustOverflow,\n arrowWidth: mergedShowArrow ? token.sizePopupArrow : 0,\n borderRadius: token.borderRadius,\n offset: token.marginXXS,\n visibleFirst: true\n });\n }, [arrowPointAtCenter, arrow, builtinPlacements, token]);\n const memoOverlay = React.useMemo(() => {\n if (title === 0) {\n return title;\n }\n return overlay || title || '';\n }, [overlay, title]);\n const memoOverlayWrapper = /*#__PURE__*/React.createElement(ContextIsolator, {\n space: true\n }, typeof memoOverlay === 'function' ? memoOverlay() : memoOverlay);\n const {\n getPopupContainer,\n placement = 'top',\n mouseEnterDelay = 0.1,\n mouseLeaveDelay = 0.1,\n overlayStyle,\n rootClassName\n } = props,\n otherProps = __rest(props, [\"getPopupContainer\", \"placement\", \"mouseEnterDelay\", \"mouseLeaveDelay\", \"overlayStyle\", \"rootClassName\"]);\n const prefixCls = getPrefixCls('tooltip', customizePrefixCls);\n const rootPrefixCls = getPrefixCls();\n const injectFromPopover = props['data-popover-inject'];\n let tempOpen = open;\n // Hide tooltip when there is no title\n if (!('open' in props) && !('visible' in props) && noTitle) {\n tempOpen = false;\n }\n // ============================= Render =============================\n const child = /*#__PURE__*/React.isValidElement(children) && !isFragment(children) ? children : /*#__PURE__*/React.createElement(\"span\", null, children);\n const childProps = child.props;\n const childCls = !childProps.className || typeof childProps.className === 'string' ? classNames(childProps.className, openClassName || `${prefixCls}-open`) : childProps.className;\n // Style\n const [wrapCSSVar, hashId, cssVarCls] = useStyle(prefixCls, !injectFromPopover);\n // Color\n const colorInfo = parseColor(prefixCls, color);\n const arrowContentStyle = colorInfo.arrowStyle;\n const formattedOverlayInnerStyle = Object.assign(Object.assign({}, overlayInnerStyle), colorInfo.overlayStyle);\n const customOverlayClassName = classNames(overlayClassName, {\n [`${prefixCls}-rtl`]: direction === 'rtl'\n }, colorInfo.className, rootClassName, hashId, cssVarCls);\n // ============================ zIndex ============================\n const [zIndex, contextZIndex] = useZIndex('Tooltip', otherProps.zIndex);\n const content = /*#__PURE__*/React.createElement(RcTooltip, Object.assign({}, otherProps, {\n zIndex: zIndex,\n showArrow: mergedShowArrow,\n placement: placement,\n mouseEnterDelay: mouseEnterDelay,\n mouseLeaveDelay: mouseLeaveDelay,\n prefixCls: prefixCls,\n overlayClassName: customOverlayClassName,\n overlayStyle: Object.assign(Object.assign({}, arrowContentStyle), overlayStyle),\n getTooltipContainer: getPopupContainer || getTooltipContainer || getContextPopupContainer,\n ref: tooltipRef,\n builtinPlacements: tooltipPlacements,\n overlay: memoOverlayWrapper,\n visible: tempOpen,\n onVisibleChange: onOpenChange,\n afterVisibleChange: afterOpenChange !== null && afterOpenChange !== void 0 ? afterOpenChange : afterVisibleChange,\n overlayInnerStyle: formattedOverlayInnerStyle,\n arrowContent: /*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-arrow-content`\n }),\n motion: {\n motionName: getTransitionName(rootPrefixCls, 'zoom-big-fast', props.transitionName),\n motionDeadline: 1000\n },\n destroyTooltipOnHide: !!destroyTooltipOnHide\n }), tempOpen ? cloneElement(child, {\n className: childCls\n }) : child);\n return wrapCSSVar(/*#__PURE__*/React.createElement(zIndexContext.Provider, {\n value: contextZIndex\n }, content));\n});\nconst Tooltip = InternalTooltip;\nif (process.env.NODE_ENV !== 'production') {\n Tooltip.displayName = 'Tooltip';\n}\nTooltip._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;\nexport default Tooltip;"],"names":["__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","Tooltip","React","forwardRef","props","ref","_a","_b","prefixCls","customizePrefixCls","openClassName","getTooltipContainer","overlayClassName","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","mergedShowArrow","token","useToken","getPopupContainer","getContextPopupContainer","getPrefixCls","direction","useContext","ConfigContext","warning","devUseWarning","tooltipRef","useRef","forceAlign","current","useImperativeHandle","forcePopupAlign","deprecated","nativeElement","process","env","NODE_ENV","forEach","_ref","deprecatedName","newName","open","setOpen","useMergedState","value","visible","defaultValue","defaultOpen","defaultVisible","noTitle","tooltipPlacements","useMemo","mergedArrowPointAtCenter","pointAtCenter","getPlacements","arrowWidth","sizePopupArrow","borderRadius","offset","marginXXS","visibleFirst","memoOverlay","memoOverlayWrapper","createElement","ContextIsolator","space","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","otherProps","rootPrefixCls","injectFromPopover","tempOpen","child","isValidElement","isFragment","childProps","childCls","className","classNames","default","wrapCSSVar","hashId","cssVarCls","useStyle","colorInfo","parseColor","arrowContentStyle","arrowStyle","formattedOverlayInnerStyle","assign","customOverlayClassName","zIndex","contextZIndex","useZIndex","content","RcTooltip","showArrow","onVisibleChange","vis","onOpenChange","arrowContent","motion","motionName","getTransitionName","transitionName","motionDeadline","cloneElement","zIndexContext","Provider","displayName","_InternalPanelDoNotUseOrYouWillBeFired","PurePanel"],"mappings":"ktDAEIA,EAAgC,SAAUC,EAAGC,GAC/C,IAAIC,EAAI,CAAA,EACR,IAAK,IAAIC,KAAKH,EAAOI,OAAOC,UAAUC,eAAeC,KAAKP,EAAGG,IAAMF,EAAEO,QAAQL,GAAK,IAAGD,EAAEC,GAAKH,EAAEG,IAC9F,GAAS,MAALH,GAAqD,mBAAjCI,OAAOK,sBAA2C,KAAIC,EAAI,EAAb,IAAgBP,EAAIC,OAAOK,sBAAsBT,GAAIU,EAAIP,EAAEQ,OAAQD,IAClIT,EAAEO,QAAQL,EAAEO,IAAM,GAAKN,OAAOC,UAAUO,qBAAqBL,KAAKP,EAAGG,EAAEO,MAAKR,EAAEC,EAAEO,IAAMV,EAAEG,EAAEO,IADuB,CAGvH,OAAOR,CACT,EAiBA,MA4JMW,EA5J+BC,EAAMC,YAAW,CAACC,EAAOC,KAC5D,IAAIC,EAAIC,EACR,MACEC,UAAWC,EAAkBC,cAC7BA,EAAaC,oBACbA,EAAmB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e,gBAAiB9E,EAAMiH,gBACpEC,eAAgB,KAElBpG,uBAAwBA,IACtBkE,GAAWmC,EAAYA,aAAClC,GAAO,CACjCK,UAAWD,KACRJ,IACL,OAAOQ,GAAwB3F,EAAMuE,cAAc+C,EAAcC,SAAU,CACzEnE,MAAOmD,IACNE,IAAS,IAGe,eAAzB/D,QAAQC,IAAIC,WACd7C,EAAQyH,YAAc,WAExBzH,EAAQ0H,uCAAyCC","x_google_ignoreList":[0]}
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/antd/es/tooltip/index.js"],"sourcesContent":["\"use client\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport RcTooltip from 'rc-tooltip';\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport ContextIsolator from '../_util/ContextIsolator';\nimport { useZIndex } from '../_util/hooks/useZIndex';\nimport { getTransitionName } from '../_util/motion';\nimport getPlacements from '../_util/placements';\nimport { cloneElement, isFragment } from '../_util/reactNode';\nimport { devUseWarning } from '../_util/warning';\nimport zIndexContext from '../_util/zindexContext';\nimport { ConfigContext } from '../config-provider';\nimport { useToken } from '../theme/internal';\nimport PurePanel from './PurePanel';\nimport useStyle from './style';\nimport { parseColor } from './util';\nconst InternalTooltip = /*#__PURE__*/React.forwardRef((props, ref) => {\n var _a, _b;\n const {\n prefixCls: customizePrefixCls,\n openClassName,\n getTooltipContainer,\n overlayClassName,\n color,\n overlayInnerStyle,\n children,\n afterOpenChange,\n afterVisibleChange,\n destroyTooltipOnHide,\n arrow = true,\n title,\n overlay,\n builtinPlacements,\n arrowPointAtCenter = false,\n autoAdjustOverflow = true\n } = props;\n const mergedShowArrow = !!arrow;\n const [, token] = useToken();\n const {\n getPopupContainer: getContextPopupContainer,\n getPrefixCls,\n direction\n } = React.useContext(ConfigContext);\n // ============================== Ref ===============================\n const warning = devUseWarning('Tooltip');\n const tooltipRef = React.useRef(null);\n const forceAlign = () => {\n var _a;\n (_a = tooltipRef.current) === null || _a === void 0 ? void 0 : _a.forceAlign();\n };\n React.useImperativeHandle(ref, () => {\n var _a;\n return {\n forceAlign,\n forcePopupAlign: () => {\n warning.deprecated(false, 'forcePopupAlign', 'forceAlign');\n forceAlign();\n },\n nativeElement: (_a = tooltipRef.current) === null || _a === void 0 ? void 0 : _a.nativeElement\n };\n });\n // ============================== Warn ==============================\n if (process.env.NODE_ENV !== 'production') {\n [['visible', 'open'], ['defaultVisible', 'defaultOpen'], ['onVisibleChange', 'onOpenChange'], ['afterVisibleChange', 'afterOpenChange'], ['arrowPointAtCenter', 'arrow={{ pointAtCenter: true }}']].forEach(_ref => {\n let [deprecatedName, newName] = _ref;\n warning.deprecated(!(deprecatedName in props), deprecatedName, newName);\n });\n process.env.NODE_ENV !== \"production\" ? warning(!destroyTooltipOnHide || typeof destroyTooltipOnHide === 'boolean', 'usage', '`destroyTooltipOnHide` no need config `keepParent` anymore. Please use `boolean` value directly.') : void 0;\n process.env.NODE_ENV !== \"production\" ? warning(!arrow || typeof arrow === 'boolean' || !('arrowPointAtCenter' in arrow), 'deprecated', '`arrowPointAtCenter` in `arrow` is deprecated. Please use `pointAtCenter` instead.') : void 0;\n }\n // ============================== Open ==============================\n const [open, setOpen] = useMergedState(false, {\n value: (_a = props.open) !== null && _a !== void 0 ? _a : props.visible,\n defaultValue: (_b = props.defaultOpen) !== null && _b !== void 0 ? _b : props.defaultVisible\n });\n const noTitle = !title && !overlay && title !== 0; // overlay for old version compatibility\n const onOpenChange = vis => {\n var _a, _b;\n setOpen(noTitle ? false : vis);\n if (!noTitle) {\n (_a = props.onOpenChange) === null || _a === void 0 ? void 0 : _a.call(props, vis);\n (_b = props.onVisibleChange) === null || _b === void 0 ? void 0 : _b.call(props, vis);\n }\n };\n const tooltipPlacements = React.useMemo(() => {\n var _a, _b;\n let mergedArrowPointAtCenter = arrowPointAtCenter;\n if (typeof arrow === 'object') {\n mergedArrowPointAtCenter = (_b = (_a = arrow.pointAtCenter) !== null && _a !== void 0 ? _a : arrow.arrowPointAtCenter) !== null && _b !== void 0 ? _b : arrowPointAtCenter;\n }\n return builtinPlacements || getPlacements({\n arrowPointAtCenter: mergedArrowPointAtCenter,\n autoAdjustOverflow,\n arrowWidth: mergedShowArrow ? token.sizePopupArrow : 0,\n borderRadius: token.borderRadius,\n offset: token.marginXXS,\n visibleFirst: true\n });\n }, [arrowPointAtCenter, arrow, builtinPlacements, token]);\n const memoOverlay = React.useMemo(() => {\n if (title === 0) {\n return title;\n }\n return overlay || title || '';\n }, [overlay, title]);\n const memoOverlayWrapper = /*#__PURE__*/React.createElement(ContextIsolator, {\n space: true\n }, typeof memoOverlay === 'function' ? memoOverlay() : memoOverlay);\n const {\n getPopupContainer,\n placement = 'top',\n mouseEnterDelay = 0.1,\n mouseLeaveDelay = 0.1,\n overlayStyle,\n rootClassName\n } = props,\n otherProps = __rest(props, [\"getPopupContainer\", \"placement\", \"mouseEnterDelay\", \"mouseLeaveDelay\", \"overlayStyle\", \"rootClassName\"]);\n const prefixCls = getPrefixCls('tooltip', customizePrefixCls);\n const rootPrefixCls = getPrefixCls();\n const injectFromPopover = props['data-popover-inject'];\n let tempOpen = open;\n // Hide tooltip when there is no title\n if (!('open' in props) && !('visible' in props) && noTitle) {\n tempOpen = false;\n }\n // ============================= Render =============================\n const child = /*#__PURE__*/React.isValidElement(children) && !isFragment(children) ? children : /*#__PURE__*/React.createElement(\"span\", null, children);\n const childProps = child.props;\n const childCls = !childProps.className || typeof childProps.className === 'string' ? classNames(childProps.className, openClassName || `${prefixCls}-open`) : childProps.className;\n // Style\n const [wrapCSSVar, hashId, cssVarCls] = useStyle(prefixCls, !injectFromPopover);\n // Color\n const colorInfo = parseColor(prefixCls, color);\n const arrowContentStyle = colorInfo.arrowStyle;\n const formattedOverlayInnerStyle = Object.assign(Object.assign({}, overlayInnerStyle), colorInfo.overlayStyle);\n const customOverlayClassName = classNames(overlayClassName, {\n [`${prefixCls}-rtl`]: direction === 'rtl'\n }, colorInfo.className, rootClassName, hashId, cssVarCls);\n // ============================ zIndex ============================\n const [zIndex, contextZIndex] = useZIndex('Tooltip', otherProps.zIndex);\n const content = /*#__PURE__*/React.createElement(RcTooltip, Object.assign({}, otherProps, {\n zIndex: zIndex,\n showArrow: mergedShowArrow,\n placement: placement,\n mouseEnterDelay: mouseEnterDelay,\n mouseLeaveDelay: mouseLeaveDelay,\n prefixCls: prefixCls,\n overlayClassName: customOverlayClassName,\n overlayStyle: Object.assign(Object.assign({}, arrowContentStyle), overlayStyle),\n getTooltipContainer: getPopupContainer || getTooltipContainer || getContextPopupContainer,\n ref: tooltipRef,\n builtinPlacements: tooltipPlacements,\n overlay: memoOverlayWrapper,\n visible: tempOpen,\n onVisibleChange: onOpenChange,\n afterVisibleChange: afterOpenChange !== null && afterOpenChange !== void 0 ? afterOpenChange : afterVisibleChange,\n overlayInnerStyle: formattedOverlayInnerStyle,\n arrowContent: /*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-arrow-content`\n }),\n motion: {\n motionName: getTransitionName(rootPrefixCls, 'zoom-big-fast', props.transitionName),\n motionDeadline: 1000\n },\n destroyTooltipOnHide: !!destroyTooltipOnHide\n }), tempOpen ? cloneElement(child, {\n className: childCls\n }) : child);\n return wrapCSSVar(/*#__PURE__*/React.createElement(zIndexContext.Provider, {\n value: contextZIndex\n }, content));\n});\nconst Tooltip = InternalTooltip;\nif (process.env.NODE_ENV !== 'production') {\n Tooltip.displayName = 'Tooltip';\n}\nTooltip._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;\nexport default Tooltip;"],"names":["__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","Tooltip","React","forwardRef","props","ref","_a","_b","prefixCls","customizePrefixCls","openClassName","getTooltipContainer","overlayClassName","color","overlayInnerStyle","children","afterOpenChange","afterVisibleChange","destroyTooltipOnHide","arrow","title","overlay","builtinPlacements","arrowPointAtCenter","autoAdjustOverflow","mergedShowArrow","token","useToken","getPopupContainer","getContextPopupContainer","getPrefixCls","direction","useContext","ConfigContext","warning","devUseWarning","tooltipRef","useRef","forceAlign","current","useImperativeHandle","forcePopupAlign","deprecated","nativeElement","process","env","NODE_ENV","forEach","_ref","deprecatedName","newName","open","setOpen","useMergedState","value","visible","defaultValue","defaultOpen","defaultVisible","noTitle","tooltipPlacements","useMemo","mergedArrowPointAtCenter","pointAtCenter","getPlacements","arrowWidth","sizePopupArrow","borderRadius","offset","marginXXS","visibleFirst","memoOverlay","memoOverlayWrapper","createElement","ContextIsolator","space","placement","mouseEnterDelay","mouseLeaveDelay","overlayStyle","rootClassName","otherProps","rootPrefixCls","injectFromPopover","tempOpen","child","isValidElement","isFragment","childProps","childCls","className","classNames","wrapCSSVar","hashId","cssVarCls","useStyle","colorInfo","parseColor","arrowContentStyle","arrowStyle","formattedOverlayInnerStyle","assign","customOverlayClassName","zIndex","contextZIndex","useZIndex","content","RcTooltip","showArrow","onVisibleChange","vis","onOpenChange","arrowContent","motion","motionName","getTransitionName","transitionName","motionDeadline","cloneElement","zIndexContext","Provider","displayName","_InternalPanelDoNotUseOrYouWillBeFired","PurePanel"],"mappings":"ktDAEIA,EAAgC,SAAUC,EAAGC,GAC/C,IAAIC,EAAI,CAAA,EACR,IAAK,IAAIC,KAAKH,EAAOI,OAAOC,UAAUC,eAAeC,KAAKP,EAAGG,IAAMF,EAAEO,QAAQL,GAAK,IAAGD,EAAEC,GAAKH,EAAEG,IAC9F,GAAS,MAALH,GAAqD,mBAAjCI,OAAOK,sBAA2C,KAAIC,EAAI,EAAb,IAA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,QAA7BrD,EAAKF,EAAM2G,oBAAiC,IAAPzG,GAAyBA,EAAGX,KAAKS,EAAO0G,GAC7C,QAAhCvG,EAAKH,EAAMyG,uBAAoC,IAAPtG,GAAyBA,EAAGZ,KAAKS,EAAO0G,GAClF,EAyED7F,mBAAoBD,QAAyDA,EAAkBC,EAC/FH,kBAAmBsF,GACnBY,aAA2B9G,EAAMuE,cAAc,OAAQ,CACrDiB,UAAW,GAAGlF,qBAEhByG,OAAQ,CACNC,WAAYC,EAAAA,kBAAkBjC,GAAe,gBAAiB9E,EAAMgH,gBACpEC,eAAgB,KAElBnG,uBAAwBA,IACtBkE,GAAWkC,EAAYA,aAACjC,GAAO,CACjCK,UAAWD,KACRJ,IACL,OAAOO,GAAwB1F,EAAMuE,cAAc8C,EAAcC,SAAU,CACzElE,MAAOkD,IACNE,IAAS,IAGe,eAAzB9D,QAAQC,IAAIC,WACd7C,EAAQwH,YAAc,WAExBxH,EAAQyH,uCAAyCC","x_google_ignoreList":[0]}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";var r=require("../../../classnames/index.js"),e=require("../_util/colors.js");exports.parseColor=function(o,s){const a=e.isPresetColor(s),t=r
|
1
|
+
"use strict";var r=require("../../../classnames/index.js"),e=require("../_util/colors.js");exports.parseColor=function(o,s){const a=e.isPresetColor(s),t=r({[`${o}-${s}`]:s&&a}),l={},c={};return s&&!a&&(l.background=s,c["--antd-arrow-background-color"]=s),{className:t,overlayStyle:l,arrowStyle:c}};
|
2
2
|
//# sourceMappingURL=util.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"util.js","sources":["../../../../../../node_modules/antd/es/tooltip/util.js"],"sourcesContent":["/* eslint-disable import/prefer-default-export */\nimport classNames from 'classnames';\nimport { isPresetColor } from '../_util/colors';\nexport function parseColor(prefixCls, color) {\n const isInternalColor = isPresetColor(color);\n const className = classNames({\n [`${prefixCls}-${color}`]: color && isInternalColor\n });\n const overlayStyle = {};\n const arrowStyle = {};\n if (color && !isInternalColor) {\n overlayStyle.background = color;\n // @ts-ignore\n arrowStyle['--antd-arrow-background-color'] = color;\n }\n return {\n className,\n overlayStyle,\n arrowStyle\n };\n}"],"names":["prefixCls","color","isInternalColor","isPresetColor","className","classNames","overlayStyle","arrowStyle","background"],"mappings":"8GAGO,SAAoBA,EAAWC,GACpC,MAAMC,EAAkBC,gBAAcF,GAChCG,EAAYC,
|
1
|
+
{"version":3,"file":"util.js","sources":["../../../../../../node_modules/antd/es/tooltip/util.js"],"sourcesContent":["/* eslint-disable import/prefer-default-export */\nimport classNames from 'classnames';\nimport { isPresetColor } from '../_util/colors';\nexport function parseColor(prefixCls, color) {\n const isInternalColor = isPresetColor(color);\n const className = classNames({\n [`${prefixCls}-${color}`]: color && isInternalColor\n });\n const overlayStyle = {};\n const arrowStyle = {};\n if (color && !isInternalColor) {\n overlayStyle.background = color;\n // @ts-ignore\n arrowStyle['--antd-arrow-background-color'] = color;\n }\n return {\n className,\n overlayStyle,\n arrowStyle\n };\n}"],"names":["prefixCls","color","isInternalColor","isPresetColor","className","classNames","overlayStyle","arrowStyle","background"],"mappings":"8GAGO,SAAoBA,EAAWC,GACpC,MAAMC,EAAkBC,gBAAcF,GAChCG,EAAYC,EAAW,CAC3B,CAAC,GAAGL,KAAaC,KAAUA,GAASC,IAEhCI,EAAe,CAAA,EACfC,EAAa,CAAA,EAMnB,OALIN,IAAUC,IACZI,EAAaE,WAAaP,EAE1BM,EAAW,iCAAmCN,GAEzC,CACLG,YACAE,eACAC,aAEJ","x_google_ignoreList":[0]}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";var e=require("../../../@babel/runtime/helpers/esm/toConsumableArray.js"),t=require("react"),r=require("../../../@ant-design/icons/es/icons/FileOutlined.js"),n=require("../../../@ant-design/icons/es/icons/FolderOpenOutlined.js"),s=require("../../../@ant-design/icons/es/icons/FolderOutlined.js"),c=require("../../../classnames/index.js"),o=require("../../../rc-tree/es/util.js"),l=require("../../../rc-tree/es/utils/treeUtil.js");require("../config-provider/index.js");var a=require("./Tree.js"),i=require("./utils/dictUtil.js"),d=require("../config-provider/context.js");function u(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var y=u(t),f=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]])}return r};function p(e){const{isLeaf:t,expanded:c}=e;return t?y.createElement(r,null):c?y.createElement(n,null):y.createElement(s,null)}function x(e){let{treeData:t,children:r}=e;return t||l.convertTreeToData(r)}const v=(t,r)=>{var{defaultExpandAll:n,defaultExpandParent:s,defaultExpandedKeys:u}=t,v=f(t,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const K=y.useRef(),j=y.useRef(),[O,m]=y.useState(v.selectedKeys||v.defaultSelectedKeys||[]),[E,b]=y.useState((()=>(()=>{const{keyEntities:e}=l.convertDataToEntities(x(v));let t;return t=n?Object.keys(e):s?o.conductExpandParent(v.expandedKeys||u||[],e):v.expandedKeys||u||[],t})()));y.useEffect((()=>{"selectedKeys"in v&&m(v.selectedKeys)}),[v.selectedKeys]),y.useEffect((()=>{"expandedKeys"in v&&b(v.expandedKeys)}),[v.expandedKeys]);const{getPrefixCls:g,direction:N}=y.useContext(d.ConfigContext),{prefixCls:q,className:D,showIcon:h=!0,expandAction:w="click"}=v,P=f(v,["prefixCls","className","showIcon","expandAction"]),C=g("tree",q),S=c
|
1
|
+
"use strict";var e=require("../../../@babel/runtime/helpers/esm/toConsumableArray.js"),t=require("react"),r=require("../../../@ant-design/icons/es/icons/FileOutlined.js"),n=require("../../../@ant-design/icons/es/icons/FolderOpenOutlined.js"),s=require("../../../@ant-design/icons/es/icons/FolderOutlined.js"),c=require("../../../classnames/index.js"),o=require("../../../rc-tree/es/util.js"),l=require("../../../rc-tree/es/utils/treeUtil.js");require("../config-provider/index.js");var a=require("./Tree.js"),i=require("./utils/dictUtil.js"),d=require("../config-provider/context.js");function u(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var y=u(t),f=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]])}return r};function p(e){const{isLeaf:t,expanded:c}=e;return t?y.createElement(r,null):c?y.createElement(n,null):y.createElement(s,null)}function x(e){let{treeData:t,children:r}=e;return t||l.convertTreeToData(r)}const v=(t,r)=>{var{defaultExpandAll:n,defaultExpandParent:s,defaultExpandedKeys:u}=t,v=f(t,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const K=y.useRef(),j=y.useRef(),[O,m]=y.useState(v.selectedKeys||v.defaultSelectedKeys||[]),[E,b]=y.useState((()=>(()=>{const{keyEntities:e}=l.convertDataToEntities(x(v));let t;return t=n?Object.keys(e):s?o.conductExpandParent(v.expandedKeys||u||[],e):v.expandedKeys||u||[],t})()));y.useEffect((()=>{"selectedKeys"in v&&m(v.selectedKeys)}),[v.selectedKeys]),y.useEffect((()=>{"expandedKeys"in v&&b(v.expandedKeys)}),[v.expandedKeys]);const{getPrefixCls:g,direction:N}=y.useContext(d.ConfigContext),{prefixCls:q,className:D,showIcon:h=!0,expandAction:w="click"}=v,P=f(v,["prefixCls","className","showIcon","expandAction"]),C=g("tree",q),S=c(`${C}-directory`,{[`${C}-directory-rtl`]:"rtl"===N},D);return y.createElement(a,Object.assign({icon:p,ref:r,blockNode:!0},P,{showIcon:h,expandAction:w,prefixCls:C,className:S,expandedKeys:E,selectedKeys:O,onSelect:(t,r)=>{var n;const{multiple:s,fieldNames:c}=v,{node:o,nativeEvent:l}=r,{key:a=""}=o,d=x(v),u=Object.assign(Object.assign({},r),{selected:!0}),y=(null==l?void 0:l.ctrlKey)||(null==l?void 0:l.metaKey),f=null==l?void 0:l.shiftKey;let p;s&&y?(p=t,K.current=a,j.current=p,u.selectedNodes=i.convertDirectoryKeysToNodes(d,p,c)):s&&f?(p=Array.from(new Set([].concat(e(j.current||[]),e(i.calcRangeKeys({treeData:d,expandedKeys:E,startKey:a,endKey:K.current,fieldNames:c}))))),u.selectedNodes=i.convertDirectoryKeysToNodes(d,p,c)):(p=[a],K.current=a,j.current=p,u.selectedNodes=i.convertDirectoryKeysToNodes(d,p,c)),null===(n=v.onSelect)||void 0===n||n.call(v,p,u),"selectedKeys"in v||m(p)},onExpand:(e,t)=>{var r;return"expandedKeys"in v||b(e),null===(r=v.onExpand)||void 0===r?void 0:r.call(v,e,t)}}))},K=y.forwardRef(v);"production"!==process.env.NODE_ENV&&(K.displayName="DirectoryTree"),module.exports=K;
|
2
2
|
//# sourceMappingURL=DirectoryTree.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DirectoryTree.js","sources":["../../../../../../node_modules/antd/es/tree/DirectoryTree.js"],"sourcesContent":["\"use client\";\n\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport * as React from 'react';\nimport FileOutlined from \"@ant-design/icons/es/icons/FileOutlined\";\nimport FolderOpenOutlined from \"@ant-design/icons/es/icons/FolderOpenOutlined\";\nimport FolderOutlined from \"@ant-design/icons/es/icons/FolderOutlined\";\nimport classNames from 'classnames';\nimport { conductExpandParent } from \"rc-tree/es/util\";\nimport { convertDataToEntities, convertTreeToData } from \"rc-tree/es/utils/treeUtil\";\nimport { ConfigContext } from '../config-provider';\nimport Tree from './Tree';\nimport { calcRangeKeys, convertDirectoryKeysToNodes } from './utils/dictUtil';\nfunction getIcon(props) {\n const {\n isLeaf,\n expanded\n } = props;\n if (isLeaf) {\n return /*#__PURE__*/React.createElement(FileOutlined, null);\n }\n return expanded ? /*#__PURE__*/React.createElement(FolderOpenOutlined, null) : /*#__PURE__*/React.createElement(FolderOutlined, null);\n}\nfunction getTreeData(_ref) {\n let {\n treeData,\n children\n } = _ref;\n return treeData || convertTreeToData(children);\n}\nconst DirectoryTree = (_a, ref) => {\n var {\n defaultExpandAll,\n defaultExpandParent,\n defaultExpandedKeys\n } = _a,\n props = __rest(_a, [\"defaultExpandAll\", \"defaultExpandParent\", \"defaultExpandedKeys\"]);\n // Shift click usage\n const lastSelectedKey = React.useRef();\n const cachedSelectedKeys = React.useRef();\n const getInitExpandedKeys = () => {\n const {\n keyEntities\n } = convertDataToEntities(getTreeData(props));\n let initExpandedKeys;\n // Expanded keys\n if (defaultExpandAll) {\n initExpandedKeys = Object.keys(keyEntities);\n } else if (defaultExpandParent) {\n initExpandedKeys = conductExpandParent(props.expandedKeys || defaultExpandedKeys || [], keyEntities);\n } else {\n initExpandedKeys = props.expandedKeys || defaultExpandedKeys || [];\n }\n return initExpandedKeys;\n };\n const [selectedKeys, setSelectedKeys] = React.useState(props.selectedKeys || props.defaultSelectedKeys || []);\n const [expandedKeys, setExpandedKeys] = React.useState(() => getInitExpandedKeys());\n React.useEffect(() => {\n if ('selectedKeys' in props) {\n setSelectedKeys(props.selectedKeys);\n }\n }, [props.selectedKeys]);\n React.useEffect(() => {\n if ('expandedKeys' in props) {\n setExpandedKeys(props.expandedKeys);\n }\n }, [props.expandedKeys]);\n const onExpand = (keys, info) => {\n var _a;\n if (!('expandedKeys' in props)) {\n setExpandedKeys(keys);\n }\n // Call origin function\n return (_a = props.onExpand) === null || _a === void 0 ? void 0 : _a.call(props, keys, info);\n };\n const onSelect = (keys, event) => {\n var _a;\n const {\n multiple,\n fieldNames\n } = props;\n const {\n node,\n nativeEvent\n } = event;\n const {\n key = ''\n } = node;\n const treeData = getTreeData(props);\n // const newState: DirectoryTreeState = {};\n // We need wrap this event since some value is not same\n const newEvent = Object.assign(Object.assign({}, event), {\n selected: true\n });\n // Windows / Mac single pick\n const ctrlPick = (nativeEvent === null || nativeEvent === void 0 ? void 0 : nativeEvent.ctrlKey) || (nativeEvent === null || nativeEvent === void 0 ? void 0 : nativeEvent.metaKey);\n const shiftPick = nativeEvent === null || nativeEvent === void 0 ? void 0 : nativeEvent.shiftKey;\n // Generate new selected keys\n let newSelectedKeys;\n if (multiple && ctrlPick) {\n // Control click\n newSelectedKeys = keys;\n lastSelectedKey.current = key;\n cachedSelectedKeys.current = newSelectedKeys;\n newEvent.selectedNodes = convertDirectoryKeysToNodes(treeData, newSelectedKeys, fieldNames);\n } else if (multiple && shiftPick) {\n // Shift click\n newSelectedKeys = Array.from(new Set([].concat(_toConsumableArray(cachedSelectedKeys.current || []), _toConsumableArray(calcRangeKeys({\n treeData,\n expandedKeys,\n startKey: key,\n endKey: lastSelectedKey.current,\n fieldNames\n })))));\n newEvent.selectedNodes = convertDirectoryKeysToNodes(treeData, newSelectedKeys, fieldNames);\n } else {\n // Single click\n newSelectedKeys = [key];\n lastSelectedKey.current = key;\n cachedSelectedKeys.current = newSelectedKeys;\n newEvent.selectedNodes = convertDirectoryKeysToNodes(treeData, newSelectedKeys, fieldNames);\n }\n (_a = props.onSelect) === null || _a === void 0 ? void 0 : _a.call(props, newSelectedKeys, newEvent);\n if (!('selectedKeys' in props)) {\n setSelectedKeys(newSelectedKeys);\n }\n };\n const {\n getPrefixCls,\n direction\n } = React.useContext(ConfigContext);\n const {\n prefixCls: customizePrefixCls,\n className,\n showIcon = true,\n expandAction = 'click'\n } = props,\n otherProps = __rest(props, [\"prefixCls\", \"className\", \"showIcon\", \"expandAction\"]);\n const prefixCls = getPrefixCls('tree', customizePrefixCls);\n const connectClassName = classNames(`${prefixCls}-directory`, {\n [`${prefixCls}-directory-rtl`]: direction === 'rtl'\n }, className);\n return /*#__PURE__*/React.createElement(Tree, Object.assign({\n icon: getIcon,\n ref: ref,\n blockNode: true\n }, otherProps, {\n showIcon: showIcon,\n expandAction: expandAction,\n prefixCls: prefixCls,\n className: connectClassName,\n expandedKeys: expandedKeys,\n selectedKeys: selectedKeys,\n onSelect: onSelect,\n onExpand: onExpand\n }));\n};\nconst ForwardDirectoryTree = /*#__PURE__*/React.forwardRef(DirectoryTree);\nif (process.env.NODE_ENV !== 'production') {\n ForwardDirectoryTree.displayName = 'DirectoryTree';\n}\nexport default ForwardDirectoryTree;"],"names":["__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","getIcon","props","isLeaf","expanded","React","createElement","FileOutlined","FolderOpenOutlined","FolderOutlined","getTreeData","_ref","treeData","children","convertTreeToData","DirectoryTree","_a","ref","defaultExpandAll","defaultExpandParent","defaultExpandedKeys","lastSelectedKey","useRef","cachedSelectedKeys","selectedKeys","setSelectedKeys","useState","defaultSelectedKeys","expandedKeys","setExpandedKeys","keyEntities","convertDataToEntities","initExpandedKeys","keys","conductExpandParent","getInitExpandedKeys","useEffect","getPrefixCls","direction","useContext","ConfigContext","prefixCls","customizePrefixCls","className","showIcon","expandAction","otherProps","connectClassName","classNames","default","Tree","assign","icon","blockNode","onSelect","event","multiple","fieldNames","node","nativeEvent","key","newEvent","selected","ctrlPick","ctrlKey","metaKey","shiftPick","shiftKey","newSelectedKeys","current","selectedNodes","convertDirectoryKeysToNodes","Array","from","Set","concat","_toConsumableArray","calcRangeKeys","startKey","endKey","onExpand","info","ForwardDirectoryTree","forwardRef","process","env","NODE_ENV","displayName"],"mappings":"u1BAGIA,EAAgC,SAAUC,EAAGC,GAC/C,IAAIC,EAAI,CAAA,EACR,IAAK,IAAIC,KAAKH,EAAOI,OAAOC,UAAUC,eAAeC,KAAKP,EAAGG,IAAMF,EAAEO,QAAQL,GAAK,IAAGD,EAAEC,GAAKH,EAAEG,IAC9F,GAAS,MAALH,GAAqD,mBAAjCI,OAAOK,sBAA2C,KAAIC,EAAI,EAAb,IAAgBP,EAAIC,OAAOK,sBAAsBT,GAAIU,EAAIP,EAAEQ,OAAQD,IAClIT,EAAEO,QAAQL,EAAEO,IAAM,GAAKN,OAAOC,UAAUO,qBAAqBL,KAAKP,EAAGG,EAAEO,MAAKR,EAAEC,EAAEO,IAAMV,EAAEG,EAAEO,IADuB,CAGvH,OAAOR,CACT,EAWA,SAASW,EAAQC,GACf,MAAMC,OACJA,EAAMC,SACNA,GACEF,EACJ,OAAIC,EACkBE,EAAMC,cAAcC,EAAc,MAEjDH,EAAwBC,EAAMC,cAAcE,EAAoB,MAAqBH,EAAMC,cAAcG,EAAgB,KAClI,CACA,SAASC,EAAYC,GACnB,IAAIC,SACFA,EAAQC,SACRA,GACEF,EACJ,OAAOC,GAAYE,oBAAkBD,EACvC,CACA,MAAME,EAAgB,CAACC,EAAIC,KACzB,IAAIC,iBACAA,EAAgBC,oBAChBA,EAAmBC,oBACnBA,GACEJ,EACJd,EAAQf,EAAO6B,EAAI,CAAC,mBAAoB,sBAAuB,wBAEjE,MAAMK,EAAkBhB,EAAMiB,SACxBC,EAAqBlB,EAAMiB,UAgB1BE,EAAcC,GAAmBpB,EAAMqB,SAASxB,EAAMsB,cAAgBtB,EAAMyB,qBAAuB,KACnGC,EAAcC,GAAmBxB,EAAMqB,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AYM,SACrKC,EAAYP,aAAiD,EAASA,EAAYQ,SAExF,IAAIC,EACAZ,GAAYO,GAEdK,EAAkBnC,EAClBZ,EAAgBgD,QAAUT,EAC1BrC,EAAmB8C,QAAUD,EAC7BP,EAASS,cAAgBC,EAA2BA,4BAAC3D,EAAUwD,EAAiBX,IACvED,GAAYU,GAErBE,EAAkBI,MAAMC,KAAK,IAAIC,IAAI,GAAGC,OAAOC,EAAmBrD,EAAmB8C,SAAW,IAAKO,EAAmBC,EAAAA,cAAc,CACpIjE,WACAgB,eACAkD,SAAUlB,EACVmB,OAAQ1D,EAAgBgD,QACxBZ,mBAEFI,EAASS,cAAgBC,EAA2BA,4BAAC3D,EAAUwD,EAAiBX,KAGhFW,EAAkB,CAACR,GACnBvC,EAAgBgD,QAAUT,EAC1BrC,EAAmB8C,QAAUD,EAC7BP,EAASS,cAAgBC,EAA2BA,4BAAC3D,EAAUwD,EAAiBX,IAExD,QAAzBzC,EAAKd,EAAMoD,gBAA6B,IAAPtC,GAAyBA,EAAGrB,KAAKO,EAAOkE,EAAiBP,GACrF,iBAAkB3D,GACtBuB,EAAgB2C,EACjB,EA6BDY,SAvFe,CAAC/C,EAAMgD,KACtB,IAAIjE,EAKJ,MAJM,iBAAkBd,GACtB2B,EAAgBI,GAGe,QAAzBjB,EAAKd,EAAM8E,gBAA6B,IAAPhE,OAAgB,EAASA,EAAGrB,KAAKO,EAAO+B,EAAMgD,EAAK,IAkF3F,EAECC,EAAoC7E,EAAM8E,WAAWpE,GAC9B,eAAzBqE,QAAQC,IAAIC,WACdJ,EAAqBK,YAAc","x_google_ignoreList":[0]}
|
1
|
+
{"version":3,"file":"DirectoryTree.js","sources":["../../../../../../node_modules/antd/es/tree/DirectoryTree.js"],"sourcesContent":["\"use client\";\n\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport * as React from 'react';\nimport FileOutlined from \"@ant-design/icons/es/icons/FileOutlined\";\nimport FolderOpenOutlined from \"@ant-design/icons/es/icons/FolderOpenOutlined\";\nimport FolderOutlined from \"@ant-design/icons/es/icons/FolderOutlined\";\nimport classNames from 'classnames';\nimport { conductExpandParent } from \"rc-tree/es/util\";\nimport { convertDataToEntities, convertTreeToData } from \"rc-tree/es/utils/treeUtil\";\nimport { ConfigContext } from '../config-provider';\nimport Tree from './Tree';\nimport { calcRangeKeys, convertDirectoryKeysToNodes } from './utils/dictUtil';\nfunction getIcon(props) {\n const {\n isLeaf,\n expanded\n } = props;\n if (isLeaf) {\n return /*#__PURE__*/React.createElement(FileOutlined, null);\n }\n return expanded ? /*#__PURE__*/React.createElement(FolderOpenOutlined, null) : /*#__PURE__*/React.createElement(FolderOutlined, null);\n}\nfunction getTreeData(_ref) {\n let {\n treeData,\n children\n } = _ref;\n return treeData || convertTreeToData(children);\n}\nconst DirectoryTree = (_a, ref) => {\n var {\n defaultExpandAll,\n defaultExpandParent,\n defaultExpandedKeys\n } = _a,\n props = __rest(_a, [\"defaultExpandAll\", \"defaultExpandParent\", \"defaultExpandedKeys\"]);\n // Shift click usage\n const lastSelectedKey = React.useRef();\n const cachedSelectedKeys = React.useRef();\n const getInitExpandedKeys = () => {\n const {\n keyEntities\n } = convertDataToEntities(getTreeData(props));\n let initExpandedKeys;\n // Expanded keys\n if (defaultExpandAll) {\n initExpandedKeys = Object.keys(keyEntities);\n } else if (defaultExpandParent) {\n initExpandedKeys = conductExpandParent(props.expandedKeys || defaultExpandedKeys || [], keyEntities);\n } else {\n initExpandedKeys = props.expandedKeys || defaultExpandedKeys || [];\n }\n return initExpandedKeys;\n };\n const [selectedKeys, setSelectedKeys] = React.useState(props.selectedKeys || props.defaultSelectedKeys || []);\n const [expandedKeys, setExpandedKeys] = React.useState(() => getInitExpandedKeys());\n React.useEffect(() => {\n if ('selectedKeys' in props) {\n setSelectedKeys(props.selectedKeys);\n }\n }, [props.selectedKeys]);\n React.useEffect(() => {\n if ('expandedKeys' in props) {\n setExpandedKeys(props.expandedKeys);\n }\n }, [props.expandedKeys]);\n const onExpand = (keys, info) => {\n var _a;\n if (!('expandedKeys' in props)) {\n setExpandedKeys(keys);\n }\n // Call origin function\n return (_a = props.onExpand) === null || _a === void 0 ? void 0 : _a.call(props, keys, info);\n };\n const onSelect = (keys, event) => {\n var _a;\n const {\n multiple,\n fieldNames\n } = props;\n const {\n node,\n nativeEvent\n } = event;\n const {\n key = ''\n } = node;\n const treeData = getTreeData(props);\n // const newState: DirectoryTreeState = {};\n // We need wrap this event since some value is not same\n const newEvent = Object.assign(Object.assign({}, event), {\n selected: true\n });\n // Windows / Mac single pick\n const ctrlPick = (nativeEvent === null || nativeEvent === void 0 ? void 0 : nativeEvent.ctrlKey) || (nativeEvent === null || nativeEvent === void 0 ? void 0 : nativeEvent.metaKey);\n const shiftPick = nativeEvent === null || nativeEvent === void 0 ? void 0 : nativeEvent.shiftKey;\n // Generate new selected keys\n let newSelectedKeys;\n if (multiple && ctrlPick) {\n // Control click\n newSelectedKeys = keys;\n lastSelectedKey.current = key;\n cachedSelectedKeys.current = newSelectedKeys;\n newEvent.selectedNodes = convertDirectoryKeysToNodes(treeData, newSelectedKeys, fieldNames);\n } else if (multiple && shiftPick) {\n // Shift click\n newSelectedKeys = Array.from(new Set([].concat(_toConsumableArray(cachedSelectedKeys.current || []), _toConsumableArray(calcRangeKeys({\n treeData,\n expandedKeys,\n startKey: key,\n endKey: lastSelectedKey.current,\n fieldNames\n })))));\n newEvent.selectedNodes = convertDirectoryKeysToNodes(treeData, newSelectedKeys, fieldNames);\n } else {\n // Single click\n newSelectedKeys = [key];\n lastSelectedKey.current = key;\n cachedSelectedKeys.current = newSelectedKeys;\n newEvent.selectedNodes = convertDirectoryKeysToNodes(treeData, newSelectedKeys, fieldNames);\n }\n (_a = props.onSelect) === null || _a === void 0 ? void 0 : _a.call(props, newSelectedKeys, newEvent);\n if (!('selectedKeys' in props)) {\n setSelectedKeys(newSelectedKeys);\n }\n };\n const {\n getPrefixCls,\n direction\n } = React.useContext(ConfigContext);\n const {\n prefixCls: customizePrefixCls,\n className,\n showIcon = true,\n expandAction = 'click'\n } = props,\n otherProps = __rest(props, [\"prefixCls\", \"className\", \"showIcon\", \"expandAction\"]);\n const prefixCls = getPrefixCls('tree', customizePrefixCls);\n const connectClassName = classNames(`${prefixCls}-directory`, {\n [`${prefixCls}-directory-rtl`]: direction === 'rtl'\n }, className);\n return /*#__PURE__*/React.createElement(Tree, Object.assign({\n icon: getIcon,\n ref: ref,\n blockNode: true\n }, otherProps, {\n showIcon: showIcon,\n expandAction: expandAction,\n prefixCls: prefixCls,\n className: connectClassName,\n expandedKeys: expandedKeys,\n selectedKeys: selectedKeys,\n onSelect: onSelect,\n onExpand: onExpand\n }));\n};\nconst ForwardDirectoryTree = /*#__PURE__*/React.forwardRef(DirectoryTree);\nif (process.env.NODE_ENV !== 'production') {\n ForwardDirectoryTree.displayName = 'DirectoryTree';\n}\nexport default ForwardDirectoryTree;"],"names":["__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","getIcon","props","isLeaf","expanded","React","createElement","FileOutlined","FolderOpenOutlined","FolderOutlined","getTreeData","_ref","treeData","children","convertTreeToData","DirectoryTree","_a","ref","defaultExpandAll","defaultExpandParent","defaultExpandedKeys","lastSelectedKey","useRef","cachedSelectedKeys","selectedKeys","setSelectedKeys","useState","defaultSelectedKeys","expandedKeys","setExpandedKeys","keyEntities","convertDataToEntities","initExpandedKeys","keys","conductExpandParent","getInitExpandedKeys","useEffect","getPrefixCls","direction","useContext","ConfigContext","prefixCls","customizePrefixCls","className","showIcon","expandAction","otherProps","connectClassName","classNames","Tree","assign","icon","blockNode","onSelect","event","multiple","fieldNames","node","nativeEvent","key","newEvent","selected","ctrlPick","ctrlKey","metaKey","shiftPick","shiftKey","newSelectedKeys","current","selectedNodes","convertDirectoryKeysToNodes","Array","from","Set","concat","_toConsumableArray","calcRangeKeys","startKey","endKey","onExpand","info","ForwardDirectoryTree","forwardRef","process","env","NODE_ENV","displayName"],"mappings":"u1BAGIA,EAAgC,SAAUC,EAAGC,GAC/C,IAAIC,EAAI,CAAA,EACR,IAAK,IAAIC,KAAKH,EAAOI,OAAOC,UAAUC,eAAeC,KAAKP,EAAGG,IAAMF,EAAEO,QAAQL,GAAK,IAAGD,EAAEC,GAAKH,EAAEG,IAC9F,GAAS,MAALH,GAAqD,mBAAjCI,OAAOK,sBAA2C,KAAIC,EAAI,EAAb,IAAgBP,EAAIC,OAAOK,sBAAsBT,GAAIU,EAAIP,EAAEQ,OAAQD,IAClIT,EAAEO,QAAQL,EAAEO,IAAM,GAAKN,OAAOC,UAAUO,qBAAqBL,KAAKP,EAAGG,EAAEO,MAAKR,EAAEC,EAAEO,IAAMV,EAAEG,EAAEO,IADuB,CAGvH,OAAOR,CACT,EAWA,SAASW,EAAQC,GACf,MAAMC,OACJA,EAAMC,SACNA,GACEF,EACJ,OAAIC,EACkBE,EAAMC,cAAcC,EAAc,MAEjDH,EAAwBC,EAAMC,cAAcE,EAAoB,MAAqBH,EAAMC,cAAcG,EAAgB,KAClI,CACA,SAASC,EAAYC,GACnB,IAAIC,SACFA,EAAQC,SACRA,GACEF,EACJ,OAAOC,GAAYE,oBAAkBD,EACvC,CACA,MAAME,EAAgB,CAACC,EAAIC,KACzB,IAAIC,iBACAA,EAAgBC,oBAChBA,EAAmBC,oBACnBA,GACEJ,EACJd,EAAQf,EAAO6B,EAAI,CAAC,mBAAoB,sBAAuB,wBAEjE,MAAMK,EAAkBhB,EAAMiB,SACxBC,EAAqBlB,EAAMiB,UAg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OAAO,CAAA,EAAII,GAAQ,CACvDO,UAAU,IAGNC,GAAYJ,aAAiD,EAASA,EAAYK,WAAaL,aAAiD,EAASA,EAAYM,SACrKC,EAAYP,aAAiD,EAASA,EAAYQ,SAExF,IAAIC,EACAZ,GAAYO,GAEdK,EAAkBlC,EAClBZ,EAAgB+C,QAAUT,EAC1BpC,EAAmB6C,QAAUD,EAC7BP,EAASS,cAAgBC,EAA2BA,4BAAC1D,EAAUuD,EAAiBX,IACvED,GAAYU,GAErBE,EAAkBI,MAAMC,KAAK,IAAIC,IAAI,GAAGC,OAAOC,EAAmBpD,EAAmB6C,SAAW,IAAKO,EAAmBC,EAAAA,cAAc,CACpIhE,WACAgB,eACAiD,SAAUlB,EACVmB,OAAQzD,EAAgB+C,QACxBZ,mBAEFI,EAASS,cAAgBC,EAA2BA,4BAAC1D,EAAUuD,EAAiBX,KAGhFW,EAAkB,CAACR,GACnBtC,EAAgB+C,QAAUT,EAC1BpC,EAAmB6C,QAAUD,EAC7BP,EAASS,cAAgBC,EAA2BA,4BAAC1D,EAAUuD,EAAiBX,IAExD,QAAzBxC,EAAKd,EAAMmD,gBAA6B,IAAPrC,GAAyBA,EAAGrB,KAAKO,EAAOiE,EAAiBP,GACrF,iBAAkB1D,GACtBuB,EAAgB0C,EACjB,EA6BDY,SAvFe,CAAC9C,EAAM+C,KACtB,IAAIhE,EAKJ,MAJM,iBAAkBd,GACtB2B,EAAgBI,GAGe,QAAzBjB,EAAKd,EAAM6E,gBAA6B,IAAP/D,OAAgB,EAASA,EAAGrB,KAAKO,EAAO+B,EAAM+C,EAAK,IAkF3F,EAECC,EAAoC5E,EAAM6E,WAAWnE,GAC9B,eAAzBoE,QAAQC,IAAIC,WACdJ,EAAqBK,YAAc","x_google_ignoreList":[0]}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";var e=require("react"),s=require("../../../@ant-design/icons/es/icons/HolderOutlined.js"),i=require("../../../classnames/index.js"),r=require("../../../rc-tree/es/Tree.js");require("../../../rc-tree/es/TreeNode.js");var t=require("../_util/motion.js");require("../config-provider/index.js"),require("../../../@ant-design/cssinjs/es/extractStyle.js"),require("../../../@ant-design/cssinjs/es/hooks/useCacheToken.js"),require("../../../@ant-design/cssinjs/es/StyleContext.js"),require("../../../@ant-design/cssinjs/es/theme/createTheme.js"),require("../../../rc-util/es/warning.js"),require("../../../@ant-design/cssinjs/es/theme/ThemeCache.js"),require("../../../@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.js"),require("../../../@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.js"),require("../../../@ant-design/cssinjs/es/hooks/useHMR.js"),require("../../../@ant-design/cssinjs/es/transformers/legacyLogicalProperties.js"),require("../../../rc-util/es/hooks/useLayoutEffect.js"),require("../../../rc-util/es/ref.js"),require("../../../@ant-design/cssinjs-utils/es/util/statistic.js"),require("../../../@ant-design/cssinjs-utils/es/_util/hooks/useUniqueMemo.js");var n=require("../theme/useToken.js"),c=require("./style/index.js"),o=require("./utils/dropIndicator.js"),a=require("./utils/iconUtil.js"),l=require("../config-provider/context.js");const u=e.forwardRef(((u,d)=>{var j;const{getPrefixCls:g,direction:h,virtual:q,tree:
|
1
|
+
"use strict";var e=require("react"),s=require("../../../@ant-design/icons/es/icons/HolderOutlined.js"),i=require("../../../classnames/index.js"),r=require("../../../rc-tree/es/Tree.js");require("../../../rc-tree/es/TreeNode.js");var t=require("../_util/motion.js");require("../config-provider/index.js"),require("../../../@ant-design/cssinjs/es/extractStyle.js"),require("../../../@ant-design/cssinjs/es/hooks/useCacheToken.js"),require("../../../@ant-design/cssinjs/es/StyleContext.js"),require("../../../@ant-design/cssinjs/es/theme/createTheme.js"),require("../../../rc-util/es/warning.js"),require("../../../@ant-design/cssinjs/es/theme/ThemeCache.js"),require("../../../@ant-design/cssinjs/es/hooks/useCompatibleInsertionEffect.js"),require("../../../@ant-design/cssinjs/es/hooks/useEffectCleanupRegister.js"),require("../../../@ant-design/cssinjs/es/hooks/useHMR.js"),require("../../../@ant-design/cssinjs/es/transformers/legacyLogicalProperties.js"),require("../../../rc-util/es/hooks/useLayoutEffect.js"),require("../../../rc-util/es/ref.js"),require("../../../@ant-design/cssinjs-utils/es/util/statistic.js"),require("../../../@ant-design/cssinjs-utils/es/_util/hooks/useUniqueMemo.js");var n=require("../theme/useToken.js"),c=require("./style/index.js"),o=require("./utils/dropIndicator.js"),a=require("./utils/iconUtil.js"),l=require("../config-provider/context.js");const u=e.forwardRef(((u,d)=>{var j;const{getPrefixCls:g,direction:h,virtual:q,tree:b}=e.useContext(l.ConfigContext),{prefixCls:f,className:m,showIcon:p=!1,showLine:k,switcherIcon:x,switcherLoadingIcon:v,blockNode:w=!1,children:C,checkable:N=!1,selectable:y=!0,draggable:I,motion:O,style:E}=u,T=g("tree",f),L=g(),H=null!=O?O:Object.assign(Object.assign({},t.default(L)),{motionAppear:!1}),$=Object.assign(Object.assign({},u),{checkable:N,selectable:y,showIcon:p,motion:H,blockNode:w,showLine:Boolean(k),dropIndicatorRender:o.default}),[M,R,S]=c.default(T),[,P]=n.default(),_=P.paddingXS/2+((null===(j=P.Tree)||void 0===j?void 0:j.titleHeight)||P.controlHeightSM),D=e.useMemo((()=>{if(!I)return!1;let i={};switch(typeof I){case"function":i.nodeDraggable=I;break;case"object":i=Object.assign({},I)}return!1!==i.icon&&(i.icon=i.icon||e.createElement(s,null)),i}),[I]);return M(e.createElement(r,Object.assign({itemHeight:_,ref:d,virtual:q},$,{style:Object.assign(Object.assign({},null==b?void 0:b.style),E),prefixCls:T,className:i({[`${T}-icon-hide`]:!p,[`${T}-block-node`]:w,[`${T}-unselectable`]:!y,[`${T}-rtl`]:"rtl"===h},null==b?void 0:b.className,m,R,S),direction:h,checkable:N?e.createElement("span",{className:`${T}-checkbox-inner`}):N,selectable:y,switcherIcon:s=>e.createElement(a,{prefixCls:T,switcherIcon:x,switcherLoadingIcon:v,treeNodeProps:s,showLine:k}),draggable:D}),C))}));"production"!==process.env.NODE_ENV&&(u.displayName="Tree"),module.exports=u;
|
2
2
|
//# sourceMappingURL=Tree.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Tree.js","sources":["../../../../../../node_modules/antd/es/tree/Tree.js"],"sourcesContent":["\"use client\";\n\nimport React from 'react';\nimport HolderOutlined from \"@ant-design/icons/es/icons/HolderOutlined\";\nimport classNames from 'classnames';\nimport RcTree from 'rc-tree';\nimport initCollapseMotion from '../_util/motion';\nimport { ConfigContext } from '../config-provider';\nimport { useToken } from '../theme/internal';\nimport useStyle from './style';\nimport dropIndicatorRender from './utils/dropIndicator';\nimport SwitcherIconCom from './utils/iconUtil';\nconst Tree = /*#__PURE__*/React.forwardRef((props, ref) => {\n var _a;\n const {\n getPrefixCls,\n direction,\n virtual,\n tree\n } = React.useContext(ConfigContext);\n const {\n prefixCls: customizePrefixCls,\n className,\n showIcon = false,\n showLine,\n switcherIcon,\n switcherLoadingIcon,\n blockNode = false,\n children,\n checkable = false,\n selectable = true,\n draggable,\n motion: customMotion,\n style\n } = props;\n const prefixCls = getPrefixCls('tree', customizePrefixCls);\n const rootPrefixCls = getPrefixCls();\n const motion = customMotion !== null && customMotion !== void 0 ? customMotion : Object.assign(Object.assign({}, initCollapseMotion(rootPrefixCls)), {\n motionAppear: false\n });\n const newProps = Object.assign(Object.assign({}, props), {\n checkable,\n selectable,\n showIcon,\n motion,\n blockNode,\n showLine: Boolean(showLine),\n dropIndicatorRender\n });\n const [wrapCSSVar, hashId, cssVarCls] = useStyle(prefixCls);\n const [, token] = useToken();\n const itemHeight = token.paddingXS / 2 + (((_a = token.Tree) === null || _a === void 0 ? void 0 : _a.titleHeight) || token.controlHeightSM);\n const draggableConfig = React.useMemo(() => {\n if (!draggable) {\n return false;\n }\n let mergedDraggable = {};\n switch (typeof draggable) {\n case 'function':\n mergedDraggable.nodeDraggable = draggable;\n break;\n case 'object':\n mergedDraggable = Object.assign({}, draggable);\n break;\n default:\n break;\n // Do nothing\n }\n if (mergedDraggable.icon !== false) {\n mergedDraggable.icon = mergedDraggable.icon || /*#__PURE__*/React.createElement(HolderOutlined, null);\n }\n return mergedDraggable;\n }, [draggable]);\n const renderSwitcherIcon = nodeProps => (/*#__PURE__*/React.createElement(SwitcherIconCom, {\n prefixCls: prefixCls,\n switcherIcon: switcherIcon,\n switcherLoadingIcon: switcherLoadingIcon,\n treeNodeProps: nodeProps,\n showLine: showLine\n }));\n return wrapCSSVar(\n /*#__PURE__*/\n // @ts-ignore\n React.createElement(RcTree, Object.assign({\n itemHeight: itemHeight,\n ref: ref,\n virtual: virtual\n }, newProps, {\n // newProps may contain style so declare style below it\n style: Object.assign(Object.assign({}, tree === null || tree === void 0 ? void 0 : tree.style), style),\n prefixCls: prefixCls,\n className: classNames({\n [`${prefixCls}-icon-hide`]: !showIcon,\n [`${prefixCls}-block-node`]: blockNode,\n [`${prefixCls}-unselectable`]: !selectable,\n [`${prefixCls}-rtl`]: direction === 'rtl'\n }, tree === null || tree === void 0 ? void 0 : tree.className, className, hashId, cssVarCls),\n direction: direction,\n checkable: checkable ? /*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-checkbox-inner`\n }) : checkable,\n selectable: selectable,\n switcherIcon: renderSwitcherIcon,\n draggable: draggableConfig\n }), children));\n});\nif (process.env.NODE_ENV !== 'production') {\n Tree.displayName = 'Tree';\n}\nexport default Tree;"],"names":["Tree","React","forwardRef","props","ref","_a","getPrefixCls","direction","virtual","tree","useContext","ConfigContext","prefixCls","customizePrefixCls","className","showIcon","showLine","switcherIcon","switcherLoadingIcon","blockNode","children","checkable","selectable","draggable","motion","customMotion","style","rootPrefixCls","Object","assign","initCollapseMotion","default","motionAppear","newProps","Boolean","dropIndicatorRender","wrapCSSVar","hashId","cssVarCls","useStyle","token","useToken","itemHeight","paddingXS","titleHeight","controlHeightSM","draggableConfig","useMemo","mergedDraggable","nodeDraggable","icon","createElement","HolderOutlined","RcTree","classNames","nodeProps","SwitcherIconCom","treeNodeProps","process","env","NODE_ENV","displayName"],"mappings":"k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Ca,WAAYA,EACZtC,IAAKA,EACLI,QAASA,GACRyB,EAAU,CAEXP,MAAOE,OAAOC,OAAOD,OAAOC,OAAO,CAAE,EAAEpB,aAAmC,EAASA,EAAKiB,OAAQA,GAChGd,UAAWA,EACXE,UAAWwC,
|
1
|
+
{"version":3,"file":"Tree.js","sources":["../../../../../../node_modules/antd/es/tree/Tree.js"],"sourcesContent":["\"use client\";\n\nimport React from 'react';\nimport HolderOutlined from \"@ant-design/icons/es/icons/HolderOutlined\";\nimport classNames from 'classnames';\nimport RcTree from 'rc-tree';\nimport initCollapseMotion from '../_util/motion';\nimport { ConfigContext } from '../config-provider';\nimport { useToken } from '../theme/internal';\nimport useStyle from './style';\nimport dropIndicatorRender from './utils/dropIndicator';\nimport SwitcherIconCom from './utils/iconUtil';\nconst Tree = /*#__PURE__*/React.forwardRef((props, ref) => {\n var _a;\n const {\n getPrefixCls,\n direction,\n virtual,\n tree\n } = React.useContext(ConfigContext);\n const {\n prefixCls: customizePrefixCls,\n className,\n showIcon = false,\n showLine,\n switcherIcon,\n switcherLoadingIcon,\n blockNode = false,\n children,\n checkable = false,\n selectable = true,\n draggable,\n motion: customMotion,\n style\n } = props;\n const prefixCls = getPrefixCls('tree', customizePrefixCls);\n const rootPrefixCls = getPrefixCls();\n const motion = customMotion !== null && customMotion !== void 0 ? customMotion : Object.assign(Object.assign({}, initCollapseMotion(rootPrefixCls)), {\n motionAppear: false\n });\n const newProps = Object.assign(Object.assign({}, props), {\n checkable,\n selectable,\n showIcon,\n motion,\n blockNode,\n showLine: Boolean(showLine),\n dropIndicatorRender\n });\n const [wrapCSSVar, hashId, cssVarCls] = useStyle(prefixCls);\n const [, token] = useToken();\n const itemHeight = token.paddingXS / 2 + (((_a = token.Tree) === null || _a === void 0 ? void 0 : _a.titleHeight) || token.controlHeightSM);\n const draggableConfig = React.useMemo(() => {\n if (!draggable) {\n return false;\n }\n let mergedDraggable = {};\n switch (typeof draggable) {\n case 'function':\n mergedDraggable.nodeDraggable = draggable;\n break;\n case 'object':\n mergedDraggable = Object.assign({}, draggable);\n break;\n default:\n break;\n // Do nothing\n }\n if (mergedDraggable.icon !== false) {\n mergedDraggable.icon = mergedDraggable.icon || /*#__PURE__*/React.createElement(HolderOutlined, null);\n }\n return mergedDraggable;\n }, [draggable]);\n const renderSwitcherIcon = nodeProps => (/*#__PURE__*/React.createElement(SwitcherIconCom, {\n prefixCls: prefixCls,\n switcherIcon: switcherIcon,\n switcherLoadingIcon: switcherLoadingIcon,\n treeNodeProps: nodeProps,\n showLine: showLine\n }));\n return wrapCSSVar(\n /*#__PURE__*/\n // @ts-ignore\n React.createElement(RcTree, Object.assign({\n itemHeight: itemHeight,\n ref: ref,\n virtual: virtual\n }, newProps, {\n // newProps may contain style so declare style below it\n style: Object.assign(Object.assign({}, tree === null || tree === void 0 ? void 0 : tree.style), style),\n prefixCls: prefixCls,\n className: classNames({\n [`${prefixCls}-icon-hide`]: !showIcon,\n [`${prefixCls}-block-node`]: blockNode,\n [`${prefixCls}-unselectable`]: !selectable,\n [`${prefixCls}-rtl`]: direction === 'rtl'\n }, tree === null || tree === void 0 ? void 0 : tree.className, className, hashId, cssVarCls),\n direction: direction,\n checkable: checkable ? /*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-checkbox-inner`\n }) : checkable,\n selectable: selectable,\n switcherIcon: renderSwitcherIcon,\n draggable: draggableConfig\n }), children));\n});\nif (process.env.NODE_ENV !== 'production') {\n Tree.displayName = 'Tree';\n}\nexport default Tree;"],"names":["Tree","React","forwardRef","props","ref","_a","getPrefixCls","direction","virtual","tree","useContext","ConfigContext","prefixCls","customizePrefixCls","className","showIcon","showLine","switcherIcon","switcherLoadingIcon","blockNode","children","checkable","selectable","draggable","motion","customMotion","style","rootPrefixCls","Object","assign","initCollapseMotion","default","motionAppear","newProps","Boolean","dropIndicatorRender","wrapCSSVar","hashId","cssVarCls","useStyle","token","useToken","itemHeight","paddingXS","titleHeight","controlHeightSM","draggableConfig","useMemo","mergedDraggable","nodeDraggable","icon","createElement","HolderOutlined","RcTree","classNames","nodeProps","SwitcherIconCom","treeNodeProps","process","env","NODE_ENV","displayName"],"mappings":"k2CAYK,MAACA,EAAoBC,EAAMC,YAAW,CAACC,EAAOC,KACjD,IAAIC,EACJ,MAAMC,aACJA,EAAYC,UACZA,EAASC,QACTA,EAAOC,KACPA,GACER,EAAMS,WAAWC,EAAAA,gBAEnBC,UAAWC,EAAkBC,UAC7BA,EAASC,SACTA,GAAW,EAAKC,SAChBA,EAAQC,aACRA,EAAYC,oBACZA,EAAmBC,UACnBA,GAAY,EAAKC,SACjBA,EAAQC,UACRA,GAAY,EAAKC,WACjBA,GAAa,EAAIC,UACjBA,EACAC,OAAQC,EAAYC,MACpBA,GACEvB,EACES,EAAYN,EAAa,OAAQO,GACjCc,EAAgBrB,IAChBkB,EAASC,QAAmDA,EAAeG,OAAOC,OAAOD,OAAOC,OAAO,CAAE,EAAEC,EAAkBC,QAACJ,IAAiB,CACnJK,cAAc,IAEVC,EAAWL,OAAOC,OAAOD,OAAOC,OAAO,CAAA,EAAI1B,GAAQ,CACvDkB,YACAC,aACAP,WACJS,OAAIA,EACAL,YACAH,SAAUkB,QAAQlB,GACtBmB,oBAAIA,EAAmBJ,WAEdK,EAAYC,EAAQC,GAAaC,EAAAA,QAAS3B,IACxC,CAAA4B,GAASC,EAAAA,UACZC,EAAaF,EAAMG,UAAY,IAA4B,QAArBtC,EAAKmC,EAAMxC,YAAyB,IAAPK,OAAgB,EAASA,EAAGuC,cAAgBJ,EAAMK,iBACrHC,EAAkB7C,EAAM8C,SAAQ,KACpC,IAAKxB,EACH,OAAO,EAET,IAAIyB,EAAkB,CAAA,EACtB,cAAezB,GACb,IAAK,WACHyB,EAAgBC,cAAgB1B,EAChC,MACF,IAAK,SACHyB,EAAkBpB,OAAOC,OAAO,CAAE,EAAEN,GASxC,OAH6B,IAAzByB,EAAgBE,OAClBF,EAAgBE,KAAOF,EAAgBE,MAAqBjD,EAAMkD,cAAcC,EAAgB,OAE3FJ,CAAe,GACrB,CAACzB,IAQJ,OAAOa,EAGPnC,EAAMkD,cAAcE,EAAQzB,OAAOC,OAAO,CACxCa,WAAYA,EACZtC,IAAKA,EACLI,QAASA,GACRyB,EAAU,CAEXP,MAAOE,OAAOC,OAAOD,OAAOC,OAAO,CAAE,EAAEpB,aAAmC,EAASA,EAAKiB,OAAQA,GAChGd,UAAWA,EACXE,UAAWwC,EAAW,CACpB,CAAC,GAAG1C,gBAAyBG,EAC7B,CAAC,GAAGH,gBAAyBO,EAC7B,CAAC,GAAGP,mBAA4BU,EAChC,CAAC,GAAGV,SAAgC,QAAdL,GACrBE,aAAmC,EAASA,EAAKK,UAAWA,EAAWuB,EAAQC,GAClF/B,UAAWA,EACXc,UAAWA,EAAyBpB,EAAMkD,cAAc,OAAQ,CAC9DrC,UAAW,GAAGF,qBACXS,EACLC,WAAYA,EACZL,aA7ByBsC,GAA2BtD,EAAMkD,cAAcK,EAAiB,CACzF5C,UAAWA,EACXK,aAAcA,EACdC,oBAAqBA,EACrBuC,cAAeF,EACfvC,SAAUA,IAyBVO,UAAWuB,IACT1B,GAAU,IAEa,eAAzBsC,QAAQC,IAAIC,WACd5D,EAAK6D,YAAc","x_google_ignoreList":[0]}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";var e=require("react"),n=require("../../../../@ant-design/icons/es/icons/CaretDownFilled.js"),s=require("../../../../@ant-design/icons/es/icons/FileOutlined.js"),
|
1
|
+
"use strict";var e=require("react"),n=require("../../../../@ant-design/icons/es/icons/CaretDownFilled.js"),s=require("../../../../@ant-design/icons/es/icons/FileOutlined.js"),i=require("../../../../@ant-design/icons/es/icons/LoadingOutlined.js"),t=require("../../../../@ant-design/icons/es/icons/MinusSquareOutlined.js"),r=require("../../../../@ant-design/icons/es/icons/PlusSquareOutlined.js"),c=require("../../../../classnames/index.js"),a=require("../../_util/reactNode.js");function o(e){var n=Object.create(null);return e&&Object.keys(e).forEach((function(s){if("default"!==s){var i=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(n,s,i.get?i:{enumerable:!0,get:function(){return e[s]}})}})),n.default=e,Object.freeze(n)}var l=o(e);module.exports=e=>{const{prefixCls:o,switcherIcon:u,treeNodeProps:d,showLine:m,switcherLoadingIcon:f}=e,{isLeaf:p,expanded:j,loading:w}=d;if(w)return l.isValidElement(f)?f:l.createElement(i,{className:`${o}-switcher-loading-icon`});let g;if(m&&"object"==typeof m&&(g=m.showLeafIcon),p){if(!m)return null;if("boolean"!=typeof g&&g){const e="function"==typeof g?g(d):g,n=`${o}-switcher-line-custom-icon`;return l.isValidElement(e)?a.cloneElement(e,{className:c(e.props.className||"",n)}):e}return g?l.createElement(s,{className:`${o}-switcher-line-icon`}):l.createElement("span",{className:`${o}-switcher-leaf-line`})}const h=`${o}-switcher-icon`,E="function"==typeof u?u(d):u;return l.isValidElement(E)?a.cloneElement(E,{className:c(E.props.className||"",h)}):void 0!==E?E:m?j?l.createElement(t,{className:`${o}-switcher-line-icon`}):l.createElement(r,{className:`${o}-switcher-line-icon`}):l.createElement(n,{className:h})};
|
2
2
|
//# sourceMappingURL=iconUtil.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"iconUtil.js","sources":["../../../../../../../node_modules/antd/es/tree/utils/iconUtil.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport CaretDownFilled from \"@ant-design/icons/es/icons/CaretDownFilled\";\nimport FileOutlined from \"@ant-design/icons/es/icons/FileOutlined\";\nimport LoadingOutlined from \"@ant-design/icons/es/icons/LoadingOutlined\";\nimport MinusSquareOutlined from \"@ant-design/icons/es/icons/MinusSquareOutlined\";\nimport PlusSquareOutlined from \"@ant-design/icons/es/icons/PlusSquareOutlined\";\nimport classNames from 'classnames';\nimport { cloneElement } from '../../_util/reactNode';\nconst SwitcherIconCom = props => {\n const {\n prefixCls,\n switcherIcon,\n treeNodeProps,\n showLine,\n switcherLoadingIcon\n } = props;\n const {\n isLeaf,\n expanded,\n loading\n } = treeNodeProps;\n if (loading) {\n if (/*#__PURE__*/React.isValidElement(switcherLoadingIcon)) {\n return switcherLoadingIcon;\n }\n return /*#__PURE__*/React.createElement(LoadingOutlined, {\n className: `${prefixCls}-switcher-loading-icon`\n });\n }\n let showLeafIcon;\n if (showLine && typeof showLine === 'object') {\n showLeafIcon = showLine.showLeafIcon;\n }\n if (isLeaf) {\n if (!showLine) {\n return null;\n }\n if (typeof showLeafIcon !== 'boolean' && !!showLeafIcon) {\n const leafIcon = typeof showLeafIcon === 'function' ? showLeafIcon(treeNodeProps) : showLeafIcon;\n const leafCls = `${prefixCls}-switcher-line-custom-icon`;\n if (/*#__PURE__*/React.isValidElement(leafIcon)) {\n return cloneElement(leafIcon, {\n className: classNames(leafIcon.props.className || '', leafCls)\n });\n }\n return leafIcon;\n }\n return showLeafIcon ? (/*#__PURE__*/React.createElement(FileOutlined, {\n className: `${prefixCls}-switcher-line-icon`\n })) : (/*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-switcher-leaf-line`\n }));\n }\n const switcherCls = `${prefixCls}-switcher-icon`;\n const switcher = typeof switcherIcon === 'function' ? switcherIcon(treeNodeProps) : switcherIcon;\n if (/*#__PURE__*/React.isValidElement(switcher)) {\n return cloneElement(switcher, {\n className: classNames(switcher.props.className || '', switcherCls)\n });\n }\n if (switcher !== undefined) {\n return switcher;\n }\n if (showLine) {\n return expanded ? (/*#__PURE__*/React.createElement(MinusSquareOutlined, {\n className: `${prefixCls}-switcher-line-icon`\n })) : (/*#__PURE__*/React.createElement(PlusSquareOutlined, {\n className: `${prefixCls}-switcher-line-icon`\n }));\n }\n return /*#__PURE__*/React.createElement(CaretDownFilled, {\n className: switcherCls\n });\n};\nexport default SwitcherIconCom;"],"names":["props","prefixCls","switcherIcon","treeNodeProps","showLine","switcherLoadingIcon","isLeaf","expanded","loading","React","isValidElement","createElement","LoadingOutlined","className","showLeafIcon","leafIcon","leafCls","cloneElement","classNames","
|
1
|
+
{"version":3,"file":"iconUtil.js","sources":["../../../../../../../node_modules/antd/es/tree/utils/iconUtil.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport CaretDownFilled from \"@ant-design/icons/es/icons/CaretDownFilled\";\nimport FileOutlined from \"@ant-design/icons/es/icons/FileOutlined\";\nimport LoadingOutlined from \"@ant-design/icons/es/icons/LoadingOutlined\";\nimport MinusSquareOutlined from \"@ant-design/icons/es/icons/MinusSquareOutlined\";\nimport PlusSquareOutlined from \"@ant-design/icons/es/icons/PlusSquareOutlined\";\nimport classNames from 'classnames';\nimport { cloneElement } from '../../_util/reactNode';\nconst SwitcherIconCom = props => {\n const {\n prefixCls,\n switcherIcon,\n treeNodeProps,\n showLine,\n switcherLoadingIcon\n } = props;\n const {\n isLeaf,\n expanded,\n loading\n } = treeNodeProps;\n if (loading) {\n if (/*#__PURE__*/React.isValidElement(switcherLoadingIcon)) {\n return switcherLoadingIcon;\n }\n return /*#__PURE__*/React.createElement(LoadingOutlined, {\n className: `${prefixCls}-switcher-loading-icon`\n });\n }\n let showLeafIcon;\n if (showLine && typeof showLine === 'object') {\n showLeafIcon = showLine.showLeafIcon;\n }\n if (isLeaf) {\n if (!showLine) {\n return null;\n }\n if (typeof showLeafIcon !== 'boolean' && !!showLeafIcon) {\n const leafIcon = typeof showLeafIcon === 'function' ? showLeafIcon(treeNodeProps) : showLeafIcon;\n const leafCls = `${prefixCls}-switcher-line-custom-icon`;\n if (/*#__PURE__*/React.isValidElement(leafIcon)) {\n return cloneElement(leafIcon, {\n className: classNames(leafIcon.props.className || '', leafCls)\n });\n }\n return leafIcon;\n }\n return showLeafIcon ? (/*#__PURE__*/React.createElement(FileOutlined, {\n className: `${prefixCls}-switcher-line-icon`\n })) : (/*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-switcher-leaf-line`\n }));\n }\n const switcherCls = `${prefixCls}-switcher-icon`;\n const switcher = typeof switcherIcon === 'function' ? switcherIcon(treeNodeProps) : switcherIcon;\n if (/*#__PURE__*/React.isValidElement(switcher)) {\n return cloneElement(switcher, {\n className: classNames(switcher.props.className || '', switcherCls)\n });\n }\n if (switcher !== undefined) {\n return switcher;\n }\n if (showLine) {\n return expanded ? (/*#__PURE__*/React.createElement(MinusSquareOutlined, {\n className: `${prefixCls}-switcher-line-icon`\n })) : (/*#__PURE__*/React.createElement(PlusSquareOutlined, {\n className: `${prefixCls}-switcher-line-icon`\n }));\n }\n return /*#__PURE__*/React.createElement(CaretDownFilled, {\n className: switcherCls\n });\n};\nexport default SwitcherIconCom;"],"names":["props","prefixCls","switcherIcon","treeNodeProps","showLine","switcherLoadingIcon","isLeaf","expanded","loading","React","isValidElement","createElement","LoadingOutlined","className","showLeafIcon","leafIcon","leafCls","cloneElement","classNames","FileOutlined","switcherCls","switcher","undefined","MinusSquareOutlined","PlusSquareOutlined","CaretDownFilled"],"mappings":"2vBAUwBA,IACtB,MAAMC,UACJA,EAASC,aACTA,EAAYC,cACZA,EAAaC,SACbA,EAAQC,oBACRA,GACEL,GACEM,OACJA,EAAMC,SACNA,EAAQC,QACRA,GACEL,EACJ,GAAIK,EACF,OAAiBC,EAAMC,eAAeL,GAC7BA,EAEWI,EAAME,cAAcC,EAAiB,CACvDC,UAAW,GAAGZ,4BAGlB,IAAIa,EAIJ,GAHIV,GAAgC,iBAAbA,IACrBU,EAAeV,EAASU,cAEtBR,EAAQ,CACV,IAAKF,EACH,OAAO,KAET,GAA4B,kBAAjBU,GAAgCA,EAAc,CACvD,MAAMC,EAAmC,mBAAjBD,EAA8BA,EAAaX,GAAiBW,EAC9EE,EAAU,GAAGf,8BACnB,OAAiBQ,EAAMC,eAAeK,GAC7BE,EAAAA,aAAaF,EAAU,CAC5BF,UAAWK,EAAWH,EAASf,MAAMa,WAAa,GAAIG,KAGnDD,CACR,CACD,OAAOD,EAA6BL,EAAME,cAAcQ,EAAc,CACpEN,UAAW,GAAGZ,yBACIQ,EAAME,cAAc,OAAQ,CAC9CE,UAAW,GAAGZ,wBAEjB,CACD,MAAMmB,EAAc,GAAGnB,kBACjBoB,EAAmC,mBAAjBnB,EAA8BA,EAAaC,GAAiBD,EACpF,OAAiBO,EAAMC,eAAeW,GAC7BJ,EAAAA,aAAaI,EAAU,CAC5BR,UAAWK,EAAWG,EAASrB,MAAMa,WAAa,GAAIO,UAGzCE,IAAbD,EACKA,EAELjB,EACKG,EAAyBE,EAAME,cAAcY,EAAqB,CACvEV,UAAW,GAAGZ,yBACIQ,EAAME,cAAca,EAAoB,CAC1DX,UAAW,GAAGZ,yBAGEQ,EAAME,cAAcc,EAAiB,CACvDZ,UAAWO,GACX","x_google_ignoreList":[0]}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";var e=require("react"),t=require("../../../../@ant-design/icons/es/icons/CheckOutlined.js"),n=require("../../../../@ant-design/icons/es/icons/CopyOutlined.js"),r=require("../../../../@ant-design/icons/es/icons/LoadingOutlined.js"),i=require("../../../../classnames/index.js"),o=require("../../_util/transButton.js"),c=require("../../tooltip/index.js"),l=require("./util.js");function s(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var a=s(e);module.exports=e=>{let{prefixCls:s,copied:u,locale:d,iconOnly:p,tooltips:
|
1
|
+
"use strict";var e=require("react"),t=require("../../../../@ant-design/icons/es/icons/CheckOutlined.js"),n=require("../../../../@ant-design/icons/es/icons/CopyOutlined.js"),r=require("../../../../@ant-design/icons/es/icons/LoadingOutlined.js"),i=require("../../../../classnames/index.js"),o=require("../../_util/transButton.js"),c=require("../../tooltip/index.js"),l=require("./util.js");function s(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var a=s(e);module.exports=e=>{let{prefixCls:s,copied:u,locale:d,iconOnly:p,tooltips:g,icon:j,tabIndex:y,onCopy:f,loading:O}=e;const b=l.toList(g),m=l.toList(j),{copied:q,copy:x}=null!=d?d:{},E=u?q:x,C=l.getNode(b[u?1:0],E),v="string"==typeof C?C:E;return a.createElement(c,{title:C},a.createElement(o,{className:i(`${s}-copy`,{[`${s}-copy-success`]:u,[`${s}-copy-icon-only`]:p}),onClick:f,"aria-label":v,tabIndex:y},u?l.getNode(m[1],a.createElement(t,null),!0):l.getNode(m[0],O?a.createElement(r,null):a.createElement(n,null),!0)))};
|
2
2
|
//# sourceMappingURL=CopyBtn.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CopyBtn.js","sources":["../../../../../../../node_modules/antd/es/typography/Base/CopyBtn.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport CheckOutlined from \"@ant-design/icons/es/icons/CheckOutlined\";\nimport CopyOutlined from \"@ant-design/icons/es/icons/CopyOutlined\";\nimport LoadingOutlined from \"@ant-design/icons/es/icons/LoadingOutlined\";\nimport classNames from 'classnames';\nimport TransButton from '../../_util/transButton';\nimport Tooltip from '../../tooltip';\nimport { getNode, toList } from './util';\nconst CopyBtn = _ref => {\n let {\n prefixCls,\n copied,\n locale,\n iconOnly,\n tooltips,\n icon,\n tabIndex,\n onCopy,\n loading: btnLoading\n } = _ref;\n const tooltipNodes = toList(tooltips);\n const iconNodes = toList(icon);\n const {\n copied: copiedText,\n copy: copyText\n } = locale !== null && locale !== void 0 ? locale : {};\n const systemStr = copied ? copiedText : copyText;\n const copyTitle = getNode(tooltipNodes[copied ? 1 : 0], systemStr);\n const ariaLabel = typeof copyTitle === 'string' ? copyTitle : systemStr;\n return /*#__PURE__*/React.createElement(Tooltip, {\n title: copyTitle\n }, /*#__PURE__*/React.createElement(TransButton, {\n className: classNames(`${prefixCls}-copy`, {\n [`${prefixCls}-copy-success`]: copied,\n [`${prefixCls}-copy-icon-only`]: iconOnly\n }),\n onClick: onCopy,\n \"aria-label\": ariaLabel,\n tabIndex: tabIndex\n }, copied ? getNode(iconNodes[1], /*#__PURE__*/React.createElement(CheckOutlined, null), true) : getNode(iconNodes[0], btnLoading ? /*#__PURE__*/React.createElement(LoadingOutlined, null) : /*#__PURE__*/React.createElement(CopyOutlined, null), true)));\n};\nexport default CopyBtn;"],"names":["_ref","prefixCls","copied","locale","iconOnly","tooltips","icon","tabIndex","onCopy","loading","btnLoading","tooltipNodes","toList","iconNodes","copiedText","copy","copyText","systemStr","copyTitle","getNode","ariaLabel","React","createElement","Tooltip","title","TransButton","className","classNames","onClick","CheckOutlined","LoadingOutlined","CopyOutlined"],"mappings":"iqBAUgBA,IACd,IAAIC,UACFA,EAASC,OACTA,EAAMC,OACNA,EAAMC,SACNA,EAAQC,SACRA,EAAQC,KACRA,EAAIC,SACJA,EAAQC,OACRA,EACAC,QAASC,GACPV,EACJ,MAAMW,EAAeC,SAAOP,GACtBQ,EAAYD,SAAON,IAEvBJ,OAAQY,EACRC,KAAMC,GACJb,QAAuCA,EAAS,GAC9Cc,EAAYf,EAASY,EAAaE,EAClCE,EAAYC,EAAOA,QAACR,EAAaT,EAAS,EAAI,GAAIe,GAClDG,EAAiC,iBAAdF,EAAyBA,EAAYD,EAC9D,OAAoBI,EAAMC,cAAcC,EAAS,CAC/CC,MAAON,GACOG,EAAMC,cAAcG,EAAa,CAC/CC,UAAWC,
|
1
|
+
{"version":3,"file":"CopyBtn.js","sources":["../../../../../../../node_modules/antd/es/typography/Base/CopyBtn.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport CheckOutlined from \"@ant-design/icons/es/icons/CheckOutlined\";\nimport CopyOutlined from \"@ant-design/icons/es/icons/CopyOutlined\";\nimport LoadingOutlined from \"@ant-design/icons/es/icons/LoadingOutlined\";\nimport classNames from 'classnames';\nimport TransButton from '../../_util/transButton';\nimport Tooltip from '../../tooltip';\nimport { getNode, toList } from './util';\nconst CopyBtn = _ref => {\n let {\n prefixCls,\n copied,\n locale,\n iconOnly,\n tooltips,\n icon,\n tabIndex,\n onCopy,\n loading: btnLoading\n } = _ref;\n const tooltipNodes = toList(tooltips);\n const iconNodes = toList(icon);\n const {\n copied: copiedText,\n copy: copyText\n } = locale !== null && locale !== void 0 ? locale : {};\n const systemStr = copied ? copiedText : copyText;\n const copyTitle = getNode(tooltipNodes[copied ? 1 : 0], systemStr);\n const ariaLabel = typeof copyTitle === 'string' ? copyTitle : systemStr;\n return /*#__PURE__*/React.createElement(Tooltip, {\n title: copyTitle\n }, /*#__PURE__*/React.createElement(TransButton, {\n className: classNames(`${prefixCls}-copy`, {\n [`${prefixCls}-copy-success`]: copied,\n [`${prefixCls}-copy-icon-only`]: iconOnly\n }),\n onClick: onCopy,\n \"aria-label\": ariaLabel,\n tabIndex: tabIndex\n }, copied ? getNode(iconNodes[1], /*#__PURE__*/React.createElement(CheckOutlined, null), true) : getNode(iconNodes[0], btnLoading ? /*#__PURE__*/React.createElement(LoadingOutlined, null) : /*#__PURE__*/React.createElement(CopyOutlined, null), true)));\n};\nexport default CopyBtn;"],"names":["_ref","prefixCls","copied","locale","iconOnly","tooltips","icon","tabIndex","onCopy","loading","btnLoading","tooltipNodes","toList","iconNodes","copiedText","copy","copyText","systemStr","copyTitle","getNode","ariaLabel","React","createElement","Tooltip","title","TransButton","className","classNames","onClick","CheckOutlined","LoadingOutlined","CopyOutlined"],"mappings":"iqBAUgBA,IACd,IAAIC,UACFA,EAASC,OACTA,EAAMC,OACNA,EAAMC,SACNA,EAAQC,SACRA,EAAQC,KACRA,EAAIC,SACJA,EAAQC,OACRA,EACAC,QAASC,GACPV,EACJ,MAAMW,EAAeC,SAAOP,GACtBQ,EAAYD,SAAON,IAEvBJ,OAAQY,EACRC,KAAMC,GACJb,QAAuCA,EAAS,GAC9Cc,EAAYf,EAASY,EAAaE,EAClCE,EAAYC,EAAOA,QAACR,EAAaT,EAAS,EAAI,GAAIe,GAClDG,EAAiC,iBAAdF,EAAyBA,EAAYD,EAC9D,OAAoBI,EAAMC,cAAcC,EAAS,CAC/CC,MAAON,GACOG,EAAMC,cAAcG,EAAa,CAC/CC,UAAWC,EAAW,GAAG1B,SAAkB,CACzC,CAAC,GAAGA,kBAA2BC,EAC/B,CAAC,GAAGD,oBAA6BG,IAEnCwB,QAASpB,EACT,aAAcY,EACdb,SAAUA,GACTL,EAASiB,EAAOA,QAACN,EAAU,GAAiBQ,EAAMC,cAAcO,EAAe,OAAO,GAAQV,EAAOA,QAACN,EAAU,GAAIH,EAA0BW,EAAMC,cAAcQ,EAAiB,MAAqBT,EAAMC,cAAcS,EAAc,OAAO,IAAO","x_google_ignoreList":[0]}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";var e=require("react"),t=require("../../../../@ant-design/icons/es/icons/EditOutlined.js"),l=require("../../../../classnames/index.js"),n=require("../../../../rc-resize-observer/es/index.js"),i=require("../../../../rc-util/es/Children/toArray.js"),r=require("../../../../rc-util/es/hooks/useLayoutEffect.js"),s=require("../../../../rc-util/es/hooks/useMergedState.js"),o=require("../../../../rc-util/es/omit.js"),a=require("../../../../rc-util/es/ref.js"),c=require("../../../../rc-util/es/Dom/styleChecker.js"),u=require("../../_util/transButton.js");require("../../config-provider/index.js");var d=require("../../locale/useLocale.js"),p=require("../../tooltip/index.js"),f=require("../Editable.js"),b=require("../hooks/useCopyClick.js"),y=require("../hooks/useMergedConfig.js"),m=require("../hooks/usePrevious.js"),x=require("../hooks/useTooltipProps.js"),v=require("../Typography.js"),g=require("./CopyBtn.js"),j=require("./Ellipsis.js"),E=require("./EllipsisTooltip.js"),k=require("./util.js"),C=require("../../config-provider/context.js");function h(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(l){if("default"!==l){var n=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(t,l,n.get?n:{enumerable:!0,get:function(){return e[l]}})}})),t.default=e,Object.freeze(t)}var q=h(e),O=function(e,t){var l={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(l[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(l[n[i]]=e[n[i]])}return l};const S=q.forwardRef(((e,h)=>{var S;const{prefixCls:w,className:P,style:$,type:I,disabled:L,children:M,ellipsis:N,editable:T,copyable:z,component:R,title:D}=e,B=O(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:W,direction:A}=q.useContext(C.ConfigContext),[F]=d("Text"),V=q.useRef(null),_=q.useRef(null),G=W("typography",w),H=o(B,["mark","code","delete","underline","strong","keyboard","italic"]),[J,K]=y(T),[Q,U]=s(!1,{value:K.editing}),{triggerType:X=["icon"]}=K,Y=e=>{var t;e&&(null===(t=K.onStart)||void 0===t||t.call(K)),U(e)},Z=m(Q);r.default((()=>{var e;!Q&&Z&&(null===(e=_.current)||void 0===e||e.focus())}),[Q]);const ee=e=>{null==e||e.preventDefault(),Y(!0)},te=e=>{var t;null===(t=K.onChange)||void 0===t||t.call(K,e),Y(!1)},le=()=>{var e;null===(e=K.onCancel)||void 0===e||e.call(K),Y(!1)},[ne,ie]=y(z),{copied:re,copyLoading:se,onClick:oe}=b({copyConfig:ie,children:M}),[ae,ce]=q.useState(!1),[ue,de]=q.useState(!1),[pe,fe]=q.useState(!1),[be,ye]=q.useState(!1),[me,xe]=q.useState(!0),[ve,ge]=y(N,{expandable:!1,symbol:e=>e?null==F?void 0:F.collapse:null==F?void 0:F.expand}),[je,Ee]=s(ge.defaultExpanded||!1,{value:ge.expanded}),ke=ve&&(!je||"collapsible"===ge.expandable),{rows:Ce=1}=ge,he=q.useMemo((()=>ke&&(void 0!==ge.suffix||ge.onEllipsis||ge.expandable||J||ne)),[ke,ge,J,ne]);r.default((()=>{ve&&!he&&(ce(c.isStyleSupport("webkitLineClamp")),de(c.isStyleSupport("textOverflow")))}),[he,ve]);const[qe,Oe]=q.useState(ke),Se=q.useMemo((()=>!he&&(1===Ce?ue:ae)),[he,ue,ae]);r.default((()=>{Oe(Se&&ke)}),[Se,ke]);const we=ke&&(qe?be:pe),Pe=ke&&1===Ce&&qe,$e=ke&&Ce>1&&qe,[Ie,Le]=q.useState(0),Me=e=>{var t;fe(e),pe!==e&&(null===(t=ge.onEllipsis)||void 0===t||t.call(ge,e))};q.useEffect((()=>{const e=V.current;if(ve&&qe&&e){const t=k.isEleEllipsis(e);be!==t&&ye(t)}}),[ve,qe,M,$e,me,Ie]),q.useEffect((()=>{const e=V.current;if("undefined"==typeof IntersectionObserver||!e||!qe||!ke)return;const t=new IntersectionObserver((()=>{xe(!!e.offsetParent)}));return t.observe(e),()=>{t.disconnect()}}),[qe,ke]);const Ne=x(ge.tooltip,K.text,M),Te=q.useMemo((()=>{if(ve&&!qe)return[K.text,M,D,Ne.title].find(k.isValidText)}),[ve,qe,D,Ne.title,we]);if(Q)return q.createElement(f,{value:null!==(S=K.text)&&void 0!==S?S:"string"==typeof M?M:"",onSave:te,onCancel:le,onEnd:K.onEnd,prefixCls:G,className:P,style:$,direction:A,component:R,maxLength:K.maxLength,autoSize:K.autoSize,enterIcon:K.enterIcon});const ze=()=>{const{expandable:e,symbol:t}=ge;return e?q.createElement(u,{key:"expand",className:`${G}-${je?"collapse":"expand"}`,onClick:e=>((e,t)=>{var l;Ee(t.expanded),null===(l=ge.onExpand)||void 0===l||l.call(ge,e,t)})(e,{expanded:!je}),"aria-label":je?F.collapse:null==F?void 0:F.expand},"function"==typeof t?t(je):t):null},Re=()=>{if(!J)return;const{icon:e,tooltip:l,tabIndex:n}=K,r=i(l)[0]||(null==F?void 0:F.edit),s="string"==typeof r?r:"";return X.includes("icon")?q.createElement(p,{key:"edit",title:!1===l?"":r},q.createElement(u,{ref:_,className:`${G}-edit`,onClick:ee,"aria-label":s,tabIndex:n},e||q.createElement(t,{role:"button"}))):null},De=e=>[e&&ze(),Re(),ne?q.createElement(g,Object.assign({key:"copy"},ie,{prefixCls:G,copied:re,locale:F,onCopy:oe,loading:se,iconOnly:null==M})):null];return q.createElement(n,{onResize:e=>{let{offsetWidth:t}=e;Le(t)},disabled:!ke},(t=>q.createElement(E,{tooltipProps:Ne,enableEllipsis:ke,isEllipsis:we},q.createElement(v,Object.assign({className:l
|
1
|
+
"use strict";var e=require("react"),t=require("../../../../@ant-design/icons/es/icons/EditOutlined.js"),l=require("../../../../classnames/index.js"),n=require("../../../../rc-resize-observer/es/index.js"),i=require("../../../../rc-util/es/Children/toArray.js"),r=require("../../../../rc-util/es/hooks/useLayoutEffect.js"),s=require("../../../../rc-util/es/hooks/useMergedState.js"),o=require("../../../../rc-util/es/omit.js"),a=require("../../../../rc-util/es/ref.js"),c=require("../../../../rc-util/es/Dom/styleChecker.js"),u=require("../../_util/transButton.js");require("../../config-provider/index.js");var d=require("../../locale/useLocale.js"),p=require("../../tooltip/index.js"),f=require("../Editable.js"),b=require("../hooks/useCopyClick.js"),y=require("../hooks/useMergedConfig.js"),m=require("../hooks/usePrevious.js"),x=require("../hooks/useTooltipProps.js"),v=require("../Typography.js"),g=require("./CopyBtn.js"),j=require("./Ellipsis.js"),E=require("./EllipsisTooltip.js"),k=require("./util.js"),C=require("../../config-provider/context.js");function h(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(l){if("default"!==l){var n=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(t,l,n.get?n:{enumerable:!0,get:function(){return e[l]}})}})),t.default=e,Object.freeze(t)}var q=h(e),O=function(e,t){var l={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(l[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(l[n[i]]=e[n[i]])}return l};const S=q.forwardRef(((e,h)=>{var S;const{prefixCls:w,className:P,style:$,type:I,disabled:L,children:M,ellipsis:N,editable:T,copyable:z,component:R,title:D}=e,B=O(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:W,direction:A}=q.useContext(C.ConfigContext),[F]=d("Text"),V=q.useRef(null),_=q.useRef(null),G=W("typography",w),H=o(B,["mark","code","delete","underline","strong","keyboard","italic"]),[J,K]=y(T),[Q,U]=s(!1,{value:K.editing}),{triggerType:X=["icon"]}=K,Y=e=>{var t;e&&(null===(t=K.onStart)||void 0===t||t.call(K)),U(e)},Z=m(Q);r.default((()=>{var e;!Q&&Z&&(null===(e=_.current)||void 0===e||e.focus())}),[Q]);const ee=e=>{null==e||e.preventDefault(),Y(!0)},te=e=>{var t;null===(t=K.onChange)||void 0===t||t.call(K,e),Y(!1)},le=()=>{var e;null===(e=K.onCancel)||void 0===e||e.call(K),Y(!1)},[ne,ie]=y(z),{copied:re,copyLoading:se,onClick:oe}=b({copyConfig:ie,children:M}),[ae,ce]=q.useState(!1),[ue,de]=q.useState(!1),[pe,fe]=q.useState(!1),[be,ye]=q.useState(!1),[me,xe]=q.useState(!0),[ve,ge]=y(N,{expandable:!1,symbol:e=>e?null==F?void 0:F.collapse:null==F?void 0:F.expand}),[je,Ee]=s(ge.defaultExpanded||!1,{value:ge.expanded}),ke=ve&&(!je||"collapsible"===ge.expandable),{rows:Ce=1}=ge,he=q.useMemo((()=>ke&&(void 0!==ge.suffix||ge.onEllipsis||ge.expandable||J||ne)),[ke,ge,J,ne]);r.default((()=>{ve&&!he&&(ce(c.isStyleSupport("webkitLineClamp")),de(c.isStyleSupport("textOverflow")))}),[he,ve]);const[qe,Oe]=q.useState(ke),Se=q.useMemo((()=>!he&&(1===Ce?ue:ae)),[he,ue,ae]);r.default((()=>{Oe(Se&&ke)}),[Se,ke]);const we=ke&&(qe?be:pe),Pe=ke&&1===Ce&&qe,$e=ke&&Ce>1&&qe,[Ie,Le]=q.useState(0),Me=e=>{var t;fe(e),pe!==e&&(null===(t=ge.onEllipsis)||void 0===t||t.call(ge,e))};q.useEffect((()=>{const e=V.current;if(ve&&qe&&e){const t=k.isEleEllipsis(e);be!==t&&ye(t)}}),[ve,qe,M,$e,me,Ie]),q.useEffect((()=>{const e=V.current;if("undefined"==typeof IntersectionObserver||!e||!qe||!ke)return;const t=new IntersectionObserver((()=>{xe(!!e.offsetParent)}));return t.observe(e),()=>{t.disconnect()}}),[qe,ke]);const Ne=x(ge.tooltip,K.text,M),Te=q.useMemo((()=>{if(ve&&!qe)return[K.text,M,D,Ne.title].find(k.isValidText)}),[ve,qe,D,Ne.title,we]);if(Q)return q.createElement(f,{value:null!==(S=K.text)&&void 0!==S?S:"string"==typeof M?M:"",onSave:te,onCancel:le,onEnd:K.onEnd,prefixCls:G,className:P,style:$,direction:A,component:R,maxLength:K.maxLength,autoSize:K.autoSize,enterIcon:K.enterIcon});const ze=()=>{const{expandable:e,symbol:t}=ge;return e?q.createElement(u,{key:"expand",className:`${G}-${je?"collapse":"expand"}`,onClick:e=>((e,t)=>{var l;Ee(t.expanded),null===(l=ge.onExpand)||void 0===l||l.call(ge,e,t)})(e,{expanded:!je}),"aria-label":je?F.collapse:null==F?void 0:F.expand},"function"==typeof t?t(je):t):null},Re=()=>{if(!J)return;const{icon:e,tooltip:l,tabIndex:n}=K,r=i(l)[0]||(null==F?void 0:F.edit),s="string"==typeof r?r:"";return X.includes("icon")?q.createElement(p,{key:"edit",title:!1===l?"":r},q.createElement(u,{ref:_,className:`${G}-edit`,onClick:ee,"aria-label":s,tabIndex:n},e||q.createElement(t,{role:"button"}))):null},De=e=>[e&&ze(),Re(),ne?q.createElement(g,Object.assign({key:"copy"},ie,{prefixCls:G,copied:re,locale:F,onCopy:oe,loading:se,iconOnly:null==M})):null];return q.createElement(n,{onResize:e=>{let{offsetWidth:t}=e;Le(t)},disabled:!ke},(t=>q.createElement(E,{tooltipProps:Ne,enableEllipsis:ke,isEllipsis:we},q.createElement(v,Object.assign({className:l({[`${G}-${I}`]:I,[`${G}-disabled`]:L,[`${G}-ellipsis`]:ve,[`${G}-ellipsis-single-line`]:Pe,[`${G}-ellipsis-multiple-line`]:$e},P),prefixCls:w,style:Object.assign(Object.assign({},$),{WebkitLineClamp:$e?Ce:void 0}),component:R,ref:a.composeRef(t,V,h),direction:A,onClick:X.includes("text")?ee:void 0,"aria-label":null==Te?void 0:Te.toString(),title:D},H),q.createElement(j,{enableMeasure:ke&&!qe,text:M,rows:Ce,width:Ie,onEllipsis:Me,expanded:je,miscDeps:[re,je,se,J,ne]},((t,l)=>function(e,t){let{mark:l,code:n,underline:i,delete:r,strong:s,keyboard:o,italic:a}=e,c=t;function u(e,t){t&&(c=q.createElement(e,{},c))}return u("strong",s),u("u",i),u("del",r),u("code",n),u("mark",l),u("kbd",o),u("i",a),c}(e,q.createElement(q.Fragment,null,t.length>0&&l&&!je&&Te?q.createElement("span",{key:"show-content","aria-hidden":!0},t):t,(e=>[e&&!je&&q.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),ge.suffix,De(e)])(l)))))))))}));module.exports=S;
|
2
2
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../node_modules/antd/es/typography/Base/index.js"],"sourcesContent":["\"use client\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport * as React from 'react';\nimport EditOutlined from \"@ant-design/icons/es/icons/EditOutlined\";\nimport classNames from 'classnames';\nimport ResizeObserver from 'rc-resize-observer';\nimport toArray from \"rc-util/es/Children/toArray\";\nimport useLayoutEffect from \"rc-util/es/hooks/useLayoutEffect\";\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport omit from \"rc-util/es/omit\";\nimport { composeRef } from \"rc-util/es/ref\";\nimport { isStyleSupport } from '../../_util/styleChecker';\nimport TransButton from '../../_util/transButton';\nimport { ConfigContext } from '../../config-provider';\nimport useLocale from '../../locale/useLocale';\nimport Tooltip from '../../tooltip';\nimport Editable from '../Editable';\nimport useCopyClick from '../hooks/useCopyClick';\nimport useMergedConfig from '../hooks/useMergedConfig';\nimport usePrevious from '../hooks/usePrevious';\nimport useTooltipProps from '../hooks/useTooltipProps';\nimport Typography from '../Typography';\nimport CopyBtn from './CopyBtn';\nimport Ellipsis from './Ellipsis';\nimport EllipsisTooltip from './EllipsisTooltip';\nimport { isEleEllipsis, isValidText } from './util';\nfunction wrapperDecorations(_ref, content) {\n let {\n mark,\n code,\n underline,\n delete: del,\n strong,\n keyboard,\n italic\n } = _ref;\n let currentContent = content;\n function wrap(tag, needed) {\n if (!needed) {\n return;\n }\n currentContent = /*#__PURE__*/React.createElement(tag, {}, currentContent);\n }\n wrap('strong', strong);\n wrap('u', underline);\n wrap('del', del);\n wrap('code', code);\n wrap('mark', mark);\n wrap('kbd', keyboard);\n wrap('i', italic);\n return currentContent;\n}\nconst ELLIPSIS_STR = '...';\nconst Base = /*#__PURE__*/React.forwardRef((props, ref) => {\n var _a;\n const {\n prefixCls: customizePrefixCls,\n className,\n style,\n type,\n disabled,\n children,\n ellipsis,\n editable,\n copyable,\n component,\n title\n } = props,\n restProps = __rest(props, [\"prefixCls\", \"className\", \"style\", \"type\", \"disabled\", \"children\", \"ellipsis\", \"editable\", \"copyable\", \"component\", \"title\"]);\n const {\n getPrefixCls,\n direction\n } = React.useContext(ConfigContext);\n const [textLocale] = useLocale('Text');\n const typographyRef = React.useRef(null);\n const editIconRef = React.useRef(null);\n // ============================ MISC ============================\n const prefixCls = getPrefixCls('typography', customizePrefixCls);\n const textProps = omit(restProps, ['mark', 'code', 'delete', 'underline', 'strong', 'keyboard', 'italic']);\n // ========================== Editable ==========================\n const [enableEdit, editConfig] = useMergedConfig(editable);\n const [editing, setEditing] = useMergedState(false, {\n value: editConfig.editing\n });\n const {\n triggerType = ['icon']\n } = editConfig;\n const triggerEdit = edit => {\n var _a;\n if (edit) {\n (_a = editConfig.onStart) === null || _a === void 0 ? void 0 : _a.call(editConfig);\n }\n setEditing(edit);\n };\n // Focus edit icon when back\n const prevEditing = usePrevious(editing);\n useLayoutEffect(() => {\n var _a;\n if (!editing && prevEditing) {\n (_a = editIconRef.current) === null || _a === void 0 ? void 0 : _a.focus();\n }\n }, [editing]);\n const onEditClick = e => {\n e === null || e === void 0 ? void 0 : e.preventDefault();\n triggerEdit(true);\n };\n const onEditChange = value => {\n var _a;\n (_a = editConfig.onChange) === null || _a === void 0 ? void 0 : _a.call(editConfig, value);\n triggerEdit(false);\n };\n const onEditCancel = () => {\n var _a;\n (_a = editConfig.onCancel) === null || _a === void 0 ? void 0 : _a.call(editConfig);\n triggerEdit(false);\n };\n // ========================== Copyable ==========================\n const [enableCopy, copyConfig] = useMergedConfig(copyable);\n const {\n copied,\n copyLoading,\n onClick: onCopyClick\n } = useCopyClick({\n copyConfig,\n children\n });\n // ========================== Ellipsis ==========================\n const [isLineClampSupport, setIsLineClampSupport] = React.useState(false);\n const [isTextOverflowSupport, setIsTextOverflowSupport] = React.useState(false);\n const [isJsEllipsis, setIsJsEllipsis] = React.useState(false);\n const [isNativeEllipsis, setIsNativeEllipsis] = React.useState(false);\n const [isNativeVisible, setIsNativeVisible] = React.useState(true);\n const [enableEllipsis, ellipsisConfig] = useMergedConfig(ellipsis, {\n expandable: false,\n symbol: isExpanded => isExpanded ? textLocale === null || textLocale === void 0 ? void 0 : textLocale.collapse : textLocale === null || textLocale === void 0 ? void 0 : textLocale.expand\n });\n const [expanded, setExpanded] = useMergedState(ellipsisConfig.defaultExpanded || false, {\n value: ellipsisConfig.expanded\n });\n const mergedEnableEllipsis = enableEllipsis && (!expanded || ellipsisConfig.expandable === 'collapsible');\n // Shared prop to reduce bundle size\n const {\n rows = 1\n } = ellipsisConfig;\n const needMeasureEllipsis = React.useMemo(() =>\n // Disable ellipsis\n mergedEnableEllipsis && (\n // Provide suffix\n ellipsisConfig.suffix !== undefined || ellipsisConfig.onEllipsis ||\n // Can't use css ellipsis since we need to provide the place for button\n ellipsisConfig.expandable || enableEdit || enableCopy), [mergedEnableEllipsis, ellipsisConfig, enableEdit, enableCopy]);\n useLayoutEffect(() => {\n if (enableEllipsis && !needMeasureEllipsis) {\n setIsLineClampSupport(isStyleSupport('webkitLineClamp'));\n setIsTextOverflowSupport(isStyleSupport('textOverflow'));\n }\n }, [needMeasureEllipsis, enableEllipsis]);\n const [cssEllipsis, setCssEllipsis] = React.useState(mergedEnableEllipsis);\n const canUseCssEllipsis = React.useMemo(() => {\n if (needMeasureEllipsis) {\n return false;\n }\n if (rows === 1) {\n return isTextOverflowSupport;\n }\n return isLineClampSupport;\n }, [needMeasureEllipsis, isTextOverflowSupport, isLineClampSupport]);\n // We use effect to change from css ellipsis to js ellipsis.\n // To make SSR still can see the ellipsis.\n useLayoutEffect(() => {\n setCssEllipsis(canUseCssEllipsis && mergedEnableEllipsis);\n }, [canUseCssEllipsis, mergedEnableEllipsis]);\n const isMergedEllipsis = mergedEnableEllipsis && (cssEllipsis ? isNativeEllipsis : isJsEllipsis);\n const cssTextOverflow = mergedEnableEllipsis && rows === 1 && cssEllipsis;\n const cssLineClamp = mergedEnableEllipsis && rows > 1 && cssEllipsis;\n // >>>>> Expand\n const onExpandClick = (e, info) => {\n var _a;\n setExpanded(info.expanded);\n (_a = ellipsisConfig.onExpand) === null || _a === void 0 ? void 0 : _a.call(ellipsisConfig, e, info);\n };\n const [ellipsisWidth, setEllipsisWidth] = React.useState(0);\n const onResize = _ref2 => {\n let {\n offsetWidth\n } = _ref2;\n setEllipsisWidth(offsetWidth);\n };\n // >>>>> JS Ellipsis\n const onJsEllipsis = jsEllipsis => {\n var _a;\n setIsJsEllipsis(jsEllipsis);\n // Trigger if changed\n if (isJsEllipsis !== jsEllipsis) {\n (_a = ellipsisConfig.onEllipsis) === null || _a === void 0 ? void 0 : _a.call(ellipsisConfig, jsEllipsis);\n }\n };\n // >>>>> Native ellipsis\n React.useEffect(() => {\n const textEle = typographyRef.current;\n if (enableEllipsis && cssEllipsis && textEle) {\n const currentEllipsis = isEleEllipsis(textEle);\n if (isNativeEllipsis !== currentEllipsis) {\n setIsNativeEllipsis(currentEllipsis);\n }\n }\n }, [enableEllipsis, cssEllipsis, children, cssLineClamp, isNativeVisible, ellipsisWidth]);\n // https://github.com/ant-design/ant-design/issues/36786\n // Use IntersectionObserver to check if element is invisible\n React.useEffect(() => {\n const textEle = typographyRef.current;\n if (typeof IntersectionObserver === 'undefined' || !textEle || !cssEllipsis || !mergedEnableEllipsis) {\n return;\n }\n /* eslint-disable-next-line compat/compat */\n const observer = new IntersectionObserver(() => {\n setIsNativeVisible(!!textEle.offsetParent);\n });\n observer.observe(textEle);\n return () => {\n observer.disconnect();\n };\n }, [cssEllipsis, mergedEnableEllipsis]);\n // ========================== Tooltip ===========================\n const tooltipProps = useTooltipProps(ellipsisConfig.tooltip, editConfig.text, children);\n const topAriaLabel = React.useMemo(() => {\n if (!enableEllipsis || cssEllipsis) {\n return undefined;\n }\n return [editConfig.text, children, title, tooltipProps.title].find(isValidText);\n }, [enableEllipsis, cssEllipsis, title, tooltipProps.title, isMergedEllipsis]);\n // =========================== Render ===========================\n // >>>>>>>>>>> Editing input\n if (editing) {\n return /*#__PURE__*/React.createElement(Editable, {\n value: (_a = editConfig.text) !== null && _a !== void 0 ? _a : typeof children === 'string' ? children : '',\n onSave: onEditChange,\n onCancel: onEditCancel,\n onEnd: editConfig.onEnd,\n prefixCls: prefixCls,\n className: className,\n style: style,\n direction: direction,\n component: component,\n maxLength: editConfig.maxLength,\n autoSize: editConfig.autoSize,\n enterIcon: editConfig.enterIcon\n });\n }\n // >>>>>>>>>>> Typography\n // Expand\n const renderExpand = () => {\n const {\n expandable,\n symbol\n } = ellipsisConfig;\n return expandable ? (/*#__PURE__*/React.createElement(TransButton, {\n key: \"expand\",\n className: `${prefixCls}-${expanded ? 'collapse' : 'expand'}`,\n onClick: e => onExpandClick(e, {\n expanded: !expanded\n }),\n \"aria-label\": expanded ? textLocale.collapse : textLocale === null || textLocale === void 0 ? void 0 : textLocale.expand\n }, typeof symbol === 'function' ? symbol(expanded) : symbol)) : null;\n };\n // Edit\n const renderEdit = () => {\n if (!enableEdit) {\n return;\n }\n const {\n icon,\n tooltip,\n tabIndex\n } = editConfig;\n const editTitle = toArray(tooltip)[0] || (textLocale === null || textLocale === void 0 ? void 0 : textLocale.edit);\n const ariaLabel = typeof editTitle === 'string' ? editTitle : '';\n return triggerType.includes('icon') ? (/*#__PURE__*/React.createElement(Tooltip, {\n key: \"edit\",\n title: tooltip === false ? '' : editTitle\n }, /*#__PURE__*/React.createElement(TransButton, {\n ref: editIconRef,\n className: `${prefixCls}-edit`,\n onClick: onEditClick,\n \"aria-label\": ariaLabel,\n tabIndex: tabIndex\n }, icon || /*#__PURE__*/React.createElement(EditOutlined, {\n role: \"button\"\n })))) : null;\n };\n // Copy\n const renderCopy = () => {\n if (!enableCopy) {\n return null;\n }\n return /*#__PURE__*/React.createElement(CopyBtn, Object.assign({\n key: \"copy\"\n }, copyConfig, {\n prefixCls: prefixCls,\n copied: copied,\n locale: textLocale,\n onCopy: onCopyClick,\n loading: copyLoading,\n iconOnly: children === null || children === undefined\n }));\n };\n const renderOperations = canEllipsis => [canEllipsis && renderExpand(), renderEdit(), renderCopy()];\n const renderEllipsis = canEllipsis => [canEllipsis && !expanded && (/*#__PURE__*/React.createElement(\"span\", {\n \"aria-hidden\": true,\n key: \"ellipsis\"\n }, ELLIPSIS_STR)), ellipsisConfig.suffix, renderOperations(canEllipsis)];\n return /*#__PURE__*/React.createElement(ResizeObserver, {\n onResize: onResize,\n disabled: !mergedEnableEllipsis\n }, resizeRef => (/*#__PURE__*/React.createElement(EllipsisTooltip, {\n tooltipProps: tooltipProps,\n enableEllipsis: mergedEnableEllipsis,\n isEllipsis: isMergedEllipsis\n }, /*#__PURE__*/React.createElement(Typography, Object.assign({\n className: classNames({\n [`${prefixCls}-${type}`]: type,\n [`${prefixCls}-disabled`]: disabled,\n [`${prefixCls}-ellipsis`]: enableEllipsis,\n [`${prefixCls}-ellipsis-single-line`]: cssTextOverflow,\n [`${prefixCls}-ellipsis-multiple-line`]: cssLineClamp\n }, className),\n prefixCls: customizePrefixCls,\n style: Object.assign(Object.assign({}, style), {\n WebkitLineClamp: cssLineClamp ? rows : undefined\n }),\n component: component,\n ref: composeRef(resizeRef, typographyRef, ref),\n direction: direction,\n onClick: triggerType.includes('text') ? onEditClick : undefined,\n \"aria-label\": topAriaLabel === null || topAriaLabel === void 0 ? void 0 : topAriaLabel.toString(),\n title: title\n }, textProps), /*#__PURE__*/React.createElement(Ellipsis, {\n enableMeasure: mergedEnableEllipsis && !cssEllipsis,\n text: children,\n rows: rows,\n width: ellipsisWidth,\n onEllipsis: onJsEllipsis,\n expanded: expanded,\n miscDeps: [copied, expanded, copyLoading, enableEdit, enableCopy]\n }, (node, canEllipsis) => wrapperDecorations(props, /*#__PURE__*/React.createElement(React.Fragment, null, node.length > 0 && canEllipsis && !expanded && topAriaLabel ? (/*#__PURE__*/React.createElement(\"span\", {\n key: \"show-content\",\n \"aria-hidden\": true\n }, node)) : node, renderEllipsis(canEllipsis))))))));\n});\nexport default Base;"],"names":["__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","Base","React","forwardRef","props","ref","_a","prefixCls","customizePrefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title","restProps","getPrefixCls","direction","useContext","ConfigContext","textLocale","useLocale","typographyRef","useRef","editIconRef","textProps","omit","enableEdit","editConfig","useMergedConfig","editing","setEditing","useMergedState","value","triggerType","triggerEdit","edit","onStart","prevEditing","usePrevious","useLayoutEffect","current","focus","onEditClick","preventDefault","onEditChange","onChange","onEditCancel","onCancel","enableCopy","copyConfig","copied","copyLoading","onClick","onCopyClick","useCopyClick","isLineClampSupport","setIsLineClampSupport","useState","isTextOverflowSupport","setIsTextOverflowSupport","isJsEllipsis","setIsJsEllipsis","isNativeEllipsis","setIsNativeEllipsis","isNativeVisible","setIsNativeVisible","enableEllipsis","ellipsisConfig","expandable","symbol","isExpanded","collapse","expand","expanded","setExpanded","defaultExpanded","mergedEnableEllipsis","rows","needMeasureEllipsis","useMemo","undefined","suffix","onEllipsis","isStyleSupport","cssEllipsis","setCssEllipsis","canUseCssEllipsis","isMergedEllipsis","cssTextOverflow","cssLineClamp","ellipsisWidth","setEllipsisWidth","onJsEllipsis","jsEllipsis","useEffect","textEle","currentEllipsis","isEleEllipsis","IntersectionObserver","observer","offsetParent","observe","disconnect","tooltipProps","useTooltipProps","tooltip","text","topAriaLabel","find","isValidText","createElement","Editable","onSave","onEnd","maxLength","autoSize","enterIcon","renderExpand","TransButton","key","info","onExpand","onExpandClick","renderEdit","icon","tabIndex","editTitle","toArray","ariaLabel","includes","Tooltip","EditOutlined","role","renderOperations","canEllipsis","CopyBtn","assign","locale","onCopy","loading","iconOnly","ResizeObserver","onResize","_ref2","offsetWidth","resizeRef","EllipsisTooltip","isEllipsis","Typography","classNames","WebkitLineClamp","composeRef","toString","Ellipsis","enableMeasure","width","miscDeps","node","_ref","content","mark","code","underline","delete","del","strong","keyboard","italic","currentContent","wrap","tag","needed","wrapperDecorations","Fragment","renderEllipsis"],"mappings":"+yCAEIA,EAAgC,SAAUC,EAAGC,GAC/C,IAAIC,EAAI,CAAA,EACR,IAAK,IAAIC,KAAKH,EAAOI,OAAOC,UAAUC,eAAeC,KAAKP,EAAGG,IAAMF,EAAEO,QAAQL,GAAK,IAAGD,EAAEC,GAAKH,EAAEG,IAC9F,GAAS,MAALH,GAAqD,mBAAjCI,OAAOK,sBAA2C,KAAIC,EAAI,EAAb,IAAgBP,EAAIC,OAAOK,sBAAsBT,GAAIU,EAAIP,EA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,UACJA,EACAC,OAAQC,EAAGC,OACXA,EAAMC,SACNA,EAAQC,OACRA,GACET,EACAU,EAAiBT,EACrB,SAASU,EAAKC,EAAKC,GACZA,IAGLH,EAA8B3K,EAAMiH,cAAc4D,EAAK,CAAE,EAAEF,GAC5D,CAQD,OAPAC,EAAK,SAAUJ,GACfI,EAAK,IAAKP,GACVO,EAAK,MAAOL,GACZK,EAAK,OAAQR,GACbQ,EAAK,OAAQT,GACbS,EAAK,MAAOH,GACZG,EAAK,IAAKF,GACHC,CACT,CAqS4BI,CAAmB7K,EAAoBF,EAAMiH,cAAcjH,EAAMgL,SAAU,KAAMhB,EAAKnK,OAAS,GAAK4I,IAAgB7D,IAAYkC,GAA6B9G,EAAMiH,cAAc,OAAQ,CACjNS,IAAK,eACL,eAAe,GACdsC,GAASA,EAxCWvB,IAAe,CAACA,IAAgB7D,IAA0B5E,EAAMiH,cAAc,OAAQ,CAC3G,eAAe,EACfS,IAAK,YAjQY,OAkQApD,GAAec,OAAQoD,GAAiBC,IAqCzCwC,CAAexC,UAAmB","x_google_ignoreList":[0]}
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../node_modules/antd/es/typography/Base/index.js"],"sourcesContent":["\"use client\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport * as React from 'react';\nimport EditOutlined from \"@ant-design/icons/es/icons/EditOutlined\";\nimport classNames from 'classnames';\nimport ResizeObserver from 'rc-resize-observer';\nimport toArray from \"rc-util/es/Children/toArray\";\nimport useLayoutEffect from \"rc-util/es/hooks/useLayoutEffect\";\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport omit from \"rc-util/es/omit\";\nimport { composeRef } from \"rc-util/es/ref\";\nimport { isStyleSupport } from '../../_util/styleChecker';\nimport TransButton from '../../_util/transButton';\nimport { ConfigContext } from '../../config-provider';\nimport useLocale from '../../locale/useLocale';\nimport Tooltip from '../../tooltip';\nimport Editable from '../Editable';\nimport useCopyClick from '../hooks/useCopyClick';\nimport useMergedConfig from '../hooks/useMergedConfig';\nimport usePrevious from '../hooks/usePrevious';\nimport useTooltipProps from '../hooks/useTooltipProps';\nimport Typography from '../Typography';\nimport CopyBtn from './CopyBtn';\nimport Ellipsis from './Ellipsis';\nimport EllipsisTooltip from './EllipsisTooltip';\nimport { isEleEllipsis, isValidText } from './util';\nfunction wrapperDecorations(_ref, content) {\n let {\n mark,\n code,\n underline,\n delete: del,\n strong,\n keyboard,\n italic\n } = _ref;\n let currentContent = content;\n function wrap(tag, needed) {\n if (!needed) {\n return;\n }\n currentContent = /*#__PURE__*/React.createElement(tag, {}, currentContent);\n }\n wrap('strong', strong);\n wrap('u', underline);\n wrap('del', del);\n wrap('code', code);\n wrap('mark', mark);\n wrap('kbd', keyboard);\n wrap('i', italic);\n return currentContent;\n}\nconst ELLIPSIS_STR = '...';\nconst Base = /*#__PURE__*/React.forwardRef((props, ref) => {\n var _a;\n const {\n prefixCls: customizePrefixCls,\n className,\n style,\n type,\n disabled,\n children,\n ellipsis,\n editable,\n copyable,\n component,\n title\n } = props,\n restProps = __rest(props, [\"prefixCls\", \"className\", \"style\", \"type\", \"disabled\", \"children\", \"ellipsis\", \"editable\", \"copyable\", \"component\", \"title\"]);\n const {\n getPrefixCls,\n direction\n } = React.useContext(ConfigContext);\n const [textLocale] = useLocale('Text');\n const typographyRef = React.useRef(null);\n const editIconRef = React.useRef(null);\n // ============================ MISC ============================\n const prefixCls = getPrefixCls('typography', customizePrefixCls);\n const textProps = omit(restProps, ['mark', 'code', 'delete', 'underline', 'strong', 'keyboard', 'italic']);\n // ========================== Editable ==========================\n const [enableEdit, editConfig] = useMergedConfig(editable);\n const [editing, setEditing] = useMergedState(false, {\n value: editConfig.editing\n });\n const {\n triggerType = ['icon']\n } = editConfig;\n const triggerEdit = edit => {\n var _a;\n if (edit) {\n (_a = editConfig.onStart) === null || _a === void 0 ? void 0 : _a.call(editConfig);\n }\n setEditing(edit);\n };\n // Focus edit icon when back\n const prevEditing = usePrevious(editing);\n useLayoutEffect(() => {\n var _a;\n if (!editing && prevEditing) {\n (_a = editIconRef.current) === null || _a === void 0 ? void 0 : _a.focus();\n }\n }, [editing]);\n const onEditClick = e => {\n e === null || e === void 0 ? void 0 : e.preventDefault();\n triggerEdit(true);\n };\n const onEditChange = value => {\n var _a;\n (_a = editConfig.onChange) === null || _a === void 0 ? void 0 : _a.call(editConfig, value);\n triggerEdit(false);\n };\n const onEditCancel = () => {\n var _a;\n (_a = editConfig.onCancel) === null || _a === void 0 ? void 0 : _a.call(editConfig);\n triggerEdit(false);\n };\n // ========================== Copyable ==========================\n const [enableCopy, copyConfig] = useMergedConfig(copyable);\n const {\n copied,\n copyLoading,\n onClick: onCopyClick\n } = useCopyClick({\n copyConfig,\n children\n });\n // ========================== Ellipsis ==========================\n const [isLineClampSupport, setIsLineClampSupport] = React.useState(false);\n const [isTextOverflowSupport, setIsTextOverflowSupport] = React.useState(false);\n const [isJsEllipsis, setIsJsEllipsis] = React.useState(false);\n const [isNativeEllipsis, setIsNativeEllipsis] = React.useState(false);\n const [isNativeVisible, setIsNativeVisible] = React.useState(true);\n const [enableEllipsis, ellipsisConfig] = useMergedConfig(ellipsis, {\n expandable: false,\n symbol: isExpanded => isExpanded ? textLocale === null || textLocale === void 0 ? void 0 : textLocale.collapse : textLocale === null || textLocale === void 0 ? void 0 : textLocale.expand\n });\n const [expanded, setExpanded] = useMergedState(ellipsisConfig.defaultExpanded || false, {\n value: ellipsisConfig.expanded\n });\n const mergedEnableEllipsis = enableEllipsis && (!expanded || ellipsisConfig.expandable === 'collapsible');\n // Shared prop to reduce bundle size\n const {\n rows = 1\n } = ellipsisConfig;\n const needMeasureEllipsis = React.useMemo(() =>\n // Disable ellipsis\n mergedEnableEllipsis && (\n // Provide suffix\n ellipsisConfig.suffix !== undefined || ellipsisConfig.onEllipsis ||\n // Can't use css ellipsis since we need to provide the place for button\n ellipsisConfig.expandable || enableEdit || enableCopy), [mergedEnableEllipsis, ellipsisConfig, enableEdit, enableCopy]);\n useLayoutEffect(() => {\n if (enableEllipsis && !needMeasureEllipsis) {\n setIsLineClampSupport(isStyleSupport('webkitLineClamp'));\n setIsTextOverflowSupport(isStyleSupport('textOverflow'));\n }\n }, [needMeasureEllipsis, enableEllipsis]);\n const [cssEllipsis, setCssEllipsis] = React.useState(mergedEnableEllipsis);\n const canUseCssEllipsis = React.useMemo(() => {\n if (needMeasureEllipsis) {\n return false;\n }\n if (rows === 1) {\n return isTextOverflowSupport;\n }\n return isLineClampSupport;\n }, [needMeasureEllipsis, isTextOverflowSupport, isLineClampSupport]);\n // We use effect to change from css ellipsis to js ellipsis.\n // To make SSR still can see the ellipsis.\n useLayoutEffect(() => {\n setCssEllipsis(canUseCssEllipsis && mergedEnableEllipsis);\n }, [canUseCssEllipsis, mergedEnableEllipsis]);\n const isMergedEllipsis = mergedEnableEllipsis && (cssEllipsis ? isNativeEllipsis : isJsEllipsis);\n const cssTextOverflow = mergedEnableEllipsis && rows === 1 && cssEllipsis;\n const cssLineClamp = mergedEnableEllipsis && rows > 1 && cssEllipsis;\n // >>>>> Expand\n const onExpandClick = (e, info) => {\n var _a;\n setExpanded(info.expanded);\n (_a = ellipsisConfig.onExpand) === null || _a === void 0 ? void 0 : _a.call(ellipsisConfig, e, info);\n };\n const [ellipsisWidth, setEllipsisWidth] = React.useState(0);\n const onResize = _ref2 => {\n let {\n offsetWidth\n } = _ref2;\n setEllipsisWidth(offsetWidth);\n };\n // >>>>> JS Ellipsis\n const onJsEllipsis = jsEllipsis => {\n var _a;\n setIsJsEllipsis(jsEllipsis);\n // Trigger if changed\n if (isJsEllipsis !== jsEllipsis) {\n (_a = ellipsisConfig.onEllipsis) === null || _a === void 0 ? void 0 : _a.call(ellipsisConfig, jsEllipsis);\n }\n };\n // >>>>> Native ellipsis\n React.useEffect(() => {\n const textEle = typographyRef.current;\n if (enableEllipsis && cssEllipsis && textEle) {\n const currentEllipsis = isEleEllipsis(textEle);\n if (isNativeEllipsis !== currentEllipsis) {\n setIsNativeEllipsis(currentEllipsis);\n }\n }\n }, [enableEllipsis, cssEllipsis, children, cssLineClamp, isNativeVisible, ellipsisWidth]);\n // https://github.com/ant-design/ant-design/issues/36786\n // Use IntersectionObserver to check if element is invisible\n React.useEffect(() => {\n const textEle = typographyRef.current;\n if (typeof IntersectionObserver === 'undefined' || !textEle || !cssEllipsis || !mergedEnableEllipsis) {\n return;\n }\n /* eslint-disable-next-line compat/compat */\n const observer = new IntersectionObserver(() => {\n setIsNativeVisible(!!textEle.offsetParent);\n });\n observer.observe(textEle);\n return () => {\n observer.disconnect();\n };\n }, [cssEllipsis, mergedEnableEllipsis]);\n // ========================== Tooltip ===========================\n const tooltipProps = useTooltipProps(ellipsisConfig.tooltip, editConfig.text, children);\n const topAriaLabel = React.useMemo(() => {\n if (!enableEllipsis || cssEllipsis) {\n return undefined;\n }\n return [editConfig.text, children, title, tooltipProps.title].find(isValidText);\n }, [enableEllipsis, cssEllipsis, title, tooltipProps.title, isMergedEllipsis]);\n // =========================== Render ===========================\n // >>>>>>>>>>> Editing input\n if (editing) {\n return /*#__PURE__*/React.createElement(Editable, {\n value: (_a = editConfig.text) !== null && _a !== void 0 ? _a : typeof children === 'string' ? children : '',\n onSave: onEditChange,\n onCancel: onEditCancel,\n onEnd: editConfig.onEnd,\n prefixCls: prefixCls,\n className: className,\n style: style,\n direction: direction,\n component: component,\n maxLength: editConfig.maxLength,\n autoSize: editConfig.autoSize,\n enterIcon: editConfig.enterIcon\n });\n }\n // >>>>>>>>>>> Typography\n // Expand\n const renderExpand = () => {\n const {\n expandable,\n symbol\n } = ellipsisConfig;\n return expandable ? (/*#__PURE__*/React.createElement(TransButton, {\n key: \"expand\",\n className: `${prefixCls}-${expanded ? 'collapse' : 'expand'}`,\n onClick: e => onExpandClick(e, {\n expanded: !expanded\n }),\n \"aria-label\": expanded ? textLocale.collapse : textLocale === null || textLocale === void 0 ? void 0 : textLocale.expand\n }, typeof symbol === 'function' ? symbol(expanded) : symbol)) : null;\n };\n // Edit\n const renderEdit = () => {\n if (!enableEdit) {\n return;\n }\n const {\n icon,\n tooltip,\n tabIndex\n } = editConfig;\n const editTitle = toArray(tooltip)[0] || (textLocale === null || textLocale === void 0 ? void 0 : textLocale.edit);\n const ariaLabel = typeof editTitle === 'string' ? editTitle : '';\n return triggerType.includes('icon') ? (/*#__PURE__*/React.createElement(Tooltip, {\n key: \"edit\",\n title: tooltip === false ? '' : editTitle\n }, /*#__PURE__*/React.createElement(TransButton, {\n ref: editIconRef,\n className: `${prefixCls}-edit`,\n onClick: onEditClick,\n \"aria-label\": ariaLabel,\n tabIndex: tabIndex\n }, icon || /*#__PURE__*/React.createElement(EditOutlined, {\n role: \"button\"\n })))) : null;\n };\n // Copy\n const renderCopy = () => {\n if (!enableCopy) {\n return null;\n }\n return /*#__PURE__*/React.createElement(CopyBtn, Object.assign({\n key: \"copy\"\n }, copyConfig, {\n prefixCls: prefixCls,\n copied: copied,\n locale: textLocale,\n onCopy: onCopyClick,\n loading: copyLoading,\n iconOnly: children === null || children === undefined\n }));\n };\n const renderOperations = canEllipsis => [canEllipsis && renderExpand(), renderEdit(), renderCopy()];\n const renderEllipsis = canEllipsis => [canEllipsis && !expanded && (/*#__PURE__*/React.createElement(\"span\", {\n \"aria-hidden\": true,\n key: \"ellipsis\"\n }, ELLIPSIS_STR)), ellipsisConfig.suffix, renderOperations(canEllipsis)];\n return /*#__PURE__*/React.createElement(ResizeObserver, {\n onResize: onResize,\n disabled: !mergedEnableEllipsis\n }, resizeRef => (/*#__PURE__*/React.createElement(EllipsisTooltip, {\n tooltipProps: tooltipProps,\n enableEllipsis: mergedEnableEllipsis,\n isEllipsis: isMergedEllipsis\n }, /*#__PURE__*/React.createElement(Typography, Object.assign({\n className: classNames({\n [`${prefixCls}-${type}`]: type,\n [`${prefixCls}-disabled`]: disabled,\n [`${prefixCls}-ellipsis`]: enableEllipsis,\n [`${prefixCls}-ellipsis-single-line`]: cssTextOverflow,\n [`${prefixCls}-ellipsis-multiple-line`]: cssLineClamp\n }, className),\n prefixCls: customizePrefixCls,\n style: Object.assign(Object.assign({}, style), {\n WebkitLineClamp: cssLineClamp ? rows : undefined\n }),\n component: component,\n ref: composeRef(resizeRef, typographyRef, ref),\n direction: direction,\n onClick: triggerType.includes('text') ? onEditClick : undefined,\n \"aria-label\": topAriaLabel === null || topAriaLabel === void 0 ? void 0 : topAriaLabel.toString(),\n title: title\n }, textProps), /*#__PURE__*/React.createElement(Ellipsis, {\n enableMeasure: mergedEnableEllipsis && !cssEllipsis,\n text: children,\n rows: rows,\n width: ellipsisWidth,\n onEllipsis: onJsEllipsis,\n expanded: expanded,\n miscDeps: [copied, expanded, copyLoading, enableEdit, enableCopy]\n }, (node, canEllipsis) => wrapperDecorations(props, /*#__PURE__*/React.createElement(React.Fragment, null, node.length > 0 && canEllipsis && !expanded && topAriaLabel ? (/*#__PURE__*/React.createElement(\"span\", {\n key: \"show-content\",\n \"aria-hidden\": true\n }, node)) : node, renderEllipsis(canEllipsis))))))));\n});\nexport default Base;"],"names":["__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","Base","React","forwardRef","props","ref","_a","prefixCls","customizePrefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title","restProps","getPrefixCls","direction","useContext","ConfigContext","textLocale","useLocale","typographyRef","useRef","editIconRef","textProps","omit","enableEdit","editConfig","useMergedConfig","editing","setEditing","useMergedState","value","triggerType","triggerEdit","edit","onStart","prevEditing","usePrevious","useLayoutEffect","current","focus","onEditClick","preventDefault","onEditChange","onChange","onEditCancel","onCancel","enableCopy","copyConfig","copied","copyLoading","onClick","onCopyClick","useCopyClick","isLineClampSupport","setIsLineClampSupport","useState","isTextOverflowSupport","setIsTextOverflowSupport","isJsEllipsis","setIsJsEllipsis","isNativeEllipsis","setIsNativeEllipsis","isNativeVisible","setIsNativeVisible","enableEllipsis","ellipsisConfig","expandable","symbol","isExpanded","collapse","expand","expanded","setExpanded","defaultExpanded","mergedEnableEllipsis","rows","needMeasureEllipsis","useMemo","undefined","suffix","onEllipsis","isStyleSupport","cssEllipsis","setCssEllipsis","canUseCssEllipsis","isMergedEllipsis","cssTextOverflow","cssLineClamp","ellipsisWidth","setEllipsisWidth","onJsEllipsis","jsEllipsis","useEffect","textEle","currentEllipsis","isEleEllipsis","IntersectionObserver","observer","offsetParent","observe","disconnect","tooltipProps","useTooltipProps","tooltip","text","topAriaLabel","find","isValidText","createElement","Editable","onSave","onEnd","maxLength","autoSize","enterIcon","renderExpand","TransButton","key","info","onExpand","onExpandClick","renderEdit","icon","tabIndex","editTitle","toArray","ariaLabel","includes","Tooltip","EditOutlined","role","renderOperations","canEllipsis","CopyBtn","assign","locale","onCopy","loading","iconOnly","ResizeObserver","onResize","_ref2","offsetWidth","resizeRef","EllipsisTooltip","isEllipsis","Typography","classNames","WebkitLineClamp","composeRef","toString","Ellipsis","enableMeasure","width","miscDeps","node","_ref","content","mark","code","underline","delete","del","strong","keyboard","italic","currentContent","wrap","tag","needed","wrapperDecorations","Fragment","renderEllipsis"],"mappings":"+yCAEIA,EAAgC,SAAUC,EAAGC,GAC/C,IAAIC,EAAI,CAAA,EACR,IAAK,IAAIC,KAAKH,EAAOI,OAAOC,UAAUC,eAAeC,KAAKP,EAAGG,IAAMF,EAAEO,QAAQL,GAAK,IAAGD,EAAEC,GAAKH,EAAEG,IAC9F,GAAS,MAALH,GAAqD,mBAAjCI,OAAOK,sBAA2C,KAAIC,EAAI,EAAb,IAAgBP,EAAIC,OAAOK,sBAAsBT,GAAIU,EAAIP,EAAEQ,OAAQD,IAClIT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,OACXA,EAAMC,SACNA,EAAQC,OACRA,GACET,EACAU,EAAiBT,EACrB,SAASU,EAAKC,EAAKC,GACZA,IAGLH,EAA8B3K,EAAMiH,cAAc4D,EAAK,CAAE,EAAEF,GAC5D,CAQD,OAPAC,EAAK,SAAUJ,GACfI,EAAK,IAAKP,GACVO,EAAK,MAAOL,GACZK,EAAK,OAAQR,GACbQ,EAAK,OAAQT,GACbS,EAAK,MAAOH,GACZG,EAAK,IAAKF,GACHC,CACT,CAqS4BI,CAAmB7K,EAAoBF,EAAMiH,cAAcjH,EAAMgL,SAAU,KAAMhB,EAAKnK,OAAS,GAAK4I,IAAgB7D,IAAYkC,GAA6B9G,EAAMiH,cAAc,OAAQ,CACjNS,IAAK,eACL,eAAe,GACdsC,GAASA,EAxCWvB,IAAe,CAACA,IAAgB7D,IAA0B5E,EAAMiH,cAAc,OAAQ,CAC3G,eAAe,EACfS,IAAK,YAjQY,OAkQApD,GAAec,OAAQoD,GAAiBC,IAqCzCwC,CAAexC,UAAmB","x_google_ignoreList":[0]}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";var e=require("react"),t=require("../../../@ant-design/icons/es/icons/EnterOutlined.js"),r=require("../../../classnames/index.js"),n=require("../../../rc-util/es/KeyCode.js"),l=require("../_util/reactNode.js"),a=require("../input/TextArea.js"),u=require("./style/index.js");function c(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var o=c(e);module.exports=e=>{const{prefixCls:c,"aria-label":s,className:i,style:f,direction:d,maxLength:m,autoSize:y=!0,value:v,onSave:E,onCancel:g,onEnd:j,component:p,enterIcon:b=o.createElement(t,null)}=e,x=o.useRef(null),C=o.useRef(!1),q=o.useRef(),[K,O]=o.useState(v);o.useEffect((()=>{O(v)}),[v]),o.useEffect((()=>{var e;if(null===(e=x.current)||void 0===e?void 0:e.resizableTextArea){const{textArea:e}=x.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}}),[]);const S=()=>{E(K.trim())},[h,z,N]=u.default(c),R=r
|
1
|
+
"use strict";var e=require("react"),t=require("../../../@ant-design/icons/es/icons/EnterOutlined.js"),r=require("../../../classnames/index.js"),n=require("../../../rc-util/es/KeyCode.js"),l=require("../_util/reactNode.js"),a=require("../input/TextArea.js"),u=require("./style/index.js");function c(e){var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var o=c(e);module.exports=e=>{const{prefixCls:c,"aria-label":s,className:i,style:f,direction:d,maxLength:m,autoSize:y=!0,value:v,onSave:E,onCancel:g,onEnd:j,component:p,enterIcon:b=o.createElement(t,null)}=e,x=o.useRef(null),C=o.useRef(!1),q=o.useRef(),[K,O]=o.useState(v);o.useEffect((()=>{O(v)}),[v]),o.useEffect((()=>{var e;if(null===(e=x.current)||void 0===e?void 0:e.resizableTextArea){const{textArea:e}=x.current.resizableTextArea;e.focus();const{length:t}=e.value;e.setSelectionRange(t,t)}}),[]);const S=()=>{E(K.trim())},[h,z,N]=u.default(c),R=r(c,`${c}-edit-content`,{[`${c}-rtl`]:"rtl"===d,[`${c}-${p}`]:!!p},i,z,N);return h(o.createElement("div",{className:R,style:f},o.createElement(a,{ref:x,maxLength:m,value:K,onChange:e=>{let{target:t}=e;O(t.value.replace(/[\n\r]/g,""))},onKeyDown:e=>{let{keyCode:t}=e;C.current||(q.current=t)},onKeyUp:e=>{let{keyCode:t,ctrlKey:r,altKey:l,metaKey:a,shiftKey:u}=e;q.current!==t||C.current||r||l||a||u||(t===n.ENTER?(S(),null==j||j()):t===n.ESC&&g())},onCompositionStart:()=>{C.current=!0},onCompositionEnd:()=>{C.current=!1},onBlur:()=>{S()},"aria-label":s,rows:1,autoSize:y}),null!==b?l.cloneElement(b,{className:`${c}-edit-content-confirm`}):null))};
|
2
2
|
//# sourceMappingURL=Editable.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Editable.js","sources":["../../../../../../node_modules/antd/es/typography/Editable.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport EnterOutlined from \"@ant-design/icons/es/icons/EnterOutlined\";\nimport classNames from 'classnames';\nimport KeyCode from \"rc-util/es/KeyCode\";\nimport { cloneElement } from '../_util/reactNode';\nimport TextArea from '../input/TextArea';\nimport useStyle from './style';\nconst Editable = props => {\n const {\n prefixCls,\n 'aria-label': ariaLabel,\n className,\n style,\n direction,\n maxLength,\n autoSize = true,\n value,\n onSave,\n onCancel,\n onEnd,\n component,\n enterIcon = /*#__PURE__*/React.createElement(EnterOutlined, null)\n } = props;\n const ref = React.useRef(null);\n const inComposition = React.useRef(false);\n const lastKeyCode = React.useRef();\n const [current, setCurrent] = React.useState(value);\n React.useEffect(() => {\n setCurrent(value);\n }, [value]);\n React.useEffect(() => {\n var _a;\n if ((_a = ref.current) === null || _a === void 0 ? void 0 : _a.resizableTextArea) {\n const {\n textArea\n } = ref.current.resizableTextArea;\n textArea.focus();\n const {\n length\n } = textArea.value;\n textArea.setSelectionRange(length, length);\n }\n }, []);\n const onChange = _ref => {\n let {\n target\n } = _ref;\n setCurrent(target.value.replace(/[\\n\\r]/g, ''));\n };\n const onCompositionStart = () => {\n inComposition.current = true;\n };\n const onCompositionEnd = () => {\n inComposition.current = false;\n };\n const onKeyDown = _ref2 => {\n let {\n keyCode\n } = _ref2;\n // We don't record keyCode when IME is using\n if (inComposition.current) return;\n lastKeyCode.current = keyCode;\n };\n const confirmChange = () => {\n onSave(current.trim());\n };\n const onKeyUp = _ref3 => {\n let {\n keyCode,\n ctrlKey,\n altKey,\n metaKey,\n shiftKey\n } = _ref3;\n // Check if it's a real key\n if (lastKeyCode.current !== keyCode || inComposition.current || ctrlKey || altKey || metaKey || shiftKey) {\n return;\n }\n if (keyCode === KeyCode.ENTER) {\n confirmChange();\n onEnd === null || onEnd === void 0 ? void 0 : onEnd();\n } else if (keyCode === KeyCode.ESC) {\n onCancel();\n }\n };\n const onBlur = () => {\n confirmChange();\n };\n const [wrapCSSVar, hashId, cssVarCls] = useStyle(prefixCls);\n const textAreaClassName = classNames(prefixCls, `${prefixCls}-edit-content`, {\n [`${prefixCls}-rtl`]: direction === 'rtl',\n [`${prefixCls}-${component}`]: !!component\n }, className, hashId, cssVarCls);\n return wrapCSSVar(/*#__PURE__*/React.createElement(\"div\", {\n className: textAreaClassName,\n style: style\n }, /*#__PURE__*/React.createElement(TextArea, {\n ref: ref,\n maxLength: maxLength,\n value: current,\n onChange: onChange,\n onKeyDown: onKeyDown,\n onKeyUp: onKeyUp,\n onCompositionStart: onCompositionStart,\n onCompositionEnd: onCompositionEnd,\n onBlur: onBlur,\n \"aria-label\": ariaLabel,\n rows: 1,\n autoSize: autoSize\n }), enterIcon !== null ? cloneElement(enterIcon, {\n className: `${prefixCls}-edit-content-confirm`\n }) : null));\n};\nexport default Editable;"],"names":["props","prefixCls","ariaLabel","className","style","direction","maxLength","autoSize","value","onSave","onCancel","onEnd","component","enterIcon","React","createElement","EnterOutlined","ref","useRef","inComposition","lastKeyCode","current","setCurrent","useState","useEffect","_a","resizableTextArea","textArea","focus","length","setSelectionRange","confirmChange","trim","wrapCSSVar","hashId","cssVarCls","useStyle","textAreaClassName","classNames","TextArea","onChange","_ref","target","replace","onKeyDown","_ref2","keyCode","onKeyUp","_ref3","ctrlKey","altKey","metaKey","shiftKey","KeyCode","ENTER","ESC","onCompositionStart","onCompositionEnd","onBlur","rows","cloneElement"],"mappings":"4jBASiBA,IACf,MAAMC,UACJA,EACA,aAAcC,EAASC,UACvBA,EAASC,MACTA,EAAKC,UACLA,EAASC,UACTA,EAASC,SACTA,GAAW,EAAIC,MACfA,EAAKC,OACLA,EAAMC,SACNA,EAAQC,MACRA,EAAKC,UACLA,EAASC,UACTA,EAAyBC,EAAMC,cAAcC,EAAe,OAC1DhB,EACEiB,EAAMH,EAAMI,OAAO,MACnBC,EAAgBL,EAAMI,QAAO,GAC7BE,EAAcN,EAAMI,UACnBG,EAASC,GAAcR,EAAMS,SAASf,GAC7CM,EAAMU,WAAU,KACdF,EAAWd,EAAM,GAChB,CAACA,IACJM,EAAMU,WAAU,KACd,IAAIC,EACJ,GAA2B,QAAtBA,EAAKR,EAAII,eAA4B,IAAPI,OAAgB,EAASA,EAAGC,kBAAmB,CAChF,MAAMC,SACJA,GACEV,EAAII,QAAQK,kBAChBC,EAASC,QACT,MAAMC,OACJA,GACEF,EAASnB,MACbmB,EAASG,kBAAkBD,EAAQA,EACpC,IACA,IACH,MAoBME,EAAgB,KACpBtB,EAAOY,EAAQW,OAAO,GAwBjBC,EAAYC,EAAQC,GAAaC,EAAAA,QAASnC,GAC3CoC,EAAoBC,
|
1
|
+
{"version":3,"file":"Editable.js","sources":["../../../../../../node_modules/antd/es/typography/Editable.js"],"sourcesContent":["\"use client\";\n\nimport * as React from 'react';\nimport EnterOutlined from \"@ant-design/icons/es/icons/EnterOutlined\";\nimport classNames from 'classnames';\nimport KeyCode from \"rc-util/es/KeyCode\";\nimport { cloneElement } from '../_util/reactNode';\nimport TextArea from '../input/TextArea';\nimport useStyle from './style';\nconst Editable = props => {\n const {\n prefixCls,\n 'aria-label': ariaLabel,\n className,\n style,\n direction,\n maxLength,\n autoSize = true,\n value,\n onSave,\n onCancel,\n onEnd,\n component,\n enterIcon = /*#__PURE__*/React.createElement(EnterOutlined, null)\n } = props;\n const ref = React.useRef(null);\n const inComposition = React.useRef(false);\n const lastKeyCode = React.useRef();\n const [current, setCurrent] = React.useState(value);\n React.useEffect(() => {\n setCurrent(value);\n }, [value]);\n React.useEffect(() => {\n var _a;\n if ((_a = ref.current) === null || _a === void 0 ? void 0 : _a.resizableTextArea) {\n const {\n textArea\n } = ref.current.resizableTextArea;\n textArea.focus();\n const {\n length\n } = textArea.value;\n textArea.setSelectionRange(length, length);\n }\n }, []);\n const onChange = _ref => {\n let {\n target\n } = _ref;\n setCurrent(target.value.replace(/[\\n\\r]/g, ''));\n };\n const onCompositionStart = () => {\n inComposition.current = true;\n };\n const onCompositionEnd = () => {\n inComposition.current = false;\n };\n const onKeyDown = _ref2 => {\n let {\n keyCode\n } = _ref2;\n // We don't record keyCode when IME is using\n if (inComposition.current) return;\n lastKeyCode.current = keyCode;\n };\n const confirmChange = () => {\n onSave(current.trim());\n };\n const onKeyUp = _ref3 => {\n let {\n keyCode,\n ctrlKey,\n altKey,\n metaKey,\n shiftKey\n } = _ref3;\n // Check if it's a real key\n if (lastKeyCode.current !== keyCode || inComposition.current || ctrlKey || altKey || metaKey || shiftKey) {\n return;\n }\n if (keyCode === KeyCode.ENTER) {\n confirmChange();\n onEnd === null || onEnd === void 0 ? void 0 : onEnd();\n } else if (keyCode === KeyCode.ESC) {\n onCancel();\n }\n };\n const onBlur = () => {\n confirmChange();\n };\n const [wrapCSSVar, hashId, cssVarCls] = useStyle(prefixCls);\n const textAreaClassName = classNames(prefixCls, `${prefixCls}-edit-content`, {\n [`${prefixCls}-rtl`]: direction === 'rtl',\n [`${prefixCls}-${component}`]: !!component\n }, className, hashId, cssVarCls);\n return wrapCSSVar(/*#__PURE__*/React.createElement(\"div\", {\n className: textAreaClassName,\n style: style\n }, /*#__PURE__*/React.createElement(TextArea, {\n ref: ref,\n maxLength: maxLength,\n value: current,\n onChange: onChange,\n onKeyDown: onKeyDown,\n onKeyUp: onKeyUp,\n onCompositionStart: onCompositionStart,\n onCompositionEnd: onCompositionEnd,\n onBlur: onBlur,\n \"aria-label\": ariaLabel,\n rows: 1,\n autoSize: autoSize\n }), enterIcon !== null ? cloneElement(enterIcon, {\n className: `${prefixCls}-edit-content-confirm`\n }) : null));\n};\nexport default Editable;"],"names":["props","prefixCls","ariaLabel","className","style","direction","maxLength","autoSize","value","onSave","onCancel","onEnd","component","enterIcon","React","createElement","EnterOutlined","ref","useRef","inComposition","lastKeyCode","current","setCurrent","useState","useEffect","_a","resizableTextArea","textArea","focus","length","setSelectionRange","confirmChange","trim","wrapCSSVar","hashId","cssVarCls","useStyle","textAreaClassName","classNames","TextArea","onChange","_ref","target","replace","onKeyDown","_ref2","keyCode","onKeyUp","_ref3","ctrlKey","altKey","metaKey","shiftKey","KeyCode","ENTER","ESC","onCompositionStart","onCompositionEnd","onBlur","rows","cloneElement"],"mappings":"4jBASiBA,IACf,MAAMC,UACJA,EACA,aAAcC,EAASC,UACvBA,EAASC,MACTA,EAAKC,UACLA,EAASC,UACTA,EAASC,SACTA,GAAW,EAAIC,MACfA,EAAKC,OACLA,EAAMC,SACNA,EAAQC,MACRA,EAAKC,UACLA,EAASC,UACTA,EAAyBC,EAAMC,cAAcC,EAAe,OAC1DhB,EACEiB,EAAMH,EAAMI,OAAO,MACnBC,EAAgBL,EAAMI,QAAO,GAC7BE,EAAcN,EAAMI,UACnBG,EAASC,GAAcR,EAAMS,SAASf,GAC7CM,EAAMU,WAAU,KACdF,EAAWd,EAAM,GAChB,CAACA,IACJM,EAAMU,WAAU,KACd,IAAIC,EACJ,GAA2B,QAAtBA,EAAKR,EAAII,eAA4B,IAAPI,OAAgB,EAASA,EAAGC,kBAAmB,CAChF,MAAMC,SACJA,GACEV,EAAII,QAAQK,kBAChBC,EAASC,QACT,MAAMC,OACJA,GACEF,EAASnB,MACbmB,EAASG,kBAAkBD,EAAQA,EACpC,IACA,IACH,MAoBME,EAAgB,KACpBtB,EAAOY,EAAQW,OAAO,GAwBjBC,EAAYC,EAAQC,GAAaC,EAAAA,QAASnC,GAC3CoC,EAAoBC,EAAWrC,EAAW,GAAGA,iBAA0B,CAC3E,CAAC,GAAGA,SAAgC,QAAdI,EACtB,CAAC,GAAGJ,KAAaW,OAAgBA,GAChCT,EAAW+B,EAAQC,GACtB,OAAOF,EAAwBnB,EAAMC,cAAc,MAAO,CACxDZ,UAAWkC,EACXjC,MAAOA,GACOU,EAAMC,cAAcwB,EAAU,CAC5CtB,IAAKA,EACLX,UAAWA,EACXE,MAAOa,EACPmB,SAzDeC,IACf,IAAIC,OACFA,GACED,EACJnB,EAAWoB,EAAOlC,MAAMmC,QAAQ,UAAW,IAAI,EAsD/CC,UA9CgBC,IAChB,IAAIC,QACFA,GACED,EAEA1B,EAAcE,UAClBD,EAAYC,QAAUyB,EAAO,EAyC7BC,QApCcC,IACd,IAAIF,QACFA,EAAOG,QACPA,EAAOC,OACPA,EAAMC,QACNA,EAAOC,SACPA,GACEJ,EAEA5B,EAAYC,UAAYyB,GAAW3B,EAAcE,SAAW4B,GAAWC,GAAUC,GAAWC,IAG5FN,IAAYO,EAAQC,OACtBvB,IACApB,SAA8CA,KACrCmC,IAAYO,EAAQE,KAC7B7C,IACD,EAoBD8C,mBAtDyB,KACzBrC,EAAcE,SAAU,CAAI,EAsD5BoC,iBApDuB,KACvBtC,EAAcE,SAAU,CAAK,EAoD7BqC,OApBa,KACb3B,GAAe,EAoBf,aAAc7B,EACdyD,KAAM,EACNpD,SAAUA,IACM,OAAdM,EAAqB+C,EAAAA,aAAa/C,EAAW,CAC/CV,UAAW,GAAGF,2BACX,MAAM","x_google_ignoreList":[0]}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";var e=require("react"),r=require("../../../classnames/index.js"),t=require("../../../rc-util/es/ref.js"),n=require("../_util/warning.js");require("../config-provider/index.js");var o=require("./style/index.js"),s=require("../config-provider/context.js");function i(e){var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var c=i(e),a=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t};const l=c.forwardRef(((e,i)=>{const{prefixCls:l,component:
|
1
|
+
"use strict";var e=require("react"),r=require("../../../classnames/index.js"),t=require("../../../rc-util/es/ref.js"),n=require("../_util/warning.js");require("../config-provider/index.js");var o=require("./style/index.js"),s=require("../config-provider/context.js");function i(e){var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var c=i(e),a=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t};const l=c.forwardRef(((e,i)=>{const{prefixCls:l,component:p="article",className:f,rootClassName:u,setContentRef:d,children:y,direction:O,style:g}=e,j=a(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:m,direction:b,typography:v}=c.useContext(s.ConfigContext),x=null!=O?O:b,C=d?t.composeRef(i,d):i,N=m("typography",l);if("production"!==process.env.NODE_ENV){n.devUseWarning("Typography").deprecated(!d,"setContentRef","ref")}const[h,q,E]=o.default(N),w=r(N,null==v?void 0:v.className,{[`${N}-rtl`]:"rtl"===x},f,u,q,E),P=Object.assign(Object.assign({},null==v?void 0:v.style),g);return h(c.createElement(p,Object.assign({className:w,style:P,ref:C},j),y))}));"production"!==process.env.NODE_ENV&&(l.displayName="Typography"),module.exports=l;
|
2
2
|
//# sourceMappingURL=Typography.js.map
|