@uniformdev/design-system 19.204.1-alpha.2 → 19.205.1-alpha.2
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/esm/index.js +203 -89
- package/dist/index.d.mts +40 -17
- package/dist/index.d.ts +40 -17
- package/dist/index.js +492 -380
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -12495,7 +12495,7 @@ var menuTriggerStyles = css26`
|
|
|
12495
12495
|
border: none;
|
|
12496
12496
|
background: transparent;
|
|
12497
12497
|
padding: var(--spacing-xs);
|
|
12498
|
-
color: var(--gray-
|
|
12498
|
+
color: var(--gray-600);
|
|
12499
12499
|
transition: color var(--duration-fast) var(--timing-ease-out);
|
|
12500
12500
|
|
|
12501
12501
|
&:focus,
|
|
@@ -18800,6 +18800,9 @@ var ModalDialog = forwardRef16(
|
|
|
18800
18800
|
);
|
|
18801
18801
|
ModalDialog.displayName = "ModalDialog";
|
|
18802
18802
|
|
|
18803
|
+
// src/components/Objects/ObjectGridContainer.tsx
|
|
18804
|
+
import { forwardRef as forwardRef17 } from "react";
|
|
18805
|
+
|
|
18803
18806
|
// src/components/Objects/styles/ObjectGridContainer.styles.ts
|
|
18804
18807
|
import { css as css80 } from "@emotion/react";
|
|
18805
18808
|
var ObjectGridContainer = (gridCount) => css80`
|
|
@@ -18810,9 +18813,20 @@ var ObjectGridContainer = (gridCount) => css80`
|
|
|
18810
18813
|
|
|
18811
18814
|
// src/components/Objects/ObjectGridContainer.tsx
|
|
18812
18815
|
import { jsx as jsx104 } from "@emotion/react/jsx-runtime";
|
|
18813
|
-
var ObjectGridContainer2 = (
|
|
18814
|
-
|
|
18815
|
-
|
|
18816
|
+
var ObjectGridContainer2 = forwardRef17(
|
|
18817
|
+
({ gridCount = 3, children, ...props }, ref) => {
|
|
18818
|
+
return /* @__PURE__ */ jsx104(
|
|
18819
|
+
"div",
|
|
18820
|
+
{
|
|
18821
|
+
ref,
|
|
18822
|
+
"data-testid": "object-grid-container",
|
|
18823
|
+
css: ObjectGridContainer(gridCount),
|
|
18824
|
+
...props,
|
|
18825
|
+
children
|
|
18826
|
+
}
|
|
18827
|
+
);
|
|
18828
|
+
}
|
|
18829
|
+
);
|
|
18816
18830
|
|
|
18817
18831
|
// src/components/Objects/styles/ObjectGridItem.styles.ts
|
|
18818
18832
|
import { css as css81 } from "@emotion/react";
|
|
@@ -18826,6 +18840,7 @@ var ObjectGridItem = css81`
|
|
|
18826
18840
|
|
|
18827
18841
|
&[aria-selected='true'] {
|
|
18828
18842
|
border: 1px solid var(--accent-dark);
|
|
18843
|
+
transition: border-color var(--duration-fast) var(--timing-ease-out);
|
|
18829
18844
|
}
|
|
18830
18845
|
|
|
18831
18846
|
&[aria-selected='false'] {
|
|
@@ -18834,20 +18849,54 @@ var ObjectGridItem = css81`
|
|
|
18834
18849
|
}
|
|
18835
18850
|
}
|
|
18836
18851
|
`;
|
|
18852
|
+
var ObjectGridWithOnClick = css81`
|
|
18853
|
+
cursor: pointer;
|
|
18854
|
+
&:hover,
|
|
18855
|
+
&:focus {
|
|
18856
|
+
border: 1px solid var(--accent-dark);
|
|
18857
|
+
transition: border-color var(--duration-fast) var(--timing-ease-out);
|
|
18858
|
+
}
|
|
18859
|
+
`;
|
|
18837
18860
|
var ObjectGridItemMediaWrapper = css81`
|
|
18838
18861
|
display: flex;
|
|
18839
18862
|
flex: 1 1 0;
|
|
18840
18863
|
position: relative;
|
|
18841
18864
|
`;
|
|
18865
|
+
var ObjectGridItemMediaInner = css81`
|
|
18866
|
+
background: var(--gray-50);
|
|
18867
|
+
border-radius: var(--rounded-base) var(--rounded-base) 0 0;
|
|
18868
|
+
position: relative;
|
|
18869
|
+
display: flex;
|
|
18870
|
+
align-items: center;
|
|
18871
|
+
justify-content: center;
|
|
18872
|
+
flex: 1;
|
|
18873
|
+
overflow: hidden;
|
|
18874
|
+
height: 100%;
|
|
18875
|
+
`;
|
|
18842
18876
|
var ObjectGridItemContentWrapper = css81`
|
|
18843
|
-
|
|
18877
|
+
display: grid;
|
|
18878
|
+
grid-template-columns: 1fr auto;
|
|
18879
|
+
padding: var(--spacing-sm);
|
|
18880
|
+
gap: var(--spacing-sm);
|
|
18844
18881
|
min-height: 52px;
|
|
18882
|
+
width: 100%;
|
|
18883
|
+
`;
|
|
18884
|
+
var ObjectGridItemInnerWrapper = css81`
|
|
18885
|
+
min-width: 0;
|
|
18845
18886
|
`;
|
|
18846
18887
|
var ObjectGridItemImage = css81`
|
|
18847
18888
|
object-fit: cover;
|
|
18848
18889
|
width: 100%;
|
|
18849
18890
|
height: auto;
|
|
18850
18891
|
`;
|
|
18892
|
+
var ObjectGridItemSubtitle = css81`
|
|
18893
|
+
color: var(--gray-500);
|
|
18894
|
+
font-size: var(--fs-sm);
|
|
18895
|
+
white-space: nowrap;
|
|
18896
|
+
overflow: hidden;
|
|
18897
|
+
text-overflow: ellipsis;
|
|
18898
|
+
max-width: 100%;
|
|
18899
|
+
`;
|
|
18851
18900
|
|
|
18852
18901
|
// src/components/Objects/ObjectGridItem.tsx
|
|
18853
18902
|
import { jsx as jsx105, jsxs as jsxs68 } from "@emotion/react/jsx-runtime";
|
|
@@ -18857,28 +18906,51 @@ var ObjectGridItem2 = ({
|
|
|
18857
18906
|
rightSlot,
|
|
18858
18907
|
menuItems,
|
|
18859
18908
|
isSelected,
|
|
18860
|
-
children
|
|
18909
|
+
children,
|
|
18910
|
+
menuTestId,
|
|
18911
|
+
...props
|
|
18861
18912
|
}) => {
|
|
18862
|
-
|
|
18863
|
-
|
|
18864
|
-
|
|
18865
|
-
|
|
18866
|
-
|
|
18867
|
-
|
|
18868
|
-
|
|
18869
|
-
|
|
18870
|
-
|
|
18871
|
-
|
|
18872
|
-
|
|
18873
|
-
|
|
18874
|
-
|
|
18875
|
-
|
|
18876
|
-
children:
|
|
18877
|
-
|
|
18878
|
-
|
|
18879
|
-
|
|
18880
|
-
|
|
18881
|
-
|
|
18913
|
+
const hasOnClick = props.onClick;
|
|
18914
|
+
const onStopPropagation = (e) => {
|
|
18915
|
+
e.stopPropagation();
|
|
18916
|
+
};
|
|
18917
|
+
return /* @__PURE__ */ jsxs68(
|
|
18918
|
+
"div",
|
|
18919
|
+
{
|
|
18920
|
+
css: [ObjectGridItem, props.onClick ? ObjectGridWithOnClick : void 0],
|
|
18921
|
+
"aria-selected": isSelected,
|
|
18922
|
+
...props,
|
|
18923
|
+
children: [
|
|
18924
|
+
/* @__PURE__ */ jsx105("div", { css: ObjectGridItemMediaWrapper, children: /* @__PURE__ */ jsx105("div", { css: ObjectGridItemMediaInner, children: cover }) }),
|
|
18925
|
+
/* @__PURE__ */ jsxs68("div", { css: ObjectGridItemContentWrapper, children: [
|
|
18926
|
+
/* @__PURE__ */ jsxs68(VerticalRhythm, { gap: "0", css: ObjectGridItemInnerWrapper, children: [
|
|
18927
|
+
/* @__PURE__ */ jsx105(HorizontalRhythm, { gap: "xs", align: "center", children: header2 }),
|
|
18928
|
+
/* @__PURE__ */ jsx105("div", { css: ObjectGridItemSubtitle, children })
|
|
18929
|
+
] }),
|
|
18930
|
+
/* @__PURE__ */ jsxs68(
|
|
18931
|
+
HorizontalRhythm,
|
|
18932
|
+
{
|
|
18933
|
+
gap: "xs",
|
|
18934
|
+
align: "flex-start",
|
|
18935
|
+
css: { cursor: "default" },
|
|
18936
|
+
onClick: hasOnClick ? onStopPropagation : void 0,
|
|
18937
|
+
children: [
|
|
18938
|
+
rightSlot,
|
|
18939
|
+
menuItems ? /* @__PURE__ */ jsx105(
|
|
18940
|
+
Menu,
|
|
18941
|
+
{
|
|
18942
|
+
menuTrigger: /* @__PURE__ */ jsx105(MenuThreeDots, { "data-testid": menuTestId != null ? menuTestId : "object-grid-item-menu-btn" }),
|
|
18943
|
+
placement: "bottom-end",
|
|
18944
|
+
children: menuItems
|
|
18945
|
+
}
|
|
18946
|
+
) : null
|
|
18947
|
+
]
|
|
18948
|
+
}
|
|
18949
|
+
)
|
|
18950
|
+
] })
|
|
18951
|
+
]
|
|
18952
|
+
}
|
|
18953
|
+
);
|
|
18882
18954
|
};
|
|
18883
18955
|
|
|
18884
18956
|
// src/components/Objects/styles/ObjectGridItemCardCover.styles.ts
|
|
@@ -18889,6 +18961,12 @@ var CoverImage = css82`
|
|
|
18889
18961
|
max-height: 100%;
|
|
18890
18962
|
height: auto;
|
|
18891
18963
|
padding: var(--spacing-sm);
|
|
18964
|
+
object-fit: cover;
|
|
18965
|
+
`;
|
|
18966
|
+
var CoverContainer = css82`
|
|
18967
|
+
aspect-ratio: 16/9;
|
|
18968
|
+
width: 100%;
|
|
18969
|
+
height: 100%;
|
|
18892
18970
|
`;
|
|
18893
18971
|
var CoverIconWrapper = css82`
|
|
18894
18972
|
position: relative;
|
|
@@ -18896,7 +18974,7 @@ var CoverIconWrapper = css82`
|
|
|
18896
18974
|
align-items: center;
|
|
18897
18975
|
justify-content: center;
|
|
18898
18976
|
flex: 1;
|
|
18899
|
-
|
|
18977
|
+
height: 100%;
|
|
18900
18978
|
`;
|
|
18901
18979
|
var CoverIconGhost = css82`
|
|
18902
18980
|
position: absolute;
|
|
@@ -18908,7 +18986,7 @@ var CoverIconGhost = css82`
|
|
|
18908
18986
|
`;
|
|
18909
18987
|
var CoverSlot = css82`
|
|
18910
18988
|
align-items: center;
|
|
18911
|
-
background: var(--
|
|
18989
|
+
background: var(--gray-50);
|
|
18912
18990
|
display: flex;
|
|
18913
18991
|
justify-content: center;
|
|
18914
18992
|
position: absolute;
|
|
@@ -18938,64 +19016,89 @@ var CoverButton = css82`
|
|
|
18938
19016
|
outline: none;
|
|
18939
19017
|
}
|
|
18940
19018
|
`;
|
|
18941
|
-
var
|
|
18942
|
-
animation: ${fadeInBottom} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
18943
|
-
opacity: 0;
|
|
19019
|
+
var CoverSlotBottom = css82`
|
|
18944
19020
|
position: absolute;
|
|
18945
19021
|
bottom: var(--spacing-base);
|
|
19022
|
+
`;
|
|
19023
|
+
var CoverSlotBottomLeft = css82`
|
|
19024
|
+
left: var(--spacing-base);
|
|
19025
|
+
`;
|
|
19026
|
+
var CoverSlotBottomRight = css82`
|
|
18946
19027
|
right: var(--spacing-base);
|
|
18947
19028
|
`;
|
|
19029
|
+
var CoverSelectedChip = css82`
|
|
19030
|
+
animation: ${fadeInBottom} var(--duration-fast) var(--timing-ease-out) forwards;
|
|
19031
|
+
opacity: 0;
|
|
19032
|
+
`;
|
|
18948
19033
|
|
|
18949
19034
|
// src/components/Objects/ObjectGridItemCardCover.tsx
|
|
18950
19035
|
import { Fragment as Fragment14, jsx as jsx106, jsxs as jsxs69 } from "@emotion/react/jsx-runtime";
|
|
18951
19036
|
var ObjectGridItemCardCover = (props) => {
|
|
18952
19037
|
if ("imageUrl" in props && props.imageUrl) {
|
|
18953
|
-
const { imageUrl } = props;
|
|
18954
|
-
return /* @__PURE__ */ jsx106(
|
|
19038
|
+
const { imageUrl, srcSet } = props;
|
|
19039
|
+
return /* @__PURE__ */ jsx106("div", { css: CoverContainer, children: /* @__PURE__ */ jsx106(
|
|
18955
19040
|
"img",
|
|
18956
19041
|
{
|
|
18957
19042
|
src: imageUrl,
|
|
19043
|
+
srcSet,
|
|
19044
|
+
alt: props.alt,
|
|
18958
19045
|
css: CoverImage,
|
|
18959
19046
|
loading: "lazy",
|
|
18960
19047
|
role: "presentation",
|
|
18961
|
-
"data-testid": "object-grid-item-thumbnail"
|
|
19048
|
+
"data-testid": "object-grid-item-thumbnail",
|
|
19049
|
+
...props
|
|
18962
19050
|
}
|
|
18963
|
-
);
|
|
19051
|
+
) });
|
|
18964
19052
|
}
|
|
18965
19053
|
if ("icon" in props && props.icon) {
|
|
18966
|
-
const { icon } = props;
|
|
18967
|
-
return /* @__PURE__ */ jsxs69("div", { css: CoverIconWrapper, "data-testid": "object-grid-item-thumbnail", children: [
|
|
18968
|
-
/* @__PURE__ */ jsx106(Icon, { icon, iconColor: "currentColor", css: CoverIconGhost }),
|
|
18969
|
-
/* @__PURE__ */ jsx106(Icon, { icon, iconColor: "currentColor", size: 48 })
|
|
18970
|
-
] });
|
|
19054
|
+
const { icon, iconColor } = props;
|
|
19055
|
+
return /* @__PURE__ */ jsx106("div", { css: CoverContainer, children: /* @__PURE__ */ jsxs69("div", { css: CoverIconWrapper, "data-testid": "object-grid-item-thumbnail", ...props, children: [
|
|
19056
|
+
/* @__PURE__ */ jsx106(Icon, { icon, iconColor: iconColor != null ? iconColor : "currentColor", css: CoverIconGhost }),
|
|
19057
|
+
/* @__PURE__ */ jsx106(Icon, { icon, iconColor: iconColor != null ? iconColor : "currentColor", size: 48 })
|
|
19058
|
+
] }) });
|
|
18971
19059
|
}
|
|
18972
19060
|
};
|
|
18973
19061
|
var ObjectGridItemCover = ({
|
|
18974
19062
|
coverSlotLeft,
|
|
18975
19063
|
coverSlotRight,
|
|
19064
|
+
coverSlotBottomLeft,
|
|
19065
|
+
coverSlotBottomRight,
|
|
18976
19066
|
...props
|
|
18977
19067
|
}) => {
|
|
18978
19068
|
return /* @__PURE__ */ jsxs69(Fragment14, { children: [
|
|
18979
19069
|
coverSlotLeft ? /* @__PURE__ */ jsx106("div", { css: [CoverSlot, CoverSlotLeft], children: coverSlotLeft }) : null,
|
|
18980
19070
|
/* @__PURE__ */ jsx106(ObjectGridItemCardCover, { ...props }),
|
|
18981
|
-
coverSlotRight ? /* @__PURE__ */ jsx106("div", { css: [CoverSlot, CoverSlotRight], children: coverSlotRight }) : null
|
|
19071
|
+
coverSlotRight ? /* @__PURE__ */ jsx106("div", { css: [CoverSlot, CoverSlotRight], children: coverSlotRight }) : null,
|
|
19072
|
+
coverSlotBottomLeft ? /* @__PURE__ */ jsx106("div", { css: [CoverSlotBottom, CoverSlotBottomLeft], children: coverSlotBottomLeft }) : null,
|
|
19073
|
+
coverSlotBottomRight ? /* @__PURE__ */ jsx106("div", { css: [CoverSlotBottom, CoverSlotBottomRight], children: coverSlotBottomRight }) : null
|
|
18982
19074
|
] });
|
|
18983
19075
|
};
|
|
18984
19076
|
var ObjectGridItemCoverButton = ({
|
|
18985
19077
|
id,
|
|
18986
19078
|
isSelected,
|
|
18987
19079
|
onSelection,
|
|
18988
|
-
coverSlotLeft,
|
|
18989
|
-
coverSlotRight,
|
|
18990
19080
|
selectedText = "selected",
|
|
18991
19081
|
...props
|
|
18992
19082
|
}) => {
|
|
18993
|
-
return /* @__PURE__ */
|
|
18994
|
-
|
|
18995
|
-
|
|
18996
|
-
|
|
18997
|
-
|
|
18998
|
-
|
|
19083
|
+
return /* @__PURE__ */ jsx106(
|
|
19084
|
+
"button",
|
|
19085
|
+
{
|
|
19086
|
+
type: "button",
|
|
19087
|
+
css: CoverButton,
|
|
19088
|
+
onClick: (e) => {
|
|
19089
|
+
e.stopPropagation();
|
|
19090
|
+
onSelection(id);
|
|
19091
|
+
},
|
|
19092
|
+
"aria-selected": isSelected,
|
|
19093
|
+
children: /* @__PURE__ */ jsx106(
|
|
19094
|
+
ObjectGridItemCover,
|
|
19095
|
+
{
|
|
19096
|
+
...props,
|
|
19097
|
+
coverSlotBottomRight: isSelected ? /* @__PURE__ */ jsx106("div", { css: CoverSelectedChip, children: /* @__PURE__ */ jsx106(Chip, { text: selectedText, size: "xs", theme: "accent-dark" }) }) : null
|
|
19098
|
+
}
|
|
19099
|
+
)
|
|
19100
|
+
}
|
|
19101
|
+
);
|
|
18999
19102
|
};
|
|
19000
19103
|
|
|
19001
19104
|
// src/components/Objects/ObjectGridItemHeading.tsx
|
|
@@ -19004,12 +19107,13 @@ import { useEffect as useEffect16, useRef as useRef10, useState as useState13 }
|
|
|
19004
19107
|
// src/components/Objects/styles/ObjectGridItemHeading.styles.ts
|
|
19005
19108
|
import { css as css83 } from "@emotion/react";
|
|
19006
19109
|
var ObjectGridItemHeading = css83`
|
|
19110
|
+
color: var(--gray-500);
|
|
19007
19111
|
overflow: hidden;
|
|
19008
19112
|
text-overflow: ellipsis;
|
|
19009
|
-
white-space:
|
|
19010
|
-
|
|
19011
|
-
-
|
|
19012
|
-
-
|
|
19113
|
+
white-space: nowrap;
|
|
19114
|
+
min-width: 0;
|
|
19115
|
+
max-width: 100%;
|
|
19116
|
+
font-size: var(--fs-sm);
|
|
19013
19117
|
`;
|
|
19014
19118
|
var PopoverContent = css83`
|
|
19015
19119
|
min-width: 50px;
|
|
@@ -19020,10 +19124,15 @@ import { jsx as jsx107, jsxs as jsxs70 } from "@emotion/react/jsx-runtime";
|
|
|
19020
19124
|
var ObjectGridItemHeading2 = ({
|
|
19021
19125
|
heading,
|
|
19022
19126
|
beforeHeadingSlot,
|
|
19023
|
-
afterHeadingSlot
|
|
19127
|
+
afterHeadingSlot,
|
|
19128
|
+
tooltip,
|
|
19129
|
+
...props
|
|
19024
19130
|
}) => {
|
|
19025
19131
|
const [hasTruncation, setHasTruncation] = useState13(false);
|
|
19026
19132
|
const headingRef = useRef10(null);
|
|
19133
|
+
const onStopPropagation = (e) => {
|
|
19134
|
+
e.stopPropagation();
|
|
19135
|
+
};
|
|
19027
19136
|
useEffect16(() => {
|
|
19028
19137
|
const currentHeading = headingRef.current;
|
|
19029
19138
|
const observer = new ResizeObserver((entries) => {
|
|
@@ -19041,10 +19150,10 @@ var ObjectGridItemHeading2 = ({
|
|
|
19041
19150
|
}
|
|
19042
19151
|
};
|
|
19043
19152
|
}, []);
|
|
19044
|
-
return /* @__PURE__ */ jsxs70(HorizontalRhythm, { align: "center", gap: "xs", children: [
|
|
19045
|
-
beforeHeadingSlot,
|
|
19046
|
-
/* @__PURE__ */ jsx107(Tooltip, { title: hasTruncation ?
|
|
19047
|
-
afterHeadingSlot
|
|
19153
|
+
return /* @__PURE__ */ jsxs70(HorizontalRhythm, { align: "center", gap: "xs", css: { minWidth: 0 }, children: [
|
|
19154
|
+
beforeHeadingSlot ? /* @__PURE__ */ jsx107(HorizontalRhythm, { gap: "xs", align: "center", onClick: onStopPropagation, children: beforeHeadingSlot }) : null,
|
|
19155
|
+
/* @__PURE__ */ jsx107(Tooltip, { title: hasTruncation && tooltip ? tooltip : "", children: /* @__PURE__ */ jsx107("div", { role: "heading", css: ObjectGridItemHeading, ref: headingRef, ...props, children: heading }) }),
|
|
19156
|
+
afterHeadingSlot ? /* @__PURE__ */ jsx107(HorizontalRhythm, { gap: "xs", align: "center", onClick: onStopPropagation, children: afterHeadingSlot }) : null
|
|
19048
19157
|
] });
|
|
19049
19158
|
};
|
|
19050
19159
|
|
|
@@ -19054,9 +19163,10 @@ var ObjectGridItemIconWithTooltip = ({
|
|
|
19054
19163
|
tooltipTitle,
|
|
19055
19164
|
placement = "bottom-start",
|
|
19056
19165
|
icon,
|
|
19057
|
-
iconColor = "accent-dark"
|
|
19166
|
+
iconColor = "accent-dark",
|
|
19167
|
+
...props
|
|
19058
19168
|
}) => {
|
|
19059
|
-
return /* @__PURE__ */ jsx108(Tooltip, { title: tooltipTitle, placement, children: /* @__PURE__ */ jsx108("span", { children: /* @__PURE__ */ jsx108(Icon, { icon, iconColor, size: "1rem" }) }) });
|
|
19169
|
+
return /* @__PURE__ */ jsx108(Tooltip, { title: tooltipTitle, placement, ...props, css: { minWidth: "max-content" }, children: /* @__PURE__ */ jsx108("span", { css: { whiteSpace: "nowrap" }, children: /* @__PURE__ */ jsx108(Icon, { icon, iconColor, size: "1rem" }) }) });
|
|
19060
19170
|
};
|
|
19061
19171
|
|
|
19062
19172
|
// src/components/Objects/styles/ObjectGridItemLoadingSkeleton.styles.ts
|
|
@@ -19849,7 +19959,7 @@ var ParameterDrawerHeader = ({ title: title2, iconBeforeTitle, children }) => {
|
|
|
19849
19959
|
};
|
|
19850
19960
|
|
|
19851
19961
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
19852
|
-
import { forwardRef as
|
|
19962
|
+
import { forwardRef as forwardRef18 } from "react";
|
|
19853
19963
|
|
|
19854
19964
|
// src/components/ParameterInputs/styles/ParameterGroup.styles.ts
|
|
19855
19965
|
import { css as css91 } from "@emotion/react";
|
|
@@ -19873,7 +19983,7 @@ var fieldsetLegend2 = css91`
|
|
|
19873
19983
|
|
|
19874
19984
|
// src/components/ParameterInputs/ParameterGroup.tsx
|
|
19875
19985
|
import { jsx as jsx119, jsxs as jsxs78 } from "@emotion/react/jsx-runtime";
|
|
19876
|
-
var ParameterGroup =
|
|
19986
|
+
var ParameterGroup = forwardRef18(
|
|
19877
19987
|
({ legend, isDisabled, children, ...props }, ref) => {
|
|
19878
19988
|
return /* @__PURE__ */ jsxs78("fieldset", { css: fieldsetStyles, disabled: isDisabled, ref, ...props, children: [
|
|
19879
19989
|
/* @__PURE__ */ jsx119("legend", { css: fieldsetLegend2, children: legend }),
|
|
@@ -19883,7 +19993,7 @@ var ParameterGroup = forwardRef17(
|
|
|
19883
19993
|
);
|
|
19884
19994
|
|
|
19885
19995
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
19886
|
-
import { forwardRef as
|
|
19996
|
+
import { forwardRef as forwardRef20, useDeferredValue } from "react";
|
|
19887
19997
|
|
|
19888
19998
|
// src/components/ParameterInputs/ParameterImagePreview.tsx
|
|
19889
19999
|
import { useState as useState14 } from "react";
|
|
@@ -19970,9 +20080,9 @@ var ParameterLabel = ({ id, asSpan, children, testId, ...props }) => {
|
|
|
19970
20080
|
};
|
|
19971
20081
|
|
|
19972
20082
|
// src/components/ParameterInputs/ParameterMenuButton.tsx
|
|
19973
|
-
import { forwardRef as
|
|
20083
|
+
import { forwardRef as forwardRef19 } from "react";
|
|
19974
20084
|
import { jsx as jsx122 } from "@emotion/react/jsx-runtime";
|
|
19975
|
-
var ParameterMenuButton =
|
|
20085
|
+
var ParameterMenuButton = forwardRef19(
|
|
19976
20086
|
({ label, children }, ref) => {
|
|
19977
20087
|
return /* @__PURE__ */ jsx122(
|
|
19978
20088
|
Menu,
|
|
@@ -20148,7 +20258,7 @@ var ParameterOverrideMarker = (props) => /* @__PURE__ */ jsx123(Tooltip, { title
|
|
|
20148
20258
|
|
|
20149
20259
|
// src/components/ParameterInputs/ParameterImage.tsx
|
|
20150
20260
|
import { Fragment as Fragment16, jsx as jsx124, jsxs as jsxs81 } from "@emotion/react/jsx-runtime";
|
|
20151
|
-
var ParameterImage =
|
|
20261
|
+
var ParameterImage = forwardRef20(
|
|
20152
20262
|
({ children, ...props }, ref) => {
|
|
20153
20263
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
20154
20264
|
return /* @__PURE__ */ jsxs81(ParameterShell, { "data-test-id": "parameter-image", ...shellProps, children: [
|
|
@@ -20157,7 +20267,7 @@ var ParameterImage = forwardRef19(
|
|
|
20157
20267
|
] });
|
|
20158
20268
|
}
|
|
20159
20269
|
);
|
|
20160
|
-
var ParameterImageInner =
|
|
20270
|
+
var ParameterImageInner = forwardRef20((props, ref) => {
|
|
20161
20271
|
const { value } = props;
|
|
20162
20272
|
const { id, label, hiddenLabel, errorMessage } = useParameterShell();
|
|
20163
20273
|
const deferredValue = useDeferredValue(value);
|
|
@@ -20179,13 +20289,13 @@ var ParameterImageInner = forwardRef19((props, ref) => {
|
|
|
20179
20289
|
});
|
|
20180
20290
|
|
|
20181
20291
|
// src/components/ParameterInputs/ParameterInput.tsx
|
|
20182
|
-
import { forwardRef as
|
|
20292
|
+
import { forwardRef as forwardRef21 } from "react";
|
|
20183
20293
|
import { jsx as jsx125 } from "@emotion/react/jsx-runtime";
|
|
20184
|
-
var ParameterInput =
|
|
20294
|
+
var ParameterInput = forwardRef21((props, ref) => {
|
|
20185
20295
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
20186
20296
|
return /* @__PURE__ */ jsx125(ParameterShell, { "data-testid": "parameter-input", ...shellProps, children: /* @__PURE__ */ jsx125(ParameterInputInner, { ref, ...innerProps }) });
|
|
20187
20297
|
});
|
|
20188
|
-
var ParameterInputInner =
|
|
20298
|
+
var ParameterInputInner = forwardRef21(
|
|
20189
20299
|
({ ...props }, ref) => {
|
|
20190
20300
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
20191
20301
|
return /* @__PURE__ */ jsx125(
|
|
@@ -20204,9 +20314,9 @@ var ParameterInputInner = forwardRef20(
|
|
|
20204
20314
|
);
|
|
20205
20315
|
|
|
20206
20316
|
// src/components/ParameterInputs/ParameterLink.tsx
|
|
20207
|
-
import { forwardRef as
|
|
20317
|
+
import { forwardRef as forwardRef22 } from "react";
|
|
20208
20318
|
import { jsx as jsx126, jsxs as jsxs82 } from "@emotion/react/jsx-runtime";
|
|
20209
|
-
var ParameterLink =
|
|
20319
|
+
var ParameterLink = forwardRef22(
|
|
20210
20320
|
({ disabled: disabled2, onConnectLink, externalLink, ...props }, ref) => {
|
|
20211
20321
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
20212
20322
|
return /* @__PURE__ */ jsx126(
|
|
@@ -20229,7 +20339,7 @@ var ParameterLink = forwardRef21(
|
|
|
20229
20339
|
);
|
|
20230
20340
|
}
|
|
20231
20341
|
);
|
|
20232
|
-
var ParameterLinkInner =
|
|
20342
|
+
var ParameterLinkInner = forwardRef22(
|
|
20233
20343
|
({ externalLink, onConnectLink, disabled: disabled2, buttonText = "Select link", ...props }, ref) => {
|
|
20234
20344
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
20235
20345
|
if (!props.value)
|
|
@@ -21620,7 +21730,7 @@ import {
|
|
|
21620
21730
|
TableCellNode
|
|
21621
21731
|
} from "@lexical/table";
|
|
21622
21732
|
import { $getRoot as $getRoot2, $getSelection as $getSelection3, $isRangeSelection as $isRangeSelection3 } from "lexical";
|
|
21623
|
-
import { forwardRef as
|
|
21733
|
+
import { forwardRef as forwardRef23, useCallback as useCallback11, useEffect as useEffect21, useLayoutEffect, useState as useState17 } from "react";
|
|
21624
21734
|
import { jsx as jsx130, jsxs as jsxs85 } from "@emotion/react/jsx-runtime";
|
|
21625
21735
|
function computeSelectionCount(selection) {
|
|
21626
21736
|
const selectionShape = selection.getShape();
|
|
@@ -21633,7 +21743,7 @@ var tableActionMenuTrigger = css97`
|
|
|
21633
21743
|
position: absolute;
|
|
21634
21744
|
transform: translate(calc(-100% - 1px), 1px);
|
|
21635
21745
|
`;
|
|
21636
|
-
var TableActionMenuTrigger =
|
|
21746
|
+
var TableActionMenuTrigger = forwardRef23((props, ref) => {
|
|
21637
21747
|
const { tableCellEl, positioningAnchorEl, ...rest } = props;
|
|
21638
21748
|
const [coordinates, setCoordinates] = useState17({ x: 0, y: 0 });
|
|
21639
21749
|
useLayoutEffect(() => {
|
|
@@ -23244,15 +23354,15 @@ var RichText = ({
|
|
|
23244
23354
|
};
|
|
23245
23355
|
|
|
23246
23356
|
// src/components/ParameterInputs/ParameterSelect.tsx
|
|
23247
|
-
import { forwardRef as
|
|
23357
|
+
import { forwardRef as forwardRef24 } from "react";
|
|
23248
23358
|
import { jsx as jsx134, jsxs as jsxs89 } from "@emotion/react/jsx-runtime";
|
|
23249
|
-
var ParameterSelect =
|
|
23359
|
+
var ParameterSelect = forwardRef24(
|
|
23250
23360
|
({ defaultOption, options, ...props }, ref) => {
|
|
23251
23361
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
23252
23362
|
return /* @__PURE__ */ jsx134(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx134(ParameterSelectInner, { options, defaultOption, ...innerProps, ref }) });
|
|
23253
23363
|
}
|
|
23254
23364
|
);
|
|
23255
|
-
var ParameterSelectInner =
|
|
23365
|
+
var ParameterSelectInner = forwardRef24(
|
|
23256
23366
|
({ defaultOption, options, ...props }, ref) => {
|
|
23257
23367
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
23258
23368
|
return /* @__PURE__ */ jsxs89(
|
|
@@ -23276,13 +23386,13 @@ var ParameterSelectInner = forwardRef23(
|
|
|
23276
23386
|
);
|
|
23277
23387
|
|
|
23278
23388
|
// src/components/ParameterInputs/ParameterTextarea.tsx
|
|
23279
|
-
import { forwardRef as
|
|
23389
|
+
import { forwardRef as forwardRef25 } from "react";
|
|
23280
23390
|
import { jsx as jsx135 } from "@emotion/react/jsx-runtime";
|
|
23281
|
-
var ParameterTextarea =
|
|
23391
|
+
var ParameterTextarea = forwardRef25((props, ref) => {
|
|
23282
23392
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
23283
23393
|
return /* @__PURE__ */ jsx135(ParameterShell, { "data-testid": "parameter-textarea", ...shellProps, children: /* @__PURE__ */ jsx135(ParameterTextareaInner, { ref, ...innerProps }) });
|
|
23284
23394
|
});
|
|
23285
|
-
var ParameterTextareaInner =
|
|
23395
|
+
var ParameterTextareaInner = forwardRef25(({ ...props }, ref) => {
|
|
23286
23396
|
const { id, label, hiddenLabel } = useParameterShell();
|
|
23287
23397
|
return /* @__PURE__ */ jsx135(
|
|
23288
23398
|
"textarea",
|
|
@@ -23297,13 +23407,13 @@ var ParameterTextareaInner = forwardRef24(({ ...props }, ref) => {
|
|
|
23297
23407
|
});
|
|
23298
23408
|
|
|
23299
23409
|
// src/components/ParameterInputs/ParameterToggle.tsx
|
|
23300
|
-
import { forwardRef as
|
|
23410
|
+
import { forwardRef as forwardRef26 } from "react";
|
|
23301
23411
|
import { jsx as jsx136, jsxs as jsxs90 } from "@emotion/react/jsx-runtime";
|
|
23302
|
-
var ParameterToggle =
|
|
23412
|
+
var ParameterToggle = forwardRef26((props, ref) => {
|
|
23303
23413
|
const { shellProps, innerProps } = extractParameterProps(props);
|
|
23304
23414
|
return /* @__PURE__ */ jsx136(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx136(ParameterToggleInner, { ref, ...innerProps }) });
|
|
23305
23415
|
});
|
|
23306
|
-
var ParameterToggleInner =
|
|
23416
|
+
var ParameterToggleInner = forwardRef26(
|
|
23307
23417
|
({ children, ...props }, ref) => {
|
|
23308
23418
|
const { id, label } = useParameterShell();
|
|
23309
23419
|
return /* @__PURE__ */ jsxs90("label", { css: inputToggleLabel2, children: [
|
|
@@ -23859,7 +23969,7 @@ var Skeleton = ({
|
|
|
23859
23969
|
);
|
|
23860
23970
|
|
|
23861
23971
|
// src/components/Switch/Switch.tsx
|
|
23862
|
-
import { forwardRef as
|
|
23972
|
+
import { forwardRef as forwardRef27 } from "react";
|
|
23863
23973
|
|
|
23864
23974
|
// src/components/Switch/Switch.styles.ts
|
|
23865
23975
|
import { css as css107 } from "@emotion/react";
|
|
@@ -23950,7 +24060,7 @@ var SwitchText = (size) => css107`
|
|
|
23950
24060
|
|
|
23951
24061
|
// src/components/Switch/Switch.tsx
|
|
23952
24062
|
import { Fragment as Fragment22, jsx as jsx141, jsxs as jsxs93 } from "@emotion/react/jsx-runtime";
|
|
23953
|
-
var Switch =
|
|
24063
|
+
var Switch = forwardRef27(
|
|
23954
24064
|
({ label, infoText, toggleText, children, switchSize = "base", ...inputProps }, ref) => {
|
|
23955
24065
|
let additionalText = infoText;
|
|
23956
24066
|
if (infoText && toggleText) {
|
|
@@ -24152,7 +24262,6 @@ var StatusBulletContainer = css110`
|
|
|
24152
24262
|
gap: var(--spacing-xs);
|
|
24153
24263
|
line-height: 1;
|
|
24154
24264
|
position: relative;
|
|
24155
|
-
text-transform: lowercase;
|
|
24156
24265
|
|
|
24157
24266
|
&:before {
|
|
24158
24267
|
border-radius: var(--rounded-full);
|
|
@@ -24227,6 +24336,7 @@ var StatusBullet = ({
|
|
|
24227
24336
|
hideText = false,
|
|
24228
24337
|
size = "base",
|
|
24229
24338
|
message,
|
|
24339
|
+
compact = false,
|
|
24230
24340
|
...props
|
|
24231
24341
|
}) => {
|
|
24232
24342
|
const currentStateStyles = {
|
|
@@ -24241,7 +24351,7 @@ var StatusBullet = ({
|
|
|
24241
24351
|
Deleted: StatusDeleted
|
|
24242
24352
|
};
|
|
24243
24353
|
const statusSize = size === "base" ? StatusBulletBase : StatusBulletSmall;
|
|
24244
|
-
|
|
24354
|
+
const StatusComponent = () => /* @__PURE__ */ jsx144(
|
|
24245
24355
|
"span",
|
|
24246
24356
|
{
|
|
24247
24357
|
role: "status",
|
|
@@ -24249,7 +24359,11 @@ var StatusBullet = ({
|
|
|
24249
24359
|
...props,
|
|
24250
24360
|
children: hideText ? null : message ? message : status
|
|
24251
24361
|
}
|
|
24252
|
-
)
|
|
24362
|
+
);
|
|
24363
|
+
if (compact) {
|
|
24364
|
+
return /* @__PURE__ */ jsx144(StatusComponent, {});
|
|
24365
|
+
}
|
|
24366
|
+
return /* @__PURE__ */ jsx144(Tooltip, { title: message != null ? message : status, children: /* @__PURE__ */ jsx144("div", { children: /* @__PURE__ */ jsx144(StatusComponent, {}) }) });
|
|
24253
24367
|
};
|
|
24254
24368
|
export {
|
|
24255
24369
|
AddButton,
|