urfu-ui-kit-react 1.4.6 → 1.4.7
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/style.css +1 -1
- package/dist/urfu-ui-kit-react.js +27 -4
- package/package.json +2 -2
|
@@ -12672,10 +12672,33 @@ const Pf = ({
|
|
|
12672
12672
|
value: a,
|
|
12673
12673
|
onChange: t,
|
|
12674
12674
|
className: e = ""
|
|
12675
|
-
}) =>
|
|
12676
|
-
|
|
12677
|
-
|
|
12678
|
-
|
|
12675
|
+
}) => {
|
|
12676
|
+
const r = (o) => {
|
|
12677
|
+
o.preventDefault(), t && t({
|
|
12678
|
+
target: { value: "" }
|
|
12679
|
+
});
|
|
12680
|
+
};
|
|
12681
|
+
return /* @__PURE__ */ f.jsxs("div", { className: `u-search ${e}`, children: [
|
|
12682
|
+
/* @__PURE__ */ f.jsx(
|
|
12683
|
+
"input",
|
|
12684
|
+
{
|
|
12685
|
+
placeholder: n,
|
|
12686
|
+
className: "u-input",
|
|
12687
|
+
type: "search",
|
|
12688
|
+
value: a,
|
|
12689
|
+
onChange: t
|
|
12690
|
+
}
|
|
12691
|
+
),
|
|
12692
|
+
a && /* @__PURE__ */ f.jsx(
|
|
12693
|
+
"i",
|
|
12694
|
+
{
|
|
12695
|
+
className: "u-icon icon-cross-small u-search-clear",
|
|
12696
|
+
onClick: r
|
|
12697
|
+
}
|
|
12698
|
+
),
|
|
12699
|
+
/* @__PURE__ */ f.jsx("button", { className: "u-search-loupe", type: "button" })
|
|
12700
|
+
] });
|
|
12701
|
+
};
|
|
12679
12702
|
Pf.propTypes = {
|
|
12680
12703
|
placeholder: D.string,
|
|
12681
12704
|
value: D.string,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "UrFU UI-Kit for React Web",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"private": false,
|
|
6
|
-
"version": "1.4.
|
|
6
|
+
"version": "1.4.7",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "dist/urfu-ui-kit-react",
|
|
9
9
|
"types": "dist/urfu-ui-kit-react",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"date-fns": "^3.6.0",
|
|
21
21
|
"react-datepicker": "^7.4.0",
|
|
22
22
|
"react-input-mask": "^2.0.4",
|
|
23
|
-
"urfu-ui-kit-vanilla": "^2.
|
|
23
|
+
"urfu-ui-kit-vanilla": "^2.2.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@chromatic-com/storybook": "^1.3.3",
|