@plumile/ui 0.1.60 → 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/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 @@
|
|
|
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,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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterChipRow.js","names":[],"sources":["../../../../../src/backoffice/molecules/filter_chip_row/FilterChipRow.tsx"],"sourcesContent":["import { type JSX, type ReactNode } from 'react';\n\nimport { Button, cx } from '@plumile/ui';\nimport { Tag } from '../../atoms/tag/Tag.js';\n\nimport * as styles from './filterChipRow.css.js';\n\nexport type FilterChip = {\n id: string;\n label: ReactNode;\n onRemove?: () => void;\n};\n\nexport type FilterChipRowProps = {\n chips: readonly FilterChip[];\n onClearAll?: () => void;\n clearAllLabel?: string;\n className?: string;\n};\n\nexport const FilterChipRow = ({\n chips,\n onClearAll,\n clearAllLabel = 'Clear all',\n className,\n}: FilterChipRowProps): JSX.Element | null => {\n if (chips.length === 0) {\n return null;\n }\n\n let clearAllNode: JSX.Element | null = null;\n if (onClearAll != null) {\n clearAllNode = (\n <Button type=\"button\" size=\"small\" variant=\"text\" onClick={onClearAll}>\n {clearAllLabel}\n </Button>\n );\n }\n\n return (\n <div className={cx(styles.row, className)}>\n {chips.map((chip) => {\n return (\n <Tag\n key={chip.id}\n tone=\"neutral\"\n onRemove={chip.onRemove}\n removeLabel=\"Remove filter\"\n >\n {chip.label}\n </Tag>\n );\n })}\n {clearAllNode}\n </div>\n );\n};\n\nexport default FilterChipRow;\n"],"mappings":";;;;;;;AAoBA,IAAa,KAAiB,EAC5B,UACA,eACA,mBAAgB,aAChB,mBAC4C;AAC5C,KAAI,EAAM,WAAW,EACnB,QAAO;CAGT,IAAI,IAAmC;AASvC,QARI,KAAc,SAChB,IACE,kBAAC,GAAD;EAAQ,MAAK;EAAS,MAAK;EAAQ,SAAQ;EAAO,SAAS;YACxD;EACM,CAAA,GAKX,kBAAC,OAAD;EAAK,WAAW,EAAG,GAAY,EAAU;YAAzC,CACG,EAAM,KAAK,MAER,kBAAC,GAAD;GAEE,MAAK;GACL,UAAU,EAAK;GACf,aAAY;aAEX,EAAK;GACF,EANC,EAAK,GAMN,CAER,EACD,EACG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filterChipRow.css.js","names":[],"sources":["../../../../../src/backoffice/molecules/filter_chip_row/filterChipRow.css.ts"],"sourcesContent":["import { sprinkles } from '@plumile/ui/theme/sprinkles.css.js';\n\nexport const row = sprinkles({\n display: 'flex',\n alignItems: 'center',\n flexWrap: 'wrap',\n gap: 2,\n});\n"],"mappings":""}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Input as e } from "../../../atomic/atoms/input/Input.js";
|
|
2
|
+
import { ModalCloseSvg as t } from "../../../icons/ModalCloseSvg.js";
|
|
3
|
+
import { ShortcutHint as n } from "../../atoms/shortcut_hint/ShortcutHint.js";
|
|
4
|
+
import { SidebarSearchSvg as r } from "../../../icons/SidebarSearchSvg.js";
|
|
5
|
+
import { clearButton as i, container as a } from "./globalSearchInput.css.js";
|
|
6
|
+
import "../../../index.js";
|
|
7
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
8
|
+
//#region src/backoffice/molecules/global_search_input/GlobalSearchInput.tsx
|
|
9
|
+
var c = ({ value: c, onChange: l, placeholder: u = "Search…", ariaLabel: d, className: f, shortcut: p, rightSlot: m, clearLabel: h = "Clear search" }) => {
|
|
10
|
+
let g = c.trim() !== "", _ = d ?? u, v = null;
|
|
11
|
+
g && (v = /* @__PURE__ */ o("button", {
|
|
12
|
+
type: "button",
|
|
13
|
+
"aria-label": h,
|
|
14
|
+
onClick: () => {
|
|
15
|
+
l("");
|
|
16
|
+
},
|
|
17
|
+
className: i,
|
|
18
|
+
children: /* @__PURE__ */ o(t, {
|
|
19
|
+
width: 16,
|
|
20
|
+
height: 16,
|
|
21
|
+
"aria-hidden": "true"
|
|
22
|
+
})
|
|
23
|
+
}));
|
|
24
|
+
let y = null;
|
|
25
|
+
p != null && (y = /* @__PURE__ */ o(n, { keys: p }));
|
|
26
|
+
let b = /* @__PURE__ */ s("span", {
|
|
27
|
+
className: a,
|
|
28
|
+
children: [
|
|
29
|
+
v,
|
|
30
|
+
y,
|
|
31
|
+
m
|
|
32
|
+
]
|
|
33
|
+
});
|
|
34
|
+
return /* @__PURE__ */ o(e, {
|
|
35
|
+
className: f,
|
|
36
|
+
value: c,
|
|
37
|
+
onChange: (e) => {
|
|
38
|
+
l(e.target.value);
|
|
39
|
+
},
|
|
40
|
+
placeholder: u,
|
|
41
|
+
"aria-label": _,
|
|
42
|
+
size: "small",
|
|
43
|
+
fullWidth: !0,
|
|
44
|
+
leftIcon: /* @__PURE__ */ o(r, {
|
|
45
|
+
width: 18,
|
|
46
|
+
height: 18,
|
|
47
|
+
"aria-hidden": "true"
|
|
48
|
+
}),
|
|
49
|
+
rightIcon: b
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
//#endregion
|
|
53
|
+
export { c as GlobalSearchInput, c as default };
|
|
54
|
+
|
|
55
|
+
//# sourceMappingURL=GlobalSearchInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GlobalSearchInput.js","names":[],"sources":["../../../../../src/backoffice/molecules/global_search_input/GlobalSearchInput.tsx"],"sourcesContent":["import { type ChangeEvent, type JSX, type ReactNode } from 'react';\n\nimport { Input } from '@plumile/ui';\nimport { ModalCloseSvg } from '@plumile/ui/icons/ModalCloseSvg.js';\nimport { SidebarSearchSvg } from '@plumile/ui/icons/SidebarSearchSvg.js';\n\nimport { ShortcutHint } from '../../atoms/shortcut_hint/ShortcutHint.js';\nimport * as styles from './globalSearchInput.css.js';\n\nexport type GlobalSearchInputProps = {\n value: string;\n onChange: (value: string) => void;\n placeholder?: string;\n ariaLabel?: string;\n className?: string;\n shortcut?: readonly string[] | string;\n rightSlot?: ReactNode;\n clearLabel?: string;\n};\n\nexport const GlobalSearchInput = ({\n value,\n onChange,\n placeholder = 'Search…',\n ariaLabel,\n className,\n shortcut,\n rightSlot,\n clearLabel = 'Clear search',\n}: GlobalSearchInputProps): JSX.Element => {\n const showClear = value.trim() !== '';\n const resolvedAriaLabel = ariaLabel ?? placeholder;\n\n let clearButton: JSX.Element | null = null;\n if (showClear) {\n clearButton = (\n <button\n type=\"button\"\n aria-label={clearLabel}\n onClick={() => {\n onChange('');\n }}\n className={styles.clearButton}\n >\n <ModalCloseSvg width={16} height={16} aria-hidden=\"true\" />\n </button>\n );\n }\n\n let shortcutNode: JSX.Element | null = null;\n if (shortcut != null) {\n shortcutNode = <ShortcutHint keys={shortcut} />;\n }\n\n const rightIcon = (\n <span className={styles.container}>\n {clearButton}\n {shortcutNode}\n {rightSlot}\n </span>\n );\n\n return (\n <Input\n className={className}\n value={value}\n onChange={(event: ChangeEvent<HTMLInputElement>) => {\n onChange(event.target.value);\n }}\n placeholder={placeholder}\n aria-label={resolvedAriaLabel}\n size=\"small\"\n fullWidth\n leftIcon={<SidebarSearchSvg width={18} height={18} aria-hidden=\"true\" />}\n rightIcon={rightIcon}\n />\n );\n};\n\nexport default GlobalSearchInput;\n"],"mappings":";;;;;;;;AAoBA,IAAa,KAAqB,EAChC,UACA,aACA,iBAAc,WACd,cACA,cACA,aACA,cACA,gBAAa,qBAC4B;CACzC,IAAM,IAAY,EAAM,MAAM,KAAK,IAC7B,IAAoB,KAAa,GAEnC,IAAkC;AACtC,CAAI,MACF,IACE,kBAAC,UAAD;EACE,MAAK;EACL,cAAY;EACZ,eAAe;AACb,KAAS,GAAG;;EAEd,WAAW;YAEX,kBAAC,GAAD;GAAe,OAAO;GAAI,QAAQ;GAAI,eAAY;GAAS,CAAA;EACpD,CAAA;CAIb,IAAI,IAAmC;AACvC,CAAI,KAAY,SACd,IAAe,kBAAC,GAAD,EAAc,MAAM,GAAY,CAAA;CAGjD,IAAM,IACJ,kBAAC,QAAD;EAAM,WAAW;YAAjB;GACG;GACA;GACA;GACI;;AAGT,QACE,kBAAC,GAAD;EACa;EACJ;EACP,WAAW,MAAyC;AAClD,KAAS,EAAM,OAAO,MAAM;;EAEjB;EACb,cAAY;EACZ,MAAK;EACL,WAAA;EACA,UAAU,kBAAC,GAAD;GAAkB,OAAO;GAAI,QAAQ;GAAI,eAAY;GAAS,CAAA;EAC7D;EACX,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
//#region src/backoffice/molecules/global_search_input/globalSearchInput.css.ts
|
|
4
|
+
var e = "zmrwn80 txvbqb9io txvbqbco txvbqbao6 txvbqbk4x", t = "zmrwn81 txvbqbu6f", n = "zmrwn82 txvbqb9jf txvbqbco txvbqbdnx txvbqbuzj txvbqbv txvbqb12f txvbqb1px txvbqbl9f";
|
|
5
|
+
//#endregion
|
|
6
|
+
export { n as clearButton, e as container, t as input };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=globalSearchInput.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"globalSearchInput.css.js","names":[],"sources":["../../../../../src/backoffice/molecules/global_search_input/globalSearchInput.css.ts"],"sourcesContent":["import { sprinkles } from '@plumile/ui/theme/sprinkles.css.js';\n\nexport const container = sprinkles({\n display: 'flex',\n alignItems: 'center',\n gap: 2,\n minWidth: 0,\n});\n\nexport const input = sprinkles({\n width: 'full',\n});\n\nexport const clearButton = sprinkles({\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n backgroundColor: 'transparent',\n cursor: 'pointer',\n borderWidth: 0,\n borderStyle: 'none',\n padding: 0,\n});\n"],"mappings":""}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { cx as e } from "../../../theme/tools.js";
|
|
2
|
+
import { ModalCloseSvg as t } from "../../../icons/ModalCloseSvg.js";
|
|
3
|
+
import { actions as n, closeButton as r, container as i, content as a, description as o, title as s, toneRecipe as c } from "./inlineBanner.css.js";
|
|
4
|
+
import "../../../index.js";
|
|
5
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
6
|
+
//#region src/backoffice/molecules/inline_banner/InlineBanner.tsx
|
|
7
|
+
var d = ({ tone: d = "info", title: f, children: p, actions: m, onDismiss: h, dismissLabel: g = "Dismiss", className: _ }) => {
|
|
8
|
+
let v = typeof h == "function", y = null;
|
|
9
|
+
f != null && (y = /* @__PURE__ */ l("div", {
|
|
10
|
+
className: s,
|
|
11
|
+
children: f
|
|
12
|
+
}));
|
|
13
|
+
let b = null;
|
|
14
|
+
p != null && (b = /* @__PURE__ */ l("div", {
|
|
15
|
+
className: o,
|
|
16
|
+
children: p
|
|
17
|
+
}));
|
|
18
|
+
let x = null;
|
|
19
|
+
return v && (x = /* @__PURE__ */ l("button", {
|
|
20
|
+
type: "button",
|
|
21
|
+
onClick: h,
|
|
22
|
+
className: r,
|
|
23
|
+
"aria-label": g,
|
|
24
|
+
children: /* @__PURE__ */ l(t, {
|
|
25
|
+
width: 18,
|
|
26
|
+
height: 18,
|
|
27
|
+
"aria-hidden": "true"
|
|
28
|
+
})
|
|
29
|
+
})), /* @__PURE__ */ u("div", {
|
|
30
|
+
className: e(i, c({ tone: d }), _),
|
|
31
|
+
role: "status",
|
|
32
|
+
children: [/* @__PURE__ */ u("div", {
|
|
33
|
+
className: a,
|
|
34
|
+
children: [y, b]
|
|
35
|
+
}), /* @__PURE__ */ u("div", {
|
|
36
|
+
className: n,
|
|
37
|
+
children: [m, x]
|
|
38
|
+
})]
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
//#endregion
|
|
42
|
+
export { d as InlineBanner, d as default };
|
|
43
|
+
|
|
44
|
+
//# sourceMappingURL=InlineBanner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InlineBanner.js","names":[],"sources":["../../../../../src/backoffice/molecules/inline_banner/InlineBanner.tsx"],"sourcesContent":["import { type JSX, type ReactNode } from 'react';\nimport type { RecipeVariants } from '@vanilla-extract/recipes';\n\nimport { ModalCloseSvg } from '@plumile/ui/icons/ModalCloseSvg.js';\n\nimport * as styles from './inlineBanner.css.js';\nimport { cx } from '@plumile/ui';\n\nexport type InlineBannerTone = NonNullable<\n NonNullable<RecipeVariants<typeof styles.toneRecipe>>['tone']\n>;\n\nexport type InlineBannerProps = {\n tone?: InlineBannerTone;\n title?: ReactNode;\n children?: ReactNode;\n actions?: ReactNode;\n onDismiss?: () => void;\n dismissLabel?: string;\n className?: string;\n};\n\nexport const InlineBanner = ({\n tone = 'info',\n title,\n children,\n actions,\n onDismiss,\n dismissLabel = 'Dismiss',\n className,\n}: InlineBannerProps): JSX.Element => {\n const showDismiss = typeof onDismiss === 'function';\n\n let titleNode: JSX.Element | null = null;\n if (title != null) {\n titleNode = <div className={styles.title}>{title}</div>;\n }\n\n let descriptionNode: JSX.Element | null = null;\n if (children != null) {\n descriptionNode = <div className={styles.description}>{children}</div>;\n }\n\n let dismissNode: JSX.Element | null = null;\n if (showDismiss) {\n dismissNode = (\n <button\n type=\"button\"\n onClick={onDismiss}\n className={styles.closeButton}\n aria-label={dismissLabel}\n >\n <ModalCloseSvg width={18} height={18} aria-hidden=\"true\" />\n </button>\n );\n }\n\n return (\n <div\n className={cx(styles.container, styles.toneRecipe({ tone }), className)}\n role=\"status\"\n >\n <div className={styles.content}>\n {titleNode}\n {descriptionNode}\n </div>\n\n <div className={styles.actions}>\n {actions}\n {dismissNode}\n </div>\n </div>\n );\n};\n\nexport default InlineBanner;\n"],"mappings":";;;;;;AAsBA,IAAa,KAAgB,EAC3B,UAAO,QACP,OAAA,GACA,aACA,SAAA,GACA,cACA,kBAAe,WACf,mBACoC;CACpC,IAAM,IAAc,OAAO,KAAc,YAErC,IAAgC;AACpC,CAAI,KAAS,SACX,IAAY,kBAAC,OAAD;EAAK,WAAW;YAAe;EAAY,CAAA;CAGzD,IAAI,IAAsC;AAC1C,CAAI,KAAY,SACd,IAAkB,kBAAC,OAAD;EAAK,WAAW;EAAqB;EAAe,CAAA;CAGxE,IAAI,IAAkC;AActC,QAbI,MACF,IACE,kBAAC,UAAD;EACE,MAAK;EACL,SAAS;EACT,WAAW;EACX,cAAY;YAEZ,kBAAC,GAAD;GAAe,OAAO;GAAI,QAAQ;GAAI,eAAY;GAAS,CAAA;EACpD,CAAA,GAKX,kBAAC,OAAD;EACE,WAAW,EAAG,GAAkB,EAAkB,EAAE,SAAM,CAAC,EAAE,EAAU;EACvE,MAAK;YAFP,CAIE,kBAAC,OAAD;GAAK,WAAW;aAAhB,CACG,GACA,EACG;MAEN,kBAAC,OAAD;GAAK,WAAW;aAAhB,CACG,GACA,EACG;KACF"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
import { createRuntimeFn as e } from "@vanilla-extract/recipes/createRuntimeFn";
|
|
4
|
+
//#region src/backoffice/molecules/inline_banner/inlineBanner.css.ts
|
|
5
|
+
var t = "_1mdg64u0 txvbqbnvf txvbqboio txvbqbp5o txvbqblxf txvbqb9io txvbqbcf txvbqbdoo txvbqbaof txvbqb1rf txvbqb8x txvbqb1co txvbqb1qf txvbqbwf", n = e({
|
|
6
|
+
defaultClassName: "_1mdg64u5",
|
|
7
|
+
variantClassNames: { tone: {
|
|
8
|
+
info: "_1mdg64u6 _1mdg64u1 txvbqbv4j txvbqbv8p",
|
|
9
|
+
success: "_1mdg64u7 _1mdg64u2 txvbqbv0t txvbqbv6r",
|
|
10
|
+
warning: "_1mdg64u8 _1mdg64u3 txvbqbv09 txvbqbv69",
|
|
11
|
+
danger: "_1mdg64u9 _1mdg64u4 txvbqbuzp txvbqbv5n"
|
|
12
|
+
} },
|
|
13
|
+
defaultVariants: { tone: "info" },
|
|
14
|
+
compoundVariants: []
|
|
15
|
+
}), r = "_1mdg64ua txvbqb9io txvbqbai6 txvbqbanx txvbqb9mx txvbqbk4x", i = "_1mdg64ub txvbqbamo", a = "_1mdg64uc ", o = "_1mdg64ud txvbqb9jf txvbqbco txvbqbao6 txvbqbaj6", s = "_1mdg64ue txvbqb9jf txvbqbco txvbqbdnx txvbqbtx6 txvbqbc6o txvbqb1rf txvbqbuzj txvbqbv txvbqb12f txvbqb1px txvbqbv4x";
|
|
16
|
+
//#endregion
|
|
17
|
+
export { o as actions, s as closeButton, t as container, r as content, a as description, i as title, n as toneRecipe };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=inlineBanner.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inlineBanner.css.js","names":[],"sources":["../../../../../src/backoffice/molecules/inline_banner/inlineBanner.css.ts"],"sourcesContent":["import { recipe, type RecipeVariants } from '@vanilla-extract/recipes';\n\nimport { sprinkles } from '@plumile/ui/theme/sprinkles.css.js';\n\nexport const container = sprinkles({\n display: 'flex',\n alignItems: 'flex-start',\n justifyContent: 'space-between',\n gap: 3,\n paddingX: 4,\n paddingY: 3,\n borderRadius: 'md',\n fontSize: 'sm',\n borderWidth: 'default',\n borderStyle: 'solid',\n borderColor: 'border',\n});\n\nconst toneInfo = sprinkles({\n backgroundColor: 'brandLightGray',\n color: 'text',\n});\nconst toneSuccess = sprinkles({\n backgroundColor: 'green-50',\n color: 'green-800',\n});\nconst toneWarning = sprinkles({\n backgroundColor: 'amber-50',\n color: 'amber-900',\n});\nconst toneDanger = sprinkles({\n backgroundColor: 'red-50',\n color: 'red-800',\n});\n\nexport const toneRecipe = recipe({\n variants: {\n tone: {\n info: toneInfo,\n success: toneSuccess,\n warning: toneWarning,\n danger: toneDanger,\n },\n },\n defaultVariants: {\n tone: 'info',\n },\n});\n\nexport type ToneRecipeVariants = RecipeVariants<typeof toneRecipe>;\n\nexport const content = sprinkles({\n display: 'flex',\n flexDirection: 'column',\n gap: 1,\n flex: 1,\n minWidth: 0,\n});\n\nexport const title = sprinkles({\n fontWeight: 'semibold',\n});\n\nexport const description = sprinkles({\n // color: 'slate-700',\n});\n\nexport const actions = sprinkles({\n display: 'inline-flex',\n alignItems: 'center',\n gap: 2,\n flexShrink: 0,\n});\n\nexport const closeButton = sprinkles({\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: 8,\n height: 8,\n borderRadius: 'md',\n backgroundColor: 'transparent',\n cursor: 'pointer',\n borderWidth: 0,\n borderStyle: 'none',\n color: 'inherit',\n});\n"],"mappings":""}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { cx as e } from "../../../theme/tools.js";
|
|
2
|
+
import { ShortcutHint as t } from "../../atoms/shortcut_hint/ShortcutHint.js";
|
|
3
|
+
import { ChevronLeftSvg as n } from "../../../icons/ChevronLeftSvg.js";
|
|
4
|
+
import { ChevronRightSvg as r } from "../../../icons/ChevronRightSvg.js";
|
|
5
|
+
import { button as i, icon as a, label as o } from "./sidebarCollapseToggle.css.js";
|
|
6
|
+
import "../../../index.js";
|
|
7
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
8
|
+
//#region src/backoffice/molecules/sidebar_collapse_toggle/SidebarCollapseToggle.tsx
|
|
9
|
+
var l = ({ isCollapsed: l, onToggle: u, label: d = "Collapse", shortcut: f, className: p }) => {
|
|
10
|
+
let m = n, h = d;
|
|
11
|
+
l && (m = r, h = "Expand");
|
|
12
|
+
let g = null;
|
|
13
|
+
return f != null && (g = /* @__PURE__ */ s(t, { keys: f })), /* @__PURE__ */ c("button", {
|
|
14
|
+
type: "button",
|
|
15
|
+
className: e(i, p),
|
|
16
|
+
onClick: u,
|
|
17
|
+
"aria-pressed": l,
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ s("span", {
|
|
20
|
+
className: a,
|
|
21
|
+
"aria-hidden": "true",
|
|
22
|
+
children: /* @__PURE__ */ s(m, {
|
|
23
|
+
width: 18,
|
|
24
|
+
height: 18
|
|
25
|
+
})
|
|
26
|
+
}),
|
|
27
|
+
/* @__PURE__ */ s("span", {
|
|
28
|
+
className: o,
|
|
29
|
+
children: h
|
|
30
|
+
}),
|
|
31
|
+
g
|
|
32
|
+
]
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
//#endregion
|
|
36
|
+
export { l as SidebarCollapseToggle, l as default };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=SidebarCollapseToggle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SidebarCollapseToggle.js","names":[],"sources":["../../../../../src/backoffice/molecules/sidebar_collapse_toggle/SidebarCollapseToggle.tsx"],"sourcesContent":["import { type JSX, type ReactNode } from 'react';\n\nimport { ChevronLeftSvg } from '@plumile/ui/icons/ChevronLeftSvg.js';\nimport { ChevronRightSvg } from '@plumile/ui/icons/ChevronRightSvg.js';\n\nimport { ShortcutHint } from '../../atoms/shortcut_hint/ShortcutHint.js';\nimport * as styles from './sidebarCollapseToggle.css.js';\nimport { cx } from '@plumile/ui';\n\nexport type SidebarCollapseToggleProps = {\n isCollapsed: boolean;\n onToggle: () => void;\n label?: ReactNode;\n shortcut?: readonly string[] | string;\n className?: string;\n};\n\nexport const SidebarCollapseToggle = ({\n isCollapsed,\n onToggle,\n label = 'Collapse',\n shortcut,\n className,\n}: SidebarCollapseToggleProps): JSX.Element => {\n let Icon = ChevronLeftSvg;\n let resolvedLabel = label;\n if (isCollapsed) {\n Icon = ChevronRightSvg;\n resolvedLabel = 'Expand';\n }\n\n let shortcutNode: JSX.Element | null = null;\n if (shortcut != null) {\n shortcutNode = <ShortcutHint keys={shortcut} />;\n }\n\n return (\n <button\n type=\"button\"\n className={cx(styles.button, className)}\n onClick={onToggle}\n aria-pressed={isCollapsed}\n >\n <span className={styles.icon} aria-hidden=\"true\">\n <Icon width={18} height={18} />\n </span>\n <span className={styles.label}>{resolvedLabel}</span>\n {shortcutNode}\n </button>\n );\n};\n\nexport default SidebarCollapseToggle;\n"],"mappings":";;;;;;;;AAiBA,IAAa,KAAyB,EACpC,gBACA,aACA,OAAA,IAAQ,YACR,aACA,mBAC6C;CAC7C,IAAI,IAAO,GACP,IAAgB;AACpB,CAAI,MACF,IAAO,GACP,IAAgB;CAGlB,IAAI,IAAmC;AAKvC,QAJI,KAAY,SACd,IAAe,kBAAC,GAAD,EAAc,MAAM,GAAY,CAAA,GAI/C,kBAAC,UAAD;EACE,MAAK;EACL,WAAW,EAAG,GAAe,EAAU;EACvC,SAAS;EACT,gBAAc;YAJhB;GAME,kBAAC,QAAD;IAAM,WAAW;IAAa,eAAY;cACxC,kBAAC,GAAD;KAAM,OAAO;KAAI,QAAQ;KAAM,CAAA;IAC1B,CAAA;GACP,kBAAC,QAAD;IAAM,WAAW;cAAe;IAAqB,CAAA;GACpD;GACM"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
/* empty css */
|
|
3
|
+
//#region src/backoffice/molecules/sidebar_collapse_toggle/sidebarCollapseToggle.css.ts
|
|
4
|
+
var e = "_1x7c0k51 _1x7c0k50 txvbqbnv6 txvbqboif txvbqbp5f txvbqblx6 txvbqb9jf txvbqbco txvbqbao6 txvbqb1rf txvbqbuzj txvbqb12f txvbqb1px txvbqbv txvbqb8x txvbqbv8r txvbqb78 txvbqb6x txvbqb7k", t = "_1x7c0k52 txvbqb9jf txvbqbco txvbqbdnx txvbqbtwo txvbqbc66", n = "_1x7c0k53 txvbqb9mx";
|
|
5
|
+
//#endregion
|
|
6
|
+
export { e as button, t as icon, n as label };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=sidebarCollapseToggle.css.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebarCollapseToggle.css.js","names":[],"sources":["../../../../../src/backoffice/molecules/sidebar_collapse_toggle/sidebarCollapseToggle.css.ts"],"sourcesContent":["import { style } from '@vanilla-extract/css';\n\nimport { sprinkles } from '@plumile/ui/theme/sprinkles.css.js';\nimport { vars } from '@plumile/ui/theme/themeContract.js';\n\nexport const button = style([\n sprinkles({\n display: 'inline-flex',\n alignItems: 'center',\n gap: 2,\n paddingX: 3,\n paddingY: 2,\n borderRadius: 'md',\n backgroundColor: 'transparent',\n borderWidth: 0,\n borderStyle: 'none',\n cursor: 'pointer',\n fontSize: 'sm',\n color: 'textSecondary',\n transitionProperty: 'colors',\n transitionDuration: 150,\n transitionTimingFunction: 'ease',\n }),\n {\n selectors: {\n '&:hover': {\n backgroundColor: vars.colors.surfaceMuted,\n color: vars.colors.text,\n },\n },\n },\n]);\n\nexport const icon = sprinkles({\n display: 'inline-flex',\n alignItems: 'center',\n justifyContent: 'center',\n width: 6,\n height: 6,\n});\n\nexport const label = sprinkles({ flex: 1 });\n"],"mappings":""}
|