@youngonesworks/ui 0.1.48 → 0.1.51

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.
@@ -4,3 +4,10 @@ declare const meta: Meta<typeof SearchInput>;
4
4
  export default meta;
5
5
  type Story = StoryObj<typeof SearchInput>;
6
6
  export declare const Default: Story;
7
+ export declare const WithCustomSearchIcon: Story;
8
+ export declare const WithFilterIcon: Story;
9
+ export declare const WithoutIcon: Story;
10
+ export declare const Controlled: Story;
11
+ export declare const WithCustomIcon: Story;
12
+ export declare const WithCustomClassName: Story;
13
+ export declare const Disabled: Story;
@@ -1 +1,9 @@
1
- export declare const SearchInput: () => import("react/jsx-runtime").JSX.Element;
1
+ import { type ChangeEvent } from 'react';
2
+ import { type TextInputProps } from '../textInput';
3
+ interface SearchInputProps extends TextInputProps {
4
+ placeholder: string;
5
+ value?: string;
6
+ onChange?: (e: ChangeEvent<HTMLInputElement>) => void;
7
+ }
8
+ export declare const SearchInput: ({ placeholder, value, onChange, className, rightSection, ...props }: SearchInputProps) => import("react/jsx-runtime").JSX.Element;
9
+ export {};
package/dist/index.cjs CHANGED
@@ -110064,13 +110064,13 @@ const ScrollToTop = ({ scrollToTopTitle }) => {
110064
110064
 
110065
110065
  //#endregion
110066
110066
  //#region src/components/searchInput/index.tsx
110067
- const SearchInput = () => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TextInput, {
110068
- className: "w-full lg:w-auto lg:min-w-[23.75rem]",
110069
- rightSection: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(IconSearch, {
110070
- size: 20,
110071
- stroke: 1,
110072
- className: "rotate-90"
110073
- })
110067
+ const SearchInput = ({ placeholder, value, onChange, className, rightSection,...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(TextInput, {
110068
+ placeholder,
110069
+ className: className || "w-full lg:w-auto lg:min-w-[23.75rem]",
110070
+ rightSection: rightSection || /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, {}),
110071
+ value,
110072
+ onChange,
110073
+ ...props
110074
110074
  });
110075
110075
 
110076
110076
  //#endregion