@oliasoft-open-source/react-ui-library 3.1.0 → 3.1.2

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
@@ -17600,78 +17600,78 @@ html[data-theme='dark'] {
17600
17600
  /*
17601
17601
  Z-INDEX
17602
17602
  */
17603
- ._inputInTable_47zhf_326 {
17603
+ ._inputInTable_1qv7j_326 {
17604
17604
  background-color: transparent;
17605
17605
  border-radius: inherit !important;
17606
17606
  height: 38px;
17607
17607
  min-height: 100%;
17608
17608
  }
17609
- ._inputInTable_47zhf_326:hover,
17610
- ._inputInTable_47zhf_326:focus {
17609
+ ._inputInTable_1qv7j_326:hover,
17610
+ ._inputInTable_1qv7j_326:focus {
17611
17611
  position: relative;
17612
17612
  }
17613
- ._inputInTable_47zhf_326:hover {
17613
+ ._inputInTable_1qv7j_326:hover {
17614
17614
  z-index: 2;
17615
17615
  }
17616
- ._inputInTable_47zhf_326:focus {
17616
+ ._inputInTable_1qv7j_326:focus {
17617
17617
  z-index: 3;
17618
17618
  }
17619
- ._inputFocus_47zhf_342 {
17619
+ ._inputFocus_1qv7j_342 {
17620
17620
  outline: none !important;
17621
17621
  border: 1px solid var(--color-border-focus) !important;
17622
17622
  box-shadow: var(--shadow-focus);
17623
17623
  }
17624
- ._inputError_47zhf_347,
17625
- ._inputWarning_47zhf_348 {
17624
+ ._inputError_1qv7j_347,
17625
+ ._inputWarning_1qv7j_348 {
17626
17626
  position: relative;
17627
17627
  }
17628
- ._inputError_47zhf_347 {
17628
+ ._inputError_1qv7j_347 {
17629
17629
  z-index: 2;
17630
17630
  border-color: var(--color-border-error) !important;
17631
17631
  color: var(--color-text-error) !important;
17632
17632
  background-color: var(--color-background-error);
17633
17633
  }
17634
- ._inputError_47zhf_347:hover {
17634
+ ._inputError_1qv7j_347:hover {
17635
17635
  border-color: var(--color-border-error-hover) !important;
17636
17636
  }
17637
- ._inputError_47zhf_347:focus {
17637
+ ._inputError_1qv7j_347:focus {
17638
17638
  outline: none !important;
17639
17639
  border: 1px solid var(--color-border-focus) !important;
17640
17640
  box-shadow: var(--shadow-focus);
17641
17641
  }
17642
- ._inputWarning_47zhf_348 {
17642
+ ._inputWarning_1qv7j_348 {
17643
17643
  z-index: 1;
17644
17644
  border-color: var(--color-border-warning) !important;
17645
17645
  color: var(--color-text-warning) !important;
17646
17646
  background-color: var(--color-background-warning);
17647
17647
  }
17648
- ._inputWarning_47zhf_348:hover {
17648
+ ._inputWarning_1qv7j_348:hover {
17649
17649
  border-color: var(--color-border-warning-hover) !important;
17650
17650
  }
17651
- ._inputWarning_47zhf_348:focus {
17651
+ ._inputWarning_1qv7j_348:focus {
17652
17652
  outline: none !important;
17653
17653
  border: 1px solid var(--color-border-focus) !important;
17654
17654
  box-shadow: var(--shadow-focus);
17655
17655
  }
17656
- ._inputDisabled_47zhf_379 {
17656
+ ._inputDisabled_1qv7j_379 {
17657
17657
  pointer-events: none;
17658
17658
  background-color: var(--color-background-disabled);
17659
17659
  color: var(--color-text-muted);
17660
17660
  }
17661
- ._hideScrollbars_47zhf_384 {
17661
+ ._hideScrollbars_1qv7j_384 {
17662
17662
  /* Firefox */
17663
17663
  scrollbar-width: none;
17664
17664
  /* IE 10+ */
17665
17665
  -ms-overflow-style: none;
17666
17666
  /* Chrome, Safari and Opera */
17667
17667
  }
17668
- ._hideScrollbars_47zhf_384::-webkit-scrollbar {
17668
+ ._hideScrollbars_1qv7j_384::-webkit-scrollbar {
17669
17669
  display: none;
17670
17670
  }
17671
- ._cellWrapperPadding_47zhf_394 {
17671
+ ._cellWrapperPadding_1qv7j_394 {
17672
17672
  padding: 9.5px 14px !important;
17673
17673
  }
17674
- ._flexBlock_47zhf_397 {
17674
+ ._flexBlock_1qv7j_397 {
17675
17675
  display: flex;
17676
17676
  align-items: center;
17677
17677
  justify-content: space-between;
@@ -17684,20 +17684,20 @@ html[data-theme='dark'] {
17684
17684
  --color-background-table-header: var(--color-neutral-750);
17685
17685
  --color-background-table-row-tinted: var(--color-neutral-850);
17686
17686
  }
17687
- ._scrollWrapper_47zhf_410._bordered_47zhf_410 {
17687
+ ._scrollWrapper_1qv7j_410._bordered_1qv7j_410 {
17688
17688
  border: 1px solid var(--color-border);
17689
17689
  border-radius: 0.28571429rem;
17690
17690
  }
17691
- ._scrollWrapper_47zhf_410._maxHeight_47zhf_414 {
17691
+ ._scrollWrapper_1qv7j_410._maxHeight_1qv7j_414 {
17692
17692
  display: block;
17693
17693
  overflow-y: auto;
17694
17694
  overflow-x: hidden;
17695
17695
  }
17696
- ._scrollWrapper_47zhf_410._maxHeight_47zhf_414 tfoot td {
17696
+ ._scrollWrapper_1qv7j_410._maxHeight_1qv7j_414 tfoot td {
17697
17697
  position: sticky;
17698
17698
  bottom: 0;
17699
17699
  }
17700
- ._table_47zhf_423 {
17700
+ ._table_1qv7j_423 {
17701
17701
  width: 100%;
17702
17702
  background: var(--color-background-raised);
17703
17703
  box-shadow: none;
@@ -17707,32 +17707,32 @@ html[data-theme='dark'] {
17707
17707
  border-spacing: 0;
17708
17708
  border-radius: inherit;
17709
17709
  }
17710
- ._table_47zhf_423 > :first-child {
17710
+ ._table_1qv7j_423 > :first-child {
17711
17711
  border-top-left-radius: inherit;
17712
17712
  border-top-right-radius: inherit;
17713
17713
  }
17714
- ._table_47zhf_423 > :first-child > :first-child {
17714
+ ._table_1qv7j_423 > :first-child > :first-child {
17715
17715
  border-top-left-radius: inherit;
17716
17716
  border-top-right-radius: inherit;
17717
17717
  }
17718
- ._table_47zhf_423 > :first-child > :first-child > :first-child {
17718
+ ._table_1qv7j_423 > :first-child > :first-child > :first-child {
17719
17719
  border-top-left-radius: inherit;
17720
17720
  }
17721
- ._table_47zhf_423 > :first-child > :first-child > :last-child {
17721
+ ._table_1qv7j_423 > :first-child > :first-child > :last-child {
17722
17722
  border-top-right-radius: inherit;
17723
17723
  }
17724
- ._table_47zhf_423 > :last-child {
17724
+ ._table_1qv7j_423 > :last-child {
17725
17725
  border-bottom-left-radius: inherit;
17726
17726
  border-bottom-right-radius: inherit;
17727
17727
  }
17728
- ._table_47zhf_423 > :last-child > :last-child {
17728
+ ._table_1qv7j_423 > :last-child > :last-child {
17729
17729
  border-bottom-left-radius: inherit;
17730
17730
  border-bottom-right-radius: inherit;
17731
17731
  }
17732
- ._table_47zhf_423 > :last-child > :last-child > :first-child {
17732
+ ._table_1qv7j_423 > :last-child > :last-child > :first-child {
17733
17733
  border-bottom-left-radius: inherit;
17734
17734
  }
17735
- ._table_47zhf_423 > :last-child > :last-child > :last-child {
17735
+ ._table_1qv7j_423 > :last-child > :last-child > :last-child {
17736
17736
  border-bottom-right-radius: inherit;
17737
17737
  }
17738
17738
  th,
@@ -17749,7 +17749,8 @@ td:first-child {
17749
17749
  tr {
17750
17750
  height: 36px;
17751
17751
  }
17752
- td {
17752
+ td,
17753
+ th {
17753
17754
  height: 100%;
17754
17755
  }
17755
17756
  }
@@ -17775,16 +17776,16 @@ td {
17775
17776
  tr:first-child td {
17776
17777
  border-top: none;
17777
17778
  }
17778
- ._cellWrapper_47zhf_394 {
17779
+ ._cellWrapper_1qv7j_394 {
17779
17780
  padding: 9.5px 14px !important;
17780
17781
  }
17781
- ._title_47zhf_504,
17782
- ._footer_47zhf_505 {
17782
+ ._title_1qv7j_505,
17783
+ ._footer_1qv7j_506 {
17783
17784
  display: flex;
17784
17785
  align-items: center;
17785
17786
  justify-content: space-between;
17786
17787
  }
17787
- ._striped_47zhf_510 tbody tr:nth-child(even) {
17788
+ ._striped_1qv7j_511 tbody tr:nth-child(even) {
17788
17789
  background-color: var(--color-background-table-row-tinted);
17789
17790
  }
17790
17791
  tfoot td {
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
- return /* @__PURE__ */ jsxs("span", {
24826
- className: listStyles.title,
24827
- children: [invalid ? /* @__PURE__ */ jsx(Badge, {
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: /* @__PURE__ */ jsx(Name, {
24832
- name: name2,
24833
- icon: icon2
24834
- })
24835
- }) : /* @__PURE__ */ jsx(Name, {
24836
- name: name2,
24837
- icon: icon2
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";
@@ -34752,22 +34769,22 @@ Spacer.propTypes = {
34752
34769
  width: propTypes$1.exports.oneOfType([propTypes$1.exports.string, propTypes$1.exports.number]),
34753
34770
  flex: propTypes$1.exports.bool
34754
34771
  };
34755
- const inputInTable$2 = "_inputInTable_47zhf_326";
34756
- const inputFocus$2 = "_inputFocus_47zhf_342";
34757
- const inputError$2 = "_inputError_47zhf_347";
34758
- const inputWarning$2 = "_inputWarning_47zhf_348";
34759
- const inputDisabled$2 = "_inputDisabled_47zhf_379";
34760
- const hideScrollbars$2 = "_hideScrollbars_47zhf_384";
34761
- const cellWrapperPadding$3 = "_cellWrapperPadding_47zhf_394";
34762
- const flexBlock$3 = "_flexBlock_47zhf_397";
34763
- const scrollWrapper = "_scrollWrapper_47zhf_410";
34764
- const bordered = "_bordered_47zhf_410";
34765
- const maxHeight = "_maxHeight_47zhf_414";
34766
- const table = "_table_47zhf_423";
34767
- const cellWrapper$3 = "_cellWrapper_47zhf_394";
34768
- const title$2 = "_title_47zhf_504";
34769
- const footer$1 = "_footer_47zhf_505";
34770
- const striped = "_striped_47zhf_510";
34772
+ const inputInTable$2 = "_inputInTable_1qv7j_326";
34773
+ const inputFocus$2 = "_inputFocus_1qv7j_342";
34774
+ const inputError$2 = "_inputError_1qv7j_347";
34775
+ const inputWarning$2 = "_inputWarning_1qv7j_348";
34776
+ const inputDisabled$2 = "_inputDisabled_1qv7j_379";
34777
+ const hideScrollbars$2 = "_hideScrollbars_1qv7j_384";
34778
+ const cellWrapperPadding$3 = "_cellWrapperPadding_1qv7j_394";
34779
+ const flexBlock$3 = "_flexBlock_1qv7j_397";
34780
+ const scrollWrapper = "_scrollWrapper_1qv7j_410";
34781
+ const bordered = "_bordered_1qv7j_410";
34782
+ const maxHeight = "_maxHeight_1qv7j_414";
34783
+ const table = "_table_1qv7j_423";
34784
+ const cellWrapper$3 = "_cellWrapper_1qv7j_394";
34785
+ const title$2 = "_title_1qv7j_505";
34786
+ const footer$1 = "_footer_1qv7j_506";
34787
+ const striped = "_striped_1qv7j_511";
34771
34788
  const styles$a = {
34772
34789
  inputInTable: inputInTable$2,
34773
34790
  inputFocus: inputFocus$2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "3.1.0",
3
+ "version": "3.1.2",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "module": "./dist/index.js",
6
6
  "main": "./dist/index.js",