@plumile/ui 0.1.61 → 0.1.62
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/MarkdownDelete.css.js +1 -0
- package/lib/esm/atomic/molecules/markdown/components/MarkdownEmphasis.css.js +0 -1
- 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/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/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/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 +49 -4
- 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/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/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/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/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 +45 -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,116 @@
|
|
|
1
|
+
import { Button as e } from "../../../atomic/atoms/button/Button.js";
|
|
2
|
+
import { Input as t } from "../../../atomic/atoms/input/Input.js";
|
|
3
|
+
import { ModalCloseSvg as n } from "../../../icons/ModalCloseSvg.js";
|
|
4
|
+
import { backdrop as r, closeButton as i, drawer as a, drawerContainer as o, header as s, searchRow as c, section as l, sectionDescription as u, sectionHeader as d, sectionItem as f, sectionItems as p, sectionTitle as m, sections as h, subtitle as g, title as _, titleBlock as v } from "./backofficeFilterDrawer.css.js";
|
|
5
|
+
import "../../../index.js";
|
|
6
|
+
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
7
|
+
import { useEffect as S } from "react";
|
|
8
|
+
import { useTranslation as C } from "react-i18next";
|
|
9
|
+
import { createPortal as w } from "react-dom";
|
|
10
|
+
//#region src/backoffice/molecules/backoffice_filter_drawer/BackofficeFilterDrawer.tsx
|
|
11
|
+
var T = ({ isOpen: T, title: E, sections: D, searchValue: O, onSearchChange: k, onClose: A, onReset: j }) => {
|
|
12
|
+
let { t: M } = C("ui"), N = E ?? M("backoffice.filterDrawer.title");
|
|
13
|
+
if (S(() => {
|
|
14
|
+
let e = (e) => {
|
|
15
|
+
e.key === "Escape" && T && A();
|
|
16
|
+
};
|
|
17
|
+
return window.addEventListener("keydown", e), () => {
|
|
18
|
+
window.removeEventListener("keydown", e);
|
|
19
|
+
};
|
|
20
|
+
}, [T, A]), !T) return null;
|
|
21
|
+
let P = D.reduce((e, t) => e + t.items.length, 0), F = null;
|
|
22
|
+
k != null && (F = /* @__PURE__ */ b(t, {
|
|
23
|
+
value: O ?? "",
|
|
24
|
+
onChange: (e) => {
|
|
25
|
+
k(e.target.value);
|
|
26
|
+
},
|
|
27
|
+
placeholder: M("backoffice.filterDrawer.searchPlaceholder"),
|
|
28
|
+
size: "small",
|
|
29
|
+
fullWidth: !0
|
|
30
|
+
}));
|
|
31
|
+
let I = null;
|
|
32
|
+
j != null && (I = /* @__PURE__ */ b(e, {
|
|
33
|
+
type: "button",
|
|
34
|
+
variant: "secondary",
|
|
35
|
+
size: "small",
|
|
36
|
+
onClick: j,
|
|
37
|
+
children: M("backoffice.filterDrawer.reset")
|
|
38
|
+
}));
|
|
39
|
+
let L = M("backoffice.filterDrawer.ariaLabel");
|
|
40
|
+
typeof N == "string" && (L = N);
|
|
41
|
+
let R = /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("div", {
|
|
42
|
+
className: r,
|
|
43
|
+
onClick: A
|
|
44
|
+
}), /* @__PURE__ */ b("div", {
|
|
45
|
+
className: o,
|
|
46
|
+
onClick: A,
|
|
47
|
+
children: /* @__PURE__ */ x("aside", {
|
|
48
|
+
className: a,
|
|
49
|
+
role: "dialog",
|
|
50
|
+
"aria-modal": "true",
|
|
51
|
+
"aria-label": L,
|
|
52
|
+
onClick: (e) => {
|
|
53
|
+
e.stopPropagation();
|
|
54
|
+
},
|
|
55
|
+
children: [
|
|
56
|
+
/* @__PURE__ */ x("div", {
|
|
57
|
+
className: s,
|
|
58
|
+
children: [/* @__PURE__ */ x("div", {
|
|
59
|
+
className: v,
|
|
60
|
+
children: [/* @__PURE__ */ b("div", {
|
|
61
|
+
className: _,
|
|
62
|
+
children: N
|
|
63
|
+
}), /* @__PURE__ */ b("div", {
|
|
64
|
+
className: g,
|
|
65
|
+
children: M("backoffice.filterDrawer.subtitle", { count: P })
|
|
66
|
+
})]
|
|
67
|
+
}), /* @__PURE__ */ b("button", {
|
|
68
|
+
type: "button",
|
|
69
|
+
className: i,
|
|
70
|
+
onClick: A,
|
|
71
|
+
"aria-label": M("backoffice.filterDrawer.closeAriaLabel"),
|
|
72
|
+
children: /* @__PURE__ */ b(n, {
|
|
73
|
+
width: 18,
|
|
74
|
+
height: 18,
|
|
75
|
+
"aria-hidden": "true"
|
|
76
|
+
})
|
|
77
|
+
})]
|
|
78
|
+
}),
|
|
79
|
+
/* @__PURE__ */ x("div", {
|
|
80
|
+
className: c,
|
|
81
|
+
children: [F, I]
|
|
82
|
+
}),
|
|
83
|
+
/* @__PURE__ */ b("div", {
|
|
84
|
+
className: h,
|
|
85
|
+
children: D.map((e) => {
|
|
86
|
+
let t = null;
|
|
87
|
+
return e.description != null && (t = /* @__PURE__ */ b("div", {
|
|
88
|
+
className: u,
|
|
89
|
+
children: e.description
|
|
90
|
+
})), /* @__PURE__ */ x("section", {
|
|
91
|
+
className: l,
|
|
92
|
+
children: [/* @__PURE__ */ x("div", {
|
|
93
|
+
className: d,
|
|
94
|
+
children: [/* @__PURE__ */ b("div", {
|
|
95
|
+
className: m,
|
|
96
|
+
children: e.title
|
|
97
|
+
}), t]
|
|
98
|
+
}), /* @__PURE__ */ b("div", {
|
|
99
|
+
className: p,
|
|
100
|
+
children: e.items.map((e) => /* @__PURE__ */ b("div", {
|
|
101
|
+
className: f,
|
|
102
|
+
children: e.node
|
|
103
|
+
}, e.id))
|
|
104
|
+
})]
|
|
105
|
+
}, e.id);
|
|
106
|
+
})
|
|
107
|
+
})
|
|
108
|
+
]
|
|
109
|
+
})
|
|
110
|
+
})] });
|
|
111
|
+
return typeof document > "u" ? R : w(R, document.body);
|
|
112
|
+
};
|
|
113
|
+
//#endregion
|
|
114
|
+
export { T as BackofficeFilterDrawer, T as default };
|
|
115
|
+
|
|
116
|
+
//# sourceMappingURL=BackofficeFilterDrawer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackofficeFilterDrawer.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_filter_drawer/BackofficeFilterDrawer.tsx"],"sourcesContent":["import { useEffect, type ChangeEvent, type JSX, type ReactNode } from 'react';\nimport { createPortal } from 'react-dom';\nimport { useTranslation } from 'react-i18next';\n\nimport { Button, Input } from '@plumile/ui';\nimport { ModalCloseSvg } from '@plumile/ui/icons/ModalCloseSvg.js';\n\nimport * as styles from './backofficeFilterDrawer.css.js';\n\nexport type BackofficeFilterDrawerItem = {\n id: string;\n node: ReactNode;\n};\n\nexport type BackofficeFilterDrawerSection = {\n id: string;\n title: ReactNode;\n description?: ReactNode;\n items: readonly BackofficeFilterDrawerItem[];\n};\n\nexport type BackofficeFilterDrawerProps = {\n isOpen: boolean;\n title?: string;\n sections: readonly BackofficeFilterDrawerSection[];\n searchValue?: string;\n onSearchChange?: (value: string) => void;\n onClose: () => void;\n onReset?: () => void;\n};\n\nexport const BackofficeFilterDrawer = ({\n isOpen,\n title,\n sections,\n searchValue,\n onSearchChange,\n onClose,\n onReset,\n}: BackofficeFilterDrawerProps): JSX.Element | null => {\n const { t } = useTranslation('ui');\n const resolvedTitle = title ?? t('backoffice.filterDrawer.title');\n\n useEffect(() => {\n const handleKeyDown = (event: KeyboardEvent) => {\n if (event.key === 'Escape' && isOpen) {\n onClose();\n }\n };\n\n window.addEventListener('keydown', handleKeyDown);\n return () => {\n window.removeEventListener('keydown', handleKeyDown);\n };\n }, [isOpen, onClose]);\n\n if (!isOpen) {\n return null;\n }\n\n const totalCount = sections.reduce((total, section) => {\n return total + section.items.length;\n }, 0);\n\n let searchNode: JSX.Element | null = null;\n if (onSearchChange != null) {\n searchNode = (\n <Input\n value={searchValue ?? ''}\n onChange={(event: ChangeEvent<HTMLInputElement>) => {\n onSearchChange(event.target.value);\n }}\n placeholder={t('backoffice.filterDrawer.searchPlaceholder')}\n size=\"small\"\n fullWidth\n />\n );\n }\n\n let resetNode: JSX.Element | null = null;\n if (onReset != null) {\n resetNode = (\n <Button type=\"button\" variant=\"secondary\" size=\"small\" onClick={onReset}>\n {t('backoffice.filterDrawer.reset')}\n </Button>\n );\n }\n\n let ariaLabel = t('backoffice.filterDrawer.ariaLabel');\n if (typeof resolvedTitle === 'string') {\n ariaLabel = resolvedTitle;\n }\n\n const drawerContent = (\n <>\n <div className={styles.backdrop} onClick={onClose} />\n <div className={styles.drawerContainer} onClick={onClose}>\n <aside\n className={styles.drawer}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-label={ariaLabel}\n onClick={(event) => {\n event.stopPropagation();\n }}\n >\n <div className={styles.header}>\n <div className={styles.titleBlock}>\n <div className={styles.title}>{resolvedTitle}</div>\n <div className={styles.subtitle}>\n {t('backoffice.filterDrawer.subtitle', { count: totalCount })}\n </div>\n </div>\n <button\n type=\"button\"\n className={styles.closeButton}\n onClick={onClose}\n aria-label={t('backoffice.filterDrawer.closeAriaLabel')}\n >\n <ModalCloseSvg width={18} height={18} aria-hidden=\"true\" />\n </button>\n </div>\n\n <div className={styles.searchRow}>\n {searchNode}\n {resetNode}\n </div>\n\n <div className={styles.sections}>\n {sections.map((section) => {\n let descriptionNode: JSX.Element | null = null;\n if (section.description != null) {\n descriptionNode = (\n <div className={styles.sectionDescription}>\n {section.description}\n </div>\n );\n }\n\n return (\n <section key={section.id} className={styles.section}>\n <div className={styles.sectionHeader}>\n <div className={styles.sectionTitle}>{section.title}</div>\n {descriptionNode}\n </div>\n <div className={styles.sectionItems}>\n {section.items.map((item) => {\n return (\n <div key={item.id} className={styles.sectionItem}>\n {item.node}\n </div>\n );\n })}\n </div>\n </section>\n );\n })}\n </div>\n </aside>\n </div>\n </>\n );\n\n if (typeof document === 'undefined') {\n return drawerContent;\n }\n\n return createPortal(drawerContent, document.body);\n};\n\nexport default BackofficeFilterDrawer;\n"],"mappings":";;;;;;;;;;AA+BA,IAAa,KAA0B,EACrC,WACA,OAAA,GACA,UAAA,GACA,gBACA,mBACA,YACA,iBACqD;CACrD,IAAM,EAAE,SAAM,EAAe,KAAK,EAC5B,IAAgB,KAAS,EAAE,gCAAgC;AAejE,KAbA,QAAgB;EACd,IAAM,KAAiB,MAAyB;AAC9C,GAAI,EAAM,QAAQ,YAAY,KAC5B,GAAS;;AAKb,SADA,OAAO,iBAAiB,WAAW,EAAc,QACpC;AACX,UAAO,oBAAoB,WAAW,EAAc;;IAErD,CAAC,GAAQ,EAAQ,CAAC,EAEjB,CAAC,EACH,QAAO;CAGT,IAAM,IAAa,EAAS,QAAQ,GAAO,MAClC,IAAQ,EAAQ,MAAM,QAC5B,EAAE,EAED,IAAiC;AACrC,CAAI,KAAkB,SACpB,IACE,kBAAC,GAAD;EACE,OAAO,KAAe;EACtB,WAAW,MAAyC;AAClD,KAAe,EAAM,OAAO,MAAM;;EAEpC,aAAa,EAAE,4CAA4C;EAC3D,MAAK;EACL,WAAA;EACA,CAAA;CAIN,IAAI,IAAgC;AACpC,CAAI,KAAW,SACb,IACE,kBAAC,GAAD;EAAQ,MAAK;EAAS,SAAQ;EAAY,MAAK;EAAQ,SAAS;YAC7D,EAAE,gCAAgC;EAC5B,CAAA;CAIb,IAAI,IAAY,EAAE,oCAAoC;AACtD,CAAI,OAAO,KAAkB,aAC3B,IAAY;CAGd,IAAM,IACJ,kBAAA,GAAA,EAAA,UAAA,CACE,kBAAC,OAAD;EAAK,WAAW;EAAiB,SAAS;EAAW,CAAA,EACrD,kBAAC,OAAD;EAAK,WAAW;EAAwB,SAAS;YAC/C,kBAAC,SAAD;GACE,WAAW;GACX,MAAK;GACL,cAAW;GACX,cAAY;GACZ,UAAU,MAAU;AAClB,MAAM,iBAAiB;;aAN3B;IASE,kBAAC,OAAD;KAAK,WAAW;eAAhB,CACE,kBAAC,OAAD;MAAK,WAAW;gBAAhB,CACE,kBAAC,OAAD;OAAK,WAAW;iBAAe;OAAoB,CAAA,EACnD,kBAAC,OAAD;OAAK,WAAW;iBACb,EAAE,oCAAoC,EAAE,OAAO,GAAY,CAAC;OACzD,CAAA,CACF;SACN,kBAAC,UAAD;MACE,MAAK;MACL,WAAW;MACX,SAAS;MACT,cAAY,EAAE,yCAAyC;gBAEvD,kBAAC,GAAD;OAAe,OAAO;OAAI,QAAQ;OAAI,eAAY;OAAS,CAAA;MACpD,CAAA,CACL;;IAEN,kBAAC,OAAD;KAAK,WAAW;eAAhB,CACG,GACA,EACG;;IAEN,kBAAC,OAAD;KAAK,WAAW;eACb,EAAS,KAAK,MAAY;MACzB,IAAI,IAAsC;AAS1C,aARI,EAAQ,eAAe,SACzB,IACE,kBAAC,OAAD;OAAK,WAAW;iBACb,EAAQ;OACL,CAAA,GAKR,kBAAC,WAAD;OAA0B,WAAW;iBAArC,CACE,kBAAC,OAAD;QAAK,WAAW;kBAAhB,CACE,kBAAC,OAAD;SAAK,WAAW;mBAAsB,EAAQ;SAAY,CAAA,EACzD,EACG;WACN,kBAAC,OAAD;QAAK,WAAW;kBACb,EAAQ,MAAM,KAAK,MAEhB,kBAAC,OAAD;SAAmB,WAAW;mBAC3B,EAAK;SACF,EAFI,EAAK,GAET,CAER;QACE,CAAA,CACE;SAdI,EAAQ,GAcZ;OAEZ;KACE,CAAA;IACA;;EACJ,CAAA,CACL,EAAA,CAAA;AAOL,QAJI,OAAO,WAAa,MACf,IAGF,EAAa,GAAe,SAAS,KAAK"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
//#region src/backoffice/molecules/backoffice_filter_drawer/backofficeFilterDrawer.css.ts
|
|
3
|
+
var e = "ck62y20", t = "ck62y21", n = "ck62y22", r = "ck62y23", i = "ck62y24", a = "ck62y25", o = "ck62y26", s = "ck62y27", c = "ck62y28", l = "ck62y29", u = "ck62y2a", d = "ck62y2b", f = "ck62y2c", p = "ck62y2d", m = "ck62y2e", h = "ck62y2f";
|
|
4
|
+
//#endregion
|
|
5
|
+
export { e as backdrop, s as closeButton, n as drawer, t as drawerContainer, r as header, c as searchRow, u as section, p as sectionDescription, d as sectionHeader, h as sectionItem, m as sectionItems, f as sectionTitle, l as sections, o as subtitle, a as title, i as titleBlock };
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=backofficeFilterDrawer.css.js.map
|
package/lib/esm/backoffice/molecules/backoffice_filter_drawer/backofficeFilterDrawer.css.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backofficeFilterDrawer.css.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_filter_drawer/backofficeFilterDrawer.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\n\nimport { vars } from '@plumile/ui/theme/themeContract.js';\n\nexport const backdrop = style({\n position: 'fixed',\n inset: 0,\n backgroundColor: 'rgb(15 23 42 / 0.35)',\n zIndex: vars.zIndex.modal,\n});\n\nexport const drawerContainer = style({\n position: 'fixed',\n inset: 0,\n display: 'flex',\n justifyContent: 'flex-end',\n zIndex: vars.zIndex.modal,\n});\n\nexport const drawer = style({\n backgroundColor: vars.colors.surface,\n borderLeftColor: vars.colors.borderSubtle,\n borderLeftWidth: vars.borderWidth.default,\n borderStyle: 'solid',\n boxShadow: vars.boxShadow.xl,\n display: 'flex',\n flexDirection: 'column',\n gap: vars.spacing[4],\n height: vars.height.full,\n maxWidth: vars.maxWidth['26rem'],\n overflowY: 'auto',\n padding: vars.spacing[5],\n width: vars.width.full,\n});\n\nexport const header = style({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n gap: vars.spacing[3],\n});\n\nexport const titleBlock = style({\n display: 'flex',\n flexDirection: 'column',\n gap: vars.spacing[1],\n});\n\nexport const title = style({\n fontSize: vars.fontSize.xl,\n fontWeight: vars.fontWeight.semibold,\n color: vars.colors.text,\n});\n\nexport const subtitle = style({\n fontSize: vars.fontSize.sm,\n color: vars.colors.textSecondary,\n});\n\nexport const closeButton = style({\n alignItems: 'center',\n backgroundColor: vars.colors.surfaceMuted,\n borderRadius: vars.borderRadius.full,\n borderStyle: 'none',\n borderWidth: 0,\n color: vars.colors.textSecondary,\n cursor: 'pointer',\n display: 'inline-flex',\n height: vars.height[8],\n justifyContent: 'center',\n transitionProperty: vars.transitionProperty.colors,\n transitionDuration: vars.transitionDuration[150],\n transitionTimingFunction: vars.transitionTimingFunction.ease,\n width: vars.width[8],\n selectors: {\n '&:hover': {\n backgroundColor: vars.colors.surfaceSecondary,\n color: vars.colors.text,\n },\n },\n});\n\nexport const searchRow = style({\n display: 'flex',\n alignItems: 'center',\n gap: vars.spacing[2],\n});\n\nexport const sections = style({\n display: 'flex',\n flexDirection: 'column',\n gap: vars.spacing[4],\n});\n\nexport const section = style({\n display: 'flex',\n flexDirection: 'column',\n gap: vars.spacing[2],\n});\n\nexport const sectionHeader = style({\n display: 'flex',\n flexDirection: 'column',\n gap: vars.spacing[1],\n});\n\nexport const sectionTitle = style({\n fontSize: vars.fontSize.xs,\n textTransform: 'uppercase',\n letterSpacing: vars.letterSpacing.caps,\n color: vars.colors.textMuted,\n fontWeight: vars.fontWeight.semibold,\n});\n\nexport const sectionDescription = style({\n fontSize: vars.fontSize.sm,\n color: vars.colors.textSecondary,\n});\n\nexport const sectionItems = style({\n display: 'flex',\n flexDirection: 'column',\n gap: vars.spacing[2],\n});\n\nexport const sectionItem = style({\n display: 'flex',\n flexDirection: 'column',\n});\n"],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { cx as e } from "../../../theme/tools.js";
|
|
2
|
+
import { control as t, description as n, field as r, header as i, label as a } from "./backofficeFilterField.css.js";
|
|
3
|
+
import "../../../index.js";
|
|
4
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
5
|
+
//#region src/backoffice/molecules/backoffice_filter_field/BackofficeFilterField.tsx
|
|
6
|
+
var c = ({ label: c, description: l, children: u, className: d }) => {
|
|
7
|
+
let f = null;
|
|
8
|
+
return l != null && (f = /* @__PURE__ */ o("div", {
|
|
9
|
+
className: n,
|
|
10
|
+
children: l
|
|
11
|
+
})), /* @__PURE__ */ s("div", {
|
|
12
|
+
className: e(r, d),
|
|
13
|
+
children: [/* @__PURE__ */ s("div", {
|
|
14
|
+
className: i,
|
|
15
|
+
children: [/* @__PURE__ */ o("div", {
|
|
16
|
+
className: a,
|
|
17
|
+
children: c
|
|
18
|
+
}), f]
|
|
19
|
+
}), /* @__PURE__ */ o("div", {
|
|
20
|
+
className: t,
|
|
21
|
+
children: u
|
|
22
|
+
})]
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
//#endregion
|
|
26
|
+
export { c as BackofficeFilterField, c as default };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=BackofficeFilterField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackofficeFilterField.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_filter_field/BackofficeFilterField.tsx"],"sourcesContent":["import { type JSX, type ReactNode } from 'react';\n\nimport { cx } from '@plumile/ui';\n\nimport * as styles from './backofficeFilterField.css.js';\n\nexport type BackofficeFilterFieldProps = {\n label: ReactNode;\n description?: ReactNode;\n children: ReactNode;\n className?: string;\n};\n\nexport const BackofficeFilterField = ({\n label,\n description,\n children,\n className,\n}: BackofficeFilterFieldProps): JSX.Element => {\n let descriptionNode: JSX.Element | null = null;\n if (description != null) {\n descriptionNode = <div className={styles.description}>{description}</div>;\n }\n\n return (\n <div className={cx(styles.field, className)}>\n <div className={styles.header}>\n <div className={styles.label}>{label}</div>\n {descriptionNode}\n </div>\n <div className={styles.control}>{children}</div>\n </div>\n );\n};\n\nexport default BackofficeFilterField;\n"],"mappings":";;;;;AAaA,IAAa,KAAyB,EACpC,OAAA,GACA,aAAA,GACA,aACA,mBAC6C;CAC7C,IAAI,IAAsC;AAK1C,QAJI,KAAe,SACjB,IAAkB,kBAAC,OAAD;EAAK,WAAW;YAAqB;EAAkB,CAAA,GAIzE,kBAAC,OAAD;EAAK,WAAW,EAAG,GAAc,EAAU;YAA3C,CACE,kBAAC,OAAD;GAAK,WAAW;aAAhB,CACE,kBAAC,OAAD;IAAK,WAAW;cAAe;IAAY,CAAA,EAC1C,EACG;MACN,kBAAC,OAAD;GAAK,WAAW;GAAiB;GAAe,CAAA,CAC5C"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
//#region src/backoffice/molecules/backoffice_filter_field/backofficeFilterField.css.ts
|
|
3
|
+
var e = "_9aix0m0", t = "_9aix0m1", n = "_9aix0m2", r = "_9aix0m3", i = "_9aix0m4";
|
|
4
|
+
//#endregion
|
|
5
|
+
export { i as control, r as description, e as field, t as header, n as label };
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=backofficeFilterField.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backofficeFilterField.css.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_filter_field/backofficeFilterField.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\n\nimport { vars } from '@plumile/ui/theme/themeContract.js';\n\nexport const field = style({\n display: 'flex',\n flexDirection: 'column',\n gap: vars.spacing[2],\n padding: vars.spacing[3],\n borderRadius: vars.borderRadius.lg,\n borderWidth: vars.borderWidth.default,\n borderStyle: 'solid',\n borderColor: vars.colors.borderSubtle,\n backgroundColor: vars.colors.surface,\n});\n\nexport const header = style({\n display: 'flex',\n flexDirection: 'column',\n gap: vars.spacing[1],\n});\n\nexport const label = style({\n fontSize: vars.fontSize.xs,\n textTransform: 'uppercase',\n letterSpacing: vars.letterSpacing.caps,\n color: vars.colors.textMuted,\n fontWeight: vars.fontWeight.semibold,\n});\n\nexport const description = style({\n fontSize: vars.fontSize.sm,\n color: vars.colors.textSecondary,\n});\n\nexport const control = style({\n display: 'flex',\n flexDirection: 'column',\n gap: vars.spacing[2],\n});\n"],"mappings":""}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { cx as e } from "../../../theme/tools.js";
|
|
2
|
+
import { chipsRow as t, container as n, left as r, right as i, topRow as a } from "./backofficeFiltersBar.css.js";
|
|
3
|
+
import "../../../index.js";
|
|
4
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
5
|
+
//#region src/backoffice/molecules/backoffice_filters_bar/BackofficeFiltersBar.tsx
|
|
6
|
+
var c = ({ leftSlot: c, searchSlot: l, quickFiltersSlot: u, allFiltersSlot: d, rightActions: f, chipsSlot: p, className: m }) => {
|
|
7
|
+
let h = c != null || l != null || u != null || d != null || f != null, g = p != null;
|
|
8
|
+
if (!h && !g) return null;
|
|
9
|
+
let _ = null;
|
|
10
|
+
g && (_ = /* @__PURE__ */ o("div", {
|
|
11
|
+
className: t,
|
|
12
|
+
children: p
|
|
13
|
+
}));
|
|
14
|
+
let v = null;
|
|
15
|
+
return h && (v = /* @__PURE__ */ s("div", {
|
|
16
|
+
className: a,
|
|
17
|
+
children: [/* @__PURE__ */ s("div", {
|
|
18
|
+
className: r,
|
|
19
|
+
children: [
|
|
20
|
+
c,
|
|
21
|
+
l,
|
|
22
|
+
u,
|
|
23
|
+
d
|
|
24
|
+
]
|
|
25
|
+
}), /* @__PURE__ */ o("div", {
|
|
26
|
+
className: i,
|
|
27
|
+
children: f
|
|
28
|
+
})]
|
|
29
|
+
})), /* @__PURE__ */ s("div", {
|
|
30
|
+
className: e(n, m),
|
|
31
|
+
children: [v, _]
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
//#endregion
|
|
35
|
+
export { c as BackofficeFiltersBar, c as default };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=BackofficeFiltersBar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackofficeFiltersBar.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_filters_bar/BackofficeFiltersBar.tsx"],"sourcesContent":["import { type JSX, type ReactNode } from 'react';\n\nimport { cx } from '@plumile/ui';\n\nimport * as styles from './backofficeFiltersBar.css.js';\n\nexport type BackofficeFiltersBarProps = {\n leftSlot?: ReactNode;\n searchSlot?: ReactNode;\n quickFiltersSlot?: ReactNode;\n allFiltersSlot?: ReactNode;\n rightActions?: ReactNode;\n chipsSlot?: ReactNode;\n className?: string;\n};\n\nexport const BackofficeFiltersBar = ({\n leftSlot,\n searchSlot,\n quickFiltersSlot,\n allFiltersSlot,\n rightActions,\n chipsSlot,\n className,\n}: BackofficeFiltersBarProps): JSX.Element | null => {\n const showTop =\n leftSlot != null ||\n searchSlot != null ||\n quickFiltersSlot != null ||\n allFiltersSlot != null ||\n rightActions != null;\n\n const showChips = chipsSlot != null;\n\n if (!showTop && !showChips) {\n return null;\n }\n\n let chipsNode: JSX.Element | null = null;\n if (showChips) {\n chipsNode = <div className={styles.chipsRow}>{chipsSlot}</div>;\n }\n\n let topNode: JSX.Element | null = null;\n if (showTop) {\n topNode = (\n <div className={styles.topRow}>\n <div className={styles.left}>\n {leftSlot}\n {searchSlot}\n {quickFiltersSlot}\n {allFiltersSlot}\n </div>\n <div className={styles.right}>{rightActions}</div>\n </div>\n );\n }\n\n return (\n <div className={cx(styles.container, className)}>\n {topNode}\n {chipsNode}\n </div>\n );\n};\n\nexport default BackofficeFiltersBar;\n"],"mappings":";;;;;AAgBA,IAAa,KAAwB,EACnC,aACA,eACA,qBACA,mBACA,iBACA,cACA,mBACmD;CACnD,IAAM,IACJ,KAAY,QACZ,KAAc,QACd,KAAoB,QACpB,KAAkB,QAClB,KAAgB,MAEZ,IAAY,KAAa;AAE/B,KAAI,CAAC,KAAW,CAAC,EACf,QAAO;CAGT,IAAI,IAAgC;AACpC,CAAI,MACF,IAAY,kBAAC,OAAD;EAAK,WAAW;YAAkB;EAAgB,CAAA;CAGhE,IAAI,IAA8B;AAelC,QAdI,MACF,IACE,kBAAC,OAAD;EAAK,WAAW;YAAhB,CACE,kBAAC,OAAD;GAAK,WAAW;aAAhB;IACG;IACA;IACA;IACA;IACG;MACN,kBAAC,OAAD;GAAK,WAAW;aAAe;GAAmB,CAAA,CAC9C;MAKR,kBAAC,OAAD;EAAK,WAAW,EAAG,GAAkB,EAAU;YAA/C,CACG,GACA,EACG"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
//#region src/backoffice/molecules/backoffice_filters_bar/backofficeFiltersBar.css.ts
|
|
3
|
+
var e = "yyzbjt0", t = "yyzbjt1", n = "yyzbjt2", r = "yyzbjt3", i = "yyzbjt4";
|
|
4
|
+
//#endregion
|
|
5
|
+
export { i as chipsRow, e as container, n as left, r as right, t as topRow };
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=backofficeFiltersBar.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backofficeFiltersBar.css.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_filters_bar/backofficeFiltersBar.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 flexDirection: 'column',\n gap: vars.spacing[2],\n width: vars.width.full,\n});\n\nexport const topRow = style({\n display: 'flex',\n flexWrap: 'wrap',\n alignItems: 'center',\n justifyContent: 'space-between',\n gap: vars.spacing[3],\n '@media': {\n 'screen and (max-width: 640px)': {\n alignItems: 'stretch',\n flexDirection: 'column',\n },\n },\n});\n\nexport const left = style({\n display: 'flex',\n flexWrap: 'wrap',\n alignItems: 'center',\n gap: vars.spacing[2],\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 minWidth: 0,\n flexWrap: 'wrap',\n gap: vars.spacing[2],\n paddingTop: vars.spacing[2],\n borderTopWidth: vars.borderWidth.default,\n borderTopStyle: 'solid',\n borderTopColor: vars.colors.borderLight,\n});\n"],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { cx as e } from "../../../theme/tools.js";
|
|
2
|
+
import { container as t } from "./backofficeFormSection.css.js";
|
|
3
|
+
import "../../../index.js";
|
|
4
|
+
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
5
|
+
//#region src/backoffice/molecules/backoffice_form_section/BackofficeFormSection.tsx
|
|
6
|
+
var i = ({ title: i, description: a, children: o, className: s }) => {
|
|
7
|
+
let c = i != null && i.trim() !== "" || a != null && a.trim() !== "";
|
|
8
|
+
return /* @__PURE__ */ r("section", {
|
|
9
|
+
className: e(t, s),
|
|
10
|
+
children: [c && /* @__PURE__ */ r("div", {
|
|
11
|
+
className: "m31wvj1",
|
|
12
|
+
children: [i != null && i.trim() !== "" && /* @__PURE__ */ n("h3", {
|
|
13
|
+
className: "m31wvj2",
|
|
14
|
+
children: i
|
|
15
|
+
}), a != null && a.trim() !== "" && /* @__PURE__ */ n("p", {
|
|
16
|
+
className: "m31wvj3",
|
|
17
|
+
children: a
|
|
18
|
+
})]
|
|
19
|
+
}), o]
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
//#endregion
|
|
23
|
+
export { i as BackofficeFormSection, i as default };
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=BackofficeFormSection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackofficeFormSection.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_form_section/BackofficeFormSection.tsx"],"sourcesContent":["import { type JSX, type ReactNode } from 'react';\nimport { cx } from '@plumile/ui';\n\nimport * as styles from './backofficeFormSection.css.js';\n\nexport type BackofficeFormSectionProps = {\n title?: string;\n description?: string;\n children: ReactNode;\n className?: string;\n};\n\nexport const BackofficeFormSection = ({\n title,\n description,\n children,\n className,\n}: BackofficeFormSectionProps): JSX.Element => {\n const hasHeader =\n (title != null && title.trim() !== '') ||\n (description != null && description.trim() !== '');\n\n return (\n <section className={cx(styles.container, className)}>\n {hasHeader && (\n <div className={styles.header}>\n {title != null && title.trim() !== '' && (\n <h3 className={styles.title}>{title}</h3>\n )}\n {description != null && description.trim() !== '' && (\n <p className={styles.description}>{description}</p>\n )}\n </div>\n )}\n {children}\n </section>\n );\n};\n\nexport default BackofficeFormSection;\n"],"mappings":";;;;;AAYA,IAAa,KAAyB,EACpC,OAAA,GACA,aAAA,GACA,aACA,mBAC6C;CAC7C,IAAM,IACH,KAAS,QAAQ,EAAM,MAAM,KAAK,MAClC,KAAe,QAAQ,EAAY,MAAM,KAAK;AAEjD,QACE,kBAAC,WAAD;EAAS,WAAW,EAAG,GAAkB,EAAU;YAAnD,CACG,KACC,kBAAC,OAAD;GAAK,WAAW;aAAhB,CACG,KAAS,QAAQ,EAAM,MAAM,KAAK,MACjC,kBAAC,MAAD;IAAI,WAAW;cAAe;IAAW,CAAA,EAE1C,KAAe,QAAQ,EAAY,MAAM,KAAK,MAC7C,kBAAC,KAAD;IAAG,WAAW;cAAqB;IAAgB,CAAA,CAEjD;MAEP,EACO"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
//#region src/backoffice/molecules/backoffice_form_section/backofficeFormSection.css.ts
|
|
3
|
+
var e = "m31wvj0", t = "m31wvj1", n = "m31wvj2", r = "m31wvj3";
|
|
4
|
+
//#endregion
|
|
5
|
+
export { e as container, r as description, t as header, n as title };
|
|
6
|
+
|
|
7
|
+
//# sourceMappingURL=backofficeFormSection.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backofficeFormSection.css.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_form_section/backofficeFormSection.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 flexDirection: 'column',\n gap: vars.spacing[3],\n padding: vars.spacing[4],\n borderRadius: vars.borderRadius.lg,\n borderWidth: vars.borderWidth.default,\n borderStyle: 'solid',\n borderColor: vars.colors.borderSubtle,\n backgroundColor: vars.colors.surface,\n});\n\nexport const header = style({\n display: 'flex',\n flexDirection: 'column',\n gap: vars.spacing[1],\n});\n\nexport const title = style({\n fontSize: vars.fontSize.base,\n fontWeight: vars.fontWeight.semibold,\n color: vars.colors.text,\n margin: 0,\n});\n\nexport const description = style({\n fontSize: vars.fontSize.sm,\n color: vars.colors.textSecondary,\n margin: 0,\n});\n"],"mappings":""}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { cx as e } from "../../../theme/tools.js";
|
|
2
|
+
import { Button as t } from "../../../atomic/atoms/button/Button.js";
|
|
3
|
+
import { actions as n, container as r, header as i, pre as a, title as o, truncated as s } from "./backofficeJsonViewer.css.js";
|
|
4
|
+
import "../../../index.js";
|
|
5
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
6
|
+
import { useCallback as u, useMemo as d, useState as f } from "react";
|
|
7
|
+
//#region src/backoffice/molecules/backoffice_json_viewer/BackofficeJsonViewer.tsx
|
|
8
|
+
var p = (e) => {
|
|
9
|
+
try {
|
|
10
|
+
let t = document.createElement("textarea");
|
|
11
|
+
t.value = e, t.setAttribute("readonly", "true"), t.style.position = "fixed", t.style.top = "-1000px", t.style.left = "-1000px", document.body.appendChild(t), t.select();
|
|
12
|
+
let n = document.execCommand("copy");
|
|
13
|
+
return document.body.removeChild(t), n;
|
|
14
|
+
} catch {
|
|
15
|
+
return !1;
|
|
16
|
+
}
|
|
17
|
+
}, m = ({ value: m, title: h = "Raw JSON", className: g, maxHeight: _, truncate: v = !1, truncateLabel: y = "Collapse", expandLabel: b = "Expand", copyLabel: x = "Copy", copiedLabel: S = "Copied" }) => {
|
|
18
|
+
let [C, w] = f(v), [T, E] = f(!1), D = d(() => {
|
|
19
|
+
try {
|
|
20
|
+
return JSON.stringify(m, null, 2);
|
|
21
|
+
} catch (e) {
|
|
22
|
+
let t = String(e);
|
|
23
|
+
return e instanceof Error && (t = e.message), JSON.stringify({
|
|
24
|
+
error: "Failed to serialize JSON",
|
|
25
|
+
message: t
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}, [m]), O = u(async () => {
|
|
29
|
+
let e = !1;
|
|
30
|
+
try {
|
|
31
|
+
typeof navigator < "u" && (await navigator.clipboard.writeText(D), e = !0);
|
|
32
|
+
} catch {
|
|
33
|
+
e = !1;
|
|
34
|
+
}
|
|
35
|
+
e ||= p(D), e && (E(!0), window.setTimeout(() => {
|
|
36
|
+
E(!1);
|
|
37
|
+
}, 1400));
|
|
38
|
+
}, [D]), k = d(() => {
|
|
39
|
+
if (_ != null) return { maxHeight: _ };
|
|
40
|
+
}, [_]), A = x;
|
|
41
|
+
T && (A = S);
|
|
42
|
+
let j = y;
|
|
43
|
+
return C && (j = b), /* @__PURE__ */ l("div", {
|
|
44
|
+
className: e(r, g),
|
|
45
|
+
children: [/* @__PURE__ */ l("div", {
|
|
46
|
+
className: i,
|
|
47
|
+
children: [/* @__PURE__ */ c("span", {
|
|
48
|
+
className: o,
|
|
49
|
+
children: h
|
|
50
|
+
}), /* @__PURE__ */ l("div", {
|
|
51
|
+
className: n,
|
|
52
|
+
children: [/* @__PURE__ */ c(t, {
|
|
53
|
+
type: "button",
|
|
54
|
+
variant: "secondary",
|
|
55
|
+
size: "small",
|
|
56
|
+
onClick: () => {
|
|
57
|
+
O().catch(() => {});
|
|
58
|
+
},
|
|
59
|
+
children: A
|
|
60
|
+
}), /* @__PURE__ */ c(t, {
|
|
61
|
+
type: "button",
|
|
62
|
+
variant: "secondary",
|
|
63
|
+
size: "small",
|
|
64
|
+
onClick: () => {
|
|
65
|
+
w((e) => !e);
|
|
66
|
+
},
|
|
67
|
+
children: j
|
|
68
|
+
})]
|
|
69
|
+
})]
|
|
70
|
+
}), /* @__PURE__ */ c("pre", {
|
|
71
|
+
className: e(a, { [s]: C }),
|
|
72
|
+
style: k,
|
|
73
|
+
children: D
|
|
74
|
+
})]
|
|
75
|
+
});
|
|
76
|
+
};
|
|
77
|
+
//#endregion
|
|
78
|
+
export { m as BackofficeJsonViewer, m as default };
|
|
79
|
+
|
|
80
|
+
//# sourceMappingURL=BackofficeJsonViewer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BackofficeJsonViewer.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_json_viewer/BackofficeJsonViewer.tsx"],"sourcesContent":["import { useCallback, useMemo, useState, type JSX } from 'react';\n\nimport { Button, cx } from '@plumile/ui';\n\nimport * as styles from './backofficeJsonViewer.css.js';\n\nexport type BackofficeJsonViewerProps = {\n value: unknown;\n title?: string;\n className?: string;\n maxHeight?: string;\n truncate?: boolean;\n truncateLabel?: string;\n expandLabel?: string;\n copyLabel?: string;\n copiedLabel?: string;\n};\n\nconst copyWithExecCommand = (text: string): boolean => {\n try {\n const textarea = document.createElement('textarea');\n textarea.value = text;\n textarea.setAttribute('readonly', 'true');\n textarea.style.position = 'fixed';\n textarea.style.top = '-1000px';\n textarea.style.left = '-1000px';\n document.body.appendChild(textarea);\n textarea.select();\n const ok = document.execCommand('copy');\n document.body.removeChild(textarea);\n return ok;\n } catch {\n return false;\n }\n};\n\nexport const BackofficeJsonViewer = ({\n value,\n title = 'Raw JSON',\n className,\n maxHeight,\n truncate = false,\n truncateLabel = 'Collapse',\n expandLabel = 'Expand',\n copyLabel = 'Copy',\n copiedLabel = 'Copied',\n}: BackofficeJsonViewerProps): JSX.Element => {\n const [isCollapsed, setIsCollapsed] = useState(truncate);\n const [copied, setCopied] = useState(false);\n\n const jsonText = useMemo(() => {\n try {\n return JSON.stringify(value, null, 2);\n } catch (err) {\n let message = String(err);\n if (err instanceof Error) {\n message = err.message;\n }\n return JSON.stringify({ error: 'Failed to serialize JSON', message });\n }\n }, [value]);\n\n const handleCopy = useCallback(async () => {\n let ok = false;\n try {\n if (typeof navigator !== 'undefined') {\n await navigator.clipboard.writeText(jsonText);\n ok = true;\n }\n } catch {\n ok = false;\n }\n\n if (!ok) {\n ok = copyWithExecCommand(jsonText);\n }\n\n if (ok) {\n setCopied(true);\n window.setTimeout(() => {\n setCopied(false);\n }, 1400);\n }\n }, [jsonText]);\n\n const preStyle = useMemo(() => {\n if (maxHeight == null) {\n return undefined;\n }\n return { maxHeight };\n }, [maxHeight]);\n\n let copyButtonLabel = copyLabel;\n if (copied) {\n copyButtonLabel = copiedLabel;\n }\n\n let collapseButtonLabel = truncateLabel;\n if (isCollapsed) {\n collapseButtonLabel = expandLabel;\n }\n\n return (\n <div className={cx(styles.container, className)}>\n <div className={styles.header}>\n <span className={styles.title}>{title}</span>\n <div className={styles.actions}>\n <Button\n type=\"button\"\n variant=\"secondary\"\n size=\"small\"\n onClick={() => {\n handleCopy().catch(() => {});\n }}\n >\n {copyButtonLabel}\n </Button>\n <Button\n type=\"button\"\n variant=\"secondary\"\n size=\"small\"\n onClick={() => {\n setIsCollapsed((v) => {\n return !v;\n });\n }}\n >\n {collapseButtonLabel}\n </Button>\n </div>\n </div>\n <pre\n className={cx(styles.pre, { [styles.truncated]: isCollapsed })}\n style={preStyle}\n >\n {jsonText}\n </pre>\n </div>\n );\n};\n\nexport default BackofficeJsonViewer;\n"],"mappings":";;;;;;;AAkBA,IAAM,KAAuB,MAA0B;AACrD,KAAI;EACF,IAAM,IAAW,SAAS,cAAc,WAAW;AAOnD,EANA,EAAS,QAAQ,GACjB,EAAS,aAAa,YAAY,OAAO,EACzC,EAAS,MAAM,WAAW,SAC1B,EAAS,MAAM,MAAM,WACrB,EAAS,MAAM,OAAO,WACtB,SAAS,KAAK,YAAY,EAAS,EACnC,EAAS,QAAQ;EACjB,IAAM,IAAK,SAAS,YAAY,OAAO;AAEvC,SADA,SAAS,KAAK,YAAY,EAAS,EAC5B;SACD;AACN,SAAO;;GAIE,KAAwB,EACnC,UACA,OAAA,IAAQ,YACR,cACA,cACA,cAAW,IACX,mBAAgB,YAChB,iBAAc,UACd,eAAY,QACZ,iBAAc,eAC8B;CAC5C,IAAM,CAAC,GAAa,KAAkB,EAAS,EAAS,EAClD,CAAC,GAAQ,KAAa,EAAS,GAAM,EAErC,IAAW,QAAc;AAC7B,MAAI;AACF,UAAO,KAAK,UAAU,GAAO,MAAM,EAAE;WAC9B,GAAK;GACZ,IAAI,IAAU,OAAO,EAAI;AAIzB,UAHI,aAAe,UACjB,IAAU,EAAI,UAET,KAAK,UAAU;IAAE,OAAO;IAA4B;IAAS,CAAC;;IAEtE,CAAC,EAAM,CAAC,EAEL,IAAa,EAAY,YAAY;EACzC,IAAI,IAAK;AACT,MAAI;AACF,GAAI,OAAO,YAAc,QACvB,MAAM,UAAU,UAAU,UAAU,EAAS,EAC7C,IAAK;UAED;AACN,OAAK;;AAOP,EAJA,AACE,MAAK,EAAoB,EAAS,EAGhC,MACF,EAAU,GAAK,EACf,OAAO,iBAAiB;AACtB,KAAU,GAAM;KACf,KAAK;IAET,CAAC,EAAS,CAAC,EAER,IAAW,QAAc;AACzB,WAAa,KAGjB,QAAO,EAAE,cAAW;IACnB,CAAC,EAAU,CAAC,EAEX,IAAkB;AACtB,CAAI,MACF,IAAkB;CAGpB,IAAI,IAAsB;AAK1B,QAJI,MACF,IAAsB,IAItB,kBAAC,OAAD;EAAK,WAAW,EAAG,GAAkB,EAAU;YAA/C,CACE,kBAAC,OAAD;GAAK,WAAW;aAAhB,CACE,kBAAC,QAAD;IAAM,WAAW;cAAe;IAAa,CAAA,EAC7C,kBAAC,OAAD;IAAK,WAAW;cAAhB,CACE,kBAAC,GAAD;KACE,MAAK;KACL,SAAQ;KACR,MAAK;KACL,eAAe;AACb,SAAY,CAAC,YAAY,GAAG;;eAG7B;KACM,CAAA,EACT,kBAAC,GAAD;KACE,MAAK;KACL,SAAQ;KACR,MAAK;KACL,eAAe;AACb,SAAgB,MACP,CAAC,EACR;;eAGH;KACM,CAAA,CACL;MACF;MACN,kBAAC,OAAD;GACE,WAAW,EAAG,GAAY,GAAG,IAAmB,GAAa,CAAC;GAC9D,OAAO;aAEN;GACG,CAAA,CACF"}
|
package/lib/esm/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.css.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LazyBackofficeJsonViewer.css.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\n\nexport const fallback = style({\n overflow: 'auto',\n whiteSpace: 'pre-wrap',\n});\n"],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import "./LazyBackofficeJsonViewer.css.js";
|
|
2
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { Suspense as t, lazy as n } from "react";
|
|
4
|
+
//#region src/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.tsx
|
|
5
|
+
var r = n(async () => ({ default: (await import("./BackofficeJsonViewer.js")).BackofficeJsonViewer })), i = (e) => {
|
|
6
|
+
try {
|
|
7
|
+
return JSON.stringify(e, null, 2);
|
|
8
|
+
} catch (e) {
|
|
9
|
+
let t = String(e);
|
|
10
|
+
return e instanceof Error && (t = e.message), JSON.stringify({
|
|
11
|
+
error: "Failed to serialize JSON",
|
|
12
|
+
message: t
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
}, a = ({ value: t, className: n }) => /* @__PURE__ */ e("pre", {
|
|
16
|
+
className: n ?? "_13lprza0",
|
|
17
|
+
children: i(t)
|
|
18
|
+
}), o = (n) => /* @__PURE__ */ e(t, {
|
|
19
|
+
fallback: /* @__PURE__ */ e(a, {
|
|
20
|
+
value: n.value,
|
|
21
|
+
className: n.className
|
|
22
|
+
}),
|
|
23
|
+
children: /* @__PURE__ */ e(r, { ...n })
|
|
24
|
+
});
|
|
25
|
+
//#endregion
|
|
26
|
+
export { o as LazyBackofficeJsonViewer, o as default };
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=LazyBackofficeJsonViewer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LazyBackofficeJsonViewer.js","names":[],"sources":["../../../../../src/backoffice/molecules/backoffice_json_viewer/LazyBackofficeJsonViewer.tsx"],"sourcesContent":["import { Suspense, lazy, type JSX } from 'react';\n\nimport type { BackofficeJsonViewerProps } from './BackofficeJsonViewer.js';\n\nimport * as styles from './LazyBackofficeJsonViewer.css.js';\n\nconst BackofficeJsonViewer = lazy(async () => {\n const module = await import('./BackofficeJsonViewer.js');\n return { default: module.BackofficeJsonViewer };\n});\n\nconst buildFallbackText = (value: unknown): string => {\n try {\n return JSON.stringify(value, null, 2);\n } catch (err) {\n let message = String(err);\n if (err instanceof Error) {\n message = err.message;\n }\n return JSON.stringify({ error: 'Failed to serialize JSON', message });\n }\n};\n\nconst FallbackViewer = ({\n value,\n className,\n}: Pick<BackofficeJsonViewerProps, 'value' | 'className'>): JSX.Element => {\n return (\n <pre className={className ?? styles.fallback}>\n {buildFallbackText(value)}\n </pre>\n );\n};\n\nexport const LazyBackofficeJsonViewer = (\n props: BackofficeJsonViewerProps,\n): JSX.Element => {\n return (\n <Suspense\n fallback={\n <FallbackViewer value={props.value} className={props.className} />\n }\n >\n <BackofficeJsonViewer {...props} />\n </Suspense>\n );\n};\n\nexport default LazyBackofficeJsonViewer;\n"],"mappings":";;;;AAMA,IAAM,IAAuB,EAAK,aAEzB,EAAE,UADM,MAAM,OAAO,8BACH,sBAAsB,EAC/C,EAEI,KAAqB,MAA2B;AACpD,KAAI;AACF,SAAO,KAAK,UAAU,GAAO,MAAM,EAAE;UAC9B,GAAK;EACZ,IAAI,IAAU,OAAO,EAAI;AAIzB,SAHI,aAAe,UACjB,IAAU,EAAI,UAET,KAAK,UAAU;GAAE,OAAO;GAA4B;GAAS,CAAC;;GAInE,KAAkB,EACtB,UACA,mBAGE,kBAAC,OAAD;CAAK,WAAW,KAAa;WAC1B,EAAkB,EAAM;CACrB,CAAA,EAIG,KACX,MAGE,kBAAC,GAAD;CACE,UACE,kBAAC,GAAD;EAAgB,OAAO,EAAM;EAAO,WAAW,EAAM;EAAa,CAAA;WAGpE,kBAAC,GAAD,EAAsB,GAAI,GAAS,CAAA;CAC1B,CAAA"}
|
|
@@ -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
|