@axzydev/axzy_ui_system 1.2.3 → 1.2.4
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.cjs +98 -87
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +98 -87
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/layout/layout.tsx +2 -1
- package/src/components/page/page.props.ts +2 -0
- package/src/components/page/page.tsx +52 -47
- package/src/components/page-header/page-header.tsx +1 -2
package/dist/index.cjs
CHANGED
|
@@ -6653,10 +6653,9 @@ function ITNavbar({
|
|
|
6653
6653
|
}
|
|
6654
6654
|
|
|
6655
6655
|
// src/components/page/page.tsx
|
|
6656
|
-
var
|
|
6656
|
+
var import_clsx28 = __toESM(require("clsx"), 1);
|
|
6657
6657
|
|
|
6658
6658
|
// src/components/page-header/page-header.tsx
|
|
6659
|
-
var import_clsx26 = __toESM(require("clsx"), 1);
|
|
6660
6659
|
var import_fa16 = require("react-icons/fa");
|
|
6661
6660
|
var import_jsx_runtime33 = require("react/jsx-runtime");
|
|
6662
6661
|
function ITPageHeader({
|
|
@@ -6668,7 +6667,7 @@ function ITPageHeader({
|
|
|
6668
6667
|
className
|
|
6669
6668
|
}) {
|
|
6670
6669
|
const showTopRow = breadcrumbs?.length || backAction;
|
|
6671
|
-
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className
|
|
6670
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className, children: [
|
|
6672
6671
|
showTopRow && /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center justify-between gap-4 mb-1", children: [
|
|
6673
6672
|
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex items-center gap-2 min-w-0", children: [
|
|
6674
6673
|
backAction && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
@@ -6695,7 +6694,7 @@ function ITPageHeader({
|
|
|
6695
6694
|
}
|
|
6696
6695
|
|
|
6697
6696
|
// src/components/skeleton/skeleton.tsx
|
|
6698
|
-
var
|
|
6697
|
+
var import_clsx26 = __toESM(require("clsx"), 1);
|
|
6699
6698
|
var import_jsx_runtime34 = require("react/jsx-runtime");
|
|
6700
6699
|
var variantClasses = {
|
|
6701
6700
|
text: "rounded-md h-4 w-full",
|
|
@@ -6719,7 +6718,7 @@ function ITSkeleton({
|
|
|
6719
6718
|
return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_jsx_runtime34.Fragment, { children: items.map((i) => /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
|
|
6720
6719
|
"div",
|
|
6721
6720
|
{
|
|
6722
|
-
className: (0,
|
|
6721
|
+
className: (0, import_clsx26.default)(
|
|
6723
6722
|
"animate-pulse bg-slate-200 dark:bg-slate-700",
|
|
6724
6723
|
variantClasses[variant],
|
|
6725
6724
|
variant === "text" && count > 1 && i < count - 1 && "mb-2",
|
|
@@ -6735,7 +6734,7 @@ function ITSkeleton({
|
|
|
6735
6734
|
}
|
|
6736
6735
|
|
|
6737
6736
|
// src/components/stack/stack.tsx
|
|
6738
|
-
var
|
|
6737
|
+
var import_clsx27 = __toESM(require("clsx"), 1);
|
|
6739
6738
|
var import_react25 = require("react");
|
|
6740
6739
|
var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
6741
6740
|
var directionMap2 = {
|
|
@@ -6785,7 +6784,7 @@ function ITStack({
|
|
|
6785
6784
|
return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
|
|
6786
6785
|
Component,
|
|
6787
6786
|
{
|
|
6788
|
-
className: (0,
|
|
6787
|
+
className: (0, import_clsx27.default)(
|
|
6789
6788
|
"flex",
|
|
6790
6789
|
directionMap2[direction],
|
|
6791
6790
|
alignItems && alignMap2[alignItems],
|
|
@@ -6804,48 +6803,68 @@ function ITStack({
|
|
|
6804
6803
|
|
|
6805
6804
|
// src/components/page/page.tsx
|
|
6806
6805
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
6807
|
-
|
|
6808
|
-
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
|
|
6815
|
-
|
|
6816
|
-
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
|
|
6820
|
-
|
|
6821
|
-
|
|
6822
|
-
|
|
6806
|
+
var hasHeader = (props) => !!(props.title || props.description || props.breadcrumbs || props.actions || props.backAction);
|
|
6807
|
+
var renderHeader = (props) => {
|
|
6808
|
+
if (!hasHeader(props)) return null;
|
|
6809
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
6810
|
+
ITPageHeader,
|
|
6811
|
+
{
|
|
6812
|
+
title: props.title || "",
|
|
6813
|
+
description: props.description,
|
|
6814
|
+
breadcrumbs: props.breadcrumbs,
|
|
6815
|
+
actions: props.actions,
|
|
6816
|
+
backAction: props.backAction
|
|
6817
|
+
}
|
|
6818
|
+
);
|
|
6819
|
+
};
|
|
6820
|
+
function ITPage(props) {
|
|
6821
|
+
const {
|
|
6822
|
+
loading = false,
|
|
6823
|
+
error = null,
|
|
6824
|
+
errorTitle,
|
|
6825
|
+
errorActionLabel,
|
|
6826
|
+
onRetry,
|
|
6827
|
+
empty = false,
|
|
6828
|
+
emptyTitle,
|
|
6829
|
+
emptyDescription,
|
|
6830
|
+
emptyAction,
|
|
6831
|
+
className,
|
|
6832
|
+
children
|
|
6833
|
+
} = props;
|
|
6834
|
+
const wrapperClass = (0, import_clsx28.default)("space-y-6", className);
|
|
6823
6835
|
if (loading) {
|
|
6824
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className, children: [
|
|
6825
|
-
|
|
6826
|
-
/* @__PURE__ */ (0, import_jsx_runtime36.
|
|
6836
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: wrapperClass, children: [
|
|
6837
|
+
renderHeader(props),
|
|
6838
|
+
/* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(ITStack, { spacing: 4, children: [
|
|
6827
6839
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ITSkeleton, { variant: "rectangular", height: 40, width: "40%" }),
|
|
6828
6840
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ITSkeleton, { variant: "rectangular", height: 200 }),
|
|
6829
6841
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(ITSkeleton, { variant: "rectangular", height: 200 })
|
|
6830
|
-
] })
|
|
6842
|
+
] })
|
|
6831
6843
|
] });
|
|
6832
6844
|
}
|
|
6833
6845
|
if (error) {
|
|
6834
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className, children: [
|
|
6835
|
-
|
|
6846
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: wrapperClass, children: [
|
|
6847
|
+
renderHeader(props),
|
|
6836
6848
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
6837
6849
|
ITEmptyState,
|
|
6838
6850
|
{
|
|
6839
|
-
title: "Error",
|
|
6851
|
+
title: errorTitle || "Error",
|
|
6840
6852
|
description: error,
|
|
6841
|
-
action: onRetry ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
6853
|
+
action: onRetry ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
6854
|
+
ITButton,
|
|
6855
|
+
{
|
|
6856
|
+
label: errorActionLabel || "Reintentar",
|
|
6857
|
+
onClick: onRetry,
|
|
6858
|
+
size: "small"
|
|
6859
|
+
}
|
|
6860
|
+
) : void 0
|
|
6842
6861
|
}
|
|
6843
6862
|
)
|
|
6844
6863
|
] });
|
|
6845
6864
|
}
|
|
6846
6865
|
if (empty) {
|
|
6847
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className, children: [
|
|
6848
|
-
|
|
6866
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: wrapperClass, children: [
|
|
6867
|
+
renderHeader(props),
|
|
6849
6868
|
/* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
|
|
6850
6869
|
ITEmptyState,
|
|
6851
6870
|
{
|
|
@@ -6856,24 +6875,15 @@ function ITPage({
|
|
|
6856
6875
|
)
|
|
6857
6876
|
] });
|
|
6858
6877
|
}
|
|
6859
|
-
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className:
|
|
6860
|
-
(
|
|
6861
|
-
ITPageHeader,
|
|
6862
|
-
{
|
|
6863
|
-
title: title || "",
|
|
6864
|
-
description,
|
|
6865
|
-
breadcrumbs,
|
|
6866
|
-
actions,
|
|
6867
|
-
backAction
|
|
6868
|
-
}
|
|
6869
|
-
),
|
|
6878
|
+
return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: wrapperClass, children: [
|
|
6879
|
+
renderHeader(props),
|
|
6870
6880
|
children
|
|
6871
6881
|
] });
|
|
6872
6882
|
}
|
|
6873
6883
|
|
|
6874
6884
|
// src/components/popover/popover.tsx
|
|
6875
6885
|
var import_react26 = require("react");
|
|
6876
|
-
var
|
|
6886
|
+
var import_clsx29 = __toESM(require("clsx"), 1);
|
|
6877
6887
|
var import_jsx_runtime37 = require("react/jsx-runtime");
|
|
6878
6888
|
var positionClasses = {
|
|
6879
6889
|
top: "bottom-full left-1/2 -translate-x-1/2 mb-2",
|
|
@@ -6897,14 +6907,14 @@ function ITPopover({
|
|
|
6897
6907
|
if (isControlled) onClose?.();
|
|
6898
6908
|
else setInternalOpen(false);
|
|
6899
6909
|
});
|
|
6900
|
-
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { ref, className: (0,
|
|
6910
|
+
return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { ref, className: (0, import_clsx29.default)("relative inline-flex", className), children: [
|
|
6901
6911
|
/* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { onClick: () => isControlled ? onClose?.() : setInternalOpen((p) => !p), className: "cursor-pointer", children: trigger }),
|
|
6902
|
-
open && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: (0,
|
|
6912
|
+
open && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: (0, import_clsx29.default)("absolute z-[200]", positionClasses[position]), children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "bg-white dark:bg-slate-800 rounded-xl shadow-xl border border-slate-200 dark:border-slate-700 p-3 min-w-[160px]", children }) })
|
|
6903
6913
|
] });
|
|
6904
6914
|
}
|
|
6905
6915
|
|
|
6906
6916
|
// src/components/progress/progress.tsx
|
|
6907
|
-
var
|
|
6917
|
+
var import_clsx30 = __toESM(require("clsx"), 1);
|
|
6908
6918
|
var import_jsx_runtime38 = require("react/jsx-runtime");
|
|
6909
6919
|
var colorMap = {
|
|
6910
6920
|
primary: "bg-primary-500",
|
|
@@ -6935,7 +6945,7 @@ function ITProgress({
|
|
|
6935
6945
|
return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
6936
6946
|
"div",
|
|
6937
6947
|
{
|
|
6938
|
-
className: (0,
|
|
6948
|
+
className: (0, import_clsx30.default)("w-full bg-slate-200 dark:bg-slate-700 rounded-full overflow-hidden", sizeMap3[size], className),
|
|
6939
6949
|
style,
|
|
6940
6950
|
role: "progressbar",
|
|
6941
6951
|
"aria-valuenow": variant === "determinate" ? value : void 0,
|
|
@@ -6943,7 +6953,7 @@ function ITProgress({
|
|
|
6943
6953
|
children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
|
|
6944
6954
|
"div",
|
|
6945
6955
|
{
|
|
6946
|
-
className: (0,
|
|
6956
|
+
className: (0, import_clsx30.default)(
|
|
6947
6957
|
"h-full rounded-full transition-all duration-500",
|
|
6948
6958
|
colorMap[color],
|
|
6949
6959
|
variant === "indeterminate" && "animate-pulse w-1/2"
|
|
@@ -6956,7 +6966,7 @@ function ITProgress({
|
|
|
6956
6966
|
}
|
|
6957
6967
|
|
|
6958
6968
|
// src/components/radio/radio.tsx
|
|
6959
|
-
var
|
|
6969
|
+
var import_clsx31 = __toESM(require("clsx"), 1);
|
|
6960
6970
|
var import_jsx_runtime39 = require("react/jsx-runtime");
|
|
6961
6971
|
function ITRadioGroup({
|
|
6962
6972
|
name,
|
|
@@ -6970,7 +6980,7 @@ function ITRadioGroup({
|
|
|
6970
6980
|
return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
6971
6981
|
"div",
|
|
6972
6982
|
{
|
|
6973
|
-
className: (0,
|
|
6983
|
+
className: (0, import_clsx31.default)(
|
|
6974
6984
|
"flex gap-3",
|
|
6975
6985
|
direction === "row" ? "flex-row flex-wrap" : "flex-col",
|
|
6976
6986
|
className
|
|
@@ -6980,7 +6990,7 @@ function ITRadioGroup({
|
|
|
6980
6990
|
return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
|
|
6981
6991
|
"label",
|
|
6982
6992
|
{
|
|
6983
|
-
className: (0,
|
|
6993
|
+
className: (0, import_clsx31.default)(
|
|
6984
6994
|
"inline-flex items-center gap-2 cursor-pointer select-none",
|
|
6985
6995
|
disabled && "opacity-50 cursor-not-allowed"
|
|
6986
6996
|
),
|
|
@@ -7000,7 +7010,7 @@ function ITRadioGroup({
|
|
|
7000
7010
|
/* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
|
|
7001
7011
|
"div",
|
|
7002
7012
|
{
|
|
7003
|
-
className: (0,
|
|
7013
|
+
className: (0, import_clsx31.default)(
|
|
7004
7014
|
"w-4 h-4 rounded-full border-2 flex items-center justify-center transition-all",
|
|
7005
7015
|
isSelected ? "border-primary-500" : "border-slate-300 dark:border-slate-600",
|
|
7006
7016
|
!disabled && "peer-focus:ring-2 peer-focus:ring-primary-200"
|
|
@@ -7020,7 +7030,7 @@ function ITRadioGroup({
|
|
|
7020
7030
|
|
|
7021
7031
|
// src/components/search-select/search-select.tsx
|
|
7022
7032
|
var import_react27 = require("react");
|
|
7023
|
-
var
|
|
7033
|
+
var import_clsx32 = __toESM(require("clsx"), 1);
|
|
7024
7034
|
var import_fa17 = require("react-icons/fa");
|
|
7025
7035
|
var import_jsx_runtime40 = require("react/jsx-runtime");
|
|
7026
7036
|
function ITSearchSelect({
|
|
@@ -7139,12 +7149,12 @@ function ITSearchSelect({
|
|
|
7139
7149
|
}
|
|
7140
7150
|
return style;
|
|
7141
7151
|
};
|
|
7142
|
-
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: (0,
|
|
7152
|
+
return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: (0, import_clsx32.default)("w-full flex flex-col gap-1.5", className, isOpen && "relative z-30"), ref: containerRef, children: [
|
|
7143
7153
|
label && /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
|
|
7144
7154
|
ITText,
|
|
7145
7155
|
{
|
|
7146
7156
|
as: "label",
|
|
7147
|
-
className: (0,
|
|
7157
|
+
className: (0, import_clsx32.default)("text-sm font-medium text-gray-700 dark:text-slate-300", {
|
|
7148
7158
|
"text-red-500": hasError
|
|
7149
7159
|
}),
|
|
7150
7160
|
children: [
|
|
@@ -7174,7 +7184,7 @@ function ITSearchSelect({
|
|
|
7174
7184
|
),
|
|
7175
7185
|
/* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "absolute right-3 flex items-center gap-2 text-gray-400 pointer-events-none", children: [
|
|
7176
7186
|
isLoading && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "animate-spin h-4 w-4 border-2 border-primary-500 border-t-transparent rounded-full" }),
|
|
7177
|
-
!isLoading && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_fa17.FaSearch, { size: 14, className: (0,
|
|
7187
|
+
!isLoading && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_fa17.FaSearch, { size: 14, className: (0, import_clsx32.default)({ "text-primary-500": isFocused }) })
|
|
7178
7188
|
] })
|
|
7179
7189
|
] }),
|
|
7180
7190
|
isOpen && /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "absolute z-50 w-full mt-1 bg-white dark:bg-slate-900 border border-gray-200 dark:border-slate-800 rounded-lg shadow-xl overflow-hidden animate-in fade-in zoom-in duration-200 origin-top", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { className: "max-h-60 overflow-y-auto", children: filteredOptions.length > 0 ? filteredOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
|
|
@@ -7182,7 +7192,7 @@ function ITSearchSelect({
|
|
|
7182
7192
|
{
|
|
7183
7193
|
as: "div",
|
|
7184
7194
|
onClick: () => handleSelect(option),
|
|
7185
|
-
className: (0,
|
|
7195
|
+
className: (0, import_clsx32.default)(
|
|
7186
7196
|
"px-4 py-2 text-sm cursor-pointer transition-colors",
|
|
7187
7197
|
value === option[valueField] ? "bg-primary-50 dark:bg-primary-950/40 text-primary-700 dark:text-primary-300 font-medium" : "hover:bg-gray-50 dark:hover:bg-slate-800 text-gray-700 dark:text-slate-300"
|
|
7188
7198
|
),
|
|
@@ -7196,7 +7206,7 @@ function ITSearchSelect({
|
|
|
7196
7206
|
}
|
|
7197
7207
|
|
|
7198
7208
|
// src/components/searchTable/searchTable.tsx
|
|
7199
|
-
var
|
|
7209
|
+
var import_clsx34 = __toESM(require("clsx"), 1);
|
|
7200
7210
|
var import_react28 = require("react");
|
|
7201
7211
|
|
|
7202
7212
|
// src/components/searchTable/components/SearchInput.tsx
|
|
@@ -7343,7 +7353,7 @@ var getNestedValue4 = (obj, path) => {
|
|
|
7343
7353
|
};
|
|
7344
7354
|
|
|
7345
7355
|
// src/components/searchTable/components/TableRow.tsx
|
|
7346
|
-
var
|
|
7356
|
+
var import_clsx33 = __toESM(require("clsx"), 1);
|
|
7347
7357
|
var import_fa20 = require("react-icons/fa");
|
|
7348
7358
|
|
|
7349
7359
|
// src/components/searchTable/components/EditableCell.tsx
|
|
@@ -7539,7 +7549,7 @@ function TableRow({
|
|
|
7539
7549
|
children: columns.map((col) => /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7540
7550
|
"td",
|
|
7541
7551
|
{
|
|
7542
|
-
className: (0,
|
|
7552
|
+
className: (0, import_clsx33.default)("pl-5 py-2", col.className, {
|
|
7543
7553
|
"text-center": col.type === "actions" || col.type === "boolean"
|
|
7544
7554
|
}),
|
|
7545
7555
|
children: isEditing && col.editable ? /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
@@ -7554,7 +7564,7 @@ function TableRow({
|
|
|
7554
7564
|
) : /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
|
|
7555
7565
|
"div",
|
|
7556
7566
|
{
|
|
7557
|
-
className: (0,
|
|
7567
|
+
className: (0, import_clsx33.default)({
|
|
7558
7568
|
"flex flex-col items-center justify-center gap-1 ": col.type === "actions"
|
|
7559
7569
|
}),
|
|
7560
7570
|
children: renderCellContent(
|
|
@@ -7739,7 +7749,7 @@ function ITSearchTable({
|
|
|
7739
7749
|
handleClearSearch();
|
|
7740
7750
|
onClearSearch?.();
|
|
7741
7751
|
};
|
|
7742
|
-
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: (0,
|
|
7752
|
+
return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: (0, import_clsx34.default)("space-y-4 w-full", containerClassName), children: [
|
|
7743
7753
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "shadow-md sm:rounded-lg overflow-hidden", children: [
|
|
7744
7754
|
title && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "bg-teal-500 text-white px-6 py-4", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ITText, { as: "h2", className: "text-xl font-bold text-center whitespace-nowrap", children: title }) }),
|
|
7745
7755
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "bg-white", children: [
|
|
@@ -7757,7 +7767,7 @@ function ITSearchTable({
|
|
|
7757
7767
|
/* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "overflow-x-auto", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
|
|
7758
7768
|
"table",
|
|
7759
7769
|
{
|
|
7760
|
-
className: (0,
|
|
7770
|
+
className: (0, import_clsx34.default)(
|
|
7761
7771
|
"min-w-full text-sm text-left bg-white text-gray-900 table-auto",
|
|
7762
7772
|
variantStyles[variant],
|
|
7763
7773
|
sizeStyles[size]
|
|
@@ -8105,7 +8115,7 @@ function ITSidebar({
|
|
|
8105
8115
|
|
|
8106
8116
|
// src/components/slide/slide.tsx
|
|
8107
8117
|
var import_react30 = require("react");
|
|
8108
|
-
var
|
|
8118
|
+
var import_clsx35 = __toESM(require("clsx"), 1);
|
|
8109
8119
|
var import_jsx_runtime53 = require("react/jsx-runtime");
|
|
8110
8120
|
function ITSlideToggle({
|
|
8111
8121
|
onToggle,
|
|
@@ -8163,7 +8173,7 @@ function ITSlideToggle({
|
|
|
8163
8173
|
"div",
|
|
8164
8174
|
{
|
|
8165
8175
|
onClick: toggleSwitch,
|
|
8166
|
-
className: (0,
|
|
8176
|
+
className: (0, import_clsx35.default)(
|
|
8167
8177
|
"flex items-center rounded-full p-1 transition-colors duration-300",
|
|
8168
8178
|
container,
|
|
8169
8179
|
disabled ? "opacity-50 cursor-not-allowed" : "cursor-pointer",
|
|
@@ -8182,7 +8192,7 @@ function ITSlideToggle({
|
|
|
8182
8192
|
children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
|
|
8183
8193
|
"div",
|
|
8184
8194
|
{
|
|
8185
|
-
className: (0,
|
|
8195
|
+
className: (0, import_clsx35.default)(
|
|
8186
8196
|
"bg-white rounded-full shadow-md transform transition-transform duration-300 pointer-events-none",
|
|
8187
8197
|
knob,
|
|
8188
8198
|
isOn ? translate : "translate-x-0"
|
|
@@ -8194,7 +8204,7 @@ function ITSlideToggle({
|
|
|
8194
8204
|
}
|
|
8195
8205
|
|
|
8196
8206
|
// src/components/slider/slider.tsx
|
|
8197
|
-
var
|
|
8207
|
+
var import_clsx36 = __toESM(require("clsx"), 1);
|
|
8198
8208
|
var import_jsx_runtime54 = require("react/jsx-runtime");
|
|
8199
8209
|
function ITSlider({
|
|
8200
8210
|
value,
|
|
@@ -8206,7 +8216,7 @@ function ITSlider({
|
|
|
8206
8216
|
disabled = false,
|
|
8207
8217
|
className
|
|
8208
8218
|
}) {
|
|
8209
|
-
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: (0,
|
|
8219
|
+
return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: (0, import_clsx36.default)("flex flex-col gap-1.5", className), children: [
|
|
8210
8220
|
label && /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(ITText, { as: "label", className: "text-xs font-semibold text-gray-600 dark:text-gray-400", children: [
|
|
8211
8221
|
label,
|
|
8212
8222
|
": ",
|
|
@@ -8222,7 +8232,7 @@ function ITSlider({
|
|
|
8222
8232
|
value,
|
|
8223
8233
|
onChange: (e) => onChange(Number(e.target.value)),
|
|
8224
8234
|
disabled,
|
|
8225
|
-
className: (0,
|
|
8235
|
+
className: (0, import_clsx36.default)(
|
|
8226
8236
|
"w-full h-1.5 appearance-none rounded-full outline-none cursor-pointer",
|
|
8227
8237
|
"bg-gray-200 dark:bg-gray-700",
|
|
8228
8238
|
"accent-primary-500",
|
|
@@ -8242,7 +8252,7 @@ function ITSlider({
|
|
|
8242
8252
|
}
|
|
8243
8253
|
|
|
8244
8254
|
// src/components/stat-card/stat-card.tsx
|
|
8245
|
-
var
|
|
8255
|
+
var import_clsx37 = __toESM(require("clsx"), 1);
|
|
8246
8256
|
var import_jsx_runtime55 = require("react/jsx-runtime");
|
|
8247
8257
|
var trendColors = {
|
|
8248
8258
|
up: "text-emerald-600 bg-emerald-50 dark:text-emerald-400 dark:bg-emerald-950/30",
|
|
@@ -8263,7 +8273,7 @@ function ITStatCard({
|
|
|
8263
8273
|
return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)(
|
|
8264
8274
|
"div",
|
|
8265
8275
|
{
|
|
8266
|
-
className: (0,
|
|
8276
|
+
className: (0, import_clsx37.default)("rounded-xl p-4 border border-slate-100 dark:border-slate-800", color, className),
|
|
8267
8277
|
style,
|
|
8268
8278
|
onClick,
|
|
8269
8279
|
role: onClick ? "button" : void 0,
|
|
@@ -8275,7 +8285,7 @@ function ITStatCard({
|
|
|
8275
8285
|
] }),
|
|
8276
8286
|
/* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "flex items-baseline gap-2", children: [
|
|
8277
8287
|
/* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ITText, { as: "span", className: "text-2xl font-bold text-slate-800 dark:text-white", children: value }),
|
|
8278
|
-
trend && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ITText, { as: "span", className: (0,
|
|
8288
|
+
trend && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(ITText, { as: "span", className: (0, import_clsx37.default)("text-[11px] font-semibold px-1.5 py-0.5 rounded-md", trendColors[trendDirection]), children: trend })
|
|
8279
8289
|
] })
|
|
8280
8290
|
]
|
|
8281
8291
|
}
|
|
@@ -8283,7 +8293,7 @@ function ITStatCard({
|
|
|
8283
8293
|
}
|
|
8284
8294
|
|
|
8285
8295
|
// src/components/textarea/textarea.tsx
|
|
8286
|
-
var
|
|
8296
|
+
var import_clsx38 = __toESM(require("clsx"), 1);
|
|
8287
8297
|
var import_jsx_runtime56 = require("react/jsx-runtime");
|
|
8288
8298
|
var resizeMap = {
|
|
8289
8299
|
none: "resize-none",
|
|
@@ -8304,7 +8314,7 @@ function ITTextarea({
|
|
|
8304
8314
|
maxLength,
|
|
8305
8315
|
resize = "vertical"
|
|
8306
8316
|
}) {
|
|
8307
|
-
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: (0,
|
|
8317
|
+
return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: (0, import_clsx38.default)("flex flex-col gap-1.5", className), children: [
|
|
8308
8318
|
label && /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(ITText, { as: "label", className: inputLabel(!!error), htmlFor: name, children: label }),
|
|
8309
8319
|
/* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
|
|
8310
8320
|
"textarea",
|
|
@@ -8317,7 +8327,7 @@ function ITTextarea({
|
|
|
8317
8327
|
rows,
|
|
8318
8328
|
disabled,
|
|
8319
8329
|
maxLength,
|
|
8320
|
-
className: (0,
|
|
8330
|
+
className: (0, import_clsx38.default)(
|
|
8321
8331
|
"w-full border border-solid transition-all duration-200 rounded-lg px-3 py-2 text-sm outline-none",
|
|
8322
8332
|
"focus:ring-2",
|
|
8323
8333
|
resizeMap[resize],
|
|
@@ -8331,7 +8341,7 @@ function ITTextarea({
|
|
|
8331
8341
|
}
|
|
8332
8342
|
|
|
8333
8343
|
// src/components/triple-filter/tripleFilter.tsx
|
|
8334
|
-
var
|
|
8344
|
+
var import_clsx39 = __toESM(require("clsx"), 1);
|
|
8335
8345
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
8336
8346
|
var colorMap2 = {
|
|
8337
8347
|
primary: "text-primary-600",
|
|
@@ -8354,14 +8364,14 @@ var ITTripleFilter = ({
|
|
|
8354
8364
|
return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
8355
8365
|
"div",
|
|
8356
8366
|
{
|
|
8357
|
-
className: (0,
|
|
8367
|
+
className: (0, import_clsx39.default)("flex bg-slate-100 p-1 rounded-xl gap-1 w-fit", className),
|
|
8358
8368
|
children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
|
|
8359
8369
|
"button",
|
|
8360
8370
|
{
|
|
8361
8371
|
onClick: () => onChange(option.value),
|
|
8362
|
-
className: (0,
|
|
8372
|
+
className: (0, import_clsx39.default)(
|
|
8363
8373
|
"px-4 py-1.5 rounded-lg text-[10px] font-bold uppercase tracking-wider transition-all duration-200 whitespace-nowrap",
|
|
8364
|
-
value === option.value ? (0,
|
|
8374
|
+
value === option.value ? (0, import_clsx39.default)("bg-white shadow-sm", colorMap2[color]) : "text-slate-400 hover:text-slate-600"
|
|
8365
8375
|
),
|
|
8366
8376
|
children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ITText, { as: "span", children: option.label })
|
|
8367
8377
|
},
|
|
@@ -8383,7 +8393,7 @@ var positionStyles = {
|
|
|
8383
8393
|
};
|
|
8384
8394
|
|
|
8385
8395
|
// src/components/toast/toast.tsx
|
|
8386
|
-
var
|
|
8396
|
+
var import_clsx40 = __toESM(require("clsx"), 1);
|
|
8387
8397
|
var import_react31 = require("react");
|
|
8388
8398
|
var import_fa23 = require("react-icons/fa");
|
|
8389
8399
|
var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
@@ -8429,7 +8439,7 @@ function ITToast({
|
|
|
8429
8439
|
return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
|
|
8430
8440
|
"div",
|
|
8431
8441
|
{
|
|
8432
|
-
className: (0,
|
|
8442
|
+
className: (0, import_clsx40.default)(
|
|
8433
8443
|
"fixed z-50 p-4 rounded-xl shadow-xl flex items-center justify-between gap-4 transition-all duration-300 text-white min-w-[300px]",
|
|
8434
8444
|
positionStyles[position],
|
|
8435
8445
|
{
|
|
@@ -8463,7 +8473,7 @@ function ITToast({
|
|
|
8463
8473
|
// src/components/dropfile/dropfile.tsx
|
|
8464
8474
|
var import_react32 = require("react");
|
|
8465
8475
|
var import_react_dropzone = require("react-dropzone");
|
|
8466
|
-
var
|
|
8476
|
+
var import_clsx41 = __toESM(require("clsx"), 1);
|
|
8467
8477
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
8468
8478
|
var FileTypeEnum = /* @__PURE__ */ ((FileTypeEnum2) => {
|
|
8469
8479
|
FileTypeEnum2["PDF"] = "application/pdf";
|
|
@@ -8668,7 +8678,7 @@ var ITDropfile = ({
|
|
|
8668
8678
|
handleCancel();
|
|
8669
8679
|
};
|
|
8670
8680
|
const isImage = fileType && fileType.startsWith("image/");
|
|
8671
|
-
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: (0,
|
|
8681
|
+
return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: (0, import_clsx41.default)("w-full transition-all duration-300", containerClassName), children: [
|
|
8672
8682
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex items-center justify-between mb-2", children: [
|
|
8673
8683
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("label", { className: "block text-sm font-semibold text-gray-700", children: [
|
|
8674
8684
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ITText, { as: "span", children: "Subir archivo " }),
|
|
@@ -8712,7 +8722,7 @@ var ITDropfile = ({
|
|
|
8712
8722
|
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)(ITText, { as: "p", className: "text-[10px] text-gray-500", children: selectedFile ? (selectedFile.size / 1024 / 1024).toFixed(2) + " MB" : "" })
|
|
8713
8723
|
] })
|
|
8714
8724
|
] }) }),
|
|
8715
|
-
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: (0,
|
|
8725
|
+
/* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: (0, import_clsx41.default)("relative bg-gray-100 flex items-center justify-center", !contentClassName ? "max-h-[200px] min-h-[100px] overflow-auto" : contentClassName), children: selectedFile && fileType?.startsWith("image/") || !selectedFile && imagePreview ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
|
|
8716
8726
|
"img",
|
|
8717
8727
|
{
|
|
8718
8728
|
src: imagePreview,
|
|
@@ -8774,6 +8784,7 @@ var dropfile_default = ITDropfile;
|
|
|
8774
8784
|
|
|
8775
8785
|
// src/components/layout/layout.tsx
|
|
8776
8786
|
var import_react34 = require("react");
|
|
8787
|
+
var import_clsx42 = __toESM(require("clsx"), 1);
|
|
8777
8788
|
|
|
8778
8789
|
// src/components/topbar/topbar.tsx
|
|
8779
8790
|
var import_fa24 = require("react-icons/fa");
|
|
@@ -9010,7 +9021,7 @@ function ITLayout({
|
|
|
9010
9021
|
)
|
|
9011
9022
|
}
|
|
9012
9023
|
),
|
|
9013
|
-
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("main", { className: "flex-1 overflow-y-auto w-full custom-scrollbar relative z-0", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className:
|
|
9024
|
+
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("main", { className: "flex-1 overflow-y-auto w-full custom-scrollbar relative z-0", children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: (0, import_clsx42.default)("mx-auto w-full max-w-7xl px-4 sm:px-6 lg:px-8 py-6 h-full", contentClassName), children }) })
|
|
9014
9025
|
] })
|
|
9015
9026
|
] });
|
|
9016
9027
|
}
|