@plumile/ui 0.1.61 → 0.1.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/atomic/molecules/markdown/components/MarkdownEmphasis.css.js +0 -1
- package/lib/esm/atomic/molecules/markdown/components/MarkdownFootnoteReference.css.js +1 -0
- package/lib/esm/atomic/organisms/sidebar/Sidebar.js +2 -0
- package/lib/esm/atomic/organisms/sidebar/SidebarContainer.js +29 -0
- package/lib/esm/atomic/organisms/sidebar/SidebarContainer.js.map +1 -0
- package/lib/esm/atomic/organisms/sidebar/icons.js +67 -0
- package/lib/esm/atomic/organisms/sidebar/icons.js.map +1 -0
- package/lib/esm/atomic/organisms/sidebar/sidebar.css.js +17 -0
- package/lib/esm/atomic/organisms/sidebar/sidebar.css.js.map +1 -0
- package/lib/esm/atomic/organisms/sidebar/useSidebarShell.js +0 -0
- package/lib/esm/backoffice/atoms/backoffice_id_badge/BackofficeIdBadge.js +18 -0
- package/lib/esm/backoffice/atoms/backoffice_id_badge/BackofficeIdBadge.js.map +1 -0
- package/lib/esm/backoffice/atoms/backoffice_id_badge/backofficeIdBadge.css.js +8 -0
- package/lib/esm/backoffice/atoms/backoffice_id_badge/backofficeIdBadge.css.js.map +1 -0
- package/lib/esm/backoffice/atoms/copyable_text/CopyableText.js +71 -0
- package/lib/esm/backoffice/atoms/copyable_text/CopyableText.js.map +1 -0
- package/lib/esm/backoffice/atoms/copyable_text/copyableText.css.js +8 -0
- package/lib/esm/backoffice/atoms/copyable_text/copyableText.css.js.map +1 -0
- package/lib/esm/backoffice/atoms/environment_badge/EnvironmentBadge.js +28 -0
- package/lib/esm/backoffice/atoms/environment_badge/EnvironmentBadge.js.map +1 -0
- package/lib/esm/backoffice/atoms/environment_badge/environmentBadge.css.js +8 -0
- package/lib/esm/backoffice/atoms/environment_badge/environmentBadge.css.js.map +1 -0
- package/lib/esm/backoffice/atoms/shortcut_hint/ShortcutHint.js +20 -0
- package/lib/esm/backoffice/atoms/shortcut_hint/ShortcutHint.js.map +1 -0
- package/lib/esm/backoffice/atoms/shortcut_hint/shortcutHint.css.js +8 -0
- package/lib/esm/backoffice/atoms/shortcut_hint/shortcutHint.css.js.map +1 -0
- package/lib/esm/backoffice/atoms/skeleton/Skeleton.js +39 -0
- package/lib/esm/backoffice/atoms/skeleton/Skeleton.js.map +1 -0
- package/lib/esm/backoffice/atoms/skeleton/skeleton.css.js +12 -0
- package/lib/esm/backoffice/atoms/skeleton/skeleton.css.js.map +1 -0
- package/lib/esm/backoffice/atoms/spinner/Spinner.js +20 -0
- package/lib/esm/backoffice/atoms/spinner/Spinner.js.map +1 -0
- package/lib/esm/backoffice/atoms/spinner/spinner.css.js +8 -0
- package/lib/esm/backoffice/atoms/spinner/spinner.css.js.map +1 -0
- package/lib/esm/backoffice/atoms/status_badge/StatusBadge.js +31 -0
- package/lib/esm/backoffice/atoms/status_badge/StatusBadge.js.map +1 -0
- package/lib/esm/backoffice/atoms/status_badge/statusBadge.css.js +8 -0
- package/lib/esm/backoffice/atoms/status_badge/statusBadge.css.js.map +1 -0
- package/lib/esm/backoffice/atoms/tag/Tag.js +32 -0
- package/lib/esm/backoffice/atoms/tag/Tag.js.map +1 -0
- package/lib/esm/backoffice/atoms/tag/tag.css.js +20 -0
- package/lib/esm/backoffice/atoms/tag/tag.css.js.map +1 -0
- package/lib/esm/backoffice/layout/backofficeLayoutTokens.js +15 -0
- package/lib/esm/backoffice/layout/backofficeLayoutTokens.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_layout/BackofficeDetailLayout.js +34 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_layout/BackofficeDetailLayout.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_layout/backofficeDetailLayout.css.js +7 -0
- package/lib/esm/backoffice/molecules/backoffice_detail_layout/backofficeDetailLayout.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_empty_state/BackofficeEmptyState.js +37 -0
- package/lib/esm/backoffice/molecules/backoffice_empty_state/BackofficeEmptyState.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_empty_state/backofficeEmptyState.css.js +7 -0
- package/lib/esm/backoffice/molecules/backoffice_empty_state/backofficeEmptyState.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_filter_drawer/BackofficeFilterDrawer.js +116 -0
- package/lib/esm/backoffice/molecules/backoffice_filter_drawer/BackofficeFilterDrawer.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_filter_drawer/backofficeFilterDrawer.css.js +7 -0
- package/lib/esm/backoffice/molecules/backoffice_filter_drawer/backofficeFilterDrawer.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_filter_field/BackofficeFilterField.js +28 -0
- package/lib/esm/backoffice/molecules/backoffice_filter_field/BackofficeFilterField.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_filter_field/backofficeFilterField.css.js +7 -0
- package/lib/esm/backoffice/molecules/backoffice_filter_field/backofficeFilterField.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_filters_bar/BackofficeFiltersBar.js +37 -0
- package/lib/esm/backoffice/molecules/backoffice_filters_bar/BackofficeFiltersBar.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_filters_bar/backofficeFiltersBar.css.js +7 -0
- package/lib/esm/backoffice/molecules/backoffice_filters_bar/backofficeFiltersBar.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_form_section/BackofficeFormSection.js +25 -0
- package/lib/esm/backoffice/molecules/backoffice_form_section/BackofficeFormSection.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_form_section/backofficeFormSection.css.js +7 -0
- package/lib/esm/backoffice/molecules/backoffice_form_section/backofficeFormSection.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/BackofficeJsonViewer.js +80 -0
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/BackofficeJsonViewer.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.css.js +7 -0
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.js +28 -0
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/backofficeJsonViewer.css.js +8 -0
- package/lib/esm/backoffice/molecules/backoffice_json_viewer/backofficeJsonViewer.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.js +22 -0
- package/lib/esm/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_key_value_list/backofficeKeyValueList.css.js +7 -0
- package/lib/esm/backoffice/molecules/backoffice_key_value_list/backofficeKeyValueList.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_load_more/BackofficeLoadMore.js +27 -0
- package/lib/esm/backoffice/molecules/backoffice_load_more/BackofficeLoadMore.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_load_more/backofficeLoadMore.css.js +8 -0
- package/lib/esm/backoffice/molecules/backoffice_load_more/backofficeLoadMore.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_page_header/BackofficePageHeader.js +31 -0
- package/lib/esm/backoffice/molecules/backoffice_page_header/BackofficePageHeader.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.js +7 -0
- package/lib/esm/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_relations_menu/BackofficeRelationsMenu.js +68 -0
- package/lib/esm/backoffice/molecules/backoffice_relations_menu/BackofficeRelationsMenu.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_relations_menu/backofficeRelationsMenu.css.js +7 -0
- package/lib/esm/backoffice/molecules/backoffice_relations_menu/backofficeRelationsMenu.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_table_skeleton/BackofficeTableSkeleton.js +37 -0
- package/lib/esm/backoffice/molecules/backoffice_table_skeleton/BackofficeTableSkeleton.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_table_skeleton/backofficeTableSkeleton.css.js +8 -0
- package/lib/esm/backoffice/molecules/backoffice_table_skeleton/backofficeTableSkeleton.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_table_toolbar/BackofficeTableToolbar.js +32 -0
- package/lib/esm/backoffice/molecules/backoffice_table_toolbar/BackofficeTableToolbar.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_table_toolbar/backofficeTableToolbar.css.js +7 -0
- package/lib/esm/backoffice/molecules/backoffice_table_toolbar/backofficeTableToolbar.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_tabs/BackofficeTabs.js +31 -0
- package/lib/esm/backoffice/molecules/backoffice_tabs/BackofficeTabs.js.map +1 -0
- package/lib/esm/backoffice/molecules/backoffice_tabs/backofficeTabs.css.js +8 -0
- package/lib/esm/backoffice/molecules/backoffice_tabs/backofficeTabs.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/bulk_actions_bar/BulkActionsBar.js +31 -0
- package/lib/esm/backoffice/molecules/bulk_actions_bar/BulkActionsBar.js.map +1 -0
- package/lib/esm/backoffice/molecules/bulk_actions_bar/bulkActionsBar.css.js +8 -0
- package/lib/esm/backoffice/molecules/bulk_actions_bar/bulkActionsBar.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/confirm_dialog/ConfirmDialog.js +62 -0
- package/lib/esm/backoffice/molecules/confirm_dialog/ConfirmDialog.js.map +1 -0
- package/lib/esm/backoffice/molecules/confirm_dialog/confirmDialog.css.js +8 -0
- package/lib/esm/backoffice/molecules/confirm_dialog/confirmDialog.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/filter_chip_row/FilterChipRow.js +30 -0
- package/lib/esm/backoffice/molecules/filter_chip_row/FilterChipRow.js.map +1 -0
- package/lib/esm/backoffice/molecules/filter_chip_row/filterChipRow.css.js +8 -0
- package/lib/esm/backoffice/molecules/filter_chip_row/filterChipRow.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/global_search_input/GlobalSearchInput.js +55 -0
- package/lib/esm/backoffice/molecules/global_search_input/GlobalSearchInput.js.map +1 -0
- package/lib/esm/backoffice/molecules/global_search_input/globalSearchInput.css.js +8 -0
- package/lib/esm/backoffice/molecules/global_search_input/globalSearchInput.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/inline_banner/InlineBanner.js +44 -0
- package/lib/esm/backoffice/molecules/inline_banner/InlineBanner.js.map +1 -0
- package/lib/esm/backoffice/molecules/inline_banner/inlineBanner.css.js +19 -0
- package/lib/esm/backoffice/molecules/inline_banner/inlineBanner.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/sidebar_collapse_toggle/SidebarCollapseToggle.js +38 -0
- package/lib/esm/backoffice/molecules/sidebar_collapse_toggle/SidebarCollapseToggle.js.map +1 -0
- package/lib/esm/backoffice/molecules/sidebar_collapse_toggle/sidebarCollapseToggle.css.js +8 -0
- package/lib/esm/backoffice/molecules/sidebar_collapse_toggle/sidebarCollapseToggle.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/sidebar_nav_item/SidebarNavItem.js +123 -0
- package/lib/esm/backoffice/molecules/sidebar_nav_item/SidebarNavItem.js.map +1 -0
- package/lib/esm/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.js +8 -0
- package/lib/esm/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/sidebar_nav_section/SidebarNavSection.js +64 -0
- package/lib/esm/backoffice/molecules/sidebar_nav_section/SidebarNavSection.js.map +1 -0
- package/lib/esm/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.js +8 -0
- package/lib/esm/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/sidebar_profile_menu/BackofficeSidebarProfileMenu.js +69 -0
- package/lib/esm/backoffice/molecules/sidebar_profile_menu/BackofficeSidebarProfileMenu.js.map +1 -0
- package/lib/esm/backoffice/molecules/sidebar_profile_menu/sidebarProfileMenu.css.js +17 -0
- package/lib/esm/backoffice/molecules/sidebar_profile_menu/sidebarProfileMenu.css.js.map +1 -0
- package/lib/esm/backoffice/molecules/table_toolbar/TableToolbar.js +42 -0
- package/lib/esm/backoffice/molecules/table_toolbar/TableToolbar.js.map +1 -0
- package/lib/esm/backoffice/molecules/table_toolbar/tableToolbar.css.js +8 -0
- package/lib/esm/backoffice/molecules/table_toolbar/tableToolbar.css.js.map +1 -0
- package/lib/esm/backoffice/organisms/audit_timeline/AuditTimeline.js +52 -0
- package/lib/esm/backoffice/organisms/audit_timeline/AuditTimeline.js.map +1 -0
- package/lib/esm/backoffice/organisms/audit_timeline/auditTimeline.css.js +8 -0
- package/lib/esm/backoffice/organisms/audit_timeline/auditTimeline.css.js.map +1 -0
- package/lib/esm/backoffice/organisms/backoffice_app_shell/BackofficeAppShell.js +14 -0
- package/lib/esm/backoffice/organisms/backoffice_app_shell/BackofficeAppShell.js.map +1 -0
- package/lib/esm/backoffice/organisms/backoffice_data_table/BackofficeDataTable.js +114 -0
- package/lib/esm/backoffice/organisms/backoffice_data_table/BackofficeDataTable.js.map +1 -0
- package/lib/esm/backoffice/organisms/backoffice_data_table/backofficeDataTable.css.js +8 -0
- package/lib/esm/backoffice/organisms/backoffice_data_table/backofficeDataTable.css.js.map +1 -0
- package/lib/esm/backoffice/organisms/backoffice_sidebar/BackofficeSidebar.js +62 -0
- package/lib/esm/backoffice/organisms/backoffice_sidebar/BackofficeSidebar.js.map +1 -0
- package/lib/esm/backoffice/organisms/backoffice_sidebar/backofficeSidebar.css.js +17 -0
- package/lib/esm/backoffice/organisms/backoffice_sidebar/backofficeSidebar.css.js.map +1 -0
- package/lib/esm/backoffice/organisms/backoffice_topbar/BackofficeTopbar.js +22 -0
- package/lib/esm/backoffice/organisms/backoffice_topbar/BackofficeTopbar.js.map +1 -0
- package/lib/esm/backoffice/organisms/backoffice_topbar/backofficeTopbar.css.js +8 -0
- package/lib/esm/backoffice/organisms/backoffice_topbar/backofficeTopbar.css.js.map +1 -0
- package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/BackofficeVirtualizedConnectionTable.js +34 -0
- package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/BackofficeVirtualizedConnectionTable.js.map +1 -0
- package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/backofficeVirtualizedConnectionTable.css.js +8 -0
- package/lib/esm/backoffice/organisms/backoffice_virtualized_connection_table/backofficeVirtualizedConnectionTable.css.js.map +1 -0
- package/lib/esm/backoffice/organisms/entity_header/EntityHeader.js +59 -0
- package/lib/esm/backoffice/organisms/entity_header/EntityHeader.js.map +1 -0
- package/lib/esm/backoffice/organisms/entity_header/entityHeader.css.js +8 -0
- package/lib/esm/backoffice/organisms/entity_header/entityHeader.css.js.map +1 -0
- package/lib/esm/backoffice/templates/backoffice_shell_template/BackofficeShellTemplate.js +19 -0
- package/lib/esm/backoffice/templates/backoffice_shell_template/BackofficeShellTemplate.js.map +1 -0
- package/lib/esm/backoffice/templates/detail_page_template/DetailPageTemplate.js +55 -0
- package/lib/esm/backoffice/templates/detail_page_template/DetailPageTemplate.js.map +1 -0
- package/lib/esm/backoffice/templates/detail_page_template/detailPageTemplate.css.js +8 -0
- package/lib/esm/backoffice/templates/detail_page_template/detailPageTemplate.css.js.map +1 -0
- package/lib/esm/backoffice/templates/list_page_template/ListPageTemplate.js +43 -0
- package/lib/esm/backoffice/templates/list_page_template/ListPageTemplate.js.map +1 -0
- package/lib/esm/backoffice/templates/list_page_template/listPageTemplate.css.js +8 -0
- package/lib/esm/backoffice/templates/list_page_template/listPageTemplate.css.js.map +1 -0
- package/lib/esm/backoffice/templates/settings_template/SettingsTemplate.js +18 -0
- package/lib/esm/backoffice/templates/settings_template/SettingsTemplate.js.map +1 -0
- package/lib/esm/backoffice/templates/settings_template/settingsTemplate.css.js +8 -0
- package/lib/esm/backoffice/templates/settings_template/settingsTemplate.css.js.map +1 -0
- package/lib/esm/backoffice/templates/split_view_template/SplitViewTemplate.js +18 -0
- package/lib/esm/backoffice/templates/split_view_template/SplitViewTemplate.js.map +1 -0
- package/lib/esm/backoffice/templates/split_view_template/splitViewTemplate.css.js +8 -0
- package/lib/esm/backoffice/templates/split_view_template/splitViewTemplate.css.js.map +1 -0
- package/lib/esm/backoffice/theme/BackofficeThemeProvider.js +11 -0
- package/lib/esm/backoffice/theme/BackofficeThemeProvider.js.map +1 -0
- package/lib/esm/backoffice/theme/backofficeTheme.css.js +7 -0
- package/lib/esm/backoffice/theme/backofficeTheme.css.js.map +1 -0
- package/lib/esm/index.js +101 -49
- package/lib/esm/shared/agentJobRequestFormatting.js +31 -0
- package/lib/esm/shared/agentJobRequestFormatting.js.map +1 -0
- package/lib/esm/shared/agentText.js +13 -0
- package/lib/esm/shared/agentText.js.map +1 -0
- package/lib/esm/shared/backofficeTableDensity.css.js +9 -0
- package/lib/esm/shared/backofficeTableDensity.css.js.map +1 -0
- package/lib/esm/style.css +1 -1
- package/lib/types/atomic/organisms/sidebar/Sidebar.d.ts +3 -0
- package/lib/types/atomic/organisms/sidebar/Sidebar.d.ts.map +1 -0
- package/lib/types/atomic/organisms/sidebar/SidebarContainer.d.ts +11 -0
- package/lib/types/atomic/organisms/sidebar/SidebarContainer.d.ts.map +1 -0
- package/lib/types/atomic/organisms/sidebar/icons.d.ts +19 -0
- package/lib/types/atomic/organisms/sidebar/icons.d.ts.map +1 -0
- package/lib/types/atomic/organisms/sidebar/sidebar.css.d.ts +26 -0
- package/lib/types/atomic/organisms/sidebar/sidebar.css.d.ts.map +1 -0
- package/lib/types/atomic/organisms/sidebar/useSidebarShell.d.ts +2 -0
- package/lib/types/atomic/organisms/sidebar/useSidebarShell.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/backoffice_id_badge/BackofficeIdBadge.d.ts +11 -0
- package/lib/types/backoffice/atoms/backoffice_id_badge/BackofficeIdBadge.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/backoffice_id_badge/backofficeIdBadge.css.d.ts +2 -0
- package/lib/types/backoffice/atoms/backoffice_id_badge/backofficeIdBadge.css.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/copyable_text/CopyableText.d.ts +12 -0
- package/lib/types/backoffice/atoms/copyable_text/CopyableText.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/copyable_text/copyableText.css.d.ts +5 -0
- package/lib/types/backoffice/atoms/copyable_text/copyableText.css.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/environment_badge/EnvironmentBadge.d.ts +10 -0
- package/lib/types/backoffice/atoms/environment_badge/EnvironmentBadge.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/environment_badge/environmentBadge.css.d.ts +2 -0
- package/lib/types/backoffice/atoms/environment_badge/environmentBadge.css.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/shortcut_hint/ShortcutHint.d.ts +8 -0
- package/lib/types/backoffice/atoms/shortcut_hint/ShortcutHint.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/shortcut_hint/shortcutHint.css.d.ts +3 -0
- package/lib/types/backoffice/atoms/shortcut_hint/shortcutHint.css.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/skeleton/Skeleton.d.ts +13 -0
- package/lib/types/backoffice/atoms/skeleton/Skeleton.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/skeleton/skeleton.css.d.ts +8 -0
- package/lib/types/backoffice/atoms/skeleton/skeleton.css.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/spinner/Spinner.d.ts +9 -0
- package/lib/types/backoffice/atoms/spinner/Spinner.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/spinner/spinner.css.d.ts +3 -0
- package/lib/types/backoffice/atoms/spinner/spinner.css.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/status_badge/StatusBadge.d.ts +12 -0
- package/lib/types/backoffice/atoms/status_badge/StatusBadge.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/status_badge/statusBadge.css.d.ts +3 -0
- package/lib/types/backoffice/atoms/status_badge/statusBadge.css.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/tag/Tag.d.ts +14 -0
- package/lib/types/backoffice/atoms/tag/Tag.d.ts.map +1 -0
- package/lib/types/backoffice/atoms/tag/tag.css.d.ts +13 -0
- package/lib/types/backoffice/atoms/tag/tag.css.d.ts.map +1 -0
- package/lib/types/backoffice/layout/backofficeLayoutTokens.d.ts +12 -0
- package/lib/types/backoffice/layout/backofficeLayoutTokens.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_detail_layout/BackofficeDetailLayout.d.ts +10 -0
- package/lib/types/backoffice/molecules/backoffice_detail_layout/BackofficeDetailLayout.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_detail_layout/backofficeDetailLayout.css.d.ts +7 -0
- package/lib/types/backoffice/molecules/backoffice_detail_layout/backofficeDetailLayout.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_empty_state/BackofficeEmptyState.d.ts +11 -0
- package/lib/types/backoffice/molecules/backoffice_empty_state/BackofficeEmptyState.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_empty_state/backofficeEmptyState.css.d.ts +6 -0
- package/lib/types/backoffice/molecules/backoffice_empty_state/backofficeEmptyState.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_filter_drawer/BackofficeFilterDrawer.d.ts +23 -0
- package/lib/types/backoffice/molecules/backoffice_filter_drawer/BackofficeFilterDrawer.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_filter_drawer/backofficeFilterDrawer.css.d.ts +17 -0
- package/lib/types/backoffice/molecules/backoffice_filter_drawer/backofficeFilterDrawer.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_filter_field/BackofficeFilterField.d.ts +10 -0
- package/lib/types/backoffice/molecules/backoffice_filter_field/BackofficeFilterField.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_filter_field/backofficeFilterField.css.d.ts +6 -0
- package/lib/types/backoffice/molecules/backoffice_filter_field/backofficeFilterField.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_filters_bar/BackofficeFiltersBar.d.ts +13 -0
- package/lib/types/backoffice/molecules/backoffice_filters_bar/BackofficeFiltersBar.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_filters_bar/backofficeFiltersBar.css.d.ts +6 -0
- package/lib/types/backoffice/molecules/backoffice_filters_bar/backofficeFiltersBar.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_form_section/BackofficeFormSection.d.ts +10 -0
- package/lib/types/backoffice/molecules/backoffice_form_section/BackofficeFormSection.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_form_section/backofficeFormSection.css.d.ts +5 -0
- package/lib/types/backoffice/molecules/backoffice_form_section/backofficeFormSection.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_json_viewer/BackofficeJsonViewer.d.ts +15 -0
- package/lib/types/backoffice/molecules/backoffice_json_viewer/BackofficeJsonViewer.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.css.d.ts +2 -0
- package/lib/types/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.d.ts +5 -0
- package/lib/types/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_json_viewer/backofficeJsonViewer.css.d.ts +7 -0
- package/lib/types/backoffice/molecules/backoffice_json_viewer/backofficeJsonViewer.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.d.ts +12 -0
- package/lib/types/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_key_value_list/backofficeKeyValueList.css.d.ts +7 -0
- package/lib/types/backoffice/molecules/backoffice_key_value_list/backofficeKeyValueList.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_load_more/BackofficeLoadMore.d.ts +12 -0
- package/lib/types/backoffice/molecules/backoffice_load_more/BackofficeLoadMore.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_load_more/backofficeLoadMore.css.d.ts +4 -0
- package/lib/types/backoffice/molecules/backoffice_load_more/backofficeLoadMore.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_page_header/BackofficePageHeader.d.ts +11 -0
- package/lib/types/backoffice/molecules/backoffice_page_header/BackofficePageHeader.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.d.ts +8 -0
- package/lib/types/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_relations_menu/BackofficeRelationsMenu.d.ts +15 -0
- package/lib/types/backoffice/molecules/backoffice_relations_menu/BackofficeRelationsMenu.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_relations_menu/backofficeRelationsMenu.css.d.ts +8 -0
- package/lib/types/backoffice/molecules/backoffice_relations_menu/backofficeRelationsMenu.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_table_skeleton/BackofficeTableSkeleton.d.ts +8 -0
- package/lib/types/backoffice/molecules/backoffice_table_skeleton/BackofficeTableSkeleton.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_table_skeleton/backofficeTableSkeleton.css.d.ts +7 -0
- package/lib/types/backoffice/molecules/backoffice_table_skeleton/backofficeTableSkeleton.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_table_toolbar/BackofficeTableToolbar.d.ts +13 -0
- package/lib/types/backoffice/molecules/backoffice_table_toolbar/BackofficeTableToolbar.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_table_toolbar/backofficeTableToolbar.css.d.ts +6 -0
- package/lib/types/backoffice/molecules/backoffice_table_toolbar/backofficeTableToolbar.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_tabs/BackofficeTabs.d.ts +16 -0
- package/lib/types/backoffice/molecules/backoffice_tabs/BackofficeTabs.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/backoffice_tabs/backofficeTabs.css.d.ts +4 -0
- package/lib/types/backoffice/molecules/backoffice_tabs/backofficeTabs.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/bulk_actions_bar/BulkActionsBar.d.ts +12 -0
- package/lib/types/backoffice/molecules/bulk_actions_bar/BulkActionsBar.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/bulk_actions_bar/bulkActionsBar.css.d.ts +4 -0
- package/lib/types/backoffice/molecules/bulk_actions_bar/bulkActionsBar.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/confirm_dialog/ConfirmDialog.d.ts +15 -0
- package/lib/types/backoffice/molecules/confirm_dialog/ConfirmDialog.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/confirm_dialog/confirmDialog.css.d.ts +3 -0
- package/lib/types/backoffice/molecules/confirm_dialog/confirmDialog.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/filter_chip_row/FilterChipRow.d.ts +15 -0
- package/lib/types/backoffice/molecules/filter_chip_row/FilterChipRow.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/filter_chip_row/filterChipRow.css.d.ts +2 -0
- package/lib/types/backoffice/molecules/filter_chip_row/filterChipRow.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/global_search_input/GlobalSearchInput.d.ts +14 -0
- package/lib/types/backoffice/molecules/global_search_input/GlobalSearchInput.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/global_search_input/globalSearchInput.css.d.ts +4 -0
- package/lib/types/backoffice/molecules/global_search_input/globalSearchInput.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/inline_banner/InlineBanner.d.ts +16 -0
- package/lib/types/backoffice/molecules/inline_banner/InlineBanner.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/inline_banner/inlineBanner.css.d.ts +17 -0
- package/lib/types/backoffice/molecules/inline_banner/inlineBanner.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/sidebar_collapse_toggle/SidebarCollapseToggle.d.ts +11 -0
- package/lib/types/backoffice/molecules/sidebar_collapse_toggle/SidebarCollapseToggle.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/sidebar_collapse_toggle/sidebarCollapseToggle.css.d.ts +4 -0
- package/lib/types/backoffice/molecules/sidebar_collapse_toggle/sidebarCollapseToggle.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/sidebar_nav_item/SidebarNavItem.d.ts +24 -0
- package/lib/types/backoffice/molecules/sidebar_nav_item/SidebarNavItem.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.d.ts +15 -0
- package/lib/types/backoffice/molecules/sidebar_nav_item/sidebarNavItem.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/sidebar_nav_section/SidebarNavSection.d.ts +24 -0
- package/lib/types/backoffice/molecules/sidebar_nav_section/SidebarNavSection.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.d.ts +6 -0
- package/lib/types/backoffice/molecules/sidebar_nav_section/sidebarNavSection.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/sidebar_profile_menu/BackofficeSidebarProfileMenu.d.ts +23 -0
- package/lib/types/backoffice/molecules/sidebar_profile_menu/BackofficeSidebarProfileMenu.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/sidebar_profile_menu/sidebarProfileMenu.css.d.ts +20 -0
- package/lib/types/backoffice/molecules/sidebar_profile_menu/sidebarProfileMenu.css.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/table_toolbar/TableToolbar.d.ts +13 -0
- package/lib/types/backoffice/molecules/table_toolbar/TableToolbar.d.ts.map +1 -0
- package/lib/types/backoffice/molecules/table_toolbar/tableToolbar.css.d.ts +6 -0
- package/lib/types/backoffice/molecules/table_toolbar/tableToolbar.css.d.ts.map +1 -0
- package/lib/types/backoffice/organisms/audit_timeline/AuditTimeline.d.ts +17 -0
- package/lib/types/backoffice/organisms/audit_timeline/AuditTimeline.d.ts.map +1 -0
- package/lib/types/backoffice/organisms/audit_timeline/auditTimeline.css.d.ts +12 -0
- package/lib/types/backoffice/organisms/audit_timeline/auditTimeline.css.d.ts.map +1 -0
- package/lib/types/backoffice/organisms/backoffice_app_shell/BackofficeAppShell.d.ts +12 -0
- package/lib/types/backoffice/organisms/backoffice_app_shell/BackofficeAppShell.d.ts.map +1 -0
- package/lib/types/backoffice/organisms/backoffice_data_table/BackofficeDataTable.d.ts +21 -0
- package/lib/types/backoffice/organisms/backoffice_data_table/BackofficeDataTable.d.ts.map +1 -0
- package/lib/types/backoffice/organisms/backoffice_data_table/backofficeDataTable.css.d.ts +3 -0
- package/lib/types/backoffice/organisms/backoffice_data_table/backofficeDataTable.css.d.ts.map +1 -0
- package/lib/types/backoffice/organisms/backoffice_sidebar/BackofficeSidebar.d.ts +26 -0
- package/lib/types/backoffice/organisms/backoffice_sidebar/BackofficeSidebar.d.ts.map +1 -0
- package/lib/types/backoffice/organisms/backoffice_sidebar/backofficeSidebar.css.d.ts +19 -0
- package/lib/types/backoffice/organisms/backoffice_sidebar/backofficeSidebar.css.d.ts.map +1 -0
- package/lib/types/backoffice/organisms/backoffice_topbar/BackofficeTopbar.d.ts +10 -0
- package/lib/types/backoffice/organisms/backoffice_topbar/BackofficeTopbar.d.ts.map +1 -0
- package/lib/types/backoffice/organisms/backoffice_topbar/backofficeTopbar.css.d.ts +6 -0
- package/lib/types/backoffice/organisms/backoffice_topbar/backofficeTopbar.css.d.ts.map +1 -0
- package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/BackofficeVirtualizedConnectionTable.d.ts +28 -0
- package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/BackofficeVirtualizedConnectionTable.d.ts.map +1 -0
- package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/backofficeVirtualizedConnectionTable.css.d.ts +5 -0
- package/lib/types/backoffice/organisms/backoffice_virtualized_connection_table/backofficeVirtualizedConnectionTable.css.d.ts.map +1 -0
- package/lib/types/backoffice/organisms/entity_header/EntityHeader.d.ts +19 -0
- package/lib/types/backoffice/organisms/entity_header/EntityHeader.d.ts.map +1 -0
- package/lib/types/backoffice/organisms/entity_header/entityHeader.css.d.ts +13 -0
- package/lib/types/backoffice/organisms/entity_header/entityHeader.css.d.ts.map +1 -0
- package/lib/types/backoffice/templates/backoffice_shell_template/BackofficeShellTemplate.d.ts +14 -0
- package/lib/types/backoffice/templates/backoffice_shell_template/BackofficeShellTemplate.d.ts.map +1 -0
- package/lib/types/backoffice/templates/detail_page_template/DetailPageTemplate.d.ts +25 -0
- package/lib/types/backoffice/templates/detail_page_template/DetailPageTemplate.d.ts.map +1 -0
- package/lib/types/backoffice/templates/detail_page_template/detailPageTemplate.css.d.ts +12 -0
- package/lib/types/backoffice/templates/detail_page_template/detailPageTemplate.css.d.ts.map +1 -0
- package/lib/types/backoffice/templates/list_page_template/ListPageTemplate.d.ts +35 -0
- package/lib/types/backoffice/templates/list_page_template/ListPageTemplate.d.ts.map +1 -0
- package/lib/types/backoffice/templates/list_page_template/listPageTemplate.css.d.ts +9 -0
- package/lib/types/backoffice/templates/list_page_template/listPageTemplate.css.d.ts.map +1 -0
- package/lib/types/backoffice/templates/settings_template/SettingsTemplate.d.ts +11 -0
- package/lib/types/backoffice/templates/settings_template/SettingsTemplate.d.ts.map +1 -0
- package/lib/types/backoffice/templates/settings_template/settingsTemplate.css.d.ts +4 -0
- package/lib/types/backoffice/templates/settings_template/settingsTemplate.css.d.ts.map +1 -0
- package/lib/types/backoffice/templates/split_view_template/SplitViewTemplate.d.ts +11 -0
- package/lib/types/backoffice/templates/split_view_template/SplitViewTemplate.d.ts.map +1 -0
- package/lib/types/backoffice/templates/split_view_template/splitViewTemplate.css.d.ts +3 -0
- package/lib/types/backoffice/templates/split_view_template/splitViewTemplate.css.d.ts.map +1 -0
- package/lib/types/backoffice/theme/BackofficeThemeProvider.d.ts +7 -0
- package/lib/types/backoffice/theme/BackofficeThemeProvider.d.ts.map +1 -0
- package/lib/types/backoffice/theme/backofficeTheme.css.d.ts +2 -0
- package/lib/types/backoffice/theme/backofficeTheme.css.d.ts.map +1 -0
- package/lib/types/index.d.ts +52 -0
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/shared/agentJobRequestFormatting.d.ts +6 -0
- package/lib/types/shared/agentJobRequestFormatting.d.ts.map +1 -0
- package/lib/types/shared/agentText.d.ts +3 -0
- package/lib/types/shared/agentText.d.ts.map +1 -0
- package/lib/types/shared/backofficeTableDensity.css.d.ts +2 -0
- package/lib/types/shared/backofficeTableDensity.css.d.ts.map +1 -0
- package/package.json +22 -2
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
//#region src/backoffice/molecules/backoffice_json_viewer/backofficeJsonViewer.css.ts
|
|
4
|
+
var e = "_1d30zcn0 txvbqb9io txvbqbai6 txvbqbao6 txvbqbu6f", t = "_1d30zcn1 txvbqb9io txvbqbco txvbqbdoo txvbqbaof", n = "_1d30zcn2 txvbqb8x txvbqbamf txvbqbv8r", r = "_1d30zcn3 txvbqb9jf txvbqbco txvbqbao6", i = "_1d30zcn4 txvbqbfbo txvbqblaf txvbqb1co txvbqb1qf txvbqbwf txvbqb1ro txvbqbv8p txvbqbal6 txvbqb8o txvbqbf4o txvbqbl66 txvbqbisx txvbqbuwo", a = "_1d30zcn5 txvbqbiqx";
|
|
5
|
+
//#endregion
|
|
6
|
+
export { r as actions, e as container, t as header, i as pre, n as title, a as truncated };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=backofficeJsonViewer.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backofficeJsonViewer.css.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_json_viewer/backofficeJsonViewer.css.ts"],"sourcesContent":["import { sprinkles } from '@plumile/ui/theme/sprinkles.css.js';\n\nexport const container = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 2,\n width: 'full',\n});\n\nexport const header = sprinkles({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n gap: 3,\n});\n\nexport const title = sprinkles({\n fontSize: 'sm',\n fontWeight: 'medium',\n color: 'textSecondary',\n});\n\nexport const actions = sprinkles({\n display: 'inline-flex',\n alignItems: 'center',\n gap: 2,\n});\n\nexport const pre = sprinkles({\n margin: 0,\n padding: 4,\n borderWidth: 'default',\n borderStyle: 'solid',\n borderColor: 'border',\n borderRadius: 'lg',\n color: 'text',\n fontFamily: 'mono',\n fontSize: 'xs',\n lineHeight: 1.45,\n overflow: 'auto',\n maxHeight: 96,\n whiteSpace: 'pre',\n});\n\nexport const truncated = sprinkles({\n maxHeight: 48,\n});\n"],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { cx as e } from "../../../theme/tools.js";
|
|
2
|
+
import { item as t, itemSurface as n, label as r, labelSize as i, list as a, value as o } from "./backofficeKeyValueList.css.js";
|
|
3
|
+
import "../../../index.js";
|
|
4
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
5
|
+
//#region src/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.tsx
|
|
6
|
+
var l = ({ items: l }) => /* @__PURE__ */ s("dl", {
|
|
7
|
+
className: a,
|
|
8
|
+
children: l.map((a) => /* @__PURE__ */ c("div", {
|
|
9
|
+
className: e(t, n),
|
|
10
|
+
children: [/* @__PURE__ */ s("dt", {
|
|
11
|
+
className: e(r, i),
|
|
12
|
+
children: a.label
|
|
13
|
+
}), /* @__PURE__ */ s("dd", {
|
|
14
|
+
className: o,
|
|
15
|
+
children: a.value
|
|
16
|
+
})]
|
|
17
|
+
}, a.id))
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
export { l as BackofficeKeyValueList, l as default };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=BackofficeKeyValueList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackofficeKeyValueList.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_key_value_list/BackofficeKeyValueList.tsx"],"sourcesContent":["import { type JSX, type ReactNode } from 'react';\n\nimport * as styles from './backofficeKeyValueList.css.js';\nimport { cx } from '@plumile/ui';\n\nexport type BackofficeKeyValueItem = {\n id: string;\n label: ReactNode;\n value: ReactNode;\n};\n\nexport type BackofficeKeyValueListProps = {\n items: readonly BackofficeKeyValueItem[];\n};\n\nexport const BackofficeKeyValueList = ({\n items,\n}: BackofficeKeyValueListProps): JSX.Element => {\n return (\n <dl className={styles.list}>\n {items.map((item) => {\n return (\n <div key={item.id} className={cx(styles.item, styles.itemSurface)}>\n <dt className={cx(styles.label, styles.labelSize)}>{item.label}</dt>\n <dd className={styles.value}>{item.value}</dd>\n </div>\n );\n })}\n </dl>\n );\n};\n\nexport default BackofficeKeyValueList;\n"],"mappings":";;;;;AAeA,IAAa,KAA0B,EACrC,eAGE,kBAAC,MAAD;CAAI,WAAW;WACZ,EAAM,KAAK,MAER,kBAAC,OAAD;EAAmB,WAAW,EAAG,GAAa,EAAmB;YAAjE,CACE,kBAAC,MAAD;GAAI,WAAW,EAAG,GAAc,EAAiB;aAAG,EAAK;GAAW,CAAA,EACpE,kBAAC,MAAD;GAAI,WAAW;aAAe,EAAK;GAAW,CAAA,CAC1C;IAHI,EAAK,GAGT,CAER;CACC,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
//#region src/backoffice/molecules/backoffice_key_value_list/backofficeKeyValueList.css.ts
|
|
3
|
+
var e = "tx0dqq0", t = "tx0dqq1", n = "tx0dqq2", r = "tx0dqq3", i = "tx0dqq4", a = "tx0dqq5";
|
|
4
|
+
//#endregion
|
|
5
|
+
export { t as item, n as itemSurface, r as label, i as labelSize, e as list, a as value };
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=backofficeKeyValueList.css.js.map
|
package/lib/esm/backoffice/molecules/backoffice_key_value_list/backofficeKeyValueList.css.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backofficeKeyValueList.css.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_key_value_list/backofficeKeyValueList.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\n\nimport { vars } from '@plumile/ui/theme/themeContract.js';\n\nexport const list = style({\n display: 'grid',\n gap: vars.spacing[2],\n});\n\nexport const item = style({\n display: 'grid',\n gridTemplateColumns: vars.gridTemplateColumns.keyValueSplit,\n gap: vars.spacing[2],\n alignItems: 'center',\n paddingTop: vars.spacing[2],\n paddingBottom: vars.spacing[2],\n paddingLeft: vars.spacing[3],\n paddingRight: vars.spacing[3],\n borderRadius: vars.borderRadius.lg,\n backgroundColor: vars.colors.surfaceMuted,\n});\n\nexport const itemSurface = style({\n borderWidth: vars.borderWidth.default,\n borderStyle: 'solid',\n borderColor: vars.colors.borderSubtle,\n});\n\nexport const label = style({\n color: vars.colors.textMuted,\n textTransform: 'uppercase',\n letterSpacing: vars.letterSpacing.caps,\n fontWeight: vars.fontWeight.semibold,\n});\n\nexport const labelSize = style({\n fontSize: vars.fontSize.xs,\n lineHeight: vars.lineHeight.xs,\n});\n\nexport const value = style({\n fontSize: vars.fontSize.base,\n lineHeight: vars.lineHeight.base,\n color: vars.colors.text,\n margin: 0,\n});\n"],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Spinner as e } from "../../atoms/spinner/Spinner.js";
|
|
2
|
+
import { container as t, left as n, meta as r } from "./backofficeLoadMore.css.js";
|
|
3
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
4
|
+
//#region src/backoffice/molecules/backoffice_load_more/BackofficeLoadMore.tsx
|
|
5
|
+
var o = ({ hasNextPage: o, isLoading: s, loadMoreLabel: c = "More results available", endLabel: l = "End of results", loadingLabel: u = "Loading more…", meta: d }) => {
|
|
6
|
+
let f = l;
|
|
7
|
+
o && (f = c), s && (f = u);
|
|
8
|
+
let p = null;
|
|
9
|
+
return s && (p = /* @__PURE__ */ i(e, { size: 16 })), /* @__PURE__ */ i("div", {
|
|
10
|
+
className: t,
|
|
11
|
+
children: /* @__PURE__ */ a("div", {
|
|
12
|
+
className: n,
|
|
13
|
+
children: [
|
|
14
|
+
p,
|
|
15
|
+
/* @__PURE__ */ i("span", {
|
|
16
|
+
className: r,
|
|
17
|
+
children: f
|
|
18
|
+
}),
|
|
19
|
+
d
|
|
20
|
+
]
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
export { o as BackofficeLoadMore, o as default };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=BackofficeLoadMore.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackofficeLoadMore.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_load_more/BackofficeLoadMore.tsx"],"sourcesContent":["import { type JSX, type ReactNode } from 'react';\nimport { Spinner } from '../../atoms/spinner/Spinner.js';\n\nimport * as styles from './backofficeLoadMore.css.js';\n\nexport type BackofficeLoadMoreProps = {\n hasNextPage: boolean;\n isLoading: boolean;\n loadMoreLabel?: string;\n endLabel?: string;\n loadingLabel?: string;\n meta?: ReactNode;\n};\n\nexport const BackofficeLoadMore = ({\n hasNextPage,\n isLoading,\n loadMoreLabel = 'More results available',\n endLabel = 'End of results',\n loadingLabel = 'Loading more…',\n meta,\n}: BackofficeLoadMoreProps): JSX.Element => {\n let statusLabel = endLabel;\n if (hasNextPage) {\n statusLabel = loadMoreLabel;\n }\n if (isLoading) {\n statusLabel = loadingLabel;\n }\n\n let spinnerNode: JSX.Element | null = null;\n if (isLoading) {\n spinnerNode = <Spinner size={16} />;\n }\n\n return (\n <div className={styles.container}>\n <div className={styles.left}>\n {spinnerNode}\n <span className={styles.meta}>{statusLabel}</span>\n {meta}\n </div>\n </div>\n );\n};\n\nexport default BackofficeLoadMore;\n"],"mappings":";;;;AAcA,IAAa,KAAsB,EACjC,gBACA,cACA,mBAAgB,0BAChB,cAAW,kBACX,kBAAe,iBACf,MAAA,QAC0C;CAC1C,IAAI,IAAc;AAIlB,CAHI,MACF,IAAc,IAEZ,MACF,IAAc;CAGhB,IAAI,IAAkC;AAKtC,QAJI,MACF,IAAc,kBAAC,GAAD,EAAS,MAAM,IAAM,CAAA,GAInC,kBAAC,OAAD;EAAK,WAAW;YACd,kBAAC,OAAD;GAAK,WAAW;aAAhB;IACG;IACD,kBAAC,QAAD;KAAM,WAAW;eAAc;KAAmB,CAAA;IACjD;IACG;;EACF,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
//#region src/backoffice/molecules/backoffice_load_more/backofficeLoadMore.css.ts
|
|
4
|
+
var e = "_1pc2pbg0 txvbqbnvf txvbqboio txvbqbp5o txvbqblxf txvbqb9io txvbqbco txvbqbdoo txvbqbaof txvbqb12f txvbqb4ro txvbqb1qf txvbqb2cx txvbqbuzn", t = "_1pc2pbg1 txvbqb9jf txvbqbco txvbqbao6 txvbqbk4x", n = "_1pc2pbg2 txvbqb8x txvbqbv8r txvbqbl6f txvbqbt6f txvbqbuw6";
|
|
5
|
+
//#endregion
|
|
6
|
+
export { e as container, t as left, n as meta };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=backofficeLoadMore.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backofficeLoadMore.css.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_load_more/backofficeLoadMore.css.ts"],"sourcesContent":["import { sprinkles } from '@plumile/ui/theme/sprinkles.css.js';\n\nexport const container = sprinkles({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n gap: 3,\n paddingY: 3,\n paddingX: 4,\n borderWidth: 0,\n borderTopWidth: 'default',\n borderStyle: 'solid',\n borderTopColor: 'borderLight',\n backgroundColor: 'white',\n});\n\nexport const left = sprinkles({\n display: 'inline-flex',\n alignItems: 'center',\n gap: 2,\n minWidth: 0,\n});\n\nexport const meta = sprinkles({\n fontSize: 'sm',\n color: 'textSecondary',\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n});\n"],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { cx as e } from "../../../theme/tools.js";
|
|
2
|
+
import { container as t, left as n, title as r, titleRow as i } from "./backofficePageHeader.css.js";
|
|
3
|
+
import "../../../index.js";
|
|
4
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
5
|
+
//#region src/backoffice/molecules/backoffice_page_header/BackofficePageHeader.tsx
|
|
6
|
+
var s = ({ title: s, subtitle: c, actions: l, meta: u, className: d }) => /* @__PURE__ */ o("div", {
|
|
7
|
+
className: e(t, d),
|
|
8
|
+
children: [/* @__PURE__ */ o("div", {
|
|
9
|
+
className: n,
|
|
10
|
+
children: [/* @__PURE__ */ o("div", {
|
|
11
|
+
className: i,
|
|
12
|
+
children: [/* @__PURE__ */ a("h1", {
|
|
13
|
+
className: r,
|
|
14
|
+
children: s
|
|
15
|
+
}), u != null && /* @__PURE__ */ a("div", {
|
|
16
|
+
className: "_1puq2a85",
|
|
17
|
+
children: u
|
|
18
|
+
})]
|
|
19
|
+
}), c != null && (typeof c != "string" || c.trim() !== "") && /* @__PURE__ */ a("p", {
|
|
20
|
+
className: "_1puq2a84",
|
|
21
|
+
children: c
|
|
22
|
+
})]
|
|
23
|
+
}), l != null && /* @__PURE__ */ a("div", {
|
|
24
|
+
className: "_1puq2a86",
|
|
25
|
+
children: l
|
|
26
|
+
})]
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
export { s as BackofficePageHeader, s as default };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=BackofficePageHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackofficePageHeader.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_page_header/BackofficePageHeader.tsx"],"sourcesContent":["import { type JSX, type ReactNode } from 'react';\n\nimport { cx } from '@plumile/ui';\n\nimport * as styles from './backofficePageHeader.css.js';\n\nexport type BackofficePageHeaderProps = {\n title: string;\n subtitle?: ReactNode;\n actions?: ReactNode;\n meta?: ReactNode;\n className?: string;\n};\n\nexport const BackofficePageHeader = ({\n title,\n subtitle,\n actions,\n meta,\n className,\n}: BackofficePageHeaderProps): JSX.Element => {\n return (\n <div className={cx(styles.container, className)}>\n <div className={styles.left}>\n <div className={styles.titleRow}>\n <h1 className={styles.title}>{title}</h1>\n {meta != null && <div className={styles.metaRow}>{meta}</div>}\n </div>\n {subtitle != null &&\n (typeof subtitle !== 'string' || subtitle.trim() !== '') && (\n <p className={styles.subtitle}>{subtitle}</p>\n )}\n </div>\n {actions != null && <div className={styles.actions}>{actions}</div>}\n </div>\n );\n};\n\nexport default BackofficePageHeader;\n"],"mappings":";;;;;AAcA,IAAa,KAAwB,EACnC,OAAA,GACA,UAAA,GACA,SAAA,GACA,SACA,mBAGE,kBAAC,OAAD;CAAK,WAAW,EAAG,GAAkB,EAAU;WAA/C,CACE,kBAAC,OAAD;EAAK,WAAW;YAAhB,CACE,kBAAC,OAAD;GAAK,WAAW;aAAhB,CACE,kBAAC,MAAD;IAAI,WAAW;cAAe;IAAW,CAAA,EACxC,KAAQ,QAAQ,kBAAC,OAAD;IAAK,WAAW;cAAiB;IAAW,CAAA,CACzD;MACL,KAAY,SACV,OAAO,KAAa,YAAY,EAAS,MAAM,KAAK,OACnD,kBAAC,KAAD;GAAG,WAAW;aAAkB;GAAa,CAAA,CAE7C;KACL,KAAW,QAAQ,kBAAC,OAAD;EAAK,WAAW;YAAiB;EAAc,CAAA,CAC/D"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
//#region src/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.ts
|
|
3
|
+
var e = "_1puq2a80", t = "_1puq2a81", n = "_1puq2a82", r = "_1puq2a83", i = "_1puq2a84", a = "_1puq2a85", o = "_1puq2a86";
|
|
4
|
+
//#endregion
|
|
5
|
+
export { o as actions, e as container, t as left, a as metaRow, i as subtitle, r as title, n as titleRow };
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=backofficePageHeader.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backofficePageHeader.css.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_page_header/backofficePageHeader.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\n\nimport { vars } from '@plumile/ui/theme/themeContract.js';\n\nexport const container = style({\n display: 'flex',\n alignItems: 'flex-start',\n justifyContent: 'space-between',\n gap: vars.spacing[4],\n flexWrap: 'wrap',\n});\n\nexport const left = style({\n display: 'flex',\n flexDirection: 'column',\n gap: vars.spacing[2],\n minWidth: 0,\n flex: 1,\n});\n\nexport const titleRow = style({\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing[2],\n flexWrap: 'wrap',\n});\n\nexport const title = style({\n fontSize: vars.fontSize['2xl'],\n lineHeight: vars.lineHeight['2xl'],\n fontWeight: vars.fontWeight.semibold,\n color: vars.colors.text,\n margin: 0,\n});\n\nexport const subtitle = style({\n margin: 0,\n fontSize: vars.fontSize.base,\n lineHeight: vars.lineHeight.base,\n color: vars.colors.textSecondary,\n});\n\nexport const metaRow = style({\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing[2],\n flexWrap: 'wrap',\n});\n\nexport const actions = style({\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing[2],\n flexWrap: 'wrap',\n});\n"],"mappings":""}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { cx as e } from "../../../theme/tools.js";
|
|
2
|
+
import { Button as t } from "../../../atomic/atoms/button/Button.js";
|
|
3
|
+
import { container as n, triggerIcon as r, triggerIconOpen as i } from "./backofficeRelationsMenu.css.js";
|
|
4
|
+
import { ChevronDownIcon as a } from "../../../svg/ChevronDownIcon.js";
|
|
5
|
+
import "../../../index.js";
|
|
6
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
|
+
import { useEffect as c, useRef as l, useState as u } from "react";
|
|
8
|
+
import { Link as d } from "@plumile/router";
|
|
9
|
+
//#region src/backoffice/molecules/backoffice_relations_menu/BackofficeRelationsMenu.tsx
|
|
10
|
+
var f = ({ label: f = "Relations", items: p }) => {
|
|
11
|
+
let [m, h] = u(!1), g = l(null);
|
|
12
|
+
return c(() => {
|
|
13
|
+
if (!m) return;
|
|
14
|
+
let e = (e) => {
|
|
15
|
+
e.target instanceof Node && (g.current?.contains(e.target) || h(!1));
|
|
16
|
+
};
|
|
17
|
+
return document.addEventListener("pointerdown", e), () => {
|
|
18
|
+
document.removeEventListener("pointerdown", e);
|
|
19
|
+
};
|
|
20
|
+
}, [m]), p.length === 0 ? /* @__PURE__ */ o(t, {
|
|
21
|
+
type: "button",
|
|
22
|
+
variant: "secondary",
|
|
23
|
+
size: "small",
|
|
24
|
+
disabled: !0,
|
|
25
|
+
children: f
|
|
26
|
+
}) : /* @__PURE__ */ s("div", {
|
|
27
|
+
className: n,
|
|
28
|
+
ref: g,
|
|
29
|
+
children: [/* @__PURE__ */ s(t, {
|
|
30
|
+
type: "button",
|
|
31
|
+
variant: "secondary",
|
|
32
|
+
size: "small",
|
|
33
|
+
onClick: () => {
|
|
34
|
+
h((e) => !e);
|
|
35
|
+
},
|
|
36
|
+
"aria-expanded": m,
|
|
37
|
+
"aria-haspopup": "menu",
|
|
38
|
+
children: [f, /* @__PURE__ */ o(a, {
|
|
39
|
+
size: 14,
|
|
40
|
+
className: e(r, { [i]: m })
|
|
41
|
+
})]
|
|
42
|
+
}), m && /* @__PURE__ */ o("div", {
|
|
43
|
+
className: "_16f61fj3",
|
|
44
|
+
role: "menu",
|
|
45
|
+
children: p.map((e) => {
|
|
46
|
+
let t = null;
|
|
47
|
+
return typeof e.count == "number" && (t = e.count), /* @__PURE__ */ s(d, {
|
|
48
|
+
to: e.href,
|
|
49
|
+
className: "_16f61fj4",
|
|
50
|
+
onClick: (t) => {
|
|
51
|
+
h(!1), (e.onClick?.(t))?.catch(() => {});
|
|
52
|
+
},
|
|
53
|
+
children: [/* @__PURE__ */ o("span", {
|
|
54
|
+
className: "_16f61fj5",
|
|
55
|
+
children: e.label
|
|
56
|
+
}), t != null && /* @__PURE__ */ o("span", {
|
|
57
|
+
className: "_16f61fj6",
|
|
58
|
+
children: t
|
|
59
|
+
})]
|
|
60
|
+
}, e.id);
|
|
61
|
+
})
|
|
62
|
+
})]
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
//#endregion
|
|
66
|
+
export { f as BackofficeRelationsMenu, f as default };
|
|
67
|
+
|
|
68
|
+
//# sourceMappingURL=BackofficeRelationsMenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackofficeRelationsMenu.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_relations_menu/BackofficeRelationsMenu.tsx"],"sourcesContent":["import {\n type JSX,\n type MouseEvent as ReactMouseEvent,\n useEffect,\n useRef,\n useState,\n} from 'react';\nimport { Link } from '@plumile/router';\n\nimport { Button, ChevronDownIcon, cx } from '@plumile/ui';\n\nimport * as styles from './backofficeRelationsMenu.css.js';\n\nexport type BackofficeRelationsMenuItem = {\n id: string;\n label: string;\n count?: number | null;\n href: string;\n onClick?: (event: ReactMouseEvent<HTMLAnchorElement>) => void | Promise<void>;\n};\n\nexport type BackofficeRelationsMenuProps = {\n label?: string;\n items: readonly BackofficeRelationsMenuItem[];\n};\n\nexport const BackofficeRelationsMenu = ({\n label = 'Relations',\n items,\n}: BackofficeRelationsMenuProps): JSX.Element => {\n const [isOpen, setIsOpen] = useState(false);\n const containerRef = useRef<HTMLDivElement | null>(null);\n\n useEffect(() => {\n if (!isOpen) {\n return undefined;\n }\n\n const handleClick = (event: PointerEvent) => {\n if (!(event.target instanceof Node)) {\n return;\n }\n if (containerRef.current?.contains(event.target)) {\n return;\n }\n setIsOpen(false);\n };\n\n document.addEventListener('pointerdown', handleClick);\n return () => {\n document.removeEventListener('pointerdown', handleClick);\n };\n }, [isOpen]);\n\n if (items.length === 0) {\n return (\n <Button type=\"button\" variant=\"secondary\" size=\"small\" disabled>\n {label}\n </Button>\n );\n }\n\n return (\n <div className={styles.container} ref={containerRef}>\n <Button\n type=\"button\"\n variant=\"secondary\"\n size=\"small\"\n onClick={() => {\n setIsOpen((prev) => {\n return !prev;\n });\n }}\n aria-expanded={isOpen}\n aria-haspopup=\"menu\"\n >\n {label}\n <ChevronDownIcon\n size={14}\n className={cx(styles.triggerIcon, {\n [styles.triggerIconOpen]: isOpen,\n })}\n />\n </Button>\n\n {isOpen && (\n <div className={styles.menu} role=\"menu\">\n {items.map((item) => {\n let countValue: number | null = null;\n if (typeof item.count === 'number') {\n countValue = item.count;\n }\n return (\n <Link\n key={item.id}\n to={item.href}\n className={styles.menuItem}\n onClick={(event: ReactMouseEvent<HTMLAnchorElement>) => {\n setIsOpen(false);\n const result = item.onClick?.(event);\n if (result != null) {\n result.catch(() => {});\n }\n }}\n >\n <span className={styles.itemLabel}>{item.label}</span>\n {countValue != null && (\n <span className={styles.count}>{countValue}</span>\n )}\n </Link>\n );\n })}\n </div>\n )}\n </div>\n );\n};\n\nexport default BackofficeRelationsMenu;\n"],"mappings":";;;;;;;;;AA0BA,IAAa,KAA2B,EACtC,WAAQ,aACR,eAC+C;CAC/C,IAAM,CAAC,GAAQ,KAAa,EAAS,GAAM,EACrC,IAAe,EAA8B,KAAK;AA+BxD,QA7BA,QAAgB;AACd,MAAI,CAAC,EACH;EAGF,IAAM,KAAe,MAAwB;AACrC,KAAM,kBAAkB,SAG1B,EAAa,SAAS,SAAS,EAAM,OAAO,IAGhD,EAAU,GAAM;;AAIlB,SADA,SAAS,iBAAiB,eAAe,EAAY,QACxC;AACX,YAAS,oBAAoB,eAAe,EAAY;;IAEzD,CAAC,EAAO,CAAC,EAER,EAAM,WAAW,IAEjB,kBAAC,GAAD;EAAQ,MAAK;EAAS,SAAQ;EAAY,MAAK;EAAQ,UAAA;YACpD;EACM,CAAA,GAKX,kBAAC,OAAD;EAAK,WAAW;EAAkB,KAAK;YAAvC,CACE,kBAAC,GAAD;GACE,MAAK;GACL,SAAQ;GACR,MAAK;GACL,eAAe;AACb,OAAW,MACF,CAAC,EACR;;GAEJ,iBAAe;GACf,iBAAc;aAVhB,CAYG,GACD,kBAAC,GAAD;IACE,MAAM;IACN,WAAW,EAAG,GAAoB,GAC/B,IAAyB,GAC3B,CAAC;IACF,CAAA,CACK;MAER,KACC,kBAAC,OAAD;GAAK,WAAW;GAAa,MAAK;aAC/B,EAAM,KAAK,MAAS;IACnB,IAAI,IAA4B;AAIhC,WAHI,OAAO,EAAK,SAAU,aACxB,IAAa,EAAK,QAGlB,kBAAC,GAAD;KAEE,IAAI,EAAK;KACT,WAAW;KACX,UAAU,MAA8C;AAGtD,MAFA,EAAU,GAAM,GACD,EAAK,UAAU,EAAM,GAE3B,YAAY,GAAG;;eAR5B,CAYE,kBAAC,QAAD;MAAM,WAAW;gBAAmB,EAAK;MAAa,CAAA,EACrD,KAAc,QACb,kBAAC,QAAD;MAAM,WAAW;gBAAe;MAAkB,CAAA,CAE/C;OAfA,EAAK,GAeL;KAET;GACE,CAAA,CAEJ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
//#region src/backoffice/molecules/backoffice_relations_menu/backofficeRelationsMenu.css.ts
|
|
3
|
+
var e = "_16f61fj0", t = "_16f61fj1", n = "_16f61fj2", r = "_16f61fj3", i = "_16f61fj4", a = "_16f61fj5", o = "_16f61fj6";
|
|
4
|
+
//#endregion
|
|
5
|
+
export { e as container, o as count, a as itemLabel, r as menu, i as menuItem, t as triggerIcon, n as triggerIconOpen };
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=backofficeRelationsMenu.css.js.map
|
package/lib/esm/backoffice/molecules/backoffice_relations_menu/backofficeRelationsMenu.css.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backofficeRelationsMenu.css.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_relations_menu/backofficeRelationsMenu.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\n\nimport { vars } from '@plumile/ui/theme/themeContract.js';\n\nexport const container = style({\n position: 'relative',\n display: 'inline-flex',\n});\n\nexport const triggerIcon = style({\n transitionProperty: 'transform',\n transitionDuration: vars.transitionDuration[150],\n transitionTimingFunction: vars.transitionTimingFunction.ease,\n});\n\nexport const triggerIconOpen = style({\n transform: 'rotate(180deg)',\n});\n\nexport const menu = style({\n position: 'absolute',\n right: 0,\n top: vars.spacing.full,\n marginTop: vars.spacing[2],\n minWidth: vars.spacing[64],\n backgroundColor: vars.colors.surface,\n borderWidth: vars.borderWidth.default,\n borderStyle: 'solid',\n borderColor: vars.colors.borderSubtle,\n borderRadius: vars.borderRadius.lg,\n boxShadow: vars.boxShadow.md,\n padding: vars.spacing[2],\n display: 'flex',\n flexDirection: 'column',\n gap: vars.spacing[1],\n zIndex: vars.zIndex[20],\n});\n\nexport const menuItem = style([\n {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n gap: vars.spacing[2],\n paddingTop: vars.spacing[2],\n paddingBottom: vars.spacing[2],\n paddingLeft: vars.spacing[3],\n paddingRight: vars.spacing[3],\n borderRadius: vars.borderRadius.md,\n color: vars.colors.text,\n textDecoration: 'none',\n fontSize: vars.fontSize.sm,\n lineHeight: vars.lineHeight.sm,\n },\n {\n selectors: {\n '&:hover': {\n backgroundColor: vars.colors.surfaceSecondary,\n },\n },\n },\n]);\n\nexport const itemLabel = style({\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing[2],\n});\n\nexport const count = style({\n fontSize: vars.fontSize.xs,\n lineHeight: vars.lineHeight.xs,\n color: vars.colors.textMuted,\n});\n"],"mappings":""}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Skeleton as e } from "../../atoms/skeleton/Skeleton.js";
|
|
2
|
+
import { body as t, cell as n, container as r, header as i, headerCell as a, row as o } from "./backofficeTableSkeleton.css.js";
|
|
3
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
4
|
+
//#region src/backoffice/molecules/backoffice_table_skeleton/BackofficeTableSkeleton.tsx
|
|
5
|
+
var l = ({ rows: l = 6, columns: u = 4 }) => {
|
|
6
|
+
let d = Array.from({ length: u }, (t, n) => /* @__PURE__ */ s("div", {
|
|
7
|
+
className: a,
|
|
8
|
+
children: /* @__PURE__ */ s(e, {
|
|
9
|
+
variant: "text",
|
|
10
|
+
width: "70%"
|
|
11
|
+
})
|
|
12
|
+
}, `header-${n}`)), f = Array.from({ length: l }, (t, r) => /* @__PURE__ */ s("div", {
|
|
13
|
+
className: o,
|
|
14
|
+
children: Array.from({ length: u }, (t, i) => /* @__PURE__ */ s("div", {
|
|
15
|
+
className: n,
|
|
16
|
+
children: /* @__PURE__ */ s(e, {
|
|
17
|
+
variant: "text",
|
|
18
|
+
width: "80%"
|
|
19
|
+
})
|
|
20
|
+
}, `cell-${r}-${i}`))
|
|
21
|
+
}, `row-${r}`));
|
|
22
|
+
return /* @__PURE__ */ c("div", {
|
|
23
|
+
className: r,
|
|
24
|
+
"aria-hidden": "true",
|
|
25
|
+
children: [/* @__PURE__ */ s("div", {
|
|
26
|
+
className: i,
|
|
27
|
+
children: d
|
|
28
|
+
}), /* @__PURE__ */ s("div", {
|
|
29
|
+
className: t,
|
|
30
|
+
children: f
|
|
31
|
+
})]
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
//#endregion
|
|
35
|
+
export { l as BackofficeTableSkeleton, l as default };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=BackofficeTableSkeleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackofficeTableSkeleton.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_table_skeleton/BackofficeTableSkeleton.tsx"],"sourcesContent":["import { type JSX } from 'react';\n\nimport { Skeleton } from '../../atoms/skeleton/Skeleton.js';\nimport * as styles from './backofficeTableSkeleton.css.js';\n\nexport type BackofficeTableSkeletonProps = {\n rows?: number;\n columns?: number;\n};\n\nexport const BackofficeTableSkeleton = ({\n rows = 6,\n columns = 4,\n}: BackofficeTableSkeletonProps): JSX.Element => {\n const headerCells = Array.from({ length: columns }, (_, index) => {\n return (\n <div key={`header-${index}`} className={styles.headerCell}>\n <Skeleton variant=\"text\" width=\"70%\" />\n </div>\n );\n });\n\n const bodyRows = Array.from({ length: rows }, (_, rowIndex) => {\n return (\n <div key={`row-${rowIndex}`} className={styles.row}>\n {Array.from({ length: columns }, (_, colIndex) => {\n return (\n <div key={`cell-${rowIndex}-${colIndex}`} className={styles.cell}>\n <Skeleton variant=\"text\" width=\"80%\" />\n </div>\n );\n })}\n </div>\n );\n });\n\n return (\n <div className={styles.container} aria-hidden=\"true\">\n <div className={styles.header}>{headerCells}</div>\n <div className={styles.body}>{bodyRows}</div>\n </div>\n );\n};\n\nexport default BackofficeTableSkeleton;\n"],"mappings":";;;;AAUA,IAAa,KAA2B,EACtC,UAAO,GACP,aAAU,QACqC;CAC/C,IAAM,IAAc,MAAM,KAAK,EAAE,QAAQ,GAAS,GAAG,GAAG,MAEpD,kBAAC,OAAD;EAA6B,WAAW;YACtC,kBAAC,GAAD;GAAU,SAAQ;GAAO,OAAM;GAAQ,CAAA;EACnC,EAFI,UAAU,IAEd,CAER,EAEI,IAAW,MAAM,KAAK,EAAE,QAAQ,GAAM,GAAG,GAAG,MAE9C,kBAAC,OAAD;EAA6B,WAAW;YACrC,MAAM,KAAK,EAAE,QAAQ,GAAS,GAAG,GAAG,MAEjC,kBAAC,OAAD;GAA0C,WAAW;aACnD,kBAAC,GAAD;IAAU,SAAQ;IAAO,OAAM;IAAQ,CAAA;GACnC,EAFI,QAAQ,EAAS,GAAG,IAExB,CAER;EACE,EARI,OAAO,IAQX,CAER;AAEF,QACE,kBAAC,OAAD;EAAK,WAAW;EAAkB,eAAY;YAA9C,CACE,kBAAC,OAAD;GAAK,WAAW;aAAgB;GAAkB,CAAA,EAClD,kBAAC,OAAD;GAAK,WAAW;aAAc;GAAe,CAAA,CACzC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
//#region src/backoffice/molecules/backoffice_table_skeleton/backofficeTableSkeleton.css.ts
|
|
4
|
+
var e = "_597for0 txvbqb9io txvbqbai6 txvbqb1ro txvbqb1co txvbqb1qf txvbqbwo txvbqbl6f", t = "_597for1 txvbqb9ix txvbqbbyx txvbqbao6 txvbqbla6 txvbqbv2t txvbqb12f txvbqb1qf txvbqb62o txvbqb3nx", n = "_597for2 txvbqb9io txvbqbco", r = "_597for3 txvbqb9io txvbqbai6 txvbqbao6 txvbqbla6", i = "_597for4 txvbqb9ix txvbqbbyx txvbqbao6", a = "_597for5 txvbqb9io txvbqbco";
|
|
5
|
+
//#endregion
|
|
6
|
+
export { r as body, a as cell, e as container, t as header, n as headerCell, i as row };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=backofficeTableSkeleton.css.js.map
|
package/lib/esm/backoffice/molecules/backoffice_table_skeleton/backofficeTableSkeleton.css.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backofficeTableSkeleton.css.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_table_skeleton/backofficeTableSkeleton.css.ts"],"sourcesContent":["import { sprinkles } from '@plumile/ui/theme/sprinkles.css.js';\n\nexport const container = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n borderRadius: 'lg',\n borderWidth: 'default',\n borderStyle: 'solid',\n borderColor: 'borderSubtle',\n overflow: 'hidden',\n});\n\nexport const header = sprinkles({\n display: 'grid',\n gridTemplateColumns: 'autoFitMinmax0',\n gap: 2,\n padding: 3,\n backgroundColor: 'surfaceSecondary',\n borderWidth: 0,\n borderStyle: 'solid',\n borderBottomWidth: 'default',\n borderBottomColor: 'borderSubtle',\n});\n\nexport const headerCell = sprinkles({\n display: 'flex',\n alignItems: 'center',\n});\n\nexport const body = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 2,\n padding: 3,\n});\n\nexport const row = sprinkles({\n display: 'grid',\n gridTemplateColumns: 'autoFitMinmax0',\n gap: 2,\n});\n\nexport const cell = sprinkles({\n display: 'flex',\n alignItems: 'center',\n});\n"],"mappings":""}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { cx as e } from "../../../theme/tools.js";
|
|
2
|
+
import { container as t } from "./backofficeTableToolbar.css.js";
|
|
3
|
+
import "../../../index.js";
|
|
4
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
|
+
//#region src/backoffice/molecules/backoffice_table_toolbar/BackofficeTableToolbar.tsx
|
|
6
|
+
var i = ({ searchSlot: i, filtersSlot: a, sortSlot: o, refreshSlot: s, ctaSlot: c, chipsSlot: l, className: u }) => {
|
|
7
|
+
let d = i != null || a != null || o != null || s != null || c != null, f = l != null;
|
|
8
|
+
return !d && !f ? null : /* @__PURE__ */ r("div", {
|
|
9
|
+
className: e(t, u),
|
|
10
|
+
children: [d && /* @__PURE__ */ r("div", {
|
|
11
|
+
className: "p4hwvs1",
|
|
12
|
+
children: [/* @__PURE__ */ r("div", {
|
|
13
|
+
className: "p4hwvs2",
|
|
14
|
+
children: [
|
|
15
|
+
i,
|
|
16
|
+
a,
|
|
17
|
+
o
|
|
18
|
+
]
|
|
19
|
+
}), /* @__PURE__ */ r("div", {
|
|
20
|
+
className: "p4hwvs3",
|
|
21
|
+
children: [s, c]
|
|
22
|
+
})]
|
|
23
|
+
}), f && /* @__PURE__ */ n("div", {
|
|
24
|
+
className: "p4hwvs4",
|
|
25
|
+
children: l
|
|
26
|
+
})]
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { i as BackofficeTableToolbar, i as default };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=BackofficeTableToolbar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackofficeTableToolbar.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_table_toolbar/BackofficeTableToolbar.tsx"],"sourcesContent":["import { type JSX, type ReactNode } from 'react';\n\nimport { cx } from '@plumile/ui';\n\nimport * as styles from './backofficeTableToolbar.css.js';\n\nexport type BackofficeTableToolbarProps = {\n searchSlot?: ReactNode;\n filtersSlot?: ReactNode;\n sortSlot?: ReactNode;\n refreshSlot?: ReactNode;\n ctaSlot?: ReactNode;\n chipsSlot?: ReactNode;\n className?: string;\n};\n\nexport const BackofficeTableToolbar = ({\n searchSlot,\n filtersSlot,\n sortSlot,\n refreshSlot,\n ctaSlot,\n chipsSlot,\n className,\n}: BackofficeTableToolbarProps): JSX.Element | null => {\n const showTop =\n searchSlot != null ||\n filtersSlot != null ||\n sortSlot != null ||\n refreshSlot != null ||\n ctaSlot != null;\n\n const showChips = chipsSlot != null;\n\n if (!showTop && !showChips) {\n return null;\n }\n\n return (\n <div className={cx(styles.container, className)}>\n {showTop && (\n <div className={styles.topRow}>\n <div className={styles.left}>\n {searchSlot}\n {filtersSlot}\n {sortSlot}\n </div>\n <div className={styles.right}>\n {refreshSlot}\n {ctaSlot}\n </div>\n </div>\n )}\n {showChips && <div className={styles.chipsRow}>{chipsSlot}</div>}\n </div>\n );\n};\n\nexport default BackofficeTableToolbar;\n"],"mappings":";;;;;AAgBA,IAAa,KAA0B,EACrC,eACA,gBACA,aACA,gBACA,YACA,cACA,mBACqD;CACrD,IAAM,IACJ,KAAc,QACd,KAAe,QACf,KAAY,QACZ,KAAe,QACf,KAAW,MAEP,IAAY,KAAa;AAM/B,QAJI,CAAC,KAAW,CAAC,IACR,OAIP,kBAAC,OAAD;EAAK,WAAW,EAAG,GAAkB,EAAU;YAA/C,CACG,KACC,kBAAC,OAAD;GAAK,WAAW;aAAhB,CACE,kBAAC,OAAD;IAAK,WAAW;cAAhB;KACG;KACA;KACA;KACG;OACN,kBAAC,OAAD;IAAK,WAAW;cAAhB,CACG,GACA,EACG;MACF;MAEP,KAAa,kBAAC,OAAD;GAAK,WAAW;aAAkB;GAAgB,CAAA,CAC5D"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
//#region src/backoffice/molecules/backoffice_table_toolbar/backofficeTableToolbar.css.ts
|
|
3
|
+
var e = "p4hwvs0", t = "p4hwvs1", n = "p4hwvs2", r = "p4hwvs3", i = "p4hwvs4";
|
|
4
|
+
//#endregion
|
|
5
|
+
export { i as chipsRow, e as container, n as left, r as right, t as topRow };
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=backofficeTableToolbar.css.js.map
|
package/lib/esm/backoffice/molecules/backoffice_table_toolbar/backofficeTableToolbar.css.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backofficeTableToolbar.css.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_table_toolbar/backofficeTableToolbar.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\n\nimport { vars } from '@plumile/ui/theme/themeContract.js';\nimport { screens } from '@plumile/ui/theme/common.js';\n\nexport const container = style({\n display: 'flex',\n flexDirection: 'column',\n gap: vars.spacing[3],\n width: '100%',\n});\n\nexport const topRow = style({\n display: 'flex',\n justifyContent: 'space-between',\n gap: vars.spacing[3],\n flexWrap: 'wrap',\n alignItems: 'center',\n '@media': {\n [screens.sm]: {\n alignItems: 'stretch',\n flexDirection: 'column',\n },\n },\n});\n\nexport const left = style({\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing[2],\n flexWrap: 'wrap',\n minWidth: 0,\n flex: 1,\n});\n\nexport const right = style({\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing[2],\n flexWrap: 'wrap',\n});\n\nexport const chipsRow = style({\n display: 'flex',\n alignItems: 'center',\n flexWrap: 'wrap',\n gap: vars.spacing[2],\n paddingTop: vars.spacing[2],\n borderTopWidth: vars.borderWidth.px,\n borderTopStyle: 'solid',\n borderTopColor: vars.colors.borderSubtle,\n});\n"],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { cx as e } from "../../../theme/tools.js";
|
|
2
|
+
import { active as t, tab as n, tabs as r } from "./backofficeTabs.css.js";
|
|
3
|
+
import "../../../index.js";
|
|
4
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
5
|
+
import { Link as a } from "@plumile/router";
|
|
6
|
+
//#region src/backoffice/molecules/backoffice_tabs/BackofficeTabs.tsx
|
|
7
|
+
var o = ({ items: o, activeId: s, onChange: c, className: l }) => o.length === 0 ? null : /* @__PURE__ */ i("div", {
|
|
8
|
+
className: e(r, l),
|
|
9
|
+
role: "tablist",
|
|
10
|
+
children: o.map((r) => {
|
|
11
|
+
let o = r.id === s, l = e(n, { [t]: o });
|
|
12
|
+
return r.to == null ? /* @__PURE__ */ i("button", {
|
|
13
|
+
type: "button",
|
|
14
|
+
role: "tab",
|
|
15
|
+
"aria-selected": o,
|
|
16
|
+
className: l,
|
|
17
|
+
onClick: () => {
|
|
18
|
+
c(r.id);
|
|
19
|
+
},
|
|
20
|
+
children: r.label
|
|
21
|
+
}, r.id) : /* @__PURE__ */ i(a, {
|
|
22
|
+
to: r.to,
|
|
23
|
+
className: l,
|
|
24
|
+
children: r.label
|
|
25
|
+
}, r.id);
|
|
26
|
+
})
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
export { o as BackofficeTabs, o as default };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=BackofficeTabs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackofficeTabs.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_tabs/BackofficeTabs.tsx"],"sourcesContent":["import { Link } from '@plumile/router';\nimport { type ComponentPropsWithoutRef, type JSX, type ReactNode } from 'react';\n\nimport * as styles from './backofficeTabs.css.js';\nimport { cx } from '@plumile/ui';\n\nexport type BackofficeTabItem = {\n id: string;\n label: ReactNode;\n to?: ComponentPropsWithoutRef<typeof Link>['to'];\n};\n\nexport type BackofficeTabsProps = {\n items: readonly BackofficeTabItem[];\n activeId: string;\n onChange: (id: string) => void;\n className?: string;\n};\n\nexport const BackofficeTabs = ({\n items,\n activeId,\n onChange,\n className,\n}: BackofficeTabsProps): JSX.Element | null => {\n if (items.length === 0) {\n return null;\n }\n\n return (\n <div className={cx(styles.tabs, className)} role=\"tablist\">\n {items.map((tab) => {\n const isActive = tab.id === activeId;\n const tabClassName = cx(styles.tab, { [styles.active]: isActive });\n if (tab.to != null) {\n return (\n <Link key={tab.id} to={tab.to} className={tabClassName}>\n {tab.label}\n </Link>\n );\n }\n return (\n <button\n key={tab.id}\n type=\"button\"\n role=\"tab\"\n aria-selected={isActive}\n className={tabClassName}\n onClick={() => {\n onChange(tab.id);\n }}\n >\n {tab.label}\n </button>\n );\n })}\n </div>\n );\n};\n\nexport default BackofficeTabs;\n"],"mappings":";;;;;;AAmBA,IAAa,KAAkB,EAC7B,UACA,aACA,aACA,mBAEI,EAAM,WAAW,IACZ,OAIP,kBAAC,OAAD;CAAK,WAAW,EAAG,GAAa,EAAU;CAAE,MAAK;WAC9C,EAAM,KAAK,MAAQ;EAClB,IAAM,IAAW,EAAI,OAAO,GACtB,IAAe,EAAG,GAAY,GAAG,IAAgB,GAAU,CAAC;AAQlE,SAPI,EAAI,MAAM,OAQZ,kBAAC,UAAD;GAEE,MAAK;GACL,MAAK;GACL,iBAAe;GACf,WAAW;GACX,eAAe;AACb,MAAS,EAAI,GAAG;;aAGjB,EAAI;GACE,EAVF,EAAI,GAUF,GAjBP,kBAAC,GAAD;GAAmB,IAAI,EAAI;GAAI,WAAW;aACvC,EAAI;GACA,EAFI,EAAI,GAER;GAiBX;CACE,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
//#region src/backoffice/molecules/backoffice_tabs/backofficeTabs.css.ts
|
|
4
|
+
var e = "_4p4jiq0 txvbqb9jf txvbqbajx txvbqbanx txvbqbl9o txvbqb1t6 txvbqbv2v txvbqb1co txvbqb1qf txvbqbwo", t = "_4p4jiq2 _4p4jiq1 txvbqbnv6 txvbqboif txvbqbpqx txvbqbmio txvbqb9jf txvbqbco txvbqb1t6 txvbqb8x txvbqbamf txvbqb1co txvbqb1qf txvbqbf6 txvbqbuzj txvbqbv8r txvbqbv", n = "_4p4jiq3 txvbqbv2r txvbqbwo txvbqbv8p txvbqb8pf";
|
|
5
|
+
//#endregion
|
|
6
|
+
export { n as active, t as tab, e as tabs };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=backofficeTabs.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backofficeTabs.css.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_tabs/backofficeTabs.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\n\nimport { vars } from '@plumile/ui/theme/themeContract.js';\nimport { sprinkles } from '@plumile/ui/theme/sprinkles.css.js';\n\nexport const tabs = sprinkles({\n display: 'inline-flex',\n flexWrap: 'wrap',\n gap: 1,\n padding: 1,\n borderRadius: 'full',\n backgroundColor: 'surfaceMuted',\n borderWidth: 'default',\n borderStyle: 'solid',\n borderColor: 'borderSubtle',\n});\n\nexport const tab = style([\n sprinkles({\n display: 'inline-flex',\n alignItems: 'center',\n paddingX: 3,\n paddingY: 1.5,\n borderRadius: 'full',\n fontSize: 'sm',\n fontWeight: 'medium',\n borderWidth: 'default',\n borderStyle: 'solid',\n borderColor: 'transparent',\n backgroundColor: 'transparent',\n color: 'textSecondary',\n cursor: 'pointer',\n }),\n {\n selectors: {\n '&:hover': {\n color: vars.colors.text,\n backgroundColor: vars.colors.surface,\n },\n '&:focus-visible': {\n outline: `2px solid ${vars.colors['blue-500']}`,\n outlineOffset: 2,\n },\n },\n },\n]);\n\nexport const active = sprinkles({\n backgroundColor: 'surface',\n borderColor: 'borderSubtle',\n color: 'text',\n boxShadow: 'sm',\n});\n"],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { cx as e } from "../../../theme/tools.js";
|
|
2
|
+
import { Button as t } from "../../../atomic/atoms/button/Button.js";
|
|
3
|
+
import { bar as n, left as r, right as i } from "./bulkActionsBar.css.js";
|
|
4
|
+
import "../../../index.js";
|
|
5
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
+
//#region src/backoffice/molecules/bulk_actions_bar/BulkActionsBar.tsx
|
|
7
|
+
var s = ({ selectedCount: s, label: c = (e) => `${e} selected`, actions: l, onClearSelection: u, clearLabel: d = "Clear", className: f }) => {
|
|
8
|
+
if (s <= 0) return null;
|
|
9
|
+
let p = null;
|
|
10
|
+
return u != null && (p = /* @__PURE__ */ a(t, {
|
|
11
|
+
type: "button",
|
|
12
|
+
variant: "secondary",
|
|
13
|
+
size: "small",
|
|
14
|
+
onClick: u,
|
|
15
|
+
children: d
|
|
16
|
+
})), /* @__PURE__ */ o("div", {
|
|
17
|
+
className: e(n, f),
|
|
18
|
+
role: "status",
|
|
19
|
+
children: [/* @__PURE__ */ a("div", {
|
|
20
|
+
className: r,
|
|
21
|
+
children: c(s)
|
|
22
|
+
}), /* @__PURE__ */ o("div", {
|
|
23
|
+
className: i,
|
|
24
|
+
children: [l, p]
|
|
25
|
+
})]
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { s as BulkActionsBar, s as default };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=BulkActionsBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BulkActionsBar.js","names":[],"sources":["../../../../../src/backoffice/molecules/bulk_actions_bar/BulkActionsBar.tsx"],"sourcesContent":["import { type JSX, type ReactNode } from 'react';\n\nimport { Button, cx } from '@plumile/ui';\n\nimport * as styles from './bulkActionsBar.css.js';\n\nexport type BulkActionsBarProps = {\n selectedCount: number;\n label?: (count: number) => ReactNode;\n actions?: ReactNode;\n onClearSelection?: () => void;\n clearLabel?: string;\n className?: string;\n};\n\nexport const BulkActionsBar = ({\n selectedCount,\n label = (count) => {\n return `${count} selected`;\n },\n actions,\n onClearSelection,\n clearLabel = 'Clear',\n className,\n}: BulkActionsBarProps): JSX.Element | null => {\n if (selectedCount <= 0) {\n return null;\n }\n\n let clearButtonNode: JSX.Element | null = null;\n if (onClearSelection != null) {\n clearButtonNode = (\n <Button\n type=\"button\"\n variant=\"secondary\"\n size=\"small\"\n onClick={onClearSelection}\n >\n {clearLabel}\n </Button>\n );\n }\n\n return (\n <div className={cx(styles.bar, className)} role=\"status\">\n <div className={styles.left}>{label(selectedCount)}</div>\n <div className={styles.right}>\n {actions}\n {clearButtonNode}\n </div>\n </div>\n );\n};\n\nexport default BulkActionsBar;\n"],"mappings":";;;;;;AAeA,IAAa,KAAkB,EAC7B,kBACA,YAAS,MACA,GAAG,EAAM,YAElB,YACA,qBACA,gBAAa,SACb,mBAC6C;AAC7C,KAAI,KAAiB,EACnB,QAAO;CAGT,IAAI,IAAsC;AAc1C,QAbI,KAAoB,SACtB,IACE,kBAAC,GAAD;EACE,MAAK;EACL,SAAQ;EACR,MAAK;EACL,SAAS;YAER;EACM,CAAA,GAKX,kBAAC,OAAD;EAAK,WAAW,EAAG,GAAY,EAAU;EAAE,MAAK;YAAhD,CACE,kBAAC,OAAD;GAAK,WAAW;aAAc,EAAM,EAAc;GAAO,CAAA,EACzD,kBAAC,OAAD;GAAK,WAAW;aAAhB,CACG,GACA,EACG;KACF"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
//#region src/backoffice/molecules/bulk_actions_bar/bulkActionsBar.css.ts
|
|
4
|
+
var e = "ndiqkc0 txvbqbnvf txvbqboio txvbqbp5o txvbqblxf txvbqb9io txvbqbco txvbqbdoo txvbqbaof txvbqb1ro txvbqb1co txvbqb1qf txvbqbwf", t = "ndiqkc1 txvbqb9jf txvbqbco txvbqbao6 txvbqb8x", n = "ndiqkc2 txvbqb9jf txvbqbco txvbqbao6";
|
|
5
|
+
//#endregion
|
|
6
|
+
export { e as bar, t as left, n as right };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=bulkActionsBar.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bulkActionsBar.css.js","names":[],"sources":["../../../../../src/backoffice/molecules/bulk_actions_bar/bulkActionsBar.css.ts"],"sourcesContent":["import { sprinkles } from '@plumile/ui/theme/sprinkles.css.js';\n\nexport const bar = sprinkles({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n gap: 3,\n paddingX: 4,\n paddingY: 3,\n borderRadius: 'lg',\n borderWidth: 'default',\n borderStyle: 'solid',\n borderColor: 'border',\n});\n\nexport const left = sprinkles({\n display: 'inline-flex',\n alignItems: 'center',\n gap: 2,\n fontSize: 'sm',\n});\n\nexport const right = sprinkles({\n display: 'inline-flex',\n alignItems: 'center',\n gap: 2,\n});\n"],"mappings":""}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Button as e } from "../../../atomic/atoms/button/Button.js";
|
|
2
|
+
import { ErrorMessage as t } from "../../../atomic/atoms/error_message/ErrorMessage.js";
|
|
3
|
+
import { Modal as n } from "../../../atomic/atoms/modal/Modal.js";
|
|
4
|
+
import { body as r, footer as i } from "./confirmDialog.css.js";
|
|
5
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
+
import { useCallback as s, useState as c } from "react";
|
|
7
|
+
//#region src/backoffice/molecules/confirm_dialog/ConfirmDialog.tsx
|
|
8
|
+
var l = ({ isOpen: l, title: u, children: d, confirmLabel: f = "Confirm", cancelLabel: p = "Cancel", confirmTone: m = "default", onClose: h, onConfirm: g, closeOnConfirm: _ = !0 }) => {
|
|
9
|
+
let [v, y] = c(!1), [b, x] = c(null), S = s(() => {
|
|
10
|
+
v || (x(null), h());
|
|
11
|
+
}, [v, h]), C = s(async () => {
|
|
12
|
+
if (!v) {
|
|
13
|
+
x(null), y(!0);
|
|
14
|
+
try {
|
|
15
|
+
await g(), _ && h();
|
|
16
|
+
} catch (e) {
|
|
17
|
+
let t = "An unexpected error occurred.";
|
|
18
|
+
e instanceof Error && (t = e.message), x(t);
|
|
19
|
+
} finally {
|
|
20
|
+
y(!1);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}, [
|
|
24
|
+
_,
|
|
25
|
+
v,
|
|
26
|
+
h,
|
|
27
|
+
g
|
|
28
|
+
]), w = "primary";
|
|
29
|
+
m === "danger" && (w = "danger");
|
|
30
|
+
let T = /* @__PURE__ */ o("div", {
|
|
31
|
+
className: i,
|
|
32
|
+
children: [/* @__PURE__ */ a(e, {
|
|
33
|
+
type: "button",
|
|
34
|
+
variant: "secondary",
|
|
35
|
+
onClick: S,
|
|
36
|
+
disabled: v,
|
|
37
|
+
children: p
|
|
38
|
+
}), /* @__PURE__ */ a(e, {
|
|
39
|
+
type: "button",
|
|
40
|
+
variant: w,
|
|
41
|
+
onClick: () => {
|
|
42
|
+
C().catch(() => {});
|
|
43
|
+
},
|
|
44
|
+
isLoading: v,
|
|
45
|
+
children: f
|
|
46
|
+
})]
|
|
47
|
+
}), E = null;
|
|
48
|
+
return b != null && (E = /* @__PURE__ */ a(t, { children: b })), /* @__PURE__ */ a(n, {
|
|
49
|
+
isOpen: l,
|
|
50
|
+
onClose: S,
|
|
51
|
+
title: u,
|
|
52
|
+
footer: T,
|
|
53
|
+
children: /* @__PURE__ */ o("div", {
|
|
54
|
+
className: r,
|
|
55
|
+
children: [E, d]
|
|
56
|
+
})
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
//#endregion
|
|
60
|
+
export { l as ConfirmDialog, l as default };
|
|
61
|
+
|
|
62
|
+
//# sourceMappingURL=ConfirmDialog.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConfirmDialog.js","names":[],"sources":["../../../../../src/backoffice/molecules/confirm_dialog/ConfirmDialog.tsx"],"sourcesContent":["import { useCallback, useState, type JSX, type ReactNode } from 'react';\n\nimport { Button } from '../../../atomic/atoms/button/Button.js';\nimport { ErrorMessage } from '../../../atomic/atoms/error_message/ErrorMessage.js';\nimport { Modal } from '../../../atomic/atoms/modal/Modal.js';\n\nimport * as styles from './confirmDialog.css.js';\n\nexport type ConfirmDialogProps = {\n isOpen: boolean;\n title: string;\n children: ReactNode;\n confirmLabel?: string;\n cancelLabel?: string;\n confirmTone?: 'default' | 'danger';\n onClose: () => void;\n onConfirm: () => Promise<void> | void;\n closeOnConfirm?: boolean;\n};\n\nexport const ConfirmDialog = ({\n isOpen,\n title,\n children,\n confirmLabel = 'Confirm',\n cancelLabel = 'Cancel',\n confirmTone = 'default',\n onClose,\n onConfirm,\n closeOnConfirm = true,\n}: ConfirmDialogProps): JSX.Element | null => {\n const [isConfirming, setIsConfirming] = useState(false);\n const [error, setError] = useState<string | null>(null);\n\n const handleClose = useCallback(() => {\n if (isConfirming) {\n return;\n }\n setError(null);\n onClose();\n }, [isConfirming, onClose]);\n\n const handleConfirm = useCallback(async () => {\n if (isConfirming) {\n return;\n }\n setError(null);\n setIsConfirming(true);\n try {\n await onConfirm();\n if (closeOnConfirm) {\n onClose();\n }\n } catch (err) {\n let message = 'An unexpected error occurred.';\n if (err instanceof Error) {\n message = err.message;\n }\n setError(message);\n } finally {\n setIsConfirming(false);\n }\n }, [closeOnConfirm, isConfirming, onClose, onConfirm]);\n\n let confirmVariant: 'primary' | 'danger' = 'primary';\n if (confirmTone === 'danger') {\n confirmVariant = 'danger';\n }\n\n const handleConfirmClick = () => {\n handleConfirm().catch(() => {});\n };\n\n const footer = (\n <div className={styles.footer}>\n <Button\n type=\"button\"\n variant=\"secondary\"\n onClick={handleClose}\n disabled={isConfirming}\n >\n {cancelLabel}\n </Button>\n <Button\n type=\"button\"\n variant={confirmVariant}\n onClick={handleConfirmClick}\n isLoading={isConfirming}\n >\n {confirmLabel}\n </Button>\n </div>\n );\n\n let errorNode: JSX.Element | null = null;\n if (error != null) {\n errorNode = <ErrorMessage>{error}</ErrorMessage>;\n }\n\n return (\n <Modal isOpen={isOpen} onClose={handleClose} title={title} footer={footer}>\n <div className={styles.body}>\n {errorNode}\n {children}\n </div>\n </Modal>\n );\n};\n\nexport default ConfirmDialog;\n"],"mappings":";;;;;;;AAoBA,IAAa,KAAiB,EAC5B,WACA,UACA,aACA,kBAAe,WACf,iBAAc,UACd,iBAAc,WACd,YACA,cACA,oBAAiB,SAC2B;CAC5C,IAAM,CAAC,GAAc,KAAmB,EAAS,GAAM,EACjD,CAAC,GAAO,KAAY,EAAwB,KAAK,EAEjD,IAAc,QAAkB;AAChC,QAGJ,EAAS,KAAK,EACd,GAAS;IACR,CAAC,GAAc,EAAQ,CAAC,EAErB,IAAgB,EAAY,YAAY;AACxC,UAIJ;GADA,EAAS,KAAK,EACd,EAAgB,GAAK;AACrB,OAAI;AAEF,IADA,MAAM,GAAW,EACb,KACF,GAAS;YAEJ,GAAK;IACZ,IAAI,IAAU;AAId,IAHI,aAAe,UACjB,IAAU,EAAI,UAEhB,EAAS,EAAQ;aACT;AACR,MAAgB,GAAM;;;IAEvB;EAAC;EAAgB;EAAc;EAAS;EAAU,CAAC,EAElD,IAAuC;AAC3C,CAAI,MAAgB,aAClB,IAAiB;CAOnB,IAAM,IACJ,kBAAC,OAAD;EAAK,WAAW;YAAhB,CACE,kBAAC,GAAD;GACE,MAAK;GACL,SAAQ;GACR,SAAS;GACT,UAAU;aAET;GACM,CAAA,EACT,kBAAC,GAAD;GACE,MAAK;GACL,SAAS;GACT,eAjB2B;AAC/B,OAAe,CAAC,YAAY,GAAG;;GAiB3B,WAAW;aAEV;GACM,CAAA,CACL;KAGJ,IAAgC;AAKpC,QAJI,KAAS,SACX,IAAY,kBAAC,GAAD,EAAA,UAAe,GAAqB,CAAA,GAIhD,kBAAC,GAAD;EAAe;EAAQ,SAAS;EAAoB;EAAe,QAAA;YACjE,kBAAC,OAAD;GAAK,WAAW;aAAhB,CACG,GACA,EACG;;EACA,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
//#region src/backoffice/molecules/confirm_dialog/confirmDialog.css.ts
|
|
4
|
+
var e = "_1lxq4iv0 txvbqb9io txvbqbai6 txvbqbaof", t = "_1lxq4iv1 txvbqb9io txvbqbdo6 txvbqbaof";
|
|
5
|
+
//#endregion
|
|
6
|
+
export { e as body, t as footer };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=confirmDialog.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"confirmDialog.css.js","names":[],"sources":["../../../../../src/backoffice/molecules/confirm_dialog/confirmDialog.css.ts"],"sourcesContent":["import { sprinkles } from '../../../theme/sprinkles.css.js';\n\nexport const body = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 3,\n});\n\nexport const footer = sprinkles({\n display: 'flex',\n justifyContent: 'flex-end',\n gap: 3,\n});\n"],"mappings":""}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { cx as e } from "../../../theme/tools.js";
|
|
2
|
+
import { Button as t } from "../../../atomic/atoms/button/Button.js";
|
|
3
|
+
import { Tag as n } from "../../atoms/tag/Tag.js";
|
|
4
|
+
import { row as r } from "./filterChipRow.css.js";
|
|
5
|
+
import "../../../index.js";
|
|
6
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
7
|
+
//#region src/backoffice/molecules/filter_chip_row/FilterChipRow.tsx
|
|
8
|
+
var o = ({ chips: o, onClearAll: s, clearAllLabel: c = "Clear all", className: l }) => {
|
|
9
|
+
if (o.length === 0) return null;
|
|
10
|
+
let u = null;
|
|
11
|
+
return s != null && (u = /* @__PURE__ */ i(t, {
|
|
12
|
+
type: "button",
|
|
13
|
+
size: "small",
|
|
14
|
+
variant: "text",
|
|
15
|
+
onClick: s,
|
|
16
|
+
children: c
|
|
17
|
+
})), /* @__PURE__ */ a("div", {
|
|
18
|
+
className: e(r, l),
|
|
19
|
+
children: [o.map((e) => /* @__PURE__ */ i(n, {
|
|
20
|
+
tone: "neutral",
|
|
21
|
+
onRemove: e.onRemove,
|
|
22
|
+
removeLabel: "Remove filter",
|
|
23
|
+
children: e.label
|
|
24
|
+
}, e.id)), u]
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { o as FilterChipRow, o as default };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=FilterChipRow.js.map
|