@plumile/ui 0.1.134 → 0.1.142
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 +129 -15
- package/lib/esm/admin/organisms/admin_sidebar/AdminSidebar.js +4 -4
- package/lib/esm/admin/organisms/admin_sidebar/adminSidebar.css.js +0 -2
- package/lib/esm/admin/organisms/admin_topbar/adminTopbar.css.js +1 -0
- package/lib/esm/admin/templates/admin_shell_layout/AdminShellLayout.js +2 -2
- package/lib/esm/admin/templates/admin_shell_layout/AdminShellLayout.js.map +1 -1
- package/lib/esm/atomic/atoms/badge/Badge.js.map +1 -1
- package/lib/esm/atomic/atoms/error_message/ErrorMessage.js +9 -8
- package/lib/esm/atomic/atoms/error_message/ErrorMessage.js.map +1 -1
- package/lib/esm/atomic/atoms/error_message/errorMessage.css.js +1 -0
- package/lib/esm/atomic/molecules/card/Card.js +17 -19
- package/lib/esm/atomic/molecules/card/Card.js.map +1 -1
- package/lib/esm/atomic/molecules/empty-state/EmptyState.css.js +80 -2
- package/lib/esm/atomic/molecules/empty-state/EmptyState.css.js.map +1 -1
- package/lib/esm/atomic/molecules/empty-state/EmptyState.js +50 -28
- package/lib/esm/atomic/molecules/empty-state/EmptyState.js.map +1 -1
- package/lib/esm/atomic/molecules/form_error/FormError.js +29 -19
- package/lib/esm/atomic/molecules/form_error/FormError.js.map +1 -1
- package/lib/esm/atomic/molecules/form_error/formError.css.js +1 -1
- package/lib/esm/atomic/molecules/form_error/formError.css.js.map +1 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownDelete.css.js +0 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownHeading.css.js +1 -0
- package/lib/esm/atomic/molecules/tabs/Tabs.js +82 -28
- package/lib/esm/atomic/molecules/tabs/Tabs.js.map +1 -1
- package/lib/esm/atomic/molecules/tabs/tabs.css.js +50 -8
- package/lib/esm/atomic/molecules/tabs/tabs.css.js.map +1 -1
- package/lib/esm/atomic/organisms/sidebar/NavigationSidebar.js +48 -48
- package/lib/esm/atomic/organisms/sidebar/NavigationSidebar.js.map +1 -1
- package/lib/esm/backoffice/atoms/status_badge/StatusBadge.js.map +1 -1
- package/lib/esm/backoffice/molecules/backoffice_audit_metadata_panel/BackofficeAuditMetadataPanel.js +38 -0
- package/lib/esm/backoffice/molecules/backoffice_audit_metadata_panel/BackofficeAuditMetadataPanel.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_field/BackofficeDetailField.js +35 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_field/BackofficeDetailField.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_field/backofficeDetailField.css.js +16 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_field/backofficeDetailField.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_flag_tag/BackofficeDetailFlagTag.js +25 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_flag_tag/BackofficeDetailFlagTag.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_flag_tag/backofficeDetailFlagTag.css.js +8 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_flag_tag/backofficeDetailFlagTag.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_section/BackofficeDetailSection.js +37 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_section/BackofficeDetailSection.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_section/backofficeDetailSection.css.js +8 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_section/backofficeDetailSection.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_tagged_value/BackofficeDetailTaggedValue.js +19 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_tagged_value/BackofficeDetailTaggedValue.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_tagged_value/backofficeDetailTaggedValue.css.js +8 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_tagged_value/backofficeDetailTaggedValue.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_empty_state/BackofficeEmptyState.js +15 -32
- package/lib/esm/backoffice/molecules/backoffice_empty_state/BackofficeEmptyState.js.map +1 -1
- package/lib/esm/backoffice/molecules/backoffice_enum_label/BackofficeEnumLabel.js +11 -0
- package/lib/esm/backoffice/molecules/backoffice_enum_label/BackofficeEnumLabel.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_form_section/BackofficeFormSection.js +17 -18
- package/lib/esm/backoffice/molecules/backoffice_form_section/BackofficeFormSection.js.map +1 -1
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.helpers.js +12 -0
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.helpers.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.js +15 -20
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.js.map +1 -1
- package/lib/esm/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.js +23 -16
- package/lib/esm/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.js.map +1 -1
- package/lib/esm/backoffice/molecules/backoffice_key_value_list/backofficeKeyValueList.css.js +2 -2
- package/lib/esm/backoffice/molecules/backoffice_key_value_list/backofficeKeyValueList.css.js.map +1 -1
- package/lib/esm/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.helpers.js +11 -0
- package/lib/esm/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.helpers.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.js +55 -0
- package/lib/esm/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_list_footer/backofficeListFooter.css.js +8 -0
- package/lib/esm/backoffice/molecules/backoffice_list_footer/backofficeListFooter.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.helpers.js +15 -0
- package/lib/esm/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.helpers.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.js +63 -0
- package/lib/esm/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_payload_viewer/backofficePayloadViewer.css.js +8 -0
- package/lib/esm/backoffice/molecules/backoffice_payload_viewer/backofficePayloadViewer.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_picker/BackofficePicker.js +76 -0
- package/lib/esm/backoffice/molecules/backoffice_picker/BackofficePicker.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_picker/backofficePicker.css.js +8 -0
- package/lib/esm/backoffice/molecules/backoffice_picker/backofficePicker.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_reference_value/BackofficeReferenceValue.js +23 -0
- package/lib/esm/backoffice/molecules/backoffice_reference_value/BackofficeReferenceValue.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_reference_value/backofficeReferenceValue.css.js +8 -0
- package/lib/esm/backoffice/molecules/backoffice_reference_value/backofficeReferenceValue.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_scope_stack/BackofficeScopeStack.js +18 -0
- package/lib/esm/backoffice/molecules/backoffice_scope_stack/BackofficeScopeStack.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_status_group/BackofficeStatusGroup.js +8 -0
- package/lib/esm/backoffice/molecules/backoffice_status_group/BackofficeStatusGroup.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_status_meta_badge/BackofficeStatusMetaBadge.js +28 -0
- package/lib/esm/backoffice/molecules/backoffice_status_meta_badge/BackofficeStatusMetaBadge.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_status_meta_badge/backofficeStatusMetaBadge.css.js +8 -0
- package/lib/esm/backoffice/molecules/backoffice_status_meta_badge/backofficeStatusMetaBadge.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_toolbar/BackofficeToolbar.js +60 -0
- package/lib/esm/backoffice/molecules/backoffice_toolbar/BackofficeToolbar.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_toolbar/backofficeToolbar.css.js +14 -0
- package/lib/esm/backoffice/molecules/backoffice_toolbar/backofficeToolbar.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/bulk_actions_bar/bulkActionsBar.css.js +1 -1
- package/lib/esm/backoffice/molecules/bulk_actions_bar/bulkActionsBar.css.js.map +1 -1
- package/lib/esm/backoffice/molecules/confirm_dialog/ConfirmDialog.js +3 -3
- package/lib/esm/backoffice/molecules/confirm_dialog/ConfirmDialog.js.map +1 -1
- package/lib/esm/backoffice/molecules/global_search_input/GlobalSearchInput.js +4 -4
- package/lib/esm/backoffice/molecules/sidebar_collapse_toggle/sidebarCollapseToggle.css.js +1 -1
- package/lib/esm/backoffice/molecules/sidebar_collapse_toggle/sidebarCollapseToggle.css.js.map +1 -1
- package/lib/esm/backoffice/molecules/sidebar_nav_item/SidebarNavItem.js +60 -60
- package/lib/esm/backoffice/molecules/sidebar_nav_item/SidebarNavItem.js.map +1 -1
- package/lib/esm/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.js +2 -2
- package/lib/esm/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.js.map +1 -1
- package/lib/esm/backoffice/molecules/sidebar_nav_section/SidebarNavSection.js +96 -96
- package/lib/esm/backoffice/molecules/sidebar_nav_section/SidebarNavSection.js.map +1 -1
- package/lib/esm/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.js +2 -2
- package/lib/esm/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.js.map +1 -1
- package/lib/esm/backoffice/molecules/sidebar_profile_menu/BackofficeSidebarProfileMenu.js +52 -52
- package/lib/esm/backoffice/molecules/sidebar_profile_menu/BackofficeSidebarProfileMenu.js.map +1 -1
- package/lib/esm/backoffice/molecules/sidebar_profile_menu/sidebarProfileMenu.css.js +6 -6
- package/lib/esm/backoffice/molecules/sidebar_profile_menu/sidebarProfileMenu.css.js.map +1 -1
- package/lib/esm/backoffice/organisms/audit_timeline/AuditTimeline.js +69 -34
- package/lib/esm/backoffice/organisms/audit_timeline/AuditTimeline.js.map +1 -1
- package/lib/esm/backoffice/organisms/audit_timeline/auditTimeline.css.js +22 -2
- package/lib/esm/backoffice/organisms/audit_timeline/auditTimeline.css.js.map +1 -1
- package/lib/esm/backoffice/organisms/backoffice_data_table/BackofficeDataTable.js +4 -4
- package/lib/esm/backoffice/organisms/backoffice_data_table/BackofficeDataTable.js.map +1 -1
- package/lib/esm/backoffice/templates/detail_page_template/DetailPageTemplate.js +70 -40
- package/lib/esm/backoffice/templates/detail_page_template/DetailPageTemplate.js.map +1 -1
- package/lib/esm/backoffice/templates/detail_page_template/detailPageTemplate.css.js +66 -3
- package/lib/esm/backoffice/templates/detail_page_template/detailPageTemplate.css.js.map +1 -1
- package/lib/esm/components/dashboard/activity_card/ActivityCard.js +4 -4
- package/lib/esm/components/dashboard/dashboard_metric_group/DashboardMetricGroup.css.js +9 -0
- package/lib/esm/components/dashboard/dashboard_metric_group/DashboardMetricGroup.css.js.map +1 -0
- package/lib/esm/components/dashboard/dashboard_metric_group/DashboardMetricGroup.js +30 -0
- package/lib/esm/components/dashboard/dashboard_metric_group/DashboardMetricGroup.js.map +1 -0
- package/lib/esm/components/dashboard/dashboard_panel/DashboardPanel.css.js +8 -0
- package/lib/esm/components/dashboard/dashboard_panel/DashboardPanel.css.js.map +1 -0
- package/lib/esm/components/dashboard/dashboard_panel/DashboardPanel.js +16 -0
- package/lib/esm/components/dashboard/dashboard_panel/DashboardPanel.js.map +1 -0
- package/lib/esm/components/dashboard/dashboard_quick_actions/DashboardQuickActions.css.js +8 -0
- package/lib/esm/components/dashboard/dashboard_quick_actions/DashboardQuickActions.css.js.map +1 -0
- package/lib/esm/components/dashboard/dashboard_quick_actions/DashboardQuickActions.js +27 -0
- package/lib/esm/components/dashboard/dashboard_quick_actions/DashboardQuickActions.js.map +1 -0
- package/lib/esm/components/dashboard/dashboard_status_list/DashboardStatusList.css.js +8 -0
- package/lib/esm/components/dashboard/dashboard_status_list/DashboardStatusList.css.js.map +1 -0
- package/lib/esm/components/dashboard/dashboard_status_list/DashboardStatusList.js +28 -0
- package/lib/esm/components/dashboard/dashboard_status_list/DashboardStatusList.js.map +1 -0
- package/lib/esm/components/dashboard/metric_card/MetricCard.css.js +30 -2
- package/lib/esm/components/dashboard/metric_card/MetricCard.css.js.map +1 -1
- package/lib/esm/components/dashboard/metric_card/MetricCard.js +40 -26
- package/lib/esm/components/dashboard/metric_card/MetricCard.js.map +1 -1
- package/lib/esm/components/dashboard/metric_tile_group/MetricTileGroup.css.js +23 -2
- package/lib/esm/components/dashboard/metric_tile_group/MetricTileGroup.css.js.map +1 -1
- package/lib/esm/components/dashboard/metric_tile_group/MetricTileGroup.js +16 -4
- package/lib/esm/components/dashboard/metric_tile_group/MetricTileGroup.js.map +1 -1
- package/lib/esm/components/dashboard/status_summary_panel/StatusSummaryPanel.js +4 -4
- package/lib/esm/components/dashboard/timeline_event_row/TimelineEventRow.css.js +14 -2
- package/lib/esm/components/dashboard/timeline_event_row/TimelineEventRow.css.js.map +1 -1
- package/lib/esm/components/dashboard/timeline_event_row/TimelineEventRow.js +46 -25
- package/lib/esm/components/dashboard/timeline_event_row/TimelineEventRow.js.map +1 -1
- package/lib/esm/components/data-table/DataTable.css.js +19 -19
- package/lib/esm/components/data-table/DataTable.css.js.map +1 -1
- package/lib/esm/components/data-table/DataTable.js +142 -76
- package/lib/esm/components/data-table/DataTable.js.map +1 -1
- package/lib/esm/components/data-table/ResponsiveRecordList.js.map +1 -1
- package/lib/esm/components/data-table/VirtualizedConnectionTable.css.js +2 -2
- package/lib/esm/components/data-table/VirtualizedConnectionTable.css.js.map +1 -1
- package/lib/esm/components/data-table/VirtualizedConnectionTable.js +177 -170
- package/lib/esm/components/data-table/VirtualizedConnectionTable.js.map +1 -1
- package/lib/esm/components/feedback/InlineBanner.js +49 -0
- package/lib/esm/components/feedback/InlineBanner.js.map +1 -0
- package/lib/esm/components/feedback/OperationFeedback.css.js +2 -2
- package/lib/esm/components/feedback/OperationFeedback.css.js.map +1 -1
- package/lib/esm/components/feedback/OperationFeedback.js +20 -24
- package/lib/esm/components/feedback/OperationFeedback.js.map +1 -1
- package/lib/esm/components/feedback/inlineBanner.css.js +19 -0
- package/lib/esm/components/feedback/inlineBanner.css.js.map +1 -0
- package/lib/esm/components/infinite/InfiniteScrollTrigger.js +31 -23
- package/lib/esm/components/infinite/InfiniteScrollTrigger.js.map +1 -1
- package/lib/esm/components/layout/ActionPanel.css.js +2 -2
- package/lib/esm/components/layout/ActionPanel.css.js.map +1 -1
- package/lib/esm/components/layout/ActionPanel.js +29 -35
- package/lib/esm/components/layout/ActionPanel.js.map +1 -1
- package/lib/esm/components/layout/PageShell.css.js +2 -20
- package/lib/esm/components/layout/PageShell.css.js.map +1 -1
- package/lib/esm/components/layout/PageShell.js +155 -279
- package/lib/esm/components/layout/PageShell.js.map +1 -1
- package/lib/esm/components/layout/ResizableSplitView.css.js +8 -0
- package/lib/esm/components/layout/ResizableSplitView.css.js.map +1 -0
- package/lib/esm/components/layout/ResizableSplitView.js +176 -0
- package/lib/esm/components/layout/ResizableSplitView.js.map +1 -0
- package/lib/esm/components/layout/Surface.css.js +41 -0
- package/lib/esm/components/layout/Surface.css.js.map +1 -0
- package/lib/esm/components/layout/Surface.js +61 -0
- package/lib/esm/components/layout/Surface.js.map +1 -0
- package/lib/esm/components/layout/toolbar/Toolbar.css.js +64 -0
- package/lib/esm/components/layout/toolbar/Toolbar.css.js.map +1 -0
- package/lib/esm/components/layout/toolbar/Toolbar.js +36 -0
- package/lib/esm/components/layout/toolbar/Toolbar.js.map +1 -0
- package/lib/esm/components/navigation/sidebar/SidebarNavigation.js +89 -0
- package/lib/esm/components/navigation/sidebar/SidebarNavigation.js.map +1 -0
- package/lib/esm/components/navigation/sidebar/SidebarNavigationItem.js +2 -0
- package/lib/esm/components/navigation/sidebar/SidebarNavigationSection.js +2 -0
- package/lib/esm/components/navigation/sidebar/SidebarProfileMenu.js +2 -0
- package/lib/esm/components/navigation/sidebar/sidebarNavigation.css.js +48 -0
- package/lib/esm/components/navigation/sidebar/sidebarNavigation.css.js.map +1 -0
- package/lib/esm/components/subscriptions/RefetchNeededBanner.js +16 -23
- package/lib/esm/components/subscriptions/RefetchNeededBanner.js.map +1 -1
- package/lib/esm/i18n/locales/en/ui.js +16 -5
- package/lib/esm/i18n/locales/en/ui.js.map +1 -1
- package/lib/esm/i18n/locales/fr/ui.js +16 -5
- package/lib/esm/i18n/locales/fr/ui.js.map +1 -1
- package/lib/esm/index.js +237 -233
- package/lib/esm/internal/data-table/virtualization.js +1 -1
- package/lib/esm/internal/data-table/virtualization.js.map +1 -1
- package/lib/esm/internal/infinite/infiniteLoad.js +23 -0
- package/lib/esm/internal/infinite/infiniteLoad.js.map +1 -0
- package/lib/esm/node_modules/dompurify/dist/purify.es.js +290 -246
- package/lib/esm/node_modules/dompurify/dist/purify.es.js.map +1 -1
- package/lib/esm/node_modules/katex/dist/katex.js +1561 -1599
- package/lib/esm/node_modules/katex/dist/katex.js.map +1 -1
- package/lib/esm/style.css +1 -1
- package/lib/esm/theme/backofficeTheme.css.js +100 -0
- package/lib/esm/theme/backofficeTheme.css.js.map +1 -1
- package/lib/esm/theme/publicTheme.css.js +100 -0
- package/lib/esm/theme/publicTheme.css.js.map +1 -1
- package/lib/esm/theme/theme.css.js +200 -0
- package/lib/esm/theme/themeContract.css.js +359 -309
- package/lib/esm/theme/themeContract.css.js.map +1 -1
- package/lib/types/admin/templates/admin_shell_layout/AdminShellLayout.d.ts +4 -4
- package/lib/types/admin/templates/admin_shell_layout/AdminShellLayout.d.ts.map +1 -1
- package/lib/types/atomic/atoms/badge/Badge.d.ts +3 -3
- package/lib/types/atomic/atoms/badge/Badge.d.ts.map +1 -1
- package/lib/types/atomic/atoms/error_message/ErrorMessage.d.ts +1 -1
- package/lib/types/atomic/atoms/error_message/ErrorMessage.d.ts.map +1 -1
- package/lib/types/atomic/molecules/card/Card.d.ts.map +1 -1
- package/lib/types/atomic/molecules/empty-state/EmptyState.css.d.ts +56 -5
- package/lib/types/atomic/molecules/empty-state/EmptyState.css.d.ts.map +1 -1
- package/lib/types/atomic/molecules/empty-state/EmptyState.d.ts +14 -4
- package/lib/types/atomic/molecules/empty-state/EmptyState.d.ts.map +1 -1
- package/lib/types/atomic/molecules/form_error/FormError.d.ts +5 -2
- package/lib/types/atomic/molecules/form_error/FormError.d.ts.map +1 -1
- package/lib/types/atomic/molecules/form_error/formError.css.d.ts.map +1 -1
- package/lib/types/atomic/molecules/tabs/Tabs.d.ts +16 -7
- package/lib/types/atomic/molecules/tabs/Tabs.d.ts.map +1 -1
- package/lib/types/atomic/molecules/tabs/tabs.css.d.ts +21 -2
- package/lib/types/atomic/molecules/tabs/tabs.css.d.ts.map +1 -1
- package/lib/types/backoffice/atoms/status_badge/StatusBadge.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/backoffice_audit_metadata_panel/BackofficeAuditMetadataPanel.d.ts +21 -0
- package/lib/types/backoffice/molecules/backoffice_audit_metadata_panel/BackofficeAuditMetadataPanel.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_detail_field/BackofficeDetailField.d.ts +17 -0
- package/lib/types/backoffice/molecules/backoffice_detail_field/BackofficeDetailField.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_detail_field/backofficeDetailField.css.d.ts +14 -0
- package/lib/types/backoffice/molecules/backoffice_detail_field/backofficeDetailField.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_detail_flag_tag/BackofficeDetailFlagTag.d.ts +11 -0
- package/lib/types/backoffice/molecules/backoffice_detail_flag_tag/BackofficeDetailFlagTag.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_detail_flag_tag/backofficeDetailFlagTag.css.d.ts +4 -0
- package/lib/types/backoffice/molecules/backoffice_detail_flag_tag/backofficeDetailFlagTag.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_detail_section/BackofficeDetailSection.d.ts +12 -0
- package/lib/types/backoffice/molecules/backoffice_detail_section/BackofficeDetailSection.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_detail_section/backofficeDetailSection.css.d.ts +6 -0
- package/lib/types/backoffice/molecules/backoffice_detail_section/backofficeDetailSection.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_detail_tagged_value/BackofficeDetailTaggedValue.d.ts +13 -0
- package/lib/types/backoffice/molecules/backoffice_detail_tagged_value/BackofficeDetailTaggedValue.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_detail_tagged_value/backofficeDetailTaggedValue.css.d.ts +3 -0
- package/lib/types/backoffice/molecules/backoffice_detail_tagged_value/backofficeDetailTaggedValue.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_empty_state/BackofficeEmptyState.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/backoffice_enum_label/BackofficeEnumLabel.d.ts +9 -0
- package/lib/types/backoffice/molecules/backoffice_enum_label/BackofficeEnumLabel.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_form_section/BackofficeFormSection.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.d.ts +0 -3
- package/lib/types/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.helpers.d.ts +5 -0
- package/lib/types/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.helpers.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.d.ts +8 -2
- package/lib/types/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/backoffice_key_value_list/backofficeKeyValueList.css.d.ts +3 -0
- package/lib/types/backoffice/molecules/backoffice_key_value_list/backofficeKeyValueList.css.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.d.ts +23 -0
- package/lib/types/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.helpers.d.ts +25 -0
- package/lib/types/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.helpers.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/{backoffice_infinite_list_status/backofficeInfiniteListStatus.css.d.ts → backoffice_list_footer/backofficeListFooter.css.d.ts} +3 -2
- package/lib/types/backoffice/molecules/backoffice_list_footer/backofficeListFooter.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.d.ts +26 -0
- package/lib/types/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.helpers.d.ts +7 -0
- package/lib/types/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.helpers.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_payload_viewer/backofficePayloadViewer.css.d.ts +6 -0
- package/lib/types/backoffice/molecules/backoffice_payload_viewer/backofficePayloadViewer.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_picker/BackofficePicker.d.ts +35 -0
- package/lib/types/backoffice/molecules/backoffice_picker/BackofficePicker.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_picker/backofficePicker.css.d.ts +9 -0
- package/lib/types/backoffice/molecules/backoffice_picker/backofficePicker.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_reference_value/BackofficeReferenceValue.d.ts +10 -0
- package/lib/types/backoffice/molecules/backoffice_reference_value/BackofficeReferenceValue.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_reference_value/backofficeReferenceValue.css.d.ts +3 -0
- package/lib/types/backoffice/molecules/backoffice_reference_value/backofficeReferenceValue.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_scope_stack/BackofficeScopeStack.d.ts +15 -0
- package/lib/types/backoffice/molecules/backoffice_scope_stack/BackofficeScopeStack.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_status_group/BackofficeStatusGroup.d.ts +8 -0
- package/lib/types/backoffice/molecules/backoffice_status_group/BackofficeStatusGroup.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_status_meta_badge/BackofficeStatusMetaBadge.d.ts +14 -0
- package/lib/types/backoffice/molecules/backoffice_status_meta_badge/BackofficeStatusMetaBadge.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_status_meta_badge/backofficeStatusMetaBadge.css.d.ts +2 -0
- package/lib/types/backoffice/molecules/backoffice_status_meta_badge/backofficeStatusMetaBadge.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_toolbar/BackofficeToolbar.d.ts +22 -0
- package/lib/types/backoffice/molecules/backoffice_toolbar/BackofficeToolbar.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_toolbar/backofficeToolbar.css.d.ts +18 -0
- package/lib/types/backoffice/molecules/backoffice_toolbar/backofficeToolbar.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/bulk_actions_bar/bulkActionsBar.css.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/sidebar_collapse_toggle/sidebarCollapseToggle.css.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/sidebar_nav_item/SidebarNavItem.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.d.ts +1 -0
- package/lib/types/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/sidebar_nav_section/SidebarNavSection.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.d.ts +2 -0
- package/lib/types/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/sidebar_profile_menu/BackofficeSidebarProfileMenu.d.ts.map +1 -1
- package/lib/types/backoffice/molecules/sidebar_profile_menu/sidebarProfileMenu.css.d.ts +8 -0
- package/lib/types/backoffice/molecules/sidebar_profile_menu/sidebarProfileMenu.css.d.ts.map +1 -1
- package/lib/types/backoffice/organisms/audit_timeline/AuditTimeline.d.ts +20 -2
- package/lib/types/backoffice/organisms/audit_timeline/AuditTimeline.d.ts.map +1 -1
- package/lib/types/backoffice/organisms/audit_timeline/auditTimeline.css.d.ts +32 -2
- package/lib/types/backoffice/organisms/audit_timeline/auditTimeline.css.d.ts.map +1 -1
- package/lib/types/backoffice/organisms/backoffice_data_table/BackofficeDataTable.d.ts +2 -2
- package/lib/types/backoffice/organisms/backoffice_data_table/BackofficeDataTable.d.ts.map +1 -1
- package/lib/types/backoffice/templates/detail_page_template/DetailPageTemplate.d.ts +12 -1
- package/lib/types/backoffice/templates/detail_page_template/DetailPageTemplate.d.ts.map +1 -1
- package/lib/types/backoffice/templates/detail_page_template/detailPageTemplate.css.d.ts +25 -4
- package/lib/types/backoffice/templates/detail_page_template/detailPageTemplate.css.d.ts.map +1 -1
- package/lib/types/components/dashboard/dashboard_metric_group/DashboardMetricGroup.css.d.ts +4 -0
- package/lib/types/components/dashboard/dashboard_metric_group/DashboardMetricGroup.css.d.ts.map +1 -0
- package/lib/types/components/dashboard/dashboard_metric_group/DashboardMetricGroup.d.ts +19 -0
- package/lib/types/components/dashboard/dashboard_metric_group/DashboardMetricGroup.d.ts.map +1 -0
- package/lib/types/components/dashboard/dashboard_panel/DashboardPanel.css.d.ts +2 -0
- package/lib/types/components/dashboard/dashboard_panel/DashboardPanel.css.d.ts.map +1 -0
- package/lib/types/components/dashboard/dashboard_panel/DashboardPanel.d.ts +11 -0
- package/lib/types/components/dashboard/dashboard_panel/DashboardPanel.d.ts.map +1 -0
- package/lib/types/components/dashboard/dashboard_quick_actions/DashboardQuickActions.css.d.ts +5 -0
- package/lib/types/components/dashboard/dashboard_quick_actions/DashboardQuickActions.css.d.ts.map +1 -0
- package/lib/types/components/dashboard/dashboard_quick_actions/DashboardQuickActions.d.ts +14 -0
- package/lib/types/components/dashboard/dashboard_quick_actions/DashboardQuickActions.d.ts.map +1 -0
- package/lib/types/components/dashboard/dashboard_status_list/DashboardStatusList.css.d.ts +6 -0
- package/lib/types/components/dashboard/dashboard_status_list/DashboardStatusList.css.d.ts.map +1 -0
- package/lib/types/components/dashboard/dashboard_status_list/DashboardStatusList.d.ts +14 -0
- package/lib/types/components/dashboard/dashboard_status_list/DashboardStatusList.d.ts.map +1 -0
- package/lib/types/components/dashboard/metric_card/MetricCard.css.d.ts +38 -1
- package/lib/types/components/dashboard/metric_card/MetricCard.css.d.ts.map +1 -1
- package/lib/types/components/dashboard/metric_card/MetricCard.d.ts +7 -1
- package/lib/types/components/dashboard/metric_card/MetricCard.d.ts.map +1 -1
- package/lib/types/components/dashboard/metric_tile_group/MetricTileGroup.css.d.ts +17 -1
- package/lib/types/components/dashboard/metric_tile_group/MetricTileGroup.css.d.ts.map +1 -1
- package/lib/types/components/dashboard/metric_tile_group/MetricTileGroup.d.ts +4 -1
- package/lib/types/components/dashboard/metric_tile_group/MetricTileGroup.d.ts.map +1 -1
- package/lib/types/components/dashboard/timeline_event_row/TimelineEventRow.css.d.ts +31 -2
- package/lib/types/components/dashboard/timeline_event_row/TimelineEventRow.css.d.ts.map +1 -1
- package/lib/types/components/dashboard/timeline_event_row/TimelineEventRow.d.ts +8 -3
- package/lib/types/components/dashboard/timeline_event_row/TimelineEventRow.d.ts.map +1 -1
- package/lib/types/components/data-table/DataTable.css.d.ts +1 -0
- package/lib/types/components/data-table/DataTable.css.d.ts.map +1 -1
- package/lib/types/components/data-table/DataTable.d.ts +54 -3
- package/lib/types/components/data-table/DataTable.d.ts.map +1 -1
- package/lib/types/components/data-table/ResponsiveRecordList.d.ts +1 -4
- package/lib/types/components/data-table/ResponsiveRecordList.d.ts.map +1 -1
- package/lib/types/components/data-table/VirtualizedConnectionTable.css.d.ts +0 -1
- package/lib/types/components/data-table/VirtualizedConnectionTable.css.d.ts.map +1 -1
- package/lib/types/components/data-table/VirtualizedConnectionTable.d.ts +11 -5
- package/lib/types/components/data-table/VirtualizedConnectionTable.d.ts.map +1 -1
- package/lib/types/{backoffice/molecules/inline_banner → components/feedback}/InlineBanner.d.ts +4 -2
- package/lib/types/components/feedback/InlineBanner.d.ts.map +1 -0
- package/lib/types/components/feedback/OperationFeedback.css.d.ts +0 -1
- package/lib/types/components/feedback/OperationFeedback.css.d.ts.map +1 -1
- package/lib/types/components/feedback/OperationFeedback.d.ts.map +1 -1
- package/lib/types/components/feedback/inlineBanner.css.d.ts.map +1 -0
- package/lib/types/components/infinite/InfiniteScrollTrigger.d.ts.map +1 -1
- package/lib/types/components/layout/ActionPanel.css.d.ts +1 -0
- package/lib/types/components/layout/ActionPanel.css.d.ts.map +1 -1
- package/lib/types/components/layout/ActionPanel.d.ts.map +1 -1
- package/lib/types/components/layout/PageShell.css.d.ts +1 -14
- package/lib/types/components/layout/PageShell.css.d.ts.map +1 -1
- package/lib/types/components/layout/PageShell.d.ts +1 -3
- package/lib/types/components/layout/PageShell.d.ts.map +1 -1
- package/lib/types/components/layout/ResizableSplitView.css.d.ts +8 -0
- package/lib/types/components/layout/ResizableSplitView.css.d.ts.map +1 -0
- package/lib/types/components/layout/ResizableSplitView.d.ts +27 -0
- package/lib/types/components/layout/ResizableSplitView.d.ts.map +1 -0
- package/lib/types/components/layout/Surface.css.d.ts +31 -0
- package/lib/types/components/layout/Surface.css.d.ts.map +1 -0
- package/lib/types/components/layout/Surface.d.ts +30 -0
- package/lib/types/components/layout/Surface.d.ts.map +1 -0
- package/lib/types/components/layout/toolbar/Toolbar.css.d.ts +40 -0
- package/lib/types/components/layout/toolbar/Toolbar.css.d.ts.map +1 -0
- package/lib/types/components/layout/toolbar/Toolbar.d.ts +35 -0
- package/lib/types/components/layout/toolbar/Toolbar.d.ts.map +1 -0
- package/lib/types/components/navigation/sidebar/SidebarNavigation.d.ts +57 -0
- package/lib/types/components/navigation/sidebar/SidebarNavigation.d.ts.map +1 -0
- package/lib/types/components/navigation/sidebar/SidebarNavigationItem.d.ts +2 -0
- package/lib/types/components/navigation/sidebar/SidebarNavigationItem.d.ts.map +1 -0
- package/lib/types/components/navigation/sidebar/SidebarNavigationSection.d.ts +2 -0
- package/lib/types/components/navigation/sidebar/SidebarNavigationSection.d.ts.map +1 -0
- package/lib/types/components/navigation/sidebar/SidebarProfileMenu.d.ts +2 -0
- package/lib/types/components/navigation/sidebar/SidebarProfileMenu.d.ts.map +1 -0
- package/lib/types/components/navigation/sidebar/sidebarNavigation.css.d.ts +19 -0
- package/lib/types/components/navigation/sidebar/sidebarNavigation.css.d.ts.map +1 -0
- package/lib/types/components/subscriptions/RefetchNeededBanner.d.ts.map +1 -1
- package/lib/types/i18n/resources.d.ts +32 -14
- package/lib/types/i18n/resources.d.ts.map +1 -1
- package/lib/types/index.d.ts +33 -33
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/internal/data-table/virtualization.d.ts +2 -2
- package/lib/types/internal/data-table/virtualization.d.ts.map +1 -1
- package/lib/types/internal/infinite/infiniteLoad.d.ts +27 -0
- package/lib/types/internal/infinite/infiniteLoad.d.ts.map +1 -0
- package/lib/types/theme/backofficeTheme.css.d.ts +100 -0
- package/lib/types/theme/backofficeTheme.css.d.ts.map +1 -1
- package/lib/types/theme/publicTheme.css.d.ts +100 -0
- package/lib/types/theme/publicTheme.css.d.ts.map +1 -1
- package/lib/types/theme/sprinkles.css.d.ts +2 -2
- package/lib/types/theme/themeContract.css.d.ts +50 -0
- package/lib/types/theme/themeContract.css.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/i18n/locales/en/ui.json +16 -7
- package/src/i18n/locales/fr/ui.json +16 -7
- package/lib/esm/atomic/molecules/card/Card.css.js +0 -8
- package/lib/esm/atomic/molecules/card/Card.css.js.map +0 -1
- package/lib/esm/atomic/molecules/form/FormErrorBanner.css.js +0 -8
- package/lib/esm/atomic/molecules/form/FormErrorBanner.css.js.map +0 -1
- package/lib/esm/atomic/molecules/form/FormErrorBanner.js +0 -17
- package/lib/esm/atomic/molecules/form/FormErrorBanner.js.map +0 -1
- package/lib/esm/atomic/templates/detail-page/DetailPage.js +0 -49
- package/lib/esm/atomic/templates/detail-page/DetailPage.js.map +0 -1
- package/lib/esm/atomic/templates/detail-page/detailPage.css.js +0 -8
- package/lib/esm/atomic/templates/detail-page/detailPage.css.js.map +0 -1
- package/lib/esm/backoffice/molecules/backoffice_detail_layout/BackofficeDetailLayout.js +0 -33
- package/lib/esm/backoffice/molecules/backoffice_detail_layout/BackofficeDetailLayout.js.map +0 -1
- package/lib/esm/backoffice/molecules/backoffice_detail_layout/backofficeDetailLayout.css.js +0 -8
- package/lib/esm/backoffice/molecules/backoffice_detail_layout/backofficeDetailLayout.css.js.map +0 -1
- package/lib/esm/backoffice/molecules/backoffice_empty_state/backofficeEmptyState.css.js +0 -8
- package/lib/esm/backoffice/molecules/backoffice_empty_state/backofficeEmptyState.css.js.map +0 -1
- package/lib/esm/backoffice/molecules/backoffice_filters_bar/BackofficeFiltersBar.js +0 -36
- package/lib/esm/backoffice/molecules/backoffice_filters_bar/BackofficeFiltersBar.js.map +0 -1
- package/lib/esm/backoffice/molecules/backoffice_filters_bar/backofficeFiltersBar.css.js +0 -8
- package/lib/esm/backoffice/molecules/backoffice_filters_bar/backofficeFiltersBar.css.js.map +0 -1
- package/lib/esm/backoffice/molecules/backoffice_form_section/backofficeFormSection.css.js +0 -8
- package/lib/esm/backoffice/molecules/backoffice_form_section/backofficeFormSection.css.js.map +0 -1
- package/lib/esm/backoffice/molecules/backoffice_infinite_list_status/BackofficeInfiniteListStatus.js +0 -37
- package/lib/esm/backoffice/molecules/backoffice_infinite_list_status/BackofficeInfiniteListStatus.js.map +0 -1
- package/lib/esm/backoffice/molecules/backoffice_infinite_list_status/backofficeInfiniteListStatus.css.js +0 -8
- package/lib/esm/backoffice/molecules/backoffice_infinite_list_status/backofficeInfiniteListStatus.css.js.map +0 -1
- package/lib/esm/backoffice/molecules/backoffice_load_more/BackofficeLoadMore.js +0 -35
- package/lib/esm/backoffice/molecules/backoffice_load_more/BackofficeLoadMore.js.map +0 -1
- package/lib/esm/backoffice/molecules/backoffice_load_more/backofficeLoadMore.css.js +0 -8
- package/lib/esm/backoffice/molecules/backoffice_load_more/backofficeLoadMore.css.js.map +0 -1
- package/lib/esm/backoffice/molecules/backoffice_table_toolbar/BackofficeTableToolbar.js +0 -41
- package/lib/esm/backoffice/molecules/backoffice_table_toolbar/BackofficeTableToolbar.js.map +0 -1
- package/lib/esm/backoffice/molecules/backoffice_table_toolbar/backofficeTableToolbar.css.js +0 -8
- package/lib/esm/backoffice/molecules/backoffice_table_toolbar/backofficeTableToolbar.css.js.map +0 -1
- package/lib/esm/backoffice/molecules/backoffice_tabs/BackofficeTabs.js +0 -46
- package/lib/esm/backoffice/molecules/backoffice_tabs/BackofficeTabs.js.map +0 -1
- package/lib/esm/backoffice/molecules/backoffice_tabs/backofficeTabs.css.js +0 -17
- package/lib/esm/backoffice/molecules/backoffice_tabs/backofficeTabs.css.js.map +0 -1
- package/lib/esm/backoffice/molecules/inline_banner/InlineBanner.js +0 -46
- package/lib/esm/backoffice/molecules/inline_banner/InlineBanner.js.map +0 -1
- package/lib/esm/backoffice/molecules/inline_banner/inlineBanner.css.js +0 -19
- package/lib/esm/backoffice/molecules/inline_banner/inlineBanner.css.js.map +0 -1
- package/lib/esm/backoffice/molecules/table_toolbar/TableToolbar.js +0 -41
- package/lib/esm/backoffice/molecules/table_toolbar/TableToolbar.js.map +0 -1
- package/lib/esm/backoffice/molecules/table_toolbar/tableToolbar.css.js +0 -8
- package/lib/esm/backoffice/molecules/table_toolbar/tableToolbar.css.js.map +0 -1
- package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/BackofficeVirtualizedConnectionTable.js +0 -26
- package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/BackofficeVirtualizedConnectionTable.js.map +0 -1
- package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/backofficeVirtualizedConnectionTable.css.js +0 -8
- package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/backofficeVirtualizedConnectionTable.css.js.map +0 -1
- package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/helpers.js +0 -18
- package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/helpers.js.map +0 -1
- package/lib/esm/components/dashboard/section_nav/SectionNav.css.js +0 -8
- package/lib/esm/components/dashboard/section_nav/SectionNav.css.js.map +0 -1
- package/lib/esm/components/dashboard/section_nav/SectionNav.js +0 -25
- package/lib/esm/components/dashboard/section_nav/SectionNav.js.map +0 -1
- package/lib/esm/components/dashboard/segmented_nav/SegmentedNav.css.js +0 -8
- package/lib/esm/components/dashboard/segmented_nav/SegmentedNav.css.js.map +0 -1
- package/lib/esm/components/dashboard/segmented_nav/SegmentedNav.js +0 -24
- package/lib/esm/components/dashboard/segmented_nav/SegmentedNav.js.map +0 -1
- package/lib/esm/components/layout/AppShell.js +0 -19
- package/lib/esm/components/layout/AppShell.js.map +0 -1
- package/lib/esm/components/layout/SidebarPageLayout.js +0 -16
- package/lib/esm/components/layout/SidebarPageLayout.js.map +0 -1
- package/lib/esm/components/layout/SplitViewLayout.css.js +0 -8
- package/lib/esm/components/layout/SplitViewLayout.css.js.map +0 -1
- package/lib/esm/components/layout/SplitViewLayout.js +0 -18
- package/lib/esm/components/layout/SplitViewLayout.js.map +0 -1
- package/lib/esm/components/layout/TabsContentLayout.css.js +0 -8
- package/lib/esm/components/layout/TabsContentLayout.css.js.map +0 -1
- package/lib/esm/components/layout/TabsContentLayout.js +0 -31
- package/lib/esm/components/layout/TabsContentLayout.js.map +0 -1
- package/lib/esm/components/layout/ToolbarRow.css.js +0 -8
- package/lib/esm/components/layout/ToolbarRow.css.js.map +0 -1
- package/lib/esm/components/layout/ToolbarRow.js +0 -12
- package/lib/esm/components/layout/ToolbarRow.js.map +0 -1
- package/lib/esm/components/subscriptions/RefetchNeededBanner.css.js +0 -8
- package/lib/esm/components/subscriptions/RefetchNeededBanner.css.js.map +0 -1
- package/lib/types/atomic/molecules/card/Card.css.d.ts +0 -5
- package/lib/types/atomic/molecules/card/Card.css.d.ts.map +0 -1
- package/lib/types/atomic/molecules/form/FormErrorBanner.css.d.ts +0 -2
- package/lib/types/atomic/molecules/form/FormErrorBanner.css.d.ts.map +0 -1
- package/lib/types/atomic/molecules/form/FormErrorBanner.d.ts +0 -7
- package/lib/types/atomic/molecules/form/FormErrorBanner.d.ts.map +0 -1
- package/lib/types/atomic/templates/detail-page/DetailPage.d.ts +0 -19
- package/lib/types/atomic/templates/detail-page/DetailPage.d.ts.map +0 -1
- package/lib/types/atomic/templates/detail-page/detailPage.css.d.ts +0 -9
- package/lib/types/atomic/templates/detail-page/detailPage.css.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/backoffice_detail_layout/BackofficeDetailLayout.d.ts +0 -10
- package/lib/types/backoffice/molecules/backoffice_detail_layout/BackofficeDetailLayout.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/backoffice_detail_layout/backofficeDetailLayout.css.d.ts +0 -7
- package/lib/types/backoffice/molecules/backoffice_detail_layout/backofficeDetailLayout.css.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/backoffice_empty_state/backofficeEmptyState.css.d.ts +0 -6
- package/lib/types/backoffice/molecules/backoffice_empty_state/backofficeEmptyState.css.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/backoffice_filters_bar/BackofficeFiltersBar.d.ts +0 -13
- package/lib/types/backoffice/molecules/backoffice_filters_bar/BackofficeFiltersBar.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/backoffice_filters_bar/backofficeFiltersBar.css.d.ts +0 -6
- package/lib/types/backoffice/molecules/backoffice_filters_bar/backofficeFiltersBar.css.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/backoffice_form_section/backofficeFormSection.css.d.ts +0 -5
- package/lib/types/backoffice/molecules/backoffice_form_section/backofficeFormSection.css.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/backoffice_infinite_list_status/BackofficeInfiniteListStatus.d.ts +0 -16
- package/lib/types/backoffice/molecules/backoffice_infinite_list_status/BackofficeInfiniteListStatus.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/backoffice_infinite_list_status/backofficeInfiniteListStatus.css.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/backoffice_load_more/BackofficeLoadMore.d.ts +0 -13
- package/lib/types/backoffice/molecules/backoffice_load_more/BackofficeLoadMore.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/backoffice_load_more/backofficeLoadMore.css.d.ts +0 -5
- package/lib/types/backoffice/molecules/backoffice_load_more/backofficeLoadMore.css.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/backoffice_table_toolbar/BackofficeTableToolbar.d.ts +0 -16
- package/lib/types/backoffice/molecules/backoffice_table_toolbar/BackofficeTableToolbar.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/backoffice_table_toolbar/backofficeTableToolbar.css.d.ts +0 -10
- package/lib/types/backoffice/molecules/backoffice_table_toolbar/backofficeTableToolbar.css.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/backoffice_tabs/BackofficeTabs.d.ts +0 -19
- package/lib/types/backoffice/molecules/backoffice_tabs/BackofficeTabs.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/backoffice_tabs/backofficeTabs.css.d.ts +0 -15
- package/lib/types/backoffice/molecules/backoffice_tabs/backofficeTabs.css.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/inline_banner/InlineBanner.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/inline_banner/inlineBanner.css.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/table_toolbar/TableToolbar.d.ts +0 -13
- package/lib/types/backoffice/molecules/table_toolbar/TableToolbar.d.ts.map +0 -1
- package/lib/types/backoffice/molecules/table_toolbar/tableToolbar.css.d.ts +0 -6
- package/lib/types/backoffice/molecules/table_toolbar/tableToolbar.css.d.ts.map +0 -1
- package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/BackofficeVirtualizedConnectionTable.d.ts +0 -31
- package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/BackofficeVirtualizedConnectionTable.d.ts.map +0 -1
- package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/backofficeVirtualizedConnectionTable.css.d.ts +0 -5
- package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/backofficeVirtualizedConnectionTable.css.d.ts.map +0 -1
- package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/helpers.d.ts +0 -5
- package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/helpers.d.ts.map +0 -1
- package/lib/types/components/dashboard/section_nav/SectionNav.css.d.ts +0 -4
- package/lib/types/components/dashboard/section_nav/SectionNav.css.d.ts.map +0 -1
- package/lib/types/components/dashboard/section_nav/SectionNav.d.ts +0 -15
- package/lib/types/components/dashboard/section_nav/SectionNav.d.ts.map +0 -1
- package/lib/types/components/dashboard/segmented_nav/SegmentedNav.css.d.ts +0 -4
- package/lib/types/components/dashboard/segmented_nav/SegmentedNav.css.d.ts.map +0 -1
- package/lib/types/components/dashboard/segmented_nav/SegmentedNav.d.ts +0 -15
- package/lib/types/components/dashboard/segmented_nav/SegmentedNav.d.ts.map +0 -1
- package/lib/types/components/layout/AppShell.d.ts +0 -17
- package/lib/types/components/layout/AppShell.d.ts.map +0 -1
- package/lib/types/components/layout/SidebarPageLayout.d.ts +0 -15
- package/lib/types/components/layout/SidebarPageLayout.d.ts.map +0 -1
- package/lib/types/components/layout/SplitViewLayout.css.d.ts +0 -3
- package/lib/types/components/layout/SplitViewLayout.css.d.ts.map +0 -1
- package/lib/types/components/layout/SplitViewLayout.d.ts +0 -11
- package/lib/types/components/layout/SplitViewLayout.d.ts.map +0 -1
- package/lib/types/components/layout/TabsContentLayout.css.d.ts +0 -6
- package/lib/types/components/layout/TabsContentLayout.css.d.ts.map +0 -1
- package/lib/types/components/layout/TabsContentLayout.d.ts +0 -9
- package/lib/types/components/layout/TabsContentLayout.d.ts.map +0 -1
- package/lib/types/components/layout/ToolbarRow.css.d.ts +0 -2
- package/lib/types/components/layout/ToolbarRow.css.d.ts.map +0 -1
- package/lib/types/components/layout/ToolbarRow.d.ts +0 -8
- package/lib/types/components/layout/ToolbarRow.d.ts.map +0 -1
- package/lib/types/components/subscriptions/RefetchNeededBanner.css.d.ts +0 -5
- package/lib/types/components/subscriptions/RefetchNeededBanner.css.d.ts.map +0 -1
- /package/lib/types/{backoffice/molecules/inline_banner → components/feedback}/inlineBanner.css.d.ts +0 -0
|
@@ -1,188 +1,188 @@
|
|
|
1
1
|
import { cx as e } from "../../../theme/tools.js";
|
|
2
2
|
import { ChevronDownSvg as t } from "../../../icons/ChevronDownSvg.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { header as h, headerButton as g, headerButtonSidebarCollapsed as
|
|
8
|
-
import { useCallback as
|
|
9
|
-
import { jsx as
|
|
10
|
-
import { useTranslation as
|
|
3
|
+
import { CSS as n } from "../../../node_modules/@dnd-kit/utilities/dist/utilities.esm.js";
|
|
4
|
+
import { DndContext as r, DragOverlay as i, KeyboardSensor as a, PointerSensor as o, TouchSensor as s, closestCenter as ee, useSensor as c, useSensors as l } from "../../../node_modules/@dnd-kit/core/dist/core.esm.js";
|
|
5
|
+
import { SortableContext as u, sortableKeyboardCoordinates as d, useSortable as f, verticalListSortingStrategy as p } from "../../../node_modules/@dnd-kit/sortable/dist/sortable.esm.js";
|
|
6
|
+
import { SidebarNavItem as m } from "../sidebar_nav_item/SidebarNavItem.js";
|
|
7
|
+
import { header as h, headerButton as g, headerButtonSidebarCollapsed as te, headerSidebarCollapsed as ne, items as _, itemsNested as v, section as re, sortableItem as y, sortableItemDragging as b, title as ie, titleContent as x, titleIcon as ae, titleIconTheme as oe, titleSidebarCollapsed as se, titleTheme as ce, toggleIcon as le, toggleIconCollapsed as ue } from "./sidebarNavSection.css.js";
|
|
8
|
+
import { useCallback as S, useId as C, useMemo as w, useState as T } from "react";
|
|
9
|
+
import { jsx as E, jsxs as D } from "react/jsx-runtime";
|
|
10
|
+
import { useTranslation as de } from "react-i18next";
|
|
11
11
|
//#region src/backoffice/molecules/sidebar_nav_section/SidebarNavSection.tsx
|
|
12
|
-
var
|
|
13
|
-
let { id:
|
|
14
|
-
id:
|
|
15
|
-
disabled:
|
|
12
|
+
var fe = ({ item: t, isNested: r, sidebarCollapsed: i, dragHandleLabel: a, insertionPlacement: o }) => {
|
|
13
|
+
let { id: s, data: ee, ...c } = t, { attributes: l, listeners: u, setNodeRef: d, transform: p, transition: h, isDragging: g } = f({
|
|
14
|
+
id: s,
|
|
15
|
+
disabled: i
|
|
16
16
|
});
|
|
17
|
-
return /* @__PURE__ */
|
|
18
|
-
ref:
|
|
17
|
+
return /* @__PURE__ */ D("div", {
|
|
18
|
+
ref: d,
|
|
19
19
|
style: {
|
|
20
|
-
transform:
|
|
20
|
+
transform: n.Transform.toString(p),
|
|
21
21
|
transition: h
|
|
22
22
|
},
|
|
23
|
-
className: e(
|
|
23
|
+
className: e(y, { [b]: g }),
|
|
24
24
|
children: [
|
|
25
|
-
|
|
26
|
-
className: "_1rp5mg6k
|
|
25
|
+
o === "before" && /* @__PURE__ */ E("span", {
|
|
26
|
+
className: "_1rp5mg6l _1rp5mg6k txvbqbqv7 txvbqbo2g txvbqbdqi txvbqb2is",
|
|
27
27
|
"aria-hidden": "true"
|
|
28
28
|
}),
|
|
29
|
-
/* @__PURE__ */
|
|
30
|
-
...
|
|
31
|
-
collapsed:
|
|
32
|
-
nested:
|
|
33
|
-
dragHandleLabel:
|
|
29
|
+
/* @__PURE__ */ E(m, {
|
|
30
|
+
...c,
|
|
31
|
+
collapsed: i,
|
|
32
|
+
nested: r,
|
|
33
|
+
dragHandleLabel: c.dragHandleLabel ?? a,
|
|
34
34
|
dragHandleProps: {
|
|
35
|
-
...
|
|
36
|
-
...
|
|
35
|
+
...l,
|
|
36
|
+
...u
|
|
37
37
|
},
|
|
38
38
|
isDragging: g
|
|
39
39
|
}),
|
|
40
|
-
|
|
41
|
-
className: "_1rp5mg6k
|
|
40
|
+
o === "after" && /* @__PURE__ */ E("span", {
|
|
41
|
+
className: "_1rp5mg6l _1rp5mg6k txvbqbqv7 txvbqbo2g txvbqbdqi txvbqb2is",
|
|
42
42
|
"aria-hidden": "true"
|
|
43
43
|
})
|
|
44
44
|
]
|
|
45
45
|
});
|
|
46
|
-
},
|
|
47
|
-
let [
|
|
46
|
+
}, O = ({ title: n, icon: f, items: y, collapsible: b = !1, isCollapsed: O, defaultCollapsed: pe = !1, onCollapsedChange: k, collapsed: A = !1, reorder: j, className: M }) => {
|
|
47
|
+
let [me, he] = T(pe), N = C(), P = C(), { t: F } = de("ui", { useSuspense: !1 }), [I, L] = T(null), [R, z] = T(null), B = O ?? me, V = b, ge = S(() => {
|
|
48
48
|
if (!V) return;
|
|
49
49
|
let e = !B;
|
|
50
|
-
|
|
50
|
+
O ?? he(e), k?.(e);
|
|
51
51
|
}, [
|
|
52
52
|
V,
|
|
53
53
|
B,
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
O,
|
|
55
|
+
k
|
|
56
56
|
]), H;
|
|
57
|
-
typeof
|
|
58
|
-
let U = e(
|
|
59
|
-
|
|
57
|
+
typeof n == "string" && (H = n);
|
|
58
|
+
let U = e(ie, ce, { [se]: A }), _e = e(le, { [ue]: B }), W;
|
|
59
|
+
A && (W = H);
|
|
60
60
|
let G = null;
|
|
61
|
-
|
|
62
|
-
className:
|
|
61
|
+
f != null && (G = /* @__PURE__ */ E("span", {
|
|
62
|
+
className: e(ae, oe),
|
|
63
63
|
"aria-hidden": "true",
|
|
64
|
-
children:
|
|
64
|
+
children: f
|
|
65
65
|
}));
|
|
66
|
-
let
|
|
66
|
+
let ve = j?.enabled === !0 && y.length > 1, K = w(() => y.map((e) => e.id), [y]), ye = l(c(o, { activationConstraint: { distance: 4 } }), c(s, { activationConstraint: {
|
|
67
67
|
delay: 180,
|
|
68
68
|
tolerance: 5
|
|
69
|
-
} }),
|
|
69
|
+
} }), c(a, { coordinateGetter: d })), q = S(() => {
|
|
70
70
|
L(null), z(null);
|
|
71
|
-
}, []),
|
|
71
|
+
}, []), be = S((e) => {
|
|
72
72
|
L(e.active.id), z(e.active.id);
|
|
73
|
-
}, []),
|
|
74
|
-
let t =
|
|
75
|
-
e.over != null && (n =
|
|
73
|
+
}, []), xe = S((e) => {
|
|
74
|
+
let t = y.find((t) => t.id === String(e.active.id)) ?? null, n = null;
|
|
75
|
+
e.over != null && (n = y.find((t) => t.id === String(e.over?.id)) ?? null);
|
|
76
76
|
let r = t?.data?.id ?? String(e.active.id), i = null;
|
|
77
|
-
n != null && (i = n.data?.id ?? String(e.over?.id)), q(), !(i == null || r === i) &&
|
|
77
|
+
n != null && (i = n.data?.id ?? String(e.over?.id)), q(), !(i == null || r === i) && j?.onReorder(r, i);
|
|
78
78
|
}, [
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
y,
|
|
80
|
+
j,
|
|
81
81
|
q
|
|
82
|
-
]), J =
|
|
82
|
+
]), J = w(() => I == null ? null : y.find((e) => e.id === String(I)) ?? null, [I, y]), Y = null, X = "before";
|
|
83
83
|
if (I != null && R != null && I !== R) {
|
|
84
84
|
let e = K.indexOf(String(I)), t = K.indexOf(String(R));
|
|
85
85
|
e !== -1 && t !== -1 && (Y = String(R), e < t && (X = "after"));
|
|
86
86
|
}
|
|
87
|
-
let
|
|
88
|
-
|
|
87
|
+
let Se = F("navigation.sidebar.reorder.handle"), Ce = F("navigation.sidebar.reorder.instructions"), Z = null;
|
|
88
|
+
n != null && (Z = V ? /* @__PURE__ */ D("button", {
|
|
89
89
|
id: P,
|
|
90
90
|
type: "button",
|
|
91
|
-
className: e(g, { [
|
|
92
|
-
onClick:
|
|
91
|
+
className: e(g, { [te]: A }),
|
|
92
|
+
onClick: ge,
|
|
93
93
|
"aria-expanded": !B,
|
|
94
94
|
"aria-controls": N,
|
|
95
95
|
"aria-label": W,
|
|
96
96
|
title: W,
|
|
97
|
-
children: [/* @__PURE__ */
|
|
98
|
-
className:
|
|
99
|
-
children: [G, /* @__PURE__ */
|
|
97
|
+
children: [/* @__PURE__ */ D("span", {
|
|
98
|
+
className: x,
|
|
99
|
+
children: [G, /* @__PURE__ */ E("span", {
|
|
100
100
|
className: U,
|
|
101
|
-
children:
|
|
101
|
+
children: n
|
|
102
102
|
})]
|
|
103
|
-
}), !
|
|
104
|
-
className:
|
|
103
|
+
}), !A && /* @__PURE__ */ E("span", {
|
|
104
|
+
className: _e,
|
|
105
105
|
"aria-hidden": "true",
|
|
106
|
-
children: /* @__PURE__ */
|
|
106
|
+
children: /* @__PURE__ */ E(t, {
|
|
107
107
|
width: 18,
|
|
108
108
|
height: 18
|
|
109
109
|
})
|
|
110
110
|
})]
|
|
111
|
-
}) : /* @__PURE__ */
|
|
112
|
-
className: e(h, { [
|
|
111
|
+
}) : /* @__PURE__ */ E("div", {
|
|
112
|
+
className: e(h, { [ne]: A }),
|
|
113
113
|
title: W,
|
|
114
|
-
children: /* @__PURE__ */
|
|
115
|
-
className:
|
|
114
|
+
children: /* @__PURE__ */ D("div", {
|
|
115
|
+
className: x,
|
|
116
116
|
id: P,
|
|
117
|
-
children: [G, /* @__PURE__ */
|
|
117
|
+
children: [G, /* @__PURE__ */ E("span", {
|
|
118
118
|
className: U,
|
|
119
|
-
children:
|
|
119
|
+
children: n
|
|
120
120
|
})]
|
|
121
121
|
})
|
|
122
122
|
}));
|
|
123
123
|
let Q = null;
|
|
124
124
|
if (!B) {
|
|
125
|
-
let t =
|
|
126
|
-
Q = /* @__PURE__ */
|
|
127
|
-
className: e(
|
|
125
|
+
let t = n != null && !A;
|
|
126
|
+
Q = /* @__PURE__ */ E("div", {
|
|
127
|
+
className: e(_, { [v]: t }),
|
|
128
128
|
id: N,
|
|
129
129
|
role: "list",
|
|
130
|
-
children:
|
|
131
|
-
let { id:
|
|
132
|
-
return /* @__PURE__ */
|
|
133
|
-
...
|
|
134
|
-
collapsed:
|
|
130
|
+
children: y.map((e) => {
|
|
131
|
+
let { id: n, data: r, ...i } = e;
|
|
132
|
+
return /* @__PURE__ */ E(m, {
|
|
133
|
+
...i,
|
|
134
|
+
collapsed: A,
|
|
135
135
|
nested: t
|
|
136
|
-
},
|
|
136
|
+
}, n);
|
|
137
137
|
})
|
|
138
|
-
}),
|
|
139
|
-
accessibility: { screenReaderInstructions: { draggable:
|
|
138
|
+
}), ve && !A && (Q = /* @__PURE__ */ D(r, {
|
|
139
|
+
accessibility: { screenReaderInstructions: { draggable: Ce } },
|
|
140
140
|
collisionDetection: ee,
|
|
141
|
-
sensors:
|
|
142
|
-
onDragStart:
|
|
141
|
+
sensors: ye,
|
|
142
|
+
onDragStart: be,
|
|
143
143
|
onDragOver: (e) => {
|
|
144
144
|
z(e.over?.id ?? null);
|
|
145
145
|
},
|
|
146
146
|
onDragCancel: q,
|
|
147
|
-
onDragEnd:
|
|
148
|
-
children: [/* @__PURE__ */
|
|
147
|
+
onDragEnd: xe,
|
|
148
|
+
children: [/* @__PURE__ */ E(u, {
|
|
149
149
|
items: K,
|
|
150
|
-
strategy:
|
|
151
|
-
children: /* @__PURE__ */
|
|
152
|
-
className: e(
|
|
150
|
+
strategy: p,
|
|
151
|
+
children: /* @__PURE__ */ E("div", {
|
|
152
|
+
className: e(_, { [v]: t }),
|
|
153
153
|
id: N,
|
|
154
154
|
role: "list",
|
|
155
|
-
children:
|
|
155
|
+
children: y.map((e) => {
|
|
156
156
|
let n;
|
|
157
|
-
return e.id === Y && (n = X), /* @__PURE__ */
|
|
157
|
+
return e.id === Y && (n = X), /* @__PURE__ */ E(fe, {
|
|
158
158
|
item: e,
|
|
159
159
|
isNested: t,
|
|
160
|
-
sidebarCollapsed:
|
|
161
|
-
dragHandleLabel:
|
|
160
|
+
sidebarCollapsed: A,
|
|
161
|
+
dragHandleLabel: Se,
|
|
162
162
|
insertionPlacement: n
|
|
163
163
|
}, e.id);
|
|
164
164
|
})
|
|
165
165
|
})
|
|
166
|
-
}), /* @__PURE__ */
|
|
167
|
-
className: "_1rp5mg6m
|
|
168
|
-
children: [J.icon != null && /* @__PURE__ */
|
|
169
|
-
className: "
|
|
166
|
+
}), /* @__PURE__ */ E(i, { children: J != null && /* @__PURE__ */ D("div", {
|
|
167
|
+
className: "_1rp5mg6n _1rp5mg6m txvbqbyoi txvbqbzm3 txvbqb11ed txvbqbwqg txvbqbdr8 txvbqbey txvbqbff6 txvbqb2gm txvbqb9j txvbqbfd0 txvbqb1uy txvbqbck9",
|
|
168
|
+
children: [J.icon != null && /* @__PURE__ */ E("span", {
|
|
169
|
+
className: "_1rp5mg6o txvbqbdsb txvbqbey txvbqbjtp txvbqb17hx txvbqbhnc txvbqbf7y",
|
|
170
170
|
children: J.icon
|
|
171
|
-
}), /* @__PURE__ */
|
|
172
|
-
className: "_1rp5mg6p
|
|
171
|
+
}), /* @__PURE__ */ E("span", {
|
|
172
|
+
className: "_1rp5mg6q _1rp5mg6p txvbqbt9i",
|
|
173
173
|
children: J.label
|
|
174
174
|
})]
|
|
175
175
|
}) })]
|
|
176
176
|
}));
|
|
177
177
|
}
|
|
178
178
|
let $;
|
|
179
|
-
return
|
|
180
|
-
className: e(
|
|
179
|
+
return n != null && ($ = P), /* @__PURE__ */ D("section", {
|
|
180
|
+
className: e(re, M),
|
|
181
181
|
"aria-labelledby": $,
|
|
182
182
|
children: [Z, Q]
|
|
183
183
|
});
|
|
184
184
|
};
|
|
185
185
|
//#endregion
|
|
186
|
-
export {
|
|
186
|
+
export { O as SidebarNavSection, O as default };
|
|
187
187
|
|
|
188
188
|
//# sourceMappingURL=SidebarNavSection.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarNavSection.js","names":[],"sources":["../../../../../src/backoffice/molecules/sidebar_nav_section/SidebarNavSection.tsx"],"sourcesContent":["import {\n DndContext,\n DragOverlay,\n KeyboardSensor,\n PointerSensor,\n TouchSensor,\n closestCenter,\n useSensor,\n useSensors,\n type DragEndEvent,\n type DragStartEvent,\n type UniqueIdentifier,\n} from '@dnd-kit/core';\nimport {\n SortableContext,\n sortableKeyboardCoordinates,\n useSortable,\n verticalListSortingStrategy,\n} from '@dnd-kit/sortable';\nimport { CSS } from '@dnd-kit/utilities';\nimport {\n type CSSProperties,\n type JSX,\n type ReactNode,\n useCallback,\n useId,\n useMemo,\n useState,\n} from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { ChevronDownSvg } from '../../../icons/ChevronDownSvg.js';\n\nimport {\n SidebarNavItem,\n type SidebarNavItemProps,\n} from '../sidebar_nav_item/SidebarNavItem.js';\nimport * as styles from './sidebarNavSection.css.js';\nimport { cx } from '../../../theme/tools.js';\n\nexport type SidebarNavSectionItemData = {\n kind: 'dashboard' | 'entity' | 'tool' | 'hub';\n id: string;\n groupId?: string;\n};\n\nexport type SidebarNavSectionItem = SidebarNavItemProps & {\n id: string;\n data?: SidebarNavSectionItemData;\n};\n\nexport type SidebarNavSectionReorder = {\n enabled: boolean;\n onReorder: (fromId: string, toId: string) => void;\n};\n\nexport type SidebarNavSectionProps = {\n title?: ReactNode;\n icon?: ReactNode;\n items: readonly SidebarNavSectionItem[];\n collapsible?: boolean;\n isCollapsed?: boolean;\n defaultCollapsed?: boolean;\n onCollapsedChange?: (collapsed: boolean) => void;\n collapsed?: boolean;\n reorder?: SidebarNavSectionReorder;\n className?: string;\n};\n\ntype InsertionPlacement = 'before' | 'after';\n\ntype SortableSidebarNavItemProps = {\n item: SidebarNavSectionItem;\n isNested: boolean;\n sidebarCollapsed: boolean;\n dragHandleLabel?: string;\n insertionPlacement?: InsertionPlacement;\n};\n\nconst SortableSidebarNavItem = ({\n item,\n isNested,\n sidebarCollapsed,\n dragHandleLabel,\n insertionPlacement,\n}: SortableSidebarNavItemProps): JSX.Element => {\n const { id, data, ...rest } = item;\n const {\n attributes,\n listeners,\n setNodeRef,\n transform,\n transition,\n isDragging,\n } = useSortable({\n id,\n disabled: sidebarCollapsed,\n });\n const style: CSSProperties = {\n transform: CSS.Transform.toString(transform),\n transition,\n };\n\n return (\n <div\n ref={setNodeRef}\n style={style}\n className={cx(styles.sortableItem, {\n [styles.sortableItemDragging]: isDragging,\n })}\n >\n {insertionPlacement === 'before' && (\n <span className={styles.insertionIndicator} aria-hidden=\"true\" />\n )}\n <SidebarNavItem\n {...rest}\n collapsed={sidebarCollapsed}\n nested={isNested}\n dragHandleLabel={rest.dragHandleLabel ?? dragHandleLabel}\n dragHandleProps={{\n ...attributes,\n ...listeners,\n }}\n isDragging={isDragging}\n />\n {insertionPlacement === 'after' && (\n <span className={styles.insertionIndicator} aria-hidden=\"true\" />\n )}\n </div>\n );\n};\n\nexport const SidebarNavSection = ({\n title,\n icon,\n items,\n collapsible = false,\n isCollapsed,\n defaultCollapsed = false,\n onCollapsedChange,\n collapsed: sidebarCollapsed = false,\n reorder,\n className,\n}: SidebarNavSectionProps): JSX.Element => {\n const [uncontrolledCollapsed, setUncontrolledCollapsed] =\n useState(defaultCollapsed);\n const itemsId = useId();\n const titleId = useId();\n const { t } = useTranslation('ui', { useSuspense: false });\n const [activeSortableId, setActiveSortableId] =\n useState<UniqueIdentifier | null>(null);\n const [overSortableId, setOverSortableId] = useState<UniqueIdentifier | null>(\n null,\n );\n\n const collapsed = isCollapsed ?? uncontrolledCollapsed;\n\n const canCollapse = collapsible;\n\n const handleToggle = useCallback(() => {\n if (!canCollapse) {\n return;\n }\n const next = !collapsed;\n if (isCollapsed == null) {\n setUncontrolledCollapsed(next);\n }\n onCollapsedChange?.(next);\n }, [canCollapse, collapsed, isCollapsed, onCollapsedChange]);\n\n let resolvedTitle: string | undefined;\n if (typeof title === 'string') {\n resolvedTitle = title;\n }\n\n const titleClassName = cx(styles.title, {\n [styles.titleSidebarCollapsed]: sidebarCollapsed,\n });\n const toggleIconClassName = cx(styles.toggleIcon, {\n [styles.toggleIconCollapsed]: collapsed,\n });\n let sidebarCollapsedTitle: string | undefined;\n if (sidebarCollapsed) {\n sidebarCollapsedTitle = resolvedTitle;\n }\n let iconNode: JSX.Element | null = null;\n if (icon != null) {\n iconNode = (\n <span className={styles.titleIcon} aria-hidden=\"true\">\n {icon}\n </span>\n );\n }\n\n const sortableEnabled = reorder?.enabled === true && items.length > 1;\n const sortableIds = useMemo(() => {\n return items.map((item) => {\n return item.id;\n });\n }, [items]);\n const sensors = useSensors(\n useSensor(PointerSensor, {\n activationConstraint: {\n distance: 4,\n },\n }),\n useSensor(TouchSensor, {\n activationConstraint: {\n delay: 180,\n tolerance: 5,\n },\n }),\n useSensor(KeyboardSensor, {\n coordinateGetter: sortableKeyboardCoordinates,\n }),\n );\n\n const resetDragState = useCallback(() => {\n setActiveSortableId(null);\n setOverSortableId(null);\n }, []);\n\n const handleDragStart = useCallback((event: DragStartEvent) => {\n setActiveSortableId(event.active.id);\n setOverSortableId(event.active.id);\n }, []);\n\n const handleDragEnd = useCallback(\n (event: DragEndEvent) => {\n const activeItem =\n items.find((item) => {\n return item.id === String(event.active.id);\n }) ?? null;\n let overItem: SidebarNavSectionItem | null = null;\n if (event.over != null) {\n overItem =\n items.find((item) => {\n return item.id === String(event.over?.id);\n }) ?? null;\n }\n const fromId = activeItem?.data?.id ?? String(event.active.id);\n let toId: string | null = null;\n if (overItem != null) {\n toId = overItem.data?.id ?? String(event.over?.id);\n }\n resetDragState();\n if (toId == null || fromId === toId) {\n return;\n }\n reorder?.onReorder(fromId, toId);\n },\n [items, reorder, resetDragState],\n );\n\n const activeItem = useMemo(() => {\n if (activeSortableId == null) {\n return null;\n }\n return (\n items.find((item) => {\n return item.id === String(activeSortableId);\n }) ?? null\n );\n }, [activeSortableId, items]);\n\n let insertionId: string | null = null;\n let insertionPlacement: InsertionPlacement = 'before';\n if (\n activeSortableId != null &&\n overSortableId != null &&\n activeSortableId !== overSortableId\n ) {\n const activeIndex = sortableIds.indexOf(String(activeSortableId));\n const overIndex = sortableIds.indexOf(String(overSortableId));\n if (activeIndex !== -1 && overIndex !== -1) {\n insertionId = String(overSortableId);\n if (activeIndex < overIndex) {\n insertionPlacement = 'after';\n }\n }\n }\n\n const dragHandleLabel = t('navigation.sidebar.reorder.handle');\n const dragInstructions = t('navigation.sidebar.reorder.instructions');\n\n let headerNode: JSX.Element | null = null;\n if (title != null) {\n if (canCollapse) {\n headerNode = (\n <button\n id={titleId}\n type=\"button\"\n className={cx(styles.headerButton, {\n [styles.headerButtonSidebarCollapsed]: sidebarCollapsed,\n })}\n onClick={handleToggle}\n aria-expanded={!collapsed}\n aria-controls={itemsId}\n aria-label={sidebarCollapsedTitle}\n title={sidebarCollapsedTitle}\n >\n <span className={styles.titleContent}>\n {iconNode}\n <span className={titleClassName}>{title}</span>\n </span>\n {!sidebarCollapsed && (\n <span className={toggleIconClassName} aria-hidden=\"true\">\n <ChevronDownSvg width={18} height={18} />\n </span>\n )}\n </button>\n );\n } else {\n headerNode = (\n <div\n className={cx(styles.header, {\n [styles.headerSidebarCollapsed]: sidebarCollapsed,\n })}\n title={sidebarCollapsedTitle}\n >\n <div className={styles.titleContent} id={titleId}>\n {iconNode}\n <span className={titleClassName}>{title}</span>\n </div>\n </div>\n );\n }\n }\n\n let itemsNode: JSX.Element | null = null;\n if (!collapsed) {\n const isNested = title != null && !sidebarCollapsed;\n const regularItemsNode = (\n <div\n className={cx(styles.items, {\n [styles.itemsNested]: isNested,\n })}\n id={itemsId}\n role=\"list\"\n >\n {items.map((item) => {\n const { id, data, ...rest } = item;\n return (\n <SidebarNavItem\n key={id}\n {...rest}\n collapsed={sidebarCollapsed}\n nested={isNested}\n />\n );\n })}\n </div>\n );\n\n itemsNode = regularItemsNode;\n\n if (sortableEnabled && !sidebarCollapsed) {\n itemsNode = (\n <DndContext\n accessibility={{\n screenReaderInstructions: {\n draggable: dragInstructions,\n },\n }}\n collisionDetection={closestCenter}\n sensors={sensors}\n onDragStart={handleDragStart}\n onDragOver={(event) => {\n setOverSortableId(event.over?.id ?? null);\n }}\n onDragCancel={resetDragState}\n onDragEnd={handleDragEnd}\n >\n <SortableContext\n items={sortableIds}\n strategy={verticalListSortingStrategy}\n >\n <div\n className={cx(styles.items, {\n [styles.itemsNested]: isNested,\n })}\n id={itemsId}\n role=\"list\"\n >\n {items.map((item) => {\n let placement: InsertionPlacement | undefined;\n if (item.id === insertionId) {\n placement = insertionPlacement;\n }\n return (\n <SortableSidebarNavItem\n key={item.id}\n item={item}\n isNested={isNested}\n sidebarCollapsed={sidebarCollapsed}\n dragHandleLabel={dragHandleLabel}\n insertionPlacement={placement}\n />\n );\n })}\n </div>\n </SortableContext>\n <DragOverlay>\n {activeItem != null && (\n <div className={styles.dragOverlay}>\n {activeItem.icon != null && (\n <span className={styles.dragOverlayIcon}>\n {activeItem.icon}\n </span>\n )}\n <span className={styles.dragOverlayLabel}>\n {activeItem.label}\n </span>\n </div>\n )}\n </DragOverlay>\n </DndContext>\n );\n }\n }\n\n let ariaLabelledBy: string | undefined;\n if (title != null) {\n ariaLabelledBy = titleId;\n }\n\n return (\n <section\n className={cx(styles.section, className)}\n aria-labelledby={ariaLabelledBy}\n >\n {headerNode}\n {itemsNode}\n </section>\n );\n};\n\nexport default SidebarNavSection;\n"],"mappings":";;;;;;;;;;;AA+EA,IAAM,MAA0B,EAC9B,SACA,aACA,qBACA,oBACA,4BAC8C;CAC9C,IAAM,EAAE,OAAI,UAAM,GAAG,MAAS,GACxB,EACJ,eACA,cACA,eACA,cACA,eACA,kBACE,EAAY;EACd;EACA,UAAU;EACX,CAAC;CAMF,OACE,kBAAC,OAAD;EACE,KAAK;EACE,OAAA;GAPT,WAAW,EAAI,UAAU,SAAS,EAAU;GAC5C;GAMS;EACP,WAAW,EAAG,GAAqB,G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EAAkB,EAAM,MAAM,MAAM,KAAK;;GAE3C,cAAc;GACd,WAAW;aAbb,CAeE,kBAAC,GAAD;IACE,OAAO;IACP,UAAU;cAEV,kBAAC,OAAD;KACE,WAAW,EAAG,GAAc,GACzB,IAAqB,GACvB,CAAC;KACF,IAAI;KACJ,MAAK;eAEJ,EAAM,KAAK,MAAS;MACnB,IAAI;MAIJ,OAHI,EAAK,OAAO,MACd,IAAY,IAGZ,kBAAC,IAAD;OAEQ;OACI;OACQ;OACD;OACjB,oBAAoB;OACpB,EANK,EAAK,GAMV;OAEJ;KACE,CAAA;IACU,CAAA,EAClB,kBAAC,GAAD,EAAA,UACG,KAAc,QACb,kBAAC,OAAD;IAAK,WAAW;cAAhB,CACG,EAAW,QAAQ,QAClB,kBAAC,QAAD;KAAM,WAAW;eACd,EAAW;KACP,CAAA,EAET,kBAAC,QAAD;KAAM,WAAW;eACd,EAAW;KACP,CAAA,CACH;OAEI,CAAA,CACH;;;CAKnB,IAAI;CAKJ,OAJI,KAAS,SACX,IAAiB,IAIjB,kBAAC,WAAD;EACE,WAAW,EAAG,IAAgB,GAAU;EACxC,mBAAiB;YAFnB,CAIG,GACA,EACO"}
|
|
1
|
+
{"version":3,"file":"SidebarNavSection.js","names":[],"sources":["../../../../../src/backoffice/molecules/sidebar_nav_section/SidebarNavSection.tsx"],"sourcesContent":["import {\n DndContext,\n DragOverlay,\n KeyboardSensor,\n PointerSensor,\n TouchSensor,\n closestCenter,\n useSensor,\n useSensors,\n type DragEndEvent,\n type DragStartEvent,\n type UniqueIdentifier,\n} from '@dnd-kit/core';\nimport {\n SortableContext,\n sortableKeyboardCoordinates,\n useSortable,\n verticalListSortingStrategy,\n} from '@dnd-kit/sortable';\nimport { CSS } from '@dnd-kit/utilities';\nimport {\n type CSSProperties,\n type JSX,\n type ReactNode,\n useCallback,\n useId,\n useMemo,\n useState,\n} from 'react';\nimport { useTranslation } from 'react-i18next';\n\nimport { ChevronDownSvg } from '../../../icons/ChevronDownSvg.js';\n\nimport {\n SidebarNavItem,\n type SidebarNavItemProps,\n} from '../sidebar_nav_item/SidebarNavItem.js';\nimport * as styles from './sidebarNavSection.css.js';\nimport { cx } from '../../../theme/tools.js';\n\nexport type SidebarNavSectionItemData = {\n kind: 'dashboard' | 'entity' | 'tool' | 'hub';\n id: string;\n groupId?: string;\n};\n\nexport type SidebarNavSectionItem = SidebarNavItemProps & {\n id: string;\n data?: SidebarNavSectionItemData;\n};\n\nexport type SidebarNavSectionReorder = {\n enabled: boolean;\n onReorder: (fromId: string, toId: string) => void;\n};\n\nexport type SidebarNavSectionProps = {\n title?: ReactNode;\n icon?: ReactNode;\n items: readonly SidebarNavSectionItem[];\n collapsible?: boolean;\n isCollapsed?: boolean;\n defaultCollapsed?: boolean;\n onCollapsedChange?: (collapsed: boolean) => void;\n collapsed?: boolean;\n reorder?: SidebarNavSectionReorder;\n className?: string;\n};\n\ntype InsertionPlacement = 'before' | 'after';\n\ntype SortableSidebarNavItemProps = {\n item: SidebarNavSectionItem;\n isNested: boolean;\n sidebarCollapsed: boolean;\n dragHandleLabel?: string;\n insertionPlacement?: InsertionPlacement;\n};\n\nconst SortableSidebarNavItem = ({\n item,\n isNested,\n sidebarCollapsed,\n dragHandleLabel,\n insertionPlacement,\n}: SortableSidebarNavItemProps): JSX.Element => {\n const { id, data, ...rest } = item;\n const {\n attributes,\n listeners,\n setNodeRef,\n transform,\n transition,\n isDragging,\n } = useSortable({\n id,\n disabled: sidebarCollapsed,\n });\n const style: CSSProperties = {\n transform: CSS.Transform.toString(transform),\n transition,\n };\n\n return (\n <div\n ref={setNodeRef}\n style={style}\n className={cx(styles.sortableItem, {\n [styles.sortableItemDragging]: isDragging,\n })}\n >\n {insertionPlacement === 'before' && (\n <span className={styles.insertionIndicator} aria-hidden=\"true\" />\n )}\n <SidebarNavItem\n {...rest}\n collapsed={sidebarCollapsed}\n nested={isNested}\n dragHandleLabel={rest.dragHandleLabel ?? dragHandleLabel}\n dragHandleProps={{\n ...attributes,\n ...listeners,\n }}\n isDragging={isDragging}\n />\n {insertionPlacement === 'after' && (\n <span className={styles.insertionIndicator} aria-hidden=\"true\" />\n )}\n </div>\n );\n};\n\nexport const SidebarNavSection = ({\n title,\n icon,\n items,\n collapsible = false,\n isCollapsed,\n defaultCollapsed = false,\n onCollapsedChange,\n collapsed: sidebarCollapsed = false,\n reorder,\n className,\n}: SidebarNavSectionProps): JSX.Element => {\n const [uncontrolledCollapsed, setUncontrolledCollapsed] =\n useState(defaultCollapsed);\n const itemsId = useId();\n const titleId = useId();\n const { t } = useTranslation('ui', { useSuspense: false });\n const [activeSortableId, setActiveSortableId] =\n useState<UniqueIdentifier | null>(null);\n const [overSortableId, setOverSortableId] = useState<UniqueIdentifier | null>(\n null,\n );\n\n const collapsed = isCollapsed ?? uncontrolledCollapsed;\n\n const canCollapse = collapsible;\n\n const handleToggle = useCallback(() => {\n if (!canCollapse) {\n return;\n }\n const next = !collapsed;\n if (isCollapsed == null) {\n setUncontrolledCollapsed(next);\n }\n onCollapsedChange?.(next);\n }, [canCollapse, collapsed, isCollapsed, onCollapsedChange]);\n\n let resolvedTitle: string | undefined;\n if (typeof title === 'string') {\n resolvedTitle = title;\n }\n\n const titleClassName = cx(styles.title, styles.titleTheme, {\n [styles.titleSidebarCollapsed]: sidebarCollapsed,\n });\n const toggleIconClassName = cx(styles.toggleIcon, {\n [styles.toggleIconCollapsed]: collapsed,\n });\n let sidebarCollapsedTitle: string | undefined;\n if (sidebarCollapsed) {\n sidebarCollapsedTitle = resolvedTitle;\n }\n let iconNode: JSX.Element | null = null;\n if (icon != null) {\n iconNode = (\n <span\n className={cx(styles.titleIcon, styles.titleIconTheme)}\n aria-hidden=\"true\"\n >\n {icon}\n </span>\n );\n }\n\n const sortableEnabled = reorder?.enabled === true && items.length > 1;\n const sortableIds = useMemo(() => {\n return items.map((item) => {\n return item.id;\n });\n }, [items]);\n const sensors = useSensors(\n useSensor(PointerSensor, {\n activationConstraint: {\n distance: 4,\n },\n }),\n useSensor(TouchSensor, {\n activationConstraint: {\n delay: 180,\n tolerance: 5,\n },\n }),\n useSensor(KeyboardSensor, {\n coordinateGetter: sortableKeyboardCoordinates,\n }),\n );\n\n const resetDragState = useCallback(() => {\n setActiveSortableId(null);\n setOverSortableId(null);\n }, []);\n\n const handleDragStart = useCallback((event: DragStartEvent) => {\n setActiveSortableId(event.active.id);\n setOverSortableId(event.active.id);\n }, []);\n\n const handleDragEnd = useCallback(\n (event: DragEndEvent) => {\n const activeItem =\n items.find((item) => {\n return item.id === String(event.active.id);\n }) ?? null;\n let overItem: SidebarNavSectionItem | null = null;\n if (event.over != null) {\n overItem =\n items.find((item) => {\n return item.id === String(event.over?.id);\n }) ?? null;\n }\n const fromId = activeItem?.data?.id ?? String(event.active.id);\n let toId: string | null = null;\n if (overItem != null) {\n toId = overItem.data?.id ?? String(event.over?.id);\n }\n resetDragState();\n if (toId == null || fromId === toId) {\n return;\n }\n reorder?.onReorder(fromId, toId);\n },\n [items, reorder, resetDragState],\n );\n\n const activeItem = useMemo(() => {\n if (activeSortableId == null) {\n return null;\n }\n return (\n items.find((item) => {\n return item.id === String(activeSortableId);\n }) ?? null\n );\n }, [activeSortableId, items]);\n\n let insertionId: string | null = null;\n let insertionPlacement: InsertionPlacement = 'before';\n if (\n activeSortableId != null &&\n overSortableId != null &&\n activeSortableId !== overSortableId\n ) {\n const activeIndex = sortableIds.indexOf(String(activeSortableId));\n const overIndex = sortableIds.indexOf(String(overSortableId));\n if (activeIndex !== -1 && overIndex !== -1) {\n insertionId = String(overSortableId);\n if (activeIndex < overIndex) {\n insertionPlacement = 'after';\n }\n }\n }\n\n const dragHandleLabel = t('navigation.sidebar.reorder.handle');\n const dragInstructions = t('navigation.sidebar.reorder.instructions');\n\n let headerNode: JSX.Element | null = null;\n if (title != null) {\n if (canCollapse) {\n headerNode = (\n <button\n id={titleId}\n type=\"button\"\n className={cx(styles.headerButton, {\n [styles.headerButtonSidebarCollapsed]: sidebarCollapsed,\n })}\n onClick={handleToggle}\n aria-expanded={!collapsed}\n aria-controls={itemsId}\n aria-label={sidebarCollapsedTitle}\n title={sidebarCollapsedTitle}\n >\n <span className={styles.titleContent}>\n {iconNode}\n <span className={titleClassName}>{title}</span>\n </span>\n {!sidebarCollapsed && (\n <span className={toggleIconClassName} aria-hidden=\"true\">\n <ChevronDownSvg width={18} height={18} />\n </span>\n )}\n </button>\n );\n } else {\n headerNode = (\n <div\n className={cx(styles.header, {\n [styles.headerSidebarCollapsed]: sidebarCollapsed,\n })}\n title={sidebarCollapsedTitle}\n >\n <div className={styles.titleContent} id={titleId}>\n {iconNode}\n <span className={titleClassName}>{title}</span>\n </div>\n </div>\n );\n }\n }\n\n let itemsNode: JSX.Element | null = null;\n if (!collapsed) {\n const isNested = title != null && !sidebarCollapsed;\n const regularItemsNode = (\n <div\n className={cx(styles.items, {\n [styles.itemsNested]: isNested,\n })}\n id={itemsId}\n role=\"list\"\n >\n {items.map((item) => {\n const { id, data, ...rest } = item;\n return (\n <SidebarNavItem\n key={id}\n {...rest}\n collapsed={sidebarCollapsed}\n nested={isNested}\n />\n );\n })}\n </div>\n );\n\n itemsNode = regularItemsNode;\n\n if (sortableEnabled && !sidebarCollapsed) {\n itemsNode = (\n <DndContext\n accessibility={{\n screenReaderInstructions: {\n draggable: dragInstructions,\n },\n }}\n collisionDetection={closestCenter}\n sensors={sensors}\n onDragStart={handleDragStart}\n onDragOver={(event) => {\n setOverSortableId(event.over?.id ?? null);\n }}\n onDragCancel={resetDragState}\n onDragEnd={handleDragEnd}\n >\n <SortableContext\n items={sortableIds}\n strategy={verticalListSortingStrategy}\n >\n <div\n className={cx(styles.items, {\n [styles.itemsNested]: isNested,\n })}\n id={itemsId}\n role=\"list\"\n >\n {items.map((item) => {\n let placement: InsertionPlacement | undefined;\n if (item.id === insertionId) {\n placement = insertionPlacement;\n }\n return (\n <SortableSidebarNavItem\n key={item.id}\n item={item}\n isNested={isNested}\n sidebarCollapsed={sidebarCollapsed}\n dragHandleLabel={dragHandleLabel}\n insertionPlacement={placement}\n />\n );\n })}\n </div>\n </SortableContext>\n <DragOverlay>\n {activeItem != null && (\n <div className={styles.dragOverlay}>\n {activeItem.icon != null && (\n <span className={styles.dragOverlayIcon}>\n {activeItem.icon}\n </span>\n )}\n <span className={styles.dragOverlayLabel}>\n {activeItem.label}\n </span>\n </div>\n )}\n </DragOverlay>\n </DndContext>\n );\n }\n }\n\n let ariaLabelledBy: string | undefined;\n if (title != null) {\n ariaLabelledBy = titleId;\n }\n\n return (\n <section\n className={cx(styles.section, className)}\n aria-labelledby={ariaLabelledBy}\n >\n {headerNode}\n {itemsNode}\n </section>\n );\n};\n\nexport default SidebarNavSection;\n"],"mappings":";;;;;;;;;;;AA+EA,IAAM,MAA0B,EAC9B,SACA,aACA,qBACA,oBACA,4BAC8C;CAC9C,IAAM,EAAE,OAAI,UAAM,GAAG,MAAS,GACxB,EACJ,eACA,cACA,eACA,cACA,eACA,kBACE,EAAY;EACd;EACA,UAAU;EACX,CAAC;CAMF,OACE,kBAAC,OAAD;EACE,KAAK;EACE,OAAA;GAPT,WAAW,EAAI,UAAU,SAAS,EAAU;GAC5C;GAMS;EACP,WAAW,EAAG,GAAqB,GAChC,IAA8B,GAChC,CAAC;YALJ;GAOG,MAAuB,YACtB,kBAAC,QAAD;IAAM,WAAW;IAA2B,eAAY;IAAS,CAAA;GAEnE,kBAAC,GAAD;IACE,GAAI;IACJ,WAAW;IACX,QAAQ;IACR,iBAAiB,EAAK,mBAAmB;IACzC,iBAAiB;KACf,GAAG;KACH,GAAG;KACJ;IACW;IACZ,CAAA;GACD,MAAuB,WACtB,kBAAC,QAAD;IAAM,WAAW;IAA2B,eAAY;IAAS,CAAA;GAE/D;;GAIG,KAAqB,EAChC,OAAA,GACA,SACA,OAAA,GACA,iBAAc,IACd,gBACA,uBAAmB,IACnB,sBACA,WAAW,IAAmB,IAC9B,YACA,mBACyC;CACzC,IAAM,CAAC,IAAuB,MAC5B,EAAS,GAAiB,EACtB,IAA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,QAClB,kBAAC,QAAD;KAAM,WAAW;eACd,EAAW;KACP,CAAA,EAET,kBAAC,QAAD;KAAM,WAAW;eACd,EAAW;KACP,CAAA,CACH;OAEI,CAAA,CACH;;;CAKnB,IAAI;CAKJ,OAJI,KAAS,SACX,IAAiB,IAIjB,kBAAC,WAAD;EACE,WAAW,EAAG,IAAgB,EAAU;EACxC,mBAAiB;YAFnB,CAIG,GACA,EACO"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
//#region src/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.ts
|
|
4
|
-
var e = "_1rp5mg60 txvbqbdr8 txvbqbf6i txvbqbga8", t = "_1rp5mg61 txvbqbyo5 txvbqbzlq txvbqb11e0 txvbqbwq3 txvbqbdr8 txvbqbey txvbqbjus txvbqbff6 txvbqbscn", n = "_1rp5mg62 txvbqbynf txvbqbzl0 txvbqbjtp", r = "
|
|
4
|
+
var e = "_1rp5mg60 txvbqbdr8 txvbqbf6i txvbqbga8", t = "_1rp5mg61 txvbqbyo5 txvbqbzlq txvbqb11e0 txvbqbwq3 txvbqbdr8 txvbqbey txvbqbjus txvbqbff6 txvbqbscn", n = "_1rp5mg62 txvbqbynf txvbqbzl0 txvbqbjtp", r = "_1rp5mg64 _1rp5mg63 txvbqbyo5 txvbqbzlq txvbqb11e0 txvbqbwq3 txvbqbdr8 txvbqbey txvbqbjus txvbqbff6 txvbqb17w0 txvbqbscn txvbqb2g9 txvbqb1g5 txvbqb2e3 txvbqb1933 txvbqbv txvbqb16ex", i = "_1rp5mg65 txvbqbynf txvbqbzl0 txvbqbjtp", a = "_1rp5mg66 txvbqb8t txvbqbfd0 txvbqb6a txvbqbkwc", o = "_1rp5mg67", s = "_1rp5mg68 txvbqbdsb txvbqbey txvbqbt9i txvbqbff6", c = "_1rp5mg69 txvbqbdsb txvbqbey txvbqbjtp txvbqb17h7 txvbqbhmm txvbqbf7y", l = "_1rp5mg6a", u = "_1rp5mg6b txvbqbdq5", d = "_1rp5mg6d _1rp5mg6c txvbqbdsb txvbqbey txvbqbjtp txvbqb17hk txvbqbhmz txvbqb2fj", f = "_1rp5mg6e", p = "_1rp5mg6f txvbqbdr8 txvbqbf6i txvbqbga8", m = "_1rp5mg6h _1rp5mg6g txvbqbo62 txvbqbyo5 txvbqb9mg", h = "_1rp5mg6i", g = "_1rp5mg6j", _ = "_1rp5mg6l _1rp5mg6k txvbqbqv7 txvbqbo2g txvbqbdqi txvbqb2is", v = "_1rp5mg6n _1rp5mg6m txvbqbyoi txvbqbzm3 txvbqb11ed txvbqbwqg txvbqbdr8 txvbqbey txvbqbff6 txvbqb2gm txvbqb9j txvbqbfd0 txvbqb1uy txvbqbck9", y = "_1rp5mg6o txvbqbdsb txvbqbey txvbqbjtp txvbqb17hx txvbqbhnc txvbqbf7y", b = "_1rp5mg6q _1rp5mg6p txvbqbt9i";
|
|
5
5
|
//#endregion
|
|
6
|
-
export {
|
|
6
|
+
export { v as dragOverlay, y as dragOverlayIcon, b as dragOverlayLabel, t as header, r as headerButton, i as headerButtonSidebarCollapsed, n as headerSidebarCollapsed, _ as insertionIndicator, p as items, m as itemsNested, e as section, h as sortableItem, g as sortableItemDragging, a as title, s as titleContent, c as titleIcon, l as titleIconTheme, u as titleSidebarCollapsed, o as titleTheme, d as toggleIcon, f as toggleIconCollapsed };
|
|
7
7
|
|
|
8
8
|
//# sourceMappingURL=sidebarNavSection.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebarNavSection.css.js","names":[],"sources":["../../../../../src/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { sprinkles
|
|
1
|
+
{"version":3,"file":"sidebarNavSection.css.js","names":[],"sources":["../../../../../src/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\nimport { sprinkles } from '../../../theme/sprinkles.css.js';\nimport { vars } from '../../../theme/themeContract.css.js';\n\nexport const section = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 1.5,\n});\n\nexport const header = sprinkles({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n gap: 2,\n paddingX: 2,\n paddingY: 0.5,\n minHeight: 8,\n});\n\nexport const headerSidebarCollapsed = sprinkles({\n justifyContent: 'center',\n paddingX: 0,\n});\n\nexport const headerButton = style([\n sprinkles({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n gap: 2,\n width: 'full',\n paddingX: 2,\n paddingY: 0.5,\n minHeight: 8,\n borderRadius: 'md',\n borderWidth: 0,\n borderStyle: 'none',\n backgroundColor: 'transparent',\n cursor: 'pointer',\n textAlign: 'left',\n }),\n {\n selectors: {\n '&:hover': {\n backgroundColor: vars.sidebar.sectionHeaderHoverBackground,\n },\n '&:focus-visible': {\n boxShadow: vars.sidebar.itemFocusRing,\n outline: 'none',\n },\n },\n },\n]);\n\nexport const headerButtonSidebarCollapsed = sprinkles({\n justifyContent: 'center',\n paddingX: 0,\n});\n\nexport const title = sprinkles({\n fontSize: '2xs',\n fontWeight: 'semibold',\n textTransform: 'uppercase',\n letterSpacing: 'wide',\n});\n\nexport const titleTheme = style({\n color: vars.sidebar.sectionHeaderColor,\n});\n\nexport const titleContent = sprinkles({\n display: 'inline-flex',\n alignItems: 'center',\n minWidth: 0,\n gap: 2,\n});\n\nexport const titleIcon = sprinkles({\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: 4,\n height: 4,\n flexShrink: 0,\n});\n\nexport const titleIconTheme = style({\n color: vars.sidebar.sectionHeaderIconColor,\n});\n\nexport const titleSidebarCollapsed = sprinkles({\n display: 'none',\n});\n\nexport const toggleIcon = style([\n sprinkles({\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: 5,\n height: 5,\n borderRadius: 'sm',\n }),\n {\n color: vars.sidebar.sectionToggleColor,\n transition: 'transform 120ms ease',\n },\n]);\n\nexport const toggleIconCollapsed = style({\n transform: 'rotate(-90deg)',\n});\n\nexport const items = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 1.5,\n});\n\nexport const itemsNested = style([\n sprinkles({\n marginLeft: 4,\n paddingLeft: 2,\n borderLeftWidth: 'default',\n }),\n {\n borderLeftStyle: 'solid',\n borderLeftColor: vars.sidebar.nestedBorderColor,\n },\n]);\n\nexport const sortableItem = style({\n position: 'relative',\n});\n\nexport const sortableItemDragging = style({\n zIndex: 1,\n});\n\nexport const insertionIndicator = style([\n sprinkles({\n display: 'block',\n marginY: 0.5,\n borderRadius: 'full',\n }),\n {\n backgroundColor: vars.sidebar.insertionIndicatorColor,\n height: '2px',\n },\n]);\n\nexport const dragOverlay = style([\n sprinkles({\n display: 'flex',\n alignItems: 'center',\n gap: 2,\n paddingY: 1.5,\n paddingX: 3,\n borderRadius: 'lg',\n fontSize: 'sm',\n fontWeight: 'semibold',\n borderWidth: 'default',\n boxShadow: 'lg',\n }),\n {\n backgroundColor: vars.sidebar.dragOverlayBackground,\n borderColor: vars.sidebar.dragOverlayBorderColor,\n borderStyle: 'solid',\n color: vars.sidebar.dragOverlayColor,\n cursor: 'grabbing',\n minWidth: '12rem',\n maxWidth: '18rem',\n },\n]);\n\nexport const dragOverlayIcon = sprinkles({\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: 6,\n height: 6,\n flexShrink: 0,\n});\n\nexport const dragOverlayLabel = style([\n sprinkles({\n minWidth: 0,\n }),\n {\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n },\n]);\n"],"mappings":""}
|
|
@@ -2,80 +2,80 @@ import { cx as e } from "../../../theme/tools.js";
|
|
|
2
2
|
import { ChevronDownSvg as t } from "../../../icons/ChevronDownSvg.js";
|
|
3
3
|
import { Dropdown as n } from "../../../atomic/molecules/dropdown/Dropdown.js";
|
|
4
4
|
import { ProfileDropdownLogoutSvg as r } from "../../../icons/ProfileDropdownLogoutSvg.js";
|
|
5
|
-
import { avatar as i,
|
|
6
|
-
import { jsx as
|
|
5
|
+
import { avatar as i, avatarTheme as a, container as o, hidden as s, menu as c, menuDisplayName as l, menuDisplayNameTheme as u, menuEmail as d, menuEmailTheme as f, menuIcon as p, menuIconTheme as m, menuIdentity as h, menuItem as g, title as _, titleTheme as v, trigger as y, triggerMain as b } from "./sidebarProfileMenu.css.js";
|
|
6
|
+
import { jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
7
7
|
//#region src/backoffice/molecules/sidebar_profile_menu/BackofficeSidebarProfileMenu.tsx
|
|
8
|
-
var
|
|
9
|
-
let
|
|
10
|
-
|
|
11
|
-
let
|
|
12
|
-
return
|
|
13
|
-
className: e(
|
|
14
|
-
children: [/* @__PURE__ */
|
|
15
|
-
className:
|
|
16
|
-
children:
|
|
17
|
-
}), /* @__PURE__ */
|
|
18
|
-
trigger: (n) => /* @__PURE__ */
|
|
8
|
+
var C = ({ viewer: C, collapsed: w, labels: T, onSignOut: E, isSigningOut: D = !1, className: O }) => {
|
|
9
|
+
let k = e(_, v);
|
|
10
|
+
w && (k = s);
|
|
11
|
+
let A = `${T.menuAriaLabel}: ${C.displayName}`, j;
|
|
12
|
+
return w && (j = A), /* @__PURE__ */ S("div", {
|
|
13
|
+
className: e(o, O),
|
|
14
|
+
children: [/* @__PURE__ */ x("div", {
|
|
15
|
+
className: k,
|
|
16
|
+
children: T.sectionTitle
|
|
17
|
+
}), /* @__PURE__ */ x(n, {
|
|
18
|
+
trigger: (n) => /* @__PURE__ */ S("button", {
|
|
19
19
|
type: "button",
|
|
20
|
-
className:
|
|
21
|
-
"aria-label":
|
|
22
|
-
title:
|
|
23
|
-
children: [/* @__PURE__ */
|
|
24
|
-
className:
|
|
25
|
-
children: [/* @__PURE__ */
|
|
26
|
-
className: i,
|
|
27
|
-
children:
|
|
28
|
-
}), !
|
|
29
|
-
className: "
|
|
30
|
-
children: [/* @__PURE__ */
|
|
31
|
-
className: "
|
|
32
|
-
children:
|
|
33
|
-
}), /* @__PURE__ */
|
|
34
|
-
className: "
|
|
35
|
-
children:
|
|
20
|
+
className: y({ collapsed: w }),
|
|
21
|
+
"aria-label": A,
|
|
22
|
+
title: j,
|
|
23
|
+
children: [/* @__PURE__ */ S("span", {
|
|
24
|
+
className: b,
|
|
25
|
+
children: [/* @__PURE__ */ x("span", {
|
|
26
|
+
className: e(i, a),
|
|
27
|
+
children: C.initials
|
|
28
|
+
}), !w && /* @__PURE__ */ S("span", {
|
|
29
|
+
className: "_1uw3f9od txvbqbdr8 txvbqbf6i txvbqbt9i",
|
|
30
|
+
children: [/* @__PURE__ */ x("span", {
|
|
31
|
+
className: e("_1uw3f9oe txvbqb9j txvbqbfd0 txvbqb18xk txvbqbusr txvbqb16g0", "_1uw3f9of"),
|
|
32
|
+
children: C.displayName
|
|
33
|
+
}), /* @__PURE__ */ x("span", {
|
|
34
|
+
className: e("_1uw3f9og txvbqb96 txvbqb18xk txvbqbusr txvbqb16g0", "_1uw3f9oh"),
|
|
35
|
+
children: C.email
|
|
36
36
|
})]
|
|
37
37
|
})]
|
|
38
|
-
}), !
|
|
38
|
+
}), !w && /* @__PURE__ */ x(t, {
|
|
39
39
|
width: 16,
|
|
40
40
|
height: 16,
|
|
41
|
-
className: e("
|
|
41
|
+
className: e("_1uw3f9oi txvbqb7p txvbqb75 txvbqb7t", "_1uw3f9oj", { "_1uw3f9ok txvbqb30": n })
|
|
42
42
|
})]
|
|
43
43
|
}),
|
|
44
|
-
ariaLabel:
|
|
44
|
+
ariaLabel: A,
|
|
45
45
|
contentRole: "dialog",
|
|
46
|
-
contentAriaLabel:
|
|
46
|
+
contentAriaLabel: A,
|
|
47
47
|
placement: "top-start",
|
|
48
48
|
closeOnItemClick: !0,
|
|
49
49
|
matchTriggerWidth: !1,
|
|
50
|
-
children: /* @__PURE__ */
|
|
51
|
-
className:
|
|
52
|
-
children: [/* @__PURE__ */
|
|
53
|
-
className:
|
|
54
|
-
children: [/* @__PURE__ */
|
|
55
|
-
className:
|
|
56
|
-
children:
|
|
57
|
-
}), /* @__PURE__ */
|
|
58
|
-
className:
|
|
59
|
-
children:
|
|
50
|
+
children: /* @__PURE__ */ S("div", {
|
|
51
|
+
className: c,
|
|
52
|
+
children: [/* @__PURE__ */ S("div", {
|
|
53
|
+
className: h,
|
|
54
|
+
children: [/* @__PURE__ */ x("span", {
|
|
55
|
+
className: e(l, u),
|
|
56
|
+
children: C.displayName
|
|
57
|
+
}), /* @__PURE__ */ x("span", {
|
|
58
|
+
className: e(d, f),
|
|
59
|
+
children: C.email
|
|
60
60
|
})]
|
|
61
|
-
}), /* @__PURE__ */
|
|
61
|
+
}), /* @__PURE__ */ S("button", {
|
|
62
62
|
type: "button",
|
|
63
|
-
className:
|
|
64
|
-
onClick:
|
|
65
|
-
disabled:
|
|
66
|
-
children: [/* @__PURE__ */
|
|
67
|
-
className:
|
|
68
|
-
children: /* @__PURE__ */
|
|
63
|
+
className: g,
|
|
64
|
+
onClick: E,
|
|
65
|
+
disabled: D,
|
|
66
|
+
children: [/* @__PURE__ */ x("span", {
|
|
67
|
+
className: e(p, m),
|
|
68
|
+
children: /* @__PURE__ */ x(r, {
|
|
69
69
|
width: 16,
|
|
70
70
|
height: 16
|
|
71
71
|
})
|
|
72
|
-
}),
|
|
72
|
+
}), T.signOut]
|
|
73
73
|
})]
|
|
74
74
|
})
|
|
75
75
|
})]
|
|
76
76
|
});
|
|
77
77
|
};
|
|
78
78
|
//#endregion
|
|
79
|
-
export {
|
|
79
|
+
export { C as BackofficeSidebarProfileMenu, C as default };
|
|
80
80
|
|
|
81
81
|
//# sourceMappingURL=BackofficeSidebarProfileMenu.js.map
|
package/lib/esm/backoffice/molecules/sidebar_profile_menu/BackofficeSidebarProfileMenu.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BackofficeSidebarProfileMenu.js","names":[],"sources":["../../../../../src/backoffice/molecules/sidebar_profile_menu/BackofficeSidebarProfileMenu.tsx"],"sourcesContent":["import { type JSX } from 'react';\n\nimport { Dropdown } from '../../../atomic/molecules/dropdown/Dropdown.js';\nimport { ChevronDownSvg } from '../../../icons/ChevronDownSvg.js';\nimport { ProfileDropdownLogoutSvg } from '../../../icons/ProfileDropdownLogoutSvg.js';\nimport { cx } from '../../../theme/tools.js';\n\nimport * as styles from './sidebarProfileMenu.css.js';\n\nexport type BackofficeSidebarProfileViewer = {\n displayName: string;\n email: string;\n initials: string;\n ariaLabel: string;\n};\n\nexport type BackofficeSidebarProfileMenuLabels = {\n sectionTitle: string;\n menuAriaLabel: string;\n signOut: string;\n};\n\nexport type BackofficeSidebarProfileMenuProps = {\n viewer: BackofficeSidebarProfileViewer;\n collapsed: boolean;\n labels: BackofficeSidebarProfileMenuLabels;\n onSignOut: () => void;\n isSigningOut?: boolean;\n className?: string;\n};\n\nexport const BackofficeSidebarProfileMenu = ({\n viewer,\n collapsed,\n labels,\n onSignOut,\n isSigningOut = false,\n className,\n}: BackofficeSidebarProfileMenuProps): JSX.Element => {\n let titleClassName = styles.title;\n if (collapsed) {\n titleClassName = styles.hidden;\n }\n const triggerAriaLabel = `${labels.menuAriaLabel}: ${viewer.displayName}`;\n let triggerTitle: string | undefined;\n if (collapsed) {\n triggerTitle = triggerAriaLabel;\n }\n\n return (\n <div className={cx(styles.container, className)}>\n <div className={titleClassName}>{labels.sectionTitle}</div>\n <Dropdown\n trigger={(isOpen: boolean) => {\n return (\n <button\n type=\"button\"\n className={styles.trigger({ collapsed })}\n aria-label={triggerAriaLabel}\n title={triggerTitle}\n >\n <span className={styles.triggerMain}>\n <span className={styles.avatar}
|
|
1
|
+
{"version":3,"file":"BackofficeSidebarProfileMenu.js","names":[],"sources":["../../../../../src/backoffice/molecules/sidebar_profile_menu/BackofficeSidebarProfileMenu.tsx"],"sourcesContent":["import { type JSX } from 'react';\n\nimport { Dropdown } from '../../../atomic/molecules/dropdown/Dropdown.js';\nimport { ChevronDownSvg } from '../../../icons/ChevronDownSvg.js';\nimport { ProfileDropdownLogoutSvg } from '../../../icons/ProfileDropdownLogoutSvg.js';\nimport { cx } from '../../../theme/tools.js';\n\nimport * as styles from './sidebarProfileMenu.css.js';\n\nexport type BackofficeSidebarProfileViewer = {\n displayName: string;\n email: string;\n initials: string;\n ariaLabel: string;\n};\n\nexport type BackofficeSidebarProfileMenuLabels = {\n sectionTitle: string;\n menuAriaLabel: string;\n signOut: string;\n};\n\nexport type BackofficeSidebarProfileMenuProps = {\n viewer: BackofficeSidebarProfileViewer;\n collapsed: boolean;\n labels: BackofficeSidebarProfileMenuLabels;\n onSignOut: () => void;\n isSigningOut?: boolean;\n className?: string;\n};\n\nexport const BackofficeSidebarProfileMenu = ({\n viewer,\n collapsed,\n labels,\n onSignOut,\n isSigningOut = false,\n className,\n}: BackofficeSidebarProfileMenuProps): JSX.Element => {\n let titleClassName = cx(styles.title, styles.titleTheme);\n if (collapsed) {\n titleClassName = styles.hidden;\n }\n const triggerAriaLabel = `${labels.menuAriaLabel}: ${viewer.displayName}`;\n let triggerTitle: string | undefined;\n if (collapsed) {\n triggerTitle = triggerAriaLabel;\n }\n\n return (\n <div className={cx(styles.container, className)}>\n <div className={titleClassName}>{labels.sectionTitle}</div>\n <Dropdown\n trigger={(isOpen: boolean) => {\n return (\n <button\n type=\"button\"\n className={styles.trigger({ collapsed })}\n aria-label={triggerAriaLabel}\n title={triggerTitle}\n >\n <span className={styles.triggerMain}>\n <span className={cx(styles.avatar, styles.avatarTheme)}>\n {viewer.initials}\n </span>\n {!collapsed && (\n <span className={styles.identity}>\n <span\n className={cx(\n styles.displayName,\n styles.displayNameTheme,\n )}\n >\n {viewer.displayName}\n </span>\n <span className={cx(styles.email, styles.emailTheme)}>\n {viewer.email}\n </span>\n </span>\n )}\n </span>\n {!collapsed && (\n <ChevronDownSvg\n width={16}\n height={16}\n className={cx(styles.chevron, styles.chevronTheme, {\n [styles.chevronOpen]: isOpen,\n })}\n />\n )}\n </button>\n );\n }}\n ariaLabel={triggerAriaLabel}\n contentRole=\"dialog\"\n contentAriaLabel={triggerAriaLabel}\n placement=\"top-start\"\n closeOnItemClick\n matchTriggerWidth={false}\n >\n <div className={styles.menu}>\n <div className={styles.menuIdentity}>\n <span\n className={cx(\n styles.menuDisplayName,\n styles.menuDisplayNameTheme,\n )}\n >\n {viewer.displayName}\n </span>\n <span className={cx(styles.menuEmail, styles.menuEmailTheme)}>\n {viewer.email}\n </span>\n </div>\n <button\n type=\"button\"\n className={styles.menuItem}\n onClick={onSignOut}\n disabled={isSigningOut}\n >\n <span className={cx(styles.menuIcon, styles.menuIconTheme)}>\n <ProfileDropdownLogoutSvg width={16} height={16} />\n </span>\n {labels.signOut}\n </button>\n </div>\n </Dropdown>\n </div>\n );\n};\n\nexport default BackofficeSidebarProfileMenu;\n"],"mappings":";;;;;;;AA+BA,IAAa,KAAgC,EAC3C,WACA,cACA,WACA,cACA,kBAAe,IACf,mBACoD;CACpD,IAAI,IAAiB,EAAG,GAAc,EAAkB;CACxD,AAAI,MACF,IAAiB;CAEnB,IAAM,IAAmB,GAAG,EAAO,cAAc,IAAI,EAAO,eACxD;CAKJ,OAJI,MACF,IAAe,IAIf,kBAAC,OAAD;EAAK,WAAW,EAAG,GAAkB,EAAU;YAA/C,CACE,kBAAC,OAAD;GAAK,WAAW;aAAiB,EAAO;GAAmB,CAAA,EAC3D,kBAAC,GAAD;GACE,UAAU,MAEN,kBAAC,UAAD;IACE,MAAK;IACL,WAAW,EAAe,EAAE,cAAW,CAAC;IACxC,cAAY;IACZ,OAAO;cAJT,CAME,kBAAC,QAAD;KAAM,WAAW;eAAjB,CACE,kBAAC,QAAD;MAAM,WAAW,EAAG,GAAe,EAAmB;gBACnD,EAAO;MACH,CAAA,EACN,CAAC,KACA,kBAAC,QAAD;MAAM,WAAW;gBAAjB,CACE,kBAAC,QAAD;OACE,WAAW,EACT,gEACA,YACD;iBAEA,EAAO;OACH,CAAA,EACP,kBAAC,QAAD;OAAM,WAAW,EAAG,sDAAc,YAAkB;iBACjD,EAAO;OACH,CAAA,CACF;QAEJ;QACN,CAAC,KACA,kBAAC,GAAD;KACE,OAAO;KACP,QAAQ;KACR,WAAW,EAAG,wCAAgB,aAAqB,EAChD,sBAAqB,GACvB,CAAC;KACF,CAAA,CAEG;;GAGb,WAAW;GACX,aAAY;GACZ,kBAAkB;GAClB,WAAU;GACV,kBAAA;GACA,mBAAmB;aAEnB,kBAAC,OAAD;IAAK,WAAW;cAAhB,CACE,kBAAC,OAAD;KAAK,WAAW;eAAhB,CACE,kBAAC,QAAD;MACE,WAAW,EACT,GACA,EACD;gBAEA,EAAO;MACH,CAAA,EACP,kBAAC,QAAD;MAAM,WAAW,EAAG,GAAkB,EAAsB;gBACzD,EAAO;MACH,CAAA,CACH;QACN,kBAAC,UAAD;KACE,MAAK;KACL,WAAW;KACX,SAAS;KACT,UAAU;eAJZ,CAME,kBAAC,QAAD;MAAM,WAAW,EAAG,GAAiB,EAAqB;gBACxD,kBAAC,GAAD;OAA0B,OAAO;OAAI,QAAQ;OAAM,CAAA;MAC9C,CAAA,EACN,EAAO,QACD;OACL;;GACG,CAAA,CACP"}
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
import { createRuntimeFn as e } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
4
4
|
//#region src/backoffice/molecules/sidebar_profile_menu/sidebarProfileMenu.css.ts
|
|
5
|
-
var t = "_1uw3f9o0 txvbqbdr8 txvbqbf6i txvbqbff6 txvbqb17w0", n = "_1uw3f9o1 txvbqbyns txvbqbzld txvbqb96 txvbqbfd0
|
|
6
|
-
defaultClassName: "
|
|
5
|
+
var t = "_1uw3f9o0 txvbqbdr8 txvbqbf6i txvbqbff6 txvbqb17w0", n = "_1uw3f9o1 txvbqbyns txvbqbzld txvbqb96 txvbqbfd0", r = "_1uw3f9o2", i = "_1uw3f9o3 txvbqbdq5", a = e({
|
|
6
|
+
defaultClassName: "_1uw3f9o7 _1uw3f9o4 txvbqbdr8 txvbqbey txvbqb17w0 txvbqb1uy txvbqb2et txvbqb2gm txvbqb7h txvbqb75 txvbqb7t txvbqbv",
|
|
7
7
|
variantClassNames: { collapsed: {
|
|
8
|
-
true: "
|
|
9
|
-
false: "
|
|
8
|
+
true: "_1uw3f9o8 _1uw3f9o5 txvbqbjtp txvbqbuxt",
|
|
9
|
+
false: "_1uw3f9o9 _1uw3f9o6 txvbqbyoi txvbqbzm3 txvbqb10jb txvbqbvve txvbqbjus txvbqbff6"
|
|
10
10
|
} },
|
|
11
11
|
defaultVariants: { collapsed: !1 },
|
|
12
12
|
compoundVariants: []
|
|
13
|
-
}),
|
|
13
|
+
}), o = "_1uw3f9oa txvbqbdr8 txvbqbey txvbqbff6 txvbqbt9i txvbqbdxd", s = "_1uw3f9ob txvbqb17in txvbqbho2 txvbqbtce txvbqbscn txvbqb2is txvbqbdr8 txvbqbey txvbqbjtp txvbqb96 txvbqbfd0 txvbqb6a", c = "_1uw3f9oc", l = "_1uw3f9od txvbqbdr8 txvbqbf6i txvbqbt9i", u = "_1uw3f9oe txvbqb9j txvbqbfd0 txvbqb18xk txvbqbusr txvbqb16g0", d = "_1uw3f9of", f = "_1uw3f9og txvbqb96 txvbqb18xk txvbqbusr txvbqb16g0", p = "_1uw3f9oh", m = "_1uw3f9oi txvbqb7p txvbqb75 txvbqb7t", h = "_1uw3f9oj", g = "_1uw3f9ok txvbqb30", _ = "_1uw3f9ol txvbqbtkc txvbqbuxt txvbqbdr8 txvbqbf6i txvbqbfet", v = "_1uw3f9on _1uw3f9om txvbqbyoi txvbqbzm3 txvbqb10jb txvbqbvve txvbqbdr8 txvbqbf6i txvbqbg9v txvbqb8pl txvbqbn7e", y = "_1uw3f9oo txvbqb9j txvbqbfd0 txvbqb18xk txvbqbusr txvbqb16g0", b = "_1uw3f9op", x = "_1uw3f9oq txvbqb96 txvbqb18xk txvbqbusr txvbqb16g0", S = "_1uw3f9or", C = "_1uw3f9ot _1uw3f9os txvbqbyoi txvbqbzm3 txvbqb10jb txvbqbvve txvbqbdr8 txvbqbey txvbqbff6 txvbqb17w0 txvbqb1g5 txvbqb2e3 txvbqb2g9 txvbqb1933 txvbqb9j txvbqbfcn txvbqb16ex txvbqbv txvbqb7h txvbqb75 txvbqb7t", w = "_1uw3f9ou txvbqbdsb txvbqbey", T = "_1uw3f9ov";
|
|
14
14
|
//#endregion
|
|
15
|
-
export {
|
|
15
|
+
export { s as avatar, c as avatarTheme, m as chevron, g as chevronOpen, h as chevronTheme, t as container, u as displayName, d as displayNameTheme, f as email, p as emailTheme, i as hidden, l as identity, _ as menu, y as menuDisplayName, b as menuDisplayNameTheme, x as menuEmail, S as menuEmailTheme, w as menuIcon, T as menuIconTheme, v as menuIdentity, C as menuItem, n as title, r as titleTheme, a as trigger, o as triggerMain };
|
|
16
16
|
|
|
17
17
|
//# sourceMappingURL=sidebarProfileMenu.css.js.map
|