Skip to content

pantoken-root / stacking

stacking ​

Beta

@pantoken/plugin-stacking — مستويات z-index المسماة.

تعرض View في InstUI مقياس تراكب (deepest, below, above, topmost) بحيث تتراكم الطبقات بشكل متوقع بدلًا من الأرقام السحرية المضبوطة يدويًا. يصدر هذا المكوّن الإضافي --instui-stacking-<level> رموزًا (tokens)، تُحل إلى قيم z-index ملموسة من الرموز المرفقة --instui-component-view-stacking-* للمستهلكين الذين يستخدمون خط أنابيب @pantoken/css/@pantoken/tokens منخفض المستوى مباشرة. فئات الأدوات المساعدة المطابقة .instui-stack-<level> موجودة الآن في أداة stacking الخاصة بـ @pantoken/components.

Example ​

ts
import { buildTokens } from "@pantoken/core/build";
import { stacking } from "@pantoken/plugin-stacking";

const tokens = buildTokens({ theme: "rebrand", plugins: [stacking()] });
// → includes --instui-stacking-topmost: …

الواجهات ​

المتغيرات ​

الدوال ​

References ​

default ​

يعيد تسمية ويعيد تصدير stacking