+
+ Popup can include any component
+
+
+
+
+
+
diff --git a/codex-ui/dev/routes.ts b/codex-ui/dev/routes.ts
index 0ab61454..8334a2c2 100644
--- a/codex-ui/dev/routes.ts
+++ b/codex-ui/dev/routes.ts
@@ -28,6 +28,8 @@ import VerticalMenu from './pages/components/VerticalMenu.vue';
import ContextMenu from './pages/components/ContextMenu.vue';
import Editor from './pages/components/Editor.vue';
import ThemePreview from './pages/components/ThemePreview.vue';
+import Popup from './pages/components/Popup.vue';
+import Confirm from './pages/components/Confirm.vue';
/**
* Vue router routes list
@@ -145,6 +147,14 @@ const routes: RouteRecordRaw[] = [
path: '/components/theme-preview',
component: ThemePreview as Component,
},
+ {
+ path: '/components/popup',
+ component: Popup as Component,
+ },
+ {
+ path: '/components/confirm',
+ component: Confirm as Component,
+ },
];
export default routes;
diff --git a/codex-ui/src/styles/z-axis.pcss b/codex-ui/src/styles/z-axis.pcss
index 0e7ac9c8..b818278f 100644
--- a/codex-ui/src/styles/z-axis.pcss
+++ b/codex-ui/src/styles/z-axis.pcss
@@ -1,3 +1,4 @@
:root {
--z-popover: 3;
+ --z-popup: calc(var(--z-popover) + 1);
}
diff --git a/codex-ui/src/vue/components/confirm/Confirm.vue b/codex-ui/src/vue/components/confirm/Confirm.vue
new file mode 100644
index 00000000..ff236dc4
--- /dev/null
+++ b/codex-ui/src/vue/components/confirm/Confirm.vue
@@ -0,0 +1,135 @@
+