Files
wdi-dashboard/node_modules/@chakra-ui/icon/dist/icon.js
2024-08-16 15:06:52 +05:30

95 lines
3.1 KiB
JavaScript

'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/icon.tsx
var icon_exports = {};
__export(icon_exports, {
Icon: () => Icon,
default: () => icon_default
});
module.exports = __toCommonJS(icon_exports);
var import_system = require("@chakra-ui/system");
var import_shared_utils = require("@chakra-ui/shared-utils");
var import_jsx_runtime = require("react/jsx-runtime");
var fallbackIcon = {
path: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("g", { stroke: "currentColor", strokeWidth: "1.5", children: [
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
"path",
{
strokeLinecap: "round",
fill: "none",
d: "M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"
}
),
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
"path",
{
fill: "currentColor",
strokeLinecap: "round",
d: "M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"
}
),
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("circle", { fill: "none", strokeMiterlimit: "10", cx: "12", cy: "12", r: "11.25" })
] }),
viewBox: "0 0 24 24"
};
var Icon = (0, import_system.forwardRef)((props, ref) => {
const {
as: element,
viewBox,
color = "currentColor",
focusable = false,
children,
className,
__css,
...rest
} = props;
const _className = (0, import_shared_utils.cx)("chakra-icon", className);
const customStyles = (0, import_system.useStyleConfig)("Icon", props);
const styles = {
w: "1em",
h: "1em",
display: "inline-block",
lineHeight: "1em",
flexShrink: 0,
color,
...__css,
...customStyles
};
const shared = {
ref,
focusable,
className: _className,
__css: styles
};
const _viewBox = viewBox != null ? viewBox : fallbackIcon.viewBox;
if (element && typeof element !== "string") {
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_system.chakra.svg, { as: element, ...shared, ...rest });
}
const _path = children != null ? children : fallbackIcon.path;
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_system.chakra.svg, { verticalAlign: "middle", viewBox: _viewBox, ...shared, ...rest, children: _path });
});
Icon.displayName = "Icon";
var icon_default = Icon;
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
Icon
});
//# sourceMappingURL=icon.js.map