cr-ui-lib 1.1.38 → 1.1.40
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.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +38 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +38 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -186,6 +186,8 @@ interface MultipleAutoSuggestionInputProps {
|
|
|
186
186
|
removeIconClass?: string;
|
|
187
187
|
usePortal?: boolean;
|
|
188
188
|
inputClass?: string;
|
|
189
|
+
placeholder?: string;
|
|
190
|
+
hasIcon?: boolean;
|
|
189
191
|
}
|
|
190
192
|
declare const MultipleAutoSuggestionInput: React$1.FC<MultipleAutoSuggestionInputProps>;
|
|
191
193
|
|
package/dist/index.d.ts
CHANGED
|
@@ -186,6 +186,8 @@ interface MultipleAutoSuggestionInputProps {
|
|
|
186
186
|
removeIconClass?: string;
|
|
187
187
|
usePortal?: boolean;
|
|
188
188
|
inputClass?: string;
|
|
189
|
+
placeholder?: string;
|
|
190
|
+
hasIcon?: boolean;
|
|
189
191
|
}
|
|
190
192
|
declare const MultipleAutoSuggestionInput: React$1.FC<MultipleAutoSuggestionInputProps>;
|
|
191
193
|
|
package/dist/index.js
CHANGED
|
@@ -2951,8 +2951,10 @@ var MultipleAutoSuggestionInput = ({
|
|
|
2951
2951
|
dropdownOpenClass = "",
|
|
2952
2952
|
selectedItemsClass = "",
|
|
2953
2953
|
removeIconClass = "",
|
|
2954
|
-
usePortal = true
|
|
2954
|
+
usePortal = true,
|
|
2955
2955
|
// ✅ Destructured prop with default true
|
|
2956
|
+
placeholder = "Type or select...",
|
|
2957
|
+
hasIcon = false
|
|
2956
2958
|
}) => {
|
|
2957
2959
|
var _a;
|
|
2958
2960
|
const [filteredOptions, setFilteredOptions] = React.useState(options);
|
|
@@ -3198,7 +3200,41 @@ var MultipleAutoSuggestionInput = ({
|
|
|
3198
3200
|
setIsDropdownOpen(true);
|
|
3199
3201
|
}
|
|
3200
3202
|
},
|
|
3201
|
-
placeholder: selectedList.length === 0 ?
|
|
3203
|
+
placeholder: selectedList.length === 0 ? placeholder : ""
|
|
3204
|
+
}
|
|
3205
|
+
),
|
|
3206
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3207
|
+
"div",
|
|
3208
|
+
{
|
|
3209
|
+
className: `transition-transform duration-200 ${!isDropdownOpen ? "rotate-180" : ""} ${hasIcon ? "block" : "hidden"} `,
|
|
3210
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3211
|
+
"svg",
|
|
3212
|
+
{
|
|
3213
|
+
width: "20",
|
|
3214
|
+
height: "20",
|
|
3215
|
+
viewBox: "0 0 20 20",
|
|
3216
|
+
fill: "none",
|
|
3217
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
3218
|
+
children: [
|
|
3219
|
+
/* @__PURE__ */ jsxRuntime.jsx("g", { clipPath: "url(#clip0_10508_5931)", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3220
|
+
"path",
|
|
3221
|
+
{
|
|
3222
|
+
d: "M5.83333 11.6665L10 7.49984L14.1667 11.6665H5.83333Z",
|
|
3223
|
+
fill: "currentColor"
|
|
3224
|
+
}
|
|
3225
|
+
) }),
|
|
3226
|
+
/* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: "clip0_10508_5931", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3227
|
+
"rect",
|
|
3228
|
+
{
|
|
3229
|
+
width: "20",
|
|
3230
|
+
height: "20",
|
|
3231
|
+
fill: "white",
|
|
3232
|
+
transform: "matrix(1 0 0 -1 0 20)"
|
|
3233
|
+
}
|
|
3234
|
+
) }) })
|
|
3235
|
+
]
|
|
3236
|
+
}
|
|
3237
|
+
)
|
|
3202
3238
|
}
|
|
3203
3239
|
)
|
|
3204
3240
|
]
|