@oliasoft-open-source/react-ui-library 8.0.0-beta-8 → 8.0.0-beta-10
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/menu/menu.d.ts.map +1 -1
- package/dist/components/menu/menu.test-case.stories.d.ts +1 -0
- package/dist/components/menu/menu.test-case.stories.d.ts.map +1 -1
- package/dist/components/menu/trigger/button.d.ts.map +1 -1
- package/dist/components/menu/trigger/component.d.ts.map +1 -1
- package/dist/global.css +1 -1
- package/dist/index.js +38 -44
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -844,39 +844,34 @@ var _a = {
|
|
|
844
844
|
let { sections: t } = e;
|
|
845
845
|
return !s(t) && (!Array.isArray(t) || t.every((e) => cn(e)));
|
|
846
846
|
}, J = {
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
menuPopover: "_menuPopover_uahkz_211",
|
|
876
|
-
menuPopoverNested: "_menuPopoverNested_uahkz_233",
|
|
877
|
-
modalContainer: "_modalContainer_uahkz_236",
|
|
878
|
-
menuItem: "_menuItem_uahkz_239",
|
|
879
|
-
customSections: "_customSections_uahkz_254"
|
|
847
|
+
layer: "_layer_v9hv9_1",
|
|
848
|
+
nested: "_nested_v9hv9_14",
|
|
849
|
+
fileInput: "_fileInput_v9hv9_17",
|
|
850
|
+
trigger: "_trigger_v9hv9_23",
|
|
851
|
+
heading: "_heading_v9hv9_32",
|
|
852
|
+
headingIcon: "_headingIcon_v9hv9_38",
|
|
853
|
+
clickable: "_clickable_v9hv9_45",
|
|
854
|
+
option: "_option_v9hv9_49",
|
|
855
|
+
active: "_active_v9hv9_68",
|
|
856
|
+
disabled: "_disabled_v9hv9_73",
|
|
857
|
+
selected: "_selected_v9hv9_76",
|
|
858
|
+
optionContent: "_optionContent_v9hv9_83",
|
|
859
|
+
inline: "_inline_v9hv9_87",
|
|
860
|
+
icon: "_icon_v9hv9_92",
|
|
861
|
+
check: "_check_v9hv9_93",
|
|
862
|
+
label: "_label_v9hv9_119",
|
|
863
|
+
description: "_description_v9hv9_131",
|
|
864
|
+
arrow: "_arrow_v9hv9_135",
|
|
865
|
+
divider: "_divider_v9hv9_139",
|
|
866
|
+
buttonLabel: "_buttonLabel_v9hv9_147",
|
|
867
|
+
component: "_component_v9hv9_154",
|
|
868
|
+
right: "_right_v9hv9_160",
|
|
869
|
+
actions: "_actions_v9hv9_165",
|
|
870
|
+
menuPopover: "_menuPopover_v9hv9_172",
|
|
871
|
+
menuPopoverNested: "_menuPopoverNested_v9hv9_194",
|
|
872
|
+
modalContainer: "_modalContainer_v9hv9_197",
|
|
873
|
+
menuItem: "_menuItem_v9hv9_200",
|
|
874
|
+
customSections: "_customSections_v9hv9_215"
|
|
880
875
|
}, Pa = ({ children: e, placement: t = "bottom-start", triggerRef: n, portalTriggerRef: r, isNested: i = !1, className: a, offset: o = 0 }) => {
|
|
881
876
|
let s = i ? void 0 : xa((r == null ? n : r).current);
|
|
882
877
|
return /* @__PURE__ */ x(On, {
|
|
@@ -1170,7 +1165,6 @@ var _a = {
|
|
|
1170
1165
|
small: r,
|
|
1171
1166
|
width: i,
|
|
1172
1167
|
groupOrder: o,
|
|
1173
|
-
onClick: () => {},
|
|
1174
1168
|
rightIcon: _ ? U.CHEVRON_DOWN : null,
|
|
1175
1169
|
loading: s,
|
|
1176
1170
|
disabled: a || g,
|
|
@@ -1195,15 +1189,12 @@ var _a = {
|
|
|
1195
1189
|
if (s(e) && Ea(e)) {
|
|
1196
1190
|
var c;
|
|
1197
1191
|
let s = e, l = (c = s.props["data-testid"]) == null ? s.props.testId : c, u = typeof s.type == "string", d = s.ref;
|
|
1198
|
-
return
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
...u ? null : { active: !!(s.props.active || n) },
|
|
1205
|
-
...l ? null : u ? { "data-testid": i } : { testId: i }
|
|
1206
|
-
})
|
|
1192
|
+
return r(s, {
|
|
1193
|
+
...a,
|
|
1194
|
+
ref: Za(o, d),
|
|
1195
|
+
disabled: t || s.props.disabled,
|
|
1196
|
+
...u ? null : { active: !!(s.props.active || n) },
|
|
1197
|
+
...l ? null : u ? { "data-testid": i } : { testId: i }
|
|
1207
1198
|
});
|
|
1208
1199
|
}
|
|
1209
1200
|
return /* @__PURE__ */ x("div", {
|
|
@@ -1304,7 +1295,10 @@ var _a = {
|
|
|
1304
1295
|
isOpen: z,
|
|
1305
1296
|
error: h,
|
|
1306
1297
|
warning: v,
|
|
1307
|
-
tabIndex: y
|
|
1298
|
+
tabIndex: y,
|
|
1299
|
+
onClick: (e) => {
|
|
1300
|
+
e.stopPropagation(), e.preventDefault();
|
|
1301
|
+
}
|
|
1308
1302
|
})
|
|
1309
1303
|
});
|
|
1310
1304
|
return /* @__PURE__ */ S(Dn, {
|
package/package.json
CHANGED