@oliasoft-open-source/react-ui-library 3.1.6 → 3.1.8
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 +49 -23
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1365,7 +1365,7 @@ Accordion.defaultProps = {
|
|
|
1365
1365
|
expanded: false,
|
|
1366
1366
|
onClick: null,
|
|
1367
1367
|
squareBottom: false,
|
|
1368
|
-
testId:
|
|
1368
|
+
testId: null
|
|
1369
1369
|
};
|
|
1370
1370
|
Accordion.propTypes = {
|
|
1371
1371
|
heading: propTypes$1.exports.node.isRequired,
|
|
@@ -7698,7 +7698,7 @@ const Icon = ({
|
|
|
7698
7698
|
Icon.defaultProps = {
|
|
7699
7699
|
clickable: false,
|
|
7700
7700
|
onClick: null,
|
|
7701
|
-
testId:
|
|
7701
|
+
testId: null
|
|
7702
7702
|
};
|
|
7703
7703
|
Icon.propTypes = {
|
|
7704
7704
|
icon: propTypes$1.exports.oneOfType([
|
|
@@ -10720,7 +10720,8 @@ const Actions = (props) => {
|
|
|
10720
10720
|
basic: true,
|
|
10721
10721
|
small: true,
|
|
10722
10722
|
icon: action2.childComponent,
|
|
10723
|
-
testId: action2.testId
|
|
10723
|
+
testId: action2.testId,
|
|
10724
|
+
width: "auto"
|
|
10724
10725
|
}, index2);
|
|
10725
10726
|
} else if (action2.subActions) {
|
|
10726
10727
|
return /* @__PURE__ */ jsx(SubmenuActions, {
|
|
@@ -12424,7 +12425,7 @@ Column.defaultProps = {
|
|
|
12424
12425
|
width: null,
|
|
12425
12426
|
widthMobile: null,
|
|
12426
12427
|
widthTablet: null,
|
|
12427
|
-
testId:
|
|
12428
|
+
testId: null
|
|
12428
12429
|
};
|
|
12429
12430
|
Column.propTypes = {
|
|
12430
12431
|
background: propTypes$1.exports.string,
|
|
@@ -24842,7 +24843,6 @@ const MetaContent = ({
|
|
|
24842
24843
|
}
|
|
24843
24844
|
return /* @__PURE__ */ jsxs("span", {
|
|
24844
24845
|
className: listStyles.title,
|
|
24845
|
-
"data-testid": testId,
|
|
24846
24846
|
children: [renderedName, details2 && /* @__PURE__ */ jsx("span", {
|
|
24847
24847
|
className: listStyles.details,
|
|
24848
24848
|
"data-testid": testId && `${testId}-details`,
|
|
@@ -28363,7 +28363,7 @@ Row$1.defaultProps = {
|
|
|
28363
28363
|
marginTop: "0",
|
|
28364
28364
|
spacing: 20,
|
|
28365
28365
|
wrap: false,
|
|
28366
|
-
testId:
|
|
28366
|
+
testId: null
|
|
28367
28367
|
};
|
|
28368
28368
|
Row$1.propTypes = {
|
|
28369
28369
|
alignItems: propTypes$1.exports.string,
|
|
@@ -34817,34 +34817,55 @@ const Title$1 = (props) => {
|
|
|
34817
34817
|
const {
|
|
34818
34818
|
colSpan,
|
|
34819
34819
|
name: name2,
|
|
34820
|
-
actions: actions2
|
|
34820
|
+
actions: actions2,
|
|
34821
|
+
actionsRight,
|
|
34822
|
+
testId
|
|
34821
34823
|
} = props;
|
|
34822
|
-
|
|
34824
|
+
const isNameDefined = name2 !== null;
|
|
34825
|
+
const isActionsDefined = actions2 !== null;
|
|
34826
|
+
if (!isNameDefined && !isActionsDefined) {
|
|
34827
|
+
return null;
|
|
34828
|
+
}
|
|
34829
|
+
const actionsContainer = () => {
|
|
34830
|
+
if (!isActionsDefined) {
|
|
34831
|
+
return null;
|
|
34832
|
+
}
|
|
34833
|
+
const actionsComponent = /* @__PURE__ */ jsx(Actions, {
|
|
34834
|
+
actions: actions2
|
|
34835
|
+
});
|
|
34836
|
+
if (actionsRight) {
|
|
34837
|
+
return actionsComponent;
|
|
34838
|
+
}
|
|
34839
|
+
return /* @__PURE__ */ jsx("div", {
|
|
34840
|
+
children: actionsComponent
|
|
34841
|
+
});
|
|
34842
|
+
};
|
|
34843
|
+
return /* @__PURE__ */ jsx("tr", {
|
|
34823
34844
|
children: /* @__PURE__ */ jsx("th", {
|
|
34824
34845
|
colSpan,
|
|
34825
34846
|
className: styles$9.cellWrapper,
|
|
34826
34847
|
children: /* @__PURE__ */ jsxs("div", {
|
|
34827
34848
|
className: styles$9.title,
|
|
34828
|
-
children: [/* @__PURE__ */ jsx("
|
|
34849
|
+
children: [isNameDefined ? /* @__PURE__ */ jsx("span", {
|
|
34850
|
+
"data-testid": testId,
|
|
34829
34851
|
children: name2
|
|
34830
|
-
})
|
|
34831
|
-
children: actions2 && /* @__PURE__ */ jsx(Actions, {
|
|
34832
|
-
actions: actions2,
|
|
34833
|
-
isBlockElement: true
|
|
34834
|
-
})
|
|
34835
|
-
})]
|
|
34852
|
+
}) : null, actionsContainer()]
|
|
34836
34853
|
})
|
|
34837
34854
|
})
|
|
34838
|
-
})
|
|
34855
|
+
});
|
|
34839
34856
|
};
|
|
34840
34857
|
Title$1.defaultProps = {
|
|
34841
34858
|
name: null,
|
|
34842
|
-
actions: null
|
|
34859
|
+
actions: null,
|
|
34860
|
+
actionsRight: false,
|
|
34861
|
+
testId: null
|
|
34843
34862
|
};
|
|
34844
34863
|
Title$1.propTypes = {
|
|
34845
34864
|
actions: actionsShape,
|
|
34865
|
+
actionsRight: propTypes$1.exports.bool,
|
|
34846
34866
|
colSpan: propTypes$1.exports.number.isRequired,
|
|
34847
|
-
name: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.number])
|
|
34867
|
+
name: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.number]),
|
|
34868
|
+
testId: propTypes$1.exports.string
|
|
34848
34869
|
};
|
|
34849
34870
|
const cellWrapperPadding$1 = "_cellWrapperPadding_1i1hr_326";
|
|
34850
34871
|
const flexBlock$1 = "_flexBlock_1i1hr_329";
|
|
@@ -34897,8 +34918,7 @@ const Footer = (props) => {
|
|
|
34897
34918
|
pagination: pagination2
|
|
34898
34919
|
}) : /* @__PURE__ */ jsx("div", {}), /* @__PURE__ */ jsx("div", {
|
|
34899
34920
|
children: /* @__PURE__ */ jsx(Actions, {
|
|
34900
|
-
actions: actions2
|
|
34901
|
-
isBlockElement: true
|
|
34921
|
+
actions: actions2
|
|
34902
34922
|
})
|
|
34903
34923
|
})]
|
|
34904
34924
|
})
|
|
@@ -35539,7 +35559,7 @@ Cell.defaultProps = {
|
|
|
35539
35559
|
isHeader: false,
|
|
35540
35560
|
style: {},
|
|
35541
35561
|
cell: {},
|
|
35542
|
-
testId:
|
|
35562
|
+
testId: null
|
|
35543
35563
|
};
|
|
35544
35564
|
Cell.propTypes = {
|
|
35545
35565
|
isHeader: propTypes$1.exports.bool,
|
|
@@ -35820,6 +35840,7 @@ const Table = (props) => {
|
|
|
35820
35840
|
name: name2,
|
|
35821
35841
|
rows,
|
|
35822
35842
|
actions: actions2,
|
|
35843
|
+
actionsRight,
|
|
35823
35844
|
columnHeaderAlignments,
|
|
35824
35845
|
columnAlignment,
|
|
35825
35846
|
stickyHeaders,
|
|
@@ -35874,8 +35895,10 @@ const Table = (props) => {
|
|
|
35874
35895
|
children: [/* @__PURE__ */ jsxs("thead", {
|
|
35875
35896
|
children: [/* @__PURE__ */ jsx(Title$1, {
|
|
35876
35897
|
actions: actions2,
|
|
35898
|
+
actionsRight,
|
|
35877
35899
|
name: name2,
|
|
35878
|
-
colSpan
|
|
35900
|
+
colSpan,
|
|
35901
|
+
testId: testId && `${testId}-title`
|
|
35879
35902
|
}), headers.map((row2, rowIndex) => {
|
|
35880
35903
|
return /* @__PURE__ */ jsx(Row, {
|
|
35881
35904
|
rowIndex,
|
|
@@ -35935,8 +35958,10 @@ const Table = (props) => {
|
|
|
35935
35958
|
children: [/* @__PURE__ */ jsxs("thead", {
|
|
35936
35959
|
children: [/* @__PURE__ */ jsx(Title$1, {
|
|
35937
35960
|
actions: actions2,
|
|
35961
|
+
actionsRight,
|
|
35938
35962
|
name: name2,
|
|
35939
|
-
colSpan
|
|
35963
|
+
colSpan,
|
|
35964
|
+
testId: testId && `${testId}-title`
|
|
35940
35965
|
}), headers.map((row2, rowIndex) => {
|
|
35941
35966
|
return /* @__PURE__ */ jsx(Row, {
|
|
35942
35967
|
rowIndex,
|
|
@@ -35979,6 +36004,7 @@ Table.propTypes = {
|
|
|
35979
36004
|
table: propTypes$1.exports.shape({
|
|
35980
36005
|
name: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.number]),
|
|
35981
36006
|
actions: actionsShape,
|
|
36007
|
+
actionsRight: propTypes$1.exports.bool,
|
|
35982
36008
|
fixedWidth: propTypes$1.exports.string,
|
|
35983
36009
|
maxHeight: propTypes$1.exports.string,
|
|
35984
36010
|
columnWidths: propTypes$1.exports.arrayOf(propTypes$1.exports.string),
|