cr-ui-lib 1.1.101 → 1.1.102
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 +52 -16
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +52 -16
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3818,22 +3818,58 @@ function SingleSelectDropdown({
|
|
|
3818
3818
|
)
|
|
3819
3819
|
]
|
|
3820
3820
|
}
|
|
3821
|
-
) : /* @__PURE__ */ jsxRuntime.
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3821
|
+
) : /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: dropdownRef, className: "relative", children: [
|
|
3822
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3823
|
+
"input",
|
|
3824
|
+
{
|
|
3825
|
+
type: "text",
|
|
3826
|
+
autoFocus: true,
|
|
3827
|
+
onClick: openList,
|
|
3828
|
+
className: tailwindMerge.twMerge(
|
|
3829
|
+
"input-placeholder-ellipsis w-full pr-[30px] h-[48px] px-2 py-1 rounded-md border border-gray-300 text-sm focus:border-1 focus:border-[#4683B4] focus:outline-none",
|
|
3830
|
+
searchInputClass,
|
|
3831
|
+
uniqueSearch && "placeholder:opacity-100 placeholder:text-[#131414]"
|
|
3832
|
+
),
|
|
3833
|
+
value: searchTerm,
|
|
3834
|
+
placeholder: (selectedOption == null ? void 0 : selectedOption.name) || placeholder,
|
|
3835
|
+
onChange: (e) => handleSearchChange(e.target.value)
|
|
3836
|
+
}
|
|
3837
|
+
),
|
|
3838
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3839
|
+
"div",
|
|
3840
|
+
{
|
|
3841
|
+
className: `absolute right-[8px] top-[12.5px] transition-transform duration-200 ${!isOpen ? "rotate-180" : ""} ${disabled ? "text-gray-400" : ""} ${hasIcon ? "block" : "hidden"} ${iconClass}`,
|
|
3842
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3843
|
+
"svg",
|
|
3844
|
+
{
|
|
3845
|
+
width: "20",
|
|
3846
|
+
height: "20",
|
|
3847
|
+
viewBox: "0 0 20 20",
|
|
3848
|
+
fill: "none",
|
|
3849
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3850
|
+
children: [
|
|
3851
|
+
/* @__PURE__ */ jsxRuntime.jsx("g", { clipPath: "url(#clip0_10508_5931)", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3852
|
+
"path",
|
|
3853
|
+
{
|
|
3854
|
+
d: "M5.83333 11.6665L10 7.49984L14.1667 11.6665H5.83333Z",
|
|
3855
|
+
fill: "currentColor"
|
|
3856
|
+
}
|
|
3857
|
+
) }),
|
|
3858
|
+
/* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: "clip0_10508_5931", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3859
|
+
"rect",
|
|
3860
|
+
{
|
|
3861
|
+
width: "20",
|
|
3862
|
+
height: "20",
|
|
3863
|
+
fill: "white",
|
|
3864
|
+
transform: "matrix(1 0 0 -1 0 20)"
|
|
3865
|
+
}
|
|
3866
|
+
) }) })
|
|
3867
|
+
]
|
|
3868
|
+
}
|
|
3869
|
+
)
|
|
3870
|
+
}
|
|
3871
|
+
)
|
|
3872
|
+
] }),
|
|
3837
3873
|
isOpen && !disabled && (usePortal ? reactDom.createPortal(DropdownMenu, document.body) : DropdownMenu)
|
|
3838
3874
|
] })
|
|
3839
3875
|
] });
|