@rebasepro/core 0.0.1-canary.94dff14 → 0.0.1-canary.bbcb8b4
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.es.js
CHANGED
|
@@ -9,7 +9,7 @@ import { stripCollectionPath, canCreateEntity, canEditEntity, canDeleteEntity, c
|
|
|
9
9
|
import { mergeDeep, slugify, hashString, isObject, isPlainObject, randomString } from "@rebasepro/utils";
|
|
10
10
|
import { deepEqual } from "fast-equals";
|
|
11
11
|
import { useTranslation as useTranslation$1, initReactI18next, I18nextProvider } from "react-i18next";
|
|
12
|
-
import { AlertTriangleIcon, Wand2Icon, Trash2Icon, ChevronDownIcon, SettingsIcon, ChevronsLeftIcon, FolderIcon, UserIcon, TagIcon, ChevronsRightIcon, MoonIcon, SunIcon, SunMoonIcon, PlusIcon, PencilIcon, LogOutIcon, LanguagesIcon, CheckIcon,
|
|
12
|
+
import { AlertTriangleIcon, Wand2Icon, Trash2Icon, ChevronDownIcon, SettingsIcon, ChevronsLeftIcon, FolderIcon, UserIcon, TagIcon, ChevronsRightIcon, MoonIcon, SunIcon, SunMoonIcon, PlusIcon, PencilIcon, LogOutIcon, LanguagesIcon, CheckIcon, CircleUserIcon, MailIcon, ArrowLeftIcon, icons } from "lucide-react";
|
|
13
13
|
import i18next from "i18next";
|
|
14
14
|
import Fuse from "fuse.js";
|
|
15
15
|
import Compressor from "compressorjs";
|
|
@@ -6041,14 +6041,7 @@ function UserSelectPopover({
|
|
|
6041
6041
|
totalFilterable !== 1 ? "s" : ""
|
|
6042
6042
|
] })
|
|
6043
6043
|
] }),
|
|
6044
|
-
/* @__PURE__ */ jsx("div", { className: cls("px-2 py-1.5 border-b shrink-0", defaultBorderMixin), children: /* @__PURE__ */
|
|
6045
|
-
/* @__PURE__ */ jsx(SearchIcon, { size: "smallest", className: "absolute left-2 top-1/2 -translate-y-1/2 text-text-disabled dark:text-text-disabled-dark pointer-events-none" }),
|
|
6046
|
-
/* @__PURE__ */ jsx("input", { ref: inputRef, type: "text", value: searchText, onChange: (e_0) => setSearchText(e_0.target.value), placeholder: "SearchIcon by name, email, or role…", className: cls("w-full pl-7 pr-7 py-1.5 text-xs rounded-md", "bg-surface-100 dark:bg-surface-950 border", defaultBorderMixin, "outline-none focus:ring-1 focus:ring-primary/40", "placeholder-text-disabled dark:placeholder-text-disabled-dark", "text-text-primary dark:text-text-primary-dark") }),
|
|
6047
|
-
searchText && /* @__PURE__ */ jsx("button", { onClick: () => {
|
|
6048
|
-
setSearchText("");
|
|
6049
|
-
inputRef.current?.focus();
|
|
6050
|
-
}, className: "absolute right-1.5 top-1/2 -translate-y-1/2 p-0.5 rounded hover:bg-surface-200 dark:hover:bg-surface-700 text-text-disabled", children: /* @__PURE__ */ jsx(XIcon, { size: iconSize.smallest }) })
|
|
6051
|
-
] }) }),
|
|
6044
|
+
/* @__PURE__ */ jsx("div", { className: cls("px-2 py-1.5 border-b shrink-0", defaultBorderMixin), children: /* @__PURE__ */ jsx(SearchBar, { inputRef, size: "smallest", placeholder: "Search by name, email, or role…", onTextSearch: (val) => setSearchText(val ?? "") }) }),
|
|
6052
6045
|
/* @__PURE__ */ jsxs("div", { ref: listRef, className: "overflow-y-auto overscroll-contain", style: {
|
|
6053
6046
|
maxHeight: MAX_VISIBLE_ITEMS * ITEM_HEIGHT
|
|
6054
6047
|
}, children: [
|