@almadar/ui 5.5.3 → 5.5.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/avl/index.cjs +40 -23
- package/dist/avl/index.js +40 -23
- package/dist/components/index.cjs +40 -23
- package/dist/components/index.js +40 -23
- package/dist/components/molecules/DataGrid.d.ts +1 -1
- package/dist/components/molecules/DataList.d.ts +1 -1
- package/dist/providers/index.cjs +40 -23
- package/dist/providers/index.js +40 -23
- package/dist/runtime/index.cjs +40 -23
- package/dist/runtime/index.js +40 -23
- package/package.json +1 -1
|
@@ -22225,7 +22225,8 @@ function DataGrid({
|
|
|
22225
22225
|
reorderEvent,
|
|
22226
22226
|
positionEvent,
|
|
22227
22227
|
dndItemIdField,
|
|
22228
|
-
dndRoot
|
|
22228
|
+
dndRoot,
|
|
22229
|
+
look = "dense"
|
|
22229
22230
|
}) {
|
|
22230
22231
|
const eventBus = useEventBus();
|
|
22231
22232
|
const { t } = useTranslate();
|
|
@@ -22341,7 +22342,7 @@ function DataGrid({
|
|
|
22341
22342
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
22342
22343
|
exports.Box,
|
|
22343
22344
|
{
|
|
22344
|
-
className: cn("grid", gapStyles6[gap], colsClass, className),
|
|
22345
|
+
className: cn("grid", gapStyles6[gap], colsClass, lookStyles5[look], className),
|
|
22345
22346
|
style: gridTemplateColumns ? { gridTemplateColumns } : void 0,
|
|
22346
22347
|
children: data.map((item, index) => {
|
|
22347
22348
|
const itemData = item;
|
|
@@ -22518,7 +22519,7 @@ function DataGrid({
|
|
|
22518
22519
|
] })
|
|
22519
22520
|
);
|
|
22520
22521
|
}
|
|
22521
|
-
var dataGridLog, BADGE_VARIANTS, gapStyles6;
|
|
22522
|
+
var dataGridLog, BADGE_VARIANTS, gapStyles6, lookStyles5;
|
|
22522
22523
|
var init_DataGrid = __esm({
|
|
22523
22524
|
"components/molecules/DataGrid.tsx"() {
|
|
22524
22525
|
"use client";
|
|
@@ -22553,6 +22554,13 @@ var init_DataGrid = __esm({
|
|
|
22553
22554
|
lg: "gap-6",
|
|
22554
22555
|
xl: "gap-8"
|
|
22555
22556
|
};
|
|
22557
|
+
lookStyles5 = {
|
|
22558
|
+
dense: "gap-2 [&>*]:p-card-sm",
|
|
22559
|
+
spacious: "gap-8 [&>*]:p-card-lg",
|
|
22560
|
+
striped: "[&>*:nth-child(even)]:bg-muted/30",
|
|
22561
|
+
borderless: "[&>*]:border-0 [&>*]:shadow-none",
|
|
22562
|
+
"card-rows": "[&>*]:shadow-elevation-card [&>*]:rounded-container [&>*]:border [&>*]:border-border [&>*]:p-card-md"
|
|
22563
|
+
};
|
|
22556
22564
|
DataGrid.displayName = "DataGrid";
|
|
22557
22565
|
}
|
|
22558
22566
|
});
|
|
@@ -22636,7 +22644,8 @@ function DataList({
|
|
|
22636
22644
|
reorderEvent: dndReorderEvent,
|
|
22637
22645
|
positionEvent,
|
|
22638
22646
|
dndItemIdField,
|
|
22639
|
-
dndRoot
|
|
22647
|
+
dndRoot,
|
|
22648
|
+
look = "dense"
|
|
22640
22649
|
}) {
|
|
22641
22650
|
const eventBus = useEventBus();
|
|
22642
22651
|
const { t } = useTranslate();
|
|
@@ -22901,6 +22910,7 @@ function DataList({
|
|
|
22901
22910
|
className: cn(
|
|
22902
22911
|
isCard && "bg-card rounded-xl border border-border shadow-elevation-dialog overflow-hidden",
|
|
22903
22912
|
!isCard && gapClass,
|
|
22913
|
+
listLookStyles[look],
|
|
22904
22914
|
className
|
|
22905
22915
|
),
|
|
22906
22916
|
children: [
|
|
@@ -22938,7 +22948,7 @@ function DataList({
|
|
|
22938
22948
|
)
|
|
22939
22949
|
);
|
|
22940
22950
|
}
|
|
22941
|
-
var dataListLog;
|
|
22951
|
+
var dataListLog, listLookStyles;
|
|
22942
22952
|
var init_DataList = __esm({
|
|
22943
22953
|
"components/molecules/DataList.tsx"() {
|
|
22944
22954
|
"use client";
|
|
@@ -22957,6 +22967,13 @@ var init_DataList = __esm({
|
|
|
22957
22967
|
init_InfiniteScrollSentinel();
|
|
22958
22968
|
init_useDataDnd();
|
|
22959
22969
|
dataListLog = logger.createLogger("almadar:ui:data-list");
|
|
22970
|
+
listLookStyles = {
|
|
22971
|
+
dense: "[&_[data-entity-row]>div]:!py-1 [&_[data-entity-row]>div]:!px-3",
|
|
22972
|
+
spacious: "[&_[data-entity-row]>div]:!py-5 [&_[data-entity-row]>div]:!px-8",
|
|
22973
|
+
striped: "[&_[data-entity-row]:nth-child(even)>div]:bg-muted/30",
|
|
22974
|
+
borderless: "[&_[data-entity-row]>div]:!border-0 [&_[data-entity-row]>div]:!hover:border-transparent",
|
|
22975
|
+
"card-rows": "[&_[data-entity-row]>div]:shadow-elevation-card [&_[data-entity-row]>div]:rounded-container [&_[data-entity-row]>div]:!border [&_[data-entity-row]>div]:border-border [&_[data-entity-row]]:mb-2"
|
|
22976
|
+
};
|
|
22960
22977
|
DataList.displayName = "DataList";
|
|
22961
22978
|
}
|
|
22962
22979
|
});
|
|
@@ -23192,7 +23209,7 @@ var init_useQuerySingleton = __esm({
|
|
|
23192
23209
|
queryStores = /* @__PURE__ */ new Map();
|
|
23193
23210
|
}
|
|
23194
23211
|
});
|
|
23195
|
-
var resolveFilterType,
|
|
23212
|
+
var resolveFilterType, lookStyles6; exports.FilterGroup = void 0;
|
|
23196
23213
|
var init_FilterGroup = __esm({
|
|
23197
23214
|
"components/molecules/FilterGroup.tsx"() {
|
|
23198
23215
|
"use client";
|
|
@@ -23206,7 +23223,7 @@ var init_FilterGroup = __esm({
|
|
|
23206
23223
|
init_useEventBus();
|
|
23207
23224
|
init_useQuerySingleton();
|
|
23208
23225
|
resolveFilterType = (filter) => filter.filterType ?? filter.type;
|
|
23209
|
-
|
|
23226
|
+
lookStyles6 = {
|
|
23210
23227
|
toolbar: "",
|
|
23211
23228
|
chips: "gap-2 [&>*]:rounded-pill [&>*]:px-3 [&>*]:py-1",
|
|
23212
23229
|
pills: "gap-2 [&>*]:rounded-pill",
|
|
@@ -23283,7 +23300,7 @@ var init_FilterGroup = __esm({
|
|
|
23283
23300
|
{
|
|
23284
23301
|
gap: "md",
|
|
23285
23302
|
align: "center",
|
|
23286
|
-
className: cn("flex-wrap",
|
|
23303
|
+
className: cn("flex-wrap", lookStyles6[look], className),
|
|
23287
23304
|
children: [
|
|
23288
23305
|
showIcon && /* @__PURE__ */ jsxRuntime.jsx(exports.Icon, { name: "filter", className: "h-4 w-4 text-muted-foreground" }),
|
|
23289
23306
|
filters.map((filter) => /* @__PURE__ */ jsxRuntime.jsxs(exports.HStack, { gap: "xs", align: "center", children: [
|
|
@@ -23342,7 +23359,7 @@ var init_FilterGroup = __esm({
|
|
|
23342
23359
|
);
|
|
23343
23360
|
}
|
|
23344
23361
|
if (variant === "vertical") {
|
|
23345
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex flex-col gap-4",
|
|
23362
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: cn("flex flex-col gap-4", lookStyles6[look], className), children: [
|
|
23346
23363
|
showIcon && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 text-muted-foreground", children: [
|
|
23347
23364
|
/* @__PURE__ */ jsxRuntime.jsx(exports.Icon, { name: "filter", className: "h-4 w-4" }),
|
|
23348
23365
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-bold uppercase tracking-wide", children: "Filters" })
|
|
@@ -23430,7 +23447,7 @@ var init_FilterGroup = __esm({
|
|
|
23430
23447
|
{
|
|
23431
23448
|
gap: "sm",
|
|
23432
23449
|
align: "center",
|
|
23433
|
-
className: cn("flex-wrap",
|
|
23450
|
+
className: cn("flex-wrap", lookStyles6[look], className),
|
|
23434
23451
|
children: [
|
|
23435
23452
|
showIcon && /* @__PURE__ */ jsxRuntime.jsx(exports.Icon, { name: "filter", className: "h-4 w-4 text-muted-foreground" }),
|
|
23436
23453
|
filters.map((filter) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-w-[120px]", children: resolveFilterType(filter) === "date" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -23527,7 +23544,7 @@ var init_FilterGroup = __esm({
|
|
|
23527
23544
|
"p-4 rounded-container",
|
|
23528
23545
|
"bg-card",
|
|
23529
23546
|
"border-[length:var(--border-width)] border-border",
|
|
23530
|
-
|
|
23547
|
+
lookStyles6[look],
|
|
23531
23548
|
className
|
|
23532
23549
|
),
|
|
23533
23550
|
children: /* @__PURE__ */ jsxRuntime.jsxs(exports.HStack, { gap: "md", align: "center", className: "flex-wrap", children: [
|
|
@@ -28285,7 +28302,7 @@ function composeDisplayValue(value, format, max, prefix, suffix) {
|
|
|
28285
28302
|
const withMax = max != null && max > 0 ? `${formatted} / ${max}` : formatted;
|
|
28286
28303
|
return `${prefix ?? ""}${withMax}${suffix ?? ""}`;
|
|
28287
28304
|
}
|
|
28288
|
-
var
|
|
28305
|
+
var lookStyles7, variantColor; exports.StatDisplay = void 0;
|
|
28289
28306
|
var init_StatDisplay = __esm({
|
|
28290
28307
|
"components/molecules/StatDisplay.tsx"() {
|
|
28291
28308
|
"use client";
|
|
@@ -28297,7 +28314,7 @@ var init_StatDisplay = __esm({
|
|
|
28297
28314
|
init_Sparkline();
|
|
28298
28315
|
init_Icon();
|
|
28299
28316
|
init_useEventBus();
|
|
28300
|
-
|
|
28317
|
+
lookStyles7 = {
|
|
28301
28318
|
elevated: "",
|
|
28302
28319
|
flat: "shadow-none border-[length:var(--border-width)] border-border",
|
|
28303
28320
|
"progress-backed": "",
|
|
@@ -28384,7 +28401,7 @@ var init_StatDisplay = __esm({
|
|
|
28384
28401
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
28385
28402
|
exports.Card,
|
|
28386
28403
|
{
|
|
28387
|
-
className: cn(padSizes[size],
|
|
28404
|
+
className: cn(padSizes[size], lookStyles7[look], clickEvent && "cursor-pointer hover:shadow-md transition-shadow", className),
|
|
28388
28405
|
onClick: clickEvent ? handleClick : void 0,
|
|
28389
28406
|
children: /* @__PURE__ */ jsxRuntime.jsxs(exports.HStack, { align: "start", justify: "between", children: [
|
|
28390
28407
|
/* @__PURE__ */ jsxRuntime.jsxs(exports.VStack, { gap: "none", className: "space-y-1 flex-1", children: [
|
|
@@ -34195,7 +34212,7 @@ function DataTable({
|
|
|
34195
34212
|
{
|
|
34196
34213
|
className: cn(
|
|
34197
34214
|
"bg-card border-2 border-border rounded-none overflow-hidden",
|
|
34198
|
-
|
|
34215
|
+
lookStyles8[look],
|
|
34199
34216
|
className
|
|
34200
34217
|
),
|
|
34201
34218
|
children: [
|
|
@@ -34422,7 +34439,7 @@ function DataTable({
|
|
|
34422
34439
|
}
|
|
34423
34440
|
);
|
|
34424
34441
|
}
|
|
34425
|
-
var
|
|
34442
|
+
var lookStyles8;
|
|
34426
34443
|
var init_DataTable = __esm({
|
|
34427
34444
|
"components/organisms/DataTable.tsx"() {
|
|
34428
34445
|
"use client";
|
|
@@ -34436,7 +34453,7 @@ var init_DataTable = __esm({
|
|
|
34436
34453
|
init_useEventBus();
|
|
34437
34454
|
init_useTranslate();
|
|
34438
34455
|
init_types3();
|
|
34439
|
-
|
|
34456
|
+
lookStyles8 = {
|
|
34440
34457
|
dense: "",
|
|
34441
34458
|
spacious: "[&_tbody_tr_td]:py-5 [&_thead_tr_th]:py-4",
|
|
34442
34459
|
striped: "[&_tbody_tr:nth-child(odd)]:bg-muted/30",
|
|
@@ -37696,7 +37713,7 @@ var init_GraphCanvas = __esm({
|
|
|
37696
37713
|
exports.GraphCanvas.displayName = "GraphCanvas";
|
|
37697
37714
|
}
|
|
37698
37715
|
});
|
|
37699
|
-
var
|
|
37716
|
+
var lookStyles9; exports.Header = void 0;
|
|
37700
37717
|
var init_Header = __esm({
|
|
37701
37718
|
"components/organisms/Header.tsx"() {
|
|
37702
37719
|
"use client";
|
|
@@ -37709,7 +37726,7 @@ var init_Header = __esm({
|
|
|
37709
37726
|
init_Typography();
|
|
37710
37727
|
init_cn();
|
|
37711
37728
|
init_useTranslate();
|
|
37712
|
-
|
|
37729
|
+
lookStyles9 = {
|
|
37713
37730
|
"compact-bar": "",
|
|
37714
37731
|
hero: "py-section min-h-[200px] [&_h1]:text-display-1",
|
|
37715
37732
|
breadcrumb: "py-2 text-sm [&_h1]:text-base [&_h1]:font-medium",
|
|
@@ -37749,7 +37766,7 @@ var init_Header = __esm({
|
|
|
37749
37766
|
"flex items-center px-4 justify-between bg-card",
|
|
37750
37767
|
sticky && "sticky top-0 z-50",
|
|
37751
37768
|
variant === "mobile" && "lg:hidden",
|
|
37752
|
-
|
|
37769
|
+
lookStyles9[look],
|
|
37753
37770
|
className
|
|
37754
37771
|
),
|
|
37755
37772
|
children: [
|
|
@@ -44746,7 +44763,7 @@ var init_TeamOrganism = __esm({
|
|
|
44746
44763
|
exports.TeamOrganism.displayName = "TeamOrganism";
|
|
44747
44764
|
}
|
|
44748
44765
|
});
|
|
44749
|
-
var
|
|
44766
|
+
var lookStyles10, STATUS_STYLES3; exports.Timeline = void 0;
|
|
44750
44767
|
var init_Timeline = __esm({
|
|
44751
44768
|
"components/organisms/Timeline.tsx"() {
|
|
44752
44769
|
"use client";
|
|
@@ -44757,7 +44774,7 @@ var init_Timeline = __esm({
|
|
|
44757
44774
|
init_ErrorState();
|
|
44758
44775
|
init_EmptyState();
|
|
44759
44776
|
init_useTranslate();
|
|
44760
|
-
|
|
44777
|
+
lookStyles10 = {
|
|
44761
44778
|
"vertical-compact": "gap-1 [&>*]:py-1",
|
|
44762
44779
|
"vertical-spacious": "",
|
|
44763
44780
|
horizontal: "flex-row [&>*]:flex-row [&>*]:items-center",
|
|
@@ -44850,7 +44867,7 @@ var init_Timeline = __esm({
|
|
|
44850
44867
|
}
|
|
44851
44868
|
return /* @__PURE__ */ jsxRuntime.jsx(exports.Card, { className: cn("p-6", className), children: /* @__PURE__ */ jsxRuntime.jsxs(exports.VStack, { gap: "md", children: [
|
|
44852
44869
|
title && /* @__PURE__ */ jsxRuntime.jsx(exports.Typography, { variant: "h5", weight: "semibold", children: title }),
|
|
44853
|
-
/* @__PURE__ */ jsxRuntime.jsx(exports.VStack, { gap: "none", className: cn("relative",
|
|
44870
|
+
/* @__PURE__ */ jsxRuntime.jsx(exports.VStack, { gap: "none", className: cn("relative", lookStyles10[look]), children: items.map((item, idx) => {
|
|
44854
44871
|
const status = item.status || "pending";
|
|
44855
44872
|
const style = STATUS_STYLES3[status] || STATUS_STYLES3.pending;
|
|
44856
44873
|
const ItemIcon = item.icon || style.icon;
|
package/dist/components/index.js
CHANGED
|
@@ -22176,7 +22176,8 @@ function DataGrid({
|
|
|
22176
22176
|
reorderEvent,
|
|
22177
22177
|
positionEvent,
|
|
22178
22178
|
dndItemIdField,
|
|
22179
|
-
dndRoot
|
|
22179
|
+
dndRoot,
|
|
22180
|
+
look = "dense"
|
|
22180
22181
|
}) {
|
|
22181
22182
|
const eventBus = useEventBus();
|
|
22182
22183
|
const { t } = useTranslate();
|
|
@@ -22292,7 +22293,7 @@ function DataGrid({
|
|
|
22292
22293
|
/* @__PURE__ */ jsx(
|
|
22293
22294
|
Box,
|
|
22294
22295
|
{
|
|
22295
|
-
className: cn("grid", gapStyles6[gap], colsClass, className),
|
|
22296
|
+
className: cn("grid", gapStyles6[gap], colsClass, lookStyles5[look], className),
|
|
22296
22297
|
style: gridTemplateColumns ? { gridTemplateColumns } : void 0,
|
|
22297
22298
|
children: data.map((item, index) => {
|
|
22298
22299
|
const itemData = item;
|
|
@@ -22469,7 +22470,7 @@ function DataGrid({
|
|
|
22469
22470
|
] })
|
|
22470
22471
|
);
|
|
22471
22472
|
}
|
|
22472
|
-
var dataGridLog, BADGE_VARIANTS, gapStyles6;
|
|
22473
|
+
var dataGridLog, BADGE_VARIANTS, gapStyles6, lookStyles5;
|
|
22473
22474
|
var init_DataGrid = __esm({
|
|
22474
22475
|
"components/molecules/DataGrid.tsx"() {
|
|
22475
22476
|
"use client";
|
|
@@ -22504,6 +22505,13 @@ var init_DataGrid = __esm({
|
|
|
22504
22505
|
lg: "gap-6",
|
|
22505
22506
|
xl: "gap-8"
|
|
22506
22507
|
};
|
|
22508
|
+
lookStyles5 = {
|
|
22509
|
+
dense: "gap-2 [&>*]:p-card-sm",
|
|
22510
|
+
spacious: "gap-8 [&>*]:p-card-lg",
|
|
22511
|
+
striped: "[&>*:nth-child(even)]:bg-muted/30",
|
|
22512
|
+
borderless: "[&>*]:border-0 [&>*]:shadow-none",
|
|
22513
|
+
"card-rows": "[&>*]:shadow-elevation-card [&>*]:rounded-container [&>*]:border [&>*]:border-border [&>*]:p-card-md"
|
|
22514
|
+
};
|
|
22507
22515
|
DataGrid.displayName = "DataGrid";
|
|
22508
22516
|
}
|
|
22509
22517
|
});
|
|
@@ -22587,7 +22595,8 @@ function DataList({
|
|
|
22587
22595
|
reorderEvent: dndReorderEvent,
|
|
22588
22596
|
positionEvent,
|
|
22589
22597
|
dndItemIdField,
|
|
22590
|
-
dndRoot
|
|
22598
|
+
dndRoot,
|
|
22599
|
+
look = "dense"
|
|
22591
22600
|
}) {
|
|
22592
22601
|
const eventBus = useEventBus();
|
|
22593
22602
|
const { t } = useTranslate();
|
|
@@ -22852,6 +22861,7 @@ function DataList({
|
|
|
22852
22861
|
className: cn(
|
|
22853
22862
|
isCard && "bg-card rounded-xl border border-border shadow-elevation-dialog overflow-hidden",
|
|
22854
22863
|
!isCard && gapClass,
|
|
22864
|
+
listLookStyles[look],
|
|
22855
22865
|
className
|
|
22856
22866
|
),
|
|
22857
22867
|
children: [
|
|
@@ -22889,7 +22899,7 @@ function DataList({
|
|
|
22889
22899
|
)
|
|
22890
22900
|
);
|
|
22891
22901
|
}
|
|
22892
|
-
var dataListLog;
|
|
22902
|
+
var dataListLog, listLookStyles;
|
|
22893
22903
|
var init_DataList = __esm({
|
|
22894
22904
|
"components/molecules/DataList.tsx"() {
|
|
22895
22905
|
"use client";
|
|
@@ -22908,6 +22918,13 @@ var init_DataList = __esm({
|
|
|
22908
22918
|
init_InfiniteScrollSentinel();
|
|
22909
22919
|
init_useDataDnd();
|
|
22910
22920
|
dataListLog = createLogger("almadar:ui:data-list");
|
|
22921
|
+
listLookStyles = {
|
|
22922
|
+
dense: "[&_[data-entity-row]>div]:!py-1 [&_[data-entity-row]>div]:!px-3",
|
|
22923
|
+
spacious: "[&_[data-entity-row]>div]:!py-5 [&_[data-entity-row]>div]:!px-8",
|
|
22924
|
+
striped: "[&_[data-entity-row]:nth-child(even)>div]:bg-muted/30",
|
|
22925
|
+
borderless: "[&_[data-entity-row]>div]:!border-0 [&_[data-entity-row]>div]:!hover:border-transparent",
|
|
22926
|
+
"card-rows": "[&_[data-entity-row]>div]:shadow-elevation-card [&_[data-entity-row]>div]:rounded-container [&_[data-entity-row]>div]:!border [&_[data-entity-row]>div]:border-border [&_[data-entity-row]]:mb-2"
|
|
22927
|
+
};
|
|
22911
22928
|
DataList.displayName = "DataList";
|
|
22912
22929
|
}
|
|
22913
22930
|
});
|
|
@@ -23143,7 +23160,7 @@ var init_useQuerySingleton = __esm({
|
|
|
23143
23160
|
queryStores = /* @__PURE__ */ new Map();
|
|
23144
23161
|
}
|
|
23145
23162
|
});
|
|
23146
|
-
var resolveFilterType,
|
|
23163
|
+
var resolveFilterType, lookStyles6, FilterGroup;
|
|
23147
23164
|
var init_FilterGroup = __esm({
|
|
23148
23165
|
"components/molecules/FilterGroup.tsx"() {
|
|
23149
23166
|
"use client";
|
|
@@ -23157,7 +23174,7 @@ var init_FilterGroup = __esm({
|
|
|
23157
23174
|
init_useEventBus();
|
|
23158
23175
|
init_useQuerySingleton();
|
|
23159
23176
|
resolveFilterType = (filter) => filter.filterType ?? filter.type;
|
|
23160
|
-
|
|
23177
|
+
lookStyles6 = {
|
|
23161
23178
|
toolbar: "",
|
|
23162
23179
|
chips: "gap-2 [&>*]:rounded-pill [&>*]:px-3 [&>*]:py-1",
|
|
23163
23180
|
pills: "gap-2 [&>*]:rounded-pill",
|
|
@@ -23234,7 +23251,7 @@ var init_FilterGroup = __esm({
|
|
|
23234
23251
|
{
|
|
23235
23252
|
gap: "md",
|
|
23236
23253
|
align: "center",
|
|
23237
|
-
className: cn("flex-wrap",
|
|
23254
|
+
className: cn("flex-wrap", lookStyles6[look], className),
|
|
23238
23255
|
children: [
|
|
23239
23256
|
showIcon && /* @__PURE__ */ jsx(Icon, { name: "filter", className: "h-4 w-4 text-muted-foreground" }),
|
|
23240
23257
|
filters.map((filter) => /* @__PURE__ */ jsxs(HStack, { gap: "xs", align: "center", children: [
|
|
@@ -23293,7 +23310,7 @@ var init_FilterGroup = __esm({
|
|
|
23293
23310
|
);
|
|
23294
23311
|
}
|
|
23295
23312
|
if (variant === "vertical") {
|
|
23296
|
-
return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-4",
|
|
23313
|
+
return /* @__PURE__ */ jsxs("div", { className: cn("flex flex-col gap-4", lookStyles6[look], className), children: [
|
|
23297
23314
|
showIcon && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-muted-foreground", children: [
|
|
23298
23315
|
/* @__PURE__ */ jsx(Icon, { name: "filter", className: "h-4 w-4" }),
|
|
23299
23316
|
/* @__PURE__ */ jsx("span", { className: "text-sm font-bold uppercase tracking-wide", children: "Filters" })
|
|
@@ -23381,7 +23398,7 @@ var init_FilterGroup = __esm({
|
|
|
23381
23398
|
{
|
|
23382
23399
|
gap: "sm",
|
|
23383
23400
|
align: "center",
|
|
23384
|
-
className: cn("flex-wrap",
|
|
23401
|
+
className: cn("flex-wrap", lookStyles6[look], className),
|
|
23385
23402
|
children: [
|
|
23386
23403
|
showIcon && /* @__PURE__ */ jsx(Icon, { name: "filter", className: "h-4 w-4 text-muted-foreground" }),
|
|
23387
23404
|
filters.map((filter) => /* @__PURE__ */ jsx("div", { className: "min-w-[120px]", children: resolveFilterType(filter) === "date" ? /* @__PURE__ */ jsx(
|
|
@@ -23478,7 +23495,7 @@ var init_FilterGroup = __esm({
|
|
|
23478
23495
|
"p-4 rounded-container",
|
|
23479
23496
|
"bg-card",
|
|
23480
23497
|
"border-[length:var(--border-width)] border-border",
|
|
23481
|
-
|
|
23498
|
+
lookStyles6[look],
|
|
23482
23499
|
className
|
|
23483
23500
|
),
|
|
23484
23501
|
children: /* @__PURE__ */ jsxs(HStack, { gap: "md", align: "center", className: "flex-wrap", children: [
|
|
@@ -28236,7 +28253,7 @@ function composeDisplayValue(value, format, max, prefix, suffix) {
|
|
|
28236
28253
|
const withMax = max != null && max > 0 ? `${formatted} / ${max}` : formatted;
|
|
28237
28254
|
return `${prefix ?? ""}${withMax}${suffix ?? ""}`;
|
|
28238
28255
|
}
|
|
28239
|
-
var
|
|
28256
|
+
var lookStyles7, variantColor, StatDisplay;
|
|
28240
28257
|
var init_StatDisplay = __esm({
|
|
28241
28258
|
"components/molecules/StatDisplay.tsx"() {
|
|
28242
28259
|
"use client";
|
|
@@ -28248,7 +28265,7 @@ var init_StatDisplay = __esm({
|
|
|
28248
28265
|
init_Sparkline();
|
|
28249
28266
|
init_Icon();
|
|
28250
28267
|
init_useEventBus();
|
|
28251
|
-
|
|
28268
|
+
lookStyles7 = {
|
|
28252
28269
|
elevated: "",
|
|
28253
28270
|
flat: "shadow-none border-[length:var(--border-width)] border-border",
|
|
28254
28271
|
"progress-backed": "",
|
|
@@ -28335,7 +28352,7 @@ var init_StatDisplay = __esm({
|
|
|
28335
28352
|
return /* @__PURE__ */ jsx(
|
|
28336
28353
|
Card,
|
|
28337
28354
|
{
|
|
28338
|
-
className: cn(padSizes[size],
|
|
28355
|
+
className: cn(padSizes[size], lookStyles7[look], clickEvent && "cursor-pointer hover:shadow-md transition-shadow", className),
|
|
28339
28356
|
onClick: clickEvent ? handleClick : void 0,
|
|
28340
28357
|
children: /* @__PURE__ */ jsxs(HStack, { align: "start", justify: "between", children: [
|
|
28341
28358
|
/* @__PURE__ */ jsxs(VStack, { gap: "none", className: "space-y-1 flex-1", children: [
|
|
@@ -34146,7 +34163,7 @@ function DataTable({
|
|
|
34146
34163
|
{
|
|
34147
34164
|
className: cn(
|
|
34148
34165
|
"bg-card border-2 border-border rounded-none overflow-hidden",
|
|
34149
|
-
|
|
34166
|
+
lookStyles8[look],
|
|
34150
34167
|
className
|
|
34151
34168
|
),
|
|
34152
34169
|
children: [
|
|
@@ -34373,7 +34390,7 @@ function DataTable({
|
|
|
34373
34390
|
}
|
|
34374
34391
|
);
|
|
34375
34392
|
}
|
|
34376
|
-
var
|
|
34393
|
+
var lookStyles8;
|
|
34377
34394
|
var init_DataTable = __esm({
|
|
34378
34395
|
"components/organisms/DataTable.tsx"() {
|
|
34379
34396
|
"use client";
|
|
@@ -34387,7 +34404,7 @@ var init_DataTable = __esm({
|
|
|
34387
34404
|
init_useEventBus();
|
|
34388
34405
|
init_useTranslate();
|
|
34389
34406
|
init_types3();
|
|
34390
|
-
|
|
34407
|
+
lookStyles8 = {
|
|
34391
34408
|
dense: "",
|
|
34392
34409
|
spacious: "[&_tbody_tr_td]:py-5 [&_thead_tr_th]:py-4",
|
|
34393
34410
|
striped: "[&_tbody_tr:nth-child(odd)]:bg-muted/30",
|
|
@@ -37647,7 +37664,7 @@ var init_GraphCanvas = __esm({
|
|
|
37647
37664
|
GraphCanvas.displayName = "GraphCanvas";
|
|
37648
37665
|
}
|
|
37649
37666
|
});
|
|
37650
|
-
var
|
|
37667
|
+
var lookStyles9, Header;
|
|
37651
37668
|
var init_Header = __esm({
|
|
37652
37669
|
"components/organisms/Header.tsx"() {
|
|
37653
37670
|
"use client";
|
|
@@ -37660,7 +37677,7 @@ var init_Header = __esm({
|
|
|
37660
37677
|
init_Typography();
|
|
37661
37678
|
init_cn();
|
|
37662
37679
|
init_useTranslate();
|
|
37663
|
-
|
|
37680
|
+
lookStyles9 = {
|
|
37664
37681
|
"compact-bar": "",
|
|
37665
37682
|
hero: "py-section min-h-[200px] [&_h1]:text-display-1",
|
|
37666
37683
|
breadcrumb: "py-2 text-sm [&_h1]:text-base [&_h1]:font-medium",
|
|
@@ -37700,7 +37717,7 @@ var init_Header = __esm({
|
|
|
37700
37717
|
"flex items-center px-4 justify-between bg-card",
|
|
37701
37718
|
sticky && "sticky top-0 z-50",
|
|
37702
37719
|
variant === "mobile" && "lg:hidden",
|
|
37703
|
-
|
|
37720
|
+
lookStyles9[look],
|
|
37704
37721
|
className
|
|
37705
37722
|
),
|
|
37706
37723
|
children: [
|
|
@@ -44697,7 +44714,7 @@ var init_TeamOrganism = __esm({
|
|
|
44697
44714
|
TeamOrganism.displayName = "TeamOrganism";
|
|
44698
44715
|
}
|
|
44699
44716
|
});
|
|
44700
|
-
var
|
|
44717
|
+
var lookStyles10, STATUS_STYLES3, Timeline;
|
|
44701
44718
|
var init_Timeline = __esm({
|
|
44702
44719
|
"components/organisms/Timeline.tsx"() {
|
|
44703
44720
|
"use client";
|
|
@@ -44708,7 +44725,7 @@ var init_Timeline = __esm({
|
|
|
44708
44725
|
init_ErrorState();
|
|
44709
44726
|
init_EmptyState();
|
|
44710
44727
|
init_useTranslate();
|
|
44711
|
-
|
|
44728
|
+
lookStyles10 = {
|
|
44712
44729
|
"vertical-compact": "gap-1 [&>*]:py-1",
|
|
44713
44730
|
"vertical-spacious": "",
|
|
44714
44731
|
horizontal: "flex-row [&>*]:flex-row [&>*]:items-center",
|
|
@@ -44801,7 +44818,7 @@ var init_Timeline = __esm({
|
|
|
44801
44818
|
}
|
|
44802
44819
|
return /* @__PURE__ */ jsx(Card, { className: cn("p-6", className), children: /* @__PURE__ */ jsxs(VStack, { gap: "md", children: [
|
|
44803
44820
|
title && /* @__PURE__ */ jsx(Typography, { variant: "h5", weight: "semibold", children: title }),
|
|
44804
|
-
/* @__PURE__ */ jsx(VStack, { gap: "none", className: cn("relative",
|
|
44821
|
+
/* @__PURE__ */ jsx(VStack, { gap: "none", className: cn("relative", lookStyles10[look]), children: items.map((item, idx) => {
|
|
44805
44822
|
const status = item.status || "pending";
|
|
44806
44823
|
const style = STATUS_STYLES3[status] || STATUS_STYLES3.pending;
|
|
44807
44824
|
const ItemIcon = item.icon || style.icon;
|
|
@@ -108,7 +108,7 @@ export interface DataGridProps<T extends EntityRow = EntityRow> extends DataDndP
|
|
|
108
108
|
*/
|
|
109
109
|
look?: "dense" | "spacious" | "striped" | "borderless" | "card-rows";
|
|
110
110
|
}
|
|
111
|
-
export declare function DataGrid<T extends EntityRow = EntityRow>({ entity, fields, columns, itemActions, cols, gap, minCardWidth, className, isLoading, error, imageField, selectable, selectionEvent, infiniteScroll, loadMoreEvent, hasMore, children, pageSize, renderItem: schemaRenderItem, dragGroup, accepts, sortable, dropEvent, reorderEvent, positionEvent, dndItemIdField, dndRoot, }: DataGridProps<T>): string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
|
|
111
|
+
export declare function DataGrid<T extends EntityRow = EntityRow>({ entity, fields, columns, itemActions, cols, gap, minCardWidth, className, isLoading, error, imageField, selectable, selectionEvent, infiniteScroll, loadMoreEvent, hasMore, children, pageSize, renderItem: schemaRenderItem, dragGroup, accepts, sortable, dropEvent, reorderEvent, positionEvent, dndItemIdField, dndRoot, look, }: DataGridProps<T>): string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
|
|
112
112
|
export declare namespace DataGrid {
|
|
113
113
|
var displayName: string;
|
|
114
114
|
}
|
|
@@ -122,7 +122,7 @@ export interface DataListProps<T extends EntityRow = EntityRow> extends DataDndP
|
|
|
122
122
|
*/
|
|
123
123
|
look?: "dense" | "spacious" | "striped" | "borderless" | "card-rows";
|
|
124
124
|
}
|
|
125
|
-
export declare function DataList<T extends EntityRow = EntityRow>({ entity, fields, columns, itemActions, gap, variant, groupBy, senderField, currentUser, className, isLoading, error, reorderable: _reorderable, reorderEvent: _reorderEvent, swipeLeftEvent: _swipeLeftEvent, swipeLeftActions: _swipeLeftActions, swipeRightEvent: _swipeRightEvent, swipeRightActions: _swipeRightActions, longPressEvent: _longPressEvent, infiniteScroll, loadMoreEvent, hasMore, children, pageSize, renderItem: schemaRenderItem, dragGroup, accepts, sortable: sortableProp, dropEvent, reorderEvent: dndReorderEvent, positionEvent, dndItemIdField, dndRoot, }: DataListProps<T>): string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
|
|
125
|
+
export declare function DataList<T extends EntityRow = EntityRow>({ entity, fields, columns, itemActions, gap, variant, groupBy, senderField, currentUser, className, isLoading, error, reorderable: _reorderable, reorderEvent: _reorderEvent, swipeLeftEvent: _swipeLeftEvent, swipeLeftActions: _swipeLeftActions, swipeRightEvent: _swipeRightEvent, swipeRightActions: _swipeRightActions, longPressEvent: _longPressEvent, infiniteScroll, loadMoreEvent, hasMore, children, pageSize, renderItem: schemaRenderItem, dragGroup, accepts, sortable: sortableProp, dropEvent, reorderEvent: dndReorderEvent, positionEvent, dndItemIdField, dndRoot, look, }: DataListProps<T>): string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
|
|
126
126
|
export declare namespace DataList {
|
|
127
127
|
var displayName: string;
|
|
128
128
|
}
|