@oliasoft-open-source/react-ui-library 10.0.0-beta-2 → 10.0.0-beta-3
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
|
@@ -2673,20 +2673,19 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2673
2673
|
})
|
|
2674
2674
|
});
|
|
2675
2675
|
}, oc = {
|
|
2676
|
-
|
|
2677
|
-
layerContainer: "
|
|
2678
|
-
layer: "
|
|
2679
|
-
small: "
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
details: "_details_15t5m_151"
|
|
2676
|
+
select: "_select_12pjn_1",
|
|
2677
|
+
layerContainer: "_layerContainer_12pjn_6",
|
|
2678
|
+
layer: "_layer_12pjn_6",
|
|
2679
|
+
small: "_small_12pjn_50",
|
|
2680
|
+
listBoxItem: "_listBoxItem_12pjn_53",
|
|
2681
|
+
heading: "_heading_12pjn_57",
|
|
2682
|
+
option: "_option_12pjn_58",
|
|
2683
|
+
message: "_message_12pjn_59",
|
|
2684
|
+
check: "_check_12pjn_114",
|
|
2685
|
+
optionContent: "_optionContent_12pjn_131",
|
|
2686
|
+
label: "_label_12pjn_136",
|
|
2687
|
+
icon: "_icon_12pjn_143",
|
|
2688
|
+
details: "_details_12pjn_148"
|
|
2690
2689
|
}, sc = ({ triggerRef: e }) => {
|
|
2691
2690
|
let t = u(jr);
|
|
2692
2691
|
return qa({
|
|
@@ -2960,7 +2959,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2960
2959
|
}, zc = (e, t, n) => {
|
|
2961
2960
|
!e || !Number.isInteger(t) || t < 0 || (e.scrollTop = t * n);
|
|
2962
2961
|
}, Bc = ({ items: e, selectedItemId: t, width: n, small: r, isMulti: i = !1, closeLayer: a, testId: o }) => {
|
|
2963
|
-
let s = _(null), c = r ? 24 : 30, l = e.length < 10 ? c * Math.max(e.length, 1) : c * 10;
|
|
2962
|
+
let s = _(null), c = r ? 24 : 30, l = e.length < 10 ? c * Math.max(e.length, 1) : c * 10, u = b(oc.layer, r && oc.small);
|
|
2964
2963
|
return d(() => {
|
|
2965
2964
|
if (!t) return;
|
|
2966
2965
|
let n = e.findIndex((e) => String(e.id) === t);
|
|
@@ -2973,25 +2972,29 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
2973
2972
|
e,
|
|
2974
2973
|
c,
|
|
2975
2974
|
t
|
|
2976
|
-
]), /* @__PURE__ */ S(
|
|
2975
|
+
]), e.length ? /* @__PURE__ */ S(Fr, {
|
|
2976
|
+
layout: Pr,
|
|
2977
|
+
layoutOptions: { rowSize: c },
|
|
2978
|
+
children: /* @__PURE__ */ S(Mr, {
|
|
2979
|
+
ref: s,
|
|
2980
|
+
"aria-label": "Options",
|
|
2981
|
+
className: u,
|
|
2982
|
+
style: {
|
|
2983
|
+
height: l,
|
|
2984
|
+
width: n
|
|
2985
|
+
},
|
|
2986
|
+
selectionBehavior: i ? "toggle" : "replace",
|
|
2987
|
+
"data-testid": o,
|
|
2988
|
+
children: (e) => /* @__PURE__ */ S(Pc, {
|
|
2989
|
+
item: e,
|
|
2990
|
+
closeLayer: a
|
|
2991
|
+
})
|
|
2992
|
+
})
|
|
2993
|
+
}) : /* @__PURE__ */ S("div", {
|
|
2977
2994
|
"data-testid": o,
|
|
2978
|
-
className:
|
|
2995
|
+
className: u,
|
|
2979
2996
|
style: { width: n },
|
|
2980
|
-
children:
|
|
2981
|
-
layout: Pr,
|
|
2982
|
-
layoutOptions: { rowSize: c },
|
|
2983
|
-
children: /* @__PURE__ */ S(Mr, {
|
|
2984
|
-
ref: s,
|
|
2985
|
-
"aria-label": "Options",
|
|
2986
|
-
className: oc.listBox,
|
|
2987
|
-
style: { height: l },
|
|
2988
|
-
selectionBehavior: i ? "toggle" : "replace",
|
|
2989
|
-
children: (e) => /* @__PURE__ */ S(Pc, {
|
|
2990
|
-
item: e,
|
|
2991
|
-
closeLayer: a
|
|
2992
|
-
})
|
|
2993
|
-
})
|
|
2994
|
-
}) : /* @__PURE__ */ S("ul", { children: /* @__PURE__ */ S("li", { children: /* @__PURE__ */ S("div", {
|
|
2997
|
+
children: /* @__PURE__ */ S("ul", { children: /* @__PURE__ */ S("li", { children: /* @__PURE__ */ S("div", {
|
|
2995
2998
|
className: oc.message,
|
|
2996
2999
|
children: "No matches"
|
|
2997
3000
|
}) }) })
|
|
@@ -3202,7 +3205,7 @@ var Lo = (e) => e.replace(/^lch\(\s*(\d+(?:\.\d+)?)(?!%)\s+/, "lch($1% "), Ro =
|
|
|
3202
3205
|
L && F(V(N.current));
|
|
3203
3206
|
}, [V, L]), /* @__PURE__ */ C(Ar, {
|
|
3204
3207
|
"aria-label": d || "Select",
|
|
3205
|
-
className: oc.
|
|
3208
|
+
className: oc.select,
|
|
3206
3209
|
style: { width: ne() },
|
|
3207
3210
|
isDisabled: M,
|
|
3208
3211
|
selectionMode: t ? "multiple" : "single",
|
package/package.json
CHANGED