@vantageos/mosaic-blocks 0.3.4-alpha → 0.3.6-alpha
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/badge-variants-SYXNq4VQ.d.cts +43 -0
- package/dist/badge-variants-SYXNq4VQ.d.ts +43 -0
- package/dist/index.cjs +337 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +183 -3
- package/dist/index.d.ts +183 -3
- package/dist/index.js +336 -2
- package/dist/index.js.map +1 -1
- package/dist/server.cjs +81 -0
- package/dist/server.cjs.map +1 -1
- package/dist/server.d.cts +24 -32
- package/dist/server.d.ts +24 -32
- package/dist/server.js +77 -1
- package/dist/server.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* buttonVariants — pure CVA variant function for MosaicButton.
|
|
5
|
+
*
|
|
6
|
+
* Isolated in its own module so it can be re-exported from the
|
|
7
|
+
* `@vantageos/mosaic-blocks/server` subpath without pulling in
|
|
8
|
+
* React or @base-ui/react/button (which are in Button.tsx but not here).
|
|
9
|
+
*
|
|
10
|
+
* Zero browser / React runtime dependencies — safe in RSC / Node.js.
|
|
11
|
+
*/
|
|
12
|
+
declare const buttonVariants: (props?: ({
|
|
13
|
+
variant?: "link" | "default" | "secondary" | "ghost" | "destructive" | "outline" | null | undefined;
|
|
14
|
+
size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
15
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* skeletonVariants — pure CVA variant function for MosaicSkeleton.
|
|
19
|
+
*
|
|
20
|
+
* Isolated in its own module so it can be re-exported from the
|
|
21
|
+
* `@vantageos/mosaic-blocks/server` subpath without pulling in React
|
|
22
|
+
* (which is imported in MosaicSkeleton.tsx but not here).
|
|
23
|
+
*
|
|
24
|
+
* Zero browser / React runtime dependencies — safe in RSC / Node.js.
|
|
25
|
+
*/
|
|
26
|
+
declare const skeletonVariants: (props?: ({
|
|
27
|
+
variant?: "default" | "button" | "circle" | "text" | null | undefined;
|
|
28
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* badgeVariants — pure CVA variant function for MosaicBadge.
|
|
32
|
+
*
|
|
33
|
+
* Isolated in its own module so it can be re-exported from the
|
|
34
|
+
* `@vantageos/mosaic-blocks/server` subpath without pulling in React
|
|
35
|
+
* (which is imported in MosaicBadge.tsx but not here).
|
|
36
|
+
*
|
|
37
|
+
* Zero browser / React runtime dependencies — safe in RSC / Node.js.
|
|
38
|
+
*/
|
|
39
|
+
declare const badgeVariants: (props?: ({
|
|
40
|
+
variant?: "default" | "secondary" | "destructive" | "outline" | null | undefined;
|
|
41
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
42
|
+
|
|
43
|
+
export { badgeVariants as a, buttonVariants as b, skeletonVariants as s };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* buttonVariants — pure CVA variant function for MosaicButton.
|
|
5
|
+
*
|
|
6
|
+
* Isolated in its own module so it can be re-exported from the
|
|
7
|
+
* `@vantageos/mosaic-blocks/server` subpath without pulling in
|
|
8
|
+
* React or @base-ui/react/button (which are in Button.tsx but not here).
|
|
9
|
+
*
|
|
10
|
+
* Zero browser / React runtime dependencies — safe in RSC / Node.js.
|
|
11
|
+
*/
|
|
12
|
+
declare const buttonVariants: (props?: ({
|
|
13
|
+
variant?: "link" | "default" | "secondary" | "ghost" | "destructive" | "outline" | null | undefined;
|
|
14
|
+
size?: "default" | "sm" | "lg" | "icon" | "icon-sm" | "icon-lg" | null | undefined;
|
|
15
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* skeletonVariants — pure CVA variant function for MosaicSkeleton.
|
|
19
|
+
*
|
|
20
|
+
* Isolated in its own module so it can be re-exported from the
|
|
21
|
+
* `@vantageos/mosaic-blocks/server` subpath without pulling in React
|
|
22
|
+
* (which is imported in MosaicSkeleton.tsx but not here).
|
|
23
|
+
*
|
|
24
|
+
* Zero browser / React runtime dependencies — safe in RSC / Node.js.
|
|
25
|
+
*/
|
|
26
|
+
declare const skeletonVariants: (props?: ({
|
|
27
|
+
variant?: "default" | "button" | "circle" | "text" | null | undefined;
|
|
28
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* badgeVariants — pure CVA variant function for MosaicBadge.
|
|
32
|
+
*
|
|
33
|
+
* Isolated in its own module so it can be re-exported from the
|
|
34
|
+
* `@vantageos/mosaic-blocks/server` subpath without pulling in React
|
|
35
|
+
* (which is imported in MosaicBadge.tsx but not here).
|
|
36
|
+
*
|
|
37
|
+
* Zero browser / React runtime dependencies — safe in RSC / Node.js.
|
|
38
|
+
*/
|
|
39
|
+
declare const badgeVariants: (props?: ({
|
|
40
|
+
variant?: "default" | "secondary" | "destructive" | "outline" | null | undefined;
|
|
41
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
42
|
+
|
|
43
|
+
export { badgeVariants as a, buttonVariants as b, skeletonVariants as s };
|
package/dist/index.cjs
CHANGED
|
@@ -46,7 +46,7 @@ function _interopNamespace(e) {
|
|
|
46
46
|
var React27__namespace = /*#__PURE__*/_interopNamespace(React27);
|
|
47
47
|
|
|
48
48
|
// src/version.ts
|
|
49
|
-
var version = "0.3.
|
|
49
|
+
var version = "0.3.6-alpha";
|
|
50
50
|
function Placeholder({ label = "mosaic-blocks placeholder" }) {
|
|
51
51
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { "data-mosaic-block": "placeholder", children: label });
|
|
52
52
|
}
|
|
@@ -9702,6 +9702,340 @@ function MosaicOrgProfilePage({
|
|
|
9702
9702
|
);
|
|
9703
9703
|
}
|
|
9704
9704
|
MosaicOrgProfilePage.displayName = "MosaicOrgProfilePage";
|
|
9705
|
+
function cn66(...classes) {
|
|
9706
|
+
return classes.filter(Boolean).join(" ");
|
|
9707
|
+
}
|
|
9708
|
+
function defaultCompare(a, b) {
|
|
9709
|
+
if (typeof a === "number" && typeof b === "number") return a - b;
|
|
9710
|
+
return String(a ?? "").localeCompare(String(b ?? ""), void 0, { numeric: true });
|
|
9711
|
+
}
|
|
9712
|
+
function MosaicDataTable({
|
|
9713
|
+
columns,
|
|
9714
|
+
rows,
|
|
9715
|
+
getRowKey,
|
|
9716
|
+
sortable: masterSortable = true,
|
|
9717
|
+
emptyState,
|
|
9718
|
+
className,
|
|
9719
|
+
ref
|
|
9720
|
+
}) {
|
|
9721
|
+
const [sort, setSort] = React27.useState(null);
|
|
9722
|
+
function handleHeaderClick(col) {
|
|
9723
|
+
if (!masterSortable || !col.sortable) return;
|
|
9724
|
+
setSort((prev) => {
|
|
9725
|
+
if (prev?.key === col.key) {
|
|
9726
|
+
return { key: col.key, direction: prev.direction === "asc" ? "desc" : "asc" };
|
|
9727
|
+
}
|
|
9728
|
+
return { key: col.key, direction: "asc" };
|
|
9729
|
+
});
|
|
9730
|
+
}
|
|
9731
|
+
const sortedRows = sort ? [...rows].sort((a, b) => {
|
|
9732
|
+
const aVal = a[sort.key];
|
|
9733
|
+
const bVal = b[sort.key];
|
|
9734
|
+
const cmp = defaultCompare(aVal, bVal);
|
|
9735
|
+
return sort.direction === "asc" ? cmp : -cmp;
|
|
9736
|
+
}) : rows;
|
|
9737
|
+
function alignClass(align) {
|
|
9738
|
+
if (align === "right") return "text-right";
|
|
9739
|
+
if (align === "center") return "text-center";
|
|
9740
|
+
return "text-left";
|
|
9741
|
+
}
|
|
9742
|
+
function ariaSort(col) {
|
|
9743
|
+
if (!sort || sort.key !== col.key) return "none";
|
|
9744
|
+
return sort.direction === "asc" ? "ascending" : "descending";
|
|
9745
|
+
}
|
|
9746
|
+
function sortIndicator(col) {
|
|
9747
|
+
if (!masterSortable || !col.sortable) return null;
|
|
9748
|
+
if (!sort || sort.key !== col.key) {
|
|
9749
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9750
|
+
"span",
|
|
9751
|
+
{
|
|
9752
|
+
"aria-hidden": "true",
|
|
9753
|
+
className: "ml-1 inline-block select-none text-xs text-muted-foreground opacity-40",
|
|
9754
|
+
children: "\u2195"
|
|
9755
|
+
}
|
|
9756
|
+
);
|
|
9757
|
+
}
|
|
9758
|
+
return /* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", className: "ml-1 inline-block select-none text-xs", children: sort.direction === "asc" ? "\u25B2" : "\u25BC" });
|
|
9759
|
+
}
|
|
9760
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9761
|
+
"table",
|
|
9762
|
+
{
|
|
9763
|
+
ref,
|
|
9764
|
+
"data-slot": "data-table",
|
|
9765
|
+
className: cn66("w-full border-collapse text-sm", className),
|
|
9766
|
+
children: [
|
|
9767
|
+
/* @__PURE__ */ jsxRuntime.jsx("thead", { "data-slot": "data-table-header", children: /* @__PURE__ */ jsxRuntime.jsx("tr", { "data-slot": "data-table-header-row", className: "border-b border-border bg-muted", children: columns.map((col, colIndex) => {
|
|
9768
|
+
const isSortable = masterSortable && col.sortable;
|
|
9769
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
9770
|
+
"th",
|
|
9771
|
+
{
|
|
9772
|
+
"data-slot": "data-table-th",
|
|
9773
|
+
scope: "col",
|
|
9774
|
+
"aria-sort": ariaSort(col),
|
|
9775
|
+
tabIndex: isSortable ? 0 : void 0,
|
|
9776
|
+
onClick: isSortable ? () => handleHeaderClick(col) : void 0,
|
|
9777
|
+
onKeyDown: isSortable ? (e) => {
|
|
9778
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
9779
|
+
e.preventDefault();
|
|
9780
|
+
handleHeaderClick(col);
|
|
9781
|
+
}
|
|
9782
|
+
} : void 0,
|
|
9783
|
+
className: cn66(
|
|
9784
|
+
"px-4 py-3 font-medium text-muted-foreground",
|
|
9785
|
+
alignClass(col.align),
|
|
9786
|
+
col.className,
|
|
9787
|
+
isSortable && "cursor-pointer select-none hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
|
9788
|
+
),
|
|
9789
|
+
children: [
|
|
9790
|
+
col.header,
|
|
9791
|
+
sortIndicator(col)
|
|
9792
|
+
]
|
|
9793
|
+
},
|
|
9794
|
+
colIndex
|
|
9795
|
+
);
|
|
9796
|
+
}) }) }),
|
|
9797
|
+
/* @__PURE__ */ jsxRuntime.jsx("tbody", { "data-slot": "data-table-body", children: sortedRows.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("tr", { "data-slot": "data-table-empty-row", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
9798
|
+
"td",
|
|
9799
|
+
{
|
|
9800
|
+
"data-slot": "data-table-empty-cell",
|
|
9801
|
+
colSpan: columns.length,
|
|
9802
|
+
className: "px-4 py-12 text-center text-muted-foreground",
|
|
9803
|
+
children: emptyState ?? "No data"
|
|
9804
|
+
}
|
|
9805
|
+
) }) : sortedRows.map((row, index) => {
|
|
9806
|
+
const key = getRowKey ? getRowKey(row, index) : index;
|
|
9807
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9808
|
+
"tr",
|
|
9809
|
+
{
|
|
9810
|
+
"data-slot": "data-table-row",
|
|
9811
|
+
className: "border-b border-border hover:bg-muted/50 transition-colors",
|
|
9812
|
+
children: columns.map((col, colIndex) => {
|
|
9813
|
+
const rawVal = row[col.key];
|
|
9814
|
+
const cell = col.render ? col.render(row) : String(rawVal ?? "");
|
|
9815
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9816
|
+
"td",
|
|
9817
|
+
{
|
|
9818
|
+
"data-slot": "data-table-td",
|
|
9819
|
+
className: cn66(
|
|
9820
|
+
"px-4 py-3 text-foreground",
|
|
9821
|
+
alignClass(col.align),
|
|
9822
|
+
col.className
|
|
9823
|
+
),
|
|
9824
|
+
children: cell
|
|
9825
|
+
},
|
|
9826
|
+
colIndex
|
|
9827
|
+
);
|
|
9828
|
+
})
|
|
9829
|
+
},
|
|
9830
|
+
key
|
|
9831
|
+
);
|
|
9832
|
+
}) })
|
|
9833
|
+
]
|
|
9834
|
+
}
|
|
9835
|
+
);
|
|
9836
|
+
}
|
|
9837
|
+
MosaicDataTable.displayName = "MosaicDataTable";
|
|
9838
|
+
var stepPipelineVariants = classVarianceAuthority.cva(["flex", "items-stretch"], {
|
|
9839
|
+
variants: {
|
|
9840
|
+
orientation: {
|
|
9841
|
+
horizontal: "flex-row items-center w-full",
|
|
9842
|
+
vertical: "flex-col"
|
|
9843
|
+
}
|
|
9844
|
+
},
|
|
9845
|
+
defaultVariants: {
|
|
9846
|
+
orientation: "horizontal"
|
|
9847
|
+
}
|
|
9848
|
+
});
|
|
9849
|
+
var stepIndicatorVariants = classVarianceAuthority.cva(
|
|
9850
|
+
[
|
|
9851
|
+
"flex items-center justify-center shrink-0",
|
|
9852
|
+
"rounded-full border-2 font-semibold text-sm select-none",
|
|
9853
|
+
"transition-colors"
|
|
9854
|
+
],
|
|
9855
|
+
{
|
|
9856
|
+
variants: {
|
|
9857
|
+
status: {
|
|
9858
|
+
done: "bg-foreground text-background border-foreground",
|
|
9859
|
+
current: "bg-background text-foreground border-foreground ring-2 ring-ring ring-offset-2",
|
|
9860
|
+
upcoming: "bg-muted text-muted-foreground border-border"
|
|
9861
|
+
},
|
|
9862
|
+
orientation: {
|
|
9863
|
+
horizontal: "size-8",
|
|
9864
|
+
vertical: "size-8"
|
|
9865
|
+
}
|
|
9866
|
+
},
|
|
9867
|
+
defaultVariants: {
|
|
9868
|
+
status: "upcoming",
|
|
9869
|
+
orientation: "horizontal"
|
|
9870
|
+
}
|
|
9871
|
+
}
|
|
9872
|
+
);
|
|
9873
|
+
var stepConnectorVariants = classVarianceAuthority.cva(["shrink-0 transition-colors"], {
|
|
9874
|
+
variants: {
|
|
9875
|
+
status: {
|
|
9876
|
+
done: "bg-foreground",
|
|
9877
|
+
current: "bg-border",
|
|
9878
|
+
upcoming: "bg-border"
|
|
9879
|
+
},
|
|
9880
|
+
orientation: {
|
|
9881
|
+
horizontal: "h-px flex-1 min-w-4",
|
|
9882
|
+
vertical: "w-px self-stretch min-h-4 ml-4"
|
|
9883
|
+
}
|
|
9884
|
+
},
|
|
9885
|
+
defaultVariants: {
|
|
9886
|
+
status: "upcoming",
|
|
9887
|
+
orientation: "horizontal"
|
|
9888
|
+
}
|
|
9889
|
+
});
|
|
9890
|
+
var stepLabelVariants = classVarianceAuthority.cva(["text-sm font-medium transition-colors"], {
|
|
9891
|
+
variants: {
|
|
9892
|
+
status: {
|
|
9893
|
+
done: "text-foreground",
|
|
9894
|
+
current: "text-foreground",
|
|
9895
|
+
upcoming: "text-muted-foreground"
|
|
9896
|
+
}
|
|
9897
|
+
},
|
|
9898
|
+
defaultVariants: {
|
|
9899
|
+
status: "upcoming"
|
|
9900
|
+
}
|
|
9901
|
+
});
|
|
9902
|
+
var stepDescriptionVariants = classVarianceAuthority.cva(["text-xs transition-colors"], {
|
|
9903
|
+
variants: {
|
|
9904
|
+
status: {
|
|
9905
|
+
done: "text-muted-foreground",
|
|
9906
|
+
current: "text-muted-foreground",
|
|
9907
|
+
upcoming: "text-muted-foreground/60"
|
|
9908
|
+
}
|
|
9909
|
+
},
|
|
9910
|
+
defaultVariants: {
|
|
9911
|
+
status: "upcoming"
|
|
9912
|
+
}
|
|
9913
|
+
});
|
|
9914
|
+
function cn67(...classes) {
|
|
9915
|
+
return classes.filter(Boolean).join(" ");
|
|
9916
|
+
}
|
|
9917
|
+
function resolveStatus(step, index, currentIndex) {
|
|
9918
|
+
if (step.status !== void 0) return step.status;
|
|
9919
|
+
if (index < currentIndex) return "done";
|
|
9920
|
+
if (index === currentIndex) return "current";
|
|
9921
|
+
return "upcoming";
|
|
9922
|
+
}
|
|
9923
|
+
function MosaicStepPipeline({
|
|
9924
|
+
steps,
|
|
9925
|
+
currentIndex = 0,
|
|
9926
|
+
orientation = "horizontal",
|
|
9927
|
+
className,
|
|
9928
|
+
ref
|
|
9929
|
+
}) {
|
|
9930
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9931
|
+
"ol",
|
|
9932
|
+
{
|
|
9933
|
+
ref,
|
|
9934
|
+
"data-slot": "step-pipeline",
|
|
9935
|
+
className: cn67(stepPipelineVariants({ orientation }), className),
|
|
9936
|
+
children: steps.map((step, index) => {
|
|
9937
|
+
const status = resolveStatus(step, index, currentIndex);
|
|
9938
|
+
const isCurrent = status === "current";
|
|
9939
|
+
const isLast = index === steps.length - 1;
|
|
9940
|
+
const key = step.id !== void 0 ? step.id : index;
|
|
9941
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
9942
|
+
"li",
|
|
9943
|
+
{
|
|
9944
|
+
"data-slot": "step",
|
|
9945
|
+
"data-status": status,
|
|
9946
|
+
"aria-current": isCurrent ? "step" : void 0,
|
|
9947
|
+
className: cn67(
|
|
9948
|
+
"flex shrink-0",
|
|
9949
|
+
orientation === "horizontal" ? "flex-col items-center gap-2" : "flex-row items-start gap-3",
|
|
9950
|
+
orientation === "horizontal" && !isLast && "flex-1"
|
|
9951
|
+
),
|
|
9952
|
+
children: orientation === "horizontal" ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
9953
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex w-full items-center", children: [
|
|
9954
|
+
index > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
9955
|
+
"div",
|
|
9956
|
+
{
|
|
9957
|
+
"data-slot": "step-connector",
|
|
9958
|
+
className: cn67(stepConnectorVariants({ status, orientation }))
|
|
9959
|
+
}
|
|
9960
|
+
),
|
|
9961
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
9962
|
+
"div",
|
|
9963
|
+
{
|
|
9964
|
+
"data-slot": "step-indicator",
|
|
9965
|
+
className: cn67(stepIndicatorVariants({ status, orientation })),
|
|
9966
|
+
"aria-hidden": "true",
|
|
9967
|
+
children: status === "done" ? "\u2713" : /* @__PURE__ */ jsxRuntime.jsx("span", { children: index + 1 })
|
|
9968
|
+
}
|
|
9969
|
+
),
|
|
9970
|
+
!isLast && /* @__PURE__ */ jsxRuntime.jsx(
|
|
9971
|
+
"div",
|
|
9972
|
+
{
|
|
9973
|
+
"data-slot": "step-connector",
|
|
9974
|
+
className: cn67(
|
|
9975
|
+
stepConnectorVariants({
|
|
9976
|
+
// connector after current step is still upcoming
|
|
9977
|
+
status: status === "done" ? "done" : "upcoming",
|
|
9978
|
+
orientation
|
|
9979
|
+
})
|
|
9980
|
+
)
|
|
9981
|
+
}
|
|
9982
|
+
)
|
|
9983
|
+
] }),
|
|
9984
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center gap-0.5 text-center px-1", children: [
|
|
9985
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "step-label", className: cn67(stepLabelVariants({ status })), children: step.label }),
|
|
9986
|
+
step.description !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
9987
|
+
"span",
|
|
9988
|
+
{
|
|
9989
|
+
"data-slot": "step-description",
|
|
9990
|
+
className: cn67(stepDescriptionVariants({ status })),
|
|
9991
|
+
children: step.description
|
|
9992
|
+
}
|
|
9993
|
+
)
|
|
9994
|
+
] })
|
|
9995
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
9996
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col items-center", children: [
|
|
9997
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
9998
|
+
"div",
|
|
9999
|
+
{
|
|
10000
|
+
"data-slot": "step-indicator",
|
|
10001
|
+
className: cn67(stepIndicatorVariants({ status, orientation })),
|
|
10002
|
+
"aria-hidden": "true",
|
|
10003
|
+
children: status === "done" ? "\u2713" : /* @__PURE__ */ jsxRuntime.jsx("span", { children: index + 1 })
|
|
10004
|
+
}
|
|
10005
|
+
),
|
|
10006
|
+
!isLast && /* @__PURE__ */ jsxRuntime.jsx(
|
|
10007
|
+
"div",
|
|
10008
|
+
{
|
|
10009
|
+
"data-slot": "step-connector",
|
|
10010
|
+
className: cn67(
|
|
10011
|
+
stepConnectorVariants({
|
|
10012
|
+
status: status === "done" ? "done" : "upcoming",
|
|
10013
|
+
orientation
|
|
10014
|
+
})
|
|
10015
|
+
)
|
|
10016
|
+
}
|
|
10017
|
+
)
|
|
10018
|
+
] }),
|
|
10019
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col gap-0.5 pt-1 pb-4", children: [
|
|
10020
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { "data-slot": "step-label", className: cn67(stepLabelVariants({ status })), children: step.label }),
|
|
10021
|
+
step.description !== void 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
10022
|
+
"span",
|
|
10023
|
+
{
|
|
10024
|
+
"data-slot": "step-description",
|
|
10025
|
+
className: cn67(stepDescriptionVariants({ status })),
|
|
10026
|
+
children: step.description
|
|
10027
|
+
}
|
|
10028
|
+
)
|
|
10029
|
+
] })
|
|
10030
|
+
] })
|
|
10031
|
+
},
|
|
10032
|
+
key
|
|
10033
|
+
);
|
|
10034
|
+
})
|
|
10035
|
+
}
|
|
10036
|
+
);
|
|
10037
|
+
}
|
|
10038
|
+
MosaicStepPipeline.displayName = "MosaicStepPipeline";
|
|
9705
10039
|
var WorkspaceCtx = React27__namespace.createContext({
|
|
9706
10040
|
workspaceId: null,
|
|
9707
10041
|
isLoading: false
|
|
@@ -9872,6 +10206,7 @@ exports.MosaicCreateOrgDialog = MosaicCreateOrgDialog;
|
|
|
9872
10206
|
exports.MosaicDashboardContent = MosaicDashboardContent;
|
|
9873
10207
|
exports.MosaicDashboardHeader = MosaicDashboardHeader;
|
|
9874
10208
|
exports.MosaicDashboardLayout = MosaicDashboardLayout;
|
|
10209
|
+
exports.MosaicDataTable = MosaicDataTable;
|
|
9875
10210
|
exports.MosaicDeleteConfirmationDialog = MosaicDeleteConfirmationDialog;
|
|
9876
10211
|
exports.MosaicDeviceProvider = MosaicDeviceProvider;
|
|
9877
10212
|
exports.MosaicDropdownMenu = MosaicDropdownMenu;
|
|
@@ -9931,6 +10266,7 @@ exports.MosaicSignUpLayout = MosaicSignUpLayout;
|
|
|
9931
10266
|
exports.MosaicSkeleton = MosaicSkeleton;
|
|
9932
10267
|
exports.MosaicSlider = MosaicSlider;
|
|
9933
10268
|
exports.MosaicStatsGrid = MosaicStatsGrid;
|
|
10269
|
+
exports.MosaicStepPipeline = MosaicStepPipeline;
|
|
9934
10270
|
exports.MosaicSwitch = MosaicSwitch;
|
|
9935
10271
|
exports.MosaicTabs = MosaicTabs;
|
|
9936
10272
|
exports.MosaicTabsList = MosaicTabsList;
|