@televet/kibble-ui 1.20.0-beta.cs4 → 1.20.0
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/components/DataDisplay/NotificationCounter/index.d.ts +2 -2
- package/build/components/DataDisplay/NotificationCounter/notificationCounter.component.d.ts +2 -3
- package/build/components/DataDisplay/Tag/index.d.ts +3 -2
- package/build/components/DataDisplay/Tag/tag.component.d.ts +3 -4
- package/build/components/Disclosure/Tabs/components/Tab/tab.component.d.ts +4 -5
- package/build/components/Disclosure/Tabs/components/TabsLayout/tabsLayout.component.d.ts +1 -2
- package/build/components/Disclosure/Tabs/index.d.ts +5 -2
- package/build/components/Disclosure/Tabs/tabs.component.d.ts +2 -3
- package/build/components/Draggable/SortableList/components/DragHandle/dragHandle.component.d.ts +2 -3
- package/build/components/Draggable/SortableList/components/DragHandle/index.d.ts +1 -2
- package/build/components/Draggable/SortableList/components/SortableItem/index.d.ts +1 -2
- package/build/components/Draggable/SortableList/components/SortableItem/sortableItem.component.d.ts +2 -3
- package/build/components/Draggable/SortableList/components/SortableOverlay/index.d.ts +1 -2
- package/build/components/Draggable/SortableList/components/SortableOverlay/sortableOverlay.component.d.ts +2 -2
- package/build/components/Draggable/SortableList/components/index.d.ts +3 -0
- package/build/components/Draggable/SortableList/index.d.ts +2 -2
- package/build/components/Draggable/SortableList/sortableList.component.d.ts +1 -2
- package/build/components/Feedback/Alert/alert.component.d.ts +4 -5
- package/build/components/Feedback/Alert/components/alertBody.component.d.ts +1 -2
- package/build/components/Feedback/Alert/components/alertButton.component.d.ts +2 -3
- package/build/components/Feedback/Alert/components/alertCloseButton.component.d.ts +1 -2
- package/build/components/Feedback/Alert/components/alertDescription.component.d.ts +2 -3
- package/build/components/Feedback/Alert/components/alertHeader.component.d.ts +1 -2
- package/build/components/Feedback/Alert/components/alertIcon.component.d.ts +2 -3
- package/build/components/Feedback/Alert/components/alertTitle.component.d.ts +1 -2
- package/build/components/Feedback/Alert/index.d.ts +3 -2
- package/build/components/Feedback/Spinner/index.d.ts +2 -2
- package/build/components/Feedback/Spinner/spinner.component.d.ts +1 -2
- package/build/components/Feedback/Spinner/spinner.records.d.ts +1 -1
- package/build/components/Feedback/Toast/index.d.ts +1 -2
- package/build/components/Feedback/Toast/toast.utils.d.ts +6 -1
- package/build/components/Feedback/Toast/useToast.d.ts +12 -2
- package/build/components/Feedback/feedback.model.d.ts +1 -1
- package/build/components/Feedback/index.d.ts +2 -0
- package/build/components/Forms/Button/button.component.d.ts +7 -7
- package/build/components/Forms/Button/button.types.d.ts +0 -1
- package/build/components/Forms/Button/index.d.ts +3 -2
- package/build/components/Forms/Checkbox/checkbox.component.d.ts +1 -2
- package/build/components/Forms/Checkbox/components/CheckboxGroup/checkboxGroup.component.d.ts +2 -2
- package/build/components/Forms/Checkbox/index.d.ts +4 -2
- package/build/components/Forms/DatePicker/datepicker.component.d.ts +2 -3
- package/build/components/Forms/DatePicker/index.d.ts +2 -2
- package/build/components/Forms/FormControl/formControl.component.d.ts +1 -1
- package/build/components/Forms/FormControl/index.d.ts +1 -0
- package/build/components/Forms/Radio/components/RadioGroup/radioGroup.component.d.ts +2 -2
- package/build/components/Forms/Radio/index.d.ts +4 -2
- package/build/components/Forms/Radio/radio.component.d.ts +1 -2
- package/build/components/Forms/RatingDots/index.d.ts +2 -2
- package/build/components/Forms/RatingDots/{components/RatingDot/ratingDot.component.d.ts → ratingDot.component.d.ts} +1 -2
- package/build/components/Forms/RatingDots/ratingDots.component.d.ts +1 -2
- package/build/components/Forms/Select/components/SelectBrowserDefault/selectBrowserDefault.component.d.ts +1 -2
- package/build/components/Forms/Select/components/SelectContainer/selectContainer.component.d.ts +1 -2
- package/build/components/Forms/Select/components/SelectList/selectList.component.d.ts +1 -2
- package/build/components/Forms/Select/index.d.ts +3 -2
- package/build/components/Forms/Select/select.component.d.ts +4 -4
- package/build/components/Forms/Select/select.types.d.ts +1 -1
- package/build/components/Forms/Switch/index.d.ts +2 -2
- package/build/components/Forms/Switch/switch.component.d.ts +2 -2
- package/build/components/Forms/TextInput/components/ClearButton/clearButton.component.d.ts +1 -2
- package/build/components/Forms/TextInput/index.d.ts +2 -2
- package/build/components/Forms/TextInput/textInput.component.d.ts +2 -2
- package/build/components/Forms/Textarea/index.d.ts +2 -2
- package/build/components/Forms/Textarea/textarea.component.d.ts +2 -2
- package/build/components/Forms/TimePicker/index.d.ts +2 -0
- package/build/components/Forms/TimePicker/timePicker.component.d.ts +2 -3
- package/build/components/Forms/TimeRange/index.d.ts +1 -2
- package/build/components/Forms/TimeRange/timeRange.component.d.ts +1 -2
- package/build/components/Forms/index.d.ts +1 -0
- package/build/components/MediaAndIcons/Avatar/avatar.component.d.ts +13 -4
- package/build/components/MediaAndIcons/Avatar/avatar.types.d.ts +0 -10
- package/build/components/MediaAndIcons/Avatar/components/AvatarBadge/avatarBadge.component.d.ts +7 -2
- package/build/components/MediaAndIcons/Avatar/components/AvatarGroup/avatarGroup.component.d.ts +1 -2
- package/build/components/MediaAndIcons/Avatar/components/AvatarGroup/avatarGroup.utilities.d.ts +6 -0
- package/build/components/MediaAndIcons/Avatar/index.d.ts +5 -2
- package/build/components/MediaAndIcons/Icon/icon.component.d.ts +2 -3
- package/build/components/MediaAndIcons/Icon/icon.types.d.ts +1 -2
- package/build/components/MediaAndIcons/Icon/index.d.ts +2 -2
- package/build/components/MediaAndIcons/Logo/index.d.ts +2 -2
- package/build/components/MediaAndIcons/Logo/logo.component.d.ts +1 -2
- package/build/components/Navigation/Link/components/linkIcon.component.d.ts +2 -3
- package/build/components/Navigation/Link/index.d.ts +2 -2
- package/build/components/Navigation/Link/link.component.d.ts +2 -4
- package/build/components/Overlay/Menu/components/MenuButton/menuButton.component.d.ts +2 -2
- package/build/components/Overlay/Menu/components/MenuItem/menuItem.component.d.ts +1 -1
- package/build/components/Overlay/Menu/index.d.ts +8 -2
- package/build/components/Overlay/Menu/menu.component.d.ts +1 -2
- package/build/components/Overlay/Modal/components/ModalBody/modalBody.component.d.ts +1 -2
- package/build/components/Overlay/Modal/components/ModalCloseButton/modalCloseButton.component.d.ts +2 -3
- package/build/components/Overlay/Modal/components/ModalFooter/modalFooter.component.d.ts +3 -4
- package/build/components/Overlay/Modal/components/ModalFooterButtons/modalFooterButtons.component.d.ts +3 -4
- package/build/components/Overlay/Modal/components/ModalHeader/modalHeader.component.d.ts +4 -5
- package/build/components/Overlay/Modal/index.d.ts +8 -2
- package/build/components/Overlay/Modal/modal.component.d.ts +4 -4
- package/build/components/Overlay/Popover/components/PopoverBody/popoverBody.component.d.ts +1 -2
- package/build/components/Overlay/Popover/components/PopoverCloseButton/popoverCloseButton.component.d.ts +2 -3
- package/build/components/Overlay/Popover/components/PopoverFooter/popoverFooter.component.d.ts +1 -2
- package/build/components/Overlay/Popover/components/PopoverFooterButtons/popoverFooterButtons.component.d.ts +1 -2
- package/build/components/Overlay/Popover/components/PopoverHeader/popoverHeader.component.d.ts +2 -4
- package/build/components/Overlay/Popover/index.d.ts +8 -2
- package/build/components/Overlay/Popover/popover.component.d.ts +1 -2
- package/build/components/Overlay/Tooltip/index.d.ts +3 -2
- package/build/components/Overlay/Tooltip/tooltip.component.d.ts +1 -2
- package/build/components/Typography/Heading/heading.component.d.ts +1 -2
- package/build/components/Typography/Heading/index.d.ts +3 -2
- package/build/components/Typography/Text/index.d.ts +3 -2
- package/build/components/Typography/Text/text.component.d.ts +2 -3
- package/build/components/Typography/TruncatedText/index.d.ts +1 -2
- package/build/components/Typography/TruncatedText/truncatedText.component.d.ts +1 -2
- package/build/components/Typography/index.d.ts +1 -0
- package/build/components/hocs/index.d.ts +1 -0
- package/build/components/hocs/withDarkMode.d.ts +2 -0
- package/build/hocs/withDarkMode.d.ts +2 -0
- package/build/hocs/withTheme.d.ts +3 -0
- package/build/hooks/index.d.ts +4 -5
- package/build/hooks/useAdaptiveColor.d.ts +1 -2
- package/build/hooks/useAdaptiveColorMap.d.ts +1 -2
- package/build/hooks/useDisclosure.d.ts +1 -2
- package/build/hooks/useIconTextSizeMap.d.ts +2 -4
- package/build/hooks/useOverflowingText.d.ts +1 -2
- package/build/hooks/useTheme.d.ts +2 -3
- package/build/hooks/useWindowSize.d.ts +1 -2
- package/build/index.js +28756 -1
- package/build/index.js.map +1 -1
- package/build/theme/index.d.ts +3 -2
- package/build/theme/theme.config.d.ts +1 -2
- package/build/theme/theme.provider.d.ts +1 -2
- package/build/theme/theme.types.d.ts +1 -4
- package/build/theme/tokens/colors/color.types.d.ts +1 -2
- package/build/utils/sizes.d.ts +1 -2
- package/package.json +1 -2
- package/build/_baseGetTag-b456deca.js +0 -16
- package/build/_baseGetTag-b456deca.js.map +0 -1
- package/build/_commonjsHelpers-68cdf74f.js +0 -2
- package/build/_commonjsHelpers-68cdf74f.js.map +0 -1
- package/build/alert.component-b54156cc.js +0 -2
- package/build/alert.component-b54156cc.js.map +0 -1
- package/build/alert.types-e7d0c9e1.js +0 -2
- package/build/alert.types-e7d0c9e1.js.map +0 -1
- package/build/avatar.component-ec20cb56.js +0 -2
- package/build/avatar.component-ec20cb56.js.map +0 -1
- package/build/avatar.config-d0a447cd.js +0 -2
- package/build/avatar.config-d0a447cd.js.map +0 -1
- package/build/avatar.types-584d9ae1.js +0 -2
- package/build/avatar.types-584d9ae1.js.map +0 -1
- package/build/avatarBadge.component-aecdddfb.js +0 -2
- package/build/avatarBadge.component-aecdddfb.js.map +0 -1
- package/build/avatarBadge.types-6c09a378.js +0 -2
- package/build/avatarBadge.types-6c09a378.js.map +0 -1
- package/build/button.component-886dd40b.js +0 -2
- package/build/button.component-886dd40b.js.map +0 -1
- package/build/chakra-ui-theme-tools.esm-c737af81.js +0 -2
- package/build/chakra-ui-theme-tools.esm-c737af81.js.map +0 -1
- package/build/checkbox.component-31e2bd52.js +0 -2
- package/build/checkbox.component-31e2bd52.js.map +0 -1
- package/build/color.record-64db0308.js +0 -2
- package/build/color.record-64db0308.js.map +0 -1
- package/build/components/DataDisplay/NotificationCounter/notificationCounter.records.d.ts +0 -5
- package/build/components/DataDisplay/Tag/tag.records.d.ts +0 -2
- package/build/components/Disclosure/Tabs/components/Tab/index.d.ts +0 -2
- package/build/components/Disclosure/Tabs/components/Tab/tab.records.d.ts +0 -3
- package/build/components/Disclosure/Tabs/components/TabsLayout/index.d.ts +0 -2
- package/build/components/Feedback/Toast/toast.types.d.ts +0 -10
- package/build/components/Forms/Checkbox/components/CheckboxGroup/index.d.ts +0 -2
- package/build/components/Forms/DatePicker/context/index.d.ts +0 -1
- package/build/components/Forms/DatePicker/datepicker.records.d.ts +0 -7
- package/build/components/Forms/Radio/components/RadioGroup/index.d.ts +0 -2
- package/build/components/Forms/RatingDots/components/RatingDot/index.d.ts +0 -2
- package/build/components/Forms/TextInput/components/ClearButton/clearButton.records.d.ts +0 -2
- package/build/components/MediaAndIcons/Avatar/components/AvatarBadge/avatarBadge.types.d.ts +0 -6
- package/build/components/MediaAndIcons/Avatar/components/AvatarBadge/index.d.ts +0 -2
- package/build/components/MediaAndIcons/Avatar/components/AvatarGroup/index.d.ts +0 -2
- package/build/components/Overlay/Menu/components/MenuButton/index.d.ts +0 -2
- package/build/components/Overlay/Menu/components/MenuContainer/index.d.ts +0 -2
- package/build/components/Overlay/Menu/components/MenuItem/index.d.ts +0 -2
- package/build/components/Overlay/Menu/components/MenuList/index.d.ts +0 -2
- package/build/components/Overlay/Menu/components/MenuOptionGroup/index.d.ts +0 -2
- package/build/components/Overlay/Menu/context/index.d.ts +0 -2
- package/build/components/Overlay/Modal/components/ModalBody/index.d.ts +0 -2
- package/build/components/Overlay/Modal/components/ModalCloseButton/index.d.ts +0 -2
- package/build/components/Overlay/Modal/components/ModalFooter/index.d.ts +0 -2
- package/build/components/Overlay/Modal/components/ModalFooterButtons/index.d.ts +0 -2
- package/build/components/Overlay/Modal/components/ModalHeader/index.d.ts +0 -2
- package/build/components/Overlay/Popover/components/PopoverBody/index.d.ts +0 -2
- package/build/components/Overlay/Popover/components/PopoverCloseButton/index.d.ts +0 -2
- package/build/components/Overlay/Popover/components/PopoverFooter/index.d.ts +0 -2
- package/build/components/Overlay/Popover/components/PopoverFooterButtons/index.d.ts +0 -2
- package/build/components/Overlay/Popover/components/PopoverHeader/index.d.ts +0 -2
- package/build/core.esm-3a85aed4.js +0 -2
- package/build/core.esm-3a85aed4.js.map +0 -1
- package/build/datepicker.context-b3e212b3.js +0 -2
- package/build/datepicker.context-b3e212b3.js.map +0 -1
- package/build/formControl.component-bc88339a.js +0 -2
- package/build/formControl.component-bc88339a.js.map +0 -1
- package/build/heading.component-8f64b1a8.js +0 -2
- package/build/heading.component-8f64b1a8.js.map +0 -1
- package/build/hocs/withDarkMode/index.d.ts +0 -2
- package/build/hocs/withDarkMode/withDarkMode.d.ts +0 -3
- package/build/hocs/withTheme/index.d.ts +0 -2
- package/build/hocs/withTheme/withTheme.d.ts +0 -4
- package/build/icon.component-8f0cedca.js +0 -2
- package/build/icon.component-8f0cedca.js.map +0 -1
- package/build/index-fee8538e.js +0 -2
- package/build/index-fee8538e.js.map +0 -1
- package/build/index10.js +0 -2
- package/build/index10.js.map +0 -1
- package/build/index11.js +0 -2
- package/build/index11.js.map +0 -1
- package/build/index12.js +0 -2
- package/build/index12.js.map +0 -1
- package/build/index13.js +0 -2
- package/build/index13.js.map +0 -1
- package/build/index14.js +0 -2
- package/build/index14.js.map +0 -1
- package/build/index15.js +0 -2
- package/build/index15.js.map +0 -1
- package/build/index16.js +0 -2
- package/build/index16.js.map +0 -1
- package/build/index17.js +0 -2
- package/build/index17.js.map +0 -1
- package/build/index18.js +0 -2
- package/build/index18.js.map +0 -1
- package/build/index19.js +0 -2
- package/build/index19.js.map +0 -1
- package/build/index2.js +0 -2
- package/build/index2.js.map +0 -1
- package/build/index20.js +0 -2
- package/build/index20.js.map +0 -1
- package/build/index21.js +0 -2
- package/build/index21.js.map +0 -1
- package/build/index22.js +0 -2
- package/build/index22.js.map +0 -1
- package/build/index23.js +0 -2
- package/build/index23.js.map +0 -1
- package/build/index24.js +0 -2
- package/build/index24.js.map +0 -1
- package/build/index25.js +0 -2
- package/build/index25.js.map +0 -1
- package/build/index26.js +0 -2
- package/build/index26.js.map +0 -1
- package/build/index27.js +0 -2
- package/build/index27.js.map +0 -1
- package/build/index28.js +0 -2
- package/build/index28.js.map +0 -1
- package/build/index29.js +0 -2
- package/build/index29.js.map +0 -1
- package/build/index3.js +0 -2
- package/build/index3.js.map +0 -1
- package/build/index30.js +0 -2
- package/build/index30.js.map +0 -1
- package/build/index31.js +0 -2
- package/build/index31.js.map +0 -1
- package/build/index32.js +0 -2
- package/build/index32.js.map +0 -1
- package/build/index33.js +0 -2
- package/build/index33.js.map +0 -1
- package/build/index34.js +0 -2
- package/build/index34.js.map +0 -1
- package/build/index35.js +0 -2
- package/build/index35.js.map +0 -1
- package/build/index36.js +0 -2
- package/build/index36.js.map +0 -1
- package/build/index37.js +0 -2
- package/build/index37.js.map +0 -1
- package/build/index38.js +0 -2
- package/build/index38.js.map +0 -1
- package/build/index39.js +0 -2
- package/build/index39.js.map +0 -1
- package/build/index4.js +0 -2
- package/build/index4.js.map +0 -1
- package/build/index40.js +0 -2
- package/build/index40.js.map +0 -1
- package/build/index41.js +0 -2
- package/build/index41.js.map +0 -1
- package/build/index42.js +0 -2
- package/build/index42.js.map +0 -1
- package/build/index43.js +0 -2
- package/build/index43.js.map +0 -1
- package/build/index44.js +0 -2
- package/build/index44.js.map +0 -1
- package/build/index45.js +0 -2
- package/build/index45.js.map +0 -1
- package/build/index46.js +0 -2
- package/build/index46.js.map +0 -1
- package/build/index47.js +0 -2
- package/build/index47.js.map +0 -1
- package/build/index48.js +0 -2
- package/build/index48.js.map +0 -1
- package/build/index49.js +0 -2
- package/build/index49.js.map +0 -1
- package/build/index5.js +0 -2
- package/build/index5.js.map +0 -1
- package/build/index50.js +0 -2
- package/build/index50.js.map +0 -1
- package/build/index51.js +0 -2
- package/build/index51.js.map +0 -1
- package/build/index52.js +0 -2
- package/build/index52.js.map +0 -1
- package/build/index53.js +0 -2
- package/build/index53.js.map +0 -1
- package/build/index54.js +0 -2
- package/build/index54.js.map +0 -1
- package/build/index55.js +0 -2
- package/build/index55.js.map +0 -1
- package/build/index56.js +0 -2
- package/build/index56.js.map +0 -1
- package/build/index57.js +0 -2
- package/build/index57.js.map +0 -1
- package/build/index6.js +0 -2
- package/build/index6.js.map +0 -1
- package/build/index7.js +0 -2
- package/build/index7.js.map +0 -1
- package/build/index8.js +0 -2
- package/build/index8.js.map +0 -1
- package/build/index9.js +0 -2
- package/build/index9.js.map +0 -1
- package/build/link.component-f7e7a98b.js +0 -2
- package/build/link.component-f7e7a98b.js.map +0 -1
- package/build/logo.component-1e53641b.js +0 -2
- package/build/logo.component-1e53641b.js.map +0 -1
- package/build/menu.config-0bb35e06.js +0 -2
- package/build/menu.config-0bb35e06.js.map +0 -1
- package/build/menu.context-be7319dc.js +0 -2
- package/build/menu.context-be7319dc.js.map +0 -1
- package/build/menuButton.component-4af67844.js +0 -2
- package/build/menuButton.component-4af67844.js.map +0 -1
- package/build/menuContainer.component-60c21cb9.js +0 -2
- package/build/menuContainer.component-60c21cb9.js.map +0 -1
- package/build/menuItem.component-f3306361.js +0 -2
- package/build/menuItem.component-f3306361.js.map +0 -1
- package/build/menuList.component-851fc1b6.js +0 -2
- package/build/menuList.component-851fc1b6.js.map +0 -1
- package/build/notificationCounter.component-0f14c770.js +0 -2
- package/build/notificationCounter.component-0f14c770.js.map +0 -1
- package/build/notificationCounter.types-4352ab2c.js +0 -2
- package/build/notificationCounter.types-4352ab2c.js.map +0 -1
- package/build/popover.component-4e659039.js +0 -2
- package/build/popover.component-4e659039.js.map +0 -1
- package/build/popoverFooter.component-51ee4806.js +0 -2
- package/build/popoverFooter.component-51ee4806.js.map +0 -1
- package/build/radio.component-76b8e2f9.js +0 -2
- package/build/radio.component-76b8e2f9.js.map +0 -1
- package/build/ratingDot.component-017fa57d.js +0 -2
- package/build/ratingDot.component-017fa57d.js.map +0 -1
- package/build/select.component-b5b6891d.js +0 -2
- package/build/select.component-b5b6891d.js.map +0 -1
- package/build/sortable.esm-53c38ebd.js +0 -2
- package/build/sortable.esm-53c38ebd.js.map +0 -1
- package/build/sortableItem.context-576dd9fa.js +0 -2
- package/build/sortableItem.context-576dd9fa.js.map +0 -1
- package/build/sortableOverlay.component-e6d31b2d.js +0 -2
- package/build/sortableOverlay.component-e6d31b2d.js.map +0 -1
- package/build/spinner.component-038d96b2.js +0 -2
- package/build/spinner.component-038d96b2.js.map +0 -1
- package/build/strings-03c30366.js +0 -2
- package/build/strings-03c30366.js.map +0 -1
- package/build/switch.component-a7ea64e5.js +0 -2
- package/build/switch.component-a7ea64e5.js.map +0 -1
- package/build/tab.component-f61bcbe1.js +0 -2
- package/build/tab.component-f61bcbe1.js.map +0 -1
- package/build/tabs.component-c38561cd.js +0 -2
- package/build/tabs.component-c38561cd.js.map +0 -1
- package/build/text.component-eed5a904.js +0 -2
- package/build/text.component-eed5a904.js.map +0 -1
- package/build/textInput.component-ee159a0c.js +0 -2
- package/build/textInput.component-ee159a0c.js.map +0 -1
- package/build/textarea.component-21966487.js +0 -2
- package/build/textarea.component-21966487.js.map +0 -1
- package/build/theme.config-ee094e24.js +0 -2
- package/build/theme.config-ee094e24.js.map +0 -1
- package/build/theme.config.js +0 -2
- package/build/theme.config.js.map +0 -1
- package/build/theme.provider.js +0 -2
- package/build/theme.provider.js.map +0 -1
- package/build/timePicker.types-9db22493.js +0 -2
- package/build/timePicker.types-9db22493.js.map +0 -1
- package/build/tooltip.component-a78d9cba.js +0 -2
- package/build/tooltip.component-a78d9cba.js.map +0 -1
- package/build/truncatedText.component-be4ee0ae.js +0 -2
- package/build/truncatedText.component-be4ee0ae.js.map +0 -1
- package/build/tslib.es6-bb43a522.js +0 -16
- package/build/tslib.es6-bb43a522.js.map +0 -1
- package/build/useAdaptiveColor-65c8eb03.js +0 -2
- package/build/useAdaptiveColor-65c8eb03.js.map +0 -1
- package/build/useAdaptiveColorMap-58a2aac7.js +0 -2
- package/build/useAdaptiveColorMap-58a2aac7.js.map +0 -1
- package/build/useIconTextSizeMap-b81a72a5.js +0 -2
- package/build/useIconTextSizeMap-b81a72a5.js.map +0 -1
- package/build/useOverflowingText.js +0 -2
- package/build/useOverflowingText.js.map +0 -1
- package/build/useTheme.js +0 -2
- package/build/useTheme.js.map +0 -1
- package/build/useWindowSize.js +0 -2
- package/build/useWindowSize.js.map +0 -1
- package/build/withDarkMode-6e6bfb8e.js +0 -2
- package/build/withDarkMode-6e6bfb8e.js.map +0 -1
- /package/build/components/Disclosure/Tabs/{components/Tab/tab.types.d.ts → tabs.types.d.ts} +0 -0
- /package/build/components/Draggable/{SortableList/utilities → utilities}/createRange.d.ts +0 -0
- /package/build/components/Draggable/{SortableList/utilities → utilities}/index.d.ts +0 -0
- /package/build/components/Forms/DatePicker/{context/datepicker.context.d.ts → datepicker.context.d.ts} +0 -0
- /package/build/components/Overlay/Menu/{context/menu.context.d.ts → menu.context.d.ts} +0 -0
package/build/index46.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index46.js","sources":["../src/components/Overlay/Popover/components/PopoverBody/popoverBody.component.tsx"],"sourcesContent":["import React from 'react';\nimport { PopoverBody as ChakraPopoverBody, PopoverBodyProps } from '@chakra-ui/react';\n\nconst PopoverBody = ({ children, ...rest }: PopoverBodyProps): JSX.Element => {\n return (\n <ChakraPopoverBody pb={3} pt={0} {...rest}>\n {children}\n </ChakraPopoverBody>\n );\n};\n\nexport default PopoverBody;\n"],"names":["_a","children","rest","__rest","React","createElement","ChakraPopoverBody","__assign","pb","pt"],"mappings":"iQAGoB,SAACA,GAAE,IAAAC,EAAQD,EAAAC,SAAKC,EAAIC,EAAAA,OAAAH,EAAnB,cACnB,OACEI,EAAC,QAAAC,cAAAC,cAAkBC,EAAAA,SAAA,CAAAC,GAAI,EAAGC,GAAI,GAAOP,GAClCD"}
|
package/build/index47.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./tslib.es6-bb43a522.js"),r=require("react"),t=require("@chakra-ui/react"),o=require("./button.component-886dd40b.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./icon.component-8f0cedca.js"),require("./useTheme.js"),require("./useAdaptiveColorMap-58a2aac7.js"),require("./strings-03c30366.js");var i=s(r);exports.default=function(r){var s=r.size,u=void 0===s?"xs":s,a=e.__rest(r,["size"]),n=t.usePopoverContext().onClose;return i.default.createElement(o.Button,e.__assign({variant:"ghostNeutral",onClick:n,iconName:"close",position:"absolute",right:1,top:1,size:u},a))};
|
|
2
|
-
//# sourceMappingURL=index47.js.map
|
package/build/index47.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index47.js","sources":["../src/components/Overlay/Popover/components/PopoverCloseButton/popoverCloseButton.component.tsx"],"sourcesContent":["import React from 'react';\nimport { usePopoverContext } from '@chakra-ui/react';\nimport Button, { ButtonProps } from 'components/Forms/Button/button.component';\n\nconst PopoverCloseButton = ({ size = 'xs', ...rest }: ButtonProps): JSX.Element => {\n const { onClose } = usePopoverContext();\n return (\n <Button\n variant=\"ghostNeutral\"\n onClick={onClose}\n iconName=\"close\"\n position=\"absolute\"\n right={1}\n top={1}\n size={size}\n {...rest}\n />\n );\n};\n\nexport default PopoverCloseButton;\n"],"names":["_a","_b","size","rest","__rest","onClose","usePopoverContext","React","createElement","Button","__assign","variant","onClick","iconName","position","right","top"],"mappings":"4bAI2B,SAACA,GAAE,IAAAC,EAAAD,EAAAE,KAAAA,OAAO,IAAAD,EAAA,OAASE,EAAlBC,EAAAA,OAAAJ,EAAA,CAAA,SAClBK,EAAYC,8BACpB,OACEC,EAAA,QAAAC,cAACC,EAAAA,OAAMC,EAAAA,SAAA,CACLC,QAAQ,eACRC,QAASP,EACTQ,SAAS,QACTC,SAAS,WACTC,MAAO,EACPC,IAAK,EACLd,KAAMA,GACFC"}
|
package/build/index48.js
DELETED
package/build/index48.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index48.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/build/index49.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./tslib.es6-bb43a522.js"),t=require("react"),r=require("@chakra-ui/react"),i=require("./popoverFooter.component-51ee4806.js"),a=require("./button.component-886dd40b.js");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./icon.component-8f0cedca.js"),require("./useTheme.js"),require("./useAdaptiveColorMap-58a2aac7.js"),require("./strings-03c30366.js");var o=n(t);exports.default=function(t){var n=t.submitText,s=void 0===n?"Submit":n,u=t.isLoading,l=t.isDisabled,c=t.isDestructive;t.children;var d=t.onSubmit,m=t.allowCancel,p=void 0===m||m,v=t.onCancel,b=e.__rest(t,["submitText","isLoading","isDisabled","isDestructive","children","onSubmit","allowCancel","onCancel"]),f=r.usePopoverContext().onClose;return o.default.createElement(i.PopoverFooter,e.__assign({},b),o.default.createElement(r.Flex,{w:"100%"},p&&o.default.createElement(a.Button,{variant:"tertiary",size:"sm",onClick:function(){v&&v(),f()}},"Cancel"),o.default.createElement(r.Spacer,null),o.default.createElement(a.Button,{onClick:d,isLoading:u,isDisabled:l,size:"sm",variant:c?"primaryDestructive":"primary"},s)))};
|
|
2
|
-
//# sourceMappingURL=index49.js.map
|
package/build/index49.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index49.js","sources":["../src/components/Overlay/Popover/components/PopoverFooterButtons/popoverFooterButtons.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Flex, PopoverFooterProps as ChakraPopoverFooterProps, Spacer, usePopoverContext } from '@chakra-ui/react';\nimport PopoverFooter from '../PopoverFooter/popoverFooter.component';\nimport Button from 'components/Forms/Button';\n\nexport interface PopoverFooterButtonProps extends ChakraPopoverFooterProps {\n submitText?: string;\n isLoading?: boolean;\n isDisabled?: boolean;\n isDestructive?: boolean;\n onSubmit?: () => void;\n allowCancel?: boolean;\n onCancel?: () => void;\n}\n\nconst PopoverFooterButtons = ({\n submitText = 'Submit',\n isLoading,\n isDisabled,\n isDestructive,\n children,\n onSubmit,\n allowCancel = true,\n onCancel,\n ...rest\n}: PopoverFooterButtonProps): JSX.Element => {\n const { onClose } = usePopoverContext();\n\n const handleCancel = (): void => {\n if (onCancel) {\n onCancel();\n }\n onClose();\n };\n\n return (\n <PopoverFooter {...rest}>\n <Flex w=\"100%\">\n {allowCancel && (\n <Button variant=\"tertiary\" size=\"sm\" onClick={handleCancel}>\n Cancel\n </Button>\n )}\n <Spacer />\n <Button\n onClick={onSubmit}\n isLoading={isLoading}\n isDisabled={isDisabled}\n size=\"sm\"\n variant={isDestructive ? 'primaryDestructive' : 'primary'}\n >\n {submitText}\n </Button>\n </Flex>\n </PopoverFooter>\n );\n};\n\nexport default PopoverFooterButtons;\n"],"names":["_a","_b","submitText","isLoading","isDisabled","isDestructive","children","onSubmit","_c","allowCancel","onCancel","rest","__rest","onClose","usePopoverContext","React","createElement","PopoverFooter","__assign","Flex","w","Button","variant","size","onClick","Spacer"],"mappings":"+eAe6B,SAACA,GAC5B,IAAAC,EAAqBD,EAAAE,WAArBA,OAAU,IAAAD,EAAG,SAAQA,EACrBE,EAASH,EAAAG,UACTC,EAAUJ,EAAAI,WACVC,kBACQL,EAAAM,SACR,IAAAC,EAAQP,EAAAO,SACRC,EAAkBR,EAAAS,YAAlBA,OAAc,IAAAD,GAAIA,EAClBE,EAAQV,EAAAU,SACLC,EAAIC,EAAAA,OAAAZ,EATqB,wGAWpBa,EAAYC,8BASpB,OACEC,EAAAA,QAAAC,cAACC,EAAAA,cAAaC,EAAAA,SAAA,GAAKP,GACjBI,EAAAA,QAAAC,cAACG,EAAAA,KAAI,CAACC,EAAE,QACLX,GACCM,EAAAA,QAAAC,cAACK,EAAMA,OAAA,CAACC,QAAQ,WAAWC,KAAK,KAAKC,QAXxB,WACfd,GACFA,IAEFG,gBAWIE,UAAAC,cAACS,EAAMA,OAAG,MACVV,UAAAC,cAACK,EAAAA,OAAM,CACLG,QAASjB,EACTJ,UAAWA,EACXC,WAAYA,EACZmB,KAAK,KACLD,QAASjB,EAAgB,qBAAuB,WAE/CH"}
|
package/build/index5.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./tslib.es6-bb43a522.js"),r=require("react"),t=require("./tabs.component-c38561cd.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("@chakra-ui/react"),require("./tab.component-f61bcbe1.js"),require("./notificationCounter.component-0f14c770.js"),require("./useTheme.js"),require("./notificationCounter.types-4352ab2c.js"),require("./icon.component-8f0cedca.js"),require("./useAdaptiveColorMap-58a2aac7.js");var i=a(r);exports.default=function(r){return i.default.createElement(t.Tabs,e.__assign({},r))};
|
|
2
|
-
//# sourceMappingURL=index5.js.map
|
package/build/index5.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index5.js","sources":["../src/components/Disclosure/Tabs/components/TabsLayout/tabsLayout.component.tsx"],"sourcesContent":["import React from 'react';\nimport Tabs, { TabsProps } from '../../tabs.component';\n\nexport interface TabsLayoutProps extends TabsProps {\n tabPanels: JSX.Element[];\n}\n\nconst TabsLayout = (props: TabsLayoutProps): JSX.Element => {\n return <Tabs {...props} />;\n};\n\nexport default TabsLayout;\n"],"names":["props","React","createElement","Tabs","__assign"],"mappings":"wiBAOmB,SAACA,GAClB,OAAOC,EAAAA,QAACC,cAAAC,EAAIA,KAAKC,EAAAA,SAAA,GAAAJ"}
|
package/build/index50.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./tslib.es6-bb43a522.js"),r=require("react"),o=require("@chakra-ui/react"),t=require("./heading.component-8f64b1a8.js");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("./useTheme.js"),require("./useAdaptiveColorMap-58a2aac7.js");var i=a(r);exports.default=function(r){var a=r.size,u=void 0===a?"sm":a,c=r.color,n=r.colorToken,s=r.children,l=e.__rest(r,["size","color","colorToken","children"]);return i.default.createElement(o.PopoverHeader,e.__assign({px:3,pt:3,pb:1,borderBottom:0},l),i.default.createElement(t.Heading,{size:u,colorToken:n,color:c},s))};
|
|
2
|
-
//# sourceMappingURL=index50.js.map
|
package/build/index50.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index50.js","sources":["../src/components/Overlay/Popover/components/PopoverHeader/popoverHeader.component.tsx"],"sourcesContent":["import React from 'react';\nimport { PopoverHeader as ChakraPopoverHeader, PopoverHeaderProps as ChakraPopoverHeaderProps } from '@chakra-ui/react';\nimport Heading from 'components/Typography/Heading';\nimport { HeadingSize } from 'components/Typography/Heading/heading.types';\nimport { TextColor } from 'components/Typography/typography.types';\n\nexport interface PopoverHeaderProps extends ChakraPopoverHeaderProps {\n size?: HeadingSize;\n colorToken?: TextColor;\n}\n\nconst PopoverHeader = ({ size = 'sm', color, colorToken, children, ...rest }: PopoverHeaderProps): JSX.Element => {\n return (\n <ChakraPopoverHeader px={3} pt={3} pb={1} borderBottom={0} {...rest}>\n <Heading size={size} colorToken={colorToken} color={color}>\n {children}\n </Heading>\n </ChakraPopoverHeader>\n );\n};\n\nexport default PopoverHeader;\n"],"names":["_a","_b","size","color","colorToken","children","rest","__rest","React","ChakraPopoverHeader","__assign","px","pt","pb","borderBottom","createElement","Heading"],"mappings":"oXAWsB,SAACA,GAAE,IAAAC,SAAAC,aAAO,KAAID,EAAEE,EAAKH,EAAAG,MAAEC,EAAUJ,EAAAI,WAAEC,EAAQL,EAAAK,SAAKC,EAAIC,EAAAA,OAAAP,EAAnD,0CACrB,OACEQ,EAAAA,sBAACC,EAAAA,cAAmBC,EAAAA,SAAA,CAACC,GAAI,EAAGC,GAAI,EAAGC,GAAI,EAAGC,aAAc,GAAOR,GAC7DE,EAAAA,QAAAO,cAACC,UAAQ,CAAAd,KAAMA,EAAME,WAAYA,EAAYD,MAAOA,GACjDE"}
|
package/build/index51.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./popover.component-4e659039.js"),r=require("@chakra-ui/react");require("./tslib.es6-bb43a522.js"),require("react"),require("./withDarkMode-6e6bfb8e.js"),require("./useTheme.js"),require("./useAdaptiveColor-65c8eb03.js"),require("./text.component-eed5a904.js"),require("./useAdaptiveColorMap-58a2aac7.js"),require("./truncatedText.component-be4ee0ae.js"),require("./tooltip.component-a78d9cba.js"),require("./strings-03c30366.js"),exports.default=e.Popover,Object.defineProperty(exports,"usePopoverContext",{enumerable:!0,get:function(){return r.usePopoverContext}});
|
|
2
|
-
//# sourceMappingURL=index51.js.map
|
package/build/index51.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index51.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/build/index52.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./tooltip.component-a78d9cba.js");require("./tslib.es6-bb43a522.js"),require("react"),require("@chakra-ui/react"),require("./useTheme.js"),require("./useAdaptiveColor-65c8eb03.js"),require("./strings-03c30366.js"),exports.default=e.Tooltip;
|
|
2
|
-
//# sourceMappingURL=index52.js.map
|
package/build/index52.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index52.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/build/index53.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./heading.component-8f64b1a8.js");require("./tslib.es6-bb43a522.js"),require("react"),require("@chakra-ui/react"),require("./useTheme.js"),require("./useAdaptiveColorMap-58a2aac7.js"),exports.default=e.Heading;
|
|
2
|
-
//# sourceMappingURL=index53.js.map
|
package/build/index53.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index53.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/build/index54.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./text.component-eed5a904.js");require("./tslib.es6-bb43a522.js"),require("react"),require("@chakra-ui/react"),require("./useTheme.js"),require("./useAdaptiveColorMap-58a2aac7.js"),require("./truncatedText.component-be4ee0ae.js"),require("./tooltip.component-a78d9cba.js"),require("./useAdaptiveColor-65c8eb03.js"),require("./strings-03c30366.js"),exports.default=e.Text;
|
|
2
|
-
//# sourceMappingURL=index54.js.map
|
package/build/index54.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index54.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/build/index55.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./truncatedText.component-be4ee0ae.js");require("./tslib.es6-bb43a522.js"),require("react"),require("./tooltip.component-a78d9cba.js"),require("@chakra-ui/react"),require("./useTheme.js"),require("./useAdaptiveColor-65c8eb03.js"),require("./strings-03c30366.js"),exports.default=e.TruncatedText;
|
|
2
|
-
//# sourceMappingURL=index55.js.map
|
package/build/index55.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index55.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/build/index56.js
DELETED
package/build/index56.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index56.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/build/index57.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("@chakra-ui/react");function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=r(e);exports.default=function(e,r){return r?a.default.createElement(t.ChakraProvider,{theme:r},e):a.default.createElement(a.default.Fragment,null,e)};
|
|
2
|
-
//# sourceMappingURL=index57.js.map
|
package/build/index57.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index57.js","sources":["../src/hocs/withTheme/withTheme.tsx"],"sourcesContent":["import React, { ReactNode } from 'react';\nimport { Theme } from 'theme/theme.types';\nimport { ChakraProvider } from '@chakra-ui/react';\n\nconst withTheme = (children: ReactNode, theme: Theme): JSX.Element => {\n return theme ? <ChakraProvider theme={theme}>{children}</ChakraProvider> : <>{children}</>;\n};\n\nexport default withTheme;\n"],"names":["children","theme","React","createElement","ChakraProvider","Fragment"],"mappings":"4NAIkB,SAACA,EAAqBC,GACtC,OAAOA,EAAQC,EAAAA,QAACC,cAAAC,EAAAA,gBAAeH,MAAOA,GAAQD,GAA6BE,EAAAA,QAAGC,cAAAD,EAAAA,QAAAG,SAAA,KAAAL"}
|
package/build/index6.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./tabs.component-c38561cd.js"),r=require("@chakra-ui/react");require("./tslib.es6-bb43a522.js"),require("react"),require("./tab.component-f61bcbe1.js"),require("./notificationCounter.component-0f14c770.js"),require("./useTheme.js"),require("./notificationCounter.types-4352ab2c.js"),require("./icon.component-8f0cedca.js"),require("./useAdaptiveColorMap-58a2aac7.js"),exports.default=e.Tabs,Object.defineProperty(exports,"CTabs",{enumerable:!0,get:function(){return r.Tabs}}),Object.defineProperty(exports,"TabList",{enumerable:!0,get:function(){return r.TabList}}),Object.defineProperty(exports,"TabPanel",{enumerable:!0,get:function(){return r.TabPanel}}),Object.defineProperty(exports,"TabPanels",{enumerable:!0,get:function(){return r.TabPanels}});
|
|
2
|
-
//# sourceMappingURL=index6.js.map
|
package/build/index6.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index6.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/build/index7.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./tslib.es6-bb43a522.js"),r=require("react"),t=require("./sortableItem.context-576dd9fa.js"),a=require("./core.esm-3a85aed4.js"),s=require("./button.component-886dd40b.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("react-dom"),require("@chakra-ui/react"),require("./icon.component-8f0cedca.js"),require("./useTheme.js"),require("./useAdaptiveColorMap-58a2aac7.js"),require("./strings-03c30366.js");var i=u(r);exports.default=function(u){var n=e.__rest(u,[]),o=r.useContext(t.SortableItemContext),c=o.attributes,d=o.listeners,l=o.ref,b=a.useDndContext();return i.default.createElement(s.Button,e.__assign({cursor:b.activatorEvent?"grabbing":"grab",iconName:"grid",size:"sm",variant:"ghostNeutral",className:"DragHandle"},c,d,{ref:l},n))};
|
|
2
|
-
//# sourceMappingURL=index7.js.map
|
package/build/index7.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index7.js","sources":["../src/components/Draggable/SortableList/components/DragHandle/dragHandle.component.tsx"],"sourcesContent":["import React, { useContext } from 'react';\nimport { SortableItemContext } from '../SortableItem/sortableItem.context';\nimport { useDndContext } from '@dnd-kit/core';\nimport Button, { ButtonProps } from 'components/Forms/Button/button.component';\n\nconst DragHandle = ({ ...rest }: ButtonProps): JSX.Element => {\n const { attributes, listeners, ref } = useContext(SortableItemContext);\n const dndContext = useDndContext();\n\n return (\n <Button\n cursor={dndContext.activatorEvent ? 'grabbing' : 'grab'}\n iconName=\"grid\"\n size=\"sm\"\n variant=\"ghostNeutral\"\n className=\"DragHandle\"\n {...attributes}\n {...listeners}\n ref={ref}\n {...rest}\n />\n );\n};\n\nexport default DragHandle;\n"],"names":["_a","rest","__rest","_b","useContext","SortableItemContext","attributes","listeners","ref","dndContext","useDndContext","React","Button","__assign","cursor","activatorEvent","iconName","size","variant","className"],"mappings":"miBAKmB,SAACA,OAAKC,EAAIC,EAAAA,OAAAF,EAAT,IACZG,EAAiCC,EAAUA,WAACC,uBAA1CC,EAAUH,EAAAG,WAAEC,EAASJ,EAAAI,UAAEC,QACzBC,EAAaC,EAAAA,gBAEnB,OACEC,wBAACC,EAAMA,OAAAC,EAAAA,SAAA,CACLC,OAAQL,EAAWM,eAAiB,WAAa,OACjDC,SAAS,OACTC,KAAK,KACLC,QAAQ,eACRC,UAAU,cACNb,EACAC,GACJC,IAAKA,GACDP"}
|
package/build/index8.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./tslib.es6-bb43a522.js"),t=require("react"),r=require("./sortable.esm-53c38ebd.js"),a=require("./core.esm-3a85aed4.js"),s=require("./sortableItem.context-576dd9fa.js");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}require("react-dom");var o=i(t);exports.default=function(i){var n=i.children,l=i.id,u=i.style;i.onRemove;var d=r.useSortable({id:l}),c=d.attributes,f=d.isDragging,b=d.listeners,m=d.setNodeRef,v=d.setActivatorNodeRef,S=d.transform,j=d.transition,q=t.useMemo((function(){return{attributes:c,listeners:b,ref:v}}),[c,b,v]),y=e.__assign({opacity:f?.4:void 0,transform:a.CSS.Translate.toString(S),transition:j,listStyle:"none"},u);return o.default.createElement(s.SortableItemContext.Provider,{value:q},o.default.createElement("li",{className:"SortableItem",ref:m,style:y},n))};
|
|
2
|
-
//# sourceMappingURL=index8.js.map
|
package/build/index8.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index8.js","sources":["../src/components/Draggable/SortableList/components/SortableItem/sortableItem.component.tsx"],"sourcesContent":["import React, { useMemo } from 'react';\nimport type { CSSProperties, PropsWithChildren } from 'react';\nimport { useSortable } from '@dnd-kit/sortable';\nimport { CSS } from '@dnd-kit/utilities';\nimport { SortableItemContext } from './sortableItem.context';\nimport { UniqueIdentifier } from '@dnd-kit/core';\n\nexport interface SortableItemProps {\n id: UniqueIdentifier;\n style?: CSSProperties;\n onRemove?(id: UniqueIdentifier): void;\n}\n\nconst SortableItem = ({\n children,\n id,\n style: userStyle,\n onRemove,\n}: PropsWithChildren<SortableItemProps>): JSX.Element => {\n const { attributes, isDragging, listeners, setNodeRef, setActivatorNodeRef, transform, transition } = useSortable({\n id,\n });\n const context = useMemo(\n () => ({\n attributes,\n listeners,\n ref: setActivatorNodeRef,\n }),\n [attributes, listeners, setActivatorNodeRef],\n );\n const style: CSSProperties = {\n opacity: isDragging ? 0.4 : undefined,\n transform: CSS.Translate.toString(transform),\n transition,\n listStyle: 'none',\n ...userStyle,\n };\n\n return (\n <SortableItemContext.Provider value={context}>\n <li className=\"SortableItem\" ref={setNodeRef} style={style}>\n {children}\n </li>\n </SortableItemContext.Provider>\n );\n};\n\nexport default SortableItem;\n"],"names":["_a","children","id","userStyle","style","onRemove","_b","useSortable","attributes","isDragging","listeners","setNodeRef","setActivatorNodeRef","transform","transition","context","useMemo","ref","__assign","opacity","undefined","CSS","Translate","toString","listStyle","React","SortableItemContext","Provider","value","createElement","className"],"mappings":"oXAaqB,SAACA,OACpBC,EAAQD,EAAAC,SACRC,EAAEF,EAAAE,GACKC,EAASH,EAAAI,MACRJ,EAAAK,SAEF,IAAAC,EAAgGC,EAAAA,YAAY,CAChHL,GAAEA,IADIM,EAAUF,EAAAE,WAAEC,EAAUH,EAAAG,WAAEC,EAASJ,EAAAI,UAAEC,EAAUL,EAAAK,WAAEC,EAAmBN,EAAAM,oBAAEC,EAASP,EAAAO,UAAEC,EAAUR,EAAAQ,WAG3FC,EAAUC,WACd,WAAM,MAAC,CACLR,WAAUA,EACVE,UAASA,EACTO,IAAKL,KAEP,CAACJ,EAAYE,EAAWE,IAEpBR,EAAKc,EAAAA,SAAA,CACTC,QAASV,EAAa,QAAMW,EAC5BP,UAAWQ,EAAGA,IAACC,UAAUC,SAASV,GAClCC,WAAUA,EACVU,UAAW,QACRrB,GAGL,OACEsB,EAAAA,sBAACC,EAAAA,oBAAoBC,SAAS,CAAAC,MAAOb,GACnCU,EAAAA,QAAAI,cAAA,KAAA,CAAIC,UAAU,eAAeb,IAAKN,EAAYP,MAAOA,GAClDH"}
|
package/build/index9.js
DELETED
package/build/index9.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index9.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-bb43a522.js"),i=require("react"),r=require("@chakra-ui/react"),o=require("./icon.component-8f0cedca.js"),t=require("./useIconTextSizeMap-b81a72a5.js"),n=require("./useTheme.js"),a=require("./useAdaptiveColorMap-58a2aac7.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=s(i),c=function(i){i.position;var r=e.__rest(i,["position"]);return l.default.createElement(o.Icon,e.__assign({},r))},u=i.forwardRef((function(i,o){var s=n.default().colors,u=i.children,d=i.color,p=i.colorToken,f=void 0===p?"link":p,_=i.onDark,k=void 0!==_&&_,v=i.iconProps,m=i.size,q=void 0===m?"md":m,z=e.__rest(i,["children","color","colorToken","onDark","iconProps","size"]),b=a.useAdaptiveColorMap(s.text,f,k),g=t.useIconTextSizeMap(q);return v&&!v.position&&(v.position="start"),l.default.createElement(r.Link,e.__assign({display:"inline-block",size:q,ref:o,color:d||b},z),l.default.createElement(r.HStack,{spacing:1,align:"center"},"start"===(null==v?void 0:v.position)&&l.default.createElement(c,e.__assign({size:g},v)),l.default.createElement(r.Box,null,u),"end"===(null==v?void 0:v.position)&&l.default.createElement(c,e.__assign({size:g},v))))}));u.displayName="Link",exports.Link=u;
|
|
2
|
-
//# sourceMappingURL=link.component-f7e7a98b.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"link.component-f7e7a98b.js","sources":["../src/components/Navigation/Link/components/linkIcon.component.tsx","../src/components/Navigation/Link/link.component.tsx"],"sourcesContent":["import React from 'react';\nimport Icon, { IconProps } from 'components/MediaAndIcons/Icon/icon.component';\n\nexport interface LinkIconProps extends IconProps {\n position?: 'start' | 'end';\n}\n\nconst LinkIcon = (iconProps: LinkIconProps): JSX.Element => {\n const { position, ...rest } = iconProps;\n\n return <Icon {...rest} />;\n};\n\nexport default LinkIcon;\n","import React, { forwardRef, ForwardedRef, ReactNode } from 'react';\nimport { HStack, Link as CLink, LinkProps as CLinkProps } from '@chakra-ui/react';\nimport LinkIcon, { LinkIconProps } from './components/linkIcon.component';\nimport { Box } from 'components/Layout/Box';\nimport { TextColor } from 'components/Typography/typography.types';\nimport { TextSize } from 'components/Typography/Text/text.types';\nimport useIconTextSizeMap from 'hooks/useIconTextSizeMap';\nimport useTheme from 'hooks/useTheme';\nimport useAdaptiveColorMap from 'hooks/useAdaptiveColorMap';\n\nexport interface LinkProps extends CLinkProps {\n children: ReactNode;\n iconProps?: LinkIconProps;\n size?: TextSize;\n colorToken?: TextColor;\n onDark?: boolean;\n to?: string;\n}\n\nconst Link = forwardRef((props: LinkProps, ref: ForwardedRef<HTMLAnchorElement>): JSX.Element => {\n const { colors } = useTheme();\n const { children, color, colorToken = 'link', onDark = false, iconProps, size = 'md', ...rest } = props;\n const adaptiveColor = useAdaptiveColorMap<TextColor>(colors.text, colorToken, onDark);\n const mappIconSize = useIconTextSizeMap(size);\n\n if (iconProps && !iconProps.position) {\n iconProps.position = 'start';\n }\n\n return (\n <CLink display=\"inline-block\" size={size} ref={ref} color={color || adaptiveColor} {...rest}>\n <HStack spacing={1} align=\"center\">\n {iconProps?.position === 'start' && <LinkIcon size={mappIconSize} {...iconProps} />}\n <Box>{children}</Box>\n {iconProps?.position === 'end' && <LinkIcon size={mappIconSize} {...iconProps} />}\n </HStack>\n </CLink>\n );\n});\n\nLink.displayName = 'Link';\n\nexport default Link;\n"],"names":["LinkIcon","iconProps","position","rest","__rest","React","createElement","Icon","__assign","Link","forwardRef","props","ref","colors","useTheme","children","color","_a","colorToken","_b","onDark","_c","size","adaptiveColor","useAdaptiveColorMap","text","mappIconSize","useIconTextSizeMap","CLink","display","HStack","spacing","align","Box","displayName"],"mappings":"4VAOMA,EAAW,SAACC,GACcA,EAAdC,aAAKC,EAAIC,EAAAA,OAAKH,EAAxB,CAAqB,aAE3B,OAAOI,EAAAA,QAACC,cAAAC,EAAIA,KAAKC,EAAAA,SAAA,GAAAL,KCSbM,EAAOC,EAAUA,YAAC,SAACC,EAAkBC,GACjC,IAAAC,EAAWC,mBACXC,EAA0FJ,EAAKI,SAArFC,EAAgFL,EAAKK,MAA9EC,EAAyEN,EAAtDO,WAAnBA,OAAa,IAAAD,EAAA,SAAQE,EAAoDR,EAAKS,OAAzDA,cAAcD,EAAElB,EAAoCU,EAA3BV,UAAEoB,EAAyBV,EAAdW,KAAXA,OAAO,IAAAD,EAAA,OAASlB,WAASQ,EAA5F,CAAyF,WAAA,QAAA,aAAA,SAAA,YAAA,SACzFY,EAAgBC,EAAAA,oBAA+BX,EAAOY,KAAMP,EAAYE,GACxEM,EAAeC,qBAAmBL,GAMxC,OAJIrB,IAAcA,EAAUC,WAC1BD,EAAUC,SAAW,SAIrBG,EAAAA,sBAACuB,EAAAA,KAAKpB,EAAAA,SAAA,CAACqB,QAAQ,eAAeP,KAAMA,EAAMV,IAAKA,EAAKI,MAAOA,GAASO,GAAmBpB,GACrFE,EAAC,QAAAC,cAAAwB,UAAOC,QAAS,EAAGC,MAAM,UACC,WAAxB/B,MAAAA,SAAAA,EAAWC,WAAwBG,UAAAC,cAACN,EAASQ,EAAAA,SAAA,CAAAc,KAAMI,GAAkBzB,IACtEI,EAAAA,QAACC,cAAA2B,MAAK,KAAAlB,GACmB,SAAxBd,MAAAA,OAAS,EAATA,EAAWC,WAAsBG,EAAA,QAAAC,cAACN,EAASQ,EAAAA,SAAA,CAAAc,KAAMI,GAAkBzB,SAM5EQ,EAAKyB,YAAc"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var t=require("react");function e(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}function r(t){if(t&&t.__esModule)return t;var e=Object.create(null);return t&&Object.keys(t).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,n.get?n:{enumerable:!0,get:function(){return t[r]}})}})),e.default=t,Object.freeze(e)}var n,c,l=r(t),h=e(t);function a(){return a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},a.apply(this,arguments)}var o;function i(){return i=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},i.apply(this,arguments)}var v;function f(){return f=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},f.apply(this,arguments)}var u;function p(){return p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},p.apply(this,arguments)}var s;function w(){return w=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},w.apply(this,arguments)}var Z;function g(){return g=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},g.apply(this,arguments)}var m={black:function(t){return l.createElement("svg",p({viewBox:"0 0 56 60",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),u||(u=l.createElement("path",{d:"M55.596 10.103c0-5.73-4.783-10.35-10.59-10.085-5.17.246-9.389 4.443-9.618 9.609-.265 5.8 4.359 10.579 10.095 10.579h.23l.158 7.334c.018.723.971.953 1.324.318 0 0 6.583-12.395 6.636-12.5 1.253-2.522 1.765-3.245 1.765-5.255ZM31.01 32.618h-.017v.035L14.932 0H0l30.887 60 6.9-13.435-6.777-13.947Z",fill:"#000"})))},white:function(t){return l.createElement("svg",g({viewBox:"0 0 56 60",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),Z||(Z=l.createElement("path",{d:"M55.596 10.103c0-5.73-4.783-10.35-10.59-10.085-5.17.246-9.389 4.443-9.618 9.609-.265 5.8 4.359 10.579 10.095 10.579h.23l.158 7.334c.018.723.971.953 1.324.318 0 0 6.583-12.395 6.636-12.501 1.253-2.521 1.765-3.244 1.765-5.254ZM31.01 32.618h-.017v.035L14.932 0H0l30.887 60 6.9-13.435-6.777-13.947Z",fill:"#fff"})))},teal:function(t){return l.createElement("svg",i({viewBox:"0 0 56 60",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),o||(o=l.createElement("path",{d:"M55.596 10.103c0-5.73-4.783-10.35-10.59-10.085-5.17.246-9.389 4.443-9.618 9.609-.265 5.8 4.359 10.579 10.095 10.579h.23l.158 7.334c.018.723.971.953 1.324.318 0 0 6.583-12.395 6.636-12.501 1.253-2.521 1.765-3.244 1.765-5.254ZM31.01 32.618h-.017v.035L14.932 0H0l30.887 60 6.9-13.435-6.777-13.947Z",fill:"#39ADC3"})))}},M={black:function(t){return l.createElement("svg",f({viewBox:"0 0 200 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),v||(v=l.createElement("path",{d:"M0 .23h31.193v8.414H20.139V42.21h-9.04V8.644H0V.231ZM58.537 35.138c-2.462 4.878-7.25 7.876-13.74 7.876-9.219 0-15.708-6.4-15.708-15.574 0-8.95 6.579-15.574 15.35-15.574 8.951 0 15.127 6.534 15.127 15.843 0 1.03-.045 1.79-.134 2.148h-21.75c.313 3.49 3.49 5.997 7.115 5.997 3.223 0 4.968-1.387 6.355-3.58l7.385 2.864Zm-7.564-11.01c-.358-3.177-3.043-5.46-6.578-5.46-3.491 0-6.31 2.641-6.669 5.46h13.247ZM73.216.23V42.21h-8.772V.23h8.772ZM107.675 35.138c-2.461 4.878-7.25 7.876-13.739 7.876-9.22 0-15.708-6.4-15.708-15.574 0-8.95 6.578-15.574 15.35-15.574 8.951 0 15.126 6.534 15.126 15.843 0 1.03-.044 1.79-.134 2.148H86.82c.314 3.49 3.491 5.997 7.116 5.997 3.222 0 4.968-1.387 6.355-3.58l7.384 2.864Zm-7.518-11.01c-.358-3.177-3.044-5.46-6.579-5.46-3.49 0-6.31 2.641-6.668 5.46h13.247ZM176.773 35.138c-2.461 4.878-7.25 7.876-13.739 7.876-9.219 0-15.708-6.4-15.708-15.574 0-8.95 6.579-15.574 15.35-15.574 8.951 0 15.127 6.534 15.127 15.843 0 1.03-.045 1.79-.135 2.148h-21.749c.313 3.49 3.49 5.997 7.115 5.997 3.222 0 4.968-1.387 6.355-3.58l7.384 2.864Zm-7.563-11.01c-.358-3.177-3.043-5.46-6.579-5.46-3.49 0-6.31 2.641-6.668 5.46h13.247ZM192.482 3.9v8.682H200v7.206h-7.518v10.875c0 3.177 1.387 4.43 4.251 4.43 1.074 0 2.282-.313 3.222-.895v7.563c-1.298.671-3.311 1.209-6.131 1.209-6.221 0-10.069-3.85-10.069-10.428v-12.71h-4.207v-7.205h4.207V3.945h8.727V3.9ZM139.047.007c-3.715.179-6.713 3.177-6.892 6.892-.179 4.162 3.133 7.563 7.205 7.563h.179l.134 5.236c0 .492.716.671.94.224 0 0 4.699-8.861 4.744-8.95.895-1.79 1.253-2.328 1.253-3.76 0-4.072-3.446-7.384-7.563-7.205ZM129.022 23.368h-.045L117.521.007h-10.696l17.23 33.52 4.878 9.442 4.922-9.621-4.833-9.98Z",fill:"#000"})))},white:function(t){return l.createElement("svg",w({viewBox:"0 0 200 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),s||(s=l.createElement("path",{d:"M0 .245h31.193v8.413H20.139v33.565h-9.04V8.66H0V.245ZM58.537 35.152c-2.462 4.878-7.25 7.877-13.74 7.877-9.219 0-15.708-6.4-15.708-15.574 0-8.95 6.579-15.574 15.35-15.574 8.951 0 15.127 6.534 15.127 15.842 0 1.03-.045 1.79-.134 2.148h-21.75c.313 3.491 3.49 5.997 7.115 5.997 3.223 0 4.968-1.387 6.355-3.58l7.385 2.864Zm-7.564-11.009c-.358-3.178-3.043-5.46-6.578-5.46-3.491 0-6.31 2.64-6.669 5.46h13.247ZM73.216.245v41.978h-8.772V.245h8.772ZM107.675 35.152c-2.461 4.878-7.25 7.877-13.739 7.877-9.22 0-15.708-6.4-15.708-15.574 0-8.95 6.579-15.574 15.35-15.574 8.951 0 15.126 6.534 15.126 15.842 0 1.03-.044 1.79-.134 2.148H86.82c.314 3.491 3.491 5.997 7.116 5.997 3.222 0 4.968-1.387 6.355-3.58l7.384 2.864Zm-7.518-11.009c-.358-3.178-3.043-5.46-6.579-5.46-3.49 0-6.31 2.64-6.668 5.46h13.247ZM176.773 35.152c-2.461 4.878-7.25 7.877-13.739 7.877-9.219 0-15.708-6.4-15.708-15.574 0-8.95 6.579-15.574 15.35-15.574 8.951 0 15.127 6.534 15.127 15.842 0 1.03-.045 1.79-.135 2.148h-21.749c.313 3.491 3.49 5.997 7.115 5.997 3.222 0 4.968-1.387 6.355-3.58l7.384 2.864Zm-7.563-11.009c-.358-3.178-3.043-5.46-6.579-5.46-3.49 0-6.31 2.64-6.668 5.46h13.247ZM192.482 3.915v8.682H200v7.205h-7.518v10.875c0 3.177 1.387 4.43 4.251 4.43 1.074 0 2.282-.313 3.222-.895v7.563c-1.298.672-3.311 1.209-6.131 1.209-6.22 0-10.069-3.849-10.069-10.428v-12.71h-4.207v-7.204h4.207V3.959h8.727v-.044ZM139.047.021c-3.715.18-6.713 3.178-6.892 6.892-.179 4.162 3.133 7.563 7.205 7.563h.179l.134 5.236c0 .493.716.672.94.224 0 0 4.699-8.86 4.744-8.95.895-1.79 1.253-2.328 1.253-3.76 0-4.072-3.446-7.384-7.563-7.205ZM129.022 23.382h-.045L117.521.022h-10.696l17.23 33.52 4.878 9.442 4.922-9.622-4.833-9.98Z",fill:"#fff"})))},teal:function(t){return l.createElement("svg",a({viewBox:"0 0 200 44",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),n||(n=l.createElement("path",{d:"M176.773 35.166c-2.461 4.878-7.25 7.877-13.739 7.877-9.219 0-15.708-6.4-15.708-15.574 0-8.95 6.579-15.574 15.35-15.574 8.951 0 15.127 6.534 15.127 15.842 0 1.03-.045 1.79-.135 2.149h-21.749c.313 3.49 3.49 5.996 7.115 5.996 3.222 0 4.968-1.387 6.355-3.58l7.384 2.864Zm-7.563-11.009c-.358-3.177-3.043-5.46-6.579-5.46-3.49 0-6.31 2.64-6.668 5.46h13.247ZM192.482 3.929v8.682H200v7.205h-7.518v10.875c0 3.178 1.387 4.43 4.251 4.43 1.074 0 2.282-.313 3.222-.894v7.563c-1.298.671-3.311 1.208-6.131 1.208-6.221 0-10.069-3.849-10.069-10.427V19.86h-4.207v-7.205h4.207V3.974h8.727v-.045ZM139.047.035c-3.715.18-6.713 3.178-6.892 6.892-.179 4.162 3.133 7.564 7.205 7.564h.179l.134 5.236c0 .492.716.671.94.224 0 0 4.699-8.862 4.744-8.951.895-1.79 1.253-2.327 1.253-3.76 0-4.072-3.446-7.384-7.563-7.205ZM129.022 23.396h-.045L117.521.037h-10.696l17.23 33.52 4.878 9.442 4.922-9.622-4.833-9.98Z",fill:"#050E5F"})),c||(c=l.createElement("path",{d:"M0 .26h31.193v8.413H20.139v33.564h-9.04V8.673H0V.259ZM58.537 35.166c-2.462 4.879-7.25 7.877-13.74 7.877-9.219 0-15.708-6.4-15.708-15.574 0-8.95 6.579-15.574 15.35-15.574 8.951 0 15.127 6.534 15.127 15.843 0 1.029-.045 1.79-.134 2.148h-21.75c.313 3.49 3.49 5.997 7.115 5.997 3.223 0 4.968-1.388 6.355-3.58l7.385 2.863Zm-7.564-11.009c-.358-3.177-3.043-5.46-6.578-5.46-3.491 0-6.31 2.64-6.668 5.46h13.246ZM73.216.26v41.977h-8.772V.26h8.772ZM107.675 35.166c-2.461 4.879-7.25 7.877-13.739 7.877-9.219 0-15.708-6.4-15.708-15.574 0-8.95 6.579-15.574 15.35-15.574 8.951 0 15.126 6.534 15.126 15.843 0 1.029-.044 1.79-.134 2.148H86.82c.314 3.49 3.491 5.997 7.116 5.997 3.222 0 4.968-1.388 6.355-3.58l7.384 2.863Zm-7.518-11.009c-.358-3.177-3.043-5.46-6.579-5.46-3.49 0-6.31 2.64-6.668 5.46h13.247Z",fill:"#39ADC3"})))}},y=function(t){var e,r=t.type,n=void 0===r?"full":r,c=t.color,l=void 0===c?"teal":c,a=t.height,o=t.width,i=t.handleClick,v={height:a,width:o};return e="icon"===n?m[l]:M[l],h.default.createElement(e,{style:v,onClick:i})};y.displayName="Logo",exports.Logo=y;
|
|
2
|
-
//# sourceMappingURL=logo.component-1e53641b.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logo.component-1e53641b.js","sources":["../src/assets/logos/teal.svg","../src/assets/logos/tealIcon.svg","../src/assets/logos/black.svg","../src/assets/logos/blackIcon.svg","../src/assets/logos/white.svg","../src/assets/logos/whiteIcon.svg","../src/components/MediaAndIcons/Logo/logo.config.ts","../src/components/MediaAndIcons/Logo/logo.component.tsx"],"sourcesContent":["<svg preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 200 44\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M176.773 35.1664C174.312 40.0444 169.523 43.0428 163.034 43.0428C153.815 43.0428 147.326 36.6432 147.326 27.4689C147.326 18.5183 153.905 11.8949 162.676 11.8949C171.627 11.8949 177.803 18.4288 177.803 27.7374C177.803 28.7667 177.758 29.5275 177.668 29.8855H155.919C156.232 33.3762 159.409 35.8824 163.034 35.8824C166.256 35.8824 168.002 34.4951 169.389 32.3022L176.773 35.1664ZM169.21 24.1572C168.852 20.9797 166.167 18.6973 162.631 18.6973C159.141 18.6973 156.321 21.3378 155.963 24.1572H169.21Z\" fill=\"#050E5F\"/>\n<path d=\"M192.482 3.92897V12.611H200V19.8162H192.482V30.6911C192.482 33.8686 193.869 35.1216 196.733 35.1216C197.807 35.1216 199.015 34.8084 199.955 34.2266V41.7898C198.657 42.4611 196.644 42.9981 193.824 42.9981C187.603 42.9981 183.755 39.1494 183.755 32.5707V19.8609H179.548V12.6558H183.755V3.97371H192.482V3.92897Z\" fill=\"#050E5F\"/>\n<path d=\"M139.047 0.0354962C135.332 0.214507 132.334 3.21294 132.155 6.92742C131.976 11.0894 135.288 14.4906 139.36 14.4906C139.405 14.4906 139.45 14.4906 139.539 14.4906L139.673 19.7267C139.673 20.219 140.389 20.398 140.613 19.9505C140.613 19.9505 145.312 11.0894 145.357 10.9999C146.252 9.20981 146.61 8.67278 146.61 7.24069C146.61 3.16819 143.164 -0.143515 139.047 0.0354962Z\" fill=\"#050E5F\"/>\n<path d=\"M129.022 23.3965H128.977L117.521 0.0355655H106.825L124.055 33.5554L128.933 42.9982L133.855 33.3764L129.022 23.3965Z\" fill=\"#050E5F\"/>\n<path d=\"M0 0.259277H31.1927V8.67279H20.1387V42.2373H11.0987V8.67279H0V0.259277Z\" fill=\"#39ADC3\"/>\n<path d=\"M58.5366 35.1664C56.0752 40.0445 51.2866 43.0429 44.7975 43.0429C35.5784 43.0429 29.0893 36.6433 29.0893 27.4689C29.0893 18.5184 35.6679 11.895 44.4395 11.895C53.39 11.895 59.5659 18.4289 59.5659 27.7375C59.5659 28.7668 59.5211 29.5276 59.4316 29.8856H37.6818C37.9951 33.3763 41.1725 35.8825 44.7975 35.8825C48.0197 35.8825 49.765 34.4951 51.1524 32.3022L58.5366 35.1664ZM50.9734 24.1572C50.6154 20.9798 47.9302 18.6974 44.3947 18.6974C40.904 18.6974 38.0846 21.3378 37.7266 24.1572H50.9734Z\" fill=\"#39ADC3\"/>\n<path d=\"M73.2155 0.259278V42.2373H64.444V0.259278H73.2155Z\" fill=\"#39ADC3\"/>\n<path d=\"M107.675 35.1664C105.214 40.0445 100.425 43.0429 93.936 43.0429C84.717 43.0429 78.2278 36.6433 78.2278 27.4689C78.2278 18.5184 84.8065 11.895 93.578 11.895C102.529 11.895 108.704 18.4289 108.704 27.7375C108.704 28.7668 108.66 29.5276 108.57 29.8856H86.8203C87.1336 33.3763 90.3111 35.8825 93.936 35.8825C97.1582 35.8825 98.9036 34.4951 100.291 32.3022L107.675 35.1664ZM100.157 24.1572C99.7987 20.9798 97.1135 18.6974 93.578 18.6974C90.0873 18.6974 87.2679 21.3378 86.9098 24.1572H100.157Z\" fill=\"#39ADC3\"/>\n</svg>\n","<svg preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 56 60\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M55.5963 10.1029C55.5963 4.37262 50.8133 -0.246832 45.0066 0.0176401C39.8352 0.264481 35.617 4.46078 35.3875 9.62681C35.1228 15.4276 39.747 20.2057 45.4831 20.2057C45.5537 20.2057 45.6243 20.2057 45.7125 20.2057L45.8714 27.5404C45.889 28.2633 46.8421 28.4925 47.1951 27.8578C47.1951 27.8578 53.7784 15.4628 53.8314 15.357C55.0845 12.8357 55.5963 12.1128 55.5963 10.1029Z\" fill=\"#39ADC3\"/>\n<path d=\"M31.0104 32.6183H30.9927V32.6535L14.9316 0H0L30.8868 60L37.7878 46.5648L31.0104 32.6183Z\" fill=\"#39ADC3\"/>\n</svg>\n","<svg preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 200 44\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M0 0.230702H31.1926V8.64421H20.1387V42.2088H11.0987V8.64421H0V0.230702Z\" fill=\"black\"/>\n<path d=\"M58.5366 35.1378C56.0752 40.0159 51.2866 43.0143 44.7975 43.0143C35.5784 43.0143 29.0893 36.6147 29.0893 27.4404C29.0893 18.4898 35.6679 11.8664 44.4395 11.8664C53.39 11.8664 59.5659 18.4003 59.5659 27.7089C59.5659 28.7382 59.5211 29.499 59.4316 29.857H37.6818C37.9951 33.3477 41.1725 35.8539 44.7975 35.8539C48.0197 35.8539 49.765 34.4665 51.1524 32.2736L58.5366 35.1378ZM50.9734 24.1287C50.6153 20.9512 47.9302 18.6688 44.3947 18.6688C40.904 18.6688 38.0846 21.3092 37.7265 24.1287H50.9734Z\" fill=\"black\"/>\n<path d=\"M73.2155 0.230701V42.2088H64.4439V0.230701H73.2155Z\" fill=\"black\"/>\n<path d=\"M107.675 35.1378C105.214 40.0159 100.425 43.0143 93.936 43.0143C84.7169 43.0143 78.2278 36.6147 78.2278 27.4404C78.2278 18.4898 84.8064 11.8664 93.578 11.8664C102.529 11.8664 108.704 18.4003 108.704 27.7089C108.704 28.7382 108.66 29.499 108.57 29.857H86.8203C87.1336 33.3477 90.311 35.8539 93.936 35.8539C97.1582 35.8539 98.9036 34.4665 100.291 32.2736L107.675 35.1378ZM100.157 24.1287C99.7986 20.9512 97.1134 18.6688 93.578 18.6688C90.0873 18.6688 87.2678 21.3092 86.9098 24.1287H100.157Z\" fill=\"black\"/>\n<path d=\"M176.773 35.1378C174.312 40.0159 169.523 43.0143 163.034 43.0143C153.815 43.0143 147.326 36.6147 147.326 27.4404C147.326 18.4898 153.905 11.8664 162.676 11.8664C171.627 11.8664 177.803 18.4003 177.803 27.7089C177.803 28.7382 177.758 29.499 177.668 29.857H155.919C156.232 33.3477 159.409 35.8539 163.034 35.8539C166.256 35.8539 168.002 34.4665 169.389 32.2736L176.773 35.1378ZM169.21 24.1287C168.852 20.9512 166.167 18.6688 162.631 18.6688C159.141 18.6688 156.321 21.3092 155.963 24.1287H169.21Z\" fill=\"black\"/>\n<path d=\"M192.482 3.90043V12.5825H200V19.7876H192.482V30.6626C192.482 33.84 193.869 35.0931 196.733 35.0931C197.807 35.0931 199.015 34.7798 199.955 34.198V41.7612C198.657 42.4325 196.644 42.9696 193.824 42.9696C187.603 42.9696 183.755 39.1208 183.755 32.5422V19.8324H179.548V12.6272H183.755V3.94517H192.482V3.90043Z\" fill=\"black\"/>\n<path d=\"M139.047 0.00693176C135.332 0.185943 132.334 3.18437 132.155 6.89885C131.976 11.0609 135.288 14.4621 139.36 14.4621C139.405 14.4621 139.45 14.4621 139.539 14.4621L139.673 19.6981C139.673 20.1904 140.389 20.3694 140.613 19.9219C140.613 19.9219 145.312 11.0609 145.357 10.9714C146.252 9.18124 146.61 8.64421 146.61 7.21212C146.61 3.13963 143.164 -0.172079 139.047 0.00693176Z\" fill=\"black\"/>\n<path d=\"M129.022 23.3678H128.977L117.521 0.00687477H106.825L124.055 33.5267L128.933 42.9695L133.855 33.3477L129.022 23.3678Z\" fill=\"black\"/>\n</svg>\n","<svg preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 56 60\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M55.5963 10.1029C55.5963 4.37262 50.8133 -0.246825 45.0066 0.0176471C39.8352 0.264488 35.617 4.46079 35.3875 9.62682C35.1228 15.4276 39.747 20.2057 45.4831 20.2057C45.5537 20.2057 45.6243 20.2057 45.7125 20.2057L45.8714 27.5404C45.889 28.2633 46.8421 28.4925 47.1951 27.8578C47.1951 27.8578 53.7784 15.4628 53.8314 15.3571C55.0845 12.8358 55.5963 12.1129 55.5963 10.1029Z\" fill=\"black\"/>\n<path d=\"M31.0104 32.6183H30.9927V32.6535L14.9316 0H0L30.8868 60L37.7878 46.5648L31.0104 32.6183Z\" fill=\"black\"/>\n</svg>\n","<svg preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 200 44\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M0 0.244986H31.1926V8.6585H20.1387V42.2231H11.0987V8.6585H0V0.244986Z\" fill=\"white\"/>\n<path d=\"M58.5366 35.1521C56.0752 40.0302 51.2866 43.0286 44.7975 43.0286C35.5784 43.0286 29.0893 36.629 29.0893 27.4547C29.0893 18.5041 35.6679 11.8807 44.4395 11.8807C53.39 11.8807 59.5659 18.4146 59.5659 27.7232C59.5659 28.7525 59.5211 29.5133 59.4316 29.8713H37.6818C37.9951 33.362 41.1725 35.8682 44.7975 35.8682C48.0197 35.8682 49.765 34.4808 51.1524 32.2879L58.5366 35.1521ZM50.9734 24.143C50.6153 20.9655 47.9302 18.6831 44.3947 18.6831C40.904 18.6831 38.0846 21.3235 37.7265 24.143H50.9734Z\" fill=\"white\"/>\n<path d=\"M73.2155 0.244985V42.2231H64.4439V0.244985H73.2155Z\" fill=\"white\"/>\n<path d=\"M107.675 35.1521C105.214 40.0302 100.425 43.0286 93.936 43.0286C84.7169 43.0286 78.2278 36.629 78.2278 27.4547C78.2278 18.5041 84.8065 11.8807 93.578 11.8807C102.529 11.8807 108.704 18.4146 108.704 27.7232C108.704 28.7525 108.66 29.5133 108.57 29.8713H86.8203C87.1336 33.362 90.311 35.8682 93.936 35.8682C97.1582 35.8682 98.9036 34.4808 100.291 32.2879L107.675 35.1521ZM100.157 24.143C99.7986 20.9655 97.1135 18.6831 93.578 18.6831C90.0873 18.6831 87.2678 21.3235 86.9098 24.143H100.157Z\" fill=\"white\"/>\n<path d=\"M176.773 35.1521C174.312 40.0302 169.523 43.0286 163.034 43.0286C153.815 43.0286 147.326 36.629 147.326 27.4547C147.326 18.5041 153.905 11.8807 162.676 11.8807C171.627 11.8807 177.803 18.4146 177.803 27.7232C177.803 28.7525 177.758 29.5133 177.668 29.8713H155.919C156.232 33.362 159.409 35.8682 163.034 35.8682C166.256 35.8682 168.002 34.4808 169.389 32.2879L176.773 35.1521ZM169.21 24.143C168.852 20.9655 166.167 18.6831 162.631 18.6831C159.141 18.6831 156.321 21.3235 155.963 24.143H169.21Z\" fill=\"white\"/>\n<path d=\"M192.482 3.91472V12.5967H200V19.8019H192.482V30.6769C192.482 33.8543 193.869 35.1074 196.733 35.1074C197.807 35.1074 199.015 34.7941 199.955 34.2123V41.7755C198.657 42.4468 196.644 42.9839 193.824 42.9839C187.604 42.9839 183.755 39.1351 183.755 32.5565V19.8467H179.548V12.6415H183.755V3.95946H192.482V3.91472Z\" fill=\"white\"/>\n<path d=\"M139.047 0.021214C135.332 0.200225 132.334 3.19866 132.155 6.91314C131.976 11.0751 135.288 14.4763 139.36 14.4763C139.405 14.4763 139.45 14.4763 139.539 14.4763L139.673 19.7124C139.673 20.2047 140.389 20.3837 140.613 19.9362C140.613 19.9362 145.312 11.0751 145.357 10.9856C146.252 9.19553 146.61 8.6585 146.61 7.22641C146.61 3.15391 143.164 -0.157797 139.047 0.021214Z\" fill=\"white\"/>\n<path d=\"M129.022 23.3822H128.977L117.521 0.0212479H106.825L124.055 33.5411L128.933 42.9839L133.855 33.362L129.022 23.3822Z\" fill=\"white\"/>\n</svg>\n","<svg preserveAspectRatio=\"xMidYMid meet\" viewBox=\"0 0 56 60\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n<path d=\"M55.5963 10.1029C55.5963 4.37261 50.8133 -0.246838 45.0066 0.0176347C39.8352 0.264476 35.617 4.46077 35.3875 9.6268C35.1228 15.4276 39.747 20.2057 45.4831 20.2057C45.5537 20.2057 45.6243 20.2057 45.7125 20.2057L45.8714 27.5404C45.889 28.2633 46.8421 28.4925 47.1951 27.8578C47.1951 27.8578 53.7784 15.4628 53.8314 15.357C55.0845 12.8357 55.5963 12.1128 55.5963 10.1029Z\" fill=\"white\"/>\n<path d=\"M31.0104 32.6183H30.9927V32.6535L14.9316 0H0L30.8868 60L37.7878 46.5648L31.0104 32.6183Z\" fill=\"white\"/>\n</svg>\n","import { Props } from 'framer-motion/types/types';\nimport { LogoColor } from './logo.types';\nimport { BlackLogoIcon, WhiteLogoIcon, TealLogoIcon, BlackLogo, WhiteLogo, TealLogo } from './logos';\n\nexport const logoIconMap: Record<LogoColor, React.FC<Props>> = {\n black: BlackLogoIcon,\n white: WhiteLogoIcon,\n teal: TealLogoIcon,\n};\n\nexport const fullLogoMap: Record<LogoColor, React.FC<Props>> = {\n black: BlackLogo,\n white: WhiteLogo,\n teal: TealLogo,\n};\n","import React, { CSSProperties } from 'react';\nimport { logoIconMap, fullLogoMap } from './logo.config';\nimport { LogoType, LogoColor } from './logo.types';\n\nexport interface ILogoProps {\n type?: LogoType;\n color?: LogoColor;\n height?: number;\n width?: number;\n handleClick?: () => void;\n}\n\nconst Logo = ({ type = 'full', color = 'teal', height, width, handleClick }: ILogoProps): JSX.Element => {\n let LogoComponent;\n\n const style: CSSProperties = { height, width };\n\n if (type === 'icon') {\n LogoComponent = logoIconMap[color];\n } else {\n LogoComponent = fullLogoMap[color];\n }\n\n return <LogoComponent style={style} onClick={handleClick} />;\n};\n\nLogo.displayName = 'Logo';\n\nexport default Logo;\n"],"names":["_path","_path2","_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","this","logoIconMap","black","props","React","createElement","viewBox","fill","xmlns","d","white","teal","fullLogoMap","Logo","_a","LogoComponent","_b","type","_c","color","height","width","handleClick","style","onClick","displayName"],"mappings":"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"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var x=require("./color.record-64db0308.js"),p={xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},r={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",xsR:"0px 0px 0px 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",smR:" 0px -1px 2px rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",baseR:"0px -1px 3px rgba(0, 0, 0, 0.1), 0px -1px 2px rgba(0, 0, 0, 0.06)",mdR:"0px -4px 6px -1px rgba(0, 0, 0, 0.1), 0px -2px 4px -1px rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",lgR:"0px -10px 15px -3px rgba(0, 0, 0, 0.1), 0px -4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",xlR:"0px -20px 25px -5px rgba(0, 0, 0, 0.1), 0px -10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)","2xlR":"0px -25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},e={color:x.adaptiveColors.text.light.subtle,cursor:"pointer",fontSize:p.sm,px:"20px",py:"8px",outline:0,transitionDuration:"ultra-fast",transitionProperty:"background",transitionTimingFunction:"ease-in",_hover:{bg:x.semanticColors.background.hover},_focus:{bg:x.semanticColors.background.hover},_active:{color:x.adaptiveColors.text.light.link},_expanded:{bg:x.semanticColors.background.hover},_disabled:{opacity:.4,cursor:"not-allowed",bg:"transparent",color:x.adaptiveColors.text.light.subtle}},o={baseStyle:{item:e,list:{p:"8px 0",boxShadow:r.md,borderColor:x.colors.border.light.default}}};exports.MenuConfig=o,exports.MenuItemConfig=e,exports.fontSizes=p,exports.shadows=r;
|
|
2
|
-
//# sourceMappingURL=menu.config-0bb35e06.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"menu.config-0bb35e06.js","sources":["../src/theme/tokens/fontSizes.ts","../src/theme/tokens/shadows/shadows.config.ts","../src/components/Overlay/Menu/menu.config.tsx"],"sourcesContent":["export const fontSizes: FontSizes = {\n xs: '0.75rem',\n sm: '0.875rem',\n md: '1rem',\n lg: '1.125rem',\n xl: '1.25rem',\n '2xl': '1.5rem',\n '3xl': '1.875rem',\n '4xl': '2.25rem',\n '5xl': '3rem',\n '6xl': '3.75rem',\n '7xl': '4.5rem',\n '8xl': '6rem',\n '9xl': '8rem',\n};\n\nexport type FontSizes = {\n xs: string;\n sm: string;\n md: string;\n lg: string;\n xl: string;\n '2xl': string;\n '3xl': string;\n '4xl': string;\n '5xl': string;\n '6xl': string;\n '7xl': string;\n '8xl': string;\n '9xl': string;\n};\n","import { Shadows } from './shadows.types';\n\nexport const shadows: Shadows = {\n xs: '0 0 0 1px rgba(0, 0, 0, 0.05)',\n xsR: '0px 0px 0px 1px rgba(0, 0, 0, 0.05)',\n sm: '0 1px 2px 0 rgba(0, 0, 0, 0.05)',\n smR: ' 0px -1px 2px rgba(0, 0, 0, 0.05)',\n base: '0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)',\n baseR: '0px -1px 3px rgba(0, 0, 0, 0.1), 0px -1px 2px rgba(0, 0, 0, 0.06)',\n mdR: '0px -4px 6px -1px rgba(0, 0, 0, 0.1), 0px -2px 4px -1px rgba(0, 0, 0, 0.06)',\n md: '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)',\n lg: '0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)',\n lgR: '0px -10px 15px -3px rgba(0, 0, 0, 0.1), 0px -4px 6px -2px rgba(0, 0, 0, 0.05)',\n xl: '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)',\n xlR: '0px -20px 25px -5px rgba(0, 0, 0, 0.1), 0px -10px 10px -5px rgba(0, 0, 0, 0.04)',\n '2xl': '0 25px 50px -12px rgba(0, 0, 0, 0.25)',\n '2xlR': '0px -25px 50px -12px rgba(0, 0, 0, 0.25)',\n outline: '0 0 0 3px rgba(66, 153, 225, 0.6)',\n inner: 'inset 0 2px 4px 0 rgba(0,0,0,0.06)',\n none: 'none',\n 'dark-lg': 'rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px',\n};\n","import { ComponentStyleConfig } from '@chakra-ui/react';\nimport { semanticColors, adaptiveColors, fontSizes, shadows, colors } from 'theme/tokens';\n\nexport const MenuItemConfig = {\n color: adaptiveColors.text.light.subtle,\n cursor: 'pointer',\n fontSize: fontSizes.sm,\n px: '20px',\n py: '8px',\n outline: 0,\n transitionDuration: 'ultra-fast',\n transitionProperty: 'background',\n transitionTimingFunction: 'ease-in',\n _hover: {\n bg: semanticColors.background.hover,\n },\n _focus: {\n bg: semanticColors.background.hover,\n },\n _active: {\n color: adaptiveColors.text.light.link,\n },\n _expanded: {\n bg: semanticColors.background.hover,\n },\n _disabled: {\n opacity: 0.4,\n cursor: 'not-allowed',\n bg: 'transparent',\n color: adaptiveColors.text.light.subtle,\n },\n};\n\nexport const MenuConfig: ComponentStyleConfig = {\n baseStyle: {\n item: MenuItemConfig,\n list: {\n p: '8px 0',\n boxShadow: shadows.md,\n borderColor: colors.border.light.default,\n },\n },\n};\n"],"names":["fontSizes","xs","sm","md","lg","xl","shadows","xsR","smR","base","baseR","mdR","lgR","xlR","outline","inner","none","MenuItemConfig","color","adaptiveColors","text","light","subtle","cursor","fontSize","px","py","transitionDuration","transitionProperty","transitionTimingFunction","_hover","bg","semanticColors","background","hover","_focus","_active","link","_expanded","_disabled","opacity","MenuConfig","baseStyle","item","list","p","boxShadow","borderColor","colors","border","default"],"mappings":"yDAAaA,EAAuB,CAClCC,GAAI,UACJC,GAAI,WACJC,GAAI,OACJC,GAAI,WACJC,GAAI,UACJ,MAAO,SACP,MAAO,WACP,MAAO,UACP,MAAO,OACP,MAAO,UACP,MAAO,SACP,MAAO,OACP,MAAO,QCXIC,EAAmB,CAC9BL,GAAI,gCACJM,IAAK,sCACLL,GAAI,kCACJM,IAAK,oCACLC,KAAM,kEACNC,MAAO,oEACPC,IAAK,8EACLR,GAAI,wEACJC,GAAI,0EACJQ,IAAK,gFACLP,GAAI,4EACJQ,IAAK,kFACL,MAAO,wCACP,OAAQ,2CACRC,QAAS,oCACTC,MAAO,qCACPC,KAAM,OACN,UAAW,yGCjBAC,EAAiB,CAC5BC,MAAOC,EAAcA,eAACC,KAAKC,MAAMC,OACjCC,OAAQ,UACRC,SAAUxB,EAAUE,GACpBuB,GAAI,OACJC,GAAI,MACJZ,QAAS,EACTa,mBAAoB,aACpBC,mBAAoB,aACpBC,yBAA0B,UAC1BC,OAAQ,CACNC,GAAIC,EAAAA,eAAeC,WAAWC,OAEhCC,OAAQ,CACNJ,GAAIC,EAAAA,eAAeC,WAAWC,OAEhCE,QAAS,CACPlB,MAAOC,EAAcA,eAACC,KAAKC,MAAMgB,MAEnCC,UAAW,CACTP,GAAIC,EAAAA,eAAeC,WAAWC,OAEhCK,UAAW,CACTC,QAAS,GACTjB,OAAQ,cACRQ,GAAI,cACJb,MAAOC,EAAcA,eAACC,KAAKC,MAAMC,SAIxBmB,EAAmC,CAC9CC,UAAW,CACTC,KAAM1B,EACN2B,KAAM,CACJC,EAAG,QACHC,UAAWxC,EAAQH,GACnB4C,YAAaC,EAAMA,OAACC,OAAO5B,MAAM6B"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-bb43a522.js"),t=require("react");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=n(t),o=t.createContext({allMenuItems:[],filteredMenuItems:[],focusedItemIndex:-1,groups:[],handleOnClose:function(){throw new Error("handleOnClose(): Promise<void> not implemented")},setFilteredMenuItems:function(){throw new Error("setFilteredMenuItems(): Promise<void> not implemented")},setFocusedItemIndex:function(){throw new Error("setFocusedItemIndex(): Promise<void> not implemented")},setGroups:function(){throw new Error("setGroups(): Promise<void> not implemented")}});exports.MenuProvider=function(n){var u=n.menuItems,s=n.onClose,l=n.children,i=e.__read(t.useState(u||[]),2),d=i[0],m=i[1],a=e.__read(t.useState(null),2),c=a[0],f=a[1],I=e.__read(t.useState(-1),2),p=I[0],v=I[1],h=t.useRef(null),x=t.useRef([]),M=t.useCallback((function(){var e=null==u?void 0:u.filter((function(e){return!0===e.isSelected}));v(-1),s&&e&&s(e)}),[u,s]);return t.useEffect((function(){(null==u?void 0:u.length)&&m(u)}),[u]),r.default.createElement(o.Provider,{value:{allMenuItems:u,filteredMenuItems:d,focusedItemIndex:p,groups:c,menuItemRefs:x,handleOnClose:M,searchInputRef:h,setFilteredMenuItems:m,setFocusedItemIndex:v,setGroups:f}},l)},exports.useMenuContext=function(){return t.useContext(o)};
|
|
2
|
-
//# sourceMappingURL=menu.context-be7319dc.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"menu.context-be7319dc.js","sources":["../src/components/Overlay/Menu/context/menu.context.tsx"],"sourcesContent":["import React, {\n ReactNode,\n useState,\n useContext,\n createContext,\n useRef,\n Dispatch,\n SetStateAction,\n MutableRefObject,\n useCallback,\n useEffect,\n} from 'react';\nimport { MenuItemProps } from 'components/Overlay/Menu/components/MenuItem/menuItem.component';\n\nexport interface IMenuContext {\n allMenuItems?: MenuItemProps[];\n filteredMenuItems?: MenuItemProps[];\n focusedItemIndex: number;\n groups: (string | undefined)[] | null;\n menuItemRefs?: MutableRefObject<HTMLDivElement[] | null[]>;\n handleOnClose: () => void;\n searchInputRef?: MutableRefObject<HTMLInputElement | null>;\n setFilteredMenuItems: Dispatch<SetStateAction<MenuItemProps[]>>;\n setFocusedItemIndex: Dispatch<SetStateAction<number>>;\n setGroups: Dispatch<SetStateAction<(string | undefined)[] | null>>;\n}\n\n// TODO: Figure out how to document this functionality\n\nexport const MenuContext = createContext<IMenuContext>({\n allMenuItems: [],\n filteredMenuItems: [],\n focusedItemIndex: -1,\n groups: [],\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n handleOnClose: (): Promise<void> => {\n throw new Error('handleOnClose(): Promise<void> not implemented');\n },\n setFilteredMenuItems: (): Promise<void> => {\n throw new Error('setFilteredMenuItems(): Promise<void> not implemented');\n },\n setFocusedItemIndex: (): Promise<void> => {\n throw new Error('setFocusedItemIndex(): Promise<void> not implemented');\n },\n setGroups: (): Promise<void> => {\n throw new Error('setGroups(): Promise<void> not implemented');\n },\n});\n\nexport const useMenuContext = (): IMenuContext => useContext<IMenuContext>(MenuContext);\n\nexport interface MenuProviderProps {\n menuItems?: MenuItemProps[];\n onClose?: (value: (MenuItemProps | undefined)[]) => void;\n isMultiSelect?: boolean;\n children?: ReactNode;\n}\n\nconst MenuProvider = ({ menuItems, onClose, children }: MenuProviderProps): JSX.Element => {\n const [filteredMenuItems, setFilteredMenuItems] = useState<MenuItemProps[]>(menuItems || []);\n const [groups, setGroups] = useState<(string | undefined)[] | null>(null);\n const [focusedItemIndex, setFocusedItemIndex] = useState<number>(-1);\n\n const searchInputRef = useRef<HTMLInputElement | null>(null);\n const menuItemRefs = useRef<HTMLDivElement[] | null[]>([]);\n\n const handleOnClose = useCallback(() => {\n const selectedItems = menuItems?.filter((item) => item.isSelected === true);\n setFocusedItemIndex(-1);\n\n if (onClose && selectedItems) {\n onClose(selectedItems);\n }\n }, [menuItems, onClose]);\n\n useEffect(() => {\n if (menuItems?.length) {\n setFilteredMenuItems(menuItems);\n }\n }, [menuItems]);\n\n return (\n <MenuContext.Provider\n value={{\n allMenuItems: menuItems,\n filteredMenuItems,\n focusedItemIndex,\n groups,\n menuItemRefs,\n handleOnClose,\n searchInputRef,\n setFilteredMenuItems,\n setFocusedItemIndex,\n setGroups,\n }}\n >\n {children}\n </MenuContext.Provider>\n );\n};\n\nexport default MenuProvider;\n"],"names":["MenuContext","createContext","allMenuItems","filteredMenuItems","focusedItemIndex","groups","handleOnClose","Error","setFilteredMenuItems","setFocusedItemIndex","setGroups","_a","menuItems","onClose","children","_b","__read","useState","_c","_d","searchInputRef","useRef","menuItemRefs","useCallback","selectedItems","filter","item","isSelected","useEffect","length","React","createElement","Provider","value","useContext"],"mappings":"4JA6BaA,EAAcC,EAAAA,cAA4B,CACrDC,aAAc,GACdC,kBAAmB,GACnBC,kBAAmB,EACnBC,OAAQ,GAERC,cAAe,WACb,MAAM,IAAIC,MAAM,mDAElBC,qBAAsB,WACpB,MAAM,IAAID,MAAM,0DAElBE,oBAAqB,WACnB,MAAM,IAAIF,MAAM,yDAElBG,UAAW,WACT,MAAM,IAAIH,MAAM,sEAaC,SAACI,GAAE,IAAAC,cAAWC,EAAOF,EAAAE,QAAEC,EAAQH,EAAAG,SAC5CC,EAAAC,EAAAA,OAA4CC,EAAAA,SAA0BL,GAAa,IAAG,GAArFT,EAAiBY,EAAA,GAAEP,OACpBU,EAAAF,EAAAA,OAAsBC,EAAQA,SAAgC,MAAK,GAAlEZ,EAAMa,EAAA,GAAER,OACTS,EAAAH,EAAAA,OAA0CC,EAAQA,UAAU,GAAE,GAA7Db,EAAgBe,EAAA,GAAEV,OAEnBW,EAAiBC,SAAgC,MACjDC,EAAeD,SAAkC,IAEjDf,EAAgBiB,EAAAA,aAAY,WAChC,IAAMC,EAAgBZ,MAAAA,OAAA,EAAAA,EAAWa,QAAO,SAACC,GAAS,OAAoB,IAApBA,EAAKC,cACvDlB,GAAqB,GAEjBI,GAAWW,GACbX,EAAQW,KAET,CAACZ,EAAWC,IAQf,OANAe,EAAAA,WAAU,YACJhB,MAAAA,SAAAA,EAAWiB,SACbrB,EAAqBI,KAEtB,CAACA,IAGFkB,EAAC,QAAAC,cAAA/B,EAAYgC,SAAQ,CACnBC,MAAO,CACL/B,aAAcU,EACdT,kBAAiBA,EACjBC,iBAAgBA,EAChBC,OAAMA,EACNiB,aAAYA,EACZhB,cAAaA,EACbc,eAAcA,EACdZ,qBAAoBA,EACpBC,oBAAmBA,EACnBC,UAASA,IAGVI,2BA/CuB,WAAoB,OAAAoB,aAAyBlC"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-bb43a522.js"),t=require("react"),n=require("./icon.component-8f0cedca.js"),r=require("@chakra-ui/react"),a=require("./button.component-886dd40b.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=u(t);exports.MenuButton=function(u){var c=u.leftElement,o=u.leftIconName,i=u.rightIconName,l=void 0===i?"chevronDown":i,m=u.showRightIcon,f=void 0===m||m,x=u.size,d=u.text,p=u.variant,h=e.__rest(u,["leftElement","leftIconName","rightIconName","showRightIcon","size","text","variant"]),_=o&&!d,v=t.useMemo((function(){if(_)switch(x){case"xs":return"4px";case"sm":return"6px";default:return"8px"}switch(x){case"xs":return"5px 8px";case"sm":return"8px 12px";case"md":return"10px 16px";default:return"12px 20px"}}),[_,x]),B=t.useMemo((function(){if(_)switch(x){case"xs":return"sm";case"sm":return"md";case"md":return"lg";default:return"xl"}return x||"md"}),[_,x]),g=t.useMemo((function(){if(_)return"0px";switch(x){case"xs":case"sm":return"4px";default:return"8px"}}),[_,x]);return s.default.createElement(r.MenuButton,e.__assign({as:a.Button,variant:p,size:x,position:"relative"},h,{className:"MenuButton",p:v,lineHeight:0,_active:{transform:"none"}}),s.default.createElement(r.HStack,{spacing:g,className:"MenuButton__ContentContainer"},c&&c,o&&s.default.createElement(r.Box,{className:"MenuButton__LeftIcon"},s.default.createElement(n.Icon,{name:o,size:B})),d&&s.default.createElement(r.Box,{className:"MenuButton__Text"},d),f&&s.default.createElement(r.Box,{className:"MenuButton__RightIcon"},s.default.createElement(n.Icon,{name:l,size:"lg"===x?"sm":"xs"}))))};
|
|
2
|
-
//# sourceMappingURL=menuButton.component-4af67844.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"menuButton.component-4af67844.js","sources":["../src/components/Overlay/Menu/components/MenuButton/menuButton.component.tsx"],"sourcesContent":["import React, { ReactNode, useMemo } from 'react';\nimport Icon from 'components/MediaAndIcons/Icon';\nimport { Box, HStack } from 'components/Layout';\nimport { MenuButton as CMenuButton, MenuButtonProps as CMenuButtonProps } from '@chakra-ui/react';\nimport Button from 'components/Forms/Button';\nimport { ButtonSizeType, ButtonVariantType } from 'components/Forms/Button/button.types';\nimport { IconsSize, IconName } from 'components/MediaAndIcons/Icon/icon.types';\n\nexport interface MenuButtonProps extends CMenuButtonProps {\n leftElement?: ReactNode;\n leftIconName?: IconName;\n rightIconName?: IconName;\n showRightIcon?: boolean;\n size?: ButtonSizeType;\n text?: string;\n variant?: ButtonVariantType;\n}\n\nconst MenuButton = ({\n leftElement,\n leftIconName,\n rightIconName = 'chevronDown',\n showRightIcon = true,\n size,\n text,\n variant,\n ...rest\n}: MenuButtonProps): JSX.Element => {\n const isIconButton = leftIconName && !text;\n const buttonPadding = useMemo((): string => {\n if (isIconButton) {\n switch (size) {\n case 'xs':\n return '4px';\n case 'sm':\n return '6px';\n default:\n return '8px';\n }\n }\n\n switch (size) {\n case 'xs':\n return '5px 8px';\n case 'sm':\n return '8px 12px';\n case 'md':\n return '10px 16px';\n default:\n return '12px 20px';\n }\n }, [isIconButton, size]);\n\n const iconSize = useMemo((): IconsSize => {\n if (isIconButton) {\n switch (size) {\n case 'xs':\n return 'sm';\n case 'sm':\n return 'md';\n case 'md':\n return 'lg';\n default:\n return 'xl';\n }\n }\n\n return size || 'md';\n }, [isIconButton, size]);\n\n const textSpacing = useMemo((): string => {\n if (isIconButton) {\n return '0px';\n }\n\n switch (size) {\n case 'xs':\n case 'sm':\n return '4px';\n default:\n return '8px';\n }\n }, [isIconButton, size]);\n\n return (\n <CMenuButton\n as={Button}\n variant={variant}\n size={size}\n position=\"relative\"\n {...rest}\n className=\"MenuButton\"\n p={buttonPadding}\n lineHeight={0}\n _active={{ transform: 'none' }}\n >\n <HStack spacing={textSpacing} className=\"MenuButton__ContentContainer\">\n {leftElement && leftElement}\n {leftIconName && (\n <Box className=\"MenuButton__LeftIcon\">\n <Icon name={leftIconName} size={iconSize} />\n </Box>\n )}\n {text && <Box className=\"MenuButton__Text\">{text}</Box>}\n {showRightIcon && (\n <Box className=\"MenuButton__RightIcon\">\n <Icon name={rightIconName} size={size === 'lg' ? 'sm' : 'xs'} />\n </Box>\n )}\n </HStack>\n </CMenuButton>\n );\n};\n\nexport default MenuButton;\n"],"names":["_a","leftElement","leftIconName","_b","rightIconName","_c","showRightIcon","size","text","variant","rest","__rest","isIconButton","buttonPadding","useMemo","iconSize","textSpacing","React","createElement","CMenuButton","MenuButton","as","Button","position","className","p","lineHeight","_active","transform","HStack","spacing","Box","Icon","name"],"mappings":"mSAkBmB,SAACA,GAClB,IAAAC,EAAWD,EAAAC,YACXC,iBACAC,EAAAH,EAAAI,cAAAA,OAAgB,IAAAD,EAAA,cAAaA,EAC7BE,kBAAAC,OAAgB,IAAAD,GAAIA,EACpBE,EAAIP,EAAAO,KACJC,EAAIR,EAAAQ,KACJC,EAAOT,EAAAS,QACJC,EAAIC,EAAAA,OAAAX,EARW,wFAUZY,EAAeV,IAAiBM,EAChCK,EAAgBC,EAAAA,SAAQ,WAC5B,GAAIF,EACF,OAAQL,GACN,IAAK,KACH,MAAO,MACT,IAAK,KACH,MAAO,MACT,QACE,MAAO,MAIb,OAAQA,GACN,IAAK,KACH,MAAO,UACT,IAAK,KACH,MAAO,WACT,IAAK,KACH,MAAO,YACT,QACE,MAAO,eAEV,CAACK,EAAcL,IAEZQ,EAAWD,EAAAA,SAAQ,WACvB,GAAIF,EACF,OAAQL,GACN,IAAK,KACH,MAAO,KACT,IAAK,KACH,MAAO,KACT,IAAK,KACH,MAAO,KACT,QACE,MAAO,KAIb,OAAOA,GAAQ,OACd,CAACK,EAAcL,IAEZS,EAAcF,EAAAA,SAAQ,WAC1B,GAAIF,EACF,MAAO,MAGT,OAAQL,GACN,IAAK,KACL,IAAK,KACH,MAAO,MACT,QACE,MAAO,SAEV,CAACK,EAAcL,IAElB,OACEU,UAACC,cAAAC,EAAWC,uBACVC,GAAIC,EAAMA,OACVb,QAASA,EACTF,KAAMA,EACNgB,SAAS,YACLb,EAAI,CACRc,UAAU,aACVC,EAAGZ,EACHa,WAAY,EACZC,QAAS,CAAEC,UAAW,UAEtBX,EAAC,QAAAC,cAAAW,UAAOC,QAASd,EAAaQ,UAAU,gCACrCvB,GAAeA,EACfC,GACCe,EAAA,QAAAC,cAACa,EAAGA,IAAC,CAAAP,UAAU,wBACbP,UAACC,cAAAc,EAAAA,KAAK,CAAAC,KAAM/B,EAAcK,KAAMQ,KAGnCP,GAAQS,wBAACc,EAAAA,IAAG,CAACP,UAAU,oBAAoBhB,GAC3CF,GACCW,EAAA,QAAAC,cAACa,EAAGA,IAAC,CAAAP,UAAU,yBACbP,EAAAA,QAACC,cAAAc,EAAAA,KAAK,CAAAC,KAAM7B,EAAeG,KAAe,OAATA,EAAgB,KAAO"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-bb43a522.js"),r=require("react"),n=require("@chakra-ui/react"),t=require("./menu.context-be7319dc.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=u(r);exports.MenuContainer=function(r){var u=r.children;r.onClose;var o=e.__rest(r,["children","onClose"]),s=t.useMenuContext().handleOnClose;return a.default.createElement(n.Menu,e.__assign({onClose:s},o),u)};
|
|
2
|
-
//# sourceMappingURL=menuContainer.component-60c21cb9.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"menuContainer.component-60c21cb9.js","sources":["../src/components/Overlay/Menu/components/MenuContainer/menuContainer.component.tsx"],"sourcesContent":["import React, { ReactNode } from 'react';\nimport { Menu as CMenu, MenuProps as CMenuProps } from '@chakra-ui/react';\nimport { useMenuContext } from 'components/Overlay/Menu/context/menu.context';\nimport { MenuItemProps } from 'components/Overlay/Menu/components/MenuItem/menuItem.component';\n\nexport interface MenuContainerProps extends Omit<CMenuProps, 'children' | 'onClose'> {\n children?: ReactNode;\n onClose?: (value: (MenuItemProps | undefined)[]) => void;\n}\n\nconst MenuContainer = ({ children, onClose, ...rest }: MenuContainerProps): JSX.Element => {\n const { handleOnClose } = useMenuContext();\n\n return (\n <CMenu onClose={handleOnClose} {...rest}>\n {children}\n </CMenu>\n );\n};\n\nexport default MenuContainer;\n"],"names":["_a","children","rest","__rest","handleOnClose","useMenuContext","React","createElement","CMenu","Menu","__assign","onClose"],"mappings":"wPAUsB,SAACA,GAAE,IAAAC,2BAAsBC,EAAxBC,EAAAA,OAAAH,EAAA,CAAA,WAAA,YACbI,EAAkBC,iCAE1B,OACEC,UAAAC,cAACC,EAAKC,KAAAC,WAAA,CAACC,QAASP,GAAmBF,GAChCD"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-bb43a522.js"),t=require("react"),n=require("@chakra-ui/react"),l=require("./useTheme.js"),a=require("./menu.config-0bb35e06.js"),r=require("./truncatedText.component-be4ee0ae.js"),o=require("./text.component-eed5a904.js"),c=require("./useAdaptiveColorMap-58a2aac7.js"),i=require("./icon.component-8f0cedca.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=u(t);exports.MenuItem=function(u){var d=u.canSelectAll,m=u.children,f=u.colorToken;u.groupLabel;var b=u.handleKeyboardNavigation,x=void 0===b?function(){}:b,g=u.isDisabled,h=u.isMultiSelect;u.isPlaceholder;var p=u.closeOnSelect,v=void 0===p?!h:p,I=u.isSelected,S=u.itemIndex,k=void 0===S?"0":S,E=u.label,M=u.leftElement,_=u.menuItemRefs,T=u.onSelect,j=u.shouldRetainSelection,q=void 0!==j&&j,C=u.shouldTruncateText,L=u.value,y=e.__rest(u,["canSelectAll","children","colorToken","groupLabel","handleKeyboardNavigation","isDisabled","isMultiSelect","isPlaceholder","closeOnSelect","isSelected","itemIndex","label","leftElement","menuItemRefs","onSelect","shouldRetainSelection","shouldTruncateText","value"]),N=l.default().colors,R=n.useMenuState().onClose,w=c.useAdaptiveColorMap(N.text,f||"default"),A=t.useCallback((function(e){e.stopPropagation(),g||(L&&T&&T({label:E,leftElement:M,value:L}),v&&R())}),[L,T,R,v,g,E,M]),D=t.useMemo((function(){return f?w:I&&q&&!h?N.text.light.link:N.text.light.default}),[I,q,h,w,f,N]);return s.default.createElement(n.Box,e.__assign({},a.MenuItemConfig,{bg:I&&q&&!h?N.background.hover:"",className:"MenuList__Item",onClick:A,onKeyDown:function(e){return x(e,!1)},tabIndex:parseInt(d?k+=2:k),ref:function(e){return _&&k?_.current[parseInt(k)]=e:null},disabled:g},y),m||s.default.createElement(n.HStack,{align:"center",spacing:3,minH:5,color:D},h&&s.default.createElement(n.Flex,{w:4,h:4,className:"MenuList__ItemCheckbox",align:"center",justify:"center",color:N.status.success},I?s.default.createElement(i.Icon,{name:"checkmarkCircle",size:"sm"}):s.default.createElement(n.Box,{m:"2px",w:3,h:3,borderRadius:"100%",bg:N.background.grayDark})),M&&s.default.createElement(n.Flex,{align:"center",justify:"center",className:"MenuList__ItemLeftElement"},M),s.default.createElement(n.Box,{className:"MenuList__ItemLabel",position:"relative",w:"100%"},"string"==typeof E?C?s.default.createElement(r.TruncatedText,{color:D,textContent:E||"",noOfLines:1}):s.default.createElement(o.Text,{color:D},E):E)))};
|
|
2
|
-
//# sourceMappingURL=menuItem.component-f3306361.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"menuItem.component-f3306361.js","sources":["../src/components/Overlay/Menu/components/MenuItem/menuItem.component.tsx"],"sourcesContent":["import React, {\n ReactNode,\n MutableRefObject,\n useCallback,\n MouseEvent,\n KeyboardEvent,\n useMemo,\n ReactElement,\n} from 'react';\nimport { Flex, useMenuState } from '@chakra-ui/react';\nimport { Box, HStack } from 'components/Layout';\nimport useTheme from 'hooks/useTheme';\nimport { MenuItemConfig } from 'components/Overlay/Menu/menu.config';\nimport { TextColor } from 'components/Typography/typography.types';\nimport TruncatedText from 'components/Typography/TruncatedText';\nimport Text from 'components/Typography/Text';\nimport useAdaptiveColorMap from 'hooks/useAdaptiveColorMap';\nimport Icon from 'components/MediaAndIcons/Icon';\n\nexport interface MenuItemProps {\n canSelectAll?: boolean;\n children?: ReactNode;\n closeOnSelect?: boolean;\n groupLabel?: string;\n handleKeyboardNavigation?: (e: KeyboardEvent<HTMLDivElement>, elementIsInputField: boolean) => void;\n isDisabled?: boolean;\n isMultiSelect?: boolean;\n isSelected?: boolean;\n itemIndex?: string;\n label?: string | ReactElement;\n leftElement?: ReactNode;\n menuItemRefs?: MutableRefObject<HTMLDivElement[] | null[]>;\n onSelect?: (selectedItem: MenuItemProps) => void;\n shouldRetainSelection?: boolean;\n shouldTruncateText?: boolean;\n value?: string;\n colorToken?: TextColor;\n isPlaceholder?: boolean;\n}\n\nconst MenuItem = ({\n canSelectAll,\n children,\n colorToken,\n groupLabel,\n handleKeyboardNavigation = (): void => {},\n isDisabled,\n isMultiSelect,\n isPlaceholder,\n closeOnSelect = !isMultiSelect,\n isSelected,\n itemIndex = '0',\n label,\n leftElement,\n menuItemRefs,\n onSelect,\n shouldRetainSelection = false,\n shouldTruncateText,\n value,\n ...rest\n}: MenuItemProps): JSX.Element => {\n const { colors } = useTheme();\n const { onClose } = useMenuState();\n const adaptiveColor = useAdaptiveColorMap<TextColor>(colors.text, colorToken ? colorToken : 'default');\n\n const handleSelect = useCallback(\n (e: MouseEvent<HTMLDivElement>) => {\n e.stopPropagation();\n\n if (isDisabled) return;\n\n if (value && onSelect) {\n onSelect({\n label,\n leftElement,\n value,\n });\n }\n\n if (closeOnSelect) {\n onClose();\n }\n },\n [value, onSelect, onClose, closeOnSelect, isDisabled, label, leftElement],\n );\n\n const fontColor = useMemo(() => {\n if (colorToken) {\n return adaptiveColor;\n }\n\n return isSelected && shouldRetainSelection && !isMultiSelect ? colors.text.light.link : colors.text.light.default;\n }, [isSelected, shouldRetainSelection, isMultiSelect, adaptiveColor, colorToken, colors]);\n\n return (\n <Box\n {...MenuItemConfig}\n bg={isSelected && shouldRetainSelection && !isMultiSelect ? colors.background.hover : ''}\n className=\"MenuList__Item\"\n onClick={handleSelect}\n onKeyDown={(e: KeyboardEvent<HTMLDivElement>): void => handleKeyboardNavigation(e, false)}\n tabIndex={parseInt(canSelectAll ? (itemIndex += 2) : itemIndex)}\n ref={(el): HTMLDivElement | null =>\n menuItemRefs && itemIndex ? (menuItemRefs.current[parseInt(itemIndex)] = el) : null\n }\n // @ts-ignore\n disabled={isDisabled}\n {...rest}\n >\n {children ? (\n children\n ) : (\n <HStack align=\"center\" spacing={3} minH={5} color={fontColor}>\n {isMultiSelect && (\n <Flex\n w={4}\n h={4}\n className=\"MenuList__ItemCheckbox\"\n align=\"center\"\n justify=\"center\"\n color={colors.status.success}\n >\n {isSelected ? (\n <Icon name=\"checkmarkCircle\" size=\"sm\" />\n ) : (\n <Box m=\"2px\" w={3} h={3} borderRadius=\"100%\" bg={colors.background.grayDark} />\n )}\n </Flex>\n )}\n {leftElement && (\n <Flex align=\"center\" justify=\"center\" className=\"MenuList__ItemLeftElement\">\n {leftElement}\n </Flex>\n )}\n <Box className=\"MenuList__ItemLabel\" position=\"relative\" w=\"100%\">\n {typeof label === 'string' ? (\n shouldTruncateText ? (\n <TruncatedText color={fontColor} textContent={label || ''} noOfLines={1} />\n ) : (\n <Text color={fontColor}>{label}</Text>\n )\n ) : (\n label\n )}\n </Box>\n </HStack>\n )}\n </Box>\n );\n};\n\nexport default MenuItem;\n"],"names":["_a","canSelectAll","children","colorToken","groupLabel","_b","handleKeyboardNavigation","isDisabled","isMultiSelect","isPlaceholder","_c","closeOnSelect","isSelected","_d","itemIndex","label","leftElement","menuItemRefs","onSelect","_e","shouldRetainSelection","shouldTruncateText","value","rest","__rest","colors","useTheme","onClose","useMenuState","adaptiveColor","useAdaptiveColorMap","text","handleSelect","useCallback","e","stopPropagation","fontColor","useMemo","light","link","default","React","createElement","Box","__assign","MenuItemConfig","bg","background","hover","className","onClick","onKeyDown","tabIndex","parseInt","ref","el","current","disabled","HStack","align","spacing","minH","color","Flex","w","h","justify","status","success","Icon","name","size","m","borderRadius","grayDark","position","TruncatedText","textContent","noOfLines","Text"],"mappings":"mcAwCiB,SAACA,GAChB,IAAAC,EAAYD,EAAAC,aACZC,aACAC,EAAUH,EAAAG,WACAH,EAAAI,WACV,IAAAC,EAAyCL,EAAAM,yBAAzCA,OAA2B,IAAAD,EAAA,aAAcA,EACzCE,EAAUP,EAAAO,WACVC,kBACaR,EAAAS,cAAA,IACbC,kBAAAC,OAAgB,IAAAD,GAACF,EAAaE,EAC9BE,EAAUZ,EAAAY,WACVC,EAAeb,EAAAc,UAAfA,OAAS,IAAAD,EAAG,IAAGA,EACfE,EAAKf,EAAAe,MACLC,EAAWhB,EAAAgB,YACXC,iBACAC,EAAQlB,EAAAkB,SACRC,0BAAAC,OAAwB,IAAAD,KACxBE,EAAkBrB,EAAAqB,mBAClBC,EAAKtB,EAAAsB,MACFC,EAAIC,EAAAA,OAAAxB,EAnBS,6QAqBRyB,EAAWC,mBACXC,EAAYC,yBACdC,EAAgBC,EAAAA,oBAA+BL,EAAOM,KAAM5B,GAA0B,WAEtF6B,EAAeC,eACnB,SAACC,GACCA,EAAEC,kBAEE5B,IAEAe,GAASJ,GACXA,EAAS,CACPH,MAAKA,EACLC,YAAWA,EACXM,MAAKA,IAILX,GACFgB,OAGJ,CAACL,EAAOJ,EAAUS,EAAShB,EAAeJ,EAAYQ,EAAOC,IAGzDoB,EAAYC,EAAAA,SAAQ,WACxB,OAAIlC,EACK0B,EAGFjB,GAAcQ,IAA0BZ,EAAgBiB,EAAOM,KAAKO,MAAMC,KAAOd,EAAOM,KAAKO,MAAME,UACzG,CAAC5B,EAAYQ,EAAuBZ,EAAeqB,EAAe1B,EAAYsB,IAEjF,OACEgB,EAAAA,QAAAC,cAACC,EAAGA,IAAAC,EAAAA,SAAA,GACEC,EAAAA,eACJ,CAAAC,GAAIlC,GAAcQ,IAA0BZ,EAAgBiB,EAAOsB,WAAWC,MAAQ,GACtFC,UAAU,iBACVC,QAASlB,EACTmB,UAAW,SAACjB,GAA2C,OAAA5B,EAAyB4B,GAAG,IACnFkB,SAAUC,SAASpD,EAAgBa,GAAa,EAAKA,GACrDwC,IAAK,SAACC,GACJ,OAAAtC,GAAgBH,EAAaG,EAAauC,QAAQH,SAASvC,IAAcyC,EAAM,MAGjFE,SAAUlD,GACNgB,GAEHrB,GAGCuC,EAAC,QAAAC,cAAAgB,EAAAA,OAAO,CAAAC,MAAM,SAASC,QAAS,EAAGC,KAAM,EAAGC,MAAO1B,GAChD5B,GACCiC,EAAAA,QAAAC,cAACqB,OAAI,CACHC,EAAG,EACHC,EAAG,EACHhB,UAAU,yBACVU,MAAM,SACNO,QAAQ,SACRJ,MAAOrC,EAAO0C,OAAOC,SAEpBxD,EACC6B,wBAAC4B,EAAAA,KAAI,CAACC,KAAK,kBAAkBC,KAAK,OAElC9B,wBAACE,EAAGA,IAAA,CAAC6B,EAAE,MAAMR,EAAG,EAAGC,EAAG,EAAGQ,aAAa,OAAO3B,GAAIrB,EAAOsB,WAAW2B,YAIxE1D,GACCyB,EAAAA,QAAAC,cAACqB,EAAIA,KAAC,CAAAJ,MAAM,SAASO,QAAQ,SAASjB,UAAU,6BAC7CjC,GAGLyB,EAAA,QAAAC,cAACC,MAAG,CAACM,UAAU,sBAAsB0B,SAAS,WAAWX,EAAE,QACvC,iBAAVjD,EACNM,EACEoB,EAAAA,sBAACmC,EAAaA,cAAA,CAACd,MAAO1B,EAAWyC,YAAa9D,GAAS,GAAI+D,UAAW,IAEtErC,EAAC,QAAAC,cAAAqC,EAAAA,MAAKjB,MAAO1B,GAAYrB,GAC1B"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-bb43a522.js"),t=require("react"),l=require("@chakra-ui/react"),n=require("./heading.component-8f64b1a8.js"),r=require("./text.component-eed5a904.js"),a=require("./menuItem.component-f3306361.js"),u=require("./textInput.component-ee159a0c.js"),i=require("./button.component-886dd40b.js"),o=require("./menu.context-be7319dc.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=c(t),d=function(e){var n=e.handleKeyboardNavigation,r=e.menuItems,a=e.onSearchCallback,i=e.searchInputRef,o=e.setFilteredMenuItems,c=e.placeholder,d=void 0===c?"Search...":c,f=l.useMenuState().isOpen,m=t.useCallback((function(e){var t=e.target.value;if(""!==t&&t){var l=r.filter((function(e){var l,n="string"==typeof e.label?e.label:null===(l=e.label)||void 0===l?void 0:l.key;return null==n?void 0:n.toLowerCase().includes(t.toLowerCase())}));o(l)}else o(r);a&&a(e)}),[r,a,o]);return t.useEffect((function(){var e;return f&&(e=setTimeout((function(){var e;null===(e=null==i?void 0:i.current)||void 0===e||e.focus()}),200)),function(){return clearTimeout(e)}}),[i,f]),s.default.createElement(u.TextInput,{className:"MenuList__SearchBar",placeholder:d,onChange:m,mt:1,onKeyDown:function(e){return n(e,!0)},size:"sm",ref:i})},f=function(e){var t=e.groupName,n=e.handleToggleAllItems,r=e.hasSelectedItems;return e.isGrouped?s.default.createElement(l.Box,{textAlign:"right",w:"50%",className:"MenuListItem__SelectAllButton"},r?s.default.createElement(i.Button,{variant:"ghostNeutral",iconName:"arrowCircle",size:"xs",onClick:function(){return n({groupName:t,clear:!0})},isDisabled:!r},"Clear all"):s.default.createElement(i.Button,{variant:"ghost",size:"xs",onClick:function(){return n({groupName:t,clear:!1})}},"Select all")):s.default.createElement(l.Box,{mt:"8px",className:"MenuList__SelectAllButtons"},s.default.createElement(l.Flex,{justifyContent:"space-between"},s.default.createElement(i.Button,{variant:"ghost",size:"xs",onClick:function(){return n({clear:!1})}},"Select all"),s.default.createElement(i.Button,{variant:"ghostNeutral",iconName:"arrowCircle",size:"xs",onClick:function(){return n({clear:!0})},isDisabled:!r},"Clear all")))};exports.MenuList=function(u){var i=u.canSelectAll,c=void 0!==i&&i,m=u.canSelectGroups,v=void 0!==m&&m,p=u.children,h=u.isGrouped,S=void 0!==h&&h,x=u.isMatchWidthSet,g=u.isMultiSelect,b=void 0!==g&&g,_=u.isSearchable,I=void 0!==_&&_,E=u.menuItems,k=u.onSelect,M=u.onSelectAll,A=u.searchPlaceholder,y=u.shouldRetainSelection,N=void 0!==y&&y,C=u.shouldTruncateText,w=void 0===C||C,T=u.minW,B=void 0===T?"240px":T,L=u.maxW,G=u.maxH,j=void 0===G?"480px":G,q=e.__rest(u,["canSelectAll","canSelectGroups","children","isGrouped","isMatchWidthSet","isMultiSelect","isSearchable","menuItems","onSelect","onSelectAll","searchPlaceholder","shouldRetainSelection","shouldTruncateText","minW","maxW","maxH"]),D=o.useMenuContext(),R=D.filteredMenuItems,W=D.setFilteredMenuItems,z=D.allMenuItems,F=D.groups,H=D.setGroups,K=D.focusedItemIndex,O=D.setFocusedItemIndex,P=D.searchInputRef,U=D.menuItemRefs,J=t.useCallback((function(e){var t,l;if(null==U?void 0:U.current){var n=0===K,r=K===(null==U?void 0:U.current.length)-1,a=-1;if("ArrowDown"===e)if(r){if(I)return null===(t=null==P?void 0:P.current)||void 0===t||t.focus(),void O(-1);a=0}else a=K+1;else if("ArrowUp"===e)if(n){if(I)return null===(l=null==P?void 0:P.current)||void 0===l||l.focus(),void O(-1);a=U.current.length-1}else a=K-1;var u=null==U?void 0:U.current[a];u?(null==u||u.focus(),O(a)):O(-1)}}),[K,I,U,P,O]),Q=t.useCallback((function(e,t){e.persist(),(null==U?void 0:U.current)&&("ArrowDown"!==e.key&&"Tab"!==e.key||J("ArrowDown"),"ArrowUp"===e.key&&J("ArrowUp"),"Enter"===e.key&&(e.preventDefault(),e.target.click()))}),[J,U]),V=t.useCallback((function(t,l){if(R&&z){var n=e.__spreadArray([],e.__read(R),!1),r=n.find((function(e){return e.value===t.value}));b&&r&&(r.isSelected=!r.isSelected),W(n);var a=z.filter((function(e){return e.isSelected}));k&&r&&k(r,a),l&&r&&l(r,a)}}),[z,R,b,k,W]),X=t.useCallback((function(t){var l=t.groupName,n=t.clear,r=void 0!==n&&n;if(R&&z){var a=e.__spreadArray([],e.__read(R),!1),u=[];a.forEach((function(e){l?l===e.groupLabel&&(e.isSelected=!r,e.value&&e.isSelected&&u.push(e.value)):(e.isSelected=!r,e.value&&e.isSelected&&u.push(e.value))})),W(a),M&&M(z.filter((function(e){return e.isSelected})))}}),[R,z,M,W]);t.useEffect((function(){if(S){var t=e.__spreadArray([],e.__read(new Set(null==R?void 0:R.map((function(e){return e.groupLabel})))),!1);t.length&&H(t)}}),[R,S,H]);var Y=t.useCallback((function(e,t){return e.isPlaceholder?s.default.createElement(s.default.Fragment,{key:e.value}):s.default.createElement(a.MenuItem,{canSelectAll:c,children:e.children,closeOnSelect:e.closeOnSelect,colorToken:e.colorToken,handleKeyboardNavigation:Q,isDisabled:e.isDisabled,isMultiSelect:b,isSelected:e.isSelected,itemIndex:t.toString(),key:e.value,label:e.label,leftElement:e.leftElement,menuItemRefs:U,onSelect:function(t){return V(t,e.onSelect)},shouldRetainSelection:N,shouldTruncateText:w,value:e.value})}),[Q,V,b,U,N,w,c]);return x||(L="320px"),p?s.default.createElement(l.MenuList,e.__assign({},q),p):s.default.createElement(l.MenuList,e.__assign({className:"MeuList"},q,{maxW:L||"unset",maxH:j,minW:B,overflow:"hidden auto"}),(I||c&&b)&&s.default.createElement(l.Box,{className:"MenuList__Header",m:"0 12px 8px"},I&&s.default.createElement(d,{handleKeyboardNavigation:Q,menuItems:E||[],searchInputRef:P,setFilteredMenuItems:W,placeholder:A}),c&&b&&s.default.createElement(f,{handleToggleAllItems:X,hasSelectedItems:Boolean(null==R?void 0:R.find((function(e){return e.isSelected}))),isGrouped:!1})),s.default.createElement(l.Box,{className:"MenuList__Body"},(null==R?void 0:R.length)?S?null==F?void 0:F.map((function(e,t){var r=null==R?void 0:R.filter((function(t){return t.groupLabel===e}));return s.default.createElement(l.Box,{className:"MenuList__Group",key:"".concat(e||"noGroup","-").concat(t)},e&&s.default.createElement(l.Flex,{minH:8,pt:4,pr:3,pb:1,pl:5,justify:"space-between",align:"center"},s.default.createElement(l.Box,{textAlign:"left",className:"MenuList__GroupTitle"},s.default.createElement(n.Heading,{size:"xs"},e)),b&&v&&s.default.createElement(f,{handleToggleAllItems:X,hasSelectedItems:Boolean(null==r?void 0:r.find((function(e){return e.isSelected}))),isGrouped:!0,groupName:e})),null==r?void 0:r.map((function(e,t){return Y(e,t)})))})):null==R?void 0:R.map((function(e,t){return Y(e,t)})):s.default.createElement(l.Box,{textAlign:"center",display:"block",p:3},s.default.createElement(r.Text,{size:"sm",colorToken:"subtle"},"No results found"))))};
|
|
2
|
-
//# sourceMappingURL=menuList.component-851fc1b6.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"menuList.component-851fc1b6.js","sources":["../src/components/Overlay/Menu/components/MenuSearchBar/menuSearchBar.component.tsx","../src/components/Overlay/Menu/components/MenuSelectAllButtons/menuSelectAllButtons.component.tsx","../src/components/Overlay/Menu/components/MenuList/menuList.component.tsx"],"sourcesContent":["import React, {\n ChangeEventHandler,\n Dispatch,\n SetStateAction,\n useCallback,\n KeyboardEvent,\n MutableRefObject,\n useEffect,\n} from 'react';\nimport TextInput from 'components/Forms/TextInput';\nimport { MenuItemProps } from 'components/Overlay/Menu/components/MenuItem/menuItem.component';\nimport { useMenuState } from '@chakra-ui/react';\n\nexport interface MenuSearchBarProps {\n handleKeyboardNavigation: (e: KeyboardEvent<HTMLInputElement>, elementIsInputField: boolean) => void;\n menuItems: MenuItemProps[];\n onSearchCallback?: (e: ChangeEventHandler) => void;\n searchInputRef?: MutableRefObject<HTMLInputElement | null>;\n setFilteredMenuItems: Dispatch<SetStateAction<MenuItemProps[]>>;\n placeholder?: string;\n}\n\nconst MenuSearchBar = ({\n handleKeyboardNavigation,\n menuItems,\n onSearchCallback,\n searchInputRef,\n setFilteredMenuItems,\n placeholder = 'Search...',\n}: MenuSearchBarProps): JSX.Element => {\n const { isOpen } = useMenuState();\n\n const handleSearch = useCallback(\n (e) => {\n const searchInput = e.target.value;\n\n if (searchInput === '' || !searchInput) {\n setFilteredMenuItems(menuItems);\n } else {\n const filterdItems = menuItems.filter((item) => {\n const labelText = typeof item.label === 'string' ? item.label : (item.label?.key as string);\n\n return labelText?.toLowerCase().includes(searchInput.toLowerCase());\n });\n setFilteredMenuItems(filterdItems);\n }\n\n if (onSearchCallback) {\n onSearchCallback(e);\n }\n },\n [menuItems, onSearchCallback, setFilteredMenuItems],\n );\n\n useEffect(() => {\n let focusTimeout: NodeJS.Timeout;\n\n if (isOpen) {\n focusTimeout = setTimeout(() => {\n searchInputRef?.current?.focus();\n }, 200);\n }\n\n return (): void => clearTimeout(focusTimeout);\n }, [searchInputRef, isOpen]);\n\n return (\n <TextInput\n className=\"MenuList__SearchBar\"\n placeholder={placeholder}\n onChange={handleSearch}\n mt={1}\n onKeyDown={(e: KeyboardEvent<HTMLInputElement>): void => handleKeyboardNavigation(e, true)}\n size=\"sm\"\n ref={searchInputRef}\n />\n );\n};\n\nexport default MenuSearchBar;\n","import React from 'react';\nimport { Box, Flex } from 'components/Layout';\nimport Button from 'components/Forms/Button';\n\nexport interface MenuSelectAllButtonsProps {\n groupName?: string;\n handleToggleAllItems: ({ groupName, clear }: { groupName?: string; clear?: boolean }) => void;\n hasSelectedItems: boolean;\n isGrouped: boolean;\n}\n\nconst MenuSelectAllButtons = ({\n groupName,\n handleToggleAllItems,\n hasSelectedItems,\n isGrouped,\n}: MenuSelectAllButtonsProps): JSX.Element => {\n if (isGrouped) {\n return (\n <Box textAlign=\"right\" w=\"50%\" className=\"MenuListItem__SelectAllButton\">\n {hasSelectedItems ? (\n <Button\n variant=\"ghostNeutral\"\n iconName=\"arrowCircle\"\n size=\"xs\"\n onClick={(): void => handleToggleAllItems({ groupName, clear: true })}\n isDisabled={!hasSelectedItems}\n >\n Clear all\n </Button>\n ) : (\n <Button variant=\"ghost\" size=\"xs\" onClick={(): void => handleToggleAllItems({ groupName, clear: false })}>\n Select all\n </Button>\n )}\n </Box>\n );\n }\n\n return (\n <Box mt=\"8px\" className=\"MenuList__SelectAllButtons\">\n <Flex justifyContent=\"space-between\">\n <Button variant=\"ghost\" size=\"xs\" onClick={(): void => handleToggleAllItems({ clear: false })}>\n Select all\n </Button>\n <Button\n variant=\"ghostNeutral\"\n iconName=\"arrowCircle\"\n size=\"xs\"\n onClick={(): void => handleToggleAllItems({ clear: true })}\n isDisabled={!hasSelectedItems}\n >\n Clear all\n </Button>\n </Flex>\n </Box>\n );\n};\n\nexport default MenuSelectAllButtons;\n","import React, { useCallback, KeyboardEvent, useEffect } from 'react';\nimport { MenuList as CMenuList, MenuListProps as CMenuListProps } from '@chakra-ui/react';\nimport { Box, Flex } from 'components/Layout';\nimport Heading from 'components/Typography/Heading';\nimport Text from 'components/Typography/Text';\nimport MenuItem, { MenuItemProps } from 'components/Overlay/Menu/components/MenuItem/menuItem.component';\nimport MenuSearchBar from 'components/Overlay/Menu/components/MenuSearchBar/menuSearchBar.component';\nimport MenuSelectAllButtons from 'components/Overlay/Menu/components/MenuSelectAllButtons/menuSelectAllButtons.component';\nimport { useMenuContext } from 'components/Overlay/Menu/context/menu.context';\nimport { SelectOptionProps } from 'components/Forms/Select/select.types';\n\nexport interface MenuListProps extends Omit<CMenuListProps, 'onSelect'> {\n canSelectAll?: boolean;\n canSelectGroups?: boolean;\n isGrouped?: boolean;\n isMultiSelect?: boolean;\n isSearchable?: boolean;\n menuItems?: MenuItemProps[];\n onSelect?:\n | ((selectedItem: MenuItemProps, allSelectedItems?: MenuItemProps[]) => void)\n | ((selectedItem: MenuItemProps, allSelectedItems?: MenuItemProps[]) => Promise<void>);\n onSelectAll?: ((selectedItems: MenuItemProps[]) => void) | ((selectedItems: MenuItemProps[]) => Promise<void>);\n searchPlaceholder?: string;\n shouldRetainSelection?: boolean;\n isMatchWidthSet?: boolean;\n shouldTruncateText?: boolean;\n}\n\nconst MenuList = ({\n canSelectAll = false,\n canSelectGroups = false,\n children,\n isGrouped = false,\n isMatchWidthSet,\n isMultiSelect = false,\n isSearchable = false,\n menuItems,\n onSelect,\n onSelectAll,\n searchPlaceholder,\n shouldRetainSelection = false,\n shouldTruncateText = true,\n minW = '240px',\n maxW,\n maxH = '480px',\n ...rest\n}: MenuListProps): JSX.Element => {\n const {\n filteredMenuItems,\n setFilteredMenuItems,\n allMenuItems,\n groups,\n setGroups,\n focusedItemIndex,\n setFocusedItemIndex,\n searchInputRef,\n menuItemRefs,\n } = useMenuContext();\n\n const focusNextListItem = useCallback(\n (direction) => {\n if (!menuItemRefs?.current) return;\n\n const isFirstOption = focusedItemIndex === 0;\n const isLastOption = focusedItemIndex === menuItemRefs?.current.length - 1;\n let newIndex = -1;\n\n if (direction === 'ArrowDown') {\n if (isLastOption) {\n if (isSearchable) {\n searchInputRef?.current?.focus();\n setFocusedItemIndex(-1);\n return;\n }\n\n newIndex = 0;\n } else {\n newIndex = focusedItemIndex + 1;\n }\n } else if (direction === 'ArrowUp') {\n if (isFirstOption) {\n if (isSearchable) {\n searchInputRef?.current?.focus();\n setFocusedItemIndex(-1);\n return;\n }\n\n newIndex = menuItemRefs.current.length - 1;\n } else {\n newIndex = focusedItemIndex - 1;\n }\n }\n\n const nextListItem = menuItemRefs?.current[newIndex];\n\n if (nextListItem) {\n nextListItem?.focus();\n setFocusedItemIndex(newIndex);\n } else {\n setFocusedItemIndex(-1);\n }\n },\n [focusedItemIndex, isSearchable, menuItemRefs, searchInputRef, setFocusedItemIndex],\n );\n\n const handleKeyboardNavigation = useCallback(\n (e: KeyboardEvent<HTMLInputElement | HTMLDivElement>, elementIsInputField): void => {\n e.persist();\n\n if (!menuItemRefs?.current) return;\n\n if (e.key === 'ArrowDown' || e.key === 'Tab') {\n focusNextListItem('ArrowDown');\n }\n\n if (e.key === 'ArrowUp') {\n focusNextListItem('ArrowUp');\n }\n\n if (e.key === 'Enter') {\n e.preventDefault();\n (e.target as HTMLElement).click();\n }\n },\n [focusNextListItem, menuItemRefs],\n );\n\n const handleToggleSingleItem = useCallback(\n (selectedValue: MenuItemProps, itemOnSelect) => {\n if (filteredMenuItems && allMenuItems) {\n const _filteredMenuItemsCopy = [...filteredMenuItems];\n const selectedItem = _filteredMenuItemsCopy.find((item) => item.value === selectedValue.value);\n\n if (isMultiSelect && selectedItem) {\n selectedItem.isSelected = !selectedItem.isSelected;\n }\n\n setFilteredMenuItems(_filteredMenuItemsCopy);\n\n const allSelectedItems = allMenuItems.filter((item) => item.isSelected);\n\n if (onSelect && selectedItem) {\n onSelect(selectedItem, allSelectedItems);\n }\n\n if (itemOnSelect && selectedItem) {\n itemOnSelect(selectedItem, allSelectedItems);\n }\n }\n },\n [allMenuItems, filteredMenuItems, isMultiSelect, onSelect, setFilteredMenuItems],\n );\n\n const handleToggleAllItems = useCallback(\n ({ groupName, clear = false }: { groupName?: string; clear?: boolean }) => {\n if (filteredMenuItems && allMenuItems) {\n const _filteredMenuItemsCopy = [...filteredMenuItems];\n const value: string[] = [];\n\n _filteredMenuItemsCopy.forEach((item) => {\n if (groupName) {\n if (groupName === item.groupLabel) {\n item.isSelected = !clear;\n\n if (item.value && item.isSelected) {\n value.push(item.value);\n }\n }\n } else {\n item.isSelected = !clear;\n\n if (item.value && item.isSelected) {\n value.push(item.value);\n }\n }\n });\n\n setFilteredMenuItems(_filteredMenuItemsCopy);\n\n if (onSelectAll) {\n onSelectAll(allMenuItems.filter((item) => item.isSelected));\n }\n }\n },\n [filteredMenuItems, allMenuItems, onSelectAll, setFilteredMenuItems],\n );\n\n useEffect(() => {\n if (isGrouped) {\n const groupNames = [...new Set(filteredMenuItems?.map((item) => item.groupLabel))];\n if (groupNames.length) {\n setGroups(groupNames);\n }\n }\n }, [filteredMenuItems, isGrouped, setGroups]);\n\n const getMenuItem = useCallback(\n (item: MenuItemProps, index: number) => {\n if (item.isPlaceholder) return <React.Fragment key={item.value}></React.Fragment>;\n\n return (\n <MenuItem\n canSelectAll={canSelectAll}\n children={item.children}\n closeOnSelect={item.closeOnSelect}\n colorToken={item.colorToken}\n handleKeyboardNavigation={handleKeyboardNavigation}\n isDisabled={item.isDisabled}\n isMultiSelect={isMultiSelect}\n isSelected={item.isSelected}\n itemIndex={index.toString()}\n key={item.value}\n label={item.label}\n leftElement={item.leftElement}\n menuItemRefs={menuItemRefs}\n onSelect={(selectedItem: SelectOptionProps): void => handleToggleSingleItem(selectedItem, item.onSelect)}\n shouldRetainSelection={shouldRetainSelection}\n shouldTruncateText={shouldTruncateText}\n value={item.value}\n />\n );\n },\n [\n handleKeyboardNavigation,\n handleToggleSingleItem,\n isMultiSelect,\n menuItemRefs,\n shouldRetainSelection,\n shouldTruncateText,\n canSelectAll,\n ],\n );\n\n if (!isMatchWidthSet) {\n maxW = '320px';\n }\n\n // Return default Chakra menu if user passes in custom child elements\n if (children) {\n return <CMenuList {...rest}>{children}</CMenuList>;\n }\n\n return (\n <CMenuList className=\"MeuList\" {...rest} maxW={maxW || 'unset'} maxH={maxH} minW={minW} overflow=\"hidden auto\">\n {(isSearchable || (canSelectAll && isMultiSelect)) && (\n <Box className=\"MenuList__Header\" m=\"0 12px 8px\">\n {isSearchable && (\n <MenuSearchBar\n handleKeyboardNavigation={handleKeyboardNavigation}\n menuItems={menuItems || []}\n searchInputRef={searchInputRef}\n setFilteredMenuItems={setFilteredMenuItems}\n placeholder={searchPlaceholder}\n />\n )}\n {canSelectAll && isMultiSelect && (\n <MenuSelectAllButtons\n handleToggleAllItems={handleToggleAllItems}\n hasSelectedItems={Boolean(filteredMenuItems?.find((item) => item.isSelected))}\n isGrouped={false}\n />\n )}\n </Box>\n )}\n <Box className=\"MenuList__Body\">\n {!filteredMenuItems?.length ? (\n <Box textAlign=\"center\" display=\"block\" p={3}>\n <Text size=\"sm\" colorToken=\"subtle\">\n No results found\n </Text>\n </Box>\n ) : isGrouped ? (\n groups?.map((groupName, index) => {\n const menuItems = filteredMenuItems?.filter((item) => item.groupLabel === groupName);\n return (\n <Box className=\"MenuList__Group\" key={`${groupName || 'noGroup'}-${index}`}>\n {groupName && (\n <Flex minH={8} pt={4} pr={3} pb={1} pl={5} justify=\"space-between\" align=\"center\">\n <Box textAlign=\"left\" className=\"MenuList__GroupTitle\">\n <Heading size=\"xs\">{groupName}</Heading>\n </Box>\n {isMultiSelect && canSelectGroups && (\n <MenuSelectAllButtons\n handleToggleAllItems={handleToggleAllItems}\n hasSelectedItems={Boolean(menuItems?.find((item) => item.isSelected))}\n isGrouped={true}\n groupName={groupName}\n />\n )}\n </Flex>\n )}\n {menuItems?.map((item: MenuItemProps, index: number) => {\n return getMenuItem(item, index);\n })}\n </Box>\n );\n })\n ) : (\n filteredMenuItems?.map((item: MenuItemProps, index: number) => {\n return getMenuItem(item, index);\n })\n )}\n </Box>\n </CMenuList>\n );\n};\n\nexport default MenuList;\n"],"names":["MenuSearchBar","_a","handleKeyboardNavigation","menuItems","onSearchCallback","searchInputRef","setFilteredMenuItems","_b","placeholder","isOpen","useMenuState","handleSearch","useCallback","e","searchInput","target","value","filterdItems","filter","item","labelText","label","key","toLowerCase","includes","useEffect","focusTimeout","setTimeout","current","focus","clearTimeout","React","TextInput","className","onChange","mt","onKeyDown","size","ref","MenuSelectAllButtons","groupName","handleToggleAllItems","hasSelectedItems","isGrouped","Box","textAlign","w","createElement","Button","variant","iconName","onClick","clear","isDisabled","Flex","justifyContent","canSelectAll","_c","canSelectGroups","children","_d","isMatchWidthSet","_e","isMultiSelect","_f","isSearchable","onSelect","onSelectAll","searchPlaceholder","_g","shouldRetainSelection","_h","shouldTruncateText","_j","minW","maxW","_k","maxH","rest","__rest","_l","useMenuContext","filteredMenuItems","allMenuItems","groups","setGroups","focusedItemIndex","setFocusedItemIndex","menuItemRefs","focusNextListItem","direction","isFirstOption","isLastOption","length","newIndex","nextListItem","elementIsInputField","persist","preventDefault","click","handleToggleSingleItem","selectedValue","itemOnSelect","_filteredMenuItemsCopy","__spreadArray","__read","selectedItem","find","isSelected","allSelectedItems","value_1","forEach","groupLabel","push","groupNames","Set","map","getMenuItem","index","isPlaceholder","Fragment","MenuItem","closeOnSelect","colorToken","itemIndex","toString","leftElement","CMenuList","__assign","overflow","m","Boolean","concat","minH","pt","pr","pb","pl","justify","align","Heading","display","p","Text"],"mappings":"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"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-bb43a522.js"),t=require("react"),o=require("./useTheme.js"),r=require("./notificationCounter.types-4352ab2c.js"),i=require("@chakra-ui/react");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(t),u={xs:2,sm:4,md:5,lg:6},s={xs:"8px",sm:"10px",md:"12px",lg:"14px"},l={xs:"1px",sm:"2px",md:"3px",lg:"4px"};exports.NotificationCounter=function(t){var a,d=t.count,c=void 0===d?0:d,f=t.size,x=void 0===f?"md":f,b=t.showCount,h=void 0===b||b,g=t.variant,m=void 0===g?r.NotificationCounterVariant.Red:g,p=e.__rest(t,["count","size","showCount","variant"]),C=o.default(),v="xs"!==x&&h,w=((a={})[r.NotificationCounterVariant.Red]={backgroundColor:C.colors.red[500],color:C.colors.white},a[r.NotificationCounterVariant.Neutral]={backgroundColor:C.colors.background.table,color:C.colors.text.light.default},a),j=c>99?n.default.createElement(i.Box,{backgroundColor:w[m].color,borderRadius:C.radii.full,height:l[x],width:l[x]}):c>0&&c;return n.default.createElement(i.Flex,e.__assign({},p,{alignItems:"center",border:C.borders["1px"],borderColor:C.colors.white,borderRadius:C.radii.full,fontSize:s[x],fontWeight:C.fontWeights.semibold,height:u[x],justifyContent:"center",width:u[x]},w[m]),v&&j)};
|
|
2
|
-
//# sourceMappingURL=notificationCounter.component-0f14c770.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notificationCounter.component-0f14c770.js","sources":["../src/components/DataDisplay/NotificationCounter/notificationCounter.records.ts","../src/components/DataDisplay/NotificationCounter/notificationCounter.component.tsx"],"sourcesContent":["import { NotificationCounterSize } from './notificationCounter.types';\n\nexport const MAX_COUNT = 99;\n\nexport const notificationCounterSizes: Record<NotificationCounterSize, number> = {\n xs: 2,\n sm: 4,\n md: 5,\n lg: 6,\n};\n\nexport const notificationCounterFontSizes: Record<NotificationCounterSize, string> = {\n xs: '8px', // Not used since the xs size doesn't show a label\n sm: '10px',\n md: '12px',\n lg: '14px',\n};\n\nexport const maxNotificationCounterSizes: Record<NotificationCounterSize, string> = {\n xs: '1px', // Not used since the xs size doesn't show a label\n sm: '2px',\n md: '3px',\n lg: '4px',\n};\n","import React from 'react';\nimport useTheme from 'hooks/useTheme';\nimport { NotificationCounterSize, NotificationCounterVariant } from './notificationCounter.types';\nimport { Box } from 'components/Layout/Box';\nimport { Flex } from 'components/Layout/Flex';\nimport { FlexProps } from '@chakra-ui/react';\nimport {\n MAX_COUNT,\n maxNotificationCounterSizes,\n notificationCounterFontSizes,\n notificationCounterSizes,\n} from './notificationCounter.records';\n\nexport interface NotificationCounterProps extends FlexProps {\n count?: number;\n size?: NotificationCounterSize;\n showCount?: boolean;\n variant?: NotificationCounterVariant;\n}\n\nconst NotificationCounter = ({\n count = 0,\n size = 'md',\n showCount = true,\n variant = NotificationCounterVariant.Red,\n ...rest\n}: NotificationCounterProps): JSX.Element => {\n const theme = useTheme();\n const _showCount = size === 'xs' ? false : showCount; // By default the xs size doesn't show a label\n\n const notificationVariantStyles = {\n [NotificationCounterVariant.Red]: {\n backgroundColor: theme.colors.red[500],\n color: theme.colors.white,\n },\n [NotificationCounterVariant.Neutral]: {\n backgroundColor: theme.colors.background.table,\n color: theme.colors.text.light.default,\n },\n };\n\n const counterContent =\n count > MAX_COUNT ? (\n <Box\n backgroundColor={notificationVariantStyles[variant].color}\n borderRadius={theme.radii.full}\n height={maxNotificationCounterSizes[size]}\n width={maxNotificationCounterSizes[size]}\n />\n ) : (\n count > 0 && count\n );\n\n return (\n <Flex\n {...rest}\n alignItems=\"center\"\n border={theme.borders['1px']}\n borderColor={theme.colors.white}\n borderRadius={theme.radii.full}\n fontSize={notificationCounterFontSizes[size]}\n fontWeight={theme.fontWeights.semibold}\n height={notificationCounterSizes[size]}\n justifyContent=\"center\"\n width={notificationCounterSizes[size]}\n {...notificationVariantStyles[variant]}\n >\n {_showCount && counterContent}\n </Flex>\n );\n};\n\nexport default NotificationCounter;\n"],"names":["notificationCounterSizes","xs","sm","md","lg","notificationCounterFontSizes","maxNotificationCounterSizes","_a","_c","count","_d","size","_e","showCount","_f","variant","NotificationCounterVariant","Red","rest","__rest","theme","useTheme","_showCount","notificationVariantStyles","_b","backgroundColor","colors","red","color","white","Neutral","background","table","text","light","default","counterContent","React","createElement","Box","borderRadius","radii","full","height","width","Flex","__assign","alignItems","border","borders","borderColor","fontSize","fontWeight","fontWeights","semibold","justifyContent"],"mappings":"0QAIaA,EAAoE,CAC/EC,GAAI,EACJC,GAAI,EACJC,GAAI,EACJC,GAAI,GAGOC,EAAwE,CACnFJ,GAAI,MACJC,GAAI,OACJC,GAAI,OACJC,GAAI,QAGOE,EAAuE,CAClFL,GAAI,MACJC,GAAI,MACJC,GAAI,MACJC,GAAI,mCCFsB,SAACG,SAC3BC,EAASD,EAAAE,MAATA,OAAK,IAAAD,EAAG,EAACA,EACTE,EAAWH,EAAAI,KAAXA,OAAI,IAAAD,EAAG,KAAIA,EACXE,EAAgBL,EAAAM,UAAhBA,OAAS,IAAAD,GAAOA,EAChBE,EAAAP,EAAAQ,QAAAA,OAAO,IAAAD,EAAGE,EAAAA,2BAA2BC,IAAGH,EACrCI,EAAIC,EAAAA,OAAAZ,EALoB,wCAOrBa,EAAQC,EAAAA,UACRC,EAAsB,OAATX,GAAwBE,EAErCU,IAAyBC,EAAA,IAC5BR,EAAAA,2BAA2BC,KAAM,CAChCQ,gBAAiBL,EAAMM,OAAOC,IAAI,KAClCC,MAAOR,EAAMM,OAAOG,OAEtBL,EAACR,EAAAA,2BAA2Bc,SAAU,CACpCL,gBAAiBL,EAAMM,OAAOK,WAAWC,MACzCJ,MAAOR,EAAMM,OAAOO,KAAKC,MAAMC,YAI7BC,EACJ3B,EDxCqB,GCyCnB4B,EAAAA,QAAAC,cAACC,EAAAA,IAAG,CACFd,gBAAiBF,EAA0BR,GAASa,MACpDY,aAAcpB,EAAMqB,MAAMC,KAC1BC,OAAQrC,EAA4BK,GACpCiC,MAAOtC,EAA4BK,KAGrCF,EAAQ,GAAKA,EAGjB,OACE4B,EAAC,QAAAC,cAAAO,EAAAA,KACKC,EAAAA,SAAA,GAAA5B,GACJ6B,WAAW,SACXC,OAAQ5B,EAAM6B,QAAQ,OACtBC,YAAa9B,EAAMM,OAAOG,MAC1BW,aAAcpB,EAAMqB,MAAMC,KAC1BS,SAAU9C,EAA6BM,GACvCyC,WAAYhC,EAAMiC,YAAYC,SAC9BX,OAAQ3C,EAAyBW,GACjC4C,eAAe,SACfX,MAAO5C,EAAyBW,IAC5BY,EAA0BR,IAE7BO,GAAcc"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"notificationCounter.types-4352ab2c.js","sources":["../src/components/DataDisplay/NotificationCounter/notificationCounter.types.ts"],"sourcesContent":["export type NotificationCounterSize = 'lg' | 'md' | 'sm' | 'xs';\n\nexport enum NotificationCounterVariant {\n Red = 'red',\n Neutral = 'neutral',\n}\n"],"names":["NotificationCounterVariant"],"mappings":"aAEA,IAAYA,EAAAA,QAGXA,gCAAA,GAHWA,EAAAA,QAA0BA,6BAA1BA,mCAGX,KAFC,IAAA,MACAA,EAAA,QAAA"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-bb43a522.js"),r=require("react"),o=require("@chakra-ui/react"),t=require("./withDarkMode-6e6bfb8e.js"),a=require("./useTheme.js"),d=require("./useAdaptiveColor-65c8eb03.js"),s=require("./text.component-eed5a904.js");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=i(r);exports.Popover=function(r){var i=r.children,l=r.popoverTrigger,u=r.darkMode,c=r.allowEscape,p=void 0===c||c,v=r.size,b=void 0===v?"sm":v,g=r.shadow,f=void 0===g?"md":g,h=r.contentProps,m=e.__rest(r,["children","popoverTrigger","darkMode","allowEscape","size","shadow","contentProps"]),k=a.default(),w=k.colors,E=k.components.Popover[b].width,P=d.useAdaptiveColor(w.background),q=u?w.background.dark:P,j=u?w.background.dark:w.border.light.default;return n.default.createElement(o.Popover,e.__assign({},m,{closeOnBlur:p,closeOnEsc:p}),n.default.createElement(o.PopoverTrigger,null,l),t.withDarkMode(n.default.createElement(o.PopoverContent,e.__assign({width:E,bg:q,borderColor:j,shadow:f},h),n.default.createElement(o.PopoverArrow,{bg:q}),n.default.createElement(s.Text,{size:"sm"},i)),!!u))};
|
|
2
|
-
//# sourceMappingURL=popover.component-4e659039.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popover.component-4e659039.js","sources":["../src/components/Overlay/Popover/popover.component.tsx"],"sourcesContent":["import React, { ReactNode } from 'react';\nimport {\n Popover as ChakraPopover,\n PopoverProps as ChakraPopoverProps,\n PopoverTrigger,\n PopoverContent as ChakraPopoverContent,\n PopoverArrow,\n PopoverContentProps,\n} from '@chakra-ui/react';\nimport withDarkMode from 'hocs/withDarkMode';\nimport useTheme from 'hooks/useTheme';\nimport { PopoverSize } from './popover.types';\nimport useAdaptiveColor from 'hooks/useAdaptiveColor';\nimport Text from 'components/Typography/Text';\nimport { Token } from '@chakra-ui/styled-system/dist/declarations/src/utils';\nimport * as CSS from 'csstype';\n\nexport interface PopoverProps extends ChakraPopoverProps {\n children: ReactNode;\n popoverTrigger: ReactNode;\n darkMode?: boolean;\n allowEscape?: boolean;\n size?: PopoverSize;\n shadow?: Token<CSS.Property.BoxShadow | number, 'shadows'>;\n contentProps?: PopoverContentProps;\n}\n\nconst Popover = ({\n children,\n popoverTrigger,\n darkMode,\n allowEscape = true,\n size = 'sm',\n shadow = 'md',\n contentProps,\n ...rest\n}: PopoverProps): JSX.Element => {\n const { colors, components } = useTheme();\n const { width } = components.Popover[size];\n\n const adaptiveBackground = useAdaptiveColor(colors.background);\n\n const bg = !darkMode ? adaptiveBackground : colors.background.dark;\n\n const borderColor = !darkMode ? colors.border.light.default : colors.background.dark;\n\n return (\n <ChakraPopover {...rest} closeOnBlur={allowEscape} closeOnEsc={allowEscape}>\n <PopoverTrigger>{popoverTrigger}</PopoverTrigger>\n {withDarkMode(\n <ChakraPopoverContent width={width} bg={bg} borderColor={borderColor} shadow={shadow} {...contentProps}>\n <PopoverArrow bg={bg} />\n <Text size=\"sm\">{children}</Text>\n </ChakraPopoverContent>,\n !!darkMode,\n )}\n </ChakraPopover>\n );\n};\n\nexport default Popover;\n"],"names":["_a","children","popoverTrigger","darkMode","_b","allowEscape","_c","size","_d","shadow","contentProps","rest","__rest","_e","useTheme","colors","width","components","Popover","adaptiveBackground","useAdaptiveColor","background","bg","dark","borderColor","border","light","default","React","createElement","ChakraPopover","__assign","closeOnBlur","closeOnEsc","PopoverTrigger","withDarkMode","ChakraPopoverContent","PopoverContent","PopoverArrow","Text"],"mappings":"mWA2BgB,SAACA,GACf,IAAAC,EAAQD,EAAAC,SACRC,EAAcF,EAAAE,eACdC,EAAQH,EAAAG,SACRC,EAAAJ,EAAAK,YAAAA,OAAW,IAAAD,GAAOA,EAClBE,EAAWN,EAAAO,KAAXA,OAAI,IAAAD,EAAG,KAAIA,EACXE,EAAaR,EAAAS,OAAbA,OAAS,IAAAD,EAAA,KAAIA,EACbE,EAAYV,EAAAU,aACTC,EAAIC,EAAAA,OAAAZ,EARQ,uFAUTa,EAAyBC,EAAQ,UAA/BC,EAAMF,EAAAE,OACNC,EADkBH,EAAAI,WACGC,QAAQX,GAAKS,MAEpCG,EAAqBC,EAAAA,iBAAiBL,EAAOM,YAE7CC,EAAMnB,EAAgCY,EAAOM,WAAWE,KAAvCJ,EAEjBK,EAAerB,EAAyCY,EAAOM,WAAWE,KAAhDR,EAAOU,OAAOC,MAAMC,QAEpD,OACEC,UAAAC,cAACC,EAAaZ,QAAAa,EAAAA,SAAA,GAAKpB,EAAI,CAAEqB,YAAa3B,EAAa4B,WAAY5B,IAC7DuB,EAAAA,QAACC,cAAAK,iBAAgB,KAAAhC,GAChBiC,EAAYA,aACXP,wBAACQ,EAAoBC,eAAAN,EAAAA,SAAA,CAACf,MAAOA,EAAOM,GAAIA,EAAIE,YAAaA,EAAaf,OAAQA,GAAYC,GACxFkB,EAAAA,QAAAC,cAACS,EAAAA,aAAY,CAAChB,GAAIA,IAClBM,EAAAA,QAAAC,cAACU,OAAK,CAAAhC,KAAK,MAAMN,MAEjBE"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-bb43a522.js"),r=require("react"),t=require("@chakra-ui/react");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=o(r);exports.PopoverFooter=function(r){var o=r.children,i=e.__rest(r,["children"]);return a.default.createElement(t.PopoverFooter,e.__assign({},i,{pb:3,pt:0,borderTop:0}),o)};
|
|
2
|
-
//# sourceMappingURL=popoverFooter.component-51ee4806.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popoverFooter.component-51ee4806.js","sources":["../src/components/Overlay/Popover/components/PopoverFooter/popoverFooter.component.tsx"],"sourcesContent":["import React from 'react';\nimport { PopoverFooter as ChakraPopoverFooter, PopoverFooterProps as ChakraPopoverFooterProps } from '@chakra-ui/react';\n\nexport interface PopoverFooterProps extends ChakraPopoverFooterProps {}\n\nconst PopoverFooter = ({ children, ...rest }: PopoverFooterProps): JSX.Element => {\n return (\n <ChakraPopoverFooter {...rest} pb={3} pt={0} borderTop={0}>\n {children}\n </ChakraPopoverFooter>\n );\n};\n\nexport default PopoverFooter;\n"],"names":["_a","children","rest","__rest","React","ChakraPopoverFooter","__assign","pb","pt","borderTop"],"mappings":"gNAKsB,SAACA,GAAE,IAAAC,EAAQD,EAAAC,SAAKC,EAAIC,EAAAA,OAAAH,EAAnB,cACrB,OACEI,EAAAA,sBAACC,EAAAA,cAAmBC,EAAAA,SAAA,GAAKJ,EAAM,CAAAK,GAAI,EAAGC,GAAI,EAAGC,UAAW,IACrDR"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("./tslib.es6-bb43a522.js"),i=require("react"),r=require("@chakra-ui/react");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=t(i);exports.Radio=function(i){var t=i.children,n=i.size,s=void 0===n?"md":n;i.isFieldInline;var l=e.__rest(i,["children","size","isFieldInline"]);return a.default.createElement(r.Radio,e.__assign({},l,{size:s,alignItems:"flex-start"}),t)};
|
|
2
|
-
//# sourceMappingURL=radio.component-76b8e2f9.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"radio.component-76b8e2f9.js","sources":["../src/components/Forms/Radio/radio.component.tsx"],"sourcesContent":["import React from 'react';\nimport { Radio as CRadio, RadioProps as CRadioProps } from '@chakra-ui/react';\nimport { RadioSize } from './radio.types';\n\nexport interface RadioProps extends CRadioProps {\n size?: RadioSize;\n isFieldInline?: boolean;\n}\n\nconst Radio = ({ children, size = 'md', isFieldInline, ...rest }: RadioProps): JSX.Element => {\n return (\n <CRadio {...rest} size={size} alignItems=\"flex-start\">\n {children}\n </CRadio>\n );\n};\n\nexport default Radio;\n"],"names":["_a","children","_b","size","isFieldInline","rest","__rest","React","createElement","CRadio","Radio","__assign","alignItems"],"mappings":"wMASc,SAACA,GAAE,IAAAC,EAAQD,EAAAC,SAAEC,EAAWF,EAAAG,KAAXA,OAAO,IAAAD,EAAA,KAAIA,EAAeF,EAAAI,kBAAKC,EAAIC,SAAAN,EAA/C,qCACb,OACEO,EAAC,QAAAC,cAAAC,EAAMC,MAAKC,EAAAA,SAAA,GAAAN,GAAMF,KAAMA,EAAMS,WAAW,eACtCX"}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("react"),r=require("./useTheme.js"),t=require("@chakra-ui/react");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=n(e);exports.RatingDot=function(n){var o=n.number,c=n.isInteractive,l=n.isDisabled,d=n.onClick,u=n.selected,i=r.default().colors,b=e.useCallback((function(){d&&d(o)}),[o,d]);return a.default.createElement(a.default.Fragment,null,c?l?a.default.createElement(t.Flex,{as:"button",bgColor:u?"".concat(i.background.brand,"80"):"transparent",h:"60px",w:"60px",borderRadius:"30px",border:"2px solid ".concat(u?"transparent":i.background.brand,"50"),color:u?"white":"".concat(i.background.brand,"50"),mr:1,mb:1,justifyContent:"center",alignItems:"center",fontSize:"lg",cursor:"not-allowed"},o):a.default.createElement(t.Flex,{as:"button",onClick:b,bgColor:u?i.background.brand:"transparent",h:"60px",w:"60px",borderRadius:"30px",border:"2px solid ".concat(i.background.brand),color:u?i.text.dark.default:i.text.light.link,mr:1,mb:1,justifyContent:"center",alignItems:"center",fontSize:"lg",cursor:"pointer",_hover:{bg:u?i.background.brand:i.background.tealLight}},o):a.default.createElement(t.Flex,{as:"div",bgColor:i.background.brand,h:"40px",w:"40px",borderRadius:"20px",border:"2px solid ".concat(i.background.brand),color:i.text.dark.default,mr:1,mb:1,justifyContent:"center",alignItems:"center",fontSize:"lg",cursor:"default"},o))};
|
|
2
|
-
//# sourceMappingURL=ratingDot.component-017fa57d.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ratingDot.component-017fa57d.js","sources":["../src/components/Forms/RatingDots/components/RatingDot/ratingDot.component.tsx"],"sourcesContent":["import React, { useCallback } from 'react';\nimport useTheme from 'hooks/useTheme';\nimport { Flex } from 'components/Layout/Flex';\n\nexport interface IRatingDotProps {\n number: number;\n isInteractive?: boolean;\n isDisabled?: boolean;\n onClick?: (value: number) => void;\n selected: boolean;\n}\n\nconst RatingDot = ({ number, isInteractive, isDisabled, onClick, selected }: IRatingDotProps): JSX.Element => {\n const { colors } = useTheme();\n\n const handleClick = useCallback((): void => {\n if (onClick) onClick(number);\n }, [number, onClick]);\n\n return (\n <>\n {isInteractive ? (\n isDisabled ? (\n <Flex\n as=\"button\"\n bgColor={selected ? `${colors.background.brand}80` : 'transparent'}\n h=\"60px\"\n w=\"60px\"\n borderRadius=\"30px\"\n border={`2px solid ${selected ? 'transparent' : colors.background.brand}50`}\n color={selected ? 'white' : `${colors.background.brand}50`}\n mr={1}\n mb={1}\n justifyContent=\"center\"\n alignItems=\"center\"\n fontSize=\"lg\"\n cursor=\"not-allowed\"\n >\n {number}\n </Flex>\n ) : (\n <Flex\n as=\"button\"\n onClick={handleClick}\n bgColor={selected ? colors.background.brand : 'transparent'}\n h=\"60px\"\n w=\"60px\"\n borderRadius=\"30px\"\n border={`2px solid ${colors.background.brand}`}\n color={selected ? colors.text.dark.default : colors.text.light.link}\n mr={1}\n mb={1}\n justifyContent=\"center\"\n alignItems=\"center\"\n fontSize=\"lg\"\n cursor=\"pointer\"\n _hover={{\n bg: selected ? colors.background.brand : colors.background.tealLight,\n }}\n >\n {number}\n </Flex>\n )\n ) : (\n <Flex\n as=\"div\"\n bgColor={colors.background.brand}\n h=\"40px\"\n w=\"40px\"\n borderRadius=\"20px\"\n border={`2px solid ${colors.background.brand}`}\n color={colors.text.dark.default}\n mr={1}\n mb={1}\n justifyContent=\"center\"\n alignItems=\"center\"\n fontSize=\"lg\"\n cursor=\"default\"\n >\n {number}\n </Flex>\n )}\n </>\n );\n};\n\nexport default RatingDot;\n"],"names":["_a","number","isInteractive","isDisabled","onClick","selected","colors","useTheme","handleClick","useCallback","React","createElement","Flex","as","bgColor","background","brand","h","w","borderRadius","border","concat","color","mr","mb","justifyContent","alignItems","fontSize","cursor","text","dark","default","light","link","_hover","bg","tealLight"],"mappings":"kMAYkB,SAACA,GAAE,IAAAC,EAAMD,EAAAC,OAAEC,EAAaF,EAAAE,cAAEC,EAAUH,EAAAG,WAAEC,EAAOJ,EAAAI,QAAEC,EAAQL,EAAAK,SAC/DC,EAAWC,mBAEbC,EAAcC,EAAAA,aAAY,WAC1BL,GAASA,EAAQH,KACpB,CAACA,EAAQG,IAEZ,OACEM,gDACGR,EACCC,EACEO,EAAC,QAAAC,cAAAC,OACC,CAAAC,GAAG,SACHC,QAAST,EAAW,UAAGC,EAAOS,WAAWC,YAAY,cACrDC,EAAE,OACFC,EAAE,OACFC,aAAa,OACbC,OAAQ,aAAAC,OAAahB,EAAW,cAAgBC,EAAOS,WAAWC,YAClEM,MAAOjB,EAAW,QAAU,GAAGgB,OAAAf,EAAOS,WAAWC,MAAK,MACtDO,GAAI,EACJC,GAAI,EACJC,eAAe,SACfC,WAAW,SACXC,SAAS,KACTC,OAAO,eAEN3B,GAGHS,EAAAA,QAACC,cAAAC,EAAIA,KACH,CAAAC,GAAG,SACHT,QAASI,EACTM,QAAST,EAAWC,EAAOS,WAAWC,MAAQ,cAC9CC,EAAE,OACFC,EAAE,OACFC,aAAa,OACbC,OAAQ,aAAaC,OAAAf,EAAOS,WAAWC,OACvCM,MAAOjB,EAAWC,EAAOuB,KAAKC,KAAKC,QAAUzB,EAAOuB,KAAKG,MAAMC,KAC/DV,GAAI,EACJC,GAAI,EACJC,eAAe,SACfC,WAAW,SACXC,SAAS,KACTC,OAAO,UACPM,OAAQ,CACNC,GAAI9B,EAAWC,EAAOS,WAAWC,MAAQV,EAAOS,WAAWqB,YAG5DnC,GAILS,UAAAC,cAACC,EAAIA,KAAA,CACHC,GAAG,MACHC,QAASR,EAAOS,WAAWC,MAC3BC,EAAE,OACFC,EAAE,OACFC,aAAa,OACbC,OAAQ,aAAaC,OAAAf,EAAOS,WAAWC,OACvCM,MAAOhB,EAAOuB,KAAKC,KAAKC,QACxBR,GAAI,EACJC,GAAI,EACJC,eAAe,SACfC,WAAW,SACXC,SAAS,KACTC,OAAO,WAEN3B"}
|