@oliasoft-open-source/react-ui-library 4.20.7-beta-1 → 4.20.8
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.d.ts +0 -1
- package/dist/index.js +5 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -4674,7 +4674,6 @@ const TriggerTooltip = ({
|
|
|
4674
4674
|
};
|
|
4675
4675
|
const Trigger$1 = React__default.forwardRef(
|
|
4676
4676
|
({
|
|
4677
|
-
active: active2,
|
|
4678
4677
|
isDisabled,
|
|
4679
4678
|
badgeTitle,
|
|
4680
4679
|
badgeDot,
|
|
@@ -4713,7 +4712,7 @@ const Trigger$1 = React__default.forwardRef(
|
|
|
4713
4712
|
loading,
|
|
4714
4713
|
error: error2,
|
|
4715
4714
|
warning: warning2,
|
|
4716
|
-
active: isOpen2
|
|
4715
|
+
active: isOpen2,
|
|
4717
4716
|
tabIndex
|
|
4718
4717
|
}
|
|
4719
4718
|
) : trigger2 === TriggerType.TEXT ? /* @__PURE__ */ jsx(
|
|
@@ -4881,8 +4880,7 @@ const DropDownMenu = ({
|
|
|
4881
4880
|
error: error2,
|
|
4882
4881
|
warning: warning2,
|
|
4883
4882
|
selected: selected2,
|
|
4884
|
-
tabIndex
|
|
4885
|
-
active: active2
|
|
4883
|
+
tabIndex
|
|
4886
4884
|
}) => {
|
|
4887
4885
|
const disabledContext = useContext(DisabledContext);
|
|
4888
4886
|
const {
|
|
@@ -4948,7 +4946,6 @@ const DropDownMenu = ({
|
|
|
4948
4946
|
component: component2,
|
|
4949
4947
|
groupOrder,
|
|
4950
4948
|
isOpen: isOpen2,
|
|
4951
|
-
active: active2,
|
|
4952
4949
|
tooltip: tooltip2,
|
|
4953
4950
|
error: error2,
|
|
4954
4951
|
warning: warning2,
|
|
@@ -17375,7 +17372,7 @@ const standardizeSelectedOptions = (standardizedOptions, selectedOptions) => {
|
|
|
17375
17372
|
const isSimpleOptions = (options) => Array.isArray(options) && options.some((o) => typeof o === "string" || typeof o === "number");
|
|
17376
17373
|
const getFirstSelectedOptionIndex = (options, selectedOptions) => {
|
|
17377
17374
|
const firstSelected = selectedOptions instanceof Array ? selectedOptions.length ? selectedOptions[0] : null : selectedOptions;
|
|
17378
|
-
const firstSelectedValue = firstSelected === null || firstSelected === void 0 ? null : typeof firstSelected === "string" || typeof firstSelected === "number" ? firstSelected : firstSelected.value;
|
|
17375
|
+
const firstSelectedValue = firstSelected === null || firstSelected === void 0 ? null : typeof firstSelected === "string" || typeof firstSelected === "number" || typeof firstSelected === "boolean" ? firstSelected : firstSelected.value;
|
|
17379
17376
|
const index2 = options.filter((o) => o.type !== MenuType.HEADING).findIndex((o) => {
|
|
17380
17377
|
if (typeof o === "string" || typeof o === "number") {
|
|
17381
17378
|
return o == firstSelectedValue;
|
|
@@ -67112,7 +67109,7 @@ const SettingField = ({
|
|
|
67112
67109
|
return /* @__PURE__ */ jsxs("div", { className: styles.settingField, children: [
|
|
67113
67110
|
/* @__PURE__ */ jsxs(Flex, { justifyContent: "space-between", wrap: false, children: [
|
|
67114
67111
|
children,
|
|
67115
|
-
!noPermission && /* @__PURE__ */ jsx(
|
|
67112
|
+
!noPermission && /* @__PURE__ */ jsx("div", { style: { flexShrink: 0 }, children: /* @__PURE__ */ jsx(
|
|
67116
67113
|
Select,
|
|
67117
67114
|
{
|
|
67118
67115
|
small: true,
|
|
@@ -67125,7 +67122,7 @@ const SettingField = ({
|
|
|
67125
67122
|
"aria-label": "Select user type",
|
|
67126
67123
|
width: "auto"
|
|
67127
67124
|
}
|
|
67128
|
-
)
|
|
67125
|
+
) })
|
|
67129
67126
|
] }),
|
|
67130
67127
|
helpText && /* @__PURE__ */ jsx(Text, { muted: true, children: renderHelpText(helpText) })
|
|
67131
67128
|
] });
|