@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.
Files changed (570) hide show
  1. package/README.md +129 -15
  2. package/lib/esm/admin/organisms/admin_sidebar/AdminSidebar.js +4 -4
  3. package/lib/esm/admin/organisms/admin_sidebar/adminSidebar.css.js +0 -2
  4. package/lib/esm/admin/organisms/admin_topbar/adminTopbar.css.js +1 -0
  5. package/lib/esm/admin/templates/admin_shell_layout/AdminShellLayout.js +2 -2
  6. package/lib/esm/admin/templates/admin_shell_layout/AdminShellLayout.js.map +1 -1
  7. package/lib/esm/atomic/atoms/badge/Badge.js.map +1 -1
  8. package/lib/esm/atomic/atoms/error_message/ErrorMessage.js +9 -8
  9. package/lib/esm/atomic/atoms/error_message/ErrorMessage.js.map +1 -1
  10. package/lib/esm/atomic/atoms/error_message/errorMessage.css.js +1 -0
  11. package/lib/esm/atomic/molecules/card/Card.js +17 -19
  12. package/lib/esm/atomic/molecules/card/Card.js.map +1 -1
  13. package/lib/esm/atomic/molecules/empty-state/EmptyState.css.js +80 -2
  14. package/lib/esm/atomic/molecules/empty-state/EmptyState.css.js.map +1 -1
  15. package/lib/esm/atomic/molecules/empty-state/EmptyState.js +50 -28
  16. package/lib/esm/atomic/molecules/empty-state/EmptyState.js.map +1 -1
  17. package/lib/esm/atomic/molecules/form_error/FormError.js +29 -19
  18. package/lib/esm/atomic/molecules/form_error/FormError.js.map +1 -1
  19. package/lib/esm/atomic/molecules/form_error/formError.css.js +1 -1
  20. package/lib/esm/atomic/molecules/form_error/formError.css.js.map +1 -1
  21. package/lib/esm/atomic/molecules/markdown/components/MarkdownDelete.css.js +0 -1
  22. package/lib/esm/atomic/molecules/markdown/components/MarkdownHeading.css.js +1 -0
  23. package/lib/esm/atomic/molecules/tabs/Tabs.js +82 -28
  24. package/lib/esm/atomic/molecules/tabs/Tabs.js.map +1 -1
  25. package/lib/esm/atomic/molecules/tabs/tabs.css.js +50 -8
  26. package/lib/esm/atomic/molecules/tabs/tabs.css.js.map +1 -1
  27. package/lib/esm/atomic/organisms/sidebar/NavigationSidebar.js +48 -48
  28. package/lib/esm/atomic/organisms/sidebar/NavigationSidebar.js.map +1 -1
  29. package/lib/esm/backoffice/atoms/status_badge/StatusBadge.js.map +1 -1
  30. package/lib/esm/backoffice/molecules/backoffice_audit_metadata_panel/BackofficeAuditMetadataPanel.js +38 -0
  31. package/lib/esm/backoffice/molecules/backoffice_audit_metadata_panel/BackofficeAuditMetadataPanel.js.map +1 -0
  32. package/lib/esm/backoffice/molecules/backoffice_detail_field/BackofficeDetailField.js +35 -0
  33. package/lib/esm/backoffice/molecules/backoffice_detail_field/BackofficeDetailField.js.map +1 -0
  34. package/lib/esm/backoffice/molecules/backoffice_detail_field/backofficeDetailField.css.js +16 -0
  35. package/lib/esm/backoffice/molecules/backoffice_detail_field/backofficeDetailField.css.js.map +1 -0
  36. package/lib/esm/backoffice/molecules/backoffice_detail_flag_tag/BackofficeDetailFlagTag.js +25 -0
  37. package/lib/esm/backoffice/molecules/backoffice_detail_flag_tag/BackofficeDetailFlagTag.js.map +1 -0
  38. package/lib/esm/backoffice/molecules/backoffice_detail_flag_tag/backofficeDetailFlagTag.css.js +8 -0
  39. package/lib/esm/backoffice/molecules/backoffice_detail_flag_tag/backofficeDetailFlagTag.css.js.map +1 -0
  40. package/lib/esm/backoffice/molecules/backoffice_detail_section/BackofficeDetailSection.js +37 -0
  41. package/lib/esm/backoffice/molecules/backoffice_detail_section/BackofficeDetailSection.js.map +1 -0
  42. package/lib/esm/backoffice/molecules/backoffice_detail_section/backofficeDetailSection.css.js +8 -0
  43. package/lib/esm/backoffice/molecules/backoffice_detail_section/backofficeDetailSection.css.js.map +1 -0
  44. package/lib/esm/backoffice/molecules/backoffice_detail_tagged_value/BackofficeDetailTaggedValue.js +19 -0
  45. package/lib/esm/backoffice/molecules/backoffice_detail_tagged_value/BackofficeDetailTaggedValue.js.map +1 -0
  46. package/lib/esm/backoffice/molecules/backoffice_detail_tagged_value/backofficeDetailTaggedValue.css.js +8 -0
  47. package/lib/esm/backoffice/molecules/backoffice_detail_tagged_value/backofficeDetailTaggedValue.css.js.map +1 -0
  48. package/lib/esm/backoffice/molecules/backoffice_empty_state/BackofficeEmptyState.js +15 -32
  49. package/lib/esm/backoffice/molecules/backoffice_empty_state/BackofficeEmptyState.js.map +1 -1
  50. package/lib/esm/backoffice/molecules/backoffice_enum_label/BackofficeEnumLabel.js +11 -0
  51. package/lib/esm/backoffice/molecules/backoffice_enum_label/BackofficeEnumLabel.js.map +1 -0
  52. package/lib/esm/backoffice/molecules/backoffice_form_section/BackofficeFormSection.js +17 -18
  53. package/lib/esm/backoffice/molecules/backoffice_form_section/BackofficeFormSection.js.map +1 -1
  54. package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.helpers.js +12 -0
  55. package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.helpers.js.map +1 -0
  56. package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.js +15 -20
  57. package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.js.map +1 -1
  58. package/lib/esm/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.js +23 -16
  59. package/lib/esm/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.js.map +1 -1
  60. package/lib/esm/backoffice/molecules/backoffice_key_value_list/backofficeKeyValueList.css.js +2 -2
  61. package/lib/esm/backoffice/molecules/backoffice_key_value_list/backofficeKeyValueList.css.js.map +1 -1
  62. package/lib/esm/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.helpers.js +11 -0
  63. package/lib/esm/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.helpers.js.map +1 -0
  64. package/lib/esm/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.js +55 -0
  65. package/lib/esm/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.js.map +1 -0
  66. package/lib/esm/backoffice/molecules/backoffice_list_footer/backofficeListFooter.css.js +8 -0
  67. package/lib/esm/backoffice/molecules/backoffice_list_footer/backofficeListFooter.css.js.map +1 -0
  68. package/lib/esm/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.helpers.js +15 -0
  69. package/lib/esm/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.helpers.js.map +1 -0
  70. package/lib/esm/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.js +63 -0
  71. package/lib/esm/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.js.map +1 -0
  72. package/lib/esm/backoffice/molecules/backoffice_payload_viewer/backofficePayloadViewer.css.js +8 -0
  73. package/lib/esm/backoffice/molecules/backoffice_payload_viewer/backofficePayloadViewer.css.js.map +1 -0
  74. package/lib/esm/backoffice/molecules/backoffice_picker/BackofficePicker.js +76 -0
  75. package/lib/esm/backoffice/molecules/backoffice_picker/BackofficePicker.js.map +1 -0
  76. package/lib/esm/backoffice/molecules/backoffice_picker/backofficePicker.css.js +8 -0
  77. package/lib/esm/backoffice/molecules/backoffice_picker/backofficePicker.css.js.map +1 -0
  78. package/lib/esm/backoffice/molecules/backoffice_reference_value/BackofficeReferenceValue.js +23 -0
  79. package/lib/esm/backoffice/molecules/backoffice_reference_value/BackofficeReferenceValue.js.map +1 -0
  80. package/lib/esm/backoffice/molecules/backoffice_reference_value/backofficeReferenceValue.css.js +8 -0
  81. package/lib/esm/backoffice/molecules/backoffice_reference_value/backofficeReferenceValue.css.js.map +1 -0
  82. package/lib/esm/backoffice/molecules/backoffice_scope_stack/BackofficeScopeStack.js +18 -0
  83. package/lib/esm/backoffice/molecules/backoffice_scope_stack/BackofficeScopeStack.js.map +1 -0
  84. package/lib/esm/backoffice/molecules/backoffice_status_group/BackofficeStatusGroup.js +8 -0
  85. package/lib/esm/backoffice/molecules/backoffice_status_group/BackofficeStatusGroup.js.map +1 -0
  86. package/lib/esm/backoffice/molecules/backoffice_status_meta_badge/BackofficeStatusMetaBadge.js +28 -0
  87. package/lib/esm/backoffice/molecules/backoffice_status_meta_badge/BackofficeStatusMetaBadge.js.map +1 -0
  88. package/lib/esm/backoffice/molecules/backoffice_status_meta_badge/backofficeStatusMetaBadge.css.js +8 -0
  89. package/lib/esm/backoffice/molecules/backoffice_status_meta_badge/backofficeStatusMetaBadge.css.js.map +1 -0
  90. package/lib/esm/backoffice/molecules/backoffice_toolbar/BackofficeToolbar.js +60 -0
  91. package/lib/esm/backoffice/molecules/backoffice_toolbar/BackofficeToolbar.js.map +1 -0
  92. package/lib/esm/backoffice/molecules/backoffice_toolbar/backofficeToolbar.css.js +14 -0
  93. package/lib/esm/backoffice/molecules/backoffice_toolbar/backofficeToolbar.css.js.map +1 -0
  94. package/lib/esm/backoffice/molecules/bulk_actions_bar/bulkActionsBar.css.js +1 -1
  95. package/lib/esm/backoffice/molecules/bulk_actions_bar/bulkActionsBar.css.js.map +1 -1
  96. package/lib/esm/backoffice/molecules/confirm_dialog/ConfirmDialog.js +3 -3
  97. package/lib/esm/backoffice/molecules/confirm_dialog/ConfirmDialog.js.map +1 -1
  98. package/lib/esm/backoffice/molecules/global_search_input/GlobalSearchInput.js +4 -4
  99. package/lib/esm/backoffice/molecules/sidebar_collapse_toggle/sidebarCollapseToggle.css.js +1 -1
  100. package/lib/esm/backoffice/molecules/sidebar_collapse_toggle/sidebarCollapseToggle.css.js.map +1 -1
  101. package/lib/esm/backoffice/molecules/sidebar_nav_item/SidebarNavItem.js +60 -60
  102. package/lib/esm/backoffice/molecules/sidebar_nav_item/SidebarNavItem.js.map +1 -1
  103. package/lib/esm/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.js +2 -2
  104. package/lib/esm/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.js.map +1 -1
  105. package/lib/esm/backoffice/molecules/sidebar_nav_section/SidebarNavSection.js +96 -96
  106. package/lib/esm/backoffice/molecules/sidebar_nav_section/SidebarNavSection.js.map +1 -1
  107. package/lib/esm/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.js +2 -2
  108. package/lib/esm/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.js.map +1 -1
  109. package/lib/esm/backoffice/molecules/sidebar_profile_menu/BackofficeSidebarProfileMenu.js +52 -52
  110. package/lib/esm/backoffice/molecules/sidebar_profile_menu/BackofficeSidebarProfileMenu.js.map +1 -1
  111. package/lib/esm/backoffice/molecules/sidebar_profile_menu/sidebarProfileMenu.css.js +6 -6
  112. package/lib/esm/backoffice/molecules/sidebar_profile_menu/sidebarProfileMenu.css.js.map +1 -1
  113. package/lib/esm/backoffice/organisms/audit_timeline/AuditTimeline.js +69 -34
  114. package/lib/esm/backoffice/organisms/audit_timeline/AuditTimeline.js.map +1 -1
  115. package/lib/esm/backoffice/organisms/audit_timeline/auditTimeline.css.js +22 -2
  116. package/lib/esm/backoffice/organisms/audit_timeline/auditTimeline.css.js.map +1 -1
  117. package/lib/esm/backoffice/organisms/backoffice_data_table/BackofficeDataTable.js +4 -4
  118. package/lib/esm/backoffice/organisms/backoffice_data_table/BackofficeDataTable.js.map +1 -1
  119. package/lib/esm/backoffice/templates/detail_page_template/DetailPageTemplate.js +70 -40
  120. package/lib/esm/backoffice/templates/detail_page_template/DetailPageTemplate.js.map +1 -1
  121. package/lib/esm/backoffice/templates/detail_page_template/detailPageTemplate.css.js +66 -3
  122. package/lib/esm/backoffice/templates/detail_page_template/detailPageTemplate.css.js.map +1 -1
  123. package/lib/esm/components/dashboard/activity_card/ActivityCard.js +4 -4
  124. package/lib/esm/components/dashboard/dashboard_metric_group/DashboardMetricGroup.css.js +9 -0
  125. package/lib/esm/components/dashboard/dashboard_metric_group/DashboardMetricGroup.css.js.map +1 -0
  126. package/lib/esm/components/dashboard/dashboard_metric_group/DashboardMetricGroup.js +30 -0
  127. package/lib/esm/components/dashboard/dashboard_metric_group/DashboardMetricGroup.js.map +1 -0
  128. package/lib/esm/components/dashboard/dashboard_panel/DashboardPanel.css.js +8 -0
  129. package/lib/esm/components/dashboard/dashboard_panel/DashboardPanel.css.js.map +1 -0
  130. package/lib/esm/components/dashboard/dashboard_panel/DashboardPanel.js +16 -0
  131. package/lib/esm/components/dashboard/dashboard_panel/DashboardPanel.js.map +1 -0
  132. package/lib/esm/components/dashboard/dashboard_quick_actions/DashboardQuickActions.css.js +8 -0
  133. package/lib/esm/components/dashboard/dashboard_quick_actions/DashboardQuickActions.css.js.map +1 -0
  134. package/lib/esm/components/dashboard/dashboard_quick_actions/DashboardQuickActions.js +27 -0
  135. package/lib/esm/components/dashboard/dashboard_quick_actions/DashboardQuickActions.js.map +1 -0
  136. package/lib/esm/components/dashboard/dashboard_status_list/DashboardStatusList.css.js +8 -0
  137. package/lib/esm/components/dashboard/dashboard_status_list/DashboardStatusList.css.js.map +1 -0
  138. package/lib/esm/components/dashboard/dashboard_status_list/DashboardStatusList.js +28 -0
  139. package/lib/esm/components/dashboard/dashboard_status_list/DashboardStatusList.js.map +1 -0
  140. package/lib/esm/components/dashboard/metric_card/MetricCard.css.js +30 -2
  141. package/lib/esm/components/dashboard/metric_card/MetricCard.css.js.map +1 -1
  142. package/lib/esm/components/dashboard/metric_card/MetricCard.js +40 -26
  143. package/lib/esm/components/dashboard/metric_card/MetricCard.js.map +1 -1
  144. package/lib/esm/components/dashboard/metric_tile_group/MetricTileGroup.css.js +23 -2
  145. package/lib/esm/components/dashboard/metric_tile_group/MetricTileGroup.css.js.map +1 -1
  146. package/lib/esm/components/dashboard/metric_tile_group/MetricTileGroup.js +16 -4
  147. package/lib/esm/components/dashboard/metric_tile_group/MetricTileGroup.js.map +1 -1
  148. package/lib/esm/components/dashboard/status_summary_panel/StatusSummaryPanel.js +4 -4
  149. package/lib/esm/components/dashboard/timeline_event_row/TimelineEventRow.css.js +14 -2
  150. package/lib/esm/components/dashboard/timeline_event_row/TimelineEventRow.css.js.map +1 -1
  151. package/lib/esm/components/dashboard/timeline_event_row/TimelineEventRow.js +46 -25
  152. package/lib/esm/components/dashboard/timeline_event_row/TimelineEventRow.js.map +1 -1
  153. package/lib/esm/components/data-table/DataTable.css.js +19 -19
  154. package/lib/esm/components/data-table/DataTable.css.js.map +1 -1
  155. package/lib/esm/components/data-table/DataTable.js +142 -76
  156. package/lib/esm/components/data-table/DataTable.js.map +1 -1
  157. package/lib/esm/components/data-table/ResponsiveRecordList.js.map +1 -1
  158. package/lib/esm/components/data-table/VirtualizedConnectionTable.css.js +2 -2
  159. package/lib/esm/components/data-table/VirtualizedConnectionTable.css.js.map +1 -1
  160. package/lib/esm/components/data-table/VirtualizedConnectionTable.js +177 -170
  161. package/lib/esm/components/data-table/VirtualizedConnectionTable.js.map +1 -1
  162. package/lib/esm/components/feedback/InlineBanner.js +49 -0
  163. package/lib/esm/components/feedback/InlineBanner.js.map +1 -0
  164. package/lib/esm/components/feedback/OperationFeedback.css.js +2 -2
  165. package/lib/esm/components/feedback/OperationFeedback.css.js.map +1 -1
  166. package/lib/esm/components/feedback/OperationFeedback.js +20 -24
  167. package/lib/esm/components/feedback/OperationFeedback.js.map +1 -1
  168. package/lib/esm/components/feedback/inlineBanner.css.js +19 -0
  169. package/lib/esm/components/feedback/inlineBanner.css.js.map +1 -0
  170. package/lib/esm/components/infinite/InfiniteScrollTrigger.js +31 -23
  171. package/lib/esm/components/infinite/InfiniteScrollTrigger.js.map +1 -1
  172. package/lib/esm/components/layout/ActionPanel.css.js +2 -2
  173. package/lib/esm/components/layout/ActionPanel.css.js.map +1 -1
  174. package/lib/esm/components/layout/ActionPanel.js +29 -35
  175. package/lib/esm/components/layout/ActionPanel.js.map +1 -1
  176. package/lib/esm/components/layout/PageShell.css.js +2 -20
  177. package/lib/esm/components/layout/PageShell.css.js.map +1 -1
  178. package/lib/esm/components/layout/PageShell.js +155 -279
  179. package/lib/esm/components/layout/PageShell.js.map +1 -1
  180. package/lib/esm/components/layout/ResizableSplitView.css.js +8 -0
  181. package/lib/esm/components/layout/ResizableSplitView.css.js.map +1 -0
  182. package/lib/esm/components/layout/ResizableSplitView.js +176 -0
  183. package/lib/esm/components/layout/ResizableSplitView.js.map +1 -0
  184. package/lib/esm/components/layout/Surface.css.js +41 -0
  185. package/lib/esm/components/layout/Surface.css.js.map +1 -0
  186. package/lib/esm/components/layout/Surface.js +61 -0
  187. package/lib/esm/components/layout/Surface.js.map +1 -0
  188. package/lib/esm/components/layout/toolbar/Toolbar.css.js +64 -0
  189. package/lib/esm/components/layout/toolbar/Toolbar.css.js.map +1 -0
  190. package/lib/esm/components/layout/toolbar/Toolbar.js +36 -0
  191. package/lib/esm/components/layout/toolbar/Toolbar.js.map +1 -0
  192. package/lib/esm/components/navigation/sidebar/SidebarNavigation.js +89 -0
  193. package/lib/esm/components/navigation/sidebar/SidebarNavigation.js.map +1 -0
  194. package/lib/esm/components/navigation/sidebar/SidebarNavigationItem.js +2 -0
  195. package/lib/esm/components/navigation/sidebar/SidebarNavigationSection.js +2 -0
  196. package/lib/esm/components/navigation/sidebar/SidebarProfileMenu.js +2 -0
  197. package/lib/esm/components/navigation/sidebar/sidebarNavigation.css.js +48 -0
  198. package/lib/esm/components/navigation/sidebar/sidebarNavigation.css.js.map +1 -0
  199. package/lib/esm/components/subscriptions/RefetchNeededBanner.js +16 -23
  200. package/lib/esm/components/subscriptions/RefetchNeededBanner.js.map +1 -1
  201. package/lib/esm/i18n/locales/en/ui.js +16 -5
  202. package/lib/esm/i18n/locales/en/ui.js.map +1 -1
  203. package/lib/esm/i18n/locales/fr/ui.js +16 -5
  204. package/lib/esm/i18n/locales/fr/ui.js.map +1 -1
  205. package/lib/esm/index.js +237 -233
  206. package/lib/esm/internal/data-table/virtualization.js +1 -1
  207. package/lib/esm/internal/data-table/virtualization.js.map +1 -1
  208. package/lib/esm/internal/infinite/infiniteLoad.js +23 -0
  209. package/lib/esm/internal/infinite/infiniteLoad.js.map +1 -0
  210. package/lib/esm/node_modules/dompurify/dist/purify.es.js +290 -246
  211. package/lib/esm/node_modules/dompurify/dist/purify.es.js.map +1 -1
  212. package/lib/esm/node_modules/katex/dist/katex.js +1561 -1599
  213. package/lib/esm/node_modules/katex/dist/katex.js.map +1 -1
  214. package/lib/esm/style.css +1 -1
  215. package/lib/esm/theme/backofficeTheme.css.js +100 -0
  216. package/lib/esm/theme/backofficeTheme.css.js.map +1 -1
  217. package/lib/esm/theme/publicTheme.css.js +100 -0
  218. package/lib/esm/theme/publicTheme.css.js.map +1 -1
  219. package/lib/esm/theme/theme.css.js +200 -0
  220. package/lib/esm/theme/themeContract.css.js +359 -309
  221. package/lib/esm/theme/themeContract.css.js.map +1 -1
  222. package/lib/types/admin/templates/admin_shell_layout/AdminShellLayout.d.ts +4 -4
  223. package/lib/types/admin/templates/admin_shell_layout/AdminShellLayout.d.ts.map +1 -1
  224. package/lib/types/atomic/atoms/badge/Badge.d.ts +3 -3
  225. package/lib/types/atomic/atoms/badge/Badge.d.ts.map +1 -1
  226. package/lib/types/atomic/atoms/error_message/ErrorMessage.d.ts +1 -1
  227. package/lib/types/atomic/atoms/error_message/ErrorMessage.d.ts.map +1 -1
  228. package/lib/types/atomic/molecules/card/Card.d.ts.map +1 -1
  229. package/lib/types/atomic/molecules/empty-state/EmptyState.css.d.ts +56 -5
  230. package/lib/types/atomic/molecules/empty-state/EmptyState.css.d.ts.map +1 -1
  231. package/lib/types/atomic/molecules/empty-state/EmptyState.d.ts +14 -4
  232. package/lib/types/atomic/molecules/empty-state/EmptyState.d.ts.map +1 -1
  233. package/lib/types/atomic/molecules/form_error/FormError.d.ts +5 -2
  234. package/lib/types/atomic/molecules/form_error/FormError.d.ts.map +1 -1
  235. package/lib/types/atomic/molecules/form_error/formError.css.d.ts.map +1 -1
  236. package/lib/types/atomic/molecules/tabs/Tabs.d.ts +16 -7
  237. package/lib/types/atomic/molecules/tabs/Tabs.d.ts.map +1 -1
  238. package/lib/types/atomic/molecules/tabs/tabs.css.d.ts +21 -2
  239. package/lib/types/atomic/molecules/tabs/tabs.css.d.ts.map +1 -1
  240. package/lib/types/backoffice/atoms/status_badge/StatusBadge.d.ts.map +1 -1
  241. package/lib/types/backoffice/molecules/backoffice_audit_metadata_panel/BackofficeAuditMetadataPanel.d.ts +21 -0
  242. package/lib/types/backoffice/molecules/backoffice_audit_metadata_panel/BackofficeAuditMetadataPanel.d.ts.map +1 -0
  243. package/lib/types/backoffice/molecules/backoffice_detail_field/BackofficeDetailField.d.ts +17 -0
  244. package/lib/types/backoffice/molecules/backoffice_detail_field/BackofficeDetailField.d.ts.map +1 -0
  245. package/lib/types/backoffice/molecules/backoffice_detail_field/backofficeDetailField.css.d.ts +14 -0
  246. package/lib/types/backoffice/molecules/backoffice_detail_field/backofficeDetailField.css.d.ts.map +1 -0
  247. package/lib/types/backoffice/molecules/backoffice_detail_flag_tag/BackofficeDetailFlagTag.d.ts +11 -0
  248. package/lib/types/backoffice/molecules/backoffice_detail_flag_tag/BackofficeDetailFlagTag.d.ts.map +1 -0
  249. package/lib/types/backoffice/molecules/backoffice_detail_flag_tag/backofficeDetailFlagTag.css.d.ts +4 -0
  250. package/lib/types/backoffice/molecules/backoffice_detail_flag_tag/backofficeDetailFlagTag.css.d.ts.map +1 -0
  251. package/lib/types/backoffice/molecules/backoffice_detail_section/BackofficeDetailSection.d.ts +12 -0
  252. package/lib/types/backoffice/molecules/backoffice_detail_section/BackofficeDetailSection.d.ts.map +1 -0
  253. package/lib/types/backoffice/molecules/backoffice_detail_section/backofficeDetailSection.css.d.ts +6 -0
  254. package/lib/types/backoffice/molecules/backoffice_detail_section/backofficeDetailSection.css.d.ts.map +1 -0
  255. package/lib/types/backoffice/molecules/backoffice_detail_tagged_value/BackofficeDetailTaggedValue.d.ts +13 -0
  256. package/lib/types/backoffice/molecules/backoffice_detail_tagged_value/BackofficeDetailTaggedValue.d.ts.map +1 -0
  257. package/lib/types/backoffice/molecules/backoffice_detail_tagged_value/backofficeDetailTaggedValue.css.d.ts +3 -0
  258. package/lib/types/backoffice/molecules/backoffice_detail_tagged_value/backofficeDetailTaggedValue.css.d.ts.map +1 -0
  259. package/lib/types/backoffice/molecules/backoffice_empty_state/BackofficeEmptyState.d.ts.map +1 -1
  260. package/lib/types/backoffice/molecules/backoffice_enum_label/BackofficeEnumLabel.d.ts +9 -0
  261. package/lib/types/backoffice/molecules/backoffice_enum_label/BackofficeEnumLabel.d.ts.map +1 -0
  262. package/lib/types/backoffice/molecules/backoffice_form_section/BackofficeFormSection.d.ts.map +1 -1
  263. package/lib/types/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.d.ts +0 -3
  264. package/lib/types/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.d.ts.map +1 -1
  265. package/lib/types/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.helpers.d.ts +5 -0
  266. package/lib/types/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.helpers.d.ts.map +1 -0
  267. package/lib/types/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.d.ts +8 -2
  268. package/lib/types/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.d.ts.map +1 -1
  269. package/lib/types/backoffice/molecules/backoffice_key_value_list/backofficeKeyValueList.css.d.ts +3 -0
  270. package/lib/types/backoffice/molecules/backoffice_key_value_list/backofficeKeyValueList.css.d.ts.map +1 -1
  271. package/lib/types/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.d.ts +23 -0
  272. package/lib/types/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.d.ts.map +1 -0
  273. package/lib/types/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.helpers.d.ts +25 -0
  274. package/lib/types/backoffice/molecules/backoffice_list_footer/BackofficeListFooter.helpers.d.ts.map +1 -0
  275. package/lib/types/backoffice/molecules/{backoffice_infinite_list_status/backofficeInfiniteListStatus.css.d.ts → backoffice_list_footer/backofficeListFooter.css.d.ts} +3 -2
  276. package/lib/types/backoffice/molecules/backoffice_list_footer/backofficeListFooter.css.d.ts.map +1 -0
  277. package/lib/types/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.d.ts +26 -0
  278. package/lib/types/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.d.ts.map +1 -0
  279. package/lib/types/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.helpers.d.ts +7 -0
  280. package/lib/types/backoffice/molecules/backoffice_payload_viewer/BackofficePayloadViewer.helpers.d.ts.map +1 -0
  281. package/lib/types/backoffice/molecules/backoffice_payload_viewer/backofficePayloadViewer.css.d.ts +6 -0
  282. package/lib/types/backoffice/molecules/backoffice_payload_viewer/backofficePayloadViewer.css.d.ts.map +1 -0
  283. package/lib/types/backoffice/molecules/backoffice_picker/BackofficePicker.d.ts +35 -0
  284. package/lib/types/backoffice/molecules/backoffice_picker/BackofficePicker.d.ts.map +1 -0
  285. package/lib/types/backoffice/molecules/backoffice_picker/backofficePicker.css.d.ts +9 -0
  286. package/lib/types/backoffice/molecules/backoffice_picker/backofficePicker.css.d.ts.map +1 -0
  287. package/lib/types/backoffice/molecules/backoffice_reference_value/BackofficeReferenceValue.d.ts +10 -0
  288. package/lib/types/backoffice/molecules/backoffice_reference_value/BackofficeReferenceValue.d.ts.map +1 -0
  289. package/lib/types/backoffice/molecules/backoffice_reference_value/backofficeReferenceValue.css.d.ts +3 -0
  290. package/lib/types/backoffice/molecules/backoffice_reference_value/backofficeReferenceValue.css.d.ts.map +1 -0
  291. package/lib/types/backoffice/molecules/backoffice_scope_stack/BackofficeScopeStack.d.ts +15 -0
  292. package/lib/types/backoffice/molecules/backoffice_scope_stack/BackofficeScopeStack.d.ts.map +1 -0
  293. package/lib/types/backoffice/molecules/backoffice_status_group/BackofficeStatusGroup.d.ts +8 -0
  294. package/lib/types/backoffice/molecules/backoffice_status_group/BackofficeStatusGroup.d.ts.map +1 -0
  295. package/lib/types/backoffice/molecules/backoffice_status_meta_badge/BackofficeStatusMetaBadge.d.ts +14 -0
  296. package/lib/types/backoffice/molecules/backoffice_status_meta_badge/BackofficeStatusMetaBadge.d.ts.map +1 -0
  297. package/lib/types/backoffice/molecules/backoffice_status_meta_badge/backofficeStatusMetaBadge.css.d.ts +2 -0
  298. package/lib/types/backoffice/molecules/backoffice_status_meta_badge/backofficeStatusMetaBadge.css.d.ts.map +1 -0
  299. package/lib/types/backoffice/molecules/backoffice_toolbar/BackofficeToolbar.d.ts +22 -0
  300. package/lib/types/backoffice/molecules/backoffice_toolbar/BackofficeToolbar.d.ts.map +1 -0
  301. package/lib/types/backoffice/molecules/backoffice_toolbar/backofficeToolbar.css.d.ts +18 -0
  302. package/lib/types/backoffice/molecules/backoffice_toolbar/backofficeToolbar.css.d.ts.map +1 -0
  303. package/lib/types/backoffice/molecules/bulk_actions_bar/bulkActionsBar.css.d.ts.map +1 -1
  304. package/lib/types/backoffice/molecules/sidebar_collapse_toggle/sidebarCollapseToggle.css.d.ts.map +1 -1
  305. package/lib/types/backoffice/molecules/sidebar_nav_item/SidebarNavItem.d.ts.map +1 -1
  306. package/lib/types/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.d.ts +1 -0
  307. package/lib/types/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.d.ts.map +1 -1
  308. package/lib/types/backoffice/molecules/sidebar_nav_section/SidebarNavSection.d.ts.map +1 -1
  309. package/lib/types/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.d.ts +2 -0
  310. package/lib/types/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.d.ts.map +1 -1
  311. package/lib/types/backoffice/molecules/sidebar_profile_menu/BackofficeSidebarProfileMenu.d.ts.map +1 -1
  312. package/lib/types/backoffice/molecules/sidebar_profile_menu/sidebarProfileMenu.css.d.ts +8 -0
  313. package/lib/types/backoffice/molecules/sidebar_profile_menu/sidebarProfileMenu.css.d.ts.map +1 -1
  314. package/lib/types/backoffice/organisms/audit_timeline/AuditTimeline.d.ts +20 -2
  315. package/lib/types/backoffice/organisms/audit_timeline/AuditTimeline.d.ts.map +1 -1
  316. package/lib/types/backoffice/organisms/audit_timeline/auditTimeline.css.d.ts +32 -2
  317. package/lib/types/backoffice/organisms/audit_timeline/auditTimeline.css.d.ts.map +1 -1
  318. package/lib/types/backoffice/organisms/backoffice_data_table/BackofficeDataTable.d.ts +2 -2
  319. package/lib/types/backoffice/organisms/backoffice_data_table/BackofficeDataTable.d.ts.map +1 -1
  320. package/lib/types/backoffice/templates/detail_page_template/DetailPageTemplate.d.ts +12 -1
  321. package/lib/types/backoffice/templates/detail_page_template/DetailPageTemplate.d.ts.map +1 -1
  322. package/lib/types/backoffice/templates/detail_page_template/detailPageTemplate.css.d.ts +25 -4
  323. package/lib/types/backoffice/templates/detail_page_template/detailPageTemplate.css.d.ts.map +1 -1
  324. package/lib/types/components/dashboard/dashboard_metric_group/DashboardMetricGroup.css.d.ts +4 -0
  325. package/lib/types/components/dashboard/dashboard_metric_group/DashboardMetricGroup.css.d.ts.map +1 -0
  326. package/lib/types/components/dashboard/dashboard_metric_group/DashboardMetricGroup.d.ts +19 -0
  327. package/lib/types/components/dashboard/dashboard_metric_group/DashboardMetricGroup.d.ts.map +1 -0
  328. package/lib/types/components/dashboard/dashboard_panel/DashboardPanel.css.d.ts +2 -0
  329. package/lib/types/components/dashboard/dashboard_panel/DashboardPanel.css.d.ts.map +1 -0
  330. package/lib/types/components/dashboard/dashboard_panel/DashboardPanel.d.ts +11 -0
  331. package/lib/types/components/dashboard/dashboard_panel/DashboardPanel.d.ts.map +1 -0
  332. package/lib/types/components/dashboard/dashboard_quick_actions/DashboardQuickActions.css.d.ts +5 -0
  333. package/lib/types/components/dashboard/dashboard_quick_actions/DashboardQuickActions.css.d.ts.map +1 -0
  334. package/lib/types/components/dashboard/dashboard_quick_actions/DashboardQuickActions.d.ts +14 -0
  335. package/lib/types/components/dashboard/dashboard_quick_actions/DashboardQuickActions.d.ts.map +1 -0
  336. package/lib/types/components/dashboard/dashboard_status_list/DashboardStatusList.css.d.ts +6 -0
  337. package/lib/types/components/dashboard/dashboard_status_list/DashboardStatusList.css.d.ts.map +1 -0
  338. package/lib/types/components/dashboard/dashboard_status_list/DashboardStatusList.d.ts +14 -0
  339. package/lib/types/components/dashboard/dashboard_status_list/DashboardStatusList.d.ts.map +1 -0
  340. package/lib/types/components/dashboard/metric_card/MetricCard.css.d.ts +38 -1
  341. package/lib/types/components/dashboard/metric_card/MetricCard.css.d.ts.map +1 -1
  342. package/lib/types/components/dashboard/metric_card/MetricCard.d.ts +7 -1
  343. package/lib/types/components/dashboard/metric_card/MetricCard.d.ts.map +1 -1
  344. package/lib/types/components/dashboard/metric_tile_group/MetricTileGroup.css.d.ts +17 -1
  345. package/lib/types/components/dashboard/metric_tile_group/MetricTileGroup.css.d.ts.map +1 -1
  346. package/lib/types/components/dashboard/metric_tile_group/MetricTileGroup.d.ts +4 -1
  347. package/lib/types/components/dashboard/metric_tile_group/MetricTileGroup.d.ts.map +1 -1
  348. package/lib/types/components/dashboard/timeline_event_row/TimelineEventRow.css.d.ts +31 -2
  349. package/lib/types/components/dashboard/timeline_event_row/TimelineEventRow.css.d.ts.map +1 -1
  350. package/lib/types/components/dashboard/timeline_event_row/TimelineEventRow.d.ts +8 -3
  351. package/lib/types/components/dashboard/timeline_event_row/TimelineEventRow.d.ts.map +1 -1
  352. package/lib/types/components/data-table/DataTable.css.d.ts +1 -0
  353. package/lib/types/components/data-table/DataTable.css.d.ts.map +1 -1
  354. package/lib/types/components/data-table/DataTable.d.ts +54 -3
  355. package/lib/types/components/data-table/DataTable.d.ts.map +1 -1
  356. package/lib/types/components/data-table/ResponsiveRecordList.d.ts +1 -4
  357. package/lib/types/components/data-table/ResponsiveRecordList.d.ts.map +1 -1
  358. package/lib/types/components/data-table/VirtualizedConnectionTable.css.d.ts +0 -1
  359. package/lib/types/components/data-table/VirtualizedConnectionTable.css.d.ts.map +1 -1
  360. package/lib/types/components/data-table/VirtualizedConnectionTable.d.ts +11 -5
  361. package/lib/types/components/data-table/VirtualizedConnectionTable.d.ts.map +1 -1
  362. package/lib/types/{backoffice/molecules/inline_banner → components/feedback}/InlineBanner.d.ts +4 -2
  363. package/lib/types/components/feedback/InlineBanner.d.ts.map +1 -0
  364. package/lib/types/components/feedback/OperationFeedback.css.d.ts +0 -1
  365. package/lib/types/components/feedback/OperationFeedback.css.d.ts.map +1 -1
  366. package/lib/types/components/feedback/OperationFeedback.d.ts.map +1 -1
  367. package/lib/types/components/feedback/inlineBanner.css.d.ts.map +1 -0
  368. package/lib/types/components/infinite/InfiniteScrollTrigger.d.ts.map +1 -1
  369. package/lib/types/components/layout/ActionPanel.css.d.ts +1 -0
  370. package/lib/types/components/layout/ActionPanel.css.d.ts.map +1 -1
  371. package/lib/types/components/layout/ActionPanel.d.ts.map +1 -1
  372. package/lib/types/components/layout/PageShell.css.d.ts +1 -14
  373. package/lib/types/components/layout/PageShell.css.d.ts.map +1 -1
  374. package/lib/types/components/layout/PageShell.d.ts +1 -3
  375. package/lib/types/components/layout/PageShell.d.ts.map +1 -1
  376. package/lib/types/components/layout/ResizableSplitView.css.d.ts +8 -0
  377. package/lib/types/components/layout/ResizableSplitView.css.d.ts.map +1 -0
  378. package/lib/types/components/layout/ResizableSplitView.d.ts +27 -0
  379. package/lib/types/components/layout/ResizableSplitView.d.ts.map +1 -0
  380. package/lib/types/components/layout/Surface.css.d.ts +31 -0
  381. package/lib/types/components/layout/Surface.css.d.ts.map +1 -0
  382. package/lib/types/components/layout/Surface.d.ts +30 -0
  383. package/lib/types/components/layout/Surface.d.ts.map +1 -0
  384. package/lib/types/components/layout/toolbar/Toolbar.css.d.ts +40 -0
  385. package/lib/types/components/layout/toolbar/Toolbar.css.d.ts.map +1 -0
  386. package/lib/types/components/layout/toolbar/Toolbar.d.ts +35 -0
  387. package/lib/types/components/layout/toolbar/Toolbar.d.ts.map +1 -0
  388. package/lib/types/components/navigation/sidebar/SidebarNavigation.d.ts +57 -0
  389. package/lib/types/components/navigation/sidebar/SidebarNavigation.d.ts.map +1 -0
  390. package/lib/types/components/navigation/sidebar/SidebarNavigationItem.d.ts +2 -0
  391. package/lib/types/components/navigation/sidebar/SidebarNavigationItem.d.ts.map +1 -0
  392. package/lib/types/components/navigation/sidebar/SidebarNavigationSection.d.ts +2 -0
  393. package/lib/types/components/navigation/sidebar/SidebarNavigationSection.d.ts.map +1 -0
  394. package/lib/types/components/navigation/sidebar/SidebarProfileMenu.d.ts +2 -0
  395. package/lib/types/components/navigation/sidebar/SidebarProfileMenu.d.ts.map +1 -0
  396. package/lib/types/components/navigation/sidebar/sidebarNavigation.css.d.ts +19 -0
  397. package/lib/types/components/navigation/sidebar/sidebarNavigation.css.d.ts.map +1 -0
  398. package/lib/types/components/subscriptions/RefetchNeededBanner.d.ts.map +1 -1
  399. package/lib/types/i18n/resources.d.ts +32 -14
  400. package/lib/types/i18n/resources.d.ts.map +1 -1
  401. package/lib/types/index.d.ts +33 -33
  402. package/lib/types/index.d.ts.map +1 -1
  403. package/lib/types/internal/data-table/virtualization.d.ts +2 -2
  404. package/lib/types/internal/data-table/virtualization.d.ts.map +1 -1
  405. package/lib/types/internal/infinite/infiniteLoad.d.ts +27 -0
  406. package/lib/types/internal/infinite/infiniteLoad.d.ts.map +1 -0
  407. package/lib/types/theme/backofficeTheme.css.d.ts +100 -0
  408. package/lib/types/theme/backofficeTheme.css.d.ts.map +1 -1
  409. package/lib/types/theme/publicTheme.css.d.ts +100 -0
  410. package/lib/types/theme/publicTheme.css.d.ts.map +1 -1
  411. package/lib/types/theme/sprinkles.css.d.ts +2 -2
  412. package/lib/types/theme/themeContract.css.d.ts +50 -0
  413. package/lib/types/theme/themeContract.css.d.ts.map +1 -1
  414. package/package.json +3 -3
  415. package/src/i18n/locales/en/ui.json +16 -7
  416. package/src/i18n/locales/fr/ui.json +16 -7
  417. package/lib/esm/atomic/molecules/card/Card.css.js +0 -8
  418. package/lib/esm/atomic/molecules/card/Card.css.js.map +0 -1
  419. package/lib/esm/atomic/molecules/form/FormErrorBanner.css.js +0 -8
  420. package/lib/esm/atomic/molecules/form/FormErrorBanner.css.js.map +0 -1
  421. package/lib/esm/atomic/molecules/form/FormErrorBanner.js +0 -17
  422. package/lib/esm/atomic/molecules/form/FormErrorBanner.js.map +0 -1
  423. package/lib/esm/atomic/templates/detail-page/DetailPage.js +0 -49
  424. package/lib/esm/atomic/templates/detail-page/DetailPage.js.map +0 -1
  425. package/lib/esm/atomic/templates/detail-page/detailPage.css.js +0 -8
  426. package/lib/esm/atomic/templates/detail-page/detailPage.css.js.map +0 -1
  427. package/lib/esm/backoffice/molecules/backoffice_detail_layout/BackofficeDetailLayout.js +0 -33
  428. package/lib/esm/backoffice/molecules/backoffice_detail_layout/BackofficeDetailLayout.js.map +0 -1
  429. package/lib/esm/backoffice/molecules/backoffice_detail_layout/backofficeDetailLayout.css.js +0 -8
  430. package/lib/esm/backoffice/molecules/backoffice_detail_layout/backofficeDetailLayout.css.js.map +0 -1
  431. package/lib/esm/backoffice/molecules/backoffice_empty_state/backofficeEmptyState.css.js +0 -8
  432. package/lib/esm/backoffice/molecules/backoffice_empty_state/backofficeEmptyState.css.js.map +0 -1
  433. package/lib/esm/backoffice/molecules/backoffice_filters_bar/BackofficeFiltersBar.js +0 -36
  434. package/lib/esm/backoffice/molecules/backoffice_filters_bar/BackofficeFiltersBar.js.map +0 -1
  435. package/lib/esm/backoffice/molecules/backoffice_filters_bar/backofficeFiltersBar.css.js +0 -8
  436. package/lib/esm/backoffice/molecules/backoffice_filters_bar/backofficeFiltersBar.css.js.map +0 -1
  437. package/lib/esm/backoffice/molecules/backoffice_form_section/backofficeFormSection.css.js +0 -8
  438. package/lib/esm/backoffice/molecules/backoffice_form_section/backofficeFormSection.css.js.map +0 -1
  439. package/lib/esm/backoffice/molecules/backoffice_infinite_list_status/BackofficeInfiniteListStatus.js +0 -37
  440. package/lib/esm/backoffice/molecules/backoffice_infinite_list_status/BackofficeInfiniteListStatus.js.map +0 -1
  441. package/lib/esm/backoffice/molecules/backoffice_infinite_list_status/backofficeInfiniteListStatus.css.js +0 -8
  442. package/lib/esm/backoffice/molecules/backoffice_infinite_list_status/backofficeInfiniteListStatus.css.js.map +0 -1
  443. package/lib/esm/backoffice/molecules/backoffice_load_more/BackofficeLoadMore.js +0 -35
  444. package/lib/esm/backoffice/molecules/backoffice_load_more/BackofficeLoadMore.js.map +0 -1
  445. package/lib/esm/backoffice/molecules/backoffice_load_more/backofficeLoadMore.css.js +0 -8
  446. package/lib/esm/backoffice/molecules/backoffice_load_more/backofficeLoadMore.css.js.map +0 -1
  447. package/lib/esm/backoffice/molecules/backoffice_table_toolbar/BackofficeTableToolbar.js +0 -41
  448. package/lib/esm/backoffice/molecules/backoffice_table_toolbar/BackofficeTableToolbar.js.map +0 -1
  449. package/lib/esm/backoffice/molecules/backoffice_table_toolbar/backofficeTableToolbar.css.js +0 -8
  450. package/lib/esm/backoffice/molecules/backoffice_table_toolbar/backofficeTableToolbar.css.js.map +0 -1
  451. package/lib/esm/backoffice/molecules/backoffice_tabs/BackofficeTabs.js +0 -46
  452. package/lib/esm/backoffice/molecules/backoffice_tabs/BackofficeTabs.js.map +0 -1
  453. package/lib/esm/backoffice/molecules/backoffice_tabs/backofficeTabs.css.js +0 -17
  454. package/lib/esm/backoffice/molecules/backoffice_tabs/backofficeTabs.css.js.map +0 -1
  455. package/lib/esm/backoffice/molecules/inline_banner/InlineBanner.js +0 -46
  456. package/lib/esm/backoffice/molecules/inline_banner/InlineBanner.js.map +0 -1
  457. package/lib/esm/backoffice/molecules/inline_banner/inlineBanner.css.js +0 -19
  458. package/lib/esm/backoffice/molecules/inline_banner/inlineBanner.css.js.map +0 -1
  459. package/lib/esm/backoffice/molecules/table_toolbar/TableToolbar.js +0 -41
  460. package/lib/esm/backoffice/molecules/table_toolbar/TableToolbar.js.map +0 -1
  461. package/lib/esm/backoffice/molecules/table_toolbar/tableToolbar.css.js +0 -8
  462. package/lib/esm/backoffice/molecules/table_toolbar/tableToolbar.css.js.map +0 -1
  463. package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/BackofficeVirtualizedConnectionTable.js +0 -26
  464. package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/BackofficeVirtualizedConnectionTable.js.map +0 -1
  465. package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/backofficeVirtualizedConnectionTable.css.js +0 -8
  466. package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/backofficeVirtualizedConnectionTable.css.js.map +0 -1
  467. package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/helpers.js +0 -18
  468. package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/helpers.js.map +0 -1
  469. package/lib/esm/components/dashboard/section_nav/SectionNav.css.js +0 -8
  470. package/lib/esm/components/dashboard/section_nav/SectionNav.css.js.map +0 -1
  471. package/lib/esm/components/dashboard/section_nav/SectionNav.js +0 -25
  472. package/lib/esm/components/dashboard/section_nav/SectionNav.js.map +0 -1
  473. package/lib/esm/components/dashboard/segmented_nav/SegmentedNav.css.js +0 -8
  474. package/lib/esm/components/dashboard/segmented_nav/SegmentedNav.css.js.map +0 -1
  475. package/lib/esm/components/dashboard/segmented_nav/SegmentedNav.js +0 -24
  476. package/lib/esm/components/dashboard/segmented_nav/SegmentedNav.js.map +0 -1
  477. package/lib/esm/components/layout/AppShell.js +0 -19
  478. package/lib/esm/components/layout/AppShell.js.map +0 -1
  479. package/lib/esm/components/layout/SidebarPageLayout.js +0 -16
  480. package/lib/esm/components/layout/SidebarPageLayout.js.map +0 -1
  481. package/lib/esm/components/layout/SplitViewLayout.css.js +0 -8
  482. package/lib/esm/components/layout/SplitViewLayout.css.js.map +0 -1
  483. package/lib/esm/components/layout/SplitViewLayout.js +0 -18
  484. package/lib/esm/components/layout/SplitViewLayout.js.map +0 -1
  485. package/lib/esm/components/layout/TabsContentLayout.css.js +0 -8
  486. package/lib/esm/components/layout/TabsContentLayout.css.js.map +0 -1
  487. package/lib/esm/components/layout/TabsContentLayout.js +0 -31
  488. package/lib/esm/components/layout/TabsContentLayout.js.map +0 -1
  489. package/lib/esm/components/layout/ToolbarRow.css.js +0 -8
  490. package/lib/esm/components/layout/ToolbarRow.css.js.map +0 -1
  491. package/lib/esm/components/layout/ToolbarRow.js +0 -12
  492. package/lib/esm/components/layout/ToolbarRow.js.map +0 -1
  493. package/lib/esm/components/subscriptions/RefetchNeededBanner.css.js +0 -8
  494. package/lib/esm/components/subscriptions/RefetchNeededBanner.css.js.map +0 -1
  495. package/lib/types/atomic/molecules/card/Card.css.d.ts +0 -5
  496. package/lib/types/atomic/molecules/card/Card.css.d.ts.map +0 -1
  497. package/lib/types/atomic/molecules/form/FormErrorBanner.css.d.ts +0 -2
  498. package/lib/types/atomic/molecules/form/FormErrorBanner.css.d.ts.map +0 -1
  499. package/lib/types/atomic/molecules/form/FormErrorBanner.d.ts +0 -7
  500. package/lib/types/atomic/molecules/form/FormErrorBanner.d.ts.map +0 -1
  501. package/lib/types/atomic/templates/detail-page/DetailPage.d.ts +0 -19
  502. package/lib/types/atomic/templates/detail-page/DetailPage.d.ts.map +0 -1
  503. package/lib/types/atomic/templates/detail-page/detailPage.css.d.ts +0 -9
  504. package/lib/types/atomic/templates/detail-page/detailPage.css.d.ts.map +0 -1
  505. package/lib/types/backoffice/molecules/backoffice_detail_layout/BackofficeDetailLayout.d.ts +0 -10
  506. package/lib/types/backoffice/molecules/backoffice_detail_layout/BackofficeDetailLayout.d.ts.map +0 -1
  507. package/lib/types/backoffice/molecules/backoffice_detail_layout/backofficeDetailLayout.css.d.ts +0 -7
  508. package/lib/types/backoffice/molecules/backoffice_detail_layout/backofficeDetailLayout.css.d.ts.map +0 -1
  509. package/lib/types/backoffice/molecules/backoffice_empty_state/backofficeEmptyState.css.d.ts +0 -6
  510. package/lib/types/backoffice/molecules/backoffice_empty_state/backofficeEmptyState.css.d.ts.map +0 -1
  511. package/lib/types/backoffice/molecules/backoffice_filters_bar/BackofficeFiltersBar.d.ts +0 -13
  512. package/lib/types/backoffice/molecules/backoffice_filters_bar/BackofficeFiltersBar.d.ts.map +0 -1
  513. package/lib/types/backoffice/molecules/backoffice_filters_bar/backofficeFiltersBar.css.d.ts +0 -6
  514. package/lib/types/backoffice/molecules/backoffice_filters_bar/backofficeFiltersBar.css.d.ts.map +0 -1
  515. package/lib/types/backoffice/molecules/backoffice_form_section/backofficeFormSection.css.d.ts +0 -5
  516. package/lib/types/backoffice/molecules/backoffice_form_section/backofficeFormSection.css.d.ts.map +0 -1
  517. package/lib/types/backoffice/molecules/backoffice_infinite_list_status/BackofficeInfiniteListStatus.d.ts +0 -16
  518. package/lib/types/backoffice/molecules/backoffice_infinite_list_status/BackofficeInfiniteListStatus.d.ts.map +0 -1
  519. package/lib/types/backoffice/molecules/backoffice_infinite_list_status/backofficeInfiniteListStatus.css.d.ts.map +0 -1
  520. package/lib/types/backoffice/molecules/backoffice_load_more/BackofficeLoadMore.d.ts +0 -13
  521. package/lib/types/backoffice/molecules/backoffice_load_more/BackofficeLoadMore.d.ts.map +0 -1
  522. package/lib/types/backoffice/molecules/backoffice_load_more/backofficeLoadMore.css.d.ts +0 -5
  523. package/lib/types/backoffice/molecules/backoffice_load_more/backofficeLoadMore.css.d.ts.map +0 -1
  524. package/lib/types/backoffice/molecules/backoffice_table_toolbar/BackofficeTableToolbar.d.ts +0 -16
  525. package/lib/types/backoffice/molecules/backoffice_table_toolbar/BackofficeTableToolbar.d.ts.map +0 -1
  526. package/lib/types/backoffice/molecules/backoffice_table_toolbar/backofficeTableToolbar.css.d.ts +0 -10
  527. package/lib/types/backoffice/molecules/backoffice_table_toolbar/backofficeTableToolbar.css.d.ts.map +0 -1
  528. package/lib/types/backoffice/molecules/backoffice_tabs/BackofficeTabs.d.ts +0 -19
  529. package/lib/types/backoffice/molecules/backoffice_tabs/BackofficeTabs.d.ts.map +0 -1
  530. package/lib/types/backoffice/molecules/backoffice_tabs/backofficeTabs.css.d.ts +0 -15
  531. package/lib/types/backoffice/molecules/backoffice_tabs/backofficeTabs.css.d.ts.map +0 -1
  532. package/lib/types/backoffice/molecules/inline_banner/InlineBanner.d.ts.map +0 -1
  533. package/lib/types/backoffice/molecules/inline_banner/inlineBanner.css.d.ts.map +0 -1
  534. package/lib/types/backoffice/molecules/table_toolbar/TableToolbar.d.ts +0 -13
  535. package/lib/types/backoffice/molecules/table_toolbar/TableToolbar.d.ts.map +0 -1
  536. package/lib/types/backoffice/molecules/table_toolbar/tableToolbar.css.d.ts +0 -6
  537. package/lib/types/backoffice/molecules/table_toolbar/tableToolbar.css.d.ts.map +0 -1
  538. package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/BackofficeVirtualizedConnectionTable.d.ts +0 -31
  539. package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/BackofficeVirtualizedConnectionTable.d.ts.map +0 -1
  540. package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/backofficeVirtualizedConnectionTable.css.d.ts +0 -5
  541. package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/backofficeVirtualizedConnectionTable.css.d.ts.map +0 -1
  542. package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/helpers.d.ts +0 -5
  543. package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/helpers.d.ts.map +0 -1
  544. package/lib/types/components/dashboard/section_nav/SectionNav.css.d.ts +0 -4
  545. package/lib/types/components/dashboard/section_nav/SectionNav.css.d.ts.map +0 -1
  546. package/lib/types/components/dashboard/section_nav/SectionNav.d.ts +0 -15
  547. package/lib/types/components/dashboard/section_nav/SectionNav.d.ts.map +0 -1
  548. package/lib/types/components/dashboard/segmented_nav/SegmentedNav.css.d.ts +0 -4
  549. package/lib/types/components/dashboard/segmented_nav/SegmentedNav.css.d.ts.map +0 -1
  550. package/lib/types/components/dashboard/segmented_nav/SegmentedNav.d.ts +0 -15
  551. package/lib/types/components/dashboard/segmented_nav/SegmentedNav.d.ts.map +0 -1
  552. package/lib/types/components/layout/AppShell.d.ts +0 -17
  553. package/lib/types/components/layout/AppShell.d.ts.map +0 -1
  554. package/lib/types/components/layout/SidebarPageLayout.d.ts +0 -15
  555. package/lib/types/components/layout/SidebarPageLayout.d.ts.map +0 -1
  556. package/lib/types/components/layout/SplitViewLayout.css.d.ts +0 -3
  557. package/lib/types/components/layout/SplitViewLayout.css.d.ts.map +0 -1
  558. package/lib/types/components/layout/SplitViewLayout.d.ts +0 -11
  559. package/lib/types/components/layout/SplitViewLayout.d.ts.map +0 -1
  560. package/lib/types/components/layout/TabsContentLayout.css.d.ts +0 -6
  561. package/lib/types/components/layout/TabsContentLayout.css.d.ts.map +0 -1
  562. package/lib/types/components/layout/TabsContentLayout.d.ts +0 -9
  563. package/lib/types/components/layout/TabsContentLayout.d.ts.map +0 -1
  564. package/lib/types/components/layout/ToolbarRow.css.d.ts +0 -2
  565. package/lib/types/components/layout/ToolbarRow.css.d.ts.map +0 -1
  566. package/lib/types/components/layout/ToolbarRow.d.ts +0 -8
  567. package/lib/types/components/layout/ToolbarRow.d.ts.map +0 -1
  568. package/lib/types/components/subscriptions/RefetchNeededBanner.css.d.ts +0 -5
  569. package/lib/types/components/subscriptions/RefetchNeededBanner.css.d.ts.map +0 -1
  570. /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 { SidebarNavItem as n } from "../sidebar_nav_item/SidebarNavItem.js";
