@homecode/ui 5.1.8 → 5.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +2 -108
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/node_modules/style-inject/dist/style-inject.es.js +2 -28
- package/dist/esm/node_modules/style-inject/dist/style-inject.es.js.map +1 -0
- package/dist/esm/src/components/AssistiveText/AssistiveText.js +2 -10
- package/dist/esm/src/components/AssistiveText/AssistiveText.js.map +1 -0
- package/dist/esm/src/components/AssistiveText/AssistiveText.styl.js +2 -7
- package/dist/esm/src/components/AssistiveText/AssistiveText.styl.js.map +1 -0
- package/dist/esm/src/components/Autocomplete/Autocomplete.js +2 -428
- package/dist/esm/src/components/Autocomplete/Autocomplete.js.map +1 -0
- package/dist/esm/src/components/Autocomplete/Autocomplete.styl.js +2 -7
- package/dist/esm/src/components/Autocomplete/Autocomplete.styl.js.map +1 -0
- package/dist/esm/src/components/Button/Button.helpers.js +2 -12
- package/dist/esm/src/components/Button/Button.helpers.js.map +1 -0
- package/dist/esm/src/components/Button/Button.js +2 -38
- package/dist/esm/src/components/Button/Button.js.map +1 -0
- package/dist/esm/src/components/Button/Button.styl.js +2 -7
- package/dist/esm/src/components/Button/Button.styl.js.map +1 -0
- package/dist/esm/src/components/ButtonGroup/ButtonGroup.js +2 -10
- package/dist/esm/src/components/ButtonGroup/ButtonGroup.js.map +1 -0
- package/dist/esm/src/components/ButtonGroup/ButtonGroup.styl.js +2 -7
- package/dist/esm/src/components/ButtonGroup/ButtonGroup.styl.js.map +1 -0
- package/dist/esm/src/components/Calendar/Calendar.helpers.js +2 -65
- package/dist/esm/src/components/Calendar/Calendar.helpers.js.map +1 -0
- package/dist/esm/src/components/Calendar/Calendar.js +2 -136
- package/dist/esm/src/components/Calendar/Calendar.js.map +1 -0
- package/dist/esm/src/components/Calendar/Calendar.styl.js +2 -7
- package/dist/esm/src/components/Calendar/Calendar.styl.js.map +1 -0
- package/dist/esm/src/components/Card/Card.js +2 -55
- package/dist/esm/src/components/Card/Card.js.map +1 -0
- package/dist/esm/src/components/Card/Card.styl.js +2 -7
- package/dist/esm/src/components/Card/Card.styl.js.map +1 -0
- package/dist/esm/src/components/Checkbox/Checkbox.js +2 -19
- package/dist/esm/src/components/Checkbox/Checkbox.js.map +1 -0
- package/dist/esm/src/components/Checkbox/Checkbox.styl.js +2 -7
- package/dist/esm/src/components/Checkbox/Checkbox.styl.js.map +1 -0
- package/dist/esm/src/components/Chip/Chip.js +2 -16
- package/dist/esm/src/components/Chip/Chip.js.map +1 -0
- package/dist/esm/src/components/Chip/Chip.styl.js +2 -7
- package/dist/esm/src/components/Chip/Chip.styl.js.map +1 -0
- package/dist/esm/src/components/Container/Container.js +2 -13
- package/dist/esm/src/components/Container/Container.js.map +1 -0
- package/dist/esm/src/components/Container/Container.styl.js +2 -7
- package/dist/esm/src/components/Container/Container.styl.js.map +1 -0
- package/dist/esm/src/components/DatePicker/DatePicker.helpers.js +2 -33
- package/dist/esm/src/components/DatePicker/DatePicker.helpers.js.map +1 -0
- package/dist/esm/src/components/DatePicker/DatePicker.js +2 -47
- package/dist/esm/src/components/DatePicker/DatePicker.js.map +1 -0
- package/dist/esm/src/components/DatePicker/DatePicker.styl.js +2 -7
- package/dist/esm/src/components/DatePicker/DatePicker.styl.js.map +1 -0
- package/dist/esm/src/components/DatePickerInput/DatePickerInput.js +2 -44
- package/dist/esm/src/components/DatePickerInput/DatePickerInput.js.map +1 -0
- package/dist/esm/src/components/DatePickerInput/DatePickerInput.styl.js +2 -7
- package/dist/esm/src/components/DatePickerInput/DatePickerInput.styl.js.map +1 -0
- package/dist/esm/src/components/DateTime/DateTime.js +2 -17
- package/dist/esm/src/components/DateTime/DateTime.js.map +1 -0
- package/dist/esm/src/components/Dialogue/Dialogue.js +2 -107
- package/dist/esm/src/components/Dialogue/Dialogue.js.map +1 -0
- package/dist/esm/src/components/Dialogue/Dialogue.styl.js +2 -7
- package/dist/esm/src/components/Dialogue/Dialogue.styl.js.map +1 -0
- package/dist/esm/src/components/Draggable/Draggable.js +2 -147
- package/dist/esm/src/components/Draggable/Draggable.js.map +1 -0
- package/dist/esm/src/components/Draggable/Draggable.styl.js +2 -7
- package/dist/esm/src/components/Draggable/Draggable.styl.js.map +1 -0
- package/dist/esm/src/components/DropZone/DropZone.js +2 -112
- package/dist/esm/src/components/DropZone/DropZone.js.map +1 -0
- package/dist/esm/src/components/DropZone/DropZone.styl.js +2 -7
- package/dist/esm/src/components/DropZone/DropZone.styl.js.map +1 -0
- package/dist/esm/src/components/Expand/Expand.js +2 -24
- package/dist/esm/src/components/Expand/Expand.js.map +1 -0
- package/dist/esm/src/components/Expand/Expand.styl.js +2 -7
- package/dist/esm/src/components/Expand/Expand.styl.js.map +1 -0
- package/dist/esm/src/components/Flex/Flex.js +2 -24
- package/dist/esm/src/components/Flex/Flex.js.map +1 -0
- package/dist/esm/src/components/Flex/Flex.styl.js +2 -7
- package/dist/esm/src/components/Flex/Flex.styl.js.map +1 -0
- package/dist/esm/src/components/Form/Form.helpers.js +2 -42
- package/dist/esm/src/components/Form/Form.helpers.js.map +1 -0
- package/dist/esm/src/components/Form/Form.js +2 -272
- package/dist/esm/src/components/Form/Form.js.map +1 -0
- package/dist/esm/src/components/Form/Form.styl.js +2 -7
- package/dist/esm/src/components/Form/Form.styl.js.map +1 -0
- package/dist/esm/src/components/Form/Form.types.js +1 -0
- package/dist/esm/src/components/Form/Form.types.js.map +1 -0
- package/dist/esm/src/components/Form/SubmitButtons/SubmitButtons.js +2 -8
- package/dist/esm/src/components/Form/SubmitButtons/SubmitButtons.js.map +1 -0
- package/dist/esm/src/components/Form/SubmitButtons/SubmitButtons.styl.js +2 -7
- package/dist/esm/src/components/Form/SubmitButtons/SubmitButtons.styl.js.map +1 -0
- package/dist/esm/src/components/Form/Validator.js +6 -24
- package/dist/esm/src/components/Form/Validator.js.map +1 -0
- package/dist/esm/src/components/Gallery/Dots/Dots.js +2 -9
- package/dist/esm/src/components/Gallery/Dots/Dots.js.map +1 -0
- package/dist/esm/src/components/Gallery/Dots/Dots.styl.js +2 -7
- package/dist/esm/src/components/Gallery/Dots/Dots.styl.js.map +1 -0
- package/dist/esm/src/components/Gallery/Gallery.js +2 -222
- package/dist/esm/src/components/Gallery/Gallery.js.map +1 -0
- package/dist/esm/src/components/Gallery/Gallery.styl.js +2 -7
- package/dist/esm/src/components/Gallery/Gallery.styl.js.map +1 -0
- package/dist/esm/src/components/Heading/Heading.js +2 -37
- package/dist/esm/src/components/Heading/Heading.js.map +1 -0
- package/dist/esm/src/components/Heading/Heading.styl.js +2 -7
- package/dist/esm/src/components/Heading/Heading.styl.js.map +1 -0
- package/dist/esm/src/components/Icon/Icon.js +2 -21
- package/dist/esm/src/components/Icon/Icon.js.map +1 -0
- package/dist/esm/src/components/Icon/Icon.styl.js +2 -7
- package/dist/esm/src/components/Icon/Icon.styl.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/apple.svg.js +2 -16
- package/dist/esm/src/components/Icon/icons/apple.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/arrowDown.svg.js +2 -17
- package/dist/esm/src/components/Icon/icons/arrowDown.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/arrowLeft.svg.js +2 -17
- package/dist/esm/src/components/Icon/icons/arrowLeft.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/arrowRight.svg.js +2 -17
- package/dist/esm/src/components/Icon/icons/arrowRight.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/arrowUp.svg.js +2 -17
- package/dist/esm/src/components/Icon/icons/arrowUp.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/attach.svg.js +2 -19
- package/dist/esm/src/components/Icon/icons/attach.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/avatar.svg.js +2 -15
- package/dist/esm/src/components/Icon/icons/avatar.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/bookmark.svg.js +2 -17
- package/dist/esm/src/components/Icon/icons/bookmark.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/bookmarkAdd.svg.js +2 -17
- package/dist/esm/src/components/Icon/icons/bookmarkAdd.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/brain.svg.js +2 -22
- package/dist/esm/src/components/Icon/icons/brain.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/brokenImage.svg.js +2 -15
- package/dist/esm/src/components/Icon/icons/brokenImage.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/call.svg.js +2 -17
- package/dist/esm/src/components/Icon/icons/call.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/camera.svg.js +2 -17
- package/dist/esm/src/components/Icon/icons/camera.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/chat.svg.js +2 -17
- package/dist/esm/src/components/Icon/icons/chat.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/check.svg.js +2 -19
- package/dist/esm/src/components/Icon/icons/check.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/checkers.svg.js +2 -18
- package/dist/esm/src/components/Icon/icons/checkers.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/chevronDown.svg.js +2 -20
- package/dist/esm/src/components/Icon/icons/chevronDown.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/chevronLeft.svg.js +2 -20
- package/dist/esm/src/components/Icon/icons/chevronLeft.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/chevronRight.svg.js +2 -20
- package/dist/esm/src/components/Icon/icons/chevronRight.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/chevronUp.svg.js +2 -20
- package/dist/esm/src/components/Icon/icons/chevronUp.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/clearAll.svg.js +2 -17
- package/dist/esm/src/components/Icon/icons/clearAll.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/close.svg.js +2 -15
- package/dist/esm/src/components/Icon/icons/close.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/colors.svg.js +2 -60
- package/dist/esm/src/components/Icon/icons/colors.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/compass.svg.js +2 -56
- package/dist/esm/src/components/Icon/icons/compass.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/copy.svg.js +2 -15
- package/dist/esm/src/components/Icon/icons/copy.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/cubes.svg.js +2 -17
- package/dist/esm/src/components/Icon/icons/cubes.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/delete.svg.js +2 -15
- package/dist/esm/src/components/Icon/icons/delete.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/discord.svg.js +2 -17
- package/dist/esm/src/components/Icon/icons/discord.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/draft.svg.js +2 -15
- package/dist/esm/src/components/Icon/icons/draft.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/dragHandlerHorizontal.svg.js +2 -15
- package/dist/esm/src/components/Icon/icons/dragHandlerHorizontal.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/dragHandlerVertical.svg.js +2 -15
- package/dist/esm/src/components/Icon/icons/dragHandlerVertical.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/edit.svg.js +2 -15
- package/dist/esm/src/components/Icon/icons/edit.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/email.svg.js +2 -15
- package/dist/esm/src/components/Icon/icons/email.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/externalLink.svg.js +2 -15
- package/dist/esm/src/components/Icon/icons/externalLink.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/eye.svg.js +2 -15
- package/dist/esm/src/components/Icon/icons/eye.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/flyover.svg.js +2 -17
- package/dist/esm/src/components/Icon/icons/flyover.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/folder.svg.js +2 -17
- package/dist/esm/src/components/Icon/icons/folder.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/folderOpen.svg.js +2 -17
- package/dist/esm/src/components/Icon/icons/folderOpen.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/forward.svg.js +2 -17
- package/dist/esm/src/components/Icon/icons/forward.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/fullscreen.svg.js +2 -15
- package/dist/esm/src/components/Icon/icons/fullscreen.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/fullscreenExit.svg.js +2 -15
- package/dist/esm/src/components/Icon/icons/fullscreenExit.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/function.svg.js +2 -15
- package/dist/esm/src/components/Icon/icons/function.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/gear.svg.js +2 -21
- package/dist/esm/src/components/Icon/icons/gear.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/geolocation.svg.js +2 -17
- package/dist/esm/src/components/Icon/icons/geolocation.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/github.svg.js +2 -18
- package/dist/esm/src/components/Icon/icons/github.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/globe.svg.js +2 -17
- package/dist/esm/src/components/Icon/icons/globe.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/google.svg.js +2 -42
- package/dist/esm/src/components/Icon/icons/google.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/group.svg.js +2 -15
- package/dist/esm/src/components/Icon/icons/group.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/history.svg.js +2 -17
- package/dist/esm/src/components/Icon/icons/history.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/home.svg.js +2 -19
- package/dist/esm/src/components/Icon/icons/home.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/image.svg.js +2 -17
- package/dist/esm/src/components/Icon/icons/image.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/index.js +2 -95
- package/dist/esm/src/components/Icon/icons/index.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/instagram.svg.js +2 -15
- package/dist/esm/src/components/Icon/icons/instagram.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/layers.svg.js +2 -17
- package/dist/esm/src/components/Icon/icons/layers.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/link.svg.js +2 -15
- package/dist/esm/src/components/Icon/icons/link.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/linkedin.svg.js +2 -20
- package/dist/esm/src/components/Icon/icons/linkedin.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/loader.svg.js +2 -45
- package/dist/esm/src/components/Icon/icons/loader.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/lock.svg.js +2 -19
- package/dist/esm/src/components/Icon/icons/lock.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/lockOpen.svg.js +2 -19
- package/dist/esm/src/components/Icon/icons/lockOpen.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/map.svg.js +2 -17
- package/dist/esm/src/components/Icon/icons/map.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/menu.svg.js +2 -18
- package/dist/esm/src/components/Icon/icons/menu.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/mic.svg.js +2 -15
- package/dist/esm/src/components/Icon/icons/mic.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/micMuted.svg.js +2 -27
- package/dist/esm/src/components/Icon/icons/micMuted.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/minus.svg.js +2 -15
- package/dist/esm/src/components/Icon/icons/minus.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/moreHorizontal.svg.js +2 -15
- package/dist/esm/src/components/Icon/icons/moreHorizontal.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/moreVertical.svg.js +2 -15
- package/dist/esm/src/components/Icon/icons/moreVertical.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/output.svg.js +2 -15
- package/dist/esm/src/components/Icon/icons/output.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/pause.svg.js +2 -15
- package/dist/esm/src/components/Icon/icons/pause.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/play.svg.js +2 -20
- package/dist/esm/src/components/Icon/icons/play.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/plus.svg.js +2 -15
- package/dist/esm/src/components/Icon/icons/plus.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/redo.svg.js +2 -15
- package/dist/esm/src/components/Icon/icons/redo.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/requiredStar.svg.js +2 -15
- package/dist/esm/src/components/Icon/icons/requiredStar.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/rewind.svg.js +2 -17
- package/dist/esm/src/components/Icon/icons/rewind.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/rocket.svg.js +2 -22
- package/dist/esm/src/components/Icon/icons/rocket.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/route.svg.js +2 -17
- package/dist/esm/src/components/Icon/icons/route.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/routeFrom.svg.js +2 -31
- package/dist/esm/src/components/Icon/icons/routeFrom.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/routeTo.svg.js +2 -31
- package/dist/esm/src/components/Icon/icons/routeTo.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/save.svg.js +2 -17
- package/dist/esm/src/components/Icon/icons/save.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/search.svg.js +2 -17
- package/dist/esm/src/components/Icon/icons/search.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/send.svg.js +2 -16
- package/dist/esm/src/components/Icon/icons/send.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/settings.svg.js +2 -52
- package/dist/esm/src/components/Icon/icons/settings.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/shoppingBag.svg.js +2 -17
- package/dist/esm/src/components/Icon/icons/shoppingBag.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/smile.svg.js +2 -30
- package/dist/esm/src/components/Icon/icons/smile.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/soundWave.svg.js +2 -66
- package/dist/esm/src/components/Icon/icons/soundWave.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/sparks.svg.js +2 -21
- package/dist/esm/src/components/Icon/icons/sparks.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/star.svg.js +2 -18
- package/dist/esm/src/components/Icon/icons/star.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/stop.svg.js +2 -22
- package/dist/esm/src/components/Icon/icons/stop.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/stopInCircle.svg.js +2 -17
- package/dist/esm/src/components/Icon/icons/stopInCircle.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/syncArrows.svg.js +2 -22
- package/dist/esm/src/components/Icon/icons/syncArrows.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/table.svg.js +2 -15
- package/dist/esm/src/components/Icon/icons/table.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/telegram.svg.js +2 -19
- package/dist/esm/src/components/Icon/icons/telegram.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/tool.svg.js +2 -17
- package/dist/esm/src/components/Icon/icons/tool.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/trafficLight.svg.js +2 -49
- package/dist/esm/src/components/Icon/icons/trafficLight.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/undo.svg.js +2 -15
- package/dist/esm/src/components/Icon/icons/undo.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/usage.svg.js +2 -25
- package/dist/esm/src/components/Icon/icons/usage.svg.js.map +1 -0
- package/dist/esm/src/components/Icon/icons/youtube.svg.js +2 -20
- package/dist/esm/src/components/Icon/icons/youtube.svg.js.map +1 -0
- package/dist/esm/src/components/Input/Input.js +2 -281
- package/dist/esm/src/components/Input/Input.js.map +1 -0
- package/dist/esm/src/components/Input/Input.styl.js +2 -7
- package/dist/esm/src/components/Input/Input.styl.js.map +1 -0
- package/dist/esm/src/components/InputFile/InputFile.js +2 -313
- package/dist/esm/src/components/InputFile/InputFile.js.map +1 -0
- package/dist/esm/src/components/InputFile/InputFile.styl.js +2 -7
- package/dist/esm/src/components/InputFile/InputFile.styl.js.map +1 -0
- package/dist/esm/src/components/InputFile/InputFile.types.js +1 -0
- package/dist/esm/src/components/InputFile/InputFile.types.js.map +1 -0
- package/dist/esm/src/components/InputFile/Item/Item.js +2 -18
- package/dist/esm/src/components/InputFile/Item/Item.js.map +1 -0
- package/dist/esm/src/components/InputFile/Item/Item.styl.js +2 -7
- package/dist/esm/src/components/InputFile/Item/Item.styl.js.map +1 -0
- package/dist/esm/src/components/Label/Label.constants.json.js +2 -8
- package/dist/esm/src/components/Label/Label.constants.json.js.map +1 -0
- package/dist/esm/src/components/Label/Label.helpers.js +2 -35
- package/dist/esm/src/components/Label/Label.helpers.js.map +1 -0
- package/dist/esm/src/components/Label/Label.js +2 -58
- package/dist/esm/src/components/Label/Label.js.map +1 -0
- package/dist/esm/src/components/Label/Label.styl.js +2 -7
- package/dist/esm/src/components/Label/Label.styl.js.map +1 -0
- package/dist/esm/src/components/LangSelector/LangSelector.js +2 -10
- package/dist/esm/src/components/LangSelector/LangSelector.js.map +1 -0
- package/dist/esm/src/components/Lazy/Lazy.js +2 -74
- package/dist/esm/src/components/Lazy/Lazy.js.map +1 -0
- package/dist/esm/src/components/LightBox/LightBox.js +2 -28
- package/dist/esm/src/components/LightBox/LightBox.js.map +1 -0
- package/dist/esm/src/components/LightBox/LightBox.styl.js +2 -7
- package/dist/esm/src/components/LightBox/LightBox.styl.js.map +1 -0
- package/dist/esm/src/components/Menu/Menu.js +2 -27
- package/dist/esm/src/components/Menu/Menu.js.map +1 -0
- package/dist/esm/src/components/Menu/Menu.styl.js +2 -7
- package/dist/esm/src/components/Menu/Menu.styl.js.map +1 -0
- package/dist/esm/src/components/Notifications/Notifications.constants.json.js +2 -6
- package/dist/esm/src/components/Notifications/Notifications.constants.json.js.map +1 -0
- package/dist/esm/src/components/Notifications/Notifications.js +2 -67
- package/dist/esm/src/components/Notifications/Notifications.js.map +1 -0
- package/dist/esm/src/components/Notifications/Notifications.styl.js +2 -7
- package/dist/esm/src/components/Notifications/Notifications.styl.js.map +1 -0
- package/dist/esm/src/components/Notifications/store.js +2 -61
- package/dist/esm/src/components/Notifications/store.js.map +1 -0
- package/dist/esm/src/components/Paranja/Paranja.js +2 -14
- package/dist/esm/src/components/Paranja/Paranja.js.map +1 -0
- package/dist/esm/src/components/Paranja/Paranja.styl.js +2 -7
- package/dist/esm/src/components/Paranja/Paranja.styl.js.map +1 -0
- package/dist/esm/src/components/Popup/Popup.helpers.js +2 -130
- package/dist/esm/src/components/Popup/Popup.helpers.js.map +1 -0
- package/dist/esm/src/components/Popup/Popup.js +2 -484
- package/dist/esm/src/components/Popup/Popup.js.map +1 -0
- package/dist/esm/src/components/Popup/Popup.styl.js +2 -7
- package/dist/esm/src/components/Popup/Popup.styl.js.map +1 -0
- package/dist/esm/src/components/PopupMenu/PopupMenu.js +2 -15
- package/dist/esm/src/components/PopupMenu/PopupMenu.js.map +1 -0
- package/dist/esm/src/components/PopupMenu/PopupMenu.styl.js +2 -7
- package/dist/esm/src/components/PopupMenu/PopupMenu.styl.js.map +1 -0
- package/dist/esm/src/components/Portal/Portal.js +2 -33
- package/dist/esm/src/components/Portal/Portal.js.map +1 -0
- package/dist/esm/src/components/Progress/Progress.helpers.js +2 -5
- package/dist/esm/src/components/Progress/Progress.helpers.js.map +1 -0
- package/dist/esm/src/components/Progress/Progress.js +2 -12
- package/dist/esm/src/components/Progress/Progress.js.map +1 -0
- package/dist/esm/src/components/Progress/Progress.styl.js +2 -7
- package/dist/esm/src/components/Progress/Progress.styl.js.map +1 -0
- package/dist/esm/src/components/ProgressCircular/ProgressCircular.js +2 -23
- package/dist/esm/src/components/ProgressCircular/ProgressCircular.js.map +1 -0
- package/dist/esm/src/components/ProgressCircular/ProgressCircular.styl.js +2 -7
- package/dist/esm/src/components/ProgressCircular/ProgressCircular.styl.js.map +1 -0
- package/dist/esm/src/components/RadioButton/RadioButton.js +2 -33
- package/dist/esm/src/components/RadioButton/RadioButton.js.map +1 -0
- package/dist/esm/src/components/RadioButton/RadioButton.styl.js +2 -7
- package/dist/esm/src/components/RadioButton/RadioButton.styl.js.map +1 -0
- package/dist/esm/src/components/RadioGroup/RadioGroup.js +2 -31
- package/dist/esm/src/components/RadioGroup/RadioGroup.js.map +1 -0
- package/dist/esm/src/components/RadioGroup/RadioGroup.styl.js +2 -7
- package/dist/esm/src/components/RadioGroup/RadioGroup.styl.js.map +1 -0
- package/dist/esm/src/components/RadioGroup/RadioGroupContext.js +2 -8
- package/dist/esm/src/components/RadioGroup/RadioGroupContext.js.map +1 -0
- package/dist/esm/src/components/RequiredStar/RequiredStar.js +2 -12
- package/dist/esm/src/components/RequiredStar/RequiredStar.js.map +1 -0
- package/dist/esm/src/components/RequiredStar/RequiredStar.styl.js +2 -7
- package/dist/esm/src/components/RequiredStar/RequiredStar.styl.js.map +1 -0
- package/dist/esm/src/components/Router/Link/Link.js +2 -62
- package/dist/esm/src/components/Router/Link/Link.js.map +1 -0
- package/dist/esm/src/components/Router/Link/Link.styl.js +2 -7
- package/dist/esm/src/components/Router/Link/Link.styl.js.map +1 -0
- package/dist/esm/src/components/Router/Redirect.js +2 -12
- package/dist/esm/src/components/Router/Redirect.js.map +1 -0
- package/dist/esm/src/components/Router/Route.js +2 -6
- package/dist/esm/src/components/Router/Route.js.map +1 -0
- package/dist/esm/src/components/Router/Router.helpers.js +2 -33
- package/dist/esm/src/components/Router/Router.helpers.js.map +1 -0
- package/dist/esm/src/components/Router/Router.js +2 -72
- package/dist/esm/src/components/Router/Router.js.map +1 -0
- package/dist/esm/src/components/Router/context.js +2 -5
- package/dist/esm/src/components/Router/context.js.map +1 -0
- package/dist/esm/src/components/Router/store.js +2 -75
- package/dist/esm/src/components/Router/store.js.map +1 -0
- package/dist/esm/src/components/Scroll/Scroll.js +2 -308
- package/dist/esm/src/components/Scroll/Scroll.js.map +1 -0
- package/dist/esm/src/components/Scroll/Scroll.styl.js +2 -7
- package/dist/esm/src/components/Scroll/Scroll.styl.js.map +1 -0
- package/dist/esm/src/components/Select/Select.helpers.js +2 -37
- package/dist/esm/src/components/Select/Select.helpers.js.map +1 -0
- package/dist/esm/src/components/Select/Select.js +2 -601
- package/dist/esm/src/components/Select/Select.js.map +1 -0
- package/dist/esm/src/components/Select/Select.styl.js +2 -7
- package/dist/esm/src/components/Select/Select.styl.js.map +1 -0
- package/dist/esm/src/components/Select/Select2.js +2 -334
- package/dist/esm/src/components/Select/Select2.js.map +1 -0
- package/dist/esm/src/components/Shimmer/Shimmer.js +2 -7
- package/dist/esm/src/components/Shimmer/Shimmer.js.map +1 -0
- package/dist/esm/src/components/Shimmer/Shimmer.styl.js +2 -7
- package/dist/esm/src/components/Shimmer/Shimmer.styl.js.map +1 -0
- package/dist/esm/src/components/Spinner/Spinner.js +2 -11
- package/dist/esm/src/components/Spinner/Spinner.js.map +1 -0
- package/dist/esm/src/components/Spinner/Spinner.styl.js +2 -7
- package/dist/esm/src/components/Spinner/Spinner.styl.js.map +1 -0
- package/dist/esm/src/components/Spinner/spinner.svg.js +2 -24
- package/dist/esm/src/components/Spinner/spinner.svg.js.map +1 -0
- package/dist/esm/src/components/Table/Table.js +2 -24
- package/dist/esm/src/components/Table/Table.js.map +1 -0
- package/dist/esm/src/components/Table/Table.styl.js +2 -7
- package/dist/esm/src/components/Table/Table.styl.js.map +1 -0
- package/dist/esm/src/components/Tabs/Tabs.js +2 -48
- package/dist/esm/src/components/Tabs/Tabs.js.map +1 -0
- package/dist/esm/src/components/Tabs/Tabs.styl.js +2 -7
- package/dist/esm/src/components/Tabs/Tabs.styl.js.map +1 -0
- package/dist/esm/src/components/Text/Text.js +2 -44
- package/dist/esm/src/components/Text/Text.js.map +1 -0
- package/dist/esm/src/components/Text/Text.styl.js +2 -7
- package/dist/esm/src/components/Text/Text.styl.js.map +1 -0
- package/dist/esm/src/components/Theme/Theme.defaults.js +2 -53
- package/dist/esm/src/components/Theme/Theme.defaults.js.map +1 -0
- package/dist/esm/src/components/Theme/Theme.helpers.js +2 -67
- package/dist/esm/src/components/Theme/Theme.helpers.js.map +1 -0
- package/dist/esm/src/components/Theme/Theme.js +2 -15
- package/dist/esm/src/components/Theme/Theme.js.map +1 -0
- package/dist/esm/src/components/Theme/ThemeProvider.js +2 -50
- package/dist/esm/src/components/Theme/ThemeProvider.js.map +1 -0
- package/dist/esm/src/components/Toggle/Toggle.js +2 -18
- package/dist/esm/src/components/Toggle/Toggle.js.map +1 -0
- package/dist/esm/src/components/Toggle/Toggle.styl.js +2 -7
- package/dist/esm/src/components/Toggle/Toggle.styl.js.map +1 -0
- package/dist/esm/src/components/Tooltip/Tooltip.js +2 -86
- package/dist/esm/src/components/Tooltip/Tooltip.js.map +1 -0
- package/dist/esm/src/components/Tooltip/Tooltip.styl.js +2 -7
- package/dist/esm/src/components/Tooltip/Tooltip.styl.js.map +1 -0
- package/dist/esm/src/components/VH/VH.js +2 -33
- package/dist/esm/src/components/VH/VH.js.map +1 -0
- package/dist/esm/src/components/Virtualized/List/List.js +2 -136
- package/dist/esm/src/components/Virtualized/List/List.js.map +1 -0
- package/dist/esm/src/components/Virtualized/List/List.styl.js +2 -7
- package/dist/esm/src/components/Virtualized/List/List.styl.js.map +1 -0
- package/dist/esm/src/components/Virtualized/List/ListScroll.js +2 -22
- package/dist/esm/src/components/Virtualized/List/ListScroll.js.map +1 -0
- package/dist/esm/src/components/Virtualized/List/ListScroll.styl.js +2 -7
- package/dist/esm/src/components/Virtualized/List/ListScroll.styl.js.map +1 -0
- package/dist/esm/src/components/Virtualized/Virtualized.helpers.js +2 -14
- package/dist/esm/src/components/Virtualized/Virtualized.helpers.js.map +1 -0
- package/dist/esm/src/components/Virtualized/Virtualized.js +2 -218
- package/dist/esm/src/components/Virtualized/Virtualized.js.map +1 -0
- package/dist/esm/src/components/Virtualized/Virtualized.styl.js +2 -7
- package/dist/esm/src/components/Virtualized/Virtualized.styl.js.map +1 -0
- package/dist/esm/src/components/Virtualized/Virtualized.types.js +1 -0
- package/dist/esm/src/components/Virtualized/Virtualized.types.js.map +1 -0
- package/dist/esm/src/hooks/useDebounce.js +2 -11
- package/dist/esm/src/hooks/useDebounce.js.map +1 -0
- package/dist/esm/src/hooks/useEvent.js +2 -27
- package/dist/esm/src/hooks/useEvent.js.map +1 -0
- package/dist/esm/src/hooks/useIsMounted.js +2 -11
- package/dist/esm/src/hooks/useIsMounted.js.map +1 -0
- package/dist/esm/src/hooks/useListKeyboardControl.js +2 -50
- package/dist/esm/src/hooks/useListKeyboardControl.js.map +1 -0
- package/dist/esm/src/hooks/useResizeObserver.js +2 -15
- package/dist/esm/src/hooks/useResizeObserver.js.map +1 -0
- package/dist/esm/src/hooks/useThrottle.js +2 -31
- package/dist/esm/src/hooks/useThrottle.js.map +1 -0
- package/dist/esm/src/hooks/useToggleState.js +2 -35
- package/dist/esm/src/hooks/useToggleState.js.map +1 -0
- package/dist/esm/src/services/i18n.js +2 -112
- package/dist/esm/src/services/i18n.js.map +1 -0
- package/dist/esm/src/tools/array.js +2 -60
- package/dist/esm/src/tools/array.js.map +1 -0
- package/dist/esm/src/tools/config.js +2 -9
- package/dist/esm/src/tools/config.js.map +1 -0
- package/dist/esm/src/tools/date.js +2 -11
- package/dist/esm/src/tools/date.js.map +1 -0
- package/dist/esm/src/tools/debounce.js +2 -11
- package/dist/esm/src/tools/debounce.js.map +1 -0
- package/dist/esm/src/tools/dom.js +2 -57
- package/dist/esm/src/tools/dom.js.map +1 -0
- package/dist/esm/src/tools/env.js +2 -3
- package/dist/esm/src/tools/env.js.map +1 -0
- package/dist/esm/src/tools/file.js +2 -11
- package/dist/esm/src/tools/file.js.map +1 -0
- package/dist/esm/src/tools/localStorage.js +2 -31
- package/dist/esm/src/tools/localStorage.js.map +1 -0
- package/dist/esm/src/tools/number.js +2 -27
- package/dist/esm/src/tools/number.js.map +1 -0
- package/dist/esm/src/tools/object.js +2 -5
- package/dist/esm/src/tools/object.js.map +1 -0
- package/dist/esm/src/tools/queryParams.js +2 -40
- package/dist/esm/src/tools/queryParams.js.map +1 -0
- package/dist/esm/src/tools/rangeMap.js +2 -3
- package/dist/esm/src/tools/rangeMap.js.map +1 -0
- package/dist/esm/src/tools/resizeObserver.js +2 -68
- package/dist/esm/src/tools/resizeObserver.js.map +1 -0
- package/dist/esm/src/tools/scroll.js +2 -41
- package/dist/esm/src/tools/scroll.js.map +1 -0
- package/dist/esm/src/tools/string.js +2 -7
- package/dist/esm/src/tools/string.js.map +1 -0
- package/dist/esm/src/tools/throttle.js +2 -30
- package/dist/esm/src/tools/throttle.js.map +1 -0
- package/dist/esm/src/tools/uid.js +2 -7
- package/dist/esm/src/tools/uid.js.map +1 -0
- package/dist/esm/types/src/components/Select/Select.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Label.styl.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { useI18N } from '../../services/i18n.js';
|
|
4
|
-
|
|
5
|
-
function LangSelector(props) {
|
|
6
|
-
const i18n = useI18N();
|
|
7
|
-
return jsx(Select2, { value: i18n.lang, onChange: i18n.changeLang, ...props });
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export { LangSelector };
|
|
1
|
+
import{jsx}from"react/jsx-runtime";import{Select2}from"../Select/Select2.js";import{useI18N}from"../../services/i18n.js";function LangSelector(e){var r=useI18N();return jsx(Select2,{value:r.lang,onChange:r.changeLang,...e})}export{LangSelector};
|
|
2
|
+
//# sourceMappingURL=LangSelector.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LangSelector.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,74 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import Time from 'timen';
|
|
4
|
-
import { Spinner } from '../Spinner/Spinner.js';
|
|
5
|
-
import { Flex } from '../Flex/Flex.js';
|
|
6
|
-
|
|
7
|
-
function compare(cb1, cb2) {
|
|
8
|
-
return cb1?.toString() === cb2?.toString();
|
|
9
|
-
}
|
|
10
|
-
const loaded = new Map();
|
|
11
|
-
function useLazy(loader, spinnerTimeout = 500) {
|
|
12
|
-
const [loading, setLoading] = useState(() => {
|
|
13
|
-
const cached = loaded.get(loader);
|
|
14
|
-
return !cached;
|
|
15
|
-
});
|
|
16
|
-
const [spinnerTimeoutState, setSpinnerTimeoutState] = useState(() => {
|
|
17
|
-
const cached = loaded.get(loader);
|
|
18
|
-
return !!cached;
|
|
19
|
-
});
|
|
20
|
-
const [importData, setImportData] = useState(() => loaded.get(loader));
|
|
21
|
-
const loaderRef = useRef(loader);
|
|
22
|
-
const timeoutRef = useRef(null);
|
|
23
|
-
useEffect(() => {
|
|
24
|
-
const cached = loaded.get(loader);
|
|
25
|
-
// If already loaded, don't show loading state
|
|
26
|
-
if (cached) {
|
|
27
|
-
setImportData(cached);
|
|
28
|
-
setLoading(false);
|
|
29
|
-
setSpinnerTimeoutState(true);
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
// If loader changed, clear previous timeout
|
|
33
|
-
if (!compare(loaderRef.current, loader)) {
|
|
34
|
-
timeoutRef.current?.();
|
|
35
|
-
timeoutRef.current = null;
|
|
36
|
-
}
|
|
37
|
-
loaderRef.current = loader;
|
|
38
|
-
// Start loading
|
|
39
|
-
setLoading(true);
|
|
40
|
-
setSpinnerTimeoutState(false);
|
|
41
|
-
timeoutRef.current = Time.after(spinnerTimeout, () => {
|
|
42
|
-
setSpinnerTimeoutState(true);
|
|
43
|
-
});
|
|
44
|
-
loader().then((data) => {
|
|
45
|
-
// Check if loader hasn't changed during async operation
|
|
46
|
-
if (!compare(loaderRef.current, loader))
|
|
47
|
-
return;
|
|
48
|
-
loaded.set(loader, data);
|
|
49
|
-
setImportData(data);
|
|
50
|
-
setLoading(false);
|
|
51
|
-
});
|
|
52
|
-
return () => {
|
|
53
|
-
timeoutRef.current?.();
|
|
54
|
-
};
|
|
55
|
-
}, [loader, spinnerTimeout]);
|
|
56
|
-
return { loading, spinnerTimeout: spinnerTimeoutState, importData };
|
|
57
|
-
}
|
|
58
|
-
function Lazy(props) {
|
|
59
|
-
const { progressElem, loader, render, children, hideSpinner, spinnerTimeout = 500, size = 'm', ...restProps } = props;
|
|
60
|
-
const { loading, spinnerTimeout: spinnerTimeoutState, importData, } = useLazy(loader, spinnerTimeout);
|
|
61
|
-
const DefaultNode = importData?.default;
|
|
62
|
-
if (loading && !spinnerTimeoutState && !hideSpinner) {
|
|
63
|
-
return (jsx(Fragment, { children: progressElem ?? (jsx(Flex, { justifyContent: "center", alignItems: "center", flexGrow: 1, width: "100%", height: "100%", children: jsx(Spinner, { size: size }) })) }));
|
|
64
|
-
}
|
|
65
|
-
if (render)
|
|
66
|
-
return jsx(Fragment, { children: render(importData) });
|
|
67
|
-
if (typeof children === 'function')
|
|
68
|
-
return jsx(Fragment, { children: children(importData) });
|
|
69
|
-
if (DefaultNode)
|
|
70
|
-
return jsx(DefaultNode, { ...restProps });
|
|
71
|
-
return jsx(Fragment, { children: children });
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export { Lazy };
|
|
1
|
+
import{jsx,Fragment}from"react/jsx-runtime";import{useState,useRef,useEffect}from"react";import Time from"timen";import{Spinner}from"../Spinner/Spinner.js";import{Flex}from"../Flex/Flex.js";function compare(e,r){return e?.toString()===r?.toString()}const loaded=new Map;function useLazy(r,t=500){const[e,n]=useState(()=>{return!loaded.get(r)}),[i,o]=useState(()=>{return!!loaded.get(r)}),[a,u]=useState(()=>loaded.get(r)),s=useRef(r),m=useRef(null);return useEffect(()=>{var e=loaded.get(r);if(!e)return compare(s.current,r)||(m.current?.(),m.current=null),s.current=r,n(!0),o(!1),m.current=Time.after(t,()=>{o(!0)}),r().then(e=>{compare(s.current,r)&&(loaded.set(r,e),u(e),n(!1))}),()=>{m.current?.()};u(e),n(!1),o(!0)},[r,t]),{loading:e,spinnerTimeout:i,importData:a}}function Lazy(e){const{progressElem:r,loader:t,render:n,children:i,hideSpinner:o,spinnerTimeout:a=500,size:u="m",...s}=e;var{loading:e,spinnerTimeout:m,importData:c}=useLazy(t,a),l=c?.default;return!e||m||o?n?jsx(Fragment,{children:n(c)}):"function"==typeof i?jsx(Fragment,{children:i(c)}):l?jsx(l,{...s}):jsx(Fragment,{children:i}):jsx(Fragment,{children:r??jsx(Flex,{justifyContent:"center",alignItems:"center",flexGrow:1,width:"100%",height:"100%",children:jsx(Spinner,{size:u})})})}export{Lazy};
|
|
2
|
+
//# sourceMappingURL=Lazy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Lazy.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,28 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import cn from 'classnames';
|
|
4
|
-
import { Paranja } from '../Paranja/Paranja.js';
|
|
5
|
-
import { Button } from '../Button/Button.js';
|
|
6
|
-
import { Icon } from '../Icon/Icon.js';
|
|
7
|
-
import S from './LightBox.styl.js';
|
|
8
|
-
|
|
9
|
-
function LightBox({ children, className, onClose, blur, ...props }) {
|
|
10
|
-
const [isOpen, setOpen] = useState(false);
|
|
11
|
-
const onKeyDown = useCallback(e => {
|
|
12
|
-
if (isOpen && e.key === 'Escape') {
|
|
13
|
-
e.stopPropagation();
|
|
14
|
-
setOpen(false);
|
|
15
|
-
onClose?.();
|
|
16
|
-
}
|
|
17
|
-
}, [isOpen, onClose]);
|
|
18
|
-
useEffect(() => {
|
|
19
|
-
setOpen(props.isOpen);
|
|
20
|
-
}, [props.isOpen]);
|
|
21
|
-
useEffect(() => {
|
|
22
|
-
document.addEventListener('keydown', onKeyDown, true);
|
|
23
|
-
return () => document.removeEventListener('keydown', onKeyDown, true);
|
|
24
|
-
}, [isOpen]);
|
|
25
|
-
return (jsxs(Paranja, { className: cn(S.root, isOpen && S.open, className), blur: blur, children: [children, jsx(Button, { className: S.close, onClick: onClose, variant: "clear", children: jsx(Icon, { type: "close", size: "l" }) })] }));
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export { LightBox };
|
|
1
|
+
import{jsxs,jsx}from"react/jsx-runtime";import{useState,useCallback,useEffect}from"react";import cn from"classnames";import{Paranja}from"../Paranja/Paranja.js";import{Button}from"../Button/Button.js";import{Icon}from"../Icon/Icon.js";import S from"./LightBox.styl.js";function LightBox({children:e,className:o,onClose:t,blur:s,...n}){const[r,a]=useState(!1),c=useCallback(e=>{r&&"Escape"===e.key&&(e.stopPropagation(),a(!1),t?.())},[r,t]);return useEffect(()=>{a(n.isOpen)},[n.isOpen]),useEffect(()=>(document.addEventListener("keydown",c,!0),()=>document.removeEventListener("keydown",c,!0)),[r]),jsxs(Paranja,{className:cn(S.root,r&&S.open,o),blur:s,children:[e,jsx(Button,{className:S.close,onClick:t,variant:"clear",children:jsx(Icon,{type:"close",size:"l"})})]})}export{LightBox};
|
|
2
|
+
//# sourceMappingURL=LightBox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LightBox.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import styleInject from
|
|
2
|
-
|
|
3
|
-
var css_248z = ".LightBox_root__R-JhJ{align-items:center;display:flex;justify-content:center;opacity:0;pointer-events:none;transition:opacity .2s ease-out}.LightBox_open__a-qrU{opacity:1;pointer-events:all}.LightBox_close__ts4k1{border-radius:0;color:var(--accent-color);height:60px;min-height:60px;position:absolute;right:0;top:0;width:60px;z-index:1}.LightBox_close__ts4k1:hover{background-color:var(--decent-color-alpha-200);color:var(--active-color)}@media (min-width:700px){.LightBox_close__ts4k1{height:100px;min-height:100px;width:100px}}";
|
|
4
|
-
var S = {"root":"LightBox_root__R-JhJ","open":"LightBox_open__a-qrU","close":"LightBox_close__ts4k1"};
|
|
5
|
-
styleInject(css_248z);
|
|
6
|
-
|
|
7
|
-
export { S as default };
|
|
1
|
+
import styleInject from"../../../node_modules/style-inject/dist/style-inject.es.js";var css_248z=".LightBox_root__R-JhJ{align-items:center;display:flex;justify-content:center;opacity:0;pointer-events:none;transition:opacity .2s ease-out}.LightBox_open__a-qrU{opacity:1;pointer-events:all}.LightBox_close__ts4k1{border-radius:0;color:var(--accent-color);height:60px;min-height:60px;position:absolute;right:0;top:0;width:60px;z-index:1}.LightBox_close__ts4k1:hover{background-color:var(--decent-color-alpha-200);color:var(--active-color)}@media (min-width:700px){.LightBox_close__ts4k1{height:100px;min-height:100px;width:100px}}",S={root:"LightBox_root__R-JhJ",open:"LightBox_open__a-qrU",close:"LightBox_close__ts4k1"};styleInject(css_248z);export{S as default};
|
|
2
|
+
//# sourceMappingURL=LightBox.styl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LightBox.styl.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,27 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import cn from 'classnames';
|
|
4
|
-
import { Scroll } from '../Scroll/Scroll.js';
|
|
5
|
-
import S from './Menu.styl.js';
|
|
6
|
-
|
|
7
|
-
// @ts-ignore
|
|
8
|
-
const MenuComponent = forwardRef(({ children, className, textOverflow, ...props }, ref) => {
|
|
9
|
-
const size = props.size || 'm';
|
|
10
|
-
return (jsx(Scroll, { y: true,
|
|
11
|
-
// @ts-ignore
|
|
12
|
-
ref: ref, className: cn(S.root, className, S[`size-${size}`], textOverflow && S.textOverflow), ...props, children: children }));
|
|
13
|
-
});
|
|
14
|
-
const MenuItem = forwardRef((props, ref) => {
|
|
15
|
-
const { children, className, selected, focused, disabled, level = 0, onClick, textOverflow, ...rest } = props;
|
|
16
|
-
const classes = cn(S.item, level > 0 && S[`level-${level}`], selected && S.selected, focused && S.focused, disabled && S.disabled, textOverflow && S.textOverflow, className);
|
|
17
|
-
return (jsx("div", { ref: ref, className: classes, onClick: disabled ? undefined : onClick, ...rest, children: textOverflow ? children : jsx("span", { children: children }) }));
|
|
18
|
-
});
|
|
19
|
-
const MenuGroup = ({ children, className, label, size = 'm', ...props }) => {
|
|
20
|
-
return (jsxs(Fragment, { children: [jsx("div", { className: cn(S.group, className, S[`size-${size}`]), ...props, children: label }), children] }));
|
|
21
|
-
};
|
|
22
|
-
const Menu = Object.assign(MenuComponent, {
|
|
23
|
-
Item: MenuItem,
|
|
24
|
-
Group: MenuGroup,
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
export { Menu };
|
|
1
|
+
import{jsx,jsxs,Fragment}from"react/jsx-runtime";import{forwardRef}from"react";import cn from"classnames";import{Scroll}from"../Scroll/Scroll.js";import S from"./Menu.styl.js";const MenuComponent=forwardRef(({children:e,className:r,textOverflow:s,...l},o)=>{var n=l.size||"m";return jsx(Scroll,{y:!0,ref:o,className:cn(S.root,r,S["size-"+n],s&&S.textOverflow),...l,children:e})}),MenuItem=forwardRef((e,r)=>{const{children:s,className:l,selected:o,focused:n,disabled:c,level:t=0,onClick:m,textOverflow:a,...i}=e;e=cn(S.item,0<t&&S["level-"+t],o&&S.selected,n&&S.focused,c&&S.disabled,a&&S.textOverflow,l);return jsx("div",{ref:r,className:e,onClick:c?void 0:m,...i,children:a?s:jsx("span",{children:s})})}),MenuGroup=({children:e,className:r,label:s,size:l="m",...o})=>jsxs(Fragment,{children:[jsx("div",{className:cn(S.group,r,S["size-"+l]),...o,children:s}),e]}),Menu=Object.assign(MenuComponent,{Item:MenuItem,Group:MenuGroup});export{Menu};
|
|
2
|
+
//# sourceMappingURL=Menu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Menu.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import styleInject from
|
|
2
|
-
|
|
3
|
-
var css_248z = ".Menu_root__xhtlo{max-height:200px;width:100%}.keyboard .Menu_root__xhtlo{pointer-events:none}.Menu_item__VtmwS{align-items:center;animation:Menu_fadeIn__XRZkT .3s ease-out;cursor:pointer;display:flex;overflow:hidden;padding-bottom:0!important;padding-top:0!important;position:relative;text-align:left;text-overflow:ellipsis;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;width:100%}.Menu_item__VtmwS:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.Menu_item__VtmwS:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.Menu_size-xs__MSbRQ .Menu_item__VtmwS{font-size:14px;height:24px;padding:0 8px}.Menu_size-s__DA0r3 .Menu_item__VtmwS{font-size:16px;height:32px;padding:0 12px}.Menu_size-m__0EI47 .Menu_item__VtmwS{font-size:18px;height:40px;padding:0 16px}.Menu_size-l__PXpIm .Menu_item__VtmwS{font-size:22px;height:48px;padding:0 20px}.Menu_size-xl__U1WW8 .Menu_item__VtmwS{font-size:26px;height:56px;padding:0 24px}.Menu_item__VtmwS.Menu_selected__V71xy{background-color:var(--active-color-alpha-500)}.Menu_item__VtmwS.Menu_disabled__5afRm{cursor:not-allowed;opacity:.4}.keyboard .Menu_item__VtmwS.Menu_focused__FLWqW,.pointer .Menu_item__VtmwS:hover{box-shadow:inset 100vw 0 0 0 var(--accent-color-alpha-200)}.Menu_textOverflow__udsHR .Menu_item__VtmwS>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.Menu_group__6e-Ef{background-color:var(--decent-color);color:var(--accent-color);font-size:14px;font-weight:500;padding:8px 12px;pointer-events:none;position:sticky;top:0;z-index:1}.Menu_levelIndent__S6HXJ{--menu-indent-size:var(--p-3)}.Menu_levelIndent__S6HXJ.Menu_level-1__kueO2{padding-left:calc(var(--menu-indent-size)*2)}.Menu_levelIndent__S6HXJ.Menu_level-2__JZGkJ{padding-left:calc(var(--menu-indent-size)*3)}.Menu_levelIndent__S6HXJ.Menu_level-3__LFd-F{padding-left:calc(var(--menu-indent-size)*4)}.Menu_levelIndent__S6HXJ.Menu_level-4__2DUMl{padding-left:calc(var(--menu-indent-size)*5)}.Menu_levelIndent__S6HXJ.Menu_level-5__xpgvQ{padding-left:calc(var(--menu-indent-size)*6)}@keyframes Menu_fadeIn__XRZkT{0%{opacity:0}10%{opacity:0}to{opacity:1}}";
|
|
4
|
-
var S = {"root":"Menu_root__xhtlo","item":"Menu_item__VtmwS","fadeIn":"Menu_fadeIn__XRZkT","size-xs":"Menu_size-xs__MSbRQ","size-s":"Menu_size-s__DA0r3","size-m":"Menu_size-m__0EI47","size-l":"Menu_size-l__PXpIm","size-xl":"Menu_size-xl__U1WW8","selected":"Menu_selected__V71xy","disabled":"Menu_disabled__5afRm","focused":"Menu_focused__FLWqW","textOverflow":"Menu_textOverflow__udsHR","group":"Menu_group__6e-Ef","levelIndent":"Menu_levelIndent__S6HXJ","level-1":"Menu_level-1__kueO2","level-2":"Menu_level-2__JZGkJ","level-3":"Menu_level-3__LFd-F","level-4":"Menu_level-4__2DUMl","level-5":"Menu_level-5__xpgvQ"};
|
|
5
|
-
styleInject(css_248z);
|
|
6
|
-
|
|
7
|
-
export { S as default };
|
|
1
|
+
import styleInject from"../../../node_modules/style-inject/dist/style-inject.es.js";var css_248z=".Menu_root__xhtlo{max-height:200px;width:100%}.keyboard .Menu_root__xhtlo{pointer-events:none}.Menu_item__VtmwS{align-items:center;animation:Menu_fadeIn__XRZkT .3s ease-out;cursor:pointer;display:flex;overflow:hidden;padding-bottom:0!important;padding-top:0!important;position:relative;text-align:left;text-overflow:ellipsis;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;width:100%}.Menu_item__VtmwS:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.Menu_item__VtmwS:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.Menu_size-xs__MSbRQ .Menu_item__VtmwS{font-size:14px;height:24px;padding:0 8px}.Menu_size-s__DA0r3 .Menu_item__VtmwS{font-size:16px;height:32px;padding:0 12px}.Menu_size-m__0EI47 .Menu_item__VtmwS{font-size:18px;height:40px;padding:0 16px}.Menu_size-l__PXpIm .Menu_item__VtmwS{font-size:22px;height:48px;padding:0 20px}.Menu_size-xl__U1WW8 .Menu_item__VtmwS{font-size:26px;height:56px;padding:0 24px}.Menu_item__VtmwS.Menu_selected__V71xy{background-color:var(--active-color-alpha-500)}.Menu_item__VtmwS.Menu_disabled__5afRm{cursor:not-allowed;opacity:.4}.keyboard .Menu_item__VtmwS.Menu_focused__FLWqW,.pointer .Menu_item__VtmwS:hover{box-shadow:inset 100vw 0 0 0 var(--accent-color-alpha-200)}.Menu_textOverflow__udsHR .Menu_item__VtmwS>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.Menu_group__6e-Ef{background-color:var(--decent-color);color:var(--accent-color);font-size:14px;font-weight:500;padding:8px 12px;pointer-events:none;position:sticky;top:0;z-index:1}.Menu_levelIndent__S6HXJ{--menu-indent-size:var(--p-3)}.Menu_levelIndent__S6HXJ.Menu_level-1__kueO2{padding-left:calc(var(--menu-indent-size)*2)}.Menu_levelIndent__S6HXJ.Menu_level-2__JZGkJ{padding-left:calc(var(--menu-indent-size)*3)}.Menu_levelIndent__S6HXJ.Menu_level-3__LFd-F{padding-left:calc(var(--menu-indent-size)*4)}.Menu_levelIndent__S6HXJ.Menu_level-4__2DUMl{padding-left:calc(var(--menu-indent-size)*5)}.Menu_levelIndent__S6HXJ.Menu_level-5__xpgvQ{padding-left:calc(var(--menu-indent-size)*6)}@keyframes Menu_fadeIn__XRZkT{0%{opacity:0}10%{opacity:0}to{opacity:1}}",S={root:"Menu_root__xhtlo",item:"Menu_item__VtmwS",fadeIn:"Menu_fadeIn__XRZkT","size-xs":"Menu_size-xs__MSbRQ","size-s":"Menu_size-s__DA0r3","size-m":"Menu_size-m__0EI47","size-l":"Menu_size-l__PXpIm","size-xl":"Menu_size-xl__U1WW8",selected:"Menu_selected__V71xy",disabled:"Menu_disabled__5afRm",focused:"Menu_focused__FLWqW",textOverflow:"Menu_textOverflow__udsHR",group:"Menu_group__6e-Ef",levelIndent:"Menu_levelIndent__S6HXJ","level-1":"Menu_level-1__kueO2","level-2":"Menu_level-2__JZGkJ","level-3":"Menu_level-3__LFd-F","level-4":"Menu_level-4__2DUMl","level-5":"Menu_level-5__xpgvQ"};styleInject(css_248z);export{S as default};
|
|
2
|
+
//# sourceMappingURL=Menu.styl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Menu.styl.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
var ANIMATION_DURATION
|
|
2
|
-
|
|
3
|
-
ANIMATION_DURATION: ANIMATION_DURATION
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
export { ANIMATION_DURATION, C as default };
|
|
1
|
+
var ANIMATION_DURATION=300,C={ANIMATION_DURATION:ANIMATION_DURATION};export{ANIMATION_DURATION,C as default};
|
|
2
|
+
//# sourceMappingURL=Notifications.constants.json.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Notifications.constants.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,67 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import cn from 'classnames';
|
|
4
|
-
import { useStore } from 'justorm/react';
|
|
5
|
-
import { Icon } from '../Icon/Icon.js';
|
|
6
|
-
import { Button } from '../Button/Button.js';
|
|
7
|
-
import { Scroll } from '../Scroll/Scroll.js';
|
|
8
|
-
import STORE from './store.js';
|
|
9
|
-
import S from './Notifications.styl.js';
|
|
10
|
-
|
|
11
|
-
function getTouchPos(e) {
|
|
12
|
-
const { clientX: x, clientY: y } = e.targetTouches[0];
|
|
13
|
-
return { x, y };
|
|
14
|
-
}
|
|
15
|
-
function getDeltaPos(p1, p2) {
|
|
16
|
-
return {
|
|
17
|
-
x: Math.abs(p2.x - p1.x),
|
|
18
|
-
y: Math.abs(p2.y - p1.y),
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
const TOUCH_MOVE_TRESHOLD = 50;
|
|
22
|
-
class Item extends Component {
|
|
23
|
-
startPos = null;
|
|
24
|
-
onTouchStart = e => {
|
|
25
|
-
this.startPos = getTouchPos(e);
|
|
26
|
-
};
|
|
27
|
-
onTouchMove = e => {
|
|
28
|
-
const { unpause } = this.props;
|
|
29
|
-
if (!this.startPos)
|
|
30
|
-
return;
|
|
31
|
-
// e.preventDefault();
|
|
32
|
-
e.stopPropagation();
|
|
33
|
-
const pos = getTouchPos(e);
|
|
34
|
-
const delta = getDeltaPos(this.startPos, pos);
|
|
35
|
-
if (delta.x > delta.y && delta.x > TOUCH_MOVE_TRESHOLD) {
|
|
36
|
-
unpause();
|
|
37
|
-
this.closeMe();
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
onTouchEnd = () => {
|
|
41
|
-
const { unpause } = this.props;
|
|
42
|
-
unpause();
|
|
43
|
-
this.startPos = null;
|
|
44
|
-
};
|
|
45
|
-
onTouchCancel = () => (this.startPos = null);
|
|
46
|
-
closeMe = () => {
|
|
47
|
-
const { id, close } = this.props;
|
|
48
|
-
close(id);
|
|
49
|
-
};
|
|
50
|
-
render() {
|
|
51
|
-
const { type = 'default', title, content, visible, pause, unpause, } = this.props;
|
|
52
|
-
const classes = cn(S.item, S[`type-${type}`], visible && S.visible);
|
|
53
|
-
return (jsx("div", { className: classes, onMouseOver: pause, onFocus: pause, onTouchStart: this.onTouchStart, onTouchMove: this.onTouchMove, onMouseOut: unpause, onBlur: unpause, onTouchEnd: this.onTouchEnd, onTouchCancel: this.onTouchCancel, children: jsxs("div", { className: S.itemInner, children: [(title || content) && (jsxs("div", { className: S.text, children: [title && jsx("div", { className: S.title, children: title }), content && jsx("div", { className: S.content, children: content })] })), jsx(Button, { className: S.close, variant: "clear", square: true, onClick: this.closeMe, children: jsx(Icon, { type: "close", size: "s" }) })] }) }));
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
const NotificationsStore = STORE;
|
|
57
|
-
const Notifications = function Notifications(props) {
|
|
58
|
-
const { notifications } = useStore({
|
|
59
|
-
notifications: ['items', 'data'],
|
|
60
|
-
});
|
|
61
|
-
const { items, data, pause, unpause, close } = notifications;
|
|
62
|
-
const api = { pause, unpause, close };
|
|
63
|
-
const classes = cn(S.root, items.length === 0 && S.empty);
|
|
64
|
-
return (jsx(Scroll, { ...props, y: true, size: "s", className: classes, innerClassName: S.inner, offset: { y: { before: 22, after: 22 } }, children: items.map(id => (createElement(Item, { ...data[id], ...api, id: id, key: id }))) }));
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
export { Notifications, NotificationsStore };
|
|
1
|
+
import{createElement,Component}from"react";import{jsx,jsxs}from"react/jsx-runtime";import cn from"classnames";import{useStore}from"justorm/react";import{Icon}from"../Icon/Icon.js";import{Button}from"../Button/Button.js";import{Scroll}from"../Scroll/Scroll.js";import STORE from"./store.js";import S from"./Notifications.styl.js";function getTouchPos(t){var{clientX:t,clientY:o}=t.targetTouches[0];return{x:t,y:o}}function getDeltaPos(t,o){return{x:Math.abs(o.x-t.x),y:Math.abs(o.y-t.y)}}const TOUCH_MOVE_TRESHOLD=50;class Item extends Component{startPos=null;onTouchStart=t=>{this.startPos=getTouchPos(t)};onTouchMove=t=>{var o=this.props["unpause"];this.startPos&&(t.stopPropagation(),t=getTouchPos(t),(t=getDeltaPos(this.startPos,t)).x>t.y)&&t.x>TOUCH_MOVE_TRESHOLD&&(o(),this.closeMe())};onTouchEnd=()=>{var t=this.props["unpause"];t(),this.startPos=null};onTouchCancel=()=>this.startPos=null;closeMe=()=>{var{id:t,close:o}=this.props;o(t)};render(){var{type:t="default",title:o,content:s,visible:e,pause:n,unpause:r}=this.props,t=cn(S.item,S["type-"+t],e&&S.visible);return jsx("div",{className:t,onMouseOver:n,onFocus:n,onTouchStart:this.onTouchStart,onTouchMove:this.onTouchMove,onMouseOut:r,onBlur:r,onTouchEnd:this.onTouchEnd,onTouchCancel:this.onTouchCancel,children:jsxs("div",{className:S.itemInner,children:[(o||s)&&jsxs("div",{className:S.text,children:[o&&jsx("div",{className:S.title,children:o}),s&&jsx("div",{className:S.content,children:s})]}),jsx(Button,{className:S.close,variant:"clear",square:!0,onClick:this.closeMe,children:jsx(Icon,{type:"close",size:"s"})})]})})}}const NotificationsStore=STORE,Notifications=function(t){var o=useStore({notifications:["items","data"]})["notifications"];const{items:s,data:e,pause:n,unpause:r,close:i}=o,c={pause:n,unpause:r,close:i};o=cn(S.root,0===s.length&&S.empty);return jsx(Scroll,{...t,y:!0,size:"s",className:o,innerClassName:S.inner,offset:{y:{before:22,after:22}},children:s.map(t=>createElement(Item,{...e[t],...c,id:t,key:t}))})};export{Notifications,NotificationsStore};
|
|
2
|
+
//# sourceMappingURL=Notifications.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Notifications.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import styleInject from
|
|
2
|
-
|
|
3
|
-
var css_248z = ".Notifications_root__S3ujN{max-height:calc(var(--vh)*100);overflow:hidden;position:fixed;right:0;top:0;transform:translateZ(0);transition:right .3s ease-out;width:320px;z-index:20}.Notifications_inner__6v9e3{padding:var(--p-5)}.Notifications_empty__zCpOA{pointer-events:none}.Notifications_itemInner__nEYAl,.Notifications_item__I3Up4{border-radius:var(--border-radius-l)}.Notifications_item__I3Up4{-webkit-backface-visibility:hidden;backface-visibility:hidden;left:100%;max-height:0;max-width:100%;opacity:0;position:relative;transition:all .3s ease-out;width:300px}.Notifications_item__I3Up4+.Notifications_item__I3Up4{padding-top:10px}.Notifications_item__I3Up4:hover{transform:translateX(-2px)}.Notifications_visible__ln4-n{left:0;max-height:500px;opacity:1}.Notifications_itemInner__nEYAl{align-items:center;-webkit-backdrop-filter:blur(30px);backdrop-filter:blur(30px);background-color:var(--decent-color-alpha-500);box-shadow:inset 0 0 1px var(--accent-color-alpha-300),0 0 20px var(--decent-color);box-sizing:border-box;display:flex;padding:16px 32px 16px 20px;position:relative;transition:.3s ease-out;transition-property:transform}.Notifications_type-warning__Nxg6C .Notifications_itemInner__nEYAl{background-color:var(--warning-color-alpha-300)}.Notifications_type-danger__zeIMt .Notifications_itemInner__nEYAl{background-color:var(--danger-color-alpha-300)}.Notifications_icon__nKs-X{background:no-repeat 50%;height:24px;margin-right:10px;min-width:24px;width:24px}.Notifications_type-loading__N4EE5 .Notifications_icon__nKs-X{transform:translateY(-20px)}.Notifications_text__7QZL6{display:flex;flex-direction:column;flex-grow:1;z-index:1}.Notifications_title__Gu9bs{font-size:16px;font-weight:700}.Notifications_content__Zrvw2{font-size:12px;margin-top:calc(var(--p-3)/2)}.Notifications_content__Zrvw2:first-child{margin-top:0}.Notifications_close__-IUH3{background-color:transparent;border-radius:50%;cursor:pointer;height:40px!important;max-height:40px!important;max-width:40px!important;opacity:0;position:absolute;right:-5px;top:-5px;transform:scale(.8);transition:.1s ease-out;transition-property:opacity,transform;width:40px!important}.Notifications_item__I3Up4:hover .Notifications_close__-IUH3{opacity:.8}.Notifications_close__-IUH3:hover{background-color:transparent;background-color:initial;opacity:1;transform:scale(1)}@media (max-width:700px){.Notifications_item__I3Up4,.Notifications_root__S3ujN{width:100%}.Notifications_title__Gu9bs{font-size:20px}.Notifications_content__Zrvw2{font-size:16px}.Notifications_close__-IUH3{transform:scale(1.2)}}";
|
|
4
|
-
var S = {"root":"Notifications_root__S3ujN","inner":"Notifications_inner__6v9e3","empty":"Notifications_empty__zCpOA","item":"Notifications_item__I3Up4","itemInner":"Notifications_itemInner__nEYAl","visible":"Notifications_visible__ln4-n","type-warning":"Notifications_type-warning__Nxg6C","type-danger":"Notifications_type-danger__zeIMt","icon":"Notifications_icon__nKs-X","type-loading":"Notifications_type-loading__N4EE5","text":"Notifications_text__7QZL6","title":"Notifications_title__Gu9bs","content":"Notifications_content__Zrvw2","close":"Notifications_close__-IUH3"};
|
|
5
|
-
styleInject(css_248z);
|
|
6
|
-
|
|
7
|
-
export { S as default };
|
|
1
|
+
import styleInject from"../../../node_modules/style-inject/dist/style-inject.es.js";var css_248z=".Notifications_root__S3ujN{max-height:calc(var(--vh)*100);overflow:hidden;position:fixed;right:0;top:0;transform:translateZ(0);transition:right .3s ease-out;width:320px;z-index:20}.Notifications_inner__6v9e3{padding:var(--p-5)}.Notifications_empty__zCpOA{pointer-events:none}.Notifications_itemInner__nEYAl,.Notifications_item__I3Up4{border-radius:var(--border-radius-l)}.Notifications_item__I3Up4{-webkit-backface-visibility:hidden;backface-visibility:hidden;left:100%;max-height:0;max-width:100%;opacity:0;position:relative;transition:all .3s ease-out;width:300px}.Notifications_item__I3Up4+.Notifications_item__I3Up4{padding-top:10px}.Notifications_item__I3Up4:hover{transform:translateX(-2px)}.Notifications_visible__ln4-n{left:0;max-height:500px;opacity:1}.Notifications_itemInner__nEYAl{align-items:center;-webkit-backdrop-filter:blur(30px);backdrop-filter:blur(30px);background-color:var(--decent-color-alpha-500);box-shadow:inset 0 0 1px var(--accent-color-alpha-300),0 0 20px var(--decent-color);box-sizing:border-box;display:flex;padding:16px 32px 16px 20px;position:relative;transition:.3s ease-out;transition-property:transform}.Notifications_type-warning__Nxg6C .Notifications_itemInner__nEYAl{background-color:var(--warning-color-alpha-300)}.Notifications_type-danger__zeIMt .Notifications_itemInner__nEYAl{background-color:var(--danger-color-alpha-300)}.Notifications_icon__nKs-X{background:no-repeat 50%;height:24px;margin-right:10px;min-width:24px;width:24px}.Notifications_type-loading__N4EE5 .Notifications_icon__nKs-X{transform:translateY(-20px)}.Notifications_text__7QZL6{display:flex;flex-direction:column;flex-grow:1;z-index:1}.Notifications_title__Gu9bs{font-size:16px;font-weight:700}.Notifications_content__Zrvw2{font-size:12px;margin-top:calc(var(--p-3)/2)}.Notifications_content__Zrvw2:first-child{margin-top:0}.Notifications_close__-IUH3{background-color:transparent;border-radius:50%;cursor:pointer;height:40px!important;max-height:40px!important;max-width:40px!important;opacity:0;position:absolute;right:-5px;top:-5px;transform:scale(.8);transition:.1s ease-out;transition-property:opacity,transform;width:40px!important}.Notifications_item__I3Up4:hover .Notifications_close__-IUH3{opacity:.8}.Notifications_close__-IUH3:hover{background-color:transparent;background-color:initial;opacity:1;transform:scale(1)}@media (max-width:700px){.Notifications_item__I3Up4,.Notifications_root__S3ujN{width:100%}.Notifications_title__Gu9bs{font-size:20px}.Notifications_content__Zrvw2{font-size:16px}.Notifications_close__-IUH3{transform:scale(1.2)}}",S={root:"Notifications_root__S3ujN",inner:"Notifications_inner__6v9e3",empty:"Notifications_empty__zCpOA",item:"Notifications_item__I3Up4",itemInner:"Notifications_itemInner__nEYAl",visible:"Notifications_visible__ln4-n","type-warning":"Notifications_type-warning__Nxg6C","type-danger":"Notifications_type-danger__zeIMt",icon:"Notifications_icon__nKs-X","type-loading":"Notifications_type-loading__N4EE5",text:"Notifications_text__7QZL6",title:"Notifications_title__Gu9bs",content:"Notifications_content__Zrvw2",close:"Notifications_close__-IUH3"};styleInject(css_248z);export{S as default};
|
|
2
|
+
//# sourceMappingURL=Notifications.styl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Notifications.styl.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,61 +1,2 @@
|
|
|
1
|
-
import { createStore }
|
|
2
|
-
|
|
3
|
-
import { spliceWhere } from '../../tools/array.js';
|
|
4
|
-
import { generateUID } from '../../tools/uid.js';
|
|
5
|
-
import C from './Notifications.constants.json.js';
|
|
6
|
-
|
|
7
|
-
const SHOW_TIME = 5000;
|
|
8
|
-
const STORE = createStore('notifications', {
|
|
9
|
-
items: [],
|
|
10
|
-
autoHide: [],
|
|
11
|
-
data: {},
|
|
12
|
-
paused: false,
|
|
13
|
-
show(data) {
|
|
14
|
-
const id = generateUID();
|
|
15
|
-
this.items.push(id);
|
|
16
|
-
this.data[id] = {
|
|
17
|
-
...data,
|
|
18
|
-
createdAt: Date.now(),
|
|
19
|
-
};
|
|
20
|
-
Time.after(C.ANIMATION_DURATION, () => (this.data[id].visible = true));
|
|
21
|
-
if (data.autoHide !== false)
|
|
22
|
-
this.autoHide.push(id);
|
|
23
|
-
return id;
|
|
24
|
-
},
|
|
25
|
-
pause() {
|
|
26
|
-
this.paused = true;
|
|
27
|
-
this.pausedAt = Date.now();
|
|
28
|
-
},
|
|
29
|
-
unpause() {
|
|
30
|
-
const pauseTime = Date.now() - this.pausedAt;
|
|
31
|
-
this.autoHide.forEach(id => {
|
|
32
|
-
this.data[id].createdAt += pauseTime;
|
|
33
|
-
});
|
|
34
|
-
this.paused = false;
|
|
35
|
-
},
|
|
36
|
-
close(id) {
|
|
37
|
-
this.data[id].visible = false;
|
|
38
|
-
Time.after(C.ANIMATION_DURATION, () => this.remove(id));
|
|
39
|
-
},
|
|
40
|
-
remove(id) {
|
|
41
|
-
spliceWhere(this.autoHide, id);
|
|
42
|
-
spliceWhere(this.items, id);
|
|
43
|
-
delete this.data[id];
|
|
44
|
-
},
|
|
45
|
-
});
|
|
46
|
-
// worker
|
|
47
|
-
Time.every(50, function tick() {
|
|
48
|
-
const { paused, autoHide, data } = STORE;
|
|
49
|
-
if (paused || autoHide.length === 0) {
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
const id = autoHide[0]; // TODO: move trough all autoHide until some will !readyToHide
|
|
53
|
-
const item = data[id];
|
|
54
|
-
const readyToHide = Date.now() - item.createdAt > SHOW_TIME;
|
|
55
|
-
if (item.visible && readyToHide) {
|
|
56
|
-
item.visible = false;
|
|
57
|
-
Time.after(C.ANIMATION_DURATION, () => STORE.remove(id));
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
export { STORE as default };
|
|
1
|
+
import{createStore}from"justorm/react";import Time from"timen";import{spliceWhere}from"../../tools/array.js";import{generateUID}from"../../tools/uid.js";import C from"./Notifications.constants.json.js";const SHOW_TIME=5e3,STORE=createStore("notifications",{items:[],autoHide:[],data:{},paused:!1,show(e){const t=generateUID();return this.items.push(t),this.data[t]={...e,createdAt:Date.now()},Time.after(C.ANIMATION_DURATION,()=>this.data[t].visible=!0),!1!==e.autoHide&&this.autoHide.push(t),t},pause(){this.paused=!0,this.pausedAt=Date.now()},unpause(){const t=Date.now()-this.pausedAt;this.autoHide.forEach(e=>{this.data[e].createdAt+=t}),this.paused=!1},close(e){this.data[e].visible=!1,Time.after(C.ANIMATION_DURATION,()=>this.remove(e))},remove(e){spliceWhere(this.autoHide,e),spliceWhere(this.items,e),delete this.data[e]}});Time.every(50,function(){var{paused:e,autoHide:t,data:i}=STORE;if(!e&&0!==t.length){const s=t[0];e=i[s],t=Date.now()-e.createdAt>SHOW_TIME;e.visible&&t&&(e.visible=!1,Time.after(C.ANIMATION_DURATION,()=>STORE.remove(s)))}});export{STORE as default};
|
|
2
|
+
//# sourceMappingURL=store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import { Portal } from '../Portal/Portal.js';
|
|
4
|
-
import S from './Paranja.styl.js';
|
|
5
|
-
|
|
6
|
-
const Paranja = ({ className, children, visible = true, inline = false, blur = false, }) => {
|
|
7
|
-
const classes = cn(S.root, visible && S.visible, blur && S.blur, className);
|
|
8
|
-
const node = jsx("div", { className: classes, children: children });
|
|
9
|
-
if (inline)
|
|
10
|
-
return node;
|
|
11
|
-
return jsx(Portal, { children: node });
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export { Paranja };
|
|
1
|
+
import{jsx}from"react/jsx-runtime";import cn from"classnames";import{Portal}from"../Portal/Portal.js";import S from"./Paranja.styl.js";const Paranja=({className:r,children:a,visible:s=!0,inline:l=!1,blur:o=!1})=>{s=cn(S.root,s&&S.visible,o&&S.blur,r),o=jsx("div",{className:s,children:a});return l?o:jsx(Portal,{children:o})};export{Paranja};
|
|
2
|
+
//# sourceMappingURL=Paranja.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Paranja.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
import styleInject from
|
|
2
|
-
|
|
3
|
-
var css_248z = ".Paranja_root__ddboV{align-items:center;background-color:var(--decent-color-alpha-900);bottom:0;display:flex;justify-content:center;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .2s ease-out;z-index:10}.Paranja_visible__xZukG{opacity:1;pointer-events:all}.Paranja_visible__xZukG.Paranja_blur__Hg0SQ{-webkit-backdrop-filter:blur(50px);backdrop-filter:blur(50px);background-color:var(--decent-color-alpha-500)}";
|
|
4
|
-
var S = {"root":"Paranja_root__ddboV","visible":"Paranja_visible__xZukG","blur":"Paranja_blur__Hg0SQ"};
|
|
5
|
-
styleInject(css_248z);
|
|
6
|
-
|
|
7
|
-
export { S as default };
|
|
1
|
+
import styleInject from"../../../node_modules/style-inject/dist/style-inject.es.js";var css_248z=".Paranja_root__ddboV{align-items:center;background-color:var(--decent-color-alpha-900);bottom:0;display:flex;justify-content:center;left:0;opacity:0;pointer-events:none;position:absolute;right:0;top:0;transition:opacity .2s ease-out;z-index:10}.Paranja_visible__xZukG{opacity:1;pointer-events:all}.Paranja_visible__xZukG.Paranja_blur__Hg0SQ{-webkit-backdrop-filter:blur(50px);backdrop-filter:blur(50px);background-color:var(--decent-color-alpha-500)}",S={root:"Paranja_root__ddboV",visible:"Paranja_visible__xZukG",blur:"Paranja_blur__Hg0SQ"};styleInject(css_248z);export{S as default};
|
|
2
|
+
//# sourceMappingURL=Paranja.styl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Paranja.styl.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,130 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
import '../../tools/dom.js';
|
|
4
|
-
import 'timen';
|
|
5
|
-
import 'compareq';
|
|
6
|
-
import 'lodash.pick';
|
|
7
|
-
import '../../tools/queryParams.js';
|
|
8
|
-
|
|
9
|
-
const ZERO_BOUNDARY_FIT = {
|
|
10
|
-
left: 0,
|
|
11
|
-
top: 0,
|
|
12
|
-
maxWidth: null,
|
|
13
|
-
};
|
|
14
|
-
function viewportClientRectEdges() {
|
|
15
|
-
const vv = typeof window !== 'undefined' && window.visualViewport
|
|
16
|
-
? window.visualViewport
|
|
17
|
-
: null;
|
|
18
|
-
if (vv) {
|
|
19
|
-
return {
|
|
20
|
-
left: vv.offsetLeft,
|
|
21
|
-
top: vv.offsetTop,
|
|
22
|
-
right: vv.offsetLeft + vv.width,
|
|
23
|
-
bottom: vv.offsetTop + vv.height,
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
const d = document.documentElement;
|
|
27
|
-
return {
|
|
28
|
-
left: 0,
|
|
29
|
-
top: 0,
|
|
30
|
-
right: d.clientWidth,
|
|
31
|
-
bottom: d.clientHeight,
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
function domRectToEdges(r) {
|
|
35
|
-
return {
|
|
36
|
-
left: r.left,
|
|
37
|
-
top: r.top,
|
|
38
|
-
right: r.right,
|
|
39
|
-
bottom: r.bottom,
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
function intersectEdges(a, b) {
|
|
43
|
-
const left = Math.max(a.left, b.left);
|
|
44
|
-
const top = Math.max(a.top, b.top);
|
|
45
|
-
const right = Math.min(a.right, b.right);
|
|
46
|
-
const bottom = Math.min(a.bottom, b.bottom);
|
|
47
|
-
if (left >= right || top >= bottom)
|
|
48
|
-
return undefined;
|
|
49
|
-
return { left, top, right, bottom };
|
|
50
|
-
}
|
|
51
|
-
function shrinkEdgesUniform(outer, top, right, bottom, left) {
|
|
52
|
-
return {
|
|
53
|
-
left: outer.left + left,
|
|
54
|
-
top: outer.top + top,
|
|
55
|
-
right: outer.right - right,
|
|
56
|
-
bottom: outer.bottom - bottom,
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
function edgesWidth(edges) {
|
|
60
|
-
return Math.max(0, edges.right - edges.left);
|
|
61
|
-
}
|
|
62
|
-
function popupBoundaryPadding(baseGap, offset) {
|
|
63
|
-
const n = (num) => Number(num) || 0;
|
|
64
|
-
return {
|
|
65
|
-
top: baseGap + n(offset?.top),
|
|
66
|
-
right: baseGap + n(offset?.right),
|
|
67
|
-
bottom: baseGap + n(offset?.bottom),
|
|
68
|
-
left: baseGap + n(offset?.left),
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
function popupBoundaryEdges({ boundary, boundaryMountSelector, inline, padding, }) {
|
|
72
|
-
let outer = viewportClientRectEdges();
|
|
73
|
-
const mode = boundary ?? (inline ? 'viewport' : 'clipping');
|
|
74
|
-
if (mode === 'clipping' && !inline) {
|
|
75
|
-
const mountElem = document.querySelector(boundaryMountSelector);
|
|
76
|
-
if (mountElem instanceof Element) {
|
|
77
|
-
outer =
|
|
78
|
-
intersectEdges(outer, domRectToEdges(mountElem.getBoundingClientRect())) ?? outer;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
const inner = shrinkEdgesUniform(outer, padding.top, padding.right, padding.bottom, padding.left);
|
|
82
|
-
return inner.left < inner.right && inner.top < inner.bottom ? inner : outer;
|
|
83
|
-
}
|
|
84
|
-
function constrainAxisShift(pref, lo, hi) {
|
|
85
|
-
if (lo > hi)
|
|
86
|
-
return lo;
|
|
87
|
-
return Math.min(Math.max(pref, lo), hi);
|
|
88
|
-
}
|
|
89
|
-
/** Minimal shift to move `rect` into `inner`, preferring zero. */
|
|
90
|
-
function shiftMarginsIntoBounds(rect, inner) {
|
|
91
|
-
const dxMin = inner.left - rect.left;
|
|
92
|
-
const dxMax = inner.right - rect.right;
|
|
93
|
-
const dyMin = inner.top - rect.top;
|
|
94
|
-
const dyMax = inner.bottom - rect.bottom;
|
|
95
|
-
return {
|
|
96
|
-
marginLeft: constrainAxisShift(0, dxMin, dxMax),
|
|
97
|
-
marginTop: constrainAxisShift(0, dyMin, dyMax),
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
function fitRectToBoundary(rect, boundary, maxWidth) {
|
|
101
|
-
const { marginLeft, marginTop } = shiftMarginsIntoBounds(rect, boundary);
|
|
102
|
-
return {
|
|
103
|
-
left: Number.isFinite(marginLeft) ? marginLeft : 0,
|
|
104
|
-
top: Number.isFinite(marginTop) ? marginTop : 0,
|
|
105
|
-
maxWidth,
|
|
106
|
-
};
|
|
107
|
-
}
|
|
108
|
-
const childs = {};
|
|
109
|
-
let popupIds = 0;
|
|
110
|
-
const getId = () => ++popupIds;
|
|
111
|
-
const getPopupId = (elem, attr = 'data-popup-id') => {
|
|
112
|
-
const id = elem.getAttribute(attr);
|
|
113
|
-
return id ? parseInt(id, 10) : null;
|
|
114
|
-
};
|
|
115
|
-
function isLastChild(rootId, id) {
|
|
116
|
-
const ids = childs[rootId];
|
|
117
|
-
return ids && ids[ids.length - 1] === id;
|
|
118
|
-
}
|
|
119
|
-
function setChild(rootId, id) {
|
|
120
|
-
if (!childs[rootId])
|
|
121
|
-
childs[rootId] = [];
|
|
122
|
-
childs[rootId].push(id);
|
|
123
|
-
}
|
|
124
|
-
function unsetChild(rootId, id) {
|
|
125
|
-
spliceWhere(childs[rootId], id);
|
|
126
|
-
if (!childs[rootId].length)
|
|
127
|
-
delete childs[rootId];
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
export { ZERO_BOUNDARY_FIT, childs, constrainAxisShift, domRectToEdges, edgesWidth, fitRectToBoundary, getId, getPopupId, intersectEdges, isLastChild, popupBoundaryEdges, popupBoundaryPadding, setChild, shiftMarginsIntoBounds, shrinkEdgesUniform, unsetChild, viewportClientRectEdges };
|
|
1
|
+
import{spliceWhere}from"../../tools/array.js";import"nanoid";import"../../tools/dom.js";import"timen";import"compareq";import"lodash.pick";import"../../tools/queryParams.js";const ZERO_BOUNDARY_FIT={left:0,top:0,maxWidth:null};function viewportClientRectEdges(){var t="undefined"!=typeof window&&window.visualViewport?window.visualViewport:null;return t?{left:t.offsetLeft,top:t.offsetTop,right:t.offsetLeft+t.width,bottom:t.offsetTop+t.height}:{left:0,top:0,right:(t=document.documentElement).clientWidth,bottom:t.clientHeight}}function domRectToEdges(t){return{left:t.left,top:t.top,right:t.right,bottom:t.bottom}}function intersectEdges(t,o){var i=Math.max(t.left,o.left),e=Math.max(t.top,o.top),n=Math.min(t.right,o.right),t=Math.min(t.bottom,o.bottom);if(!(n<=i||t<=e))return{left:i,top:e,right:n,bottom:t}}function shrinkEdgesUniform(t,o,i,e,n){return{left:t.left+n,top:t.top+o,right:t.right-i,bottom:t.bottom-e}}function edgesWidth(t){return Math.max(0,t.right-t.left)}function popupBoundaryPadding(t,o){var i=t=>Number(t)||0;return{top:t+i(o?.top),right:t+i(o?.right),bottom:t+i(o?.bottom),left:t+i(o?.left)}}function popupBoundaryEdges({boundary:t,boundaryMountSelector:o,inline:i,padding:e}){let n=viewportClientRectEdges();"clipping"!==(t??(i?"viewport":"clipping"))||i||(t=document.querySelector(o))instanceof Element&&(n=intersectEdges(n,domRectToEdges(t.getBoundingClientRect()))??n);i=shrinkEdgesUniform(n,e.top,e.right,e.bottom,e.left);return i.left<i.right&&i.top<i.bottom?i:n}function constrainAxisShift(t,o,i){return i<o?o:Math.min(Math.max(t,o),i)}function shiftMarginsIntoBounds(t,o){var i=o.left-t.left,e=o.right-t.right,n=o.top-t.top,o=o.bottom-t.bottom;return{marginLeft:constrainAxisShift(0,i,e),marginTop:constrainAxisShift(0,n,o)}}function fitRectToBoundary(t,o,i){var{marginLeft:t,marginTop:o}=shiftMarginsIntoBounds(t,o);return{left:Number.isFinite(t)?t:0,top:Number.isFinite(o)?o:0,maxWidth:i}}const childs={};let popupIds=0;const getId=()=>++popupIds,getPopupId=(t,o="data-popup-id")=>{t=t.getAttribute(o);return t?parseInt(t,10):null};function isLastChild(t,o){t=childs[t];return t&&t[t.length-1]===o}function setChild(t,o){childs[t]||(childs[t]=[]),childs[t].push(o)}function unsetChild(t,o){spliceWhere(childs[t],o),childs[t].length||delete childs[t]}export{ZERO_BOUNDARY_FIT,childs,constrainAxisShift,domRectToEdges,edgesWidth,fitRectToBoundary,getId,getPopupId,intersectEdges,isLastChild,popupBoundaryEdges,popupBoundaryPadding,setChild,shiftMarginsIntoBounds,shrinkEdgesUniform,unsetChild,viewportClientRectEdges};
|
|
2
|
+
//# sourceMappingURL=Popup.helpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popup.helpers.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|