UNPKG

@crossed/demo

Version:

A universal & performant styling library for React Native, Next.js & React

60 lines (59 loc) 3.33 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var List_exports = {}; __export(List_exports, { ListDemo: () => ListDemo }); module.exports = __toCommonJS(List_exports); var import_jsx_runtime = require("react/jsx-runtime"); var import_react_native_unicons = require("@iconscout/react-native-unicons"); var import_ui = require("@crossed/ui"); const ListDemo = ({ color, size }) => { return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ui.List, { color, size, children: [ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ui.List.Item, { icon: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native_unicons.UilSetting, {}), iconAfter: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native_unicons.UilAngleRight, {}), pressable: true, children: [ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ui.List.Title, { children: "Setting" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ui.List.SubTitle, { children: "Setting of your account" }) ] }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ui.List.Item, { iconAfter: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native_unicons.UilAngleRight, {}), pressable: true, children: [ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ui.List.Title, { children: "Profile" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ui.List.SubTitle, { children: "Manage social information" }) ] }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_ui.List.Item, { iconAfter: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native_unicons.UilAngleRight, {}), pressable: true, children: [ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ui.List.Title, { children: "Security" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ui.List.SubTitle, { children: "Modify security account" }) ] }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)( import_ui.List.Item, { title: "Users", subtitle: "List permissions users", disabled: true, iconAfter: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native_unicons.UilAngleRight, {}), pressable: true } ), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ui.List.Item, { title: "Log out", iconAfter: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native_unicons.UilAngleRight, {}), pressable: true }) ] }); }; ListDemo.displayName = "ListDemo"; // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { ListDemo }); //# sourceMappingURL=List.js.map