4
- import { CSS as r } from "../../../node_modules/@dnd-kit/utilities/dist/utilities.esm.js";
5
- import { DndContext as i, DragOverlay as a, KeyboardSensor as o, PointerSensor as s, TouchSensor as c, closestCenter as ee, useSensor as l, useSensors as u } from "../../../node_modules/@dnd-kit/core/dist/core.esm.js";
6
- import { SortableContext as d, sortableKeyboardCoordinates as f, useSortable as p, verticalListSortingStrategy as m } from "../../../node_modules/@dnd-kit/sortable/dist/sortable.esm.js";
7
- import { header as h, headerButton as g, headerButtonSidebarCollapsed as _, headerSidebarCollapsed as te, items as v, itemsNested as y, section as ne, sortableItem as b, sortableItemDragging as x, title as re, titleContent as S, titleIcon as ie, titleSidebarCollapsed as ae, toggleIcon as oe, toggleIconCollapsed as se } from "./sidebarNavSection.css.js";
8
- import { useCallback as C, useId as w, useMemo as T, useState as E } from "react";
9
- import { jsx as D, jsxs as O } from "react/jsx-runtime";
10
- import { useTranslation as ce } from "react-i18next";
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 le = ({ item: t, isNested: i, sidebarCollapsed: a, dragHandleLabel: o, insertionPlacement: s }) => {
13
- let { id: c, data: ee, ...l } = t, { attributes: u, listeners: d, setNodeRef: f, transform: m, transition: h, isDragging: g } = p({
14
- id: c,
15
- disabled: a
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__ */ O("div", {
18
- ref: f,
17
+ return /* @__PURE__ */ D("div", {
18
+ ref: d,
19
19
  style: {
20
- transform: r.Transform.toString(m),
20
+ transform: n.Transform.toString(p),
21
21
  transition: h
22
22
  },
23
- className: e(b, { [x]: g }),
23
+ className: e(y, { [b]: g }),
24
24
  children: [
25
- s === "before" && /* @__PURE__ */ D("span", {
26
- className: "_1rp5mg6k _1rp5mg6j txvbqbqv7 txvbqbo2g txvbqbdqi txvbqb2is txvbqb1961",
25
+ o === "before" && /* @__PURE__ */ E("span", {
26
+ className: "_1rp5mg6l _1rp5mg6k txvbqbqv7 txvbqbo2g txvbqbdqi txvbqb2is",
27
27
  "aria-hidden": "true"
28
28
  }),
29
- /* @__PURE__ */ D(n, {
30
- ...l,
31
- collapsed: a,
32
- nested: i,
33
- dragHandleLabel: l.dragHandleLabel ?? o,
29
+ /* @__PURE__ */ E(m, {
30
+ ...c,
31
+ collapsed: i,
32
+ nested: r,
33
+ dragHandleLabel: c.dragHandleLabel ?? a,
34
34
  dragHandleProps: {
35
- ...u,
36
- ...d
35
+ ...l,
36
+ ...u
37
37
  },
38
38
  isDragging: g
39
39
  }),
40
- s === "after" && /* @__PURE__ */ D("span", {
41
- className: "_1rp5mg6k _1rp5mg6j txvbqbqv7 txvbqbo2g txvbqbdqi txvbqb2is txvbqb1961",
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
- }, k = ({ title: r, icon: p, items: b, collapsible: x = !1, isCollapsed: k, defaultCollapsed: ue = !1, onCollapsedChange: A, collapsed: j = !1, reorder: M, className: de }) => {
47
- let [fe, pe] = E(ue), N = w(), P = w(), { t: F } = ce("ui", { useSuspense: !1 }), [I, L] = E(null), [R, z] = E(null), B = k ?? fe, V = x, me = C(() => {
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
- k ?? pe(e), A?.(e);
50
+ O ?? he(e), k?.(e);
51
51
  }, [
52
52
  V,
53
53
  B,
54
- k,
55
- A
54
+ O,
55
+ k
56
56
  ]), H;
57
- typeof r == "string" && (H = r);
58
- let U = e(re, { [ae]: j }), he = e(oe, { [se]: B }), W;
59
- j && (W = H);
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
- p != null && (G = /* @__PURE__ */ D("span", {
62
- className: ie,
61
+ f != null && (G = /* @__PURE__ */ E("span", {
62
+ className: e(ae, oe),
63
63
  "aria-hidden": "true",
64
- children: p
64
+ children: f
65
65
  }));
66
- let ge = M?.enabled === !0 && b.length > 1, K = T(() => b.map((e) => e.id), [b]), _e = u(l(s, { activationConstraint: { distance: 4 } }), l(c, { activationConstraint: {
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
- } }), l(o, { coordinateGetter: f })), q = C(() => {
69
+ } }), c(a, { coordinateGetter: d })), q = S(() => {
70
70
  L(null), z(null);
71
- }, []), ve = C((e) => {
71
+ }, []), be = S((e) => {
72
72
  L(e.active.id), z(e.active.id);
73
- }, []), ye = C((e) => {
74
- let t = b.find((t) => t.id === String(e.active.id)) ?? null, n = null;
75
- e.over != null && (n = b.find((t) => t.id === String(e.over?.id)) ?? null);
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) && M?.onReorder(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
- b,
80
- M,
79
+ y,
80
+ j,
81
81
  q
82
- ]), J = T(() => I == null ? null : b.find((e) => e.id === String(I)) ?? null, [I, b]), Y = null, X = "before";
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 be = F("navigation.sidebar.reorder.handle"), xe = F("navigation.sidebar.reorder.instructions"), Z = null;
88
- r != null && (Z = V ? /* @__PURE__ */ O("button", {
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, { [_]: j }),
92
- onClick: me,
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__ */ O("span", {
98
- className: S,
99
- children: [G, /* @__PURE__ */ D("span", {
97
+ children: [/* @__PURE__ */ D("span", {
98
+ className: x,
99
+ children: [G, /* @__PURE__ */ E("span", {
100
100
  className: U,
101
- children: r
101
+ children: n
102
102
  })]
103
- }), !j && /* @__PURE__ */ D("span", {
104
- className: he,
103
+ }), !A && /* @__PURE__ */ E("span", {
104
+ className: _e,
105
105
  "aria-hidden": "true",
106
- children: /* @__PURE__ */ D(t, {
106
+ children: /* @__PURE__ */ E(t, {
107
107
  width: 18,
108
108
  height: 18
109
109
  })
110
110
  })]
111
- }) : /* @__PURE__ */ D("div", {
112
- className: e(h, { [te]: j }),
111
+ }) : /* @__PURE__ */ E("div", {
112
+ className: e(h, { [ne]: A }),
113
113
  title: W,
114
- children: /* @__PURE__ */ O("div", {
115
- className: S,
114
+ children: /* @__PURE__ */ D("div", {
115
+ className: x,
116
116
  id: P,
117
- children: [G, /* @__PURE__ */ D("span", {
117
+ children: [G, /* @__PURE__ */ E("span", {
118
118
  className: U,
119
- children: r
119
+ children: n
120
120
  })]
121
121
  })
122
122
  }));
123
123
  let Q = null;
124
124
  if (!B) {
125
- let t = r != null && !j;
126
- Q = /* @__PURE__ */ D("div", {
127
- className: e(v, { [y]: t }),
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: b.map((e) => {
131
- let { id: r, data: i, ...a } = e;
132
- return /* @__PURE__ */ D(n, {
133
- ...a,
134
- collapsed: j,
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
- }, r);
136
+ }, n);
137
137
  })
138
- }), ge && !j && (Q = /* @__PURE__ */ O(i, {
139
- accessibility: { screenReaderInstructions: { draggable: xe } },
138
+ }), ve && !A && (Q = /* @__PURE__ */ D(r, {
139
+ accessibility: { screenReaderInstructions: { draggable: Ce } },
140
140
  collisionDetection: ee,
141
- sensors: _e,
142
- onDragStart: ve,
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: ye,
148
- children: [/* @__PURE__ */ D(d, {
147
+ onDragEnd: xe,
148
+ children: [/* @__PURE__ */ E(u, {
149
149
  items: K,
150
- strategy: m,
151
- children: /* @__PURE__ */ D("div", {
152
- className: e(v, { [y]: t }),
150
+ strategy: p,
151
+ children: /* @__PURE__ */ E("div", {
152
+ className: e(_, { [v]: t }),
153
153
  id: N,
154
154
  role: "list",
155
- children: b.map((e) => {
155
+ children: y.map((e) => {
156
156
  let n;
157
- return e.id === Y && (n = X), /* @__PURE__ */ D(le, {
157
+ return e.id === Y && (n = X), /* @__PURE__ */ E(fe, {
158
158
  item: e,
159
159
  isNested: t,
160
- sidebarCollapsed: j,
161
- dragHandleLabel: be,
160
+ sidebarCollapsed: A,
161
+ dragHandleLabel: Se,
162
162
  insertionPlacement: n
163
163
  }, e.id);
164
164
  })
165
165
  })
166
- }), /* @__PURE__ */ D(a, { children: J != null && /* @__PURE__ */ O("div", {
167
- className: "_1rp5mg6m _1rp5mg6l txvbqbyoi txvbqbzm3 txvbqb11ed txvbqbwqg txvbqbdr8 txvbqbey txvbqbff6 txvbqb2gm txvbqb9j txvbqbfd0 txvbqb196b txvbqb19c9 txvbqb1uy txvbqb17h txvbqbck9",
168
- children: [J.icon != null && /* @__PURE__ */ D("span", {
169
- className: "_1rp5mg6n txvbqbdsb txvbqbey txvbqbjtp txvbqb17hx txvbqbhnc txvbqbf7y",
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__ */ D("span", {
172
- className: "_1rp5mg6p _1rp5mg6o txvbqbt9i",
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 r != null && ($ = P), /* @__PURE__ */ O("section", {
180
- className: e(ne, de),
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 { k as SidebarNavSection, k as default };
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":";;;;;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AEJ,EAAM,KAAK,MAAS;IACnB,IAAM,EAAE,OAAI,SAAM,GAAG,MAAS;IAC9B,OACE,kBAAC,GAAD;KAEE,GAAI;KACJ,WAAW;KACX,QAAQ;KACR,EAJK,EAIL;KAEJ;GACE,CAGI,EAER,MAAmB,CAAC,MACtB,IACE,kBAAC,GAAD;GACE,eAAe,EACb,0BAA0B,EACxB,WAAW,IACZ,EACF;GACD,oBAAoB;GACX;GACT,aAAa;GACb,aAAa,MAAU;IACrB,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,iBAAi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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,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 = "_1rp5mg65 _1rp5mg63 txvbqbyo5 txvbqbzlq txvbqb11e0 txvbqbwq3 txvbqbdr8 txvbqbey txvbqbjus txvbqbff6 txvbqb17w0 txvbqbscn txvbqb2g9 txvbqb1g5 txvbqb2e3 txvbqb1933 txvbqbv txvbqb16ex _1rp5mg64 txvbqb1aex", i = "_1rp5mg66 txvbqbynf txvbqbzl0 txvbqbjtp", a = "_1rp5mg67 txvbqb8t txvbqbfd0 txvbqb6a txvbqb19cd txvbqbkwc", o = "_1rp5mg68 txvbqbdsb txvbqbey txvbqbt9i txvbqbff6", s = "_1rp5mg69 txvbqbdsb txvbqbey txvbqbjtp txvbqb17h7 txvbqbhmm txvbqbf7y txvbqb19cd", c = "_1rp5mg6a txvbqbdq5", l = "_1rp5mg6c _1rp5mg6b txvbqbdsb txvbqbey txvbqbjtp txvbqb17hk txvbqbhmz txvbqb2fj txvbqb19cd", u = "_1rp5mg6d", d = "_1rp5mg6e txvbqbdr8 txvbqbf6i txvbqbga8", f = "_1rp5mg6g _1rp5mg6f txvbqbo62 txvbqbyo5 txvbqb9mg txvbqb655", p = "_1rp5mg6h", m = "_1rp5mg6i", h = "_1rp5mg6k _1rp5mg6j txvbqbqv7 txvbqbo2g txvbqbdqi txvbqb2is txvbqb1961", g = "_1rp5mg6m _1rp5mg6l txvbqbyoi txvbqbzm3 txvbqb11ed txvbqbwqg txvbqbdr8 txvbqbey txvbqbff6 txvbqb2gm txvbqb9j txvbqbfd0 txvbqb196b txvbqb19c9 txvbqb1uy txvbqb17h txvbqbck9", _ = "_1rp5mg6n txvbqbdsb txvbqbey txvbqbjtp txvbqb17hx txvbqbhnc txvbqbf7y", v = "_1rp5mg6p _1rp5mg6o txvbqbt9i";
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 { g as dragOverlay, _ as dragOverlayIcon, v as dragOverlayLabel, t as header, r as headerButton, i as headerButtonSidebarCollapsed, n as headerSidebarCollapsed, h as insertionIndicator, d as items, f as itemsNested, e as section, p as sortableItem, m as sortableItemDragging, a as title, o as titleContent, s as titleIcon, c as titleSidebarCollapsed, l as toggleIcon, u as toggleIconCollapsed };
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, stateSprinkles } 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 stateSprinkles({\n backgroundColor: {\n hover: 'surfaceMuted',\n },\n }),\n {\n selectors: {\n '&:focus-visible': {\n outline: `2px solid ${vars.colors.primary}`,\n outlineOffset: '2px',\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 color: 'textMuted',\n letterSpacing: 'wide',\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 color: 'textMuted',\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 color: 'textMuted',\n }),\n {\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 borderLeftColor: 'border',\n }),\n {\n borderLeftStyle: 'solid',\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 backgroundColor: 'primary',\n }),\n {\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 backgroundColor: 'surface',\n color: 'text',\n borderWidth: 'default',\n borderColor: 'border',\n boxShadow: 'lg',\n }),\n {\n borderStyle: 'solid',\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":""}
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, container as a, hidden as o, menu as s, menuDisplayName as c, menuEmail as l, menuIcon as u, menuIdentity as d, menuItem as f, title as p, trigger as m, triggerMain as h } from "./sidebarProfileMenu.css.js";
6
- import { jsx as g, jsxs as _ } from "react/jsx-runtime";
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 v = ({ viewer: v, collapsed: y, labels: b, onSignOut: x, isSigningOut: S = !1, className: C }) => {
9
- let w = p;
10
- y && (w = o);
11
- let T = `${b.menuAriaLabel}: ${v.displayName}`, E;
12
- return y && (E = T), /* @__PURE__ */ _("div", {
13
- className: e(a, C),
14
- children: [/* @__PURE__ */ g("div", {
15
- className: w,
16
- children: b.sectionTitle
17
- }), /* @__PURE__ */ g(n, {
18
- trigger: (n) => /* @__PURE__ */ _("button", {
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: m({ collapsed: y }),
21
- "aria-label": T,
22
- title: E,
23
- children: [/* @__PURE__ */ _("span", {
24
- className: h,
25
- children: [/* @__PURE__ */ g("span", {
26
- className: i,
27
- children: v.initials
28
- }), !y && /* @__PURE__ */ _("span", {
29
- className: "_1uw3f9ob txvbqbdr8 txvbqbf6i txvbqbt9i",
30
- children: [/* @__PURE__ */ g("span", {
31
- className: "_1uw3f9oc txvbqb9j txvbqbfd0 txvbqb19c9 txvbqb18xk txvbqbusr txvbqb16g0",
32
- children: v.displayName
33
- }), /* @__PURE__ */ g("span", {
34
- className: "_1uw3f9od txvbqb96 txvbqb19cb txvbqb18xk txvbqbusr txvbqb16g0",
35
- children: v.email
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
- }), !y && /* @__PURE__ */ g(t, {
38
+ }), !w && /* @__PURE__ */ x(t, {
39
39
  width: 16,
40
40
  height: 16,
41
- className: e("_1uw3f9oe txvbqb19cb txvbqb7p txvbqb75 txvbqb7t", { "_1uw3f9of txvbqb30": n })
41
+ className: e("_1uw3f9oi txvbqb7p txvbqb75 txvbqb7t", "_1uw3f9oj", { "_1uw3f9ok txvbqb30": n })
42
42
  })]
43
43
  }),
44
- ariaLabel: T,
44
+ ariaLabel: A,
45
45
  contentRole: "dialog",
46
- contentAriaLabel: T,
46
+ contentAriaLabel: A,
47
47
  placement: "top-start",
48
48
  closeOnItemClick: !0,
49
49
  matchTriggerWidth: !1,
50
- children: /* @__PURE__ */ _("div", {
51
- className: s,
52
- children: [/* @__PURE__ */ _("div", {
53
- className: d,
54
- children: [/* @__PURE__ */ g("span", {
55
- className: c,
56
- children: v.displayName
57
- }), /* @__PURE__ */ g("span", {
58
- className: l,
59
- children: v.email
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__ */ _("button", {
61
+ }), /* @__PURE__ */ S("button", {
62
62
  type: "button",
63
- className: f,
64
- onClick: x,
65
- disabled: S,
66
- children: [/* @__PURE__ */ g("span", {
67
- className: u,
68
- children: /* @__PURE__ */ g(r, {
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
- }), b.signOut]
72
+ }), T.signOut]
73
73
  })]
74
74
  })
75
75
  })]
76
76
  });
77
77
  };
78
78
  //#endregion
79
- export { v as BackofficeSidebarProfileMenu, v as default };
79
+ export { C as BackofficeSidebarProfileMenu, C as default };
80
80
 
81
81
  //# sourceMappingURL=BackofficeSidebarProfileMenu.js.map
@@ -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}>{viewer.initials}</span>\n {!collapsed && (\n <span className={styles.identity}>\n <span className={styles.displayName}>\n {viewer.displayName}\n </span>\n <span className={styles.email}>{viewer.email}</span>\n </span>\n )}\n </span>\n {!collapsed && (\n <ChevronDownSvg\n width={16}\n height={16}\n className={cx(styles.chevron, {\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 className={styles.menuDisplayName}>{viewer.displayName}</span>\n <span className={styles.menuEmail}>{viewer.email}</span>\n </div>\n <button\n type=\"button\"\n className={styles.menuItem}\n onClick={onSignOut}\n disabled={isSigningOut}\n >\n <span className={styles.menuIcon}>\n <ProfileDropdownLogoutSvg width={16} height={16} />\n </span>\n {labels.signOut}\n </button>\n </div>\n </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ME,kBAAC,QAAD;MAAM,WAAW;gBACf,kBAAC,GAAD;OAA0B,OAAO;OAAI,QAAQ;OAAM,CAAA;MAC9C,CAAA,EACN,EAAO,QACD;OACL;;GACG,CAAA,CACP"}
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 txvbqb19cb", r = "_1uw3f9o2 txvbqbdq5", i = e({
6
- defaultClassName: "_1uw3f9o6 _1uw3f9o3 txvbqbdr8 txvbqbey txvbqb17w0 txvbqb1uy txvbqb2et txvbqb17u txvbqb2gm txvbqb196d txvbqb7h txvbqb75 txvbqb7t txvbqbv",
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: "_1uw3f9o7 _1uw3f9o4 txvbqbjtp txvbqbuxt",
9
- false: "_1uw3f9o8 _1uw3f9o5 txvbqbyoi txvbqbzm3 txvbqb10jb txvbqbvve txvbqbjus txvbqbff6"
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
- }), a = "_1uw3f9o9 txvbqbdr8 txvbqbey txvbqbff6 txvbqbt9i txvbqbdxd", o = "_1uw3f9oa txvbqb17in txvbqbho2 txvbqbtce txvbqbscn txvbqb2is txvbqbdr8 txvbqbey txvbqbjtp txvbqb96 txvbqbfd0 txvbqb19dj txvbqb190g txvbqb6a", s = "_1uw3f9ob txvbqbdr8 txvbqbf6i txvbqbt9i", c = "_1uw3f9oc txvbqb9j txvbqbfd0 txvbqb19c9 txvbqb18xk txvbqbusr txvbqb16g0", l = "_1uw3f9od txvbqb96 txvbqb19cb txvbqb18xk txvbqbusr txvbqb16g0", u = "_1uw3f9oe txvbqb19cb txvbqb7p txvbqb75 txvbqb7t", d = "_1uw3f9of txvbqb30", f = "_1uw3f9og txvbqbtkc txvbqbuxt txvbqbdr8 txvbqbf6i txvbqbfet", p = "_1uw3f9oi _1uw3f9oh txvbqbyoi txvbqbzm3 txvbqb10jb txvbqbvve txvbqbdr8 txvbqbf6i txvbqbg9v txvbqb8pl txvbqb577 txvbqbn7e", m = "_1uw3f9oj txvbqb9j txvbqbfd0 txvbqb19c9 txvbqb18xk txvbqbusr txvbqb16g0", h = "_1uw3f9ok txvbqb96 txvbqb19cb txvbqb18xk txvbqbusr txvbqb16g0", g = "_1uw3f9om _1uw3f9ol txvbqbyoi txvbqbzm3 txvbqb10jb txvbqbvve txvbqbdr8 txvbqbey txvbqbff6 txvbqb17w0 txvbqb1g5 txvbqb2e3 txvbqb2g9 txvbqb1933 txvbqb19c9 txvbqb9j txvbqbfcn txvbqb16ex txvbqbv txvbqb7h txvbqb75 txvbqb7t", _ = "_1uw3f9on txvbqbdsb txvbqbey txvbqb19cb";
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 { o as avatar, u as chevron, d as chevronOpen, t as container, c as displayName, l as email, r as hidden, s as identity, f as menu, m as menuDisplayName, h as menuEmail, _ as menuIcon, p as menuIdentity, g as menuItem, n as title, i as trigger, a as triggerMain };
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