decentraland-ui2 2.5.3 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (97) hide show
  1. package/dist/components/Navbar/Credits.styled.d.ts +9 -0
  2. package/dist/components/Navbar/Credits.styled.js +58 -0
  3. package/dist/components/Navbar/Credits.styled.js.map +1 -0
  4. package/dist/components/Navbar/MobileMenu.d.ts +8 -0
  5. package/dist/components/Navbar/MobileMenu.js +20 -0
  6. package/dist/components/Navbar/MobileMenu.js.map +1 -0
  7. package/dist/components/Navbar/MobileMenu.styled.d.ts +35 -0
  8. package/dist/components/Navbar/MobileMenu.styled.js +116 -0
  9. package/dist/components/Navbar/MobileMenu.styled.js.map +1 -0
  10. package/dist/components/Navbar/NavLinks.d.ts +11 -0
  11. package/dist/components/Navbar/NavLinks.js +19 -0
  12. package/dist/components/Navbar/NavLinks.js.map +1 -0
  13. package/dist/components/Navbar/NavLinks.styled.d.ts +31 -0
  14. package/dist/components/Navbar/NavLinks.styled.js +130 -0
  15. package/dist/components/Navbar/NavLinks.styled.js.map +1 -0
  16. package/dist/components/Navbar/Navbar.d.ts +2 -3
  17. package/dist/components/Navbar/Navbar.defaults.d.ts +29 -6
  18. package/dist/components/Navbar/Navbar.defaults.js +101 -231
  19. package/dist/components/Navbar/Navbar.defaults.js.map +1 -1
  20. package/dist/components/Navbar/Navbar.js +109 -34
  21. package/dist/components/Navbar/Navbar.js.map +1 -1
  22. package/dist/components/Navbar/Navbar.stories.d.ts +9 -8
  23. package/dist/components/Navbar/Navbar.stories.js +93 -60
  24. package/dist/components/Navbar/Navbar.stories.js.map +1 -1
  25. package/dist/components/Navbar/Navbar.styled.d.ts +53 -56
  26. package/dist/components/Navbar/Navbar.styled.js +168 -101
  27. package/dist/components/Navbar/Navbar.styled.js.map +1 -1
  28. package/dist/components/Navbar/Navbar.types.d.ts +72 -56
  29. package/dist/components/Navbar/Navbar.types.js +1 -10
  30. package/dist/components/Navbar/Navbar.types.js.map +1 -1
  31. package/dist/components/Navbar/NotificationBell.styled.d.ts +61 -0
  32. package/dist/components/Navbar/NotificationBell.styled.js +189 -0
  33. package/dist/components/Navbar/NotificationBell.styled.js.map +1 -0
  34. package/dist/components/Navbar/UserCardPanel.d.ts +27 -0
  35. package/dist/components/Navbar/UserCardPanel.js +106 -0
  36. package/dist/components/Navbar/UserCardPanel.js.map +1 -0
  37. package/dist/components/Navbar/UserCardPanel.styled.d.ts +133 -0
  38. package/dist/components/Navbar/UserCardPanel.styled.js +392 -0
  39. package/dist/components/Navbar/UserCardPanel.styled.js.map +1 -0
  40. package/dist/components/Navbar/formatBalance.d.ts +2 -0
  41. package/dist/components/Navbar/formatBalance.js +5 -0
  42. package/dist/components/Navbar/formatBalance.js.map +1 -0
  43. package/dist/components/Navbar/icons.d.ts +24 -0
  44. package/dist/components/Navbar/icons.js +67 -0
  45. package/dist/components/Navbar/icons.js.map +1 -0
  46. package/dist/components/Navbar/index.d.ts +3 -2
  47. package/dist/components/Navbar/index.js +2 -2
  48. package/dist/components/Navbar/index.js.map +1 -1
  49. package/package.json +2 -2
  50. package/dist/components/Navbar/MainMenu/MainMenu.d.ts +0 -2
  51. package/dist/components/Navbar/MainMenu/MainMenu.js +0 -26
  52. package/dist/components/Navbar/MainMenu/MainMenu.js.map +0 -1
  53. package/dist/components/Navbar/MainMenu/MainMenu.styled.d.ts +0 -9
  54. package/dist/components/Navbar/MainMenu/MainMenu.styled.js +0 -39
  55. package/dist/components/Navbar/MainMenu/MainMenu.styled.js.map +0 -1
  56. package/dist/components/Navbar/MainMenu/MainMenu.types.d.ts +0 -8
  57. package/dist/components/Navbar/MainMenu/MainMenu.types.js +0 -2
  58. package/dist/components/Navbar/MainMenu/MainMenu.types.js.map +0 -1
  59. package/dist/components/Navbar/MenuItem/MenuItem.d.ts +0 -3
  60. package/dist/components/Navbar/MenuItem/MenuItem.js +0 -15
  61. package/dist/components/Navbar/MenuItem/MenuItem.js.map +0 -1
  62. package/dist/components/Navbar/MenuItem/MenuItem.styled.d.ts +0 -18
  63. package/dist/components/Navbar/MenuItem/MenuItem.styled.js +0 -59
  64. package/dist/components/Navbar/MenuItem/MenuItem.styled.js.map +0 -1
  65. package/dist/components/Navbar/MenuItem/MenuItem.types.d.ts +0 -12
  66. package/dist/components/Navbar/MenuItem/MenuItem.types.js +0 -2
  67. package/dist/components/Navbar/MenuItem/MenuItem.types.js.map +0 -1
  68. package/dist/components/Navbar/SubMenu/SubMenu.d.ts +0 -2
  69. package/dist/components/Navbar/SubMenu/SubMenu.js +0 -14
  70. package/dist/components/Navbar/SubMenu/SubMenu.js.map +0 -1
  71. package/dist/components/Navbar/SubMenu/SubMenu.styled.d.ts +0 -27
  72. package/dist/components/Navbar/SubMenu/SubMenu.styled.js +0 -165
  73. package/dist/components/Navbar/SubMenu/SubMenu.styled.js.map +0 -1
  74. package/dist/components/Navbar/SubMenu/SubMenu.types.d.ts +0 -13
  75. package/dist/components/Navbar/SubMenu/SubMenu.types.js +0 -2
  76. package/dist/components/Navbar/SubMenu/SubMenu.types.js.map +0 -1
  77. package/dist/components/Navbar/SubMenuColumn/SubMenuColumn.d.ts +0 -3
  78. package/dist/components/Navbar/SubMenuColumn/SubMenuColumn.js +0 -9
  79. package/dist/components/Navbar/SubMenuColumn/SubMenuColumn.js.map +0 -1
  80. package/dist/components/Navbar/SubMenuColumn/SubMenuColumn.styled.d.ts +0 -11
  81. package/dist/components/Navbar/SubMenuColumn/SubMenuColumn.styled.js +0 -33
  82. package/dist/components/Navbar/SubMenuColumn/SubMenuColumn.styled.js.map +0 -1
  83. package/dist/components/Navbar/SubMenuColumn/SubMenuColumn.types.d.ts +0 -5
  84. package/dist/components/Navbar/SubMenuColumn/SubMenuColumn.types.js +0 -2
  85. package/dist/components/Navbar/SubMenuColumn/SubMenuColumn.types.js.map +0 -1
  86. package/dist/components/Navbar/SubMenuItem/SubMenuItem.d.ts +0 -2
  87. package/dist/components/Navbar/SubMenuItem/SubMenuItem.js +0 -15
  88. package/dist/components/Navbar/SubMenuItem/SubMenuItem.js.map +0 -1
  89. package/dist/components/Navbar/SubMenuItem/SubMenuItem.styled.d.ts +0 -32
  90. package/dist/components/Navbar/SubMenuItem/SubMenuItem.styled.js +0 -84
  91. package/dist/components/Navbar/SubMenuItem/SubMenuItem.styled.js.map +0 -1
  92. package/dist/components/Navbar/SubMenuItem/SubMenuItem.types.d.ts +0 -13
  93. package/dist/components/Navbar/SubMenuItem/SubMenuItem.types.js +0 -2
  94. package/dist/components/Navbar/SubMenuItem/SubMenuItem.types.js.map +0 -1
  95. package/dist/components/Navbar/utils.d.ts +0 -16
  96. package/dist/components/Navbar/utils.js +0 -33
  97. package/dist/components/Navbar/utils.js.map +0 -1
