michangarrito/apps/mcp-server/node_modules/hono/dist/jsx/utils.js
rckrdmrd 48dea7a5d0 feat: Initial commit - michangarrito
Marketplace móvil para negocios locales mexicanos.

Estructura inicial:
- apps/backend (NestJS API)
- apps/frontend (React Web)
- apps/mobile (Expo/React Native)
- apps/mcp-server (Claude MCP Server)
- apps/whatsapp-service (WhatsApp Business API)
- database/ (PostgreSQL DDL)
- docs/ (Documentación)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-07 04:41:02 -06:00

28 lines
897 B
JavaScript

// src/jsx/utils.ts
var normalizeElementKeyMap = /* @__PURE__ */ new Map([
["className", "class"],
["htmlFor", "for"],
["crossOrigin", "crossorigin"],
["httpEquiv", "http-equiv"],
["itemProp", "itemprop"],
["fetchPriority", "fetchpriority"],
["noModule", "nomodule"],
["formAction", "formaction"]
]);
var normalizeIntrinsicElementKey = (key) => normalizeElementKeyMap.get(key) || key;
var styleObjectForEach = (style, fn) => {
for (const [k, v] of Object.entries(style)) {
const key = k[0] === "-" || !/[A-Z]/.test(k) ? k : k.replace(/[A-Z]/g, (m) => `-${m.toLowerCase()}`);
fn(
key,
v == null ? null : typeof v === "number" ? !key.match(
/^(?:a|border-im|column(?:-c|s)|flex(?:$|-[^b])|grid-(?:ar|[^a])|font-w|li|or|sca|st|ta|wido|z)|ty$/
) ? `${v}px` : `${v}` : v
);
}
};
export {
normalizeIntrinsicElementKey,
styleObjectForEach
};