@oliasoft-open-source/react-ui-library 6.13.0-beta-1 → 6.13.0-beta-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/index.js CHANGED
@@ -336,22 +336,23 @@ var Qr = /* @__PURE__ */ function(e) {
336
336
  testId: c,
337
337
  children: a
338
338
  }), Ci = {
339
- inputInTable: "_inputInTable_1b8u6_1",
340
- inputHover: "_inputHover_1b8u6_13",
341
- inputFocus: "_inputFocus_1b8u6_18",
342
- controlFocusVisible: "_controlFocusVisible_1b8u6_25",
343
- inputError: "_inputError_1b8u6_29",
344
- inputWarning: "_inputWarning_1b8u6_30",
345
- inputDisabled: "_inputDisabled_1b8u6_65",
346
- hideScrollbars: "_hideScrollbars_1b8u6_71",
347
- checkboxContainer: "_checkboxContainer_1b8u6_81",
348
- checkbox: "_checkbox_1b8u6_81",
349
- noLabel: "_noLabel_1b8u6_105",
350
- small: "_small_1b8u6_109",
351
- checkmark: "_checkmark_1b8u6_114",
352
- labelText: "_labelText_1b8u6_134",
353
- noMargin: "_noMargin_1b8u6_184",
354
- isInTable: "_isInTable_1b8u6_190"
339
+ inputInTable: "_inputInTable_p3kuj_1",
340
+ inputHover: "_inputHover_p3kuj_13",
341
+ inputFocus: "_inputFocus_p3kuj_18",
342
+ controlFocusVisible: "_controlFocusVisible_p3kuj_25",
343
+ inputError: "_inputError_p3kuj_29",
344
+ inputWarning: "_inputWarning_p3kuj_30",
345
+ inputDisabled: "_inputDisabled_p3kuj_65",
346
+ hideScrollbars: "_hideScrollbars_p3kuj_71",
347
+ checkboxContainer: "_checkboxContainer_p3kuj_81",
348
+ checkbox: "_checkbox_p3kuj_81",
349
+ noLabel: "_noLabel_p3kuj_105",
350
+ small: "_small_p3kuj_108",
351
+ control: "_control_p3kuj_25",
352
+ labelText: "_labelText_p3kuj_129",
353
+ checkmark: "_checkmark_p3kuj_137",
354
+ noMargin: "_noMargin_p3kuj_200",
355
+ isInTable: "_isInTable_p3kuj_206"
355
356
  }, wi = ({ children: e }) => Jt() === null ? /* @__PURE__ */ y(Lt, { children: e }) : /* @__PURE__ */ y(v, { children: e }), Ti = "layers", Ei = "modalContainer", Di = "modalLayers", Oi = (e) => {
356
357
  var t;
357
358
  if (!e) return;
@@ -592,9 +593,13 @@ var Qr = /* @__PURE__ */ function(e) {
592
593
  "data-testid": f,
593
594
  children: [/* @__PURE__ */ b(Mt, {
594
595
  className: _(Ci.checkbox, u && Ci.small, !s && Ci.noLabel),
596
+ "data-testid": f ? `${f}-control` : void 0,
595
597
  children: [/* @__PURE__ */ y("span", {
596
- className: Ci.checkmark,
597
- children: /* @__PURE__ */ y(W, { icon: H.CHECK })
598
+ className: Ci.control,
599
+ children: /* @__PURE__ */ y("span", {
600
+ className: Ci.checkmark,
601
+ children: /* @__PURE__ */ y(W, { icon: H.CHECK })
602
+ })
598
603
  }), s && /* @__PURE__ */ y("span", {
599
604
  className: Ci.labelText,
600
605
  style: { textTransform: h },
@@ -3901,24 +3906,25 @@ var Ka = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), qa =
3901
3906
  })
3902
3907
  });
3903
3908
  }, sl = {
3904
- inputInTable: "_inputInTable_a8x1w_1",
3905
- inputHover: "_inputHover_a8x1w_13",
3906
- inputFocus: "_inputFocus_a8x1w_18",
3907
- controlFocusVisible: "_controlFocusVisible_a8x1w_25",
3908
- inputError: "_inputError_a8x1w_29",
3909
- inputWarning: "_inputWarning_a8x1w_30",
3910
- inputDisabled: "_inputDisabled_a8x1w_65",
3911
- hideScrollbars: "_hideScrollbars_a8x1w_71",
3912
- wrapper: "_wrapper_a8x1w_81",
3913
- groupLabel: "_groupLabel_a8x1w_87",
3914
- radioGroupStandalone: "_radioGroupStandalone_a8x1w_93",
3915
- radioContainer: "_radioContainer_a8x1w_96",
3916
- small: "_small_a8x1w_102",
3917
- noMargin: "_noMargin_a8x1w_105",
3918
- radio: "_radio_a8x1w_93",
3919
- noLabel: "_noLabel_a8x1w_131",
3920
- labelText: "_labelText_a8x1w_135",
3921
- isInTable: "_isInTable_a8x1w_195"
3909
+ inputInTable: "_inputInTable_abetp_1",
3910
+ inputHover: "_inputHover_abetp_13",
3911
+ inputFocus: "_inputFocus_abetp_18",
3912
+ controlFocusVisible: "_controlFocusVisible_abetp_25",
3913
+ inputError: "_inputError_abetp_29",
3914
+ inputWarning: "_inputWarning_abetp_30",
3915
+ inputDisabled: "_inputDisabled_abetp_65",
3916
+ hideScrollbars: "_hideScrollbars_abetp_71",
3917
+ wrapper: "_wrapper_abetp_81",
3918
+ groupLabel: "_groupLabel_abetp_87",
3919
+ radioGroupStandalone: "_radioGroupStandalone_abetp_93",
3920
+ radioContainer: "_radioContainer_abetp_96",
3921
+ small: "_small_abetp_102",
3922
+ noMargin: "_noMargin_abetp_105",
3923
+ radio: "_radio_abetp_93",
3924
+ noLabel: "_noLabel_abetp_131",
3925
+ control: "_control_abetp_25",
3926
+ labelText: "_labelText_abetp_151",
3927
+ isInTable: "_isInTable_abetp_214"
3922
3928
  }, cl = ({ name: e, label: t, value: n, selected: r = !1, disabled: i = !1, small: a = !1, onChange: o, noMargin: s = !1, testId: l, helpText: u, onClickHelp: d, textTransform: f = ni.CAPITALIZE }) => {
3923
3929
  var p;
3924
3930
  let m = c(Er) != null, h = u || d, g = n.toString(), v = /* @__PURE__ */ b(wr, {
@@ -3926,13 +3932,14 @@ var Ka = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), qa =
3926
3932
  isDisabled: i,
3927
3933
  className: sl.radioContainer,
3928
3934
  "data-testid": l,
3929
- children: [/* @__PURE__ */ y(Cr, {
3935
+ children: [/* @__PURE__ */ b(Cr, {
3930
3936
  className: _(sl.radio, a && sl.small, s && sl.noMargin, !t && sl.noLabel),
3931
- children: t && /* @__PURE__ */ y("span", {
3937
+ "data-testid": l ? `${l}-control` : void 0,
3938
+ children: [/* @__PURE__ */ y("span", { className: sl.control }), t && /* @__PURE__ */ y("span", {
3932
3939
  className: sl.labelText,
3933
3940
  style: { textTransform: f },
3934
3941
  children: t
3935
- })
3942
+ })]
3936
3943
  }), h && /* @__PURE__ */ y(Bi, {
3937
3944
  text: u,
3938
3945
  onClick: d
@@ -4853,20 +4860,21 @@ var Ka = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), qa =
4853
4860
  ou({ ...e });
4854
4861
  });
4855
4862
  }, lu = {
4856
- inputInTable: "_inputInTable_1fvym_1",
4857
- inputHover: "_inputHover_1fvym_13",
4858
- inputFocus: "_inputFocus_1fvym_18",
4859
- controlFocusVisible: "_controlFocusVisible_1fvym_25",
4860
- inputError: "_inputError_1fvym_29",
4861
- inputWarning: "_inputWarning_1fvym_30",
4862
- inputDisabled: "_inputDisabled_1fvym_65",
4863
- hideScrollbars: "_hideScrollbars_1fvym_71",
4864
- toggleContainer: "_toggleContainer_1fvym_89",
4865
- toggle: "_toggle_1fvym_89",
4866
- small: "_small_1fvym_111",
4867
- labelText: "_labelText_1fvym_116",
4868
- noLabel: "_noLabel_1fvym_155",
4869
- noMargin: "_noMargin_1fvym_182"
4863
+ inputInTable: "_inputInTable_h6wco_1",
4864
+ inputHover: "_inputHover_h6wco_13",
4865
+ inputFocus: "_inputFocus_h6wco_18",
4866
+ controlFocusVisible: "_controlFocusVisible_h6wco_25",
4867
+ inputError: "_inputError_h6wco_29",
4868
+ inputWarning: "_inputWarning_h6wco_30",
4869
+ inputDisabled: "_inputDisabled_h6wco_65",
4870
+ hideScrollbars: "_hideScrollbars_h6wco_71",
4871
+ toggleContainer: "_toggleContainer_h6wco_89",
4872
+ toggle: "_toggle_h6wco_89",
4873
+ small: "_small_h6wco_112",
4874
+ noLabel: "_noLabel_h6wco_117",
4875
+ control: "_control_h6wco_25",
4876
+ labelText: "_labelText_h6wco_137",
4877
+ noMargin: "_noMargin_h6wco_201"
4870
4878
  }, uu = ({ name: e, label: t, checked: n = !1, disabled: r, display: i, small: a = !1, onChange: o, noMargin: s = !1, testId: l, helpText: u, onClickHelp: d, textTransform: f = ni.CAPITALIZE }) => {
4871
4879
  let p = c(U), m = u || d;
4872
4880
  return /* @__PURE__ */ b(Rr, {
@@ -4883,13 +4891,14 @@ var Ka = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), qa =
4883
4891
  className: _(lu.toggleContainer, s && lu.noMargin),
4884
4892
  style: { display: i },
4885
4893
  "data-testid": l,
4886
- children: [/* @__PURE__ */ y(Lr, {
4894
+ children: [/* @__PURE__ */ b(Lr, {
4887
4895
  className: _(lu.toggle, a && lu.small, !t && lu.noLabel),
4888
- children: t && /* @__PURE__ */ y("span", {
4896
+ "data-testid": l ? `${l}-control` : void 0,
4897
+ children: [/* @__PURE__ */ y("span", { className: lu.control }), t && /* @__PURE__ */ y("span", {
4889
4898
  className: lu.labelText,
4890
4899
  style: { textTransform: f },
4891
4900
  children: t
4892
- })
4901
+ })]
4893
4902
  }), m && /* @__PURE__ */ y(Bi, {
4894
4903
  text: u,
4895
4904
  onClick: d
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oliasoft-open-source/react-ui-library",
3
- "version": "6.13.0-beta-1",
3
+ "version": "6.13.0-beta-2",
4
4
  "description": "Reusable UI components for React projects",
5
5
  "homepage": "https://oliasoft-open-source.gitlab.io/react-ui-library",
6
6
  "bugs": {