@oliasoft-open-source/react-ui-library 7.0.2-beta-5 → 7.0.3-beta-1
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changes-overview.d.ts","sourceRoot":"","sources":["../../../src/components/audit-log/changes-overview.tsx"],"names":[],"mappings":"AACA,OAAO,EAAkC,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AA2E/C,eAAO,MAAM,eAAe,GAAI,wDAK7B;IACD,YAAY,EAAE,YAAY,EAAE,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,
|
|
1
|
+
{"version":3,"file":"changes-overview.d.ts","sourceRoot":"","sources":["../../../src/components/audit-log/changes-overview.tsx"],"names":[],"mappings":"AACA,OAAO,EAAkC,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AA2E/C,eAAO,MAAM,eAAe,GAAI,wDAK7B;IACD,YAAY,EAAE,YAAY,EAAE,CAAC;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,4CA+BA,CAAC"}
|
|
@@ -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
|
@@ -3928,10 +3928,10 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
3928
3928
|
control: "_control_abetp_25",
|
|
3929
3929
|
labelText: "_labelText_abetp_151",
|
|
3930
3930
|
isInTable: "_isInTable_abetp_214"
|
|
3931
|
-
}, ll = ({ 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 = oi.CAPITALIZE }) => {
|
|
3932
|
-
var p;
|
|
3933
|
-
let
|
|
3934
|
-
value:
|
|
3931
|
+
}, ll = ({ 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 = oi.CAPITALIZE }) => {
|
|
3932
|
+
var p, m;
|
|
3933
|
+
let h = c(Er) != null, g = u || d, v = (p = n == null ? void 0 : n.toString()) == null ? "" : p, x = /* @__PURE__ */ b(wr, {
|
|
3934
|
+
value: v,
|
|
3935
3935
|
isDisabled: i,
|
|
3936
3936
|
className: cl.radioContainer,
|
|
3937
3937
|
"data-testid": l ? `${l}-field` : void 0,
|
|
@@ -3943,36 +3943,39 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
3943
3943
|
style: { textTransform: f },
|
|
3944
3944
|
children: t
|
|
3945
3945
|
})]
|
|
3946
|
-
}),
|
|
3946
|
+
}), g && /* @__PURE__ */ y(Wi, {
|
|
3947
3947
|
text: u,
|
|
3948
3948
|
onClick: d
|
|
3949
3949
|
})]
|
|
3950
3950
|
});
|
|
3951
|
-
return
|
|
3951
|
+
return h ? x : /* @__PURE__ */ y(Tr, {
|
|
3952
3952
|
name: e == null ? void 0 : e.toString(),
|
|
3953
|
-
"aria-label": String((
|
|
3954
|
-
value: r ?
|
|
3953
|
+
"aria-label": String((m = t == null ? e : t) == null ? "Radio" : m),
|
|
3954
|
+
value: r ? v : null,
|
|
3955
3955
|
onChange: () => {
|
|
3956
3956
|
var n;
|
|
3957
3957
|
o == null || o({ target: {
|
|
3958
3958
|
name: (n = e == null ? void 0 : e.toString()) == null ? "" : n,
|
|
3959
|
-
value:
|
|
3959
|
+
value: v,
|
|
3960
3960
|
label: t == null ? void 0 : t.toString()
|
|
3961
3961
|
} });
|
|
3962
3962
|
},
|
|
3963
3963
|
isDisabled: i,
|
|
3964
3964
|
className: cl.radioGroupStandalone,
|
|
3965
|
-
children:
|
|
3965
|
+
children: x
|
|
3966
3966
|
});
|
|
3967
|
-
}, ul = ({ cell: e, testId: t }) =>
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3975
|
-
|
|
3967
|
+
}, ul = ({ cell: e, testId: t }) => {
|
|
3968
|
+
var n;
|
|
3969
|
+
return /* @__PURE__ */ y(ll, {
|
|
3970
|
+
selected: e.selected,
|
|
3971
|
+
name: e.name,
|
|
3972
|
+
value: (n = e.value) == null ? "" : n,
|
|
3973
|
+
noMargin: !0,
|
|
3974
|
+
disabled: e.disabled,
|
|
3975
|
+
onChange: (t) => e.onChange(t),
|
|
3976
|
+
testId: t
|
|
3977
|
+
});
|
|
3978
|
+
}, dl = ({ cell: e, isHeader: t, columnAlignment: n, testId: r }) => {
|
|
3976
3979
|
if (!e) return null;
|
|
3977
3980
|
switch (e.type) {
|
|
3978
3981
|
case "Input":
|
|
@@ -6280,7 +6283,10 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
6280
6283
|
value: (d = g == null ? void 0 : g.toString()) == null ? null : d,
|
|
6281
6284
|
orientation: l ? "horizontal" : "vertical",
|
|
6282
6285
|
onChange: (t) => {
|
|
6283
|
-
let n = m.find((e) =>
|
|
6286
|
+
let n = m.find((e) => {
|
|
6287
|
+
var n;
|
|
6288
|
+
return ((n = e.value) == null ? void 0 : n.toString()) === t;
|
|
6289
|
+
});
|
|
6284
6290
|
i == null || i({ target: {
|
|
6285
6291
|
name: e == null ? "" : e,
|
|
6286
6292
|
value: t,
|
|
@@ -6294,18 +6300,19 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
6294
6300
|
className: cl.groupLabel,
|
|
6295
6301
|
children: t
|
|
6296
6302
|
}), m.map((e) => {
|
|
6297
|
-
|
|
6303
|
+
var t, n;
|
|
6304
|
+
let r = a || e.disabled || f;
|
|
6298
6305
|
return /* @__PURE__ */ y(ll, {
|
|
6299
6306
|
value: e.value,
|
|
6300
6307
|
label: e.label,
|
|
6301
|
-
disabled:
|
|
6308
|
+
disabled: r,
|
|
6302
6309
|
small: o,
|
|
6303
6310
|
noMargin: s,
|
|
6304
6311
|
testId: e.testId,
|
|
6305
6312
|
helpText: e.helpText,
|
|
6306
6313
|
onClickHelp: e.onClickHelp,
|
|
6307
6314
|
textTransform: e.textTransform
|
|
6308
|
-
}, e.value.toString());
|
|
6315
|
+
}, (t = (n = e.value) == null ? void 0 : n.toString()) == null ? "" : t);
|
|
6309
6316
|
})]
|
|
6310
6317
|
});
|
|
6311
6318
|
}, ud = {
|
|
@@ -7829,10 +7836,10 @@ var Xa = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Za =
|
|
|
7829
7836
|
})) : [];
|
|
7830
7837
|
}, If = ({ table: e, unitConfig: t, convertBackToStorageUnit: n = !0, enableCosmeticRounding: r = !0, enableDisplayRounding: i = !0, onListReorder: a, canListReorder: o, beforeRenderRow: c }) => {
|
|
7831
7838
|
let { headers: u, ...d } = e, { storageUnits: f, preferredUnits: p } = Nf(t), m = Ed(p), [g, _] = h(p), v = ({ unitKey: e, value: n }) => {
|
|
7832
|
-
_({
|
|
7833
|
-
...
|
|
7839
|
+
_((t) => ({
|
|
7840
|
+
...t,
|
|
7834
7841
|
[e]: n
|
|
7835
|
-
});
|
|
7842
|
+
}));
|
|
7836
7843
|
let r = t.find((t) => t.unitKey === e);
|
|
7837
7844
|
r && typeof r.onChange == "function" && r.onChange({
|
|
7838
7845
|
oldUnit: g[e],
|
|
@@ -9407,9 +9414,7 @@ var Fp = (e = {}) => Pp({
|
|
|
9407
9414
|
}, Zp = ({ sectionNames: e, userName: t, diffs: n, defaultSectionName: r }) => /* @__PURE__ */ y(yl, { table: {
|
|
9408
9415
|
headers: [{ cells: [{ value: "Changes" }] }],
|
|
9409
9416
|
rows: n.map((n) => {
|
|
9410
|
-
let { deltaFormat: i, path: a } = n;
|
|
9411
|
-
console.log("AUDIT PATH:", a);
|
|
9412
|
-
let o = Rp(e, a, r), { type: s, before: c, after: l } = Bp(i);
|
|
9417
|
+
let { deltaFormat: i, path: a } = n, o = Rp(e, a, r), { type: s, before: c, after: l } = Bp(i);
|
|
9413
9418
|
return { cells: [{ value: Xp({
|
|
9414
9419
|
userName: t,
|
|
9415
9420
|
type: s,
|
package/package.json
CHANGED