@oliasoft-open-source/react-ui-library 3.1.7 → 3.1.9
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 +62 -26
- 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,
|
|
@@ -12688,7 +12689,8 @@ const Dialog = ({
|
|
|
12688
12689
|
scroll: scroll3,
|
|
12689
12690
|
width,
|
|
12690
12691
|
height,
|
|
12691
|
-
onClose
|
|
12692
|
+
onClose,
|
|
12693
|
+
testId
|
|
12692
12694
|
} = dialog2;
|
|
12693
12695
|
return /* @__PURE__ */ jsxs("div", {
|
|
12694
12696
|
className: cx(styles$A.dialog, width ? styles$A.inline : null, scroll3 ? styles$A.scroll : null),
|
|
@@ -12696,9 +12698,11 @@ const Dialog = ({
|
|
|
12696
12698
|
width,
|
|
12697
12699
|
height
|
|
12698
12700
|
},
|
|
12701
|
+
"data-testid": testId != null ? testId : null,
|
|
12699
12702
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
12700
12703
|
className: styles$A.header,
|
|
12701
12704
|
children: [/* @__PURE__ */ jsx(Heading$2, {
|
|
12705
|
+
testId: testId && `${testId}-heading`,
|
|
12702
12706
|
top: true,
|
|
12703
12707
|
marginBottom: 0,
|
|
12704
12708
|
children: heading2
|
|
@@ -12709,12 +12713,14 @@ const Dialog = ({
|
|
|
12709
12713
|
})
|
|
12710
12714
|
}) : null]
|
|
12711
12715
|
}), /* @__PURE__ */ jsx("div", {
|
|
12716
|
+
"data-testid": testId && `${testId}-content`,
|
|
12712
12717
|
className: styles$A.content,
|
|
12713
12718
|
style: {
|
|
12714
12719
|
padding: contentPadding2
|
|
12715
12720
|
},
|
|
12716
12721
|
children: convertStringToJsx(content2)
|
|
12717
12722
|
}), footer2 && /* @__PURE__ */ jsx("div", {
|
|
12723
|
+
"data-testid": testId && `${testId}-footer`,
|
|
12718
12724
|
className: styles$A.footer,
|
|
12719
12725
|
children: footer2
|
|
12720
12726
|
})]
|
|
@@ -12729,7 +12735,8 @@ const dialogShape = propTypes$1.exports.shape({
|
|
|
12729
12735
|
height: propTypes$1.exports.string,
|
|
12730
12736
|
bordered: propTypes$1.exports.bool,
|
|
12731
12737
|
onClose: propTypes$1.exports.func,
|
|
12732
|
-
scroll: propTypes$1.exports.bool
|
|
12738
|
+
scroll: propTypes$1.exports.bool,
|
|
12739
|
+
testId: propTypes$1.exports.string
|
|
12733
12740
|
});
|
|
12734
12741
|
Dialog.propTypes = {
|
|
12735
12742
|
dialog: dialogShape.isRequired
|
|
@@ -24887,10 +24894,12 @@ const ListSubheading = forwardRef(({
|
|
|
24887
24894
|
onClick,
|
|
24888
24895
|
title: title2,
|
|
24889
24896
|
name: name2,
|
|
24890
|
-
icon: icon2
|
|
24897
|
+
icon: icon2,
|
|
24898
|
+
testId
|
|
24891
24899
|
} = item2;
|
|
24892
24900
|
return /* @__PURE__ */ jsx("div", {
|
|
24893
24901
|
ref: (el) => listRowRefs ? listRowRefs.current[index2] = el : void 0,
|
|
24902
|
+
"data-testid": testId != null ? testId : null,
|
|
24894
24903
|
className: cx(listStyles.item, listStyles.heading, disabled2 || disabledContext ? listStyles.disabled : "", onClick ? listStyles.action : ""),
|
|
24895
24904
|
onClick: (evt) => {
|
|
24896
24905
|
if (onClick) {
|
|
@@ -24936,7 +24945,8 @@ ListSubheading.propTypes = {
|
|
|
24936
24945
|
expanded: propTypes$1.exports.bool,
|
|
24937
24946
|
name: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.number]).isRequired,
|
|
24938
24947
|
onClick: propTypes$1.exports.func,
|
|
24939
|
-
title: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.number])
|
|
24948
|
+
title: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.number]),
|
|
24949
|
+
testId: propTypes$1.exports.string
|
|
24940
24950
|
}).isRequired,
|
|
24941
24951
|
index: propTypes$1.exports.number
|
|
24942
24952
|
};
|
|
@@ -28362,7 +28372,7 @@ Row$1.defaultProps = {
|
|
|
28362
28372
|
marginTop: "0",
|
|
28363
28373
|
spacing: 20,
|
|
28364
28374
|
wrap: false,
|
|
28365
|
-
testId:
|
|
28375
|
+
testId: null
|
|
28366
28376
|
};
|
|
28367
28377
|
Row$1.propTypes = {
|
|
28368
28378
|
alignItems: propTypes$1.exports.string,
|
|
@@ -34816,34 +34826,55 @@ const Title$1 = (props) => {
|
|
|
34816
34826
|
const {
|
|
34817
34827
|
colSpan,
|
|
34818
34828
|
name: name2,
|
|
34819
|
-
actions: actions2
|
|
34829
|
+
actions: actions2,
|
|
34830
|
+
actionsRight,
|
|
34831
|
+
testId
|
|
34820
34832
|
} = props;
|
|
34821
|
-
|
|
34833
|
+
const isNameDefined = name2 !== null;
|
|
34834
|
+
const isActionsDefined = actions2 !== null;
|
|
34835
|
+
if (!isNameDefined && !isActionsDefined) {
|
|
34836
|
+
return null;
|
|
34837
|
+
}
|
|
34838
|
+
const actionsContainer = () => {
|
|
34839
|
+
if (!isActionsDefined) {
|
|
34840
|
+
return null;
|
|
34841
|
+
}
|
|
34842
|
+
const actionsComponent = /* @__PURE__ */ jsx(Actions, {
|
|
34843
|
+
actions: actions2
|
|
34844
|
+
});
|
|
34845
|
+
if (actionsRight) {
|
|
34846
|
+
return actionsComponent;
|
|
34847
|
+
}
|
|
34848
|
+
return /* @__PURE__ */ jsx("div", {
|
|
34849
|
+
children: actionsComponent
|
|
34850
|
+
});
|
|
34851
|
+
};
|
|
34852
|
+
return /* @__PURE__ */ jsx("tr", {
|
|
34822
34853
|
children: /* @__PURE__ */ jsx("th", {
|
|
34823
34854
|
colSpan,
|
|
34824
34855
|
className: styles$9.cellWrapper,
|
|
34825
34856
|
children: /* @__PURE__ */ jsxs("div", {
|
|
34826
34857
|
className: styles$9.title,
|
|
34827
|
-
children: [/* @__PURE__ */ jsx("
|
|
34858
|
+
children: [isNameDefined ? /* @__PURE__ */ jsx("span", {
|
|
34859
|
+
"data-testid": testId,
|
|
34828
34860
|
children: name2
|
|
34829
|
-
})
|
|
34830
|
-
children: actions2 && /* @__PURE__ */ jsx(Actions, {
|
|
34831
|
-
actions: actions2,
|
|
34832
|
-
isBlockElement: true
|
|
34833
|
-
})
|
|
34834
|
-
})]
|
|
34861
|
+
}) : null, actionsContainer()]
|
|
34835
34862
|
})
|
|
34836
34863
|
})
|
|
34837
|
-
})
|
|
34864
|
+
});
|
|
34838
34865
|
};
|
|
34839
34866
|
Title$1.defaultProps = {
|
|
34840
34867
|
name: null,
|
|
34841
|
-
actions: null
|
|
34868
|
+
actions: null,
|
|
34869
|
+
actionsRight: false,
|
|
34870
|
+
testId: null
|
|
34842
34871
|
};
|
|
34843
34872
|
Title$1.propTypes = {
|
|
34844
34873
|
actions: actionsShape,
|
|
34874
|
+
actionsRight: propTypes$1.exports.bool,
|
|
34845
34875
|
colSpan: propTypes$1.exports.number.isRequired,
|
|
34846
|
-
name: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.number])
|
|
34876
|
+
name: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.number]),
|
|
34877
|
+
testId: propTypes$1.exports.string
|
|
34847
34878
|
};
|
|
34848
34879
|
const cellWrapperPadding$1 = "_cellWrapperPadding_1i1hr_326";
|
|
34849
34880
|
const flexBlock$1 = "_flexBlock_1i1hr_329";
|
|
@@ -34896,8 +34927,7 @@ const Footer = (props) => {
|
|
|
34896
34927
|
pagination: pagination2
|
|
34897
34928
|
}) : /* @__PURE__ */ jsx("div", {}), /* @__PURE__ */ jsx("div", {
|
|
34898
34929
|
children: /* @__PURE__ */ jsx(Actions, {
|
|
34899
|
-
actions: actions2
|
|
34900
|
-
isBlockElement: true
|
|
34930
|
+
actions: actions2
|
|
34901
34931
|
})
|
|
34902
34932
|
})]
|
|
34903
34933
|
})
|
|
@@ -35538,7 +35568,7 @@ Cell.defaultProps = {
|
|
|
35538
35568
|
isHeader: false,
|
|
35539
35569
|
style: {},
|
|
35540
35570
|
cell: {},
|
|
35541
|
-
testId:
|
|
35571
|
+
testId: null
|
|
35542
35572
|
};
|
|
35543
35573
|
Cell.propTypes = {
|
|
35544
35574
|
isHeader: propTypes$1.exports.bool,
|
|
@@ -35819,6 +35849,7 @@ const Table = (props) => {
|
|
|
35819
35849
|
name: name2,
|
|
35820
35850
|
rows,
|
|
35821
35851
|
actions: actions2,
|
|
35852
|
+
actionsRight,
|
|
35822
35853
|
columnHeaderAlignments,
|
|
35823
35854
|
columnAlignment,
|
|
35824
35855
|
stickyHeaders,
|
|
@@ -35873,8 +35904,10 @@ const Table = (props) => {
|
|
|
35873
35904
|
children: [/* @__PURE__ */ jsxs("thead", {
|
|
35874
35905
|
children: [/* @__PURE__ */ jsx(Title$1, {
|
|
35875
35906
|
actions: actions2,
|
|
35907
|
+
actionsRight,
|
|
35876
35908
|
name: name2,
|
|
35877
|
-
colSpan
|
|
35909
|
+
colSpan,
|
|
35910
|
+
testId: testId && `${testId}-title`
|
|
35878
35911
|
}), headers.map((row2, rowIndex) => {
|
|
35879
35912
|
return /* @__PURE__ */ jsx(Row, {
|
|
35880
35913
|
rowIndex,
|
|
@@ -35934,8 +35967,10 @@ const Table = (props) => {
|
|
|
35934
35967
|
children: [/* @__PURE__ */ jsxs("thead", {
|
|
35935
35968
|
children: [/* @__PURE__ */ jsx(Title$1, {
|
|
35936
35969
|
actions: actions2,
|
|
35970
|
+
actionsRight,
|
|
35937
35971
|
name: name2,
|
|
35938
|
-
colSpan
|
|
35972
|
+
colSpan,
|
|
35973
|
+
testId: testId && `${testId}-title`
|
|
35939
35974
|
}), headers.map((row2, rowIndex) => {
|
|
35940
35975
|
return /* @__PURE__ */ jsx(Row, {
|
|
35941
35976
|
rowIndex,
|
|
@@ -35978,6 +36013,7 @@ Table.propTypes = {
|
|
|
35978
36013
|
table: propTypes$1.exports.shape({
|
|
35979
36014
|
name: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.number]),
|
|
35980
36015
|
actions: actionsShape,
|
|
36016
|
+
actionsRight: propTypes$1.exports.bool,
|
|
35981
36017
|
fixedWidth: propTypes$1.exports.string,
|
|
35982
36018
|
maxHeight: propTypes$1.exports.string,
|
|
35983
36019
|
columnWidths: propTypes$1.exports.arrayOf(propTypes$1.exports.string),
|