@televet/kibble-ui 1.20.2 → 1.20.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/alert.component-27a1f5d4.js +2 -0
- package/build/alert.component-27a1f5d4.js.map +1 -0
- package/build/alert.types-4daf4eee.js +2 -0
- package/build/alert.types-4daf4eee.js.map +1 -0
- package/build/avatar.component-15867f35.js +2 -0
- package/build/avatar.component-15867f35.js.map +1 -0
- package/build/avatar.config-f2ca8baa.js +2 -0
- package/build/avatar.config-f2ca8baa.js.map +1 -0
- package/build/avatarGroup.component-ab7b40b1.js +2 -0
- package/build/avatarGroup.component-ab7b40b1.js.map +1 -0
- package/build/button.component-7994e6aa.js +2 -0
- package/build/button.component-7994e6aa.js.map +1 -0
- package/build/chakra/index.d.ts +2 -0
- package/build/chakra/index.js +2 -0
- package/build/chakra/index.js.map +1 -0
- package/build/chakra-ui-alert.esm-0751f858.js +2 -0
- package/build/chakra-ui-alert.esm-0751f858.js.map +1 -0
- package/build/chakra-ui-avatar.esm-59c90a73.js +2 -0
- package/build/chakra-ui-avatar.esm-59c90a73.js.map +1 -0
- package/build/chakra-ui-button.esm-35454bb1.js +2 -0
- package/build/chakra-ui-button.esm-35454bb1.js.map +1 -0
- package/build/chakra-ui-checkbox.esm-cdd9b730.js +2 -0
- package/build/chakra-ui-checkbox.esm-cdd9b730.js.map +1 -0
- package/build/chakra-ui-clickable.esm-b1a74f32.js +2 -0
- package/build/chakra-ui-clickable.esm-b1a74f32.js.map +1 -0
- package/build/chakra-ui-form-control.esm-0cef8b57.js +2 -0
- package/build/chakra-ui-form-control.esm-0cef8b57.js.map +1 -0
- package/build/chakra-ui-hooks.esm-567ac2a0.js +2 -0
- package/build/chakra-ui-hooks.esm-567ac2a0.js.map +1 -0
- package/build/chakra-ui-icon.esm-ce4e59f0.js +2 -0
- package/build/chakra-ui-icon.esm-ce4e59f0.js.map +1 -0
- package/build/chakra-ui-input.esm-ed97ec15.js +2 -0
- package/build/chakra-ui-input.esm-ed97ec15.js.map +1 -0
- package/build/chakra-ui-layout.esm-339b049e.js +2 -0
- package/build/chakra-ui-layout.esm-339b049e.js.map +1 -0
- package/build/chakra-ui-media-query.esm-d61e2d30.js +2 -0
- package/build/chakra-ui-media-query.esm-d61e2d30.js.map +1 -0
- package/build/chakra-ui-menu.esm-e0987e59.js +2 -0
- package/build/chakra-ui-menu.esm-e0987e59.js.map +1 -0
- package/build/chakra-ui-modal.esm-7aa63ee6.js +16 -0
- package/build/chakra-ui-modal.esm-7aa63ee6.js.map +1 -0
- package/build/chakra-ui-popover.esm-7715e41a.js +2 -0
- package/build/chakra-ui-popover.esm-7715e41a.js.map +1 -0
- package/build/chakra-ui-popper.esm-0f108f82.js +2 -0
- package/build/chakra-ui-popper.esm-0f108f82.js.map +1 -0
- package/build/chakra-ui-portal.esm-1b79ea40.js +2 -0
- package/build/chakra-ui-portal.esm-1b79ea40.js.map +1 -0
- package/build/chakra-ui-radio.esm-0b46b96d.js +2 -0
- package/build/chakra-ui-radio.esm-0b46b96d.js.map +1 -0
- package/build/chakra-ui-react.esm-9b647528.js +2 -0
- package/build/chakra-ui-react.esm-9b647528.js.map +1 -0
- package/build/chakra-ui-select.esm-25158f05.js +2 -0
- package/build/chakra-ui-select.esm-25158f05.js.map +1 -0
- package/build/chakra-ui-skeleton.esm-93e51908.js +2 -0
- package/build/chakra-ui-skeleton.esm-93e51908.js.map +1 -0
- package/build/chakra-ui-system.esm-1d513b8a.js +10 -0
- package/build/chakra-ui-system.esm-1d513b8a.js.map +1 -0
- package/build/chakra-ui-tabs.esm-ef9caadc.js +2 -0
- package/build/chakra-ui-tabs.esm-ef9caadc.js.map +1 -0
- package/build/chakra-ui-textarea.esm-be1a9598.js +2 -0
- package/build/chakra-ui-textarea.esm-be1a9598.js.map +1 -0
- package/build/chakra-ui-theme.esm-6392a200.js +2 -0
- package/build/chakra-ui-theme.esm-6392a200.js.map +1 -0
- package/build/chakra-ui-visually-hidden.esm-127ebfba.js +2 -0
- package/build/chakra-ui-visually-hidden.esm-127ebfba.js.map +1 -0
- package/build/checkbox.component-13b96bed.js +2 -0
- package/build/checkbox.component-13b96bed.js.map +1 -0
- package/build/checkboxGroup.component-d786905a.js +2 -0
- package/build/checkboxGroup.component-d786905a.js.map +1 -0
- package/build/color.record-43268868.js +2 -0
- package/build/color.record-43268868.js.map +1 -0
- package/build/components/{Feedback/Alert → Alert}/alert.argTypes.d.ts +2 -2
- package/build/components/{Feedback/Alert → Alert}/alert.component.d.ts +5 -6
- package/build/components/{Feedback/feedback.model.d.ts → Alert/alert.records.d.ts} +3 -2
- package/build/components/{Feedback/Alert → Alert}/alert.types.d.ts +1 -6
- package/build/components/{Feedback/Alert → Alert}/components/alertButton.component.d.ts +1 -1
- package/build/components/{Feedback/Alert → Alert}/components/alertDescription.component.d.ts +1 -1
- package/build/components/Alert/components/alertIcon.component.d.ts +7 -0
- package/build/components/{Feedback/Alert → Alert}/components/alertTitle.component.d.ts +1 -1
- package/build/components/Alert/index.d.ts +2 -0
- package/build/components/Alert/index.js +2 -0
- package/build/components/Alert/index.js.map +1 -0
- package/build/components/{MediaAndIcons/Avatar → Avatar}/avatar.argTypes.d.ts +3 -2
- package/build/components/{MediaAndIcons/Avatar → Avatar}/avatar.component.d.ts +2 -2
- package/build/components/{MediaAndIcons/Avatar → Avatar}/avatar.types.d.ts +1 -1
- package/build/components/Avatar/components/AvatarBadge/avatarBadge.component.d.ts +15 -0
- package/build/components/Avatar/components/AvatarBadge/avatarBadge.types.d.ts +6 -0
- package/build/components/Avatar/index.d.ts +2 -0
- package/build/components/Avatar/index.js +2 -0
- package/build/components/Avatar/index.js.map +1 -0
- package/build/components/AvatarGroup/index.js +2 -0
- package/build/components/AvatarGroup/index.js.map +1 -0
- package/build/components/Button/button.component.d.ts +14 -0
- package/build/components/{Forms/Button → Button}/button.types.d.ts +2 -1
- package/build/components/{Forms/Button → Button}/index.d.ts +0 -1
- package/build/components/Button/index.js +2 -0
- package/build/components/Button/index.js.map +1 -0
- package/build/components/Checkbox/index.d.ts +2 -0
- package/build/components/Checkbox/index.js +2 -0
- package/build/components/Checkbox/index.js.map +1 -0
- package/build/components/{Forms/Checkbox/components/CheckboxGroup → CheckboxGroup}/checkboxGroup.component.d.ts +3 -3
- package/build/components/CheckboxGroup/index.d.ts +1 -0
- package/build/components/CheckboxGroup/index.js +2 -0
- package/build/components/CheckboxGroup/index.js.map +1 -0
- package/build/components/DatePicker/components/Day/day.component.d.ts +7 -0
- package/build/components/{Forms/DatePicker → DatePicker}/components/Month/month.component.d.ts +1 -2
- package/build/components/{Forms/DatePicker → DatePicker/context}/datepicker.context.d.ts +2 -3
- package/build/components/{Forms/DatePicker → DatePicker}/datepicker.component.d.ts +1 -1
- package/build/components/DatePicker/datepicker.records.d.ts +7 -0
- package/build/components/{Forms/DatePicker → DatePicker}/index.d.ts +1 -1
- package/build/components/DatePicker/index.js +2 -0
- package/build/components/DatePicker/index.js.map +1 -0
- package/build/components/{Forms/FormControl → FormControl}/formControl.component.d.ts +1 -1
- package/build/components/FormControl/index.js +2 -0
- package/build/components/FormControl/index.js.map +1 -0
- package/build/components/{Typography/Heading → Heading}/heading.component.d.ts +3 -3
- package/build/components/{Typography/Heading → Heading}/heading.types.d.ts +1 -1
- package/build/components/{Typography/Heading → Heading}/index.d.ts +0 -1
- package/build/components/Heading/index.js +2 -0
- package/build/components/Heading/index.js.map +1 -0
- package/build/components/{MediaAndIcons/Icon → Icon}/icon.component.d.ts +1 -1
- package/build/components/{MediaAndIcons/Icon → Icon}/icon.types.d.ts +2 -1
- package/build/components/Icon/index.js +2 -0
- package/build/components/Icon/index.js.map +1 -0
- package/build/components/{Navigation/Link → Link}/components/linkIcon.component.d.ts +1 -1
- package/build/components/{Navigation/Link → Link}/index.d.ts +0 -1
- package/build/components/Link/index.js +2 -0
- package/build/components/Link/index.js.map +1 -0
- package/build/components/{Navigation/Link → Link}/link.component.d.ts +2 -1
- package/build/components/{Navigation/Link → Link}/link.config.d.ts +2 -2
- package/build/components/Logo/index.js +2 -0
- package/build/components/Logo/index.js.map +1 -0
- package/build/components/{MediaAndIcons/Logo → Logo}/logo.component.d.ts +2 -2
- package/build/components/Logo/logos.d.ts +7 -0
- package/build/components/Menu/components/MenuButton/index.d.ts +1 -0
- package/build/components/Menu/components/MenuButton/index.js +2 -0
- package/build/components/Menu/components/MenuButton/index.js.map +1 -0
- package/build/components/{Overlay/Menu → Menu}/components/MenuButton/menuButton.component.d.ts +3 -4
- package/build/components/Menu/components/MenuContainer/index.d.ts +1 -0
- package/build/components/Menu/components/MenuContainer/index.js +2 -0
- package/build/components/Menu/components/MenuContainer/index.js.map +1 -0
- package/build/components/{Overlay/Menu → Menu}/components/MenuContainer/menuContainer.component.d.ts +2 -3
- package/build/components/Menu/components/MenuItem/index.d.ts +1 -0
- package/build/components/Menu/components/MenuItem/index.js +2 -0
- package/build/components/Menu/components/MenuItem/index.js.map +1 -0
- package/build/components/{Overlay/Menu → Menu}/components/MenuItem/menuItem.component.d.ts +2 -3
- package/build/components/Menu/components/MenuList/index.d.ts +1 -0
- package/build/components/Menu/components/MenuList/index.js +2 -0
- package/build/components/Menu/components/MenuList/index.js.map +1 -0
- package/build/components/{Overlay/Menu → Menu}/components/MenuList/menuList.component.d.ts +2 -3
- 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/{Overlay/Menu → Menu}/components/MenuSearchBar/menuSearchBar.component.d.ts +2 -3
- package/build/components/{Overlay/Menu → Menu}/components/MenuSelectAllButtons/menuSelectAllButtons.component.d.ts +1 -2
- package/build/components/{Overlay/Menu → Menu/context}/menu.context.d.ts +2 -3
- package/build/components/Menu/index.d.ts +6 -0
- package/build/components/Menu/index.js +2 -0
- package/build/components/Menu/index.js.map +1 -0
- package/build/components/{Overlay/Menu → Menu}/menu.component.d.ts +3 -3
- package/build/components/Menu/menu.storiesData.d.ts +4 -0
- package/build/components/Modal/components/ModalBody/index.d.ts +1 -0
- package/build/components/Modal/components/ModalBody/index.js +2 -0
- package/build/components/Modal/components/ModalBody/index.js.map +1 -0
- package/build/components/Modal/components/ModalBody/modalBody.component.d.ts +4 -0
- package/build/components/Modal/components/ModalCloseButton/index.d.ts +1 -0
- package/build/components/Modal/components/ModalCloseButton/index.js +2 -0
- package/build/components/Modal/components/ModalCloseButton/index.js.map +1 -0
- package/build/components/Modal/components/ModalCloseButton/modalCloseButton.component.d.ts +4 -0
- package/build/components/Modal/components/ModalFooter/index.d.ts +1 -0
- package/build/components/Modal/components/ModalFooter/index.js +2 -0
- package/build/components/Modal/components/ModalFooter/index.js.map +1 -0
- package/build/components/Modal/components/ModalFooter/modalFooter.component.d.ts +4 -0
- package/build/components/Modal/components/ModalFooterButtons/index.d.ts +1 -0
- package/build/components/Modal/components/ModalFooterButtons/index.js +2 -0
- package/build/components/Modal/components/ModalFooterButtons/index.js.map +1 -0
- package/build/components/{Overlay/Modal → Modal}/components/ModalFooterButtons/modalFooterButtons.component.d.ts +2 -2
- package/build/components/Modal/components/ModalHeader/index.d.ts +1 -0
- package/build/components/Modal/components/ModalHeader/index.js +2 -0
- package/build/components/Modal/components/ModalHeader/index.js.map +1 -0
- package/build/components/Modal/components/ModalHeader/modalHeader.component.d.ts +6 -0
- package/build/components/Modal/index.d.ts +7 -0
- package/build/components/Modal/index.js +2 -0
- package/build/components/Modal/index.js.map +1 -0
- package/build/components/{Overlay/Modal → Modal}/modal.component.d.ts +2 -2
- package/build/components/NotificationCounter/index.js +2 -0
- package/build/components/NotificationCounter/index.js.map +1 -0
- package/build/components/{DataDisplay/NotificationCounter → NotificationCounter}/notificationCounter.component.d.ts +1 -1
- package/build/components/NotificationCounter/notificationCounter.records.d.ts +5 -0
- package/build/components/Popover/components/PopoverBody/index.d.ts +1 -0
- package/build/components/Popover/components/PopoverBody/index.js +2 -0
- package/build/components/Popover/components/PopoverBody/index.js.map +1 -0
- package/build/components/Popover/components/PopoverBody/popoverBody.component.d.ts +4 -0
- package/build/components/Popover/components/PopoverCloseButton/index.d.ts +1 -0
- package/build/components/Popover/components/PopoverCloseButton/index.js +2 -0
- package/build/components/Popover/components/PopoverCloseButton/index.js.map +1 -0
- package/build/components/Popover/components/PopoverCloseButton/popoverCloseButton.component.d.ts +4 -0
- package/build/components/Popover/components/PopoverFooter/index.d.ts +1 -0
- package/build/components/Popover/components/PopoverFooter/index.js +2 -0
- package/build/components/Popover/components/PopoverFooter/index.js.map +1 -0
- package/build/components/Popover/components/PopoverFooter/popoverFooter.component.d.ts +4 -0
- package/build/components/Popover/components/PopoverFooterButtons/index.d.ts +1 -0
- package/build/components/Popover/components/PopoverFooterButtons/index.js +2 -0
- package/build/components/Popover/components/PopoverFooterButtons/index.js.map +1 -0
- package/build/components/{Overlay/Popover → Popover}/components/PopoverFooterButtons/popoverFooterButtons.component.d.ts +2 -2
- package/build/components/Popover/components/PopoverHeader/index.d.ts +1 -0
- package/build/components/Popover/components/PopoverHeader/index.js +2 -0
- package/build/components/Popover/components/PopoverHeader/index.js.map +1 -0
- package/build/components/Popover/components/PopoverHeader/popoverHeader.component.d.ts +8 -0
- package/build/components/Popover/index.d.ts +7 -0
- package/build/components/Popover/index.js +2 -0
- package/build/components/Popover/index.js.map +1 -0
- package/build/components/{Overlay/Popover → Popover}/popover.component.d.ts +3 -3
- package/build/components/Radio/index.d.ts +2 -0
- package/build/components/Radio/index.js +2 -0
- package/build/components/Radio/index.js.map +1 -0
- package/build/components/RadioGroup/index.d.ts +1 -0
- package/build/components/RadioGroup/index.js +2 -0
- package/build/components/RadioGroup/index.js.map +1 -0
- package/build/components/{Forms/Radio/components/RadioGroup → RadioGroup}/radioGroup.component.d.ts +3 -3
- package/build/components/RatingDots/components/RatingDot/index.d.ts +2 -0
- package/build/components/RatingDots/components/RatingDot/index.js +2 -0
- package/build/components/RatingDots/components/RatingDot/index.js.map +1 -0
- package/build/components/RatingDots/index.d.ts +2 -0
- package/build/components/RatingDots/index.js +2 -0
- package/build/components/RatingDots/index.js.map +1 -0
- package/build/components/{Forms/RatingDots → RatingDots}/ratingDots.component.d.ts +2 -2
- package/build/components/{Forms/Select → Select}/components/SelectBrowserDefault/selectBrowserDefault.component.d.ts +1 -1
- package/build/components/{Forms/Select → Select}/components/SelectContainer/selectContainer.component.d.ts +1 -1
- package/build/components/{Forms/Select → Select}/components/SelectList/selectList.component.d.ts +2 -2
- package/build/components/{Forms/Select → Select}/index.d.ts +0 -1
- package/build/components/Select/index.js +2 -0
- package/build/components/Select/index.js.map +1 -0
- package/build/components/{Forms/Select → Select}/select.component.d.ts +3 -3
- package/build/components/Select/select.types.d.ts +3 -0
- package/build/components/SortableList/components/DragHandle/dragHandle.component.d.ts +4 -0
- package/build/components/SortableList/components/DragHandle/index.d.ts +1 -0
- package/build/components/SortableList/components/DragHandle/index.js +2 -0
- package/build/components/SortableList/components/DragHandle/index.js.map +1 -0
- package/build/components/SortableList/components/SortableItem/index.d.ts +1 -0
- package/build/components/SortableList/components/SortableItem/index.js +2 -0
- package/build/components/SortableList/components/SortableItem/index.js.map +1 -0
- package/build/components/{Draggable/SortableList → SortableList}/components/SortableItem/sortableItem.component.d.ts +1 -1
- package/build/components/SortableList/components/SortableOverlay/index.d.ts +1 -0
- package/build/components/SortableList/components/SortableOverlay/index.js +2 -0
- package/build/components/SortableList/components/SortableOverlay/index.js.map +1 -0
- package/build/components/SortableList/index.d.ts +4 -0
- package/build/components/SortableList/index.js +2 -0
- package/build/components/SortableList/index.js.map +1 -0
- package/build/components/{Draggable/SortableList → SortableList}/sortableList.component.d.ts +4 -3
- package/build/components/SortableList/utilities/index.js +2 -0
- package/build/components/SortableList/utilities/index.js.map +1 -0
- package/build/components/Spinner/index.js +2 -0
- package/build/components/Spinner/index.js.map +1 -0
- package/build/components/Spinner/spinner.records.d.ts +2 -0
- package/build/components/{Forms/Switch → Switch}/index.d.ts +0 -1
- package/build/components/Switch/index.js +2 -0
- package/build/components/Switch/index.js.map +1 -0
- package/build/components/Tabs/components/Tab/index.d.ts +2 -0
- package/build/components/Tabs/components/Tab/index.js +2 -0
- package/build/components/Tabs/components/Tab/index.js.map +1 -0
- package/build/components/{Disclosure/Tabs → Tabs}/components/Tab/tab.component.d.ts +3 -3
- package/build/components/Tabs/components/Tab/tab.records.d.ts +3 -0
- package/build/components/Tabs/index.d.ts +2 -0
- package/build/components/Tabs/index.js +2 -0
- package/build/components/Tabs/index.js.map +1 -0
- package/build/components/{Disclosure/Tabs → Tabs}/tabs.component.d.ts +1 -1
- package/build/components/TabsLayout/index.d.ts +1 -0
- package/build/components/TabsLayout/index.js +2 -0
- package/build/components/TabsLayout/index.js.map +1 -0
- package/build/components/{Disclosure/Tabs/components/TabsLayout → TabsLayout}/tabsLayout.component.d.ts +1 -1
- package/build/components/{DataDisplay/Tag → Tag}/index.d.ts +0 -1
- package/build/components/Tag/index.js +2 -0
- package/build/components/Tag/index.js.map +1 -0
- package/build/components/{DataDisplay/Tag → Tag}/tag.component.d.ts +2 -2
- package/build/components/Tag/tag.records.d.ts +2 -0
- package/build/components/{Typography/Text → Text}/index.d.ts +0 -1
- package/build/components/Text/index.js +2 -0
- package/build/components/Text/index.js.map +1 -0
- package/build/components/{Typography/Text → Text}/text.component.d.ts +4 -4
- package/build/components/Text/text.config.d.ts +2 -0
- package/build/components/{Forms/TextInput → TextInput}/components/ClearButton/clearButton.component.d.ts +1 -1
- package/build/components/TextInput/components/ClearButton/clearButton.records.d.ts +2 -0
- package/build/components/{Forms/TextInput → TextInput}/index.d.ts +0 -1
- package/build/components/TextInput/index.js +2 -0
- package/build/components/TextInput/index.js.map +1 -0
- package/build/components/{Forms/TextInput → TextInput}/textInput.component.d.ts +1 -1
- package/build/components/{Forms/Textarea → Textarea}/index.d.ts +1 -1
- package/build/components/Textarea/index.js +2 -0
- package/build/components/Textarea/index.js.map +1 -0
- package/build/components/TimePicker/components/scrollContainer.component.d.ts +3 -0
- package/build/components/{Forms/TimePicker/components/TimeOption.d.ts → TimePicker/components/timeOption.component.d.ts} +2 -2
- package/build/components/{Forms/TimePicker → TimePicker}/index.d.ts +0 -1
- package/build/components/TimePicker/index.js +2 -0
- package/build/components/TimePicker/index.js.map +1 -0
- package/build/components/{Forms/TimePicker → TimePicker}/timePicker.component.d.ts +1 -1
- package/build/components/TimeRange/index.js +2 -0
- package/build/components/TimeRange/index.js.map +1 -0
- package/build/components/Toast/index.d.ts +2 -0
- package/build/components/Toast/index.js +2 -0
- package/build/components/Toast/index.js.map +1 -0
- package/build/components/{Feedback/Toast/toast.utils.d.ts → Toast/toast.types.d.ts} +4 -1
- package/build/components/Toast/toast.utils.d.ts +2 -0
- package/build/components/{Feedback/Toast → Toast}/useToast.d.ts +2 -12
- package/build/components/{Overlay/Tooltip → Tooltip}/index.d.ts +0 -1
- package/build/components/Tooltip/index.js +2 -0
- package/build/components/Tooltip/index.js.map +1 -0
- package/build/components/{Overlay/Tooltip → Tooltip}/tooltip.component.d.ts +2 -2
- package/build/components/{Overlay/Tooltip → Tooltip}/tooltip.types.d.ts +1 -1
- package/build/components/TruncatedText/index.js +2 -0
- package/build/components/TruncatedText/index.js.map +1 -0
- package/build/components/{Typography/TruncatedText → TruncatedText}/truncatedText.component.d.ts +2 -3
- package/build/components/index.d.ts +34 -12
- package/build/components/index.js +2 -0
- package/build/components/index.js.map +1 -0
- package/build/core.esm-3a85aed4.js +2 -0
- package/build/core.esm-3a85aed4.js.map +1 -0
- package/build/datepicker.types-91c238b7.js +16 -0
- package/build/datepicker.types-91c238b7.js.map +1 -0
- package/build/dragHandle.component-3d2042c6.js +2 -0
- package/build/dragHandle.component-3d2042c6.js.map +1 -0
- package/build/fontSizes-6309063a.js +2 -0
- package/build/fontSizes-6309063a.js.map +1 -0
- package/build/formControl.component-13591c3d.js +2 -0
- package/build/formControl.component-13591c3d.js.map +1 -0
- package/build/heading.component-7d595aec.js +2 -0
- package/build/heading.component-7d595aec.js.map +1 -0
- package/build/hocs/index.js +2 -0
- package/build/hocs/index.js.map +1 -0
- package/build/hocs/withTheme.d.ts +1 -1
- package/build/hooks/index.d.ts +0 -3
- package/build/hooks/index.js +2 -0
- package/build/hooks/index.js.map +1 -0
- package/build/hooks/useAdaptiveColorMap.d.ts +1 -1
- package/build/hooks/useIconTextSizeMap.d.ts +2 -1
- package/build/hooks/useTheme.d.ts +1 -1
- package/build/hooks/useWindowSize.d.ts +1 -1
- package/build/icon.component-e549a530.js +2 -0
- package/build/icon.component-e549a530.js.map +1 -0
- package/build/index-27317c8c.js +2 -0
- package/build/index-27317c8c.js.map +1 -0
- package/build/index-8fecff45.js +15 -0
- package/build/index-8fecff45.js.map +1 -0
- package/build/index-bef968d3.js +2 -0
- package/build/index-bef968d3.js.map +1 -0
- package/build/index.d.ts +2 -1
- package/build/index.js +1 -28736
- package/build/index.js.map +1 -1
- package/build/inheritsLoose-490721fe.js +2 -0
- package/build/inheritsLoose-490721fe.js.map +1 -0
- package/build/link.component-aa529030.js +2 -0
- package/build/link.component-aa529030.js.map +1 -0
- package/build/logo.component-f41ae943.js +2 -0
- package/build/logo.component-f41ae943.js.map +1 -0
- package/build/menu.component-de420007.js +2 -0
- package/build/menu.component-de420007.js.map +1 -0
- package/build/menu.config-b32ff2af.js +2 -0
- package/build/menu.config-b32ff2af.js.map +1 -0
- package/build/menu.context-19ac1c6e.js +2 -0
- package/build/menu.context-19ac1c6e.js.map +1 -0
- package/build/menuButton.component-ec18bac5.js +2 -0
- package/build/menuButton.component-ec18bac5.js.map +1 -0
- package/build/menuContainer.component-7f1da5e6.js +2 -0
- package/build/menuContainer.component-7f1da5e6.js.map +1 -0
- package/build/menuItem.component-759ca712.js +2 -0
- package/build/menuItem.component-759ca712.js.map +1 -0
- package/build/menuList.component-d5d731bb.js +2 -0
- package/build/menuList.component-d5d731bb.js.map +1 -0
- package/build/menuOptionGroup.component-da4bd451.js +2 -0
- package/build/menuOptionGroup.component-da4bd451.js.map +1 -0
- package/build/modal.component-48f03ed3.js +2 -0
- package/build/modal.component-48f03ed3.js.map +1 -0
- package/build/modalBody.component-8a3dd614.js +2 -0
- package/build/modalBody.component-8a3dd614.js.map +1 -0
- package/build/modalCloseButton.component-8e2170fd.js +2 -0
- package/build/modalCloseButton.component-8e2170fd.js.map +1 -0
- package/build/modalFooter.component-fc1ac7e1.js +2 -0
- package/build/modalFooter.component-fc1ac7e1.js.map +1 -0
- package/build/modalFooterButtons.component-225729fc.js +2 -0
- package/build/modalFooterButtons.component-225729fc.js.map +1 -0
- package/build/modalHeader.component-16afb5d0.js +2 -0
- package/build/modalHeader.component-16afb5d0.js.map +1 -0
- package/build/motion-93f46f1f.js +2 -0
- package/build/motion-93f46f1f.js.map +1 -0
- package/build/notificationCounter.component-d4d35697.js +2 -0
- package/build/notificationCounter.component-d4d35697.js.map +1 -0
- package/build/popover.component-a37d20d9.js +2 -0
- package/build/popover.component-a37d20d9.js.map +1 -0
- package/build/popoverBody.component-69ec2050.js +2 -0
- package/build/popoverBody.component-69ec2050.js.map +1 -0
- package/build/popoverCloseButton.component-6a6e6909.js +2 -0
- package/build/popoverCloseButton.component-6a6e6909.js.map +1 -0
- package/build/popoverFooter.component-7eb4ed58.js +2 -0
- package/build/popoverFooter.component-7eb4ed58.js.map +1 -0
- package/build/popoverFooterButtons.component-8c24a6c6.js +2 -0
- package/build/popoverFooterButtons.component-8c24a6c6.js.map +1 -0
- package/build/popoverHeader.component-ef933e40.js +2 -0
- package/build/popoverHeader.component-ef933e40.js.map +1 -0
- package/build/radio.component-8821f41e.js +2 -0
- package/build/radio.component-8821f41e.js.map +1 -0
- package/build/radioGroup.component-b5c612d5.js +2 -0
- package/build/radioGroup.component-b5c612d5.js.map +1 -0
- package/build/ratingDot.component-1cbe2bf0.js +2 -0
- package/build/ratingDot.component-1cbe2bf0.js.map +1 -0
- package/build/ratingDots.component-df4cab11.js +2 -0
- package/build/ratingDots.component-df4cab11.js.map +1 -0
- package/build/select.component-97f13ab3.js +2 -0
- package/build/select.component-97f13ab3.js.map +1 -0
- package/build/shadows.config-fd05bf52.js +2 -0
- package/build/shadows.config-fd05bf52.js.map +1 -0
- package/build/shared/types.d.ts +2 -1
- package/build/sortableItem.component-d163a5ea.js +2 -0
- package/build/sortableItem.component-d163a5ea.js.map +1 -0
- package/build/sortableItem.context-f7dd54a1.js +2 -0
- package/build/sortableItem.context-f7dd54a1.js.map +1 -0
- package/build/sortableList.component-bd1a6934.js +2 -0
- package/build/sortableList.component-bd1a6934.js.map +1 -0
- package/build/sortableOverlay.component-7ecbda06.js +2 -0
- package/build/sortableOverlay.component-7ecbda06.js.map +1 -0
- package/build/spinner.component-bdb34a41.js +2 -0
- package/build/spinner.component-bdb34a41.js.map +1 -0
- package/build/strings-03c30366.js +2 -0
- package/build/strings-03c30366.js.map +1 -0
- package/build/switch.component-f710b6f4.js +2 -0
- package/build/switch.component-f710b6f4.js.map +1 -0
- package/build/tab.component-55fe94e4.js +2 -0
- package/build/tab.component-55fe94e4.js.map +1 -0
- package/build/tabs.component-d6e227c6.js +2 -0
- package/build/tabs.component-d6e227c6.js.map +1 -0
- package/build/tabsLayout.component-1fcaeacd.js +2 -0
- package/build/tabsLayout.component-1fcaeacd.js.map +1 -0
- package/build/tag.component-2aeabf52.js +2 -0
- package/build/tag.component-2aeabf52.js.map +1 -0
- package/build/text.component-aeaf39d8.js +2 -0
- package/build/text.component-aeaf39d8.js.map +1 -0
- package/build/textInput.component-5181d09d.js +2 -0
- package/build/textInput.component-5181d09d.js.map +1 -0
- package/build/textarea.component-d2c46d6e.js +2 -0
- package/build/textarea.component-d2c46d6e.js.map +1 -0
- package/build/theme/index.d.ts +1 -1
- package/build/theme/index.js +2 -0
- package/build/theme/index.js.map +1 -0
- package/build/theme/theme.types.d.ts +5 -2
- package/build/theme/tokens/colors/color.types.d.ts +2 -1
- package/build/theme/tokens/colors/index.js +2 -0
- package/build/theme/tokens/colors/index.js.map +1 -0
- package/build/theme/tokens/index.js +2 -0
- package/build/theme/tokens/index.js.map +1 -0
- package/build/theme/tokens/shadows/index.js +2 -0
- package/build/theme/tokens/shadows/index.js.map +1 -0
- package/build/theme.provider-aa0c8955.js +2 -0
- package/build/theme.provider-aa0c8955.js.map +1 -0
- package/build/timePicker.component-cc76ba22.js +2 -0
- package/build/timePicker.component-cc76ba22.js.map +1 -0
- package/build/timeRange.component-3295f4bf.js +2 -0
- package/build/timeRange.component-3295f4bf.js.map +1 -0
- package/build/tooltip.component-4891e19b.js +2 -0
- package/build/tooltip.component-4891e19b.js.map +1 -0
- package/build/truncatedText.component-568f013e.js +2 -0
- package/build/truncatedText.component-568f013e.js.map +1 -0
- package/build/tslib.es6-8e19e91f.js +2 -0
- package/build/tslib.es6-8e19e91f.js.map +1 -0
- package/build/typeof-a861d137.js +2 -0
- package/build/typeof-a861d137.js.map +1 -0
- package/build/useAdaptiveColor-74f29681.js +2 -0
- package/build/useAdaptiveColor-74f29681.js.map +1 -0
- package/build/useAdaptiveColorMap-83c28e16.js +2 -0
- package/build/useAdaptiveColorMap-83c28e16.js.map +1 -0
- package/build/useIconTextSizeMap-b81a72a5.js +2 -0
- package/build/useIconTextSizeMap-b81a72a5.js.map +1 -0
- package/build/useTheme-3dbb48a4.js +2 -0
- package/build/useTheme-3dbb48a4.js.map +1 -0
- package/build/useToast-4932aa7c.js +2 -0
- package/build/useToast-4932aa7c.js.map +1 -0
- package/build/utils/sizes.d.ts +2 -1
- package/build/withDarkMode-2a00cc1f.js +2 -0
- package/build/withDarkMode-2a00cc1f.js.map +1 -0
- package/build/withTheme-acb0ea42.js +2 -0
- package/build/withTheme-acb0ea42.js.map +1 -0
- package/build/zIndeces-4f459ad7.js +2 -0
- package/build/zIndeces-4f459ad7.js.map +1 -0
- package/package.json +14 -15
- package/build/components/DataDisplay/Table/index.d.ts +0 -1
- package/build/components/DataDisplay/index.d.ts +0 -3
- package/build/components/Disclosure/Tabs/index.d.ts +0 -6
- package/build/components/Disclosure/index.d.ts +0 -1
- package/build/components/Draggable/SortableList/components/DragHandle/dragHandle.component.d.ts +0 -2
- package/build/components/Draggable/SortableList/components/DragHandle/index.d.ts +0 -1
- package/build/components/Draggable/SortableList/components/SortableItem/index.d.ts +0 -1
- package/build/components/Draggable/SortableList/components/SortableOverlay/index.d.ts +0 -1
- package/build/components/Draggable/SortableList/components/index.d.ts +0 -3
- package/build/components/Draggable/SortableList/index.d.ts +0 -2
- package/build/components/Draggable/index.d.ts +0 -1
- package/build/components/Feedback/Alert/components/alertIcon.component.d.ts +0 -8
- package/build/components/Feedback/Alert/index.d.ts +0 -4
- package/build/components/Feedback/Spinner/spinner.records.d.ts +0 -2
- package/build/components/Feedback/Toast/index.d.ts +0 -1
- package/build/components/Feedback/feedback.types.d.ts +0 -1
- package/build/components/Feedback/index.d.ts +0 -5
- package/build/components/Forms/Button/button.component.d.ts +0 -15
- package/build/components/Forms/Checkbox/index.d.ts +0 -5
- package/build/components/Forms/DatePicker/components/Day/day.component.d.ts +0 -7
- package/build/components/Forms/Radio/index.d.ts +0 -5
- package/build/components/Forms/RatingDots/index.d.ts +0 -2
- package/build/components/Forms/Select/select.types.d.ts +0 -3
- package/build/components/Forms/TimePicker/components/ScrollContainer.d.ts +0 -4
- package/build/components/Forms/index.d.ts +0 -11
- package/build/components/Layout/Box/index.d.ts +0 -1
- package/build/components/Layout/Center/index.d.ts +0 -1
- package/build/components/Layout/Container/index.d.ts +0 -1
- package/build/components/Layout/Flex/index.d.ts +0 -1
- package/build/components/Layout/Grid/index.d.ts +0 -1
- package/build/components/Layout/SimpleGrid/index.d.ts +0 -1
- package/build/components/Layout/Stack/index.d.ts +0 -1
- package/build/components/Layout/Wrap/index.d.ts +0 -1
- package/build/components/Layout/index.d.ts +0 -8
- package/build/components/MediaAndIcons/Avatar/components/AvatarBadge/avatarBadge.component.d.ts +0 -20
- package/build/components/MediaAndIcons/Avatar/index.d.ts +0 -4
- package/build/components/MediaAndIcons/AvatarGroup/avatarGroup.utilities.d.ts +0 -6
- package/build/components/MediaAndIcons/Image/index.d.ts +0 -1
- package/build/components/MediaAndIcons/Logo/logos.d.ts +0 -7
- package/build/components/MediaAndIcons/index.d.ts +0 -3
- package/build/components/Navigation/LinkOverlay/index.d.ts +0 -1
- package/build/components/Navigation/index.d.ts +0 -2
- package/build/components/Other/Hide/index.d.ts +0 -1
- package/build/components/Other/Show/index.d.ts +0 -1
- package/build/components/Other/index.d.ts +0 -2
- package/build/components/Overlay/Drawer/drawer.config.d.ts +0 -13
- package/build/components/Overlay/Drawer/index.d.ts +0 -2
- package/build/components/Overlay/Menu/components/MenuOptionGroup/menuOptionGroup.component.d.ts +0 -3
- package/build/components/Overlay/Menu/index.d.ts +0 -9
- package/build/components/Overlay/Menu/menu.storiesData.d.ts +0 -4
- package/build/components/Overlay/Modal/components/ModalBody/modalBody.component.d.ts +0 -2
- package/build/components/Overlay/Modal/components/ModalCloseButton/modalCloseButton.component.d.ts +0 -2
- package/build/components/Overlay/Modal/components/ModalFooter/modalFooter.component.d.ts +0 -4
- package/build/components/Overlay/Modal/components/ModalHeader/modalHeader.component.d.ts +0 -6
- package/build/components/Overlay/Modal/index.d.ts +0 -7
- package/build/components/Overlay/Popover/components/PopoverBody/popoverBody.component.d.ts +0 -2
- package/build/components/Overlay/Popover/components/PopoverCloseButton/popoverCloseButton.component.d.ts +0 -2
- package/build/components/Overlay/Popover/components/PopoverFooter/popoverFooter.component.d.ts +0 -4
- package/build/components/Overlay/Popover/components/PopoverHeader/popoverHeader.component.d.ts +0 -7
- package/build/components/Overlay/Popover/index.d.ts +0 -9
- package/build/components/Overlay/index.d.ts +0 -5
- package/build/components/Typography/Text/text.config.d.ts +0 -2
- package/build/components/Typography/index.d.ts +0 -4
- package/build/components/Typography/typography.types.d.ts +0 -1
- package/build/components/hocs/index.d.ts +0 -1
- package/build/components/hocs/withDarkMode.d.ts +0 -2
- package/build/hooks/useDisclosure.d.ts +0 -1
- package/build/utils/index.d.ts +0 -3
- /package/build/components/{Feedback/Alert → Alert}/alert.config.d.ts +0 -0
- /package/build/components/{Feedback/Alert → Alert}/components/alertBody.component.d.ts +0 -0
- /package/build/components/{Feedback/Alert → Alert}/components/alertCloseButton.component.d.ts +0 -0
- /package/build/components/{Feedback/Alert → Alert}/components/alertHeader.component.d.ts +0 -0
- /package/build/components/{MediaAndIcons/Avatar → Avatar}/avatar.config.d.ts +0 -0
- /package/build/components/{MediaAndIcons/AvatarGroup → AvatarGroup}/avatarGroup.argTypes.d.ts +0 -0
- /package/build/components/{MediaAndIcons/AvatarGroup → AvatarGroup}/avatarGroup.component.d.ts +0 -0
- /package/build/components/{MediaAndIcons/AvatarGroup → AvatarGroup}/avatarGroup.storiesData.d.ts +0 -0
- /package/build/components/{MediaAndIcons/AvatarGroup → AvatarGroup}/index.d.ts +0 -0
- /package/build/components/{Forms/Button → Button}/button.config.d.ts +0 -0
- /package/build/components/{Forms/Checkbox → Checkbox}/checkbox.component.d.ts +0 -0
- /package/build/components/{Forms/Checkbox → Checkbox}/checkbox.config.d.ts +0 -0
- /package/build/components/{Forms/Checkbox → Checkbox}/checkbox.types.d.ts +0 -0
- /package/build/components/{Forms/DatePicker → DatePicker}/datepicker.argTypes.d.ts +0 -0
- /package/build/components/{Forms/DatePicker → DatePicker}/datepicker.types.d.ts +0 -0
- /package/build/components/{Forms/FormControl → FormControl}/formControl.argTypes.d.ts +0 -0
- /package/build/components/{Forms/FormControl → FormControl}/formControl.config.d.ts +0 -0
- /package/build/components/{Forms/FormControl → FormControl}/formControl.types.d.ts +0 -0
- /package/build/components/{Forms/FormControl → FormControl}/index.d.ts +0 -0
- /package/build/components/{Typography/Heading → Heading}/heading.config.d.ts +0 -0
- /package/build/components/{MediaAndIcons/Icon → Icon}/icon.records.d.ts +0 -0
- /package/build/components/{MediaAndIcons/Icon → Icon}/index.d.ts +0 -0
- /package/build/components/{Navigation/Link → Link}/link.argTypes.d.ts +0 -0
- /package/build/components/{MediaAndIcons/Logo → Logo}/index.d.ts +0 -0
- /package/build/components/{MediaAndIcons/Logo → Logo}/logo.config.d.ts +0 -0
- /package/build/components/{MediaAndIcons/Logo → Logo}/logo.types.d.ts +0 -0
- /package/build/components/{Overlay/Menu → Menu}/components/MenuButton/menuButton.argTypes.d.ts +0 -0
- /package/build/components/{Overlay/Menu → Menu}/components/MenuContainer/menuContainer.argTypes.d.ts +0 -0
- /package/build/components/{Overlay/Menu → Menu}/components/MenuItem/menuItem.argTypes.d.ts +0 -0
- /package/build/components/{Overlay/Menu → Menu}/components/MenuList/menuList.argTypes.d.ts +0 -0
- /package/build/components/{Overlay/Menu → Menu}/menu.argTypes.d.ts +0 -0
- /package/build/components/{Overlay/Menu → Menu}/menu.config.d.ts +0 -0
- /package/build/components/{Overlay/Modal → Modal}/modal.types.d.ts +0 -0
- /package/build/components/{DataDisplay/NotificationCounter → NotificationCounter}/index.d.ts +0 -0
- /package/build/components/{DataDisplay/NotificationCounter → NotificationCounter}/notificationCounter.types.d.ts +0 -0
- /package/build/components/{Overlay/Popover → Popover}/popover.config.d.ts +0 -0
- /package/build/components/{Overlay/Popover → Popover}/popover.types.d.ts +0 -0
- /package/build/components/{Forms/Radio → Radio}/radio.component.d.ts +0 -0
- /package/build/components/{Forms/Radio → Radio}/radio.config.d.ts +0 -0
- /package/build/components/{Forms/Radio → Radio}/radio.types.d.ts +0 -0
- /package/build/components/{Forms/RatingDots → RatingDots/components/RatingDot}/ratingDot.component.d.ts +0 -0
- /package/build/components/{Forms/Select → Select}/select.config.d.ts +0 -0
- /package/build/components/{Draggable/SortableList → SortableList}/components/SortableItem/sortableItem.context.d.ts +0 -0
- /package/build/components/{Draggable/SortableList → SortableList}/components/SortableOverlay/sortableOverlay.component.d.ts +0 -0
- /package/build/components/{Draggable/SortableList → SortableList}/mockData.d.ts +0 -0
- /package/build/components/{Draggable → SortableList}/utilities/createRange.d.ts +0 -0
- /package/build/components/{Draggable → SortableList}/utilities/index.d.ts +0 -0
- /package/build/components/{Feedback/Spinner → Spinner}/index.d.ts +0 -0
- /package/build/components/{Feedback/Spinner → Spinner}/spinner.component.d.ts +0 -0
- /package/build/components/{Feedback/Spinner → Spinner}/spinner.types.d.ts +0 -0
- /package/build/components/{Forms/Switch → Switch}/switch.component.d.ts +0 -0
- /package/build/components/{Forms/Switch → Switch}/switch.config.d.ts +0 -0
- /package/build/components/{Disclosure/Tabs/tabs.types.d.ts → Tabs/components/Tab/tab.types.d.ts} +0 -0
- /package/build/components/{Disclosure/Tabs → Tabs}/tabs.argTypes.d.ts +0 -0
- /package/build/components/{Disclosure/Tabs → Tabs}/tabs.config.d.ts +0 -0
- /package/build/components/{DataDisplay/Tag → Tag}/tag.config.d.ts +0 -0
- /package/build/components/{DataDisplay/Tag → Tag}/tag.types.d.ts +0 -0
- /package/build/components/{Typography/Text → Text}/text.types.d.ts +0 -0
- /package/build/components/{Forms/TextInput → TextInput}/textInput.config.d.ts +0 -0
- /package/build/components/{Forms/Textarea → Textarea}/textarea.component.d.ts +0 -0
- /package/build/components/{Forms/Textarea → Textarea}/textarea.config.d.ts +0 -0
- /package/build/components/{Forms/Textarea → Textarea}/textarea.types.d.ts +0 -0
- /package/build/components/{Forms/TimePicker → TimePicker}/timePicker.argTypes.d.ts +0 -0
- /package/build/components/{Forms/TimePicker → TimePicker}/timePicker.types.d.ts +0 -0
- /package/build/components/{Forms/TimeRange → TimeRange}/index.d.ts +0 -0
- /package/build/components/{Forms/TimeRange → TimeRange}/timeRange.argTypes.d.ts +0 -0
- /package/build/components/{Forms/TimeRange → TimeRange}/timeRange.component.d.ts +0 -0
- /package/build/components/{Overlay/Tooltip → Tooltip}/tooltip.config.d.ts +0 -0
- /package/build/components/{Typography/TruncatedText → TruncatedText}/index.d.ts +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=require("./chakra-ui-system.esm-1d513b8a.js"),n=require("react");function t(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 r=t(n);function u(){return u=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},u.apply(this,arguments)}function o(e){return e.sort((function(e,n){var t=e.compareDocumentPosition(n);if(t&Node.DOCUMENT_POSITION_FOLLOWING||t&Node.DOCUMENT_POSITION_CONTAINED_BY)return-1;if(t&Node.DOCUMENT_POSITION_PRECEDING||t&Node.DOCUMENT_POSITION_CONTAINS)return 1;if(t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)throw Error("Cannot sort the given nodes.");return 0}))}function i(e,n,t){var r=e+1;return t&&r>=n&&(r=0),r}function a(e,n,t){var r=e-1;return t&&r<0&&(r=n),r}var s="undefined"!=typeof window?n.useLayoutEffect:n.useEffect,c=function(e){return e},d=function(){var e=this;this.descendants=new Map,this.register=function(n){var t;if(null!=n)return"object"==typeof(t=n)&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE?e.registerNode(n):function(t){e.registerNode(t,n)}},this.unregister=function(n){e.descendants.delete(n);var t=o(Array.from(e.descendants.keys()));e.assignIndex(t)},this.destroy=function(){e.descendants.clear()},this.assignIndex=function(n){e.descendants.forEach((function(e){var t=n.indexOf(e.node);e.index=t,e.node.dataset.index=e.index.toString()}))},this.count=function(){return e.descendants.size},this.enabledCount=function(){return e.enabledValues().length},this.values=function(){return Array.from(e.descendants.values()).sort((function(e,n){return e.index-n.index}))},this.enabledValues=function(){return e.values().filter((function(e){return!e.disabled}))},this.item=function(n){if(0!==e.count())return e.values()[n]},this.enabledItem=function(n){if(0!==e.enabledCount())return e.enabledValues()[n]},this.first=function(){return e.item(0)},this.firstEnabled=function(){return e.enabledItem(0)},this.last=function(){return e.item(e.descendants.size-1)},this.lastEnabled=function(){var n=e.enabledValues().length-1;return e.enabledItem(n)},this.indexOf=function(n){var t,r;return n&&null!=(t=null==(r=e.descendants.get(n))?void 0:r.index)?t:-1},this.enabledIndexOf=function(n){return null==n?-1:e.enabledValues().findIndex((function(e){return e.node.isSameNode(n)}))},this.next=function(n,t){void 0===t&&(t=!0);var r=i(n,e.count(),t);return e.item(r)},this.nextEnabled=function(n,t){void 0===t&&(t=!0);var r=e.item(n);if(r){var u=i(e.enabledIndexOf(r.node),e.enabledCount(),t);return e.enabledItem(u)}},this.prev=function(n,t){void 0===t&&(t=!0);var r=a(n,e.count()-1,t);return e.item(r)},this.prevEnabled=function(n,t){void 0===t&&(t=!0);var r=e.item(n);if(r){var u=a(e.enabledIndexOf(r.node),e.enabledCount()-1,t);return e.enabledItem(u)}},this.registerNode=function(n,t){if(n&&!e.descendants.has(n)){var r=o(Array.from(e.descendants.keys()).concat(n));null!=t&&t.disabled&&(t.disabled=!!t.disabled);var i=u({node:n,index:-1},t);e.descendants.set(n,i),e.assignIndex(r)}}};var l=e.createContext({name:"DescendantsProvider",errorMessage:"useDescendantsContext must be used within DescendantsProvider"}),f=l[0],v=l[1];function b(){return b=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},b.apply(this,arguments)}var p=["ref","isDisabled","isFocusable","clickOnEnter","clickOnSpace","onMouseDown","onMouseUp","onClick","onKeyDown","onKeyUp","tabIndex","onMouseOver","onMouseLeave"];function O(e){var n=e.target,t=n.tagName,r=n.isContentEditable;return"INPUT"!==t&&"TEXTAREA"!==t&&!0!==r}exports.createDescendantContext=function(){return[c(f),function(){return c(v())},function(){return e=n.useRef(new d),s((function(){return function(){return e.current.destroy()}})),e.current;var e},function(t){return function(t){var r=v(),u=n.useState(-1),o=u[0],i=u[1],a=n.useRef(null);s((function(){return function(){a.current&&r.unregister(a.current)}}),[]),s((function(){if(a.current){var e=Number(a.current.dataset.index);o==e||Number.isNaN(e)||i(e)}}));var d=c(t?r.register(t):r.register);return{descendants:r,index:o,enabledIndex:r.enabledIndexOf(a.current),register:e.mergeRefs(d,a)}}(t)}]},exports.useClickable=function(n){void 0===n&&(n={});var t=n,u=t.ref,o=t.isDisabled,i=t.isFocusable,a=t.clickOnEnter,s=void 0===a||a,c=t.clickOnSpace,d=void 0===c||c,l=t.onMouseDown,f=t.onMouseUp,v=t.onClick,N=t.onKeyDown,h=t.onKeyUp,m=t.tabIndex,y=t.onMouseOver,g=t.onMouseLeave,C=function(e,n){if(null==e)return{};var t,r,u={},o=Object.keys(e);for(r=0;r<o.length;r++)t=o[r],n.indexOf(t)>=0||(u[t]=e[t]);return u}(t,p),E=r.useState(!0),I=E[0],D=E[1],k=r.useState(!1),x=k[0],M=k[1],T=function(){var e=r.useRef(new Map),n=e.current,t=r.useCallback((function(n,t,r,u){e.current.set(r,{type:t,el:n,options:u}),n.addEventListener(t,r,u)}),[]),u=r.useCallback((function(n,t,r,u){n.removeEventListener(t,r,u),e.current.delete(r)}),[]);return r.useEffect((function(){return function(){n.forEach((function(e,n){u(e.el,e.type,n,e.options)}))}}),[u,n]),{add:t,remove:u}}(),P=I?m:m||0,w=o&&!i,S=r.useCallback((function(e){if(o)return e.stopPropagation(),void e.preventDefault();e.currentTarget.focus(),null==v||v(e)}),[o,v]),_=r.useCallback((function(e){x&&O(e)&&(e.preventDefault(),e.stopPropagation(),M(!1),T.remove(document,"keyup",_,!1))}),[x,T]),U=r.useCallback((function(e){if(null==N||N(e),!(o||e.defaultPrevented||e.metaKey)&&O(e.nativeEvent)&&!I){var n=s&&"Enter"===e.key;if(d&&" "===e.key&&(e.preventDefault(),M(!0)),n)e.preventDefault(),e.currentTarget.click();T.add(document,"keyup",_,!1)}}),[o,I,N,s,d,T,_]),j=r.useCallback((function(e){(null==h||h(e),o||e.defaultPrevented||e.metaKey)||O(e.nativeEvent)&&!I&&d&&" "===e.key&&(e.preventDefault(),M(!1),e.currentTarget.click())}),[d,I,o,h]),L=r.useCallback((function(e){0===e.button&&(M(!1),T.remove(document,"mouseup",L,!1))}),[T]),K=r.useCallback((function(n){if(!e.isRightClick(n)){if(o)return n.stopPropagation(),void n.preventDefault();I||M(!0),n.currentTarget.focus({preventScroll:!0}),T.add(document,"mouseup",L,!1),null==l||l(n)}}),[o,I,l,T,L]),A=r.useCallback((function(n){e.isRightClick(n)||(I||M(!1),null==f||f(n))}),[f,I]),R=r.useCallback((function(e){o?e.preventDefault():null==y||y(e)}),[o,y]),V=r.useCallback((function(e){x&&(e.preventDefault(),M(!1)),null==g||g(e)}),[x,g]),F=e.mergeRefs(u,(function(e){e&&"BUTTON"!==e.tagName&&D(!1)}));return b({},C,I?{ref:F,type:"button","aria-disabled":w?void 0:o,disabled:w,onClick:S,onMouseDown:l,onMouseUp:f,onKeyUp:h,onKeyDown:N,onMouseOver:y,onMouseLeave:g}:{ref:F,role:"button","data-active":e.dataAttr(x),"aria-disabled":o?"true":void 0,tabIndex:w?void 0:P,onClick:S,onMouseDown:K,onMouseUp:A,onKeyUp:j,onKeyDown:U,onMouseOver:R,onMouseLeave:V})};
|
|
2
|
+
//# sourceMappingURL=chakra-ui-clickable.esm-b1a74f32.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chakra-ui-clickable.esm-b1a74f32.js","sources":["../node_modules/@chakra-ui/descendant/dist/chakra-ui-descendant.esm.js","../node_modules/@chakra-ui/clickable/dist/chakra-ui-clickable.esm.js"],"sourcesContent":["import { createContext, mergeRefs } from '@chakra-ui/react-utils';\nimport { useLayoutEffect, useEffect, useRef, useState } from 'react';\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\n/**\n * Sort an array of DOM nodes according to the HTML tree order\n * @see http://www.w3.org/TR/html5/infrastructure.html#tree-order\n */\n\nfunction sortNodes(nodes) {\n return nodes.sort(function (a, b) {\n var compare = a.compareDocumentPosition(b);\n\n if (compare & Node.DOCUMENT_POSITION_FOLLOWING || compare & Node.DOCUMENT_POSITION_CONTAINED_BY) {\n // a < b\n return -1;\n }\n\n if (compare & Node.DOCUMENT_POSITION_PRECEDING || compare & Node.DOCUMENT_POSITION_CONTAINS) {\n // a > b\n return 1;\n }\n\n if (compare & Node.DOCUMENT_POSITION_DISCONNECTED || compare & Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC) {\n throw Error(\"Cannot sort the given nodes.\");\n } else {\n return 0;\n }\n });\n}\nvar isElement = function isElement(el) {\n return typeof el == \"object\" && \"nodeType\" in el && el.nodeType === Node.ELEMENT_NODE;\n};\nfunction getNextIndex(current, max, loop) {\n var next = current + 1;\n if (loop && next >= max) next = 0;\n return next;\n}\nfunction getPrevIndex(current, max, loop) {\n var next = current - 1;\n if (loop && next < 0) next = max;\n return next;\n}\nvar useSafeLayoutEffect = typeof window !== \"undefined\" ? useLayoutEffect : useEffect;\nvar cast = function cast(value) {\n return value;\n};\n\n/**\n * @internal\n *\n * Class to manage descendants and their relative indices in the DOM.\n * It uses `node.compareDocumentPosition(...)` under the hood\n */\nvar DescendantsManager = function DescendantsManager() {\n var _this = this;\n\n this.descendants = new Map();\n\n this.register = function (nodeOrOptions) {\n if (nodeOrOptions == null) return;\n\n if (isElement(nodeOrOptions)) {\n return _this.registerNode(nodeOrOptions);\n }\n\n return function (node) {\n _this.registerNode(node, nodeOrOptions);\n };\n };\n\n this.unregister = function (node) {\n _this.descendants[\"delete\"](node);\n\n var sorted = sortNodes(Array.from(_this.descendants.keys()));\n\n _this.assignIndex(sorted);\n };\n\n this.destroy = function () {\n _this.descendants.clear();\n };\n\n this.assignIndex = function (descendants) {\n _this.descendants.forEach(function (descendant) {\n var index = descendants.indexOf(descendant.node);\n descendant.index = index;\n descendant.node.dataset[\"index\"] = descendant.index.toString();\n });\n };\n\n this.count = function () {\n return _this.descendants.size;\n };\n\n this.enabledCount = function () {\n return _this.enabledValues().length;\n };\n\n this.values = function () {\n var values = Array.from(_this.descendants.values());\n return values.sort(function (a, b) {\n return a.index - b.index;\n });\n };\n\n this.enabledValues = function () {\n return _this.values().filter(function (descendant) {\n return !descendant.disabled;\n });\n };\n\n this.item = function (index) {\n if (_this.count() === 0) return undefined;\n return _this.values()[index];\n };\n\n this.enabledItem = function (index) {\n if (_this.enabledCount() === 0) return undefined;\n return _this.enabledValues()[index];\n };\n\n this.first = function () {\n return _this.item(0);\n };\n\n this.firstEnabled = function () {\n return _this.enabledItem(0);\n };\n\n this.last = function () {\n return _this.item(_this.descendants.size - 1);\n };\n\n this.lastEnabled = function () {\n var lastIndex = _this.enabledValues().length - 1;\n return _this.enabledItem(lastIndex);\n };\n\n this.indexOf = function (node) {\n var _this$descendants$get, _this$descendants$get2;\n\n if (!node) return -1;\n return (_this$descendants$get = (_this$descendants$get2 = _this.descendants.get(node)) == null ? void 0 : _this$descendants$get2.index) != null ? _this$descendants$get : -1;\n };\n\n this.enabledIndexOf = function (node) {\n if (node == null) return -1;\n return _this.enabledValues().findIndex(function (i) {\n return i.node.isSameNode(node);\n });\n };\n\n this.next = function (index, loop) {\n if (loop === void 0) {\n loop = true;\n }\n\n var next = getNextIndex(index, _this.count(), loop);\n return _this.item(next);\n };\n\n this.nextEnabled = function (index, loop) {\n if (loop === void 0) {\n loop = true;\n }\n\n var item = _this.item(index);\n\n if (!item) return;\n\n var enabledIndex = _this.enabledIndexOf(item.node);\n\n var nextEnabledIndex = getNextIndex(enabledIndex, _this.enabledCount(), loop);\n return _this.enabledItem(nextEnabledIndex);\n };\n\n this.prev = function (index, loop) {\n if (loop === void 0) {\n loop = true;\n }\n\n var prev = getPrevIndex(index, _this.count() - 1, loop);\n return _this.item(prev);\n };\n\n this.prevEnabled = function (index, loop) {\n if (loop === void 0) {\n loop = true;\n }\n\n var item = _this.item(index);\n\n if (!item) return;\n\n var enabledIndex = _this.enabledIndexOf(item.node);\n\n var prevEnabledIndex = getPrevIndex(enabledIndex, _this.enabledCount() - 1, loop);\n return _this.enabledItem(prevEnabledIndex);\n };\n\n this.registerNode = function (node, options) {\n if (!node || _this.descendants.has(node)) return;\n var keys = Array.from(_this.descendants.keys()).concat(node);\n var sorted = sortNodes(keys);\n\n if (options != null && options.disabled) {\n options.disabled = !!options.disabled;\n }\n\n var descendant = _extends({\n node: node,\n index: -1\n }, options);\n\n _this.descendants.set(node, descendant);\n\n _this.assignIndex(sorted);\n };\n};\n\n/**\n * @internal\n * React hook that initializes the DescendantsManager\n */\n\nfunction useDescendants() {\n var descendants = useRef(new DescendantsManager());\n useSafeLayoutEffect(function () {\n return function () {\n return descendants.current.destroy();\n };\n });\n return descendants.current;\n}\n\n/* -------------------------------------------------------------------------------------------------\n * Descendants context to be used in component-land.\n - Mount the `DescendantsContextProvider` at the root of the component\n - Call `useDescendantsContext` anywhere you need access to the descendants information\n\n NB: I recommend using `createDescendantContext` below\n * -----------------------------------------------------------------------------------------------*/\nvar _createContext = createContext({\n name: \"DescendantsProvider\",\n errorMessage: \"useDescendantsContext must be used within DescendantsProvider\"\n}),\n DescendantsContextProvider = _createContext[0],\n useDescendantsContext = _createContext[1];\n/**\n * @internal\n * This hook provides information a descendant such as:\n * - Its index compared to other descendants\n * - ref callback to register the descendant\n * - Its enabled index compared to other enabled descendants\n */\n\n\nfunction useDescendant(options) {\n var descendants = useDescendantsContext();\n\n var _useState = useState(-1),\n index = _useState[0],\n setIndex = _useState[1];\n\n var ref = useRef(null);\n useSafeLayoutEffect(function () {\n return function () {\n if (!ref.current) return;\n descendants.unregister(ref.current);\n };\n }, []);\n useSafeLayoutEffect(function () {\n if (!ref.current) return;\n var dataIndex = Number(ref.current.dataset[\"index\"]);\n\n if (index != dataIndex && !Number.isNaN(dataIndex)) {\n setIndex(dataIndex);\n }\n });\n var refCallback = options ? cast(descendants.register(options)) : cast(descendants.register);\n return {\n descendants: descendants,\n index: index,\n enabledIndex: descendants.enabledIndexOf(ref.current),\n register: mergeRefs(refCallback, ref)\n };\n}\n/* -------------------------------------------------------------------------------------------------\n * Function that provides strongly typed versions of the context provider and hooks above.\n To be used in component-land\n * -----------------------------------------------------------------------------------------------*/\n\n\nfunction createDescendantContext() {\n var ContextProvider = cast(DescendantsContextProvider);\n\n var _useDescendantsContext = function _useDescendantsContext() {\n return cast(useDescendantsContext());\n };\n\n var _useDescendant = function _useDescendant(options) {\n return useDescendant(options);\n };\n\n var _useDescendants = function _useDescendants() {\n return useDescendants();\n };\n\n return [// context provider\n ContextProvider, // call this when you need to read from context\n _useDescendantsContext, // descendants state information, to be called and passed to `ContextProvider`\n _useDescendants, // descendant index information\n _useDescendant];\n}\n\nexport { createDescendantContext, createDescendantContext as default };\n","import { isRightClick, dataAttr } from '@chakra-ui/utils';\nimport { mergeRefs } from '@chakra-ui/react-utils';\nimport * as React from 'react';\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\nfunction useEventListeners() {\n var listeners = React.useRef(new Map());\n var currentListeners = listeners.current;\n var add = React.useCallback(function (el, type, listener, options) {\n listeners.current.set(listener, {\n type: type,\n el: el,\n options: options\n });\n el.addEventListener(type, listener, options);\n }, []);\n var remove = React.useCallback(function (el, type, listener, options) {\n el.removeEventListener(type, listener, options);\n listeners.current[\"delete\"](listener);\n }, []);\n React.useEffect(function () {\n return function () {\n currentListeners.forEach(function (value, key) {\n remove(value.el, value.type, key, value.options);\n });\n };\n }, [remove, currentListeners]);\n return {\n add: add,\n remove: remove\n };\n}\n\nvar _excluded = [\"ref\", \"isDisabled\", \"isFocusable\", \"clickOnEnter\", \"clickOnSpace\", \"onMouseDown\", \"onMouseUp\", \"onClick\", \"onKeyDown\", \"onKeyUp\", \"tabIndex\", \"onMouseOver\", \"onMouseLeave\"];\n\nfunction isValidElement(event) {\n var element = event.target;\n var tagName = element.tagName,\n isContentEditable = element.isContentEditable;\n return tagName !== \"INPUT\" && tagName !== \"TEXTAREA\" && isContentEditable !== true;\n}\n/**\n * useClickable implements all the interactions of a native `button`\n * component with support for making it focusable even if it is disabled.\n *\n * It can be used with both native button elements or other elements (like `div`).\n */\n\n\nfunction useClickable(props) {\n if (props === void 0) {\n props = {};\n }\n\n var _props = props,\n htmlRef = _props.ref,\n isDisabled = _props.isDisabled,\n isFocusable = _props.isFocusable,\n _props$clickOnEnter = _props.clickOnEnter,\n clickOnEnter = _props$clickOnEnter === void 0 ? true : _props$clickOnEnter,\n _props$clickOnSpace = _props.clickOnSpace,\n clickOnSpace = _props$clickOnSpace === void 0 ? true : _props$clickOnSpace,\n onMouseDown = _props.onMouseDown,\n onMouseUp = _props.onMouseUp,\n onClick = _props.onClick,\n onKeyDown = _props.onKeyDown,\n onKeyUp = _props.onKeyUp,\n tabIndexProp = _props.tabIndex,\n onMouseOver = _props.onMouseOver,\n onMouseLeave = _props.onMouseLeave,\n htmlProps = _objectWithoutPropertiesLoose(_props, _excluded);\n /**\n * We'll use this to track if the element is a button element\n */\n\n\n var _React$useState = React.useState(true),\n isButton = _React$useState[0],\n setIsButton = _React$useState[1];\n /**\n * For custom button implementation, we'll use this to track when\n * we mouse down on the button, to enable use style its \":active\" style\n */\n\n\n var _React$useState2 = React.useState(false),\n isPressed = _React$useState2[0],\n setIsPressed = _React$useState2[1];\n\n var listeners = useEventListeners();\n /**\n * The ref callback that fires as soon as the dom node is ready\n */\n\n var refCallback = function refCallback(node) {\n if (!node) return;\n\n if (node.tagName !== \"BUTTON\") {\n setIsButton(false);\n }\n };\n\n var tabIndex = isButton ? tabIndexProp : tabIndexProp || 0;\n var trulyDisabled = isDisabled && !isFocusable;\n var handleClick = React.useCallback(function (event) {\n if (isDisabled) {\n event.stopPropagation();\n event.preventDefault();\n return;\n }\n\n var self = event.currentTarget;\n self.focus();\n onClick == null ? void 0 : onClick(event);\n }, [isDisabled, onClick]);\n var onDocumentKeyUp = React.useCallback(function (e) {\n if (isPressed && isValidElement(e)) {\n e.preventDefault();\n e.stopPropagation();\n setIsPressed(false); // eslint-disable-next-line @typescript-eslint/no-unused-vars\n\n listeners.remove(document, \"keyup\", onDocumentKeyUp, false);\n }\n }, [isPressed, listeners]);\n var handleKeyDown = React.useCallback(function (event) {\n onKeyDown == null ? void 0 : onKeyDown(event);\n\n if (isDisabled || event.defaultPrevented || event.metaKey) {\n return;\n }\n\n if (!isValidElement(event.nativeEvent) || isButton) return;\n var shouldClickOnEnter = clickOnEnter && event.key === \"Enter\";\n var shouldClickOnSpace = clickOnSpace && event.key === \" \";\n\n if (shouldClickOnSpace) {\n event.preventDefault();\n setIsPressed(true);\n }\n\n if (shouldClickOnEnter) {\n event.preventDefault();\n var self = event.currentTarget;\n self.click();\n }\n\n listeners.add(document, \"keyup\", onDocumentKeyUp, false);\n }, [isDisabled, isButton, onKeyDown, clickOnEnter, clickOnSpace, listeners, onDocumentKeyUp]);\n var handleKeyUp = React.useCallback(function (event) {\n onKeyUp == null ? void 0 : onKeyUp(event);\n if (isDisabled || event.defaultPrevented || event.metaKey) return;\n if (!isValidElement(event.nativeEvent) || isButton) return;\n var shouldClickOnSpace = clickOnSpace && event.key === \" \";\n\n if (shouldClickOnSpace) {\n event.preventDefault();\n setIsPressed(false);\n var self = event.currentTarget;\n self.click();\n }\n }, [clickOnSpace, isButton, isDisabled, onKeyUp]);\n var onDocumentMouseUp = React.useCallback(function (event) {\n if (event.button !== 0) return;\n setIsPressed(false);\n listeners.remove(document, \"mouseup\", onDocumentMouseUp, false);\n }, [listeners]);\n var handleMouseDown = React.useCallback(function (event) {\n if (isRightClick(event)) return;\n\n if (isDisabled) {\n event.stopPropagation();\n event.preventDefault();\n return;\n }\n\n if (!isButton) {\n setIsPressed(true);\n }\n\n var target = event.currentTarget;\n target.focus({\n preventScroll: true\n });\n listeners.add(document, \"mouseup\", onDocumentMouseUp, false);\n onMouseDown == null ? void 0 : onMouseDown(event);\n }, [isDisabled, isButton, onMouseDown, listeners, onDocumentMouseUp]);\n var handleMouseUp = React.useCallback(function (event) {\n if (isRightClick(event)) return;\n\n if (!isButton) {\n setIsPressed(false);\n }\n\n onMouseUp == null ? void 0 : onMouseUp(event);\n }, [onMouseUp, isButton]);\n var handleMouseOver = React.useCallback(function (event) {\n if (isDisabled) {\n event.preventDefault();\n return;\n }\n\n onMouseOver == null ? void 0 : onMouseOver(event);\n }, [isDisabled, onMouseOver]);\n var handleMouseLeave = React.useCallback(function (event) {\n if (isPressed) {\n event.preventDefault();\n setIsPressed(false);\n }\n\n onMouseLeave == null ? void 0 : onMouseLeave(event);\n }, [isPressed, onMouseLeave]);\n var ref = mergeRefs(htmlRef, refCallback);\n\n if (isButton) {\n return _extends({}, htmlProps, {\n ref: ref,\n type: \"button\",\n \"aria-disabled\": trulyDisabled ? undefined : isDisabled,\n disabled: trulyDisabled,\n onClick: handleClick,\n onMouseDown: onMouseDown,\n onMouseUp: onMouseUp,\n onKeyUp: onKeyUp,\n onKeyDown: onKeyDown,\n onMouseOver: onMouseOver,\n onMouseLeave: onMouseLeave\n });\n }\n\n return _extends({}, htmlProps, {\n ref: ref,\n role: \"button\",\n \"data-active\": dataAttr(isPressed),\n \"aria-disabled\": isDisabled ? \"true\" : undefined,\n tabIndex: trulyDisabled ? undefined : tabIndex,\n onClick: handleClick,\n onMouseDown: handleMouseDown,\n onMouseUp: handleMouseUp,\n onKeyUp: handleKeyUp,\n onKeyDown: handleKeyDown,\n onMouseOver: handleMouseOver,\n onMouseLeave: handleMouseLeave\n });\n}\n\nexport { useClickable };\n"],"names":["_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","sortNodes","nodes","sort","a","b","compare","compareDocumentPosition","Node","DOCUMENT_POSITION_FOLLOWING","DOCUMENT_POSITION_CONTAINED_BY","DOCUMENT_POSITION_PRECEDING","DOCUMENT_POSITION_CONTAINS","DOCUMENT_POSITION_DISCONNECTED","DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC","Error","getNextIndex","current","max","loop","next","getPrevIndex","useSafeLayoutEffect","window","useLayoutEffect","useEffect","cast","value","DescendantsManager","_this","descendants","Map","register","nodeOrOptions","el","nodeType","ELEMENT_NODE","registerNode","node","unregister","sorted","Array","from","keys","assignIndex","destroy","clear","forEach","descendant","index","indexOf","dataset","toString","count","size","enabledCount","enabledValues","values","filter","disabled","item","enabledItem","first","firstEnabled","last","lastEnabled","lastIndex","_this$descendants$get","_this$descendants$get2","get","enabledIndexOf","findIndex","isSameNode","nextEnabled","nextEnabledIndex","prev","prevEnabled","prevEnabledIndex","options","has","concat","set","_createContext","createContext","name","errorMessage","DescendantsContextProvider","useDescendantsContext","_excluded","isValidElement","event","element","tagName","isContentEditable","useRef","_useState","useState","setIndex","ref","dataIndex","Number","isNaN","refCallback","enabledIndex","mergeRefs","useDescendant","props","_props","htmlRef","isDisabled","isFocusable","_props$clickOnEnter","clickOnEnter","_props$clickOnSpace","clickOnSpace","onMouseDown","onMouseUp","onClick","onKeyDown","onKeyUp","tabIndexProp","tabIndex","onMouseOver","onMouseLeave","htmlProps","excluded","sourceKeys","_objectWithoutPropertiesLoose","_React$useState","React","isButton","setIsButton","_React$useState2","isPressed","setIsPressed","listeners","currentListeners","add","useCallback","type","listener","addEventListener","remove","removeEventListener","useEventListeners","trulyDisabled","handleClick","stopPropagation","preventDefault","currentTarget","focus","onDocumentKeyUp","e","document","handleKeyDown","defaultPrevented","metaKey","nativeEvent","shouldClickOnEnter","click","handleKeyUp","onDocumentMouseUp","button","handleMouseDown","isRightClick","preventScroll","handleMouseUp","handleMouseOver","handleMouseLeave","undefined","role","dataAttr"],"mappings":"8XAGA,SAASA,IAeP,OAdAA,EAAWC,OAAOC,QAAU,SAAUC,GACpC,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CACzC,IAAIG,EAASF,UAAUD,GAEvB,IAAK,IAAII,KAAOD,EACVN,OAAOQ,UAAUC,eAAeC,KAAKJ,EAAQC,KAC/CL,EAAOK,GAAOD,EAAOC,GAG1B,CAED,OAAOL,CACX,EAESH,EAASY,MAAMC,KAAMR,UAC9B,CAOA,SAASS,EAAUC,GACjB,OAAOA,EAAMC,MAAK,SAAUC,EAAGC,GAC7B,IAAIC,EAAUF,EAAEG,wBAAwBF,GAExC,GAAIC,EAAUE,KAAKC,6BAA+BH,EAAUE,KAAKE,+BAE/D,OAAQ,EAGV,GAAIJ,EAAUE,KAAKG,6BAA+BL,EAAUE,KAAKI,2BAE/D,OAAO,EAGT,GAAIN,EAAUE,KAAKK,gCAAkCP,EAAUE,KAAKM,0CAClE,MAAMC,MAAM,gCAEZ,OAAO,CAEb,GACA,CAIA,SAASC,EAAaC,EAASC,EAAKC,GAClC,IAAIC,EAAOH,EAAU,EAErB,OADIE,GAAQC,GAAQF,IAAKE,EAAO,GACzBA,CACT,CACA,SAASC,EAAaJ,EAASC,EAAKC,GAClC,IAAIC,EAAOH,EAAU,EAErB,OADIE,GAAQC,EAAO,IAAGA,EAAOF,GACtBE,CACT,CACA,IAAIE,EAAwC,oBAAXC,OAAyBC,EAAAA,gBAAkBC,EAAAA,UACxEC,EAAO,SAAcC,GACvB,OAAOA,CACT,EAQIC,EAAqB,WACvB,IAAIC,EAAQ7B,KAEZA,KAAK8B,YAAc,IAAIC,IAEvB/B,KAAKgC,SAAW,SAAUC,GA7BZ,IAAmBC,EA8B/B,GAAqB,MAAjBD,EAEJ,MA/BkB,iBADaC,EAgCjBD,IA/BgB,aAAcC,GAAMA,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ra-ui-hooks.esm-567ac2a0.js"),r=require("./chakra-ui-system.esm-1d513b8a.js"),a=require("react"),l=require("./chakra-ui-icon.esm-ce4e59f0.js");function i(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var l=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,l.get?l:{enumerable:!0,get:function(){return e[a]}})}})),r.default=e,Object.freeze(r)}var n=i(a);function t(){return t=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(e[l]=a[l])}return e},t.apply(this,arguments)}function s(e,r){if(null==e)return{};var a,l,i={},n=Object.keys(e);for(l=0;l<n.length;l++)a=n[l],r.indexOf(a)>=0||(i[a]=e[a]);return i}var o=["id","isRequired","isInvalid","isDisabled","isReadOnly"],d=["getRootProps","htmlProps"],u=r.createContext({strict:!1,name:"FormControlContext"}),c=u[0],v=u[1];var f=r.forwardRef((function(a,l){var i=r.useMultiStyleConfig("Form",a),u=function(a){var l=a.id,i=a.isRequired,d=a.isInvalid,u=a.isDisabled,c=a.isReadOnly,v=s(a,o),f=e.useId(),m=l||"field-"+f,p=m+"-label",b=m+"-feedback",h=m+"-helptext",_=n.useState(!1),y=_[0],x=_[1],R=n.useState(!1),g=R[0],k=R[1],I=e.useBoolean(),F=I[0],q=I[1],E=n.useCallback((function(e,a){return void 0===e&&(e={}),void 0===a&&(a=null),t({id:h},e,{ref:r.mergeRefs(a,(function(e){e&&k(!0)}))})}),[h]),O=n.useCallback((function(e,a){var l,i;return void 0===e&&(e={}),void 0===a&&(a=null),t({},e,{ref:a,"data-focus":r.dataAttr(F),"data-disabled":r.dataAttr(u),"data-invalid":r.dataAttr(d),"data-readonly":r.dataAttr(c),id:null!=(l=e.id)?l:p,htmlFor:null!=(i=e.htmlFor)?i:m})}),[m,u,F,d,c,p]),P=n.useCallback((function(e,a){return void 0===e&&(e={}),void 0===a&&(a=null),t({id:b},e,{ref:r.mergeRefs(a,(function(e){e&&x(!0)})),"aria-live":"polite"})}),[b]),N=n.useCallback((function(e,r){return void 0===e&&(e={}),void 0===r&&(r=null),t({},e,v,{ref:r,role:"group"})}),[v]),C=n.useCallback((function(e,r){return void 0===e&&(e={}),void 0===r&&(r=null),t({},e,{ref:r,role:"presentation","aria-hidden":!0,children:e.children||"*"})}),[]);return{isRequired:!!i,isInvalid:!!d,isReadOnly:!!c,isDisabled:!!u,isFocused:!!F,onFocus:q.on,onBlur:q.off,hasFeedbackText:y,setHasFeedbackText:x,hasHelpText:g,setHasHelpText:k,id:m,labelId:p,feedbackId:b,helpTextId:h,htmlProps:v,getHelpTextProps:E,getErrorMessageProps:P,getRootProps:N,getLabelProps:O,getRequiredIndicatorProps:C}}(r.omitThemingProps(a)),v=u.getRootProps;u.htmlProps;var f=s(u,d),m=r.cx("chakra-form-control",a.className);return n.createElement(c,{value:f},n.createElement(r.StylesProvider,{value:i},n.createElement(r.chakra.div,t({},v({},l),{className:m,__css:i.container}))))}));r.__DEV__&&(f.displayName="FormControl");var m=r.forwardRef((function(e,a){var l=v(),i=r.useStyles(),s=r.cx("chakra-form__helper-text",e.className);return n.createElement(r.chakra.div,t({},null==l?void 0:l.getHelpTextProps(e,a),{__css:i.helperText,className:s}))}));r.__DEV__&&(m.displayName="FormHelperText");var p=["isDisabled","isInvalid","isReadOnly","isRequired"],b=["id","disabled","readOnly","required","isRequired","isInvalid","isReadOnly","isDisabled","onFocus","onBlur"];function h(e){var a,l,i,n=v(),o=e.id,d=e.disabled,u=e.readOnly,c=e.required,f=e.isRequired,m=e.isInvalid,p=e.isReadOnly,h=e.isDisabled,_=e.onFocus,y=e.onBlur,x=s(e,b),R=e["aria-describedby"]?[e["aria-describedby"]]:[];return null!=n&&n.hasFeedbackText&&null!=n&&n.isInvalid&&R.push(n.feedbackId),null!=n&&n.hasHelpText&&R.push(n.helpTextId),t({},x,{"aria-describedby":R.join(" ")||void 0,id:null!=o?o:null==n?void 0:n.id,isDisabled:null!=(a=null!=d?d:h)?a:null==n?void 0:n.isDisabled,isReadOnly:null!=(l=null!=u?u:p)?l:null==n?void 0:n.isReadOnly,isRequired:null!=(i=null!=c?c:f)?i:null==n?void 0:n.isRequired,isInvalid:null!=m?m:null==n?void 0:n.isInvalid,onFocus:r.callAllHandlers(null==n?void 0:n.onFocus,_),onBlur:r.callAllHandlers(null==n?void 0:n.onBlur,y)})}var _=r.forwardRef((function(e,a){var l=r.useMultiStyleConfig("FormError",e),i=r.omitThemingProps(e),s=v();return null!=s&&s.isInvalid?n.createElement(r.StylesProvider,{value:l},n.createElement(r.chakra.div,t({},null==s?void 0:s.getErrorMessageProps(i,a),{className:r.cx("chakra-form__error-message",e.className),__css:t({display:"flex",alignItems:"center"},l.text)}))):null}));r.__DEV__&&(_.displayName="FormErrorMessage");var y=r.forwardRef((function(e,a){var i=r.useStyles(),s=v();if(null==s||!s.isInvalid)return null;var o=r.cx("chakra-form__error-icon",e.className);return n.createElement(l.Icon$1,t({ref:a,"aria-hidden":!0},e,{__css:i.icon,className:o}),n.createElement("path",{fill:"currentColor",d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z"}))}));r.__DEV__&&(y.displayName="FormErrorIcon");var x=["className","children","requiredIndicator","optionalIndicator"],R=r.forwardRef((function(e,a){var l,i=r.useStyleConfig("FormLabel",e),o=r.omitThemingProps(e);o.className;var d=o.children,u=o.requiredIndicator,c=void 0===u?n.createElement(g,null):u,f=o.optionalIndicator,m=void 0===f?null:f,p=s(o,x),b=v(),h=null!=(l=null==b?void 0:b.getLabelProps(p,a))?l:t({ref:a},p);return n.createElement(r.chakra.label,t({},h,{className:r.cx("chakra-form__label",o.className),__css:t({display:"block",textAlign:"start"},i)}),d,null!=b&&b.isRequired?c:m)}));r.__DEV__&&(R.displayName="FormLabel");var g=r.forwardRef((function(e,a){var l=v(),i=r.useStyles();if(null==l||!l.isRequired)return null;var s=r.cx("chakra-form__required-indicator",e.className);return n.createElement(r.chakra.span,t({},null==l?void 0:l.getRequiredIndicatorProps(e,a),{__css:i.requiredIndicator,className:s}))}));r.__DEV__&&(g.displayName="RequiredIndicator"),exports.FormControl=f,exports.FormErrorMessage=_,exports.FormHelperText=m,exports.FormLabel=R,exports.useFormControl=function(e){var a=h(e),l=a.isDisabled,i=a.isInvalid,n=a.isReadOnly,o=a.isRequired;return t({},s(a,p),{disabled:l,readOnly:n,required:o,"aria-invalid":r.ariaAttr(i),"aria-required":r.ariaAttr(o),"aria-readonly":r.ariaAttr(n)})},exports.useFormControlContext=v,exports.useFormControlProps=h;
|
|
2
|
+
//# sourceMappingURL=chakra-ui-form-control.esm-0cef8b57.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chakra-ui-form-control.esm-0cef8b57.js","sources":["../node_modules/@chakra-ui/form-control/dist/chakra-ui-form-control.esm.js"],"sourcesContent":["import { useId, useBoolean } from '@chakra-ui/hooks';\nimport { forwardRef, useMultiStyleConfig, omitThemingProps, StylesProvider, chakra, useStyles, useStyleConfig } from '@chakra-ui/system';\nimport { cx, __DEV__, dataAttr, callAllHandlers, ariaAttr } from '@chakra-ui/utils';\nimport { createContext, mergeRefs } from '@chakra-ui/react-utils';\nimport * as React from 'react';\nimport Icon from '@chakra-ui/icon';\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$2 = [\"id\", \"isRequired\", \"isInvalid\", \"isDisabled\", \"isReadOnly\"],\n _excluded2$1 = [\"getRootProps\", \"htmlProps\"];\n\nvar _createContext = createContext({\n strict: false,\n name: \"FormControlContext\"\n}),\n FormControlProvider = _createContext[0],\n useFormControlContext = _createContext[1];\n\nfunction useFormControlProvider(props) {\n var idProp = props.id,\n isRequired = props.isRequired,\n isInvalid = props.isInvalid,\n isDisabled = props.isDisabled,\n isReadOnly = props.isReadOnly,\n htmlProps = _objectWithoutPropertiesLoose(props, _excluded$2); // Generate all the required ids\n\n\n var uuid = useId();\n var id = idProp || \"field-\" + uuid;\n var labelId = id + \"-label\";\n var feedbackId = id + \"-feedback\";\n var helpTextId = id + \"-helptext\";\n /**\n * Track whether the `FormErrorMessage` has been rendered.\n * We use this to append its id the `aria-describedby` of the `input`.\n */\n\n var _React$useState = React.useState(false),\n hasFeedbackText = _React$useState[0],\n setHasFeedbackText = _React$useState[1];\n /**\n * Track whether the `FormHelperText` has been rendered.\n * We use this to append its id the `aria-describedby` of the `input`.\n */\n\n\n var _React$useState2 = React.useState(false),\n hasHelpText = _React$useState2[0],\n setHasHelpText = _React$useState2[1]; // Track whether the form element (e.g, `input`) has focus.\n\n\n var _useBoolean = useBoolean(),\n isFocused = _useBoolean[0],\n setFocus = _useBoolean[1];\n\n var getHelpTextProps = React.useCallback(function (props, forwardedRef) {\n if (props === void 0) {\n props = {};\n }\n\n if (forwardedRef === void 0) {\n forwardedRef = null;\n }\n\n return _extends({\n id: helpTextId\n }, props, {\n /**\n * Notify the field context when the help text is rendered on screen,\n * so we can apply the correct `aria-describedby` to the field (e.g. input, textarea).\n */\n ref: mergeRefs(forwardedRef, function (node) {\n if (!node) return;\n setHasHelpText(true);\n })\n });\n }, [helpTextId]);\n var getLabelProps = React.useCallback(function (props, forwardedRef) {\n var _props$id, _props$htmlFor;\n\n if (props === void 0) {\n props = {};\n }\n\n if (forwardedRef === void 0) {\n forwardedRef = null;\n }\n\n return _extends({}, props, {\n ref: forwardedRef,\n \"data-focus\": dataAttr(isFocused),\n \"data-disabled\": dataAttr(isDisabled),\n \"data-invalid\": dataAttr(isInvalid),\n \"data-readonly\": dataAttr(isReadOnly),\n id: (_props$id = props.id) != null ? _props$id : labelId,\n htmlFor: (_props$htmlFor = props.htmlFor) != null ? _props$htmlFor : id\n });\n }, [id, isDisabled, isFocused, isInvalid, isReadOnly, labelId]);\n var getErrorMessageProps = React.useCallback(function (props, forwardedRef) {\n if (props === void 0) {\n props = {};\n }\n\n if (forwardedRef === void 0) {\n forwardedRef = null;\n }\n\n return _extends({\n id: feedbackId\n }, props, {\n /**\n * Notify the field context when the error message is rendered on screen,\n * so we can apply the correct `aria-describedby` to the field (e.g. input, textarea).\n */\n ref: mergeRefs(forwardedRef, function (node) {\n if (!node) return;\n setHasFeedbackText(true);\n }),\n \"aria-live\": \"polite\"\n });\n }, [feedbackId]);\n var getRootProps = React.useCallback(function (props, forwardedRef) {\n if (props === void 0) {\n props = {};\n }\n\n if (forwardedRef === void 0) {\n forwardedRef = null;\n }\n\n return _extends({}, props, htmlProps, {\n ref: forwardedRef,\n role: \"group\"\n });\n }, [htmlProps]);\n var getRequiredIndicatorProps = React.useCallback(function (props, forwardedRef) {\n if (props === void 0) {\n props = {};\n }\n\n if (forwardedRef === void 0) {\n forwardedRef = null;\n }\n\n return _extends({}, props, {\n ref: forwardedRef,\n role: \"presentation\",\n \"aria-hidden\": true,\n children: props.children || \"*\"\n });\n }, []);\n return {\n isRequired: !!isRequired,\n isInvalid: !!isInvalid,\n isReadOnly: !!isReadOnly,\n isDisabled: !!isDisabled,\n isFocused: !!isFocused,\n onFocus: setFocus.on,\n onBlur: setFocus.off,\n hasFeedbackText: hasFeedbackText,\n setHasFeedbackText: setHasFeedbackText,\n hasHelpText: hasHelpText,\n setHasHelpText: setHasHelpText,\n id: id,\n labelId: labelId,\n feedbackId: feedbackId,\n helpTextId: helpTextId,\n htmlProps: htmlProps,\n getHelpTextProps: getHelpTextProps,\n getErrorMessageProps: getErrorMessageProps,\n getRootProps: getRootProps,\n getLabelProps: getLabelProps,\n getRequiredIndicatorProps: getRequiredIndicatorProps\n };\n}\n\n/**\n * FormControl provides context such as\n * `isInvalid`, `isDisabled`, and `isRequired` to form elements.\n *\n * This is commonly used in form elements such as `input`,\n * `select`, `textarea`, etc.\n */\nvar FormControl = /*#__PURE__*/forwardRef(function (props, ref) {\n var styles = useMultiStyleConfig(\"Form\", props);\n var ownProps = omitThemingProps(props);\n\n var _useFormControlProvid = useFormControlProvider(ownProps),\n getRootProps = _useFormControlProvid.getRootProps;\n _useFormControlProvid.htmlProps;\n var context = _objectWithoutPropertiesLoose(_useFormControlProvid, _excluded2$1);\n\n var className = cx(\"chakra-form-control\", props.className);\n return /*#__PURE__*/React.createElement(FormControlProvider, {\n value: context\n }, /*#__PURE__*/React.createElement(StylesProvider, {\n value: styles\n }, /*#__PURE__*/React.createElement(chakra.div, _extends({}, getRootProps({}, ref), {\n className: className,\n __css: styles[\"container\"]\n }))));\n});\n\nif (__DEV__) {\n FormControl.displayName = \"FormControl\";\n}\n\n/**\n * FormHelperText\n *\n * Assistive component that conveys additional guidance\n * about the field, such as how it will be used and what\n * types in values should be provided.\n */\nvar FormHelperText = /*#__PURE__*/forwardRef(function (props, ref) {\n var field = useFormControlContext();\n var styles = useStyles();\n var className = cx(\"chakra-form__helper-text\", props.className);\n return /*#__PURE__*/React.createElement(chakra.div, _extends({}, field == null ? void 0 : field.getHelpTextProps(props, ref), {\n __css: styles.helperText,\n className: className\n }));\n});\n\nif (__DEV__) {\n FormHelperText.displayName = \"FormHelperText\";\n}\n\nvar _excluded$1 = [\"isDisabled\", \"isInvalid\", \"isReadOnly\", \"isRequired\"],\n _excluded2 = [\"id\", \"disabled\", \"readOnly\", \"required\", \"isRequired\", \"isInvalid\", \"isReadOnly\", \"isDisabled\", \"onFocus\", \"onBlur\"];\n\n/**\n * React hook that provides the props that should be spread on to\n * input fields (`input`, `select`, `textarea`, etc.).\n *\n * It provides a convenient way to control a form fields, validation\n * and helper text.\n *\n * @internal\n */\nfunction useFormControl(props) {\n var _useFormControlProps = useFormControlProps(props),\n isDisabled = _useFormControlProps.isDisabled,\n isInvalid = _useFormControlProps.isInvalid,\n isReadOnly = _useFormControlProps.isReadOnly,\n isRequired = _useFormControlProps.isRequired,\n rest = _objectWithoutPropertiesLoose(_useFormControlProps, _excluded$1);\n\n return _extends({}, rest, {\n disabled: isDisabled,\n readOnly: isReadOnly,\n required: isRequired,\n \"aria-invalid\": ariaAttr(isInvalid),\n \"aria-required\": ariaAttr(isRequired),\n \"aria-readonly\": ariaAttr(isReadOnly)\n });\n}\n/**\n * @internal\n */\n\nfunction useFormControlProps(props) {\n var _ref, _ref2, _ref3;\n\n var field = useFormControlContext();\n\n var id = props.id,\n disabled = props.disabled,\n readOnly = props.readOnly,\n required = props.required,\n isRequired = props.isRequired,\n isInvalid = props.isInvalid,\n isReadOnly = props.isReadOnly,\n isDisabled = props.isDisabled,\n onFocus = props.onFocus,\n onBlur = props.onBlur,\n rest = _objectWithoutPropertiesLoose(props, _excluded2);\n\n var labelIds = props[\"aria-describedby\"] ? [props[\"aria-describedby\"]] : []; // Error message must be described first in all scenarios.\n\n if (field != null && field.hasFeedbackText && field != null && field.isInvalid) {\n labelIds.push(field.feedbackId);\n }\n\n if (field != null && field.hasHelpText) {\n labelIds.push(field.helpTextId);\n }\n\n return _extends({}, rest, {\n \"aria-describedby\": labelIds.join(\" \") || undefined,\n id: id != null ? id : field == null ? void 0 : field.id,\n isDisabled: (_ref = disabled != null ? disabled : isDisabled) != null ? _ref : field == null ? void 0 : field.isDisabled,\n isReadOnly: (_ref2 = readOnly != null ? readOnly : isReadOnly) != null ? _ref2 : field == null ? void 0 : field.isReadOnly,\n isRequired: (_ref3 = required != null ? required : isRequired) != null ? _ref3 : field == null ? void 0 : field.isRequired,\n isInvalid: isInvalid != null ? isInvalid : field == null ? void 0 : field.isInvalid,\n onFocus: callAllHandlers(field == null ? void 0 : field.onFocus, onFocus),\n onBlur: callAllHandlers(field == null ? void 0 : field.onBlur, onBlur)\n });\n}\n\n/**\n * Used to provide feedback about an invalid input,\n * and suggest clear instructions on how to fix it.\n */\nvar FormErrorMessage = /*#__PURE__*/forwardRef(function (props, ref) {\n var styles = useMultiStyleConfig(\"FormError\", props);\n var ownProps = omitThemingProps(props);\n var field = useFormControlContext();\n if (!(field != null && field.isInvalid)) return null;\n return /*#__PURE__*/React.createElement(StylesProvider, {\n value: styles\n }, /*#__PURE__*/React.createElement(chakra.div, _extends({}, field == null ? void 0 : field.getErrorMessageProps(ownProps, ref), {\n className: cx(\"chakra-form__error-message\", props.className),\n __css: _extends({\n display: \"flex\",\n alignItems: \"center\"\n }, styles.text)\n })));\n});\n\nif (__DEV__) {\n FormErrorMessage.displayName = \"FormErrorMessage\";\n}\n/**\n * Used as the visual indicator that a field is invalid or\n * a field has incorrect values.\n */\n\n\nvar FormErrorIcon = /*#__PURE__*/forwardRef(function (props, ref) {\n var styles = useStyles();\n var field = useFormControlContext();\n if (!(field != null && field.isInvalid)) return null;\n\n var _className = cx(\"chakra-form__error-icon\", props.className);\n\n return /*#__PURE__*/React.createElement(Icon, _extends({\n ref: ref,\n \"aria-hidden\": true\n }, props, {\n __css: styles.icon,\n className: _className\n }), /*#__PURE__*/React.createElement(\"path\", {\n fill: \"currentColor\",\n d: \"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z\"\n }));\n});\n\nif (__DEV__) {\n FormErrorIcon.displayName = \"FormErrorIcon\";\n}\n\nvar _excluded = [\"className\", \"children\", \"requiredIndicator\", \"optionalIndicator\"];\n\n/**\n * Used to enhance the usability of form controls.\n *\n * It is used to inform users as to what information\n * is requested for a form field.\n *\n * ♿️ Accessibility: Every form field should have a form label.\n */\nvar FormLabel = /*#__PURE__*/forwardRef(function (passedProps, ref) {\n var _field$getLabelProps;\n\n var styles = useStyleConfig(\"FormLabel\", passedProps);\n var props = omitThemingProps(passedProps);\n\n props.className;\n var children = props.children,\n _props$requiredIndica = props.requiredIndicator,\n requiredIndicator = _props$requiredIndica === void 0 ? /*#__PURE__*/React.createElement(RequiredIndicator, null) : _props$requiredIndica,\n _props$optionalIndica = props.optionalIndicator,\n optionalIndicator = _props$optionalIndica === void 0 ? null : _props$optionalIndica,\n rest = _objectWithoutPropertiesLoose(props, _excluded);\n\n var field = useFormControlContext();\n var ownProps = (_field$getLabelProps = field == null ? void 0 : field.getLabelProps(rest, ref)) != null ? _field$getLabelProps : _extends({\n ref: ref\n }, rest);\n return /*#__PURE__*/React.createElement(chakra.label, _extends({}, ownProps, {\n className: cx(\"chakra-form__label\", props.className),\n __css: _extends({\n display: \"block\",\n textAlign: \"start\"\n }, styles)\n }), children, field != null && field.isRequired ? requiredIndicator : optionalIndicator);\n});\n\nif (__DEV__) {\n FormLabel.displayName = \"FormLabel\";\n}\n\n/**\n * Used to show a \"required\" text or an asterisks (*) to indicate that\n * a field is required.\n */\nvar RequiredIndicator = /*#__PURE__*/forwardRef(function (props, ref) {\n var field = useFormControlContext();\n var styles = useStyles();\n if (!(field != null && field.isRequired)) return null;\n var className = cx(\"chakra-form__required-indicator\", props.className);\n return /*#__PURE__*/React.createElement(chakra.span, _extends({}, field == null ? void 0 : field.getRequiredIndicatorProps(props, ref), {\n __css: styles.requiredIndicator,\n className: className\n }));\n});\n\nif (__DEV__) {\n RequiredIndicator.displayName = \"RequiredIndicator\";\n}\n\nexport { FormControl, FormErrorIcon, FormErrorMessage, FormHelperText, FormLabel, RequiredIndicator, useFormControl, useFormControlContext, useFormControlProps };\n"],"names":["_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","_objectWithoutPropertiesLoose","excluded","sourceKeys","keys","indexOf","_excluded$2","_excluded2$1","_createContext","createContext","strict","name","FormControlProvider","useFormControlContext","FormControl","forwardRef","props","ref","styles","useMultiStyleConfig","_useFormControlProvid","idProp","id","isRequired","isInvalid","isDisabled","isReadOnly","htmlProps","uuid","useId","labelId","feedbackId","helpTextId","_React$useState","React","useState","hasFeedbackText","setHasFeedbackText","_React$useState2","hasHelpText","setHasHelpText","_useBoolean","useBoolean","isFocused","setFocus","getHelpTextProps","useCallback","forwardedRef","mergeRefs","node","getLabelProps","_props$id","_props$htmlFor","dataAttr","htmlFor","getErrorMessageProps","getRootProps","role","getRequiredIndicatorProps","children","onFocus","on","onBlur","off","useFormControlProvider","omitThemingProps","context","className","cx","createElement","value","StylesProvider","chakra","div","__css","__DEV__","displayName","FormHelperText","field","useStyles","helperText","_excluded$1","_excluded2","useFormControlProps","_ref","_ref2","_ref3","disabled","readOnly","required","rest","labelIds","push","join","undefined","callAllHandlers","FormErrorMessage","ownProps","display","alignItems","text","FormErrorIcon","_className","Icon","Icon$1","icon","fill","d","_excluded","FormLabel","passedProps","_field$getLabelProps","useStyleConfig","_props$requiredIndica","requiredIndicator","RequiredIndicator","_props$optionalIndica","optionalIndicator","label","textAlign","span","_useFormControlProps","ariaAttr"],"mappings":"2dAOA,SAASA,IAeP,OAdAA,EAAWC,OAAOC,QAAU,SAAUC,GACpC,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CACzC,IAAIG,EAASF,U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FPc,EAA8BwH,EAAsBxC,GAErC,CACxBM,SAAU9D,EACV+D,SAAU9D,EACV+D,SAAUlE,EACV,eAAgBmG,EAAQA,SAAClG,GACzB,gBAAiBkG,EAAQA,SAACnG,GAC1B,gBAAiBmG,EAAQA,SAAChG,IAE9B"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=require("react"),n=require("./chakra-ui-system.esm-1d513b8a.js");function t(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 r=t(e),u=n.isBrowser?r.useLayoutEffect:r.useEffect;function o(e,n){void 0===n&&(n=[]);var t=r.useRef(e);return u((function(){t.current=e})),r.useCallback((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current.apply(t,n)}),n)}function i(e,t,u,i){var c=o(t);return r.useEffect((function(){var r,o=null!=(r=n.runIfFn(u))?r:document;if(t)return o.addEventListener(e,c,i),function(){o.removeEventListener(e,c,i)}}),[e,u,i,c,t]),function(){var t;(null!=(t=n.runIfFn(u))?t:document).removeEventListener(e,c,i)}}function c(e,n){var t=void 0!==e;return[t,t&&void 0!==e?e:n]}function s(){return s=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},s.apply(this,arguments)}var f={current:1},a=r.createContext(f),l=r.memo((function(e){var n=e.children;return r.createElement(a.Provider,{value:{current:1}},n)})),v=function(e){return e.current++};function d(e,n){var t=r.useContext(a),u=r.useState(t.current),o=u[0],i=u[1];return r.useEffect((function(){i(v(t))}),[t]),r.useMemo((function(){return e||[n,o].filter(Boolean).join("-")}),[e,n,o])}var p=function(e,n){var t=r.useRef(!1);return r.useEffect((function(){if(t.current)return e();t.current=!0}),n),t.current};var m={preventScroll:!0,shouldFocus:!1};function E(e,n){return void 0===n&&(n=[]),r.useEffect((function(){return function(){return e()}}),n)}function w(e,t){var r,u=e.target;if(e.button>0)return!1;if(u&&!n.getOwnerDocument(u).body.contains(u))return!1;return!(null!=(r=t.current)&&r.contains(u))}exports.IdProvider=l,exports.useAnimationState=function(t){var r=t.isOpen,u=t.ref,o=e.useState(r),c=o[0],s=o[1],f=e.useState(!1),a=f[0],l=f[1];return e.useEffect((function(){a||(s(r),l(!0))}),[r,a,c]),i("animationend",(function(){s(r)}),(function(){return u.current})),{present:!(!r&&!c),onComplete:function(){var e,t=new(n.getOwnerWindow(u.current).CustomEvent)("animationend",{bubbles:!0});null==(e=u.current)||e.dispatchEvent(t)}}},exports.useBoolean=function(n){void 0===n&&(n=!1);var t=e.useState(n),r=t[0],u=t[1];return[r,e.useMemo((function(){return{on:function(){return u(!0)},off:function(){return u(!1)},toggle:function(){return u((function(e){return!e}))}}}),[])]},exports.useCallbackRef=o,exports.useConst=function(n){var t=e.useRef(null);return null===t.current&&(t.current="function"==typeof n?n():n),t.current},exports.useControllableProp=c,exports.useControllableState=function(e){var t=e.value,u=e.defaultValue,i=e.onChange,c=e.shouldUpdate,s=void 0===c?function(e,n){return e!==n}:c,f=o(i),a=o(s),l=r.useState(u),v=l[0],d=l[1],p=void 0!==t,m=p?t:v,E=r.useCallback((function(e){var t=n.runIfFn(e,m);a(m,t)&&(p||d(t),f(t))}),[p,f,m,a]);return[m,E]},exports.useDisclosure=function(e){void 0===e&&(e={});var t=e,u=t.onClose,i=t.onOpen,f=t.isOpen,a=t.id,l=o(i),v=o(u),p=r.useState(e.defaultIsOpen||!1),m=p[0],E=p[1],w=c(f,m),b=w[0],g=w[1],x=d(a,"disclosure"),h=r.useCallback((function(){b||E(!1),null==v||v()}),[b,v]),O=r.useCallback((function(){b||E(!0),null==l||l()}),[b,l]),C=r.useCallback((function(){(g?h:O)()}),[g,O,h]);return{isOpen:!!g,onOpen:O,onClose:h,onToggle:C,isControlled:b,getButtonProps:function(e){return void 0===e&&(e={}),s({},e,{"aria-expanded":"true","aria-controls":x,onClick:n.callAllHandlers(e.onClick,C)})},getDisclosureProps:function(e){return void 0===e&&(e={}),s({},e,{hidden:!g,id:x})}}},exports.useEventListener=i,exports.useFocusOnHide=function(e,t){var r=t.shouldFocus,u=t.visible,o=t.focusRef,i=r&&!u;p((function(){if(i&&!function(e){var t=e.current;if(!t)return!1;var r=n.getActiveElement(t);return!!r&&!n.contains(t,r)&&!!n.isTabbable(r)}(e)){var t=(null==o?void 0:o.current)||e.current;t&&n.focus(t,{nextTick:!0})}}),[i,e,o])},exports.useFocusOnPointerDown=function(e){var t,r,u,o,c=e.ref,s=e.elements,f=e.enabled,a=n.detectBrowser("Safari");t=function(){return n.getOwnerDocument(c.current)},r="pointerdown",u=function(e){if(a&&f){var t=e.target,r=(null!=s?s:[c]).some((function(e){var r=n.isRefObject(e)?e.current:e;return n.contains(r,t)}));!n.isActiveElement(t)&&r&&(e.preventDefault(),n.focus(t))}},i(n.getPointerEventName(r),n.wrapPointerEventHandler(u,"pointerdown"===r),t,o)},exports.useFocusOnShow=function(t,r){void 0===r&&(r=m);var u=r,o=u.focusRef,c=u.preventScroll,s=u.shouldFocus,f=u.visible,a=n.isRefObject(t)?t.current:t,l=s&&f,v=e.useCallback((function(){if(a&&l&&!n.contains(a,document.activeElement))if(null!=o&&o.current)n.focus(o.current,{preventScroll:c,nextTick:!0});else{var e=n.getAllFocusable(a);e.length>0&&n.focus(e[0],{preventScroll:c,nextTick:!0})}}),[l,c,a,o]);p((function(){v()}),[v]),i("transitionend",v,a)},exports.useForceUpdate=function(){var e=r.useRef(!1),n=r.useState(0),t=n[0],u=n[1];return E((function(){e.current=!0})),r.useCallback((function(){e.current||u(t+1)}),[t])},exports.useId=d,exports.useIds=function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),u=1;u<n;u++)t[u-1]=arguments[u];var o=d(e);return r.useMemo((function(){return t.map((function(e){return e+"-"+o}))}),[o,t])},exports.useInterval=function(e,n){var t=o(e);r.useEffect((function(){var e=null;return null!==n&&(e=window.setInterval((function(){return t()}),n)),function(){e&&window.clearInterval(e)}}),[n,t])},exports.useLatestRef=function(e){var n=r.useRef(null);return n.current=e,n},exports.useMergeRefs=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return r.useMemo((function(){return n.every((function(e){return null==e}))?null:function(e){n.forEach((function(n){n&&function(e,n){if(null!=e)if("function"!=typeof e)try{e.current=n}catch(t){throw new Error("Cannot assign value '"+n+"' to ref '"+e+"'")}else e(n)}(n,e)}))}}),n)},exports.useOutsideClick=function(t){var r=t.ref,u=t.handler,i=t.enabled,c=void 0===i||i,s=o(u),f=e.useRef({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}).current;e.useEffect((function(){if(c){var e=function(e){w(e,r)&&(f.isPointerDown=!0)},t=function(e){f.ignoreEmulatedMouseEvents?f.ignoreEmulatedMouseEvents=!1:f.isPointerDown&&u&&w(e,r)&&(f.isPointerDown=!1,s(e))},o=function(e){f.ignoreEmulatedMouseEvents=!0,u&&f.isPointerDown&&w(e,r)&&(f.isPointerDown=!1,s(e))},i=n.getOwnerDocument(r.current);return i.addEventListener("mousedown",e,!0),i.addEventListener("mouseup",t,!0),i.addEventListener("touchstart",e,!0),i.addEventListener("touchend",o,!0),function(){i.removeEventListener("mousedown",e,!0),i.removeEventListener("mouseup",t,!0),i.removeEventListener("touchstart",e,!0),i.removeEventListener("touchend",o,!0)}}}),[u,r,s,f,c])},exports.usePrevious=function(n){var t=e.useRef();return e.useEffect((function(){t.current=n}),[n]),t.current},exports.useSafeLayoutEffect=u,exports.useShortcut=function(e){void 0===e&&(e={});var n=e,t=n.timeout,u=void 0===t?300:t,o=n.preventDefault,i=void 0===o?function(){return!0}:o,c=r.useState([]),s=c[0],f=c[1],a=r.useRef(),l=function(){a.current&&(clearTimeout(a.current),a.current=null)};return r.useEffect((function(){return l}),[]),function(e){return function(n){if("Backspace"===n.key){var t=[].concat(s);return t.pop(),void f(t)}if(function(e){var n=e.key;return 1===n.length||n.length>1&&/[^a-zA-Z0-9]/.test(n)}(n)){var r=s.concat(n.key);i(n)&&(n.preventDefault(),n.stopPropagation()),f(r),e(r.join("")),l(),a.current=setTimeout((function(){f([]),a.current=null}),u)}}}},exports.useTimeout=function(e,n){var t=o(e);r.useEffect((function(){if(null!=n){var e;return e=window.setTimeout((function(){t()}),n),function(){e&&window.clearTimeout(e)}}}),[n,t])},exports.useUnmountEffect=E,exports.useUpdateEffect=p;
|
|
2
|
+
//# sourceMappingURL=chakra-ui-hooks.esm-567ac2a0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chakra-ui-hooks.esm-567ac2a0.js","sources":["../node_modules/@chakra-ui/hooks/dist/use-animation-state-5054a9f7.esm.js","../node_modules/@chakra-ui/hooks/dist/chakra-ui-hooks.esm.js"],"sourcesContent":["import { isBrowser, runIfFn, getOwnerWindow } from '@chakra-ui/utils';\nimport * as React from 'react';\nimport { useState, useEffect } from 'react';\n\n/**\n * useSafeLayoutEffect enables us to safely call `useLayoutEffect` on the browser\n * (for SSR reasons)\n *\n * React currently throws a warning when using useLayoutEffect on the server.\n * To get around it, we can conditionally useEffect on the server (no-op) and\n * useLayoutEffect in the browser.\n *\n * @see https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85\n */\n\nvar useSafeLayoutEffect = isBrowser ? React.useLayoutEffect : React.useEffect;\n\n/**\n * React hook to persist any value between renders,\n * but keeps it up-to-date if it changes.\n *\n * @param fn the function to persist\n * @param deps the function dependency list\n */\n\nfunction useCallbackRef(fn, deps) {\n if (deps === void 0) {\n deps = [];\n }\n\n var ref = React.useRef(fn);\n useSafeLayoutEffect(function () {\n ref.current = fn;\n }); // eslint-disable-next-line react-hooks/exhaustive-deps\n\n return React.useCallback(function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return ref.current == null ? void 0 : ref.current.apply(ref, args);\n }, deps);\n}\n\n/**\n * React hook to manage browser event listeners\n *\n * @param event the event name\n * @param handler the event handler function to execute\n * @param env the dom environment to execute against (defaults to `document`)\n * @param options the event listener options\n *\n * @internal\n */\nfunction useEventListener(event, handler, env, options) {\n var listener = useCallbackRef(handler);\n React.useEffect(function () {\n var _runIfFn;\n\n var node = (_runIfFn = runIfFn(env)) != null ? _runIfFn : document;\n\n if (!handler) {\n return;\n }\n\n node.addEventListener(event, listener, options);\n return function () {\n node.removeEventListener(event, listener, options);\n };\n }, [event, env, options, listener, handler]);\n return function () {\n var _runIfFn2;\n\n var node = (_runIfFn2 = runIfFn(env)) != null ? _runIfFn2 : document;\n node.removeEventListener(event, listener, options);\n };\n}\n\nfunction useAnimationState(props) {\n var isOpen = props.isOpen,\n ref = props.ref;\n\n var _useState = useState(isOpen),\n mounted = _useState[0],\n setMounted = _useState[1];\n\n var _useState2 = useState(false),\n once = _useState2[0],\n setOnce = _useState2[1];\n\n useEffect(function () {\n if (!once) {\n setMounted(isOpen);\n setOnce(true);\n }\n }, [isOpen, once, mounted]);\n useEventListener(\"animationend\", function () {\n setMounted(isOpen);\n }, function () {\n return ref.current;\n });\n var hidden = isOpen ? false : !mounted;\n return {\n present: !hidden,\n onComplete: function onComplete() {\n var _ref$current;\n\n var win = getOwnerWindow(ref.current);\n var evt = new win.CustomEvent(\"animationend\", {\n bubbles: true\n });\n (_ref$current = ref.current) == null ? void 0 : _ref$current.dispatchEvent(evt);\n }\n };\n}\n\nexport { useSafeLayoutEffect as a, useEventListener as b, useAnimationState as c, useCallbackRef as u };\n","import * as React from 'react';\nimport React__default, { useState, useMemo, useCallback, useEffect, useRef } from 'react';\nimport { u as useCallbackRef, a as useSafeLayoutEffect, b as useEventListener } from './use-animation-state-5054a9f7.esm.js';\nexport { c as useAnimationState, u as useCallbackRef, b as useEventListener, a as useSafeLayoutEffect } from './use-animation-state-5054a9f7.esm.js';\nimport copy from 'copy-to-clipboard';\nimport { runIfFn, getBox, callAllHandlers, wrapPointerEventHandler, getPointerEventName, hasFocusWithin, focus, getActiveElement, contains, isTabbable, detectBrowser, isRefObject, isActiveElement, getOwnerDocument, getAllFocusable, noop, PanSession } from '@chakra-ui/utils';\n\n/**\n * React hook to manage boolean (on - off) states\n *\n * @param initialState the initial boolean state value\n */\nfunction useBoolean(initialState) {\n if (initialState === void 0) {\n initialState = false;\n }\n\n var _useState = useState(initialState),\n value = _useState[0],\n setValue = _useState[1];\n\n var callbacks = useMemo(function () {\n return {\n on: function on() {\n return setValue(true);\n },\n off: function off() {\n return setValue(false);\n },\n toggle: function toggle() {\n return setValue(function (prev) {\n return !prev;\n });\n }\n };\n }, []);\n return [value, callbacks];\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 = [\"timeout\"];\n\n/**\n * React hook to copy content to clipboard\n *\n * @param text the text or value to copy\n * @param {Number} [optionsOrTimeout=1500] optionsOrTimeout - delay (in ms) to switch back to initial state once copied.\n * @param {Object} optionsOrTimeout\n * @param {string} optionsOrTimeout.format - set the desired MIME type\n * @param {number} optionsOrTimeout.timeout - delay (in ms) to switch back to initial state once copied.\n */\nfunction useClipboard(text, optionsOrTimeout) {\n if (optionsOrTimeout === void 0) {\n optionsOrTimeout = {};\n }\n\n var _useState = useState(false),\n hasCopied = _useState[0],\n setHasCopied = _useState[1];\n\n var _ref = typeof optionsOrTimeout === \"number\" ? {\n timeout: optionsOrTimeout\n } : optionsOrTimeout,\n _ref$timeout = _ref.timeout,\n timeout = _ref$timeout === void 0 ? 1500 : _ref$timeout,\n copyOptions = _objectWithoutPropertiesLoose(_ref, _excluded);\n\n var onCopy = useCallback(function () {\n var didCopy = copy(text, copyOptions);\n setHasCopied(didCopy);\n }, [text, copyOptions]);\n useEffect(function () {\n var timeoutId = null;\n\n if (hasCopied) {\n timeoutId = window.setTimeout(function () {\n setHasCopied(false);\n }, timeout);\n }\n\n return function () {\n if (timeoutId) {\n window.clearTimeout(timeoutId);\n }\n };\n }, [timeout, hasCopied]);\n return {\n value: text,\n onCopy: onCopy,\n hasCopied: hasCopied\n };\n}\n\n/**\n * Creates a constant value over the lifecycle of a component.\n *\n * Even if `useMemo` is provided an empty array as its final argument, it doesn't offer\n * a guarantee that it won't re-run for performance reasons later on. By using `useConst`\n * you can ensure that initializers don't execute twice or more.\n */\nfunction useConst(init) {\n // Use useRef to store the value because it's the least expensive built-in\n // hook that works here. We could also use `useState` but that's more\n // expensive internally due to reducer handling which we don't need.\n var ref = useRef(null);\n\n if (ref.current === null) {\n ref.current = typeof init === \"function\" ? init() : init;\n }\n\n return ref.current;\n}\n\nfunction useControllableProp(prop, state) {\n var isControlled = prop !== undefined;\n var value = isControlled && typeof prop !== \"undefined\" ? prop : state;\n return [isControlled, value];\n}\n\n/**\n * React hook for using controlling component state.\n * @param props\n */\nfunction useControllableState(props) {\n var valueProp = props.value,\n defaultValue = props.defaultValue,\n onChange = props.onChange,\n _props$shouldUpdate = props.shouldUpdate,\n shouldUpdate = _props$shouldUpdate === void 0 ? function (prev, next) {\n return prev !== next;\n } : _props$shouldUpdate;\n var onChangeProp = useCallbackRef(onChange);\n var shouldUpdateProp = useCallbackRef(shouldUpdate);\n\n var _React$useState = React.useState(defaultValue),\n valueState = _React$useState[0],\n setValue = _React$useState[1];\n\n var isControlled = valueProp !== undefined;\n var value = isControlled ? valueProp : valueState;\n var updateValue = React.useCallback(function (next) {\n var nextValue = runIfFn(next, value);\n\n if (!shouldUpdateProp(value, nextValue)) {\n return;\n }\n\n if (!isControlled) {\n setValue(nextValue);\n }\n\n onChangeProp(nextValue);\n }, [isControlled, onChangeProp, value, shouldUpdateProp]);\n return [value, updateValue];\n}\n\n/**\n * React hook to measure a component's dimensions\n *\n * @param ref ref of the component to measure\n * @param observe if `true`, resize and scroll observers will be turned on\n */\n\nfunction useDimensions(ref, observe) {\n var _React$useState = React.useState(null),\n dimensions = _React$useState[0],\n setDimensions = _React$useState[1];\n\n var rafId = React.useRef();\n useSafeLayoutEffect(function () {\n if (!ref.current) return undefined;\n var node = ref.current;\n\n function measure() {\n rafId.current = requestAnimationFrame(function () {\n var boxModel = getBox(node);\n setDimensions(boxModel);\n });\n }\n\n measure();\n\n if (observe) {\n window.addEventListener(\"resize\", measure);\n window.addEventListener(\"scroll\", measure);\n }\n\n return function () {\n if (observe) {\n window.removeEventListener(\"resize\", measure);\n window.removeEventListener(\"scroll\", measure);\n }\n\n if (rafId.current) {\n cancelAnimationFrame(rafId.current);\n }\n };\n }, [observe]);\n return dimensions;\n}\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\n// This implementation is heavily inspired by react-aria's implementation\nvar defaultIdContext = {\n current: 1\n};\nvar IdContext = /*#__PURE__*/React.createContext(defaultIdContext);\nvar IdProvider = /*#__PURE__*/React.memo(function (_ref) {\n var children = _ref.children;\n return /*#__PURE__*/React.createElement(IdContext.Provider, {\n value: {\n current: 1\n }\n }, children);\n});\n\nvar genId = function genId(context) {\n return context.current++;\n};\n\nfunction useId(idProp, prefix) {\n var context = React.useContext(IdContext);\n /*\n We get the current id by context and generate a new id inside useEffect so that the side effects occur during the commit phase,\n Doing this prevents the side effects from being called twice when used with strict mode (render() in function component is the function body), which ends up making the server with the client not synchronized\n */\n\n var _React$useState = React.useState(context.current),\n id = _React$useState[0],\n setId = _React$useState[1];\n\n React.useEffect(function () {\n setId(genId(context));\n }, [context]);\n return React.useMemo(function () {\n return idProp || [prefix, id].filter(Boolean).join(\"-\");\n }, [idProp, prefix, id]);\n}\n/**\n * React hook to generate ids for use in compound components\n *\n * @param idProp the external id passed from the user\n * @param prefixes array of prefixes to use\n *\n * @example\n *\n * ```js\n * const [buttonId, menuId] = useIds(\"52\", \"button\", \"menu\")\n *\n * // buttonId will be `button-52`\n * // menuId will be `menu-52`\n * ```\n */\n\nfunction useIds(idProp) {\n for (var _len = arguments.length, prefixes = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n prefixes[_key - 1] = arguments[_key];\n }\n\n var id = useId(idProp);\n return React.useMemo(function () {\n return prefixes.map(function (prefix) {\n return prefix + \"-\" + id;\n });\n }, [id, prefixes]);\n}\n/**\n * Used to generate an id, and after render, check if that id is rendered, so we know\n * if we can use it in places such as `aria-labelledby`.\n *\n * @param partId - The unique id for the component part\n *\n * @example\n * const { ref, id } = useOptionalPart<HTMLInputElement>(`${id}-label`)\n */\n\nfunction useOptionalPart(partId) {\n var _React$useState2 = React.useState(null),\n id = _React$useState2[0],\n setId = _React$useState2[1];\n\n var ref = React.useCallback(function (node) {\n setId(node ? partId : null);\n }, [partId]);\n return {\n ref: ref,\n id: id,\n isRendered: Boolean(id)\n };\n}\n\nfunction useDisclosure(props) {\n if (props === void 0) {\n props = {};\n }\n\n var _props = props,\n onCloseProp = _props.onClose,\n onOpenProp = _props.onOpen,\n isOpenProp = _props.isOpen,\n idProp = _props.id;\n var onOpenPropCallbackRef = useCallbackRef(onOpenProp);\n var onClosePropCallbackRef = useCallbackRef(onCloseProp);\n\n var _React$useState = React.useState(props.defaultIsOpen || false),\n isOpenState = _React$useState[0],\n setIsOpen = _React$useState[1];\n\n var _useControllableProp = useControllableProp(isOpenProp, isOpenState),\n isControlled = _useControllableProp[0],\n isOpen = _useControllableProp[1];\n\n var id = useId(idProp, \"disclosure\");\n var onClose = React.useCallback(function () {\n if (!isControlled) {\n setIsOpen(false);\n }\n\n onClosePropCallbackRef == null ? void 0 : onClosePropCallbackRef();\n }, [isControlled, onClosePropCallbackRef]);\n var onOpen = React.useCallback(function () {\n if (!isControlled) {\n setIsOpen(true);\n }\n\n onOpenPropCallbackRef == null ? void 0 : onOpenPropCallbackRef();\n }, [isControlled, onOpenPropCallbackRef]);\n var onToggle = React.useCallback(function () {\n var action = isOpen ? onClose : onOpen;\n action();\n }, [isOpen, onOpen, onClose]);\n return {\n isOpen: !!isOpen,\n onOpen: onOpen,\n onClose: onClose,\n onToggle: onToggle,\n isControlled: isControlled,\n getButtonProps: function getButtonProps(props) {\n if (props === void 0) {\n props = {};\n }\n\n return _extends({}, props, {\n \"aria-expanded\": \"true\",\n \"aria-controls\": id,\n onClick: callAllHandlers(props.onClick, onToggle)\n });\n },\n getDisclosureProps: function getDisclosureProps(props) {\n if (props === void 0) {\n props = {};\n }\n\n return _extends({}, props, {\n hidden: !isOpen,\n id: id\n });\n }\n };\n}\n\n/**\n * React hook for performant `useCallbacks`\n *\n * @see https://github.com/facebook/react/issues/14099#issuecomment-440013892\n *\n * @deprecated Use `useCallbackRef` instead. `useEventCallback` will be removed\n * in a future version.\n */\n\nfunction useEventCallback(callback) {\n var ref = React.useRef(callback);\n useSafeLayoutEffect(function () {\n ref.current = callback;\n });\n return React.useCallback(function (event) {\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return ref.current.apply(ref, [event].concat(args));\n }, []);\n}\n\nfunction useEventListenerMap() {\n var listeners = React.useRef(new Map());\n var currentListeners = listeners.current;\n var add = React.useCallback(function (el, type, listener, options) {\n var pointerEventListener = wrapPointerEventHandler(listener, type === \"pointerdown\");\n listeners.current.set(listener, {\n __listener: pointerEventListener,\n type: getPointerEventName(type),\n el: el,\n options: options\n });\n el.addEventListener(type, pointerEventListener, options);\n }, []);\n var remove = React.useCallback(function (el, type, listener, options) {\n var _listeners$current$ge = listeners.current.get(listener),\n pointerEventListener = _listeners$current$ge.__listener;\n\n el.removeEventListener(type, pointerEventListener, options);\n listeners.current[\"delete\"](pointerEventListener);\n }, []);\n React.useEffect(function () {\n return function () {\n currentListeners.forEach(function (value, key) {\n remove(value.el, value.type, key, value.options);\n });\n };\n }, [remove, currentListeners]);\n return {\n add: add,\n remove: remove\n };\n}\n\n/**\n * React effect hook that invokes only on update.\n * It doesn't invoke on mount\n */\n\nvar useUpdateEffect = function useUpdateEffect(effect, deps) {\n var mounted = React.useRef(false);\n React.useEffect(function () {\n if (mounted.current) {\n return effect();\n }\n\n mounted.current = true;\n return undefined; // eslint-disable-next-line react-hooks/exhaustive-deps\n }, deps);\n return mounted.current;\n};\n\n/**\n * React hook to focus an element conditionally\n *\n * @param ref the ref of the element to focus\n * @param options focus management options\n */\nfunction useFocusEffect(ref, options) {\n var shouldFocus = options.shouldFocus,\n preventScroll = options.preventScroll;\n useUpdateEffect(function () {\n var node = ref.current;\n if (!node || !shouldFocus) return;\n\n if (!hasFocusWithin(node)) {\n focus(node, {\n preventScroll: preventScroll,\n nextTick: true\n });\n }\n }, [shouldFocus, ref, preventScroll]);\n}\n\nfunction preventReturnFocus(containerRef) {\n var el = containerRef.current;\n if (!el) return false;\n var activeElement = getActiveElement(el);\n if (!activeElement) return false;\n if (contains(el, activeElement)) return false;\n if (isTabbable(activeElement)) return true;\n return false;\n}\n/**\n * Popover hook to manage the focus when the popover closes or hides.\n *\n * We either want to return focus back to the popover trigger or\n * let focus proceed normally if user moved to another interactive\n * element in the viewport.\n */\n\n\nfunction useFocusOnHide(containerRef, options) {\n var shouldFocusProp = options.shouldFocus,\n visible = options.visible,\n focusRef = options.focusRef;\n var shouldFocus = shouldFocusProp && !visible;\n useUpdateEffect(function () {\n if (!shouldFocus) return;\n\n if (preventReturnFocus(containerRef)) {\n return;\n }\n\n var el = (focusRef == null ? void 0 : focusRef.current) || containerRef.current;\n\n if (el) {\n focus(el, {\n nextTick: true\n });\n }\n }, [shouldFocus, containerRef, focusRef]);\n}\n\n/**\n * Credit goes to `framer-motion` of this useful utilities.\n * License can be found here: https://github.com/framer/motion\n */\n/**\n * @internal\n */\n\nfunction usePointerEvent(env, eventName, handler, options) {\n return useEventListener(getPointerEventName(eventName), wrapPointerEventHandler(handler, eventName === \"pointerdown\"), env, options);\n}\n\n/**\n * Polyfill to get `relatedTarget` working correctly consistently\n * across all browsers.\n *\n * It ensures that elements receives focus on pointer down if\n * it's not the active element.\n *\n * @internal\n */\nfunction useFocusOnPointerDown(props) {\n var ref = props.ref,\n elements = props.elements,\n enabled = props.enabled;\n var isSafari = detectBrowser(\"Safari\");\n\n var doc = function doc() {\n return getOwnerDocument(ref.current);\n };\n\n usePointerEvent(doc, \"pointerdown\", function (event) {\n if (!isSafari || !enabled) return;\n var target = event.target;\n var els = elements != null ? elements : [ref];\n var isValidTarget = els.some(function (elementOrRef) {\n var el = isRefObject(elementOrRef) ? elementOrRef.current : elementOrRef;\n return contains(el, target);\n });\n\n if (!isActiveElement(target) && isValidTarget) {\n event.preventDefault();\n focus(target);\n }\n });\n}\n\nvar defaultOptions = {\n preventScroll: true,\n shouldFocus: false\n};\nfunction useFocusOnShow(target, options) {\n if (options === void 0) {\n options = defaultOptions;\n }\n\n var _options = options,\n focusRef = _options.focusRef,\n preventScroll = _options.preventScroll,\n shouldFocus = _options.shouldFocus,\n visible = _options.visible;\n var element = isRefObject(target) ? target.current : target;\n var autoFocus = shouldFocus && visible;\n var onFocus = useCallback(function () {\n if (!element || !autoFocus) return;\n if (contains(element, document.activeElement)) return;\n\n if (focusRef != null && focusRef.current) {\n focus(focusRef.current, {\n preventScroll: preventScroll,\n nextTick: true\n });\n } else {\n var tabbableEls = getAllFocusable(element);\n\n if (tabbableEls.length > 0) {\n focus(tabbableEls[0], {\n preventScroll: preventScroll,\n nextTick: true\n });\n }\n }\n }, [autoFocus, preventScroll, element, focusRef]);\n useUpdateEffect(function () {\n onFocus();\n }, [onFocus]);\n useEventListener(\"transitionend\", onFocus, element);\n}\n\nfunction useUnmountEffect(fn, deps) {\n if (deps === void 0) {\n deps = [];\n }\n\n return React.useEffect(function () {\n return function () {\n return fn();\n };\n }, // eslint-disable-next-line react-hooks/exhaustive-deps\n deps);\n}\n\nfunction useForceUpdate() {\n var unloadingRef = React.useRef(false);\n\n var _React$useState = React.useState(0),\n count = _React$useState[0],\n setCount = _React$useState[1];\n\n useUnmountEffect(function () {\n unloadingRef.current = true;\n });\n return React.useCallback(function () {\n if (!unloadingRef.current) {\n setCount(count + 1);\n }\n }, [count]);\n}\n\n/**\n * React Hook that provides a declarative `setInterval`\n *\n * @param callback the callback to execute at interval\n * @param delay the `setInterval` delay (in ms)\n */\n\nfunction useInterval(callback, delay) {\n var fn = useCallbackRef(callback);\n React.useEffect(function () {\n var intervalId = null;\n\n var tick = function tick() {\n return fn();\n };\n\n if (delay !== null) {\n intervalId = window.setInterval(tick, delay);\n }\n\n return function () {\n if (intervalId) {\n window.clearInterval(intervalId);\n }\n };\n }, [delay, fn]);\n}\n\n/**\n * React hook to persist any value between renders,\n * but keeps it up-to-date if it changes.\n *\n * @param value the value or function to persist\n */\n\nfunction useLatestRef(value) {\n var ref = React.useRef(null);\n ref.current = value;\n return ref;\n}\n\n/* eslint-disable react-hooks/exhaustive-deps */\nfunction assignRef(ref, value) {\n if (ref == null) return;\n\n if (typeof ref === \"function\") {\n ref(value);\n return;\n }\n\n try {\n // @ts-ignore\n ref.current = value;\n } catch (error) {\n throw new Error(\"Cannot assign value '\" + value + \"' to ref '\" + ref + \"'\");\n }\n}\n/**\n * React hook that merges react refs into a single memoized function\n *\n * @example\n * import React from \"react\";\n * import { useMergeRefs } from `@chakra-ui/hooks`;\n *\n * const Component = React.forwardRef((props, ref) => {\n * const internalRef = React.useRef();\n * return <div {...props} ref={useMergeRefs(internalRef, ref)} />;\n * });\n */\n\nfunction useMergeRefs() {\n for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {\n refs[_key] = arguments[_key];\n }\n\n return React.useMemo(function () {\n if (refs.every(function (ref) {\n return ref == null;\n })) {\n return null;\n }\n\n return function (node) {\n refs.forEach(function (ref) {\n if (ref) assignRef(ref, node);\n });\n };\n }, refs);\n}\n\n/**\n * @deprecated `useMouseDownRef` will be removed in a future version.\n */\n\nfunction useMouseDownRef(shouldListen) {\n if (shouldListen === void 0) {\n shouldListen = true;\n }\n\n var mouseDownRef = React__default.useRef();\n useEventListener(\"mousedown\", function (event) {\n if (shouldListen) {\n mouseDownRef.current = event.target;\n }\n });\n return mouseDownRef;\n}\n\n/**\n * Example, used in components like Dialogs and Popovers, so they can close\n * when a user clicks outside them.\n */\nfunction useOutsideClick(props) {\n var ref = props.ref,\n handler = props.handler,\n _props$enabled = props.enabled,\n enabled = _props$enabled === void 0 ? true : _props$enabled;\n var savedHandler = useCallbackRef(handler);\n var stateRef = useRef({\n isPointerDown: false,\n ignoreEmulatedMouseEvents: false\n });\n var state = stateRef.current;\n useEffect(function () {\n if (!enabled) return;\n\n var onPointerDown = function onPointerDown(e) {\n if (isValidEvent(e, ref)) {\n state.isPointerDown = true;\n }\n };\n\n var onMouseUp = function onMouseUp(event) {\n if (state.ignoreEmulatedMouseEvents) {\n state.ignoreEmulatedMouseEvents = false;\n return;\n }\n\n if (state.isPointerDown && handler && isValidEvent(event, ref)) {\n state.isPointerDown = false;\n savedHandler(event);\n }\n };\n\n var onTouchEnd = function onTouchEnd(event) {\n state.ignoreEmulatedMouseEvents = true;\n\n if (handler && state.isPointerDown && isValidEvent(event, ref)) {\n state.isPointerDown = false;\n savedHandler(event);\n }\n };\n\n var doc = getOwnerDocument(ref.current);\n doc.addEventListener(\"mousedown\", onPointerDown, true);\n doc.addEventListener(\"mouseup\", onMouseUp, true);\n doc.addEventListener(\"touchstart\", onPointerDown, true);\n doc.addEventListener(\"touchend\", onTouchEnd, true);\n return function () {\n doc.removeEventListener(\"mousedown\", onPointerDown, true);\n doc.removeEventListener(\"mouseup\", onMouseUp, true);\n doc.removeEventListener(\"touchstart\", onPointerDown, true);\n doc.removeEventListener(\"touchend\", onTouchEnd, true);\n };\n }, [handler, ref, savedHandler, state, enabled]);\n}\n\nfunction isValidEvent(event, ref) {\n var _ref$current;\n\n var target = event.target;\n if (event.button > 0) return false; // if the event target is no longer in the document\n\n if (target) {\n var doc = getOwnerDocument(target);\n if (!doc.body.contains(target)) return false;\n }\n\n return !((_ref$current = ref.current) != null && _ref$current.contains(target));\n}\n\nfunction usePanGesture(ref, props) {\n var onPan = props.onPan,\n onPanStart = props.onPanStart,\n onPanEnd = props.onPanEnd,\n onPanSessionStart = props.onPanSessionStart,\n onPanSessionEnd = props.onPanSessionEnd,\n threshold = props.threshold;\n var hasPanEvents = Boolean(onPan || onPanStart || onPanEnd || onPanSessionStart || onPanSessionEnd);\n var panSession = useRef(null);\n var handlers = {\n onSessionStart: onPanSessionStart,\n onSessionEnd: onPanSessionEnd,\n onStart: onPanStart,\n onMove: onPan,\n onEnd: function onEnd(event, info) {\n panSession.current = null;\n onPanEnd == null ? void 0 : onPanEnd(event, info);\n }\n };\n useEffect(function () {\n var _panSession$current;\n\n (_panSession$current = panSession.current) == null ? void 0 : _panSession$current.updateHandlers(handlers);\n });\n\n function onPointerDown(event) {\n panSession.current = new PanSession(event, handlers, threshold);\n }\n\n usePointerEvent(function () {\n return ref.current;\n }, \"pointerdown\", hasPanEvents ? onPointerDown : noop);\n useUnmountEffect(function () {\n var _panSession$current2;\n\n (_panSession$current2 = panSession.current) == null ? void 0 : _panSession$current2.end();\n panSession.current = null;\n });\n}\n\nfunction usePrevious(value) {\n var ref = useRef();\n useEffect(function () {\n ref.current = value;\n }, [value]);\n return ref.current;\n}\n\n/**\n * Checks if the key pressed is a printable character\n * and can be used for shortcut navigation\n */\n\nfunction isPrintableCharacter(event) {\n var key = event.key;\n return key.length === 1 || key.length > 1 && /[^a-zA-Z0-9]/.test(key);\n}\n\n/**\n * React hook that provides an enhanced keydown handler,\n * that's used for key navigation within menus, select dropdowns.\n */\nfunction useShortcut(props) {\n if (props === void 0) {\n props = {};\n }\n\n var _props = props,\n _props$timeout = _props.timeout,\n timeout = _props$timeout === void 0 ? 300 : _props$timeout,\n _props$preventDefault = _props.preventDefault,\n preventDefault = _props$preventDefault === void 0 ? function () {\n return true;\n } : _props$preventDefault;\n\n var _React$useState = React.useState([]),\n keys = _React$useState[0],\n setKeys = _React$useState[1];\n\n var timeoutRef = React.useRef();\n\n var flush = function flush() {\n if (timeoutRef.current) {\n clearTimeout(timeoutRef.current);\n timeoutRef.current = null;\n }\n };\n\n var clearKeysAfterDelay = function clearKeysAfterDelay() {\n flush();\n timeoutRef.current = setTimeout(function () {\n setKeys([]);\n timeoutRef.current = null;\n }, timeout);\n };\n\n React.useEffect(function () {\n return flush;\n }, []);\n\n function onKeyDown(fn) {\n return function (event) {\n if (event.key === \"Backspace\") {\n var keysCopy = [].concat(keys);\n keysCopy.pop();\n setKeys(keysCopy);\n return;\n }\n\n if (isPrintableCharacter(event)) {\n var _keysCopy = keys.concat(event.key);\n\n if (preventDefault(event)) {\n event.preventDefault();\n event.stopPropagation();\n }\n\n setKeys(_keysCopy);\n fn(_keysCopy.join(\"\"));\n clearKeysAfterDelay();\n }\n };\n }\n\n return onKeyDown;\n}\n\n/**\n * React hook that provides a declarative `setTimeout`\n *\n * @param callback the callback to run after specified delay\n * @param delay the delay (in ms)\n */\n\nfunction useTimeout(callback, delay) {\n var fn = useCallbackRef(callback);\n React.useEffect(function () {\n if (delay == null) return undefined;\n var timeoutId = null;\n timeoutId = window.setTimeout(function () {\n fn();\n }, delay);\n return function () {\n if (timeoutId) {\n window.clearTimeout(timeoutId);\n }\n };\n }, [delay, fn]);\n}\n\nfunction useWhyDidYouUpdate(name, props) {\n var previousProps = React.useRef();\n React.useEffect(function () {\n if (previousProps.current) {\n var allKeys = Object.keys(_extends({}, previousProps.current, props));\n var changesObj = {};\n allKeys.forEach(function (key) {\n if (previousProps.current[key] !== props[key]) {\n changesObj[key] = {\n from: previousProps.current[key],\n to: props[key]\n };\n }\n });\n\n if (Object.keys(changesObj).length) {\n console.log(\"[why-did-you-update]\", name, changesObj);\n }\n }\n\n previousProps.current = props;\n });\n}\n\nexport { IdProvider, assignRef, useBoolean, useClipboard, useConst, useControllableProp, useControllableState, useDimensions, useDisclosure, useEventCallback, useEventListenerMap, useFocusEffect, useFocusOnHide, useFocusOnPointerDown, useFocusOnShow, useForceUpdate, useId, useIds, useInterval, useLatestRef, useMergeRefs, useMouseDownRef, useOptionalPart, useOutsideClick, usePanGesture, usePointerEvent, usePrevious, useShortcut, useTimeout, useUnmountEffect, useUpdateEffect, useWhyDidYouUpdate };\n"],"names":["useSafeLayoutEffect","isBrowser","React","useLayoutEffect","useEffect","useCallbackRef","fn","deps","ref","useRef","current","useCallback","_len","arguments","length","args","Array","_key","apply","useEventListener","event","handler","env","options","listener","_runIfFn","node","runIfFn","document","addEventListener","removeEventListener","_runIfFn2","useControllableProp","prop","state","isControlled","undefined","_extends","Object","assign","target","i","source","key","prototype","hasOwnProperty","call","this","defaultIdContext","IdContext","createContext","IdProvider","memo","_ref","children","createElement","Provider","value","genId","context","useId","idProp","prefix","useContext","_React$useState","useState","id","setId","useMemo","filter","Boolean","join","useUpdateEffect","effect","mounted","defaultOptions","preventScroll","shouldFocus","useUnmountEffect","isValidEvent","_ref$current","button","getOwnerDocument","body","contains","props","isOpen","_useState","setMounted","_useState2","once","setOnce","present","onComplete","evt","getOwnerWindow","CustomEvent","bubbles","dispatchEvent","initialState","setValue","on","off","toggle","prev","init","valueProp","defaultValue","onChange","_props$shouldUpdate","shouldUpdate","next","onChangeProp","shouldUpdateProp","valueState","updateValue","nextValue","_props","onCloseProp","onClose","onOpenProp","onOpen","isOpenProp","onOpenPropCallbackRef","onClosePropCallbackRef","defaultIsOpen","isOpenState","setIsOpen","_useControllableProp","onToggle","getButtonProps","onClick","callAllHandlers","getDisclosureProps","hidden","containerRef","shouldFocusProp","visible","focusRef","el","activeElement","getActiveElement","isTabbable","preventReturnFocus","focus","nextTick","eventName","elements","enabled","isSafari","detectBrowser","isValidTarget","some","elementOrRef","isRefObject","isActiveElement","preventDefault","getPointerEventName","wrapPointerEventHandler","_options","element","autoFocus","onFocus","tabbableEls","getAllFocusable","unloadingRef","count","setCount","prefixes","map","callback","delay","intervalId","window","setInterval","clearInterval","refs","every","forEach","error","Error","assignRef","_props$enabled","savedHandler","isPointerDown","ignoreEmulatedMouseEvents","onPointerDown","e","onMouseUp","onTouchEnd","doc","_props$timeout","timeout","_props$preventDefault","keys","setKeys","timeoutRef","flush","clearTimeout","keysCopy","concat","pop","test","isPrintableCharacter","_keysCopy","stopPropagation","setTimeout","timeoutId"],"mappings":"8XAeIA,EAAsBC,EAAAA,UAAYC,EAAMC,gBAAkBD,EAAME,UAUpE,SAASC,EAAeC,EAAIC,QACb,IAATA,IACFA,EAAO,IAGT,IAAIC,EAAMN,EAAMO,OAAOH,GAKvB,OAJAN,GAAoB,WAClBQ,EAAIE,QAAUJ,CAClB,IAESJ,EAAMS,aAAY,WACvB,IAAK,IAAIC,EAAOC,UAAUC,OAAQC,EAAO,IAAIC,MAAMJ,GAAOK,EAAO,EAAGA,EAAOL,EAAMK,IAC/EF,EAAKE,GAAQJ,UAAUI,GAGzB,OAAsB,MAAfT,EAAIE,aAAkB,EAASF,EAAIE,QAAQQ,MAAMV,EAAKO,EAC9D,GAAER,EACL,CAYA,SAASY,EAAiBC,EAAOC,EAASC,EAAKC,GAC7C,IAAIC,EAAWnB,EAAegB,GAe9B,OAdAnB,EAAME,WAAU,WACd,IAAIqB,EAEAC,EAAoC,OAA5BD,EAAWE,EAAOA,QAACL,IAAgBG,EAAWG,SAE1D,GAAKP,EAKL,OADAK,EAAKG,iBAAiBT,EAAOI,EAAUD,GAChC,WACLG,EAAKI,oBAAoBV,EAAOI,EAAUD,EAChD,CACA,GAAK,CAACH,EAAOE,EAAKC,EAASC,EAAUH,IAC5B,WACL,IAAIU,GAEqC,OAA7BA,EAAYJ,EAAOA,QAACL,IAAgBS,EAAYH,UACvDE,oBAAoBV,EAAOI,EAAUD,EAC9C,CACA,CCmDA,SAASS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EAAexI,KACjBA,EAAMwI,iBACNxI,EAAMyL,mBAGRV,EAAQS,GACRtM,EAAGsM,EAAUrI,KAAK,KA7BtB8H,IACAD,EAAW1L,QAAUoM,YAAW,WAC9BX,EAAQ,IACRC,EAAW1L,QAAU,IACtB,GAAEsL,EA2BA,CACP,CACG,CAGH,qBASA,SAAoBtB,EAAUC,GAC5B,IAAIrK,EAAKD,EAAeqK,GACxBxK,EAAME,WAAU,WACd,GAAa,MAATuK,EAAJ,CACA,IAAIoC,EAIJ,OAHAA,EAAYlC,OAAOiC,YAAW,WAC5BxM,GACD,GAAEqK,GACI,WACDoC,GACFlC,OAAOyB,aAAaS,EAE5B,CATuC,CAUvC,GAAK,CAACpC,EAAOrK,GACb"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=require("./chakra-ui-system.esm-1d513b8a.js");function r(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var t=r(require("react"));function n(){return n=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},n.apply(this,arguments)}var a=["as","viewBox","color","focusable","children","className","__css"],c={path:t.createElement("g",{stroke:"currentColor",strokeWidth:"1.5"},t.createElement("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),t.createElement("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),t.createElement("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})),viewBox:"0 0 24 24"},o=e.forwardRef((function(r,o){var l=r.as,i=r.viewBox,s=r.color,u=void 0===s?"currentColor":s,f=r.focusable,v=void 0!==f&&f,d=r.children,h=r.className,p=r.__css,m=function(e,r){if(null==e)return{};var t,n,a={},c=Object.keys(e);for(n=0;n<c.length;n++)t=c[n],r.indexOf(t)>=0||(a[t]=e[t]);return a}(r,a),b={ref:o,focusable:v,className:e.cx("chakra-icon",h),__css:n({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:u},p)},k=null!=i?i:c.viewBox;if(l&&"string"!=typeof l)return t.createElement(e.chakra.svg,n({as:l},b,m));var g=null!=d?d:c.path;return t.createElement(e.chakra.svg,n({verticalAlign:"middle",viewBox:k},b,m),g)}));e.__DEV__&&(o.displayName="Icon");var l=o;exports.Icon=o,exports.Icon$1=l;
|
|
2
|
+
//# sourceMappingURL=chakra-ui-icon.esm-ce4e59f0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chakra-ui-icon.esm-ce4e59f0.js","sources":["../node_modules/@chakra-ui/icon/dist/chakra-ui-icon.esm.js"],"sourcesContent":["import { forwardRef, chakra } from '@chakra-ui/system';\nimport { cx, __DEV__ } from '@chakra-ui/utils';\nimport * as React from 'react';\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 = [\"as\", \"viewBox\", \"color\", \"focusable\", \"children\", \"className\", \"__css\"];\nvar fallbackIcon = {\n path: /*#__PURE__*/React.createElement(\"g\", {\n stroke: \"currentColor\",\n strokeWidth: \"1.5\"\n }, /*#__PURE__*/React.createElement(\"path\", {\n strokeLinecap: \"round\",\n fill: \"none\",\n d: \"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25\"\n }), /*#__PURE__*/React.createElement(\"path\", {\n fill: \"currentColor\",\n strokeLinecap: \"round\",\n d: \"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0\"\n }), /*#__PURE__*/React.createElement(\"circle\", {\n fill: \"none\",\n strokeMiterlimit: \"10\",\n cx: \"12\",\n cy: \"12\",\n r: \"11.25\"\n })),\n viewBox: \"0 0 24 24\"\n};\nvar Icon = /*#__PURE__*/forwardRef(function (props, ref) {\n var element = props.as,\n viewBox = props.viewBox,\n _props$color = props.color,\n color = _props$color === void 0 ? \"currentColor\" : _props$color,\n _props$focusable = props.focusable,\n focusable = _props$focusable === void 0 ? false : _props$focusable,\n children = props.children,\n className = props.className,\n __css = props.__css,\n rest = _objectWithoutPropertiesLoose(props, _excluded);\n\n var _className = cx(\"chakra-icon\", className);\n\n var styles = _extends({\n w: \"1em\",\n h: \"1em\",\n display: \"inline-block\",\n lineHeight: \"1em\",\n flexShrink: 0,\n color: color\n }, __css);\n\n var shared = {\n ref: ref,\n focusable: focusable,\n className: _className,\n __css: styles\n };\n\n var _viewBox = viewBox != null ? viewBox : fallbackIcon.viewBox;\n /**\n * If you're using an icon library like `react-icons`.\n * Note: anyone passing the `as` prop, should manage the `viewBox` from the external component\n */\n\n\n if (element && typeof element !== \"string\") {\n return /*#__PURE__*/React.createElement(chakra.svg, _extends({\n as: element\n }, shared, rest));\n }\n\n var _path = children != null ? children : fallbackIcon.path;\n\n return /*#__PURE__*/React.createElement(chakra.svg, _extends({\n verticalAlign: \"middle\",\n viewBox: _viewBox\n }, shared, rest), _path);\n});\n\nif (__DEV__) {\n Icon.displayName = \"Icon\";\n}\n\nvar Icon$1 = Icon;\n\nfunction createIcon(options) {\n var _options$viewBox = options.viewBox,\n viewBox = _options$viewBox === void 0 ? \"0 0 24 24\" : _options$viewBox,\n pathDefinition = options.d,\n displayName = options.displayName,\n _options$defaultProps = options.defaultProps,\n defaultProps = _options$defaultProps === void 0 ? {} : _options$defaultProps;\n var path = React.Children.toArray(options.path);\n var Comp = /*#__PURE__*/forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(Icon, _extends({\n ref: ref,\n viewBox: viewBox\n }, defaultProps, props), path.length ? path : /*#__PURE__*/React.createElement(\"path\", {\n fill: \"currentColor\",\n d: pathDefinition\n }));\n });\n\n if (__DEV__) {\n Comp.displayName = displayName;\n }\n\n return Comp;\n}\n\nexport { Icon, createIcon, Icon$1 as default };\n"],"names":["_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","_excluded","fallbackIcon","path","React","createElement","stroke","strokeWidth","strokeLinecap","fill","d","strokeMiterlimit","cx","cy","r","viewBox","Icon","forwardRef","props","ref","element","as","_props$color","color","_props$focusable","focusable","children","className","__css","rest","excluded","sourceKeys","keys","indexOf","_objectWithoutPropertiesLoose","shared","w","h","display","lineHeight","flexShrink","_viewBox","chakra","svg","_path","verticalAlign","__DEV__","displayName","Icon$1"],"mappings":"0XAIA,SAASA,IAeP,OAdAA,EAAWC,OAAOC,QAAU,SAAUC,GACpC,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CACzC,IAAIG,EAASF,UAAUD,GAEvB,IAAK,IAAII,KAAOD,EACVN,OAAOQ,UAAUC,eAAeC,KAAKJ,EAAQC,KAC/CL,EAAOK,GAAOD,EAAOC,GAG1B,CAED,OAAOL,CACX,EAESH,EAASY,MAAMC,KAAMR,UAC9B,CAiBA,IAAIS,EAAY,CAAC,KAAM,UAAW,QAAS,YAAa,WAAY,YAAa,SAC7EC,EAAe,CACjBC,KAAmBC,EAAMC,cAAc,IAAK,CAC1CC,OAAQ,eACRC,YAAa,OACCH,EAAMC,cAAc,OAAQ,CAC1CG,cAAe,QACfC,KAAM,OACNC,EAAG,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AS0B,GACRN,EAAQN,GAAOe,EACpB,IAEIE,YACF9B,EAAK+B,YAAc,QAGlB,IAACC,EAAShC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=require("./chakra-ui-form-control.esm-0cef8b57.js"),t=require("./chakra-ui-system.esm-1d513b8a.js");function n(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 r=n(require("react"));function a(){return a=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},a.apply(this,arguments)}function i(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}var l=["htmlSize"],u=t.forwardRef((function(n,u){var s=n.htmlSize,d=i(n,l),o=t.useMultiStyleConfig("Input",d),c=t.omitThemingProps(d),p=e.useFormControl(c),f=t.cx("chakra-input",n.className);return r.createElement(t.chakra.input,a({size:s},p,{__css:o.field,ref:u,className:f}))}));t.__DEV__&&(u.displayName="Input"),u.id="Input";var s=["placement"],d={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},o=t.chakra("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),c=t.forwardRef((function(e,n){var l,u=e.placement,c=void 0===u?"left":u,p=i(e,s),f=null!=(l=d[c])?l:{},m=t.useStyles();return r.createElement(o,a({ref:n},p,{__css:a({},m.addon,f)}))}));t.__DEV__&&(c.displayName="InputAddon");var p=t.forwardRef((function(e,n){return r.createElement(c,a({ref:n,placement:"left"},e,{className:t.cx("chakra-input__left-addon",e.className)}))}));t.__DEV__&&(p.displayName="InputLeftAddon"),p.id="InputLeftAddon";var f=t.forwardRef((function(e,n){return r.createElement(c,a({ref:n,placement:"right"},e,{className:t.cx("chakra-input__right-addon",e.className)}))}));t.__DEV__&&(f.displayName="InputRightAddon"),f.id="InputRightAddon";var m=["children","className"],h=t.forwardRef((function(e,n){var l=t.useMultiStyleConfig("Input",e),u=t.omitThemingProps(e),s=u.children,d=u.className,o=i(u,m),c=t.cx("chakra-input__group",d),p={},f=t.getValidChildren(s),h=l.field;f.forEach((function(e){if(l){var t,n;if(h&&"InputLeftElement"===e.type.id)p.paddingStart=null!=(t=h.height)?t:h.h;if(h&&"InputRightElement"===e.type.id)p.paddingEnd=null!=(n=h.height)?n:h.h;"InputRightAddon"===e.type.id&&(p.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(p.borderStartRadius=0)}}));var _=f.map((function(n){var a,i,l=t.filterUndefined({size:(null==(a=n.props)?void 0:a.size)||e.size,variant:(null==(i=n.props)?void 0:i.variant)||e.variant});return"Input"!==n.type.id?r.cloneElement(n,l):r.cloneElement(n,Object.assign(l,p,n.props))}));return r.createElement(t.chakra.div,a({className:c,ref:n,__css:{width:"100%",display:"flex",position:"relative"}},o),r.createElement(t.StylesProvider,{value:l},_))}));t.__DEV__&&(h.displayName="InputGroup");var _=["placement"],v=["className"],E=["className"],g=t.chakra("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),y=t.forwardRef((function(e,n){var l,u,s,d=e.placement,o=void 0===d?"left":d,c=i(e,_),p=t.useStyles(),f=p.field,m=a(((s={})["left"===o?"insetStart":"insetEnd"]="0",s.width=null!=(l=null==f?void 0:f.height)?l:null==f?void 0:f.h,s.height=null!=(u=null==f?void 0:f.height)?u:null==f?void 0:f.h,s.fontSize=null==f?void 0:f.fontSize,s),p.element);return r.createElement(g,a({ref:n,__css:m},c))}));y.id="InputElement",t.__DEV__&&(y.displayName="InputElement");var I=t.forwardRef((function(e,n){var l=e.className,u=i(e,v),s=t.cx("chakra-input__left-element",l);return r.createElement(y,a({ref:n,placement:"left",className:s},u))}));I.id="InputLeftElement",t.__DEV__&&(I.displayName="InputLeftElement");var N=t.forwardRef((function(e,n){var l=e.className,u=i(e,E),s=t.cx("chakra-input__right-element",l);return r.createElement(y,a({ref:n,placement:"right",className:s},u))}));N.id="InputRightElement",t.__DEV__&&(N.displayName="InputRightElement"),exports.Input=u,exports.InputGroup=h,exports.InputLeftAddon=p,exports.InputLeftElement=I,exports.InputRightElement=N;
|
|
2
|
+
//# sourceMappingURL=chakra-ui-input.esm-ed97ec15.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chakra-ui-input.esm-ed97ec15.js","sources":["../node_modules/@chakra-ui/input/dist/chakra-ui-input.esm.js"],"sourcesContent":["import { useFormControl } from '@chakra-ui/form-control';\nimport { forwardRef, useMultiStyleConfig, omitThemingProps, chakra, useStyles, StylesProvider } from '@chakra-ui/system';\nimport { cx, __DEV__, filterUndefined } from '@chakra-ui/utils';\nimport * as React from 'react';\nimport { 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$3 = [\"htmlSize\"];\n\n/**\n * Input\n *\n * Element that allows users enter single valued data.\n */\nvar Input = /*#__PURE__*/forwardRef(function (props, ref) {\n var htmlSize = props.htmlSize,\n rest = _objectWithoutPropertiesLoose(props, _excluded$3);\n\n var styles = useMultiStyleConfig(\"Input\", rest);\n var ownProps = omitThemingProps(rest);\n var input = useFormControl(ownProps);\n\n var _className = cx(\"chakra-input\", props.className);\n\n return /*#__PURE__*/React.createElement(chakra.input, _extends({\n size: htmlSize\n }, input, {\n __css: styles.field,\n ref: ref,\n className: _className\n }));\n});\n\nif (__DEV__) {\n Input.displayName = \"Input\";\n} // This is used in `input-group.tsx`\n\n\nInput.id = \"Input\";\n\nvar _excluded$2 = [\"placement\"];\nvar placements = {\n left: {\n marginEnd: \"-1px\",\n borderEndRadius: 0,\n borderEndColor: \"transparent\"\n },\n right: {\n marginStart: \"-1px\",\n borderStartRadius: 0,\n borderStartColor: \"transparent\"\n }\n};\nvar StyledAddon = chakra(\"div\", {\n baseStyle: {\n flex: \"0 0 auto\",\n width: \"auto\",\n display: \"flex\",\n alignItems: \"center\",\n whiteSpace: \"nowrap\"\n }\n});\n\n/**\n * InputAddon\n *\n * Element to append or prepend to an input\n */\nvar InputAddon = /*#__PURE__*/forwardRef(function (props, ref) {\n var _placements$placement;\n\n var _props$placement = props.placement,\n placement = _props$placement === void 0 ? \"left\" : _props$placement,\n rest = _objectWithoutPropertiesLoose(props, _excluded$2);\n\n var placementStyles = (_placements$placement = placements[placement]) != null ? _placements$placement : {};\n var styles = useStyles();\n return /*#__PURE__*/React.createElement(StyledAddon, _extends({\n ref: ref\n }, rest, {\n __css: _extends({}, styles.addon, placementStyles)\n }));\n});\n\nif (__DEV__) {\n InputAddon.displayName = \"InputAddon\";\n}\n/**\n * InputLeftAddon\n *\n * Element to append to the left of an input\n */\n\n\nvar InputLeftAddon = /*#__PURE__*/forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(InputAddon, _extends({\n ref: ref,\n placement: \"left\"\n }, props, {\n className: cx(\"chakra-input__left-addon\", props.className)\n }));\n});\n\nif (__DEV__) {\n InputLeftAddon.displayName = \"InputLeftAddon\";\n} // This is used in `input-group.tsx`\n\n\nInputLeftAddon.id = \"InputLeftAddon\";\n/**\n * InputRightAddon\n *\n * Element to append to the right of an input\n */\n\nvar InputRightAddon = /*#__PURE__*/forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(InputAddon, _extends({\n ref: ref,\n placement: \"right\"\n }, props, {\n className: cx(\"chakra-input__right-addon\", props.className)\n }));\n});\n\nif (__DEV__) {\n InputRightAddon.displayName = \"InputRightAddon\";\n} // This is used in `input-group.tsx`\n\n\nInputRightAddon.id = \"InputRightAddon\";\n\nvar _excluded$1 = [\"children\", \"className\"];\nvar InputGroup = /*#__PURE__*/forwardRef(function (props, ref) {\n var styles = useMultiStyleConfig(\"Input\", props);\n\n var _omitThemingProps = omitThemingProps(props),\n children = _omitThemingProps.children,\n className = _omitThemingProps.className,\n rest = _objectWithoutPropertiesLoose(_omitThemingProps, _excluded$1);\n\n var _className = cx(\"chakra-input__group\", className);\n\n var groupStyles = {};\n var validChildren = getValidChildren(children);\n var input = styles.field;\n validChildren.forEach(function (child) {\n if (!styles) return;\n\n if (input && child.type.id === \"InputLeftElement\") {\n var _input$height;\n\n groupStyles.paddingStart = (_input$height = input.height) != null ? _input$height : input.h;\n }\n\n if (input && child.type.id === \"InputRightElement\") {\n var _input$height2;\n\n groupStyles.paddingEnd = (_input$height2 = input.height) != null ? _input$height2 : input.h;\n }\n\n if (child.type.id === \"InputRightAddon\") {\n groupStyles.borderEndRadius = 0;\n }\n\n if (child.type.id === \"InputLeftAddon\") {\n groupStyles.borderStartRadius = 0;\n }\n });\n var clones = validChildren.map(function (child) {\n var _child$props, _child$props2;\n\n /**\n * Make it possible to override the size and variant from `Input`\n */\n var theming = filterUndefined({\n size: ((_child$props = child.props) == null ? void 0 : _child$props.size) || props.size,\n variant: ((_child$props2 = child.props) == null ? void 0 : _child$props2.variant) || props.variant\n });\n return child.type.id !== \"Input\" ? /*#__PURE__*/React.cloneElement(child, theming) : /*#__PURE__*/React.cloneElement(child, Object.assign(theming, groupStyles, child.props));\n });\n return /*#__PURE__*/React.createElement(chakra.div, _extends({\n className: _className,\n ref: ref,\n __css: {\n width: \"100%\",\n display: \"flex\",\n position: \"relative\"\n }\n }, rest), /*#__PURE__*/React.createElement(StylesProvider, {\n value: styles\n }, clones));\n});\n\nif (__DEV__) {\n InputGroup.displayName = \"InputGroup\";\n}\n\nvar _excluded = [\"placement\"],\n _excluded2 = [\"className\"],\n _excluded3 = [\"className\"];\nvar StyledElement = chakra(\"div\", {\n baseStyle: {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n position: \"absolute\",\n top: \"0\",\n zIndex: 2\n }\n});\nvar InputElement = /*#__PURE__*/forwardRef(function (props, ref) {\n var _input$height, _input$height2, _extends2;\n\n var _props$placement = props.placement,\n placement = _props$placement === void 0 ? \"left\" : _props$placement,\n rest = _objectWithoutPropertiesLoose(props, _excluded);\n\n var styles = useStyles();\n var input = styles.field;\n var attr = placement === \"left\" ? \"insetStart\" : \"insetEnd\";\n\n var elementStyles = _extends((_extends2 = {}, _extends2[attr] = \"0\", _extends2.width = (_input$height = input == null ? void 0 : input.height) != null ? _input$height : input == null ? void 0 : input.h, _extends2.height = (_input$height2 = input == null ? void 0 : input.height) != null ? _input$height2 : input == null ? void 0 : input.h, _extends2.fontSize = input == null ? void 0 : input.fontSize, _extends2), styles.element);\n\n return /*#__PURE__*/React.createElement(StyledElement, _extends({\n ref: ref,\n __css: elementStyles\n }, rest));\n}); // This is used in `input-group.tsx`\n\nInputElement.id = \"InputElement\";\n\nif (__DEV__) {\n InputElement.displayName = \"InputElement\";\n}\n\nvar InputLeftElement = /*#__PURE__*/forwardRef(function (props, ref) {\n var className = props.className,\n rest = _objectWithoutPropertiesLoose(props, _excluded2);\n\n var _className = cx(\"chakra-input__left-element\", className);\n\n return /*#__PURE__*/React.createElement(InputElement, _extends({\n ref: ref,\n placement: \"left\",\n className: _className\n }, rest));\n}); // This is used in `input-group.tsx`\n\nInputLeftElement.id = \"InputLeftElement\";\n\nif (__DEV__) {\n InputLeftElement.displayName = \"InputLeftElement\";\n}\n\nvar InputRightElement = /*#__PURE__*/forwardRef(function (props, ref) {\n var className = props.className,\n rest = _objectWithoutPropertiesLoose(props, _excluded3);\n\n var _className = cx(\"chakra-input__right-element\", className);\n\n return /*#__PURE__*/React.createElement(InputElement, _extends({\n ref: ref,\n placement: \"right\",\n className: _className\n }, rest));\n}); // This is used in `input-group.tsx`\n\nInputRightElement.id = \"InputRightElement\";\n\nif (__DEV__) {\n InputRightElement.displayName = \"InputRightElement\";\n}\n\nexport { Input, InputAddon, InputGroup, InputLeftAddon, InputLeftElement, InputRightAddon, InputRightElement };\n"],"names":["_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","_objectWithoutPropertiesLoose","excluded","sourceKeys","keys","indexOf","_excluded$3","Input","forwardRef","props","ref","htmlSize","rest","styles","useMultiStyleConfig","ownProps","omitThemingProps","input","useFormControl","_className","cx","className","React","createElement","chakra","size","__css","field","__DEV__","displayName","id","_excluded$2","placements","left","marginEnd","borderEndRadius","borderEndColor","right","marginStart","borderStartRadius","borderStartColor","StyledAddon","baseStyle","flex","width","display","alignItems","whiteSpace","InputAddon","_placements$placement","_props$placement","placement","placementStyles","useStyles","addon","InputLeftAddon","InputRightAddon","_excluded$1","InputGroup","_omitThemingProps","children","groupStyles","validChildren","getValidChildren","forEach","child","_input$height","_input$height2","type","paddingStart","height","h","paddingEnd","clones","map","_child$props","_child$props2","theming","filterUndefined","variant","cloneElement","div","position","StylesProvider","value","_excluded","_excluded2","_excluded3","StyledElement","justifyContent","top","zIndex","InputElement","_extends2","elementStyles","fontSize","element","InputLeftElement","InputRightElement"],"mappings":"gbAMA,SAASA,IAeP,OAdAA,EAAWC,OAAOC,QAAU,SAAUC,GACpC,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CACzC,IAAIG,EAASF,UAAUD,GAEvB,IAAK,IAAII,KAAOD,EACVN,OAAOQ,UAAUC,eAAeC,KAAKJ,EAAQC,KAC/CL,EA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BrE,YAAc"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var e=require("./chakra-ui-system.esm-1d513b8a.js"),r=require("react"),a=require("./chakra-ui-icon.esm-ce4e59f0.js");function t(e){if(e&&e.__esModule)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(a){if("default"!==a){var t=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(r,a,t.get?t:{enumerable:!0,get:function(){return e[a]}})}})),r.default=e,Object.freeze(r)}var n=t(r);function i(){return i=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var a=arguments[r];for(var t in a)Object.prototype.hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},i.apply(this,arguments)}function o(e,r){if(null==e)return{};var a,t,n={},i=Object.keys(e);for(t=0;t<i.length;t++)a=i[t],r.indexOf(a)>=0||(n[a]=e[a]);return n}var s=["ratio","children","className"],c=e.forwardRef((function(r,a){var t=r.ratio,c=void 0===t?4/3:t,l=r.children,d=r.className,m=o(r,s),p=n.Children.only(l),f=e.cx("chakra-aspect-ratio",d);return n.createElement(e.chakra.div,i({ref:a,position:"relative",className:f,_before:{height:0,content:'""',display:"block",paddingBottom:e.mapResponsive(c,(function(e){return 1/e*100+"%"}))},__css:{"& > *:not(style)":{overflow:"hidden",position:"absolute",top:"0",right:"0",bottom:"0",left:"0",display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%"},"& > img, & > video":{objectFit:"cover"}}},m),p)}));e.__DEV__&&(c.displayName="AspectRatio");var l=["className"],d=e.forwardRef((function(r,a){var t=e.useStyleConfig("Badge",r),s=e.omitThemingProps(r);s.className;var c=o(s,l);return n.createElement(e.chakra.span,i({ref:a,className:e.cx("chakra-badge",r.className)},c,{__css:i({display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle"},t)}))}));e.__DEV__&&(d.displayName="Badge");var m=["size","centerContent"],p=["size"],f=e.chakra("div");e.__DEV__&&(f.displayName="Box");var u=e.forwardRef((function(e,r){var a=e.size,t=e.centerContent,s=void 0===t||t,c=o(e,m),l=s?{display:"flex",alignItems:"center",justifyContent:"center"}:{};return n.createElement(f,i({ref:r,boxSize:a,__css:i({},l,{flexShrink:0,flexGrow:0})},c))}));e.__DEV__&&(u.displayName="Square");var _=e.forwardRef((function(e,r){var a=e.size,t=o(e,p);return n.createElement(u,i({size:a,ref:r,borderRadius:"9999px"},t))}));e.__DEV__&&(_.displayName="Circle");var g=e.chakra("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center"}});e.__DEV__&&(g.displayName="Center");var h=["className"],v=e.forwardRef((function(r,a){var t=e.useStyleConfig("Code",r),s=e.omitThemingProps(r);s.className;var c=o(s,h);return n.createElement(e.chakra.code,i({ref:a,className:e.cx("chakra-code",r.className)},c,{__css:i({display:"inline-block"},t)}))}));e.__DEV__&&(v.displayName="Code");var y=["className","centerContent"],x=e.forwardRef((function(r,a){var t=e.omitThemingProps(r),s=t.className,c=t.centerContent,l=o(t,y),d=e.useStyleConfig("Container",r);return n.createElement(e.chakra.div,i({ref:a,className:e.cx("chakra-container",s)},l,{__css:i({},d,c&&{display:"flex",flexDirection:"column",alignItems:"center"})}))}));e.__DEV__&&(x.displayName="Container");var w=["borderLeftWidth","borderBottomWidth","borderTopWidth","borderRightWidth","borderWidth","borderStyle","borderColor"],k=["className","orientation","__css"],N=e.forwardRef((function(r,a){var t=e.useStyleConfig("Divider",r),s=t.borderLeftWidth,c=t.borderBottomWidth,l=t.borderTopWidth,d=t.borderRightWidth,m=t.borderWidth,p=t.borderStyle,f=t.borderColor,u=o(t,w),_=e.omitThemingProps(r),g=_.className,h=_.orientation,v=void 0===h?"horizontal":h,y=_.__css,x=o(_,k),N={vertical:{borderLeftWidth:s||d||m||"1px",height:"100%"},horizontal:{borderBottomWidth:c||l||m||"1px",width:"100%"}};return n.createElement(e.chakra.hr,i({ref:a,"aria-orientation":v},x,{__css:i({},u,{border:"0",borderColor:f,borderStyle:p},N[v],y),className:e.cx("chakra-divider",g)}))}));e.__DEV__&&(N.displayName="Divider");var E=["direction","align","justify","wrap","basis","grow","shrink"],b=e.forwardRef((function(r,a){var t=r.direction,s=r.align,c=r.justify,l=r.wrap,d=r.basis,m=r.grow,p=r.shrink,f=o(r,E),u={display:"flex",flexDirection:t,alignItems:s,justifyContent:c,flexWrap:l,flexBasis:d,flexGrow:m,flexShrink:p};return n.createElement(e.chakra.div,i({ref:a,__css:u},f))}));e.__DEV__&&(b.displayName="Flex");var C=["area","templateAreas","gap","rowGap","columnGap","column","row","autoFlow","autoRows","templateRows","autoColumns","templateColumns"],S=["area","colSpan","colStart","colEnd","rowEnd","rowSpan","rowStart"],R=e.forwardRef((function(r,a){var t=r.area,s=r.templateAreas,c=r.gap,l=r.rowGap,d=r.columnGap,m=r.column,p=r.row,f=r.autoFlow,u=r.autoRows,_=r.templateRows,g=r.autoColumns,h=r.templateColumns,v=o(r,C),y={display:"grid",gridArea:t,gridTemplateAreas:s,gridGap:c,gridRowGap:l,gridColumnGap:d,gridAutoColumns:g,gridColumn:m,gridRow:p,gridAutoFlow:f,gridAutoRows:u,gridTemplateRows:_,gridTemplateColumns:h};return n.createElement(e.chakra.div,i({ref:a,__css:y},v))}));function D(r){return e.mapResponsive(r,(function(e){return"auto"===e?"auto":"span "+e+"/span "+e}))}e.__DEV__&&(R.displayName="Grid");var W=e.forwardRef((function(r,a){var t=r.area,s=r.colSpan,c=r.colStart,l=r.colEnd,d=r.rowEnd,m=r.rowSpan,p=r.rowStart,f=o(r,S),u=e.filterUndefined({gridArea:t,gridColumn:D(s),gridRow:D(m),gridColumnStart:c,gridColumnEnd:l,gridRowStart:p,gridRowEnd:d});return n.createElement(e.chakra.div,i({ref:a,__css:u},f))})),V=["className"],T=e.forwardRef((function(r,a){var t=e.useStyleConfig("Heading",r),s=e.omitThemingProps(r);s.className;var c=o(s,V);return n.createElement(e.chakra.h2,i({ref:a,className:e.cx("chakra-heading",r.className)},c,{__css:t}))}));e.__DEV__&&(T.displayName="Heading");var j=["className"],L=e.forwardRef((function(r,a){var t=e.useStyleConfig("Kbd",r),s=e.omitThemingProps(r),c=s.className,l=o(s,j);return n.createElement(e.chakra.kbd,i({ref:a,className:e.cx("chakra-kbd",c)},l,{__css:i({fontFamily:"mono"},t)}))}));e.__DEV__&&(L.displayName="Kbd");var B=["className","isExternal"],I=e.forwardRef((function(r,a){var t=e.useStyleConfig("Link",r),s=e.omitThemingProps(r),c=s.className,l=s.isExternal,d=o(s,B);return n.createElement(e.chakra.a,i({target:l?"_blank":void 0,rel:l?"noopener":void 0,ref:a,className:e.cx("chakra-link",c)},d,{__css:t}))}));e.__DEV__&&(I.displayName="Link");var G=["children","styleType","stylePosition","spacing"],P=["as"],O=["as"],z=e.createContext({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in a `<*List />` "}),A=z[0],F=z[1],M=e.forwardRef((function(r,a){var t,s=e.useMultiStyleConfig("List",r),c=e.omitThemingProps(r),l=c.children,d=c.styleType,m=void 0===d?"none":d,p=c.stylePosition,f=c.spacing,u=o(c,G),_=e.getValidChildren(l),g=f?((t={})["& > *:not(style) ~ *:not(style)"]={mt:f},t):{};return n.createElement(A,{value:s},n.createElement(e.chakra.ul,i({ref:a,listStyleType:m,listStylePosition:p,role:"list",__css:i({},s.container,g)},u),_))}));e.__DEV__&&(M.displayName="List");var X=e.forwardRef((function(e,r){e.as;var a=o(e,P);return n.createElement(M,i({ref:r,as:"ol",styleType:"decimal",marginStart:"1em"},a))}));e.__DEV__&&(X.displayName="OrderedList");var Y=e.forwardRef((function(e,r){e.as;var a=o(e,O);return n.createElement(M,i({ref:r,as:"ul",styleType:"initial",marginStart:"1em"},a))}));e.__DEV__&&(Y.displayName="UnorderedList");var q=e.forwardRef((function(r,a){var t=F();return n.createElement(e.chakra.li,i({ref:a},r,{__css:t.item}))}));e.__DEV__&&(q.displayName="ListItem");var H=e.forwardRef((function(e,r){var t=F();return n.createElement(a.Icon,i({ref:r,role:"presentation"},e,{__css:t.icon}))}));e.__DEV__&&(H.displayName="ListIcon");var U=["columns","spacingX","spacingY","spacing","minChildWidth"],K=e.forwardRef((function(r,a){var t,s,c=r.columns,l=r.spacingX,d=r.spacingY,m=r.spacing,p=r.minChildWidth,f=o(r,U),u=p?(s=p,e.mapResponsive(s,(function(r){return e.isNull(r)?null:"repeat(auto-fit, minmax("+(a=r,(e.isNumber(a)?a+"px":a)+", 1fr))");var a}))):(t=c,e.mapResponsive(t,(function(r){return e.isNull(r)?null:"repeat("+r+", minmax(0, 1fr))"})));return n.createElement(R,i({ref:a,gap:m,columnGap:l,rowGap:d,templateColumns:u},f))}));e.__DEV__&&(K.displayName="SimpleGrid");var J=e.chakra("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});e.__DEV__&&(J.displayName="Spacer");var Q="& > *:not(style) ~ *:not(style)";var Z=["isInline","direction","align","justify","spacing","wrap","children","divider","className","shouldWrapChildren"],$=function(r){return n.createElement(e.chakra.div,i({className:"chakra-stack__item"},r,{__css:i({display:"inline-block",flex:"0 0 auto",minWidth:0},r.__css)}))},ee=e.forwardRef((function(r,a){var t,s=r.isInline,c=r.direction,l=r.align,d=r.justify,m=r.spacing,p=void 0===m?"0.5rem":m,f=r.wrap,u=r.children,_=r.divider,g=r.className,h=r.shouldWrapChildren,v=o(r,Z),y=s?"row":null!=c?c:"column",x=n.useMemo((function(){return function(r){var a,t=r.spacing,n=r.direction,i={column:{marginTop:t,marginEnd:0,marginBottom:0,marginStart:0},row:{marginTop:0,marginEnd:0,marginBottom:0,marginStart:t},"column-reverse":{marginTop:0,marginEnd:0,marginBottom:t,marginStart:0},"row-reverse":{marginTop:0,marginEnd:t,marginBottom:0,marginStart:0}};return(a={flexDirection:n})[Q]=e.mapResponsive(n,(function(e){return i[e]})),a}({direction:y,spacing:p})}),[y,p]),w=n.useMemo((function(){return function(r){var a=r.spacing,t=r.direction,n={column:{my:a,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:a,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:a,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:a,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":e.mapResponsive(t,(function(e){return n[e]}))}}({spacing:p,direction:y})}),[p,y]),k=!!_,N=!h&&!k,E=e.getValidChildren(u),b=N?E:E.map((function(e,r){var a=void 0!==e.key?e.key:r,t=r+1===E.length,i=h?n.createElement($,{key:a},e):e;if(!k)return i;var o=t?null:n.cloneElement(_,{__css:w});return n.createElement(n.Fragment,{key:a},i,o)})),C=e.cx("chakra-stack",g);return n.createElement(e.chakra.div,i({ref:a,display:"flex",alignItems:l,justifyContent:d,flexDirection:x.flexDirection,flexWrap:f,className:C,__css:k?{}:(t={},t[Q]=x[Q],t)},v),b)}));e.__DEV__&&(ee.displayName="Stack");var re=e.forwardRef((function(e,r){return n.createElement(ee,i({align:"center"},e,{direction:"row",ref:r}))}));e.__DEV__&&(re.displayName="HStack");var ae=e.forwardRef((function(e,r){return n.createElement(ee,i({align:"center"},e,{direction:"column",ref:r}))}));e.__DEV__&&(ae.displayName="VStack");var te=["className","align","decoration","casing"],ne=e.forwardRef((function(r,a){var t=e.useStyleConfig("Text",r),s=e.omitThemingProps(r);s.className,s.align,s.decoration,s.casing;var c=o(s,te),l=e.filterUndefined({textAlign:r.align,textDecoration:r.decoration,textTransform:r.casing});return n.createElement(e.chakra.p,i({ref:a,className:e.cx("chakra-text",r.className)},l,c,{__css:t}))}));e.__DEV__&&(ne.displayName="Text");var ie=["spacing","spacingX","spacingY","children","justify","direction","align","className","shouldWrapChildren"],oe=["className"],se=e.forwardRef((function(r,a){var t=r.spacing,s=void 0===t?"0.5rem":t,c=r.spacingX,l=r.spacingY,d=r.children,m=r.justify,p=r.direction,f=r.align,u=r.className,_=r.shouldWrapChildren,g=o(r,ie),h=n.useMemo((function(){var r={spacingX:c,spacingY:l},a=r.spacingX,t=void 0===a?s:a,n=r.spacingY,i=void 0===n?s:n;return{"--chakra-wrap-x-spacing":function(r){return e.mapResponsive(t,(function(a){return e.tokenToCSSVar("space",a)(r)}))},"--chakra-wrap-y-spacing":function(r){return e.mapResponsive(i,(function(a){return e.tokenToCSSVar("space",a)(r)}))},"--wrap-x-spacing":"calc(var(--chakra-wrap-x-spacing) / 2)","--wrap-y-spacing":"calc(var(--chakra-wrap-y-spacing) / 2)",display:"flex",flexWrap:"wrap",justifyContent:m,alignItems:f,flexDirection:p,listStyleType:"none",padding:"0",margin:"calc(var(--wrap-y-spacing) * -1) calc(var(--wrap-x-spacing) * -1)","& > *:not(style)":{margin:"var(--wrap-y-spacing) var(--wrap-x-spacing)"}}}),[s,c,l,m,f,p]),v=_?n.Children.map(d,(function(e,r){return n.createElement(ce,{key:r},e)})):d;return n.createElement(e.chakra.div,i({ref:a,className:e.cx("chakra-wrap",u)},g),n.createElement(e.chakra.ul,{className:"chakra-wrap__list",__css:h},v))}));e.__DEV__&&(se.displayName="Wrap");var ce=e.forwardRef((function(r,a){var t=r.className,s=o(r,oe);return n.createElement(e.chakra.li,i({ref:a,__css:{display:"flex",alignItems:"flex-start"},className:e.cx("chakra-wrap__listitem",t)},s))}));e.__DEV__&&(ce.displayName="WrapItem");var le=["isExternal","target","rel","className"],de=["className"],me=e.forwardRef((function(r,a){var t=r.isExternal,s=r.target,c=r.rel,l=r.className,d=o(r,le);return n.createElement(e.chakra.a,i({},d,{ref:a,className:e.cx("chakra-linkbox__overlay",l),rel:t?"noopener noreferrer":c,target:t?"_blank":s,__css:{position:"static","&::before":{content:"''",cursor:"inherit",display:"block",position:"absolute",top:0,left:0,zIndex:1,width:"100%",height:"100%"}}}))})),pe=e.forwardRef((function(r,a){var t=r.className,s=o(r,de);return n.createElement(e.chakra.div,i({ref:a,position:"relative"},s,{className:e.cx("chakra-linkbox",t),__css:{"a[href]:not(.chakra-linkbox__overlay), abbr[title], button":{position:"relative",zIndex:1}}}))}));exports.Badge=d,exports.Box=f,exports.Center=g,exports.Circle=_,exports.Code=v,exports.Container=x,exports.Divider=N,exports.Flex=b,exports.Grid=R,exports.GridItem=W,exports.HStack=re,exports.Heading=T,exports.Link=I,exports.LinkBox=pe,exports.LinkOverlay=me,exports.List=M,exports.ListItem=q,exports.OrderedList=X,exports.SimpleGrid=K,exports.Spacer=J,exports.Square=u,exports.Stack=ee,exports.Text=ne,exports.UnorderedList=Y,exports.VStack=ae,exports.Wrap=se,exports.WrapItem=ce;
|
|
2
|
+
//# sourceMappingURL=chakra-ui-layout.esm-339b049e.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chakra-ui-layout.esm-339b049e.js","sources":["../node_modules/@chakra-ui/layout/dist/chakra-ui-layout.esm.js"],"sourcesContent":["import { forwardRef, chakra, useStyleConfig, omitThemingProps, useMultiStyleConfig, tokenToCSSVar } from '@chakra-ui/system';\nimport { cx, mapResponsive, __DEV__, filterUndefined, isNull, isNumber } from '@chakra-ui/utils';\nimport * as React from 'react';\nimport { Icon } from '@chakra-ui/icon';\nimport { createContext, 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$h = [\"ratio\", \"children\", \"className\"];\n\n/**\n * React component used to cropping media (videos, images and maps)\n * to a desired aspect ratio.\n *\n * @see Docs https://chakra-ui.com/aspectratiobox\n */\nvar AspectRatio = /*#__PURE__*/forwardRef(function (props, ref) {\n var _props$ratio = props.ratio,\n ratio = _props$ratio === void 0 ? 4 / 3 : _props$ratio,\n children = props.children,\n className = props.className,\n rest = _objectWithoutPropertiesLoose(props, _excluded$h); // enforce single child\n\n\n var child = React.Children.only(children);\n\n var _className = cx(\"chakra-aspect-ratio\", className);\n\n return /*#__PURE__*/React.createElement(chakra.div, _extends({\n ref: ref,\n position: \"relative\",\n className: _className,\n _before: {\n height: 0,\n content: \"\\\"\\\"\",\n display: \"block\",\n paddingBottom: mapResponsive(ratio, function (r) {\n return 1 / r * 100 + \"%\";\n })\n },\n __css: {\n \"& > *:not(style)\": {\n overflow: \"hidden\",\n position: \"absolute\",\n top: \"0\",\n right: \"0\",\n bottom: \"0\",\n left: \"0\",\n display: \"flex\",\n justifyContent: \"center\",\n alignItems: \"center\",\n width: \"100%\",\n height: \"100%\"\n },\n \"& > img, & > video\": {\n objectFit: \"cover\"\n }\n }\n }, rest), child);\n});\n\nif (__DEV__) {\n AspectRatio.displayName = \"AspectRatio\";\n}\n\nvar _excluded$g = [\"className\"];\n\n/**\n * React component used to display notifications, messages, or\n * statuses in different shapes and sizes.\n *\n * @see Docs https://chakra-ui.com/badge\n */\nvar Badge = /*#__PURE__*/forwardRef(function (props, ref) {\n var styles = useStyleConfig(\"Badge\", props);\n\n var _omitThemingProps = omitThemingProps(props);\n _omitThemingProps.className;\n var rest = _objectWithoutPropertiesLoose(_omitThemingProps, _excluded$g);\n\n return /*#__PURE__*/React.createElement(chakra.span, _extends({\n ref: ref,\n className: cx(\"chakra-badge\", props.className)\n }, rest, {\n __css: _extends({\n display: \"inline-block\",\n whiteSpace: \"nowrap\",\n verticalAlign: \"middle\"\n }, styles)\n }));\n});\n\nif (__DEV__) {\n Badge.displayName = \"Badge\";\n}\n\nvar _excluded$f = [\"size\", \"centerContent\"],\n _excluded2$5 = [\"size\"];\n\n/**\n * Box is the most abstract component on top of which other chakra\n * components are built. It renders a `div` element by default.\n *\n * @see Docs https://chakra-ui.com/box\n */\nvar Box = chakra(\"div\");\n\nif (__DEV__) {\n Box.displayName = \"Box\";\n}\n/**\n * As a constraint, you can't pass size related props\n * Only `size` would be allowed\n */\n\n\nvar Square = /*#__PURE__*/forwardRef(function (props, ref) {\n var size = props.size,\n _props$centerContent = props.centerContent,\n centerContent = _props$centerContent === void 0 ? true : _props$centerContent,\n rest = _objectWithoutPropertiesLoose(props, _excluded$f);\n\n var styles = centerContent ? {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\"\n } : {};\n return /*#__PURE__*/React.createElement(Box, _extends({\n ref: ref,\n boxSize: size,\n __css: _extends({}, styles, {\n flexShrink: 0,\n flexGrow: 0\n })\n }, rest));\n});\n\nif (__DEV__) {\n Square.displayName = \"Square\";\n}\n\nvar Circle = /*#__PURE__*/forwardRef(function (props, ref) {\n var size = props.size,\n rest = _objectWithoutPropertiesLoose(props, _excluded2$5);\n\n return /*#__PURE__*/React.createElement(Square, _extends({\n size: size,\n ref: ref,\n borderRadius: \"9999px\"\n }, rest));\n});\n\nif (__DEV__) {\n Circle.displayName = \"Circle\";\n}\n\nvar _excluded$e = [\"axis\"];\n\n/**\n * React component used to horizontally and vertically center its child.\n * It uses the popular `display: flex` centering technique.\n *\n * @see Docs https://chakra-ui.com/center\n */\nvar Center = chakra(\"div\", {\n baseStyle: {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\"\n }\n});\n\nif (__DEV__) {\n Center.displayName = \"Center\";\n}\n\nvar centerStyles = {\n horizontal: {\n insetStart: \"50%\",\n transform: \"translateX(-50%)\"\n },\n vertical: {\n top: \"50%\",\n transform: \"translateY(-50%)\"\n },\n both: {\n insetStart: \"50%\",\n top: \"50%\",\n transform: \"translate(-50%, -50%)\"\n }\n};\n/**\n * React component used to horizontally and vertically center an element\n * relative to its parent dimensions.\n *\n * It uses the `position: absolute` strategy.\n *\n * @see Docs https://chakra-ui.com/center\n * @see WebDev https://web.dev/centering-in-css/#5.-pop-and-plop\n */\n\nvar AbsoluteCenter = /*#__PURE__*/forwardRef(function (props, ref) {\n var _props$axis = props.axis,\n axis = _props$axis === void 0 ? \"both\" : _props$axis,\n rest = _objectWithoutPropertiesLoose(props, _excluded$e);\n\n return /*#__PURE__*/React.createElement(chakra.div, _extends({\n ref: ref,\n __css: centerStyles[axis]\n }, rest, {\n position: \"absolute\"\n }));\n});\n\nvar _excluded$d = [\"className\"];\n\n/**\n * React component to render inline code snippets.\n *\n * @see Docs https://chakra-ui.com/code\n */\nvar Code = /*#__PURE__*/forwardRef(function (props, ref) {\n var styles = useStyleConfig(\"Code\", props);\n\n var _omitThemingProps = omitThemingProps(props);\n _omitThemingProps.className;\n var rest = _objectWithoutPropertiesLoose(_omitThemingProps, _excluded$d);\n\n return /*#__PURE__*/React.createElement(chakra.code, _extends({\n ref: ref,\n className: cx(\"chakra-code\", props.className)\n }, rest, {\n __css: _extends({\n display: \"inline-block\"\n }, styles)\n }));\n});\n\nif (__DEV__) {\n Code.displayName = \"Code\";\n}\n\nvar _excluded$c = [\"className\", \"centerContent\"];\n\n/**\n * Layout component used to wrap app or website content\n *\n * It sets `margin-left` and `margin-right` to `auto`,\n * to keep its content centered.\n *\n * It also sets a default max-width of `60ch` (60 characters).\n */\nvar Container = /*#__PURE__*/forwardRef(function (props, ref) {\n var _omitThemingProps = omitThemingProps(props),\n className = _omitThemingProps.className,\n centerContent = _omitThemingProps.centerContent,\n rest = _objectWithoutPropertiesLoose(_omitThemingProps, _excluded$c);\n\n var styles = useStyleConfig(\"Container\", props);\n return /*#__PURE__*/React.createElement(chakra.div, _extends({\n ref: ref,\n className: cx(\"chakra-container\", className)\n }, rest, {\n __css: _extends({}, styles, centerContent && {\n display: \"flex\",\n flexDirection: \"column\",\n alignItems: \"center\"\n })\n }));\n});\n\nif (__DEV__) {\n Container.displayName = \"Container\";\n}\n\nvar _excluded$b = [\"borderLeftWidth\", \"borderBottomWidth\", \"borderTopWidth\", \"borderRightWidth\", \"borderWidth\", \"borderStyle\", \"borderColor\"],\n _excluded2$4 = [\"className\", \"orientation\", \"__css\"];\n/**\n * Layout component used to visually separate content in a list or group.\n * It displays a thin horizontal or vertical line, and renders a `hr` tag.\n *\n * @see Docs https://chakra-ui.com/divider\n */\n\nvar Divider = /*#__PURE__*/forwardRef(function (props, ref) {\n var _useStyleConfig = useStyleConfig(\"Divider\", props),\n borderLeftWidth = _useStyleConfig.borderLeftWidth,\n borderBottomWidth = _useStyleConfig.borderBottomWidth,\n borderTopWidth = _useStyleConfig.borderTopWidth,\n borderRightWidth = _useStyleConfig.borderRightWidth,\n borderWidth = _useStyleConfig.borderWidth,\n borderStyle = _useStyleConfig.borderStyle,\n borderColor = _useStyleConfig.borderColor,\n styles = _objectWithoutPropertiesLoose(_useStyleConfig, _excluded$b);\n\n var _omitThemingProps = omitThemingProps(props),\n className = _omitThemingProps.className,\n _omitThemingProps$ori = _omitThemingProps.orientation,\n orientation = _omitThemingProps$ori === void 0 ? \"horizontal\" : _omitThemingProps$ori,\n __css = _omitThemingProps.__css,\n rest = _objectWithoutPropertiesLoose(_omitThemingProps, _excluded2$4);\n\n var dividerStyles = {\n vertical: {\n borderLeftWidth: borderLeftWidth || borderRightWidth || borderWidth || \"1px\",\n height: \"100%\"\n },\n horizontal: {\n borderBottomWidth: borderBottomWidth || borderTopWidth || borderWidth || \"1px\",\n width: \"100%\"\n }\n };\n return /*#__PURE__*/React.createElement(chakra.hr, _extends({\n ref: ref,\n \"aria-orientation\": orientation\n }, rest, {\n __css: _extends({}, styles, {\n border: \"0\",\n borderColor: borderColor,\n borderStyle: borderStyle\n }, dividerStyles[orientation], __css),\n className: cx(\"chakra-divider\", className)\n }));\n});\n\nif (__DEV__) {\n Divider.displayName = \"Divider\";\n}\n\nvar _excluded$a = [\"direction\", \"align\", \"justify\", \"wrap\", \"basis\", \"grow\", \"shrink\"];\n\n/**\n * React component used to create flexbox layouts.\n *\n * It renders a `div` with `display: flex` and\n * comes with helpful style shorthand.\n *\n * @see Docs https://chakra-ui.com/flex\n */\nvar Flex = /*#__PURE__*/forwardRef(function (props, ref) {\n var direction = props.direction,\n align = props.align,\n justify = props.justify,\n wrap = props.wrap,\n basis = props.basis,\n grow = props.grow,\n shrink = props.shrink,\n rest = _objectWithoutPropertiesLoose(props, _excluded$a);\n\n var styles = {\n display: \"flex\",\n flexDirection: direction,\n alignItems: align,\n justifyContent: justify,\n flexWrap: wrap,\n flexBasis: basis,\n flexGrow: grow,\n flexShrink: shrink\n };\n return /*#__PURE__*/React.createElement(chakra.div, _extends({\n ref: ref,\n __css: styles\n }, rest));\n});\n\nif (__DEV__) {\n Flex.displayName = \"Flex\";\n}\n\nvar _excluded$9 = [\"area\", \"templateAreas\", \"gap\", \"rowGap\", \"columnGap\", \"column\", \"row\", \"autoFlow\", \"autoRows\", \"templateRows\", \"autoColumns\", \"templateColumns\"],\n _excluded2$3 = [\"area\", \"colSpan\", \"colStart\", \"colEnd\", \"rowEnd\", \"rowSpan\", \"rowStart\"];\n\n/**\n * React component used to create grid layouts.\n *\n * It renders a `div` with `display: grid` and\n * comes with helpful style shorthand.\n *\n * @see Docs https://chakra-ui.com/grid\n */\nvar Grid = /*#__PURE__*/forwardRef(function (props, ref) {\n var area = props.area,\n templateAreas = props.templateAreas,\n gap = props.gap,\n rowGap = props.rowGap,\n columnGap = props.columnGap,\n column = props.column,\n row = props.row,\n autoFlow = props.autoFlow,\n autoRows = props.autoRows,\n templateRows = props.templateRows,\n autoColumns = props.autoColumns,\n templateColumns = props.templateColumns,\n rest = _objectWithoutPropertiesLoose(props, _excluded$9);\n\n var styles = {\n display: \"grid\",\n gridArea: area,\n gridTemplateAreas: templateAreas,\n gridGap: gap,\n gridRowGap: rowGap,\n gridColumnGap: columnGap,\n gridAutoColumns: autoColumns,\n gridColumn: column,\n gridRow: row,\n gridAutoFlow: autoFlow,\n gridAutoRows: autoRows,\n gridTemplateRows: templateRows,\n gridTemplateColumns: templateColumns\n };\n return /*#__PURE__*/React.createElement(chakra.div, _extends({\n ref: ref,\n __css: styles\n }, rest));\n});\n\nif (__DEV__) {\n Grid.displayName = \"Grid\";\n}\n\nfunction spanFn(span) {\n return mapResponsive(span, function (value) {\n return value === \"auto\" ? \"auto\" : \"span \" + value + \"/span \" + value;\n });\n}\n\nvar GridItem = /*#__PURE__*/forwardRef(function (props, ref) {\n var area = props.area,\n colSpan = props.colSpan,\n colStart = props.colStart,\n colEnd = props.colEnd,\n rowEnd = props.rowEnd,\n rowSpan = props.rowSpan,\n rowStart = props.rowStart,\n rest = _objectWithoutPropertiesLoose(props, _excluded2$3);\n\n var styles = filterUndefined({\n gridArea: area,\n gridColumn: spanFn(colSpan),\n gridRow: spanFn(rowSpan),\n gridColumnStart: colStart,\n gridColumnEnd: colEnd,\n gridRowStart: rowStart,\n gridRowEnd: rowEnd\n });\n return /*#__PURE__*/React.createElement(chakra.div, _extends({\n ref: ref,\n __css: styles\n }, rest));\n});\n\nvar _excluded$8 = [\"className\"];\nvar Heading = /*#__PURE__*/forwardRef(function (props, ref) {\n var styles = useStyleConfig(\"Heading\", props);\n\n var _omitThemingProps = omitThemingProps(props);\n _omitThemingProps.className;\n var rest = _objectWithoutPropertiesLoose(_omitThemingProps, _excluded$8);\n\n return /*#__PURE__*/React.createElement(chakra.h2, _extends({\n ref: ref,\n className: cx(\"chakra-heading\", props.className)\n }, rest, {\n __css: styles\n }));\n});\n\nif (__DEV__) {\n Heading.displayName = \"Heading\";\n}\n\nvar _excluded$7 = [\"className\"];\n\n/**\n * Semantic component to render a keyboard shortcut\n * within an application.\n *\n * @example\n *\n * ```jsx\n * <Kbd>⌘ + T</Kbd>\n * ```\n *\n * @see Docs https://chakra-ui.com/kbd\n */\nvar Kbd = /*#__PURE__*/forwardRef(function (props, ref) {\n var styles = useStyleConfig(\"Kbd\", props);\n\n var _omitThemingProps = omitThemingProps(props),\n className = _omitThemingProps.className,\n rest = _objectWithoutPropertiesLoose(_omitThemingProps, _excluded$7);\n\n return /*#__PURE__*/React.createElement(chakra.kbd, _extends({\n ref: ref,\n className: cx(\"chakra-kbd\", className)\n }, rest, {\n __css: _extends({\n fontFamily: \"mono\"\n }, styles)\n }));\n});\n\nif (__DEV__) {\n Kbd.displayName = \"Kbd\";\n}\n\nvar _excluded$6 = [\"className\", \"isExternal\"];\n\n/**\n * Links are accessible elements used primarily for navigation.\n *\n * It integrates well with other routing libraries like\n * React Router, Reach Router and Next.js Link.\n *\n * @example\n *\n * ```jsx\n * <Link as={ReactRouterLink} to=\"/home\">Home</Link>\n * ```\n *\n * @see Docs https://chakra-ui.com/link\n */\nvar Link = /*#__PURE__*/forwardRef(function (props, ref) {\n var styles = useStyleConfig(\"Link\", props);\n\n var _omitThemingProps = omitThemingProps(props),\n className = _omitThemingProps.className,\n isExternal = _omitThemingProps.isExternal,\n rest = _objectWithoutPropertiesLoose(_omitThemingProps, _excluded$6);\n\n return /*#__PURE__*/React.createElement(chakra.a, _extends({\n target: isExternal ? \"_blank\" : undefined,\n rel: isExternal ? \"noopener\" : undefined,\n ref: ref,\n className: cx(\"chakra-link\", className)\n }, rest, {\n __css: styles\n }));\n});\n\nif (__DEV__) {\n Link.displayName = \"Link\";\n}\n\nvar _excluded$5 = [\"children\", \"styleType\", \"stylePosition\", \"spacing\"],\n _excluded2$2 = [\"as\"],\n _excluded3 = [\"as\"];\n\nvar _createContext = createContext({\n name: \"StylesContext\",\n errorMessage: \"useStyles: `styles` is undefined. Seems you forgot to wrap the components in a `<*List />` \"\n}),\n StylesProvider = _createContext[0],\n useStyles = _createContext[1];\n\n/**\n * List is used to display list items, it renders a `<ul>` by default.\n *\n * @see Docs https://chakra-ui.com/list\n */\nvar List = /*#__PURE__*/forwardRef(function (props, ref) {\n var _ref;\n\n var styles = useMultiStyleConfig(\"List\", props);\n\n var _omitThemingProps = omitThemingProps(props),\n children = _omitThemingProps.children,\n _omitThemingProps$sty = _omitThemingProps.styleType,\n styleType = _omitThemingProps$sty === void 0 ? \"none\" : _omitThemingProps$sty,\n stylePosition = _omitThemingProps.stylePosition,\n spacing = _omitThemingProps.spacing,\n rest = _objectWithoutPropertiesLoose(_omitThemingProps, _excluded$5);\n\n var validChildren = getValidChildren(children);\n var selector = \"& > *:not(style) ~ *:not(style)\";\n var spacingStyle = spacing ? (_ref = {}, _ref[selector] = {\n mt: spacing\n }, _ref) : {};\n return /*#__PURE__*/React.createElement(StylesProvider, {\n value: styles\n }, /*#__PURE__*/React.createElement(chakra.ul, _extends({\n ref: ref,\n listStyleType: styleType,\n listStylePosition: stylePosition\n /**\n * We added this role to fix the Safari accessibility issue with list-style-type: none\n * @see https://www.scottohara.me/blog/2019/01/12/lists-and-safari.html\n */\n ,\n role: \"list\",\n __css: _extends({}, styles.container, spacingStyle)\n }, rest), validChildren));\n});\n\nif (__DEV__) {\n List.displayName = \"List\";\n}\n\nvar OrderedList = /*#__PURE__*/forwardRef(function (props, ref) {\n props.as;\n var rest = _objectWithoutPropertiesLoose(props, _excluded2$2);\n\n return /*#__PURE__*/React.createElement(List, _extends({\n ref: ref,\n as: \"ol\",\n styleType: \"decimal\",\n marginStart: \"1em\"\n }, rest));\n});\n\nif (__DEV__) {\n OrderedList.displayName = \"OrderedList\";\n}\n\nvar UnorderedList = /*#__PURE__*/forwardRef(function (props, ref) {\n props.as;\n var rest = _objectWithoutPropertiesLoose(props, _excluded3);\n\n return /*#__PURE__*/React.createElement(List, _extends({\n ref: ref,\n as: \"ul\",\n styleType: \"initial\",\n marginStart: \"1em\"\n }, rest));\n});\n\nif (__DEV__) {\n UnorderedList.displayName = \"UnorderedList\";\n}\n\n/**\n * ListItem\n *\n * Used to render a list item\n */\nvar ListItem = /*#__PURE__*/forwardRef(function (props, ref) {\n var styles = useStyles();\n return /*#__PURE__*/React.createElement(chakra.li, _extends({\n ref: ref\n }, props, {\n __css: styles.item\n }));\n});\n\nif (__DEV__) {\n ListItem.displayName = \"ListItem\";\n}\n/**\n * ListIcon\n *\n * Used to render an icon beside the list item text\n */\n\n\nvar ListIcon = /*#__PURE__*/forwardRef(function (props, ref) {\n var styles = useStyles();\n return /*#__PURE__*/React.createElement(Icon, _extends({\n ref: ref,\n role: \"presentation\"\n }, props, {\n __css: styles.icon\n }));\n});\n\nif (__DEV__) {\n ListIcon.displayName = \"ListIcon\";\n}\n\nvar _excluded$4 = [\"columns\", \"spacingX\", \"spacingY\", \"spacing\", \"minChildWidth\"];\n\n/**\n * SimpleGrid\n *\n * React component that uses the `Grid` component and provides\n * a simpler interface to create responsive grid layouts.\n * \n * Provides props that easily define columns and spacing.\n *\n * @see Docs https://chakra-ui.com/simplegrid\n */\nvar SimpleGrid = /*#__PURE__*/forwardRef(function (props, ref) {\n var columns = props.columns,\n spacingX = props.spacingX,\n spacingY = props.spacingY,\n spacing = props.spacing,\n minChildWidth = props.minChildWidth,\n rest = _objectWithoutPropertiesLoose(props, _excluded$4);\n\n var templateColumns = minChildWidth ? widthToColumns(minChildWidth) : countToColumns(columns);\n return /*#__PURE__*/React.createElement(Grid, _extends({\n ref: ref,\n gap: spacing,\n columnGap: spacingX,\n rowGap: spacingY,\n templateColumns: templateColumns\n }, rest));\n});\n\nif (__DEV__) {\n SimpleGrid.displayName = \"SimpleGrid\";\n}\n\nfunction toPx(n) {\n return isNumber(n) ? n + \"px\" : n;\n}\n\nfunction widthToColumns(width) {\n return mapResponsive(width, function (value) {\n return isNull(value) ? null : \"repeat(auto-fit, minmax(\" + toPx(value) + \", 1fr))\";\n });\n}\n\nfunction countToColumns(count) {\n return mapResponsive(count, function (value) {\n return isNull(value) ? null : \"repeat(\" + value + \", minmax(0, 1fr))\";\n });\n}\n\n/**\n * A flexible flex spacer that expands along the major axis of its containing flex layout.\n * It renders a `div` by default, and takes up any available space.\n *\n * @see Docs https://chakra-ui.com/flex#using-the-spacer\n */\nvar Spacer = chakra(\"div\", {\n baseStyle: {\n flex: 1,\n justifySelf: \"stretch\",\n alignSelf: \"stretch\"\n }\n});\n\nif (__DEV__) {\n Spacer.displayName = \"Spacer\";\n}\n\n/**\n * If we ever run into SSR issues with this, check this post to find a fix for it:\n * @see https://medium.com/@emmenko/patching-lobotomized-owl-selector-for-emotion-ssr-5a582a3c424c\n */\nvar selector = \"& > *:not(style) ~ *:not(style)\";\nfunction getStackStyles(options) {\n var _ref;\n\n var spacing = options.spacing,\n direction = options.direction;\n var directionStyles = {\n column: {\n marginTop: spacing,\n marginEnd: 0,\n marginBottom: 0,\n marginStart: 0\n },\n row: {\n marginTop: 0,\n marginEnd: 0,\n marginBottom: 0,\n marginStart: spacing\n },\n \"column-reverse\": {\n marginTop: 0,\n marginEnd: 0,\n marginBottom: spacing,\n marginStart: 0\n },\n \"row-reverse\": {\n marginTop: 0,\n marginEnd: spacing,\n marginBottom: 0,\n marginStart: 0\n }\n };\n return _ref = {\n flexDirection: direction\n }, _ref[selector] = mapResponsive(direction, function (value) {\n return directionStyles[value];\n }), _ref;\n}\nfunction getDividerStyles(options) {\n var spacing = options.spacing,\n direction = options.direction;\n var dividerStyles = {\n column: {\n my: spacing,\n mx: 0,\n borderLeftWidth: 0,\n borderBottomWidth: \"1px\"\n },\n \"column-reverse\": {\n my: spacing,\n mx: 0,\n borderLeftWidth: 0,\n borderBottomWidth: \"1px\"\n },\n row: {\n mx: spacing,\n my: 0,\n borderLeftWidth: \"1px\",\n borderBottomWidth: 0\n },\n \"row-reverse\": {\n mx: spacing,\n my: 0,\n borderLeftWidth: \"1px\",\n borderBottomWidth: 0\n }\n };\n return {\n \"&\": mapResponsive(direction, function (value) {\n return dividerStyles[value];\n })\n };\n}\n\nvar _excluded$3 = [\"isInline\", \"direction\", \"align\", \"justify\", \"spacing\", \"wrap\", \"children\", \"divider\", \"className\", \"shouldWrapChildren\"];\nvar StackDivider = function StackDivider(props) {\n return /*#__PURE__*/React.createElement(chakra.div, _extends({\n className: \"chakra-stack__divider\"\n }, props, {\n __css: _extends({}, props[\"__css\"], {\n borderWidth: 0,\n alignSelf: \"stretch\",\n borderColor: \"inherit\",\n width: \"auto\",\n height: \"auto\"\n })\n }));\n};\nvar StackItem = function StackItem(props) {\n return /*#__PURE__*/React.createElement(chakra.div, _extends({\n className: \"chakra-stack__item\"\n }, props, {\n __css: _extends({\n display: \"inline-block\",\n flex: \"0 0 auto\",\n minWidth: 0\n }, props[\"__css\"])\n }));\n};\n\n/**\n * Stacks help you easily create flexible and automatically distributed layouts\n *\n * You can stack elements in the horizontal or vertical direction,\n * and apply a space or/and divider between each element.\n *\n * It uses `display: flex` internally and renders a `div`.\n *\n * @see Docs https://chakra-ui.com/stack\n *\n */\nvar Stack = /*#__PURE__*/forwardRef(function (props, ref) {\n var _ref;\n\n var isInline = props.isInline,\n directionProp = props.direction,\n align = props.align,\n justify = props.justify,\n _props$spacing = props.spacing,\n spacing = _props$spacing === void 0 ? \"0.5rem\" : _props$spacing,\n wrap = props.wrap,\n children = props.children,\n divider = props.divider,\n className = props.className,\n shouldWrapChildren = props.shouldWrapChildren,\n rest = _objectWithoutPropertiesLoose(props, _excluded$3);\n\n var direction = isInline ? \"row\" : directionProp != null ? directionProp : \"column\";\n var styles = React.useMemo(function () {\n return getStackStyles({\n direction: direction,\n spacing: spacing\n });\n }, [direction, spacing]);\n var dividerStyle = React.useMemo(function () {\n return getDividerStyles({\n spacing: spacing,\n direction: direction\n });\n }, [spacing, direction]);\n var hasDivider = !!divider;\n var shouldUseChildren = !shouldWrapChildren && !hasDivider;\n var validChildren = getValidChildren(children);\n var clones = shouldUseChildren ? validChildren : validChildren.map(function (child, index) {\n // Prefer provided child key, fallback to index\n var key = typeof child.key !== \"undefined\" ? child.key : index;\n var isLast = index + 1 === validChildren.length;\n var wrappedChild = /*#__PURE__*/React.createElement(StackItem, {\n key: key\n }, child);\n\n var _child = shouldWrapChildren ? wrappedChild : child;\n\n if (!hasDivider) return _child;\n var clonedDivider = /*#__PURE__*/React.cloneElement(divider, {\n __css: dividerStyle\n });\n\n var _divider = isLast ? null : clonedDivider;\n\n return /*#__PURE__*/React.createElement(React.Fragment, {\n key: key\n }, _child, _divider);\n });\n\n var _className = cx(\"chakra-stack\", className);\n\n return /*#__PURE__*/React.createElement(chakra.div, _extends({\n ref: ref,\n display: \"flex\",\n alignItems: align,\n justifyContent: justify,\n flexDirection: styles.flexDirection,\n flexWrap: wrap,\n className: _className,\n __css: hasDivider ? {} : (_ref = {}, _ref[selector] = styles[selector], _ref)\n }, rest), clones);\n});\n\nif (__DEV__) {\n Stack.displayName = \"Stack\";\n}\n/**\n * A view that arranges its children in a horizontal line.\n */\n\n\nvar HStack = /*#__PURE__*/forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(Stack, _extends({\n align: \"center\"\n }, props, {\n direction: \"row\",\n ref: ref\n }));\n});\n\nif (__DEV__) {\n HStack.displayName = \"HStack\";\n}\n/**\n * A view that arranges its children in a vertical line.\n */\n\n\nvar VStack = /*#__PURE__*/forwardRef(function (props, ref) {\n return /*#__PURE__*/React.createElement(Stack, _extends({\n align: \"center\"\n }, props, {\n direction: \"column\",\n ref: ref\n }));\n});\n\nif (__DEV__) {\n VStack.displayName = \"VStack\";\n}\n\nvar _excluded$2 = [\"className\", \"align\", \"decoration\", \"casing\"];\n\n/**\n * Used to render texts or paragraphs.\n *\n * @see Docs https://chakra-ui.com/text\n */\nvar Text = /*#__PURE__*/forwardRef(function (props, ref) {\n var styles = useStyleConfig(\"Text\", props);\n\n var _omitThemingProps = omitThemingProps(props);\n _omitThemingProps.className;\n _omitThemingProps.align;\n _omitThemingProps.decoration;\n _omitThemingProps.casing;\n var rest = _objectWithoutPropertiesLoose(_omitThemingProps, _excluded$2);\n\n var aliasedProps = filterUndefined({\n textAlign: props.align,\n textDecoration: props.decoration,\n textTransform: props.casing\n });\n return /*#__PURE__*/React.createElement(chakra.p, _extends({\n ref: ref,\n className: cx(\"chakra-text\", props.className)\n }, aliasedProps, rest, {\n __css: styles\n }));\n});\n\nif (__DEV__) {\n Text.displayName = \"Text\";\n}\n\nvar _excluded$1 = [\"spacing\", \"spacingX\", \"spacingY\", \"children\", \"justify\", \"direction\", \"align\", \"className\", \"shouldWrapChildren\"],\n _excluded2$1 = [\"className\"];\n\n/**\n * Layout component used to stack elements that differ in length\n * and are liable to wrap.\n *\n * Common use cases:\n * - Buttons that appear together at the end of forms\n * - Lists of tags and chips\n *\n * @see Docs https://chakra-ui.com/wrap\n */\nvar Wrap = /*#__PURE__*/forwardRef(function (props, ref) {\n var _props$spacing = props.spacing,\n spacing = _props$spacing === void 0 ? \"0.5rem\" : _props$spacing,\n spacingX = props.spacingX,\n spacingY = props.spacingY,\n children = props.children,\n justify = props.justify,\n direction = props.direction,\n align = props.align,\n className = props.className,\n shouldWrapChildren = props.shouldWrapChildren,\n rest = _objectWithoutPropertiesLoose(props, _excluded$1);\n\n var styles = React.useMemo(function () {\n var _spacingX$spacingY = {\n spacingX: spacingX,\n spacingY: spacingY\n },\n _spacingX$spacingY$sp = _spacingX$spacingY.spacingX,\n x = _spacingX$spacingY$sp === void 0 ? spacing : _spacingX$spacingY$sp,\n _spacingX$spacingY$sp2 = _spacingX$spacingY.spacingY,\n y = _spacingX$spacingY$sp2 === void 0 ? spacing : _spacingX$spacingY$sp2;\n return {\n \"--chakra-wrap-x-spacing\": function chakraWrapXSpacing(theme) {\n return mapResponsive(x, function (value) {\n return tokenToCSSVar(\"space\", value)(theme);\n });\n },\n \"--chakra-wrap-y-spacing\": function chakraWrapYSpacing(theme) {\n return mapResponsive(y, function (value) {\n return tokenToCSSVar(\"space\", value)(theme);\n });\n },\n \"--wrap-x-spacing\": \"calc(var(--chakra-wrap-x-spacing) / 2)\",\n \"--wrap-y-spacing\": \"calc(var(--chakra-wrap-y-spacing) / 2)\",\n display: \"flex\",\n flexWrap: \"wrap\",\n justifyContent: justify,\n alignItems: align,\n flexDirection: direction,\n listStyleType: \"none\",\n padding: \"0\",\n margin: \"calc(var(--wrap-y-spacing) * -1) calc(var(--wrap-x-spacing) * -1)\",\n \"& > *:not(style)\": {\n margin: \"var(--wrap-y-spacing) var(--wrap-x-spacing)\"\n }\n };\n }, [spacing, spacingX, spacingY, justify, align, direction]);\n var childrenToRender = shouldWrapChildren ? React.Children.map(children, function (child, index) {\n return /*#__PURE__*/React.createElement(WrapItem, {\n key: index\n }, child);\n }) : children;\n return /*#__PURE__*/React.createElement(chakra.div, _extends({\n ref: ref,\n className: cx(\"chakra-wrap\", className)\n }, rest), /*#__PURE__*/React.createElement(chakra.ul, {\n className: \"chakra-wrap__list\",\n __css: styles\n }, childrenToRender));\n});\n\nif (__DEV__) {\n Wrap.displayName = \"Wrap\";\n}\n\nvar WrapItem = /*#__PURE__*/forwardRef(function (props, ref) {\n var className = props.className,\n rest = _objectWithoutPropertiesLoose(props, _excluded2$1);\n\n return /*#__PURE__*/React.createElement(chakra.li, _extends({\n ref: ref,\n __css: {\n display: \"flex\",\n alignItems: \"flex-start\"\n },\n className: cx(\"chakra-wrap__listitem\", className)\n }, rest));\n});\n\nif (__DEV__) {\n WrapItem.displayName = \"WrapItem\";\n}\n\nvar _excluded = [\"isExternal\", \"target\", \"rel\", \"className\"],\n _excluded2 = [\"className\"];\nvar LinkOverlay = /*#__PURE__*/forwardRef(function (props, ref) {\n var isExternal = props.isExternal,\n target = props.target,\n rel = props.rel,\n className = props.className,\n rest = _objectWithoutPropertiesLoose(props, _excluded);\n\n return /*#__PURE__*/React.createElement(chakra.a, _extends({}, rest, {\n ref: ref,\n className: cx(\"chakra-linkbox__overlay\", className),\n rel: isExternal ? \"noopener noreferrer\" : rel,\n target: isExternal ? \"_blank\" : target,\n __css: {\n position: \"static\",\n \"&::before\": {\n content: \"''\",\n cursor: \"inherit\",\n display: \"block\",\n position: \"absolute\",\n top: 0,\n left: 0,\n zIndex: 1,\n width: \"100%\",\n height: \"100%\"\n }\n }\n }));\n});\n\n/**\n * `LinkBox` is used to wrap content areas within a link while ensuring semantic html\n *\n * @see Docs https://chakra-ui.com/docs/navigation/link-overlay\n * @see Resources https://www.sarasoueidan.com/blog/nested-links\n */\nvar LinkBox = /*#__PURE__*/forwardRef(function (props, ref) {\n var className = props.className,\n rest = _objectWithoutPropertiesLoose(props, _excluded2);\n\n return /*#__PURE__*/React.createElement(chakra.div, _extends({\n ref: ref,\n position: \"relative\"\n }, rest, {\n className: cx(\"chakra-linkbox\", className),\n __css: {\n /* Elevate the links, abbreviations and buttons up */\n \"a[href]:not(.chakra-linkbox__overlay), abbr[title], button\": {\n position: \"relative\",\n zIndex: 1\n }\n }\n }));\n});\n\nexport { AbsoluteCenter, AspectRatio, Badge, Box, Center, Circle, Code, Container, Divider, Flex, Grid, GridItem, HStack, Heading, Kbd, Link, LinkBox, LinkOverlay, List, ListIcon, ListItem, OrderedList, SimpleGrid, Spacer, Square, Stack, StackDivider, StackItem, Text, UnorderedList, VStack, Wrap, WrapItem };\n"],"names":["_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","_objectWithoutPropertiesLoose","excluded","sourceKeys","keys","indexOf","_excluded$h","AspectRatio","forwardRef","props","ref","_props$ratio","ratio","children","className","rest","child","React","Children","only","_className","cx","createElement","chakra","div","position","_before","height","content","display","paddingBottom","mapResponsive","r","__css","overflow","top","right","bottom","left","justifyContent","alignItems","width","objectFit","__DEV__","displayName","_excluded$g","Badge","styles","useStyleConfig","_omitThemingProps","omitThemingProps","span","whiteSpace","verticalAlign","_excluded$f","_excluded2$5","Box","Square","size","_props$centerContent","centerContent","boxSize","flexShrink","flexGrow","Circle","borderRadius","Center","baseStyle","_excluded$d","Code","code","_excluded$c","Container","flexDirection","_excluded$b","_excluded2$4","Divider","_useStyleConfig","borderLeftWidth","borderBottomWidth","borderTopWidth","borderRightWidth","borderWidth","borderStyle","borderColor","_omitThemingProps$ori","orientation","dividerStyles","vertical","horizontal","hr","border","_excluded$a","Flex","direction","align","justify","wrap","basis","grow","shrink","flexWrap","flexBasis","_excluded$9","_excluded2$3","Grid","area","templateAreas","gap","rowGap","columnGap","column","row","autoFlow","autoRows","templateRows","autoColumns","templateColumns","gridArea","gridTemplateAreas","gridGap","gridRowGap","gridColumnGap","gridAutoColumns","gridColumn","gridRow","gridAutoFlow","gridAutoRows","gridTemplateRows","gridTemplateColumns","spanFn","value","GridItem","colSpan","colStart","colEnd","rowEnd","rowSpan","rowStart","filterUndefined","gridColumnStart","gridColumnEnd","gridRowStart","gridRowEnd","_excluded$8","Heading","h2","_excluded$7","Kbd","kbd","fontFamily","_excluded$6","Link","isExternal","a","undefined","rel","_excluded$5","_excluded2$2","_excluded3","_createContext","createContext","name","errorMessage","StylesProvider","useStyles","List","_ref","useMultiStyleConfig","_omitThemingProps$sty","styleType","stylePosition","spacing","validChildren","getValidChildren","spacingStyle","mt","ul","listStyleType","listStylePosition","role","container","OrderedList","as","marginStart","UnorderedList","ListItem","li","item","ListIcon","Icon","icon","_excluded$4","SimpleGrid","count","columns","spacingX","spacingY","minChildWidth","isNull","n","isNumber","Spacer","flex","justifySelf","alignSelf","selector","_excluded$3","StackItem","minWidth","Stack","isInline","directionProp","_props$spacing","divider","shouldWrapChildren","useMemo","options","directionStyles","marginTop","marginEnd","marginBottom","getStackStyles","dividerStyle","my","mx","getDividerStyles","hasDivider","shouldUseChildren","clones","map","index","isLast","_child","_divider","cloneElement","Fragment","HStack","VStack","_excluded$2","Text","decoration","casing","aliasedProps","textAlign","textDecoration","textTransform","p","_excluded$1","_excluded2$1","Wrap","_spacingX$spacingY","_spacingX$spacingY$sp","x","_spacingX$spacingY$sp2","y","theme","tokenToCSSVar","padding","margin","childrenToRender","WrapItem","_excluded","_excluded2","LinkOverlay","cursor","zIndex","LinkBox"],"mappings":"4aAMA,SAASA,IAeP,OAdAA,EAAWC,OAAOC,QAAU,SAAUC,GACpC,IAAK,IAAIC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CACzC,IAAIG,EAASF,UAAUD,GAEvB,IAAK,IAAII,KAAOD,EACVN,OAAOQ,UAAUC,eAAeC,KAAKJ,EAAQC,KAC/CL,EAAOK,GAAOD,EAAOC,GAG1B,CAED,OAAOL,CACX,EAESH,EAASY,MAAMC,KAAMR,UAC9B,CAEA,SAASS,EAA8BP,EAAQQ,GAC7C,GAAc,MAAVR,EAAgB,MAAO,GAC3B,IAEI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