@crossed/primitive
Version:
A universal & performant styling library for React Native, Next.js & React
58 lines (57 loc) • 2.31 kB
JavaScript
;
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, {
createList: () => createList
});
module.exports = __toCommonJS(List_exports);
var import_core = require("@crossed/core");
var import_List = require("./List");
var import_ListItem = require("./ListItem");
var import_ListTitle = require("./ListTitle");
var import_ListSubTitle = require("./ListSubTitle");
var import_ListLabel = require("./ListLabel");
var import_ListDivider = require("./ListDivider");
const createList = (components) => {
const { Root, Item, Title, SubTitle, Label, Divider } = components;
const List = (0, import_List.createListMain)(Root);
const ListItem = (0, import_ListItem.createListItem)(Item);
const ListTitle = (0, import_ListTitle.createListTitle)(Title);
const ListSubTitle = (0, import_ListSubTitle.createListSubTitle)(SubTitle);
const ListLabel = (0, import_ListLabel.createListLabel)(Label);
const ListDivider = (0, import_ListDivider.createListDivider)(Divider);
List.displayName = "List";
ListItem.displayName = "List.Item";
ListTitle.displayName = "List.Title";
ListSubTitle.displayName = "List.SubTitle";
ListLabel.displayName = "List.Label";
ListDivider.displayName = "List.Divider";
return (0, import_core.withStaticProperties)(List, {
Item: ListItem,
Title: ListTitle,
SubTitle: ListSubTitle,
Label: ListLabel,
Divider: ListDivider
});
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
createList
});
//# sourceMappingURL=index.js.map