@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/components/check-box/check-box.d.ts.map +1 -1
- package/dist/components/check-box/check-box.test-case.stories.d.ts +1 -0
- package/dist/components/check-box/check-box.test-case.stories.d.ts.map +1 -1
- package/dist/components/radio-button/radio-button.test-case.stories.d.ts +2 -1
- package/dist/components/radio-button/radio-button.test-case.stories.d.ts.map +1 -1
- package/dist/components/radio-button/radio-input.d.ts.map +1 -1
- package/dist/components/toggle/toggle.d.ts.map +1 -1
- package/dist/components/toggle/toggle.test-case.stories.d.ts +1 -0
- package/dist/components/toggle/toggle.test-case.stories.d.ts.map +1 -1
- package/dist/global.css +1 -1
- package/dist/index.js +65 -56
- package/package.json +1 -1
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: "
|
|
340
|
-
inputHover: "
|
|
341
|
-
inputFocus: "
|
|
342
|
-
controlFocusVisible: "
|
|
343
|
-
inputError: "
|
|
344
|
-
inputWarning: "
|
|
345
|
-
inputDisabled: "
|
|
346
|
-
hideScrollbars: "
|
|
347
|
-
checkboxContainer: "
|
|
348
|
-
checkbox: "
|
|
349
|
-
noLabel: "
|
|
350
|
-
small: "
|
|
351
|
-
|
|
352
|
-
labelText: "
|
|
353
|
-
|
|
354
|
-
|
|
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.
|
|
597
|
-
children: /* @__PURE__ */ y(
|
|
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: "
|
|
3905
|
-
inputHover: "
|
|
3906
|
-
inputFocus: "
|
|
3907
|
-
controlFocusVisible: "
|
|
3908
|
-
inputError: "
|
|
3909
|
-
inputWarning: "
|
|
3910
|
-
inputDisabled: "
|
|
3911
|
-
hideScrollbars: "
|
|
3912
|
-
wrapper: "
|
|
3913
|
-
groupLabel: "
|
|
3914
|
-
radioGroupStandalone: "
|
|
3915
|
-
radioContainer: "
|
|
3916
|
-
small: "
|
|
3917
|
-
noMargin: "
|
|
3918
|
-
radio: "
|
|
3919
|
-
noLabel: "
|
|
3920
|
-
|
|
3921
|
-
|
|
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__ */
|
|
3935
|
+
children: [/* @__PURE__ */ b(Cr, {
|
|
3930
3936
|
className: _(sl.radio, a && sl.small, s && sl.noMargin, !t && sl.noLabel),
|
|
3931
|
-
|
|
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: "
|
|
4857
|
-
inputHover: "
|
|
4858
|
-
inputFocus: "
|
|
4859
|
-
controlFocusVisible: "
|
|
4860
|
-
inputError: "
|
|
4861
|
-
inputWarning: "
|
|
4862
|
-
inputDisabled: "
|
|
4863
|
-
hideScrollbars: "
|
|
4864
|
-
toggleContainer: "
|
|
4865
|
-
toggle: "
|
|
4866
|
-
small: "
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
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__ */
|
|
4894
|
+
children: [/* @__PURE__ */ b(Lr, {
|
|
4887
4895
|
className: _(lu.toggle, a && lu.small, !t && lu.noLabel),
|
|
4888
|
-
|
|
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