UNPKG

@nurl/panda-preset

Version:

Official Panda-CSS preset for the Ganglion Design System.

83 lines (82 loc) 2.18 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); // src/recipes/iconButton.ts var iconButton_exports = {}; __export(iconButton_exports, { iconButton: () => iconButton }); module.exports = __toCommonJS(iconButton_exports); var import_dev = require("@pandacss/dev"); var import_button = require("./shared/button.base.cjs"); var import_palettes = require("./shared/palettes.cjs"); var iconButton = (0, import_dev.defineRecipe)({ className: "icon-button", description: "The styles for the IconButton component", base: { ...import_button.buttonBase }, variants: { palette: import_palettes.allPalettes, size: { xs: { h: "1.5rem", w: "1.5rem", pxi: "1" }, sm: { h: "2rem", w: "2rem", pxi: "2" }, md: { h: "2.5rem", w: "2.5rem", pxi: "2.5" }, lg: { h: "3rem", w: "3rem", pxi: "3" } }, shape: { circle: { borderRadius: "50%" }, square: { borderRadius: "0.375rem" } }, usage: { text: import_button.textUsage, filled: import_button.filledUsage } }, defaultVariants: { palette: "action", size: "lg", shape: "square", usage: "filled" } }); // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { iconButton }); //# sourceMappingURL=iconButton.cjs.map