@oliasoft-open-source/react-ui-library 4.0.0-beta-37 → 4.0.0-beta-38

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/global.css CHANGED
@@ -10683,18 +10683,19 @@ tbody ._staticCell_1diro_116 ._staticCellContent_1diro_119 {
10683
10683
  z-index: var(--zindex-topbar-alert);
10684
10684
  padding: var(--padding-sm);
10685
10685
  }
10686
- ._popConfirm_1919s_1 {
10686
+ ._popConfirm_1sz2n_1 {
10687
10687
  max-width: 350px;
10688
10688
  display: flex;
10689
10689
  flex-direction: column;
10690
10690
  gap: var(--margin);
10691
10691
  }
10692
- ._content_1919s_7 {
10692
+ ._content_1sz2n_7 {
10693
10693
  max-height: 200px;
10694
10694
  word-wrap: break-word;
10695
10695
  overflow-y: auto;
10696
+ text-align: center;
10696
10697
  }
10697
- ._buttons_1919s_12 {
10698
+ ._buttons_1sz2n_13 {
10698
10699
  display: flex;
10699
10700
  gap: var(--margin);
10700
10701
  justify-content: center;
package/dist/index.js CHANGED
@@ -16663,10 +16663,11 @@ const styles$A = {
16663
16663
  empty: empty$2,
16664
16664
  text: text$2
16665
16665
  };
16666
- const Empty = ({ width, height, text: text2, children }) => {
16666
+ const Empty = ({ width, height, text: text2, children, testId }) => {
16667
16667
  return /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
16668
16668
  className: styles$A.empty,
16669
16669
  style: { width, height },
16670
+ "data-testId": testId,
16670
16671
  children: [
16671
16672
  /* @__PURE__ */ jsxRuntime.exports.jsx("svg", {
16672
16673
  xmlns: "http://www.w3.org/2000/svg",
@@ -16717,13 +16718,15 @@ Empty.defaultProps = {
16717
16718
  width: "auto",
16718
16719
  height: "auto",
16719
16720
  text: "No data",
16720
- children: null
16721
+ children: null,
16722
+ testId: null
16721
16723
  };
16722
16724
  Empty.propTypes = {
16723
16725
  width: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.number]),
16724
16726
  height: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.number]),
16725
16727
  text: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.node]),
16726
- children: propTypes$1.exports.node
16728
+ children: propTypes$1.exports.node,
16729
+ testId: propTypes$1.exports.string
16727
16730
  };
16728
16731
  const inputGroup = "_inputGroup_biuoa_1";
16729
16732
  const styles$z = {
@@ -16808,6 +16811,7 @@ const Input$1 = forwardRef(
16808
16811
  width: propWidth,
16809
16812
  small: small2,
16810
16813
  onChange,
16814
+ onPaste,
16811
16815
  size: size2,
16812
16816
  placeholder: placeholder3,
16813
16817
  value,
@@ -16856,6 +16860,7 @@ const Input$1 = forwardRef(
16856
16860
  placeholder: placeholder3,
16857
16861
  value,
16858
16862
  onChange,
16863
+ onPaste,
16859
16864
  onKeyPress,
16860
16865
  onFocus,
16861
16866
  onBlur,
@@ -16886,6 +16891,8 @@ Input$1.defaultProps = {
16886
16891
  type: "text",
16887
16892
  onChange: () => {
16888
16893
  },
16894
+ onPaste: () => {
16895
+ },
16889
16896
  onKeyPress: () => {
16890
16897
  },
16891
16898
  onFocus: () => {
@@ -16923,6 +16930,7 @@ Input$1.propTypes = {
16923
16930
  name: propTypes$1.exports.string,
16924
16931
  type: propTypes$1.exports.string,
16925
16932
  onChange: propTypes$1.exports.func,
16933
+ onPaste: propTypes$1.exports.func,
16926
16934
  onKeyPress: propTypes$1.exports.func,
16927
16935
  onFocus: propTypes$1.exports.func,
16928
16936
  onBlur: propTypes$1.exports.func,
@@ -59857,6 +59865,7 @@ const InputCell = (props) => {
59857
59865
  name: cell2.name,
59858
59866
  value: cell2.value,
59859
59867
  onChange: (ev) => cell2.onChange(ev),
59868
+ onPaste: (ev) => cell2.onPaste(ev),
59860
59869
  placeholder: cell2.placeholder,
59861
59870
  error: cell2.error,
59862
59871
  warning: cell2.warning,
@@ -60306,6 +60315,7 @@ const cellShape = propTypes$1.exports.oneOfType([
60306
60315
  value: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.number]),
60307
60316
  type: cellType.isRequired,
60308
60317
  onChange: propTypes$1.exports.func,
60318
+ onPaste: propTypes$1.exports.func,
60309
60319
  placeholder: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.number]),
60310
60320
  error: propTypes$1.exports.oneOfType([
60311
60321
  propTypes$1.exports.string,
@@ -62711,9 +62721,9 @@ TopBar.propTypes = {
62711
62721
  height: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.number]),
62712
62722
  fixedPosition: propTypes$1.exports.bool
62713
62723
  };
62714
- const popConfirm = "_popConfirm_1919s_1";
62715
- const content = "_content_1919s_7";
62716
- const buttons = "_buttons_1919s_12";
62724
+ const popConfirm = "_popConfirm_1sz2n_1";
62725
+ const content = "_content_1sz2n_7";
62726
+ const buttons = "_buttons_1sz2n_13";
62717
62727
  const styles$1 = {
62718
62728
  popConfirm,
62719
62729
  content,
@@ -62725,13 +62735,15 @@ const Content = ({
62725
62735
  onClickOk,
62726
62736
  cancelText,
62727
62737
  onClickCancel,
62728
- close: close2
62738
+ close: close2,
62739
+ testId
62729
62740
  }) => /* @__PURE__ */ jsxRuntime.exports.jsxs("div", {
62730
62741
  className: styles$1.popConfirm,
62731
62742
  children: [
62732
62743
  title2 && /* @__PURE__ */ jsxRuntime.exports.jsx("div", {
62733
62744
  className: styles$1.content,
62734
62745
  children: /* @__PURE__ */ jsxRuntime.exports.jsx(Text, {
62746
+ small: true,
62735
62747
  children: title2
62736
62748
  })
62737
62749
  }),
@@ -62739,13 +62751,17 @@ const Content = ({
62739
62751
  className: styles$1.buttons,
62740
62752
  children: [
62741
62753
  /* @__PURE__ */ jsxRuntime.exports.jsx(Button$1, {
62754
+ small: true,
62742
62755
  colored: true,
62743
62756
  label: okText,
62744
- onClick: () => onClickOk(close2)
62757
+ onClick: () => onClickOk(close2),
62758
+ testId: `${testId}-ok-button`
62745
62759
  }),
62746
62760
  /* @__PURE__ */ jsxRuntime.exports.jsx(Button$1, {
62761
+ small: true,
62747
62762
  label: cancelText,
62748
- onClick: () => onClickCancel(close2)
62763
+ onClick: () => onClickCancel(close2),
62764
+ testId: `${testId}-cancel-button`
62749
62765
  })
62750
62766
  ]
62751
62767
  })
@@ -62760,20 +62776,25 @@ const PopConfirm = ({
62760
62776
  cancelText,
62761
62777
  onClickCancel,
62762
62778
  okText,
62763
- onClickOk
62779
+ onClickOk,
62780
+ overflowContainer,
62781
+ testId
62764
62782
  }) => {
62765
62783
  const content2 = /* @__PURE__ */ jsxRuntime.exports.jsx(Content, {
62766
62784
  title: title2,
62767
62785
  okText,
62768
62786
  onClickOk,
62769
62787
  cancelText,
62770
- onClickCancel
62788
+ onClickCancel,
62789
+ testId
62771
62790
  });
62772
62791
  return /* @__PURE__ */ jsxRuntime.exports.jsx(Popover, {
62773
62792
  content: content2,
62774
62793
  placement,
62775
62794
  closeOnOutsideClick,
62776
62795
  fullWidth,
62796
+ overflowContainer,
62797
+ testId,
62777
62798
  children
62778
62799
  });
62779
62800
  };
@@ -62786,7 +62807,9 @@ PopConfirm.propTypes = {
62786
62807
  cancelText: propTypes$1.exports.string,
62787
62808
  onClickCancel: propTypes$1.exports.func,
62788
62809
  okText: propTypes$1.exports.string,
62789
- onClickOk: propTypes$1.exports.func
62810
+ onClickOk: propTypes$1.exports.func,
62811
+ overflowContainer: propTypes$1.exports.bool,
62812
+ testId: propTypes$1.exports.string
62790
62813
  };
62791
62814
  PopConfirm.defaultProps = {
62792
62815
  children: null,
@@ -62798,7 +62821,9 @@ PopConfirm.defaultProps = {
62798
62821
  onClickCancel: (close2) => close2(),
62799
62822
  okText: "Ok",
62800
62823
  onClickOk: (close2) => {
62801
- }
62824
+ },
62825
+ overflowContainer: false,
62826
+ testId: void 0
62802
62827
  };
62803
62828
  const DndContext = createContext({
62804
62829
  dragDropManager: void 0