stone-kit 0.0.479 → 0.0.480

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.
@@ -1,4 +1,4 @@
1
1
  import { default as React } from 'react';
2
2
  import { ComponentProps } from './FieldInput.types';
3
3
 
4
- export declare const FieldInput: ({ label, handleClear, children }: React.PropsWithChildren<ComponentProps>) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const FieldInput: ({ label, handleClear, isShowClear, children }: React.PropsWithChildren<ComponentProps>) => import("react/jsx-runtime").JSX.Element;
@@ -1,12 +1,12 @@
1
1
  import { jsxs as r, jsx as a } from "react/jsx-runtime";
2
- const c = "_fieldInputWrapper_1y5f8_1", s = "_clearBtn_1y5f8_16", t = "_nameWrapper_1y5f8_31", e = {
3
- fieldInputWrapper: c,
4
- clearBtn: s,
5
- nameWrapper: t
6
- }, d = ({ label: n, handleClear: p, children: l }) => /* @__PURE__ */ r("div", { className: e.fieldInputWrapper, children: [
2
+ const s = "_fieldInputWrapper_1y5f8_1", t = "_clearBtn_1y5f8_16", i = "_nameWrapper_1y5f8_31", e = {
3
+ fieldInputWrapper: s,
4
+ clearBtn: t,
5
+ nameWrapper: i
6
+ }, m = ({ label: n, handleClear: p, isShowClear: l, children: c }) => /* @__PURE__ */ r("div", { className: e.fieldInputWrapper, children: [
7
7
  /* @__PURE__ */ r("div", { className: e.nameWrapper, children: [
8
8
  /* @__PURE__ */ a("label", { className: e.label, children: n }),
9
- /* @__PURE__ */ a(
9
+ l && /* @__PURE__ */ a(
10
10
  "div",
11
11
  {
12
12
  className: e.clearBtn,
@@ -15,8 +15,8 @@ const c = "_fieldInputWrapper_1y5f8_1", s = "_clearBtn_1y5f8_16", t = "_nameWrap
15
15
  }
16
16
  )
17
17
  ] }),
18
- l
18
+ c
19
19
  ] });
20
20
  export {
21
- d as FieldInput
21
+ m as FieldInput
22
22
  };
@@ -4,6 +4,7 @@ interface InputProps {
4
4
  label: string;
5
5
  handleClear?: () => void;
6
6
  children?: ReactNode;
7
+ isShowClear?: boolean;
7
8
  }
8
9
  export type ComponentProps = InputProps & React.InputHTMLAttributes<HTMLInputElement>;
9
10
  export {};
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "stone-kit",
3
3
  "description": "uikit for redesign",
4
4
  "private": false,
5
- "version": "0.0.479",
5
+ "version": "0.0.480",
6
6
  "author": "Mollycodd1e",
7
7
  "license": "ISC",
8
8
  "type": "module",