@@ -1,86 +1,119 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  import { useState } from 'react';
3
- import { ChainId, Network } from '@dcl/schemas';
4
- import { Box, Toolbar, Typography } from '@mui/material';
3
+ import { ChainId } from '@dcl/schemas';
4
+ import { Network } from '@dcl/schemas/dist/dapps/network';
5
+ import { BellIcon } from './icons';
5
6
  import { Navbar } from './Navbar';
6
- import { avatar } from '../../data/avatar';
7
- import { itemSoldNotificationPropsData } from '../../data/notifications';
8
- import { NotificationActiveTab } from '../Notifications';
9
- import { NavbarPages } from './Navbar.types';
7
+ import { BellButton, NotificationBadge, NotificationDot, NotificationHeader, NotificationItemContent, NotificationItemDescription, NotificationItemImage, NotificationItemTime, NotificationItemTitle, NotificationList, NotificationListItem, NotificationPanel, NotificationTitle, NotificationWrapper } from './NotificationBell.styled';
10
8
  const meta = {
11
- component: Navbar,
12
9
  title: 'Decentraland UI/Navbar',
13
- argTypes: {
14
- shouldDownloadBeforeRedirect: {
15
- description: 'If true, downloads the file before redirecting. If false, only redirects without downloading.',
16
- control: 'boolean',
17
- defaultValue: true
10
+ component: Navbar,
11
+ parameters: {
12
+ layout: 'fullscreen'
13
+ }
14
+ };
15
+ // eslint-disable-next-line import/no-default-export, import/exports-last
16
+ export default meta;
17
+ const exampleAvatar = {
18
+ name: 'CryptoUser',
19
+ avatar: {
20
+ snapshots: {
21
+ face256: 'https://profile-images.decentraland.org/entities/bafkreicsrqz4raw5fwkihldnu6ofs7de43oux2bhiehfscbroirnwbdrei/face.png',
22
+ body: 'https://profile-images.decentraland.org/entities/bafkreicsrqz4raw5fwkihldnu6ofs7de43oux2bhiehfscbroirnwbdrei/body.png'
18
23
  }
24
+ }
25
+ };
26
+ const NotificationDemo = ({ isOpen, onToggle }) => {
27
+ const [localOpen, setLocalOpen] = useState(false);
28
+ const open = isOpen !== undefined ? isOpen : localOpen;
29
+ const toggle = onToggle ?? (() => setLocalOpen(prev => !prev));
30
+ return (_jsxs(NotificationWrapper, { children: [_jsxs(BellButton, { onClick: toggle, className: open ? '' : 'has-unread', children: [_jsx(BellIcon, {}), _jsx(NotificationBadge, { children: "3" })] }), open && (_jsxs(NotificationPanel, { children: [_jsx(NotificationHeader, { children: _jsx(NotificationTitle, { children: "Notifications" }) }), _jsxs(NotificationList, { children: [_jsxs(NotificationListItem, { children: [_jsx(NotificationItemImage, { children: _jsxs("svg", { viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("rect", { width: "40", height: "40", rx: "8", fill: "rgba(255,45,85,0.2)" }), _jsx("path", { d: "M20 12L14 22H26L20 12Z", fill: "#FF2D55" })] }) }), _jsxs(NotificationItemContent, { children: [_jsx(NotificationItemTitle, { children: "Bid Received" }), _jsx(NotificationItemDescription, { children: "Someone placed a bid of 100 MANA on your wearable" }), _jsx(NotificationItemTime, { children: "2 hours ago" })] }), _jsx(NotificationDot, {})] }), _jsxs(NotificationListItem, { children: [_jsx(NotificationItemImage, { children: _jsxs("svg", { viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("rect", { width: "40", height: "40", rx: "8", fill: "rgba(164,75,243,0.2)" }), _jsx("circle", { cx: "20", cy: "20", r: "8", fill: "#A14BF3" })] }) }), _jsxs(NotificationItemContent, { children: [_jsx(NotificationItemTitle, { children: "Item Sold" }), _jsx(NotificationItemDescription, { children: "Your Genesis City Hat was sold for 500 MANA" }), _jsx(NotificationItemTime, { children: "5 hours ago" })] }), _jsx(NotificationDot, {})] }), _jsxs(NotificationListItem, { children: [_jsx(NotificationItemImage, { children: _jsxs("svg", { viewBox: "0 0 40 40", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("rect", { width: "40", height: "40", rx: "8", fill: "rgba(52,206,118,0.2)" }), _jsx("path", { d: "M15 20L18 23L25 16", stroke: "#34CE76", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })] }) }), _jsxs(NotificationItemContent, { children: [_jsx(NotificationItemTitle, { children: "Proposal Enacted" }), _jsx(NotificationItemDescription, { children: "A governance proposal you voted on has been enacted" }), _jsx(NotificationItemTime, { children: "1 day ago" })] }), _jsx(NotificationDot, { style: { backgroundColor: 'transparent' } })] })] })] }))] }));
31
+ };
32
+ const PageContent = () => (_jsxs("div", { style: {
33
+ paddingTop: 92,
34
+ minHeight: '200vh',
35
+ background: 'linear-gradient(180deg, #1a0a2e 0%, #0a0a0a 100%)',
36
+ padding: '120px 40px 40px'
37
+ }, children: [_jsx("div", { style: { color: 'white', fontSize: 32, fontWeight: 700, marginBottom: 8 }, children: "Page Content" }), _jsx("div", { style: { color: 'rgba(255,255,255,0.6)', fontSize: 16, maxWidth: 500 }, children: "Scroll down to test navbar behavior." })] }));
38
+ const SignedOut = {
39
+ args: {
40
+ isSignedIn: false,
41
+ onClickSignIn: () => console.log('Sign In clicked'),
42
+ onClickSignOut: () => console.log('Sign Out clicked')
19
43
  },
20
- render: args => _jsx(Navbar, { ...args, activePage: NavbarPages.MARKETPLACE })
44
+ render: args => (_jsxs(_Fragment, { children: [_jsx(Navbar, { ...args }), _jsx(PageContent, {})] }))
21
45
  };
