@mcurros2/microm 1.1.74-0 → 1.1.76-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,58 @@ 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
+ style: {
46149
+ display: "flex",
46150
+ flex: 1
46151
+ },
46152
+ children: (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.MultiSelect), Object.assign({
46153
+ icon: (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconSearch), {
46154
+ size: "1.1rem",
46176
46155
  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));
46156
+ }),
46157
+ radius: "xl",
46158
+ size: size,
46159
+ styles: ()=>({
46160
+ searchInput: {
46161
+ lineHeight: "unset"
46162
+ },
46163
+ value: {
46164
+ minHeight: "1.4rem"
46165
+ },
46166
+ defaultValue: {
46167
+ paddingBottom: "0.1rem"
46168
+ }
46169
+ } // Fix the 'ggg' being cut off and vertical alignment
46170
+ ),
46171
+ rightSection: (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$mantinecore.ActionIcon), {
46172
+ size: size,
46173
+ radius: "xl",
46174
+ color: theme.primaryColor,
46175
+ variant: iconVariant,
46176
+ onClick: (e)=>onSearchClick(e),
46177
+ children: theme.dir === "ltr" ? (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconArrowRight), {
46178
+ size: iconsSize,
46179
+ stroke: 1.5
46180
+ }) : (0, $b4te3$reactjsxruntime.jsx)((0, $b4te3$tablericonsreact.IconArrowLeft), {
46181
+ size: iconsSize,
46182
+ stroke: 1.5
46183
+ })
46184
+ }),
46185
+ rightSectionWidth: 42,
46186
+ value: value,
46187
+ onChange: onChange,
46188
+ onSearchChange: onSearchChange,
46189
+ onCreate: onCreate,
46190
+ placeholder: placeholder,
46191
+ creatable: true,
46192
+ searchable: true,
46193
+ getCreateLabel: (newValue)=>`${addFilterLabel} ${newValue}`,
46194
+ "data-autofocus": autoFocus,
46195
+ autoFocus: autoFocus
46196
+ }, rest))
46197
+ });
46192
46198
  });
46193
46199
 
46194
46200
  });