@epam/ai-dial-ui-kit 0.5.0-rc.98 → 0.5.0-rc.99
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/dial-ui-kit.es.js
CHANGED
|
@@ -46485,21 +46485,22 @@ const b8 = {
|
|
|
46485
46485
|
className: r,
|
|
46486
46486
|
containerClassName: a,
|
|
46487
46487
|
onChange: l,
|
|
46488
|
-
|
|
46489
|
-
|
|
46488
|
+
onBlur: c,
|
|
46489
|
+
size: d = ia.Base,
|
|
46490
|
+
allowClear: u = !0
|
|
46490
46491
|
}) => {
|
|
46491
|
-
const [
|
|
46492
|
+
const [h, g] = A(t || "");
|
|
46492
46493
|
be(() => {
|
|
46493
|
-
|
|
46494
|
+
g(t || "");
|
|
46494
46495
|
}, [t]);
|
|
46495
|
-
const
|
|
46496
|
-
(
|
|
46497
|
-
|
|
46496
|
+
const p = P(
|
|
46497
|
+
(v) => {
|
|
46498
|
+
g(v), l?.(v);
|
|
46498
46499
|
},
|
|
46499
46500
|
[l]
|
|
46500
|
-
),
|
|
46501
|
-
|
|
46502
|
-
}, [
|
|
46501
|
+
), f = b8[d], C = P(() => {
|
|
46502
|
+
p("");
|
|
46503
|
+
}, [p]);
|
|
46503
46504
|
return /* @__PURE__ */ z(
|
|
46504
46505
|
"div",
|
|
46505
46506
|
{
|
|
@@ -46508,7 +46509,7 @@ const b8 = {
|
|
|
46508
46509
|
n && "dial-input-error",
|
|
46509
46510
|
i && "dial-input-disable",
|
|
46510
46511
|
o && "dial-input-readonly",
|
|
46511
|
-
|
|
46512
|
+
f.containerClassName,
|
|
46512
46513
|
a
|
|
46513
46514
|
),
|
|
46514
46515
|
children: [
|
|
@@ -46519,8 +46520,8 @@ const b8 = {
|
|
|
46519
46520
|
icon: /* @__PURE__ */ m(
|
|
46520
46521
|
Zv,
|
|
46521
46522
|
{
|
|
46522
|
-
size:
|
|
46523
|
-
stroke:
|
|
46523
|
+
size: f.iconSize,
|
|
46524
|
+
stroke: f.iconStroke
|
|
46524
46525
|
}
|
|
46525
46526
|
)
|
|
46526
46527
|
}
|
|
@@ -46532,27 +46533,28 @@ const b8 = {
|
|
|
46532
46533
|
type: "text",
|
|
46533
46534
|
autoComplete: "off",
|
|
46534
46535
|
placeholder: s,
|
|
46535
|
-
value:
|
|
46536
|
+
value: h ?? "",
|
|
46536
46537
|
disabled: i,
|
|
46537
46538
|
readOnly: o,
|
|
46538
46539
|
className: ee(
|
|
46539
46540
|
"border-0 bg-transparent w-full",
|
|
46540
46541
|
r,
|
|
46541
|
-
|
|
46542
|
+
f.textClassName
|
|
46542
46543
|
),
|
|
46543
|
-
onChange: (
|
|
46544
|
+
onChange: (v) => !o && p(v.currentTarget.value),
|
|
46545
|
+
onBlur: c
|
|
46544
46546
|
}
|
|
46545
46547
|
),
|
|
46546
|
-
|
|
46548
|
+
h && !o && !i && u && /* @__PURE__ */ m(
|
|
46547
46549
|
Be,
|
|
46548
46550
|
{
|
|
46549
46551
|
className: "text-primary cursor-pointer",
|
|
46550
46552
|
icon: /* @__PURE__ */ m(
|
|
46551
46553
|
ho,
|
|
46552
46554
|
{
|
|
46553
|
-
size:
|
|
46554
|
-
stroke:
|
|
46555
|
-
onClick:
|
|
46555
|
+
size: f.iconSize,
|
|
46556
|
+
stroke: f.iconStroke,
|
|
46557
|
+
onClick: C,
|
|
46556
46558
|
"aria-label": "Clear search",
|
|
46557
46559
|
role: "button"
|
|
46558
46560
|
}
|
|
@@ -10,6 +10,7 @@ export interface DialSearchProps {
|
|
|
10
10
|
className?: string;
|
|
11
11
|
containerClassName?: string;
|
|
12
12
|
onChange?: (value: string) => void;
|
|
13
|
+
onBlur?: () => void;
|
|
13
14
|
size?: SearchSize;
|
|
14
15
|
allowClear?: boolean;
|
|
15
16
|
}
|
|
@@ -25,6 +26,7 @@ export interface DialSearchProps {
|
|
|
25
26
|
* placeholder="Search"
|
|
26
27
|
* size={SearchSize.Small}
|
|
27
28
|
* onChange={(value) => setQuery(value)}
|
|
29
|
+
* onBlur={() => handleBlur()}
|
|
28
30
|
* disabled={false}
|
|
29
31
|
* />
|
|
30
32
|
* ```
|
|
@@ -38,6 +40,7 @@ export interface DialSearchProps {
|
|
|
38
40
|
* @param [className] - Additional CSS classes applied to the input element
|
|
39
41
|
* @param [containerClassName] - Additional CSS classes applied to the container
|
|
40
42
|
* @param [onChange] - Callback fired when the input value changes
|
|
43
|
+
* @param [onBlur] - Callback fired when the input loses focus
|
|
41
44
|
* @param [size=SearchSize.Base] - The size of the search input. Uses the {@link SearchSize} enum.
|
|
42
45
|
* @param [allowClear=true] - Whether to show a clear button when there is a value
|
|
43
46
|
*/
|