@oliasoft-open-source/react-ui-library 7.1.0-beta-4 → 7.1.0-beta-6
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.
|
@@ -4,4 +4,5 @@ export default _default;
|
|
|
4
4
|
export declare const Test: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, any>;
|
|
5
5
|
export declare const TestInline: import('storybook/internal/csf').AnnotatedStoryFn<import('@storybook/react-vite').ReactRenderer, any>;
|
|
6
6
|
export declare const TestStandalone: StoryFn;
|
|
7
|
+
export declare const TestStandaloneMissingValue: StoryFn;
|
|
7
8
|
//# sourceMappingURL=radio-button.test-case.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio-button.test-case.stories.d.ts","sourceRoot":"","sources":["../../../src/components/radio-button/radio-button.test-case.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;wBAqCjD,IAAI;AAXT,wBAWU;AAeV,eAAO,MAAM,IAAI,uGAAoB,CAAC;AA6EtC,eAAO,MAAM,UAAU,uGAAoB,CAAC;AAY5C,eAAO,MAAM,cAAc,EAAE,OAG5B,CAAC"}
|
|
1
|
+
{"version":3,"file":"radio-button.test-case.stories.d.ts","sourceRoot":"","sources":["../../../src/components/radio-button/radio-button.test-case.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;wBAqCjD,IAAI;AAXT,wBAWU;AAeV,eAAO,MAAM,IAAI,uGAAoB,CAAC;AA6EtC,eAAO,MAAM,UAAU,uGAAoB,CAAC;AAY5C,eAAO,MAAM,cAAc,EAAE,OAG5B,CAAC;AAYF,eAAO,MAAM,0BAA0B,EAAE,OAUxC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4016,10 +4016,10 @@ var go = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), _o =
|
|
|
4016
4016
|
control: "_control_abetp_25",
|
|
4017
4017
|
labelText: "_labelText_abetp_151",
|
|
4018
4018
|
isInTable: "_isInTable_abetp_214"
|
|
4019
|
-
}, Ol = ({ name: e, label: t, value: n, selected: r = !1, disabled: i = !1, small: a = !1, onChange: o, noMargin: s = !1, testId: c, helpText: l, onClickHelp: d, textTransform: f = pi.CAPITALIZE }) => {
|
|
4020
|
-
var p;
|
|
4021
|
-
let
|
|
4022
|
-
value:
|
|
4019
|
+
}, Ol = ({ name: e, label: t, value: n = "", selected: r = !1, disabled: i = !1, small: a = !1, onChange: o, noMargin: s = !1, testId: c, helpText: l, onClickHelp: d, textTransform: f = pi.CAPITALIZE }) => {
|
|
4020
|
+
var p, m;
|
|
4021
|
+
let h = u(Nr) != null, g = l || d, _ = (p = n == null ? void 0 : n.toString()) == null ? "" : p, v = /* @__PURE__ */ S(jr, {
|
|
4022
|
+
value: _,
|
|
4023
4023
|
isDisabled: i,
|
|
4024
4024
|
className: Dl.radioContainer,
|
|
4025
4025
|
"data-testid": c ? `${c}-field` : void 0,
|
|
@@ -4031,36 +4031,39 @@ var go = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), _o =
|
|
|
4031
4031
|
style: { textTransform: f },
|
|
4032
4032
|
children: t
|
|
4033
4033
|
})]
|
|
4034
|
-
}),
|
|
4034
|
+
}), g && /* @__PURE__ */ x(Zi, {
|
|
4035
4035
|
text: l,
|
|
4036
4036
|
onClick: d
|
|
4037
4037
|
})]
|
|
4038
4038
|
});
|
|
4039
|
-
return
|
|
4039
|
+
return h ? v : /* @__PURE__ */ x(Mr, {
|
|
4040
4040
|
name: e == null ? void 0 : e.toString(),
|
|
4041
|
-
"aria-label": String((
|
|
4042
|
-
value: r ?
|
|
4041
|
+
"aria-label": String((m = t == null ? e : t) == null ? "Radio" : m),
|
|
4042
|
+
value: r ? _ : null,
|
|
4043
4043
|
onChange: () => {
|
|
4044
4044
|
var n;
|
|
4045
4045
|
o == null || o({ target: {
|
|
4046
4046
|
name: (n = e == null ? void 0 : e.toString()) == null ? "" : n,
|
|
4047
|
-
value:
|
|
4047
|
+
value: _,
|
|
4048
4048
|
label: t == null ? void 0 : t.toString()
|
|
4049
4049
|
} });
|
|
4050
4050
|
},
|
|
4051
4051
|
isDisabled: i,
|
|
4052
4052
|
className: Dl.radioGroupStandalone,
|
|
4053
|
-
children:
|
|
4053
|
+
children: v
|
|
4054
4054
|
});
|
|
4055
|
-
}, kl = ({ cell: e, testId: t }) =>
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4055
|
+
}, kl = ({ cell: e, testId: t }) => {
|
|
4056
|
+
var n;
|
|
4057
|
+
return /* @__PURE__ */ x(Ol, {
|
|
4058
|
+
selected: e.selected,
|
|
4059
|
+
name: e.name,
|
|
4060
|
+
value: (n = e.value) == null ? "" : n,
|
|
4061
|
+
noMargin: !0,
|
|
4062
|
+
disabled: e.disabled,
|
|
4063
|
+
onChange: (t) => e.onChange(t),
|
|
4064
|
+
testId: t
|
|
4065
|
+
});
|
|
4066
|
+
}, Al = ({ cell: e, isHeader: t, columnAlignment: n, testId: r }) => {
|
|
4064
4067
|
if (!e) return null;
|
|
4065
4068
|
switch (e.type) {
|
|
4066
4069
|
case "Input":
|
|
@@ -6368,7 +6371,10 @@ var go = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), _o =
|
|
|
6368
6371
|
value: (d = g == null ? void 0 : g.toString()) == null ? null : d,
|
|
6369
6372
|
orientation: c ? "horizontal" : "vertical",
|
|
6370
6373
|
onChange: (t) => {
|
|
6371
|
-
let n = m.find((e) =>
|
|
6374
|
+
let n = m.find((e) => {
|
|
6375
|
+
var n;
|
|
6376
|
+
return ((n = e.value) == null ? void 0 : n.toString()) === t;
|
|
6377
|
+
});
|
|
6372
6378
|
i == null || i({ target: {
|
|
6373
6379
|
name: e == null ? "" : e,
|
|
6374
6380
|
value: t,
|
|
@@ -6382,18 +6388,19 @@ var go = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), _o =
|
|
|
6382
6388
|
className: Dl.groupLabel,
|
|
6383
6389
|
children: t
|
|
6384
6390
|
}), m.map((e) => {
|
|
6385
|
-
|
|
6391
|
+
var t, n;
|
|
6392
|
+
let r = a || e.disabled || f;
|
|
6386
6393
|
return /* @__PURE__ */ x(Ol, {
|
|
6387
6394
|
value: e.value,
|
|
6388
6395
|
label: e.label,
|
|
6389
|
-
disabled:
|
|
6396
|
+
disabled: r,
|
|
6390
6397
|
small: o,
|
|
6391
6398
|
noMargin: s,
|
|
6392
6399
|
testId: e.testId,
|
|
6393
6400
|
helpText: e.helpText,
|
|
6394
6401
|
onClickHelp: e.onClickHelp,
|
|
6395
6402
|
textTransform: e.textTransform
|
|
6396
|
-
}, e.value.toString());
|
|
6403
|
+
}, (t = (n = e.value) == null ? void 0 : n.toString()) == null ? "" : t);
|
|
6397
6404
|
})]
|
|
6398
6405
|
});
|
|
6399
6406
|
}, kd = {
|
package/package.json
CHANGED