@almadar/ui 5.5.2 → 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 +47 -25
- package/dist/avl/index.js +47 -25
- package/dist/components/index.cjs +47 -25
- package/dist/components/index.js +47 -25
- package/dist/components/molecules/DataGrid.d.ts +1 -1
- package/dist/components/molecules/DataList.d.ts +1 -1
- package/dist/providers/index.cjs +47 -25
- package/dist/providers/index.js +47 -25
- package/dist/runtime/index.cjs +47 -25
- package/dist/runtime/index.js +47 -25
- package/package.json +1 -1
|
@@ -6342,8 +6342,13 @@ var init_Modal = __esm({
|
|
|
6342
6342
|
ref: modalRef,
|
|
6343
6343
|
open: true,
|
|
6344
6344
|
className: cn(
|
|
6345
|
-
// Reset browser-default dialog chrome — we own styling.
|
|
6346
|
-
|
|
6345
|
+
// Reset browser-default dialog chrome — we own styling. `static`
|
|
6346
|
+
// overrides the user-agent `position: absolute` so the parent
|
|
6347
|
+
// flex container's `justify-center` actually centers the dialog
|
|
6348
|
+
// (without this, the dialog drops out of flex flow and `m-0`
|
|
6349
|
+
// kills the user-agent's `margin: auto` centering, pinning the
|
|
6350
|
+
// dialog to top-left).
|
|
6351
|
+
"static m-0 p-0 border-0 bg-transparent",
|
|
6347
6352
|
// Pre-existing dialog frame
|
|
6348
6353
|
"pointer-events-auto w-full flex flex-col bg-surface border shadow-elevation-dialog rounded-container",
|
|
6349
6354
|
// Desktop sizing + viewport-aware floor.
|
|
@@ -22220,7 +22225,8 @@ function DataGrid({
|
|
|
22220
22225
|
reorderEvent,
|
|
22221
22226
|
positionEvent,
|
|
22222
22227
|
dndItemIdField,
|
|
22223
|
-
dndRoot
|
|
22228
|
+
dndRoot,
|
|
22229
|
+
look = "dense"
|
|
22224
22230
|
}) {
|
|
22225
22231
|
const eventBus = useEventBus();
|
|
22226
22232
|
const { t } = useTranslate();
|
|
@@ -22336,7 +22342,7 @@ function DataGrid({
|
|
|
22336
22342
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
22337
22343
|
exports.Box,
|
|
22338
22344
|
{
|
|
22339
|
-
className: cn("grid", gapStyles6[gap], colsClass, className),
|
|
22345
|
+
className: cn("grid", gapStyles6[gap], colsClass, lookStyles5[look], className),
|
|
22340
22346
|
style: gridTemplateColumns ? { gridTemplateColumns } : void 0,
|
|
22341
22347
|
children: data.map((item, index) => {
|
|
22342
22348
|
const itemData = item;
|
|
@@ -22513,7 +22519,7 @@ function DataGrid({
|
|
|
22513
22519
|
] })
|
|
22514
22520
|
);
|
|
22515
22521
|
}
|
|
22516
|
-
var dataGridLog, BADGE_VARIANTS, gapStyles6;
|
|
22522
|
+
var dataGridLog, BADGE_VARIANTS, gapStyles6, lookStyles5;
|
|
22517
22523
|
var init_DataGrid = __esm({
|
|
22518
22524
|
"components/molecules/DataGrid.tsx"() {
|
|
22519
22525
|
"use client";
|
|
@@ -22548,6 +22554,13 @@ var init_DataGrid = __esm({
|
|
|
22548
22554
|
lg: "gap-6",
|
|
22549
22555
|
xl: "gap-8"
|
|
22550
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
|
+
};
|
|
22551
22564
|
DataGrid.displayName = "DataGrid";
|
|
22552
22565
|
}
|
|
22553
22566
|
});
|
|
@@ -22631,7 +22644,8 @@ function DataList({
|
|
|
22631
22644
|
reorderEvent: dndReorderEvent,
|
|
22632
22645
|
positionEvent,
|
|
22633
22646
|
dndItemIdField,
|
|
22634
|
-
dndRoot
|
|
22647
|
+
dndRoot,
|
|
22648
|
+
look = "dense"
|
|
22635
22649
|
}) {
|
|
22636
22650
|
const eventBus = useEventBus();
|
|
22637
22651
|
const { t } = useTranslate();
|
|
@@ -22896,6 +22910,7 @@ function DataList({
|
|
|
22896
22910
|
className: cn(
|
|
22897
22911
|
isCard && "bg-card rounded-xl border border-border shadow-elevation-dialog overflow-hidden",
|
|
22898
22912
|
!isCard && gapClass,
|
|
22913
|
+
listLookStyles[look],
|
|
22899
22914
|
className
|
|
22900
22915
|
),
|
|
22901
22916
|
children: [
|
|
@@ -22933,7 +22948,7 @@ function DataList({
|
|
|
22933
22948
|
)
|
|
22934
22949
|
);
|
|
22935
22950
|
}
|
|
22936
|
-
var dataListLog;
|
|
22951
|
+
var dataListLog, listLookStyles;
|
|
22937
22952
|
var init_DataList = __esm({
|
|
22938
22953
|
"components/molecules/DataList.tsx"() {
|
|
22939
22954
|
"use client";
|
|
@@ -22952,6 +22967,13 @@ var init_DataList = __esm({
|
|
|
22952
22967
|
init_InfiniteScrollSentinel();
|
|
22953
22968
|
init_useDataDnd();
|
|
22954
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
|
+
};
|
|
22955
22977
|
DataList.displayName = "DataList";
|
|
22956
22978
|
}
|
|
22957
22979
|
});
|
|
@@ -23187,7 +23209,7 @@ var init_useQuerySingleton = __esm({
|
|
|
23187
23209
|
queryStores = /* @__PURE__ */ new Map();
|
|
23188
23210
|
}
|
|
23189
23211
|
});
|
|
23190
|
-
var resolveFilterType,
|
|
23212
|
+
var resolveFilterType, lookStyles6; exports.FilterGroup = void 0;
|
|
23191
23213
|
var init_FilterGroup = __esm({
|
|
23192
23214
|
"components/molecules/FilterGroup.tsx"() {
|
|
23193
23215
|
"use client";
|
|
@@ -23201,7 +23223,7 @@ var init_FilterGroup = __esm({
|
|
|
23201
23223
|
init_useEventBus();
|
|
23202
23224
|
init_useQuerySingleton();
|
|
23203
23225
|
resolveFilterType = (filter) => filter.filterType ?? filter.type;
|
|
23204
|
-
|
|
23226
|
+
lookStyles6 = {
|
|
23205
23227
|
toolbar: "",
|
|
23206
23228
|
chips: "gap-2 [&>*]:rounded-pill [&>*]:px-3 [&>*]:py-1",
|
|
23207
23229
|
pills: "gap-2 [&>*]:rounded-pill",
|
|
@@ -23278,7 +23300,7 @@ var init_FilterGroup = __esm({
|
|
|
23278
23300
|
{
|
|
23279
23301
|
gap: "md",
|
|
23280
23302
|
align: "center",
|
|
23281
|
-
className: cn("flex-wrap",
|
|
23303
|
+
className: cn("flex-wrap", lookStyles6[look], className),
|
|
23282
23304
|
children: [
|
|
23283
23305
|
showIcon && /* @__PURE__ */ jsxRuntime.jsx(exports.Icon, { name: "filter", className: "h-4 w-4 text-muted-foreground" }),
|
|
23284
23306
|
filters.map((filter) => /* @__PURE__ */ jsxRuntime.jsxs(exports.HStack, { gap: "xs", align: "center", children: [
|
|
@@ -23337,7 +23359,7 @@ var init_FilterGroup = __esm({
|
|
|
23337
23359
|
);
|
|
23338
23360
|
}
|
|
23339
23361
|
if (variant === "vertical") {
|
|
23340
|
-
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: [
|
|
23341
23363
|
showIcon && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2 text-muted-foreground", children: [
|
|
23342
23364
|
/* @__PURE__ */ jsxRuntime.jsx(exports.Icon, { name: "filter", className: "h-4 w-4" }),
|
|
23343
23365
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-sm font-bold uppercase tracking-wide", children: "Filters" })
|
|
@@ -23425,7 +23447,7 @@ var init_FilterGroup = __esm({
|
|
|
23425
23447
|
{
|
|
23426
23448
|
gap: "sm",
|
|
23427
23449
|
align: "center",
|
|
23428
|
-
className: cn("flex-wrap",
|
|
23450
|
+
className: cn("flex-wrap", lookStyles6[look], className),
|
|
23429
23451
|
children: [
|
|
23430
23452
|
showIcon && /* @__PURE__ */ jsxRuntime.jsx(exports.Icon, { name: "filter", className: "h-4 w-4 text-muted-foreground" }),
|
|
23431
23453
|
filters.map((filter) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-w-[120px]", children: resolveFilterType(filter) === "date" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -23522,7 +23544,7 @@ var init_FilterGroup = __esm({
|
|
|
23522
23544
|
"p-4 rounded-container",
|
|
23523
23545
|
"bg-card",
|
|
23524
23546
|
"border-[length:var(--border-width)] border-border",
|
|
23525
|
-
|
|
23547
|
+
lookStyles6[look],
|
|
23526
23548
|
className
|
|
23527
23549
|
),
|
|
23528
23550
|
children: /* @__PURE__ */ jsxRuntime.jsxs(exports.HStack, { gap: "md", align: "center", className: "flex-wrap", children: [
|
|
@@ -28280,7 +28302,7 @@ function composeDisplayValue(value, format, max, prefix, suffix) {
|
|
|
28280
28302
|
const withMax = max != null && max > 0 ? `${formatted} / ${max}` : formatted;
|
|
28281
28303
|
return `${prefix ?? ""}${withMax}${suffix ?? ""}`;
|
|
28282
28304
|
}
|
|
28283
|
-
var
|
|
28305
|
+
var lookStyles7, variantColor; exports.StatDisplay = void 0;
|
|
28284
28306
|
var init_StatDisplay = __esm({
|
|
28285
28307
|
"components/molecules/StatDisplay.tsx"() {
|
|
28286
28308
|
"use client";
|
|
@@ -28292,7 +28314,7 @@ var init_StatDisplay = __esm({
|
|
|
28292
28314
|
init_Sparkline();
|
|
28293
28315
|
init_Icon();
|
|
28294
28316
|
init_useEventBus();
|
|
28295
|
-
|
|
28317
|
+
lookStyles7 = {
|
|
28296
28318
|
elevated: "",
|
|
28297
28319
|
flat: "shadow-none border-[length:var(--border-width)] border-border",
|
|
28298
28320
|
"progress-backed": "",
|
|
@@ -28379,7 +28401,7 @@ var init_StatDisplay = __esm({
|
|
|
28379
28401
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
28380
28402
|
exports.Card,
|
|
28381
28403
|
{
|
|
28382
|
-
className: cn(padSizes[size],
|
|
28404
|
+
className: cn(padSizes[size], lookStyles7[look], clickEvent && "cursor-pointer hover:shadow-md transition-shadow", className),
|
|
28383
28405
|
onClick: clickEvent ? handleClick : void 0,
|
|
28384
28406
|
children: /* @__PURE__ */ jsxRuntime.jsxs(exports.HStack, { align: "start", justify: "between", children: [
|
|
28385
28407
|
/* @__PURE__ */ jsxRuntime.jsxs(exports.VStack, { gap: "none", className: "space-y-1 flex-1", children: [
|
|
@@ -34190,7 +34212,7 @@ function DataTable({
|
|
|
34190
34212
|
{
|
|
34191
34213
|
className: cn(
|
|
34192
34214
|
"bg-card border-2 border-border rounded-none overflow-hidden",
|
|
34193
|
-
|
|
34215
|
+
lookStyles8[look],
|
|
34194
34216
|
className
|
|
34195
34217
|
),
|
|
34196
34218
|
children: [
|
|
@@ -34417,7 +34439,7 @@ function DataTable({
|
|
|
34417
34439
|
}
|
|
34418
34440
|
);
|
|
34419
34441
|
}
|
|
34420
|
-
var
|
|
34442
|
+
var lookStyles8;
|
|
34421
34443
|
var init_DataTable = __esm({
|
|
34422
34444
|
"components/organisms/DataTable.tsx"() {
|
|
34423
34445
|
"use client";
|
|
@@ -34431,7 +34453,7 @@ var init_DataTable = __esm({
|
|
|
34431
34453
|
init_useEventBus();
|
|
34432
34454
|
init_useTranslate();
|
|
34433
34455
|
init_types3();
|
|
34434
|
-
|
|
34456
|
+
lookStyles8 = {
|
|
34435
34457
|
dense: "",
|
|
34436
34458
|
spacious: "[&_tbody_tr_td]:py-5 [&_thead_tr_th]:py-4",
|
|
34437
34459
|
striped: "[&_tbody_tr:nth-child(odd)]:bg-muted/30",
|
|
@@ -37691,7 +37713,7 @@ var init_GraphCanvas = __esm({
|
|
|
37691
37713
|
exports.GraphCanvas.displayName = "GraphCanvas";
|
|
37692
37714
|
}
|
|
37693
37715
|
});
|
|
37694
|
-
var
|
|
37716
|
+
var lookStyles9; exports.Header = void 0;
|
|
37695
37717
|
var init_Header = __esm({
|
|
37696
37718
|
"components/organisms/Header.tsx"() {
|
|
37697
37719
|
"use client";
|
|
@@ -37704,7 +37726,7 @@ var init_Header = __esm({
|
|
|
37704
37726
|
init_Typography();
|
|
37705
37727
|
init_cn();
|
|
37706
37728
|
init_useTranslate();
|
|
37707
|
-
|
|
37729
|
+
lookStyles9 = {
|
|
37708
37730
|
"compact-bar": "",
|
|
37709
37731
|
hero: "py-section min-h-[200px] [&_h1]:text-display-1",
|
|
37710
37732
|
breadcrumb: "py-2 text-sm [&_h1]:text-base [&_h1]:font-medium",
|
|
@@ -37744,7 +37766,7 @@ var init_Header = __esm({
|
|
|
37744
37766
|
"flex items-center px-4 justify-between bg-card",
|
|
37745
37767
|
sticky && "sticky top-0 z-50",
|
|
37746
37768
|
variant === "mobile" && "lg:hidden",
|
|
37747
|
-
|
|
37769
|
+
lookStyles9[look],
|
|
37748
37770
|
className
|
|
37749
37771
|
),
|
|
37750
37772
|
children: [
|
|
@@ -44741,7 +44763,7 @@ var init_TeamOrganism = __esm({
|
|
|
44741
44763
|
exports.TeamOrganism.displayName = "TeamOrganism";
|
|
44742
44764
|
}
|
|
44743
44765
|
});
|
|
44744
|
-
var
|
|
44766
|
+
var lookStyles10, STATUS_STYLES3; exports.Timeline = void 0;
|
|
44745
44767
|
var init_Timeline = __esm({
|
|
44746
44768
|
"components/organisms/Timeline.tsx"() {
|
|
44747
44769
|
"use client";
|
|
@@ -44752,7 +44774,7 @@ var init_Timeline = __esm({
|
|
|
44752
44774
|
init_ErrorState();
|
|
44753
44775
|
init_EmptyState();
|
|
44754
44776
|
init_useTranslate();
|
|
44755
|
-
|
|
44777
|
+
lookStyles10 = {
|
|
44756
44778
|
"vertical-compact": "gap-1 [&>*]:py-1",
|
|
44757
44779
|
"vertical-spacious": "",
|
|
44758
44780
|
horizontal: "flex-row [&>*]:flex-row [&>*]:items-center",
|
|
@@ -44845,7 +44867,7 @@ var init_Timeline = __esm({
|
|
|
44845
44867
|
}
|
|
44846
44868
|
return /* @__PURE__ */ jsxRuntime.jsx(exports.Card, { className: cn("p-6", className), children: /* @__PURE__ */ jsxRuntime.jsxs(exports.VStack, { gap: "md", children: [
|
|
44847
44869
|
title && /* @__PURE__ */ jsxRuntime.jsx(exports.Typography, { variant: "h5", weight: "semibold", children: title }),
|
|
44848
|
-
/* @__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) => {
|
|
44849
44871
|
const status = item.status || "pending";
|
|
44850
44872
|
const style = STATUS_STYLES3[status] || STATUS_STYLES3.pending;
|
|
44851
44873
|
const ItemIcon = item.icon || style.icon;
|
package/dist/components/index.js
CHANGED
|
@@ -6293,8 +6293,13 @@ var init_Modal = __esm({
|
|
|
6293
6293
|
ref: modalRef,
|
|
6294
6294
|
open: true,
|
|
6295
6295
|
className: cn(
|
|
6296
|
-
// Reset browser-default dialog chrome — we own styling.
|
|
6297
|
-
|
|
6296
|
+
// Reset browser-default dialog chrome — we own styling. `static`
|
|
6297
|
+
// overrides the user-agent `position: absolute` so the parent
|
|
6298
|
+
// flex container's `justify-center` actually centers the dialog
|
|
6299
|
+
// (without this, the dialog drops out of flex flow and `m-0`
|
|
6300
|
+
// kills the user-agent's `margin: auto` centering, pinning the
|
|
6301
|
+
// dialog to top-left).
|
|
6302
|
+
"static m-0 p-0 border-0 bg-transparent",
|
|
6298
6303
|
// Pre-existing dialog frame
|
|
6299
6304
|
"pointer-events-auto w-full flex flex-col bg-surface border shadow-elevation-dialog rounded-container",
|
|
6300
6305
|
// Desktop sizing + viewport-aware floor.
|
|
@@ -22171,7 +22176,8 @@ function DataGrid({
|
|
|
22171
22176
|
reorderEvent,
|
|
22172
22177
|
positionEvent,
|
|
22173
22178
|
dndItemIdField,
|
|
22174
|
-
dndRoot
|
|
22179
|
+
dndRoot,
|
|
22180
|
+
look = "dense"
|
|
22175
22181
|
}) {
|
|
22176
22182
|
const eventBus = useEventBus();
|
|
22177
22183
|
const { t } = useTranslate();
|
|
@@ -22287,7 +22293,7 @@ function DataGrid({
|
|
|
22287
22293
|
/* @__PURE__ */ jsx(
|
|
22288
22294
|
Box,
|
|
22289
22295
|
{
|
|
22290
|
-
className: cn("grid", gapStyles6[gap], colsClass, className),
|
|
22296
|
+
className: cn("grid", gapStyles6[gap], colsClass, lookStyles5[look], className),
|
|
22291
22297
|
style: gridTemplateColumns ? { gridTemplateColumns } : void 0,
|
|
22292
22298
|
children: data.map((item, index) => {
|
|
22293
22299
|
const itemData = item;
|
|
@@ -22464,7 +22470,7 @@ function DataGrid({
|
|
|
22464
22470
|
] })
|
|
22465
22471
|
);
|
|
22466
22472
|
}
|
|
22467
|
-
var dataGridLog, BADGE_VARIANTS, gapStyles6;
|
|
22473
|
+
var dataGridLog, BADGE_VARIANTS, gapStyles6, lookStyles5;
|
|
22468
22474
|
var init_DataGrid = __esm({
|
|
22469
22475
|
"components/molecules/DataGrid.tsx"() {
|
|
22470
22476
|
"use client";
|
|
@@ -22499,6 +22505,13 @@ var init_DataGrid = __esm({
|
|
|
22499
22505
|
lg: "gap-6",
|
|
22500
22506
|
xl: "gap-8"
|
|
22501
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
|
+
};
|
|
22502
22515
|
DataGrid.displayName = "DataGrid";
|
|
22503
22516
|
}
|
|
22504
22517
|
});
|
|
@@ -22582,7 +22595,8 @@ function DataList({
|
|
|
22582
22595
|
reorderEvent: dndReorderEvent,
|
|
22583
22596
|
positionEvent,
|
|
22584
22597
|
dndItemIdField,
|
|
22585
|
-
dndRoot
|
|
22598
|
+
dndRoot,
|
|
22599
|
+
look = "dense"
|
|
22586
22600
|
}) {
|
|
22587
22601
|
const eventBus = useEventBus();
|
|
22588
22602
|
const { t } = useTranslate();
|
|
@@ -22847,6 +22861,7 @@ function DataList({
|
|
|
22847
22861
|
className: cn(
|
|
22848
22862
|
isCard && "bg-card rounded-xl border border-border shadow-elevation-dialog overflow-hidden",
|
|
22849
22863
|
!isCard && gapClass,
|
|
22864
|
+
listLookStyles[look],
|
|
22850
22865
|
className
|
|
22851
22866
|
),
|
|
22852
22867
|
children: [
|
|
@@ -22884,7 +22899,7 @@ function DataList({
|
|
|
22884
22899
|
)
|
|
22885
22900
|
);
|
|
22886
22901
|
}
|
|
22887
|
-
var dataListLog;
|
|
22902
|
+
var dataListLog, listLookStyles;
|
|
22888
22903
|
var init_DataList = __esm({
|
|
22889
22904
|
"components/molecules/DataList.tsx"() {
|
|
22890
22905
|
"use client";
|
|
@@ -22903,6 +22918,13 @@ var init_DataList = __esm({
|
|
|
22903
22918
|
init_InfiniteScrollSentinel();
|
|
22904
22919
|
init_useDataDnd();
|
|
22905
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
|
+
};
|
|
22906
22928
|
DataList.displayName = "DataList";
|
|
22907
22929
|
}
|
|
22908
22930
|
});
|
|
@@ -23138,7 +23160,7 @@ var init_useQuerySingleton = __esm({
|
|
|
23138
23160
|
queryStores = /* @__PURE__ */ new Map();
|
|
23139
23161
|
}
|
|
23140
23162
|
});
|
|
23141
|
-
var resolveFilterType,
|
|
23163
|
+
var resolveFilterType, lookStyles6, FilterGroup;
|
|
23142
23164
|
var init_FilterGroup = __esm({
|
|
23143
23165
|
"components/molecules/FilterGroup.tsx"() {
|
|
23144
23166
|
"use client";
|
|
@@ -23152,7 +23174,7 @@ var init_FilterGroup = __esm({
|
|
|
23152
23174
|
init_useEventBus();
|
|
23153
23175
|
init_useQuerySingleton();
|
|
23154
23176
|
resolveFilterType = (filter) => filter.filterType ?? filter.type;
|
|
23155
|
-
|
|
23177
|
+
lookStyles6 = {
|
|
23156
23178
|
toolbar: "",
|
|
23157
23179
|
chips: "gap-2 [&>*]:rounded-pill [&>*]:px-3 [&>*]:py-1",
|
|
23158
23180
|
pills: "gap-2 [&>*]:rounded-pill",
|
|
@@ -23229,7 +23251,7 @@ var init_FilterGroup = __esm({
|
|
|
23229
23251
|
{
|
|
23230
23252
|
gap: "md",
|
|
23231
23253
|
align: "center",
|
|
23232
|
-
className: cn("flex-wrap",
|
|
23254
|
+
className: cn("flex-wrap", lookStyles6[look], className),
|
|
23233
23255
|
children: [
|
|
23234
23256
|
showIcon && /* @__PURE__ */ jsx(Icon, { name: "filter", className: "h-4 w-4 text-muted-foreground" }),
|
|
23235
23257
|
filters.map((filter) => /* @__PURE__ */ jsxs(HStack, { gap: "xs", align: "center", children: [
|
|
@@ -23288,7 +23310,7 @@ var init_FilterGroup = __esm({
|
|
|
23288
23310
|
);
|
|
23289
23311
|
}
|
|
23290
23312
|
if (variant === "vertical") {
|
|
23291
|
-
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: [
|
|
23292
23314
|
showIcon && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-muted-foreground", children: [
|
|
23293
23315
|
/* @__PURE__ */ jsx(Icon, { name: "filter", className: "h-4 w-4" }),
|
|
23294
23316
|
/* @__PURE__ */ jsx("span", { className: "text-sm font-bold uppercase tracking-wide", children: "Filters" })
|
|
@@ -23376,7 +23398,7 @@ var init_FilterGroup = __esm({
|
|
|
23376
23398
|
{
|
|
23377
23399
|
gap: "sm",
|
|
23378
23400
|
align: "center",
|
|
23379
|
-
className: cn("flex-wrap",
|
|
23401
|
+
className: cn("flex-wrap", lookStyles6[look], className),
|
|
23380
23402
|
children: [
|
|
23381
23403
|
showIcon && /* @__PURE__ */ jsx(Icon, { name: "filter", className: "h-4 w-4 text-muted-foreground" }),
|
|
23382
23404
|
filters.map((filter) => /* @__PURE__ */ jsx("div", { className: "min-w-[120px]", children: resolveFilterType(filter) === "date" ? /* @__PURE__ */ jsx(
|
|
@@ -23473,7 +23495,7 @@ var init_FilterGroup = __esm({
|
|
|
23473
23495
|
"p-4 rounded-container",
|
|
23474
23496
|
"bg-card",
|
|
23475
23497
|
"border-[length:var(--border-width)] border-border",
|
|
23476
|
-
|
|
23498
|
+
lookStyles6[look],
|
|
23477
23499
|
className
|
|
23478
23500
|
),
|
|
23479
23501
|
children: /* @__PURE__ */ jsxs(HStack, { gap: "md", align: "center", className: "flex-wrap", children: [
|
|
@@ -28231,7 +28253,7 @@ function composeDisplayValue(value, format, max, prefix, suffix) {
|
|
|
28231
28253
|
const withMax = max != null && max > 0 ? `${formatted} / ${max}` : formatted;
|
|
28232
28254
|
return `${prefix ?? ""}${withMax}${suffix ?? ""}`;
|
|
28233
28255
|
}
|
|
28234
|
-
var
|
|
28256
|
+
var lookStyles7, variantColor, StatDisplay;
|
|
28235
28257
|
var init_StatDisplay = __esm({
|
|
28236
28258
|
"components/molecules/StatDisplay.tsx"() {
|
|
28237
28259
|
"use client";
|
|
@@ -28243,7 +28265,7 @@ var init_StatDisplay = __esm({
|
|
|
28243
28265
|
init_Sparkline();
|
|
28244
28266
|
init_Icon();
|
|
28245
28267
|
init_useEventBus();
|
|
28246
|
-
|
|
28268
|
+
lookStyles7 = {
|
|
28247
28269
|
elevated: "",
|
|
28248
28270
|
flat: "shadow-none border-[length:var(--border-width)] border-border",
|
|
28249
28271
|
"progress-backed": "",
|
|
@@ -28330,7 +28352,7 @@ var init_StatDisplay = __esm({
|
|
|
28330
28352
|
return /* @__PURE__ */ jsx(
|
|
28331
28353
|
Card,
|
|
28332
28354
|
{
|
|
28333
|
-
className: cn(padSizes[size],
|
|
28355
|
+
className: cn(padSizes[size], lookStyles7[look], clickEvent && "cursor-pointer hover:shadow-md transition-shadow", className),
|
|
28334
28356
|
onClick: clickEvent ? handleClick : void 0,
|
|
28335
28357
|
children: /* @__PURE__ */ jsxs(HStack, { align: "start", justify: "between", children: [
|
|
28336
28358
|
/* @__PURE__ */ jsxs(VStack, { gap: "none", className: "space-y-1 flex-1", children: [
|
|
@@ -34141,7 +34163,7 @@ function DataTable({
|
|
|
34141
34163
|
{
|
|
34142
34164
|
className: cn(
|
|
34143
34165
|
"bg-card border-2 border-border rounded-none overflow-hidden",
|
|
34144
|
-
|
|
34166
|
+
lookStyles8[look],
|
|
34145
34167
|
className
|
|
34146
34168
|
),
|
|
34147
34169
|
children: [
|
|
@@ -34368,7 +34390,7 @@ function DataTable({
|
|
|
34368
34390
|
}
|
|
34369
34391
|
);
|
|
34370
34392
|
}
|
|
34371
|
-
var
|
|
34393
|
+
var lookStyles8;
|
|
34372
34394
|
var init_DataTable = __esm({
|
|
34373
34395
|
"components/organisms/DataTable.tsx"() {
|
|
34374
34396
|
"use client";
|
|
@@ -34382,7 +34404,7 @@ var init_DataTable = __esm({
|
|
|
34382
34404
|
init_useEventBus();
|
|
34383
34405
|
init_useTranslate();
|
|
34384
34406
|
init_types3();
|
|
34385
|
-
|
|
34407
|
+
lookStyles8 = {
|
|
34386
34408
|
dense: "",
|
|
34387
34409
|
spacious: "[&_tbody_tr_td]:py-5 [&_thead_tr_th]:py-4",
|
|
34388
34410
|
striped: "[&_tbody_tr:nth-child(odd)]:bg-muted/30",
|
|
@@ -37642,7 +37664,7 @@ var init_GraphCanvas = __esm({
|
|
|
37642
37664
|
GraphCanvas.displayName = "GraphCanvas";
|
|
37643
37665
|
}
|
|
37644
37666
|
});
|
|
37645
|
-
var
|
|
37667
|
+
var lookStyles9, Header;
|
|
37646
37668
|
var init_Header = __esm({
|
|
37647
37669
|
"components/organisms/Header.tsx"() {
|
|
37648
37670
|
"use client";
|
|
@@ -37655,7 +37677,7 @@ var init_Header = __esm({
|
|
|
37655
37677
|
init_Typography();
|
|
37656
37678
|
init_cn();
|
|
37657
37679
|
init_useTranslate();
|
|
37658
|
-
|
|
37680
|
+
lookStyles9 = {
|
|
37659
37681
|
"compact-bar": "",
|
|
37660
37682
|
hero: "py-section min-h-[200px] [&_h1]:text-display-1",
|
|
37661
37683
|
breadcrumb: "py-2 text-sm [&_h1]:text-base [&_h1]:font-medium",
|
|
@@ -37695,7 +37717,7 @@ var init_Header = __esm({
|
|
|
37695
37717
|
"flex items-center px-4 justify-between bg-card",
|
|
37696
37718
|
sticky && "sticky top-0 z-50",
|
|
37697
37719
|
variant === "mobile" && "lg:hidden",
|
|
37698
|
-
|
|
37720
|
+
lookStyles9[look],
|
|
37699
37721
|
className
|
|
37700
37722
|
),
|
|
37701
37723
|
children: [
|
|
@@ -44692,7 +44714,7 @@ var init_TeamOrganism = __esm({
|
|
|
44692
44714
|
TeamOrganism.displayName = "TeamOrganism";
|
|
44693
44715
|
}
|
|
44694
44716
|
});
|
|
44695
|
-
var
|
|
44717
|
+
var lookStyles10, STATUS_STYLES3, Timeline;
|
|
44696
44718
|
var init_Timeline = __esm({
|
|
44697
44719
|
"components/organisms/Timeline.tsx"() {
|
|
44698
44720
|
"use client";
|
|
@@ -44703,7 +44725,7 @@ var init_Timeline = __esm({
|
|
|
44703
44725
|
init_ErrorState();
|
|
44704
44726
|
init_EmptyState();
|
|
44705
44727
|
init_useTranslate();
|
|
44706
|
-
|
|
44728
|
+
lookStyles10 = {
|
|
44707
44729
|
"vertical-compact": "gap-1 [&>*]:py-1",
|
|
44708
44730
|
"vertical-spacious": "",
|
|
44709
44731
|
horizontal: "flex-row [&>*]:flex-row [&>*]:items-center",
|
|
@@ -44796,7 +44818,7 @@ var init_Timeline = __esm({
|
|
|
44796
44818
|
}
|
|
44797
44819
|
return /* @__PURE__ */ jsx(Card, { className: cn("p-6", className), children: /* @__PURE__ */ jsxs(VStack, { gap: "md", children: [
|
|
44798
44820
|
title && /* @__PURE__ */ jsx(Typography, { variant: "h5", weight: "semibold", children: title }),
|
|
44799
|
-
/* @__PURE__ */ jsx(VStack, { gap: "none", className: cn("relative",
|
|
44821
|
+
/* @__PURE__ */ jsx(VStack, { gap: "none", className: cn("relative", lookStyles10[look]), children: items.map((item, idx) => {
|
|
44800
44822
|
const status = item.status || "pending";
|
|
44801
44823
|
const style = STATUS_STYLES3[status] || STATUS_STYLES3.pending;
|
|
44802
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
|
}
|