@variocube/app-ui 1.14.5 → 1.16.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.
- package/esm/AppShell/AppShell.js +12 -12
- package/esm/AppShell/AppShell.js.map +1 -1
- package/esm/AppShell/index.js.map +1 -1
- package/esm/Input/ActionsMenu.js +1 -1
- package/esm/Input/ActionsMenu.js.map +1 -1
- package/esm/Input/EmailSenderField.js +3 -3
- package/esm/Input/EmailSenderField.js.map +1 -1
- package/esm/Input/Selector.js +2 -2
- package/esm/Input/Selector.js.map +1 -1
- package/esm/Paging/Paging.d.ts +1 -1
- package/esm/Paging/Paging.js +5 -5
- package/esm/Paging/Paging.js.map +1 -1
- package/esm/Paging/index.d.ts +2 -1
- package/esm/Paging/index.js.map +1 -1
- package/esm/VCThemeProvider/JetbrainsMonoFont.js +8 -8
- package/esm/VCThemeProvider/JetbrainsMonoFont.js.map +1 -1
- package/esm/VCThemeProvider/RobotoFont.js +8 -8
- package/esm/VCThemeProvider/RobotoFont.js.map +1 -1
- package/esm/VCThemeProvider/ThemeModeSwitcher.js +5 -5
- package/esm/VCThemeProvider/ThemeModeSwitcher.js.map +1 -1
- package/esm/VCThemeProvider/VCThemeProvider.d.ts +1 -1
- package/esm/VCThemeProvider/VCThemeProvider.js +21 -21
- package/esm/VCThemeProvider/VCThemeProvider.js.map +1 -1
- package/esm/audit/AuditChanges.js +9 -5
- package/esm/audit/AuditChanges.js.map +1 -1
- package/esm/audit/AuditTimeline.js +1 -1
- package/esm/audit/AuditTimeline.js.map +1 -1
- package/esm/audit/AuditTimelineItem.js +3 -3
- package/esm/audit/AuditTimelineItem.js.map +1 -1
- package/esm/audit/index.d.ts +1 -1
- package/esm/audit/index.js +1 -1
- package/esm/audit/index.js.map +1 -1
- package/esm/breadcrumbs.d.ts +2 -2
- package/esm/breadcrumbs.js +3 -3
- package/esm/breadcrumbs.js.map +1 -1
- package/esm/code/CodeBlock.d.ts +1 -1
- package/esm/code/CodeBlock.js +1 -1
- package/esm/code/CodeBlock.js.map +1 -1
- package/esm/confirm/ConfirmButton.js.map +1 -1
- package/esm/confirm/ConfirmDialog.js +1 -1
- package/esm/confirm/ConfirmDialog.js.map +1 -1
- package/esm/confirm/ConfirmMenuItem.js +1 -1
- package/esm/confirm/ConfirmMenuItem.js.map +1 -1
- package/esm/container/ContainerLayout.d.ts +1 -1
- package/esm/container/ContainerLayout.js +5 -5
- package/esm/container/ContainerLayout.js.map +1 -1
- package/esm/container/ContainerSettingsContext.d.ts +2 -2
- package/esm/container/ContainerSettingsContext.js +6 -6
- package/esm/container/ContainerSettingsContext.js.map +1 -1
- package/esm/container/ContainerWidthControl.js +2 -2
- package/esm/container/ContainerWidthControl.js.map +1 -1
- package/esm/container/index.d.ts +1 -1
- package/esm/container/index.js +1 -1
- package/esm/container/index.js.map +1 -1
- package/esm/content-table/ContentTable.d.ts +1 -1
- package/esm/content-table/ContentTable.js +26 -19
- package/esm/content-table/ContentTable.js.map +1 -1
- package/esm/content-table/UndrawEmpty.js.map +1 -1
- package/esm/content-table/index.js.map +1 -1
- package/esm/country/country-select.js.map +1 -1
- package/esm/country/index.d.ts +3 -3
- package/esm/country/index.js +3 -3
- package/esm/country/index.js.map +1 -1
- package/esm/country/locale-select.js +1 -1
- package/esm/country/locale-select.js.map +1 -1
- package/esm/country/locales.js +1 -1
- package/esm/country/locales.js.map +1 -1
- package/esm/country/phone-prefix-select.js +1 -1
- package/esm/country/phone-prefix-select.js.map +1 -1
- package/esm/cube/accessibility.js +2 -1
- package/esm/cube/accessibility.js.map +1 -1
- package/esm/data-table/DataTableColumnSettings.d.ts +1 -1
- package/esm/data-table/DataTableColumnSettings.js +2 -2
- package/esm/data-table/DataTableColumnSettings.js.map +1 -1
- package/esm/data-table/DataTableHeader.js +1 -1
- package/esm/data-table/DataTableHeader.js.map +1 -1
- package/esm/data-table/DataTableToolbar.js +1 -1
- package/esm/data-table/DataTableToolbar.js.map +1 -1
- package/esm/data-table/index.d.ts +4 -4
- package/esm/data-table/index.js +4 -4
- package/esm/data-table/index.js.map +1 -1
- package/esm/data-table/useDataTableColumnStorage.d.ts +9 -1
- package/esm/data-table/useDataTableColumnStorage.js +12 -5
- package/esm/data-table/useDataTableColumnStorage.js.map +1 -1
- package/esm/data-table/useDataTableStorage.d.ts +31 -6
- package/esm/data-table/useDataTableStorage.js +25 -5
- package/esm/data-table/useDataTableStorage.js.map +1 -1
- package/esm/date-pickers/PlainAdapterCommon.d.ts +1 -1
- package/esm/date-pickers/PlainAdapterCommon.js.map +1 -1
- package/esm/date-pickers/PlainDateAdapter.js.map +1 -1
- package/esm/date-pickers/PlainDatePicker.js +1 -1
- package/esm/date-pickers/PlainDatePicker.js.map +1 -1
- package/esm/date-pickers/PlainDatePicker.spec.js +2 -2
- package/esm/date-pickers/PlainDatePicker.spec.js.map +1 -1
- package/esm/date-pickers/PlainDateTimeAdapter.js.map +1 -1
- package/esm/date-pickers/PlainDateTimePicker.js +2 -2
- package/esm/date-pickers/PlainDateTimePicker.js.map +1 -1
- package/esm/date-pickers/PlainDateTimePicker.spec.js +2 -2
- package/esm/date-pickers/PlainDateTimePicker.spec.js.map +1 -1
- package/esm/date-pickers/PlainTimeAdapter.js.map +1 -1
- package/esm/date-pickers/PlainTimePicker.js +2 -2
- package/esm/date-pickers/PlainTimePicker.js.map +1 -1
- package/esm/date-pickers/PlainTimePicker.spec.js +2 -2
- package/esm/date-pickers/PlainTimePicker.spec.js.map +1 -1
- package/esm/date-pickers/TemporalAdapter.d.ts +1 -1
- package/esm/date-pickers/TemporalAdapter.js +1 -1
- package/esm/date-pickers/TemporalAdapter.js.map +1 -1
- package/esm/date-pickers/TimezoneSelect.js +348 -348
- package/esm/date-pickers/TimezoneSelect.js.map +1 -1
- package/esm/date-pickers/getFormatString.js.map +1 -1
- package/esm/date-pickers/index.d.ts +2 -1
- package/esm/date-pickers/index.js +1 -1
- package/esm/date-pickers/index.js.map +1 -1
- package/esm/date-pickers/parse.js.map +1 -1
- package/esm/date-pickers/timeframe-picker.js +7 -7
- package/esm/date-pickers/timeframe-picker.js.map +1 -1
- package/esm/date-pickers/useLocale.js.map +1 -1
- package/esm/date-pickers/useRenderInput.js +5 -3
- package/esm/date-pickers/useRenderInput.js.map +1 -1
- package/esm/fetch.d.ts +2 -3
- package/esm/fetch.js +4 -4
- package/esm/fetch.js.map +1 -1
- package/esm/formats/CompactFormat.js +1 -1
- package/esm/formats/CompactFormat.js.map +1 -1
- package/esm/formats/CompactFormat.spec.js +1 -1
- package/esm/formats/CompactFormat.spec.js.map +1 -1
- package/esm/formats/CurrencyFormat.js +1 -1
- package/esm/formats/CurrencyFormat.js.map +1 -1
- package/esm/formats/CurrencyFormat.spec.js +1 -1
- package/esm/formats/CurrencyFormat.spec.js.map +1 -1
- package/esm/formats/DecimalFormat.js +1 -1
- package/esm/formats/DecimalFormat.js.map +1 -1
- package/esm/formats/DecimalFormat.spec.js +1 -1
- package/esm/formats/DecimalFormat.spec.js.map +1 -1
- package/esm/formats/DurationFormat.js +2 -2
- package/esm/formats/DurationFormat.js.map +1 -1
- package/esm/formats/DurationFormat.spec.js +2 -2
- package/esm/formats/DurationFormat.spec.js.map +1 -1
- package/esm/formats/TemporalFormat.spec.js +2 -2
- package/esm/formats/TemporalFormat.spec.js.map +1 -1
- package/esm/formats/TemporalRangeFormat.js +1 -1
- package/esm/formats/TemporalRangeFormat.js.map +1 -1
- package/esm/formats/TemporalRangeFormat.spec.js +2 -2
- package/esm/formats/TemporalRangeFormat.spec.js.map +1 -1
- package/esm/formats/useDateTimeFormat.js +5 -2
- package/esm/formats/useDateTimeFormat.js.map +1 -1
- package/esm/formats/useNumberFormat.js +1 -1
- package/esm/formats/useNumberFormat.js.map +1 -1
- package/esm/formats/useRelativeTimeFormat.js +4 -2
- package/esm/formats/useRelativeTimeFormat.js.map +1 -1
- package/esm/forms/SearchForm.js +1 -1
- package/esm/forms/SearchForm.js.map +1 -1
- package/esm/getNavigatorLanguages.js.map +1 -1
- package/esm/getSupportedFormatLocale.js.map +1 -1
- package/esm/help/HelpDrawer.js +12 -8
- package/esm/help/HelpDrawer.js.map +1 -1
- package/esm/help/index.d.ts +1 -1
- package/esm/help/index.js +1 -1
- package/esm/help/index.js.map +1 -1
- package/esm/icons.d.ts +13 -13
- package/esm/icons.js +13 -13
- package/esm/icons.js.map +1 -1
- package/esm/layout/ErrorBoundary.js +36 -36
- package/esm/layout/ErrorBoundary.js.map +1 -1
- package/esm/layout/NotFound.js +6 -6
- package/esm/layout/NotFound.js.map +1 -1
- package/esm/layout/NotFoundSvg.js.map +1 -1
- package/esm/layout/UserNav.js +18 -18
- package/esm/layout/UserNav.js.map +1 -1
- package/esm/layout/index.d.ts +2 -2
- package/esm/layout/index.js +2 -2
- package/esm/layout/index.js.map +1 -1
- package/esm/logo/Logo.js +2 -2
- package/esm/logo/Logo.js.map +1 -1
- package/esm/logo/VCAppLogo.js +1 -1
- package/esm/logo/VCAppLogo.js.map +1 -1
- package/esm/logo/index.d.ts +3 -3
- package/esm/logo/index.js +3 -3
- package/esm/logo/index.js.map +1 -1
- package/esm/splash/index.js +2 -2
- package/esm/splash/index.js.map +1 -1
- package/esm/storage/MemoryStorage.d.ts +6 -4
- package/esm/storage/MemoryStorage.js +13 -4
- package/esm/storage/MemoryStorage.js.map +1 -1
- package/esm/storage/index.d.ts +2 -1
- package/esm/storage/index.js +1 -1
- package/esm/storage/index.js.map +1 -1
- package/esm/storage/storage.d.ts +6 -4
- package/esm/storage/storage.js +35 -15
- package/esm/storage/storage.js.map +1 -1
- package/esm/storage/types.d.ts +6 -0
- package/esm/storage/types.js +2 -0
- package/esm/storage/types.js.map +1 -0
- package/esm/storage/useStorage.d.ts +10 -1
- package/esm/storage/useStorage.js +18 -6
- package/esm/storage/useStorage.js.map +1 -1
- package/esm/tabs/Tabs.d.ts +2 -2
- package/esm/tabs/Tabs.js +15 -15
- package/esm/tabs/Tabs.js.map +1 -1
- package/esm/tabs/index.js.map +1 -1
- package/esm/temporal/index.d.ts +1 -1
- package/esm/temporal/index.js +1 -1
- package/esm/temporal/index.js.map +1 -1
- package/esm/temporal/parse.js.map +1 -1
- package/esm/temporal/polyfill.d.ts +1 -1
- package/esm/temporal/polyfill.js +3 -3
- package/esm/temporal/polyfill.js.map +1 -1
- package/esm/utils/defined.js.map +1 -1
- package/esm/utils/index.d.ts +1 -1
- package/esm/utils/index.js +1 -1
- package/esm/utils/index.js.map +1 -1
- package/esm/utils/useFlag.js.map +1 -1
- package/esm/utils/useIsMounted.js.map +1 -1
- package/package.json +8 -9
- package/src/AppShell/AppShell.tsx +147 -140
- package/src/AppShell/index.tsx +1 -1
- package/src/Input/ActionsMenu.tsx +70 -73
- package/src/Input/EmailSenderField.tsx +59 -52
- package/src/Input/Selector.tsx +15 -15
- package/src/LanguageSwitcher/index.ts +1 -1
- package/src/Paging/Paging.ts +56 -57
- package/src/Paging/index.ts +2 -1
- package/src/VCThemeProvider/JetbrainsMonoFont.tsx +52 -42
- package/src/VCThemeProvider/RobotoFont.tsx +47 -39
- package/src/VCThemeProvider/ThemeModeSwitcher.tsx +17 -17
- package/src/VCThemeProvider/VCThemeProvider.tsx +149 -145
- package/src/audit/AuditChanges.tsx +18 -12
- package/src/audit/AuditTimeline.tsx +16 -17
- package/src/audit/AuditTimelineItem.tsx +58 -61
- package/src/audit/index.ts +2 -2
- package/src/audit/types.ts +27 -28
- package/src/breadcrumbs.tsx +11 -15
- package/src/code/CodeBlock.tsx +10 -10
- package/src/confirm/ConfirmButton.tsx +56 -56
- package/src/confirm/ConfirmDialog.tsx +54 -54
- package/src/confirm/ConfirmMenuItem.tsx +51 -53
- package/src/container/ContainerLayout.tsx +7 -8
- package/src/container/ContainerSettingsContext.tsx +49 -46
- package/src/container/ContainerWidthControl.tsx +11 -9
- package/src/container/index.ts +8 -3
- package/src/content-table/ContentTable.tsx +235 -197
- package/src/content-table/UndrawEmpty.tsx +281 -281
- package/src/content-table/index.ts +1 -1
- package/src/country/country-select.tsx +0 -1
- package/src/country/index.ts +3 -3
- package/src/country/locale-select.tsx +36 -36
- package/src/country/locales.ts +185 -187
- package/src/country/phone-prefix-select.tsx +4 -5
- package/src/cube/accessibility.tsx +2 -1
- package/src/data-table/DataTableColumnSettings.tsx +181 -181
- package/src/data-table/DataTableHeader.tsx +6 -6
- package/src/data-table/DataTableToolbar.tsx +6 -6
- package/src/data-table/index.tsx +4 -4
- package/src/data-table/useDataTableColumnStorage.ts +30 -19
- package/src/data-table/useDataTableStorage.spec.ts +108 -0
- package/src/data-table/useDataTableStorage.ts +91 -36
- package/src/date-pickers/PlainAdapterCommon.ts +118 -120
- package/src/date-pickers/PlainDateAdapter.spec.ts +44 -46
- package/src/date-pickers/PlainDateAdapter.ts +130 -132
- package/src/date-pickers/PlainDatePicker.spec.tsx +17 -18
- package/src/date-pickers/PlainDatePicker.tsx +33 -36
- package/src/date-pickers/PlainDateTimeAdapter.spec.ts +44 -46
- package/src/date-pickers/PlainDateTimeAdapter.ts +141 -134
- package/src/date-pickers/PlainDateTimePicker.spec.tsx +17 -18
- package/src/date-pickers/PlainDateTimePicker.tsx +35 -36
- package/src/date-pickers/PlainTimeAdapter.ts +219 -221
- package/src/date-pickers/PlainTimePicker.spec.tsx +17 -18
- package/src/date-pickers/PlainTimePicker.tsx +35 -34
- package/src/date-pickers/TemporalAdapter.ts +110 -111
- package/src/date-pickers/TimezoneSelect.tsx +375 -375
- package/src/date-pickers/getFormatString.ts +29 -29
- package/src/date-pickers/index.ts +6 -5
- package/src/date-pickers/parse.spec.ts +37 -40
- package/src/date-pickers/parse.ts +44 -47
- package/src/date-pickers/timeframe-picker.tsx +16 -17
- package/src/date-pickers/useLocale.ts +1 -1
- package/src/date-pickers/useRenderInput.tsx +24 -15
- package/src/fetch.ts +4 -5
- package/src/formats/CompactFormat.spec.tsx +18 -20
- package/src/formats/CompactFormat.tsx +30 -30
- package/src/formats/CurrencyFormat.spec.tsx +18 -20
- package/src/formats/CurrencyFormat.tsx +52 -52
- package/src/formats/DecimalFormat.spec.tsx +18 -20
- package/src/formats/DecimalFormat.tsx +47 -47
- package/src/formats/DurationFormat.spec.tsx +48 -49
- package/src/formats/DurationFormat.tsx +51 -51
- package/src/formats/TemporalFormat.spec.tsx +93 -95
- package/src/formats/TemporalRangeFormat.spec.tsx +143 -144
- package/src/formats/TemporalRangeFormat.tsx +54 -54
- package/src/formats/types.ts +1 -3
- package/src/formats/useDateTimeFormat.ts +5 -2
- package/src/formats/useNumberFormat.ts +3 -3
- package/src/formats/useRelativeTimeFormat.ts +5 -3
- package/src/forms/SearchForm.tsx +37 -38
- package/src/getNavigatorLanguages.ts +4 -5
- package/src/getSupportedFormatLocale.ts +10 -10
- package/src/help/HelpDrawer.tsx +76 -55
- package/src/help/index.ts +3 -3
- package/src/icons.ts +21 -21
- package/src/layout/ErrorBoundary.tsx +226 -215
- package/src/layout/NotFound.tsx +36 -39
- package/src/layout/NotFoundSvg.tsx +193 -169
- package/src/layout/UserNav.tsx +98 -98
- package/src/layout/index.ts +3 -3
- package/src/logo/Logo.tsx +6 -7
- package/src/logo/VCAppLogo.tsx +22 -20
- package/src/logo/index.tsx +3 -3
- package/src/splash/index.tsx +25 -25
- package/src/storage/MemoryStorage.ts +22 -15
- package/src/storage/index.ts +2 -1
- package/src/storage/storage.spec.ts +184 -0
- package/src/storage/storage.ts +37 -15
- package/src/storage/types.ts +6 -0
- package/src/storage/useStorage.ts +21 -6
- package/src/tabs/Tabs.tsx +172 -170
- package/src/tabs/index.ts +1 -1
- package/src/temporal/index.ts +1 -1
- package/src/temporal/parse.ts +1 -2
- package/src/temporal/polyfill.ts +11 -11
- package/src/utils/defined.ts +2 -3
- package/src/utils/index.ts +1 -1
- package/src/utils/useFlag.ts +5 -5
- package/src/utils/useIsMounted.ts +9 -9
|
@@ -1,172 +1,196 @@
|
|
|
1
1
|
import React, {SVGProps} from "react";
|
|
2
2
|
|
|
3
3
|
export function NotFoundSvg(props: SVGProps<SVGSVGElement>) {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
4
|
+
return (
|
|
5
|
+
<svg
|
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
7
|
+
width="1120.592"
|
|
8
|
+
height="777.916"
|
|
9
|
+
data-name="Layer 1"
|
|
10
|
+
viewBox="0 0 1120.592 777.916"
|
|
11
|
+
{...props}
|
|
12
|
+
>
|
|
13
|
+
<circle cx="212.592" cy="103" r="64" fill="#ff6584"></circle>
|
|
14
|
+
<path
|
|
15
|
+
fill="#f2f2f2"
|
|
16
|
+
d="M563.68 404.164c0 151.011-89.774 203.739-200.515 203.739s-200.516-52.728-200.516-203.74 200.516-343.12 200.516-343.12 200.515 192.11 200.515 343.12z"
|
|
17
|
+
transform="translate(-39.704 -61.042)"
|
|
18
|
+
>
|
|
19
|
+
</path>
|
|
20
|
+
<path
|
|
21
|
+
fill="#3f3d56"
|
|
22
|
+
d="M316.156 523.761L318.21 397.378 403.674 241.024 318.532 377.552 319.455 320.725 378.357 207.605 319.699 305.687 319.699 305.687 321.359 203.481 384.433 113.423 321.621 187.409 322.658 0 316.138 248.096 316.674 237.861 252.547 139.704 315.646 257.508 309.671 371.654 309.493 368.625 235.565 265.329 309.269 379.328 308.522 393.603 308.388 393.818 308.449 394.99 293.29 684.589 313.544 684.589 315.974 535.005 389.496 421.285 316.156 523.761z"
|
|
23
|
+
>
|
|
24
|
+
</path>
|
|
25
|
+
<path
|
|
26
|
+
fill="#f2f2f2"
|
|
27
|
+
d="M1160.296 466.014c0 123.61-73.484 166.77-164.131 166.77s-164.132-43.16-164.132-166.77 164.132-280.862 164.132-280.862 164.131 157.252 164.131 280.862z"
|
|
28
|
+
transform="translate(-39.704 -61.042)"
|
|
29
|
+
>
|
|
30
|
+
</path>
|
|
31
|
+
<path
|
|
32
|
+
fill="#3f3d56"
|
|
33
|
+
d="M950.482 552.833L952.162 449.383 1022.119 321.4 952.426 433.154 953.182 386.639 1001.396 294.044 953.382 374.329 953.382 374.329 954.741 290.669 1006.369 216.952 954.954 277.514 955.804 124.11 950.467 327.188 950.906 318.811 898.414 238.464 950.064 334.893 945.173 428.327 945.027 425.847 884.514 341.294 944.844 434.608 944.232 446.293 944.123 446.469 944.173 447.428 931.764 684.478 948.343 684.478 950.332 562.037 1010.514 468.952 950.482 552.833z"
|
|
34
|
+
>
|
|
35
|
+
</path>
|
|
36
|
+
<ellipse
|
|
37
|
+
cx="554.592"
|
|
38
|
+
cy="680.479"
|
|
39
|
+
fill="#3f3d56"
|
|
40
|
+
rx="554.592"
|
|
41
|
+
ry="28.034"
|
|
42
|
+
>
|
|
43
|
+
</ellipse>
|
|
44
|
+
<ellipse
|
|
45
|
+
cx="892.445"
|
|
46
|
+
cy="726.797"
|
|
47
|
+
fill="#3f3d56"
|
|
48
|
+
rx="94.989"
|
|
49
|
+
ry="4.802"
|
|
50
|
+
>
|
|
51
|
+
</ellipse>
|
|
52
|
+
<ellipse
|
|
53
|
+
cx="548.72"
|
|
54
|
+
cy="773.114"
|
|
55
|
+
fill="#3f3d56"
|
|
56
|
+
rx="94.989"
|
|
57
|
+
ry="4.802"
|
|
58
|
+
>
|
|
59
|
+
</ellipse>
|
|
60
|
+
<ellipse
|
|
61
|
+
cx="287.944"
|
|
62
|
+
cy="734.279"
|
|
63
|
+
fill="#3f3d56"
|
|
64
|
+
rx="217.014"
|
|
65
|
+
ry="10.97"
|
|
66
|
+
>
|
|
67
|
+
</ellipse>
|
|
68
|
+
<circle cx="97.084" cy="566.27" r="79" fill="#2f2e41"></circle>
|
|
69
|
+
<path
|
|
70
|
+
fill="#2f2e41"
|
|
71
|
+
d="M99.805 689.023H123.805V732.023H99.805z"
|
|
72
|
+
transform="rotate(.675 5272.615 -2689.677)"
|
|
73
|
+
>
|
|
74
|
+
</path>
|
|
75
|
+
<path
|
|
76
|
+
fill="#2f2e41"
|
|
77
|
+
d="M147.802 689.589H171.802V732.589H147.802z"
|
|
78
|
+
transform="rotate(.675 5320.612 -2689.112)"
|
|
79
|
+
>
|
|
80
|
+
</path>
|
|
81
|
+
<ellipse
|
|
82
|
+
cx="119.546"
|
|
83
|
+
cy="732.616"
|
|
84
|
+
fill="#2f2e41"
|
|
85
|
+
rx="7.5"
|
|
86
|
+
ry="20"
|
|
87
|
+
transform="rotate(-89.325 68.811 722.182)"
|
|
88
|
+
>
|
|
89
|
+
</ellipse>
|
|
90
|
+
<ellipse
|
|
91
|
+
cx="167.554"
|
|
92
|
+
cy="732.182"
|
|
93
|
+
fill="#2f2e41"
|
|
94
|
+
rx="7.5"
|
|
95
|
+
ry="20"
|
|
96
|
+
transform="rotate(-89.325 116.82 721.748)"
|
|
97
|
+
>
|
|
98
|
+
</ellipse>
|
|
99
|
+
<circle cx="99.319" cy="546.295" r="27" fill="#fff"></circle>
|
|
100
|
+
<circle cx="99.319" cy="546.295" r="9" fill="#3f3d56"></circle>
|
|
101
|
+
<path
|
|
102
|
+
fill="#ff6a00"
|
|
103
|
+
d="M61.026 552.946c-6.042-28.64 14.687-57.264 46.3-63.933s62.139 11.143 68.18 39.783-14.978 38.93-46.59 45.6-61.848 7.191-67.89-21.45z"
|
|
104
|
+
transform="translate(-39.704 -61.042)"
|
|
105
|
+
>
|
|
106
|
+
</path>
|
|
107
|
+
<path
|
|
108
|
+
fill="#ff6a00"
|
|
109
|
+
d="M257.296 671.384c0 55.076-32.74 74.306-73.13 74.306q-1.403 0-2.802-.03c-1.872-.04-3.725-.13-5.557-.255-36.451-2.58-64.77-22.8-64.77-74.02 0-53.01 67.738-119.897 72.826-124.847l.009-.01.294-.284s73.13 70.064 73.13 125.14z"
|
|
110
|
+
transform="translate(-39.704 -61.042)"
|
|
111
|
+
>
|
|
112
|
+
</path>
|
|
113
|
+
<path
|
|
114
|
+
fill="#3f3d56"
|
|
115
|
+
d="M181.502 737.265l26.747-37.374-26.814 41.477-.071 4.291c-1.872-.04-3.725-.129-5.557-.254l2.883-55.102-.022-.428.049-.08.272-5.204-26.881-41.58 26.965 37.676.063 1.105 2.179-41.633-23.014-42.965 23.294 35.658 2.268-86.314.009-.294v.285l-.379 68.064 22.911-26.983-23.004 32.847-.606 37.275 21.391-35.774-21.48 41.259-.339 20.723 31.056-49.791-31.172 57.023z"
|
|
116
|
+
transform="translate(-39.704 -61.042)"
|
|
117
|
+
>
|
|
118
|
+
</path>
|
|
119
|
+
<circle cx="712.485" cy="565.415" r="79" fill="#2f2e41"></circle>
|
|
120
|
+
<path
|
|
121
|
+
fill="#2f2e41"
|
|
122
|
+
d="M741.777 691.824H765.777V734.824H741.777z"
|
|
123
|
+
transform="rotate(-17.083 530.717 814.976)"
|
|
124
|
+
>
|
|
125
|
+
</path>
|
|
126
|
+
<path
|
|
127
|
+
fill="#2f2e41"
|
|
128
|
+
d="M787.659 677.723H811.659V720.723H787.659z"
|
|
129
|
+
transform="rotate(-17.083 576.611 800.885)"
|
|
130
|
+
>
|
|
131
|
+
</path>
|
|
132
|
+
<ellipse
|
|
133
|
+
cx="767.887"
|
|
134
|
+
cy="732.003"
|
|
135
|
+
fill="#2f2e41"
|
|
136
|
+
rx="20"
|
|
137
|
+
ry="7.5"
|
|
138
|
+
transform="rotate(-17.083 544.826 833.656)"
|
|
139
|
+
>
|
|
140
|
+
</ellipse>
|
|
141
|
+
<ellipse
|
|
142
|
+
cx="813.475"
|
|
143
|
+
cy="716.946"
|
|
144
|
+
fill="#2f2e41"
|
|
145
|
+
rx="20"
|
|
146
|
+
ry="7.5"
|
|
147
|
+
transform="rotate(-17.083 590.415 818.599)"
|
|
148
|
+
>
|
|
149
|
+
</ellipse>
|
|
150
|
+
<circle cx="708.522" cy="545.71" r="27" fill="#fff"></circle>
|
|
151
|
+
<circle cx="708.522" cy="545.71" r="9" fill="#3f3d56"></circle>
|
|
152
|
+
<path
|
|
153
|
+
fill="#ff6a00"
|
|
154
|
+
d="M657.355 578.743c-14.49-25.433-3.478-59.016 24.594-75.009s62.576-8.34 77.066 17.093-2.39 41.643-30.463 57.636-56.707 25.713-71.197.28zM611.296 661.299c0 50.557-30.054 68.21-67.13 68.21q-1.288 0-2.572-.03a109.57 109.57 0 01-5.1-.232c-33.461-2.368-59.458-20.929-59.458-67.948 0-48.66 62.181-110.06 66.852-114.603l.008-.009.27-.261s67.13 64.316 67.13 114.873z"
|
|
155
|
+
transform="translate(-39.704 -61.042)"
|
|
156
|
+
>
|
|
157
|
+
</path>
|
|
158
|
+
<path
|
|
159
|
+
fill="#3f3d56"
|
|
160
|
+
d="M541.72 721.774l24.553-34.307-24.614 38.074-.065 3.939a109.57 109.57 0 01-5.1-.233l2.645-50.582-.02-.393.045-.073.25-4.777-24.676-38.169 24.753 34.586.058 1.014 2-38.217-21.126-39.44 21.383 32.732 2.082-79.232.008-.27v.261l-.347 62.48 21.03-24.77-21.116 30.152-.557 34.218 19.637-32.84-19.718 37.875-.311 19.023 28.507-45.707-28.614 52.345z"
|
|
161
|
+
transform="translate(-39.704 -61.042)"
|
|
162
|
+
>
|
|
163
|
+
</path>
|
|
164
|
+
<path
|
|
165
|
+
fill="#ff6a00"
|
|
166
|
+
d="M875.296 682.384c0 55.076-32.74 74.306-73.13 74.306q-1.403 0-2.802-.03c-1.872-.04-3.725-.13-5.557-.255-36.451-2.58-64.77-22.8-64.77-74.02 0-53.01 67.738-119.897 72.826-124.847l.009-.01.294-.284s73.13 70.064 73.13 125.14z"
|
|
167
|
+
transform="translate(-39.704 -61.042)"
|
|
168
|
+
>
|
|
169
|
+
</path>
|
|
170
|
+
<path
|
|
171
|
+
fill="#3f3d56"
|
|
172
|
+
d="M799.502 748.265l26.747-37.374-26.814 41.477-.071 4.291c-1.872-.04-3.725-.129-5.557-.254l2.883-55.102-.022-.428.049-.08.272-5.204-26.881-41.58 26.965 37.676.063 1.105 2.179-41.633-23.014-42.965 23.294 35.658 2.268-86.314.01-.294v.285l-.38 68.064 22.911-26.983-23.004 32.847-.606 37.275 21.391-35.774-21.48 41.259-.339 20.723 31.056-49.791-31.172 57.023z"
|
|
173
|
+
transform="translate(-39.704 -61.042)"
|
|
174
|
+
>
|
|
175
|
+
</path>
|
|
176
|
+
<ellipse
|
|
177
|
+
cx="721.517"
|
|
178
|
+
cy="656.822"
|
|
179
|
+
fill="#2f2e41"
|
|
180
|
+
rx="12.4"
|
|
181
|
+
ry="39.5"
|
|
182
|
+
transform="rotate(-64.626 653.41 657.688)"
|
|
183
|
+
>
|
|
184
|
+
</ellipse>
|
|
185
|
+
<ellipse
|
|
186
|
+
cx="112.517"
|
|
187
|
+
cy="651.822"
|
|
188
|
+
fill="#2f2e41"
|
|
189
|
+
rx="12.4"
|
|
190
|
+
ry="39.5"
|
|
191
|
+
transform="rotate(-68.158 47.55 650.645)"
|
|
192
|
+
>
|
|
193
|
+
</ellipse>
|
|
194
|
+
</svg>
|
|
195
|
+
);
|
|
196
|
+
}
|
package/src/layout/UserNav.tsx
CHANGED
|
@@ -1,107 +1,107 @@
|
|
|
1
|
-
import
|
|
1
|
+
import DarkModeIcon from "@mui/icons-material/DarkMode";
|
|
2
|
+
import LockIcon from "@mui/icons-material/Lock";
|
|
3
|
+
import PersonIcon from "@mui/icons-material/Person";
|
|
4
|
+
import LogoutIcon from "@mui/icons-material/PowerSettingsNew";
|
|
5
|
+
import SettingsIcon from "@mui/icons-material/Settings";
|
|
2
6
|
import {Avatar, Divider, ListItemIcon, ListItemText, Menu, MenuItem, useTheme} from "@mui/material";
|
|
3
|
-
import
|
|
4
|
-
import SettingsIcon from '@mui/icons-material/Settings';
|
|
5
|
-
import LockIcon from '@mui/icons-material/Lock';
|
|
6
|
-
import DarkModeIcon from '@mui/icons-material/DarkMode';
|
|
7
|
-
import LogoutIcon from '@mui/icons-material/PowerSettingsNew';
|
|
7
|
+
import React, {Fragment, useCallback, useState} from "react";
|
|
8
8
|
import {usePaletteMode} from "../VCThemeProvider";
|
|
9
9
|
|
|
10
10
|
type Props = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
11
|
+
onSettingClick?: () => void;
|
|
12
|
+
onChangePasswordClick?: () => void;
|
|
13
|
+
onLogoutClick?: () => void;
|
|
14
|
+
showDarkModeSwitch?: boolean;
|
|
15
|
+
i18n?: {
|
|
16
|
+
settings?: string;
|
|
17
|
+
changePassword?: string;
|
|
18
|
+
darkMode?: string;
|
|
19
|
+
logout?: string;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
22
|
|
|
23
23
|
export function UserNav(props: Props) {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
24
|
+
const {
|
|
25
|
+
onSettingClick,
|
|
26
|
+
onChangePasswordClick,
|
|
27
|
+
onLogoutClick,
|
|
28
|
+
showDarkModeSwitch,
|
|
29
|
+
i18n: {
|
|
30
|
+
settings,
|
|
31
|
+
changePassword,
|
|
32
|
+
darkMode,
|
|
33
|
+
logout,
|
|
34
|
+
} = {},
|
|
35
|
+
} = props;
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
const theme = useTheme();
|
|
38
|
+
const {mode, setMode} = usePaletteMode();
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
const [anchorEl, setAnchorEl] = useState<HTMLElement | null>(null);
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
42
|
+
return (
|
|
43
|
+
<Fragment>
|
|
44
|
+
<Avatar
|
|
45
|
+
sx={{
|
|
46
|
+
bgcolor: theme.palette.grey["500"],
|
|
47
|
+
width: 30,
|
|
48
|
+
height: 30,
|
|
49
|
+
cursor: "pointer",
|
|
50
|
+
}}
|
|
51
|
+
variant="circular"
|
|
52
|
+
onClick={ev => setAnchorEl(ev.currentTarget)}
|
|
53
|
+
>
|
|
54
|
+
<PersonIcon />
|
|
55
|
+
</Avatar>
|
|
56
|
+
<Menu
|
|
57
|
+
open={anchorEl !== null}
|
|
58
|
+
anchorEl={anchorEl}
|
|
59
|
+
onClose={() => setAnchorEl(null)}
|
|
60
|
+
anchorOrigin={{
|
|
61
|
+
vertical: "bottom",
|
|
62
|
+
horizontal: "right",
|
|
63
|
+
}}
|
|
64
|
+
transformOrigin={{
|
|
65
|
+
vertical: "top",
|
|
66
|
+
horizontal: "right",
|
|
67
|
+
}}
|
|
68
|
+
>
|
|
69
|
+
{onSettingClick && (
|
|
70
|
+
<MenuItem onClick={onSettingClick}>
|
|
71
|
+
<ListItemIcon>
|
|
72
|
+
<SettingsIcon fontSize="small" />
|
|
73
|
+
</ListItemIcon>
|
|
74
|
+
<ListItemText>{settings ?? "Settings"}</ListItemText>
|
|
75
|
+
</MenuItem>
|
|
76
|
+
)}
|
|
77
|
+
{onChangePasswordClick && (
|
|
78
|
+
<MenuItem onClick={onChangePasswordClick}>
|
|
79
|
+
<ListItemIcon>
|
|
80
|
+
<LockIcon fontSize="small" />
|
|
81
|
+
</ListItemIcon>
|
|
82
|
+
<ListItemText>{changePassword ?? "Change password"}</ListItemText>
|
|
83
|
+
</MenuItem>
|
|
84
|
+
)}
|
|
85
|
+
{showDarkModeSwitch && (
|
|
86
|
+
<MenuItem onClick={() => setMode((mode === "dark") ? "light" : "dark")}>
|
|
87
|
+
<ListItemIcon>
|
|
88
|
+
<DarkModeIcon fontSize="small" />
|
|
89
|
+
</ListItemIcon>
|
|
90
|
+
<ListItemText>{darkMode ?? "Dark Mode"}: {mode === "dark" ? "ON" : "OFF"}</ListItemText>
|
|
91
|
+
</MenuItem>
|
|
92
|
+
)}
|
|
93
|
+
{onLogoutClick && (
|
|
94
|
+
<Fragment>
|
|
95
|
+
<Divider />
|
|
96
|
+
<MenuItem onClick={onLogoutClick}>
|
|
97
|
+
<ListItemIcon>
|
|
98
|
+
<LogoutIcon fontSize="small" sx={{color: theme.palette.error.main}} />
|
|
99
|
+
</ListItemIcon>
|
|
100
|
+
<ListItemText sx={{color: theme.palette.error.main}}>{logout ?? "Logout"}</ListItemText>
|
|
101
|
+
</MenuItem>
|
|
102
|
+
</Fragment>
|
|
103
|
+
)}
|
|
104
|
+
</Menu>
|
|
105
|
+
</Fragment>
|
|
106
|
+
);
|
|
107
|
+
}
|
package/src/layout/index.ts
CHANGED
package/src/logo/Logo.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {useCustomLogo} from "../VCThemeProvider";
|
|
2
|
-
import React from "react";
|
|
3
1
|
import {Box, BoxProps} from "@mui/material";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import {useCustomLogo} from "../VCThemeProvider";
|
|
4
4
|
import {VCLogo} from "./VCLogo";
|
|
5
5
|
|
|
6
6
|
interface LogoProps extends Omit<BoxProps, "height"> {
|
|
@@ -8,7 +8,7 @@ interface LogoProps extends Omit<BoxProps, "height"> {
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export function Logo(props: LogoProps) {
|
|
11
|
-
const {height= 52, ...rest} = props;
|
|
11
|
+
const {height = 52, ...rest} = props;
|
|
12
12
|
const customLogo = useCustomLogo();
|
|
13
13
|
if (customLogo) {
|
|
14
14
|
const {url, paddingX, paddingY} = customLogo;
|
|
@@ -23,12 +23,11 @@ export function Logo(props: LogoProps) {
|
|
|
23
23
|
width="auto"
|
|
24
24
|
/>
|
|
25
25
|
</Box>
|
|
26
|
-
)
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
26
|
+
);
|
|
27
|
+
} else {
|
|
29
28
|
return (
|
|
30
29
|
<Box {...rest}>
|
|
31
|
-
<VCLogo height={height} width="auto"/>
|
|
30
|
+
<VCLogo height={height} width="auto" />
|
|
32
31
|
</Box>
|
|
33
32
|
);
|
|
34
33
|
}
|