@televet/kibble-ui 2.1.2-beta.866b0wdrd.6 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/chakra/index.js +1 -1
- package/build/chakra-ui-menu.esm-fe9ef385.js +2 -0
- package/build/{chakra-ui-menu.esm-92cf9b97.js.map → chakra-ui-menu.esm-fe9ef385.js.map} +1 -1
- package/build/{chakra-ui-modal.esm-5b3636d6.js → chakra-ui-modal.esm-5ec83d2f.js} +2 -2
- package/build/{chakra-ui-modal.esm-5b3636d6.js.map → chakra-ui-modal.esm-5ec83d2f.js.map} +1 -1
- package/build/{chakra-ui-skeleton.esm-65be7af3.js → chakra-ui-skeleton.esm-75810d78.js} +2 -2
- package/build/{chakra-ui-skeleton.esm-65be7af3.js.map → chakra-ui-skeleton.esm-75810d78.js.map} +1 -1
- package/build/components/Button/button.stories.d.ts +1 -1
- package/build/components/DatePicker/index.js +1 -1
- package/build/components/Menu/components/MenuButton/index.js +1 -1
- package/build/components/Menu/components/MenuButton/menuButton.argTypes.d.ts +9 -3
- package/build/components/Menu/components/MenuButton/menuButton.component.d.ts +1 -2
- package/build/components/Menu/components/MenuButton/menuButton.stories.d.ts +14 -6
- package/build/components/Menu/components/MenuContainer/index.js +1 -1
- package/build/components/Menu/components/MenuContainer/menuContainer.argTypes.d.ts +14 -3
- package/build/components/Menu/components/MenuContainer/menuContainer.component.d.ts +2 -15
- package/build/components/Menu/components/MenuContainer/menuContainer.stories.d.ts +19 -6
- package/build/components/Menu/components/MenuItem/index.js +1 -1
- package/build/components/Menu/components/MenuItem/menuItem.argTypes.d.ts +15 -3
- package/build/components/Menu/components/MenuItem/menuItem.component.d.ts +8 -11
- package/build/components/Menu/components/MenuItem/menuItem.stories.d.ts +20 -6
- package/build/components/Menu/components/MenuList/index.js +1 -1
- package/build/components/Menu/components/MenuList/menuList.argTypes.d.ts +16 -3
- package/build/components/Menu/components/MenuList/menuList.component.d.ts +3 -5
- package/build/components/Menu/components/MenuList/menuList.stories.d.ts +21 -6
- package/build/components/Menu/components/MenuOptionGroup/index.d.ts +1 -0
- package/build/components/Menu/components/MenuOptionGroup/index.js +2 -0
- package/build/components/Menu/components/MenuOptionGroup/index.js.map +1 -0
- package/build/components/Menu/components/MenuOptionGroup/menuOptionGroup.component.d.ts +2 -0
- package/build/components/Menu/examples/withAvatars.stories.d.ts +81 -2
- package/build/components/Menu/examples/withCustomChildren.stories.d.ts +81 -2
- package/build/components/Menu/examples/withCustomLabel.stories.d.ts +81 -2
- package/build/components/Menu/examples/withGroups.stories.d.ts +81 -2
- package/build/components/Menu/examples/withIconButton.stories.d.ts +81 -2
- package/build/components/Menu/examples/withIcons.stories.d.ts +81 -2
- package/build/components/Menu/examples/withMultiSelect.stories.d.ts +81 -2
- package/build/components/Menu/examples/withScroll.stories.d.ts +81 -2
- package/build/components/Menu/examples/withSearch.stories.d.ts +81 -2
- package/build/components/Menu/examples/withSearchAndMultiSelect.stories.d.ts +81 -2
- package/build/components/Menu/examples/withSwatch.stories.d.ts +81 -2
- package/build/components/Menu/index.d.ts +1 -0
- package/build/components/Menu/index.js +1 -1
- package/build/components/Menu/menu.argTypes.d.ts +80 -3
- package/build/components/Menu/menu.component.d.ts +5 -5
- package/build/components/Menu/menu.stories.d.ts +81 -2
- package/build/components/Modal/components/ModalBody/index.js +1 -1
- package/build/components/Modal/components/ModalCloseButton/index.js +1 -1
- package/build/components/Modal/components/ModalFooter/index.js +1 -1
- package/build/components/Modal/components/ModalFooterButtons/index.js +1 -1
- package/build/components/Modal/components/ModalHeader/index.js +1 -1
- package/build/components/Modal/index.js +1 -1
- package/build/components/Select/components/SelectBrowserDefault/selectBrowserDefault.component.d.ts +2 -0
- package/build/components/Select/components/SelectContainer/selectContainer.component.d.ts +1 -1
- package/build/components/Select/components/SelectList/selectList.component.d.ts +3 -4
- package/build/components/Select/index.d.ts +1 -1
- package/build/components/Select/index.js +1 -1
- package/build/components/Select/select.component.d.ts +17 -8
- package/build/components/Select/select.stories.d.ts +130 -3
- package/build/components/Select/select.types.d.ts +3 -0
- package/build/components/Toast/index.js +1 -1
- package/build/components/index.js +1 -1
- package/build/{datepicker.types-e3f2773d.js → datepicker.types-b402bb49.js} +2 -2
- package/build/{datepicker.types-946c472e.js.map → datepicker.types-b402bb49.js.map} +1 -1
- package/build/{index-c60b408f.js → index-8fecff45.js} +1 -1
- package/build/{index-c60b408f.js.map → index-8fecff45.js.map} +1 -1
- package/build/index.js +1 -1
- package/build/menu.component-cd99977c.js +2 -0
- package/build/menu.component-cd99977c.js.map +1 -0
- package/build/menuButton.component-3280a201.js +2 -0
- package/build/menuButton.component-3280a201.js.map +1 -0
- package/build/{menuContainer.component-315466f2.js → menuContainer.component-adb9204a.js} +2 -2
- package/build/menuContainer.component-adb9204a.js.map +1 -0
- package/build/menuItem.component-f9f142c2.js +2 -0
- package/build/menuItem.component-f9f142c2.js.map +1 -0
- package/build/menuList.component-fa80fe83.js +2 -0
- package/build/menuList.component-fa80fe83.js.map +1 -0
- package/build/menuOptionGroup.component-bfcf4e53.js +2 -0
- package/build/menuOptionGroup.component-bfcf4e53.js.map +1 -0
- package/build/{modal.component-488c95b3.js → modal.component-6990e35a.js} +2 -2
- package/build/{modal.component-488c95b3.js.map → modal.component-6990e35a.js.map} +1 -1
- package/build/modalBody.component-771775b3.js +2 -0
- package/build/{modalBody.component-d16ec3c2.js.map → modalBody.component-771775b3.js.map} +1 -1
- package/build/{modalCloseButton.component-a2ee80b8.js → modalCloseButton.component-6e546d5a.js} +2 -2
- package/build/{modalCloseButton.component-a1bddcd4.js.map → modalCloseButton.component-6e546d5a.js.map} +1 -1
- package/build/modalFooter.component-a8dca3ea.js +2 -0
- package/build/{modalFooter.component-cdecefb9.js.map → modalFooter.component-a8dca3ea.js.map} +1 -1
- package/build/{modalFooterButtons.component-85166391.js → modalFooterButtons.component-7f6ad8c5.js} +2 -2
- package/build/{modalFooterButtons.component-08c994a9.js.map → modalFooterButtons.component-7f6ad8c5.js.map} +1 -1
- package/build/{modalHeader.component-8b663f4e.js → modalHeader.component-d1fd5719.js} +2 -2
- package/build/{modalHeader.component-8b663f4e.js.map → modalHeader.component-d1fd5719.js.map} +1 -1
- package/build/select.component-e14f46f5.js +2 -0
- package/build/select.component-e14f46f5.js.map +1 -0
- package/build/shared/argTypes/buttonSize.argTypes.d.ts +1 -1
- package/build/theme/index.js +1 -1
- package/build/theme.provider-0d9a5ebb.js +12 -0
- package/build/theme.provider-0d9a5ebb.js.map +1 -0
- package/build/{useToast-dc263271.js → useToast-aa0129c4.js} +2 -2
- package/build/{useToast-e9e03fa0.js.map → useToast-aa0129c4.js.map} +1 -1
- package/package.json +1 -1
- package/build/alert.component-85f70ef3.js +0 -2
- package/build/alert.component-85f70ef3.js.map +0 -1
- package/build/avatar.component-bc86fb97.js +0 -2
- package/build/avatar.component-bc86fb97.js.map +0 -1
- package/build/avatarGroup.component-262bc798.js +0 -2
- package/build/avatarGroup.component-262bc798.js.map +0 -1
- package/build/button.component-967d0def.js +0 -2
- package/build/button.component-967d0def.js.map +0 -1
- package/build/chakra-ui-menu.esm-92cf9b97.js +0 -2
- package/build/checkbox.component-8cc16bed.js +0 -2
- package/build/checkbox.component-8cc16bed.js.map +0 -1
- package/build/checkboxGroup.component-89a5327c.js +0 -2
- package/build/checkboxGroup.component-89a5327c.js.map +0 -1
- package/build/components/Menu/components/MenuButton/menuButton.records.d.ts +0 -20
- package/build/components/Select/components/SelectList/selectList.argTypes.d.ts +0 -3
- package/build/components/Select/components/SelectList/selectList.stories.d.ts +0 -12
- package/build/components/Select/components/SelectOption/selectOption.argTypes.d.ts +0 -3
- package/build/components/Select/components/SelectOption/selectOption.stories.d.ts +0 -12
- package/build/components/Select/components/SelectOption/selectOption.types.d.ts +0 -3
- package/build/components/Select/examples/withError.stories.d.ts +0 -20
- package/build/components/Select/select.argTypes.d.ts +0 -3
- package/build/components/Select/select.storiesData.d.ts +0 -2
- package/build/datepicker.types-946c472e.js +0 -16
- package/build/datepicker.types-e3f2773d.js.map +0 -1
- package/build/dragHandle.component-721613cb.js +0 -2
- package/build/dragHandle.component-721613cb.js.map +0 -1
- package/build/icon.component-d618e1f5.js +0 -2
- package/build/icon.component-d618e1f5.js.map +0 -1
- package/build/link.component-734f794b.js +0 -2
- package/build/link.component-734f794b.js.map +0 -1
- package/build/menu.component-2da11db1.js +0 -2
- package/build/menu.component-2da11db1.js.map +0 -1
- package/build/menu.component-52221f7e.js +0 -2
- package/build/menu.component-52221f7e.js.map +0 -1
- package/build/menuButton.component-4aa92838.js +0 -2
- package/build/menuButton.component-4aa92838.js.map +0 -1
- package/build/menuButton.component-53299020.js +0 -2
- package/build/menuButton.component-53299020.js.map +0 -1
- package/build/menuContainer.component-315466f2.js.map +0 -1
- package/build/menuItem.component-5d391ad0.js +0 -2
- package/build/menuItem.component-5d391ad0.js.map +0 -1
- package/build/menuItem.component-c378c5f0.js +0 -2
- package/build/menuItem.component-c378c5f0.js.map +0 -1
- package/build/menuList.component-2003e673.js +0 -2
- package/build/menuList.component-2003e673.js.map +0 -1
- package/build/menuList.component-926efe0c.js +0 -2
- package/build/menuList.component-926efe0c.js.map +0 -1
- package/build/modalBody.component-d16ec3c2.js +0 -2
- package/build/modalCloseButton.component-a1bddcd4.js +0 -2
- package/build/modalCloseButton.component-a2ee80b8.js.map +0 -1
- package/build/modalFooter.component-cdecefb9.js +0 -2
- package/build/modalFooterButtons.component-08c994a9.js +0 -2
- package/build/modalFooterButtons.component-85166391.js.map +0 -1
- package/build/popover.component-f8a4902d.js +0 -2
- package/build/popover.component-f8a4902d.js.map +0 -1
- package/build/popoverFooter.component-61dee668.js +0 -2
- package/build/popoverFooter.component-61dee668.js.map +0 -1
- package/build/popoverHeader.component-704f0470.js +0 -2
- package/build/popoverHeader.component-704f0470.js.map +0 -1
- package/build/radioGroup.component-e1bf80d7.js +0 -2
- package/build/radioGroup.component-e1bf80d7.js.map +0 -1
- package/build/select.component-1f4872c6.js +0 -2
- package/build/select.component-1f4872c6.js.map +0 -1
- package/build/select.component-c71a3601.js +0 -2
- package/build/select.component-c71a3601.js.map +0 -1
- package/build/switch.component-c6072230.js +0 -2
- package/build/switch.component-c6072230.js.map +0 -1
- package/build/tab.component-be168bcd.js +0 -2
- package/build/tab.component-be168bcd.js.map +0 -1
- package/build/tabs.component-749a39f8.js +0 -2
- package/build/tabs.component-749a39f8.js.map +0 -1
- package/build/tabsLayout.component-ebd7f130.js +0 -2
- package/build/tabsLayout.component-ebd7f130.js.map +0 -1
- package/build/textInput.component-63383755.js +0 -2
- package/build/textInput.component-63383755.js.map +0 -1
- package/build/textarea.component-2ab43062.js +0 -2
- package/build/textarea.component-2ab43062.js.map +0 -1
- package/build/theme.provider-753ec672.js +0 -12
- package/build/theme.provider-753ec672.js.map +0 -1
- package/build/timePicker.component-2ef8eac8.js +0 -2
- package/build/timePicker.component-2ef8eac8.js.map +0 -1
- package/build/timeRange.component-6e5b497d.js +0 -2
- package/build/timeRange.component-6e5b497d.js.map +0 -1
- package/build/useToast-dc263271.js.map +0 -1
- package/build/useToast-e9e03fa0.js +0 -2
- package/build/withFormControl-12f2fa49.js +0 -2
- package/build/withFormControl-12f2fa49.js.map +0 -1
package/build/chakra/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../chakra-ui-skeleton.esm-
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../chakra-ui-skeleton.esm-75810d78.js"),r=require("../chakra-ui-modal.esm-5ec83d2f.js"),o=require("../chakra-ui-layout.esm-6ee578f7.js"),t=require("../chakra-ui-button.esm-bd065780.js"),s=require("../chakra-ui-alert.esm-17eebb99.js"),a=require("../chakra-ui-avatar.esm-eee70d3a.js"),p=require("../chakra-ui-checkbox.esm-499c8b0c.js"),u=require("../chakra-ui-input.esm-5fd07056.js"),i=require("../chakra-ui-menu.esm-fe9ef385.js"),n=require("../chakra-ui-popover.esm-172468d8.js"),x=require("../chakra-ui-radio.esm-f310d451.js"),d=require("../chakra-ui-select.esm-793cf4de.js"),l=require("../chakra-ui-tabs.esm-e6372403.js"),c=require("../chakra-ui-textarea.esm-23fad4cd.js"),m=require("../chakra-ui-form-control.esm-6d25b1a4.js"),C=require("../chakra-ui-media-query.esm-6217de7e.js"),b=require("../chakra-ui-image.esm-66324087.js"),k=require("../chakra-ui-system.esm-c70df670.js"),M=require("../chakra-ui-portal.esm-bbcb5d1d.js"),h=require("../chakra-ui-hooks.esm-21b313f3.js");require("../chakra-ui-icon.esm-9c49b31b.js"),require("react"),require("../chakra-ui-clickable.esm-4394877f.js"),require("../use-animation-state-5054a9f7.esm-c89cafc4.js"),require("../index-8fecff45.js"),require("../tslib.es6-194b75fc.js"),require("../inheritsLoose-490721fe.js"),require("../index-6cdfadbe.js"),require("../motion-b6060749.js"),require("../chakra-ui-visually-hidden.esm-b758df74.js"),require("../chakra-ui-popper.esm-c15ff4a5.js"),require("react-dom"),exports.Accordion=e.Accordion,exports.AccordionButton=e.AccordionButton,exports.AccordionIcon=e.AccordionIcon,exports.AccordionItem=e.AccordionItem,exports.AccordionPanel=e.AccordionPanel,exports.NumberDecrementStepper=e.NumberDecrementStepper,exports.NumberIncrementStepper=e.NumberIncrementStepper,exports.NumberInput=e.NumberInput,exports.NumberInputField=e.NumberInputField,exports.NumberInputStepper=e.NumberInputStepper,exports.PinInput=e.PinInput,exports.PinInputField=e.PinInputField,exports.Progress=e.Progress,exports.Skeleton=e.Skeleton,exports.SkeletonText=e.SkeletonText,exports.Table=e.Table,exports.TableCaption=e.TableCaption,exports.TableContainer=e.TableContainer,exports.Tbody=e.Tbody,exports.Td=e.Td,exports.Tfoot=e.Tfoot,exports.Th=e.Th,exports.Thead=e.Thead,exports.Tr=e.Tr,exports.AlertDialog=r.AlertDialog,exports.AlertDialogBody=r.ModalBody,exports.AlertDialogContent=r.AlertDialogContent,exports.AlertDialogFooter=r.ModalFooter,exports.AlertDialogHeader=r.ModalHeader,exports.AlertDialogOverlay=r.ModalOverlay,exports.CModal=r.Modal,exports.CModalBody=r.ModalBody,exports.CModalCloseButton=r.ModalCloseButton,exports.CModalFooter=r.ModalFooter,exports.CModalHeader=r.ModalHeader,exports.Collapse=r.Collapse,exports.Drawer=r.Drawer,exports.DrawerBody=r.ModalBody,exports.DrawerCloseButton=r.ModalCloseButton,exports.DrawerContent=r.DrawerContent,exports.DrawerFooter=r.ModalFooter,exports.DrawerHeader=r.ModalHeader,exports.DrawerOverlay=r.ModalOverlay,exports.ModalContent=r.ModalContent,exports.ModalOverlay=r.ModalOverlay,exports.Badge=o.Badge,exports.Box=o.Box,exports.Center=o.Center,exports.Circle=o.Circle,exports.Code=o.Code,exports.Container=o.Container,exports.Divider=o.Divider,exports.Flex=o.Flex,exports.Grid=o.Grid,exports.GridItem=o.GridItem,exports.HStack=o.HStack,exports.LinkBox=o.LinkBox,exports.LinkOverlay=o.LinkOverlay,exports.List=o.List,exports.ListItem=o.ListItem,exports.OrderedList=o.OrderedList,exports.SimpleGrid=o.SimpleGrid,exports.Spacer=o.Spacer,exports.Square=o.Square,exports.Stack=o.Stack,exports.UnorderedList=o.UnorderedList,exports.VStack=o.VStack,exports.Wrap=o.Wrap,exports.WrapItem=o.WrapItem,exports.ButtonGroup=t.ButtonGroup,exports.CButton=t.Button,exports.IconButton=t.IconButton,exports.CAlert=s.Alert,exports.CAvatar=a.Avatar,exports.CCheckboxGroup=p.CheckboxGroup,exports.useCheckbox=p.useCheckbox,exports.useCheckboxGroup=p.useCheckboxGroup,exports.CInput=u.Input,exports.InputGroup=u.InputGroup,exports.InputLeftAddon=u.InputLeftAddon,exports.InputLeftElement=u.InputLeftElement,exports.InputRightElement=u.InputRightElement,exports.CMenu=i.Menu,exports.CMenuButton=i.MenuButton,exports.CMenuItem=i.MenuItem,exports.CMenuList=i.MenuList,exports.MenuDivider=i.MenuDivider,exports.MenuGroup=i.MenuGroup,exports.MenuItemOption=i.MenuItemOption,exports.CPopover=n.Popover,exports.CPopoverBody=n.PopoverBody,exports.CPopoverFooter=n.PopoverFooter,exports.CPopoverHeader=n.PopoverHeader,exports.PopoverArrow=n.PopoverArrow,exports.PopoverContent=n.PopoverContent,exports.PopoverTrigger=n.PopoverTrigger,exports.usePopoverContext=n.usePopoverContext,exports.CRadioGroup=x.RadioGroup,exports.useRadio=x.useRadio,exports.useRadioGroup=x.useRadioGroup,exports.CSelect=d.Select,exports.CTab=l.Tab,exports.CTabs=l.Tabs,exports.TabList=l.TabList,exports.TabPanel=l.TabPanel,exports.TabPanels=l.TabPanels,exports.CTextarea=c.Textarea,exports.FormControl=m.FormControl,exports.FormErrorMessage=m.FormErrorMessage,exports.FormHelperText=m.FormHelperText,exports.FormLabel=m.FormLabel,exports.Hide=C.Hide,exports.Show=C.Show,exports.useBreakpoint=C.useBreakpoint,exports.useBreakpointValue=C.useBreakpointValue,exports.useMediaQuery=C.useMediaQuery,exports.Image=b.Image$1,exports.keyframes=k.keyframes,exports.useColorMode=k.useColorMode,exports.Portal=M.Portal,exports.useConst=h.useConst,exports.useDisclosure=h.useDisclosure,exports.useInterval=h.useInterval,exports.useOutsideClick=h.useOutsideClick;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=require("./chakra-ui-system.esm-c70df670.js"),n=require("react"),t=require("./chakra-ui-clickable.esm-4394877f.js"),r=require("./chakra-ui-hooks.esm-21b313f3.js"),a=require("./use-animation-state-5054a9f7.esm-c89cafc4.js"),o=require("./chakra-ui-popper.esm-c15ff4a5.js"),i=require("./motion-b6060749.js");function l(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}})),n.default=e,Object.freeze(n)}var u=l(n);function c(){return c=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},c.apply(this,arguments)}function s(e,n){if(null==e)return{};var t,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(a[t]=e[t]);return a}var d=["id","closeOnSelect","closeOnBlur","autoSelect","isLazy","isOpen","defaultIsOpen","onClose","onOpen","placement","lazyBehavior","direction","computePositionOnMount"],m=["onMouseEnter","onMouseMove","onMouseLeave","onClick","isDisabled","isFocusable","closeOnSelect","type"],p=["type","isChecked"],f=["children","type","value","defaultValue","onChange"],v=t.createDescendantContext(),_=v[0],h=v[1],y=v[2],b=v[3],E=e.createContext({strict:!1,name:"MenuContext"}),k=E[0],x=E[1];function O(n){var t;return e.isHTMLElement(n)&&!(null==(t=n.getAttribute("role"))||!t.startsWith("menuitem"))}function C(n,a){void 0===n&&(n={}),void 0===a&&(a=null);var o=n,i=o.onMouseEnter,l=o.onMouseMove,d=o.onMouseLeave,p=o.onClick,f=o.isDisabled,v=o.isFocusable,_=o.closeOnSelect,h=o.type,y=s(o,m),E=x(),k=E.setFocusedIndex,C=E.focusedIndex,g=E.closeOnSelect,I=E.onClose,M=E.menuRef,S=E.isOpen,N=E.menuId,w=u.useRef(null),D=N+"-menuitem-"+r.useId(),R=b({disabled:f&&!v}),A=R.index,z=R.register,T=u.useCallback((function(e){null==i||i(e),f||k(A)}),[k,A,f,i]),F=u.useCallback((function(n){null==l||l(n),w.current&&!e.isActiveElement(w.current)&&T(n)}),[T,l]),V=u.useCallback((function(e){null==d||d(e),f||k(-1)}),[k,f,d]),j=u.useCallback((function(e){null==p||p(e),O(e.currentTarget)&&(null!=_?_:g)&&I()}),[I,p,g,_]),L=A===C,B=f&&!v;r.useUpdateEffect((function(){S&&(L&&!B&&w.current?e.focus(w.current,{nextTick:!0,selectTextIfInput:!1,preventScroll:!1}):M.current&&!e.isActiveElement(M.current)&&e.focus(M.current,{preventScroll:!1}))}),[L,B,M,S]);var P=t.useClickable({onClick:j,onMouseEnter:T,onMouseMove:F,onMouseLeave:V,ref:e.mergeRefs(z,w,a),isDisabled:f,isFocusable:v});return c({},y,P,{type:null!=h?h:P.type,id:D,role:"menuitem",tabIndex:L?0:-1})}var g=["descendants"],I=["children","as"],M=["rootProps"],S=["type"],N=["icon","iconSpacing","command","commandSpacing","children"],w=["icon","iconSpacing"],D=["className","title"],R=["title","children","className"],A=["className","children"],z=["className"],T=function(n){var t=n.children,i=e.useMultiStyleConfig("Menu",n),l=function(n){void 0===n&&(n={});var t=n,i=t.id,l=t.closeOnSelect,m=void 0===l||l,p=t.closeOnBlur,f=void 0===p||p,v=t.autoSelect,_=void 0===v||v,h=t.isLazy,b=t.isOpen,E=t.defaultIsOpen,k=t.onClose,x=t.onOpen,O=t.placement,C=void 0===O?"bottom-start":O,g=t.lazyBehavior,I=void 0===g?"unmount":g,M=t.direction,S=t.computePositionOnMount,N=void 0!==S&&S,w=s(t,d),D=u.useRef(null),R=u.useRef(null),A=y(),z=u.useCallback((function(){e.focus(D.current,{nextTick:!0,selectTextIfInput:!1})}),[]),T=u.useCallback((function(){var e=setTimeout((function(){var e=A.firstEnabled();e&&G(e.index)}));Z.current.add(e)}),[A]),F=u.useCallback((function(){var e=setTimeout((function(){var e=A.lastEnabled();e&&G(e.index)}));Z.current.add(e)}),[A]),V=u.useCallback((function(){null==x||x(),_?T():z()}),[_,T,z,x]),j=r.useDisclosure({isOpen:b,defaultIsOpen:E,onClose:k,onOpen:V}),L=j.isOpen,B=j.onOpen,P=j.onClose,U=j.onToggle;r.useOutsideClick({enabled:L&&f,ref:D,handler:function(e){var n;null!=(n=R.current)&&n.contains(e.target)||P()}});var q=o.usePopper(c({},w,{enabled:L||N,placement:C,direction:M})),K=u.useState(-1),H=K[0],G=K[1];r.useUpdateEffect((function(){L||G(-1)}),[L]),r.useFocusOnHide(D,{focusRef:R,visible:L,shouldFocus:!0});var W=a.useAnimationState({isOpen:L,ref:D}),J=r.useIds(i,"menu-button","menu-list"),Q=J[0],X=J[1],Y=u.useCallback((function(){B(),z()}),[B,z]),Z=u.useRef(new Set([]));return r.useUnmountEffect((function(){Z.current.forEach((function(e){return clearTimeout(e)})),Z.current.clear()})),{openAndFocusMenu:Y,openAndFocusFirstItem:u.useCallback((function(){B(),T()}),[T,B]),openAndFocusLastItem:u.useCallback((function(){B(),F()}),[B,F]),onTransitionEnd:u.useCallback((function(){var n,t,r=e.getOwnerDocument(D.current),a=null==(n=D.current)?void 0:n.contains(r.activeElement);if(L&&!a){var o=null==(t=A.item(H))?void 0:t.node;o&&e.focus(o,{selectTextIfInput:!1,preventScroll:!1})}}),[L,H,A]),unstable__animationState:W,descendants:A,popper:q,buttonId:Q,menuId:X,forceUpdate:q.forceUpdate,orientation:"vertical",isOpen:L,onToggle:U,onOpen:B,onClose:P,menuRef:D,buttonRef:R,focusedIndex:H,closeOnSelect:m,closeOnBlur:f,autoSelect:_,setFocusedIndex:G,isLazy:h,lazyBehavior:I}}(c({},e.omitThemingProps(n),{direction:e.useTheme().direction})),m=l.descendants,p=s(l,g),f=u.useMemo((function(){return p}),[p]),v=f.isOpen,h=f.onClose,b=f.forceUpdate;return u.createElement(_,{value:m},u.createElement(k,{value:f},u.createElement(e.StylesProvider,{value:i},e.runIfFn(t,{isOpen:v,onClose:h,forceUpdate:b}))))};e.__DEV__&&(T.displayName="Menu");var F=e.forwardRef((function(n,t){var r=e.useStyles();return u.createElement(e.chakra.button,c({ref:t},n,{__css:c({display:"inline-flex",appearance:"none",alignItems:"center",outline:0},r.button)}))})),V=e.forwardRef((function(n,t){n.children;var r=n.as,a=function(n,t){void 0===n&&(n={}),void 0===t&&(t=null);var r=x(),a=r.onToggle,o=r.popper,i=r.openAndFocusFirstItem,l=r.openAndFocusLastItem,s=u.useCallback((function(n){var t=e.normalizeEventKey(n),r={Enter:i,ArrowDown:i,ArrowUp:l}[t];r&&(n.preventDefault(),n.stopPropagation(),r(n))}),[i,l]);return c({},n,{ref:e.mergeRefs(r.buttonRef,t,o.referenceRef),id:r.buttonId,"data-active":e.dataAttr(r.isOpen),"aria-expanded":r.isOpen,"aria-haspopup":"menu","aria-controls":r.menuId,onClick:e.callAllHandlers(n.onClick,a),onKeyDown:e.callAllHandlers(n.onKeyDown,s)})}(s(n,I),t),o=r||F;return u.createElement(o,c({},a,{className:e.cx("chakra-menu__menu-button",n.className)}),u.createElement(e.chakra.span,{__css:{pointerEvents:"none",flex:"1 1 auto",minW:0}},n.children))}));e.__DEV__&&(V.displayName="MenuButton");var j={enter:{visibility:"visible",opacity:1,scale:1,transition:{duration:.2,ease:[.4,0,.2,1]}},exit:{transitionEnd:{visibility:"hidden"},opacity:0,scale:.8,transition:{duration:.1,easings:"easeOut"}}};var L,B,P=(L=e.chakra.div,"custom"in(B=i.motion)&&"function"==typeof B.custom?B.custom(L):B(L)),U=e.forwardRef((function(n,t){var a,o,i=n.rootProps,l=s(n,M),d=x(),m=d.isOpen,p=d.onTransitionEnd,f=d.unstable__animationState,v=function(n,t){void 0===n&&(n={}),void 0===t&&(t=null);var a=x();if(!a)throw new Error("useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>");var o=a.focusedIndex,i=a.setFocusedIndex,l=a.menuRef,s=a.isOpen,d=a.onClose,m=a.menuId,p=a.isLazy,f=a.lazyBehavior,v=a.unstable__animationState,_=h(),y=r.useShortcut({preventDefault:function(e){return" "!==e.key&&O(e.target)}}),b=u.useCallback((function(n){var t=e.normalizeEventKey(n),r={Tab:function(e){return e.preventDefault()},Escape:d,ArrowDown:function(){var e=_.nextEnabled(o);e&&i(e.index)},ArrowUp:function(){var e=_.prevEnabled(o);e&&i(e.index)}},a=r[t];if(a)return n.preventDefault(),void a(n);var l=y((function(n){var t=e.getNextItemFromSearch(_.values(),n,(function(e){var n,t;return null!=(n=null==e||null==(t=e.node)?void 0:t.textContent)?n:""}),_.item(o));if(t){var r=_.indexOf(t.node);i(r)}}));O(n.target)&&l(n)}),[_,o,y,d,i]),E=u.useRef(!1);s&&(E.current=!0);var k=e.determineLazyBehavior({hasBeenSelected:E.current,isLazy:p,lazyBehavior:f,isSelected:v.present});return c({},n,{ref:e.mergeRefs(l,t),children:k?n.children:null,tabIndex:-1,role:"menu",id:m,style:c({},n.style,{transformOrigin:"var(--popper-transform-origin)"}),"aria-orientation":"vertical",onKeyDown:e.callAllHandlers(n.onKeyDown,b)})}(l,t),_=function(e){void 0===e&&(e={});var n=x(),t=n.popper,r=n.isOpen;return t.getPopperProps(c({},e,{style:c({visibility:r?"visible":"hidden"},e.style)}))}(i),y=e.useStyles();return u.createElement(e.chakra.div,c({},_,{__css:{zIndex:null!=(a=n.zIndex)?a:null==(o=y.list)?void 0:o.zIndex}}),u.createElement(P,c({},v,{onUpdate:p,onAnimationComplete:e.callAll(f.onComplete,v.onAnimationComplete),className:e.cx("chakra-menu__menu-list",v.className),variants:j,initial:!1,animate:m?"enter":"exit",__css:c({outline:0},y.list)})))}));e.__DEV__&&(U.displayName="MenuList");var q=e.forwardRef((function(n,t){var r=n.type,a=s(n,S),o=e.useStyles(),i=a.as||r?null!=r?r:void 0:"button",l=u.useMemo((function(){return c({textDecoration:"none",color:"inherit",userSelect:"none",display:"flex",width:"100%",alignItems:"center",textAlign:"start",flex:"0 0 auto",outline:0},o.item)}),[o.item]);return u.createElement(e.chakra.button,c({ref:t,type:i},a,{__css:l}))})),K=e.forwardRef((function(n,t){var r=n.icon,a=n.iconSpacing,o=void 0===a?"0.75rem":a,i=n.command,l=n.commandSpacing,d=void 0===l?"0.75rem":l,m=n.children,p=C(s(n,N),t),f=r||i?u.createElement("span",{style:{pointerEvents:"none",flex:1}},m):m;return u.createElement(q,c({},p,{className:e.cx("chakra-menu__menuitem",p.className)}),r&&u.createElement(X,{fontSize:"0.8em",marginEnd:o},r),f,i&&u.createElement(Q,{marginStart:d},i))}));e.__DEV__&&(K.displayName="MenuItem");var H=function(e){return u.createElement("svg",c({viewBox:"0 0 14 14",width:"1em",height:"1em"},e),u.createElement("polygon",{fill:"currentColor",points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"}))},G=e.forwardRef((function(n,t){var r=n.icon,a=n.iconSpacing,o=void 0===a?"0.75rem":a,i=s(n,w),l=function(e,n){void 0===e&&(e={}),void 0===n&&(n=null);var t=e,r=t.type,a=void 0===r?"radio":r,o=t.isChecked;return c({},C(s(t,p),n),{role:"menuitem"+a,"aria-checked":o})}(i,t);return u.createElement(q,c({},l,{className:e.cx("chakra-menu__menuitem-option",i.className)}),null!==r&&u.createElement(X,{fontSize:"0.8em",marginEnd:o,opacity:n.isChecked?1:0},r||u.createElement(H,null)),u.createElement("span",{style:{flex:1}},l.children))}));G.id="MenuItemOption",e.__DEV__&&(G.displayName="MenuItemOption");var W=function(n){var t=n.className,a=n.title,o=function(n){void 0===n&&(n={});var t=n,a=t.children,o=t.type,i=void 0===o?"radio":o,l=t.value,d=t.defaultValue,m=t.onChange,p=s(t,f),v="radio"===i?"":[],_=r.useControllableState({defaultValue:null!=d?d:v,value:l,onChange:m}),h=_[0],y=_[1],b=u.useCallback((function(n){if("radio"===i&&e.isString(h)&&y(n),"checkbox"===i&&e.isArray(h)){var t=h.includes(n)?e.removeItem(h,n):e.addItem(h,n);y(t)}}),[h,y,i]);return c({},p,{children:e.getValidChildren(a).map((function(e){if("MenuItemOption"!==e.type.id)return e;var n="radio"===i?e.props.value===h:h.includes(e.props.value);return u.cloneElement(e,{type:i,onClick:function(n){b(e.props.value),null==e.props.onClick||e.props.onClick(n)},isChecked:n})}))})}(s(n,D));return u.createElement(J,c({title:a,className:e.cx("chakra-menu__option-group",t)},o))};e.__DEV__&&(W.displayName="MenuOptionGroup");var J=e.forwardRef((function(n,t){var r=n.title,a=n.children,o=n.className,i=s(n,R),l=e.cx("chakra-menu__group__title",o),d=e.useStyles();return u.createElement("div",{ref:t,className:"chakra-menu__group",role:"group"},r&&u.createElement(e.chakra.p,c({className:l},i,{__css:d.groupTitle}),r),a)}));e.__DEV__&&(J.displayName="MenuGroup");var Q=e.forwardRef((function(n,t){var r=e.useStyles();return u.createElement(e.chakra.span,c({ref:t},n,{__css:r.command,className:"chakra-menu__command"}))}));e.__DEV__&&(Q.displayName="MenuCommand");var X=function(n){var t=n.className,r=n.children,a=s(n,A),o=u.Children.only(r),i=u.isValidElement(o)?u.cloneElement(o,{focusable:"false","aria-hidden":!0,className:e.cx("chakra-menu__icon",o.props.className)}):null,l=e.cx("chakra-menu__icon-wrapper",t);return u.createElement(e.chakra.span,c({className:l},a,{__css:{flexShrink:0}}),i)};e.__DEV__&&(X.displayName="MenuIcon");var Y=function(n){var t=n.className,r=s(n,z),a=e.useStyles();return u.createElement(e.chakra.hr,c({role:"separator","aria-orientation":"horizontal",className:e.cx("chakra-menu__divider",t)},r,{__css:a.divider}))};e.__DEV__&&(Y.displayName="MenuDivider"),exports.Menu=T,exports.MenuButton=V,exports.MenuDivider=Y,exports.MenuGroup=J,exports.MenuItem=K,exports.MenuItemOption=G,exports.MenuList=U,exports.MenuOptionGroup=W,exports.useMenuState=function(){var e=x();return{isOpen:e.isOpen,onClose:e.onClose}};
|
|
2
|
+
//# sourceMappingURL=chakra-ui-menu.esm-fe9ef385.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chakra-ui-menu.esm-92cf9b97.js","sources":["../node_modules/@chakra-ui/menu/dist/chakra-ui-menu.esm.js"],"sourcesContent":["import { useMultiStyleConfig, omitThemingProps, useTheme, StylesProvider, forwardRef, chakra, useStyles } from '@chakra-ui/system';\nimport { focus, getOwnerDocument, normalizeEventKey, dataAttr, callAllHandlers, isHTMLElement, getNextItemFromSearch, determineLazyBehavior, isActiveElement, isString, isArray, removeItem, addItem, runIfFn, __DEV__, cx, callAll } from '@chakra-ui/utils';\nimport { motion } from 'framer-motion';\nimport * as React from 'react';\nimport { useClickable } from '@chakra-ui/clickable';\nimport { createDescendantContext } from '@chakra-ui/descendant';\nimport { useDisclosure, useOutsideClick, useUpdateEffect, useFocusOnHide, useIds, useUnmountEffect, useShortcut, useId, useControllableState } from '@chakra-ui/hooks';\nimport { useAnimationState } from '@chakra-ui/hooks/use-animation-state';\nimport { usePopper } from '@chakra-ui/popper';\nimport { createContext, mergeRefs, getValidChildren } from '@chakra-ui/react-utils';\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nvar _excluded$1 = [\"id\", \"closeOnSelect\", \"closeOnBlur\", \"autoSelect\", \"isLazy\", \"isOpen\", \"defaultIsOpen\", \"onClose\", \"onOpen\", \"placement\", \"lazyBehavior\", \"direction\", \"computePositionOnMount\"],\n _excluded2$1 = [\"onMouseEnter\", \"onMouseMove\", \"onMouseLeave\", \"onClick\", \"isDisabled\", \"isFocusable\", \"closeOnSelect\", \"type\"],\n _excluded3$1 = [\"type\", \"isChecked\"],\n _excluded4$1 = [\"children\", \"type\", \"value\", \"defaultValue\", \"onChange\"];\n/* -------------------------------------------------------------------------------------------------\n * Create context to track descendants and their indices\n * -----------------------------------------------------------------------------------------------*/\n\nvar _createDescendantCont = createDescendantContext(),\n MenuDescendantsProvider = _createDescendantCont[0],\n useMenuDescendantsContext = _createDescendantCont[1],\n useMenuDescendants = _createDescendantCont[2],\n useMenuDescendant = _createDescendantCont[3];\n\nvar _createContext = createContext({\n strict: false,\n name: \"MenuContext\"\n}),\n MenuProvider = _createContext[0],\n useMenuContext = _createContext[1];\n\n/**\n * React Hook to manage a menu\n *\n * It provides the logic and will be used with react context\n * to propagate its return value to all children\n */\nfunction useMenu(props) {\n if (props === void 0) {\n props = {};\n }\n\n var _props = props,\n id = _props.id,\n _props$closeOnSelect = _props.closeOnSelect,\n closeOnSelect = _props$closeOnSelect === void 0 ? true : _props$closeOnSelect,\n _props$closeOnBlur = _props.closeOnBlur,\n closeOnBlur = _props$closeOnBlur === void 0 ? true : _props$closeOnBlur,\n _props$autoSelect = _props.autoSelect,\n autoSelect = _props$autoSelect === void 0 ? true : _props$autoSelect,\n isLazy = _props.isLazy,\n isOpenProp = _props.isOpen,\n defaultIsOpen = _props.defaultIsOpen,\n onCloseProp = _props.onClose,\n onOpenProp = _props.onOpen,\n _props$placement = _props.placement,\n placement = _props$placement === void 0 ? \"bottom-start\" : _props$placement,\n _props$lazyBehavior = _props.lazyBehavior,\n lazyBehavior = _props$lazyBehavior === void 0 ? \"unmount\" : _props$lazyBehavior,\n direction = _props.direction,\n _props$computePositio = _props.computePositionOnMount,\n computePositionOnMount = _props$computePositio === void 0 ? false : _props$computePositio,\n popperProps = _objectWithoutPropertiesLoose(_props, _excluded$1);\n /**\n * Prepare the reference to the menu and disclosure\n */\n\n\n var menuRef = React.useRef(null);\n var buttonRef = React.useRef(null);\n /**\n * Context to register all menu item nodes\n */\n\n var descendants = useMenuDescendants();\n var focusMenu = React.useCallback(function () {\n focus(menuRef.current, {\n nextTick: true,\n selectTextIfInput: false\n });\n }, []);\n var focusFirstItem = React.useCallback(function () {\n var id = setTimeout(function () {\n var first = descendants.firstEnabled();\n if (first) setFocusedIndex(first.index);\n });\n timeoutIds.current.add(id);\n }, [descendants]);\n var focusLastItem = React.useCallback(function () {\n var id = setTimeout(function () {\n var last = descendants.lastEnabled();\n if (last) setFocusedIndex(last.index);\n });\n timeoutIds.current.add(id);\n }, [descendants]);\n var onOpenInternal = React.useCallback(function () {\n onOpenProp == null ? void 0 : onOpenProp();\n\n if (autoSelect) {\n focusFirstItem();\n } else {\n focusMenu();\n }\n }, [autoSelect, focusFirstItem, focusMenu, onOpenProp]);\n\n var _useDisclosure = useDisclosure({\n isOpen: isOpenProp,\n defaultIsOpen: defaultIsOpen,\n onClose: onCloseProp,\n onOpen: onOpenInternal\n }),\n isOpen = _useDisclosure.isOpen,\n onOpen = _useDisclosure.onOpen,\n onClose = _useDisclosure.onClose,\n onToggle = _useDisclosure.onToggle;\n\n useOutsideClick({\n enabled: isOpen && closeOnBlur,\n ref: menuRef,\n handler: function handler(event) {\n var _buttonRef$current;\n\n if (!((_buttonRef$current = buttonRef.current) != null && _buttonRef$current.contains(event.target))) {\n onClose();\n }\n }\n });\n /**\n * Add some popper.js for dynamic positioning\n */\n\n var popper = usePopper(_extends({}, popperProps, {\n enabled: isOpen || computePositionOnMount,\n placement: placement,\n direction: direction\n }));\n\n var _React$useState = React.useState(-1),\n focusedIndex = _React$useState[0],\n setFocusedIndex = _React$useState[1];\n /**\n * Focus the button when we close the menu\n */\n\n\n useUpdateEffect(function () {\n if (!isOpen) {\n setFocusedIndex(-1);\n }\n }, [isOpen]);\n useFocusOnHide(menuRef, {\n focusRef: buttonRef,\n visible: isOpen,\n shouldFocus: true\n });\n var animationState = useAnimationState({\n isOpen: isOpen,\n ref: menuRef\n });\n /**\n * Generate unique ids for menu's list and button\n */\n\n var _useIds = useIds(id, \"menu-button\", \"menu-list\"),\n buttonId = _useIds[0],\n menuId = _useIds[1];\n\n var openAndFocusMenu = React.useCallback(function () {\n onOpen();\n focusMenu();\n }, [onOpen, focusMenu]);\n var timeoutIds = React.useRef(new Set([]));\n useUnmountEffect(function () {\n timeoutIds.current.forEach(function (id) {\n return clearTimeout(id);\n });\n timeoutIds.current.clear();\n });\n var openAndFocusFirstItem = React.useCallback(function () {\n onOpen();\n focusFirstItem();\n }, [focusFirstItem, onOpen]);\n var openAndFocusLastItem = React.useCallback(function () {\n onOpen();\n focusLastItem();\n }, [onOpen, focusLastItem]);\n var refocus = React.useCallback(function () {\n var _menuRef$current, _descendants$item;\n\n var doc = getOwnerDocument(menuRef.current);\n var hasFocusWithin = (_menuRef$current = menuRef.current) == null ? void 0 : _menuRef$current.contains(doc.activeElement);\n var shouldRefocus = isOpen && !hasFocusWithin;\n if (!shouldRefocus) return;\n var node = (_descendants$item = descendants.item(focusedIndex)) == null ? void 0 : _descendants$item.node;\n\n if (node) {\n focus(node, {\n selectTextIfInput: false,\n preventScroll: false\n });\n }\n }, [isOpen, focusedIndex, descendants]);\n return {\n openAndFocusMenu: openAndFocusMenu,\n openAndFocusFirstItem: openAndFocusFirstItem,\n openAndFocusLastItem: openAndFocusLastItem,\n onTransitionEnd: refocus,\n unstable__animationState: animationState,\n descendants: descendants,\n popper: popper,\n buttonId: buttonId,\n menuId: menuId,\n forceUpdate: popper.forceUpdate,\n orientation: \"vertical\",\n isOpen: isOpen,\n onToggle: onToggle,\n onOpen: onOpen,\n onClose: onClose,\n menuRef: menuRef,\n buttonRef: buttonRef,\n focusedIndex: focusedIndex,\n closeOnSelect: closeOnSelect,\n closeOnBlur: closeOnBlur,\n autoSelect: autoSelect,\n setFocusedIndex: setFocusedIndex,\n isLazy: isLazy,\n lazyBehavior: lazyBehavior\n };\n}\n\n/**\n * React Hook to manage a menu button.\n *\n * The assumption here is that the `useMenu` hook is used\n * in a component higher up the tree, and its return value\n * is passed as `context` to this hook.\n */\nfunction useMenuButton(props, externalRef) {\n if (props === void 0) {\n props = {};\n }\n\n if (externalRef === void 0) {\n externalRef = null;\n }\n\n var menu = useMenuContext();\n var onToggle = menu.onToggle,\n popper = menu.popper,\n openAndFocusFirstItem = menu.openAndFocusFirstItem,\n openAndFocusLastItem = menu.openAndFocusLastItem;\n var onKeyDown = React.useCallback(function (event) {\n var eventKey = normalizeEventKey(event);\n var keyMap = {\n Enter: openAndFocusFirstItem,\n ArrowDown: openAndFocusFirstItem,\n ArrowUp: openAndFocusLastItem\n };\n var action = keyMap[eventKey];\n\n if (action) {\n event.preventDefault();\n event.stopPropagation();\n action(event);\n }\n }, [openAndFocusFirstItem, openAndFocusLastItem]);\n return _extends({}, props, {\n ref: mergeRefs(menu.buttonRef, externalRef, popper.referenceRef),\n id: menu.buttonId,\n \"data-active\": dataAttr(menu.isOpen),\n \"aria-expanded\": menu.isOpen,\n \"aria-haspopup\": \"menu\",\n \"aria-controls\": menu.menuId,\n onClick: callAllHandlers(props.onClick, onToggle),\n onKeyDown: callAllHandlers(props.onKeyDown, onKeyDown)\n });\n}\n\nfunction isTargetMenuItem(target) {\n var _target$getAttribute;\n\n // this will catch `menuitem`, `menuitemradio`, `menuitemcheckbox`\n return isHTMLElement(target) && !!((_target$getAttribute = target.getAttribute(\"role\")) != null && _target$getAttribute.startsWith(\"menuitem\"));\n}\n/* -------------------------------------------------------------------------------------------------\n * useMenuList\n * -----------------------------------------------------------------------------------------------*/\n\n\n/**\n * React Hook to manage a menu list.\n *\n * The assumption here is that the `useMenu` hook is used\n * in a component higher up the tree, and its return value\n * is passed as `context` to this hook.\n */\nfunction useMenuList(props, ref) {\n if (props === void 0) {\n props = {};\n }\n\n if (ref === void 0) {\n ref = null;\n }\n\n var menu = useMenuContext();\n\n if (!menu) {\n throw new Error(\"useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>\");\n }\n\n var focusedIndex = menu.focusedIndex,\n setFocusedIndex = menu.setFocusedIndex,\n menuRef = menu.menuRef,\n isOpen = menu.isOpen,\n onClose = menu.onClose,\n menuId = menu.menuId,\n isLazy = menu.isLazy,\n lazyBehavior = menu.lazyBehavior,\n animated = menu.unstable__animationState;\n var descendants = useMenuDescendantsContext();\n /**\n * Hook that creates a keydown event handler that listens\n * to printable keyboard character press\n */\n\n var createTypeaheadHandler = useShortcut({\n preventDefault: function preventDefault(event) {\n return event.key !== \" \" && isTargetMenuItem(event.target);\n }\n });\n var onKeyDown = React.useCallback(function (event) {\n var eventKey = normalizeEventKey(event);\n var keyMap = {\n Tab: function Tab(event) {\n return event.preventDefault();\n },\n Escape: onClose,\n ArrowDown: function ArrowDown() {\n var next = descendants.nextEnabled(focusedIndex);\n if (next) setFocusedIndex(next.index);\n },\n ArrowUp: function ArrowUp() {\n var prev = descendants.prevEnabled(focusedIndex);\n if (prev) setFocusedIndex(prev.index);\n }\n };\n var fn = keyMap[eventKey];\n\n if (fn) {\n event.preventDefault();\n fn(event);\n return;\n }\n /**\n * Typeahead: Based on current character pressed,\n * find the next item to be selected\n */\n\n\n var onTypeahead = createTypeaheadHandler(function (character) {\n var nextItem = getNextItemFromSearch(descendants.values(), character, function (item) {\n var _item$node$textConten, _item$node;\n\n return (_item$node$textConten = item == null ? void 0 : (_item$node = item.node) == null ? void 0 : _item$node.textContent) != null ? _item$node$textConten : \"\";\n }, descendants.item(focusedIndex));\n\n if (nextItem) {\n var index = descendants.indexOf(nextItem.node);\n setFocusedIndex(index);\n }\n });\n\n if (isTargetMenuItem(event.target)) {\n onTypeahead(event);\n }\n }, [descendants, focusedIndex, createTypeaheadHandler, onClose, setFocusedIndex]);\n var hasBeenOpened = React.useRef(false);\n\n if (isOpen) {\n hasBeenOpened.current = true;\n }\n\n var shouldRenderChildren = determineLazyBehavior({\n hasBeenSelected: hasBeenOpened.current,\n isLazy: isLazy,\n lazyBehavior: lazyBehavior,\n isSelected: animated.present\n });\n return _extends({}, props, {\n ref: mergeRefs(menuRef, ref),\n children: shouldRenderChildren ? props.children : null,\n tabIndex: -1,\n role: \"menu\",\n id: menuId,\n style: _extends({}, props.style, {\n transformOrigin: \"var(--popper-transform-origin)\"\n }),\n \"aria-orientation\": \"vertical\",\n onKeyDown: callAllHandlers(props.onKeyDown, onKeyDown)\n });\n}\n/* -------------------------------------------------------------------------------------------------\n * useMenuPosition: Composes usePopper to position the menu\n * -----------------------------------------------------------------------------------------------*/\n\nfunction useMenuPositioner(props) {\n if (props === void 0) {\n props = {};\n }\n\n var _useMenuContext = useMenuContext(),\n popper = _useMenuContext.popper,\n isOpen = _useMenuContext.isOpen;\n\n return popper.getPopperProps(_extends({}, props, {\n style: _extends({\n visibility: isOpen ? \"visible\" : \"hidden\"\n }, props.style)\n }));\n}\n/* -------------------------------------------------------------------------------------------------\n * useMenuItem: Hook for each menu item within the menu list.\n We also use it in `useMenuItemOption`\n * -----------------------------------------------------------------------------------------------*/\n\nfunction useMenuItem(props, externalRef) {\n if (props === void 0) {\n props = {};\n }\n\n if (externalRef === void 0) {\n externalRef = null;\n }\n\n var _props2 = props,\n onMouseEnterProp = _props2.onMouseEnter,\n onMouseMoveProp = _props2.onMouseMove,\n onMouseLeaveProp = _props2.onMouseLeave,\n onClickProp = _props2.onClick,\n isDisabled = _props2.isDisabled,\n isFocusable = _props2.isFocusable,\n closeOnSelect = _props2.closeOnSelect,\n typeProp = _props2.type,\n htmlProps = _objectWithoutPropertiesLoose(_props2, _excluded2$1);\n\n var menu = useMenuContext();\n var setFocusedIndex = menu.setFocusedIndex,\n focusedIndex = menu.focusedIndex,\n menuCloseOnSelect = menu.closeOnSelect,\n onClose = menu.onClose,\n menuRef = menu.menuRef,\n isOpen = menu.isOpen,\n menuId = menu.menuId;\n var ref = React.useRef(null);\n var id = menuId + \"-menuitem-\" + useId();\n /**\n * Register the menuitem's node into the domContext\n */\n\n var _useMenuDescendant = useMenuDescendant({\n disabled: isDisabled && !isFocusable\n }),\n index = _useMenuDescendant.index,\n register = _useMenuDescendant.register;\n\n var onMouseEnter = React.useCallback(function (event) {\n onMouseEnterProp == null ? void 0 : onMouseEnterProp(event);\n if (isDisabled) return;\n setFocusedIndex(index);\n }, [setFocusedIndex, index, isDisabled, onMouseEnterProp]);\n var onMouseMove = React.useCallback(function (event) {\n onMouseMoveProp == null ? void 0 : onMouseMoveProp(event);\n\n if (ref.current && !isActiveElement(ref.current)) {\n onMouseEnter(event);\n }\n }, [onMouseEnter, onMouseMoveProp]);\n var onMouseLeave = React.useCallback(function (event) {\n onMouseLeaveProp == null ? void 0 : onMouseLeaveProp(event);\n if (isDisabled) return;\n setFocusedIndex(-1);\n }, [setFocusedIndex, isDisabled, onMouseLeaveProp]);\n var onClick = React.useCallback(function (event) {\n onClickProp == null ? void 0 : onClickProp(event);\n if (!isTargetMenuItem(event.currentTarget)) return;\n /**\n * Close menu and parent menus, allowing the MenuItem\n * to override its parent menu's `closeOnSelect` prop.\n */\n\n if (closeOnSelect != null ? closeOnSelect : menuCloseOnSelect) {\n onClose();\n }\n }, [onClose, onClickProp, menuCloseOnSelect, closeOnSelect]);\n var isFocused = index === focusedIndex;\n var trulyDisabled = isDisabled && !isFocusable;\n useUpdateEffect(function () {\n if (!isOpen) return;\n\n if (isFocused && !trulyDisabled && ref.current) {\n focus(ref.current, {\n nextTick: true,\n selectTextIfInput: false,\n preventScroll: false\n });\n } else if (menuRef.current && !isActiveElement(menuRef.current)) {\n focus(menuRef.current, {\n preventScroll: false\n });\n }\n }, [isFocused, trulyDisabled, menuRef, isOpen]);\n var clickableProps = useClickable({\n onClick: onClick,\n onMouseEnter: onMouseEnter,\n onMouseMove: onMouseMove,\n onMouseLeave: onMouseLeave,\n ref: mergeRefs(register, ref, externalRef),\n isDisabled: isDisabled,\n isFocusable: isFocusable\n });\n return _extends({}, htmlProps, clickableProps, {\n type: typeProp != null ? typeProp : clickableProps.type,\n id: id,\n role: \"menuitem\",\n tabIndex: isFocused ? 0 : -1\n });\n}\n/* -------------------------------------------------------------------------------------------------\n * useMenuOption: Composes useMenuItem to provide a selectable/checkable menu item\n * -----------------------------------------------------------------------------------------------*/\n\nfunction useMenuOption(props, ref) {\n if (props === void 0) {\n props = {};\n }\n\n if (ref === void 0) {\n ref = null;\n }\n\n var _props3 = props,\n _props3$type = _props3.type,\n type = _props3$type === void 0 ? \"radio\" : _props3$type,\n isChecked = _props3.isChecked,\n rest = _objectWithoutPropertiesLoose(_props3, _excluded3$1);\n\n var ownProps = useMenuItem(rest, ref);\n return _extends({}, ownProps, {\n role: \"menuitem\" + type,\n \"aria-checked\": isChecked\n });\n}\n/* -------------------------------------------------------------------------------------------------\n * useMenuOptionGroup: Manages the state of multiple selectable menuitem or menu option\n * -----------------------------------------------------------------------------------------------*/\n\nfunction useMenuOptionGroup(props) {\n if (props === void 0) {\n props = {};\n }\n\n var _props4 = props,\n children = _props4.children,\n _props4$type = _props4.type,\n type = _props4$type === void 0 ? \"radio\" : _props4$type,\n valueProp = _props4.value,\n defaultValue = _props4.defaultValue,\n onChangeProp = _props4.onChange,\n htmlProps = _objectWithoutPropertiesLoose(_props4, _excluded4$1);\n\n var isRadio = type === \"radio\";\n var fallback = isRadio ? \"\" : [];\n\n var _useControllableState = useControllableState({\n defaultValue: defaultValue != null ? defaultValue : fallback,\n value: valueProp,\n onChange: onChangeProp\n }),\n value = _useControllableState[0],\n setValue = _useControllableState[1];\n\n var onChange = React.useCallback(function (selectedValue) {\n if (type === \"radio\" && isString(value)) {\n setValue(selectedValue);\n }\n\n if (type === \"checkbox\" && isArray(value)) {\n var nextValue = value.includes(selectedValue) ? removeItem(value, selectedValue) : addItem(value, selectedValue);\n setValue(nextValue);\n }\n }, [value, setValue, type]);\n var validChildren = getValidChildren(children);\n var clones = validChildren.map(function (child) {\n /**\n * We've added an internal `id` to each `MenuItemOption`,\n * let's use that for type-checking.\n *\n * We can't rely on displayName or the element's type since\n * they can be changed by the user.\n */\n if (child.type.id !== \"MenuItemOption\") return child;\n\n var onClick = function onClick(event) {\n onChange(child.props.value);\n child.props.onClick == null ? void 0 : child.props.onClick(event);\n };\n\n var isChecked = type === \"radio\" ? child.props.value === value : value.includes(child.props.value);\n return /*#__PURE__*/React.cloneElement(child, {\n type: type,\n onClick: onClick,\n isChecked: isChecked\n });\n });\n return _extends({}, htmlProps, {\n children: clones\n });\n}\nfunction useMenuState() {\n var _useMenuContext2 = useMenuContext(),\n isOpen = _useMenuContext2.isOpen,\n onClose = _useMenuContext2.onClose;\n\n return {\n isOpen: isOpen,\n onClose: onClose\n };\n}\n\nvar _excluded = [\"descendants\"],\n _excluded2 = [\"children\", \"as\"],\n _excluded3 = [\"rootProps\"],\n _excluded4 = [\"type\"],\n _excluded5 = [\"icon\", \"iconSpacing\", \"command\", \"commandSpacing\", \"children\"],\n _excluded6 = [\"icon\", \"iconSpacing\"],\n _excluded7 = [\"className\", \"title\"],\n _excluded8 = [\"title\", \"children\", \"className\"],\n _excluded9 = [\"className\", \"children\"],\n _excluded10 = [\"className\"];\n\n/**\n * Menu provides context, state, and focus management\n * to its sub-components. It doesn't render any DOM node.\n */\nvar Menu = function Menu(props) {\n var children = props.children;\n var styles = useMultiStyleConfig(\"Menu\", props);\n var ownProps = omitThemingProps(props);\n\n var _useTheme = useTheme(),\n direction = _useTheme.direction;\n\n var _useMenu = useMenu(_extends({}, ownProps, {\n direction: direction\n })),\n descendants = _useMenu.descendants,\n ctx = _objectWithoutPropertiesLoose(_useMenu, _excluded);\n\n var context = React.useMemo(function () {\n return ctx;\n }, [ctx]);\n var isOpen = context.isOpen,\n onClose = context.onClose,\n forceUpdate = context.forceUpdate;\n return /*#__PURE__*/React.createElement(MenuDescendantsProvider, {\n value: descendants\n }, /*#__PURE__*/React.createElement(MenuProvider, {\n value: context\n }, /*#__PURE__*/React.createElement(StylesProvider, {\n value: styles\n }, runIfFn(children, {\n isOpen: isOpen,\n onClose: onClose,\n forceUpdate: forceUpdate\n }))));\n};\n\nif (__DEV__) {\n Menu.displayName = \"Menu\";\n}\n\nvar StyledMenuButton = /*#__PURE__*/forwardRef(function (props, ref) {\n var styles = useStyles();\n return /*#__PURE__*/React.createElement(chakra.button, _extends({\n ref: ref\n }, props, {\n __css: _extends({\n display: \"inline-flex\",\n appearance: \"none\",\n alignItems: \"center\",\n outline: 0\n }, styles.button)\n }));\n});\n/**\n * The trigger for the menu list. Must be a direct child of `Menu`.\n */\n\nvar MenuButton = /*#__PURE__*/forwardRef(function (props, ref) {\n props.children;\n var As = props.as,\n rest = _objectWithoutPropertiesLoose(props, _excluded2);\n\n var buttonProps = useMenuButton(rest, ref);\n var Element = As || StyledMenuButton;\n return /*#__PURE__*/React.createElement(Element, _extends({}, buttonProps, {\n className: cx(\"chakra-menu__menu-button\", props.className)\n }), /*#__PURE__*/React.createElement(chakra.span, {\n __css: {\n pointerEvents: \"none\",\n flex: \"1 1 auto\",\n minW: 0\n }\n }, props.children));\n});\n\nif (__DEV__) {\n MenuButton.displayName = \"MenuButton\";\n}\n\nvar motionVariants = {\n enter: {\n visibility: \"visible\",\n opacity: 1,\n scale: 1,\n transition: {\n duration: 0.2,\n ease: [0.4, 0, 0.2, 1]\n }\n },\n exit: {\n transitionEnd: {\n visibility: \"hidden\"\n },\n opacity: 0,\n scale: 0.8,\n transition: {\n duration: 0.1,\n easings: \"easeOut\"\n }\n }\n};\n\nfunction __motion(el) {\n var m = motion;\n\n if (\"custom\" in m && typeof m.custom === \"function\") {\n return m.custom(el);\n }\n\n return m(el);\n} // @future: only call `motion(chakra.div)` when we drop framer-motion v3 support\n\n\nvar MenuTransition = __motion(chakra.div);\n\nvar MenuList = /*#__PURE__*/forwardRef(function (props, ref) {\n var _props$zIndex, _styles$list;\n\n var rootProps = props.rootProps,\n rest = _objectWithoutPropertiesLoose(props, _excluded3);\n\n var _useMenuContext = useMenuContext(),\n isOpen = _useMenuContext.isOpen,\n onTransitionEnd = _useMenuContext.onTransitionEnd,\n animated = _useMenuContext.unstable__animationState;\n\n var ownProps = useMenuList(rest, ref);\n var positionerProps = useMenuPositioner(rootProps);\n var styles = useStyles();\n return /*#__PURE__*/React.createElement(chakra.div, _extends({}, positionerProps, {\n __css: {\n zIndex: (_props$zIndex = props.zIndex) != null ? _props$zIndex : (_styles$list = styles.list) == null ? void 0 : _styles$list.zIndex\n }\n }), /*#__PURE__*/React.createElement(MenuTransition, _extends({}, ownProps, {\n /**\n * We could call this on either `onAnimationComplete` or `onUpdate`.\n * It seems the re-focusing works better with the `onUpdate`\n */\n onUpdate: onTransitionEnd,\n onAnimationComplete: callAll(animated.onComplete, ownProps.onAnimationComplete),\n className: cx(\"chakra-menu__menu-list\", ownProps.className),\n variants: motionVariants,\n initial: false,\n animate: isOpen ? \"enter\" : \"exit\",\n __css: _extends({\n outline: 0\n }, styles.list)\n })));\n});\n\nif (__DEV__) {\n MenuList.displayName = \"MenuList\";\n}\n\nvar StyledMenuItem = /*#__PURE__*/forwardRef(function (props, ref) {\n var type = props.type,\n rest = _objectWithoutPropertiesLoose(props, _excluded4);\n\n var styles = useStyles();\n /**\n * Given another component, use its type if present\n * Else, use no type to avoid invalid html, e.g. <a type=\"button\" />\n * Else, fall back to \"button\"\n */\n\n var btnType = rest.as || type ? type != null ? type : undefined : \"button\";\n var buttonStyles = React.useMemo(function () {\n return _extends({\n textDecoration: \"none\",\n color: \"inherit\",\n userSelect: \"none\",\n display: \"flex\",\n width: \"100%\",\n alignItems: \"center\",\n textAlign: \"start\",\n flex: \"0 0 auto\",\n outline: 0\n }, styles.item);\n }, [styles.item]);\n return /*#__PURE__*/React.createElement(chakra.button, _extends({\n ref: ref,\n type: btnType\n }, rest, {\n __css: buttonStyles\n }));\n});\nvar MenuItem = /*#__PURE__*/forwardRef(function (props, ref) {\n var icon = props.icon,\n _props$iconSpacing = props.iconSpacing,\n iconSpacing = _props$iconSpacing === void 0 ? \"0.75rem\" : _props$iconSpacing,\n command = props.command,\n _props$commandSpacing = props.commandSpacing,\n commandSpacing = _props$commandSpacing === void 0 ? \"0.75rem\" : _props$commandSpacing,\n children = props.children,\n rest = _objectWithoutPropertiesLoose(props, _excluded5);\n\n var menuitemProps = useMenuItem(rest, ref);\n var shouldWrap = icon || command;\n\n var _children = shouldWrap ? /*#__PURE__*/React.createElement(\"span\", {\n style: {\n pointerEvents: \"none\",\n flex: 1\n }\n }, children) : children;\n\n return /*#__PURE__*/React.createElement(StyledMenuItem, _extends({}, menuitemProps, {\n className: cx(\"chakra-menu__menuitem\", menuitemProps.className)\n }), icon && /*#__PURE__*/React.createElement(MenuIcon, {\n fontSize: \"0.8em\",\n marginEnd: iconSpacing\n }, icon), _children, command && /*#__PURE__*/React.createElement(MenuCommand, {\n marginStart: commandSpacing\n }, command));\n});\n\nif (__DEV__) {\n MenuItem.displayName = \"MenuItem\";\n}\n\nvar CheckIcon = function CheckIcon(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n viewBox: \"0 0 14 14\",\n width: \"1em\",\n height: \"1em\"\n }, props), /*#__PURE__*/React.createElement(\"polygon\", {\n fill: \"currentColor\",\n points: \"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039\"\n }));\n};\n\nvar MenuItemOption = /*#__PURE__*/forwardRef(function (props, ref) {\n // menu option item should always be `type=button`, so we omit `type`\n var icon = props.icon,\n _props$iconSpacing2 = props.iconSpacing,\n iconSpacing = _props$iconSpacing2 === void 0 ? \"0.75rem\" : _props$iconSpacing2,\n rest = _objectWithoutPropertiesLoose(props, _excluded6);\n\n var optionProps = useMenuOption(rest, ref);\n return /*#__PURE__*/React.createElement(StyledMenuItem, _extends({}, optionProps, {\n className: cx(\"chakra-menu__menuitem-option\", rest.className)\n }), icon !== null && /*#__PURE__*/React.createElement(MenuIcon, {\n fontSize: \"0.8em\",\n marginEnd: iconSpacing,\n opacity: props.isChecked ? 1 : 0\n }, icon || /*#__PURE__*/React.createElement(CheckIcon, null)), /*#__PURE__*/React.createElement(\"span\", {\n style: {\n flex: 1\n }\n }, optionProps.children));\n});\nMenuItemOption.id = \"MenuItemOption\";\n\nif (__DEV__) {\n MenuItemOption.displayName = \"MenuItemOption\";\n}\n\nvar MenuOptionGroup = function MenuOptionGroup(props) {\n var className = props.className,\n title = props.title,\n rest = _objectWithoutPropertiesLoose(props, _excluded7);\n\n var ownProps = useMenuOptionGroup(rest);\n return /*#__PURE__*/React.createElement(MenuGroup, _extends({\n title: title,\n className: cx(\"chakra-menu__option-group\", className)\n }, ownProps));\n};\n\nif (__DEV__) {\n MenuOptionGroup.displayName = \"MenuOptionGroup\";\n}\n\nvar MenuGroup = /*#__PURE__*/forwardRef(function (props, ref) {\n var title = props.title,\n children = props.children,\n className = props.className,\n rest = _objectWithoutPropertiesLoose(props, _excluded8);\n\n var _className = cx(\"chakra-menu__group__title\", className);\n\n var styles = useStyles();\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: ref,\n className: \"chakra-menu__group\",\n role: \"group\"\n }, title && /*#__PURE__*/React.createElement(chakra.p, _extends({\n className: _className\n }, rest, {\n __css: styles.groupTitle\n }), title), children);\n});\n\nif (__DEV__) {\n MenuGroup.displayName = \"MenuGroup\";\n}\n\nvar MenuCommand = /*#__PURE__*/forwardRef(function (props, ref) {\n var styles = useStyles();\n return /*#__PURE__*/React.createElement(chakra.span, _extends({\n ref: ref\n }, props, {\n __css: styles.command,\n className: \"chakra-menu__command\"\n }));\n});\n\nif (__DEV__) {\n MenuCommand.displayName = \"MenuCommand\";\n}\n\nvar MenuIcon = function MenuIcon(props) {\n var className = props.className,\n children = props.children,\n rest = _objectWithoutPropertiesLoose(props, _excluded9);\n\n var child = React.Children.only(children);\n var clone = /*#__PURE__*/React.isValidElement(child) ? /*#__PURE__*/React.cloneElement(child, {\n focusable: \"false\",\n \"aria-hidden\": true,\n className: cx(\"chakra-menu__icon\", child.props.className)\n }) : null;\n\n var _className = cx(\"chakra-menu__icon-wrapper\", className);\n\n return /*#__PURE__*/React.createElement(chakra.span, _extends({\n className: _className\n }, rest, {\n __css: {\n flexShrink: 0\n }\n }), clone);\n};\n\nif (__DEV__) {\n MenuIcon.displayName = \"MenuIcon\";\n}\n\nvar MenuDivider = function MenuDivider(props) {\n var className = props.className,\n rest = _objectWithoutPropertiesLoose(props, _excluded10);\n\n var styles = useStyles();\n return /*#__PURE__*/React.createElement(chakra.hr, _extends({\n role: \"separator\",\n \"aria-orientation\": \"horizontal\",\n className: cx(\"chakra-menu__divider\", className)\n }, rest, {\n __css: styles.divider\n }));\n};\n\nif (__DEV__) {\n MenuDivider.displayName = \"MenuDivider\";\n}\n\nexport { Menu, MenuButton, MenuCommand, MenuDescendantsProvider, MenuDivider, MenuGroup, MenuIcon, MenuItem, MenuItemOption, MenuList, MenuOptionGroup, MenuProvider, useMenu, useMenuButton, useMenuContext, useMenuDescendant, useMenuDescendants, useMenuDescendantsContext, useMenuItem, useMenuList, useMenuOption, useMenuOptionGroup, useMenuPositioner, useMenuState };\n"],"names":["_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","_objectWithoutPropertiesLoose","excluded","sourceKeys","keys","indexOf","_excluded$1","_excluded2$1","_excluded3$1","_createDescendantCont","createDescendantContext","MenuDescendantsProvider","useMenuDescendantsContext","useMenuDescendants","useMenuDescendant","_createContext","createContext","strict","name","MenuProvider","useMenuContext","isTargetMenuItem","_target$getAttribute","isHTMLElement","getAttribute","startsWith","useMenuItem","props","externalRef","_props2","onMouseEnterProp","onMouseEnter","onMouseMoveProp","onMouseMove","onMouseLeaveProp","onMouseLeave","onClickProp","onClick","isDisabled","isFocusable","closeOnSelect","typeProp","type","htmlProps","menu","setFocusedIndex","focusedIndex","menuCloseOnSelect","onClose","menuRef","isOpen","menuId","ref","React","useRef","id","useId","_useMenuDescendant","disabled","index","register","useCallback","event","current","isActiveElement","currentTarget","isFocused","trulyDisabled","useUpdateEffect","focus","nextTick","selectTextIfInput","preventScroll","clickableProps","useClickable","mergeRefs","role","tabIndex","_excluded","_excluded2","_excluded3","_excluded4","_excluded5","_excluded6","_excluded8","_excluded9","_excluded10","Menu","children","styles","useMultiStyleConfig","_useMenu","_props","_props$closeOnSelect","_props$closeOnBlur","closeOnBlur","_props$autoSelect","autoSelect","isLazy","isOpenProp","defaultIsOpen","onCloseProp","onOpenProp","onOpen","_props$placement","placement","_props$lazyBehavior","lazyBehavior","direction","_props$computePositio","computePositionOnMount","popperProps","buttonRef","descendants","focusMenu","focusFirstItem","setTimeout","first","firstEnabled","timeoutIds","add","focusLastItem","last","lastEnabled","onOpenInternal","_useDisclosure","useDisclosure","onToggle","useOutsideClick","enabled","handler","_buttonRef$current","contains","popper","usePopper","_React$useState","useState","useFocusOnHide","focusRef","visible","shouldFocus","animationState","useAnimationState","_useIds","useIds","buttonId","openAndFocusMenu","Set","useUnmountEffect","forEach","clearTimeout","clear","openAndFocusFirstItem","openAndFocusLastItem","onTransitionEnd","_menuRef$current","_descendants$item","doc","getOwnerDocument","hasFocusWithin","activeElement","node","item","unstable__animationState","forceUpdate","orientation","useMenu","omitThemingProps","useTheme","ctx","context","useMemo","createElement","value","StylesProvider","runIfFn","__DEV__","displayName","StyledMenuButton","forwardRef","useStyles","chakra","button","__css","display","appearance","alignItems","outline","MenuButton","As","as","buttonProps","onKeyDown","eventKey","normalizeEventKey","action","Enter","ArrowDown","ArrowUp","preventDefault","stopPropagation","referenceRef","dataAttr","callAllHandlers","useMenuButton","Element","className","cx","span","pointerEvents","flex","minW","motionVariants","enter","visibility","opacity","scale","transition","duration","ease","exit","transitionEnd","easings","el","m","MenuTransition","div","motion","custom","MenuList","_props$zIndex","_styles$list","rootProps","rest","_useMenuContext","animated","ownProps","Error","createTypeaheadHandler","useShortcut","keyMap","Tab","Escape","next","nextEnabled","prev","prevEnabled","fn","onTypeahead","character","nextItem","getNextItemFromSearch","values","_item$node$textConten","_item$node","textContent","hasBeenOpened","shouldRenderChildren","determineLazyBehavior","hasBeenSelected","isSelected","present","style","transformOrigin","useMenuList","positionerProps","getPopperProps","useMenuPositioner","zIndex","list","onUpdate","onAnimationComplete","callAll","onComplete","variants","initial","animate","StyledMenuItem","btnType","undefined","buttonStyles","textDecoration","color","userSelect","width","textAlign","MenuItem","icon","_props$iconSpacing","iconSpacing","command","_props$commandSpacing","commandSpacing","menuitemProps","_children","MenuIcon","fontSize","marginEnd","MenuCommand","marginStart","CheckIcon","viewBox","height","fill","points","MenuItemOption","_props$iconSpacing2","optionProps","_props3","_props3$type","isChecked","useMenuOption","MenuGroup","title","_className","p","groupTitle","child","Children","only","clone","isValidElement","cloneElement","focusable","flexShrink","MenuDivider","hr","divider","_useMenuContext2"],"mappings":"8mBAWA,SAASA,IAeP,OAdAA,EAAWC,OAAOC,QAAU,SAAUC,GACpC,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CACzC,IAAIG,EAASF,UAAUD,GAEvB,IAAK,IAAII,KAAOD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AAA,GAAG,oBAAqB8G,EAAMlS,MAAMmL,aAC5C,KAED4G,EAAa3G,EAAAA,GAAG,4BAA6BD,GAEjD,OAAoBzJ,EAAMuH,cAAcS,SAAO2B,KAAM7N,EAAS,CAC5D2N,UAAW4G,GACVjF,EAAM,CACPlD,MAAO,CACL6I,WAAY,KAEZJ,IAGFhJ,YACFuH,EAAStH,YAAc,YAGtB,IAACoJ,EAAc,SAAqB1S,GACrC,IAAImL,EAAYnL,EAAMmL,UAClB2B,EAAOxO,EAA8B0B,EAAO2D,GAE5CG,EAAS2F,EAAAA,YACb,OAAoB/H,EAAMuH,cAAcS,SAAOiJ,GAAInV,EAAS,CAC1DyF,KAAM,YACN,mBAAoB,aACpBkI,UAAWC,EAAAA,GAAG,uBAAwBD,IACrC2B,EAAM,CACPlD,MAAO9F,EAAO8O,YAIdvJ,YACFqJ,EAAYpJ,YAAc,iLAxX5B,WACE,IAAIuJ,EAAmBpT,IAIvB,MAAO,CACL8B,OAJWsR,EAAiBtR,OAK5BF,QAJYwR,EAAiBxR"}
|
|
1
|
+
{"version":3,"file":"chakra-ui-menu.esm-fe9ef385.js","sources":["../node_modules/@chakra-ui/menu/dist/chakra-ui-menu.esm.js"],"sourcesContent":["import { useMultiStyleConfig, omitThemingProps, useTheme, StylesProvider, forwardRef, chakra, useStyles } from '@chakra-ui/system';\nimport { focus, getOwnerDocument, normalizeEventKey, dataAttr, callAllHandlers, isHTMLElement, getNextItemFromSearch, determineLazyBehavior, isActiveElement, isString, isArray, removeItem, addItem, runIfFn, __DEV__, cx, callAll } from '@chakra-ui/utils';\nimport { motion } from 'framer-motion';\nimport * as React from 'react';\nimport { useClickable } from '@chakra-ui/clickable';\nimport { createDescendantContext } from '@chakra-ui/descendant';\nimport { useDisclosure, useOutsideClick, useUpdateEffect, useFocusOnHide, useIds, useUnmountEffect, useShortcut, useId, useControllableState } from '@chakra-ui/hooks';\nimport { useAnimationState } from '@chakra-ui/hooks/use-animation-state';\nimport { usePopper } from '@chakra-ui/popper';\nimport { createContext, mergeRefs, getValidChildren } from '@chakra-ui/react-utils';\n\nfunction _extends() {\n _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n };\n\n return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n\n return target;\n}\n\nvar _excluded$1 = [\"id\", \"closeOnSelect\", \"closeOnBlur\", \"autoSelect\", \"isLazy\", \"isOpen\", \"defaultIsOpen\", \"onClose\", \"onOpen\", \"placement\", \"lazyBehavior\", \"direction\", \"computePositionOnMount\"],\n _excluded2$1 = [\"onMouseEnter\", \"onMouseMove\", \"onMouseLeave\", \"onClick\", \"isDisabled\", \"isFocusable\", \"closeOnSelect\", \"type\"],\n _excluded3$1 = [\"type\", \"isChecked\"],\n _excluded4$1 = [\"children\", \"type\", \"value\", \"defaultValue\", \"onChange\"];\n/* -------------------------------------------------------------------------------------------------\n * Create context to track descendants and their indices\n * -----------------------------------------------------------------------------------------------*/\n\nvar _createDescendantCont = createDescendantContext(),\n MenuDescendantsProvider = _createDescendantCont[0],\n useMenuDescendantsContext = _createDescendantCont[1],\n useMenuDescendants = _createDescendantCont[2],\n useMenuDescendant = _createDescendantCont[3];\n\nvar _createContext = createContext({\n strict: false,\n name: \"MenuContext\"\n}),\n MenuProvider = _createContext[0],\n useMenuContext = _createContext[1];\n\n/**\n * React Hook to manage a menu\n *\n * It provides the logic and will be used with react context\n * to propagate its return value to all children\n */\nfunction useMenu(props) {\n if (props === void 0) {\n props = {};\n }\n\n var _props = props,\n id = _props.id,\n _props$closeOnSelect = _props.closeOnSelect,\n closeOnSelect = _props$closeOnSelect === void 0 ? true : _props$closeOnSelect,\n _props$closeOnBlur = _props.closeOnBlur,\n closeOnBlur = _props$closeOnBlur === void 0 ? true : _props$closeOnBlur,\n _props$autoSelect = _props.autoSelect,\n autoSelect = _props$autoSelect === void 0 ? true : _props$autoSelect,\n isLazy = _props.isLazy,\n isOpenProp = _props.isOpen,\n defaultIsOpen = _props.defaultIsOpen,\n onCloseProp = _props.onClose,\n onOpenProp = _props.onOpen,\n _props$placement = _props.placement,\n placement = _props$placement === void 0 ? \"bottom-start\" : _props$placement,\n _props$lazyBehavior = _props.lazyBehavior,\n lazyBehavior = _props$lazyBehavior === void 0 ? \"unmount\" : _props$lazyBehavior,\n direction = _props.direction,\n _props$computePositio = _props.computePositionOnMount,\n computePositionOnMount = _props$computePositio === void 0 ? false : _props$computePositio,\n popperProps = _objectWithoutPropertiesLoose(_props, _excluded$1);\n /**\n * Prepare the reference to the menu and disclosure\n */\n\n\n var menuRef = React.useRef(null);\n var buttonRef = React.useRef(null);\n /**\n * Context to register all menu item nodes\n */\n\n var descendants = useMenuDescendants();\n var focusMenu = React.useCallback(function () {\n focus(menuRef.current, {\n nextTick: true,\n selectTextIfInput: false\n });\n }, []);\n var focusFirstItem = React.useCallback(function () {\n var id = setTimeout(function () {\n var first = descendants.firstEnabled();\n if (first) setFocusedIndex(first.index);\n });\n timeoutIds.current.add(id);\n }, [descendants]);\n var focusLastItem = React.useCallback(function () {\n var id = setTimeout(function () {\n var last = descendants.lastEnabled();\n if (last) setFocusedIndex(last.index);\n });\n timeoutIds.current.add(id);\n }, [descendants]);\n var onOpenInternal = React.useCallback(function () {\n onOpenProp == null ? void 0 : onOpenProp();\n\n if (autoSelect) {\n focusFirstItem();\n } else {\n focusMenu();\n }\n }, [autoSelect, focusFirstItem, focusMenu, onOpenProp]);\n\n var _useDisclosure = useDisclosure({\n isOpen: isOpenProp,\n defaultIsOpen: defaultIsOpen,\n onClose: onCloseProp,\n onOpen: onOpenInternal\n }),\n isOpen = _useDisclosure.isOpen,\n onOpen = _useDisclosure.onOpen,\n onClose = _useDisclosure.onClose,\n onToggle = _useDisclosure.onToggle;\n\n useOutsideClick({\n enabled: isOpen && closeOnBlur,\n ref: menuRef,\n handler: function handler(event) {\n var _buttonRef$current;\n\n if (!((_buttonRef$current = buttonRef.current) != null && _buttonRef$current.contains(event.target))) {\n onClose();\n }\n }\n });\n /**\n * Add some popper.js for dynamic positioning\n */\n\n var popper = usePopper(_extends({}, popperProps, {\n enabled: isOpen || computePositionOnMount,\n placement: placement,\n direction: direction\n }));\n\n var _React$useState = React.useState(-1),\n focusedIndex = _React$useState[0],\n setFocusedIndex = _React$useState[1];\n /**\n * Focus the button when we close the menu\n */\n\n\n useUpdateEffect(function () {\n if (!isOpen) {\n setFocusedIndex(-1);\n }\n }, [isOpen]);\n useFocusOnHide(menuRef, {\n focusRef: buttonRef,\n visible: isOpen,\n shouldFocus: true\n });\n var animationState = useAnimationState({\n isOpen: isOpen,\n ref: menuRef\n });\n /**\n * Generate unique ids for menu's list and button\n */\n\n var _useIds = useIds(id, \"menu-button\", \"menu-list\"),\n buttonId = _useIds[0],\n menuId = _useIds[1];\n\n var openAndFocusMenu = React.useCallback(function () {\n onOpen();\n focusMenu();\n }, [onOpen, focusMenu]);\n var timeoutIds = React.useRef(new Set([]));\n useUnmountEffect(function () {\n timeoutIds.current.forEach(function (id) {\n return clearTimeout(id);\n });\n timeoutIds.current.clear();\n });\n var openAndFocusFirstItem = React.useCallback(function () {\n onOpen();\n focusFirstItem();\n }, [focusFirstItem, onOpen]);\n var openAndFocusLastItem = React.useCallback(function () {\n onOpen();\n focusLastItem();\n }, [onOpen, focusLastItem]);\n var refocus = React.useCallback(function () {\n var _menuRef$current, _descendants$item;\n\n var doc = getOwnerDocument(menuRef.current);\n var hasFocusWithin = (_menuRef$current = menuRef.current) == null ? void 0 : _menuRef$current.contains(doc.activeElement);\n var shouldRefocus = isOpen && !hasFocusWithin;\n if (!shouldRefocus) return;\n var node = (_descendants$item = descendants.item(focusedIndex)) == null ? void 0 : _descendants$item.node;\n\n if (node) {\n focus(node, {\n selectTextIfInput: false,\n preventScroll: false\n });\n }\n }, [isOpen, focusedIndex, descendants]);\n return {\n openAndFocusMenu: openAndFocusMenu,\n openAndFocusFirstItem: openAndFocusFirstItem,\n openAndFocusLastItem: openAndFocusLastItem,\n onTransitionEnd: refocus,\n unstable__animationState: animationState,\n descendants: descendants,\n popper: popper,\n buttonId: buttonId,\n menuId: menuId,\n forceUpdate: popper.forceUpdate,\n orientation: \"vertical\",\n isOpen: isOpen,\n onToggle: onToggle,\n onOpen: onOpen,\n onClose: onClose,\n menuRef: menuRef,\n buttonRef: buttonRef,\n focusedIndex: focusedIndex,\n closeOnSelect: closeOnSelect,\n closeOnBlur: closeOnBlur,\n autoSelect: autoSelect,\n setFocusedIndex: setFocusedIndex,\n isLazy: isLazy,\n lazyBehavior: lazyBehavior\n };\n}\n\n/**\n * React Hook to manage a menu button.\n *\n * The assumption here is that the `useMenu` hook is used\n * in a component higher up the tree, and its return value\n * is passed as `context` to this hook.\n */\nfunction useMenuButton(props, externalRef) {\n if (props === void 0) {\n props = {};\n }\n\n if (externalRef === void 0) {\n externalRef = null;\n }\n\n var menu = useMenuContext();\n var onToggle = menu.onToggle,\n popper = menu.popper,\n openAndFocusFirstItem = menu.openAndFocusFirstItem,\n openAndFocusLastItem = menu.openAndFocusLastItem;\n var onKeyDown = React.useCallback(function (event) {\n var eventKey = normalizeEventKey(event);\n var keyMap = {\n Enter: openAndFocusFirstItem,\n ArrowDown: openAndFocusFirstItem,\n ArrowUp: openAndFocusLastItem\n };\n var action = keyMap[eventKey];\n\n if (action) {\n event.preventDefault();\n event.stopPropagation();\n action(event);\n }\n }, [openAndFocusFirstItem, openAndFocusLastItem]);\n return _extends({}, props, {\n ref: mergeRefs(menu.buttonRef, externalRef, popper.referenceRef),\n id: menu.buttonId,\n \"data-active\": dataAttr(menu.isOpen),\n \"aria-expanded\": menu.isOpen,\n \"aria-haspopup\": \"menu\",\n \"aria-controls\": menu.menuId,\n onClick: callAllHandlers(props.onClick, onToggle),\n onKeyDown: callAllHandlers(props.onKeyDown, onKeyDown)\n });\n}\n\nfunction isTargetMenuItem(target) {\n var _target$getAttribute;\n\n // this will catch `menuitem`, `menuitemradio`, `menuitemcheckbox`\n return isHTMLElement(target) && !!((_target$getAttribute = target.getAttribute(\"role\")) != null && _target$getAttribute.startsWith(\"menuitem\"));\n}\n/* -------------------------------------------------------------------------------------------------\n * useMenuList\n * -----------------------------------------------------------------------------------------------*/\n\n\n/**\n * React Hook to manage a menu list.\n *\n * The assumption here is that the `useMenu` hook is used\n * in a component higher up the tree, and its return value\n * is passed as `context` to this hook.\n */\nfunction useMenuList(props, ref) {\n if (props === void 0) {\n props = {};\n }\n\n if (ref === void 0) {\n ref = null;\n }\n\n var menu = useMenuContext();\n\n if (!menu) {\n throw new Error(\"useMenuContext: context is undefined. Seems you forgot to wrap component within <Menu>\");\n }\n\n var focusedIndex = menu.focusedIndex,\n setFocusedIndex = menu.setFocusedIndex,\n menuRef = menu.menuRef,\n isOpen = menu.isOpen,\n onClose = menu.onClose,\n menuId = menu.menuId,\n isLazy = menu.isLazy,\n lazyBehavior = menu.lazyBehavior,\n animated = menu.unstable__animationState;\n var descendants = useMenuDescendantsContext();\n /**\n * Hook that creates a keydown event handler that listens\n * to printable keyboard character press\n */\n\n var createTypeaheadHandler = useShortcut({\n preventDefault: function preventDefault(event) {\n return event.key !== \" \" && isTargetMenuItem(event.target);\n }\n });\n var onKeyDown = React.useCallback(function (event) {\n var eventKey = normalizeEventKey(event);\n var keyMap = {\n Tab: function Tab(event) {\n return event.preventDefault();\n },\n Escape: onClose,\n ArrowDown: function ArrowDown() {\n var next = descendants.nextEnabled(focusedIndex);\n if (next) setFocusedIndex(next.index);\n },\n ArrowUp: function ArrowUp() {\n var prev = descendants.prevEnabled(focusedIndex);\n if (prev) setFocusedIndex(prev.index);\n }\n };\n var fn = keyMap[eventKey];\n\n if (fn) {\n event.preventDefault();\n fn(event);\n return;\n }\n /**\n * Typeahead: Based on current character pressed,\n * find the next item to be selected\n */\n\n\n var onTypeahead = createTypeaheadHandler(function (character) {\n var nextItem = getNextItemFromSearch(descendants.values(), character, function (item) {\n var _item$node$textConten, _item$node;\n\n return (_item$node$textConten = item == null ? void 0 : (_item$node = item.node) == null ? void 0 : _item$node.textContent) != null ? _item$node$textConten : \"\";\n }, descendants.item(focusedIndex));\n\n if (nextItem) {\n var index = descendants.indexOf(nextItem.node);\n setFocusedIndex(index);\n }\n });\n\n if (isTargetMenuItem(event.target)) {\n onTypeahead(event);\n }\n }, [descendants, focusedIndex, createTypeaheadHandler, onClose, setFocusedIndex]);\n var hasBeenOpened = React.useRef(false);\n\n if (isOpen) {\n hasBeenOpened.current = true;\n }\n\n var shouldRenderChildren = determineLazyBehavior({\n hasBeenSelected: hasBeenOpened.current,\n isLazy: isLazy,\n lazyBehavior: lazyBehavior,\n isSelected: animated.present\n });\n return _extends({}, props, {\n ref: mergeRefs(menuRef, ref),\n children: shouldRenderChildren ? props.children : null,\n tabIndex: -1,\n role: \"menu\",\n id: menuId,\n style: _extends({}, props.style, {\n transformOrigin: \"var(--popper-transform-origin)\"\n }),\n \"aria-orientation\": \"vertical\",\n onKeyDown: callAllHandlers(props.onKeyDown, onKeyDown)\n });\n}\n/* -------------------------------------------------------------------------------------------------\n * useMenuPosition: Composes usePopper to position the menu\n * -----------------------------------------------------------------------------------------------*/\n\nfunction useMenuPositioner(props) {\n if (props === void 0) {\n props = {};\n }\n\n var _useMenuContext = useMenuContext(),\n popper = _useMenuContext.popper,\n isOpen = _useMenuContext.isOpen;\n\n return popper.getPopperProps(_extends({}, props, {\n style: _extends({\n visibility: isOpen ? \"visible\" : \"hidden\"\n }, props.style)\n }));\n}\n/* -------------------------------------------------------------------------------------------------\n * useMenuItem: Hook for each menu item within the menu list.\n We also use it in `useMenuItemOption`\n * -----------------------------------------------------------------------------------------------*/\n\nfunction useMenuItem(props, externalRef) {\n if (props === void 0) {\n props = {};\n }\n\n if (externalRef === void 0) {\n externalRef = null;\n }\n\n var _props2 = props,\n onMouseEnterProp = _props2.onMouseEnter,\n onMouseMoveProp = _props2.onMouseMove,\n onMouseLeaveProp = _props2.onMouseLeave,\n onClickProp = _props2.onClick,\n isDisabled = _props2.isDisabled,\n isFocusable = _props2.isFocusable,\n closeOnSelect = _props2.closeOnSelect,\n typeProp = _props2.type,\n htmlProps = _objectWithoutPropertiesLoose(_props2, _excluded2$1);\n\n var menu = useMenuContext();\n var setFocusedIndex = menu.setFocusedIndex,\n focusedIndex = menu.focusedIndex,\n menuCloseOnSelect = menu.closeOnSelect,\n onClose = menu.onClose,\n menuRef = menu.menuRef,\n isOpen = menu.isOpen,\n menuId = menu.menuId;\n var ref = React.useRef(null);\n var id = menuId + \"-menuitem-\" + useId();\n /**\n * Register the menuitem's node into the domContext\n */\n\n var _useMenuDescendant = useMenuDescendant({\n disabled: isDisabled && !isFocusable\n }),\n index = _useMenuDescendant.index,\n register = _useMenuDescendant.register;\n\n var onMouseEnter = React.useCallback(function (event) {\n onMouseEnterProp == null ? void 0 : onMouseEnterProp(event);\n if (isDisabled) return;\n setFocusedIndex(index);\n }, [setFocusedIndex, index, isDisabled, onMouseEnterProp]);\n var onMouseMove = React.useCallback(function (event) {\n onMouseMoveProp == null ? void 0 : onMouseMoveProp(event);\n\n if (ref.current && !isActiveElement(ref.current)) {\n onMouseEnter(event);\n }\n }, [onMouseEnter, onMouseMoveProp]);\n var onMouseLeave = React.useCallback(function (event) {\n onMouseLeaveProp == null ? void 0 : onMouseLeaveProp(event);\n if (isDisabled) return;\n setFocusedIndex(-1);\n }, [setFocusedIndex, isDisabled, onMouseLeaveProp]);\n var onClick = React.useCallback(function (event) {\n onClickProp == null ? void 0 : onClickProp(event);\n if (!isTargetMenuItem(event.currentTarget)) return;\n /**\n * Close menu and parent menus, allowing the MenuItem\n * to override its parent menu's `closeOnSelect` prop.\n */\n\n if (closeOnSelect != null ? closeOnSelect : menuCloseOnSelect) {\n onClose();\n }\n }, [onClose, onClickProp, menuCloseOnSelect, closeOnSelect]);\n var isFocused = index === focusedIndex;\n var trulyDisabled = isDisabled && !isFocusable;\n useUpdateEffect(function () {\n if (!isOpen) return;\n\n if (isFocused && !trulyDisabled && ref.current) {\n focus(ref.current, {\n nextTick: true,\n selectTextIfInput: false,\n preventScroll: false\n });\n } else if (menuRef.current && !isActiveElement(menuRef.current)) {\n focus(menuRef.current, {\n preventScroll: false\n });\n }\n }, [isFocused, trulyDisabled, menuRef, isOpen]);\n var clickableProps = useClickable({\n onClick: onClick,\n onMouseEnter: onMouseEnter,\n onMouseMove: onMouseMove,\n onMouseLeave: onMouseLeave,\n ref: mergeRefs(register, ref, externalRef),\n isDisabled: isDisabled,\n isFocusable: isFocusable\n });\n return _extends({}, htmlProps, clickableProps, {\n type: typeProp != null ? typeProp : clickableProps.type,\n id: id,\n role: \"menuitem\",\n tabIndex: isFocused ? 0 : -1\n });\n}\n/* -------------------------------------------------------------------------------------------------\n * useMenuOption: Composes useMenuItem to provide a selectable/checkable menu item\n * -----------------------------------------------------------------------------------------------*/\n\nfunction useMenuOption(props, ref) {\n if (props === void 0) {\n props = {};\n }\n\n if (ref === void 0) {\n ref = null;\n }\n\n var _props3 = props,\n _props3$type = _props3.type,\n type = _props3$type === void 0 ? \"radio\" : _props3$type,\n isChecked = _props3.isChecked,\n rest = _objectWithoutPropertiesLoose(_props3, _excluded3$1);\n\n var ownProps = useMenuItem(rest, ref);\n return _extends({}, ownProps, {\n role: \"menuitem\" + type,\n \"aria-checked\": isChecked\n });\n}\n/* -------------------------------------------------------------------------------------------------\n * useMenuOptionGroup: Manages the state of multiple selectable menuitem or menu option\n * -----------------------------------------------------------------------------------------------*/\n\nfunction useMenuOptionGroup(props) {\n if (props === void 0) {\n props = {};\n }\n\n var _props4 = props,\n children = _props4.children,\n _props4$type = _props4.type,\n type = _props4$type === void 0 ? \"radio\" : _props4$type,\n valueProp = _props4.value,\n defaultValue = _props4.defaultValue,\n onChangeProp = _props4.onChange,\n htmlProps = _objectWithoutPropertiesLoose(_props4, _excluded4$1);\n\n var isRadio = type === \"radio\";\n var fallback = isRadio ? \"\" : [];\n\n var _useControllableState = useControllableState({\n defaultValue: defaultValue != null ? defaultValue : fallback,\n value: valueProp,\n onChange: onChangeProp\n }),\n value = _useControllableState[0],\n setValue = _useControllableState[1];\n\n var onChange = React.useCallback(function (selectedValue) {\n if (type === \"radio\" && isString(value)) {\n setValue(selectedValue);\n }\n\n if (type === \"checkbox\" && isArray(value)) {\n var nextValue = value.includes(selectedValue) ? removeItem(value, selectedValue) : addItem(value, selectedValue);\n setValue(nextValue);\n }\n }, [value, setValue, type]);\n var validChildren = getValidChildren(children);\n var clones = validChildren.map(function (child) {\n /**\n * We've added an internal `id` to each `MenuItemOption`,\n * let's use that for type-checking.\n *\n * We can't rely on displayName or the element's type since\n * they can be changed by the user.\n */\n if (child.type.id !== \"MenuItemOption\") return child;\n\n var onClick = function onClick(event) {\n onChange(child.props.value);\n child.props.onClick == null ? void 0 : child.props.onClick(event);\n };\n\n var isChecked = type === \"radio\" ? child.props.value === value : value.includes(child.props.value);\n return /*#__PURE__*/React.cloneElement(child, {\n type: type,\n onClick: onClick,\n isChecked: isChecked\n });\n });\n return _extends({}, htmlProps, {\n children: clones\n });\n}\nfunction useMenuState() {\n var _useMenuContext2 = useMenuContext(),\n isOpen = _useMenuContext2.isOpen,\n onClose = _useMenuContext2.onClose;\n\n return {\n isOpen: isOpen,\n onClose: onClose\n };\n}\n\nvar _excluded = [\"descendants\"],\n _excluded2 = [\"children\", \"as\"],\n _excluded3 = [\"rootProps\"],\n _excluded4 = [\"type\"],\n _excluded5 = [\"icon\", \"iconSpacing\", \"command\", \"commandSpacing\", \"children\"],\n _excluded6 = [\"icon\", \"iconSpacing\"],\n _excluded7 = [\"className\", \"title\"],\n _excluded8 = [\"title\", \"children\", \"className\"],\n _excluded9 = [\"className\", \"children\"],\n _excluded10 = [\"className\"];\n\n/**\n * Menu provides context, state, and focus management\n * to its sub-components. It doesn't render any DOM node.\n */\nvar Menu = function Menu(props) {\n var children = props.children;\n var styles = useMultiStyleConfig(\"Menu\", props);\n var ownProps = omitThemingProps(props);\n\n var _useTheme = useTheme(),\n direction = _useTheme.direction;\n\n var _useMenu = useMenu(_extends({}, ownProps, {\n direction: direction\n })),\n descendants = _useMenu.descendants,\n ctx = _objectWithoutPropertiesLoose(_useMenu, _excluded);\n\n var context = React.useMemo(function () {\n return ctx;\n }, [ctx]);\n var isOpen = context.isOpen,\n onClose = context.onClose,\n forceUpdate = context.forceUpdate;\n return /*#__PURE__*/React.createElement(MenuDescendantsProvider, {\n value: descendants\n }, /*#__PURE__*/React.createElement(MenuProvider, {\n value: context\n }, /*#__PURE__*/React.createElement(StylesProvider, {\n value: styles\n }, runIfFn(children, {\n isOpen: isOpen,\n onClose: onClose,\n forceUpdate: forceUpdate\n }))));\n};\n\nif (__DEV__) {\n Menu.displayName = \"Menu\";\n}\n\nvar StyledMenuButton = /*#__PURE__*/forwardRef(function (props, ref) {\n var styles = useStyles();\n return /*#__PURE__*/React.createElement(chakra.button, _extends({\n ref: ref\n }, props, {\n __css: _extends({\n display: \"inline-flex\",\n appearance: \"none\",\n alignItems: \"center\",\n outline: 0\n }, styles.button)\n }));\n});\n/**\n * The trigger for the menu list. Must be a direct child of `Menu`.\n */\n\nvar MenuButton = /*#__PURE__*/forwardRef(function (props, ref) {\n props.children;\n var As = props.as,\n rest = _objectWithoutPropertiesLoose(props, _excluded2);\n\n var buttonProps = useMenuButton(rest, ref);\n var Element = As || StyledMenuButton;\n return /*#__PURE__*/React.createElement(Element, _extends({}, buttonProps, {\n className: cx(\"chakra-menu__menu-button\", props.className)\n }), /*#__PURE__*/React.createElement(chakra.span, {\n __css: {\n pointerEvents: \"none\",\n flex: \"1 1 auto\",\n minW: 0\n }\n }, props.children));\n});\n\nif (__DEV__) {\n MenuButton.displayName = \"MenuButton\";\n}\n\nvar motionVariants = {\n enter: {\n visibility: \"visible\",\n opacity: 1,\n scale: 1,\n transition: {\n duration: 0.2,\n ease: [0.4, 0, 0.2, 1]\n }\n },\n exit: {\n transitionEnd: {\n visibility: \"hidden\"\n },\n opacity: 0,\n scale: 0.8,\n transition: {\n duration: 0.1,\n easings: \"easeOut\"\n }\n }\n};\n\nfunction __motion(el) {\n var m = motion;\n\n if (\"custom\" in m && typeof m.custom === \"function\") {\n return m.custom(el);\n }\n\n return m(el);\n} // @future: only call `motion(chakra.div)` when we drop framer-motion v3 support\n\n\nvar MenuTransition = __motion(chakra.div);\n\nvar MenuList = /*#__PURE__*/forwardRef(function (props, ref) {\n var _props$zIndex, _styles$list;\n\n var rootProps = props.rootProps,\n rest = _objectWithoutPropertiesLoose(props, _excluded3);\n\n var _useMenuContext = useMenuContext(),\n isOpen = _useMenuContext.isOpen,\n onTransitionEnd = _useMenuContext.onTransitionEnd,\n animated = _useMenuContext.unstable__animationState;\n\n var ownProps = useMenuList(rest, ref);\n var positionerProps = useMenuPositioner(rootProps);\n var styles = useStyles();\n return /*#__PURE__*/React.createElement(chakra.div, _extends({}, positionerProps, {\n __css: {\n zIndex: (_props$zIndex = props.zIndex) != null ? _props$zIndex : (_styles$list = styles.list) == null ? void 0 : _styles$list.zIndex\n }\n }), /*#__PURE__*/React.createElement(MenuTransition, _extends({}, ownProps, {\n /**\n * We could call this on either `onAnimationComplete` or `onUpdate`.\n * It seems the re-focusing works better with the `onUpdate`\n */\n onUpdate: onTransitionEnd,\n onAnimationComplete: callAll(animated.onComplete, ownProps.onAnimationComplete),\n className: cx(\"chakra-menu__menu-list\", ownProps.className),\n variants: motionVariants,\n initial: false,\n animate: isOpen ? \"enter\" : \"exit\",\n __css: _extends({\n outline: 0\n }, styles.list)\n })));\n});\n\nif (__DEV__) {\n MenuList.displayName = \"MenuList\";\n}\n\nvar StyledMenuItem = /*#__PURE__*/forwardRef(function (props, ref) {\n var type = props.type,\n rest = _objectWithoutPropertiesLoose(props, _excluded4);\n\n var styles = useStyles();\n /**\n * Given another component, use its type if present\n * Else, use no type to avoid invalid html, e.g. <a type=\"button\" />\n * Else, fall back to \"button\"\n */\n\n var btnType = rest.as || type ? type != null ? type : undefined : \"button\";\n var buttonStyles = React.useMemo(function () {\n return _extends({\n textDecoration: \"none\",\n color: \"inherit\",\n userSelect: \"none\",\n display: \"flex\",\n width: \"100%\",\n alignItems: \"center\",\n textAlign: \"start\",\n flex: \"0 0 auto\",\n outline: 0\n }, styles.item);\n }, [styles.item]);\n return /*#__PURE__*/React.createElement(chakra.button, _extends({\n ref: ref,\n type: btnType\n }, rest, {\n __css: buttonStyles\n }));\n});\nvar MenuItem = /*#__PURE__*/forwardRef(function (props, ref) {\n var icon = props.icon,\n _props$iconSpacing = props.iconSpacing,\n iconSpacing = _props$iconSpacing === void 0 ? \"0.75rem\" : _props$iconSpacing,\n command = props.command,\n _props$commandSpacing = props.commandSpacing,\n commandSpacing = _props$commandSpacing === void 0 ? \"0.75rem\" : _props$commandSpacing,\n children = props.children,\n rest = _objectWithoutPropertiesLoose(props, _excluded5);\n\n var menuitemProps = useMenuItem(rest, ref);\n var shouldWrap = icon || command;\n\n var _children = shouldWrap ? /*#__PURE__*/React.createElement(\"span\", {\n style: {\n pointerEvents: \"none\",\n flex: 1\n }\n }, children) : children;\n\n return /*#__PURE__*/React.createElement(StyledMenuItem, _extends({}, menuitemProps, {\n className: cx(\"chakra-menu__menuitem\", menuitemProps.className)\n }), icon && /*#__PURE__*/React.createElement(MenuIcon, {\n fontSize: \"0.8em\",\n marginEnd: iconSpacing\n }, icon), _children, command && /*#__PURE__*/React.createElement(MenuCommand, {\n marginStart: commandSpacing\n }, command));\n});\n\nif (__DEV__) {\n MenuItem.displayName = \"MenuItem\";\n}\n\nvar CheckIcon = function CheckIcon(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n viewBox: \"0 0 14 14\",\n width: \"1em\",\n height: \"1em\"\n }, props), /*#__PURE__*/React.createElement(\"polygon\", {\n fill: \"currentColor\",\n points: \"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039\"\n }));\n};\n\nvar MenuItemOption = /*#__PURE__*/forwardRef(function (props, ref) {\n // menu option item should always be `type=button`, so we omit `type`\n var icon = props.icon,\n _props$iconSpacing2 = props.iconSpacing,\n iconSpacing = _props$iconSpacing2 === void 0 ? \"0.75rem\" : _props$iconSpacing2,\n rest = _objectWithoutPropertiesLoose(props, _excluded6);\n\n var optionProps = useMenuOption(rest, ref);\n return /*#__PURE__*/React.createElement(StyledMenuItem, _extends({}, optionProps, {\n className: cx(\"chakra-menu__menuitem-option\", rest.className)\n }), icon !== null && /*#__PURE__*/React.createElement(MenuIcon, {\n fontSize: \"0.8em\",\n marginEnd: iconSpacing,\n opacity: props.isChecked ? 1 : 0\n }, icon || /*#__PURE__*/React.createElement(CheckIcon, null)), /*#__PURE__*/React.createElement(\"span\", {\n style: {\n flex: 1\n }\n }, optionProps.children));\n});\nMenuItemOption.id = \"MenuItemOption\";\n\nif (__DEV__) {\n MenuItemOption.displayName = \"MenuItemOption\";\n}\n\nvar MenuOptionGroup = function MenuOptionGroup(props) {\n var className = props.className,\n title = props.title,\n rest = _objectWithoutPropertiesLoose(props, _excluded7);\n\n var ownProps = useMenuOptionGroup(rest);\n return /*#__PURE__*/React.createElement(MenuGroup, _extends({\n title: title,\n className: cx(\"chakra-menu__option-group\", className)\n }, ownProps));\n};\n\nif (__DEV__) {\n MenuOptionGroup.displayName = \"MenuOptionGroup\";\n}\n\nvar MenuGroup = /*#__PURE__*/forwardRef(function (props, ref) {\n var title = props.title,\n children = props.children,\n className = props.className,\n rest = _objectWithoutPropertiesLoose(props, _excluded8);\n\n var _className = cx(\"chakra-menu__group__title\", className);\n\n var styles = useStyles();\n return /*#__PURE__*/React.createElement(\"div\", {\n ref: ref,\n className: \"chakra-menu__group\",\n role: \"group\"\n }, title && /*#__PURE__*/React.createElement(chakra.p, _extends({\n className: _className\n }, rest, {\n __css: styles.groupTitle\n }), title), children);\n});\n\nif (__DEV__) {\n MenuGroup.displayName = \"MenuGroup\";\n}\n\nvar MenuCommand = /*#__PURE__*/forwardRef(function (props, ref) {\n var styles = useStyles();\n return /*#__PURE__*/React.createElement(chakra.span, _extends({\n ref: ref\n }, props, {\n __css: styles.command,\n className: \"chakra-menu__command\"\n }));\n});\n\nif (__DEV__) {\n MenuCommand.displayName = \"MenuCommand\";\n}\n\nvar MenuIcon = function MenuIcon(props) {\n var className = props.className,\n children = props.children,\n rest = _objectWithoutPropertiesLoose(props, _excluded9);\n\n var child = React.Children.only(children);\n var clone = /*#__PURE__*/React.isValidElement(child) ? /*#__PURE__*/React.cloneElement(child, {\n focusable: \"false\",\n \"aria-hidden\": true,\n className: cx(\"chakra-menu__icon\", child.props.className)\n }) : null;\n\n var _className = cx(\"chakra-menu__icon-wrapper\", className);\n\n return /*#__PURE__*/React.createElement(chakra.span, _extends({\n className: _className\n }, rest, {\n __css: {\n flexShrink: 0\n }\n }), clone);\n};\n\nif (__DEV__) {\n MenuIcon.displayName = \"MenuIcon\";\n}\n\nvar MenuDivider = function MenuDivider(props) {\n var className = props.className,\n rest = _objectWithoutPropertiesLoose(props, _excluded10);\n\n var styles = useStyles();\n return /*#__PURE__*/React.createElement(chakra.hr, _extends({\n role: \"separator\",\n \"aria-orientation\": \"horizontal\",\n className: cx(\"chakra-menu__divider\", className)\n }, rest, {\n __css: styles.divider\n }));\n};\n\nif (__DEV__) {\n MenuDivider.displayName = \"MenuDivider\";\n}\n\nexport { Menu, MenuButton, MenuCommand, MenuDescendantsProvider, MenuDivider, MenuGroup, MenuIcon, MenuItem, MenuItemOption, MenuList, MenuOptionGroup, MenuProvider, useMenu, useMenuButton, useMenuContext, useMenuDescendant, useMenuDescendants, useMenuDescendantsContext, useMenuItem, useMenuList, useMenuOption, useMenuOptionGroup, useMenuPositioner, useMenuState };\n"],"names":["_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","_objectWithoutPropertiesLoose","excluded","sourceKeys","keys","indexOf","_excluded$1","_excluded2$1","_excluded3$1","_excluded4$1","_createDescendantCont","createDescendantContext","MenuDescendantsProvider","useMenuDescendantsContext","useMenuDescendants","useMenuDescendant","_createContext","createContext","strict","name","MenuProvider","useMenuContext","isTargetMenuItem","_target$getAttribute","isHTMLElement","getAttribute","startsWith","useMenuItem","props","externalRef","_props2","onMouseEnterProp","onMouseEnter","onMouseMoveProp","onMouseMove","onMouseLeaveProp","onMouseLeave","onClickProp","onClick","isDisabled","isFocusable","closeOnSelect","typeProp","type","htmlProps","menu","setFocusedIndex","focusedIndex","menuCloseOnSelect","onClose","menuRef","isOpen","menuId","ref","React","useRef","id","useId","_useMenuDescendant","disabled","index","register","useCallback","event","current","isActiveElement","currentTarget","isFocused","trulyDisabled","useUpdateEffect","focus","nextTick","selectTextIfInput","preventScroll","clickableProps","useClickable","mergeRefs","role","tabIndex","_excluded","_excluded2","_excluded3","_excluded4","_excluded5","_excluded6","_excluded7","_excluded8","_excluded9","_excluded10","Menu","children","styles","useMultiStyleConfig","_useMenu","_props","_props$closeOnSelect","_props$closeOnBlur","closeOnBlur","_props$autoSelect","autoSelect","isLazy","isOpenProp","defaultIsOpen","onCloseProp","onOpenProp","onOpen","_props$placement","placement","_props$lazyBehavior","lazyBehavior","direction","_props$computePositio","computePositionOnMount","popperProps","buttonRef","descendants","focusMenu","focusFirstItem","setTimeout","first","firstEnabled","timeoutIds","add","focusLastItem","last","lastEnabled","onOpenInternal","_useDisclosure","useDisclosure","onToggle","useOutsideClick","enabled","handler","_buttonRef$current","contains","popper","usePopper","_React$useState","useState","useFocusOnHide","focusRef","visible","shouldFocus","animationState","useAnimationState","_useIds","useIds","buttonId","openAndFocusMenu","Set","useUnmountEffect","forEach","clearTimeout","clear","openAndFocusFirstItem","openAndFocusLastItem","onTransitionEnd","_menuRef$current","_descendants$item","doc","getOwnerDocument","hasFocusWithin","activeElement","node","item","unstable__animationState","forceUpdate","orientation","useMenu","omitThemingProps","useTheme","ctx","context","useMemo","createElement","value","StylesProvider","runIfFn","__DEV__","displayName","StyledMenuButton","forwardRef","useStyles","chakra","button","__css","display","appearance","alignItems","outline","MenuButton","As","as","buttonProps","onKeyDown","eventKey","normalizeEventKey","action","Enter","ArrowDown","ArrowUp","preventDefault","stopPropagation","referenceRef","dataAttr","callAllHandlers","useMenuButton","Element","className","cx","span","pointerEvents","flex","minW","motionVariants","enter","visibility","opacity","scale","transition","duration","ease","exit","transitionEnd","easings","el","m","MenuTransition","div","motion","custom","MenuList","_props$zIndex","_styles$list","rootProps","rest","_useMenuContext","animated","ownProps","Error","createTypeaheadHandler","useShortcut","keyMap","Tab","Escape","next","nextEnabled","prev","prevEnabled","fn","onTypeahead","character","nextItem","getNextItemFromSearch","values","_item$node$textConten","_item$node","textContent","hasBeenOpened","shouldRenderChildren","determineLazyBehavior","hasBeenSelected","isSelected","present","style","transformOrigin","useMenuList","positionerProps","getPopperProps","useMenuPositioner","zIndex","list","onUpdate","onAnimationComplete","callAll","onComplete","variants","initial","animate","StyledMenuItem","btnType","undefined","buttonStyles","textDecoration","color","userSelect","width","textAlign","MenuItem","icon","_props$iconSpacing","iconSpacing","command","_props$commandSpacing","commandSpacing","menuitemProps","_children","MenuIcon","fontSize","marginEnd","MenuCommand","marginStart","CheckIcon","viewBox","height","fill","points","MenuItemOption","_props$iconSpacing2","optionProps","_props3","_props3$type","isChecked","useMenuOption","MenuOptionGroup","title","_props4","_props4$type","valueProp","defaultValue","onChangeProp","onChange","fallback","_useControllableState","useControllableState","setValue","selectedValue","isString","isArray","nextValue","includes","removeItem","addItem","getValidChildren","map","child","cloneElement","useMenuOptionGroup","MenuGroup","_className","p","groupTitle","Children","only","clone","isValidElement","focusable","flexShrink","MenuDivider","hr","divider","_useMenuContext2"],"mappings":"8mBAWA,SAASA,IAeP,OAdAA,EAAWC,OAAOC,QAAU,SAAUC,GACpC,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CACz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,CACR6J,MAAO9F,EAAOyM,QACdpF,UAAW,6BAIX9B,YACF0H,EAAYzH,YAAc,eAG5B,IAAIsH,EAAW,SAAkB7Q,GAC/B,IAAIoL,EAAYpL,EAAMoL,UAClBtH,EAAW9D,EAAM8D,SACjBiJ,EAAO1O,EAA8B2B,EAAO2D,GAE5CwP,EAAQzR,EAAMgS,SAASC,KAAK7P,GAC5B8P,EAAqBlS,EAAMmS,eAAeV,GAAsBzR,EAAM0R,aAAaD,EAAO,CAC5FW,UAAW,QACX,eAAe,EACf1I,UAAWC,EAAAA,GAAG,oBAAqB8H,EAAMnT,MAAMoL,aAC5C,KAEDmI,EAAalI,EAAAA,GAAG,4BAA6BD,GAEjD,OAAoB1J,EAAMwH,cAAcS,SAAO2B,KAAM/N,EAAS,CAC5D6N,UAAWmI,GACVxG,EAAM,CACPlD,MAAO,CACLkK,WAAY,KAEZH,IAGFtK,YACFuH,EAAStH,YAAc,YAGtB,IAACyK,EAAc,SAAqBhU,GACrC,IAAIoL,EAAYpL,EAAMoL,UAClB2B,EAAO1O,EAA8B2B,EAAO4D,GAE5CG,EAAS2F,EAAAA,YACb,OAAoBhI,EAAMwH,cAAcS,SAAOsK,GAAI1W,EAAS,CAC1D0F,KAAM,YACN,mBAAoB,aACpBmI,UAAWC,EAAAA,GAAG,uBAAwBD,IACrC2B,EAAM,CACPlD,MAAO9F,EAAOmQ,YAId5K,YACF0K,EAAYzK,YAAc,2MAxX5B,WACE,IAAI4K,EAAmB1U,IAIvB,MAAO,CACL8B,OAJW4S,EAAiB5S,OAK5BF,QAJY8S,EAAiB9S"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("./chakra-ui-icon.esm-9c49b31b.js"),t=require("./chakra-ui-system.esm-c70df670.js"),n=require("react"),r=require("./index-c60b408f.js"),o=require("./tslib.es6-194b75fc.js"),a=require("./inheritsLoose-490721fe.js"),i=require("./chakra-ui-portal.esm-bbcb5d1d.js"),c=require("./index-6cdfadbe.js"),u=require("./motion-b6060749.js"),s=require("./chakra-ui-hooks.esm-21b313f3.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function d(e){if(e&&e.__esModule)return 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 f=d(n),p=l(n);function v(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function m(){return m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(this,arguments)}var h={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},y={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},g={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},x={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},E={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}};function b(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":default:return g;case"left":return y;case"bottom":return E;case"top":return x}}var w={enter:{duration:.2,ease:h.easeOut},exit:{duration:.1,ease:h.easeIn}},_=function(e,n){return m({},e,{delay:t.isNumber(n)?n:null==n?void 0:n.enter})},N=function(e,n){return m({},e,{delay:t.isNumber(n)?n:null==n?void 0:n.exit})},k=["in","unmountOnExit","animateOpacity","startingHeight","endingHeight","style","className","transition","transitionEnd"],O={exit:{height:{duration:.2,ease:h.ease},opacity:{duration:.3,ease:h.ease}},enter:{height:{duration:.3,ease:h.ease},opacity:{duration:.4,ease:h.ease}}},C={exit:function(e){var t,n,r=e.animateOpacity,o=e.startingHeight,a=e.transition,i=e.transitionEnd,c=e.delay;return m({},r&&{opacity:(n=o,null!=n&&parseInt(n.toString(),10)>0?1:0)},{height:o,transitionEnd:null==i?void 0:i.exit,transition:null!=(t=null==a?void 0:a.exit)?t:N(O.exit,c)})},enter:function(e){var t,n=e.animateOpacity,r=e.endingHeight,o=e.transition,a=e.transitionEnd,i=e.delay;return m({},n&&{opacity:1},{height:r,transitionEnd:null==a?void 0:a.enter,transition:null!=(t=null==o?void 0:o.enter)?t:_(O.enter,i)})}},F=f.forwardRef((function(e,n){var r=e.in,o=e.unmountOnExit,a=e.animateOpacity,i=void 0===a||a,s=e.startingHeight,l=void 0===s?0:s,d=e.endingHeight,p=void 0===d?"auto":d,h=e.style,y=e.className,g=e.transition,x=e.transitionEnd,E=v(e,k),b=f.useState(!1),w=b[0],_=b[1];f.useEffect((function(){var e=setTimeout((function(){_(!0)}));return function(){return clearTimeout(e)}}),[]),t.warn({condition:Boolean(l>0&&o),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});var N=parseFloat(l.toString())>0,O={startingHeight:l,endingHeight:p,animateOpacity:i,transition:w?g:{enter:{duration:0}},transitionEnd:t.mergeWith(x,{exit:o?void 0:{display:N?"block":"none"}})},F=!o||r,S=r||o?"enter":"exit";return f.createElement(c.AnimatePresence,{initial:!1,custom:O},F&&f.createElement(u.motion.div,m({ref:n},E,{className:t.cx("chakra-collapse",y),style:m({overflow:"hidden",display:"block"},h),custom:O,variants:C,initial:!!o&&"exit",animate:S,exit:"exit"})))}));t.__DEV__&&(F.displayName="Collapse");var S=["unmountOnExit","in","className","transition","transitionEnd","delay"],T={enter:function(e){var t,n=void 0===e?{}:e,r=n.transition,o=n.transitionEnd,a=n.delay;return{opacity:1,transition:null!=(t=null==r?void 0:r.enter)?t:_(w.enter,a),transitionEnd:null==o?void 0:o.enter}},exit:function(e){var t,n=void 0===e?{}:e,r=n.transition,o=n.transitionEnd,a=n.delay;return{opacity:0,transition:null!=(t=null==r?void 0:r.exit)?t:N(w.exit,a),transitionEnd:null==o?void 0:o.exit}}},M={initial:"exit",animate:"enter",exit:"exit",variants:T},P=f.forwardRef((function(e,n){var r=e.unmountOnExit,o=e.in,a=e.className,i=e.transition,s=e.transitionEnd,l=e.delay,d=v(e,S),p=o||r?"enter":"exit",h=!r||o&&r,y={transition:i,transitionEnd:s,delay:l};return f.createElement(c.AnimatePresence,{custom:y},h&&f.createElement(u.motion.div,m({ref:n,className:t.cx("chakra-fade",a),custom:y},M,{animate:p},d)))}));t.__DEV__&&(P.displayName="Fade");var D=["unmountOnExit","in","reverse","initialScale","className","transition","transitionEnd","delay"],R={exit:function(e){var t,n=e.reverse,r=e.initialScale,o=e.transition,a=e.transitionEnd,i=e.delay;return m({opacity:0},n?{scale:r,transitionEnd:null==a?void 0:a.exit}:{transitionEnd:m({scale:r},null==a?void 0:a.exit)},{transition:null!=(t=null==o?void 0:o.exit)?t:N(w.exit,i)})},enter:function(e){var t,n=e.transitionEnd,r=e.transition,o=e.delay;return{opacity:1,scale:1,transition:null!=(t=null==r?void 0:r.enter)?t:_(w.enter,o),transitionEnd:null==n?void 0:n.enter}}},A={initial:"exit",animate:"enter",exit:"exit",variants:R},I=f.forwardRef((function(e,n){var r=e.unmountOnExit,o=e.in,a=e.reverse,i=void 0===a||a,s=e.initialScale,l=void 0===s?.95:s,d=e.className,p=e.transition,h=e.transitionEnd,y=e.delay,g=v(e,D),x=!r||o&&r,E=o||r?"enter":"exit",b={initialScale:l,reverse:i,transition:p,transitionEnd:h,delay:y};return f.createElement(c.AnimatePresence,{custom:b},x&&f.createElement(u.motion.div,m({ref:n,className:t.cx("chakra-offset-slide",d)},A,{animate:E,custom:b},g)))}));t.__DEV__&&(I.displayName="ScaleFade");var j=["direction","style","unmountOnExit","in","className","transition","transitionEnd","delay"],L={exit:{duration:.15,ease:h.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},B={exit:function(e){var t,n=e.direction,r=e.transition,o=e.transitionEnd,a=e.delay;return m({},b({direction:n}).exit,{transition:null!=(t=null==r?void 0:r.exit)?t:N(L.exit,a),transitionEnd:null==o?void 0:o.exit})},enter:function(e){var t,n=e.direction,r=e.transitionEnd,o=e.transition,a=e.delay;return m({},b({direction:n}).enter,{transition:null!=(t=null==o?void 0:o.enter)?t:_(L.enter,a),transitionEnd:null==r?void 0:r.enter})}},V=f.forwardRef((function(e,n){var r=e.direction,o=void 0===r?"right":r,a=e.style,i=e.unmountOnExit,s=e.in,l=e.className,d=e.transition,p=e.transitionEnd,h=e.delay,y=v(e,j),g=b({direction:o}),x=Object.assign({position:"fixed"},g.position,a),E=!i||s&&i,w=s||i?"enter":"exit",_={transitionEnd:p,transition:d,direction:o,delay:h};return f.createElement(c.AnimatePresence,{custom:_},E&&f.createElement(u.motion.div,m({},y,{ref:n,initial:"exit",className:t.cx("chakra-slide",l),animate:w,exit:"exit",custom:_,variants:B,style:x})))}));t.__DEV__&&(V.displayName="Slide");var W=["unmountOnExit","in","reverse","className","offsetX","offsetY","transition","transitionEnd","delay"],H={initial:function(e){var t,n=e.offsetX,r=e.offsetY,o=e.transition,a=e.transitionEnd,i=e.delay;return{opacity:0,x:n,y:r,transition:null!=(t=null==o?void 0:o.exit)?t:N(w.exit,i),transitionEnd:null==a?void 0:a.exit}},enter:function(e){var t,n=e.transition,r=e.transitionEnd,o=e.delay;return{opacity:1,x:0,y:0,transition:null!=(t=null==n?void 0:n.enter)?t:_(w.enter,o),transitionEnd:null==r?void 0:r.enter}},exit:function(e){var t,n=e.offsetY,r=e.offsetX,o=e.transition,a=e.transitionEnd,i=e.reverse,c=e.delay,u={x:r,y:n};return m({opacity:0,transition:null!=(t=null==o?void 0:o.exit)?t:N(w.exit,c)},i?m({},u,{transitionEnd:null==a?void 0:a.exit}):{transitionEnd:m({},u,null==a?void 0:a.exit)})}},q={initial:"initial",animate:"enter",exit:"exit",variants:H},Y=f.forwardRef((function(e,n){var r=e.unmountOnExit,o=e.in,a=e.reverse,i=void 0===a||a,s=e.className,l=e.offsetX,d=void 0===l?0:l,p=e.offsetY,h=void 0===p?8:p,y=e.transition,g=e.transitionEnd,x=e.delay,E=v(e,W),b=!r||o&&r,w=o||r?"enter":"exit",_={offsetX:d,offsetY:h,reverse:i,transition:y,transitionEnd:g,delay:x};return f.createElement(c.AnimatePresence,{custom:_},b&&f.createElement(u.motion.div,m({ref:n,className:t.cx("chakra-offset-slide",s),custom:_},q,{animate:w},E)))}));function X(){return X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X.apply(this,arguments)}t.__DEV__&&(Y.displayName="SlideFade");var G=["children","isDisabled","__css"],U=function(t){return f.createElement(e.Icon,X({focusable:"false","aria-hidden":!0},t),f.createElement("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}))},Z=t.forwardRef((function(e,n){var r=t.useStyleConfig("CloseButton",e),o=t.omitThemingProps(e),a=o.children,i=o.isDisabled,c=o.__css,u=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(o,G);return f.createElement(t.chakra.button,X({type:"button","aria-label":"Close",ref:n,disabled:i,__css:X({},{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},r,c)},u),a||f.createElement(U,{width:"1em",height:"1em"}))}));t.__DEV__&&(Z.displayName="CloseButton");function z(e,t){return r=t||null,o=function(t){return e.forEach((function(e){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(e,t)}))},(a=n.useState((function(){return{value:r,callback:o,facade:{get current(){return a.value},set current(e){var t=a.value;t!==e&&(a.value=e,a.callback(e,t))}}}}))[0]).callback=o,a.facade;var r,o,a}var K={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};function J(e){return e}function Q(e,t){void 0===t&&(t=J);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}function $(e,t){return void 0===t&&(t=J),Q(e,t)}function ee(e){void 0===e&&(e={});var t=Q(null);return t.options=o.__assign({async:!0,ssr:!1},e),t}"production"===process.env.NODE_ENV||r.PropTypes.node;var te=function(e){var t=e.sideCar,n=o.__rest(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return f.createElement(r,o.__assign({},n))};te.isSideCarExport=!0;var ne=$({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),re=$(),oe=$(),ae=ee({async:!0}),ie=[],ce=f.forwardRef((function(e,n){var r,o=f.useState(),a=o[0],i=o[1],c=f.useRef(),u=f.useRef(!1),s=f.useRef(null),l=e.children,d=e.disabled,p=e.noFocusGuards,v=e.persistentFocus,m=e.crossFrame,h=e.autoFocus,y=e.allowTextSelection,g=e.group,x=e.className,E=e.whiteList,b=e.shards,w=void 0===b?ie:b,_=e.as,N=void 0===_?"div":_,k=e.lockProps,O=void 0===k?{}:k,C=e.sideCar,F=e.returnFocus,S=e.onActivation,T=e.onDeactivation,M=f.useState({})[0],P=f.useCallback((function(){s.current=s.current||document&&document.activeElement,c.current&&S&&S(c.current),u.current=!0}),[S]),D=f.useCallback((function(){u.current=!1,T&&T(c.current)}),[T]),R=f.useCallback((function(e){var t=s.current;if(Boolean(F)&&t&&t.focus){var n="object"==typeof F?F:void 0;s.current=null,e?Promise.resolve().then((function(){return t.focus(n)})):t.focus(n)}}),[F]),A=f.useCallback((function(e){u.current&&ne.useMedium(e)}),[]),I=re.useMedium,j=f.useCallback((function(e){c.current!==e&&(c.current=e,i(e))}),[]);"production"!==process.env.NODE_ENV&&(void 0!==y&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),f.useEffect((function(){c.current||console.error("FocusLock: could not obtain ref to internal node")}),[]));var L=t._extends(((r={})["data-focus-lock-disabled"]=d&&"disabled",r["data-focus-lock"]=g,r),O),B=!0!==p,V=B&&"tail"!==p,W=z([n,j]);return f.createElement(f.Fragment,null,B&&[f.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:d?-1:0,style:K}),f.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:d?-1:1,style:K})],!d&&f.createElement(C,{id:M,sideCar:ae,observed:a,disabled:d,persistentFocus:v,crossFrame:m,autoFocus:h,whiteList:E,shards:w,onActivation:P,onDeactivation:D,returnFocus:R}),f.createElement(N,t._extends({ref:W},L,{className:x,onBlur:I,onFocus:A}),l),V&&f.createElement("div",{"data-focus-guard":!0,tabIndex:d?-1:0,style:K}))}));ce.propTypes="production"!==process.env.NODE_ENV?{children:r.propTypes.exports.node,disabled:r.propTypes.exports.bool,returnFocus:r.propTypes.exports.oneOfType([r.propTypes.exports.bool,r.propTypes.exports.object]),noFocusGuards:r.propTypes.exports.bool,allowTextSelection:r.propTypes.exports.bool,autoFocus:r.propTypes.exports.bool,persistentFocus:r.propTypes.exports.bool,crossFrame:r.propTypes.exports.bool,group:r.propTypes.exports.string,className:r.propTypes.exports.string,whiteList:r.propTypes.exports.func,shards:r.propTypes.exports.arrayOf(r.propTypes.exports.any),as:r.propTypes.exports.oneOfType([r.propTypes.exports.string,r.propTypes.exports.func,r.propTypes.exports.object]),lockProps:r.propTypes.exports.object,onActivation:r.propTypes.exports.func,onDeactivation:r.propTypes.exports.func,sideCar:r.propTypes.exports.any.isRequired}:{},ce.defaultProps={children:void 0,disabled:!1,returnFocus:!1,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var ue=ce;var se=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},le=function(e){return Array.isArray(e)?e:[e]},de=function(e){return e.parentNode?de(e.parentNode):e},fe=function(e){return le(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute("data-focus-lock");return e.push.apply(e,n?function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var o=r+1;o<n;o+=1){var a=e[r].compareDocumentPosition(e[o]);(a&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter((function(e,n){return!t.has(n)}))}(se(de(t).querySelectorAll('[data-focus-lock="'+n+'"]:not([data-focus-lock-disabled="disabled"])'))):[t]),e}),[])},pe=function(e,t){return!e||e===document||e&&e.nodeType===Node.DOCUMENT_NODE||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue||"none"!==t.getPropertyValue("display")&&"hidden"!==t.getPropertyValue("visibility"))}(e)&&t(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode)},ve=function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=pe(t,ve.bind(void 0,e));return e.set(t,r),r},me=function(e){return Boolean(e&&e.dataset&&e.dataset.focusGuard)},he=function(e){return!me(e)},ye=function(e){return Boolean(e)},ge=function(e,t){var n=e.tabIndex-t.tabIndex,r=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||r},xe=function(e,t,n){return se(e).map((function(e,t){return{node:e,index:t,tabIndex:n&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}})).filter((function(e){return!t||e.tabIndex>=0})).sort(ge)},Ee=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),be=Ee+", [data-focus-guard]",we=function(e,t){return e.reduce((function(e,n){return e.concat(se(n.querySelectorAll(t?be:Ee)),n.parentNode?se(n.parentNode.querySelectorAll(Ee)).filter((function(e){return e===n})):[])}),[])},_e=function(e,t){return se(e).filter((function(e){return ve(t,e)})).filter((function(e){return function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))}(e)}))},Ne=function(e,t,n){return xe(_e(we(e,n),t),!0,n)},ke=function(e,t){return xe(_e(we(e),t),!1)},Oe=function(e,t){return _e((n=e.querySelectorAll("[data-autofocus-inside]"),se(n).map((function(e){return we([e])})).reduce((function(e,t){return e.concat(t)}),[])),t);var n},Ce=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&Ce(e.parentNode,t),t},Fe=function(e,t){for(var n=Ce(e),r=Ce(t),o=0;o<n.length;o+=1){var a=n[o];if(r.indexOf(a)>=0)return a}return!1},Se=function(e,t,n){var r=le(e),o=le(t),a=r[0],i=!1;return o.filter(Boolean).forEach((function(e){i=Fe(i||e,e)||i,n.filter(Boolean).forEach((function(e){var t=Fe(a,e);t&&(i=!i||t.contains(i)?t:Fe(t,i))}))})),i},Te=function(e){return Boolean(se(e.querySelectorAll("iframe")).some((function(e){return e===document.activeElement})))},Me=function(e){var t=document&&document.activeElement;return!(!t||t.dataset&&t.dataset.focusGuard)&&fe(e).reduce((function(e,n){return e||n.contains(t)||Te(n)}),!1)},Pe=function(e){return"INPUT"===e.tagName&&"radio"===e.type},De=function(e,t){return Pe(e)&&e.name?function(e,t){return t.filter(Pe).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},Re=function(e){return e[0]&&e.length>1?De(e[0],e):e[0]},Ae=function(e,t){return e.length>1?e.indexOf(De(e[t],e)):t},Ie=function(e,t,n,r){var o=e.length,a=e[0],i=e[o-1],c=me(n);if(!(e.indexOf(n)>=0)){var u,s,l=t.indexOf(n),d=r?t.indexOf(r):l,f=r?e.indexOf(r):-1,p=l-d,v=t.indexOf(a),m=t.indexOf(i),h=(u=t,s=new Set,u.forEach((function(e){return s.add(De(e,u))})),u.filter((function(e){return s.has(e)}))),y=h.indexOf(n)-(r?h.indexOf(r):l),g=Ae(e,0),x=Ae(e,o-1);return-1===l||-1===f?"NEW_FOCUS":!p&&f>=0?f:l<=v&&c&&Math.abs(p)>1?x:l>=m&&c&&Math.abs(p)>1?g:p&&Math.abs(y)>1?f:l<=v?x:l>m?g:p?Math.abs(p)>1?f:(o+f+p)%o:void 0}},je=function(e,t){var n=document&&document.activeElement,r=fe(e).filter(he),o=Se(n||e,e,r),a=new Map,i=ke(r,a),c=Ne(r,a).filter((function(e){var t=e.node;return he(t)}));if(c[0]||(c=i)[0]){var u,s,l,d,f=ke([o],a).map((function(e){return e.node})),p=(u=f,s=c,l=new Map,s.forEach((function(e){return l.set(e.node,e)})),u.map((function(e){return l.get(e)})).filter(ye)),v=p.map((function(e){return e.node})),m=Ie(v,f,n,t);if("NEW_FOCUS"===m){var h=i.map((function(e){return e.node})).filter((d=function(e,t){return e.reduce((function(e,n){return e.concat(Oe(n,t))}),[])}(r,a),function(e){return e.autofocus||e.dataset&&!!e.dataset.autofocus||d.indexOf(e)>=0}));return{node:h&&h.length?Re(h):Re(v)}}return void 0===m?m:p[m]}},Le=0,Be=!1,Ve=function(e,t){var n,r=je(e,t);if(!Be&&r){if(Le>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Be=!0,void setTimeout((function(){Be=!1}),1);Le++,(n=r.node).focus(),"contentWindow"in n&&n.contentWindow&&n.contentWindow.focus(),Le--}};function We(e){var t=window.setImmediate;void 0!==t?t(e):setTimeout(e,1)}var He=function(){return document&&document.activeElement===document.body||document&&se(document.querySelectorAll("[data-no-focus-lock]")).some((function(e){return e.contains(document.activeElement)}))},qe=null,Ye=null,Xe=null,Ge=!1,Ue=function(){return!0};function Ze(e,t,n,r){var o=null,a=e;do{var i=r[a];if(i.guard)i.node.dataset.focusAutoGuard&&(o=i);else{if(!i.lockItem)break;if(a!==e)return;o=null}}while((a+=n)!==t);o&&(o.node.tabIndex=0)}var ze=function(e){return e&&"current"in e?e.current:e},Ke=function(){var e,t,n,r,o,a,i,c=!1;if(qe){var u=qe,s=u.observed,l=u.persistentFocus,d=u.autoFocus,f=u.shards,p=u.crossFrame,v=s||Xe&&Xe.portaledElement,m=document&&document.activeElement;if(v){var h=[v].concat(f.map(ze).filter(Boolean));if(m&&!function(e){return(qe.whiteList||Ue)(e)}(m)||(l||(p?Boolean(Ge):"meanwhile"===Ge)||!He()||!Ye&&d)&&(!v||Me(h)||(i=m,Xe&&Xe.portaledElement===i)||(document&&!Ye&&m&&!d?(m.blur&&m.blur(),document.body.focus()):(c=Ve(h,Ye),Xe={})),Ge=!1,Ye=document&&document.activeElement),document){var y=document&&document.activeElement,g=(t=fe(e=h).filter(he),n=Se(e,e,t),r=new Map,o=Ne([n],r,!0),a=Ne(t,r).filter((function(e){var t=e.node;return he(t)})).map((function(e){return e.node})),o.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:a.indexOf(t)>=0,guard:me(t)}}))),x=g.map((function(e){return e.node})).indexOf(y);x>-1&&(g.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),Ze(x,g.length,1,g),Ze(x,-1,-1,g))}}}return c},Je=function(e){Ke()&&e&&(e.stopPropagation(),e.preventDefault())},Qe=function(){return We(Ke)};"production"===process.env.NODE_ENV||r.PropTypes.node.isRequired;var $e=function(){Ge="just",setTimeout((function(){Ge="meanwhile"}),0)};ne.assignSyncMedium((function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(Xe={observerNode:n,portaledElement:t})})),re.assignMedium(Qe),oe.assignMedium((function(e){return e({moveFocusInside:Ve,focusInside:Me})}));var et=function(e,t){if("production"!==process.env.NODE_ENV){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.")}return function(r){if("production"!==process.env.NODE_ENV&&"function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var o,i=[];function c(){o=e(i.map((function(e){return e.props}))),t(o)}var u,s,l,d=function(e){function t(){return e.apply(this,arguments)||this}a._inheritsLoose(t,e),t.peek=function(){return o};var n=t.prototype;return n.componentDidMount=function(){i.push(this),c()},n.componentDidUpdate=function(){c()},n.componentWillUnmount=function(){var e=i.indexOf(this);i.splice(e,1),c()},n.render=function(){return p.default.createElement(r,this.props)},t}(n.PureComponent);return u=d,s="displayName",l="SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")",s in u?Object.defineProperty(u,s,{value:l,enumerable:!0,configurable:!0,writable:!0}):u[s]=l,d}}((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var t=e.slice(-1)[0];t&&!qe&&(document.addEventListener("focusin",Je,!0),document.addEventListener("focusout",Qe),window.addEventListener("blur",$e));var n=qe,r=n&&t&&t.id===n.id;qe=t,n&&!r&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(Ye=null,r&&n.observed===t.observed||t.onActivation(),Ke(),We(Ke)):(document.removeEventListener("focusin",Je,!0),document.removeEventListener("focusout",Qe),window.removeEventListener("blur",$e),Ye=null)}))((function(){return null})),tt=f.forwardRef((function(e,n){return f.createElement(ue,t._extends({sideCar:et,ref:n},e))})),nt=ue.propTypes||{};nt.sideCar;var rt=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(nt,["sideCar"]);tt.propTypes="production"!==process.env.NODE_ENV?rt:{};var ot=tt,at=function(e){var n=e.initialFocusRef,r=e.finalFocusRef,o=e.contentRef,a=e.restoreFocus,i=e.children,c=e.isDisabled,u=e.autoFocus,s=e.persistentFocus,l=e.lockFocusAcrossFrames,d=f.useCallback((function(){if(null!=n&&n.current)n.current.focus();else if(null!=o&&o.current){0===t.getAllFocusable(o.current).length&&t.focus(o.current,{nextTick:!0})}}),[n,o]),p=f.useCallback((function(){var e;null==r||null==(e=r.current)||e.focus()}),[r]),v=a&&!r;return f.createElement(ot,{crossFrame:l,persistentFocus:s,autoFocus:u,disabled:c,onActivation:d,onDeactivation:p,returnFocus:v},i)};t.__DEV__&&(at.displayName="FocusLock")
|
|
1
|
+
"use strict";var e=require("./chakra-ui-icon.esm-9c49b31b.js"),t=require("./chakra-ui-system.esm-c70df670.js"),n=require("react"),r=require("./index-8fecff45.js"),o=require("./tslib.es6-194b75fc.js"),a=require("./inheritsLoose-490721fe.js"),i=require("./chakra-ui-portal.esm-bbcb5d1d.js"),c=require("./index-6cdfadbe.js"),u=require("./motion-b6060749.js"),s=require("./chakra-ui-hooks.esm-21b313f3.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function d(e){if(e&&e.__esModule)return 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 f=d(n),p=l(n);function v(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function m(){return m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(this,arguments)}var h={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},y={position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},g={position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},x={position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},E={position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}};function b(e){var t;switch(null!=(t=null==e?void 0:e.direction)?t:"right"){case"right":default:return g;case"left":return y;case"bottom":return E;case"top":return x}}var w={enter:{duration:.2,ease:h.easeOut},exit:{duration:.1,ease:h.easeIn}},_=function(e,n){return m({},e,{delay:t.isNumber(n)?n:null==n?void 0:n.enter})},N=function(e,n){return m({},e,{delay:t.isNumber(n)?n:null==n?void 0:n.exit})},k=["in","unmountOnExit","animateOpacity","startingHeight","endingHeight","style","className","transition","transitionEnd"],O={exit:{height:{duration:.2,ease:h.ease},opacity:{duration:.3,ease:h.ease}},enter:{height:{duration:.3,ease:h.ease},opacity:{duration:.4,ease:h.ease}}},C={exit:function(e){var t,n,r=e.animateOpacity,o=e.startingHeight,a=e.transition,i=e.transitionEnd,c=e.delay;return m({},r&&{opacity:(n=o,null!=n&&parseInt(n.toString(),10)>0?1:0)},{height:o,transitionEnd:null==i?void 0:i.exit,transition:null!=(t=null==a?void 0:a.exit)?t:N(O.exit,c)})},enter:function(e){var t,n=e.animateOpacity,r=e.endingHeight,o=e.transition,a=e.transitionEnd,i=e.delay;return m({},n&&{opacity:1},{height:r,transitionEnd:null==a?void 0:a.enter,transition:null!=(t=null==o?void 0:o.enter)?t:_(O.enter,i)})}},F=f.forwardRef((function(e,n){var r=e.in,o=e.unmountOnExit,a=e.animateOpacity,i=void 0===a||a,s=e.startingHeight,l=void 0===s?0:s,d=e.endingHeight,p=void 0===d?"auto":d,h=e.style,y=e.className,g=e.transition,x=e.transitionEnd,E=v(e,k),b=f.useState(!1),w=b[0],_=b[1];f.useEffect((function(){var e=setTimeout((function(){_(!0)}));return function(){return clearTimeout(e)}}),[]),t.warn({condition:Boolean(l>0&&o),message:"startingHeight and unmountOnExit are mutually exclusive. You can't use them together"});var N=parseFloat(l.toString())>0,O={startingHeight:l,endingHeight:p,animateOpacity:i,transition:w?g:{enter:{duration:0}},transitionEnd:t.mergeWith(x,{exit:o?void 0:{display:N?"block":"none"}})},F=!o||r,S=r||o?"enter":"exit";return f.createElement(c.AnimatePresence,{initial:!1,custom:O},F&&f.createElement(u.motion.div,m({ref:n},E,{className:t.cx("chakra-collapse",y),style:m({overflow:"hidden",display:"block"},h),custom:O,variants:C,initial:!!o&&"exit",animate:S,exit:"exit"})))}));t.__DEV__&&(F.displayName="Collapse");var S=["unmountOnExit","in","className","transition","transitionEnd","delay"],T={enter:function(e){var t,n=void 0===e?{}:e,r=n.transition,o=n.transitionEnd,a=n.delay;return{opacity:1,transition:null!=(t=null==r?void 0:r.enter)?t:_(w.enter,a),transitionEnd:null==o?void 0:o.enter}},exit:function(e){var t,n=void 0===e?{}:e,r=n.transition,o=n.transitionEnd,a=n.delay;return{opacity:0,transition:null!=(t=null==r?void 0:r.exit)?t:N(w.exit,a),transitionEnd:null==o?void 0:o.exit}}},M={initial:"exit",animate:"enter",exit:"exit",variants:T},P=f.forwardRef((function(e,n){var r=e.unmountOnExit,o=e.in,a=e.className,i=e.transition,s=e.transitionEnd,l=e.delay,d=v(e,S),p=o||r?"enter":"exit",h=!r||o&&r,y={transition:i,transitionEnd:s,delay:l};return f.createElement(c.AnimatePresence,{custom:y},h&&f.createElement(u.motion.div,m({ref:n,className:t.cx("chakra-fade",a),custom:y},M,{animate:p},d)))}));t.__DEV__&&(P.displayName="Fade");var D=["unmountOnExit","in","reverse","initialScale","className","transition","transitionEnd","delay"],R={exit:function(e){var t,n=e.reverse,r=e.initialScale,o=e.transition,a=e.transitionEnd,i=e.delay;return m({opacity:0},n?{scale:r,transitionEnd:null==a?void 0:a.exit}:{transitionEnd:m({scale:r},null==a?void 0:a.exit)},{transition:null!=(t=null==o?void 0:o.exit)?t:N(w.exit,i)})},enter:function(e){var t,n=e.transitionEnd,r=e.transition,o=e.delay;return{opacity:1,scale:1,transition:null!=(t=null==r?void 0:r.enter)?t:_(w.enter,o),transitionEnd:null==n?void 0:n.enter}}},A={initial:"exit",animate:"enter",exit:"exit",variants:R},I=f.forwardRef((function(e,n){var r=e.unmountOnExit,o=e.in,a=e.reverse,i=void 0===a||a,s=e.initialScale,l=void 0===s?.95:s,d=e.className,p=e.transition,h=e.transitionEnd,y=e.delay,g=v(e,D),x=!r||o&&r,E=o||r?"enter":"exit",b={initialScale:l,reverse:i,transition:p,transitionEnd:h,delay:y};return f.createElement(c.AnimatePresence,{custom:b},x&&f.createElement(u.motion.div,m({ref:n,className:t.cx("chakra-offset-slide",d)},A,{animate:E,custom:b},g)))}));t.__DEV__&&(I.displayName="ScaleFade");var j=["direction","style","unmountOnExit","in","className","transition","transitionEnd","delay"],L={exit:{duration:.15,ease:h.easeInOut},enter:{type:"spring",damping:25,stiffness:180}},B={exit:function(e){var t,n=e.direction,r=e.transition,o=e.transitionEnd,a=e.delay;return m({},b({direction:n}).exit,{transition:null!=(t=null==r?void 0:r.exit)?t:N(L.exit,a),transitionEnd:null==o?void 0:o.exit})},enter:function(e){var t,n=e.direction,r=e.transitionEnd,o=e.transition,a=e.delay;return m({},b({direction:n}).enter,{transition:null!=(t=null==o?void 0:o.enter)?t:_(L.enter,a),transitionEnd:null==r?void 0:r.enter})}},V=f.forwardRef((function(e,n){var r=e.direction,o=void 0===r?"right":r,a=e.style,i=e.unmountOnExit,s=e.in,l=e.className,d=e.transition,p=e.transitionEnd,h=e.delay,y=v(e,j),g=b({direction:o}),x=Object.assign({position:"fixed"},g.position,a),E=!i||s&&i,w=s||i?"enter":"exit",_={transitionEnd:p,transition:d,direction:o,delay:h};return f.createElement(c.AnimatePresence,{custom:_},E&&f.createElement(u.motion.div,m({},y,{ref:n,initial:"exit",className:t.cx("chakra-slide",l),animate:w,exit:"exit",custom:_,variants:B,style:x})))}));t.__DEV__&&(V.displayName="Slide");var W=["unmountOnExit","in","reverse","className","offsetX","offsetY","transition","transitionEnd","delay"],H={initial:function(e){var t,n=e.offsetX,r=e.offsetY,o=e.transition,a=e.transitionEnd,i=e.delay;return{opacity:0,x:n,y:r,transition:null!=(t=null==o?void 0:o.exit)?t:N(w.exit,i),transitionEnd:null==a?void 0:a.exit}},enter:function(e){var t,n=e.transition,r=e.transitionEnd,o=e.delay;return{opacity:1,x:0,y:0,transition:null!=(t=null==n?void 0:n.enter)?t:_(w.enter,o),transitionEnd:null==r?void 0:r.enter}},exit:function(e){var t,n=e.offsetY,r=e.offsetX,o=e.transition,a=e.transitionEnd,i=e.reverse,c=e.delay,u={x:r,y:n};return m({opacity:0,transition:null!=(t=null==o?void 0:o.exit)?t:N(w.exit,c)},i?m({},u,{transitionEnd:null==a?void 0:a.exit}):{transitionEnd:m({},u,null==a?void 0:a.exit)})}},q={initial:"initial",animate:"enter",exit:"exit",variants:H},Y=f.forwardRef((function(e,n){var r=e.unmountOnExit,o=e.in,a=e.reverse,i=void 0===a||a,s=e.className,l=e.offsetX,d=void 0===l?0:l,p=e.offsetY,h=void 0===p?8:p,y=e.transition,g=e.transitionEnd,x=e.delay,E=v(e,W),b=!r||o&&r,w=o||r?"enter":"exit",_={offsetX:d,offsetY:h,reverse:i,transition:y,transitionEnd:g,delay:x};return f.createElement(c.AnimatePresence,{custom:_},b&&f.createElement(u.motion.div,m({ref:n,className:t.cx("chakra-offset-slide",s),custom:_},q,{animate:w},E)))}));function X(){return X=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X.apply(this,arguments)}t.__DEV__&&(Y.displayName="SlideFade");var G=["children","isDisabled","__css"],U=function(t){return f.createElement(e.Icon,X({focusable:"false","aria-hidden":!0},t),f.createElement("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"}))},Z=t.forwardRef((function(e,n){var r=t.useStyleConfig("CloseButton",e),o=t.omitThemingProps(e),a=o.children,i=o.isDisabled,c=o.__css,u=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(o,G);return f.createElement(t.chakra.button,X({type:"button","aria-label":"Close",ref:n,disabled:i,__css:X({},{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},r,c)},u),a||f.createElement(U,{width:"1em",height:"1em"}))}));t.__DEV__&&(Z.displayName="CloseButton");function z(e,t){return r=t||null,o=function(t){return e.forEach((function(e){return function(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}(e,t)}))},(a=n.useState((function(){return{value:r,callback:o,facade:{get current(){return a.value},set current(e){var t=a.value;t!==e&&(a.value=e,a.callback(e,t))}}}}))[0]).callback=o,a.facade;var r,o,a}var K={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"};function J(e){return e}function Q(e,t){void 0===t&&(t=J);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}function $(e,t){return void 0===t&&(t=J),Q(e,t)}function ee(e){void 0===e&&(e={});var t=Q(null);return t.options=o.__assign({async:!0,ssr:!1},e),t}"production"===process.env.NODE_ENV||r.PropTypes.node;var te=function(e){var t=e.sideCar,n=o.__rest(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return f.createElement(r,o.__assign({},n))};te.isSideCarExport=!0;var ne=$({},(function(e){return{target:e.target,currentTarget:e.currentTarget}})),re=$(),oe=$(),ae=ee({async:!0}),ie=[],ce=f.forwardRef((function(e,n){var r,o=f.useState(),a=o[0],i=o[1],c=f.useRef(),u=f.useRef(!1),s=f.useRef(null),l=e.children,d=e.disabled,p=e.noFocusGuards,v=e.persistentFocus,m=e.crossFrame,h=e.autoFocus,y=e.allowTextSelection,g=e.group,x=e.className,E=e.whiteList,b=e.shards,w=void 0===b?ie:b,_=e.as,N=void 0===_?"div":_,k=e.lockProps,O=void 0===k?{}:k,C=e.sideCar,F=e.returnFocus,S=e.onActivation,T=e.onDeactivation,M=f.useState({})[0],P=f.useCallback((function(){s.current=s.current||document&&document.activeElement,c.current&&S&&S(c.current),u.current=!0}),[S]),D=f.useCallback((function(){u.current=!1,T&&T(c.current)}),[T]),R=f.useCallback((function(e){var t=s.current;if(Boolean(F)&&t&&t.focus){var n="object"==typeof F?F:void 0;s.current=null,e?Promise.resolve().then((function(){return t.focus(n)})):t.focus(n)}}),[F]),A=f.useCallback((function(e){u.current&&ne.useMedium(e)}),[]),I=re.useMedium,j=f.useCallback((function(e){c.current!==e&&(c.current=e,i(e))}),[]);"production"!==process.env.NODE_ENV&&(void 0!==y&&console.warn("React-Focus-Lock: allowTextSelection is deprecated and enabled by default"),f.useEffect((function(){c.current||console.error("FocusLock: could not obtain ref to internal node")}),[]));var L=t._extends(((r={})["data-focus-lock-disabled"]=d&&"disabled",r["data-focus-lock"]=g,r),O),B=!0!==p,V=B&&"tail"!==p,W=z([n,j]);return f.createElement(f.Fragment,null,B&&[f.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:d?-1:0,style:K}),f.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:d?-1:1,style:K})],!d&&f.createElement(C,{id:M,sideCar:ae,observed:a,disabled:d,persistentFocus:v,crossFrame:m,autoFocus:h,whiteList:E,shards:w,onActivation:P,onDeactivation:D,returnFocus:R}),f.createElement(N,t._extends({ref:W},L,{className:x,onBlur:I,onFocus:A}),l),V&&f.createElement("div",{"data-focus-guard":!0,tabIndex:d?-1:0,style:K}))}));ce.propTypes="production"!==process.env.NODE_ENV?{children:r.propTypes.exports.node,disabled:r.propTypes.exports.bool,returnFocus:r.propTypes.exports.oneOfType([r.propTypes.exports.bool,r.propTypes.exports.object]),noFocusGuards:r.propTypes.exports.bool,allowTextSelection:r.propTypes.exports.bool,autoFocus:r.propTypes.exports.bool,persistentFocus:r.propTypes.exports.bool,crossFrame:r.propTypes.exports.bool,group:r.propTypes.exports.string,className:r.propTypes.exports.string,whiteList:r.propTypes.exports.func,shards:r.propTypes.exports.arrayOf(r.propTypes.exports.any),as:r.propTypes.exports.oneOfType([r.propTypes.exports.string,r.propTypes.exports.func,r.propTypes.exports.object]),lockProps:r.propTypes.exports.object,onActivation:r.propTypes.exports.func,onDeactivation:r.propTypes.exports.func,sideCar:r.propTypes.exports.any.isRequired}:{},ce.defaultProps={children:void 0,disabled:!1,returnFocus:!1,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var ue=ce;var se=function(e){for(var t=Array(e.length),n=0;n<e.length;++n)t[n]=e[n];return t},le=function(e){return Array.isArray(e)?e:[e]},de=function(e){return e.parentNode?de(e.parentNode):e},fe=function(e){return le(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute("data-focus-lock");return e.push.apply(e,n?function(e){for(var t=new Set,n=e.length,r=0;r<n;r+=1)for(var o=r+1;o<n;o+=1){var a=e[r].compareDocumentPosition(e[o]);(a&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&t.add(o),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter((function(e,n){return!t.has(n)}))}(se(de(t).querySelectorAll('[data-focus-lock="'+n+'"]:not([data-focus-lock-disabled="disabled"])'))):[t]),e}),[])},pe=function(e,t){return!e||e===document||e&&e.nodeType===Node.DOCUMENT_NODE||!function(e){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var t=window.getComputedStyle(e,null);return!(!t||!t.getPropertyValue||"none"!==t.getPropertyValue("display")&&"hidden"!==t.getPropertyValue("visibility"))}(e)&&t(e.parentNode&&e.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.parentNode.host:e.parentNode)},ve=function(e,t){var n=e.get(t);if(void 0!==n)return n;var r=pe(t,ve.bind(void 0,e));return e.set(t,r),r},me=function(e){return Boolean(e&&e.dataset&&e.dataset.focusGuard)},he=function(e){return!me(e)},ye=function(e){return Boolean(e)},ge=function(e,t){var n=e.tabIndex-t.tabIndex,r=e.index-t.index;if(n){if(!e.tabIndex)return 1;if(!t.tabIndex)return-1}return n||r},xe=function(e,t,n){return se(e).map((function(e,t){return{node:e,index:t,tabIndex:n&&-1===e.tabIndex?(e.dataset||{}).focusGuard?0:-1:e.tabIndex}})).filter((function(e){return!t||e.tabIndex>=0})).sort(ge)},Ee=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),be=Ee+", [data-focus-guard]",we=function(e,t){return e.reduce((function(e,n){return e.concat(se(n.querySelectorAll(t?be:Ee)),n.parentNode?se(n.parentNode.querySelectorAll(Ee)).filter((function(e){return e===n})):[])}),[])},_e=function(e,t){return se(e).filter((function(e){return ve(t,e)})).filter((function(e){return function(e){return!(("INPUT"===e.tagName||"BUTTON"===e.tagName)&&("hidden"===e.type||e.disabled))}(e)}))},Ne=function(e,t,n){return xe(_e(we(e,n),t),!0,n)},ke=function(e,t){return xe(_e(we(e),t),!1)},Oe=function(e,t){return _e((n=e.querySelectorAll("[data-autofocus-inside]"),se(n).map((function(e){return we([e])})).reduce((function(e,t){return e.concat(t)}),[])),t);var n},Ce=function(e,t){return void 0===t&&(t=[]),t.push(e),e.parentNode&&Ce(e.parentNode,t),t},Fe=function(e,t){for(var n=Ce(e),r=Ce(t),o=0;o<n.length;o+=1){var a=n[o];if(r.indexOf(a)>=0)return a}return!1},Se=function(e,t,n){var r=le(e),o=le(t),a=r[0],i=!1;return o.filter(Boolean).forEach((function(e){i=Fe(i||e,e)||i,n.filter(Boolean).forEach((function(e){var t=Fe(a,e);t&&(i=!i||t.contains(i)?t:Fe(t,i))}))})),i},Te=function(e){return Boolean(se(e.querySelectorAll("iframe")).some((function(e){return e===document.activeElement})))},Me=function(e){var t=document&&document.activeElement;return!(!t||t.dataset&&t.dataset.focusGuard)&&fe(e).reduce((function(e,n){return e||n.contains(t)||Te(n)}),!1)},Pe=function(e){return"INPUT"===e.tagName&&"radio"===e.type},De=function(e,t){return Pe(e)&&e.name?function(e,t){return t.filter(Pe).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},Re=function(e){return e[0]&&e.length>1?De(e[0],e):e[0]},Ae=function(e,t){return e.length>1?e.indexOf(De(e[t],e)):t},Ie=function(e,t,n,r){var o=e.length,a=e[0],i=e[o-1],c=me(n);if(!(e.indexOf(n)>=0)){var u,s,l=t.indexOf(n),d=r?t.indexOf(r):l,f=r?e.indexOf(r):-1,p=l-d,v=t.indexOf(a),m=t.indexOf(i),h=(u=t,s=new Set,u.forEach((function(e){return s.add(De(e,u))})),u.filter((function(e){return s.has(e)}))),y=h.indexOf(n)-(r?h.indexOf(r):l),g=Ae(e,0),x=Ae(e,o-1);return-1===l||-1===f?"NEW_FOCUS":!p&&f>=0?f:l<=v&&c&&Math.abs(p)>1?x:l>=m&&c&&Math.abs(p)>1?g:p&&Math.abs(y)>1?f:l<=v?x:l>m?g:p?Math.abs(p)>1?f:(o+f+p)%o:void 0}},je=function(e,t){var n=document&&document.activeElement,r=fe(e).filter(he),o=Se(n||e,e,r),a=new Map,i=ke(r,a),c=Ne(r,a).filter((function(e){var t=e.node;return he(t)}));if(c[0]||(c=i)[0]){var u,s,l,d,f=ke([o],a).map((function(e){return e.node})),p=(u=f,s=c,l=new Map,s.forEach((function(e){return l.set(e.node,e)})),u.map((function(e){return l.get(e)})).filter(ye)),v=p.map((function(e){return e.node})),m=Ie(v,f,n,t);if("NEW_FOCUS"===m){var h=i.map((function(e){return e.node})).filter((d=function(e,t){return e.reduce((function(e,n){return e.concat(Oe(n,t))}),[])}(r,a),function(e){return e.autofocus||e.dataset&&!!e.dataset.autofocus||d.indexOf(e)>=0}));return{node:h&&h.length?Re(h):Re(v)}}return void 0===m?m:p[m]}},Le=0,Be=!1,Ve=function(e,t){var n,r=je(e,t);if(!Be&&r){if(Le>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),Be=!0,void setTimeout((function(){Be=!1}),1);Le++,(n=r.node).focus(),"contentWindow"in n&&n.contentWindow&&n.contentWindow.focus(),Le--}};function We(e){var t=window.setImmediate;void 0!==t?t(e):setTimeout(e,1)}var He=function(){return document&&document.activeElement===document.body||document&&se(document.querySelectorAll("[data-no-focus-lock]")).some((function(e){return e.contains(document.activeElement)}))},qe=null,Ye=null,Xe=null,Ge=!1,Ue=function(){return!0};function Ze(e,t,n,r){var o=null,a=e;do{var i=r[a];if(i.guard)i.node.dataset.focusAutoGuard&&(o=i);else{if(!i.lockItem)break;if(a!==e)return;o=null}}while((a+=n)!==t);o&&(o.node.tabIndex=0)}var ze=function(e){return e&&"current"in e?e.current:e},Ke=function(){var e,t,n,r,o,a,i,c=!1;if(qe){var u=qe,s=u.observed,l=u.persistentFocus,d=u.autoFocus,f=u.shards,p=u.crossFrame,v=s||Xe&&Xe.portaledElement,m=document&&document.activeElement;if(v){var h=[v].concat(f.map(ze).filter(Boolean));if(m&&!function(e){return(qe.whiteList||Ue)(e)}(m)||(l||(p?Boolean(Ge):"meanwhile"===Ge)||!He()||!Ye&&d)&&(!v||Me(h)||(i=m,Xe&&Xe.portaledElement===i)||(document&&!Ye&&m&&!d?(m.blur&&m.blur(),document.body.focus()):(c=Ve(h,Ye),Xe={})),Ge=!1,Ye=document&&document.activeElement),document){var y=document&&document.activeElement,g=(t=fe(e=h).filter(he),n=Se(e,e,t),r=new Map,o=Ne([n],r,!0),a=Ne(t,r).filter((function(e){var t=e.node;return he(t)})).map((function(e){return e.node})),o.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:a.indexOf(t)>=0,guard:me(t)}}))),x=g.map((function(e){return e.node})).indexOf(y);x>-1&&(g.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),Ze(x,g.length,1,g),Ze(x,-1,-1,g))}}}return c},Je=function(e){Ke()&&e&&(e.stopPropagation(),e.preventDefault())},Qe=function(){return We(Ke)};"production"===process.env.NODE_ENV||r.PropTypes.node.isRequired;var $e=function(){Ge="just",setTimeout((function(){Ge="meanwhile"}),0)};ne.assignSyncMedium((function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(Xe={observerNode:n,portaledElement:t})})),re.assignMedium(Qe),oe.assignMedium((function(e){return e({moveFocusInside:Ve,focusInside:Me})}));var et=function(e,t){if("production"!==process.env.NODE_ENV){if("function"!=typeof e)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof t)throw new Error("Expected handleStateChangeOnClient to be a function.")}return function(r){if("production"!==process.env.NODE_ENV&&"function"!=typeof r)throw new Error("Expected WrappedComponent to be a React component.");var o,i=[];function c(){o=e(i.map((function(e){return e.props}))),t(o)}var u,s,l,d=function(e){function t(){return e.apply(this,arguments)||this}a._inheritsLoose(t,e),t.peek=function(){return o};var n=t.prototype;return n.componentDidMount=function(){i.push(this),c()},n.componentDidUpdate=function(){c()},n.componentWillUnmount=function(){var e=i.indexOf(this);i.splice(e,1),c()},n.render=function(){return p.default.createElement(r,this.props)},t}(n.PureComponent);return u=d,s="displayName",l="SideEffect("+function(e){return e.displayName||e.name||"Component"}(r)+")",s in u?Object.defineProperty(u,s,{value:l,enumerable:!0,configurable:!0,writable:!0}):u[s]=l,d}}((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var t=e.slice(-1)[0];t&&!qe&&(document.addEventListener("focusin",Je,!0),document.addEventListener("focusout",Qe),window.addEventListener("blur",$e));var n=qe,r=n&&t&&t.id===n.id;qe=t,n&&!r&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(Ye=null,r&&n.observed===t.observed||t.onActivation(),Ke(),We(Ke)):(document.removeEventListener("focusin",Je,!0),document.removeEventListener("focusout",Qe),window.removeEventListener("blur",$e),Ye=null)}))((function(){return null})),tt=f.forwardRef((function(e,n){return f.createElement(ue,t._extends({sideCar:et,ref:n},e))})),nt=ue.propTypes||{};nt.sideCar;var rt=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(nt,["sideCar"]);tt.propTypes="production"!==process.env.NODE_ENV?rt:{};var ot=tt,at=function(e){var n=e.initialFocusRef,r=e.finalFocusRef,o=e.contentRef,a=e.restoreFocus,i=e.children,c=e.isDisabled,u=e.autoFocus,s=e.persistentFocus,l=e.lockFocusAcrossFrames,d=f.useCallback((function(){if(null!=n&&n.current)n.current.focus();else if(null!=o&&o.current){0===t.getAllFocusable(o.current).length&&t.focus(o.current,{nextTick:!0})}}),[n,o]),p=f.useCallback((function(){var e;null==r||null==(e=r.current)||e.focus()}),[r]),v=a&&!r;return f.createElement(ot,{crossFrame:l,persistentFocus:s,autoFocus:u,disabled:c,onActivation:d,onDeactivation:p,returnFocus:v},i)};t.__DEV__&&(at.displayName="FocusLock")
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -13,4 +13,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
13
13
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
14
|
PERFORMANCE OF THIS SOFTWARE.
|
|
15
15
|
***************************************************************************** */;var it=function(){return it=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},it.apply(this,arguments)};var ct=ee(),ut=function(){},st=f.forwardRef((function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:ut,onWheelCapture:ut,onTouchMoveCapture:ut}),o=r[0],a=r[1],i=e.forwardProps,c=e.children,u=e.className,s=e.removeScrollBar,l=e.enabled,d=e.shards,p=e.sideCar,v=e.noIsolation,m=e.inert,h=e.allowPinchZoom,y=e.as,g=void 0===y?"div":y,x=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as"]),E=p,b=z([n,t]),w=it({},x,o);return f.createElement(f.Fragment,null,l&&f.createElement(E,{sideCar:ct,removeScrollBar:s,shards:d,noIsolation:v,inert:m,setCallbacks:a,allowPinchZoom:!!h,lockRef:n}),i?f.cloneElement(f.Children.only(c),it({},w,{ref:b})):f.createElement(g,it({},w,{className:u,ref:b}),c))}));st.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},st.classNames={fullWidth:"width-before-scroll-bar",zeroRight:"right-scroll-bar-position"};function lt(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var dt=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=lt())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){!--e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ft=function(){var e,t=(e=dt(),function(t){f.useEffect((function(){return e.add(t),function(){e.remove()}}),[t])});return function(e){var n=e.styles;return t(n),null}},pt={left:0,top:0,right:0,gap:0},vt=function(e){return parseInt(e||"",10)||0},mt=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return pt;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[vt(n),vt(r),vt(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ht=ft(),yt=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,c=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(c,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(c,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat("right-scroll-bar-position"," {\n right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat("width-before-scroll-bar"," {\n margin-right: ").concat(c,"px ").concat(r,";\n }\n \n .").concat("right-scroll-bar-position"," .").concat("right-scroll-bar-position"," {\n right: 0 ").concat(r,";\n }\n \n .").concat("width-before-scroll-bar"," .").concat("width-before-scroll-bar"," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(c,"px;\n }\n")},gt=function(e){var t=f.useState(mt(e.gapMode)),n=t[0],r=t[1];f.useEffect((function(){r(mt(e.gapMode))}),[e.gapMode]);var o=e.noRelative,a=e.noImportant,i=e.gapMode,c=void 0===i?"margin":i;return f.createElement(ht,{styles:yt(n,!o,c,a?"":"!important")})},xt=function(e,t){var n=t;do{if(Et(e,n)){var r=bt(e,n);if(r[1]>r[2])return!0}n=n.parentNode}while(n&&n!==document.body);return!1},Et=function(e,t){return"v"===e?function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowY&&!(t.overflowY===t.overflowX&&"visible"===t.overflowY)}(t):function(e){var t=window.getComputedStyle(e);return"hidden"!==t.overflowX&&!(t.overflowY===t.overflowX&&"visible"===t.overflowX)}(t)},bt=function(e,t){return"v"===e?[(n=t).scrollTop,n.scrollHeight,n.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var n},wt=!1;if("undefined"!=typeof window)try{var _t=Object.defineProperty({},"passive",{get:function(){return wt=!0,!0}});window.addEventListener("test",_t,_t),window.removeEventListener("test",_t,_t)}catch(e){wt=!1}var Nt=!!wt&&{passive:!1},kt=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ot=function(e){return[e.deltaX,e.deltaY]},Ct=function(e){return e&&"current"in e?e.current:e},Ft=function(e){return"\n .block-interactivity-"+e+" {pointer-events: none;}\n .allow-interactivity-"+e+" {pointer-events: all;}\n"},St=0,Tt=[];var Mt,Pt=(Mt=function(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(St++)[0],a=f.useState((function(){return ft()}))[0],i=f.useRef(e);f.useEffect((function(){i.current=e}),[e]),f.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-"+o);var t=[e.lockRef.current].concat((e.shards||[]).map(Ct)).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-"+o)})),function(){document.body.classList.remove("block-interactivity-"+o),t.forEach((function(e){return e.classList.remove("allow-interactivity-"+o)}))}}}),[e.inert,e.lockRef.current,e.shards]);var c=f.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!i.current.allowPinchZoom;var o,a=kt(e),c=n.current,u="deltaX"in e?e.deltaX:c[0]-a[0],s="deltaY"in e?e.deltaY:c[1]-a[1],l=e.target,d=Math.abs(u)>Math.abs(s)?"h":"v",f=xt(d,l);if(!f)return!0;if(f?o=d:(o="v"===d?"h":"v",f=xt(d,l)),!f)return!1;if(!r.current&&"changedTouches"in e&&(u||s)&&(r.current=o),!o)return!0;var p=r.current||o;return function(e,t,n,r,o){var a=r,i=n.target,c=t.contains(i),u=!1,s=a>0,l=0,d=0;do{var f=bt(e,i),p=f[0],v=f[1]-f[2]-p;(p||v)&&Et(e,i)&&(l+=v,d+=p),i=i.parentNode}while(!c&&i!==document.body||c&&(t.contains(i)||t===i));return(s&&(o&&0===l||!o&&a>l)||!s&&(o&&0===d||!o&&-a>d))&&(u=!0),u}(p,t,e,"h"===p?u:s,!0)}),[]),u=f.useCallback((function(e){var n=e;if(Tt.length&&Tt[Tt.length-1]===a){var r="deltaY"in n?Ot(n):kt(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.preventDefault();else if(!o){var u=(i.current.shards||[]).map(Ct).filter(Boolean).filter((function(e){return e.contains(n.target)}));(u.length>0?c(n,u[0]):!i.current.noIsolation)&&n.preventDefault()}}}),[]),s=f.useCallback((function(e,n,r,o){var a={name:e,delta:n,target:r,should:o};t.current.push(a),setTimeout((function(){t.current=t.current.filter((function(e){return e!==a}))}),1)}),[]),l=f.useCallback((function(e){n.current=kt(e),r.current=void 0}),[]),d=f.useCallback((function(t){s(t.type,Ot(t),t.target,c(t,e.lockRef.current))}),[]),p=f.useCallback((function(t){s(t.type,kt(t),t.target,c(t,e.lockRef.current))}),[]);f.useEffect((function(){return Tt.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",u,Nt),document.addEventListener("touchmove",u,Nt),document.addEventListener("touchstart",l,Nt),function(){Tt=Tt.filter((function(e){return e!==a})),document.removeEventListener("wheel",u,Nt),document.removeEventListener("touchmove",u,Nt),document.removeEventListener("touchstart",l,Nt)}}),[]);var v=e.removeScrollBar,m=e.inert;return f.createElement(f.Fragment,null,m?f.createElement(a,{styles:Ft(o)}):null,v?f.createElement(gt,{gapMode:"margin"}):null)},ct.useMedium(Mt),te),Dt=f.forwardRef((function(e,t){return f.createElement(st,it({},e,{ref:t,sideCar:Pt}))}));Dt.classNames=st.classNames;var Rt=Dt,At=new WeakMap,It=new WeakMap,jt={},Lt=0,Bt=function(e,t,n){void 0===t&&(t=function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e)),void 0===n&&(n="data-aria-hidden");var r=Array.isArray(e)?e:[e];jt[n]||(jt[n]=new WeakMap);var o=jt[n],a=[],i=new Set,c=function(e){e&&!i.has(e)&&(i.add(e),c(e.parentNode))};r.forEach(c);var u=function(e){!e||r.indexOf(e)>=0||Array.prototype.forEach.call(e.children,(function(e){if(i.has(e))u(e);else{var t=e.getAttribute("aria-hidden"),r=null!==t&&"false"!==t,c=(At.get(e)||0)+1,s=(o.get(e)||0)+1;At.set(e,c),o.set(e,s),a.push(e),1===c&&r&&It.set(e,!0),1===s&&e.setAttribute(n,"true"),r||e.setAttribute("aria-hidden","true")}}))};return u(t),i.clear(),Lt++,function(){a.forEach((function(e){var t=At.get(e)-1,r=o.get(e)-1;At.set(e,t),o.set(e,r),t||(It.has(e)||e.removeAttribute("aria-hidden"),It.delete(e)),r||e.removeAttribute(n)})),--Lt||(At=new WeakMap,At=new WeakMap,It=new WeakMap,jt={})}};function Vt(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function Wt(){return Wt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wt.apply(this,arguments)}var Ht=["preset"],qt={slideInBottom:Wt({},q,{custom:{offsetY:16,reverse:!0}}),slideInRight:Wt({},q,{custom:{offsetX:16,reverse:!0}}),scale:Wt({},A,{custom:{initialScale:.95,reverse:!0}}),none:{}},Yt=t.chakra(u.motion.section),Xt=f.forwardRef((function(e,t){var n=e.preset,r=Vt(e,Ht),o=qt[n];return f.createElement(Yt,Wt({ref:t},o,r))})),Gt=new(function(){function e(){this.modals=void 0,this.modals=[]}var t=e.prototype;return t.add=function(e){this.modals.push(e)},t.remove=function(e){this.modals=this.modals.filter((function(t){return t!==e}))},t.isTopModal=function(e){return this.modals[this.modals.length-1]===e},e}());function Ut(e){var r,o,a,i=e.isOpen,c=e.onClose,u=e.id,l=e.closeOnOverlayClick,d=void 0===l||l,f=e.closeOnEsc,p=void 0===f||f,v=e.useInert,m=void 0===v||v,h=e.onOverlayClick,y=e.onEsc,g=n.useRef(null),x=n.useRef(null),E=s.useIds(u,"chakra-modal","chakra-modal--header","chakra-modal--body"),b=E[0],w=E[1],_=E[2];o=i&&m,a=(r=g).current,n.useEffect((function(){if(r.current&&o)return Bt(r.current)}),[o,r,a]),function(e,t){n.useEffect((function(){return t&&Gt.add(e),function(){Gt.remove(e)}}),[t,e])}(g,i);var N=n.useRef(null),k=n.useCallback((function(e){N.current=e.target}),[]),O=n.useCallback((function(e){"Escape"===e.key&&(e.stopPropagation(),p&&(null==c||c()),null==y||y())}),[p,c,y]),C=n.useState(!1),F=C[0],S=C[1],T=n.useState(!1),M=T[0],P=T[1],D=n.useCallback((function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),Wt({role:"dialog"},e,{ref:t.mergeRefs(n,g),id:b,tabIndex:-1,"aria-modal":!0,"aria-labelledby":F?w:void 0,"aria-describedby":M?_:void 0,onClick:t.callAllHandlers(e.onClick,(function(e){return e.stopPropagation()}))})}),[_,M,b,w,F]),R=n.useCallback((function(e){e.stopPropagation(),N.current===e.target&&Gt.isTopModal(g)&&(d&&(null==c||c()),null==h||h())}),[c,d,h]),A=n.useCallback((function(e,n){return void 0===e&&(e={}),void 0===n&&(n=null),Wt({},e,{ref:t.mergeRefs(n,x),onClick:t.callAllHandlers(e.onClick,R),onKeyDown:t.callAllHandlers(e.onKeyDown,O),onMouseDown:t.callAllHandlers(e.onMouseDown,k)})}),[O,k,R]);return{isOpen:i,onClose:c,headerId:w,bodyId:_,setBodyMounted:P,setHeaderMounted:S,dialogRef:g,overlayRef:x,getDialogProps:D,getDialogContainerProps:A}}var Zt=["className","children","containerProps"],zt=["className","transition"],Kt=["className"],Jt=["className"],Qt=["className"],$t=["onClick","className"],en=t.createContext({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),tn=en[0],nn=en[1],rn=function(e){var n=e.portalProps,r=e.children,o=e.autoFocus,a=e.trapFocus,u=e.initialFocusRef,s=e.finalFocusRef,l=e.returnFocusOnClose,d=e.blockScrollOnMount,p=e.allowPinchZoom,v=e.preserveScrollBarGap,m=e.motionPreset,h=e.lockFocusAcrossFrames,y=e.onCloseComplete,g=t.useMultiStyleConfig("Modal",e),x=Wt({},Ut(e),{autoFocus:o,trapFocus:a,initialFocusRef:u,finalFocusRef:s,returnFocusOnClose:l,blockScrollOnMount:d,allowPinchZoom:p,preserveScrollBarGap:v,motionPreset:m,lockFocusAcrossFrames:h});return f.createElement(tn,{value:x},f.createElement(t.StylesProvider,{value:g},f.createElement(c.AnimatePresence,{onExitComplete:y},x.isOpen&&f.createElement(i.Portal,n,r))))};rn.defaultProps={lockFocusAcrossFrames:!0,returnFocusOnClose:!0,scrollBehavior:"outside",trapFocus:!0,autoFocus:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale"},t.__DEV__&&(rn.displayName="Modal");var on=t.chakra(u.motion.div),an=t.forwardRef((function(e,n){var r=e.className,o=e.children,a=e.containerProps,i=Vt(e,Zt),c=nn(),u=c.getDialogProps,s=c.getDialogContainerProps,l=u(i,n),d=s(a),p=t.cx("chakra-modal__content",r),v=t.useStyles(),m=Wt({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0},v.dialog),h=Wt({display:"flex",width:"100vw",height:"100vh","@supports(height: -webkit-fill-available)":{height:"-webkit-fill-available"},position:"fixed",left:0,top:0},v.dialogContainer),y=nn().motionPreset;return f.createElement(cn,null,f.createElement(t.chakra.div,Wt({},d,{className:"chakra-modal__content-container",tabIndex:-1,__css:h}),f.createElement(Xt,Wt({preset:y,className:p},l,{__css:m}),o)))}));function cn(e){var t=nn(),n=t.autoFocus,r=t.trapFocus,o=t.dialogRef,a=t.initialFocusRef,i=t.blockScrollOnMount,c=t.allowPinchZoom,s=t.finalFocusRef,l=t.returnFocusOnClose,d=t.preserveScrollBarGap,p=t.lockFocusAcrossFrames,v=u.usePresence(),m=v[0],h=v[1];return f.useEffect((function(){!m&&h&&setTimeout(h)}),[m,h]),f.createElement(at,{autoFocus:n,isDisabled:!r,initialFocusRef:a,finalFocusRef:s,restoreFocus:l,contentRef:o,lockFocusAcrossFrames:p},f.createElement(Rt,{removeScrollBar:!d,allowPinchZoom:c,enabled:i,forwardProps:!0},e.children))}t.__DEV__&&(an.displayName="ModalContent");var un=t.forwardRef((function(e,n){var r=e.className;e.transition;var o=Vt(e,zt),a=t.cx("chakra-modal__overlay",r),i=Wt({pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh"},t.useStyles().overlay),c="none"===nn().motionPreset?{}:M;return f.createElement(on,Wt({},c,{__css:i,ref:n,className:a},o))}));t.__DEV__&&(un.displayName="ModalOverlay");var sn=t.forwardRef((function(e,n){var r=e.className,o=Vt(e,Kt),a=nn(),i=a.headerId,c=a.setHeaderMounted;f.useEffect((function(){return c(!0),function(){return c(!1)}}),[c]);var u=t.cx("chakra-modal__header",r),s=Wt({flex:0},t.useStyles().header);return f.createElement(t.chakra.header,Wt({ref:n,className:u,id:i},o,{__css:s}))}));t.__DEV__&&(sn.displayName="ModalHeader");var ln=t.forwardRef((function(e,n){var r=e.className,o=Vt(e,Jt),a=nn(),i=a.bodyId,c=a.setBodyMounted;f.useEffect((function(){return c(!0),function(){return c(!1)}}),[c]);var u=t.cx("chakra-modal__body",r),s=t.useStyles();return f.createElement(t.chakra.div,Wt({ref:n,className:u,id:i},o,{__css:s.body}))}));t.__DEV__&&(ln.displayName="ModalBody");var dn=t.forwardRef((function(e,n){var r=e.className,o=Vt(e,Qt),a=t.cx("chakra-modal__footer",r),i=Wt({display:"flex",alignItems:"center",justifyContent:"flex-end"},t.useStyles().footer);return f.createElement(t.chakra.footer,Wt({ref:n},o,{__css:i,className:a}))}));t.__DEV__&&(dn.displayName="ModalFooter");var fn=t.forwardRef((function(e,n){var r=e.onClick,o=e.className,a=Vt(e,$t),i=nn().onClose,c=t.cx("chakra-modal__close-btn",o),u=t.useStyles();return f.createElement(Z,Wt({ref:n,__css:u.closeButton,className:c,onClick:t.callAllHandlers(r,(function(e){e.stopPropagation(),i()}))},a))}));t.__DEV__&&(fn.displayName="ModalCloseButton");var pn=["leastDestructiveRef"];var vn=t.forwardRef((function(e,t){return f.createElement(an,Wt({ref:t,role:"alertdialog"},e))})),mn=["isOpen","onClose","placement","children"],hn=["className","children"],yn=t.createContext(),gn=yn[0],xn=yn[1],En={start:{ltr:"left",rtl:"right"},end:{ltr:"right",rtl:"left"}};var bn=t.chakra(V),wn=t.forwardRef((function(e,n){var r=e.className,o=e.children,a=Vt(e,hn),i=nn(),c=i.getDialogProps,u=i.getDialogContainerProps,s=i.isOpen,l=c(a,n),d=u(),p=t.cx("chakra-modal__content",r),v=t.useStyles(),m=Wt({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0},v.dialog),h=Wt({display:"flex",width:"100vw",height:"100vh",position:"fixed",left:0,top:0},v.dialogContainer),y=xn().placement;return f.createElement(t.chakra.div,Wt({},d,{className:"chakra-modal__content-container",__css:h}),f.createElement(cn,null,f.createElement(bn,Wt({direction:y,in:s,className:p},l,{__css:m}),o)))}));t.__DEV__&&(wn.displayName="DrawerContent"),exports.AlertDialog=function(e){var t=e.leastDestructiveRef,n=Vt(e,pn);return f.createElement(rn,Wt({},n,{initialFocusRef:t}))},exports.AlertDialogContent=vn,exports.Collapse=F,exports.Drawer=function(e){var n,r=e.isOpen,o=e.onClose,a=e.placement,i=void 0===a?"right":a,c=e.children,u=Vt(e,mn),s=t.useTheme(),l=null==(n=s.components)?void 0:n.Drawer,d=function(e,t){var n,r;if(e)return null!=(n=null==(r=En[e])?void 0:r[t])?n:e}(i,s.direction);return f.createElement(gn,{value:{placement:d}},f.createElement(rn,Wt({isOpen:r,onClose:o,styleConfig:l},u),c))},exports.DrawerContent=wn,exports.Modal=rn,exports.ModalBody=ln,exports.ModalCloseButton=fn,exports.ModalContent=an,exports.ModalFooter=dn,exports.ModalHeader=sn,exports.ModalOverlay=un,exports.useModalContext=nn;
|
|
16
|
-
//# sourceMappingURL=chakra-ui-modal.esm-
|
|
16
|
+
//# sourceMappingURL=chakra-ui-modal.esm-5ec83d2f.js.map
|