@variocube/app-ui 1.14.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/README.md +65 -0
- package/esm/AppShell/AppShell.d.ts +12 -0
- package/esm/AppShell/AppShell.js +92 -0
- package/esm/AppShell/AppShell.js.map +1 -0
- package/esm/AppShell/index.d.ts +1 -0
- package/esm/AppShell/index.js +2 -0
- package/esm/AppShell/index.js.map +1 -0
- package/esm/ErrorAlert.d.ts +12 -0
- package/esm/ErrorAlert.js +61 -0
- package/esm/ErrorAlert.js.map +1 -0
- package/esm/Input/ActionsMenu.d.ts +9 -0
- package/esm/Input/ActionsMenu.js +29 -0
- package/esm/Input/ActionsMenu.js.map +1 -0
- package/esm/Input/Checkbox.d.ts +9 -0
- package/esm/Input/Checkbox.js +23 -0
- package/esm/Input/Checkbox.js.map +1 -0
- package/esm/Input/EmailSenderField.d.ts +8 -0
- package/esm/Input/EmailSenderField.js +71 -0
- package/esm/Input/EmailSenderField.js.map +1 -0
- package/esm/Input/NumberField.d.ts +10 -0
- package/esm/Input/NumberField.js +94 -0
- package/esm/Input/NumberField.js.map +1 -0
- package/esm/Input/RadioGroup.d.ts +12 -0
- package/esm/Input/RadioGroup.js +20 -0
- package/esm/Input/RadioGroup.js.map +1 -0
- package/esm/Input/Select.d.ts +11 -0
- package/esm/Input/Select.js +19 -0
- package/esm/Input/Select.js.map +1 -0
- package/esm/Input/Selector.d.ts +10 -0
- package/esm/Input/Selector.js +19 -0
- package/esm/Input/Selector.js.map +1 -0
- package/esm/Input/Switch.d.ts +9 -0
- package/esm/Input/Switch.js +23 -0
- package/esm/Input/Switch.js.map +1 -0
- package/esm/Input/TextField.d.ts +7 -0
- package/esm/Input/TextField.js +58 -0
- package/esm/Input/TextField.js.map +1 -0
- package/esm/Input/UrlUploadField.d.ts +9 -0
- package/esm/Input/UrlUploadField.js +43 -0
- package/esm/Input/UrlUploadField.js.map +1 -0
- package/esm/Input/index.d.ts +9 -0
- package/esm/Input/index.js +10 -0
- package/esm/Input/index.js.map +1 -0
- package/esm/LanguageSwitcher/LanguageSwitcher.d.ts +14 -0
- package/esm/LanguageSwitcher/LanguageSwitcher.js +20 -0
- package/esm/LanguageSwitcher/LanguageSwitcher.js.map +1 -0
- package/esm/LanguageSwitcher/index.d.ts +1 -0
- package/esm/LanguageSwitcher/index.js +2 -0
- package/esm/LanguageSwitcher/index.js.map +1 -0
- package/esm/Paging/Paging.d.ts +40 -0
- package/esm/Paging/Paging.js +43 -0
- package/esm/Paging/Paging.js.map +1 -0
- package/esm/Paging/index.d.ts +1 -0
- package/esm/Paging/index.js +2 -0
- package/esm/Paging/index.js.map +1 -0
- package/esm/VCThemeProvider/JetbrainsMonoFont.d.ts +5 -0
- package/esm/VCThemeProvider/JetbrainsMonoFont.js +52 -0
- package/esm/VCThemeProvider/JetbrainsMonoFont.js.map +1 -0
- package/esm/VCThemeProvider/RobotoFont.d.ts +7 -0
- package/esm/VCThemeProvider/RobotoFont.js +49 -0
- package/esm/VCThemeProvider/RobotoFont.js.map +1 -0
- package/esm/VCThemeProvider/ThemeModeSwitcher.d.ts +2 -0
- package/esm/VCThemeProvider/ThemeModeSwitcher.js +14 -0
- package/esm/VCThemeProvider/ThemeModeSwitcher.js.map +1 -0
- package/esm/VCThemeProvider/VCThemeProvider.d.ts +25 -0
- package/esm/VCThemeProvider/VCThemeProvider.js +173 -0
- package/esm/VCThemeProvider/VCThemeProvider.js.map +1 -0
- package/esm/VCThemeProvider/code-colors.d.ts +108 -0
- package/esm/VCThemeProvider/code-colors.js +26 -0
- package/esm/VCThemeProvider/code-colors.js.map +1 -0
- package/esm/VCThemeProvider/index.d.ts +5 -0
- package/esm/VCThemeProvider/index.js +6 -0
- package/esm/VCThemeProvider/index.js.map +1 -0
- package/esm/audit/AuditChanges.d.ts +9 -0
- package/esm/audit/AuditChanges.js +43 -0
- package/esm/audit/AuditChanges.js.map +1 -0
- package/esm/audit/AuditTimeline.d.ts +6 -0
- package/esm/audit/AuditTimeline.js +13 -0
- package/esm/audit/AuditTimeline.js.map +1 -0
- package/esm/audit/AuditTimelineItem.d.ts +10 -0
- package/esm/audit/AuditTimelineItem.js +27 -0
- package/esm/audit/AuditTimelineItem.js.map +1 -0
- package/esm/audit/index.d.ts +4 -0
- package/esm/audit/index.js +5 -0
- package/esm/audit/index.js.map +1 -0
- package/esm/audit/types.d.ts +42 -0
- package/esm/audit/types.js +2 -0
- package/esm/audit/types.js.map +1 -0
- package/esm/breadcrumbs.d.ts +6 -0
- package/esm/breadcrumbs.js +13 -0
- package/esm/breadcrumbs.js.map +1 -0
- package/esm/code/Code.d.ts +10 -0
- package/esm/code/Code.js +19 -0
- package/esm/code/Code.js.map +1 -0
- package/esm/code/CodeBlock.d.ts +4 -0
- package/esm/code/CodeBlock.js +6 -0
- package/esm/code/CodeBlock.js.map +1 -0
- package/esm/code/Json.d.ts +4 -0
- package/esm/code/Json.js +60 -0
- package/esm/code/Json.js.map +1 -0
- package/esm/code/index.d.ts +3 -0
- package/esm/code/index.js +4 -0
- package/esm/code/index.js.map +1 -0
- package/esm/confirm/ConfirmButton.d.ts +16 -0
- package/esm/confirm/ConfirmButton.js +29 -0
- package/esm/confirm/ConfirmButton.js.map +1 -0
- package/esm/confirm/ConfirmDialog.d.ts +16 -0
- package/esm/confirm/ConfirmDialog.js +35 -0
- package/esm/confirm/ConfirmDialog.js.map +1 -0
- package/esm/confirm/ConfirmIconButton.d.ts +14 -0
- package/esm/confirm/ConfirmIconButton.js +29 -0
- package/esm/confirm/ConfirmIconButton.js.map +1 -0
- package/esm/confirm/ConfirmMenuItem.d.ts +15 -0
- package/esm/confirm/ConfirmMenuItem.js +31 -0
- package/esm/confirm/ConfirmMenuItem.js.map +1 -0
- package/esm/confirm/index.d.ts +4 -0
- package/esm/confirm/index.js +5 -0
- package/esm/confirm/index.js.map +1 -0
- package/esm/container/ContainerLayout.d.ts +8 -0
- package/esm/container/ContainerLayout.js +20 -0
- package/esm/container/ContainerLayout.js.map +1 -0
- package/esm/container/ContainerSettingsContext.d.ts +12 -0
- package/esm/container/ContainerSettingsContext.js +46 -0
- package/esm/container/ContainerSettingsContext.js.map +1 -0
- package/esm/container/ContainerWidthControl.d.ts +6 -0
- package/esm/container/ContainerWidthControl.js +12 -0
- package/esm/container/ContainerWidthControl.js.map +1 -0
- package/esm/container/index.d.ts +3 -0
- package/esm/container/index.js +4 -0
- package/esm/container/index.js.map +1 -0
- package/esm/content-table/ContentTable.d.ts +25 -0
- package/esm/content-table/ContentTable.js +87 -0
- package/esm/content-table/ContentTable.js.map +1 -0
- package/esm/content-table/UndrawEmpty.d.ts +2 -0
- package/esm/content-table/UndrawEmpty.js +71 -0
- package/esm/content-table/UndrawEmpty.js.map +1 -0
- package/esm/content-table/index.d.ts +1 -0
- package/esm/content-table/index.js +2 -0
- package/esm/content-table/index.js.map +1 -0
- package/esm/country/countries.d.ts +34 -0
- package/esm/country/countries.js +266 -0
- package/esm/country/countries.js.map +1 -0
- package/esm/country/country-select.d.ts +8 -0
- package/esm/country/country-select.js +18 -0
- package/esm/country/country-select.js.map +1 -0
- package/esm/country/index.d.ts +5 -0
- package/esm/country/index.js +6 -0
- package/esm/country/index.js.map +1 -0
- package/esm/country/locale-select.d.ts +9 -0
- package/esm/country/locale-select.js +15 -0
- package/esm/country/locale-select.js.map +1 -0
- package/esm/country/locales.d.ts +10 -0
- package/esm/country/locales.js +190 -0
- package/esm/country/locales.js.map +1 -0
- package/esm/country/phone-prefix-select.d.ts +9 -0
- package/esm/country/phone-prefix-select.js +18 -0
- package/esm/country/phone-prefix-select.js.map +1 -0
- package/esm/cube/BoxFeatures.d.ts +11 -0
- package/esm/cube/BoxFeatures.js +40 -0
- package/esm/cube/BoxFeatures.js.map +1 -0
- package/esm/cube/BoxMaintenanceChip.d.ts +9 -0
- package/esm/cube/BoxMaintenanceChip.js +15 -0
- package/esm/cube/BoxMaintenanceChip.js.map +1 -0
- package/esm/cube/BoxNumber.d.ts +6 -0
- package/esm/cube/BoxNumber.js +6 -0
- package/esm/cube/BoxNumber.js.map +1 -0
- package/esm/cube/BoxType.d.ts +7 -0
- package/esm/cube/BoxType.js +21 -0
- package/esm/cube/BoxType.js.map +1 -0
- package/esm/cube/CubeConnectedChip.d.ts +9 -0
- package/esm/cube/CubeConnectedChip.js +22 -0
- package/esm/cube/CubeConnectedChip.js.map +1 -0
- package/esm/cube/LockStatusChip.d.ts +11 -0
- package/esm/cube/LockStatusChip.js +40 -0
- package/esm/cube/LockStatusChip.js.map +1 -0
- package/esm/cube/UtilizationBar.d.ts +11 -0
- package/esm/cube/UtilizationBar.js +38 -0
- package/esm/cube/UtilizationBar.js.map +1 -0
- package/esm/cube/accessibility.d.ts +48 -0
- package/esm/cube/accessibility.js +242 -0
- package/esm/cube/accessibility.js.map +1 -0
- package/esm/cube/index.d.ts +8 -0
- package/esm/cube/index.js +9 -0
- package/esm/cube/index.js.map +1 -0
- package/esm/data-table/DataTable.d.ts +63 -0
- package/esm/data-table/DataTable.js +124 -0
- package/esm/data-table/DataTable.js.map +1 -0
- package/esm/data-table/DataTableColumnSettings.d.ts +10 -0
- package/esm/data-table/DataTableColumnSettings.js +98 -0
- package/esm/data-table/DataTableColumnSettings.js.map +1 -0
- package/esm/data-table/DataTableHeader.d.ts +2 -0
- package/esm/data-table/DataTableHeader.js +6 -0
- package/esm/data-table/DataTableHeader.js.map +1 -0
- package/esm/data-table/DataTableToolbar.d.ts +2 -0
- package/esm/data-table/DataTableToolbar.js +6 -0
- package/esm/data-table/DataTableToolbar.js.map +1 -0
- package/esm/data-table/index.d.ts +8 -0
- package/esm/data-table/index.js +9 -0
- package/esm/data-table/index.js.map +1 -0
- package/esm/data-table/useDataTableColumnStorage.d.ts +5 -0
- package/esm/data-table/useDataTableColumnStorage.js +20 -0
- package/esm/data-table/useDataTableColumnStorage.js.map +1 -0
- package/esm/data-table/useDataTableStorage.d.ts +16 -0
- package/esm/data-table/useDataTableStorage.js +19 -0
- package/esm/data-table/useDataTableStorage.js.map +1 -0
- package/esm/data-table/useSpringPage.d.ts +6 -0
- package/esm/data-table/useSpringPage.js +18 -0
- package/esm/data-table/useSpringPage.js.map +1 -0
- package/esm/data-table/useSpringPageable.d.ts +9 -0
- package/esm/data-table/useSpringPageable.js +10 -0
- package/esm/data-table/useSpringPageable.js.map +1 -0
- package/esm/date-pickers/PlainAdapterCommon.d.ts +31 -0
- package/esm/date-pickers/PlainAdapterCommon.js +97 -0
- package/esm/date-pickers/PlainAdapterCommon.js.map +1 -0
- package/esm/date-pickers/PlainDateAdapter.d.ts +30 -0
- package/esm/date-pickers/PlainDateAdapter.js +114 -0
- package/esm/date-pickers/PlainDateAdapter.js.map +1 -0
- package/esm/date-pickers/PlainDatePicker.d.ts +21 -0
- package/esm/date-pickers/PlainDatePicker.js +26 -0
- package/esm/date-pickers/PlainDatePicker.js.map +1 -0
- package/esm/date-pickers/PlainDatePicker.spec.d.ts +1 -0
- package/esm/date-pickers/PlainDatePicker.spec.js +15 -0
- package/esm/date-pickers/PlainDatePicker.spec.js.map +1 -0
- package/esm/date-pickers/PlainDateTimeAdapter.d.ts +30 -0
- package/esm/date-pickers/PlainDateTimeAdapter.js +114 -0
- package/esm/date-pickers/PlainDateTimeAdapter.js.map +1 -0
- package/esm/date-pickers/PlainDateTimePicker.d.ts +20 -0
- package/esm/date-pickers/PlainDateTimePicker.js +26 -0
- package/esm/date-pickers/PlainDateTimePicker.js.map +1 -0
- package/esm/date-pickers/PlainDateTimePicker.spec.d.ts +1 -0
- package/esm/date-pickers/PlainDateTimePicker.spec.js +15 -0
- package/esm/date-pickers/PlainDateTimePicker.spec.js.map +1 -0
- package/esm/date-pickers/PlainTimeAdapter.d.ts +58 -0
- package/esm/date-pickers/PlainTimeAdapter.js +194 -0
- package/esm/date-pickers/PlainTimeAdapter.js.map +1 -0
- package/esm/date-pickers/PlainTimePicker.d.ts +16 -0
- package/esm/date-pickers/PlainTimePicker.js +24 -0
- package/esm/date-pickers/PlainTimePicker.js.map +1 -0
- package/esm/date-pickers/PlainTimePicker.spec.d.ts +1 -0
- package/esm/date-pickers/PlainTimePicker.spec.js +15 -0
- package/esm/date-pickers/PlainTimePicker.spec.js.map +1 -0
- package/esm/date-pickers/TemporalAdapter.d.ts +18 -0
- package/esm/date-pickers/TemporalAdapter.js +109 -0
- package/esm/date-pickers/TemporalAdapter.js.map +1 -0
- package/esm/date-pickers/TimezoneSelect.d.ts +9 -0
- package/esm/date-pickers/TimezoneSelect.js +357 -0
- package/esm/date-pickers/TimezoneSelect.js.map +1 -0
- package/esm/date-pickers/getFormatString.d.ts +11 -0
- package/esm/date-pickers/getFormatString.js +26 -0
- package/esm/date-pickers/getFormatString.js.map +1 -0
- package/esm/date-pickers/index.d.ts +5 -0
- package/esm/date-pickers/index.js +6 -0
- package/esm/date-pickers/index.js.map +1 -0
- package/esm/date-pickers/parse.d.ts +4 -0
- package/esm/date-pickers/parse.js +66 -0
- package/esm/date-pickers/parse.js.map +1 -0
- package/esm/date-pickers/timeframe-picker.d.ts +46 -0
- package/esm/date-pickers/timeframe-picker.js +120 -0
- package/esm/date-pickers/timeframe-picker.js.map +1 -0
- package/esm/date-pickers/useLocale.d.ts +1 -0
- package/esm/date-pickers/useLocale.js +6 -0
- package/esm/date-pickers/useLocale.js.map +1 -0
- package/esm/date-pickers/useRenderInput.d.ts +4 -0
- package/esm/date-pickers/useRenderInput.js +8 -0
- package/esm/date-pickers/useRenderInput.js.map +1 -0
- package/esm/fetch.d.ts +51 -0
- package/esm/fetch.js +138 -0
- package/esm/fetch.js.map +1 -0
- package/esm/filter/Filter.d.ts +38 -0
- package/esm/filter/Filter.js +72 -0
- package/esm/filter/Filter.js.map +1 -0
- package/esm/filter/index.d.ts +1 -0
- package/esm/filter/index.js +2 -0
- package/esm/filter/index.js.map +1 -0
- package/esm/formats/CompactFormat.d.ts +22 -0
- package/esm/formats/CompactFormat.js +21 -0
- package/esm/formats/CompactFormat.js.map +1 -0
- package/esm/formats/CompactFormat.spec.d.ts +1 -0
- package/esm/formats/CompactFormat.spec.js +22 -0
- package/esm/formats/CompactFormat.spec.js.map +1 -0
- package/esm/formats/CurrencyFormat.d.ts +39 -0
- package/esm/formats/CurrencyFormat.js +25 -0
- package/esm/formats/CurrencyFormat.js.map +1 -0
- package/esm/formats/CurrencyFormat.spec.d.ts +1 -0
- package/esm/formats/CurrencyFormat.spec.js +22 -0
- package/esm/formats/CurrencyFormat.spec.js.map +1 -0
- package/esm/formats/DecimalFormat.d.ts +29 -0
- package/esm/formats/DecimalFormat.js +22 -0
- package/esm/formats/DecimalFormat.js.map +1 -0
- package/esm/formats/DecimalFormat.spec.d.ts +1 -0
- package/esm/formats/DecimalFormat.spec.js +22 -0
- package/esm/formats/DecimalFormat.spec.js.map +1 -0
- package/esm/formats/DurationFormat.d.ts +23 -0
- package/esm/formats/DurationFormat.js +35 -0
- package/esm/formats/DurationFormat.js.map +1 -0
- package/esm/formats/DurationFormat.spec.d.ts +1 -0
- package/esm/formats/DurationFormat.spec.js +52 -0
- package/esm/formats/DurationFormat.spec.js.map +1 -0
- package/esm/formats/RelativeTemporalFormat.d.ts +22 -0
- package/esm/formats/RelativeTemporalFormat.js +57 -0
- package/esm/formats/RelativeTemporalFormat.js.map +1 -0
- package/esm/formats/RelativeTemporalFormat.spec.d.ts +1 -0
- package/esm/formats/RelativeTemporalFormat.spec.js +77 -0
- package/esm/formats/RelativeTemporalFormat.spec.js.map +1 -0
- package/esm/formats/SwitchableTemporalFormat.d.ts +5 -0
- package/esm/formats/SwitchableTemporalFormat.js +11 -0
- package/esm/formats/SwitchableTemporalFormat.js.map +1 -0
- package/esm/formats/TemporalFormat.d.ts +27 -0
- package/esm/formats/TemporalFormat.js +19 -0
- package/esm/formats/TemporalFormat.js.map +1 -0
- package/esm/formats/TemporalFormat.spec.d.ts +1 -0
- package/esm/formats/TemporalFormat.spec.js +87 -0
- package/esm/formats/TemporalFormat.spec.js.map +1 -0
- package/esm/formats/TemporalRangeFormat.d.ts +30 -0
- package/esm/formats/TemporalRangeFormat.js +17 -0
- package/esm/formats/TemporalRangeFormat.js.map +1 -0
- package/esm/formats/TemporalRangeFormat.spec.d.ts +1 -0
- package/esm/formats/TemporalRangeFormat.spec.js +87 -0
- package/esm/formats/TemporalRangeFormat.spec.js.map +1 -0
- package/esm/formats/index.d.ts +8 -0
- package/esm/formats/index.js +9 -0
- package/esm/formats/index.js.map +1 -0
- package/esm/formats/types.d.ts +2 -0
- package/esm/formats/types.js +2 -0
- package/esm/formats/types.js.map +1 -0
- package/esm/formats/useDateTimeFormat.d.ts +2 -0
- package/esm/formats/useDateTimeFormat.js +7 -0
- package/esm/formats/useDateTimeFormat.js.map +1 -0
- package/esm/formats/useNumberFormat.d.ts +1 -0
- package/esm/formats/useNumberFormat.js +6 -0
- package/esm/formats/useNumberFormat.js.map +1 -0
- package/esm/formats/useRelativeTimeFormat.d.ts +1 -0
- package/esm/formats/useRelativeTimeFormat.js +6 -0
- package/esm/formats/useRelativeTimeFormat.js.map +1 -0
- package/esm/forms/EditForm.d.ts +13 -0
- package/esm/forms/EditForm.js +22 -0
- package/esm/forms/EditForm.js.map +1 -0
- package/esm/forms/SearchForm.d.ts +7 -0
- package/esm/forms/SearchForm.js +36 -0
- package/esm/forms/SearchForm.js.map +1 -0
- package/esm/forms/SubmitButton.d.ts +9 -0
- package/esm/forms/SubmitButton.js +28 -0
- package/esm/forms/SubmitButton.js.map +1 -0
- package/esm/forms/index.d.ts +4 -0
- package/esm/forms/index.js +5 -0
- package/esm/forms/index.js.map +1 -0
- package/esm/forms/useFormSubmit.d.ts +12 -0
- package/esm/forms/useFormSubmit.js +28 -0
- package/esm/forms/useFormSubmit.js.map +1 -0
- package/esm/getNavigatorLanguages.d.ts +5 -0
- package/esm/getNavigatorLanguages.js +11 -0
- package/esm/getNavigatorLanguages.js.map +1 -0
- package/esm/getSupportedFormatLocale.d.ts +19 -0
- package/esm/getSupportedFormatLocale.js +21 -0
- package/esm/getSupportedFormatLocale.js.map +1 -0
- package/esm/help/HelpButton.d.ts +12 -0
- package/esm/help/HelpButton.js +74 -0
- package/esm/help/HelpButton.js.map +1 -0
- package/esm/help/HelpDrawer.d.ts +3 -0
- package/esm/help/HelpDrawer.js +48 -0
- package/esm/help/HelpDrawer.js.map +1 -0
- package/esm/help/HelpSettingsContext.d.ts +26 -0
- package/esm/help/HelpSettingsContext.js +94 -0
- package/esm/help/HelpSettingsContext.js.map +1 -0
- package/esm/help/index.d.ts +3 -0
- package/esm/help/index.js +4 -0
- package/esm/help/index.js.map +1 -0
- package/esm/icons.d.ts +21 -0
- package/esm/icons.js +22 -0
- package/esm/icons.js.map +1 -0
- package/esm/index.d.ts +34 -0
- package/esm/index.js +35 -0
- package/esm/index.js.map +1 -0
- package/esm/layout/ErrorBoundary.d.ts +46 -0
- package/esm/layout/ErrorBoundary.js +186 -0
- package/esm/layout/ErrorBoundary.js.map +1 -0
- package/esm/layout/NotFound.d.ts +9 -0
- package/esm/layout/NotFound.js +26 -0
- package/esm/layout/NotFound.js.map +1 -0
- package/esm/layout/NotFoundSvg.d.ts +2 -0
- package/esm/layout/NotFoundSvg.js +37 -0
- package/esm/layout/NotFoundSvg.js.map +1 -0
- package/esm/layout/UserNav.d.ts +15 -0
- package/esm/layout/UserNav.js +50 -0
- package/esm/layout/UserNav.js.map +1 -0
- package/esm/layout/index.d.ts +5 -0
- package/esm/layout/index.js +6 -0
- package/esm/layout/index.js.map +1 -0
- package/esm/layout/layout-context.d.ts +9 -0
- package/esm/layout/layout-context.js +23 -0
- package/esm/layout/layout-context.js.map +1 -0
- package/esm/layout/page-title.d.ts +7 -0
- package/esm/layout/page-title.js +41 -0
- package/esm/layout/page-title.js.map +1 -0
- package/esm/list/List.d.ts +14 -0
- package/esm/list/List.js +25 -0
- package/esm/list/List.js.map +1 -0
- package/esm/list/SkeletonListItem.d.ts +14 -0
- package/esm/list/SkeletonListItem.js +11 -0
- package/esm/list/SkeletonListItem.js.map +1 -0
- package/esm/list/index.d.ts +1 -0
- package/esm/list/index.js +2 -0
- package/esm/list/index.js.map +1 -0
- package/esm/localization.d.ts +140 -0
- package/esm/localization.js +200 -0
- package/esm/localization.js.map +1 -0
- package/esm/logo/Logo.d.ts +7 -0
- package/esm/logo/Logo.js +29 -0
- package/esm/logo/Logo.js.map +1 -0
- package/esm/logo/VCAppLogo.d.ts +7 -0
- package/esm/logo/VCAppLogo.js +28 -0
- package/esm/logo/VCAppLogo.js.map +1 -0
- package/esm/logo/VCLogo.d.ts +4 -0
- package/esm/logo/VCLogo.js +33 -0
- package/esm/logo/VCLogo.js.map +1 -0
- package/esm/logo/VCLogoIcon.d.ts +4 -0
- package/esm/logo/VCLogoIcon.js +36 -0
- package/esm/logo/VCLogoIcon.js.map +1 -0
- package/esm/logo/index.d.ts +4 -0
- package/esm/logo/index.js +5 -0
- package/esm/logo/index.js.map +1 -0
- package/esm/splash/index.d.ts +3 -0
- package/esm/splash/index.js +37 -0
- package/esm/splash/index.js.map +1 -0
- package/esm/spring.d.ts +14 -0
- package/esm/spring.js +2 -0
- package/esm/spring.js.map +1 -0
- package/esm/storage/MemoryStorage.d.ts +7 -0
- package/esm/storage/MemoryStorage.js +18 -0
- package/esm/storage/MemoryStorage.js.map +1 -0
- package/esm/storage/index.d.ts +2 -0
- package/esm/storage/index.js +3 -0
- package/esm/storage/index.js.map +1 -0
- package/esm/storage/storage.d.ts +16 -0
- package/esm/storage/storage.js +87 -0
- package/esm/storage/storage.js.map +1 -0
- package/esm/storage/useStorage.d.ts +1 -0
- package/esm/storage/useStorage.js +29 -0
- package/esm/storage/useStorage.js.map +1 -0
- package/esm/tabs/Tabs.d.ts +10 -0
- package/esm/tabs/Tabs.js +95 -0
- package/esm/tabs/Tabs.js.map +1 -0
- package/esm/tabs/index.d.ts +1 -0
- package/esm/tabs/index.js +2 -0
- package/esm/tabs/index.js.map +1 -0
- package/esm/temporal/index.d.ts +2 -0
- package/esm/temporal/index.js +3 -0
- package/esm/temporal/index.js.map +1 -0
- package/esm/temporal/parse.d.ts +4 -0
- package/esm/temporal/parse.js +25 -0
- package/esm/temporal/parse.js.map +1 -0
- package/esm/temporal/polyfill.d.ts +34 -0
- package/esm/temporal/polyfill.js +10 -0
- package/esm/temporal/polyfill.js.map +1 -0
- package/esm/utils/defined.d.ts +1 -0
- package/esm/utils/defined.js +4 -0
- package/esm/utils/defined.js.map +1 -0
- package/esm/utils/index.d.ts +3 -0
- package/esm/utils/index.js +4 -0
- package/esm/utils/index.js.map +1 -0
- package/esm/utils/useFlag.d.ts +1 -0
- package/esm/utils/useFlag.js +9 -0
- package/esm/utils/useFlag.js.map +1 -0
- package/esm/utils/useIsMounted.d.ts +1 -0
- package/esm/utils/useIsMounted.js +12 -0
- package/esm/utils/useIsMounted.js.map +1 -0
- package/esm/view/View.d.ts +9 -0
- package/esm/view/View.js +22 -0
- package/esm/view/View.js.map +1 -0
- package/esm/view/ViewHeader.d.ts +10 -0
- package/esm/view/ViewHeader.js +15 -0
- package/esm/view/ViewHeader.js.map +1 -0
- package/esm/view/index.d.ts +2 -0
- package/esm/view/index.js +3 -0
- package/esm/view/index.js.map +1 -0
- package/package.json +72 -0
- package/src/AppShell/AppShell.tsx +165 -0
- package/src/AppShell/index.tsx +1 -0
- package/src/ErrorAlert.tsx +71 -0
- package/src/Input/ActionsMenu.tsx +102 -0
- package/src/Input/Checkbox.tsx +33 -0
- package/src/Input/EmailSenderField.tsx +64 -0
- package/src/Input/NumberField.tsx +127 -0
- package/src/Input/RadioGroup.tsx +37 -0
- package/src/Input/Select.tsx +33 -0
- package/src/Input/Selector.tsx +21 -0
- package/src/Input/Switch.tsx +33 -0
- package/src/Input/TextField.tsx +69 -0
- package/src/Input/UrlUploadField.tsx +84 -0
- package/src/Input/index.ts +9 -0
- package/src/LanguageSwitcher/LanguageSwitcher.tsx +63 -0
- package/src/LanguageSwitcher/index.ts +1 -0
- package/src/Paging/Paging.ts +77 -0
- package/src/Paging/index.ts +1 -0
- package/src/VCThemeProvider/JetbrainsMonoFont.tsx +55 -0
- package/src/VCThemeProvider/RobotoFont.tsx +52 -0
- package/src/VCThemeProvider/ThemeModeSwitcher.tsx +23 -0
- package/src/VCThemeProvider/VCThemeProvider.tsx +232 -0
- package/src/VCThemeProvider/code-colors.ts +34 -0
- package/src/VCThemeProvider/files.d.ts +2 -0
- package/src/VCThemeProvider/index.ts +5 -0
- package/src/audit/AuditChanges.tsx +82 -0
- package/src/audit/AuditTimeline.tsx +25 -0
- package/src/audit/AuditTimelineItem.tsx +75 -0
- package/src/audit/index.ts +4 -0
- package/src/audit/types.ts +46 -0
- package/src/breadcrumbs.tsx +27 -0
- package/src/code/Code.tsx +53 -0
- package/src/code/CodeBlock.tsx +15 -0
- package/src/code/Json.tsx +73 -0
- package/src/code/index.ts +3 -0
- package/src/confirm/ConfirmButton.tsx +69 -0
- package/src/confirm/ConfirmDialog.tsx +68 -0
- package/src/confirm/ConfirmIconButton.tsx +62 -0
- package/src/confirm/ConfirmMenuItem.tsx +66 -0
- package/src/confirm/index.ts +4 -0
- package/src/container/ContainerLayout.tsx +40 -0
- package/src/container/ContainerSettingsContext.tsx +77 -0
- package/src/container/ContainerWidthControl.tsx +20 -0
- package/src/container/index.ts +3 -0
- package/src/content-table/ContentTable.tsx +214 -0
- package/src/content-table/UndrawEmpty.tsx +285 -0
- package/src/content-table/index.ts +1 -0
- package/src/country/countries.ts +268 -0
- package/src/country/country-select.tsx +48 -0
- package/src/country/index.ts +5 -0
- package/src/country/locale-select.tsx +43 -0
- package/src/country/locales.ts +192 -0
- package/src/country/phone-prefix-select.tsx +50 -0
- package/src/cube/BoxFeatures.tsx +91 -0
- package/src/cube/BoxMaintenanceChip.tsx +33 -0
- package/src/cube/BoxNumber.tsx +10 -0
- package/src/cube/BoxType.tsx +22 -0
- package/src/cube/CubeConnectedChip.tsx +16 -0
- package/src/cube/LockStatusChip.tsx +54 -0
- package/src/cube/UtilizationBar.tsx +94 -0
- package/src/cube/accessibility.tsx +422 -0
- package/src/cube/index.tsx +8 -0
- package/src/data-table/DataTable.tsx +338 -0
- package/src/data-table/DataTableColumnSettings.tsx +204 -0
- package/src/data-table/DataTableHeader.tsx +10 -0
- package/src/data-table/DataTableToolbar.tsx +10 -0
- package/src/data-table/index.tsx +8 -0
- package/src/data-table/useDataTableColumnStorage.ts +26 -0
- package/src/data-table/useDataTableStorage.ts +43 -0
- package/src/data-table/useSpringPage.ts +21 -0
- package/src/data-table/useSpringPageable.ts +25 -0
- package/src/date-pickers/PlainAdapterCommon.ts +125 -0
- package/src/date-pickers/PlainDateAdapter.spec.ts +50 -0
- package/src/date-pickers/PlainDateAdapter.ts +139 -0
- package/src/date-pickers/PlainDatePicker.spec.tsx +22 -0
- package/src/date-pickers/PlainDatePicker.tsx +73 -0
- package/src/date-pickers/PlainDateTimeAdapter.spec.ts +50 -0
- package/src/date-pickers/PlainDateTimeAdapter.ts +140 -0
- package/src/date-pickers/PlainDateTimePicker.spec.tsx +22 -0
- package/src/date-pickers/PlainDateTimePicker.tsx +65 -0
- package/src/date-pickers/PlainTimeAdapter.ts +247 -0
- package/src/date-pickers/PlainTimePicker.spec.tsx +22 -0
- package/src/date-pickers/PlainTimePicker.tsx +45 -0
- package/src/date-pickers/TemporalAdapter.ts +150 -0
- package/src/date-pickers/TimezoneSelect.tsx +387 -0
- package/src/date-pickers/getFormatString.ts +38 -0
- package/src/date-pickers/index.ts +5 -0
- package/src/date-pickers/parse.spec.ts +43 -0
- package/src/date-pickers/parse.ts +72 -0
- package/src/date-pickers/timeframe-picker.tsx +202 -0
- package/src/date-pickers/useLocale.ts +6 -0
- package/src/date-pickers/useRenderInput.tsx +20 -0
- package/src/fetch.spec.ts +85 -0
- package/src/fetch.ts +165 -0
- package/src/filter/Filter.tsx +194 -0
- package/src/filter/index.ts +1 -0
- package/src/formats/CompactFormat.spec.tsx +25 -0
- package/src/formats/CompactFormat.tsx +48 -0
- package/src/formats/CurrencyFormat.spec.tsx +25 -0
- package/src/formats/CurrencyFormat.tsx +77 -0
- package/src/formats/DecimalFormat.spec.tsx +25 -0
- package/src/formats/DecimalFormat.tsx +59 -0
- package/src/formats/DurationFormat.spec.tsx +57 -0
- package/src/formats/DurationFormat.tsx +72 -0
- package/src/formats/RelativeTemporalFormat.spec.tsx +84 -0
- package/src/formats/RelativeTemporalFormat.tsx +86 -0
- package/src/formats/SwitchableTemporalFormat.tsx +17 -0
- package/src/formats/TemporalFormat.spec.tsx +110 -0
- package/src/formats/TemporalFormat.tsx +58 -0
- package/src/formats/TemporalRangeFormat.spec.tsx +159 -0
- package/src/formats/TemporalRangeFormat.tsx +62 -0
- package/src/formats/index.ts +8 -0
- package/src/formats/types.ts +4 -0
- package/src/formats/useDateTimeFormat.ts +7 -0
- package/src/formats/useNumberFormat.ts +6 -0
- package/src/formats/useRelativeTimeFormat.ts +6 -0
- package/src/forms/EditForm.tsx +69 -0
- package/src/forms/SearchForm.tsx +51 -0
- package/src/forms/SubmitButton.tsx +34 -0
- package/src/forms/index.ts +4 -0
- package/src/forms/useFormSubmit.tsx +28 -0
- package/src/getNavigatorLanguages.ts +11 -0
- package/src/getSupportedFormatLocale.ts +24 -0
- package/src/help/HelpButton.tsx +134 -0
- package/src/help/HelpDrawer.tsx +65 -0
- package/src/help/HelpSettingsContext.tsx +178 -0
- package/src/help/index.ts +3 -0
- package/src/icons.ts +23 -0
- package/src/index.ts +34 -0
- package/src/layout/ErrorBoundary.tsx +232 -0
- package/src/layout/NotFound.tsx +51 -0
- package/src/layout/NotFoundSvg.tsx +172 -0
- package/src/layout/UserNav.tsx +107 -0
- package/src/layout/index.ts +5 -0
- package/src/layout/layout-context.tsx +40 -0
- package/src/layout/page-title.tsx +33 -0
- package/src/list/List.tsx +40 -0
- package/src/list/SkeletonListItem.tsx +50 -0
- package/src/list/index.tsx +1 -0
- package/src/localization.tsx +404 -0
- package/src/logo/Logo.tsx +35 -0
- package/src/logo/VCAppLogo.tsx +28 -0
- package/src/logo/VCLogo.tsx +56 -0
- package/src/logo/VCLogoIcon.tsx +55 -0
- package/src/logo/V_C_LOGO.svg +1 -0
- package/src/logo/V_C_LOGO_ICON.svg +1 -0
- package/src/logo/V_C_LOGO_ICON_WHITE.svg +1 -0
- package/src/logo/V_C_LOGO_WHITE.svg +1 -0
- package/src/logo/index.tsx +4 -0
- package/src/splash/index.tsx +34 -0
- package/src/splash/template.html +86 -0
- package/src/spring.ts +15 -0
- package/src/storage/MemoryStorage.ts +21 -0
- package/src/storage/index.ts +2 -0
- package/src/storage/storage.ts +97 -0
- package/src/storage/useStorage.ts +35 -0
- package/src/tabs/Tabs.tsx +187 -0
- package/src/tabs/index.ts +1 -0
- package/src/temporal/index.ts +2 -0
- package/src/temporal/parse.ts +29 -0
- package/src/temporal/polyfill.ts +36 -0
- package/src/utils/defined.ts +4 -0
- package/src/utils/index.ts +3 -0
- package/src/utils/useFlag.ts +9 -0
- package/src/utils/useIsMounted.ts +12 -0
- package/src/view/View.tsx +22 -0
- package/src/view/ViewHeader.tsx +35 -0
- package/src/view/index.ts +2 -0
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import React, {SVGProps} from "react";
|
|
2
|
+
|
|
3
|
+
export function NotFoundSvg(props: SVGProps<SVGSVGElement>) {
|
|
4
|
+
|
|
5
|
+
return (
|
|
6
|
+
<svg
|
|
7
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
8
|
+
width="1120.592"
|
|
9
|
+
height="777.916"
|
|
10
|
+
data-name="Layer 1"
|
|
11
|
+
viewBox="0 0 1120.592 777.916"
|
|
12
|
+
{...props}
|
|
13
|
+
>
|
|
14
|
+
<circle cx="212.592" cy="103" r="64" fill="#ff6584"></circle>
|
|
15
|
+
<path
|
|
16
|
+
fill="#f2f2f2"
|
|
17
|
+
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"
|
|
18
|
+
transform="translate(-39.704 -61.042)"
|
|
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
|
+
></path>
|
|
24
|
+
<path
|
|
25
|
+
fill="#f2f2f2"
|
|
26
|
+
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"
|
|
27
|
+
transform="translate(-39.704 -61.042)"
|
|
28
|
+
></path>
|
|
29
|
+
<path
|
|
30
|
+
fill="#3f3d56"
|
|
31
|
+
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"
|
|
32
|
+
></path>
|
|
33
|
+
<ellipse
|
|
34
|
+
cx="554.592"
|
|
35
|
+
cy="680.479"
|
|
36
|
+
fill="#3f3d56"
|
|
37
|
+
rx="554.592"
|
|
38
|
+
ry="28.034"
|
|
39
|
+
></ellipse>
|
|
40
|
+
<ellipse
|
|
41
|
+
cx="892.445"
|
|
42
|
+
cy="726.797"
|
|
43
|
+
fill="#3f3d56"
|
|
44
|
+
rx="94.989"
|
|
45
|
+
ry="4.802"
|
|
46
|
+
></ellipse>
|
|
47
|
+
<ellipse
|
|
48
|
+
cx="548.72"
|
|
49
|
+
cy="773.114"
|
|
50
|
+
fill="#3f3d56"
|
|
51
|
+
rx="94.989"
|
|
52
|
+
ry="4.802"
|
|
53
|
+
></ellipse>
|
|
54
|
+
<ellipse
|
|
55
|
+
cx="287.944"
|
|
56
|
+
cy="734.279"
|
|
57
|
+
fill="#3f3d56"
|
|
58
|
+
rx="217.014"
|
|
59
|
+
ry="10.97"
|
|
60
|
+
></ellipse>
|
|
61
|
+
<circle cx="97.084" cy="566.27" r="79" fill="#2f2e41"></circle>
|
|
62
|
+
<path
|
|
63
|
+
fill="#2f2e41"
|
|
64
|
+
d="M99.805 689.023H123.805V732.023H99.805z"
|
|
65
|
+
transform="rotate(.675 5272.615 -2689.677)"
|
|
66
|
+
></path>
|
|
67
|
+
<path
|
|
68
|
+
fill="#2f2e41"
|
|
69
|
+
d="M147.802 689.589H171.802V732.589H147.802z"
|
|
70
|
+
transform="rotate(.675 5320.612 -2689.112)"
|
|
71
|
+
></path>
|
|
72
|
+
<ellipse
|
|
73
|
+
cx="119.546"
|
|
74
|
+
cy="732.616"
|
|
75
|
+
fill="#2f2e41"
|
|
76
|
+
rx="7.5"
|
|
77
|
+
ry="20"
|
|
78
|
+
transform="rotate(-89.325 68.811 722.182)"
|
|
79
|
+
></ellipse>
|
|
80
|
+
<ellipse
|
|
81
|
+
cx="167.554"
|
|
82
|
+
cy="732.182"
|
|
83
|
+
fill="#2f2e41"
|
|
84
|
+
rx="7.5"
|
|
85
|
+
ry="20"
|
|
86
|
+
transform="rotate(-89.325 116.82 721.748)"
|
|
87
|
+
></ellipse>
|
|
88
|
+
<circle cx="99.319" cy="546.295" r="27" fill="#fff"></circle>
|
|
89
|
+
<circle cx="99.319" cy="546.295" r="9" fill="#3f3d56"></circle>
|
|
90
|
+
<path
|
|
91
|
+
fill="#ff6a00"
|
|
92
|
+
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"
|
|
93
|
+
transform="translate(-39.704 -61.042)"
|
|
94
|
+
></path>
|
|
95
|
+
<path
|
|
96
|
+
fill="#ff6a00"
|
|
97
|
+
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"
|
|
98
|
+
transform="translate(-39.704 -61.042)"
|
|
99
|
+
></path>
|
|
100
|
+
<path
|
|
101
|
+
fill="#3f3d56"
|
|
102
|
+
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"
|
|
103
|
+
transform="translate(-39.704 -61.042)"
|
|
104
|
+
></path>
|
|
105
|
+
<circle cx="712.485" cy="565.415" r="79" fill="#2f2e41"></circle>
|
|
106
|
+
<path
|
|
107
|
+
fill="#2f2e41"
|
|
108
|
+
d="M741.777 691.824H765.777V734.824H741.777z"
|
|
109
|
+
transform="rotate(-17.083 530.717 814.976)"
|
|
110
|
+
></path>
|
|
111
|
+
<path
|
|
112
|
+
fill="#2f2e41"
|
|
113
|
+
d="M787.659 677.723H811.659V720.723H787.659z"
|
|
114
|
+
transform="rotate(-17.083 576.611 800.885)"
|
|
115
|
+
></path>
|
|
116
|
+
<ellipse
|
|
117
|
+
cx="767.887"
|
|
118
|
+
cy="732.003"
|
|
119
|
+
fill="#2f2e41"
|
|
120
|
+
rx="20"
|
|
121
|
+
ry="7.5"
|
|
122
|
+
transform="rotate(-17.083 544.826 833.656)"
|
|
123
|
+
></ellipse>
|
|
124
|
+
<ellipse
|
|
125
|
+
cx="813.475"
|
|
126
|
+
cy="716.946"
|
|
127
|
+
fill="#2f2e41"
|
|
128
|
+
rx="20"
|
|
129
|
+
ry="7.5"
|
|
130
|
+
transform="rotate(-17.083 590.415 818.599)"
|
|
131
|
+
></ellipse>
|
|
132
|
+
<circle cx="708.522" cy="545.71" r="27" fill="#fff"></circle>
|
|
133
|
+
<circle cx="708.522" cy="545.71" r="9" fill="#3f3d56"></circle>
|
|
134
|
+
<path
|
|
135
|
+
fill="#ff6a00"
|
|
136
|
+
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"
|
|
137
|
+
transform="translate(-39.704 -61.042)"
|
|
138
|
+
></path>
|
|
139
|
+
<path
|
|
140
|
+
fill="#3f3d56"
|
|
141
|
+
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"
|
|
142
|
+
transform="translate(-39.704 -61.042)"
|
|
143
|
+
></path>
|
|
144
|
+
<path
|
|
145
|
+
fill="#ff6a00"
|
|
146
|
+
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"
|
|
147
|
+
transform="translate(-39.704 -61.042)"
|
|
148
|
+
></path>
|
|
149
|
+
<path
|
|
150
|
+
fill="#3f3d56"
|
|
151
|
+
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"
|
|
152
|
+
transform="translate(-39.704 -61.042)"
|
|
153
|
+
></path>
|
|
154
|
+
<ellipse
|
|
155
|
+
cx="721.517"
|
|
156
|
+
cy="656.822"
|
|
157
|
+
fill="#2f2e41"
|
|
158
|
+
rx="12.4"
|
|
159
|
+
ry="39.5"
|
|
160
|
+
transform="rotate(-64.626 653.41 657.688)"
|
|
161
|
+
></ellipse>
|
|
162
|
+
<ellipse
|
|
163
|
+
cx="112.517"
|
|
164
|
+
cy="651.822"
|
|
165
|
+
fill="#2f2e41"
|
|
166
|
+
rx="12.4"
|
|
167
|
+
ry="39.5"
|
|
168
|
+
transform="rotate(-68.158 47.55 650.645)"
|
|
169
|
+
></ellipse>
|
|
170
|
+
</svg>
|
|
171
|
+
)
|
|
172
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import React, {Fragment, useCallback, useState} from "react";
|
|
2
|
+
import {Avatar, Divider, ListItemIcon, ListItemText, Menu, MenuItem, useTheme} from "@mui/material";
|
|
3
|
+
import PersonIcon from '@mui/icons-material/Person';
|
|
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';
|
|
8
|
+
import {usePaletteMode} from "../VCThemeProvider";
|
|
9
|
+
|
|
10
|
+
type Props = {
|
|
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
|
+
|
|
23
|
+
export function UserNav(props: Props) {
|
|
24
|
+
const {
|
|
25
|
+
onSettingClick,
|
|
26
|
+
onChangePasswordClick,
|
|
27
|
+
onLogoutClick,
|
|
28
|
+
showDarkModeSwitch,
|
|
29
|
+
i18n: {
|
|
30
|
+
settings,
|
|
31
|
+
changePassword,
|
|
32
|
+
darkMode,
|
|
33
|
+
logout
|
|
34
|
+
} = {}
|
|
35
|
+
} = props;
|
|
36
|
+
|
|
37
|
+
const theme = useTheme();
|
|
38
|
+
const {mode, setMode} = usePaletteMode();
|
|
39
|
+
|
|
40
|
+
const [anchorEl, setAnchorEl] = useState<HTMLElement|null>(null);
|
|
41
|
+
|
|
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
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React, {createContext, PropsWithChildren, useContext, useEffect, useMemo, useState} from "react";
|
|
2
|
+
|
|
3
|
+
interface LayoutContextType {
|
|
4
|
+
setPageTitle: (name?: string) => void;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
const LayoutContext = createContext<LayoutContextType>({
|
|
8
|
+
setPageTitle: () => void 0,
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
interface LayoutProviderProps {
|
|
12
|
+
appName: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export function LayoutProvider({appName, children}: PropsWithChildren<LayoutProviderProps>) {
|
|
16
|
+
const [pageTitle, setPageTitle] = useState<string>();
|
|
17
|
+
|
|
18
|
+
useEffect(() => {
|
|
19
|
+
document.title = pageTitle ? `${pageTitle} | ${appName}` : appName;
|
|
20
|
+
}, [pageTitle]);
|
|
21
|
+
|
|
22
|
+
const value = useMemo(() => ({setPageTitle}), []);
|
|
23
|
+
|
|
24
|
+
return (
|
|
25
|
+
<LayoutContext.Provider value={value}>
|
|
26
|
+
{children}
|
|
27
|
+
</LayoutContext.Provider>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export const useLayoutContext = () => {
|
|
32
|
+
const value = useContext(LayoutContext);
|
|
33
|
+
if (!value) {
|
|
34
|
+
throw new Error("Cannot find layout context. Are you missing a LayoutProvider in your component tree?");
|
|
35
|
+
}
|
|
36
|
+
const {setPageTitle} = value;
|
|
37
|
+
return {
|
|
38
|
+
setPageTitle,
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import {Typography, TypographyProps} from "@mui/material";
|
|
2
|
+
import React, {isValidElement, ReactNode, useEffect} from "react";
|
|
3
|
+
import {useLayoutContext} from "./layout-context";
|
|
4
|
+
|
|
5
|
+
interface PageTitleProps extends Omit<TypographyProps, "children" | "ref" | "title"> {
|
|
6
|
+
title?: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function PageTitle({title, variant = "h1", ...rest}: Readonly<PageTitleProps>) {
|
|
10
|
+
const {setPageTitle} = useLayoutContext();
|
|
11
|
+
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
setPageTitle(reactNodeToString(title));
|
|
14
|
+
}, [title]);
|
|
15
|
+
|
|
16
|
+
return <Typography variant={variant} component="h1" title="title" {...rest}>{title}</Typography>;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function reactNodeToString(reactNode?: React.ReactNode): string {
|
|
20
|
+
let string = "";
|
|
21
|
+
if (typeof reactNode === "string") {
|
|
22
|
+
string = reactNode;
|
|
23
|
+
} else if (typeof reactNode === "number") {
|
|
24
|
+
string = reactNode.toString();
|
|
25
|
+
} else if (reactNode instanceof Array) {
|
|
26
|
+
reactNode.forEach(function(child) {
|
|
27
|
+
string += reactNodeToString(child);
|
|
28
|
+
});
|
|
29
|
+
} else if (isValidElement(reactNode)) {
|
|
30
|
+
string += reactNodeToString(reactNode.props.children);
|
|
31
|
+
}
|
|
32
|
+
return string;
|
|
33
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import {List as MuiList, ListProps as MuiListProps} from "@mui/material";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import {ErrorAlert} from "../ErrorAlert";
|
|
4
|
+
import {SkeletonListItem, SkeletonListItemProps} from "./SkeletonListItem";
|
|
5
|
+
|
|
6
|
+
export type ListProps = MuiListProps & {
|
|
7
|
+
/** Whether the list is loading and skeleton list items should be shown. */
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
|
|
10
|
+
/** The error that should be shown. */
|
|
11
|
+
error?: any;
|
|
12
|
+
|
|
13
|
+
/** The number of skeleton items to show. */
|
|
14
|
+
items?: number;
|
|
15
|
+
|
|
16
|
+
/** Properties of the skeleton list items. */
|
|
17
|
+
skeleton?: SkeletonListItemProps;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export function List(props: ListProps) {
|
|
21
|
+
const {
|
|
22
|
+
children,
|
|
23
|
+
error,
|
|
24
|
+
loading,
|
|
25
|
+
items = 3,
|
|
26
|
+
skeleton = {},
|
|
27
|
+
...listProps
|
|
28
|
+
} = props;
|
|
29
|
+
|
|
30
|
+
if (error) {
|
|
31
|
+
return <ErrorAlert error={error} />;
|
|
32
|
+
}
|
|
33
|
+
return (
|
|
34
|
+
<MuiList {...listProps}>
|
|
35
|
+
{loading
|
|
36
|
+
? Array.from({length: items}).map(() => <SkeletonListItem {...skeleton} />)
|
|
37
|
+
: children}
|
|
38
|
+
</MuiList>
|
|
39
|
+
);
|
|
40
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import {ListItem, ListItemIcon, ListItemSecondaryAction, ListItemText, Skeleton} from "@mui/material";
|
|
2
|
+
import React, {Fragment} from "react";
|
|
3
|
+
|
|
4
|
+
export interface SkeletonListItemProps {
|
|
5
|
+
/** Whether the list item has an icon. */
|
|
6
|
+
icon?: boolean;
|
|
7
|
+
|
|
8
|
+
/** Whether the list item has a primary text. */
|
|
9
|
+
primary?: boolean;
|
|
10
|
+
|
|
11
|
+
/** The number of lines in the secondary text. */
|
|
12
|
+
secondary?: number;
|
|
13
|
+
|
|
14
|
+
/** Whether the list item has a secondary action. */
|
|
15
|
+
action?: boolean;
|
|
16
|
+
|
|
17
|
+
/** Whether the list item has a divider. */
|
|
18
|
+
divider?: boolean;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export function SkeletonListItem(props: Readonly<SkeletonListItemProps>) {
|
|
22
|
+
const {
|
|
23
|
+
icon = true,
|
|
24
|
+
primary = true,
|
|
25
|
+
secondary = 1,
|
|
26
|
+
action = false,
|
|
27
|
+
divider = false,
|
|
28
|
+
} = props;
|
|
29
|
+
|
|
30
|
+
return (
|
|
31
|
+
<ListItem divider={divider}>
|
|
32
|
+
{icon && (
|
|
33
|
+
<ListItemIcon>
|
|
34
|
+
<Skeleton variant="circular" width={40} height={40} />
|
|
35
|
+
</ListItemIcon>
|
|
36
|
+
)}
|
|
37
|
+
<ListItemText
|
|
38
|
+
primary={primary && <Skeleton variant="text" />}
|
|
39
|
+
secondary={
|
|
40
|
+
<Fragment>
|
|
41
|
+
{Array.from({length: secondary}).map(() => <Skeleton variant="text" />)}
|
|
42
|
+
</Fragment>
|
|
43
|
+
}
|
|
44
|
+
/>
|
|
45
|
+
<ListItemSecondaryAction>
|
|
46
|
+
{action && <Skeleton variant="rounded" width={40} height={40} />}
|
|
47
|
+
</ListItemSecondaryAction>
|
|
48
|
+
</ListItem>
|
|
49
|
+
);
|
|
50
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { List } from "./List";
|