UNPKG

@yamada-ui/checkbox

Version:

Yamada UI checkbox component

67 lines (64 loc) 2.63 kB
"use client" "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); // src/checkbox-card-description.tsx var checkbox_card_description_exports = {}; __export(checkbox_card_description_exports, { CheckboxCardDescription: () => CheckboxCardDescription }); module.exports = __toCommonJS(checkbox_card_description_exports); var import_core = require("@yamada-ui/core"); var import_core2 = require("@yamada-ui/core"); var import_utils2 = require("@yamada-ui/utils"); // src/checkbox-context.tsx var import_utils = require("@yamada-ui/utils"); var [CheckboxGroupProvider, useCheckboxGroupContext] = (0, import_utils.createContext)({ name: "CheckboxGroupContext", strict: false }); var [CheckboxCardGroupProvider, useCheckboxCardGroupContext] = (0, import_utils.createContext)({ name: "CheckboxCardGroupContext", strict: false }); var [CheckboxCardProvider, useCheckboxCardContext] = (0, import_utils.createContext)({ name: "CheckboxCardContext", errorMessage: `useCheckboxCardContext returned is 'undefined'. Seems you forgot to wrap the components in "<CheckboxCard />"` }); // src/checkbox-card-description.tsx var import_jsx_runtime = require("react/jsx-runtime"); var CheckboxCardDescription = (0, import_core.forwardRef)(({ className, ...rest }, ref) => { const { styles } = useCheckboxCardContext(); const css = { ...styles.description }; return /* @__PURE__ */ (0, import_jsx_runtime.jsx)( import_core2.ui.div, { ref, className: (0, import_utils2.cx)("ui-checkbox-card__description", className), __css: css, ...rest } ); }); CheckboxCardDescription.displayName = "CheckboxCardDescription"; CheckboxCardDescription.__ui__ = "CheckboxCardDescription"; // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { CheckboxCardDescription }); //# sourceMappingURL=checkbox-card-description.js.map