22
- const Simple = {
23
- render: args => _jsx(Navbar, { ...args, activePage: NavbarPages.CREATE })
46
+ const SignedIn = {
47
+ args: {
48
+ isSignedIn: true,
49
+ address: '0xe3fc7040653768efb2941a6c26fdb868ed36ca99',
50
+ avatar: exampleAvatar,
51
+ onClickSignIn: () => console.log('Sign In clicked'),
52
+ onClickSignOut: () => console.log('Sign Out clicked')
53
+ },
54
+ render: args => (_jsxs(_Fragment, { children: [_jsx(Navbar, { ...args }), _jsx(PageContent, {})] }))
24
55
  };
25
- const WithScroll = {
26
- render: args => (_jsxs(Box, { sx: { display: 'flex' }, children: [_jsx(Navbar, { ...args, activePage: NavbarPages.CREATE }), _jsxs(Box, { children: [_jsx(Toolbar, {}), _jsx(Typography, { variant: "h1", children: "Lorem ipsum dolor." }), _jsx(Typography, { children: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Similique unde fugit veniam eius, perspiciatis sunt? Corporis qui ducimus quibusdam, aliquam dolore excepturi quae. Distinctio enim at eligendi perferendis in cum quibusdam sed quae, accusantium et aperiam? Quod itaque exercitationem, at ab sequi qui modi delectus quia corrupti alias distinctio nostrum. Minima ex dolor modi inventore sapiente necessitatibus aliquam fuga et. Sed numquam quibusdam at officia sapiente porro maxime corrupti perspiciatis asperiores, exercitationem eius nostrum consequuntur iure aliquam itaque, assumenda et! Quibusdam temporibus beatae doloremque voluptatum doloribus soluta accusamus porro reprehenderit eos inventore facere, fugit, molestiae ab officiis illo voluptates recusandae. Vel dolor nobis eius, ratione atque soluta, aliquam fugit qui iste architecto perspiciatis. Nobis, voluptatem! Cumque, eligendi unde aliquid minus quis sit debitis obcaecati error, delectus quo eius exercitationem tempore. Delectus sapiente, provident corporis dolorum quibusdam aut beatae repellendus est labore quisquam praesentium repudiandae non vel laboriosam quo ab perferendis velit ipsa deleniti modi! Ipsam, illo quod. Nesciunt commodi nihil corrupti cum non fugiat praesentium doloremque architecto laborum aliquid. Quae, maxime recusandae? Eveniet dolore molestiae dicta blanditiis est expedita eius debitis cupiditate porro sed aspernatur quidem, repellat nihil quasi praesentium quia eos, quibusdam provident. Incidunt tempore vel placeat voluptate iure labore, repellendus beatae quia unde est aliquid dolor molestias libero. Reiciendis similique exercitationem consequatur, nobis placeat illo laudantium! Enim perferendis nulla soluta magni error, provident repellat similique cupiditate ipsam, et tempore cumque quod! Qui, iure suscipit tempora unde rerum autem saepe nisi vel cupiditate iusto. Illum, corrupti? Fugiat quidem accusantium nulla. Aliquid inventore commodi reprehenderit rerum reiciendis! Quidem alias repudiandae eaque eveniet cumque nihil aliquam in expedita, impedit quas ipsum nesciunt ipsa ullam consequuntur dignissimos numquam at nisi porro a, quaerat rem repellendus. Voluptates perspiciatis, in pariatur impedit, nam facilis libero dolorem dolores sunt inventore perferendis, aut sapiente modi nesciunt." }), _jsx("img", { src: "https://www.adobe.com/au/products/firefly/features/media_179d807b0123090143eea74eea2d7cf4e7aa962ae.png?width=2000&format=webply&optimize=medium", style: { width: '100%' } }), _jsx(Typography, { children: "Lorem ipsum dolor sit amet consectetur adipisicing elit. Similique unde fugit veniam eius, perspiciatis sunt? Corporis qui ducimus quibusdam, aliquam dolore excepturi quae. Distinctio enim at eligendi perferendis in cum quibusdam sed quae, accusantium et aperiam? Quod itaque exercitationem, at ab sequi qui modi delectus quia corrupti alias distinctio nostrum. Minima ex dolor modi inventore sapiente necessitatibus aliquam fuga et. Sed numquam quibusdam at officia sapiente porro maxime corrupti perspiciatis asperiores, exercitationem eius nostrum consequuntur iure aliquam itaque, assumenda et! Quibusdam temporibus beatae doloremque voluptatum doloribus soluta accusamus porro reprehenderit eos inventore facere, fugit, molestiae ab officiis illo voluptates recusandae. Vel dolor nobis eius, ratione atque soluta, aliquam fugit qui iste architecto perspiciatis. Nobis, voluptatem! Cumque, eligendi unde aliquid minus quis sit debitis obcaecati error, delectus quo eius exercitationem tempore. Delectus sapiente, provident corporis dolorum quibusdam aut beatae repellendus est labore quisquam praesentium repudiandae non vel laboriosam quo ab perferendis velit ipsa deleniti modi! Ipsam, illo quod. Nesciunt commodi nihil corrupti cum non fugiat praesentium doloremque architecto laborum aliquid. Quae, maxime recusandae? Eveniet dolore molestiae dicta blanditiis est expedita eius debitis cupiditate porro sed aspernatur quidem, repellat nihil quasi praesentium quia eos, quibusdam provident. Incidunt tempore vel placeat voluptate iure labore, repellendus beatae quia unde est aliquid dolor molestias libero. Reiciendis similique exercitationem consequatur, nobis placeat illo laudantium! Enim perferendis nulla soluta magni error, provident repellat similique cupiditate ipsam, et tempore cumque quod! Qui, iure suscipit tempora unde rerum autem saepe nisi vel cupiditate iusto. Illum, corrupti? Fugiat quidem accusantium nulla. Aliquid inventore commodi reprehenderit rerum reiciendis! Quidem alias repudiandae eaque eveniet cumque nihil aliquam in expedita, impedit quas ipsum nesciunt ipsa ullam consequuntur dignissimos numquam at nisi porro a, quaerat rem repellendus. Voluptates perspiciatis, in pariatur impedit, nam facilis libero dolorem dolores sunt inventore perferendis, aut sapiente modi nesciunt." })] })] }))
56
+ const WithNotifications = {
57
+ args: {
58
+ isSignedIn: true,
59
+ address: '0xe3fc7040653768efb2941a6c26fdb868ed36ca99',
60
+ avatar: exampleAvatar,
61
+ onClickSignIn: () => console.log('Sign In clicked'),
62
+ onClickSignOut: () => console.log('Sign Out clicked')
63
+ },
64
+ render: args => {
65
+ const [notifOpen, setNotifOpen] = useState(false);
66
+ return (_jsxs(_Fragment, { children: [_jsx(Navbar, { ...args, notificationSlot: _jsx(NotificationDemo, { isOpen: notifOpen, onToggle: () => setNotifOpen(prev => !prev) }), onToggleUserCard: isOpen => {
67
+ if (isOpen)
68
+ setNotifOpen(false);
69
+ } }), _jsx(PageContent, {})] }));
70
+ }
27
71
  };
28
- const WithChainSelector = {
72
+ const MarketplaceExample = {
29
73
  args: {
30
- activePage: NavbarPages.MARKETPLACE,
31
74
  isSignedIn: true,
75
+ address: '0xe3fc7040653768efb2941a6c26fdb868ed36ca99',
76
+ avatar: exampleAvatar,
77
+ selectedChain: ChainId.ETHEREUM_MAINNET,
32
78
  chains: [
33
79
  ChainId.ETHEREUM_MAINNET,
34
80
  ChainId.MATIC_MAINNET,
35
81
  ChainId.ARBITRUM_MAINNET,
36
82
  ChainId.OPTIMISM_MAINNET,
37
83
  ChainId.BSC_MAINNET,
38
- ChainId.FANTOM_MAINNET,
39
- ChainId.AVALANCHE_MAINNET
84
+ ChainId.AVALANCHE_MAINNET,
85
+ ChainId.FANTOM_MAINNET
40
86
  ],
41
- chainBeingConfirmed: ChainId.MATIC_MAINNET,
42
- selectedChain: ChainId.ETHEREUM_MAINNET,
43
- onSelectChain: chain => console.log('Selected chain', chain),
44
- avatar: avatar,
45
- onClickSignIn: () => console.log('Clicked on sign in')
87
+ onSelectChain: (chain) => console.log('Selected chain', chain),
88
+ manaBalances: { [Network.ETHEREUM]: 1234, [Network.MATIC]: 5678 },
89
+ onClickBalance: (network) => console.log('Clicked balance', network),
90
+ creditsBalance: { balance: 4200, expiresAt: Date.now() + 86400000 * 30 },
91
+ onClickCredits: () => console.log('Credits clicked'),
92
+ onClickSignIn: () => console.log('Sign In clicked'),
93
+ onClickSignOut: () => console.log('Sign Out clicked')
46
94
  },
47
95
  render: args => {
48
- const [openNotification, setOpenNotification] = useState(false);
49
- const [tab, setTab] = useState(NotificationActiveTab.NEWEST);
50
- return (_jsx(Navbar, { ...args, notifications: {
51
- isOnboarding: false,
52
- isOpen: openNotification,
53
- isLoading: false,
54
- items: [itemSoldNotificationPropsData],
55
- locale: 'en',
56
- activeTab: tab,
57
- onBegin: console.log,
58
- onChangeTab: (_e, tab) => setTab(tab),
59
- onClick: () => setOpenNotification(true),
60
- onClose: () => setOpenNotification(false)
61
- }, manaBalances: { [Network.ETHEREUM]: 1000, [Network.MATIC]: 2500 }, creditsBalance: {
62
- balance: 100,
63
- expiresAt: Date.now() + 1000 * 60 * 60 * 24 * 100
64
- } }));
96
+ const [notifOpen, setNotifOpen] = useState(false);
97
+ return (_jsxs(_Fragment, { children: [_jsx(Navbar, { ...args, notificationSlot: _jsx(NotificationDemo, { isOpen: notifOpen, onToggle: () => setNotifOpen(prev => !prev) }), onToggleUserCard: isOpen => {
98
+ if (isOpen)
99
+ setNotifOpen(false);
100
+ } }), _jsx(PageContent, {})] }));
65
101
  }
66
102
  };
67
- const WithRedirectOnly = {
68
- name: 'Redirect Only (No Download Before Redirect)',
103
+ const CustomI18n = {
69
104
  args: {
70
- activePage: NavbarPages.MARKETPLACE,
71
- isSignedIn: true,
72
- avatar: avatar,
73
- shouldDownloadBeforeRedirect: false
105
+ isSignedIn: false,
106
+ i18n: {
107
+ signIn: 'Ingresar',
108
+ signingIn: 'Ingresando...',
109
+ shop: 'Comprar',
110
+ create: 'Crear',
111
+ learn: 'Aprender'
112
+ },
113
+ onClickSignIn: () => console.log('Sign In clicked'),
114
+ onClickSignOut: () => console.log('Sign Out clicked')
74
115
  },
75
- parameters: {
76
- docs: {
77
- description: {
78
- story: 'Navbar with download button that redirects without downloading the file first. The download will happen on the success page.'
79
- }
80
- }
81
- }
116
+ render: args => (_jsxs(_Fragment, { children: [_jsx(Navbar, { ...args }), _jsx(PageContent, {})] }))
82
117
  };
83
- // eslint-disable-next-line import/no-default-export
84
- export default meta;
85
- export { Simple, WithScroll, WithChainSelector, WithRedirectOnly };
118
+ export { SignedOut, SignedIn, WithNotifications, MarketplaceExample, CustomI18n };
86
119
  //# sourceMappingURL=Navbar.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Navbar.stories.js","sourceRoot":"","sources":["../../../src/components/Navbar/Navbar.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAC1C,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AAI,EAAE,EACjE,cAAc,EAAE;gBACd,OAAO,EAAE,GAAG;gBACZ,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG;aAClD,GACD,CACH,CAAA;IACH,CAAC;CACF,CAAA;AAED,MAAM,gBAAgB,GAAU;IAC9B,IAAI,EAAE,6CAA6C;IACnD,IAAI,EAAE;QACJ,UAAU,EAAE,WAAW,CAAC,WAAW;QACnC,UAAU,EAAE,IAAI;QAChB,MAAM,EAAE,MAAM;QACd,4BAA4B,EAAE,KAAK;KACpC;IACD,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,WAAW,EAAE;gBACX,KAAK,EACH,8HAA8H;aACjI;SACF;KACF;CACF,CAAA;AAED,oDAAoD;AACpD,eAAe,IAAI,CAAA;AACnB,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,CAAA"}
1
+ {"version":3,"file":"Navbar.stories.js","sourceRoot":"","sources":["../../../src/components/Navbar/Navbar.stories.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAiC,CAAA;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EACL,UAAU,EACV,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,uBAAuB,EACvB,2BAA2B,EAC3B,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAGlC,MAAM,IAAI,GAAwB;IAChC,KAAK,EAAE,wBAAwB;IAC/B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E,SAAS;YACf,MAAM,EAAE,OAAO;YACf,KAAK,EAAE,UAAU;SAClB;QACD,aAAa,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;QACnD,cAAc,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC;KACtD;IACD,MAAM,EAAE,IAAI,CAAC,EAAE,CAAC,CACd,8BACE,KAAC,MAAM,OAAK,IAAI,GAAI,EACpB,KAAC,WAAW,KAAG,IACd,CACJ;CACF,CAAA;AAED,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,UAAU,EAAE,CAAA"}
@@ -1,64 +1,61 @@
1
- interface DclAppBarProps {
2
- isSubmenuOpen: boolean;
3
- isMobileOpen: boolean;
4
- }
5
- interface LogoLinkProps {
6
- isMobile?: boolean;
7
- }
8
- declare const DclAppBar: import("@emotion/styled").StyledComponent<import("@mui/material").AppBarOwnProps & Omit<import("@mui/material").PaperOwnProps, "color" | "position" | "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & {
9
- ref?: ((instance: HTMLElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLElement> | null | undefined;
10
- }, "elevation" | "color" | "position" | "className" | "style" | "classes" | "children" | "square" | "sx" | "variant" | "enableColorOnDark"> & {
1
+ declare const FONT_FAMILY = "Inter, Helvetica, Arial, sans-serif";
2
+ declare const MOBILE_BREAKPOINT = "@media (max-width: 991px)";
3
+ declare const DESKTOP_BREAKPOINT = "@media (min-width: 992px)";
4
+ declare const Z_INDEX: {
5
+ readonly userCard: 1099;
6
+ readonly navbar: 1100;
7
+ readonly mobileMenu: 1101;
8
+ readonly notificationPanel: 1102;
9
+ readonly mobileOverlay: 1201;
10
+ };
11
+ declare const GLASS_BG = "rgba(38, 38, 38, 0.8)";
12
+ declare const GLASS_BORDER = "0.5px solid #5E5B67";
13
+ declare const GLASS_SHADOW = "0 2px 20px 16px rgba(0, 0, 0, 0.25)";
14
+ declare const GLASS_BLUR = "blur(12.5px)";
15
+ declare const avatarPulse: {
16
+ name: string;
17
+ styles: string;
18
+ anim: 1;
19
+ toString: () => string;
20
+ } & string;
21
+ declare const slideDown: {
22
+ name: string;
23
+ styles: string;
24
+ anim: 1;
25
+ toString: () => string;
26
+ } & string;
27
+ declare const bellShake: {
28
+ name: string;
29
+ styles: string;
30
+ anim: 1;
31
+ toString: () => string;
32
+ } & string;
33
+ declare const NavbarRoot: import("@emotion/styled").StyledComponent<{
11
34
  theme?: import("@emotion/react").Theme;
12
- } & DclAppBarProps, {}, {}>;
13
- declare const LogoLink: import("@emotion/styled").StyledComponent<import("@mui/material").LinkOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
14
- ref?: ((instance: HTMLAnchorElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLAnchorElement> | null | undefined;
15
- }, "typography" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "bottom" | "boxShadow" | "boxSizing" | "color" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "height" | "justifyContent" | "justifyItems" | "justifySelf" | "left" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginBottom" | "marginInlineEnd" | "marginInlineStart" | "marginLeft" | "marginRight" | "marginTop" | "maxHeight" | "maxWidth" | "minHeight" | "minWidth" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingBottom" | "paddingInlineEnd" | "paddingInlineStart" | "paddingLeft" | "paddingRight" | "paddingTop" | "position" | "right" | "rowGap" | "textAlign" | "textOverflow" | "textTransform" | "top" | "visibility" | "whiteSpace" | "width" | "border" | "borderBottom" | "borderColor" | "borderLeft" | "borderRadius" | "borderRight" | "borderTop" | "flex" | "gap" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "className" | "style" | "classes" | "children" | "sx" | "variant" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "p" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "displayPrint" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping" | "TypographyClasses" | "underline"> & {
16
- theme?: import("@emotion/react").Theme;
17
- } & LogoLinkProps, {}, {}>;
18
- declare const AppBarDesktopWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
19
- ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
20
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & {
21
- theme?: import("@emotion/react").Theme;
22
- }, {}, {}>;
23
- declare const AppBarWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
24
- ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
25
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & {
26
- theme?: import("@emotion/react").Theme;
27
- }, {}, {}>;
28
- declare const AppBarTabletAndBelowWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
29
- ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
30
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & {
35
+ as?: React.ElementType;
36
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, {}>;
37
+ declare const NavbarLeft: import("@emotion/styled").StyledComponent<{
31
38
  theme?: import("@emotion/react").Theme;
32
- }, {}, {}>;
33
- declare const AppBarRightWrapper: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
34
- ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
35
- }, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & {
39
+ as?: React.ElementType;
40
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
41
+ declare const NavbarRight: import("@emotion/styled").StyledComponent<{
36
42
  theme?: import("@emotion/react").Theme;
37
- }, {}, {}>;
38
- declare const MenuIcon: import("@emotion/styled").StyledComponent<import("@mui/material").ButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
39
- ref?: ((instance: HTMLButtonElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLButtonElement> | null | undefined;
40
- }, "disabled" | "color" | "className" | "style" | "classes" | "children" | "sx" | "variant" | "tabIndex" | "disableElevation" | "fullWidth" | "startIcon" | "endIcon" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableFocusRipple" | "href" | "size"> & {
43
+ as?: React.ElementType;
44
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
45
+ declare const NavbarRightGroup: import("@emotion/styled").StyledComponent<{
41
46
  theme?: import("@emotion/react").Theme;
42
- }, {}, {}>;
43
- interface MenuIconBarProps {
44
- isOpen: boolean;
45
- }
46
- declare const MenuIconBar: import("@emotion/styled").StyledComponent<{
47
+ as?: React.ElementType;
48
+ }, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
49
+ declare const LogoLink: import("@emotion/styled").StyledComponent<{
47
50
  theme?: import("@emotion/react").Theme;
48
51
  as?: React.ElementType;
49
- } & MenuIconBarProps, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
50
- declare const MenuModal: import("@emotion/styled").StyledComponent<import("@mui/material").ModalOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
51
- ref?: ((instance: HTMLDivElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<HTMLDivElement> | null | undefined;
52
- }, "components" | "container" | "className" | "style" | "classes" | "children" | "sx" | "slots" | "slotProps" | "componentsProps" | "open" | "BackdropComponent" | "BackdropProps" | "closeAfterTransition" | "disableAutoFocus" | "disableEnforceFocus" | "disableEscapeKeyDown" | "disablePortal" | "disableRestoreFocus" | "disableScrollLock" | "hideBackdrop" | "keepMounted" | "onBackdropClick" | "onClose" | "onTransitionEnter" | "onTransitionExited"> & {
52
+ }, import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, {}>;
53
+ declare const HamburgerButton: import("@emotion/styled").StyledComponent<{
53
54
  theme?: import("@emotion/react").Theme;
54
- }, {}, {}>;
55
- declare const Logo: import("@emotion/styled").StyledComponent<import("@mui/material").SvgIconOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & {
56
- ref?: ((instance: SVGSVGElement | null) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<SVGSVGElement> | null | undefined;
57
- }, "color" | "fontSize" | "shapeRendering" | "className" | "style" | "classes" | "children" | "sx" | "htmlColor" | "inheritViewBox" | "titleAccess" | "viewBox"> & {
58
- component?: import("react").ElementType;
59
- } & {
60
- size?: "normal" | "large" | "huge" | "massive";
61
- } & {
55
+ as?: React.ElementType;
56
+ }, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
57
+ declare const SignInButton: import("@emotion/styled").StyledComponent<{
62
58
  theme?: import("@emotion/react").Theme;
63
- }, {}, {}>;
64
- export { DclAppBar, LogoLink, AppBarDesktopWrapper, AppBarWrapper, AppBarTabletAndBelowWrapper, AppBarRightWrapper, MenuIcon, MenuIconBar, MenuModal, Logo };
59
+ as?: React.ElementType;
60
+ }, import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, {}>;
61
+ export { DESKTOP_BREAKPOINT, FONT_FAMILY, GLASS_BG, GLASS_BLUR, GLASS_BORDER, GLASS_SHADOW, HamburgerButton, LogoLink, MOBILE_BREAKPOINT, NavbarLeft, NavbarRight, NavbarRightGroup, NavbarRoot, SignInButton, Z_INDEX, avatarPulse, bellShake, slideDown };