@wireapp/react-ui-kit 8.17.2 → 8.17.4
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/package.json +12 -17
- package/src/Form/Button.d.js.map +1 -1
- package/src/Form/Button.js +36 -57
- package/src/Form/Button.js.map +1 -1
- package/src/Form/ButtonLink.d.js.map +1 -1
- package/src/Form/ButtonLink.js +12 -30
- package/src/Form/ButtonLink.js.map +1 -1
- package/src/Form/Checkbox.d.js.map +1 -1
- package/src/Form/Checkbox.js +38 -57
- package/src/Form/Checkbox.js.map +1 -1
- package/src/Form/CodeInput.d.js.map +1 -1
- package/src/Form/CodeInput.js +24 -59
- package/src/Form/CodeInput.js.map +1 -1
- package/src/Form/DropFileInput.d.js.map +1 -1
- package/src/Form/DropFileInput.js +26 -60
- package/src/Form/DropFileInput.js.map +1 -1
- package/src/Form/ErrorMessage.d.js.map +1 -1
- package/src/Form/ErrorMessage.js +14 -34
- package/src/Form/ErrorMessage.js.map +1 -1
- package/src/Form/Form.d.js.map +1 -1
- package/src/Form/Form.js +3 -11
- package/src/Form/Form.js.map +1 -1
- package/src/Form/Input.d.js.map +1 -1
- package/src/Form/Input.js +32 -52
- package/src/Form/Input.js.map +1 -1
- package/src/Form/InputBlock.d.js.map +1 -1
- package/src/Form/InputBlock.js +6 -38
- package/src/Form/InputBlock.js.map +1 -1
- package/src/Form/InputLabel.d.js.map +1 -1
- package/src/Form/InputLabel.js +9 -17
- package/src/Form/InputLabel.js.map +1 -1
- package/src/Form/InputSubmitCombo.d.js.map +1 -1
- package/src/Form/InputSubmitCombo.js +11 -25
- package/src/Form/InputSubmitCombo.js.map +1 -1
- package/src/Form/RangeInput.d.js.map +1 -1
- package/src/Form/RangeInput.js +19 -30
- package/src/Form/RangeInput.js.map +1 -1
- package/src/Form/RangeInput.styles.d.js.map +1 -1
- package/src/Form/RangeInput.styles.js +5 -18
- package/src/Form/RangeInput.styles.js.map +1 -1
- package/src/Form/RoundIconButton.d.js.map +1 -1
- package/src/Form/RoundIconButton.js +10 -25
- package/src/Form/RoundIconButton.js.map +1 -1
- package/src/Form/Select.d.js.map +1 -1
- package/src/Form/Select.js +23 -37
- package/src/Form/Select.js.map +1 -1
- package/src/Form/SelectComponents.d.js.map +1 -1
- package/src/Form/SelectComponents.js +21 -51
- package/src/Form/SelectComponents.js.map +1 -1
- package/src/Form/SelectStyles.d.js.map +1 -1
- package/src/Form/SelectStyles.js +7 -15
- package/src/Form/SelectStyles.js.map +1 -1
- package/src/Form/ShakeBox.d.js.map +1 -1
- package/src/Form/ShakeBox.js +18 -50
- package/src/Form/ShakeBox.js.map +1 -1
- package/src/Form/Switch.d.js.map +1 -1
- package/src/Form/Switch.js +20 -32
- package/src/Form/Switch.js.map +1 -1
- package/src/Form/TextArea.d.js.map +1 -1
- package/src/Form/TextArea.js +12 -26
- package/src/Form/TextArea.js.map +1 -1
- package/src/Form/Tooltip.d.js.map +1 -1
- package/src/Form/Tooltip.js +16 -27
- package/src/Form/Tooltip.js.map +1 -1
- package/src/Form/index.d.js +0 -36
- package/src/Form/index.d.js.map +1 -1
- package/src/Form/index.js +0 -36
- package/src/Form/index.js.map +1 -1
- package/src/GlobalCssVariables.d.js.map +1 -1
- package/src/GlobalCssVariables.js +1 -5
- package/src/GlobalCssVariables.js.map +1 -1
- package/src/GlobalStyle.d.js.map +1 -1
- package/src/GlobalStyle.js +4 -14
- package/src/GlobalStyle.js.map +1 -1
- package/src/Icon/AddPeopleIcon.d.js.map +1 -1
- package/src/Icon/AddPeopleIcon.js +4 -30
- package/src/Icon/AddPeopleIcon.js.map +1 -1
- package/src/Icon/ArchiveIcon.d.js.map +1 -1
- package/src/Icon/ArchiveIcon.js +2 -29
- package/src/Icon/ArchiveIcon.js.map +1 -1
- package/src/Icon/ArrowDown.d.js.map +1 -1
- package/src/Icon/ArrowDown.js +5 -28
- package/src/Icon/ArrowDown.js.map +1 -1
- package/src/Icon/ArrowIcon.d.js.map +1 -1
- package/src/Icon/ArrowIcon.js +7 -15
- package/src/Icon/ArrowIcon.js.map +1 -1
- package/src/Icon/AttachmentIcon.d.js.map +1 -1
- package/src/Icon/AttachmentIcon.js +2 -29
- package/src/Icon/AttachmentIcon.js.map +1 -1
- package/src/Icon/AudioVideoIcon.d.js.map +1 -1
- package/src/Icon/AudioVideoIcon.js +2 -29
- package/src/Icon/AudioVideoIcon.js.map +1 -1
- package/src/Icon/BlockIcon.d.js.map +1 -1
- package/src/Icon/BlockIcon.js +2 -29
- package/src/Icon/BlockIcon.js.map +1 -1
- package/src/Icon/Brand/AndroidIcon.d.js.map +1 -1
- package/src/Icon/Brand/AndroidIcon.js +2 -29
- package/src/Icon/Brand/AndroidIcon.js.map +1 -1
- package/src/Icon/Brand/AppleIcon.d.js.map +1 -1
- package/src/Icon/Brand/AppleIcon.js +2 -29
- package/src/Icon/Brand/AppleIcon.js.map +1 -1
- package/src/Icon/Brand/ChromeIcon.d.js.map +1 -1
- package/src/Icon/Brand/ChromeIcon.js +2 -29
- package/src/Icon/Brand/ChromeIcon.js.map +1 -1
- package/src/Icon/Brand/FacebookIcon.d.js.map +1 -1
- package/src/Icon/Brand/FacebookIcon.js +2 -29
- package/src/Icon/Brand/FacebookIcon.js.map +1 -1
- package/src/Icon/Brand/GitHubIcon.d.js.map +1 -1
- package/src/Icon/Brand/GitHubIcon.js +2 -29
- package/src/Icon/Brand/GitHubIcon.js.map +1 -1
- package/src/Icon/Brand/LinkedInIcon.d.js.map +1 -1
- package/src/Icon/Brand/LinkedInIcon.js +2 -29
- package/src/Icon/Brand/LinkedInIcon.js.map +1 -1
- package/src/Icon/Brand/LinuxIcon.d.js.map +1 -1
- package/src/Icon/Brand/LinuxIcon.js +2 -29
- package/src/Icon/Brand/LinuxIcon.js.map +1 -1
- package/src/Icon/Brand/MicrosoftIcon.d.js.map +1 -1
- package/src/Icon/Brand/MicrosoftIcon.js +2 -29
- package/src/Icon/Brand/MicrosoftIcon.js.map +1 -1
- package/src/Icon/Brand/TwitterIcon.d.js.map +1 -1
- package/src/Icon/Brand/TwitterIcon.js +2 -29
- package/src/Icon/Brand/TwitterIcon.js.map +1 -1
- package/src/Icon/CallIcon.d.js.map +1 -1
- package/src/Icon/CallIcon.js +2 -29
- package/src/Icon/CallIcon.js.map +1 -1
- package/src/Icon/CamIcon.d.js.map +1 -1
- package/src/Icon/CamIcon.js +2 -29
- package/src/Icon/CamIcon.js.map +1 -1
- package/src/Icon/CameraIcon.d.js.map +1 -1
- package/src/Icon/CameraIcon.js +4 -30
- package/src/Icon/CameraIcon.js.map +1 -1
- package/src/Icon/CheckIcon.d.js.map +1 -1
- package/src/Icon/CheckIcon.js +2 -29
- package/src/Icon/CheckIcon.js.map +1 -1
- package/src/Icon/CheckRoundIcon.d.js.map +1 -1
- package/src/Icon/CheckRoundIcon.js +2 -29
- package/src/Icon/CheckRoundIcon.js.map +1 -1
- package/src/Icon/ChevronIcon.d.js.map +1 -1
- package/src/Icon/ChevronIcon.js +6 -15
- package/src/Icon/ChevronIcon.js.map +1 -1
- package/src/Icon/CloseIcon.d.js.map +1 -1
- package/src/Icon/CloseIcon.js +2 -29
- package/src/Icon/CloseIcon.js.map +1 -1
- package/src/Icon/CopyIcon.d.js.map +1 -1
- package/src/Icon/CopyIcon.js +2 -29
- package/src/Icon/CopyIcon.js.map +1 -1
- package/src/Icon/DeviceIcon.d.js.map +1 -1
- package/src/Icon/DeviceIcon.js +2 -29
- package/src/Icon/DeviceIcon.js.map +1 -1
- package/src/Icon/DownloadIcon.d.js.map +1 -1
- package/src/Icon/DownloadIcon.js +2 -29
- package/src/Icon/DownloadIcon.js.map +1 -1
- package/src/Icon/EditDocumentIcon.d.js.map +1 -1
- package/src/Icon/EditDocumentIcon.js +4 -30
- package/src/Icon/EditDocumentIcon.js.map +1 -1
- package/src/Icon/EditIcon.d.js.map +1 -1
- package/src/Icon/EditIcon.js +2 -29
- package/src/Icon/EditIcon.js.map +1 -1
- package/src/Icon/EnterIcon.d.js.map +1 -1
- package/src/Icon/EnterIcon.js +2 -29
- package/src/Icon/EnterIcon.js.map +1 -1
- package/src/Icon/ErrorIcon.d.js.map +1 -1
- package/src/Icon/ErrorIcon.js +2 -29
- package/src/Icon/ErrorIcon.js.map +1 -1
- package/src/Icon/FileIcon.d.js.map +1 -1
- package/src/Icon/FileIcon.js +2 -29
- package/src/Icon/FileIcon.js.map +1 -1
- package/src/Icon/GifIcon.d.js.map +1 -1
- package/src/Icon/GifIcon.js +2 -29
- package/src/Icon/GifIcon.js.map +1 -1
- package/src/Icon/GridIcon.d.js.map +1 -1
- package/src/Icon/GridIcon.js +4 -30
- package/src/Icon/GridIcon.js.map +1 -1
- package/src/Icon/GroupIcon.d.js.map +1 -1
- package/src/Icon/GroupIcon.js +2 -29
- package/src/Icon/GroupIcon.js.map +1 -1
- package/src/Icon/HangupIcon.d.js.map +1 -1
- package/src/Icon/HangupIcon.js +2 -29
- package/src/Icon/HangupIcon.js.map +1 -1
- package/src/Icon/HideIcon.d.js.map +1 -1
- package/src/Icon/HideIcon.js +2 -29
- package/src/Icon/HideIcon.js.map +1 -1
- package/src/Icon/ImageIcon.d.js.map +1 -1
- package/src/Icon/ImageIcon.js +2 -29
- package/src/Icon/ImageIcon.js.map +1 -1
- package/src/Icon/InfoIcon.d.js.map +1 -1
- package/src/Icon/InfoIcon.js +2 -29
- package/src/Icon/InfoIcon.js.map +1 -1
- package/src/Icon/InviteIcon.d.js.map +1 -1
- package/src/Icon/InviteIcon.js +2 -29
- package/src/Icon/InviteIcon.js.map +1 -1
- package/src/Icon/LeaveIcon.d.js.map +1 -1
- package/src/Icon/LeaveIcon.js +2 -29
- package/src/Icon/LeaveIcon.js.map +1 -1
- package/src/Icon/LinkIcon.d.js.map +1 -1
- package/src/Icon/LinkIcon.js +4 -30
- package/src/Icon/LinkIcon.js.map +1 -1
- package/src/Icon/ListIcon.d.js.map +1 -1
- package/src/Icon/ListIcon.js +2 -29
- package/src/Icon/ListIcon.js.map +1 -1
- package/src/Icon/LockIcon.d.js.map +1 -1
- package/src/Icon/LockIcon.js +2 -29
- package/src/Icon/LockIcon.js.map +1 -1
- package/src/Icon/MessageIcon.d.js.map +1 -1
- package/src/Icon/MessageIcon.js +2 -29
- package/src/Icon/MessageIcon.js.map +1 -1
- package/src/Icon/MinusIcon.d.js.map +1 -1
- package/src/Icon/MinusIcon.js +2 -29
- package/src/Icon/MinusIcon.js.map +1 -1
- package/src/Icon/MoreIcon.d.js.map +1 -1
- package/src/Icon/MoreIcon.js +2 -29
- package/src/Icon/MoreIcon.js.map +1 -1
- package/src/Icon/MuteIcon.d.js.map +1 -1
- package/src/Icon/MuteIcon.js +2 -29
- package/src/Icon/MuteIcon.js.map +1 -1
- package/src/Icon/NotificationIcon.d.js.map +1 -1
- package/src/Icon/NotificationIcon.js +2 -29
- package/src/Icon/NotificationIcon.js.map +1 -1
- package/src/Icon/NotificationOffIcon.d.js.map +1 -1
- package/src/Icon/NotificationOffIcon.js +2 -29
- package/src/Icon/NotificationOffIcon.js.map +1 -1
- package/src/Icon/OptionsIcon.d.js.map +1 -1
- package/src/Icon/OptionsIcon.js +2 -29
- package/src/Icon/OptionsIcon.js.map +1 -1
- package/src/Icon/PeopleIcon.d.js.map +1 -1
- package/src/Icon/PeopleIcon.js +4 -30
- package/src/Icon/PeopleIcon.js.map +1 -1
- package/src/Icon/PingIcon.d.js.map +1 -1
- package/src/Icon/PingIcon.js +2 -29
- package/src/Icon/PingIcon.js.map +1 -1
- package/src/Icon/PlaneIcon.d.js.map +1 -1
- package/src/Icon/PlaneIcon.js +2 -29
- package/src/Icon/PlaneIcon.js.map +1 -1
- package/src/Icon/PlusIcon.d.js.map +1 -1
- package/src/Icon/PlusIcon.js +2 -29
- package/src/Icon/PlusIcon.js.map +1 -1
- package/src/Icon/ProfileIcon.d.js.map +1 -1
- package/src/Icon/ProfileIcon.js +2 -29
- package/src/Icon/ProfileIcon.js.map +1 -1
- package/src/Icon/RecordBoldIcon.d.js.map +1 -1
- package/src/Icon/RecordBoldIcon.js +6 -15
- package/src/Icon/RecordBoldIcon.js.map +1 -1
- package/src/Icon/RecordIcon.d.js.map +1 -1
- package/src/Icon/RecordIcon.js +2 -29
- package/src/Icon/RecordIcon.js.map +1 -1
- package/src/Icon/RecordPendingIcon.d.js.map +1 -1
- package/src/Icon/RecordPendingIcon.js +2 -29
- package/src/Icon/RecordPendingIcon.js.map +1 -1
- package/src/Icon/ReloadIcon.d.js.map +1 -1
- package/src/Icon/ReloadIcon.js +2 -29
- package/src/Icon/ReloadIcon.js.map +1 -1
- package/src/Icon/SVGIcon.d.js.map +1 -1
- package/src/Icon/SVGIcon.js +16 -26
- package/src/Icon/SVGIcon.js.map +1 -1
- package/src/Icon/ScreenshareIcon.d.js.map +1 -1
- package/src/Icon/ScreenshareIcon.js +2 -29
- package/src/Icon/ScreenshareIcon.js.map +1 -1
- package/src/Icon/SearchIcon.d.js.map +1 -1
- package/src/Icon/SearchIcon.js +2 -29
- package/src/Icon/SearchIcon.js.map +1 -1
- package/src/Icon/ServicesIcon.d.js.map +1 -1
- package/src/Icon/ServicesIcon.js +2 -29
- package/src/Icon/ServicesIcon.js.map +1 -1
- package/src/Icon/SettingsIcon.d.js.map +1 -1
- package/src/Icon/SettingsIcon.js +2 -29
- package/src/Icon/SettingsIcon.js.map +1 -1
- package/src/Icon/ShowIcon.d.js.map +1 -1
- package/src/Icon/ShowIcon.js +2 -29
- package/src/Icon/ShowIcon.js.map +1 -1
- package/src/Icon/SignIcon.d.js.map +1 -1
- package/src/Icon/SignIcon.js +2 -29
- package/src/Icon/SignIcon.js.map +1 -1
- package/src/Icon/SpeakerIcon.d.js.map +1 -1
- package/src/Icon/SpeakerIcon.js +2 -29
- package/src/Icon/SpeakerIcon.js.map +1 -1
- package/src/Icon/SupportIcon.d.js.map +1 -1
- package/src/Icon/SupportIcon.js +2 -29
- package/src/Icon/SupportIcon.js.map +1 -1
- package/src/Icon/TeamIcon.d.js.map +1 -1
- package/src/Icon/TeamIcon.js +2 -29
- package/src/Icon/TeamIcon.js.map +1 -1
- package/src/Icon/TimedIcon.d.js.map +1 -1
- package/src/Icon/TimedIcon.js +2 -29
- package/src/Icon/TimedIcon.js.map +1 -1
- package/src/Icon/TrashCrossIcon.d.js.map +1 -1
- package/src/Icon/TrashCrossIcon.js +2 -29
- package/src/Icon/TrashCrossIcon.js.map +1 -1
- package/src/Icon/TrashIcon.d.js.map +1 -1
- package/src/Icon/TrashIcon.js +2 -29
- package/src/Icon/TrashIcon.js.map +1 -1
- package/src/Icon/TriangleIcon.d.js.map +1 -1
- package/src/Icon/TriangleIcon.js +6 -14
- package/src/Icon/TriangleIcon.js.map +1 -1
- package/src/Icon/UploadIcon.d.js.map +1 -1
- package/src/Icon/UploadIcon.js +2 -29
- package/src/Icon/UploadIcon.js.map +1 -1
- package/src/Icon/WireIcon.d.js.map +1 -1
- package/src/Icon/WireIcon.js +2 -29
- package/src/Icon/WireIcon.js.map +1 -1
- package/src/Icon/index.d.js +0 -146
- package/src/Icon/index.d.js.map +1 -1
- package/src/Icon/index.js +0 -146
- package/src/Icon/index.js.map +1 -1
- package/src/Identity/Animation.d.js.map +1 -1
- package/src/Identity/Animation.js +50 -76
- package/src/Identity/Animation.js.map +1 -1
- package/src/Identity/Avatar.d.js.map +1 -1
- package/src/Identity/Avatar.js +26 -61
- package/src/Identity/Avatar.js.map +1 -1
- package/src/Identity/AvatarGrid.d.js.map +1 -1
- package/src/Identity/AvatarGrid.js +19 -39
- package/src/Identity/AvatarGrid.js.map +1 -1
- package/src/Identity/Logo.d.js.map +1 -1
- package/src/Identity/Logo.js +10 -24
- package/src/Identity/Logo.js.map +1 -1
- package/src/Identity/colors-v2.d.js.map +1 -1
- package/src/Identity/colors-v2.js +5 -15
- package/src/Identity/colors-v2.js.map +1 -1
- package/src/Identity/colors.d.js.map +1 -1
- package/src/Identity/colors.js +16 -27
- package/src/Identity/colors.js.map +1 -1
- package/src/Identity/index.d.js +0 -12
- package/src/Identity/index.d.js.map +1 -1
- package/src/Identity/index.js +0 -12
- package/src/Identity/index.js.map +1 -1
- package/src/Identity/motions.d.js.map +1 -1
- package/src/Identity/motions.js +8 -14
- package/src/Identity/motions.js.map +1 -1
- package/src/Layout/Box.d.js.map +1 -1
- package/src/Layout/Box.js +4 -33
- package/src/Layout/Box.js.map +1 -1
- package/src/Layout/Column.d.js.map +1 -1
- package/src/Layout/Column.js +8 -44
- package/src/Layout/Column.js.map +1 -1
- package/src/Layout/Container.d.js.map +1 -1
- package/src/Layout/Container.js +15 -58
- package/src/Layout/Container.js.map +1 -1
- package/src/Layout/Content.d.js.map +1 -1
- package/src/Layout/Content.js +4 -33
- package/src/Layout/Content.js.map +1 -1
- package/src/Layout/FlexBox.d.js.map +1 -1
- package/src/Layout/FlexBox.js +11 -42
- package/src/Layout/FlexBox.js.map +1 -1
- package/src/Layout/Footer.d.js.map +1 -1
- package/src/Layout/Footer.js +2 -6
- package/src/Layout/Footer.js.map +1 -1
- package/src/Layout/Header.d.js.map +1 -1
- package/src/Layout/Header.js +4 -32
- package/src/Layout/Header.js.map +1 -1
- package/src/Layout/MatchMedia.d.js.map +1 -1
- package/src/Layout/MatchMedia.js +22 -72
- package/src/Layout/MatchMedia.js.map +1 -1
- package/src/Layout/Spacer.d.js.map +1 -1
- package/src/Layout/Spacer.js +5 -8
- package/src/Layout/Spacer.js.map +1 -1
- package/src/Layout/StyledApp.d.js.map +1 -1
- package/src/Layout/StyledApp.js +10 -23
- package/src/Layout/StyledApp.js.map +1 -1
- package/src/Layout/Theme.d.js.map +1 -1
- package/src/Layout/Theme.js +8 -21
- package/src/Layout/Theme.js.map +1 -1
- package/src/Layout/headerMenu/HeaderMenu.d.js.map +1 -1
- package/src/Layout/headerMenu/HeaderMenu.js +19 -38
- package/src/Layout/headerMenu/HeaderMenu.js.map +1 -1
- package/src/Layout/headerMenu/HeaderSubMenu.d.js.map +1 -1
- package/src/Layout/headerMenu/HeaderSubMenu.js +13 -33
- package/src/Layout/headerMenu/HeaderSubMenu.js.map +1 -1
- package/src/Layout/headerMenu/MenuContent.d.js.map +1 -1
- package/src/Layout/headerMenu/MenuContent.js +6 -20
- package/src/Layout/headerMenu/MenuContent.js.map +1 -1
- package/src/Layout/headerMenu/MenuItems.d.js.map +1 -1
- package/src/Layout/headerMenu/MenuItems.js +6 -38
- package/src/Layout/headerMenu/MenuItems.js.map +1 -1
- package/src/Layout/headerMenu/MenuLink.d.js.map +1 -1
- package/src/Layout/headerMenu/MenuLink.js +21 -40
- package/src/Layout/headerMenu/MenuLink.js.map +1 -1
- package/src/Layout/headerMenu/MenuOpenButton.d.js.map +1 -1
- package/src/Layout/headerMenu/MenuOpenButton.js +7 -40
- package/src/Layout/headerMenu/MenuOpenButton.js.map +1 -1
- package/src/Layout/headerMenu/MenuScrollableItems.d.js.map +1 -1
- package/src/Layout/headerMenu/MenuScrollableItems.js +6 -36
- package/src/Layout/headerMenu/MenuScrollableItems.js.map +1 -1
- package/src/Layout/headerMenu/MenuSubLink.d.js.map +1 -1
- package/src/Layout/headerMenu/MenuSubLink.js +8 -23
- package/src/Layout/headerMenu/MenuSubLink.js.map +1 -1
- package/src/Layout/headerMenu/index.d.js +0 -16
- package/src/Layout/headerMenu/index.d.js.map +1 -1
- package/src/Layout/headerMenu/index.js +0 -16
- package/src/Layout/headerMenu/index.js.map +1 -1
- package/src/Layout/index.d.js +0 -26
- package/src/Layout/index.d.js.map +1 -1
- package/src/Layout/index.js +0 -26
- package/src/Layout/index.js.map +1 -1
- package/src/Layout/sizes.d.js.map +1 -1
- package/src/Layout/sizes.js +2 -2
- package/src/Layout/sizes.js.map +1 -1
- package/src/Menu/MenuModal.d.js.map +1 -1
- package/src/Menu/MenuModal.js +21 -44
- package/src/Menu/MenuModal.js.map +1 -1
- package/src/Menu/TabBar.d.js.map +1 -1
- package/src/Menu/TabBar.js +31 -50
- package/src/Menu/TabBar.js.map +1 -1
- package/src/Menu/index.d.js +0 -4
- package/src/Menu/index.d.js.map +1 -1
- package/src/Menu/index.js +0 -4
- package/src/Menu/index.js.map +1 -1
- package/src/Misc/ButtonGroup.d.js.map +1 -1
- package/src/Misc/ButtonGroup.js +10 -25
- package/src/Misc/ButtonGroup.js.map +1 -1
- package/src/Misc/IconButton.d.js.map +1 -1
- package/src/Misc/IconButton.js +13 -31
- package/src/Misc/IconButton.js.map +1 -1
- package/src/Misc/IsInViewport.d.js.map +1 -1
- package/src/Misc/IsInViewport.js +18 -29
- package/src/Misc/IsInViewport.js.map +1 -1
- package/src/Misc/Loading.d.js.map +1 -1
- package/src/Misc/Loading.js +13 -24
- package/src/Misc/Loading.js.map +1 -1
- package/src/Misc/Pagination.d.js.map +1 -1
- package/src/Misc/Pagination.js +18 -40
- package/src/Misc/Pagination.js.map +1 -1
- package/src/Misc/Pill.d.js.map +1 -1
- package/src/Misc/Pill.js +11 -30
- package/src/Misc/Pill.js.map +1 -1
- package/src/Misc/childrenWithDefaultProps.d.js.map +1 -1
- package/src/Misc/childrenWithDefaultProps.js +4 -13
- package/src/Misc/childrenWithDefaultProps.js.map +1 -1
- package/src/Misc/index.d.js +0 -18
- package/src/Misc/index.d.js.map +1 -1
- package/src/Misc/index.js +0 -18
- package/src/Misc/index.js.map +1 -1
- package/src/Misc/useLongTouch.d.js.map +1 -1
- package/src/Misc/useLongTouch.js +3 -11
- package/src/Misc/useLongTouch.js.map +1 -1
- package/src/Misc/useTimeout.d.js.map +1 -1
- package/src/Misc/useTimeout.js +9 -32
- package/src/Misc/useTimeout.js.map +1 -1
- package/src/Modal/Modal.d.js.map +1 -1
- package/src/Modal/Modal.js +21 -50
- package/src/Modal/Modal.js.map +1 -1
- package/src/Modal/Overlay.d.js.map +1 -1
- package/src/Modal/Overlay.js +15 -37
- package/src/Modal/Overlay.js.map +1 -1
- package/src/Modal/index.d.js +0 -3
- package/src/Modal/index.d.js.map +1 -1
- package/src/Modal/index.js +0 -3
- package/src/Modal/index.js.map +1 -1
- package/src/Text/Heading.d.js.map +1 -1
- package/src/Text/Heading.js +52 -84
- package/src/Text/Heading.js.map +1 -1
- package/src/Text/Label.d.js.map +1 -1
- package/src/Text/Label.js +18 -35
- package/src/Text/Label.js.map +1 -1
- package/src/Text/Line.d.js.map +1 -1
- package/src/Text/Line.js +5 -35
- package/src/Text/Line.js.map +1 -1
- package/src/Text/Link.d.js.map +1 -1
- package/src/Text/Link.js +20 -39
- package/src/Text/Link.js.map +1 -1
- package/src/Text/Paragraph.d.js.map +1 -1
- package/src/Text/Paragraph.js +19 -37
- package/src/Text/Paragraph.js.map +1 -1
- package/src/Text/Text.d.js.map +1 -1
- package/src/Text/Text.js +28 -70
- package/src/Text/Text.js.map +1 -1
- package/src/Text/TextLink.d.js.map +1 -1
- package/src/Text/TextLink.js +16 -30
- package/src/Text/TextLink.js.map +1 -1
- package/src/Text/Title.d.js.map +1 -1
- package/src/Text/Title.js +17 -30
- package/src/Text/Title.js.map +1 -1
- package/src/Text/index.d.js +0 -16
- package/src/Text/index.d.js.map +1 -1
- package/src/Text/index.js +0 -16
- package/src/Text/index.js.map +1 -1
- package/src/index.d.js +0 -18
- package/src/index.d.js.map +1 -1
- package/src/index.js +0 -18
- package/src/index.js.map +1 -1
- package/src/mediaQueries.d.js.map +1 -1
- package/src/mediaQueries.js +15 -22
- package/src/mediaQueries.js.map +1 -1
- package/src/util.d.js.map +1 -1
- package/src/util.js +15 -24
- package/src/util.js.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Container.js","names":["LEVEL","lg","WIDTH","DESKTOP_MAX","md","TABLET_MAX","sm","TABLET_MIN","xs","MOBILE","xxs","TINY","containerStyle","centerText","level","undefined","verticalCenter","margin","maxWidth","position","textAlign","width","media","QueryKeys","DESKTOP","padding","DESKTOP_MIN","GUTTER","filterContainerProps","props","filterProps","Container","React","forwardRef","ref","ContainerLG","ContainerMD","ContainerSM","ContainerXS","ContainerXXS"],"sources":["Container.tsx"],"sourcesContent":["/*\n * Wire\n * Copyright (C) 2018 Wire Swiss GmbH\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/** @jsx jsx */\nimport {CSSObject, jsx} from '@emotion/react';\nimport React from 'react';\n\nimport {QueryKeys, media} from '../mediaQueries';\nimport {filterProps} from '../util';\nimport {GUTTER, WIDTH} from './sizes';\n\nexport interface ContainerProps<T = HTMLDivElement> extends React.HTMLProps<T> {\n centerText?: boolean;\n level?: keyof Level;\n verticalCenter?: boolean;\n}\n\nexport interface Level {\n lg: number;\n md: number;\n sm: number;\n xs: number;\n xxs: number;\n}\n\nconst LEVEL: Level = {\n lg: WIDTH.DESKTOP_MAX,\n md: WIDTH.TABLET_MAX,\n sm: WIDTH.TABLET_MIN,\n xs: WIDTH.MOBILE,\n xxs: WIDTH.TINY,\n};\n\nconst containerStyle: <T>(props: ContainerProps<T>) => CSSObject = ({\n centerText = false,\n level = undefined,\n verticalCenter = false,\n}) => ({\n margin: verticalCenter ? 'auto' : '0 auto',\n maxWidth: level ? `${LEVEL[level]}px` : undefined,\n position: 'relative',\n textAlign: centerText ? 'center' : 'left',\n width: '100%',\n [media[QueryKeys.DESKTOP]]: level\n ? undefined\n : {\n padding: 0,\n width: `${WIDTH.DESKTOP_MIN - GUTTER * 2}px`,\n },\n});\n\nconst filterContainerProps = (props: ContainerProps) => filterProps(props, ['centerText', 'level', 'verticalCenter']);\n\nexport const Container: React.FC<ContainerProps> = React.forwardRef<HTMLDivElement, ContainerProps>((props, ref) => (\n <div ref={ref} css={containerStyle(props)} {...filterContainerProps(props)} />\n));\n\nexport type LevelContainerProps = Omit<ContainerProps, 'level'>;\n\nexport const ContainerLG = React.forwardRef<HTMLDivElement, LevelContainerProps>((props, ref) => (\n <Container ref={ref} level={'lg'} {...props} />\n));\nexport const ContainerMD = React.forwardRef<HTMLDivElement, LevelContainerProps>((props, ref) => (\n <Container ref={ref} level={'md'} {...props} />\n));\nexport const ContainerSM = React.forwardRef<HTMLDivElement, LevelContainerProps>((props, ref) => (\n <Container ref={ref} level={'sm'} {...props} />\n));\nexport const ContainerXS = React.forwardRef<HTMLDivElement, LevelContainerProps>((props, ref) => (\n <Container ref={ref} level={'xs'} {...props} />\n));\nexport const ContainerXXS = React.forwardRef<HTMLDivElement, LevelContainerProps>((props, ref) => (\n <Container ref={ref} level={'xxs'} {...props} />\n));\n"],"mappings":";;;;;;AAoBA;AACA;AAEA;AACA;AACA;AAAsC;AAAA;AAAA;AAgBtC,IAAMA,KAAY,GAAG;EACnBC,EAAE,EAAEC,YAAK,CAACC,WAAW;EACrBC,EAAE,EAAEF,YAAK,CAACG,UAAU;EACpBC,EAAE,EAAEJ,YAAK,CAACK,UAAU;EACpBC,EAAE,EAAEN,YAAK,CAACO,MAAM;EAChBC,GAAG,EAAER,YAAK,CAACS;AACb,CAAC;AAED,IAAMC,cAA0D,GAAG,SAA7DA,cAA0D;EAAA,2BAC9DC,UAAU;IAAVA,UAAU,gCAAG,KAAK;IAAA,kBAClBC,KAAK;IAALA,KAAK,2BAAGC,SAAS;IAAA,2BACjBC,cAAc;IAAdA,cAAc,oCAAG,KAAK;EAAA;IAEtBC,MAAM,EAAED,cAAc,GAAG,MAAM,GAAG,QAAQ;IAC1CE,QAAQ,EAAEJ,KAAK,aAAMd,KAAK,CAACc,KAAK,CAAC,UAAOC,SAAS;IACjDI,QAAQ,EAAE,UAAU;IACpBC,SAAS,EAAEP,UAAU,GAAG,QAAQ,GAAG,MAAM;IACzCQ,KAAK,EAAE;EAAM,GACZC,mBAAK,CAACC,uBAAS,CAACC,OAAO,CAAC,EAAGV,KAAK,GAC7BC,SAAS,GACT;IACEU,OAAO,EAAE,CAAC;IACVJ,KAAK,YAAKnB,YAAK,CAACwB,WAAW,GAAGC,aAAM,GAAG,CAAC;EAC1C,CAAC;AAAA,CACL;AAEF,IAAMC,oBAAoB,GAAG,SAAvBA,oBAAoB,CAAIC,KAAqB;EAAA,OAAK,IAAAC,iBAAW,EAACD,KAAK,EAAE,CAAC,YAAY,EAAE,OAAO,EAAE,gBAAgB,CAAC,CAAC;AAAA;AAE9G,IAAME,SAAmC,gBAAGC,kBAAK,CAACC,UAAU,CAAiC,UAACJ,KAAK,EAAEK,GAAG;EAAA,OAC7G;IAAK,GAAG,EAAEA,GAAI;IAAC,GAAG,EAAEtB,cAAc,CAACiB,KAAK;EAAE,GAAKD,oBAAoB,CAACC,KAAK,CAAC,EAAI;AAAA,CAC/E,CAAC;AAAC;AAII,IAAMM,WAAW,gBAAGH,kBAAK,CAACC,UAAU,CAAsC,UAACJ,KAAK,EAAEK,GAAG;EAAA,OAC1F,gBAAC,SAAS;IAAC,GAAG,EAAEA,GAAI;IAAC,KAAK,EAAE;EAAK,GAAKL,KAAK,EAAI;AAAA,CAChD,CAAC;AAAC;AACI,IAAMO,WAAW,gBAAGJ,kBAAK,CAACC,UAAU,CAAsC,UAACJ,KAAK,EAAEK,GAAG;EAAA,OAC1F,gBAAC,SAAS;IAAC,GAAG,EAAEA,GAAI;IAAC,KAAK,EAAE;EAAK,GAAKL,KAAK,EAAI;AAAA,CAChD,CAAC;AAAC;AACI,IAAMQ,WAAW,gBAAGL,kBAAK,CAACC,UAAU,CAAsC,UAACJ,KAAK,EAAEK,GAAG;EAAA,OAC1F,gBAAC,SAAS;IAAC,GAAG,EAAEA,GAAI;IAAC,KAAK,EAAE;EAAK,GAAKL,KAAK,EAAI;AAAA,CAChD,CAAC;AAAC;AACI,IAAMS,WAAW,gBAAGN,kBAAK,CAACC,UAAU,CAAsC,UAACJ,KAAK,EAAEK,GAAG;EAAA,OAC1F,gBAAC,SAAS;IAAC,GAAG,EAAEA,GAAI;IAAC,KAAK,EAAE;EAAK,GAAKL,KAAK,EAAI;AAAA,CAChD,CAAC;AAAC;AACI,IAAMU,YAAY,gBAAGP,kBAAK,CAACC,UAAU,CAAsC,UAACJ,KAAK,EAAEK,GAAG;EAAA,OAC3F,gBAAC,SAAS;IAAC,GAAG,EAAEA,GAAI;IAAC,KAAK,EAAE;EAAM,GAAKL,KAAK,EAAI;AAAA,CACjD,CAAC;AAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Content.d.js","names":[],"sources":["Content.d.ts"],"sourcesContent":["/** @jsx jsx */\nimport React from 'react';\nimport { CSSObject, jsx } from '@emotion/react';\nexport declare type ContentProps<T = HTMLDivElement> = React.HTMLProps<T>;\nexport declare const contentStyle: <T>(props: ContentProps<T>) => CSSObject;\nexport declare const Content: (props: ContentProps<HTMLDivElement>) => jsx.JSX.Element;\n"],"mappings":""}
|
package/src/Layout/Content.js
CHANGED
|
@@ -1,40 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
|
-
exports.
|
|
9
|
-
|
|
10
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
-
|
|
6
|
+
exports.contentStyle = exports.Content = void 0;
|
|
12
7
|
var _react = _interopRequireDefault(require("react"));
|
|
13
|
-
|
|
14
8
|
var _react2 = require("@emotion/react");
|
|
15
|
-
|
|
16
9
|
var _sizes = require("./sizes");
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
* Wire
|
|
20
|
-
* Copyright (C) 2018 Wire Swiss GmbH
|
|
21
|
-
*
|
|
22
|
-
* This program is free software: you can redistribute it and/or modify
|
|
23
|
-
* it under the terms of the GNU General Public License as published by
|
|
24
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
25
|
-
* (at your option) any later version.
|
|
26
|
-
*
|
|
27
|
-
* This program is distributed in the hope that it will be useful,
|
|
28
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
29
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
30
|
-
* GNU General Public License for more details.
|
|
31
|
-
*
|
|
32
|
-
* You should have received a copy of the GNU General Public License
|
|
33
|
-
* along with this program. If not, see http://www.gnu.org/licenses/.
|
|
34
|
-
*
|
|
35
|
-
*/
|
|
36
|
-
|
|
37
|
-
/** @jsx jsx */
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
38
12
|
var contentStyle = function contentStyle(props) {
|
|
39
13
|
return {
|
|
40
14
|
display: 'flex',
|
|
@@ -43,14 +17,11 @@ var contentStyle = function contentStyle(props) {
|
|
|
43
17
|
padding: "0 ".concat(_sizes.GUTTER, "px")
|
|
44
18
|
};
|
|
45
19
|
};
|
|
46
|
-
|
|
47
20
|
exports.contentStyle = contentStyle;
|
|
48
|
-
|
|
49
21
|
var Content = function Content(props) {
|
|
50
|
-
return (0, _react2.jsx)("div", (
|
|
22
|
+
return (0, _react2.jsx)("div", _extends({
|
|
51
23
|
css: contentStyle(props)
|
|
52
24
|
}, props));
|
|
53
25
|
};
|
|
54
|
-
|
|
55
26
|
exports.Content = Content;
|
|
56
27
|
//# sourceMappingURL=Content.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Content.js","names":["contentStyle","props","display","flexDirection","flexGrow","padding","GUTTER","Content"],"sources":["Content.tsx"],"sourcesContent":["/*\n * Wire\n * Copyright (C) 2018 Wire Swiss GmbH\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/** @jsx jsx */\nimport React from 'react';\nimport {CSSObject, jsx} from '@emotion/react';\n\nimport {GUTTER} from './sizes';\n\nexport type ContentProps<T = HTMLDivElement> = React.HTMLProps<T>;\n\nexport const contentStyle: <T>(props: ContentProps<T>) => CSSObject = props => ({\n display: 'flex',\n flexDirection: 'column',\n flexGrow: 1,\n padding: `0 ${GUTTER}px`,\n});\n\nexport const Content = (props: ContentProps) => <div css={contentStyle(props)} {...props} />;\n"],"mappings":";;;;;;AAoBA;AACA;AAEA;AAA+B;AAAA;AAIxB,IAAMA,YAAsD,GAAG,SAAzDA,YAAsD,CAAGC,KAAK;EAAA,OAAK;IAC9EC,OAAO,EAAE,MAAM;IACfC,aAAa,EAAE,QAAQ;IACvBC,QAAQ,EAAE,CAAC;IACXC,OAAO,cAAOC,aAAM;EACtB,CAAC;AAAA,CAAC;AAAC;AAEI,IAAMC,OAAO,GAAG,SAAVA,OAAO,CAAIN,KAAmB;EAAA,OAAK;IAAK,GAAG,EAAED,YAAY,CAACC,KAAK;EAAE,GAAKA,KAAK,EAAI;AAAA;AAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"FlexBox.d.js","names":[],"sources":["FlexBox.d.ts"],"sourcesContent":["/** @jsx jsx */\nimport { CSSObject } from '@emotion/react';\nimport { Property } from 'csstype';\nimport React from 'react';\nexport interface FlexBoxProps<T = HTMLDivElement> extends React.PropsWithRef<React.HTMLProps<T>> {\n align?: string;\n column?: boolean;\n flexWrap?: Property.FlexWrap;\n justify?: string;\n}\nexport declare const flexBoxStyle: <T>(props: FlexBoxProps<T>) => CSSObject;\nexport declare const filterFlexBoxProps: (props: FlexBoxProps) => Object;\nexport declare const FlexBox: React.FC<FlexBoxProps>;\n"],"mappings":""}
|
package/src/Layout/FlexBox.js
CHANGED
|
@@ -1,49 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
|
-
exports.
|
|
9
|
-
|
|
10
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
-
|
|
6
|
+
exports.flexBoxStyle = exports.filterFlexBoxProps = exports.FlexBox = void 0;
|
|
12
7
|
var _react = require("@emotion/react");
|
|
13
|
-
|
|
14
8
|
var _react2 = _interopRequireDefault(require("react"));
|
|
15
|
-
|
|
16
9
|
var _util = require("../util");
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
* Wire
|
|
20
|
-
* Copyright (C) 2017 Wire Swiss GmbH
|
|
21
|
-
*
|
|
22
|
-
* This program is free software: you can redistribute it and/or modify
|
|
23
|
-
* it under the terms of the GNU General Public License as published by
|
|
24
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
25
|
-
* (at your option) any later version.
|
|
26
|
-
*
|
|
27
|
-
* This program is distributed in the hope that it will be useful,
|
|
28
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
29
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
30
|
-
* GNU General Public License for more details.
|
|
31
|
-
*
|
|
32
|
-
* You should have received a copy of the GNU General Public License
|
|
33
|
-
* along with this program. If not, see http://www.gnu.org/licenses/.
|
|
34
|
-
*
|
|
35
|
-
*/
|
|
36
|
-
|
|
37
|
-
/** @jsx jsx */
|
|
10
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
38
12
|
var flexBoxStyle = function flexBoxStyle(_ref) {
|
|
39
13
|
var _ref$align = _ref.align,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
14
|
+
align = _ref$align === void 0 ? 'flex-start' : _ref$align,
|
|
15
|
+
_ref$column = _ref.column,
|
|
16
|
+
column = _ref$column === void 0 ? false : _ref$column,
|
|
17
|
+
_ref$justify = _ref.justify,
|
|
18
|
+
justify = _ref$justify === void 0 ? 'flex-start' : _ref$justify,
|
|
19
|
+
_ref$flexWrap = _ref.flexWrap,
|
|
20
|
+
flexWrap = _ref$flexWrap === void 0 ? 'nowrap' : _ref$flexWrap;
|
|
47
21
|
return {
|
|
48
22
|
alignItems: align,
|
|
49
23
|
display: 'flex',
|
|
@@ -52,21 +26,16 @@ var flexBoxStyle = function flexBoxStyle(_ref) {
|
|
|
52
26
|
justifyContent: justify
|
|
53
27
|
};
|
|
54
28
|
};
|
|
55
|
-
|
|
56
29
|
exports.flexBoxStyle = flexBoxStyle;
|
|
57
|
-
|
|
58
30
|
var filterFlexBoxProps = function filterFlexBoxProps(props) {
|
|
59
31
|
return (0, _util.filterProps)(props, ['align', 'column', 'justify', 'flexWrap']);
|
|
60
32
|
};
|
|
61
|
-
|
|
62
33
|
exports.filterFlexBoxProps = filterFlexBoxProps;
|
|
63
|
-
|
|
64
34
|
var FlexBox = /*#__PURE__*/_react2["default"].forwardRef(function (props, ref) {
|
|
65
|
-
return (0, _react.jsx)("div", (
|
|
35
|
+
return (0, _react.jsx)("div", _extends({
|
|
66
36
|
ref: ref,
|
|
67
37
|
css: flexBoxStyle(props)
|
|
68
38
|
}, filterFlexBoxProps(props)));
|
|
69
39
|
});
|
|
70
|
-
|
|
71
40
|
exports.FlexBox = FlexBox;
|
|
72
41
|
//# sourceMappingURL=FlexBox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"FlexBox.js","names":["flexBoxStyle","align","column","justify","flexWrap","alignItems","display","flexDirection","justifyContent","filterFlexBoxProps","props","filterProps","FlexBox","React","forwardRef","ref"],"sources":["FlexBox.tsx"],"sourcesContent":["/*\n * Wire\n * Copyright (C) 2017 Wire Swiss GmbH\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/** @jsx jsx */\nimport {CSSObject, jsx} from '@emotion/react';\nimport {Property} from 'csstype';\nimport React from 'react';\n\nimport {filterProps} from '../util';\n\nexport interface FlexBoxProps<T = HTMLDivElement> extends React.PropsWithRef<React.HTMLProps<T>> {\n align?: string;\n column?: boolean;\n flexWrap?: Property.FlexWrap;\n justify?: string;\n}\n\nexport const flexBoxStyle: <T>(props: FlexBoxProps<T>) => CSSObject = ({\n align = 'flex-start',\n column = false,\n justify = 'flex-start',\n flexWrap = 'nowrap',\n}) => ({\n alignItems: align,\n display: 'flex',\n flexDirection: column ? 'column' : 'row',\n flexWrap: flexWrap,\n justifyContent: justify,\n});\n\nexport const filterFlexBoxProps = (props: FlexBoxProps) =>\n filterProps(props, ['align', 'column', 'justify', 'flexWrap']);\n\nexport const FlexBox: React.FC<FlexBoxProps> = React.forwardRef<HTMLDivElement, FlexBoxProps>((props, ref) => (\n <div ref={ref} css={flexBoxStyle(props)} {...filterFlexBoxProps(props)} />\n));\n"],"mappings":";;;;;;AAoBA;AAEA;AAEA;AAAoC;AAAA;AAS7B,IAAMA,YAAsD,GAAG,SAAzDA,YAAsD;EAAA,sBACjEC,KAAK;IAALA,KAAK,2BAAG,YAAY;IAAA,mBACpBC,MAAM;IAANA,MAAM,4BAAG,KAAK;IAAA,oBACdC,OAAO;IAAPA,OAAO,6BAAG,YAAY;IAAA,qBACtBC,QAAQ;IAARA,QAAQ,8BAAG,QAAQ;EAAA,OACd;IACLC,UAAU,EAAEJ,KAAK;IACjBK,OAAO,EAAE,MAAM;IACfC,aAAa,EAAEL,MAAM,GAAG,QAAQ,GAAG,KAAK;IACxCE,QAAQ,EAAEA,QAAQ;IAClBI,cAAc,EAAEL;EAClB,CAAC;AAAA,CAAC;AAAC;AAEI,IAAMM,kBAAkB,GAAG,SAArBA,kBAAkB,CAAIC,KAAmB;EAAA,OACpD,IAAAC,iBAAW,EAACD,KAAK,EAAE,CAAC,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC;AAAA;AAAC;AAE1D,IAAME,OAA+B,gBAAGC,kBAAK,CAACC,UAAU,CAA+B,UAACJ,KAAK,EAAEK,GAAG;EAAA,OACvG;IAAK,GAAG,EAAEA,GAAI;IAAC,GAAG,EAAEf,YAAY,CAACU,KAAK;EAAE,GAAKD,kBAAkB,CAACC,KAAK,CAAC,EAAI;AAAA,CAC3E,CAAC;AAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Footer.d.js","names":[],"sources":["Footer.d.ts"],"sourcesContent":["/** @jsx jsx */\nimport { jsx } from '@emotion/react';\nimport React from 'react';\ndeclare type FooterProps = React.HTMLProps<HTMLElement>;\nexport declare const Footer: (props: FooterProps) => jsx.JSX.Element;\nexport {};\n"],"mappings":""}
|
package/src/Layout/Footer.js
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports.Footer = void 0;
|
|
9
|
-
|
|
10
7
|
var _react = require("@emotion/react");
|
|
11
|
-
|
|
12
8
|
var _react2 = _interopRequireDefault(require("react"));
|
|
13
|
-
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
10
|
/*
|
|
15
11
|
* Wire
|
|
16
12
|
* Copyright (C) 2018 Wire Swiss GmbH
|
|
@@ -31,9 +27,9 @@ var _react2 = _interopRequireDefault(require("react"));
|
|
|
31
27
|
*/
|
|
32
28
|
|
|
33
29
|
/** @jsx jsx */
|
|
30
|
+
|
|
34
31
|
var Footer = function Footer(props) {
|
|
35
32
|
return (0, _react.jsx)("footer", props);
|
|
36
33
|
};
|
|
37
|
-
|
|
38
34
|
exports.Footer = Footer;
|
|
39
35
|
//# sourceMappingURL=Footer.js.map
|
package/src/Layout/Footer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Footer.js","names":["Footer","props"],"sources":["Footer.tsx"],"sourcesContent":["/*\n * Wire\n * Copyright (C) 2018 Wire Swiss GmbH\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/** @jsx jsx */\nimport {jsx} from '@emotion/react';\nimport React from 'react';\n\ntype FooterProps = React.HTMLProps<HTMLElement>;\n\nexport const Footer = (props: FooterProps) => <footer {...props} />;\n"],"mappings":";;;;;;AAoBA;AACA;AAA0B;AArB1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AAMO,IAAMA,MAAM,GAAG,SAATA,MAAM,CAAIC,KAAkB;EAAA,OAAK,0BAAYA,KAAK,CAAI;AAAA;AAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Header.d.js","names":[],"sources":["Header.d.ts"],"sourcesContent":["/** @jsx jsx */\nimport { CSSObject, jsx } from '@emotion/react';\nimport React from 'react';\nexport declare type HeaderProps<T = HTMLHeadingElement> = React.HTMLProps<T>;\nexport declare const headerStyle: <T>(props: HeaderProps<T>) => CSSObject;\nexport declare const Header: (props: HeaderProps<HTMLHeadingElement>) => jsx.JSX.Element;\n"],"mappings":""}
|
package/src/Layout/Header.js
CHANGED
|
@@ -1,38 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
|
-
exports.
|
|
9
|
-
|
|
10
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
11
|
-
|
|
6
|
+
exports.headerStyle = exports.Header = void 0;
|
|
12
7
|
var _react = require("@emotion/react");
|
|
13
|
-
|
|
14
8
|
var _react2 = _interopRequireDefault(require("react"));
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
* Wire
|
|
18
|
-
* Copyright (C) 2018 Wire Swiss GmbH
|
|
19
|
-
*
|
|
20
|
-
* This program is free software: you can redistribute it and/or modify
|
|
21
|
-
* it under the terms of the GNU General Public License as published by
|
|
22
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
23
|
-
* (at your option) any later version.
|
|
24
|
-
*
|
|
25
|
-
* This program is distributed in the hope that it will be useful,
|
|
26
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
27
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
28
|
-
* GNU General Public License for more details.
|
|
29
|
-
*
|
|
30
|
-
* You should have received a copy of the GNU General Public License
|
|
31
|
-
* along with this program. If not, see http://www.gnu.org/licenses/.
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
34
|
-
|
|
35
|
-
/** @jsx jsx */
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
10
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
36
11
|
var headerStyle = function headerStyle(props) {
|
|
37
12
|
return {
|
|
38
13
|
alignItems: 'center',
|
|
@@ -41,14 +16,11 @@ var headerStyle = function headerStyle(props) {
|
|
|
41
16
|
justifyContent: 'space-between'
|
|
42
17
|
};
|
|
43
18
|
};
|
|
44
|
-
|
|
45
19
|
exports.headerStyle = headerStyle;
|
|
46
|
-
|
|
47
20
|
var Header = function Header(props) {
|
|
48
|
-
return (0, _react.jsx)("header", (
|
|
21
|
+
return (0, _react.jsx)("header", _extends({
|
|
49
22
|
css: headerStyle(props)
|
|
50
23
|
}, props));
|
|
51
24
|
};
|
|
52
|
-
|
|
53
25
|
exports.Header = Header;
|
|
54
26
|
//# sourceMappingURL=Header.js.map
|
package/src/Layout/Header.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Header.js","names":["headerStyle","props","alignItems","display","height","justifyContent","Header"],"sources":["Header.tsx"],"sourcesContent":["/*\n * Wire\n * Copyright (C) 2018 Wire Swiss GmbH\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/** @jsx jsx */\nimport {CSSObject, jsx} from '@emotion/react';\nimport React from 'react';\n\nexport type HeaderProps<T = HTMLHeadingElement> = React.HTMLProps<T>;\n\nexport const headerStyle: <T>(props: HeaderProps<T>) => CSSObject = props => ({\n alignItems: 'center',\n display: 'flex',\n height: '64px',\n justifyContent: 'space-between',\n});\n\nexport const Header = (props: HeaderProps) => <header css={headerStyle(props)} {...props} />;\n"],"mappings":";;;;;;AAoBA;AACA;AAA0B;AAAA;AAInB,IAAMA,WAAoD,GAAG,SAAvDA,WAAoD,CAAGC,KAAK;EAAA,OAAK;IAC5EC,UAAU,EAAE,QAAQ;IACpBC,OAAO,EAAE,MAAM;IACfC,MAAM,EAAE,MAAM;IACdC,cAAc,EAAE;EAClB,CAAC;AAAA,CAAC;AAAC;AAEI,IAAMC,MAAM,GAAG,SAATA,MAAM,CAAIL,KAAkB;EAAA,OAAK;IAAQ,GAAG,EAAED,WAAW,CAACC,KAAK;EAAE,GAAKA,KAAK,EAAI;AAAA;AAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"MatchMedia.d.js","names":[],"sources":["MatchMedia.d.ts"],"sourcesContent":["/** @jsx jsx */\nimport { jsx } from '@emotion/react';\nimport React, { ReactFragment } from 'react';\nimport { QueryKeys } from '../mediaQueries';\ndeclare type Query = string | QueryKeys;\nexport interface MatchMediaProps extends React.HTMLProps<ReactFragment> {\n not?: boolean;\n query: Query;\n}\nexport declare const useMatchMedia: (query: Query) => boolean;\nexport declare const MatchMedia: React.FC<MatchMediaProps>;\nexport declare type NamedMatchMediaProps = Omit<MatchMediaProps, 'query'>;\nexport declare const IsDesktop: (props: NamedMatchMediaProps) => jsx.JSX.Element;\nexport declare const IsDesktopXL: (props: NamedMatchMediaProps) => jsx.JSX.Element;\nexport declare const IsMobile: (props: NamedMatchMediaProps) => jsx.JSX.Element;\nexport declare const IsMobileDown: (props: NamedMatchMediaProps) => jsx.JSX.Element;\nexport declare const IsMobileUp: (props: NamedMatchMediaProps) => jsx.JSX.Element;\nexport declare const IsTablet: (props: NamedMatchMediaProps) => jsx.JSX.Element;\nexport declare const IsTabletDown: (props: NamedMatchMediaProps) => jsx.JSX.Element;\nexport declare const IsTabletUp: (props: NamedMatchMediaProps) => jsx.JSX.Element;\nexport {};\n"],"mappings":""}
|
package/src/Layout/MatchMedia.js
CHANGED
|
@@ -1,64 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var _typeof = require("@babel/runtime/helpers/typeof");
|
|
6
|
-
|
|
3
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
7
4
|
Object.defineProperty(exports, "__esModule", {
|
|
8
5
|
value: true
|
|
9
6
|
});
|
|
10
|
-
exports.
|
|
11
|
-
|
|
12
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
|
-
|
|
14
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
15
|
-
|
|
7
|
+
exports.useMatchMedia = exports.MatchMedia = exports.IsTabletUp = exports.IsTabletDown = exports.IsTablet = exports.IsMobileUp = exports.IsMobileDown = exports.IsMobile = exports.IsDesktopXL = exports.IsDesktop = void 0;
|
|
16
8
|
var _react = require("@emotion/react");
|
|
17
|
-
|
|
18
9
|
var _react2 = _interopRequireWildcard(require("react"));
|
|
19
|
-
|
|
20
10
|
var _mediaQueries = require("../mediaQueries");
|
|
21
|
-
|
|
22
11
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
23
|
-
|
|
24
12
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
* the Free Software Foundation, either version 3 of the License, or
|
|
33
|
-
* (at your option) any later version.
|
|
34
|
-
*
|
|
35
|
-
* This program is distributed in the hope that it will be useful,
|
|
36
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
37
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
38
|
-
* GNU General Public License for more details.
|
|
39
|
-
*
|
|
40
|
-
* You should have received a copy of the GNU General Public License
|
|
41
|
-
* along with this program. If not, see http://www.gnu.org/licenses/.
|
|
42
|
-
*
|
|
43
|
-
*/
|
|
44
|
-
|
|
45
|
-
/** @jsx jsx */
|
|
46
|
-
|
|
47
|
-
/* @jsxFrag React.Fragment */
|
|
13
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
14
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
15
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
16
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
17
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
18
|
+
function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
|
|
19
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
48
20
|
var useMatchMedia = function useMatchMedia(query) {
|
|
49
21
|
var matchMedia = (0, _react2.useMemo)(function () {
|
|
50
22
|
return window.matchMedia("(".concat(query, ")"));
|
|
51
23
|
}, [query]);
|
|
52
|
-
|
|
53
24
|
var _useState = (0, _react2.useState)(matchMedia.matches),
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
25
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
26
|
+
isMatching = _useState2[0],
|
|
27
|
+
setIsMatching = _useState2[1];
|
|
58
28
|
var updateMatching = function updateMatching(event) {
|
|
59
29
|
setIsMatching(event.matches);
|
|
60
30
|
};
|
|
61
|
-
|
|
62
31
|
(0, _react2.useEffect)(function () {
|
|
63
32
|
matchMedia.addEventListener('change', updateMatching);
|
|
64
33
|
return function () {
|
|
@@ -67,81 +36,62 @@ var useMatchMedia = function useMatchMedia(query) {
|
|
|
67
36
|
}, [matchMedia]);
|
|
68
37
|
return isMatching;
|
|
69
38
|
};
|
|
70
|
-
|
|
71
39
|
exports.useMatchMedia = useMatchMedia;
|
|
72
|
-
|
|
73
40
|
var MatchMedia = function MatchMedia(_ref) {
|
|
74
41
|
var query = _ref.query,
|
|
75
|
-
|
|
76
|
-
|
|
42
|
+
children = _ref.children,
|
|
43
|
+
not = _ref.not;
|
|
77
44
|
var matchQuery = useMatchMedia(_mediaQueries.QUERY[query] || query);
|
|
78
45
|
var isMatching = not ? !matchQuery : matchQuery;
|
|
79
46
|
return isMatching ? (0, _react.jsx)(_react2["default"].Fragment, null, children) : null;
|
|
80
47
|
};
|
|
81
|
-
|
|
82
48
|
exports.MatchMedia = MatchMedia;
|
|
83
|
-
|
|
84
49
|
var IsDesktop = function IsDesktop(props) {
|
|
85
|
-
return (0, _react.jsx)(MatchMedia, (
|
|
50
|
+
return (0, _react.jsx)(MatchMedia, _extends({
|
|
86
51
|
query: _mediaQueries.QueryKeys.DESKTOP
|
|
87
52
|
}, props));
|
|
88
53
|
};
|
|
89
|
-
|
|
90
54
|
exports.IsDesktop = IsDesktop;
|
|
91
|
-
|
|
92
55
|
var IsDesktopXL = function IsDesktopXL(props) {
|
|
93
|
-
return (0, _react.jsx)(MatchMedia, (
|
|
56
|
+
return (0, _react.jsx)(MatchMedia, _extends({
|
|
94
57
|
query: _mediaQueries.QueryKeys.DESKTOP_XL
|
|
95
58
|
}, props));
|
|
96
59
|
};
|
|
97
|
-
|
|
98
60
|
exports.IsDesktopXL = IsDesktopXL;
|
|
99
|
-
|
|
100
61
|
var IsMobile = function IsMobile(props) {
|
|
101
|
-
return (0, _react.jsx)(MatchMedia, (
|
|
62
|
+
return (0, _react.jsx)(MatchMedia, _extends({
|
|
102
63
|
query: _mediaQueries.QueryKeys.MOBILE
|
|
103
64
|
}, props));
|
|
104
65
|
};
|
|
105
|
-
|
|
106
66
|
exports.IsMobile = IsMobile;
|
|
107
|
-
|
|
108
67
|
var IsMobileDown = function IsMobileDown(props) {
|
|
109
|
-
return (0, _react.jsx)(MatchMedia, (
|
|
68
|
+
return (0, _react.jsx)(MatchMedia, _extends({
|
|
110
69
|
query: _mediaQueries.QueryKeys.MOBILE_DOWN
|
|
111
70
|
}, props));
|
|
112
71
|
};
|
|
113
|
-
|
|
114
72
|
exports.IsMobileDown = IsMobileDown;
|
|
115
|
-
|
|
116
73
|
var IsMobileUp = function IsMobileUp(props) {
|
|
117
|
-
return (0, _react.jsx)(MatchMedia, (
|
|
74
|
+
return (0, _react.jsx)(MatchMedia, _extends({
|
|
118
75
|
query: _mediaQueries.QueryKeys.MOBILE_UP
|
|
119
76
|
}, props));
|
|
120
77
|
};
|
|
121
|
-
|
|
122
78
|
exports.IsMobileUp = IsMobileUp;
|
|
123
|
-
|
|
124
79
|
var IsTablet = function IsTablet(props) {
|
|
125
|
-
return (0, _react.jsx)(MatchMedia, (
|
|
80
|
+
return (0, _react.jsx)(MatchMedia, _extends({
|
|
126
81
|
query: _mediaQueries.QueryKeys.TABLET
|
|
127
82
|
}, props));
|
|
128
83
|
};
|
|
129
|
-
|
|
130
84
|
exports.IsTablet = IsTablet;
|
|
131
|
-
|
|
132
85
|
var IsTabletDown = function IsTabletDown(props) {
|
|
133
|
-
return (0, _react.jsx)(MatchMedia, (
|
|
86
|
+
return (0, _react.jsx)(MatchMedia, _extends({
|
|
134
87
|
query: _mediaQueries.QueryKeys.TABLET_DOWN
|
|
135
88
|
}, props));
|
|
136
89
|
};
|
|
137
|
-
|
|
138
90
|
exports.IsTabletDown = IsTabletDown;
|
|
139
|
-
|
|
140
91
|
var IsTabletUp = function IsTabletUp(props) {
|
|
141
|
-
return (0, _react.jsx)(MatchMedia, (
|
|
92
|
+
return (0, _react.jsx)(MatchMedia, _extends({
|
|
142
93
|
query: _mediaQueries.QueryKeys.TABLET_UP
|
|
143
94
|
}, props));
|
|
144
95
|
};
|
|
145
|
-
|
|
146
96
|
exports.IsTabletUp = IsTabletUp;
|
|
147
97
|
//# sourceMappingURL=MatchMedia.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"MatchMedia.js","names":["useMatchMedia","query","matchMedia","useMemo","window","useState","matches","isMatching","setIsMatching","updateMatching","event","useEffect","addEventListener","removeEventListener","MatchMedia","children","not","matchQuery","QUERY","IsDesktop","props","QueryKeys","DESKTOP","IsDesktopXL","DESKTOP_XL","IsMobile","MOBILE","IsMobileDown","MOBILE_DOWN","IsMobileUp","MOBILE_UP","IsTablet","TABLET","IsTabletDown","TABLET_DOWN","IsTabletUp","TABLET_UP"],"sources":["MatchMedia.tsx"],"sourcesContent":["/*\n * Wire\n * Copyright (C) 2018 Wire Swiss GmbH\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/** @jsx jsx */\n/* @jsxFrag React.Fragment */\nimport {jsx} from '@emotion/react';\nimport React, {ReactFragment, useEffect, useMemo, useState} from 'react';\n\nimport {QUERY, QueryKeys} from '../mediaQueries';\n\ntype Query = string | QueryKeys;\n\nexport interface MatchMediaProps extends React.HTMLProps<ReactFragment> {\n not?: boolean;\n query: Query;\n}\n\nexport const useMatchMedia = (query: Query) => {\n const matchMedia = useMemo(() => window.matchMedia(`(${query})`), [query]);\n\n const [isMatching, setIsMatching] = useState(matchMedia.matches);\n\n const updateMatching = (event: MediaQueryListEvent) => {\n setIsMatching(event.matches);\n };\n\n useEffect(() => {\n matchMedia.addEventListener('change', updateMatching);\n return () => matchMedia.removeEventListener('change', updateMatching);\n }, [matchMedia]);\n\n return isMatching;\n};\n\nexport const MatchMedia: React.FC<MatchMediaProps> = ({query, children, not}) => {\n const matchQuery = useMatchMedia(QUERY[query] || query);\n const isMatching = not ? !matchQuery : matchQuery;\n return isMatching ? <>{children}</> : null;\n};\n\nexport type NamedMatchMediaProps = Omit<MatchMediaProps, 'query'>;\n\nexport const IsDesktop = (props: NamedMatchMediaProps) => <MatchMedia query={QueryKeys.DESKTOP} {...props} />;\nexport const IsDesktopXL = (props: NamedMatchMediaProps) => <MatchMedia query={QueryKeys.DESKTOP_XL} {...props} />;\nexport const IsMobile = (props: NamedMatchMediaProps) => <MatchMedia query={QueryKeys.MOBILE} {...props} />;\nexport const IsMobileDown = (props: NamedMatchMediaProps) => <MatchMedia query={QueryKeys.MOBILE_DOWN} {...props} />;\nexport const IsMobileUp = (props: NamedMatchMediaProps) => <MatchMedia query={QueryKeys.MOBILE_UP} {...props} />;\nexport const IsTablet = (props: NamedMatchMediaProps) => <MatchMedia query={QueryKeys.TABLET} {...props} />;\nexport const IsTabletDown = (props: NamedMatchMediaProps) => <MatchMedia query={QueryKeys.TABLET_DOWN} {...props} />;\nexport const IsTabletUp = (props: NamedMatchMediaProps) => <MatchMedia query={QueryKeys.TABLET_UP} {...props} />;\n"],"mappings":";;;;;;;AAqBA;AACA;AAEA;AAAiD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAS1C,IAAMA,aAAa,GAAG,SAAhBA,aAAa,CAAIC,KAAY,EAAK;EAC7C,IAAMC,UAAU,GAAG,IAAAC,eAAO,EAAC;IAAA,OAAMC,MAAM,CAACF,UAAU,YAAKD,KAAK,OAAI;EAAA,GAAE,CAACA,KAAK,CAAC,CAAC;EAE1E,gBAAoC,IAAAI,gBAAQ,EAACH,UAAU,CAACI,OAAO,CAAC;IAAA;IAAzDC,UAAU;IAAEC,aAAa;EAEhC,IAAMC,cAAc,GAAG,SAAjBA,cAAc,CAAIC,KAA0B,EAAK;IACrDF,aAAa,CAACE,KAAK,CAACJ,OAAO,CAAC;EAC9B,CAAC;EAED,IAAAK,iBAAS,EAAC,YAAM;IACdT,UAAU,CAACU,gBAAgB,CAAC,QAAQ,EAAEH,cAAc,CAAC;IACrD,OAAO;MAAA,OAAMP,UAAU,CAACW,mBAAmB,CAAC,QAAQ,EAAEJ,cAAc,CAAC;IAAA;EACvE,CAAC,EAAE,CAACP,UAAU,CAAC,CAAC;EAEhB,OAAOK,UAAU;AACnB,CAAC;AAAC;AAEK,IAAMO,UAAqC,GAAG,SAAxCA,UAAqC,OAA+B;EAAA,IAA1Bb,KAAK,QAALA,KAAK;IAAEc,QAAQ,QAARA,QAAQ;IAAEC,GAAG,QAAHA,GAAG;EACzE,IAAMC,UAAU,GAAGjB,aAAa,CAACkB,mBAAK,CAACjB,KAAK,CAAC,IAAIA,KAAK,CAAC;EACvD,IAAMM,UAAU,GAAGS,GAAG,GAAG,CAACC,UAAU,GAAGA,UAAU;EACjD,OAAOV,UAAU,GAAG,mDAAGQ,QAAQ,CAAI,GAAG,IAAI;AAC5C,CAAC;AAAC;AAIK,IAAMI,SAAS,GAAG,SAAZA,SAAS,CAAIC,KAA2B;EAAA,OAAK,gBAAC,UAAU;IAAC,KAAK,EAAEC,uBAAS,CAACC;EAAQ,GAAKF,KAAK,EAAI;AAAA;AAAC;AACvG,IAAMG,WAAW,GAAG,SAAdA,WAAW,CAAIH,KAA2B;EAAA,OAAK,gBAAC,UAAU;IAAC,KAAK,EAAEC,uBAAS,CAACG;EAAW,GAAKJ,KAAK,EAAI;AAAA;AAAC;AAC5G,IAAMK,QAAQ,GAAG,SAAXA,QAAQ,CAAIL,KAA2B;EAAA,OAAK,gBAAC,UAAU;IAAC,KAAK,EAAEC,uBAAS,CAACK;EAAO,GAAKN,KAAK,EAAI;AAAA;AAAC;AACrG,IAAMO,YAAY,GAAG,SAAfA,YAAY,CAAIP,KAA2B;EAAA,OAAK,gBAAC,UAAU;IAAC,KAAK,EAAEC,uBAAS,CAACO;EAAY,GAAKR,KAAK,EAAI;AAAA;AAAC;AAC9G,IAAMS,UAAU,GAAG,SAAbA,UAAU,CAAIT,KAA2B;EAAA,OAAK,gBAAC,UAAU;IAAC,KAAK,EAAEC,uBAAS,CAACS;EAAU,GAAKV,KAAK,EAAI;AAAA;AAAC;AAC1G,IAAMW,QAAQ,GAAG,SAAXA,QAAQ,CAAIX,KAA2B;EAAA,OAAK,gBAAC,UAAU;IAAC,KAAK,EAAEC,uBAAS,CAACW;EAAO,GAAKZ,KAAK,EAAI;AAAA;AAAC;AACrG,IAAMa,YAAY,GAAG,SAAfA,YAAY,CAAIb,KAA2B;EAAA,OAAK,gBAAC,UAAU;IAAC,KAAK,EAAEC,uBAAS,CAACa;EAAY,GAAKd,KAAK,EAAI;AAAA;AAAC;AAC9G,IAAMe,UAAU,GAAG,SAAbA,UAAU,CAAIf,KAA2B;EAAA,OAAK,gBAAC,UAAU;IAAC,KAAK,EAAEC,uBAAS,CAACe;EAAU,GAAKhB,KAAK,EAAI;AAAA;AAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Spacer.d.js","names":[],"sources":["Spacer.d.ts"],"sourcesContent":["import React from 'react';\nexport interface SpacerProps<T = HTMLDivElement> extends React.HTMLProps<T> {\n size?: number;\n vertical?: boolean;\n}\nexport declare function Spacer({ size, vertical }: SpacerProps): React.ReactNode;\n"],"mappings":""}
|
package/src/Layout/Spacer.js
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports.Spacer = Spacer;
|
|
9
|
-
|
|
10
7
|
var _react = require("@emotion/react");
|
|
11
|
-
|
|
12
8
|
var _react2 = _interopRequireDefault(require("react"));
|
|
13
|
-
|
|
9
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
14
10
|
/*
|
|
15
11
|
* Wire
|
|
16
12
|
* Copyright (C) 2018 Wire Swiss GmbH
|
|
@@ -31,11 +27,12 @@ var _react2 = _interopRequireDefault(require("react"));
|
|
|
31
27
|
*/
|
|
32
28
|
|
|
33
29
|
/** @jsx jsx */
|
|
30
|
+
|
|
34
31
|
function Spacer(_ref) {
|
|
35
32
|
var _ref$size = _ref.size,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
size = _ref$size === void 0 ? 8 : _ref$size,
|
|
34
|
+
_ref$vertical = _ref.vertical,
|
|
35
|
+
vertical = _ref$vertical === void 0 ? false : _ref$vertical;
|
|
39
36
|
return (0, _react.jsx)("div", {
|
|
40
37
|
style: vertical ? {
|
|
41
38
|
display: 'inline-block',
|
package/src/Layout/Spacer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"Spacer.js","names":["Spacer","size","vertical","display","width","height"],"sources":["Spacer.tsx"],"sourcesContent":["/*\n * Wire\n * Copyright (C) 2018 Wire Swiss GmbH\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU General Public License as published by\n * the Free Software Foundation, either version 3 of the License, or\n * (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program. If not, see http://www.gnu.org/licenses/.\n *\n */\n\n/** @jsx jsx */\nimport {jsx} from '@emotion/react';\nimport React from 'react';\n\nexport interface SpacerProps<T = HTMLDivElement> extends React.HTMLProps<T> {\n size?: number;\n vertical?: boolean;\n}\n\nexport function Spacer({size = 8, vertical = false}: SpacerProps): React.ReactNode {\n return <div style={vertical ? {display: 'inline-block', width: size} : {height: size}} />;\n}\n"],"mappings":";;;;;;AAoBA;AACA;AAA0B;AArB1B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;;AASO,SAASA,MAAM,OAA6D;EAAA,qBAA3DC,IAAI;IAAJA,IAAI,0BAAG,CAAC;IAAA,qBAAEC,QAAQ;IAARA,QAAQ,8BAAG,KAAK;EAChD,OAAO;IAAK,KAAK,EAAEA,QAAQ,GAAG;MAACC,OAAO,EAAE,cAAc;MAAEC,KAAK,EAAEH;IAAI,CAAC,GAAG;MAACI,MAAM,EAAEJ;IAAI;EAAE,EAAG;AAC3F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"StyledApp.d.js","names":[],"sources":["StyledApp.d.ts"],"sourcesContent":["/** @jsx jsx */\nimport React from 'react';\nimport { THEME_ID, Theme } from './Theme';\ndeclare type StyledAppContainerProps = {\n themeId: THEME_ID;\n theme?: never;\n} | {\n theme: Theme;\n themeId?: never;\n};\ndeclare type BackgroundColorProps = {\n backgroundColor?: string;\n};\nexport declare type StyledAppProps = React.HTMLProps<HTMLDivElement> & StyledAppContainerProps & BackgroundColorProps;\nexport declare const StyledApp: React.FC<StyledAppProps>;\nexport {};\n"],"mappings":""}
|