@oliasoft-open-source/react-ui-library 3.0.6 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +33 -16
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -24777,7 +24777,8 @@ const Label$1 = ({
|
|
|
24777
24777
|
};
|
|
24778
24778
|
const Name = ({
|
|
24779
24779
|
name: name2,
|
|
24780
|
-
icon: icon2
|
|
24780
|
+
icon: icon2,
|
|
24781
|
+
testId
|
|
24781
24782
|
}) => {
|
|
24782
24783
|
const newIcon = icon2 && /* @__PURE__ */ jsx(Icon, {
|
|
24783
24784
|
icon: icon2.icon,
|
|
@@ -24786,6 +24787,7 @@ const Name = ({
|
|
|
24786
24787
|
});
|
|
24787
24788
|
return /* @__PURE__ */ jsxs("span", {
|
|
24788
24789
|
className: cx(listStyles.name, listStyles.bold),
|
|
24790
|
+
"data-testid": testId,
|
|
24789
24791
|
children: [name2, icon2 && icon2.tooltip && icon2.tooltip.text ? /* @__PURE__ */ jsx("span", {
|
|
24790
24792
|
className: listStyles.iconTooltipMargin,
|
|
24791
24793
|
children: /* @__PURE__ */ jsx(Tooltip$2, {
|
|
@@ -24807,10 +24809,12 @@ Name.propTypes = {
|
|
|
24807
24809
|
tooltip: propTypes$1.exports.shape({
|
|
24808
24810
|
text: propTypes$1.exports.oneOfType([propTypes$1.exports.node, propTypes$1.exports.string])
|
|
24809
24811
|
})
|
|
24810
|
-
})
|
|
24812
|
+
}),
|
|
24813
|
+
testId: propTypes$1.exports.string
|
|
24811
24814
|
};
|
|
24812
24815
|
Name.defaultProps = {
|
|
24813
|
-
icon: null
|
|
24816
|
+
icon: null,
|
|
24817
|
+
testId: void 0
|
|
24814
24818
|
};
|
|
24815
24819
|
const MetaContent = ({
|
|
24816
24820
|
item: item2
|
|
@@ -24820,26 +24824,32 @@ const MetaContent = ({
|
|
|
24820
24824
|
icon: icon2,
|
|
24821
24825
|
details: details2,
|
|
24822
24826
|
metadata: metadata2,
|
|
24823
|
-
invalid
|
|
24827
|
+
invalid,
|
|
24828
|
+
testId
|
|
24824
24829
|
} = item2;
|
|
24825
|
-
|
|
24826
|
-
|
|
24827
|
-
|
|
24830
|
+
let renderedName = /* @__PURE__ */ jsx(Name, {
|
|
24831
|
+
name: name2,
|
|
24832
|
+
icon: icon2,
|
|
24833
|
+
testId: testId && `${testId}-name`
|
|
24834
|
+
});
|
|
24835
|
+
if (invalid) {
|
|
24836
|
+
renderedName = /* @__PURE__ */ jsx(Badge, {
|
|
24828
24837
|
small: true,
|
|
24829
24838
|
margin: "-2px",
|
|
24830
24839
|
title: "!",
|
|
24831
|
-
children:
|
|
24832
|
-
|
|
24833
|
-
|
|
24834
|
-
|
|
24835
|
-
|
|
24836
|
-
|
|
24837
|
-
|
|
24838
|
-
}), details2 && /* @__PURE__ */ jsx("span", {
|
|
24840
|
+
children: renderedName
|
|
24841
|
+
});
|
|
24842
|
+
}
|
|
24843
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
24844
|
+
className: listStyles.title,
|
|
24845
|
+
"data-testid": testId,
|
|
24846
|
+
children: [renderedName, details2 && /* @__PURE__ */ jsx("span", {
|
|
24839
24847
|
className: listStyles.details,
|
|
24848
|
+
"data-testid": testId && `${testId}-details`,
|
|
24840
24849
|
children: details2
|
|
24841
24850
|
}), metadata2 && /* @__PURE__ */ jsx("span", {
|
|
24842
24851
|
className: listStyles.metadata,
|
|
24852
|
+
"data-testid": testId && `${testId}-metadata`,
|
|
24843
24853
|
children: metadata2
|
|
24844
24854
|
})]
|
|
24845
24855
|
});
|
|
@@ -25272,7 +25282,8 @@ const Loader = ({
|
|
|
25272
25282
|
fullViewPortSize: fullViewPortSize2,
|
|
25273
25283
|
cover: cover2,
|
|
25274
25284
|
children,
|
|
25275
|
-
theme
|
|
25285
|
+
theme,
|
|
25286
|
+
testId
|
|
25276
25287
|
}) => {
|
|
25277
25288
|
const color = theme === "dark" ? "white" : "inherit";
|
|
25278
25289
|
const background = theme === "white" ? "var(--color-background-raised)" : theme === "light" ? "var(--color-background)" : "black";
|
|
@@ -25284,6 +25295,7 @@ const Loader = ({
|
|
|
25284
25295
|
width,
|
|
25285
25296
|
height
|
|
25286
25297
|
},
|
|
25298
|
+
"data-testid": testId,
|
|
25287
25299
|
children: /* @__PURE__ */ jsx("div", {
|
|
25288
25300
|
className: styles$q.dimmer,
|
|
25289
25301
|
style: {
|
|
@@ -25292,11 +25304,14 @@ const Loader = ({
|
|
|
25292
25304
|
},
|
|
25293
25305
|
children: /* @__PURE__ */ jsxs("div", {
|
|
25294
25306
|
className: styles$q.content,
|
|
25307
|
+
"data-testid": testId && `${testId}-content`,
|
|
25295
25308
|
children: [children, text2 !== "" && /* @__PURE__ */ jsx("div", {
|
|
25296
25309
|
className: styles$q.text,
|
|
25310
|
+
"data-testid": testId && `${testId}-text`,
|
|
25297
25311
|
children: text2
|
|
25298
25312
|
}), details2 !== "" && /* @__PURE__ */ jsx("div", {
|
|
25299
25313
|
className: styles$q.details,
|
|
25314
|
+
"data-testid": testId && `${testId}-details`,
|
|
25300
25315
|
children: details2
|
|
25301
25316
|
})]
|
|
25302
25317
|
})
|
|
@@ -25311,6 +25326,7 @@ Loader.defaultProps = {
|
|
|
25311
25326
|
text: "",
|
|
25312
25327
|
details: "",
|
|
25313
25328
|
children: null,
|
|
25329
|
+
testId: null,
|
|
25314
25330
|
theme: "dark"
|
|
25315
25331
|
};
|
|
25316
25332
|
Loader.propTypes = {
|
|
@@ -25321,6 +25337,7 @@ Loader.propTypes = {
|
|
|
25321
25337
|
text: propTypes$1.exports.string,
|
|
25322
25338
|
details: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.node]),
|
|
25323
25339
|
children: propTypes$1.exports.node,
|
|
25340
|
+
testId: propTypes$1.exports.string,
|
|
25324
25341
|
theme: propTypes$1.exports.string
|
|
25325
25342
|
};
|
|
25326
25343
|
const inputInTable$6 = "_inputInTable_1eo2f_326";
|