@axzydev/axzy_ui_system 1.0.161 → 1.0.162

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -3107,63 +3107,61 @@ function ITTable({
3107
3107
  return value;
3108
3108
  }
3109
3109
  };
3110
- return /* @__PURE__ */ jsxs11("div", { className: clsx12("space-y-4 w-full", containerClassName), children: [
3111
- /* @__PURE__ */ jsxs11("div", { className: "bg-white rounded-xl shadow-sm border border-secondary-200 overflow-hidden", children: [
3112
- title && /* @__PURE__ */ jsx15("div", { className: "bg-white px-6 py-5 border-b border-secondary-100", children: /* @__PURE__ */ jsx15("h2", { className: "text-xl font-bold text-secondary-900 leading-tight", children: title }) }),
3113
- /* @__PURE__ */ jsx15("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsxs11(
3114
- "table",
3115
- {
3116
- className: clsx12(
3117
- "min-w-max w-full text-sm text-left text-secondary-600",
3118
- variantStyles[variant],
3119
- sizeStyles[size]
3120
- ),
3121
- children: [
3122
- /* @__PURE__ */ jsx15("thead", { children: /* @__PURE__ */ jsx15("tr", { className: "bg-secondary-50 border-b border-secondary-200 text-xs uppercase tracking-wider font-semibold text-secondary-500", children: columns.map((col) => /* @__PURE__ */ jsx15(
3123
- "th",
3124
- {
3125
- scope: "col",
3126
- className: clsx12("px-4 py-4 align-top", col.className),
3127
- children: /* @__PURE__ */ jsxs11("div", { className: "flex flex-col gap-3 min-w-[150px]", children: [
3128
- /* @__PURE__ */ jsxs11("div", { className: "flex items-center justify-between gap-2", children: [
3129
- /* @__PURE__ */ jsx15("span", { className: "text-secondary-700 font-bold", children: col.label }),
3130
- col.sortable && col.type !== "actions" && /* @__PURE__ */ jsx15(
3131
- "button",
3132
- {
3133
- onClick: () => handleSort(col.key),
3134
- className: `p-1 rounded-md transition-colors ${sortConfig?.key === col.key ? "bg-secondary-200 text-secondary-900" : "hover:bg-secondary-200 text-secondary-400 hover:text-secondary-700"}`,
3135
- title: `Ordenar por ${col.label}`,
3136
- children: /* @__PURE__ */ jsx15(MdOutlineSwapVert, { className: "w-4 h-4", "aria-hidden": "true" })
3137
- }
3138
- )
3139
- ] }),
3140
- /* @__PURE__ */ jsx15("div", { className: "w-full", children: col.filter ? renderFilterInput(col) : null })
3141
- ] })
3142
- },
3143
- col.key
3144
- )) }) }),
3145
- /* @__PURE__ */ jsx15("tbody", { className: "divide-y divide-secondary-100", children: currentData.length > 0 ? currentData.map((row, rowIndex) => /* @__PURE__ */ jsx15(
3146
- "tr",
3147
- {
3148
- className: "hover:bg-secondary-50/50 transition-colors duration-150 group",
3149
- children: columns.map((col) => /* @__PURE__ */ jsx15(
3150
- "td",
3151
- {
3152
- className: clsx12("px-4 py-3 align-middle", col.className),
3153
- children: col.type === "actions" ? /* @__PURE__ */ jsx15("div", { className: "flex items-center justify-center gap-2", children: renderCellContent(col, row) }) : /* @__PURE__ */ jsx15("div", { className: "text-secondary-700 font-medium", children: renderCellContent(col, row) })
3154
- },
3155
- `${rowIndex}-${col.key}`
3156
- ))
3157
- },
3158
- rowIndex
3159
- )) : /* @__PURE__ */ jsx15("tr", { children: /* @__PURE__ */ jsx15("td", { colSpan: columns.length, className: "px-6 py-12 text-center", children: /* @__PURE__ */ jsxs11("div", { className: "flex flex-col items-center justify-center text-secondary-400", children: [
3160
- /* @__PURE__ */ jsx15("span", { className: "text-lg", children: "No se encontraron resultados" }),
3161
- /* @__PURE__ */ jsx15("span", { className: "text-sm mt-1", children: "Intenta ajustar los filtros" })
3162
- ] }) }) }) })
3163
- ]
3164
- }
3165
- ) })
3166
- ] }),
3110
+ return /* @__PURE__ */ jsx15("div", { className: clsx12("space-y-4 w-full", containerClassName), children: /* @__PURE__ */ jsxs11("div", { className: "bg-white rounded-xl shadow-sm border border-secondary-200 overflow-hidden", children: [
3111
+ title && /* @__PURE__ */ jsx15("div", { className: "bg-white px-6 py-5 border-b border-secondary-100", children: /* @__PURE__ */ jsx15("h2", { className: "text-xl font-bold text-secondary-900 leading-tight", children: title }) }),
3112
+ /* @__PURE__ */ jsx15("div", { className: "overflow-x-auto", children: /* @__PURE__ */ jsxs11(
3113
+ "table",
3114
+ {
3115
+ className: clsx12(
3116
+ "min-w-max w-full text-sm text-left text-secondary-600",
3117
+ variantStyles[variant],
3118
+ sizeStyles[size]
3119
+ ),
3120
+ children: [
3121
+ /* @__PURE__ */ jsx15("thead", { children: /* @__PURE__ */ jsx15("tr", { className: "bg-secondary-50 border-b border-secondary-200 text-xs uppercase tracking-wider font-semibold text-secondary-500", children: columns.map((col) => /* @__PURE__ */ jsx15(
3122
+ "th",
3123
+ {
3124
+ scope: "col",
3125
+ className: clsx12("px-4 py-4 align-top", col.className),
3126
+ children: /* @__PURE__ */ jsxs11("div", { className: "flex flex-col gap-3 min-w-[150px]", children: [
3127
+ /* @__PURE__ */ jsxs11("div", { className: "flex items-center justify-between gap-2", children: [
3128
+ /* @__PURE__ */ jsx15("span", { className: "text-secondary-700 font-bold", children: col.label }),
3129
+ col.sortable && col.type !== "actions" && /* @__PURE__ */ jsx15(
3130
+ "button",
3131
+ {
3132
+ onClick: () => handleSort(col.key),
3133
+ className: `p-1 rounded-md transition-colors ${sortConfig?.key === col.key ? "bg-secondary-200 text-secondary-900" : "hover:bg-secondary-200 text-secondary-400 hover:text-secondary-700"}`,
3134
+ title: `Ordenar por ${col.label}`,
3135
+ children: /* @__PURE__ */ jsx15(MdOutlineSwapVert, { className: "w-4 h-4", "aria-hidden": "true" })
3136
+ }
3137
+ )
3138
+ ] }),
3139
+ /* @__PURE__ */ jsx15("div", { className: "w-full", children: col.filter ? renderFilterInput(col) : null })
3140
+ ] })
3141
+ },
3142
+ col.key
3143
+ )) }) }),
3144
+ /* @__PURE__ */ jsx15("tbody", { className: "divide-y divide-secondary-100", children: currentData.length > 0 ? currentData.map((row, rowIndex) => /* @__PURE__ */ jsx15(
3145
+ "tr",
3146
+ {
3147
+ className: "hover:bg-secondary-50/50 transition-colors duration-150 group",
3148
+ children: columns.map((col) => /* @__PURE__ */ jsx15(
3149
+ "td",
3150
+ {
3151
+ className: clsx12("px-4 py-3 align-middle", col.className),
3152
+ children: col.type === "actions" ? /* @__PURE__ */ jsx15("div", { className: "flex items-center justify-center gap-2", children: renderCellContent(col, row) }) : /* @__PURE__ */ jsx15("div", { className: "text-secondary-700 font-medium", children: renderCellContent(col, row) })
3153
+ },
3154
+ `${rowIndex}-${col.key}`
3155
+ ))
3156
+ },
3157
+ rowIndex
3158
+ )) : /* @__PURE__ */ jsx15("tr", { children: /* @__PURE__ */ jsx15("td", { colSpan: columns.length, className: "px-6 py-12 text-center", children: /* @__PURE__ */ jsxs11("div", { className: "flex flex-col items-center justify-center text-secondary-400", children: [
3159
+ /* @__PURE__ */ jsx15("span", { className: "text-lg", children: "No se encontraron resultados" }),
3160
+ /* @__PURE__ */ jsx15("span", { className: "text-sm mt-1", children: "Intenta ajustar los filtros" })
3161
+ ] }) }) }) })
3162
+ ]
3163
+ }
3164
+ ) }),
3167
3165
  /* @__PURE__ */ jsx15("div", { className: "bg-white rounded-b-xl border-t border-secondary-200 px-6 py-4", children: /* @__PURE__ */ jsx15(
3168
3166
  ITPagination,
3169
3167
  {
@@ -3177,7 +3175,7 @@ function ITTable({
3177
3175
  totalItems: filteredData.length
3178
3176
  }
3179
3177
  ) })
3180
- ] });
3178
+ ] }) });
3181
3179
  }
3182
3180
 
3183
3181
  // src/types/toast.types.ts