@os-team/profile 1.1.12 → 1.1.14
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/cjs/components/profile/ProfileButton.js +4 -6
- package/dist/cjs/components/profile/ProfileButton.js.map +1 -1
- package/dist/cjs/components/profile/ProfileConfigContext.js +5 -7
- package/dist/cjs/components/profile/ProfileConfigContext.js.map +1 -1
- package/dist/cjs/components/profile/ProfileContext.js +5 -7
- package/dist/cjs/components/profile/ProfileContext.js.map +1 -1
- package/dist/cjs/components/profile/ProfileDrawer.js +10 -16
- package/dist/cjs/components/profile/ProfileDrawer.js.map +1 -1
- package/dist/cjs/components/profile/ProfileDrawerContent.js +80 -110
- package/dist/cjs/components/profile/ProfileDrawerContent.js.map +1 -1
- package/dist/cjs/components/profile/ProfileNavigationItem.js +10 -11
- package/dist/cjs/components/profile/ProfileNavigationItem.js.map +1 -1
- package/dist/cjs/components/profile/ProfileUpdateNameModal.js +53 -48
- package/dist/cjs/components/profile/ProfileUpdateNameModal.js.map +1 -1
- package/dist/cjs/components/profile/ProfileUpdatePasswordModal.js +53 -45
- package/dist/cjs/components/profile/ProfileUpdatePasswordModal.js.map +1 -1
- package/dist/cjs/components/profile/ProtectedWrapper.js +27 -27
- package/dist/cjs/components/profile/ProtectedWrapper.js.map +1 -1
- package/dist/cjs/components/profile/UserAvatar.js +16 -15
- package/dist/cjs/components/profile/UserAvatar.js.map +1 -1
- package/dist/cjs/components/profile/UserAvatarAddon.js +13 -23
- package/dist/cjs/components/profile/UserAvatarAddon.js.map +1 -1
- package/dist/cjs/components/profile/__generated__/ProfileDrawerContentSignOutMutation.graphql.js +2 -3
- package/dist/cjs/components/profile/__generated__/ProfileDrawerContentSignOutMutation.graphql.js.map +1 -1
- package/dist/cjs/components/profile/__generated__/ProfileDrawerContentUpdateAvatarMutation.graphql.js +2 -3
- package/dist/cjs/components/profile/__generated__/ProfileDrawerContentUpdateAvatarMutation.graphql.js.map +1 -1
- package/dist/cjs/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.js +2 -3
- package/dist/cjs/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.js.map +1 -1
- package/dist/cjs/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.js +1 -2
- package/dist/cjs/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.js.map +1 -1
- package/dist/cjs/components/profile/__generated__/ProtectedWrapperQuery.graphql.js +2 -3
- package/dist/cjs/components/profile/__generated__/ProtectedWrapperQuery.graphql.js.map +1 -1
- package/dist/cjs/components/session/SessionDrawer.js +11 -15
- package/dist/cjs/components/session/SessionDrawer.js.map +1 -1
- package/dist/cjs/components/session/SessionDrawerContent.js +13 -14
- package/dist/cjs/components/session/SessionDrawerContent.js.map +1 -1
- package/dist/cjs/components/session/SessionList.js +31 -55
- package/dist/cjs/components/session/SessionList.js.map +1 -1
- package/dist/cjs/components/session/SessionListItem.js +59 -106
- package/dist/cjs/components/session/SessionListItem.js.map +1 -1
- package/dist/cjs/components/session/SessionListSkeleton.js +8 -9
- package/dist/cjs/components/session/SessionListSkeleton.js.map +1 -1
- package/dist/cjs/components/session/__generated__/SessionDrawerContentQuery.graphql.js +2 -2
- package/dist/cjs/components/session/__generated__/SessionDrawerContentQuery.graphql.js.map +1 -1
- package/dist/cjs/components/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.js +2 -3
- package/dist/cjs/components/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.js.map +1 -1
- package/dist/cjs/components/session/__generated__/SessionListItemDestroySessionMutation.graphql.js +1 -2
- package/dist/cjs/components/session/__generated__/SessionListItemDestroySessionMutation.graphql.js.map +1 -1
- package/dist/cjs/components/session/__generated__/SessionListItem_session.graphql.js +2 -2
- package/dist/cjs/components/session/__generated__/SessionListItem_session.graphql.js.map +1 -1
- package/dist/cjs/components/session/__generated__/SessionListRefetchQuery.graphql.js +2 -2
- package/dist/cjs/components/session/__generated__/SessionListRefetchQuery.graphql.js.map +1 -1
- package/dist/cjs/components/session/__generated__/SessionList_sessions.graphql.js +1 -1
- package/dist/cjs/components/session/__generated__/SessionList_sessions.graphql.js.map +1 -1
- package/dist/cjs/components/session/formatDate.js +6 -6
- package/dist/cjs/components/session/formatDate.js.map +1 -1
- package/dist/cjs/components/session/getLastSeen.js +6 -6
- package/dist/cjs/components/session/getLastSeen.js.map +1 -1
- package/dist/cjs/components/shared/ButtonUpdate.js +4 -3
- package/dist/cjs/components/shared/ButtonUpdate.js.map +1 -1
- package/dist/cjs/components/shared/ErrorResult.js +8 -5
- package/dist/cjs/components/shared/ErrorResult.js.map +1 -1
- package/dist/cjs/components/shared/FormError.js +5 -4
- package/dist/cjs/components/shared/FormError.js.map +1 -1
- package/dist/cjs/components/shared/MainLoader.js +2 -6
- package/dist/cjs/components/shared/MainLoader.js.map +1 -1
- package/dist/cjs/components/shared/icons/AndroidIcon.js +5 -7
- package/dist/cjs/components/shared/icons/AndroidIcon.js.map +1 -1
- package/dist/cjs/components/shared/icons/AppleIcon.js +5 -7
- package/dist/cjs/components/shared/icons/AppleIcon.js.map +1 -1
- package/dist/cjs/components/shared/icons/BrowserIcon.js +5 -7
- package/dist/cjs/components/shared/icons/BrowserIcon.js.map +1 -1
- package/dist/cjs/components/shared/icons/ProfileIcon.js +5 -7
- package/dist/cjs/components/shared/icons/ProfileIcon.js.map +1 -1
- package/dist/cjs/components/shared/icons/UnknownDeviceIcon.js +5 -7
- package/dist/cjs/components/shared/icons/UnknownDeviceIcon.js.map +1 -1
- package/dist/cjs/index.js +16 -17
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/utils/getErrorMessage.js +13 -13
- package/dist/cjs/utils/getErrorMessage.js.map +1 -1
- package/dist/cjs/utils/getUserFullName.js +7 -5
- package/dist/cjs/utils/getUserFullName.js.map +1 -1
- package/dist/cjs/utils/handleFormErrors.js +11 -16
- package/dist/cjs/utils/handleFormErrors.js.map +1 -1
- package/dist/esm/components/profile/ProfileDrawerContent.js +16 -16
- package/dist/esm/components/profile/ProfileDrawerContent.js.map +1 -1
- package/dist/esm/components/profile/ProfileUpdateNameModal.js +25 -15
- package/dist/esm/components/profile/ProfileUpdateNameModal.js.map +1 -1
- package/dist/esm/components/profile/ProfileUpdatePasswordModal.js +31 -19
- package/dist/esm/components/profile/ProfileUpdatePasswordModal.js.map +1 -1
- package/dist/esm/components/profile/__generated__/ProfileDrawerContentSignOutMutation.graphql.js +1 -2
- package/dist/esm/components/profile/__generated__/ProfileDrawerContentSignOutMutation.graphql.js.map +1 -1
- package/dist/esm/components/profile/__generated__/ProfileDrawerContentUpdateAvatarMutation.graphql.js +1 -2
- package/dist/esm/components/profile/__generated__/ProfileDrawerContentUpdateAvatarMutation.graphql.js.map +1 -1
- package/dist/esm/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.js +1 -2
- package/dist/esm/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.js.map +1 -1
- package/dist/esm/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.js +0 -1
- package/dist/esm/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.js.map +1 -1
- package/dist/esm/components/profile/__generated__/ProtectedWrapperQuery.graphql.js +1 -2
- package/dist/esm/components/profile/__generated__/ProtectedWrapperQuery.graphql.js.map +1 -1
- package/dist/esm/components/session/SessionDrawerContent.js.map +1 -1
- package/dist/esm/components/session/SessionListItem.js +1 -1
- package/dist/esm/components/session/SessionListItem.js.map +1 -1
- package/dist/esm/components/session/__generated__/SessionDrawerContentQuery.graphql.js +1 -1
- package/dist/esm/components/session/__generated__/SessionDrawerContentQuery.graphql.js.map +1 -1
- package/dist/esm/components/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.js +1 -2
- package/dist/esm/components/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.js.map +1 -1
- package/dist/esm/components/session/__generated__/SessionListItemDestroySessionMutation.graphql.js +0 -1
- package/dist/esm/components/session/__generated__/SessionListItemDestroySessionMutation.graphql.js.map +1 -1
- package/dist/esm/components/session/__generated__/SessionListItem_session.graphql.js +1 -1
- package/dist/esm/components/session/__generated__/SessionListItem_session.graphql.js.map +1 -1
- package/dist/esm/components/session/__generated__/SessionListRefetchQuery.graphql.js +1 -1
- package/dist/esm/components/session/__generated__/SessionListRefetchQuery.graphql.js.map +1 -1
- package/dist/types/components/profile/ProfileButton.d.ts.map +1 -0
- package/dist/types/components/profile/ProfileConfigContext.d.ts.map +1 -0
- package/dist/types/components/profile/ProfileContext.d.ts.map +1 -0
- package/dist/types/components/profile/ProfileDrawer.d.ts.map +1 -0
- package/dist/types/components/profile/ProfileDrawerContent.d.ts.map +1 -0
- package/dist/types/components/profile/ProfileNavigationItem.d.ts.map +1 -0
- package/dist/types/{src/lib/components → components}/profile/ProfileUpdateNameModal.d.ts +1 -1
- package/dist/types/components/profile/ProfileUpdateNameModal.d.ts.map +1 -0
- package/dist/types/{src/lib/components → components}/profile/ProfileUpdatePasswordModal.d.ts +1 -1
- package/dist/types/components/profile/ProfileUpdatePasswordModal.d.ts.map +1 -0
- package/dist/types/components/profile/ProtectedWrapper.d.ts.map +1 -0
- package/dist/types/components/profile/UserAvatar.d.ts.map +1 -0
- package/dist/types/components/profile/UserAvatarAddon.d.ts.map +1 -0
- package/dist/types/{src/lib/components → components}/profile/__generated__/ProfileDrawerContentSignOutMutation.graphql.d.ts +1 -1
- package/dist/types/components/profile/__generated__/ProfileDrawerContentSignOutMutation.graphql.d.ts.map +1 -0
- package/dist/types/{src/lib/components → components}/profile/__generated__/ProfileDrawerContentUpdateAvatarMutation.graphql.d.ts +2 -2
- package/dist/types/components/profile/__generated__/ProfileDrawerContentUpdateAvatarMutation.graphql.d.ts.map +1 -0
- package/dist/types/{src/lib/components → components}/profile/__generated__/ProfileUpdateNameModalMutation.graphql.d.ts +4 -4
- package/dist/types/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.d.ts.map +1 -0
- package/dist/types/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.d.ts.map +1 -0
- package/dist/types/{src/lib/components → components}/profile/__generated__/ProtectedWrapperQuery.graphql.d.ts +4 -4
- package/dist/types/components/profile/__generated__/ProtectedWrapperQuery.graphql.d.ts.map +1 -0
- package/dist/types/components/session/SessionDrawer.d.ts.map +1 -0
- package/dist/types/components/session/SessionDrawerContent.d.ts.map +1 -0
- package/dist/types/{src/lib/components → components}/session/SessionList.d.ts +2 -2
- package/dist/types/components/session/SessionList.d.ts.map +1 -0
- package/dist/types/{src/lib/components → components}/session/SessionListItem.d.ts +4 -4
- package/dist/types/components/session/SessionListItem.d.ts.map +1 -0
- package/dist/types/components/session/SessionListSkeleton.d.ts.map +1 -0
- package/dist/types/{src/lib/components → components}/session/__generated__/SessionDrawerContentQuery.graphql.d.ts +1 -1
- package/dist/types/components/session/__generated__/SessionDrawerContentQuery.graphql.d.ts.map +1 -0
- package/dist/types/{src/lib/components → components}/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.d.ts +1 -1
- package/dist/types/components/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.d.ts.map +1 -0
- package/dist/types/components/session/__generated__/SessionListItemDestroySessionMutation.graphql.d.ts.map +1 -0
- package/dist/types/components/session/__generated__/SessionListItem_session.graphql.d.ts +27 -0
- package/dist/types/components/session/__generated__/SessionListItem_session.graphql.d.ts.map +1 -0
- package/dist/types/{src/lib/components → components}/session/__generated__/SessionListRefetchQuery.graphql.d.ts +1 -1
- package/dist/types/components/session/__generated__/SessionListRefetchQuery.graphql.d.ts.map +1 -0
- package/dist/types/components/session/__generated__/SessionList_sessions.graphql.d.ts.map +1 -0
- package/dist/types/components/session/formatDate.d.ts.map +1 -0
- package/dist/types/components/session/getLastSeen.d.ts.map +1 -0
- package/dist/types/components/shared/ButtonUpdate.d.ts.map +1 -0
- package/dist/types/components/shared/ErrorResult.d.ts.map +1 -0
- package/dist/types/components/shared/FormError.d.ts.map +1 -0
- package/dist/types/components/shared/MainLoader.d.ts.map +1 -0
- package/dist/types/components/shared/icons/AndroidIcon.d.ts.map +1 -0
- package/dist/types/components/shared/icons/AppleIcon.d.ts.map +1 -0
- package/dist/types/components/shared/icons/BrowserIcon.d.ts.map +1 -0
- package/dist/types/components/shared/icons/ProfileIcon.d.ts.map +1 -0
- package/dist/types/components/shared/icons/UnknownDeviceIcon.d.ts.map +1 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/utils/getErrorMessage.d.ts.map +1 -0
- package/dist/types/utils/getUserFullName.d.ts.map +1 -0
- package/dist/types/utils/handleFormErrors.d.ts.map +1 -0
- package/package.json +41 -41
- package/dist/types/src/lib/components/profile/ProfileButton.d.ts.map +0 -1
- package/dist/types/src/lib/components/profile/ProfileConfigContext.d.ts.map +0 -1
- package/dist/types/src/lib/components/profile/ProfileContext.d.ts.map +0 -1
- package/dist/types/src/lib/components/profile/ProfileDrawer.d.ts.map +0 -1
- package/dist/types/src/lib/components/profile/ProfileDrawerContent.d.ts.map +0 -1
- package/dist/types/src/lib/components/profile/ProfileNavigationItem.d.ts.map +0 -1
- package/dist/types/src/lib/components/profile/ProfileUpdateNameModal.d.ts.map +0 -1
- package/dist/types/src/lib/components/profile/ProfileUpdatePasswordModal.d.ts.map +0 -1
- package/dist/types/src/lib/components/profile/ProtectedWrapper.d.ts.map +0 -1
- package/dist/types/src/lib/components/profile/UserAvatar.d.ts.map +0 -1
- package/dist/types/src/lib/components/profile/UserAvatarAddon.d.ts.map +0 -1
- package/dist/types/src/lib/components/profile/__generated__/ProfileDrawerContentSignOutMutation.graphql.d.ts.map +0 -1
- package/dist/types/src/lib/components/profile/__generated__/ProfileDrawerContentUpdateAvatarMutation.graphql.d.ts.map +0 -1
- package/dist/types/src/lib/components/profile/__generated__/ProfileUpdateNameModalMutation.graphql.d.ts.map +0 -1
- package/dist/types/src/lib/components/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.d.ts.map +0 -1
- package/dist/types/src/lib/components/profile/__generated__/ProtectedWrapperQuery.graphql.d.ts.map +0 -1
- package/dist/types/src/lib/components/session/SessionDrawer.d.ts.map +0 -1
- package/dist/types/src/lib/components/session/SessionDrawerContent.d.ts.map +0 -1
- package/dist/types/src/lib/components/session/SessionList.d.ts.map +0 -1
- package/dist/types/src/lib/components/session/SessionListItem.d.ts.map +0 -1
- package/dist/types/src/lib/components/session/SessionListSkeleton.d.ts.map +0 -1
- package/dist/types/src/lib/components/session/__generated__/SessionDrawerContentQuery.graphql.d.ts.map +0 -1
- package/dist/types/src/lib/components/session/__generated__/SessionListDestroyAllOtherSessionsMutation.graphql.d.ts.map +0 -1
- package/dist/types/src/lib/components/session/__generated__/SessionListItemDestroySessionMutation.graphql.d.ts.map +0 -1
- package/dist/types/src/lib/components/session/__generated__/SessionListItem_session.graphql.d.ts +0 -27
- package/dist/types/src/lib/components/session/__generated__/SessionListItem_session.graphql.d.ts.map +0 -1
- package/dist/types/src/lib/components/session/__generated__/SessionListRefetchQuery.graphql.d.ts.map +0 -1
- package/dist/types/src/lib/components/session/__generated__/SessionList_sessions.graphql.d.ts.map +0 -1
- package/dist/types/src/lib/components/session/formatDate.d.ts.map +0 -1
- package/dist/types/src/lib/components/session/getLastSeen.d.ts.map +0 -1
- package/dist/types/src/lib/components/shared/ButtonUpdate.d.ts.map +0 -1
- package/dist/types/src/lib/components/shared/ErrorResult.d.ts.map +0 -1
- package/dist/types/src/lib/components/shared/FormError.d.ts.map +0 -1
- package/dist/types/src/lib/components/shared/MainLoader.d.ts.map +0 -1
- package/dist/types/src/lib/components/shared/icons/AndroidIcon.d.ts.map +0 -1
- package/dist/types/src/lib/components/shared/icons/AppleIcon.d.ts.map +0 -1
- package/dist/types/src/lib/components/shared/icons/BrowserIcon.d.ts.map +0 -1
- package/dist/types/src/lib/components/shared/icons/ProfileIcon.d.ts.map +0 -1
- package/dist/types/src/lib/components/shared/icons/UnknownDeviceIcon.d.ts.map +0 -1
- package/dist/types/src/lib/index.d.ts.map +0 -1
- package/dist/types/src/lib/utils/getErrorMessage.d.ts.map +0 -1
- package/dist/types/src/lib/utils/getUserFullName.d.ts.map +0 -1
- package/dist/types/src/lib/utils/handleFormErrors.d.ts.map +0 -1
- /package/dist/types/{src/lib/components → components}/profile/ProfileButton.d.ts +0 -0
- /package/dist/types/{src/lib/components → components}/profile/ProfileConfigContext.d.ts +0 -0
- /package/dist/types/{src/lib/components → components}/profile/ProfileContext.d.ts +0 -0
- /package/dist/types/{src/lib/components → components}/profile/ProfileDrawer.d.ts +0 -0
- /package/dist/types/{src/lib/components → components}/profile/ProfileDrawerContent.d.ts +0 -0
- /package/dist/types/{src/lib/components → components}/profile/ProfileNavigationItem.d.ts +0 -0
- /package/dist/types/{src/lib/components → components}/profile/ProtectedWrapper.d.ts +0 -0
- /package/dist/types/{src/lib/components → components}/profile/UserAvatar.d.ts +0 -0
- /package/dist/types/{src/lib/components → components}/profile/UserAvatarAddon.d.ts +0 -0
- /package/dist/types/{src/lib/components → components}/profile/__generated__/ProfileUpdatePasswordModalMutation.graphql.d.ts +0 -0
- /package/dist/types/{src/lib/components → components}/session/SessionDrawer.d.ts +0 -0
- /package/dist/types/{src/lib/components → components}/session/SessionDrawerContent.d.ts +0 -0
- /package/dist/types/{src/lib/components → components}/session/SessionListSkeleton.d.ts +0 -0
- /package/dist/types/{src/lib/components → components}/session/__generated__/SessionListItemDestroySessionMutation.graphql.d.ts +0 -0
- /package/dist/types/{src/lib/components → components}/session/__generated__/SessionList_sessions.graphql.d.ts +0 -0
- /package/dist/types/{src/lib/components → components}/session/formatDate.d.ts +0 -0
- /package/dist/types/{src/lib/components → components}/session/getLastSeen.d.ts +0 -0
- /package/dist/types/{src/lib/components → components}/shared/ButtonUpdate.d.ts +0 -0
- /package/dist/types/{src/lib/components → components}/shared/ErrorResult.d.ts +0 -0
- /package/dist/types/{src/lib/components → components}/shared/FormError.d.ts +0 -0
- /package/dist/types/{src/lib/components → components}/shared/MainLoader.d.ts +0 -0
- /package/dist/types/{src/lib/components → components}/shared/icons/AndroidIcon.d.ts +0 -0
- /package/dist/types/{src/lib/components → components}/shared/icons/AppleIcon.d.ts +0 -0
- /package/dist/types/{src/lib/components → components}/shared/icons/BrowserIcon.d.ts +0 -0
- /package/dist/types/{src/lib/components → components}/shared/icons/ProfileIcon.d.ts +0 -0
- /package/dist/types/{src/lib/components → components}/shared/icons/UnknownDeviceIcon.d.ts +0 -0
- /package/dist/types/{src/lib/index.d.ts → index.d.ts} +0 -0
- /package/dist/types/{src/lib/utils → utils}/getErrorMessage.d.ts +0 -0
- /package/dist/types/{src/lib/utils → utils}/getUserFullName.d.ts +0 -0
- /package/dist/types/{src/lib/utils → utils}/handleFormErrors.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AndroidIcon.js","names":["_react","_interopRequireDefault","require","_icons","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","AndroidIcon","React","forwardRef","props","ref","createElement","Icon","d","displayName","_default","exports"],"sources":["../../../../../src/lib/components/shared/icons/AndroidIcon.tsx"],"sourcesContent":["import React from 'react';\nimport { Icon, IconProps } from '@os-design/icons';\n\nconst AndroidIcon = React.forwardRef<SVGSVGElement, IconProps>((props, ref) => (\n <Icon {...props} ref={ref}>\n <path d='M270.1 741.7c0 23.4 19.1 42.5 42.6 42.5h48.7v120.4c0 30.5 24.5 55.4 54.6 55.4c30.2 0 54.6-24.8 54.6-55.4V784.1h85v120.4c0 30.5 24.5 55.4 54.6 55.4c30.2 0 54.6-24.8 54.6-55.4V784.1h48.7c23.5 0 42.6-19.1 42.6-42.5V346.4h-486v395.3zm357.1-600.1l44.9-65c2.6-3.8 2-8.9-1.5-11.4c-3.5-2.4-8.5-1.2-11.1 2.6l-46.6 67.6c-30.7-12.1-64.9-18.8-100.8-18.8c-35.9 0-70.1 6.7-100.8 18.8l-46.6-67.5c-2.6-3.8-7.6-5.1-11.1-2.6c-3.5 2.4-4.1 7.4-1.5 11.4l44.9 65c-71.4 33.2-121.4 96.1-127.8 169.6h486c-6.6-73.6-56.7-136.5-128-169.7zM409.5 244.1a26.9 26.9 0 1 1 26.9-26.9a26.97 26.97 0 0 1-26.9 26.9zm208.4 0a26.9 26.9 0 1 1 26.9-26.9a26.97 26.97 0 0 1-26.9 26.9zm223.4 100.7c-30.2 0-54.6 24.8-54.6 55.4v216.4c0 30.5 24.5 55.4 54.6 55.4c30.2 0 54.6-24.8 54.6-55.4V400.1c.1-30.6-24.3-55.3-54.6-55.3zm-658.6 0c-30.2 0-54.6 24.8-54.6 55.4v216.4c0 30.5 24.5 55.4 54.6 55.4c30.2 0 54.6-24.8 54.6-55.4V400.1c0-30.6-24.5-55.3-54.6-55.3z' />\n </Icon>\n));\n\nAndroidIcon.displayName = 'AndroidIcon';\n\nexport default AndroidIcon;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAmD,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,SAAA,IAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,GAAAF,SAAA,CAAAD,CAAA,YAAAI,GAAA,IAAAD,MAAA,QAAAP,MAAA,CAAAS,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAJ,MAAA,EAAAC,GAAA,KAAAL,MAAA,CAAAK,GAAA,IAAAD,MAAA,CAAAC,GAAA,gBAAAL,MAAA,YAAAJ,QAAA,CAAAa,KAAA,OAAAP,SAAA;AAEnD,
|
|
1
|
+
{"version":3,"file":"AndroidIcon.js","names":["_react","_interopRequireDefault","require","_icons","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","AndroidIcon","React","forwardRef","props","ref","createElement","Icon","d","displayName","_default","exports"],"sources":["../../../../../src/lib/components/shared/icons/AndroidIcon.tsx"],"sourcesContent":["import React from 'react';\nimport { Icon, IconProps } from '@os-design/icons';\n\nconst AndroidIcon = React.forwardRef<SVGSVGElement, IconProps>((props, ref) => (\n <Icon {...props} ref={ref}>\n <path d='M270.1 741.7c0 23.4 19.1 42.5 42.6 42.5h48.7v120.4c0 30.5 24.5 55.4 54.6 55.4c30.2 0 54.6-24.8 54.6-55.4V784.1h85v120.4c0 30.5 24.5 55.4 54.6 55.4c30.2 0 54.6-24.8 54.6-55.4V784.1h48.7c23.5 0 42.6-19.1 42.6-42.5V346.4h-486v395.3zm357.1-600.1l44.9-65c2.6-3.8 2-8.9-1.5-11.4c-3.5-2.4-8.5-1.2-11.1 2.6l-46.6 67.6c-30.7-12.1-64.9-18.8-100.8-18.8c-35.9 0-70.1 6.7-100.8 18.8l-46.6-67.5c-2.6-3.8-7.6-5.1-11.1-2.6c-3.5 2.4-4.1 7.4-1.5 11.4l44.9 65c-71.4 33.2-121.4 96.1-127.8 169.6h486c-6.6-73.6-56.7-136.5-128-169.7zM409.5 244.1a26.9 26.9 0 1 1 26.9-26.9a26.97 26.97 0 0 1-26.9 26.9zm208.4 0a26.9 26.9 0 1 1 26.9-26.9a26.97 26.97 0 0 1-26.9 26.9zm223.4 100.7c-30.2 0-54.6 24.8-54.6 55.4v216.4c0 30.5 24.5 55.4 54.6 55.4c30.2 0 54.6-24.8 54.6-55.4V400.1c.1-30.6-24.3-55.3-54.6-55.3zm-658.6 0c-30.2 0-54.6 24.8-54.6 55.4v216.4c0 30.5 24.5 55.4 54.6 55.4c30.2 0 54.6-24.8 54.6-55.4V400.1c0-30.6-24.5-55.3-54.6-55.3z' />\n </Icon>\n));\n\nAndroidIcon.displayName = 'AndroidIcon';\n\nexport default AndroidIcon;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAmD,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,SAAA,IAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,GAAAF,SAAA,CAAAD,CAAA,YAAAI,GAAA,IAAAD,MAAA,QAAAP,MAAA,CAAAS,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAJ,MAAA,EAAAC,GAAA,KAAAL,MAAA,CAAAK,GAAA,IAAAD,MAAA,CAAAC,GAAA,gBAAAL,MAAA,YAAAJ,QAAA,CAAAa,KAAA,OAAAP,SAAA;AAEnD,MAAMQ,WAAW,gBAAGC,cAAK,CAACC,UAAU,CAA2B,CAACC,KAAK,EAAEC,GAAG,kBACxEzB,MAAA,CAAAM,OAAA,CAAAoB,aAAA,CAACvB,MAAA,CAAAwB,IAAI,EAAApB,QAAA,KAAKiB,KAAK;EAAEC,GAAG,EAAEA;AAAI,iBACxBzB,MAAA,CAAAM,OAAA,CAAAoB,aAAA;EAAME,CAAC,EAAC;AAA44B,CAAE,CACl5B,CACP,CAAC;AAEFP,WAAW,CAACQ,WAAW,GAAG,aAAa;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAzB,OAAA,GAEzBe,WAAW"}
|
|
@@ -8,13 +8,11 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _icons = require("@os-design/icons");
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
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); }
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}));
|
|
17
|
-
});
|
|
11
|
+
const AppleIcon = /*#__PURE__*/_react.default.forwardRef((props, ref) => /*#__PURE__*/_react.default.createElement(_icons.Icon, _extends({}, props, {
|
|
12
|
+
ref: ref
|
|
13
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
14
|
+
d: "M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5c-34.9-50-87.7-77.5-157.3-82.8c-65.9-5.2-138 38.4-164.4 38.4c-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8c23.8 68.2 109.6 235.3 199.1 232.6c46.8-1.1 79.9-33.2 140.8-33.2c59.1 0 89.7 33.2 141.9 33.2c90.3-1.3 167.9-153.2 190.5-221.6c-121.1-57.1-114.6-167.2-114.6-170.7zm-105.1-305c50.7-60.2 46.1-115 44.6-134.7c-44.8 2.6-96.6 30.5-126.1 64.8c-32.5 36.8-51.6 82.3-47.5 133.6c48.4 3.7 92.6-21.2 129-63.7z"
|
|
15
|
+
})));
|
|
18
16
|
AppleIcon.displayName = 'AppleIcon';
|
|
19
17
|
var _default = exports.default = AppleIcon;
|
|
20
18
|
//# sourceMappingURL=AppleIcon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppleIcon.js","names":["_react","_interopRequireDefault","require","_icons","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","AppleIcon","React","forwardRef","props","ref","createElement","Icon","d","displayName","_default","exports"],"sources":["../../../../../src/lib/components/shared/icons/AppleIcon.tsx"],"sourcesContent":["import React from 'react';\nimport { Icon, IconProps } from '@os-design/icons';\n\nconst AppleIcon = React.forwardRef<SVGSVGElement, IconProps>((props, ref) => (\n <Icon {...props} ref={ref}>\n <path d='M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5c-34.9-50-87.7-77.5-157.3-82.8c-65.9-5.2-138 38.4-164.4 38.4c-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8c23.8 68.2 109.6 235.3 199.1 232.6c46.8-1.1 79.9-33.2 140.8-33.2c59.1 0 89.7 33.2 141.9 33.2c90.3-1.3 167.9-153.2 190.5-221.6c-121.1-57.1-114.6-167.2-114.6-170.7zm-105.1-305c50.7-60.2 46.1-115 44.6-134.7c-44.8 2.6-96.6 30.5-126.1 64.8c-32.5 36.8-51.6 82.3-47.5 133.6c48.4 3.7 92.6-21.2 129-63.7z' />\n </Icon>\n));\n\nAppleIcon.displayName = 'AppleIcon';\n\nexport default AppleIcon;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAmD,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,SAAA,IAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,GAAAF,SAAA,CAAAD,CAAA,YAAAI,GAAA,IAAAD,MAAA,QAAAP,MAAA,CAAAS,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAJ,MAAA,EAAAC,GAAA,KAAAL,MAAA,CAAAK,GAAA,IAAAD,MAAA,CAAAC,GAAA,gBAAAL,MAAA,YAAAJ,QAAA,CAAAa,KAAA,OAAAP,SAAA;AAEnD,
|
|
1
|
+
{"version":3,"file":"AppleIcon.js","names":["_react","_interopRequireDefault","require","_icons","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","AppleIcon","React","forwardRef","props","ref","createElement","Icon","d","displayName","_default","exports"],"sources":["../../../../../src/lib/components/shared/icons/AppleIcon.tsx"],"sourcesContent":["import React from 'react';\nimport { Icon, IconProps } from '@os-design/icons';\n\nconst AppleIcon = React.forwardRef<SVGSVGElement, IconProps>((props, ref) => (\n <Icon {...props} ref={ref}>\n <path d='M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5c-34.9-50-87.7-77.5-157.3-82.8c-65.9-5.2-138 38.4-164.4 38.4c-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8c23.8 68.2 109.6 235.3 199.1 232.6c46.8-1.1 79.9-33.2 140.8-33.2c59.1 0 89.7 33.2 141.9 33.2c90.3-1.3 167.9-153.2 190.5-221.6c-121.1-57.1-114.6-167.2-114.6-170.7zm-105.1-305c50.7-60.2 46.1-115 44.6-134.7c-44.8 2.6-96.6 30.5-126.1 64.8c-32.5 36.8-51.6 82.3-47.5 133.6c48.4 3.7 92.6-21.2 129-63.7z' />\n </Icon>\n));\n\nAppleIcon.displayName = 'AppleIcon';\n\nexport default AppleIcon;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAmD,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,SAAA,IAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,GAAAF,SAAA,CAAAD,CAAA,YAAAI,GAAA,IAAAD,MAAA,QAAAP,MAAA,CAAAS,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAJ,MAAA,EAAAC,GAAA,KAAAL,MAAA,CAAAK,GAAA,IAAAD,MAAA,CAAAC,GAAA,gBAAAL,MAAA,YAAAJ,QAAA,CAAAa,KAAA,OAAAP,SAAA;AAEnD,MAAMQ,SAAS,gBAAGC,cAAK,CAACC,UAAU,CAA2B,CAACC,KAAK,EAAEC,GAAG,kBACtEzB,MAAA,CAAAM,OAAA,CAAAoB,aAAA,CAACvB,MAAA,CAAAwB,IAAI,EAAApB,QAAA,KAAKiB,KAAK;EAAEC,GAAG,EAAEA;AAAI,iBACxBzB,MAAA,CAAAM,OAAA,CAAAoB,aAAA;EAAME,CAAC,EAAC;AAAse,CAAE,CAC5e,CACP,CAAC;AAEFP,SAAS,CAACQ,WAAW,GAAG,WAAW;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAzB,OAAA,GAErBe,SAAS"}
|
|
@@ -8,13 +8,11 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _icons = require("@os-design/icons");
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
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); }
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}));
|
|
17
|
-
});
|
|
11
|
+
const BrowserIcon = /*#__PURE__*/_react.default.forwardRef((props, ref) => /*#__PURE__*/_react.default.createElement(_icons.Icon, _extends({}, props, {
|
|
12
|
+
ref: ref
|
|
13
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
14
|
+
d: "M371.8 512c0 77.5 62.7 140.2 140.2 140.2S652.2 589.5 652.2 512S589.5 371.8 512 371.8S371.8 434.4 371.8 512zM900 362.4l-234.3 12.1c63.6 74.3 64.6 181.5 11.1 263.7l-188 289.2c78 4.2 158.4-12.9 231.2-55.2c180-104 253-322.1 180-509.8zM320.3 591.9L163.8 284.1A415.35 415.35 0 0 0 96 512c0 208 152.3 380.3 351.4 410.8l106.9-209.4c-96.6 18.2-189.9-34.8-234-121.5zm218.5-285.5l344.4 18.1C848 254.7 792.6 194 719.8 151.7C653.9 113.6 581.5 95.5 510.5 96c-122.5.5-242.2 55.2-322.1 154.5l128.2 196.9c32-91.9 124.8-146.7 222.2-141z"
|
|
15
|
+
})));
|
|
18
16
|
BrowserIcon.displayName = 'BrowserIcon';
|
|
19
17
|
var _default = exports.default = BrowserIcon;
|
|
20
18
|
//# sourceMappingURL=BrowserIcon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrowserIcon.js","names":["_react","_interopRequireDefault","require","_icons","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","BrowserIcon","React","forwardRef","props","ref","createElement","Icon","d","displayName","_default","exports"],"sources":["../../../../../src/lib/components/shared/icons/BrowserIcon.tsx"],"sourcesContent":["import React from 'react';\nimport { Icon, IconProps } from '@os-design/icons';\n\nconst BrowserIcon = React.forwardRef<SVGSVGElement, IconProps>((props, ref) => (\n <Icon {...props} ref={ref}>\n <path d='M371.8 512c0 77.5 62.7 140.2 140.2 140.2S652.2 589.5 652.2 512S589.5 371.8 512 371.8S371.8 434.4 371.8 512zM900 362.4l-234.3 12.1c63.6 74.3 64.6 181.5 11.1 263.7l-188 289.2c78 4.2 158.4-12.9 231.2-55.2c180-104 253-322.1 180-509.8zM320.3 591.9L163.8 284.1A415.35 415.35 0 0 0 96 512c0 208 152.3 380.3 351.4 410.8l106.9-209.4c-96.6 18.2-189.9-34.8-234-121.5zm218.5-285.5l344.4 18.1C848 254.7 792.6 194 719.8 151.7C653.9 113.6 581.5 95.5 510.5 96c-122.5.5-242.2 55.2-322.1 154.5l128.2 196.9c32-91.9 124.8-146.7 222.2-141z' />\n </Icon>\n));\n\nBrowserIcon.displayName = 'BrowserIcon';\n\nexport default BrowserIcon;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAmD,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,SAAA,IAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,GAAAF,SAAA,CAAAD,CAAA,YAAAI,GAAA,IAAAD,MAAA,QAAAP,MAAA,CAAAS,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAJ,MAAA,EAAAC,GAAA,KAAAL,MAAA,CAAAK,GAAA,IAAAD,MAAA,CAAAC,GAAA,gBAAAL,MAAA,YAAAJ,QAAA,CAAAa,KAAA,OAAAP,SAAA;AAEnD,
|
|
1
|
+
{"version":3,"file":"BrowserIcon.js","names":["_react","_interopRequireDefault","require","_icons","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","BrowserIcon","React","forwardRef","props","ref","createElement","Icon","d","displayName","_default","exports"],"sources":["../../../../../src/lib/components/shared/icons/BrowserIcon.tsx"],"sourcesContent":["import React from 'react';\nimport { Icon, IconProps } from '@os-design/icons';\n\nconst BrowserIcon = React.forwardRef<SVGSVGElement, IconProps>((props, ref) => (\n <Icon {...props} ref={ref}>\n <path d='M371.8 512c0 77.5 62.7 140.2 140.2 140.2S652.2 589.5 652.2 512S589.5 371.8 512 371.8S371.8 434.4 371.8 512zM900 362.4l-234.3 12.1c63.6 74.3 64.6 181.5 11.1 263.7l-188 289.2c78 4.2 158.4-12.9 231.2-55.2c180-104 253-322.1 180-509.8zM320.3 591.9L163.8 284.1A415.35 415.35 0 0 0 96 512c0 208 152.3 380.3 351.4 410.8l106.9-209.4c-96.6 18.2-189.9-34.8-234-121.5zm218.5-285.5l344.4 18.1C848 254.7 792.6 194 719.8 151.7C653.9 113.6 581.5 95.5 510.5 96c-122.5.5-242.2 55.2-322.1 154.5l128.2 196.9c32-91.9 124.8-146.7 222.2-141z' />\n </Icon>\n));\n\nBrowserIcon.displayName = 'BrowserIcon';\n\nexport default BrowserIcon;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAmD,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,SAAA,IAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,GAAAF,SAAA,CAAAD,CAAA,YAAAI,GAAA,IAAAD,MAAA,QAAAP,MAAA,CAAAS,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAJ,MAAA,EAAAC,GAAA,KAAAL,MAAA,CAAAK,GAAA,IAAAD,MAAA,CAAAC,GAAA,gBAAAL,MAAA,YAAAJ,QAAA,CAAAa,KAAA,OAAAP,SAAA;AAEnD,MAAMQ,WAAW,gBAAGC,cAAK,CAACC,UAAU,CAA2B,CAACC,KAAK,EAAEC,GAAG,kBACxEzB,MAAA,CAAAM,OAAA,CAAAoB,aAAA,CAACvB,MAAA,CAAAwB,IAAI,EAAApB,QAAA,KAAKiB,KAAK;EAAEC,GAAG,EAAEA;AAAI,iBACxBzB,MAAA,CAAAM,OAAA,CAAAoB,aAAA;EAAME,CAAC,EAAC;AAAwgB,CAAE,CAC9gB,CACP,CAAC;AAEFP,WAAW,CAACQ,WAAW,GAAG,aAAa;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAzB,OAAA,GAEzBe,WAAW"}
|
|
@@ -8,13 +8,11 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _icons = require("@os-design/icons");
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
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); }
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}));
|
|
17
|
-
});
|
|
11
|
+
const ProfileIcon = /*#__PURE__*/_react.default.forwardRef((props, ref) => /*#__PURE__*/_react.default.createElement(_icons.Icon, _extends({}, props, {
|
|
12
|
+
ref: ref
|
|
13
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
14
|
+
d: "M373 411c-28.5 0-51.7 23.3-51.7 52s23.2 52 51.7 52s51.7-23.3 51.7-52s-23.2-52-51.7-52zm555-251H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zM608 420c0-4.4 1-8 2.3-8h123.4c1.3 0 2.3 3.6 2.3 8v48c0 4.4-1 8-2.3 8H610.3c-1.3 0-2.3-3.6-2.3-8v-48zm-86 253h-43.9c-4.2 0-7.6-3.3-7.9-7.5c-3.8-50.5-46-90.5-97.2-90.5s-93.4 40-97.2 90.5c-.3 4.2-3.7 7.5-7.9 7.5H224a8 8 0 0 1-8-8.4c2.8-53.3 32-99.7 74.6-126.1a111.8 111.8 0 0 1-29.1-75.5c0-61.9 49.9-112 111.4-112s111.4 50.1 111.4 112c0 29.1-11 55.5-29.1 75.5c42.7 26.5 71.8 72.8 74.6 126.1c.4 4.6-3.2 8.4-7.8 8.4zm278.9-53H615.1c-3.9 0-7.1-3.6-7.1-8v-48c0-4.4 3.2-8 7.1-8h185.7c3.9 0 7.1 3.6 7.1 8v48h.1c0 4.4-3.2 8-7.1 8z"
|
|
15
|
+
})));
|
|
18
16
|
ProfileIcon.displayName = 'ProfileIcon';
|
|
19
17
|
var _default = exports.default = ProfileIcon;
|
|
20
18
|
//# sourceMappingURL=ProfileIcon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProfileIcon.js","names":["_react","_interopRequireDefault","require","_icons","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","ProfileIcon","React","forwardRef","props","ref","createElement","Icon","d","displayName","_default","exports"],"sources":["../../../../../src/lib/components/shared/icons/ProfileIcon.tsx"],"sourcesContent":["import React from 'react';\nimport { Icon, IconProps } from '@os-design/icons';\n\nconst ProfileIcon = React.forwardRef<SVGSVGElement, IconProps>((props, ref) => (\n <Icon {...props} ref={ref}>\n <path d='M373 411c-28.5 0-51.7 23.3-51.7 52s23.2 52 51.7 52s51.7-23.3 51.7-52s-23.2-52-51.7-52zm555-251H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zM608 420c0-4.4 1-8 2.3-8h123.4c1.3 0 2.3 3.6 2.3 8v48c0 4.4-1 8-2.3 8H610.3c-1.3 0-2.3-3.6-2.3-8v-48zm-86 253h-43.9c-4.2 0-7.6-3.3-7.9-7.5c-3.8-50.5-46-90.5-97.2-90.5s-93.4 40-97.2 90.5c-.3 4.2-3.7 7.5-7.9 7.5H224a8 8 0 0 1-8-8.4c2.8-53.3 32-99.7 74.6-126.1a111.8 111.8 0 0 1-29.1-75.5c0-61.9 49.9-112 111.4-112s111.4 50.1 111.4 112c0 29.1-11 55.5-29.1 75.5c42.7 26.5 71.8 72.8 74.6 126.1c.4 4.6-3.2 8.4-7.8 8.4zm278.9-53H615.1c-3.9 0-7.1-3.6-7.1-8v-48c0-4.4 3.2-8 7.1-8h185.7c3.9 0 7.1 3.6 7.1 8v48h.1c0 4.4-3.2 8-7.1 8z' />\n </Icon>\n));\n\nProfileIcon.displayName = 'ProfileIcon';\n\nexport default ProfileIcon;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAmD,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,SAAA,IAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,GAAAF,SAAA,CAAAD,CAAA,YAAAI,GAAA,IAAAD,MAAA,QAAAP,MAAA,CAAAS,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAJ,MAAA,EAAAC,GAAA,KAAAL,MAAA,CAAAK,GAAA,IAAAD,MAAA,CAAAC,GAAA,gBAAAL,MAAA,YAAAJ,QAAA,CAAAa,KAAA,OAAAP,SAAA;AAEnD,
|
|
1
|
+
{"version":3,"file":"ProfileIcon.js","names":["_react","_interopRequireDefault","require","_icons","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","ProfileIcon","React","forwardRef","props","ref","createElement","Icon","d","displayName","_default","exports"],"sources":["../../../../../src/lib/components/shared/icons/ProfileIcon.tsx"],"sourcesContent":["import React from 'react';\nimport { Icon, IconProps } from '@os-design/icons';\n\nconst ProfileIcon = React.forwardRef<SVGSVGElement, IconProps>((props, ref) => (\n <Icon {...props} ref={ref}>\n <path d='M373 411c-28.5 0-51.7 23.3-51.7 52s23.2 52 51.7 52s51.7-23.3 51.7-52s-23.2-52-51.7-52zm555-251H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zM608 420c0-4.4 1-8 2.3-8h123.4c1.3 0 2.3 3.6 2.3 8v48c0 4.4-1 8-2.3 8H610.3c-1.3 0-2.3-3.6-2.3-8v-48zm-86 253h-43.9c-4.2 0-7.6-3.3-7.9-7.5c-3.8-50.5-46-90.5-97.2-90.5s-93.4 40-97.2 90.5c-.3 4.2-3.7 7.5-7.9 7.5H224a8 8 0 0 1-8-8.4c2.8-53.3 32-99.7 74.6-126.1a111.8 111.8 0 0 1-29.1-75.5c0-61.9 49.9-112 111.4-112s111.4 50.1 111.4 112c0 29.1-11 55.5-29.1 75.5c42.7 26.5 71.8 72.8 74.6 126.1c.4 4.6-3.2 8.4-7.8 8.4zm278.9-53H615.1c-3.9 0-7.1-3.6-7.1-8v-48c0-4.4 3.2-8 7.1-8h185.7c3.9 0 7.1 3.6 7.1 8v48h.1c0 4.4-3.2 8-7.1 8z' />\n </Icon>\n));\n\nProfileIcon.displayName = 'ProfileIcon';\n\nexport default ProfileIcon;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAmD,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,SAAA,IAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,GAAAF,SAAA,CAAAD,CAAA,YAAAI,GAAA,IAAAD,MAAA,QAAAP,MAAA,CAAAS,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAJ,MAAA,EAAAC,GAAA,KAAAL,MAAA,CAAAK,GAAA,IAAAD,MAAA,CAAAC,GAAA,gBAAAL,MAAA,YAAAJ,QAAA,CAAAa,KAAA,OAAAP,SAAA;AAEnD,MAAMQ,WAAW,gBAAGC,cAAK,CAACC,UAAU,CAA2B,CAACC,KAAK,EAAEC,GAAG,kBACxEzB,MAAA,CAAAM,OAAA,CAAAoB,aAAA,CAACvB,MAAA,CAAAwB,IAAI,EAAApB,QAAA,KAAKiB,KAAK;EAAEC,GAAG,EAAEA;AAAI,iBACxBzB,MAAA,CAAAM,OAAA,CAAAoB,aAAA;EAAME,CAAC,EAAC;AAA8sB,CAAE,CACptB,CACP,CAAC;AAEFP,WAAW,CAACQ,WAAW,GAAG,aAAa;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAzB,OAAA,GAEzBe,WAAW"}
|
|
@@ -8,13 +8,11 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
8
8
|
var _icons = require("@os-design/icons");
|
|
9
9
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
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); }
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}));
|
|
17
|
-
});
|
|
11
|
+
const UnknownDeviceIcon = /*#__PURE__*/_react.default.forwardRef((props, ref) => /*#__PURE__*/_react.default.createElement(_icons.Icon, _extends({}, props, {
|
|
12
|
+
ref: ref
|
|
13
|
+
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
14
|
+
d: "M764 280.9c-14-30.6-33.9-58.1-59.3-81.6C653.1 151.4 584.6 125 512 125s-141.1 26.4-192.7 74.2c-25.4 23.6-45.3 51-59.3 81.7c-14.6 32-22 65.9-22 100.9v27c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-27c0-99.5 88.6-180.4 197.6-180.4s197.6 80.9 197.6 180.4c0 40.8-14.5 79.2-42 111.2c-27.2 31.7-65.6 54.4-108.1 64c-24.3 5.5-46.2 19.2-61.7 38.8a110.85 110.85 0 0 0-23.9 68.6v31.4c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-31.4c0-15.7 10.9-29.5 26-32.9c58.4-13.2 111.4-44.7 149.3-88.7c19.1-22.3 34-47.1 44.3-74c10.7-27.9 16.1-57.2 16.1-87c0-35-7.4-69-22-100.9zM512 787c-30.9 0-56 25.1-56 56s25.1 56 56 56s56-25.1 56-56s-25.1-56-56-56z"
|
|
15
|
+
})));
|
|
18
16
|
UnknownDeviceIcon.displayName = 'UnknownDeviceIcon';
|
|
19
17
|
var _default = exports.default = UnknownDeviceIcon;
|
|
20
18
|
//# sourceMappingURL=UnknownDeviceIcon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnknownDeviceIcon.js","names":["_react","_interopRequireDefault","require","_icons","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","UnknownDeviceIcon","React","forwardRef","props","ref","createElement","Icon","d","displayName","_default","exports"],"sources":["../../../../../src/lib/components/shared/icons/UnknownDeviceIcon.tsx"],"sourcesContent":["import React from 'react';\nimport { Icon, IconProps } from '@os-design/icons';\n\nconst UnknownDeviceIcon = React.forwardRef<SVGSVGElement, IconProps>(\n (props, ref) => (\n <Icon {...props} ref={ref}>\n <path d='M764 280.9c-14-30.6-33.9-58.1-59.3-81.6C653.1 151.4 584.6 125 512 125s-141.1 26.4-192.7 74.2c-25.4 23.6-45.3 51-59.3 81.7c-14.6 32-22 65.9-22 100.9v27c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-27c0-99.5 88.6-180.4 197.6-180.4s197.6 80.9 197.6 180.4c0 40.8-14.5 79.2-42 111.2c-27.2 31.7-65.6 54.4-108.1 64c-24.3 5.5-46.2 19.2-61.7 38.8a110.85 110.85 0 0 0-23.9 68.6v31.4c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-31.4c0-15.7 10.9-29.5 26-32.9c58.4-13.2 111.4-44.7 149.3-88.7c19.1-22.3 34-47.1 44.3-74c10.7-27.9 16.1-57.2 16.1-87c0-35-7.4-69-22-100.9zM512 787c-30.9 0-56 25.1-56 56s25.1 56 56 56s56-25.1 56-56s-25.1-56-56-56z' />\n </Icon>\n )\n);\n\nUnknownDeviceIcon.displayName = 'UnknownDeviceIcon';\n\nexport default UnknownDeviceIcon;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAmD,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,SAAA,IAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,GAAAF,SAAA,CAAAD,CAAA,YAAAI,GAAA,IAAAD,MAAA,QAAAP,MAAA,CAAAS,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAJ,MAAA,EAAAC,GAAA,KAAAL,MAAA,CAAAK,GAAA,IAAAD,MAAA,CAAAC,GAAA,gBAAAL,MAAA,YAAAJ,QAAA,CAAAa,KAAA,OAAAP,SAAA;AAEnD,
|
|
1
|
+
{"version":3,"file":"UnknownDeviceIcon.js","names":["_react","_interopRequireDefault","require","_icons","obj","__esModule","default","_extends","Object","assign","bind","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","UnknownDeviceIcon","React","forwardRef","props","ref","createElement","Icon","d","displayName","_default","exports"],"sources":["../../../../../src/lib/components/shared/icons/UnknownDeviceIcon.tsx"],"sourcesContent":["import React from 'react';\nimport { Icon, IconProps } from '@os-design/icons';\n\nconst UnknownDeviceIcon = React.forwardRef<SVGSVGElement, IconProps>(\n (props, ref) => (\n <Icon {...props} ref={ref}>\n <path d='M764 280.9c-14-30.6-33.9-58.1-59.3-81.6C653.1 151.4 584.6 125 512 125s-141.1 26.4-192.7 74.2c-25.4 23.6-45.3 51-59.3 81.7c-14.6 32-22 65.9-22 100.9v27c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-27c0-99.5 88.6-180.4 197.6-180.4s197.6 80.9 197.6 180.4c0 40.8-14.5 79.2-42 111.2c-27.2 31.7-65.6 54.4-108.1 64c-24.3 5.5-46.2 19.2-61.7 38.8a110.85 110.85 0 0 0-23.9 68.6v31.4c0 6.2 5 11.2 11.2 11.2h54c6.2 0 11.2-5 11.2-11.2v-31.4c0-15.7 10.9-29.5 26-32.9c58.4-13.2 111.4-44.7 149.3-88.7c19.1-22.3 34-47.1 44.3-74c10.7-27.9 16.1-57.2 16.1-87c0-35-7.4-69-22-100.9zM512 787c-30.9 0-56 25.1-56 56s25.1 56 56 56s56-25.1 56-56s-25.1-56-56-56z' />\n </Icon>\n )\n);\n\nUnknownDeviceIcon.displayName = 'UnknownDeviceIcon';\n\nexport default UnknownDeviceIcon;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAmD,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,SAAA,IAAAA,QAAA,GAAAC,MAAA,CAAAC,MAAA,GAAAD,MAAA,CAAAC,MAAA,CAAAC,IAAA,eAAAC,MAAA,aAAAC,CAAA,MAAAA,CAAA,GAAAC,SAAA,CAAAC,MAAA,EAAAF,CAAA,UAAAG,MAAA,GAAAF,SAAA,CAAAD,CAAA,YAAAI,GAAA,IAAAD,MAAA,QAAAP,MAAA,CAAAS,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAJ,MAAA,EAAAC,GAAA,KAAAL,MAAA,CAAAK,GAAA,IAAAD,MAAA,CAAAC,GAAA,gBAAAL,MAAA,YAAAJ,QAAA,CAAAa,KAAA,OAAAP,SAAA;AAEnD,MAAMQ,iBAAiB,gBAAGC,cAAK,CAACC,UAAU,CACxC,CAACC,KAAK,EAAEC,GAAG,kBACTzB,MAAA,CAAAM,OAAA,CAAAoB,aAAA,CAACvB,MAAA,CAAAwB,IAAI,EAAApB,QAAA,KAAKiB,KAAK;EAAEC,GAAG,EAAEA;AAAI,iBACxBzB,MAAA,CAAAM,OAAA,CAAAoB,aAAA;EAAME,CAAC,EAAC;AAAioB,CAAE,CACvoB,CAEV,CAAC;AAEDP,iBAAiB,CAACQ,WAAW,GAAG,mBAAmB;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAzB,OAAA,GAErCe,iBAAiB"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
@@ -16,49 +15,49 @@ var _exportNames = {
|
|
|
16
15
|
};
|
|
17
16
|
Object.defineProperty(exports, "ProfileButton", {
|
|
18
17
|
enumerable: true,
|
|
19
|
-
get: function
|
|
18
|
+
get: function () {
|
|
20
19
|
return _ProfileButton.default;
|
|
21
20
|
}
|
|
22
21
|
});
|
|
23
22
|
Object.defineProperty(exports, "ProfileDrawer", {
|
|
24
23
|
enumerable: true,
|
|
25
|
-
get: function
|
|
24
|
+
get: function () {
|
|
26
25
|
return _ProfileDrawer.default;
|
|
27
26
|
}
|
|
28
27
|
});
|
|
29
28
|
Object.defineProperty(exports, "ProfileNavigationItem", {
|
|
30
29
|
enumerable: true,
|
|
31
|
-
get: function
|
|
30
|
+
get: function () {
|
|
32
31
|
return _ProfileNavigationItem.default;
|
|
33
32
|
}
|
|
34
33
|
});
|
|
35
34
|
Object.defineProperty(exports, "ProtectedWrapper", {
|
|
36
35
|
enumerable: true,
|
|
37
|
-
get: function
|
|
36
|
+
get: function () {
|
|
38
37
|
return _ProtectedWrapper.default;
|
|
39
38
|
}
|
|
40
39
|
});
|
|
41
40
|
Object.defineProperty(exports, "SessionDrawer", {
|
|
42
41
|
enumerable: true,
|
|
43
|
-
get: function
|
|
42
|
+
get: function () {
|
|
44
43
|
return _SessionDrawer.default;
|
|
45
44
|
}
|
|
46
45
|
});
|
|
47
46
|
Object.defineProperty(exports, "UserAvatar", {
|
|
48
47
|
enumerable: true,
|
|
49
|
-
get: function
|
|
48
|
+
get: function () {
|
|
50
49
|
return _UserAvatar.default;
|
|
51
50
|
}
|
|
52
51
|
});
|
|
53
52
|
Object.defineProperty(exports, "UserAvatarAddon", {
|
|
54
53
|
enumerable: true,
|
|
55
|
-
get: function
|
|
54
|
+
get: function () {
|
|
56
55
|
return _UserAvatarAddon.default;
|
|
57
56
|
}
|
|
58
57
|
});
|
|
59
58
|
Object.defineProperty(exports, "getUserFullName", {
|
|
60
59
|
enumerable: true,
|
|
61
|
-
get: function
|
|
60
|
+
get: function () {
|
|
62
61
|
return _getUserFullName.default;
|
|
63
62
|
}
|
|
64
63
|
});
|
|
@@ -70,7 +69,7 @@ Object.keys(_ProfileDrawer).forEach(function (key) {
|
|
|
70
69
|
if (key in exports && exports[key] === _ProfileDrawer[key]) return;
|
|
71
70
|
Object.defineProperty(exports, key, {
|
|
72
71
|
enumerable: true,
|
|
73
|
-
get: function
|
|
72
|
+
get: function () {
|
|
74
73
|
return _ProfileDrawer[key];
|
|
75
74
|
}
|
|
76
75
|
});
|
|
@@ -82,7 +81,7 @@ Object.keys(_ProfileNavigationItem).forEach(function (key) {
|
|
|
82
81
|
if (key in exports && exports[key] === _ProfileNavigationItem[key]) return;
|
|
83
82
|
Object.defineProperty(exports, key, {
|
|
84
83
|
enumerable: true,
|
|
85
|
-
get: function
|
|
84
|
+
get: function () {
|
|
86
85
|
return _ProfileNavigationItem[key];
|
|
87
86
|
}
|
|
88
87
|
});
|
|
@@ -94,7 +93,7 @@ Object.keys(_ProtectedWrapper).forEach(function (key) {
|
|
|
94
93
|
if (key in exports && exports[key] === _ProtectedWrapper[key]) return;
|
|
95
94
|
Object.defineProperty(exports, key, {
|
|
96
95
|
enumerable: true,
|
|
97
|
-
get: function
|
|
96
|
+
get: function () {
|
|
98
97
|
return _ProtectedWrapper[key];
|
|
99
98
|
}
|
|
100
99
|
});
|
|
@@ -107,7 +106,7 @@ Object.keys(_UserAvatarAddon).forEach(function (key) {
|
|
|
107
106
|
if (key in exports && exports[key] === _UserAvatarAddon[key]) return;
|
|
108
107
|
Object.defineProperty(exports, key, {
|
|
109
108
|
enumerable: true,
|
|
110
|
-
get: function
|
|
109
|
+
get: function () {
|
|
111
110
|
return _UserAvatarAddon[key];
|
|
112
111
|
}
|
|
113
112
|
});
|
|
@@ -120,7 +119,7 @@ Object.keys(_getUserFullName).forEach(function (key) {
|
|
|
120
119
|
if (key in exports && exports[key] === _getUserFullName[key]) return;
|
|
121
120
|
Object.defineProperty(exports, key, {
|
|
122
121
|
enumerable: true,
|
|
123
|
-
get: function
|
|
122
|
+
get: function () {
|
|
124
123
|
return _getUserFullName[key];
|
|
125
124
|
}
|
|
126
125
|
});
|
|
@@ -132,12 +131,12 @@ Object.keys(_ProfileContext).forEach(function (key) {
|
|
|
132
131
|
if (key in exports && exports[key] === _ProfileContext[key]) return;
|
|
133
132
|
Object.defineProperty(exports, key, {
|
|
134
133
|
enumerable: true,
|
|
135
|
-
get: function
|
|
134
|
+
get: function () {
|
|
136
135
|
return _ProfileContext[key];
|
|
137
136
|
}
|
|
138
137
|
});
|
|
139
138
|
});
|
|
140
|
-
function _getRequireWildcardCache(
|
|
141
|
-
function _interopRequireWildcard(
|
|
139
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
140
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
142
141
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
143
142
|
//# sourceMappingURL=index.js.map
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_ProfileButton","_interopRequireDefault","require","_ProfileDrawer","_interopRequireWildcard","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_ProfileNavigationItem","_ProtectedWrapper","_UserAvatar","_UserAvatarAddon","_SessionDrawer","_getUserFullName","_ProfileContext","_getRequireWildcardCache","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_ProfileButton","_interopRequireDefault","require","_ProfileDrawer","_interopRequireWildcard","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_ProfileNavigationItem","_ProtectedWrapper","_UserAvatar","_UserAvatarAddon","_SessionDrawer","_getUserFullName","_ProfileContext","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","n","__proto__","a","getOwnPropertyDescriptor","u","i","set","obj"],"sources":["../../src/lib/index.ts"],"sourcesContent":["export { default as ProfileButton } from './components/profile/ProfileButton';\nexport { default as ProfileDrawer } from './components/profile/ProfileDrawer';\nexport { default as ProfileNavigationItem } from './components/profile/ProfileNavigationItem';\nexport { default as ProtectedWrapper } from './components/profile/ProtectedWrapper';\nexport { default as UserAvatar } from './components/profile/UserAvatar';\nexport { default as UserAvatarAddon } from './components/profile/UserAvatarAddon';\nexport { default as SessionDrawer } from './components/session/SessionDrawer';\nexport { default as getUserFullName } from './utils/getUserFullName';\n\nexport * from './components/profile/ProfileContext';\nexport * from './components/profile/ProfileDrawer';\nexport * from './components/profile/ProfileNavigationItem';\nexport * from './components/profile/ProtectedWrapper';\nexport * from './components/profile/UserAvatarAddon';\nexport * from './utils/getUserFullName';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,cAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAC,uBAAA,CAAAF,OAAA;AASAG,MAAA,CAAAC,IAAA,CAAAH,cAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAL,cAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC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GAAA"}
|
|
@@ -4,22 +4,22 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
8
7
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
9
8
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
var DEFAULT_MESSAGE = 'Error';
|
|
14
|
-
var getErrorMessage = function getErrorMessage(error) {
|
|
9
|
+
const isObject = value => typeof value === 'object' && !Array.isArray(value) && value !== null;
|
|
10
|
+
const DEFAULT_MESSAGE = 'Error';
|
|
11
|
+
const getErrorMessage = error => {
|
|
15
12
|
if (!isObject(error)) return DEFAULT_MESSAGE;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
const {
|
|
14
|
+
source
|
|
15
|
+
} = error;
|
|
16
|
+
let {
|
|
17
|
+
message = DEFAULT_MESSAGE
|
|
18
|
+
} = error;
|
|
19
19
|
if (!isObject(source) || !Array.isArray(source.errors) || source.errors.length === 0) {
|
|
20
20
|
return message;
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
const firstError = source.errors[0];
|
|
23
23
|
if (!isObject(firstError)) {
|
|
24
24
|
return message;
|
|
25
25
|
}
|
|
@@ -27,12 +27,12 @@ var getErrorMessage = function getErrorMessage(error) {
|
|
|
27
27
|
if (!isObject(firstError.extensions) || !isObject(firstError.extensions.constraints)) {
|
|
28
28
|
return message;
|
|
29
29
|
}
|
|
30
|
-
|
|
30
|
+
const constraintKeys = Object.keys(firstError.extensions.constraints);
|
|
31
31
|
if (constraintKeys.length === 0) {
|
|
32
32
|
return message;
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
const firstKey = constraintKeys[0];
|
|
35
|
+
const firstConstraint = firstError.extensions.constraints[firstKey];
|
|
36
36
|
if (!isObject(firstConstraint) || typeof firstConstraint.message !== 'string') {
|
|
37
37
|
return message;
|
|
38
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getErrorMessage.js","names":["isObject","value","
|
|
1
|
+
{"version":3,"file":"getErrorMessage.js","names":["isObject","value","Array","isArray","DEFAULT_MESSAGE","getErrorMessage","error","source","message","errors","length","firstError","extensions","constraints","constraintKeys","Object","keys","firstKey","firstConstraint","_default","exports","default"],"sources":["../../../src/lib/utils/getErrorMessage.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n\nconst isObject = (value: any) =>\n typeof value === 'object' && !Array.isArray(value) && value !== null;\n\nconst DEFAULT_MESSAGE = 'Error';\n\nconst getErrorMessage = (error: any) => {\n if (!isObject(error)) return DEFAULT_MESSAGE;\n\n const { source } = error;\n let { message = DEFAULT_MESSAGE } = error;\n if (\n !isObject(source) ||\n !Array.isArray(source.errors) ||\n source.errors.length === 0\n ) {\n return message;\n }\n\n const firstError = source.errors[0];\n if (!isObject(firstError)) {\n return message;\n }\n\n message = firstError.message || message;\n if (\n !isObject(firstError.extensions) ||\n !isObject(firstError.extensions.constraints)\n ) {\n return message;\n }\n\n const constraintKeys = Object.keys(firstError.extensions.constraints);\n if (constraintKeys.length === 0) {\n return message;\n }\n\n const firstKey = constraintKeys[0];\n const firstConstraint = firstError.extensions.constraints[firstKey];\n if (\n !isObject(firstConstraint) ||\n typeof firstConstraint.message !== 'string'\n ) {\n return message;\n }\n\n return firstConstraint.message;\n};\n\nexport default getErrorMessage;\n"],"mappings":";;;;;;AAAA;;AAEA,MAAMA,QAAQ,GAAIC,KAAU,IAC1B,OAAOA,KAAK,KAAK,QAAQ,IAAI,CAACC,KAAK,CAACC,OAAO,CAACF,KAAK,CAAC,IAAIA,KAAK,KAAK,IAAI;AAE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A,GAAAC,OAAA,CAAAC,OAAA,GAEahB,eAAe"}
|
|
@@ -4,11 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
const getUserFullName = _ref => {
|
|
8
|
+
let {
|
|
9
|
+
email,
|
|
10
|
+
firstName,
|
|
11
|
+
lastName
|
|
12
|
+
} = _ref;
|
|
13
|
+
const parts = [];
|
|
12
14
|
if (firstName) parts.push(firstName);
|
|
13
15
|
if (lastName) parts.push(lastName);
|
|
14
16
|
return parts.length > 0 ? parts.join(' ') : email;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getUserFullName.js","names":["getUserFullName","_ref","email","firstName","lastName","parts","push","length","join","_default","exports","default"],"sources":["../../../src/lib/utils/getUserFullName.ts"],"sourcesContent":["export interface User {\n email: string;\n firstName: string | null;\n lastName: string | null;\n}\n\nconst getUserFullName = ({ email, firstName, lastName }: User): string => {\n const parts: string[] = [];\n if (firstName) parts.push(firstName);\n if (lastName) parts.push(lastName);\n return parts.length > 0 ? parts.join(' ') : email;\n};\n\nexport default getUserFullName;\n"],"mappings":";;;;;;AAMA,
|
|
1
|
+
{"version":3,"file":"getUserFullName.js","names":["getUserFullName","_ref","email","firstName","lastName","parts","push","length","join","_default","exports","default"],"sources":["../../../src/lib/utils/getUserFullName.ts"],"sourcesContent":["export interface User {\n email: string;\n firstName: string | null;\n lastName: string | null;\n}\n\nconst getUserFullName = ({ email, firstName, lastName }: User): string => {\n const parts: string[] = [];\n if (firstName) parts.push(firstName);\n if (lastName) parts.push(lastName);\n return parts.length > 0 ? parts.join(' ') : email;\n};\n\nexport default getUserFullName;\n"],"mappings":";;;;;;AAMA,MAAMA,eAAe,GAAGC,IAAA,IAAkD;EAAA,IAAjD;IAAEC,KAAK;IAAEC,SAAS;IAAEC;EAAe,CAAC,GAAAH,IAAA;EAC3D,MAAMI,KAAe,GAAG,EAAE;EAC1B,IAAIF,SAAS,EAAEE,KAAK,CAACC,IAAI,CAACH,SAAS,CAAC;EACpC,IAAIC,QAAQ,EAAEC,KAAK,CAACC,IAAI,CAACF,QAAQ,CAAC;EAClC,OAAOC,KAAK,CAACE,MAAM,GAAG,CAAC,GAAGF,KAAK,CAACG,IAAI,CAAC,GAAG,CAAC,GAAGN,KAAK;AACnD,CAAC;AAAC,IAAAO,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEaX,eAAe"}
|
|
@@ -4,17 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.getErrorConstraints = exports.default = void 0;
|
|
7
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
|
-
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."); }
|
|
9
|
-
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); }
|
|
10
|
-
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; }
|
|
11
|
-
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
7
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
14
8
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
const NO_CONSTRAINTS = {};
|
|
10
|
+
const getErrorConstraints = error => {
|
|
11
|
+
const e = error;
|
|
18
12
|
if (!e.source || !Array.isArray(e.source.errors) || e.source.errors.length === 0 || !e.source.errors[0].extensions || !e.source.errors[0].extensions.code) {
|
|
19
13
|
return NO_CONSTRAINTS;
|
|
20
14
|
}
|
|
@@ -23,18 +17,19 @@ var getErrorConstraints = exports.getErrorConstraints = function getErrorConstra
|
|
|
23
17
|
}
|
|
24
18
|
return e.source.errors[0].extensions.constraints;
|
|
25
19
|
};
|
|
26
|
-
|
|
27
|
-
|
|
20
|
+
exports.getErrorConstraints = getErrorConstraints;
|
|
21
|
+
const handleFormErrors = (form, error) => {
|
|
22
|
+
const e = error;
|
|
28
23
|
if (!e.source || !Array.isArray(e.source.errors) || e.source.errors.length === 0 || !e.source.errors[0].extensions || !e.source.errors[0].extensions.code) {
|
|
29
24
|
form.errors.set('_error', e.message);
|
|
30
25
|
return;
|
|
31
26
|
}
|
|
32
27
|
if (e.source.errors[0].extensions.code === 'BAD_ARGUMENTS') {
|
|
33
|
-
|
|
34
|
-
Object.entries(constraints).forEach(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
28
|
+
const constraints = getErrorConstraints(error);
|
|
29
|
+
Object.entries(constraints).forEach(_ref => {
|
|
30
|
+
let [fieldName, {
|
|
31
|
+
message
|
|
32
|
+
}] = _ref;
|
|
38
33
|
form.errors.set(fieldName, message);
|
|
39
34
|
});
|
|
40
35
|
} else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handleFormErrors.js","names":["NO_CONSTRAINTS","getErrorConstraints","
|
|
1
|
+
{"version":3,"file":"handleFormErrors.js","names":["NO_CONSTRAINTS","getErrorConstraints","error","e","source","Array","isArray","errors","length","extensions","code","constraints","exports","handleFormErrors","form","set","message","Object","entries","forEach","_ref","fieldName","_default","default"],"sources":["../../../src/lib/utils/handleFormErrors.ts"],"sourcesContent":["import { Form } from '@os-design/form';\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\ninterface Constraint {\n name: string;\n message: string;\n}\n\nconst NO_CONSTRAINTS = {};\n\nexport const getErrorConstraints = (\n error: Error\n): Record<string, Constraint> => {\n const e = error as any;\n\n if (\n !e.source ||\n !Array.isArray(e.source.errors) ||\n e.source.errors.length === 0 ||\n !e.source.errors[0].extensions ||\n !e.source.errors[0].extensions.code\n ) {\n return NO_CONSTRAINTS;\n }\n if (e.source.errors[0].extensions.code !== 'BAD_ARGUMENTS') {\n return NO_CONSTRAINTS;\n }\n\n return e.source.errors[0].extensions.constraints;\n};\n\nconst handleFormErrors = (form: Form<any>, error: Error): void => {\n const e = error as any;\n\n if (\n !e.source ||\n !Array.isArray(e.source.errors) ||\n e.source.errors.length === 0 ||\n !e.source.errors[0].extensions ||\n !e.source.errors[0].extensions.code\n ) {\n form.errors.set('_error', e.message);\n return;\n }\n\n if (e.source.errors[0].extensions.code === 'BAD_ARGUMENTS') {\n const constraints = getErrorConstraints(error);\n Object.entries(constraints).forEach(([fieldName, { message }]) => {\n form.errors.set(fieldName, message);\n });\n } else {\n form.errors.set('_error', e.source.errors[0].message);\n }\n};\n\nexport default handleFormErrors;\n"],"mappings":";;;;;;AAEA;;AAOA,MAAMA,cAAc,GAAG,CAAC,CAAC;AAElB,MAAMC,mBAAmB,GAC9BC,KAAY,IACmB;EAC/B,MAAMC,CAAC,GAAGD,KAAY;EAEtB,IACE,CAACC,CAAC,CAACC,MAAM,IACT,CAACC,KAAK,CAACC,OAAO,CAACH,CAA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;IAC9Ce,MAAM,CAACC,OAAO,CAACP,WAAW,CAAC,CAACQ,OAAO,CAACC,IAAA,IAA8B;MAAA,IAA7B,CAACC,SAAS,EAAE;QAAEL;MAAQ,CAAC,CAAC,GAAAI,IAAA;MAC3DN,IAAI,CAACP,MAAM,CAACQ,GAAG,CAACM,SAAS,EAAEL,OAAO,CAAC;IACrC,CAAC,CAAC;EACJ,CAAC,MAAM;IACLF,IAAI,CAACP,MAAM,CAACQ,GAAG,CAAC,QAAQ,EAAEZ,CAAC,CAACC,MAAM,CAACG,MAAM,CAAC,CAAC,CAAC,CAACS,OAAO,CAAC;EACvD;AACF,CAAC;AAAC,IAAAM,QAAA,GAAAV,OAAA,CAAAW,OAAA,GAEaV,gBAAgB"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
var _ProfileDrawerContentUpdateAvatarMutation, _ProfileDrawerContentSignOutMutation;
|
|
2
|
-
import React, { useCallback, useMemo, useRef, useState } from 'react';
|
|
3
|
-
import { message, ThemeSwitcher } from '@os-design/core';
|
|
4
2
|
import styled from '@emotion/styled';
|
|
3
|
+
import { ThemeSwitcher, message } from '@os-design/core';
|
|
5
4
|
import { clr } from '@os-design/theming';
|
|
5
|
+
import React, { useCallback, useMemo, useRef, useState } from 'react';
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
7
7
|
import { useMutation } from 'react-relay/hooks';
|
|
8
|
-
import
|
|
9
|
-
import { useProfile } from './ProfileContext';
|
|
8
|
+
import getErrorMessage from '../../utils/getErrorMessage';
|
|
10
9
|
import ProfileButton from './ProfileButton';
|
|
10
|
+
import { useProfile } from './ProfileContext';
|
|
11
11
|
import ProfileUpdateNameModal from './ProfileUpdateNameModal';
|
|
12
12
|
import ProfileUpdatePasswordModal from './ProfileUpdatePasswordModal';
|
|
13
|
-
import
|
|
13
|
+
import UserAvatar from './UserAvatar';
|
|
14
14
|
const AvatarContainer = styled.div`
|
|
15
15
|
display: flex;
|
|
16
16
|
flex-direction: column;
|
|
@@ -43,12 +43,12 @@ const Footer = styled.div`
|
|
|
43
43
|
const HiddenInput = styled.input`
|
|
44
44
|
display: none;
|
|
45
45
|
`;
|
|
46
|
-
const
|
|
46
|
+
const query = _ProfileDrawerContentUpdateAvatarMutation !== void 0 ? _ProfileDrawerContentUpdateAvatarMutation : (_ProfileDrawerContentUpdateAvatarMutation = require("./__generated__/ProfileDrawerContentUpdateAvatarMutation.graphql"), _ProfileDrawerContentUpdateAvatarMutation.hash && _ProfileDrawerContentUpdateAvatarMutation.hash !== "cf72a6314772ed0d1f182b197c858505" && console.error("The definition of 'ProfileDrawerContentUpdateAvatarMutation' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _ProfileDrawerContentUpdateAvatarMutation);
|
|
47
47
|
const DeleteAvatarButton = () => {
|
|
48
48
|
const {
|
|
49
49
|
t
|
|
50
50
|
} = useTranslation(['profile']);
|
|
51
|
-
const [commit, loading] = useMutation(
|
|
51
|
+
const [commit, loading] = useMutation(query);
|
|
52
52
|
const handler = useCallback(() => {
|
|
53
53
|
commit({
|
|
54
54
|
variables: {
|
|
@@ -74,7 +74,7 @@ const UpdateAvatarButton = ({
|
|
|
74
74
|
t
|
|
75
75
|
} = useTranslation(['profile']);
|
|
76
76
|
const fileInputRef = useRef(null);
|
|
77
|
-
const [commit, loading] = useMutation(
|
|
77
|
+
const [commit, loading] = useMutation(query);
|
|
78
78
|
const handler = useCallback(e => {
|
|
79
79
|
const target = e.target;
|
|
80
80
|
if (!target) return;
|
|
@@ -116,24 +116,24 @@ const UpdateNameButton = ({
|
|
|
116
116
|
const {
|
|
117
117
|
t
|
|
118
118
|
} = useTranslation(['profile']);
|
|
119
|
-
const [
|
|
119
|
+
const [modalVisible, setModalVisible] = useState(false);
|
|
120
120
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ProfileButton, {
|
|
121
|
-
onClick: () =>
|
|
121
|
+
onClick: () => setModalVisible(true)
|
|
122
122
|
}, t(`profile:${hasName ? 'changeName' : 'setName'}`)), /*#__PURE__*/React.createElement(ProfileUpdateNameModal, {
|
|
123
|
-
|
|
124
|
-
onClose: () =>
|
|
123
|
+
visible: modalVisible,
|
|
124
|
+
onClose: () => setModalVisible(false)
|
|
125
125
|
}));
|
|
126
126
|
};
|
|
127
127
|
const ChangePasswordButton = () => {
|
|
128
128
|
const {
|
|
129
129
|
t
|
|
130
130
|
} = useTranslation(['profile']);
|
|
131
|
-
const [
|
|
131
|
+
const [modalVisible, setModalVisible] = useState(false);
|
|
132
132
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ProfileButton, {
|
|
133
|
-
onClick: () =>
|
|
133
|
+
onClick: () => setModalVisible(true)
|
|
134
134
|
}, t('profile:changePassword')), /*#__PURE__*/React.createElement(ProfileUpdatePasswordModal, {
|
|
135
|
-
|
|
136
|
-
onClose: () =>
|
|
135
|
+
visible: modalVisible,
|
|
136
|
+
onClose: () => setModalVisible(false)
|
|
137
137
|
}));
|
|
138
138
|
};
|
|
139
139
|
const SignOutButton = () => {
|