Commit inicial - WordPress Análisis de Precios Unitarios

- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-11-03 21:04:30 -06:00
commit a22573bf0b
24068 changed files with 4993111 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
/**
* External Dependencies
*/
import clx from 'classnames';
export default function CheckboxList({
id,
onChange,
options,
value = '',
isButton = false,
}) {
const wrapClassName = clx('advads-radio-list', { 'is-button': isButton });
return (
<div className={wrapClassName}>
{options.map((option) => {
const checkboxId = `checkbox-${option.value}-${id}`;
const props = {
type: 'checkbox',
id: checkboxId,
value: option.value,
checked: false,
};
if (value) {
props.checked = value.includes(option.value);
}
return (
<div className="advads-radio-list--item" key={option.value}>
<input
{...props}
onChange={() => onChange(option.value)}
/>
<label htmlFor={checkboxId}>
<span>{option.label}</span>
</label>
</div>
);
})}
</div>
);
}

View File

@@ -0,0 +1,49 @@
/**
* External Dependencies
*/
import clx from 'classnames';
export default function RadioList({
id,
onChange,
options,
value = '',
isButton = false,
className = '',
}) {
const wrapClassName = clx(
'advads-radio-list',
{ 'is-button': isButton },
className
);
return (
<div className={wrapClassName}>
{options.map((option) => {
const radioId = `radio-${option.value}-${id}`;
const props = {
type: 'radio',
id: radioId,
name: id,
value: option.value,
};
if (value) {
props.checked = value === option.value;
}
return (
<div className="advads-radio-list--item" key={option.value}>
<input
{...props}
onChange={() => onChange(option.value)}
/>
<label htmlFor={radioId}>
<span>{option.label}</span>
</label>
</div>
);
})}
</div>
);
}