// @ts-nocheck import type { Meta, StoryObj } from "@storybook/react"; import React from "react"; import { View, Text, StyleSheet } from "react-native"; import { ZName } from "./react-native"; const meta = { title: "ZName/ReactNative", component: ZName, parameters: { layout: "padded", }, tags: ["autodocs"], argTypes: { name: { control: "select", options: [ "base", "dropdown", "header", "sidebar", "overlay", "modal", "notification", "tooltip", ], }, zIndex: { control: "number", }, }, } satisfies Meta; export default meta; type Story = StoryObj; const Box = ({ color, label }: { color: string; label: string }) => ( {label} ); export const Default: Story = { args: { name: "modal", children: , }, }; export const LayersDemo: Story = { render: () => ( ), }; export const CustomZIndex: Story = { args: { name: "modal", zIndex: 999, children: , }, }; export const WithCustomConfig: Story = { render: () => ( ), }; const styles = StyleSheet.create({ container: { flex: 1, position: "relative", minHeight: 400, }, box: { padding: 20, borderRadius: 8, position: "absolute", minWidth: 200, shadowColor: "#000", shadowOffset: { width: 0, height: 2, }, shadowOpacity: 0.25, shadowRadius: 3.84, }, text: { color: "#fff", fontSize: 16, fontWeight: "bold", }, offset1: { position: "absolute", top: 20, left: 20 }, offset2: { position: "absolute", top: 40, left: 40 }, offset3: { position: "absolute", top: 60, left: 60 }, offset4: { position: "absolute", top: 80, left: 80 }, offset5: { position: "absolute", top: 100, left: 100 }, offset6: { position: "absolute", top: 120, left: 120 }, offset7: { position: "absolute", top: 140, left: 140 }, });