@oliasoft-open-source/react-ui-library 3.1.8 → 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.
Files changed (2) hide show
  1. package/dist/index.js +13 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -12689,7 +12689,8 @@ const Dialog = ({
12689
12689
  scroll: scroll3,
12690
12690
  width,
12691
12691
  height,
12692
- onClose
12692
+ onClose,
12693
+ testId
12693
12694
  } = dialog2;
12694
12695
  return /* @__PURE__ */ jsxs("div", {
12695
12696
  className: cx(styles$A.dialog, width ? styles$A.inline : null, scroll3 ? styles$A.scroll : null),
@@ -12697,9 +12698,11 @@ const Dialog = ({
12697
12698
  width,
12698
12699
  height
12699
12700
  },
12701
+ "data-testid": testId != null ? testId : null,
12700
12702
  children: [/* @__PURE__ */ jsxs("div", {
12701
12703
  className: styles$A.header,
12702
12704
  children: [/* @__PURE__ */ jsx(Heading$2, {
12705
+ testId: testId && `${testId}-heading`,
12703
12706
  top: true,
12704
12707
  marginBottom: 0,
12705
12708
  children: heading2
@@ -12710,12 +12713,14 @@ const Dialog = ({
12710
12713
  })
12711
12714
  }) : null]
12712
12715
  }), /* @__PURE__ */ jsx("div", {
12716
+ "data-testid": testId && `${testId}-content`,
12713
12717
  className: styles$A.content,
12714
12718
  style: {
12715
12719
  padding: contentPadding2
12716
12720
  },
12717
12721
  children: convertStringToJsx(content2)
12718
12722
  }), footer2 && /* @__PURE__ */ jsx("div", {
12723
+ "data-testid": testId && `${testId}-footer`,
12719
12724
  className: styles$A.footer,
12720
12725
  children: footer2
12721
12726
  })]
@@ -12730,7 +12735,8 @@ const dialogShape = propTypes$1.exports.shape({
12730
12735
  height: propTypes$1.exports.string,
12731
12736
  bordered: propTypes$1.exports.bool,
12732
12737
  onClose: propTypes$1.exports.func,
12733
- scroll: propTypes$1.exports.bool
12738
+ scroll: propTypes$1.exports.bool,
12739
+ testId: propTypes$1.exports.string
12734
12740
  });
12735
12741
  Dialog.propTypes = {
12736
12742
  dialog: dialogShape.isRequired
@@ -24888,10 +24894,12 @@ const ListSubheading = forwardRef(({
24888
24894
  onClick,
24889
24895
  title: title2,
24890
24896
  name: name2,
24891
- icon: icon2
24897
+ icon: icon2,
24898
+ testId
24892
24899
  } = item2;
24893
24900
  return /* @__PURE__ */ jsx("div", {
24894
24901
  ref: (el) => listRowRefs ? listRowRefs.current[index2] = el : void 0,
24902
+ "data-testid": testId != null ? testId : null,
24895
24903
  className: cx(listStyles.item, listStyles.heading, disabled2 || disabledContext ? listStyles.disabled : "", onClick ? listStyles.action : ""),
24896
24904
  onClick: (evt) => {
24897
24905
  if (onClick) {
@@ -24937,7 +24945,8 @@ ListSubheading.propTypes = {
24937
24945
  expanded: propTypes$1.exports.bool,
24938
24946
  name: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.number]).isRequired,
24939
24947
  onClick: propTypes$1.exports.func,
24940
- 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
24941
24950
  }).isRequired,
24942
24951
  index: propTypes$1.exports.number
24943
24952
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "3.1.8",
3
+ "version": "3.1.9",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "module": "./dist/index.js",
6
6
  "main": "./dist/index.js",