|
| 1 | +import { GlobalProviderProps } from '@dxp/ui/providers/GlobalProvider'; |
| 2 | + |
| 3 | +export const globalProviderConfig: GlobalProviderProps['config'] = { |
| 4 | + locales: [ |
| 5 | + { |
| 6 | + value: 'en', |
| 7 | + label: 'EN', |
| 8 | + }, |
| 9 | + { |
| 10 | + value: 'de', |
| 11 | + label: 'DE', |
| 12 | + }, |
| 13 | + { |
| 14 | + value: 'pl', |
| 15 | + label: 'PL', |
| 16 | + }, |
| 17 | + ], |
| 18 | + common: { |
| 19 | + header: { |
| 20 | + id: 'fqj6nnyk4irqq5b7rnc4ogsj', |
| 21 | + title: 'MOCK_HEADER_EN', |
| 22 | + logoLabel: 'Go to home', |
| 23 | + logo: { |
| 24 | + url: 'https://raw.githubusercontent.com/o2sdev/openselfservice/refs/heads/main/packages/integrations/mocked/public/images/logo.svg', |
| 25 | + alt: 'Logo', |
| 26 | + width: 92, |
| 27 | + height: 24, |
| 28 | + }, |
| 29 | + contextSwitcher: { |
| 30 | + showContextSwitcher: true, |
| 31 | + closeLabel: 'Close', |
| 32 | + }, |
| 33 | + languageSwitcherLabel: 'Language', |
| 34 | + mobileMenuLabel: { |
| 35 | + open: 'Open menu', |
| 36 | + close: 'Close Menu', |
| 37 | + }, |
| 38 | + items: [ |
| 39 | + { |
| 40 | + __typename: 'NavigationGroup', |
| 41 | + title: 'Personal', |
| 42 | + url: '/personal', |
| 43 | + items: [ |
| 44 | + { |
| 45 | + __typename: 'NavigationItem', |
| 46 | + label: 'Accounts', |
| 47 | + url: '/personal/accounts', |
| 48 | + }, |
| 49 | + { |
| 50 | + __typename: 'NavigationItem', |
| 51 | + label: 'Cards', |
| 52 | + url: '/personal/cards', |
| 53 | + }, |
| 54 | + ], |
| 55 | + }, |
| 56 | + { |
| 57 | + __typename: 'NavigationGroup', |
| 58 | + title: 'Business', |
| 59 | + url: '/business', |
| 60 | + items: [ |
| 61 | + { |
| 62 | + __typename: 'NavigationItem', |
| 63 | + label: 'Accounts', |
| 64 | + url: '/business/accounts', |
| 65 | + }, |
| 66 | + { |
| 67 | + __typename: 'NavigationItem', |
| 68 | + label: 'Cards', |
| 69 | + url: '/business/cards', |
| 70 | + }, |
| 71 | + ], |
| 72 | + }, |
| 73 | + ], |
| 74 | + }, |
| 75 | + footer: { |
| 76 | + id: 'laee0xa1zmm9uraev3hpruho', |
| 77 | + title: 'Legal and privacy', |
| 78 | + logo: { |
| 79 | + url: 'https://raw.githubusercontent.com/o2sdev/openselfservice/refs/heads/main/packages/integrations/mocked/public/images/logo.svg', |
| 80 | + alt: 'Logo', |
| 81 | + width: 92, |
| 82 | + height: 24, |
| 83 | + }, |
| 84 | + logoLabel: 'Go to home', |
| 85 | + items: [ |
| 86 | + { |
| 87 | + __typename: 'NavigationGroup', |
| 88 | + title: 'Personal', |
| 89 | + url: '/personal', |
| 90 | + items: [ |
| 91 | + { |
| 92 | + __typename: 'NavigationItem', |
| 93 | + label: 'Accounts', |
| 94 | + url: '/personal/accounts', |
| 95 | + }, |
| 96 | + { |
| 97 | + __typename: 'NavigationItem', |
| 98 | + label: 'Cards', |
| 99 | + url: '/personal/cards', |
| 100 | + }, |
| 101 | + ], |
| 102 | + }, |
| 103 | + { |
| 104 | + __typename: 'NavigationGroup', |
| 105 | + title: 'Business', |
| 106 | + url: '/business', |
| 107 | + items: [ |
| 108 | + { |
| 109 | + __typename: 'NavigationItem', |
| 110 | + label: 'Accounts', |
| 111 | + url: '/business/accounts', |
| 112 | + }, |
| 113 | + { |
| 114 | + __typename: 'NavigationItem', |
| 115 | + label: 'Cards', |
| 116 | + url: '/business/cards', |
| 117 | + }, |
| 118 | + ], |
| 119 | + }, |
| 120 | + ], |
| 121 | + copyright: '© Open Self Service 2025', |
| 122 | + }, |
| 123 | + }, |
| 124 | + labels: { |
| 125 | + errors: { |
| 126 | + requestError: { |
| 127 | + title: 'Uh oh! Something went wrong.', |
| 128 | + content: 'There was a problem with your request.', |
| 129 | + }, |
| 130 | + }, |
| 131 | + dates: { |
| 132 | + today: 'Today', |
| 133 | + yesterday: 'Yesterday', |
| 134 | + }, |
| 135 | + actions: { |
| 136 | + showMore: 'Show more', |
| 137 | + showLess: 'Show less', |
| 138 | + show: 'Show', |
| 139 | + hide: 'Hide', |
| 140 | + edit: 'Edit', |
| 141 | + save: 'Save', |
| 142 | + cancel: 'Cancel', |
| 143 | + delete: 'Delete', |
| 144 | + logOut: 'Log out', |
| 145 | + settings: 'Settings', |
| 146 | + renew: 'Renew', |
| 147 | + details: 'Details', |
| 148 | + }, |
| 149 | + } |
| 150 | +}; |
| 151 | + |
| 152 | +export const globalProviderLabels: GlobalProviderProps['labels'] = { |
| 153 | + errors: { |
| 154 | + requestError: { |
| 155 | + title: 'Uh oh! Something went wrong.', |
| 156 | + content: 'There was a problem with your request.', |
| 157 | + }, |
| 158 | + }, |
| 159 | + dates: { |
| 160 | + today: 'Today', |
| 161 | + yesterday: 'Yesterday', |
| 162 | + }, |
| 163 | + actions: { |
| 164 | + showMore: 'Show more', |
| 165 | + showLess: 'Show less', |
| 166 | + show: 'Show', |
| 167 | + hide: 'Hide', |
| 168 | + edit: 'Edit', |
| 169 | + save: 'Save', |
| 170 | + cancel: 'Cancel', |
| 171 | + delete: 'Delete', |
| 172 | + logOut: 'Log out', |
| 173 | + settings: 'Settings', |
| 174 | + renew: 'Renew', |
| 175 | + details: 'Details', |
| 176 | + }, |
| 177 | +}; |
| 178 | + |
| 179 | +export const globalProviderThemes: GlobalProviderProps['themes'] = { |
| 180 | + default: { |
| 181 | + name: 'default', |
| 182 | + logo: { |
| 183 | + url: 'https://raw.githubusercontent.com/o2sdev/openselfservice/refs/heads/main/packages/integrations/mocked/public/images/logo.svg', |
| 184 | + alt: 'Logo', |
| 185 | + width: 92, |
| 186 | + height: 24, |
| 187 | + }, |
| 188 | + }, |
| 189 | + personal: { |
| 190 | + name: 'personal', |
| 191 | + logo: { |
| 192 | + url: 'https://raw.githubusercontent.com/o2sdev/openselfservice/refs/heads/main/packages/integrations/mocked/public/images/logo.svg', |
| 193 | + alt: 'Logo', |
| 194 | + width: 92, |
| 195 | + height: 24, |
| 196 | + }, |
| 197 | + }, |
| 198 | + business: { |
| 199 | + name: 'business', |
| 200 | + logo: { |
| 201 | + url: 'https://raw.githubusercontent.com/o2sdev/openselfservice/refs/heads/main/packages/integrations/mocked/public/images/logo.svg', |
| 202 | + alt: 'Logo', |
| 203 | + width: 92, |
| 204 | + height: 24, |
| 205 | + }, |
| 206 | + }, |
| 207 | +}; |
| 208 | + |
| 209 | +export const globalProviderCurrentTheme: GlobalProviderProps['currentTheme'] = 'default'; |
0 commit comments