@mcurros2/microm 1.1.74-0 → 1.1.75-0

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
@@ -33370,9 +33370,9 @@ function $9e0f0f7fb3fe1bb5$export$4a22575e2f542f1f(props) {
33370
33370
  const key_code = e.code;
33371
33371
  // Fix to let escape pass through if there is no dropdown open
33372
33372
  if (key_code === "Escape") {
33373
- const dropdown = document.querySelector("[data-mantine-multiselect-dropdown]");
33374
- const isDropdownOpen = dropdown && ((_a = filterInputRef.current) === null || _a === void 0 ? void 0 : _a.contains(dropdown));
33375
- if (!isDropdownOpen) return;
33373
+ const dropdown = (_a = filterInputRef.current) === null || _a === void 0 ? void 0 : _a.querySelector("[data-mantine-multiselect-dropdown]");
33374
+ const isMyDropdownOpen = !!dropdown;
33375
+ if (!isMyDropdownOpen) return;
33376
33376
  }
33377
33377
  if (key_code !== "Enter" && key_code !== "NumpadEnter") return;
33378
33378
  // Ensure queryText is not empty
@@ -46143,52 +46143,54 @@ const $fd210d71b523c65e$export$4fef1edbf0f012ef = /*#__PURE__*/ (0, $b4te3$react
46143
46143
  "onCreate"
46144
46144
  ]);
46145
46145
  const theme = (0, $b4te3$mantinecore.useMantineTheme)();
46146
- return (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.MultiSelect), Object.assign({
46147
- icon: (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconSearch), {
46148
- size: "1.1rem",
46149
- stroke: 1.5
46150
- }),
46151
- radius: "xl",
46152
- size: size,
46153
- styles: ()=>({
46154
- searchInput: {
46155
- lineHeight: "unset"
46156
- },
46157
- value: {
46158
- minHeight: "1.4rem"
46159
- },
46160
- defaultValue: {
46161
- paddingBottom: "0.1rem"
46162
- }
46163
- } // Fix the 'ggg' being cut off and vertical alignment
46164
- ),
46165
- rightSection: (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.ActionIcon), {
46166
- size: size,
46167
- radius: "xl",
46168
- color: theme.primaryColor,
46169
- variant: iconVariant,
46170
- onClick: (e)=>onSearchClick(e),
46171
- children: theme.dir === "ltr" ? (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconArrowRight), {
46172
- size: iconsSize,
46173
- stroke: 1.5
46174
- }) : (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconArrowLeft), {
46175
- size: iconsSize,
46146
+ return (0, $b4te3$reactjsxruntime.jsx)("div", {
46147
+ ref: ref,
46148
+ children: (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.MultiSelect), Object.assign({
46149
+ icon: (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconSearch), {
46150
+ size: "1.1rem",
46176
46151
  stroke: 1.5
46177
- })
46178
- }),
46179
- rightSectionWidth: 42,
46180
- value: value,
46181
- onChange: onChange,
46182
- onSearchChange: onSearchChange,
46183
- onCreate: onCreate,
46184
- placeholder: placeholder,
46185
- creatable: true,
46186
- searchable: true,
46187
- getCreateLabel: (newValue)=>`${addFilterLabel} ${newValue}`,
46188
- "data-autofocus": autoFocus,
46189
- autoFocus: autoFocus,
46190
- ref: ref
46191
- }, rest));
46152
+ }),
46153
+ radius: "xl",
46154
+ size: size,
46155
+ styles: ()=>({
46156
+ searchInput: {
46157
+ lineHeight: "unset"
46158
+ },
46159
+ value: {
46160
+ minHeight: "1.4rem"
46161
+ },
46162
+ defaultValue: {
46163
+ paddingBottom: "0.1rem"
46164
+ }
46165
+ } // Fix the 'ggg' being cut off and vertical alignment
46166
+ ),
46167
+ rightSection: (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.ActionIcon), {
46168
+ size: size,
46169
+ radius: "xl",
46170
+ color: theme.primaryColor,
46171
+ variant: iconVariant,
46172
+ onClick: (e)=>onSearchClick(e),
46173
+ children: theme.dir === "ltr" ? (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconArrowRight), {
46174
+ size: iconsSize,
46175
+ stroke: 1.5
46176
+ }) : (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconArrowLeft), {
46177
+ size: iconsSize,
46178
+ stroke: 1.5
46179
+ })
46180
+ }),
46181
+ rightSectionWidth: 42,
46182
+ value: value,
46183
+ onChange: onChange,
46184
+ onSearchChange: onSearchChange,
46185
+ onCreate: onCreate,
46186
+ placeholder: placeholder,
46187
+ creatable: true,
46188
+ searchable: true,
46189
+ getCreateLabel: (newValue)=>`${addFilterLabel} ${newValue}`,
46190
+ "data-autofocus": autoFocus,
46191
+ autoFocus: autoFocus
46192
+ }, rest))
46193
+ });
46192
46194
  });
46193
46195
 
46194
46196
  });