@crossed/primitive
Version:
A universal & performant styling library for React Native, Next.js & React
52 lines (51 loc) • 2.04 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 Input_exports = {};
__export(Input_exports, {
createInput: () => createInput,
useInputContext: () => import_context.useInputContext
});
module.exports = __toCommonJS(Input_exports);
var import_core = require("@crossed/core");
var import_InputInput = require("./InputInput");
var import_InputGroup = require("./InputGroup");
var import_InputElement = require("./InputElement");
var import_context = require("./context");
const createInput = (components) => {
const { Group, Element, Addon, Input } = components;
const InputGroup = (0, import_InputGroup.createInputGroup)(Group);
const InputInput = (0, import_InputInput.createInput)(Input, InputGroup);
const InputElement = (0, import_InputElement.createInputElement)(Element);
const InputAddon = Addon;
InputInput.displayName = "Input";
InputGroup.displayName = "Input.Group";
InputElement.displayName = "Input.Element";
InputAddon.displayName = "Input.Addon";
return (0, import_core.withStaticProperties)(InputInput, {
Group: InputGroup,
Addon: InputAddon,
Element: InputElement
});
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
createInput,
useInputContext
});
//# sourceMappingURL=index.js.map